!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=157)}([function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return c}),n.d(e,"f",function(){return u});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

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

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}},,function(t,e,n){"use strict";(function(t,r){function i(t,e){return t.require(e)}n.d(e,"c",function(){return i}),n.d(e,"e",function(){return s}),n.d(e,"g",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return u}),n.d(e,"b",function(){return d}),n.d(e,"a",function(){return l});var o={};function s(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var t=s(),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 c(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 u(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=s();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__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),i}function l(t,e,n,r){void 0===r&&(r={handled:!0,type:"generic"}),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",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}}).call(this,n(155),n(16))},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(t,e){module.exports=e(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(t){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(t){for(var e={},n=0,r=t.length;n<r;n++)e[t.charAt(n)]=n;return e}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?fromCharCode(192|e>>>6)+fromCharCode(128|63&e):fromCharCode(224|e>>>12&15)+fromCharCode(128|e>>>6&63)+fromCharCode(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return fromCharCode(240|e>>>18&7)+fromCharCode(128|e>>>12&63)+fromCharCode(128|e>>>6&63)+fromCharCode(128|63&e)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(t){return t.replace(re_utob,cb_utob)},cb_encode=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),e>=2?"=":b64chars.charAt(n>>>6&63),e>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(t){return global.btoa(t)}:function(t){return t.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(t){return(t.constructor===buffer.constructor?t:buffer.from(t)).toString("base64")}:function(t){return(t.constructor===buffer.constructor?t:new buffer(t)).toString("base64")}:function(t){return btoa(utob(t))},encode=function(t,e){return e?_encode(String(t)).replace(/[+\/]/g,function(t){return"+"==t?"-":"_"}).replace(/=/g,""):_encode(String(t))},encodeURI=function(t){return encode(t,!0)},re_btou=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),cb_btou=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return fromCharCode(55296+(e>>>10))+fromCharCode(56320+(1023&e));case 3:return fromCharCode((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return fromCharCode((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},btou=function(t){return t.replace(re_btou,cb_btou)},cb_decode=function(t){var e=t.length,n=e%4,r=(e>0?b64tab[t.charAt(0)]<<18:0)|(e>1?b64tab[t.charAt(1)]<<12:0)|(e>2?b64tab[t.charAt(2)]<<6:0)|(e>3?b64tab[t.charAt(3)]:0),i=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return i.length-=[0,0,2,1][n],i.join("")},_atob=global.atob?function(t){return global.atob(t)}:function(t){return t.replace(/\S{1,4}/g,cb_decode)},atob=function(t){return _atob(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(t){return(t.constructor===buffer.constructor?t:buffer.from(t,"base64")).toString()}:function(t){return(t.constructor===buffer.constructor?t:new buffer(t,"base64")).toString()}:function(t){return btou(_atob(t))},decode=function(t){return _decode(String(t).replace(/[-_]/g,function(t){return"-"==t?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var t=global.Base64;return global.Base64=_Base64,t};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(t){return encode(this,t)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}})}).call(this,__webpack_require__(16))},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return o}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return l});var r=n(8),i=n(56);function o(t,e,n){if(e in t){var r=t[e],i=n(r);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:i}})),t[e]=i}}function s(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}function a(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function c(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=l(t,e);return a(r)>n?c(t,e-1,n):r}function u(e,n){return"domain"===n&&"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]":"undefined"!=typeof Event&&e instanceof Event?Object.getPrototypeOf(e)?e.constructor.name:"Event":Object(r.i)(e)?"[SyntheticEvent]":Number.isNaN(e)?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+(e.name||"<unknown-function-name>")+"]":e}function d(t,e,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new i.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=u(t);return Object(r.f)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var s=u(e,t);if(Object(r.f)(s))return s;var a=Object(r.c)(e)?function(t){var e={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(e):e,c=Array.isArray(e)?[]:{};if(o.memoize(e))return"[Circular ~]";for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(c[l]=d(l,a[l],n-1,o));return o.unmemoize(e),c}function l(t,e){try{return JSON.parse(JSON.stringify(t,function(t,n){return d(t,n,e)}))}catch(t){return"**non-serializable**"}}}).call(this,n(16))},,function(t,e,n){var r=n(32),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},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 t instanceof Error}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function s(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function d(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function l(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t){return u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}n.d(e,"c",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"h",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"e",function(){return u}),n.d(e,"g",function(){return d}),n.d(e,"j",function(){return l}),n.d(e,"i",function(){return p})},function(t,e,n){var r=n(70),i=n(73);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(61);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(17),i=n(63),o=n(64),s="[object Null]",a="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:s:c&&c in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r;!function(i){"use strict";function o(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function s(t,e,n,r,i,s){return o((a=o(o(e,t),o(r,s)))<<(c=i)|a>>>32-c,n);var a,c}function a(t,e,n,r,i,o,a){return s(e&n|~e&r,t,e,i,o,a)}function c(t,e,n,r,i,o,a){return s(e&r|n&~r,t,e,i,o,a)}function u(t,e,n,r,i,o,a){return s(e^n^r,t,e,i,o,a)}function d(t,e,n,r,i,o,a){return s(n^(e|~r),t,e,i,o,a)}function l(t,e){var n,r,i,s,l;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var p=1732584193,h=-271733879,f=-1732584194,v=271733878;for(n=0;n<t.length;n+=16)r=p,i=h,s=f,l=v,p=a(p,h,f,v,t[n],7,-680876936),v=a(v,p,h,f,t[n+1],12,-389564586),f=a(f,v,p,h,t[n+2],17,606105819),h=a(h,f,v,p,t[n+3],22,-1044525330),p=a(p,h,f,v,t[n+4],7,-176418897),v=a(v,p,h,f,t[n+5],12,1200080426),f=a(f,v,p,h,t[n+6],17,-1473231341),h=a(h,f,v,p,t[n+7],22,-45705983),p=a(p,h,f,v,t[n+8],7,1770035416),v=a(v,p,h,f,t[n+9],12,-1958414417),f=a(f,v,p,h,t[n+10],17,-42063),h=a(h,f,v,p,t[n+11],22,-1990404162),p=a(p,h,f,v,t[n+12],7,1804603682),v=a(v,p,h,f,t[n+13],12,-40341101),f=a(f,v,p,h,t[n+14],17,-1502002290),p=c(p,h=a(h,f,v,p,t[n+15],22,1236535329),f,v,t[n+1],5,-165796510),v=c(v,p,h,f,t[n+6],9,-1069501632),f=c(f,v,p,h,t[n+11],14,643717713),h=c(h,f,v,p,t[n],20,-373897302),p=c(p,h,f,v,t[n+5],5,-701558691),v=c(v,p,h,f,t[n+10],9,38016083),f=c(f,v,p,h,t[n+15],14,-660478335),h=c(h,f,v,p,t[n+4],20,-405537848),p=c(p,h,f,v,t[n+9],5,568446438),v=c(v,p,h,f,t[n+14],9,-1019803690),f=c(f,v,p,h,t[n+3],14,-187363961),h=c(h,f,v,p,t[n+8],20,1163531501),p=c(p,h,f,v,t[n+13],5,-1444681467),v=c(v,p,h,f,t[n+2],9,-51403784),f=c(f,v,p,h,t[n+7],14,1735328473),p=u(p,h=c(h,f,v,p,t[n+12],20,-1926607734),f,v,t[n+5],4,-378558),v=u(v,p,h,f,t[n+8],11,-2022574463),f=u(f,v,p,h,t[n+11],16,1839030562),h=u(h,f,v,p,t[n+14],23,-35309556),p=u(p,h,f,v,t[n+1],4,-1530992060),v=u(v,p,h,f,t[n+4],11,1272893353),f=u(f,v,p,h,t[n+7],16,-155497632),h=u(h,f,v,p,t[n+10],23,-1094730640),p=u(p,h,f,v,t[n+13],4,681279174),v=u(v,p,h,f,t[n],11,-358537222),f=u(f,v,p,h,t[n+3],16,-722521979),h=u(h,f,v,p,t[n+6],23,76029189),p=u(p,h,f,v,t[n+9],4,-640364487),v=u(v,p,h,f,t[n+12],11,-421815835),f=u(f,v,p,h,t[n+15],16,530742520),p=d(p,h=u(h,f,v,p,t[n+2],23,-995338651),f,v,t[n],6,-198630844),v=d(v,p,h,f,t[n+7],10,1126891415),f=d(f,v,p,h,t[n+14],15,-1416354905),h=d(h,f,v,p,t[n+5],21,-57434055),p=d(p,h,f,v,t[n+12],6,1700485571),v=d(v,p,h,f,t[n+3],10,-1894986606),f=d(f,v,p,h,t[n+10],15,-1051523),h=d(h,f,v,p,t[n+1],21,-2054922799),p=d(p,h,f,v,t[n+8],6,1873313359),v=d(v,p,h,f,t[n+15],10,-30611744),f=d(f,v,p,h,t[n+6],15,-1560198380),h=d(h,f,v,p,t[n+13],21,1309151649),p=d(p,h,f,v,t[n+4],6,-145523070),v=d(v,p,h,f,t[n+11],10,-1120210379),f=d(f,v,p,h,t[n+2],15,718787259),h=d(h,f,v,p,t[n+9],21,-343485551),p=o(p,r),h=o(h,i),f=o(f,s),v=o(v,l);return[p,h,f,v]}function p(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function h(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function f(t){var e,n,r="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function v(t){return unescape(encodeURIComponent(t))}function m(t){return function(t){return p(l(h(t),8*t.length))}(v(t))}function g(t,e){return function(t,e){var n,r,i=h(t),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=l(i,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],s[n]=1549556828^i[n];return r=l(o.concat(h(e)),512+8*e.length),p(l(s.concat(r),640))}(v(t),v(e))}function y(t,e,n){return e?n?g(e,t):f(g(e,t)):n?m(t):f(m(t))}void 0===(r=function(){return y}.call(e,n,e,t))||(t.exports=r)}()},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(7).Symbol;t.exports=r},function(t,e,n){var r=n(90),i=n(91),o=n(92),s=n(93),a=n(94);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(44);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(9)(Object,"create");t.exports=r},function(t,e,n){var r=n(108);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(25),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return d});var r=n(0),i=n(158),o=n(8),s=n(5),a=n(2),c=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout(function(){t._scopeListeners.forEach(function(e){e(t)}),t._notifyingListeners=!1}))},t.prototype._notifyEventProcessors=function(t,e,n,s){var a=this;return void 0===s&&(s=0),new i.a(function(i,c){var u=t[s];if(null===e||"function"!=typeof u)i(e);else{var d=u(r.a({},e),n);Object(o.j)(d)?d.then(function(e){return a._notifyEventProcessors(t,e,n,s+1).then(i)}).catch(c):a._notifyEventProcessors(t,d,n,s+1).then(i).catch(c)}})},t.prototype.setUser=function(t){return this._user=Object(s.b)(t),this._notifyScopeListeners(),this},t.prototype.setTags=function(t){return this._tags=r.a({},this._tags,Object(s.b)(t)),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=r.a({},this._tags,((n={})[t]=Object(s.b)(e),n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=r.a({},this._extra,Object(s.b)(t)),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=r.a({},this._extra,((n={})[t]=Object(s.b)(e),n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=Object(s.b)(t),this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=Object(s.b)(t),this._notifyScopeListeners(),this},t.prototype.setContext=function(t,e){return this._context[t]=e?Object(s.b)(e):void 0,this._notifyScopeListeners(),this},t.clone=function(e){var n=new t;return Object.assign(n,e,{_scopeListeners:[]}),e&&(n._breadcrumbs=r.f(e._breadcrumbs),n._tags=r.a({},e._tags),n._extra=r.a({},e._extra),n._context=r.a({},e._context),n._user=e._user,n._level=e._level,n._fingerprint=e._fingerprint,n._eventProcessors=r.f(e._eventProcessors)),n},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._fingerprint=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=(new Date).getTime()/1e3,i=r.a({timestamp:n},t);return this._breadcrumbs=void 0!==e&&e>=0?r.f(this._breadcrumbs,[Object(s.b)(i)]).slice(-e):r.f(this._breadcrumbs,[Object(s.b)(i)]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},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.prototype.applyToEvent=function(t,e){return this._extra&&Object.keys(this._extra).length&&(t.extra=r.a({},this._extra,t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=r.a({},this._tags,t.tags)),this._user&&Object.keys(this._user).length&&(t.user=r.a({},this._user,t.user)),this._context&&Object.keys(this._context).length&&(t.contexts=r.a({},this._context,t.contexts)),this._level&&(t.level=this._level),this._applyFingerprint(t),t.breadcrumbs=r.f(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(r.f(u(),this._eventProcessors),t,e)},t}();function u(){var t=Object(a.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function d(t){u().push(t)}},function(t,e,n){var r,i;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i),!0,t.exports=o(),!!0){var s=window.Cookies,a=window.Cookies=o();a.noConflict=function(){return window.Cookies=s,a}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in o)o[c]&&(a+="; "+c,!0!==o[c]&&(a+="="+o[c].split(";")[0]));return document.cookie=e+"="+n+a}}function s(t,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=e(a[0]);if(c=(r.read||r)(c,u)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(i[u]=c,t===u)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return s(t,!1)},i.getJSON=function(t){return s(t,!0)},i.remove=function(e,n){o(e,"",t(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}(function(){})})},function(t,e,n){var r=n(11),i=n(12),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},function(t,e,n){var r=n(76),i=n(83),o=n(87);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e,n){var r=n(9)(n(7),"Map");t.exports=r},function(t,e,n){var r=n(100),i=n(107),o=n(109),s=n(110),a=n(111);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(4),i=n(25),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(57),i=n(58),o=n(65),s=RegExp("['’]","g");t.exports=function(t){return function(e){return r(o(i(e).replace(s,"")),t,"")}}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(16))},function(t,e,n){var r=n(69);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(11),i=n(13),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==s||e==a||e==o||e==c}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(74),i=n(26);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(78),i=n(12),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){(function(t){var r=n(7),i=n(79),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,n(39)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(80),i=n(81),o=n(82),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},function(t,e,n){var r=n(88),i=n(135),o=n(143),s=n(4),a=n(144);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},function(t,e,n){var r=n(18),i=n(95),o=n(96),s=n(97),a=n(98),c=n(99);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(112),i=n(12);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},function(t,e,n){var r=n(113),i=n(116),o=n(117),s=1,a=2;t.exports=function(t,e,n,c,u,d){var l=n&s,p=t.length,h=e.length;if(p!=h&&!(l&&h>p))return!1;var f=d.get(t);if(f&&d.get(e))return f==e;var v=-1,m=!0,g=n&a?new r:void 0;for(d.set(t,e),d.set(e,t);++v<p;){var y=t[v],b=e[v];if(c)var _=l?c(b,y,v,e,t,d):c(y,b,v,t,e,d);if(void 0!==_){if(_)continue;m=!1;break}if(g){if(!i(e,function(t,e){if(!o(g,e)&&(y===t||u(y,t,n,c,d)))return g.push(e)})){m=!1;break}}else if(y!==b&&!u(y,b,n,c,d)){m=!1;break}}return d.delete(t),d.delete(e),m}},function(t,e,n){var r=n(13);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var r=n(50),i=n(22);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(4),i=n(30),o=n(137),s=n(10);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(31)(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});t.exports=r},function(t,e,n){var r=n(33),i=n(36),o=n(42);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,e(t,i,o),t)}),n}},function(t,e,n){var r=n(33),i=n(36),o=n(42);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},function(t,e,n){var r=n(147),i=n(31)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=i},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 e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}()},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e,n){var r=n(59),i=n(10),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(s,"")}},function(t,e,n){var r=n(60)({"À":"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"});t.exports=r},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(17),i=n(62),o=n(4),s=n(25),a=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(17),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(66),i=n(67),o=n(10),s=n(68);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?s(t):r(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\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",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",a="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",d="[A-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:"+s+"|"+a+")",p="(?:"+d+"|"+a+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,u].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),v="(?:"+[o,c,u].join("|")+")"+f,m=RegExp([d+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,d,"$"].join("|")+")",p+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,d+l,"$"].join("|")+")",d+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,v].join("|"),"g");t.exports=function(t){return t.match(m)||[]}},function(t,e,n){var r=n(9),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(34),i=n(71),o=n(13),s=n(35),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:a).test(s(t))}},function(t,e,n){var r,i=n(72),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(7)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(75)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},function(t,e,n){var r=n(77),i=n(37),o=n(4),s=n(38),a=n(40),c=n(41),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&s(t),p=!n&&!d&&!l&&c(t),h=n||d||l||p,f=h?r(t.length,String):[],v=f.length;for(var m in t)!e&&!u.call(t,m)||h&&("length"==m||l&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,v))||f.push(m);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(11),i=n(12),o="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(11),i=n(27),o=n(12),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(32),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n(39)(t))},function(t,e,n){var r=n(84),i=n(85),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(86)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(34),i=n(27);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(89),i=n(134),o=n(48);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(43),i=n(45),o=1,s=2;t.exports=function(t,e,n,a){var c=n.length,u=c,d=!a;if(null==t)return!u;for(t=Object(t);c--;){var l=n[c];if(d&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++c<u;){var p=(l=n[c])[0],h=t[p],f=l[1];if(d&&l[2]){if(void 0===h&&!(p in t))return!1}else{var v=new r;if(a)var m=a(h,f,p,t,e,v);if(!(void 0===m?i(f,h,o|s,a,v):m))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(19),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(19);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(19);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(19);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(18);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(18),i=n(28),o=n(29),s=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<s-1)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(101),i=n(18),o=n(28);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(102),i=n(103),o=n(104),s=n(105),a=n(106);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=a,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(20),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(20),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(20),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e,n){var r=n(21);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(21);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(21);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(21);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(43),i=n(46),o=n(118),s=n(122),a=n(129),c=n(4),u=n(38),d=n(41),l=1,p="[object Arguments]",h="[object Array]",f="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,g,y){var b=c(t),_=c(e),w=b?h:a(t),S=_?h:a(e),x=(w=w==p?f:w)==f,E=(S=S==p?f:S)==f,k=w==S;if(k&&u(t)){if(!u(e))return!1;b=!0,x=!1}if(k&&!x)return y||(y=new r),b||d(t)?i(t,e,n,m,g,y):o(t,e,w,n,m,g,y);if(!(n&l)){var T=x&&v.call(t,"__wrapped__"),j=E&&v.call(e,"__wrapped__");if(T||j){var O=T?t.value():t,C=j?e.value():e;return y||(y=new r),g(O,C,n,m,y)}}return!!k&&(y||(y=new r),s(t,e,n,m,g,y))}},function(t,e,n){var r=n(29),i=n(114),o=n(115);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(17),i=n(119),o=n(44),s=n(46),a=n(120),c=n(121),u=1,d=2,l="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Map]",v="[object Number]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",S=r?r.prototype:void 0,x=S?S.valueOf:void 0;t.exports=function(t,e,n,r,S,E,k){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case _:return!(t.byteLength!=e.byteLength||!E(new i(t),new i(e)));case l:case p:case v:return o(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case y:return t==e+"";case f:var T=a;case g:var j=r&u;if(T||(T=c),t.size!=e.size&&!j)return!1;var O=k.get(t);if(O)return O==e;r|=d,k.set(t,e);var C=s(T(t),T(e),r,S,E,k);return k.delete(t),C;case b:if(x)return x.call(t)==x.call(e)}return!1}},function(t,e,n){var r=n(7).Uint8Array;t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(123),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,a,c){var u=n&i,d=r(t),l=d.length;if(l!=r(e).length&&!u)return!1;for(var p=l;p--;){var h=d[p];if(!(u?h in e:o.call(e,h)))return!1}var f=c.get(t);if(f&&c.get(e))return f==e;var v=!0;c.set(t,e),c.set(e,t);for(var m=u;++p<l;){var g=t[h=d[p]],y=e[h];if(s)var b=u?s(y,g,h,e,t,c):s(g,y,h,t,e,c);if(!(void 0===b?g===y||a(g,y,n,s,c):b)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(v=!1)}return c.delete(t),c.delete(e),v}},function(t,e,n){var r=n(124),i=n(126),o=n(26);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(125),i=n(4);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(127),i=n(128),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),function(e){return o.call(t,e)}))}:i;t.exports=a},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(130),i=n(28),o=n(131),s=n(132),a=n(133),c=n(11),u=n(35),d=u(r),l=u(i),p=u(o),h=u(s),f=u(a),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||s&&"[object Set]"!=v(new s)||a&&"[object WeakMap]"!=v(new a))&&(v=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){var r=n(9)(n(7),"DataView");t.exports=r},function(t,e,n){var r=n(9)(n(7),"Promise");t.exports=r},function(t,e,n){var r=n(9)(n(7),"Set");t.exports=r},function(t,e,n){var r=n(9)(n(7),"WeakMap");t.exports=r},function(t,e,n){var r=n(47),i=n(26);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},function(t,e,n){var r=n(45),i=n(136),o=n(140),s=n(30),a=n(47),c=n(48),u=n(22),d=1,l=2;t.exports=function(t,e){return s(t)&&a(e)?c(u(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,d|l)}}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(138),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=s},function(t,e,n){var r=n(139),i=500;t.exports=function(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(29),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(141),i=n(142);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(50),i=n(37),o=n(4),s=n(40),a=n(27),c=n(22);t.exports=function(t,e,n){for(var u=-1,d=(e=r(e,t)).length,l=!1;++u<d;){var p=c(e[u]);if(!(l=null!=t&&n(t,p)))break;t=t[p]}return l||++u!=d?l:!!(d=null==t?0:t.length)&&a(d)&&s(p,d)&&(o(t)||i(t))}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(145),i=n(146),o=n(30),s=n(22);t.exports=function(t){return o(t)?r(s(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(49);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(10),i=n(148);t.exports=function(t){return i(r(t).toLowerCase())}},function(t,e,n){var r=n(149)("toUpperCase");t.exports=r},function(t,e,n){var r=n(150),i=n(51),o=n(152),s=n(10);t.exports=function(t){return function(e){e=s(e);var n=i(e)?o(e):void 0,a=n?n[0]:e.charAt(0),c=n?r(n,1).join(""):e.slice(1);return a[t]()+c}}},function(t,e,n){var r=n(151);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e,n){var r=n(153),i=n(51),o=n(154);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[o,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),d="(?:"+[o+r+"?",r,s,a,n].join("|")+")",l=RegExp(i+"(?="+i+")|"+d+u,"g");t.exports=function(t){return t.match(l)||[]}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],d=!1,l=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):l=-1,u.length&&h())}function h(){if(!d){var t=a(p);d=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,d=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||d||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"FunctionToString",function(){return Gr}),n.d(r,"InboundFilters",function(){return ei});
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const i=new WeakMap,o=t=>"function"==typeof t&&i.has(t),s=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,a=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},c={},u={},d=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${d}--\x3e`,p=new RegExp(`${d}|${l}`),h="$lit$";class f{constructor(t,e){this.parts=[],this.element=e;const n=[],r=[],i=document.createTreeWalker(e.content,133,null,!1);let o=0,s=-1,a=0;const{strings:c,values:{length:u}}=t;for(;a<u;){const t=i.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let r=0;for(let t=0;t<n;t++)v(e[t].name,h)&&r++;for(;r-- >0;){const e=c[a],n=y.exec(e)[2],r=n.toLowerCase()+h,i=t.getAttribute(r);t.removeAttribute(r);const o=i.split(p);this.parts.push({type:"attribute",index:s,name:n,strings:o}),a+=o.length-1}}"TEMPLATE"===t.tagName&&(r.push(t),i.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(d)>=0){const r=t.parentNode,i=e.split(p),o=i.length-1;for(let e=0;e<o;e++){let n,o=i[e];if(""===o)n=g();else{const t=y.exec(o);null!==t&&v(t[2],h)&&(o=o.slice(0,t.index)+t[1]+t[2].slice(0,-h.length)+t[3]),n=document.createTextNode(o)}r.insertBefore(n,t),this.parts.push({type:"node",index:++s})}""===i[o]?(r.insertBefore(g(),t),n.push(t)):t.data=i[o],a+=o}}else if(8===t.nodeType)if(t.data===d){const e=t.parentNode;null!==t.previousSibling&&s!==o||(s++,e.insertBefore(g(),t)),o=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(n.push(t),s--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf(d,e+1));)this.parts.push({type:"node",index:-1}),a++}}else i.currentNode=r.pop()}for(const t of n)t.parentNode.removeChild(t)}}const v=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},m=t=>-1!==t.index,g=()=>document.createComment(""),y=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
class b{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this.__parts)void 0!==t&&t.commit()}_clone(){const t=s?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,r=document.createTreeWalker(t,133,null,!1);let i,o=0,a=0,c=r.nextNode();for(;o<n.length;)if(i=n[o],m(i)){for(;a<i.index;)a++,"TEMPLATE"===c.nodeName&&(e.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=e.pop(),c=r.nextNode());if("node"===i.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(c.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,i.name,i.strings,this.options));o++}else this.__parts.push(void 0),o++;return s&&(document.adoptNode(t),customElements.upgrade(t)),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const _=` ${d} `;class w{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let r=0;r<t;r++){const t=this.strings[r],i=t.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===t.indexOf("--\x3e",i+1);const o=y.exec(t);e+=null===o?t+(n?_:l):t.substr(0,o.index)+o[1]+o[2]+h+o[3]+d}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const S=t=>null===t||!("object"==typeof t||"function"==typeof t),x=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class E{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new k(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(S(t)||!x(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class k{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===c||S(t)&&t===this.value||(this.value=t,o(t)||(this.committer.dirty=!0))}commit(){for(;o(this.value);){const t=this.value;this.value=c,t(this)}this.value!==c&&this.committer.commit()}}class T{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(g()),this.endNode=t.appendChild(g())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=g()),t.__insert(this.endNode=g())}insertAfterPart(t){t.__insert(this.startNode=g()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=c,t(this)}const t=this.__pendingValue;t!==c&&(S(t)?t!==this.value&&this.__commitText(t):t instanceof w?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):x(t)?this.__commitIterable(t):t===u?(this.value=u,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof b&&this.value.template===e)this.value.update(t.values);else{const n=new b(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const i of t)void 0===(n=e[r])&&(n=new T(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(i),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){a(this.startNode.parentNode,t.nextSibling,this.endNode)}}class j{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=c,t(this)}if(this.__pendingValue===c)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=c}}class O extends E{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new C(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class C extends k{}let P=!1;try{const t={get capture(){return P=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class R{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;o(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=c,t(this)}if(this.__pendingValue===c)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=A(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=c}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const A=t=>t&&(P?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const N=new class{handleAttributeExpressions(t,e,n,r){const i=e[0];return"."===i?new O(t,e.slice(1),n).parts:"@"===i?[new R(t,e.slice(1),r.eventContext)]:"?"===i?[new j(t,e.slice(1),n)]:new E(t,e,n).parts}handleTextExpression(t){return new T(t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */function I(t){let e=U.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},U.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(d);return void 0===(n=e.keyString.get(r))&&(n=new f(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const U=new Map,D=new WeakMap;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");const L=(t,...e)=>new w(t,e,"html",N),M=133;function F(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,M,null,!1);let o=H(r),s=r[o],a=-1,c=0;const u=[];let d=null;for(;i.nextNode();){a++;const t=i.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(u.push(t),null===d&&(d=t)),null!==d&&c++;void 0!==s&&s.index===a;)s.index=null!==d?-1:s.index-c,s=r[o=H(r,o)]}u.forEach(t=>t.parentNode.removeChild(t))}const V=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,M,null,!1);for(;n.nextNode();)e++;return e},H=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(m(e))return n}return-1};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const q=(t,e)=>`${t}--${e}`;let B=!0;void 0===window.ShadyCSS?B=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),B=!1);const z=t=>e=>{const n=q(e.type,t);let r=U.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},U.set(n,r));let i=r.stringsArray.get(e.strings);if(void 0!==i)return i;const o=e.strings.join(d);if(void 0===(i=r.keyString.get(o))){const n=e.getTemplateElement();B&&window.ShadyCSS.prepareTemplateDom(n,t),i=new f(e,n),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},W=["html","svg"],$=new Set,Y=(t,e,n)=>{$.add(t);const r=n?n.element:document.createElement("template"),i=e.querySelectorAll("style"),{length:o}=i;if(0===o)return void window.ShadyCSS.prepareTemplateStyles(r,t);const s=document.createElement("style");for(let t=0;t<o;t++){const e=i[t];e.parentNode.removeChild(e),s.textContent+=e.textContent}(t=>{W.forEach(e=>{const n=U.get(q(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),F(t,n)})})})(t);const a=r.content;n?function(t,e,n=null){const{element:{content:r},parts:i}=t;if(null==n)return void r.appendChild(e);const o=document.createTreeWalker(r,M,null,!1);let s=H(i),a=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===n&&(a=V(e),n.parentNode.insertBefore(e,n));-1!==s&&i[s].index===c;){if(a>0){for(;-1!==s;)i[s].index+=a,s=H(i,s);return}s=H(i,s)}}(n,s,a.firstChild):a.insertBefore(s,a.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);const c=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)e.insertBefore(c.cloneNode(!0),e.firstChild);else if(n){a.insertBefore(s,a.firstChild);const t=new Set;t.add(s),F(n,t)}};window.JSCompiler_renameProperty=((t,e)=>t);const G={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},J=(t,e)=>e!==t&&(e==e||t==t),X={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:J},Q=Promise.resolve(!0),Z=1,K=4,tt=8,et=16,nt=32,rt="finalized";class it extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=Q,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=X){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(e){const r=this[t];this[n]=e,this._requestUpdate(t,r)},configurable:!0,enumerable:!0})}static finalize(){const t=Object.getPrototypeOf(this);if(t.hasOwnProperty(rt)||t.finalize(),this[rt]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=J){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||G,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||G.toAttribute)(t,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|nt,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=X){const r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=this._updateState|tt,null==t?this.removeAttribute(i):this.setAttribute(i,t),this._updateState=this._updateState&~tt}}_attributeToProperty(t,e){if(this._updateState&tt)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n._classProperties.get(r)||X;this._updateState=this._updateState|et,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~et}}_requestUpdate(t,e){let n=!0;if(void 0!==t){const r=this.constructor,i=r._classProperties.get(t)||X;r._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==i.reflect||this._updateState&et||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(t,e){return this._requestUpdate(t,e),this.updateComplete}async _enqueueUpdate(){let t,e;this._updateState=this._updateState|K;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{t=n,e=r});try{await n}catch(t){}this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);try{const t=this.performUpdate();null!=t&&await t}catch(t){e(t)}t(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&nt}get _hasRequestedUpdate(){return this._updateState&K}get hasUpdated(){return this._updateState&Z}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let t=!1;const e=this._changedProperties;try{(t=this.shouldUpdate(e))&&this.update(e)}catch(e){throw t=!1,e}finally{this._markUpdated()}t&&(this._updateState&Z||(this._updateState=this._updateState|Z,this.firstUpdated(e)),this.updated(e))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~K}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0)}updated(t){}firstUpdated(t){}}it[rt]=!0;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const ot=(t,e)=>"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}}:Object.assign({},e,{finisher(n){n.createProperty(e.key,t)}}),st=(t,e,n)=>{e.constructor.createProperty(n,t)};function at(t){return(e,n)=>void 0!==n?st(t,e,n):ot(t,e)}const ct="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;Symbol();
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ut=t=>t.flat?t.flat(1/0):function t(e,n=[]){for(let r=0,i=e.length;r<i;r++){const i=e[r];Array.isArray(i)?t(i,n):n.push(i)}return n}(t);class dt extends it{static finalize(){super.finalize.call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){ut(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?ct?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof w&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}dt.finalized=!0,dt.render=((t,e,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,i=D.has(e),o=B&&11===e.nodeType&&!!e.host,s=o&&!$.has(r),c=s?document.createDocumentFragment():e;if(((t,e,n)=>{let r=D.get(e);void 0===r&&(a(e,e.firstChild),D.set(e,r=new T(Object.assign({templateFactory:I},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,c,Object.assign({templateFactory:z(r)},n)),s){const t=D.get(c);D.delete(c);const n=t.value instanceof b?t.value.template:void 0;Y(r,c,n),a(e,e.firstChild),e.appendChild(c),D.set(e,t)}!i&&o&&window.ShadyCSS.styleElement(e.host)});const lt={fromAttribute:t=>document.querySelector(t),toAttribute:(t,e)=>{}};var pt=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ht=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ft extends dt{constructor(){super(...arguments),this.show=!1}firstUpdated(){this.target.addEventListener("animationstart",t=>{t.detail.animation==this.onStart&&(this.show=!0)}),this.target.addEventListener("animationcomplete",t=>{t.detail.animation==this.onComplete&&(this.show=!0)})}createRenderRoot(){return this}render(){return this.show?L`
          <a style="${"width: 100%; height: 100%; position: absolute; z-index: 2147483647"}" href=" ${this.href}" target="_blank"></a>
        `:L`
          <slot></slot>
        `}}pt([at({}),ht("design:type",String)],ft.prototype,"href",void 0),pt([at({type:String,attribute:"on-complete"}),ht("design:type",String)],ft.prototype,"onComplete",void 0),pt([at({type:HTMLElement,converter:lt}),ht("design:type",HTMLElement)],ft.prototype,"target",void 0),pt([at({type:String,attribute:"on-start"}),ht("design:type",String)],ft.prototype,"onStart",void 0),pt([at(),ht("design:type",Boolean)],ft.prototype,"show",void 0);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const vt=(t,e)=>"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}}:Object.assign({},e,{finisher(n){n.createProperty(e.key,t)}}),mt=(t,e,n)=>{e.constructor.createProperty(n,t)};function gt(t){return(e,n)=>void 0!==n?mt(t,e,n):vt(t,e)}_t((t,e)=>t.querySelector(e)),_t((t,e)=>t.querySelectorAll(e));const yt=(t,e,n)=>{Object.defineProperty(e,n,t)},bt=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t});function _t(t){return e=>(n,r)=>{const i={get(){return t(this.renderRoot,e)},enumerable:!0,configurable:!0};return void 0!==r?yt(i,n,r):bt(i,n)}}var wt=n(14),St=n.n(wt),xt=n(3);const Et={fromAttribute:t=>t.split(",").map(t=>t.trim()),toAttribute:(t,e)=>{}};class kt{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,eventTokens:n,extension:r={}}){const i=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},r)));if("app.adjust.com"===this.url.hostname&&"view"===e){const t=239999;this.url.searchParams.append("adgroup",this.getHashedRandom(t)),this.url.searchParams.append("creative",this.getHashedRandom(t));const e=25e4;this.url.searchParams.append("tracker_limit",String(e))}return this.trackInstall(i),this.trackRejectInstall(i),this.trackEventIfExistsEventTokens(n,i),String(this.url)}getHashedRandom(t){const e=Math.floor(Math.random()*Math.floor(t));return St()(String(e))}trackInstall(t){const e=new URLSearchParams(this.mergeAdjustParams({click_id:t,event:"adjust_click",campaign_id:"dummy",tag_id:"dummy"}));this.url.searchParams.append("install_callback",`https://api.adserver.vrizead.com/v1/tracking/adjust/install?${decodeURIComponent(e.toString())}`)}trackRejectInstall(t){const e=new URLSearchParams(this.mergeAdjustParams({click_id:t,rejected:"{rejection_reason}"}));this.url.searchParams.append("rejected_install_callback",`https://api.adserver.vrizead.com/v1/tracking/adjust/reject_install?${decodeURIComponent(e.toString())}`)}mergeAdjustParams(t){return Object.assign(t,{adjust_device_id:"{adid}",idfa:"{idfa}",android_id:"{android_id}",idfv:"{idfv}",ip:"{ip_address}",ua:"{user_agent}"})}trackEventIfExistsEventTokens(t,e){if(!t)return;const n=this.buildEventCallbackKey(t),r=new URLSearchParams({click_id:e,event:"adjust_event",event_name:"{event}",price:"{revenue_float}",campaign_id:"dummy",tag_id:"dummy"});this.url.searchParams.append(n,`https://api.adserver.vrizead.com/v1/tracking/adjust/install?${decodeURIComponent(r.toString())}`)}buildEventCallbackKey(t){return"event_callback_"+t.reduce((t,e)=>t+"_"+e)}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const Tt=new WeakMap,jt=t=>"function"==typeof t&&Tt.has(t),Ot=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Ct=(t,e,n=null)=>{let r=e;for(;r!==n;){const e=r.nextSibling;t.removeChild(r),r=e}},Pt={},Rt={},At=`{{lit-${String(Math.random()).slice(2)}}}`,Nt=`\x3c!--${At}--\x3e`,It=new RegExp(`${At}|${Nt}`),Ut="$lit$";class Dt{constructor(t,e){this.parts=[],this.element=e;let n=-1,r=0;const i=[],o=e=>{const s=e.content,a=document.createTreeWalker(s,133,null,!1);let c=0;for(;a.nextNode();){n++;const e=a.currentNode;if(1===e.nodeType){if(e.hasAttributes()){const i=e.attributes;let o=0;for(let t=0;t<i.length;t++)i[t].value.indexOf(At)>=0&&o++;for(;o-- >0;){const i=t.strings[r],o=Ft.exec(i)[2],s=o.toLowerCase()+Ut,a=e.getAttribute(s).split(It);this.parts.push({type:"attribute",index:n,name:o,strings:a}),e.removeAttribute(s),r+=a.length-1}}"TEMPLATE"===e.tagName&&o(e)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(At)>=0){const o=e.parentNode,s=t.split(It),a=s.length-1;for(let t=0;t<a;t++)o.insertBefore(""===s[t]?Mt():document.createTextNode(s[t]),e),this.parts.push({type:"node",index:++n});""===s[a]?(o.insertBefore(Mt(),e),i.push(e)):e.data=s[a],r+=a}}else if(8===e.nodeType)if(e.data===At){const t=e.parentNode;null!==e.previousSibling&&n!==c||(n++,t.insertBefore(Mt(),e)),c=n,this.parts.push({type:"node",index:n}),null===e.nextSibling?e.data="":(i.push(e),n--),r++}else{let t=-1;for(;-1!==(t=e.data.indexOf(At,t+1));)this.parts.push({type:"node",index:-1})}}};o(e);for(const t of i)t.parentNode.removeChild(t)}}const Lt=t=>-1!==t.index,Mt=()=>document.createComment(""),Ft=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
class Vt{constructor(t,e,n){this._parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this._parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this._parts)void 0!==t&&t.commit()}_clone(){const t=Ot?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=this.template.parts;let n=0,r=0;const i=t=>{const o=document.createTreeWalker(t,133,null,!1);let s=o.nextNode();for(;n<e.length&&null!==s;){const t=e[n];if(Lt(t))if(r===t.index){if("node"===t.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(s.previousSibling),this._parts.push(t)}else this._parts.push(...this.processor.handleAttributeExpressions(s,t.name,t.strings,this.options));n++}else r++,"TEMPLATE"===s.nodeName&&i(s.content),s=o.nextNode();else this._parts.push(void 0),n++}};return i(t),Ot&&(document.adoptNode(t),customElements.upgrade(t)),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */class Ht{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="";for(let n=0;n<t;n++){const t=this.strings[n],r=Ft.exec(t);e+=r?t.substr(0,r.index)+r[1]+r[2]+Ut+r[3]+At:t+Nt}return e+this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const qt=t=>null===t||!("object"==typeof t||"function"==typeof t);class Bt{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new zt(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(null!=t&&(Array.isArray(t)||"string"!=typeof t&&t[Symbol.iterator]))for(const e of t)n+="string"==typeof e?e:String(e);else n+="string"==typeof t?t:String(t)}}return n+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class zt{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===Pt||qt(t)&&t===this.value||(this.value=t,jt(t)||(this.committer.dirty=!0))}commit(){for(;jt(this.value);){const t=this.value;this.value=Pt,t(this)}this.value!==Pt&&this.committer.commit()}}class Wt{constructor(t){this.value=void 0,this._pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(Mt()),this.endNode=t.appendChild(Mt())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t._insert(this.startNode=Mt()),t._insert(this.endNode=Mt())}insertAfterPart(t){t._insert(this.startNode=Mt()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this._pendingValue=t}commit(){for(;jt(this._pendingValue);){const t=this._pendingValue;this._pendingValue=Pt,t(this)}const t=this._pendingValue;t!==Pt&&(qt(t)?t!==this.value&&this._commitText(t):t instanceof Ht?this._commitTemplateResult(t):t instanceof Node?this._commitNode(t):Array.isArray(t)||t[Symbol.iterator]?this._commitIterable(t):t===Rt?(this.value=Rt,this.clear()):this._commitText(t))}_insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}_commitNode(t){this.value!==t&&(this.clear(),this._insert(t),this.value=t)}_commitText(t){const e=this.startNode.nextSibling;t=null==t?"":t,e===this.endNode.previousSibling&&3===e.nodeType?e.data=t:this._commitNode(document.createTextNode("string"==typeof t?t:String(t))),this.value=t}_commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof Vt&&this.value.template===e)this.value.update(t.values);else{const n=new Vt(e,t.processor,this.options),r=n._clone();n.update(t.values),this._commitNode(r),this.value=n}}_commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const i of t)void 0===(n=e[r])&&(n=new Wt(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(i),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){Ct(this.startNode.parentNode,t.nextSibling,this.endNode)}}class $t{constructor(t,e,n){if(this.value=void 0,this._pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this._pendingValue=t}commit(){for(;jt(this._pendingValue);){const t=this._pendingValue;this._pendingValue=Pt,t(this)}if(this._pendingValue===Pt)return;const t=!!this._pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)),this.value=t,this._pendingValue=Pt}}class Yt extends Bt{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new Gt(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Gt extends zt{}let Jt=!1;try{const t={get capture(){return Jt=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class Xt{constructor(t,e,n){this.value=void 0,this._pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this._boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this._pendingValue=t}commit(){for(;jt(this._pendingValue);){const t=this._pendingValue;this._pendingValue=Pt,t(this)}if(this._pendingValue===Pt)return;const t=this._pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),r&&(this._options=Qt(t),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=t,this._pendingValue=Pt}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const Qt=t=>t&&(Jt?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const Zt=new class{handleAttributeExpressions(t,e,n,r){const i=e[0];return"."===i?new Yt(t,e.slice(1),n).parts:"@"===i?[new Xt(t,e.slice(1),r.eventContext)]:"?"===i?[new $t(t,e.slice(1),n)]:new Bt(t,e,n).parts}handleTextExpression(t){return new Wt(t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */function Kt(t){let e=te.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},te.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(At);return void 0===(n=e.keyString.get(r))&&(n=new Dt(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const te=new Map,ee=new WeakMap;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");const ne=(t,...e)=>new Ht(t,e,"html",Zt),re=133;function ie(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,re,null,!1);let o=se(r),s=r[o],a=-1,c=0;const u=[];let d=null;for(;i.nextNode();){a++;const t=i.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(u.push(t),null===d&&(d=t)),null!==d&&c++;void 0!==s&&s.index===a;)s.index=null!==d?-1:s.index-c,s=r[o=se(r,o)]}u.forEach(t=>t.parentNode.removeChild(t))}const oe=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,re,null,!1);for(;n.nextNode();)e++;return e},se=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(Lt(e))return n}return-1};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const ae=(t,e)=>`${t}--${e}`;let ce=!0;void 0===window.ShadyCSS?ce=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),ce=!1);const ue=t=>e=>{const n=ae(e.type,t);let r=te.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},te.set(n,r));let i=r.stringsArray.get(e.strings);if(void 0!==i)return i;const o=e.strings.join(At);if(void 0===(i=r.keyString.get(o))){const n=e.getTemplateElement();ce&&window.ShadyCSS.prepareTemplateDom(n,t),i=new Dt(e,n),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},de=["html","svg"],le=new Set,pe=(t,e,n)=>{le.add(n);const r=t.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(e.element,n);const i=document.createElement("style");for(let t=0;t<r.length;t++){const e=r[t];e.parentNode.removeChild(e),i.textContent+=e.textContent}if((t=>{de.forEach(e=>{const n=te.get(ae(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),ie(t,n)})})})(n),function(t,e,n=null){const{element:{content:r},parts:i}=t;if(null==n)return void r.appendChild(e);const o=document.createTreeWalker(r,re,null,!1);let s=se(i),a=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===n&&(a=oe(e),n.parentNode.insertBefore(e,n));-1!==s&&i[s].index===c;){if(a>0){for(;-1!==s;)i[s].index+=a,s=se(i,s);return}s=se(i,s)}}(e,i,e.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(e.element,n),window.ShadyCSS.nativeShadow){const n=e.element.content.querySelector("style");t.insertBefore(n.cloneNode(!0),t.firstChild)}else{e.element.content.insertBefore(i,e.element.content.firstChild);const t=new Set;t.add(i),ie(e,t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
window.JSCompiler_renameProperty=((t,e)=>t);const he={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},fe=(t,e)=>e!==t&&(e==e||t==t),ve={attribute:!0,type:String,converter:he,reflect:!1,hasChanged:fe},me=Promise.resolve(!0),ge=1,ye=4,be=8,_e=16,we=32;class Se extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=me,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=ve){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(e){const r=this[t];this[n]=e,this.requestUpdate(t,r)},configurable:!0,enumerable:!0})}static finalize(){if(this.hasOwnProperty(JSCompiler_renameProperty("finalized",this))&&this.finalized)return;const t=Object.getPrototypeOf(this);if("function"==typeof t.finalize&&t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=fe){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||he,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||he.toAttribute)(t,n)}initialize(){this._saveInstanceProperties()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|we,this._hasConnectedResolver?(this._hasConnectedResolver(),this._hasConnectedResolver=void 0):this.requestUpdate()}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=ve){const r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=this._updateState|be,null==t?this.removeAttribute(i):this.setAttribute(i,t),this._updateState=this._updateState&~be}}_attributeToProperty(t,e){if(this._updateState&be)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n._classProperties.get(r)||ve;this._updateState=this._updateState|_e,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~_e}}requestUpdate(t,e){let n=!0;if(void 0!==t&&!this._changedProperties.has(t)){const r=this.constructor,i=r._classProperties.get(t)||ve;r._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.set(t,e),!0!==i.reflect||this._updateState&_e||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):n=!1}return!this._hasRequestedUpdate&&n&&this._enqueueUpdate(),this.updateComplete}async _enqueueUpdate(){let t;this._updateState=this._updateState|ye;const e=this._updatePromise;this._updatePromise=new Promise(e=>t=e),await e,this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);const n=this.performUpdate();null!=n&&"function"==typeof n.then&&await n,t(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&we}get _hasRequestedUpdate(){return this._updateState&ye}get hasUpdated(){return this._updateState&ge}performUpdate(){if(this._instanceProperties&&this._applyInstanceProperties(),this.shouldUpdate(this._changedProperties)){const t=this._changedProperties;this.update(t),this._markUpdated(),this._updateState&ge||(this._updateState=this._updateState|ge,this.firstUpdated(t)),this.updated(t)}else this._markUpdated()}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~ye}get updateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0)}updated(t){}firstUpdated(t){}}Se.finalized=!0;
/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
const xe="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ee=Symbol();class ke{constructor(t,e){if(e!==Ee)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){return void 0===this._styleSheet&&(xe?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const Te=t=>new ke(String(t),Ee);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litElementVersions||(window.litElementVersions=[])).push("2.0.1");const je=t=>t.flat?t.flat(1/0):function t(e,n=[]){for(let r=0,i=e.length;r<i;r++){const i=e[r];Array.isArray(i)?t(i,n):n.push(i)}return n}(t);class Oe extends Se{static finalize(){super.finalize(),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){je(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?xe?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof Ht&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}Oe.finalized=!0,Oe.render=((t,e,n)=>{const r=n.scopeName,i=ee.has(e),o=e instanceof ShadowRoot&&ce&&t instanceof Ht,s=o&&!le.has(r),a=s?document.createDocumentFragment():e;if(((t,e,n)=>{let r=ee.get(e);void 0===r&&(Ct(e,e.firstChild),ee.set(e,r=new Wt(Object.assign({templateFactory:Kt},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,a,Object.assign({templateFactory:ue(r)},n)),s){const t=ee.get(a);ee.delete(a),t.value instanceof Vt&&pe(a,t.value.template,r),Ct(e,e.firstChild),e.appendChild(a),ee.set(e,t)}!i&&o&&window.ShadyCSS.styleElement(e.host)});var Ce=n(52),Pe=n.n(Ce),Re=n(4),Ae=n.n(Re),Ne=n(13),Ie=n.n(Ne),Ue=n(53),De=n.n(Ue),Le=n(54),Me=n.n(Le);const Fe=(t,e)=>Ae()(t)?t.map(t=>Fe(t,e)):Ie()(t)?Me()(De()(t,e),t=>Fe(t,e)):t;var Ve=Fe;var He=t=>Ve(t,(t,e)=>Pe()(e));n(55);var qe=new class{constructor({connection:t}){this.connection=t}createTrackingImpression(t){return this.connection.get("/v1/tracking/impression",new URLSearchParams(He(Object.assign({},t))))}createTrackingClickCreative(t,e){return this.createTracking(He({meshName:t,event:"click_creative",action:"img",us:navigator.userAgent,bidId:e}))}createTrackingConversion(t){return this.connection.get("/v1/tracking/vrize/conversion",new URLSearchParams(He({event:"vrize_conversion",action:"img",us:navigator.userAgent,bidId:t})))}createClickTrackingUrl(t){return this.connection.buildUrl("/v1/tracking/click",new URLSearchParams(t))}createViewThroughImpressionTrackingUrl(t){return this.connection.buildUrl("/v1/tracking/view_through_impression",new URLSearchParams(He(Object.assign({},t))))}createActivityTracking(t){return this.connection.post(`/v1/bids/${t.bidId}/activity/${t.name}`,JSON.stringify(He(t)))}createNendTrackingEvent(t,e,n){return this.connection.post(`/v1/nend/bids/${t}/tracking_event/${e}`,JSON.stringify(n))}createTracking(t){return this.connection.get("/v1/tracking",new URLSearchParams(t))}}({connection:new class{constructor(t){this.endpoint=t}post(t,e,n){let r={};return n&&(r={"x-vrizead-cookie":encodeURIComponent(n)}),fetch(`${this.endpoint}${t}`,{body:e,headers:r,mode:"cors",method:"POST",credentials:"include"}).then(t=>{if(!t.ok)throw new Error("Network response was not ok");if(204==t.status)throw new Error(t.headers.get("X-Nobid-Code")||"No displayable Candidate");return t.json()})}get(t,e){return fetch(`${this.endpoint}${t}?${e.toString()}`,{mode:"cors",method:"GET",credentials:"include"}).then(t=>t.json())}buildUrl(t,e){return`${this.endpoint}${t}?${e.toString()}`}}("https://api.adserver.vrizead.com")}),Be=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((r=r.apply(t,e||[])).next())})};class ze extends Error{}class We extends Error{}function $e(t){return Be(this,void 0,void 0,function*(){const e=yield function(){return Be(this,void 0,void 0,function*(){const t=navigator.userAgentData;if(!t)return new We("userAgentData is not found");const e=yield t.getHighEntropyValues(["model","platformVersion"]),n={model:e.model,platformVersion:e.platformVersion};return n})}();if(e instanceof We)return t;const n=function(t){let e;try{e=new URL(t)}catch(t){return new ze("invalid url")}const n=new URLSearchParams(e.search).get("redirect_url");if(!n)return new ze('query paramater "redirect_url" is not found');return Base64.decode(n)}(t);if(n instanceof ze)return t;let r;if(new URL(n).hostname.endsWith("appsflyer.com")){const i=function(t,e){const n=new URL(t);""!==e.model&&n.searchParams.append("af_model",e.model);""!==e.platformVersion&&n.searchParams.append("af_os_version",e.platformVersion);return n.toString()}(n,e);r=function(t,e){const n=Base64.encodeURI(e),r=new URL(t);return r.searchParams.set("redirect_url",n),r.toString()}(t,i)}else r=t;return r})}const Ye={fromAttribute:t=>document.querySelector(t),toAttribute:(t,e)=>{}};var Ge=t=>(class extends t{connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.mraid=window.mraid}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}),Je=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Xe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Qe=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((r=r.apply(t,e||[])).next())})};class Ze extends(Ge(Oe)){constructor(){super(...arguments),this.clickableSide="left",this.width="100%",this.height="100%",this.show=!1}firstUpdated(){this.target.addEventListener("animationstart",t=>{t.detail.animation===this.onStart&&(this.show=!0)}),this.target.addEventListener("animationcomplete",t=>{t.detail.animation===this.onComplete&&(this.show=!0)}),this.target.addEventListener("showClickArea",t=>{this.show=!0}),this.target.addEventListener("hideClickArea",t=>{this.show=!1})}connectedCallback(){const t=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return Qe(this,void 0,void 0,function*(){t.connectedCallback.call(this),this.urlWithClientHints=yield $e(this.url)})}wrap(t,e){return qe.createClickTrackingUrl({event:"click",action:"redirect",ua:navigator.userAgent,redirect_url:Base64.encodeURI(t),bid_id:e})}createRenderRoot(){return this}get clickThroughUrl(){return this.urlWithClientHints}get escapedClickThroughUrl(){return encodeURIComponent(this.clickThroughUrl)}render(){const t=this.trackingMacro?this.trackingMacro+this.escapedClickThroughUrl:this.clickThroughUrl,e=`width: ${this.width}; height: ${this.height}; position: absolute; z-index: 2147483647; bottom: 0px; ${this.clickableSide}: 0px`;return this.show?ne`
          <a style="${e}" href="${t}" target="_top"></a>
        `:ne`
          <slot></slot>
        `}}Je([gt({type:HTMLElement,converter:Ye}),Xe("design:type",HTMLElement)],Ze.prototype,"target",void 0),Je([gt(),Xe("design:type",String)],Ze.prototype,"url",void 0),Je([gt({attribute:"tracking-macro"}),Xe("design:type",String)],Ze.prototype,"trackingMacro",void 0),Je([gt({type:String,attribute:"on-complete"}),Xe("design:type",String)],Ze.prototype,"onComplete",void 0),Je([gt({type:String,attribute:"on-start"}),Xe("design:type",String)],Ze.prototype,"onStart",void 0),Je([gt({type:String,attribute:"clickable-side"}),Xe("design:type",String)],Ze.prototype,"clickableSide",void 0),Je([gt({type:String,attribute:"width"}),Xe("design:type",String)],Ze.prototype,"width",void 0),Je([gt({type:String,attribute:"height"}),Xe("design:type",String)],Ze.prototype,"height",void 0),Je([gt(),Xe("design:type",Boolean)],Ze.prototype,"show",void 0);var Ke=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},tn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class en extends Ze{firstUpdated(){super.firstUpdated()}get clickThroughUrl(){const t=new kt(this.url).build({bidId:this.bidId,trackingEvent:"click",eventTokens:this.eventTokens});return this.wrap(t,this.bidId)}}Ke([gt({attribute:"bid-id"}),tn("design:type",String)],en.prototype,"bidId",void 0),Ke([gt({attribute:"event-tokens",converter:Et}),tn("design:type",Array)],en.prototype,"eventTokens",void 0);var nn=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},rn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class on extends Oe{constructor(){super(...arguments),this.tracked=!1}firstUpdated(){this.target.addEventListener("animationcomplete",t=>{const e=t.detail.animation;this.animation!==e||this.tracked||(this.tracked=!0,this.request())})}get trackingUrl(){return this.url}request(){fetch(this.trackingUrl,{mode:"no-cors",method:"GET"})}wrap(t,e){return qe.createViewThroughImpressionTrackingUrl(JSON.parse(JSON.stringify({event:"view",action:"redirect",ua:navigator.userAgent,redirectUrl:Base64.encodeURI(t),bidId:e,pbBid:this.bid})))}}nn([gt(),rn("design:type",String)],on.prototype,"event",void 0),nn([gt(),rn("design:type",String)],on.prototype,"animation",void 0),nn([gt({type:HTMLElement,converter:Ye}),rn("design:type",HTMLElement)],on.prototype,"target",void 0),nn([gt(),rn("design:type",String)],on.prototype,"url",void 0),nn([gt({attribute:"bid"}),rn("design:type",String)],on.prototype,"bid",void 0);var sn=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},an=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class cn extends on{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new kt(this.url).build({bidId:this.bidId,trackingEvent:"view",eventTokens:this.eventTokens});return this.wrap(t,this.bidId)}}sn([gt({attribute:"bid-id"}),an("design:type",String)],cn.prototype,"bidId",void 0),sn([gt({attribute:"event-tokens",converter:Et}),an("design:type",Array)],cn.prototype,"eventTokens",void 0);const un=(t,e)=>{const n=()=>{"3.0"===t.getVersion()?t.addEventListener("exposureChange",t=>{e(t)}):t.addEventListener("viewableChange",t=>{e(t?100:0)})};"loading"===t.getState()?t.addEventListener("ready",n.bind(void 0)):n()};function dn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fpAk2"),console.warn((new Error).stack)),new Date(NaN))}function ln(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return dn(t).getHours()}function pn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return dn(t).getMinutes()}function hn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return dn(t).getSeconds()}function fn(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function vn(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e=e||{})e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var mn=6e4;function gn(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=dn(t).getTime(),r=fn(e);return new Date(n+r)}(t,-fn(e))}var yn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function bn(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var _n={date:bn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:bn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:bn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},wn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Sn(t){return function(e,n){var r=n||{},i=r.width?String(r.width):t.defaultWidth;return("formatting"===(r.context?String(r.context):"standalone")&&t.formattingValues?t.formattingValues[i]||t.formattingValues[t.defaultFormattingWidth]:t.values[i]||t.values[t.defaultWidth])[t.argumentCallback?t.argumentCallback(e):e]}}function xn(t){return function(e,n){var r=String(e),i=n||{},o=i.width,s=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],a=r.match(s);if(!a)return null;var c,u=a[0],d=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return c="[object Array]"===Object.prototype.toString.call(d)?d.findIndex(function(t){return t.test(r)}):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(d,function(t){return t.test(r)}),c=t.valueCallback?t.valueCallback(c):c,{value:c=i.valueCallback?i.valueCallback(c):c,rest:r.slice(u.length)}}}var En,kn={formatDistance:function(t,e,n){var r;return n=n||{},r="string"==typeof yn[t]?yn[t]:1===e?yn[t].one:yn[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:_n,formatRelative:function(t,e,n,r){return wn[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Sn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Sn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Sn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Sn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Sn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(En={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var n=String(t),r=e||{},i=n.match(En.matchPattern);if(!i)return null;var o=i[0],s=n.match(En.parsePattern);if(!s)return null;var a=En.valueCallback?En.valueCallback(s[0]):s[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:n.slice(o.length)}}),era:xn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:xn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tn(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:fn(i),s=null==n.weekStartsOn?o:fn(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=dn(t),c=a.getUTCDay(),u=(c<s?7:0)+c-s;return a.setUTCDate(a.getUTCDate()-u),a.setUTCHours(0,0,0,0),a}function jn(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=dn(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,s=o&&o.options&&o.options.firstWeekContainsDate,a=null==s?1:fn(s),c=null==i.firstWeekContainsDate?a:fn(i.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,c),u.setUTCHours(0,0,0,0);var d=Tn(u,e),l=new Date(0);l.setUTCFullYear(r,0,c),l.setUTCHours(0,0,0,0);var p=Tn(l,e);return n.getTime()>=d.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function On(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},i=r.locale,o=i&&i.options&&i.options.weekStartsOn,s=null==o?0:fn(o),a=null==r.weekStartsOn?s:fn(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=dn(t),u=fn(e),d=((u%7+7)%7<a?7:0)+u-c.getUTCDay();return c.setUTCDate(c.getUTCDate()+d),c}var Cn=6048e5;function Pn(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=dn(t),r=Tn(n,e).getTime()-function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:fn(i),s=null==n.firstWeekContainsDate?o:fn(n.firstWeekContainsDate),a=jn(t,e),c=new Date(0);return c.setUTCFullYear(a,0,s),c.setUTCHours(0,0,0,0),Tn(c,e)}(n,e).getTime();return Math.round(r/Cn)+1}function Rn(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=dn(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function An(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=dn(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Rn(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Rn(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),Rn(n)}var Nn=6048e5;function In(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=dn(t),r=fn(e),i=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=dn(t),n=Rn(e).getTime()-An(e).getTime();return Math.round(n/Nn)+1}(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}var Un=36e5,Dn=6e4,Ln=1e3,Mn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Fn=/^([+-])(\d{2})(\d{2})?|Z/,Vn=/^([+-])(\d{2})(\d{2})|Z/,Hn=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,qn=/^([+-])(\d{2}):(\d{2})|Z/,Bn=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function zn(t,e,n){var r=e.match(t);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:e.slice(r[0].length)}}function Wn(t,e){var n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*Un+o*Dn+s*Ln),rest:e.slice(n[0].length)}}function $n(t,e){return zn(Mn.anyDigitsSigned,t,e)}function Yn(t,e,n){switch(t){case 1:return zn(Mn.singleDigit,e,n);case 2:return zn(Mn.twoDigits,e,n);case 3:return zn(Mn.threeDigits,e,n);case 4:return zn(Mn.fourDigits,e,n);default:return zn(new RegExp("^\\d{1,"+t+"}"),e,n)}}function Gn(t,e,n){switch(t){case 1:return zn(Mn.singleDigitSigned,e,n);case 2:return zn(Mn.twoDigitsSigned,e,n);case 3:return zn(Mn.threeDigitsSigned,e,n);case 4:return zn(Mn.fourDigitsSigned,e,n);default:return zn(new RegExp("^-?\\d{1,"+t+"}"),e,n)}}function Jn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Xn(t,e){var n,r=e>0,i=r?e:1-e;if(i<=50)n=t||100;else{var o=i+50;n=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return r?n:1-n}var Qn=[31,28,31,30,31,30,31,31,30,31,30,31],Zn=[31,29,31,30,31,30,31,31,30,31,30,31];function Kn(t){return t%400==0||t%4==0&&t%100!=0}var tr={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return t.setUTCFullYear(1===n?10:-9,0,1),t.setUTCHours(0,0,0,0),t}},y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Yn(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Yn(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=jn(t,r);if(n.isTwoDigitYear){var o=Xn(n.year,i);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var s=i>0?n.year:1-n.year;return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}},Y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Yn(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return Yn(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i=t.getUTCFullYear();if(n.isTwoDigitYear){var o=Xn(n.year,i);return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Tn(t,r)}var s=i>0?n.year:1-n.year;return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Tn(t,r)}},R:{priority:130,parse:function(t,e,n,r){return Gn("R"===e?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Rn(i)}},u:{priority:130,parse:function(t,e,n,r){return Gn("u"===e?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return Yn(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return Yn(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}},M:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"M":return zn(Mn.month,t,i);case"MM":return Yn(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}},L:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"L":return zn(Mn.month,t,i);case"LL":return Yn(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return zn(Mn.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Tn(function(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=dn(t),i=fn(e),o=Pn(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(t,n,r),r)}},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return zn(Mn.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Rn(In(t,n,r),r)}},d:{priority:90,parse:function(t,e,n,r){switch(e){case"d":return zn(Mn.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Yn(e.length,t)}},validate:function(t,e,n){var r=Kn(t.getUTCFullYear()),i=t.getUTCMonth();return r?e>=1&&e<=Zn[i]:e>=1&&e<=Qn[i]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}},D:{priority:90,parse:function(t,e,n,r){switch(e){case"D":case"DD":return zn(Mn.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Yn(e.length,t)}},validate:function(t,e,n){return Kn(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=On(t,n,r)).setUTCHours(0,0,0,0),t}},e:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Yn(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=On(t,n,r)).setUTCHours(0,0,0,0),t}},c:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Yn(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=On(t,n,r)).setUTCHours(0,0,0,0),t}},i:{priority:90,parse:function(t,e,n,r){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Yn(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return(t=function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fn(e);n%7==0&&(n-=7);var r=dn(t),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(t,n,r)).setUTCHours(0,0,0,0),t}},a:{priority:80,parse:function(t,e,n,r){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(Jn(n),0,0,0),t}},b:{priority:80,parse:function(t,e,n,r){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(Jn(n),0,0,0),t}},B:{priority:80,parse:function(t,e,n,r){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(Jn(n),0,0,0),t}},h:{priority:70,parse:function(t,e,n,r){switch(e){case"h":return zn(Mn.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):i||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return zn(Mn.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t}},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return zn(Mn.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return zn(Mn.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t}},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return zn(Mn.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t}},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return zn(Mn.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Yn(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t}},S:{priority:30,parse:function(t,e,n,r){return Yn(e.length,t,function(t){return Math.floor(t*Math.pow(10,3-e.length))})},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t}},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return Wn(Fn,t);case"XX":return Wn(Vn,t);case"XXXX":return Wn(Hn,t);case"XXXXX":return Wn(Bn,t);case"XXX":default:return Wn(qn,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)}},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return Wn(Fn,t);case"xx":return Wn(Vn,t);case"xxxx":return Wn(Hn,t);case"xxxxx":return Wn(Bn,t);case"xxx":default:return Wn(qn,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)}},t:{priority:40,parse:function(t,e,n,r){return $n(t)},set:function(t,e,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:{priority:20,parse:function(t,e,n,r){return $n(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]}}},er=["D","DD","YY","YYYY"];function nr(t){return-1!==er.indexOf(t)}function rr(t){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+t+"` token; see: https://git.io/fxCyr")}var ir=10,or=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sr=/^'(.*?)'?$/,ar=/''/g,cr=/\S/;function ur(t,e,n,r){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var i=String(t),o=String(e),s=r||{},a=s.locale||kn;if(!a.match)throw new RangeError("locale must contain match property");var c=a.options&&a.options.firstWeekContainsDate,u=null==c?1:fn(c),d=null==s.firstWeekContainsDate?u:fn(s.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=a.options&&a.options.weekStartsOn,p=null==l?0:fn(l),h=null==s.weekStartsOn?p:fn(s.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===i?dn(n):new Date(NaN);var f,v={firstWeekContainsDate:d,weekStartsOn:h,locale:a},m=[{priority:ir,set:dr,index:0}],g=o.match(or);for(f=0;f<g.length;f++){var y=g[f];!s.awareOfUnicodeTokens&&nr(y)&&rr(y);var b=y[0],_=tr[b];if(_){var w=_.parse(i,y,a.match,v);if(!w)return new Date(NaN);m.push({priority:_.priority,set:_.set,validate:_.validate,value:w.value,index:m.length}),i=w.rest}else{if("''"===y?y="'":"'"===b&&(y=y.match(sr)[1].replace(ar,"'")),0!==i.indexOf(y))return new Date(NaN);i=i.slice(y.length)}}if(i.length>0&&cr.test(i))return new Date(NaN);var S=m.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,n){return n.indexOf(t)===e}).map(function(t){return m.filter(function(e){return e.priority===t}).reverse()}).map(function(t){return t[0]}),x=dn(n);if(isNaN(x))return new Date(NaN);var E=gn(x,function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();e.setSeconds(0,0);var r=e.getTime()%mn;return n*mn+r}(x)),k={};for(f=0;f<S.length;f++){var T=S[f];if(T.validate&&!T.validate(E,T.value,v))return new Date(NaN);var j=T.set(E,k,T.value,v);j[0]?(E=j[0],vn(k,j[1])):E=j}return E}function dr(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}const lr={fromAttribute:t=>ur(t,"HH:mm:ss",new Date),toAttribute:(t,e)=>{}};var pr=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},hr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fr=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((r=r.apply(t,e||[])).next())})};class vr extends(Ge(Oe)){constructor(){super(...arguments),this.counter=0}firstUpdated(){this.duration=1e3*hn(this.offset)+60*pn(this.offset)*1e3+60*ln(this.offset)*60*1e3,this.timer=window.setInterval(this.increment.bind(this),50),un(this.mraid,t=>{this.inView=t>50})}connectedCallback(){const t=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return fr(this,void 0,void 0,function*(){t.connectedCallback.call(this),this.urlWithClientHints=yield $e(this.url)})}increment(){this.inView&&this.counter++,50*this.counter>=this.duration&&(this.request(),clearTimeout(this.timer))}wrap(t,e){return qe.createViewThroughImpressionTrackingUrl(JSON.parse(JSON.stringify({event:"view",action:"redirect",ua:navigator.userAgent,redirectUrl:Base64.encodeURI(t),bidId:e,pbBid:this.bid})))}get trackingUrl(){return this.urlWithClientHints}request(){fetch(this.trackingUrl,{mode:"no-cors",method:"GET"})}}pr([gt(),hr("design:type",String)],vr.prototype,"url",void 0),pr([gt({type:Date,converter:lr}),hr("design:type",Date)],vr.prototype,"offset",void 0),pr([gt({attribute:"bid"}),hr("design:type",String)],vr.prototype,"bid",void 0);var mr=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class yr extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new kt(this.url).build({bidId:this.bidId,trackingEvent:"view",eventTokens:this.eventTokens});return this.wrap(t,this.bidId)}}mr([gt({attribute:"bid-id"}),gr("design:type",String)],yr.prototype,"bidId",void 0),mr([gt({attribute:"event-tokens",converter:Et}),gr("design:type",Array)],yr.prototype,"eventTokens",void 0);const br={fromAttribute:t=>JSON.parse(t),toAttribute:(t,e)=>{}};var _r=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},wr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Sr extends Oe{constructor(){super(...arguments),this.tracked=!1}firstUpdated(){this.target.addEventListener("animationcomplete",t=>{const e=t.detail.animation;this.animation!==e||this.tracked||(this.tracked=!0,this.request())})}wrap(t){return qe.createViewThroughImpressionTrackingUrl(JSON.parse(JSON.stringify(Object.assign({event:"view",action:"redirect",ua:navigator.userAgent,redirectUrl:Base64.encodeURI(t),bidId:this.bidId,pbBid:this.bid},this.params))))}get clickThroughUrl(){const t=new URL(this.trackingUrl);for(const e in this.trackingParams){const n=this.trackingParams[e].replace("{click_id}",this.clickId);t.searchParams.append(e,n)}return this.wrap(String(t))}get clickId(){return Base64.encodeURI(JSON.stringify({bidId:this.bidId,trackingEvent:"view"}))}request(){fetch(this.clickThroughUrl,{mode:"no-cors",method:"GET"})}}_r([gt({attribute:"bid-id"}),wr("design:type",String)],Sr.prototype,"bidId",void 0),_r([gt({attribute:"bid"}),wr("design:type",String)],Sr.prototype,"bid",void 0),_r([gt({attribute:"tracking-url"}),wr("design:type",String)],Sr.prototype,"trackingUrl",void 0),_r([gt({attribute:"tracking-params",converter:br}),wr("design:type",Object)],Sr.prototype,"trackingParams",void 0),_r([gt({attribute:"params",converter:br}),wr("design:type",Object)],Sr.prototype,"params",void 0),_r([gt(),wr("design:type",String)],Sr.prototype,"event",void 0),_r([gt(),wr("design:type",String)],Sr.prototype,"animation",void 0),_r([gt({type:HTMLElement,converter:Ye}),wr("design:type",HTMLElement)],Sr.prototype,"target",void 0),_r([gt(),wr("design:type",String)],Sr.prototype,"url",void 0);class xr{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,extension:n={}}){const r=this.url,i=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},n)));return decodeURIComponent(String(r)).replace("{clickid}",i)}}var Er=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class kr extends Ze{firstUpdated(){super.firstUpdated()}get clickThroughUrl(){const t=new xr(this.url).build({bidId:this.bidId,trackingEvent:"click"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Er("design:type",String)],kr.prototype,"bidId",void 0);var Tr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class jr extends on{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new xr(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Tr("design:type",String)],jr.prototype,"bidId",void 0);var Or=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Cr extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new xr(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Or("design:type",String)],Cr.prototype,"bidId",void 0);class Pr{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,afSiteId:n,afSubSiteId:r,extension:i={}}){const o=this.url,s=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},i)));return this.appendSiteId(n),this.appendSubSiteId(r),decodeURIComponent(String(o)).replace("{clickid}",s)}appendSiteId(t){const e=St()(t);this.url.searchParams.append("af_siteid",e.slice(0,24))}appendSubSiteId(t){const e=St()(t);this.url.searchParams.append("af_sub_siteid",e.slice(0,32))}}var Rr=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Ar=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Nr extends Ze{firstUpdated(){super.firstUpdated()}get clickThroughUrl(){const t=new Pr(this.url).build({bidId:this.bidId,trackingEvent:"click",afSiteId:this.afSiteId,afSubSiteId:this.afSubSiteId});return this.wrap(t,this.bidId)}}Rr([gt({attribute:"bid-id"}),Ar("design:type",String)],Nr.prototype,"bidId",void 0),Rr([gt({attribute:"af-site-id"}),Ar("design:type",String)],Nr.prototype,"afSiteId",void 0),Rr([gt({attribute:"af-sub-site-id"}),Ar("design:type",String)],Nr.prototype,"afSubSiteId",void 0);var Ir=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Ur=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Dr extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new Pr(this.url).build({bidId:this.bidId,trackingEvent:"view",afSiteId:this.afSiteId,afSubSiteId:this.afSubSiteId});return this.wrap(t,this.bidId)}}Ir([gt({attribute:"bid-id"}),Ur("design:type",String)],Dr.prototype,"bidId",void 0),Ir([gt({attribute:"af-site-id"}),Ur("design:type",String)],Dr.prototype,"afSiteId",void 0),Ir([gt({attribute:"af-sub-site-id"}),Ur("design:type",String)],Dr.prototype,"afSubSiteId",void 0);var Lr=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Mr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const Fr=t=>"banner"===t?10:"model"===t?1:10;class Vr extends Oe{constructor(){super(...arguments),this.front="model"}render(){const t=screen.width<screen.height?screen.width:screen.height,e=Te(`${t}px`);return ne`
      <style>
        img {
          position: fixed;
          z-index: ${Fr(this.front)};
          cursor: pointer;
          pointer-events: auto;
          left: 50%;
          transform: translateX(-50%);
          bottom: 0px;
          height: auto;
          width: ${e};
        }
      </style>

      <a href="${this.href}" target="_top">
        <img src="${this.src}" />
      </a>
    `}}Lr([gt(),Mr("design:type",String)],Vr.prototype,"front",void 0),Lr([gt(),Mr("design:type",String)],Vr.prototype,"src",void 0),Lr([gt(),Mr("design:type",String)],Vr.prototype,"href",void 0);var Hr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class qr extends vr{firstUpdated(){super.firstUpdated()}request(){this.appendChild(this.target.content.cloneNode(!0))}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({type:HTMLElement,converter:Ye}),Hr("design:type",HTMLTemplateElement)],qr.prototype,"target",void 0);var Br=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},zr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Wr extends(Ge(Oe)){firstUpdated(){const t=this.clickThroughMacro?this.clickThroughMacro+this.escapedClickThroughUrl:this.clickThroughUrl;this.target.addEventListener("clickthrough",()=>{this.mraid.open(t)})}wrap(t){return qe.createClickTrackingUrl(Object.assign({event:"click",action:"redirect",ua:navigator.userAgent,redirect_url:Base64.encodeURI(t),bid_id:this.bidId},this.params))}get clickThroughUrl(){const t=new URL(this.trackingUrl);for(const e in this.trackingParams){const n=this.trackingParams[e].replace("{click_id}",this.clickId);t.searchParams.append(e,n)}return this.wrap(String(t))}get escapedClickThroughUrl(){return encodeURIComponent(this.clickThroughUrl)}get clickId(){return Base64.encodeURI(JSON.stringify({bidId:this.bidId,trackingEvent:"click"}))}}Br([gt({type:HTMLElement,converter:Ye}),zr("design:type",HTMLElement)],Wr.prototype,"target",void 0),Br([gt({attribute:"bid-id"}),zr("design:type",String)],Wr.prototype,"bidId",void 0),Br([gt({attribute:"tracking-url"}),zr("design:type",String)],Wr.prototype,"trackingUrl",void 0),Br([gt({attribute:"tracking-params",converter:br}),zr("design:type",Object)],Wr.prototype,"trackingParams",void 0),Br([gt({attribute:"click-through-macro"}),zr("design:type",String)],Wr.prototype,"clickThroughMacro",void 0),Br([gt({attribute:"params",converter:br}),zr("design:type",Object)],Wr.prototype,"params",void 0);var $r,Yr=n(0),Gr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){$r=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry__?this.__sentry_original__:this;return $r.apply(n,t)}},t.id="FunctionToString",t}(),Jr=n(23),Xr=n(163),Qr=n(159),Zr=n(2),Kr=n(8),ti=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ei=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Object(Jr.b)(function(e){var n=Object(Xr.a)();if(!n)return e;var r=n.getIntegration(t);if(r){var i=n.getClient(),o=i?i.getOptions():{},s=r._mergeOptions(o);if(r._shouldDropEvent(e,s))return null}return e})},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(Qr.a.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(Zr.d)(t)),!0):this._isIgnoredError(t,e)?(Qr.a.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(Zr.d)(t)),!0):this._isBlacklistedUrl(t,e)?(Qr.a.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+Object(Zr.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isWhitelistedUrl(t,e)&&(Qr.a.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+Object(Zr.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(void 0===e&&(e={}),!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}},t.prototype._isIgnoredError=function(t,e){var n=this;return void 0===e&&(e={}),!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some(function(t){return e.ignoreErrors.some(function(e){return n._isMatchingPattern(t,e)})})},t.prototype._isBlacklistedUrl=function(t,e){var n=this;if(void 0===e&&(e={}),!e.blacklistUrls||!e.blacklistUrls.length)return!1;var r=this._getEventFilterUrl(t);return!!r&&e.blacklistUrls.some(function(t){return n._isMatchingPattern(r,t)})},t.prototype._isWhitelistedUrl=function(t,e){var n=this;if(void 0===e&&(e={}),!e.whitelistUrls||!e.whitelistUrls.length)return!0;var r=this._getEventFilterUrl(t);return!r||e.whitelistUrls.some(function(t){return n._isMatchingPattern(r,t)})},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{blacklistUrls:Yr.f(this._options.blacklistUrls||[],t.blacklistUrls||[]),ignoreErrors:Yr.f(this._options.ignoreErrors||[],t.ignoreErrors||[],ti),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:Yr.f(this._options.whitelistUrls||[],t.whitelistUrls||[])}},t.prototype._isMatchingPattern=function(t,e){return Object(Kr.g)(e)?e.test(t):"string"==typeof e&&t.includes(e)},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values[0],n=e.type,r=e.value;return[""+r,n+": "+r]}catch(e){return Qr.a.error("Cannot extract message for event "+Object(Zr.d)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e[e.length-1].filename}if(t.exception){var n=t.exception.values[0].stacktrace.frames;return n[n.length-1].filename}return null}catch(e){return Qr.a.error("Cannot extract url for event "+Object(Zr.d)(t)),null}},t.id="InboundFilters",t}();var ni=n(5),ri=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,Object.setPrototypeOf(r,n.prototype),r}return Yr.c(e,t),e}(Error),ii=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,oi=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,r=e.path,i=e.pass,o=e.port,s=e.projectId;return e.protocol+"://"+e.user+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+s},t.prototype._fromString=function(t){var e=ii.exec(t);if(!e)throw new ri("Invalid Dsn");var n=Yr.e(e.slice(1),6),r=n[0],i=n[1],o=n[2],s=void 0===o?"":o,a=n[3],c=n[4],u=void 0===c?"":c,d="",l=n[5],p=l.split("/");p.length>1&&(d=p.slice(0,-1).join("/"),l=p.pop()),Object.assign(this,{host:a,pass:s,path:d,projectId:l,port:u,protocol:r,user:i})},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(e){if(!t[e])throw new ri("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new ri("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new ri("Invalid Dsn")},t}(),si=function(){function t(t){this.dsn=t,this._dsnObject=new oi(t)}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+Object(ni.d)(t)},t.prototype._getBaseUrl=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},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,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+(new Date).getTime()),r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this._getBaseUrl()+(e.path?"/"+e.path:"")+"/api/embed/error-page/",r=[];for(var i in r.push("dsn="+e.toString()),t)if("user"===i){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(i)+"="+encodeURIComponent(t[i]));return r.length?n+"?"+r.join("&"):n},t}();function ai(t,e){return void 0===e&&(e=0),0===e?t:t.length<=e?t:t.substr(0,e)+"..."}function ci(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function ui(t,e){if(void 0===e&&(e=40),!t.length)return"[object has no keys]";if(t[0].length>=e)return ai(t[0],e);for(var n=t.length;n>0;n--){var r=t.slice(0,n).join(", ");if(!(r.length>e))return n===t.length?r:ai(r,e)}return""}var di=n(158),li=[];function pi(t){var e={};return function(t){var e=t.defaultIntegrations&&Yr.f(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var i=n.map(function(t){return t.name}),o=[];e.forEach(function(t){-1===i.indexOf(t.name)&&-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))}),n.forEach(function(t){-1===o.indexOf(t.name)&&(r.push(t),o.push(t.name))})}else{if("function"!=typeof n)return Yr.f(e);r=n(e),r=Array.isArray(r)?r:[r]}return r}(t).forEach(function(t){e[t.name]=t,function(t){-1===li.indexOf(t.name)&&(t.setupOnce(Jr.b,Xr.a),li.push(t.name),Qr.a.log("Integration installed: "+t.name))}(t)}),e}var hi,fi=function(){function t(t,e){this._processing=!1,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new oi(e.dsn)),this._integrations=pi(this._options)}return t.prototype.captureException=function(t,e,n){var r=this,i=e&&e.event_id;return this._processing=!0,this._getBackend().eventFromException(t,e).then(function(t){return r._processEvent(t,e,n)}).then(function(t){i=t&&t.event_id,r._processing=!1}).catch(function(t){Qr.a.error(t),r._processing=!1}),i},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id;return this._processing=!0,(Object(Kr.f)(t)?this._getBackend().eventFromMessage(""+t,e,n):this._getBackend().eventFromException(t,n)).then(function(t){return i._processEvent(t,n,r)}).then(function(t){o=t&&t.event_id,i._processing=!1}).catch(function(t){Qr.a.error(t),i._processing=!1}),o},t.prototype.captureEvent=function(t,e,n){var r=this,i=e&&e.event_id;return this._processing=!0,this._processEvent(t,e,n).then(function(t){i=t&&t.event_id,r._processing=!1}).catch(function(t){Qr.a.error(t),r._processing=!1}),i},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){return Yr.b(this,void 0,void 0,function(){var e,n;return Yr.d(this,function(r){switch(r.label){case 0:return[4,this._isClientProcessing(t)];case 1:return e=r.sent(),this._processingInterval&&clearInterval(this._processingInterval),[4,this._getBackend().getTransport().close(t)];case 2:return n=r.sent(),[2,e&&n]}})})},t.prototype.close=function(t){return Yr.b(this,void 0,void 0,function(){var e;return Yr.d(this,function(n){switch(n.label){case 0:return[4,this.flush(t)];case 1:return e=n.sent(),this.getOptions().enabled=!1,[2,e]}})})},t.prototype.getIntegrations=function(){return this._integrations||{}},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return Qr.a.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._isClientProcessing=function(t){return Yr.b(this,void 0,void 0,function(){var e=this;return Yr.d(this,function(n){return[2,new Promise(function(n){var r=0;e._processingInterval&&clearInterval(e._processingInterval),e._processingInterval=setInterval(function(){e._processing?(r+=1,t&&r>=t&&n(!1)):n(!0)},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.getOptions(),i=r.environment,o=r.release,s=r.dist,a=r.maxValueLength,c=void 0===a?250:a,u=Yr.a({},t);void 0===u.environment&&void 0!==i&&(u.environment=i),void 0===u.release&&void 0!==o&&(u.release=o),void 0===u.dist&&void 0!==s&&(u.dist=s),u.message&&(u.message=ai(u.message,c));var d=u.exception&&u.exception.values&&u.exception.values[0];d&&d.value&&(d.value=ai(d.value,c));var l=u.request;l&&l.url&&(l.url=ai(l.url,c)),void 0===u.event_id&&(u.event_id=Object(Zr.g)()),this._addIntegrations(u.sdk);var p=di.a.resolve(u);return e&&(p=e.applyToEvent(u,n)),p},t.prototype._addIntegrations=function(t){var e=Object.keys(this._integrations);t&&e.length>0&&(t.integrations=e)},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,s=i.sampleRate;return this._isEnabled()?"number"==typeof s&&Math.random()>s?di.a.reject("This event has been sampled, will not send event."):new di.a(function(i,s){r._prepareEvent(t,n,e).then(function(t){if(null!==t){var n=t;try{if(e&&e.data&&!0===e.data.__sentry__||!o)return r._getBackend().sendEvent(n),void i(n);var a=o(t,e);if(void 0===a)Qr.a.error("`beforeSend` method has to return `null` or a valid event.");else if(Object(Kr.j)(a))r._handleAsyncBeforeSend(a,i,s);else{if(null===(n=a))return Qr.a.log("`beforeSend` returned `null`, will not send event."),void i(null);r._getBackend().sendEvent(n),i(n)}}catch(t){r.captureException(t,{data:{__sentry__:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}}else s("An event processor returned null, will not send event.")})}):di.a.reject("SDK not enabled, will not send event.")},t.prototype._handleAsyncBeforeSend=function(t,e,n){var r=this;t.then(function(t){null!==t?(r._getBackend().sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")}).catch(function(t){n("beforeSend rejected with "+t)})},t}();!function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(hi||(hi={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(hi||(hi={}));var vi,mi=function(){function t(){}return t.prototype.sendEvent=function(t){return Yr.b(this,void 0,void 0,function(){return Yr.d(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:hi.Skipped})]})})},t.prototype.close=function(t){return Yr.b(this,void 0,void 0,function(){return Yr.d(this,function(t){return[2,Promise.resolve(!0)]})})},t}(),gi=function(){function t(t){this._options=t,this._options.dsn||Qr.a.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype._setupTransport=function(){return new mi},t.prototype.eventFromException=function(t,e){throw new ri("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new ri("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).catch(function(t){Qr.a.error("Error while sending event: "+t)})},t.prototype.getTransport=function(){return this._transport},t}();function yi(){if(!("fetch"in Object(Zr.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function bi(){if(!yi())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(vi||(vi={})),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;case"log":default:return t.Log}}}(vi||(vi={}));
/**
 * TraceKit - Cross brower stack traces
 *
 * This was originally forked from github.com/occ/TraceKit, but has since been
 * largely modified and is now maintained as part of Sentry JS SDK.
 *
 * NOTE: Last merge with upstream repository
 * Jul 11,2018 - #f03357c
 *
 * https://github.com/csnover/TraceKit
 * @license MIT
 * @namespace TraceKit
 */
var _i=Object(Zr.e)(),wi={report:!1,collectWindowErrors:!1,computeStackTrace:!1,linesOfContext:!1},Si="?",xi=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Ei(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ki(){return"undefined"==typeof document||null==document.location?"":document.location.href}wi.report=function(){var t,e,n=[],r=null,i=null;function o(t,e,r){var i=null;if(!e||wi.collectWindowErrors){for(var o in n)if(Ei(n,o))try{n[o](t,e,r)}catch(t){i=t}if(i)throw i}}function s(e,n,r,s,a){var u=null;if(a=Object(Kr.d)(a)?a.error:a,e=Object(Kr.d)(e)?e.message:e,i)wi.computeStackTrace.augmentStackTraceWithInitialElement(i,n,r,e),c();else if(a&&Object(Kr.c)(a))(u=wi.computeStackTrace(a)).mechanism="onerror",o(u,!0,a);else{var d,l={url:n,line:r,column:s},p=e;if("[object String]"==={}.toString.call(e)){var h=e.match(xi);h&&(d=h[1],p=h[2])}l.func=Si,l.context=null,o(u={name:d,message:p,mode:"onerror",mechanism:"onerror",stack:[Yr.a({},l,{url:l.url||ki()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=wi.computeStackTrace(e);n.mechanism="onunhandledrejection",o(n,!0,e)}function c(){var t=i,e=r;i=null,r=null,o(t,!1,e)}function u(t){if(i){if(r===t)return;c()}var e=wi.computeStackTrace(t);throw i=e,r=t,setTimeout(function(){r===t&&c()},e.incomplete?2e3:0),t}return u.subscribe=function(t){n.push(t)},u.installGlobalHandler=function(){!0!==e&&(t=_i.onerror,_i.onerror=s,e=!0)},u.installGlobalUnhandledRejectionHandler=function(){_i.onunhandledrejection=a},u}(),wi.computeStackTrace=function(){function t(t){if(!t.stack)return null;for(var e,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=t.stack.split("\n"),d=[],l=/^(.*) is undefined$/.exec(t.message),p=0,h=u.length;p<h;++p){if(n=i.exec(u[p])){var f=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=c.exec(n[2]))&&(n[2]=e[1]),r={url:f?null:n[2],func:n[1]||Si,args:f?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=s.exec(u[p]))r={url:n[2],func:n[1]||Si,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=o.exec(u[p])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=a.exec(n[3]))?n[3]=e[1]:0!==p||n[5]||void 0===t.columnNumber||(d[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||Si,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Si),r.context=null,d.push(r)}return d.length?(d[0]&&d[0].line&&!d[0].column&&l&&(d[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:d}):null}function e(t,e,n,r){var i={url:e,line:n};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=Si),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,i){for(var o,s,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],u={},d=!1,l=n.caller;l&&!d;l=l.caller)if(l!==r&&l!==wi.report){if(s={url:null,func:Si,args:[],line:null,column:null},l.name?s.func=l.name:(o=a.exec(l.toString()))&&(s.func=o[1]),void 0===s.func)try{s.func=o.input.substring(0,o.input.indexOf("{"))}catch(t){}u[""+l]?d=!0:u[""+l]=!0,c.push(s)}i&&c.splice(0,i);var p={mode:"callers",name:t.name,message:t.message,stack:c};return e(p,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),p}function r(e,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var e=t.stacktrace;if(e){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=e.split("\n"),s=[],a=0;a<o.length;a+=2){var c=null;(n=r.exec(o[a]))?c={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=i.exec(o[a]))&&(c={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),c&&(!c.func&&c.line&&(c.func=Si),c.line&&(c.context=null),c.context||(c.context=[o[a+1]]),s.push(c))}return s.length?{mode:"stacktrace",name:t.name,message:t.message,stack:s}:null}}(e))return i}catch(t){}try{if(i=t(e))return i}catch(t){}try{if(i=function(t){var e=t.message.split("\n");if(e.length<4)return null;var n,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,s=[],a=_i&&_i.document&&_i.document.getElementsByTagName("script"),c=[];for(var u in a)Ei(a,u)&&!a[u].src&&c.push(a[u]);for(var d=2;d<e.length;d+=2){var l=null;(n=r.exec(e[d]))?l={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=i.exec(e[d]))?l={url:n[3],func:n[4],args:[],line:+n[1],column:null}:(n=o.exec(e[d]))&&(l={url:ki().replace(/#.*$/,""),func:"",args:[],line:n[1],column:null}),l&&(l.func||(l.func=Si),l.context=[e[d+1]],s.push(l))}return s.length?{mode:"multiline",name:t.name,message:e[0],stack:s}:null}(e))return i}catch(t){}try{if(i=n(e,r+1))return i}catch(t){}return{original:e,name:e.name,message:e.message,mode:"failed"}}return r.augmentStackTraceWithInitialElement=e,r.computeStackTraceFromStackProp=t,r}(),wi.collectWindowErrors=!0,wi.linesOfContext=11;var Ti=wi.report.subscribe,ji=wi.report.installGlobalHandler,Oi=wi.report.installGlobalUnhandledRejectionHandler,Ci=wi.computeStackTrace,Pi=50;function Ri(t){var e=Ni(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 Ai(t){return{exception:{values:[Ri(t)]}}}function Ni(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return(n.includes("captureMessage")||n.includes("captureException"))&&(e=e.slice(1)),r.includes("sentryWrapped")&&(e=e.slice(0,-1)),e.map(function(t){return{colno:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:t.line}}).slice(0,Pi).reverse()}var Ii=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){return Yr.b(this,void 0,void 0,function(){var e=this;return Yr.d(this,function(n){return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then(function(){return Yr.b(e,void 0,void 0,function(){return Yr.d(this,function(e){return[2,this.remove(t)]})})}).catch(function(){return Yr.b(e,void 0,void 0,function(){return Yr.d(this,function(e){return[2,this.remove(t).catch(function(){})]})})}),[2,t]):[2,Promise.reject(new ri("Not adding Promise due to buffer limit reached."))]})})},t.prototype.remove=function(t){return Yr.b(this,void 0,void 0,function(){return Yr.d(this,function(e){return[2,this._buffer.splice(this._buffer.indexOf(t),1)[0]]})})},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){return Yr.b(this,void 0,void 0,function(){var e=this;return Yr.d(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){t&&t>0&&n(!1)},t);Promise.all(e._buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),Ui=function(){function t(t){this.options=t,this._buffer=new Ii(30),this.url=new si(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){return Yr.b(this,void 0,void 0,function(){return Yr.d(this,function(t){throw new ri("Transport Class has to implement `sendEvent` method")})})},t.prototype.close=function(t){return Yr.b(this,void 0,void 0,function(){return Yr.d(this,function(e){return[2,this._buffer.drain(t)]})})},t}(),Di=Object(Zr.e)(),Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yr.c(e,t),e.prototype.sendEvent=function(t){return Yr.b(this,void 0,void 0,function(){var e;return Yr.d(this,function(n){return e={body:JSON.stringify(t),method:"POST",referrerPolicy:bi()?"origin":""},[2,this._buffer.add(Di.fetch(this.url,e).then(function(t){return{status:hi.fromHttpCode(t.status)}}))]})})},e}(Ui),Mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yr.c(e,t),e.prototype.sendEvent=function(t){return Yr.b(this,void 0,void 0,function(){var e=this;return Yr.d(this,function(n){return[2,this._buffer.add(new Promise(function(n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status&&n({status:hi.fromHttpCode(i.status)}),r(i))},i.open("POST",e.url),i.send(JSON.stringify(t))}))]})})},e}(Ui),Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yr.c(e,t),e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=this._options.transportOptions?this._options.transportOptions:{dsn:this._options.dsn};return this._options.transport?new this._options.transport(e):yi()?new Li(e):new Mi(e)},e.prototype.eventFromException=function(t,e){var n,r=this;if(Object(Kr.d)(t)&&t.error)return t=t.error,n=Ai(Ci(t)),di.a.resolve(this._buildEvent(n,e));if(Object(Kr.a)(t)||Object(Kr.b)(t)){var i=t,o=i.name||(Object(Kr.a)(i)?"DOMError":"DOMException"),s=i.message?o+": "+i.message:o;return this.eventFromMessage(s,vi.Error,e).then(function(t){return Object(Zr.a)(t,s),di.a.resolve(r._buildEvent(t,e))})}if(Object(Kr.c)(t))return n=Ai(Ci(t)),di.a.resolve(this._buildEvent(n,e));if(Object(Kr.e)(t)&&e&&e.syntheticException)return n=function(t,e){var n=Object.keys(t).sort(),r={extra:{__serialized__:Object(ni.c)(t)},message:"Non-Error exception captured with keys: "+ui(n)};if(e){var i=Ni(Ci(e).stack);r.stacktrace={frames:i}}return r}(t,e.syntheticException),Object(Zr.a)(n,"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),n.level=vi.Error,di.a.resolve(this._buildEvent(n,e));var a=t;return this.eventFromMessage(a,void 0,e).then(function(t){return Object(Zr.a)(t,""+a,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=vi.Error,di.a.resolve(r._buildEvent(t,e))})},e.prototype._buildEvent=function(t,e){return Yr.a({},t,{event_id:e&&e.event_id})},e.prototype.eventFromMessage=function(t,e,n){void 0===e&&(e=vi.Info);var r={event_id:n&&n.event_id,level:e,message:t};if(this._options.attachStacktrace&&n&&n.syntheticException){var i=Ni(Ci(n.syntheticException).stack);r.stacktrace={frames:i}}return di.a.resolve(r)},e}(gi),Vi=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Fi,e)||this}return Yr.c(e,t),e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",e.sdk=Yr.a({},e.sdk,{name:"sentry.javascript.browser",packages:Yr.f(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.1.1"}]),version:"5.1.1"}),t.prototype._prepareEvent.call(this,e,n,r)},e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=Object(Zr.e)().document;if(e)if(this._isEnabled()){var n=t.dsn||this.getDsn();if(t.eventId)if(n){var r=e.createElement("script");r.async=!0,r.src=new si(n).getReportDialogEndpoint(t),(e.head||e.body).appendChild(r)}else Qr.a.error("Missing `Dsn` option in showReportDialog call");else Qr.a.error("Missing `eventId` option in showReportDialog call")}else Qr.a.error("Trying to call showReportDialog with Sentry Client is disabled")},e}(fi);function Hi(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Object(Xr.a)();if(r&&r[t])return r[t].apply(r,Yr.f(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}var qi,Bi,zi=1e3,Wi=0;function $i(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(){n&&"function"==typeof n&&n.apply(this,arguments);var r,i=Array.prototype.slice.call(arguments);try{var o=i.map(function(t){return $i(t,e)});return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(t){throw Wi+=1,setTimeout(function(){Wi-=1}),r=function(n){n.addEventProcessor(function(t){var n=Yr.a({},t);return e.mechanism&&Object(Zr.a)(n,void 0,void 0,e.mechanism),n.extra=Yr.a({},n.extra,{arguments:Object(ni.b)(i,3)}),n}),function(t){var e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}Hi("captureException",t,{originalException:t,syntheticException:e})}(t)},Hi("withScope",r),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}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.defineProperty(r,"name",{get:function(){return t.name}})}catch(t){}return r}var Yi=0;function Gi(t,e){return void 0===e&&(e=!1),function(n){if(qi=void 0,n&&Bi!==n){Bi=n;var r=function(){var e;try{e=n.target?Xi(n.target):Xi(n)}catch(t){e="<unknown>"}0!==e.length&&Object(Xr.a)().addBreadcrumb({category:"ui."+t,message:e},{event:n,name:t})};Yi&&clearTimeout(Yi),e?Yi=setTimeout(r):r()}}}function Ji(){return function(t){var e;try{e=t.target}catch(t){return}var n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(qi||Gi("input")(t),clearTimeout(qi),qi=setTimeout(function(){qi=void 0},zi))}}function Xi(t){for(var e,n=t,r=[],i=0,o=0,s=" > ".length;n&&i++<5&&!("html"===(e=Qi(n))||i>1&&o+r.length*s+e.length>=80);)r.push(e),o+=e.length,n=n.parentNode;return r.reverse().join(" > ")}function Qi(t){var e,n,r,i,o,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),(e=t.className)&&Object(Kr.h)(e))for(n=e.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var a=["type","name","title","alt"];for(o=0;o<a.length;o++)r=a[o],(i=t.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}var Zi=function(){function t(){this._ignoreOnError=0,this.name=t.id}return 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]=$i(r,{mechanism:{data:{function:Ki(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t($i(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ki(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=Object(Zr.e)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(ni.a)(n,"addEventListener",function(e){return function(n,r,i){try{r.handleEvent=$i(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Ki(r),target:t},handled:!0,type:"instrument"}})}catch(t){}return e.call(this,n,$i(r,{mechanism:{data:{function:"addEventListener",handler:Ki(r),target:t},handled:!0,type:"instrument"}}),i)}}),Object(ni.a)(n,"removeEventListener",function(t){return function(e,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))},t.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var t=Object(Zr.e)();Object(ni.a)(t,"setTimeout",this._wrapTimeFunction.bind(this)),Object(ni.a)(t,"setInterval",this._wrapTimeFunction.bind(this)),Object(ni.a)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),["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"].forEach(this._wrapEventTarget.bind(this))},t.id="TryCatch",t}();function Ki(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}var to,eo=Object(Zr.e)(),no=function(){function t(e){this.name=t.id,this._options=Yr.a({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype._instrumentConsole=function(){"console"in eo&&["debug","info","warn","error","log","assert"].forEach(function(e){e in eo.console&&Object(ni.a)(eo.console,e,function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o={category:"console",data:{extra:{arguments:Object(ni.b)(r,3)},logger:"console"},level:vi.fromString(e),message:ci(r," ")};"assert"===e&&!1===r[0]&&(o.message="Assertion failed: "+(ci(r.slice(1)," ")||"console.assert"),o.data.extra.arguments=Object(ni.b)(r.slice(1),3)),t.addBreadcrumb(o,{input:r,level:e}),n&&Function.prototype.apply.call(n,eo.console,r)}})})},t.prototype._instrumentDOM=function(){"document"in eo&&(eo.document.addEventListener("click",Gi("click"),!1),eo.document.addEventListener("keypress",Ji(),!1),["EventTarget","Node"].forEach(function(t){var e=eo[t]&&eo[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(Object(ni.a)(e,"addEventListener",function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&Object(ni.a)(n,"handleEvent",function(t){return function(e){return Gi("click")(e),t.call(this,e)}}),"keypress"===e&&Object(ni.a)(n,"handleEvent",Ji())):("click"===e&&Gi("click",!0)(this),"keypress"===e&&Ji()(this)),t.call(this,e,n,r)}}),Object(ni.a)(e,"removeEventListener",function(t){return function(e,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))}))},t.prototype._instrumentFetch=function(){yi()&&-1!==Object(Zr.e)().fetch.toString().indexOf("native")&&Object(ni.a)(eo,"fetch",function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=n[0],s="GET";"string"==typeof o?i=o:"Request"in eo&&o instanceof Request?(i=o.url,o.method&&(s=o.method)):i=String(o),n[1]&&n[1].method&&(s=n[1].method);var a=Object(Xr.a)().getClient(),c=a&&a.getDsn();if(c){var u=new si(c).getStoreEndpoint();if(u&&i.includes(u))return"POST"===s&&n[1]&&n[1].body&&ro(n[1].body),e.apply(eo,n)}var d={method:s,url:i};return e.apply(eo,n).then(function(e){return d.status_code=e.status,t.addBreadcrumb({category:"fetch",data:d,type:"http"},{input:n,response:e}),e}).catch(function(e){throw t.addBreadcrumb({category:"fetch",data:d,level:vi.Error,type:"http"},{error:e,input:n}),e})}})},t.prototype._instrumentHistory=function(){var e=this;if(n=Object(Zr.e)(),r=n.chrome,i=r&&r.app&&r.app.runtime,o="history"in n&&!!n.history.pushState&&!!n.history.replaceState,!i&&o){var n,r,i,o,s=function(e,n){var r=Object(Zr.f)(eo.location.href),i=Object(Zr.f)(n),o=Object(Zr.f)(e);o.path||(o=r),to=n,r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===o.protocol&&r.host===o.host&&(e=o.relative),t.addBreadcrumb({category:"navigation",data:{from:e,to:n}})},a=eo.onpopstate;eo.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=eo.location.href;if(s(to,r),a)return a.apply(e,t)},Object(ni.a)(eo.history,"pushState",c),Object(ni.a)(eo.history,"replaceState",c)}function c(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;return r&&s(to,String(r)),t.apply(this,e)}}},t.prototype._instrumentXHR=function(){if("XMLHttpRequest"in eo){var e=XMLHttpRequest.prototype;Object(ni.a)(e,"open",function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[1];this.__sentry_xhr__={method:e[0],url:e[1]};var i=Object(Xr.a)().getClient(),o=i&&i.getDsn();if(o){var s=new si(o).getStoreEndpoint();Object(Kr.h)(r)&&s&&r.includes(s)&&(this.__sentry_own_request__=!0)}return t.apply(this,e)}}),Object(ni.a)(e,"send",function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;function o(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(t){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&ro(n[0]),["onload","onerror","onprogress"].forEach(function(t){!function(t,e){t in e&&"function"==typeof e[t]&&Object(ni.a)(e,t,function(e){return $i(e,{mechanism:{data:{function:t,handler:e&&e.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(t,i)}),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Object(ni.a)(i,"onreadystatechange",function(t){return $i(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):i.onreadystatechange=o,e.apply(this,n)}})}},t.addBreadcrumb=function(e,n){Object(Xr.a)().getIntegration(t)&&Object(Xr.a)().addBreadcrumb(e,n)},t.prototype.setupOnce=function(){this._options.console&&this._instrumentConsole(),this._options.dom&&this._instrumentDOM(),this._options.xhr&&this._instrumentXHR(),this._options.fetch&&this._instrumentFetch(),this._options.history&&this._instrumentHistory()},t.id="Breadcrumbs",t}();function ro(t){try{var e=JSON.parse(t);no.addBreadcrumb({category:"sentry",event_id:e.event_id,level:e.level||vi.fromString("error"),message:Object(Zr.d)(e)},{event:e})}catch(t){Qr.a.error("Error while adding sentry type breadcrumb")}}var io=function(){function t(e){this.name=t.id,this._options=Yr.a({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,Ti(function(e,n,r){if(!(Wi>0)){var i=Object(Xr.a)().getIntegration(t);i&&Object(Xr.a)().captureEvent(i._eventFromGlobalHandler(e),{data:{stack:e},originalException:r})}}),this._options.onerror&&(Qr.a.log("Global Handler attached: onerror"),ji()),this._options.onunhandledrejection&&(Qr.a.log("Global Handler attached: onunhandledrejection"),Oi())},t.prototype._eventFromGlobalHandler=function(t){var e=Ai(t),n={mode:t.mode};t.message&&(n.message=t.message),t.name&&(n.name=t.name);var r=Object(Xr.a)().getClient(),i=r&&r.getOptions().maxValueLength||250,o=t.original?ai(JSON.stringify(Object(ni.b)(t.original)),i):"",s="onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error";return Object(Zr.a)(e,o,s,{data:n,handled:!1,type:t.mechanism}),e},t.id="GlobalHandlers",t}(),oo="cause",so=5,ao=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||oo,this._limit=e.limit||so}return t.prototype.setupOnce=function(){Object(Jr.b)(function(e,n){var r=Object(Xr.a)().getIntegration(t);return r?r.handler(e,n):e})},t.prototype.handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;var n=this.walkErrorTree(e.originalException,this._key);return t.exception.values=Yr.f(n,t.exception.values),t},t.prototype.walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(t[e]instanceof Error)||n.length+1>=this._limit)return n;var r=Ri(Ci(t[e]));return this.walkErrorTree(t[e],e,Yr.f([r],n))},t.id="LinkedErrors",t}(),co=Object(Zr.e)(),uo=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Object(Jr.b)(function(e){if(Object(Xr.a)().getIntegration(t)){if(!co.navigator||!co.location)return e;var n=e.request||{};return n.url=n.url||co.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=co.navigator.userAgent,Yr.a({},e,{request:n})}return e})},t.id="UserAgent",t}(),lo=[new r.InboundFilters,new r.FunctionToString,new Zi,new no,new io,new ao,new uo];function po(t){void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=lo),function(t,e){!0===e.debug&&Qr.a.enable(),Object(Xr.a)().bindClient(new t(e))}(Vi,t)}var ho=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class fo extends Oe{firstUpdated(){po({dsn:this.dsn})}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt(),ho("design:type",String)],fo.prototype,"dsn",void 0);var vo=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},mo=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class go extends Oe{constructor(){super(...arguments),this.animationstartTracked=!1,this.animationcompleteTracked=!1}firstUpdated(){"animationcomplete"===this.event&&this.target.addEventListener("animationcomplete",t=>{this.animationcompleteTracked||this.request(),this.animationcompleteTracked=!0}),"animationstart"===this.event&&this.target.addEventListener("animationstart",t=>{this.animationstartTracked||this.request(),this.animationstartTracked=!0})}request(){fetch(this.url,{method:"POST",mode:"no-cors"})}}vo([gt(),mo("design:type",String)],go.prototype,"event",void 0),vo([gt(),mo("design:type",String)],go.prototype,"animation",void 0),vo([gt({type:HTMLElement,converter:Ye}),mo("design:type",HTMLElement)],go.prototype,"target",void 0),vo([gt(),mo("design:type",String)],go.prototype,"url",void 0);var yo=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},bo=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class _o extends(Ge(Oe)){constructor(){super(...arguments),this.counter=0}firstUpdated(){this.duration=1e3*hn(this.offset)+60*pn(this.offset)*1e3+60*ln(this.offset)*60*1e3,this.timer=window.setInterval(this.increment.bind(this),50)}increment(){this.counter++,50*this.counter>=this.duration&&(this.request(),clearTimeout(this.timer))}request(){qe.createActivityTracking({bidId:this.bidId,name:"loggingtimer",params:[{key:"timer",value:[{intValue:this.timer}]}]})}}yo([gt({attribute:"bid-id"}),bo("design:type",String)],_o.prototype,"bidId",void 0),yo([gt({type:Date,converter:lr}),bo("design:type",Date)],_o.prototype,"offset",void 0);class wo{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,extension:n={}}){const r=this.url,i=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},n)));return decodeURIComponent(String(r)).replace("{click_id}",i)}}var So=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class xo extends Ze{firstUpdated(){super.firstUpdated()}get clickThroughUrl(){const t=new wo(this.url).build({bidId:this.bidId,trackingEvent:"click"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),So("design:type",String)],xo.prototype,"bidId",void 0);var Eo=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ko extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new wo(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Eo("design:type",String)],ko.prototype,"bidId",void 0);var To=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class jo extends Oe{handleClick(){console.log("call muraid unload")}render(){const t=screen.width<screen.height?screen.width:screen.height;return ne`
      <style>
        img {
          position: fixed;
          z-index: 2147483647;
          cursor: pointer;
          pointer-events: auto;
          bottom: ${t/320*50}px;
          width: ${.1*t}px;
          height: auto;
          opacity: 0.7;
          transform: translateX(-100%);
          right: ${-.1*t};
        }
      </style>
      <img
        id="vrizead-mutebutton-img"
        src="https://asset.adserver.vrizead.com/tag/img/mute_button.png"
        @click=${this.handleClick}
      />
    `}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt(),To("design:type",String)],jo.prototype,"src",void 0);var Oo=n(24),Co=n.n(Oo);const Po=365,Ro=function(){try{return!Boolean(window.top.location.href)}catch(t){return!0}}(),Ao=!!Ro,No=Ro?"None":"Lax";class Io{constructor(t="keyval-store",e="keyval"){this.storeName=e,this._dbp=new Promise((n,r)=>{const i=indexedDB.open(t,1);i.onerror=(()=>r(i.error)),i.onsuccess=(()=>n(i.result)),i.onupgradeneeded=(()=>{i.result.createObjectStore(e)})})}_withIDBStore(t,e){return this._dbp.then(n=>new Promise((r,i)=>{const o=n.transaction(this.storeName,t);o.oncomplete=(()=>r()),o.onabort=o.onerror=(()=>i(o.error)),e(o.objectStore(this.storeName))}))}}let Uo;function Do(){return Uo||(Uo=new Io),Uo}const Lo="ImmortalDB",Mo="key-value-pairs";class Fo{constructor(t=Lo,e=Mo){return this.store=new Io(t,e),(async()=>{try{await this.store._dbp}catch(t){if("SecurityError"===t.name)return null;throw t}return this})()}async get(t){const e=await function(t,e=Do()){let n;return e._withIDBStore("readonly",e=>{n=e.get(t)}).then(()=>n.result)}(t,this.store);return"string"==typeof e?e:void 0}async set(t,e){await function(t,e,n=Do()){return n._withIDBStore("readwrite",n=>{n.put(e,t)})}(t,e,this.store)}async remove(t){await function(t,e=Do()){return e._withIDBStore("readwrite",e=>{e.delete(t)})}(t,this.store)}}class Vo{constructor(t){return this.store=t,(async()=>this)()}async get(t){const e=this.store.getItem(t);return"string"==typeof e?e:void 0}async set(t,e){this.store.setItem(t,e)}async remove(t){this.store.removeItem(t)}}class Ho extends Vo{constructor(){super(window.localStorage)}}const qo=console.log,Bo="_immortal|",zo="undefined"!=typeof window,Wo=[class{constructor({ttl:t=Po,secure:e=Ao,sameSite:n=No}={}){return this.ttl=t,this.secure=e,this.sameSite=n,(async()=>this)()}async get(t){const e=Co.a.get(t);return"string"==typeof e?e:void 0}async set(t,e){Co.a.set(t,e,this._constructCookieParams())}async remove(t){Co.a.remove(t,this._constructCookieParams())}_constructCookieParams(){return{expires:this.ttl,secure:this.secure,sameSite:this.sameSite}}}];try{zo&&window.indexedDB&&Wo.push(Fo)}catch(t){}try{zo&&window.localStorage&&Wo.push(Ho)}catch(t){}function $o(t,e,n=null){return e in t?t[e]:n}const Yo=new class{constructor(t=Wo){this.stores=[],this.onReady=(async()=>{this.stores=(await Promise.all(t.map(async t=>{if("object"==typeof t)return t;try{return await new t}catch(t){return null}}))).filter(Boolean)})()}async get(t,e=null){await this.onReady;const n=`${Bo}${t}`,r=await Promise.all(this.stores.map(async t=>{try{return await t.get(n)}catch(t){qo(t)}})),i=Array.from(function(t){const e=new Map;let n=t.slice();for(const t of n){let r=0;for(const e of n)t===e&&(r+=1);r>0&&(e.set(t,r),n=n.filter(e=>e!==t))}return e}(r).entries());let o;i.sort((t,e)=>t[1]<=e[1]);const[s,a]=$o(i,0,[void 0,0]),[c,u]=$o(i,1,[void 0,0]);return void 0!==(o=a>u||a===u&&void 0!==s?s:c)?(await this.set(t,o),o):(await this.remove(t),e)}async set(t,e){return await this.onReady,t=`${Bo}${t}`,await Promise.all(this.stores.map(async n=>{try{await n.set(t,e)}catch(t){qo(t)}})),e}async remove(t){await this.onReady,t=`${Bo}${t}`,await Promise.all(this.stores.map(async e=>{try{await e.remove(t)}catch(t){qo(t)}}))}};var Go=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}c((r=r.apply(t,e||[])).next())})};class Jo{}Jo.fromUserStorage=(t=>Go(void 0,void 0,void 0,function*(){let e=yield Yo.get(t,null);return e||(e=Jo.generateV4(),Yo.set(t,e)),e})),Jo.fromCacheAPI=(t=>Go(void 0,void 0,void 0,function*(){const e=yield caches.open(t),n="https://ct.ma-tag.com/id";let r=yield e.match(n);return r&&r.status||(yield e.add(n),r=yield e.match(n)),(yield r.json()).id})),Jo.generateV4=(()=>{const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("");for(let e=0,n=t.length;e<n;e+=1)switch(t[e]){case"x":t[e]=Math.floor(16*Math.random()).toString(16);break;case"y":t[e]=(Math.floor(4*Math.random())+8).toString(16)}return t.join("")});var Xo=Jo;const Qo=()=>{if(window.nend_bid_id)return window.nend_bid_id;const t=Xo.generateV4();return window.nend_bid_id=t,t};var Zo=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Ko=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};var ts=t=>{class e extends t{connectedCallback(){super.connectedCallback&&super.connectedCallback();const t=this.getNendAdUnitId(this.nendAdUnitTarget);this.bidId=Qo(),this.nendParams={nendAdvertiserId:this.nendAdvertiserId,nendPromotionId:this.nendPromotionId,nendCampaigngroupId:this.nendCampaigngroupId,nendCampaignId:this.nendCampaignId,nendAdUnitId:t,vrizePromotionId:this.vrizePromotionId,vrizeCampaigngroupId:this.vrizeCampaigngroupId}}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}getNendAdUnitId(t){try{const e=document.querySelector(t).url;return new URL(e).searchParams.get("w")}catch(t){return""}}}return Zo([gt({attribute:"nend-advertiser-id"}),Ko("design:type",String)],e.prototype,"nendAdvertiserId",void 0),Zo([gt({attribute:"nend-promotion-id"}),Ko("design:type",String)],e.prototype,"nendPromotionId",void 0),Zo([gt({attribute:"nend-campaigngroup-id"}),Ko("design:type",String)],e.prototype,"nendCampaigngroupId",void 0),Zo([gt({attribute:"nend-campaign-id"}),Ko("design:type",String)],e.prototype,"nendCampaignId",void 0),Zo([gt({attribute:"nend-ad-unit-target"}),Ko("design:type",String)],e.prototype,"nendAdUnitTarget",void 0),Zo([gt({attribute:"vrize-promotion-id"}),Ko("design:type",String)],e.prototype,"vrizePromotionId",void 0),Zo([gt({attribute:"vrize-campaigngroup-id"}),Ko("design:type",String)],e.prototype,"vrizeCampaigngroupId",void 0),e},es=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ns extends(ts(on)){firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new kt(this.url).build({bidId:this.bidId,trackingEvent:"view",eventTokens:this.eventTokens,extension:{trackingProvider:"nend",nendParams:this.nendParams}});return this.wrap(t,this.bidId)}request(){super.request(),qe.createNendTrackingEvent(this.bidId,"viewthroughimp",this.nendParams)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"event-tokens",converter:Et}),es("design:type",Array)],ns.prototype,"eventTokens",void 0);var rs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class is extends(ts(vr)){firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new kt(this.url).build({bidId:this.bidId,trackingEvent:"view",eventTokens:this.eventTokens,extension:{trackingProvider:"nend",nendParams:this.nendParams}});return this.wrap(t,this.bidId)}request(){super.request(),qe.createNendTrackingEvent(this.bidId,"viewthroughimp",this.nendParams)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"event-tokens",converter:Et}),rs("design:type",Array)],is.prototype,"eventTokens",void 0);class os extends(ts(vr)){firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new xr(this.url).build({bidId:this.bidId,trackingEvent:"view",extension:{trackingProvider:"nend",nendParams:this.nendParams}});return this.wrap(t,this.bidId)}request(){super.request(),qe.createNendTrackingEvent(this.bidId,"viewthroughimp",this.nendParams)}}var ss=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},as=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class cs extends(ts(Oe)){constructor(){super(...arguments),this.animationstartTracked=!1,this.animationcompleteTracked=!1}firstUpdated(){"animationcomplete"===this.event&&this.target.addEventListener("animationcomplete",t=>{this.animationcompleteTracked||qe.createNendTrackingEvent(this.bidId,"animationcomplete",this.nendParams),this.animationcompleteTracked=!0}),"animationstart"===this.event&&this.target.addEventListener("animationstart",t=>{this.animationstartTracked||qe.createNendTrackingEvent(this.bidId,"animationstart",this.nendParams),this.animationstartTracked=!0})}}ss([gt(),as("design:type",String)],cs.prototype,"event",void 0),ss([gt({type:HTMLElement,converter:Ye}),as("design:type",HTMLElement)],cs.prototype,"target",void 0);class us extends(ts(Ge(Oe))){firstUpdated(){let t=!0;this.mraid.addEventListener("exposureChange",e=>{t&&e>0&&(t=!1,qe.createNendTrackingEvent(this.bidId,"viewable",this.nendParams))})}}class ds{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,extension:n={}}){const r=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},n)));return decodeURIComponent(String(this.url)).replace("{click_id}",r)}}var ls=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ps extends Ze{firstUpdated(){super.firstUpdated()}get clickThroughUrl(){const t=new ds(this.url).build({bidId:this.bidId,trackingEvent:"click"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),ls("design:type",String)],ps.prototype,"bidId",void 0);var hs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class fs extends on{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new ds(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),hs("design:type",String)],fs.prototype,"bidId",void 0);var vs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class ms extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new ds(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),vs("design:type",String)],ms.prototype,"bidId",void 0);var gs=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ys=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class bs extends(Ge(Oe)){constructor(){super(...arguments),this.counter=0}firstUpdated(){this.duration=1e3*hn(this.offset)+60*pn(this.offset)*1e3+60*ln(this.offset)*60*1e3,this.timer=window.setInterval(this.increment.bind(this),50),un(this.mraid,t=>{this.inView=t>50})}increment(){this.inView&&this.counter++,50*this.counter>=this.duration&&(this.request(),clearTimeout(this.timer))}wrap(t){return qe.createViewThroughImpressionTrackingUrl(JSON.parse(JSON.stringify(Object.assign({event:"view",action:"redirect",ua:navigator.userAgent,redirectUrl:Base64.encodeURI(t),bidId:this.bidId,pbBid:this.bid},this.params))))}get clickThroughUrl(){const t=new URL(this.trackingUrl);for(const e in this.trackingParams){const n=this.trackingParams[e].replace("{click_id}",this.clickId);t.searchParams.append(e,n)}return this.wrap(String(t))}get clickId(){return Base64.encodeURI(JSON.stringify({bidId:this.bidId,trackingEvent:"view"}))}request(){fetch(this.clickThroughUrl,{mode:"no-cors",method:"GET"})}}gs([gt({attribute:"bid-id"}),ys("design:type",String)],bs.prototype,"bidId",void 0),gs([gt({attribute:"bid"}),ys("design:type",String)],bs.prototype,"bid",void 0),gs([gt({attribute:"tracking-url"}),ys("design:type",String)],bs.prototype,"trackingUrl",void 0),gs([gt({attribute:"tracking-params",converter:br}),ys("design:type",Object)],bs.prototype,"trackingParams",void 0),gs([gt({attribute:"params",converter:br}),ys("design:type",Object)],bs.prototype,"params",void 0),gs([gt({type:Date,converter:lr}),ys("design:type",Date)],bs.prototype,"offset",void 0);const _s=t=>ws(t)?"friendly_iframe":Ss(t)?"safeframe":"crossdomain_iframe",ws=t=>{try{return void 0!==t.top.document}catch(t){return!1}},Ss=t=>{try{return void 0!==(t=>{let e;for(let n=0,r=t;n<20&&r.parent!==r;n++,r=r.parent)try{void 0!==r.$sf&&(e=r.$sf)}catch(t){break}return e})(t)}catch(t){return!1}};var xs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Es extends Oe{firstUpdated(){const t=_s(window);qe.createActivityTracking({bidId:this.bidId,name:"iframe_type",params:[{key:"type",value:[{stringValue:String(t)}]}]})}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),xs("design:type",String)],Es.prototype,"bidId",void 0);const ks=t=>{const e=t.parentElement;if(null==e){const e=t.ownerDocument.defaultView&&t.ownerDocument.defaultView.frameElement&&t.ownerDocument.defaultView.frameElement.parentElement;return null==e?{nodeName:t.nodeName,attributes:Ts(t),style:t.style,parent:null}:{nodeName:t.nodeName,attributes:Ts(t),style:t.style,parent:ks(e)}}return{nodeName:t.nodeName,attributes:Ts(t),style:t.style,parent:ks(e)}},Ts=t=>Array.from(t.attributes).map(t=>[t.name,t.value]).reduce((t,e)=>(t[e[0]]=e[1],t),{});var js=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Os extends Oe{firstUpdated(){const t=ks(this);qe.createActivityTracking({bidId:this.bidId,name:"tracking_dom",params:[{key:"dom_tree",value:[{stringValue:JSON.stringify(t)}]}]})}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),js("design:type",String)],Os.prototype,"bidId",void 0);class Cs{constructor(t){this.url=new URL(t)}build({bidId:t,trackingEvent:e,extension:n={}}){const r=this.url,i=xt.Base64.encodeURI(JSON.stringify(Object.assign({bidId:t,trackingEvent:e},n)));return this.url.searchParams.append("ref_id",i),this.url.searchParams.append("sub_site","dummy"),this.url.searchParams.append("sub_campaign_ref","dummy"),String(r)}}var Ps=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Rs extends Ze{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new Cs(this.url).build({bidId:this.bidId,trackingEvent:"click"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Ps("design:type",String)],Rs.prototype,"bidId",void 0);var As=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Ns extends on{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new Cs(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),As("design:type",String)],Ns.prototype,"bidId",void 0);var Is=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Us extends vr{firstUpdated(){super.firstUpdated()}get trackingUrl(){const t=new Cs(this.url).build({bidId:this.bidId,trackingEvent:"view"});return this.wrap(t,this.bidId)}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt({attribute:"bid-id"}),Is("design:type",String)],Us.prototype,"bidId",void 0);var Ds=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class Ls extends(Ge(Oe)){firstUpdated(){let t=!0;un(this.mraid,e=>{t&&e>0&&(t=!1,this.request())})}get trackingUrl(){return this.url}request(){fetch(this.trackingUrl,{mode:"cors",method:"GET",credentials:"include"})}}(function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);o>3&&s&&Object.defineProperty(e,n,s)})([gt(),Ds("design:type",String)],Ls.prototype,"url",void 0);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const Ms=new WeakMap,Fs=t=>"function"==typeof t&&Ms.has(t),Vs=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,Hs=(t,e,n=null)=>{let r=e;for(;r!==n;){const e=r.nextSibling;t.removeChild(r),r=e}},qs={},Bs={},zs=`{{lit-${String(Math.random()).slice(2)}}}`,Ws=`\x3c!--${zs}--\x3e`,$s=new RegExp(`${zs}|${Ws}`),Ys="$lit$";class Gs{constructor(t,e){this.parts=[],this.element=e;let n=-1,r=0;const i=[],o=e=>{const s=e.content,a=document.createTreeWalker(s,133,null,!1);let c=0;for(;a.nextNode();){n++;const e=a.currentNode;if(1===e.nodeType){if(e.hasAttributes()){const i=e.attributes;let o=0;for(let t=0;t<i.length;t++)i[t].value.indexOf(zs)>=0&&o++;for(;o-- >0;){const i=t.strings[r],o=Qs.exec(i)[2],s=o.toLowerCase()+Ys,a=e.getAttribute(s).split($s);this.parts.push({type:"attribute",index:n,name:o,strings:a}),e.removeAttribute(s),r+=a.length-1}}"TEMPLATE"===e.tagName&&o(e)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(zs)>=0){const o=e.parentNode,s=t.split($s),a=s.length-1;for(let t=0;t<a;t++)o.insertBefore(""===s[t]?Xs():document.createTextNode(s[t]),e),this.parts.push({type:"node",index:++n});""===s[a]?(o.insertBefore(Xs(),e),i.push(e)):e.data=s[a],r+=a}}else if(8===e.nodeType)if(e.data===zs){const t=e.parentNode;null!==e.previousSibling&&n!==c||(n++,t.insertBefore(Xs(),e)),c=n,this.parts.push({type:"node",index:n}),null===e.nextSibling?e.data="":(i.push(e),n--),r++}else{let t=-1;for(;-1!==(t=e.data.indexOf(zs,t+1));)this.parts.push({type:"node",index:-1})}}};o(e);for(const t of i)t.parentNode.removeChild(t)}}const Js=t=>-1!==t.index,Xs=()=>document.createComment(""),Qs=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
class Zs{constructor(t,e,n){this._parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this._parts)void 0!==n&&n.setValue(t[e]),e++;for(const t of this._parts)void 0!==t&&t.commit()}_clone(){const t=Vs?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=this.template.parts;let n=0,r=0;const i=t=>{const o=document.createTreeWalker(t,133,null,!1);let s=o.nextNode();for(;n<e.length&&null!==s;){const t=e[n];if(Js(t))if(r===t.index){if("node"===t.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(s.previousSibling),this._parts.push(t)}else this._parts.push(...this.processor.handleAttributeExpressions(s,t.name,t.strings,this.options));n++}else r++,"TEMPLATE"===s.nodeName&&i(s.content),s=o.nextNode();else this._parts.push(void 0),n++}};return i(t),Vs&&(document.adoptNode(t),customElements.upgrade(t)),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */class Ks{constructor(t,e,n,r){this.strings=t,this.values=e,this.type=n,this.processor=r}getHTML(){const t=this.strings.length-1;let e="";for(let n=0;n<t;n++){const t=this.strings[n],r=Qs.exec(t);e+=r?t.substr(0,r.index)+r[1]+r[2]+Ys+r[3]+zs:t+Ws}return e+this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const ta=t=>null===t||!("object"==typeof t||"function"==typeof t);class ea{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let t=0;t<n.length-1;t++)this.parts[t]=this._createPart()}_createPart(){return new na(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let r=0;r<e;r++){n+=t[r];const e=this.parts[r];if(void 0!==e){const t=e.value;if(null!=t&&(Array.isArray(t)||"string"!=typeof t&&t[Symbol.iterator]))for(const e of t)n+="string"==typeof e?e:String(e);else n+="string"==typeof t?t:String(t)}}return n+=t[e]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class na{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===qs||ta(t)&&t===this.value||(this.value=t,Fs(t)||(this.committer.dirty=!0))}commit(){for(;Fs(this.value);){const t=this.value;this.value=qs,t(this)}this.value!==qs&&this.committer.commit()}}class ra{constructor(t){this.value=void 0,this._pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(Xs()),this.endNode=t.appendChild(Xs())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t._insert(this.startNode=Xs()),t._insert(this.endNode=Xs())}insertAfterPart(t){t._insert(this.startNode=Xs()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this._pendingValue=t}commit(){for(;Fs(this._pendingValue);){const t=this._pendingValue;this._pendingValue=qs,t(this)}const t=this._pendingValue;t!==qs&&(ta(t)?t!==this.value&&this._commitText(t):t instanceof Ks?this._commitTemplateResult(t):t instanceof Node?this._commitNode(t):Array.isArray(t)||t[Symbol.iterator]?this._commitIterable(t):t===Bs?(this.value=Bs,this.clear()):this._commitText(t))}_insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}_commitNode(t){this.value!==t&&(this.clear(),this._insert(t),this.value=t)}_commitText(t){const e=this.startNode.nextSibling;t=null==t?"":t,e===this.endNode.previousSibling&&3===e.nodeType?e.data=t:this._commitNode(document.createTextNode("string"==typeof t?t:String(t))),this.value=t}_commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof Zs&&this.value.template===e)this.value.update(t.values);else{const n=new Zs(e,t.processor,this.options),r=n._clone();n.update(t.values),this._commitNode(r),this.value=n}}_commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,r=0;for(const i of t)void 0===(n=e[r])&&(n=new ra(this.options),e.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(e[r-1])),n.setValue(i),n.commit(),r++;r<e.length&&(e.length=r,this.clear(n&&n.endNode))}clear(t=this.startNode){Hs(this.startNode.parentNode,t.nextSibling,this.endNode)}}class ia{constructor(t,e,n){if(this.value=void 0,this._pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this._pendingValue=t}commit(){for(;Fs(this._pendingValue);){const t=this._pendingValue;this._pendingValue=qs,t(this)}if(this._pendingValue===qs)return;const t=!!this._pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)),this.value=t,this._pendingValue=qs}}class oa extends ea{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new sa(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class sa extends na{}let aa=!1;try{const t={get capture(){return aa=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}class ca{constructor(t,e,n){this.value=void 0,this._pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this._boundHandleEvent=(t=>this.handleEvent(t))}setValue(t){this._pendingValue=t}commit(){for(;Fs(this._pendingValue);){const t=this._pendingValue;this._pendingValue=qs,t(this)}if(this._pendingValue===qs)return;const t=this._pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),r=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),r&&(this._options=ua(t),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=t,this._pendingValue=qs}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const ua=t=>t&&(aa?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */const da=new class{handleAttributeExpressions(t,e,n,r){const i=e[0];return"."===i?new oa(t,e.slice(1),n).parts:"@"===i?[new ca(t,e.slice(1),r.eventContext)]:"?"===i?[new ia(t,e.slice(1),n)]:new ea(t,e,n).parts}handleTextExpression(t){return new ra(t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */function la(t){let e=pa.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},pa.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const r=t.strings.join(zs);return void 0===(n=e.keyString.get(r))&&(n=new Gs(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}const pa=new Map,ha=new WeakMap;
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");const fa=(t,...e)=>new Ks(t,e,"html",da),va=133;function ma(t,e){const{element:{content:n},parts:r}=t,i=document.createTreeWalker(n,va,null,!1);let o=ya(r),s=r[o],a=-1,c=0;const u=[];let d=null;for(;i.nextNode();){a++;const t=i.currentNode;for(t.previousSibling===d&&(d=null),e.has(t)&&(u.push(t),null===d&&(d=t)),null!==d&&c++;void 0!==s&&s.index===a;)s.index=null!==d?-1:s.index-c,s=r[o=ya(r,o)]}u.forEach(t=>t.parentNode.removeChild(t))}const ga=t=>{let e=11===t.nodeType?0:1;const n=document.createTreeWalker(t,va,null,!1);for(;n.nextNode();)e++;return e},ya=(t,e=-1)=>{for(let n=e+1;n<t.length;n++){const e=t[n];if(Js(e))return n}return-1};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
const ba=(t,e)=>`${t}--${e}`;let _a=!0;void 0===window.ShadyCSS?_a=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),_a=!1);const wa=t=>e=>{const n=ba(e.type,t);let r=pa.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},pa.set(n,r));let i=r.stringsArray.get(e.strings);if(void 0!==i)return i;const o=e.strings.join(zs);if(void 0===(i=r.keyString.get(o))){const n=e.getTemplateElement();_a&&window.ShadyCSS.prepareTemplateDom(n,t),i=new Gs(e,n),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i},Sa=["html","svg"],xa=new Set,Ea=(t,e,n)=>{xa.add(n);const r=t.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(e.element,n);const i=document.createElement("style");for(let t=0;t<r.length;t++){const e=r[t];e.parentNode.removeChild(e),i.textContent+=e.textContent}if((t=>{Sa.forEach(e=>{const n=pa.get(ba(e,t));void 0!==n&&n.keyString.forEach(t=>{const{element:{content:e}}=t,n=new Set;Array.from(e.querySelectorAll("style")).forEach(t=>{n.add(t)}),ma(t,n)})})})(n),function(t,e,n=null){const{element:{content:r},parts:i}=t;if(null==n)return void r.appendChild(e);const o=document.createTreeWalker(r,va,null,!1);let s=ya(i),a=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===n&&(a=ga(e),n.parentNode.insertBefore(e,n));-1!==s&&i[s].index===c;){if(a>0){for(;-1!==s;)i[s].index+=a,s=ya(i,s);return}s=ya(i,s)}}(e,i,e.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(e.element,n),window.ShadyCSS.nativeShadow){const n=e.element.content.querySelector("style");t.insertBefore(n.cloneNode(!0),t.firstChild)}else{e.element.content.insertBefore(i,e.element.content.firstChild);const t=new Set;t.add(i),ma(e,t)}};
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
window.JSCompiler_renameProperty=((t,e)=>t);const ka={toAttribute(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},Ta=(t,e)=>e!==t&&(e==e||t==t),ja={attribute:!0,type:String,converter:ka,reflect:!1,hasChanged:Ta},Oa=Promise.resolve(!0),Ca=1,Pa=4,Ra=8,Aa=16,Na=32;class Ia extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=Oa,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const t=[];return this._classProperties.forEach((e,n)=>{const r=this._attributeNameForProperty(n,e);void 0!==r&&(this._attributeToPropertyMap.set(r,n),t.push(r))}),t}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach((t,e)=>this._classProperties.set(e,t))}}static createProperty(t,e=ja){if(this._ensureClassProperties(),this._classProperties.set(t,e),e.noAccessor||this.prototype.hasOwnProperty(t))return;const n="symbol"==typeof t?Symbol():`__${t}`;Object.defineProperty(this.prototype,t,{get(){return this[n]},set(e){const r=this[t];this[n]=e,this.requestUpdate(t,r)},configurable:!0,enumerable:!0})}static finalize(){if(this.hasOwnProperty(JSCompiler_renameProperty("finalized",this))&&this.finalized)return;const t=Object.getPrototypeOf(this);if("function"==typeof t.finalize&&t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const t=this.properties,e=[...Object.getOwnPropertyNames(t),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]];for(const n of e)this.createProperty(n,t[n])}}static _attributeNameForProperty(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}static _valueHasChanged(t,e,n=Ta){return n(t,e)}static _propertyValueFromAttribute(t,e){const n=e.type,r=e.converter||ka,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}static _propertyValueToAttribute(t,e){if(void 0===e.reflect)return;const n=e.type,r=e.converter;return(r&&r.toAttribute||ka.toAttribute)(t,n)}initialize(){this._saveInstanceProperties()}_saveInstanceProperties(){this.constructor._classProperties.forEach((t,e)=>{if(this.hasOwnProperty(e)){const t=this[e];delete this[e],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(e,t)}})}_applyInstanceProperties(){this._instanceProperties.forEach((t,e)=>this[e]=t),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Na,this._hasConnectedResolver?(this._hasConnectedResolver(),this._hasConnectedResolver=void 0):this.requestUpdate()}disconnectedCallback(){}attributeChangedCallback(t,e,n){e!==n&&this._attributeToProperty(t,n)}_propertyToAttribute(t,e,n=ja){const r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){const t=r._propertyValueToAttribute(e,n);if(void 0===t)return;this._updateState=this._updateState|Ra,null==t?this.removeAttribute(i):this.setAttribute(i,t),this._updateState=this._updateState&~Ra}}_attributeToProperty(t,e){if(this._updateState&Ra)return;const n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){const t=n._classProperties.get(r)||ja;this._updateState=this._updateState|Aa,this[r]=n._propertyValueFromAttribute(e,t),this._updateState=this._updateState&~Aa}}requestUpdate(t,e){let n=!0;if(void 0!==t&&!this._changedProperties.has(t)){const r=this.constructor,i=r._classProperties.get(t)||ja;r._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.set(t,e),!0!==i.reflect||this._updateState&Aa||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):n=!1}return!this._hasRequestedUpdate&&n&&this._enqueueUpdate(),this.updateComplete}async _enqueueUpdate(){let t;this._updateState=this._updateState|Pa;const e=this._updatePromise;this._updatePromise=new Promise(e=>t=e),await e,this._hasConnected||await new Promise(t=>this._hasConnectedResolver=t);const n=this.performUpdate();null!=n&&"function"==typeof n.then&&await n,t(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Na}get _hasRequestedUpdate(){return this._updateState&Pa}get hasUpdated(){return this._updateState&Ca}performUpdate(){if(this._instanceProperties&&this._applyInstanceProperties(),this.shouldUpdate(this._changedProperties)){const t=this._changedProperties;this.update(t),this._markUpdated(),this._updateState&Ca||(this._updateState=this._updateState|Ca,this.firstUpdated(t)),this.updated(t)}else this._markUpdated()}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~Pa}get updateComplete(){return this._updatePromise}shouldUpdate(t){return!0}update(t){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((t,e)=>this._propertyToAttribute(e,this[e],t)),this._reflectingProperties=void 0)}updated(t){}firstUpdated(t){}}Ia.finalized=!0;La((t,e)=>t.querySelector(e)),La((t,e)=>t.querySelectorAll(e));const Ua=(t,e,n)=>{Object.defineProperty(e,n,t)},Da=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t});function La(t){return e=>(n,r)=>{const i={get(){return t(this.renderRoot,e)},enumerable:!0,configurable:!0};return void 0!==r?Ua(i,n,r):Da(i,n)}}const Ma="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;Symbol();
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
(window.litElementVersions||(window.litElementVersions=[])).push("2.0.1");const Fa=t=>t.flat?t.flat(1/0):function t(e,n=[]){for(let r=0,i=e.length;r<i;r++){const i=e[r];Array.isArray(i)?t(i,n):n.push(i)}return n}(t);class Va extends Ia{static finalize(){super.finalize(),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}static _getUniqueStyles(){const t=this.styles,e=[];if(Array.isArray(t)){Fa(t).reduceRight((t,e)=>(t.add(e),t),new Set).forEach(t=>e.unshift(t))}else t&&e.push(t);return e}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Ma?this.renderRoot.adoptedStyleSheets=t.map(t=>t.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map(t=>t.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(t){super.update(t);const e=this.render();e instanceof Ks&&this.constructor.render(e,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(t=>{const e=document.createElement("style");e.textContent=t.cssText,this.renderRoot.appendChild(e)}))}render(){}}Va.finalized=!0,Va.render=((t,e,n)=>{const r=n.scopeName,i=ha.has(e),o=e instanceof ShadowRoot&&_a&&t instanceof Ks,s=o&&!xa.has(r),a=s?document.createDocumentFragment():e;if(((t,e,n)=>{let r=ha.get(e);void 0===r&&(Hs(e,e.firstChild),ha.set(e,r=new ra(Object.assign({templateFactory:la},n))),r.appendInto(e)),r.setValue(t),r.commit()})(t,a,Object.assign({templateFactory:wa(r)},n)),s){const t=ha.get(a);ha.delete(a),t.value instanceof Zs&&Ea(a,t.value.template,r),Hs(e,e.firstChild),e.appendChild(a),ha.set(e,t)}!i&&o&&window.ShadyCSS.styleElement(e.host)});const Ha={fromAttribute:t=>{const e=JSON.parse(t);return new qa(e)},toAttribute:(t,e)=>{}};class qa{constructor(t){this.props=t,this.status="PENDING"}get configs(){return this.props.configs}}const Ba={fromAttribute:t=>{const e=JSON.parse(t);return new za(e)},toAttribute:(t,e)=>{}};class za{constructor(t){this.props=t,this.status="PENDING"}get configs(){return this.props.configs}}const Wa={fromAttribute:t=>{const e=JSON.parse(t);return new $a(e)},toAttribute:(t,e)=>{}};class $a{constructor(t){this.props=t,this.status="PENDING",this.reacting=!1}visibleInteractiveArea(){this.interactiveArea.style.visibility="visible"}invisibleInteractiveArea(){this.interactiveArea.style.visibility="hidden"}get loopFrom(){return this.props.loopFrom}get loopEnd(){return this.props.loopEnd}get reactionFrom(){return this.props.reactionFrom}get reactionEnd(){return this.props.reactionEnd}get interactiveFrom(){return this.props.interactiveFrom}get interactiveEnd(){return this.props.interactiveEnd}get interactiveAreaStyle(){return this.props.interactiveAreaStyle}}const Ya={fromAttribute:t=>{const e=JSON.parse(t);return new Ga(e)},toAttribute:(t,e)=>{}};class Ga{constructor(t){this.props=t,this.status="PENDING",this.state=0,this.loopAnimationstartDispatched=!1}get loopFrom(){return this.props.configs[this.state].loopFrom}get loopEnd(){return this.props.configs[this.state].loopEnd}get configs(){return this.props.configs}}const Ja={fromAttribute:t=>{const e=JSON.parse(t);return new Xa(e)},toAttribute:(t,e)=>{}};class Xa{constructor(t){this.props=t,this.status="PENDING"}get configs(){return this.props.configs}}class Qa{constructor(){this.status="PENDING",this.inViewState=!1,this.canplaythroughReady=!1,this.animationstartDispatched=!1,this.animationcompleteDispatched=!1,this.loopAnimationstartDispatched=!1}}const Za=(t,e)=>{const n=()=>{"3.0"===t.getVersion()?t.addEventListener("exposureChange",t=>{e(t)}):t.addEventListener("viewableChange",t=>{e(t?100:0)})};"loading"===t.getState()?t.addEventListener("ready",n.bind(void 0)):n()};class Ka{constructor(){this.previousTime=0}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.video;if("PENDING"===e.status&&(this.registerEventListenersToVideo(t,e),Za(this.mraid,n=>{this.handleVideoState(n>50,t,e)}),e.status="LOADING"),"LOADING"===e.status&&e.canplaythroughReady&&(e.status="PLAYING"),"REWINDING"===e.status){0===this.previousTime&&(t.videoElement.pause(),this.previousTime=Date.now());const n=Date.now();if(e.inViewState){const e=(n-this.previousTime)/1e3;t.videoElement.currentTime-=e}this.previousTime=n}}registerEventListenersToVideo(t,e){t.videoElement.addEventListener("canplaythrough",()=>{e.canplaythroughReady=!0}),t.videoElement.addEventListener("timeupdate",()=>{e.animationstartDispatched||(t.dispatchEvent(new CustomEvent("animationstart",{detail:{animation:"video"}})),e.animationstartDispatched=!0),!e.loopAnimationstartDispatched&&t.loopFrom<=t.videoElement.currentTime&&(t.dispatchEvent(new CustomEvent("animationstart",{detail:{animation:"loop"}})),e.loopAnimationstartDispatched=!0)}),t.videoElement.addEventListener("ended",()=>{e.animationcompleteDispatched||(t.dispatchEvent(new CustomEvent("animationcomplete",{detail:{animation:"video"}})),e.animationcompleteDispatched=!0),null!=t.loopFrom&&(t.videoElement.currentTime=t.loopFrom,t.videoElement.play())})}handleVideoState(t,e,n){"PENDING"!==n.status&&"PAUSING"!==n.status&&(t&&!n.inViewState&&(e.videoElement.play(),n.inViewState=!0),!t&&n.inViewState&&(e.videoElement.pause(),n.inViewState=!1))}}class tc{constructor(){this.videoFps=30,this.isTouched=!1,this.isHoldEnded=!1}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.hold,n=t.loop,r=t.video;"PENDING"===e.status&&(e.status="LOADING"),"LOADING"===e.status&&(this.setInteractiveArea(e),this.registerEventListeners(t,e,n,r),e.status="READY"),"HOLDING"===e.status&&t.videoElement.currentTime>e.configs[0].holdableEnd/this.videoFps&&(e.status="READY",this.isHoldEnded=!0),"REVERSING"===e.status&&t.videoElement.currentTime<e.configs[0].rewindEnd/this.videoFps&&(void 0!==n&&void 0!==e.configs[0].targetLoopState&&(n.state=0),r.status="PLAYING",this.isIos()?t.videoElement.currentTime=e.configs[0].seekToWhenRewindEnd/this.videoFps+.1*Math.random():(t.videoElement.currentTime=e.configs[0].seekToWhenRewindEnd,t.videoElement.play()),e.status="READY")}isIos(){return/iP(hone|(o|a)d)/.test(navigator.userAgent)}setInteractiveArea(t){for(const e of t.configs)e.holdableAreaHtml=document.createElement("div"),e.holdableAreaHtml.setAttribute("style",e.holdableAreaStyle),this.invisibleInteractiveArea(e),document.body.appendChild(e.holdableAreaHtml)}visibleInteractiveArea(t){t.holdableAreaHtml.style.visibility="visible"}invisibleInteractiveArea(t){t.holdableAreaHtml.style.visibility="hidden"}registerEventListeners(t,e,n,r){for(const i of e.configs){t.videoElement.addEventListener("timeupdate",()=>{i.holdableFrom/this.videoFps<=t.videoElement.currentTime&&t.videoElement.currentTime<=i.holdableEnd/this.videoFps?this.visibleInteractiveArea(i):this.invisibleInteractiveArea(i)}),i.holdableAreaHtml.addEventListener("touchstart",()=>{this.isHoldEnded||(this.isTouched=!0,void 0!==n&&void 0!==i.targetLoopState&&(n.state=i.targetLoopState),t.videoElement.currentTime=i.seekTo/this.videoFps+.1*Math.random(),e.status="HOLDING")}),setTimeout(()=>{this.isTouched||(this.isHoldEnded=!0,void 0!==n&&void 0!==i.targetLoopState&&(n.state=i.targetLoopState),t.videoElement.currentTime=i.holdableEnd/this.videoFps+.1*Math.random())},5e3),setTimeout(()=>{this.isHoldEnded||(e.status="READY",r.status="PLAYING",void 0!==n&&void 0!==i.targetLoopState&&(n.state=i.targetLoopState),t.videoElement.currentTime=i.holdableEnd/this.videoFps+.1*Math.random())},9e3);const o=()=>{"HOLDING"===e.status&&(this.isHoldEnded||(e.status="REVERSING",r.status="REWINDING"))};i.holdableAreaHtml.addEventListener("touchcancel",o),i.holdableAreaHtml.addEventListener("touchend",o)}}}class ec{constructor(){this.videoFps=30}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.clickThrough;if("PENDING"===e.status&&(e.status="READY"),"READY"===e.status){const n=e.configs;let r=!1;for(const e of n)e.clickableFrom/this.videoFps<=t.videoElement.currentTime&&t.videoElement.currentTime<=e.clickableEnd/this.videoFps&&(t.dispatchEvent(new CustomEvent("showClickArea")),r=!0);r||t.dispatchEvent(new CustomEvent("hideClickArea"))}}}class nc{constructor(){this.videoFps=30}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.interaction;"PENDING"===e.status&&(e.status="LOADING"),"LOADING"===e.status&&(this.setInteractiveArea(e),this.registerEventListeners(t,e),e.status="READY"),e.status}setInteractiveArea(t){t.interactiveArea=document.createElement("div"),t.interactiveArea.setAttribute("style",t.interactiveAreaStyle),t.invisibleInteractiveArea(),document.body.appendChild(t.interactiveArea)}registerEventListeners(t,e){t.videoElement.addEventListener("timeupdate",()=>{e.interactiveFrom/this.videoFps<=t.videoElement.currentTime&&t.videoElement.currentTime<=e.interactiveEnd/this.videoFps?e.visibleInteractiveArea():e.invisibleInteractiveArea(),!e.reacting&&e.loopEnd/this.videoFps<=t.videoElement.currentTime&&(t.videoElement.currentTime=t.loopFrom+.1*Math.random())}),t.videoElement.addEventListener("ended",()=>{e.reacting=!1}),e.interactiveArea.addEventListener("click",()=>{e.reacting=!0,t.videoElement.currentTime=e.reactionFrom/this.videoFps+.1*Math.random()})}}class rc{awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.video;if("PENDING"===e.status&&(e.context=t.canvasElement.getContext("2d"),this.registerEventListenersToVideo(t,e),Za(this.mraid,t=>{this.handleVideoState(t>50,e)}),t.videoElement.load(),e.status="LOADING"),"LOADING"===e.status&&e.canplaythroughReady&&(this.previousTime=Date.now(),e.status="PLAYING"),"PLAYING"===e.status){const n=Date.now();if(e.inViewState){const r=(n-this.previousTime)/1e3;t.videoElement.currentTime+=r,t.canvasElement.width=t.canvasElement.width,e.context.drawImage(t.videoElement,0,0,t.canvasElement.width,t.canvasElement.height),this.handleOnEnded(t,e)}this.previousTime=n}if("REWINDING"===e.status){const n=Date.now();if(e.inViewState){const r=(n-this.previousTime)/1e3;t.videoElement.currentTime-=r,t.canvasElement.width=t.canvasElement.width,e.context.drawImage(t.videoElement,0,0,t.canvasElement.width,t.canvasElement.height)}this.previousTime=n}}registerEventListenersToVideo(t,e){t.videoElement.addEventListener("canplaythrough",()=>{e.canplaythroughReady=!0}),t.videoElement.addEventListener("loadedmetadata",()=>{t.videoElement.play(),t.videoElement.pause()}),t.videoElement.addEventListener("timeupdate",()=>{e.animationstartDispatched||(t.dispatchEvent(new CustomEvent("animationstart",{detail:{animation:"video"}})),e.animationstartDispatched=!0),!e.loopAnimationstartDispatched&&t.loopFrom<=t.videoElement.currentTime&&(t.dispatchEvent(new CustomEvent("animationstart",{detail:{animation:"loop"}})),e.loopAnimationstartDispatched=!0)})}handleOnEnded(t,e){const n=t.videoElement;n.currentTime<n.duration||(e.animationcompleteDispatched||(t.dispatchEvent(new CustomEvent("animationcomplete",{detail:{animation:"video"}})),e.animationcompleteDispatched=!0),null!=t.loopFrom&&(t.videoElement.currentTime=t.loopFrom+.1*Math.random()))}handleVideoState(t,e){"PENDING"!==e.status&&"LOADING"!==e.status&&(t&&!e.inViewState&&(e.inViewState=!0),!t&&e.inViewState&&(e.inViewState=!1))}}class ic{constructor(){this.videoFps=30}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.loop;"PENDING"===e.status&&(e.status="LOADING"),"LOADING"===e.status&&(e.status="READY"),"READY"===e.status&&(!e.loopAnimationstartDispatched&&e.loopFrom/this.videoFps<=t.videoElement.currentTime&&(t.dispatchEvent(new CustomEvent("animationstart",{detail:{animation:"loop"}})),e.loopAnimationstartDispatched=!0),e.loopEnd/this.videoFps<=t.videoElement.currentTime&&(t.videoElement.currentTime=e.loopFrom/this.videoFps+.1*Math.random()))}}class oc{constructor(){this.videoFps=30}awake(){}updateAll(){this.entities.forEach(t=>this.update(t))}update(t){const e=t.seek,n=t.loop;"PENDING"===e.status&&(e.status="LOADING"),"LOADING"===e.status&&(this.setInteractiveArea(e),this.registerEventListeners(t,e,n),e.status="READY")}setInteractiveArea(t){for(const e of t.configs)e.clickableAreaHtml=document.createElement("div"),e.clickableAreaHtml.setAttribute("style",e.clickableAreaStyle),this.invisibleInteractiveArea(e),document.body.appendChild(e.clickableAreaHtml)}visibleInteractiveArea(t){t.clickableAreaHtml.style.visibility="visible"}invisibleInteractiveArea(t){t.clickableAreaHtml.style.visibility="hidden"}registerEventListeners(t,e,n){for(const r of e.configs)t.videoElement.addEventListener("timeupdate",()=>{r.clickableFrom/this.videoFps<=t.videoElement.currentTime&&t.videoElement.currentTime<=r.clickableEnd/this.videoFps?this.visibleInteractiveArea(r):this.invisibleInteractiveArea(r)}),r.clickableAreaHtml.addEventListener("click",()=>{void 0!==n&&void 0!==r.targetLoopState&&(n.state=r.targetLoopState),t.videoElement.currentTime=r.seekTo/this.videoFps+.1*Math.random()})}}class sc extends(Ge(Va)){constructor(){super(),this.video=new Qa}static get properties(){return Object.assign(Object.assign({},super.properties),{srcAndroid:{attribute:"src-android",type:String},srcIos:{attribute:"src-ios",type:String},width:{attribute:"width",type:Number},height:{attribute:"height",type:Number},loopFrom:{attribute:"loop-from",type:Number},top:{attribute:"top",type:String},disableLegacySupport:{attribute:"disable-legacy-support",type:Number},interaction:{attribute:"interaction",type:$a,converter:Wa},loop:{attribute:"loop",type:Ga,converter:Ya},seek:{attribute:"seek",type:Xa,converter:Ja},hold:{attribute:"hold",type:qa,converter:Ha},clickThrough:{attribute:"click-through",type:za,converter:Ba}})}render(){const t=document.body.offsetHeight,e=t/this.height*this.width,n=2<window.devicePixelRatio?2:window.devicePixelRatio,r=fa`
      <style>
        canvas {
          width: ${e}px;
          height: ${t}px;
          position: absolute;
          top: ${this.top?this.top:"0px"};
          left: 50%;
          transform: translateX(-50%);
        }
        video {
          display: none;
        }
      </style>
      <canvas
        width="${e*n}"
        height="${t*n}"
      ></canvas>
    `,i=fa`
      <style>
        video {
          width: ${e}px;
          height: ${t}px;
          position: absolute;
          top: ${this.top?this.top:"0px"};
          left: 50%;
          transform: translateX(-50%);
        }
      </style>
    `;return fa`
      ${this.isIos()?r:i}
      <video playsinline muted preload="auto">
        <source src="${this.srcIos}" type="video/quicktime" />
        <source src="${this.srcAndroid}" type="video/webm" />
      </video>
    `}firstUpdated(){this.videoElement=this.shadowRoot.querySelector("video"),this.canvasElement=this.shadowRoot.querySelector("canvas");const t=this.buildSystems();t.forEach(t=>{(t instanceof rc||t instanceof Ka)&&(t.entities=[this],t.mraid=this.mraid),t instanceof nc&&this.hasAttribute("interaction")&&(t.entities=[this]),t instanceof ic&&(t.entities=[this]),t instanceof oc&&(t.entities=[this]),t instanceof tc&&(t.entities=[this]),t instanceof ec&&(t.entities=[this]),t.awake()});const e=()=>{t.forEach(t=>t.updateAll()),requestAnimationFrame(e)};e()}buildSystems(){const t=[this.buildVideoSystem()];return this.hasAttribute("interaction")&&t.push(new nc),this.hasAttribute("loop")&&t.push(new ic),this.hasAttribute("seek")&&t.push(new oc),this.hasAttribute("hold")&&t.push(new tc),this.hasAttribute("click-through")&&t.push(new ec),t}buildVideoSystem(){let t;return t=this.isIos()?new rc:new Ka}isIos(){return/iP(hone|(o|a)d)/.test(navigator.userAgent)}}document.addEventListener("DOMContentLoaded",()=>{customElements.define("v-error-tracker",fo),customElements.define("v-mute-button",jo),customElements.define("v-banner",Vr),customElements.define("v-logging-event",go),customElements.define("v-logging-timer",_o),customElements.define("v-track-iframe-type",Es),customElements.define("v-viewable",Ls),customElements.define("v-video",sc),customElements.define("v-a",ft),customElements.define("v-tracking-timer",vr),customElements.define("v-tracking-animation",on),customElements.define("v-tracking-dom",Os),customElements.define("v-click-through",Ze),customElements.define("v-click-tracking",Wr),customElements.define("v-timer-view-tracking",bs),customElements.define("v-animation-view-tracking",Sr),customElements.define("v-tune-tracking-timer",Us),customElements.define("v-tune-tracking-animation",Ns),customElements.define("v-tune-click-through",Rs),customElements.define("v-apps-flyer-tracking-timer",Cr),customElements.define("v-apps-flyer-tracking-animation",jr),customElements.define("v-apps-flyer-click-through",kr),customElements.define("v-apps-flyer-with-impression-url-tracking-timer",Dr),customElements.define("v-apps-flyer-with-impression-url-click-through",Nr),customElements.define("v-adjust-tracking-timer",yr),customElements.define("v-adjust-tracking-animation",cn),customElements.define("v-adjust-click-through",en),customElements.define("v-singular-tracking-timer",ms),customElements.define("v-singular-tracking-animation",fs),customElements.define("v-singular-click-through",ps),customElements.define("v-beacon-tag-tracking-timer",qr),customElements.define("v-metaps-tracking-timer",ko),customElements.define("v-metaps-click-through",xo),customElements.define("v-nend-adjust-tracking-timer",is),customElements.define("v-nend-adjust-tracking-animation",ns),customElements.define("v-nend-apps-flyer-tracking-timer",os),customElements.define("v-nend-viewable",us),customElements.define("v-nend-tracking-event",cs)})},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r,i=n(8);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(r||(r={}));var o=function(){function t(t){var e=this;this._state=r.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(t,r.RESOLVED)},this._reject=function(t){e._setResult(t,r.REJECTED)},this._setResult=function(t,n){e._state===r.PENDING&&(Object(i.j)(t)?t.then(e._resolve,e._reject):(e._value=t,e._state=n,e._executeHandlers()))},this._executeHandlers=function(){e._state!==r.PENDING&&(e._state===r.REJECTED?e._handlers.forEach(function(t){return t.onFail&&t.onFail(e._value)}):e._handlers.forEach(function(t){return t.onSuccess&&t.onSuccess(e._value)}),e._handlers=[])},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,n){var r=this;return new t(function(t,i){r._attachHandler({onFail:function(e){if(n)try{return void t(n(e))}catch(t){return void i(t)}else i(e)},onSuccess:function(n){if(e)try{return void t(e(n))}catch(t){return void i(t)}else t(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.toString=function(){return"[object SyncPromise]"},t.resolve=function(e){return new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(2),i=Object(r.e)(),o="Sentry Logger ",s=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(r.b)(function(){i.console.log(o+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.b)(function(){i.console.warn(o+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&Object(r.b)(function(){i.console.error(o+"[Error]: "+t.join(" "))})},t}();i.__SENTRY__=i.__SENTRY__||{};var a=i.__SENTRY__.logger||(i.__SENTRY__.logger=new s)},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return l});var r=n(0),i=n(2),o=n(159),s=n(23),a=3,c=function(){function t(t,e,n){void 0===e&&(e=new s.a),void 0===n&&(n=a),this._version=n,this._stack=[],this._stack.push({client:t,scope:e})}return t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop();o&&o.client&&o.client[t]&&(e=o.client)[t].apply(e,r.f(n,[o.scope]))},t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t},t.prototype.pushScope=function(){var t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=s.a.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==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(i.g)();return this._invokeClient("captureException",t,r.a({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var o=this._lastEventId=Object(i.g)();return this._invokeClient("captureMessage",t,e,r.a({},n,{event_id:o})),o},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=Object(i.g)();return this._invokeClient("captureEvent",t,r.a({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop();if(n.scope&&n.client){var o=n.client.getOptions&&n.client.getOptions()||{},s=o.beforeBreadcrumb,a=void 0===s?null:s,c=o.maxBreadcrumbs,u=void 0===c?30:c;if(!(u<=0)){var d=(new Date).getTime()/1e3,l=r.a({timestamp:d},t),p=a?Object(i.b)(function(){return a(l,e)}):l;null!==p&&n.scope.addBreadcrumb(p,Math.min(u,100))}}},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=d(this);try{t(this)}finally{d(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return o.a.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function u(){var t=Object(i.e)();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function d(t){var e=u(),n=h(e);return f(e,t),n}function l(){var e=u();p(e)&&!h(e).isOlderThan(a)||f(e,new c);try{var n=Object(i.c)(t,"domain").active;if(!n)return h(e);if(!p(n)||h(n).isOlderThan(a)){var r=h(e).getStackTop();f(n,new c(r.client,s.a.clone(r.scope)))}return h(n)}catch(t){return h(e)}}function p(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function h(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new c,t.__SENTRY__.hub)}function f(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}}).call(this,n(156)(t))}]);