=0?this._store.getGroupById(r):null;this._store.dispatch(oe(i,true));if(t){this.passedElement.triggerEvent(R.highlightItem,{id:i,value:o,label:c,groupValue:l&&l.value?l.value:null})}return this};e.unhighlightItem=function unhighlightItem(e){if(!e){return this}var t=e.id,i=e.groupId,n=i===void 0?-1:i,r=e.value,s=r===void 0?"":r,o=e.label,a=o===void 0?"":o;var c=n>=0?this._store.getGroupById(n):null;this._store.dispatch(oe(t,false));this.passedElement.triggerEvent(R.highlightItem,{id:t,value:s,label:a,groupValue:c&&c.value?c.value:null});return this};e.highlightAll=function highlightAll(){var e=this;this._store.items.forEach((function(t){return e.highlightItem(t)}));return this};e.unhighlightAll=function unhighlightAll(){var e=this;this._store.items.forEach((function(t){return e.unhighlightItem(t)}));return this};e.removeActiveItemsByValue=function removeActiveItemsByValue(e){var t=this;this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)}));return this};e.removeActiveItems=function removeActiveItems(e){var t=this;this._store.activeItems.filter((function(t){var i=t.id;return i!==e})).forEach((function(e){return t._removeItem(e)}));return this};e.removeHighlightedItems=function removeHighlightedItems(e){var t=this;if(e===void 0){e=false}this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i);if(e){t._triggerChange(i.value)}}));return this};e.showDropdown=function showDropdown(e){var t=this;if(this.dropdown.isActive){return this}requestAnimationFrame((function(){t.dropdown.show();t.containerOuter.open(t.dropdown.distanceFromTopWindow);if(!e&&t._canSearch){t.input.focus()}t.passedElement.triggerEvent(R.showDropdown,{})}));return this};e.hideDropdown=function hideDropdown(e){var t=this;if(!this.dropdown.isActive){return this}requestAnimationFrame((function(){t.dropdown.hide();t.containerOuter.close();if(!e&&t._canSearch){t.input.removeActiveDescendant();t.input.blur()}t.passedElement.triggerEvent(R.hideDropdown,{})}));return this};e.getValue=function getValue(e){if(e===void 0){e=false}var t=this._store.activeItems.reduce((function(t,i){var n=e?i.value:i;t.push(n);return t}),[]);return this._isSelectOneElement?t[0]:t};e.setValue=function setValue(e){var t=this;if(!this.initialised){return this}e.forEach((function(e){return t._setChoiceOrItem(e)}));return this};e.setChoiceByValue=function setChoiceByValue(e){var t=this;if(!this.initialised||this._isTextElement){return this}var i=Array.isArray(e)?e:[e];i.forEach((function(e){return t._findAndSelectChoiceByValue(e)}));return this};e.setChoices=function setChoices(e,t,i,n){var r=this;if(e===void 0){e=[]}if(t===void 0){t="value"}if(i===void 0){i="label"}if(n===void 0){n=false}if(!this.initialised){throw new ReferenceError("setChoices was called on a non-initialized instance of Choices")}if(!this._isSelectElement){throw new TypeError("setChoices can't be used with INPUT based Choices")}if(typeof t!=="string"||!t){throw new TypeError("value parameter must be a name of 'value' field in passed objects")}if(n){this.clearChoices()}if(typeof e==="function"){var s=e(this);if(typeof Promise==="function"&&s instanceof Promise){return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(true)})).then((function(){return s})).then((function(e){return r.setChoices(e,t,i,n)})).catch((function(e){if(!r.config.silent){console.error(e)}})).then((function(){return r._handleLoadingState(false)})).then((function(){return r}))}if(!Array.isArray(s)){throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof s)}return this.setChoices(s,t,i,false)}if(!Array.isArray(e)){throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")}this.containerOuter.removeLoadingState();this._startLoading();e.forEach((function(e){if(e.choices){r._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:i})}else{r._addChoice({value:e[t],label:e[i],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})}}));this._stopLoading();return this};e.clearChoices=function clearChoices(){this._store.dispatch(ne());return this};e.clearStore=function clearStore(){this._store.dispatch(ce());return this};e.clearInput=function clearInput(){var e=!this._isSelectOneElement;this.input.clear(e);if(!this._isTextElement&&this._canSearch){this._isSearching=false;this._store.dispatch(ie(true))}return this};e._render=function _render(){if(this._store.isLoading()){return}this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items;var t=this._isSelectElement;var i=this._currentState.items!==this._prevState.items;if(!e){return}if(t){this._renderChoices()}if(i){this._renderItems()}this._prevState=this._currentState};e._renderChoices=function _renderChoices(){var e=this;var t=this._store,i=t.activeGroups,n=t.activeChoices;var r=document.createDocumentFragment();this.choiceList.clear();if(this.config.resetScrollPosition){requestAnimationFrame((function(){return e.choiceList.scrollToTop()}))}if(i.length>=1&&!this._isSearching){var s=n.filter((function(e){return e.placeholder===true&&e.groupId===-1}));if(s.length>=1){r=this._createChoicesFragment(s,r)}r=this._createGroupsFragment(i,n,r)}else if(n.length>=1){r=this._createChoicesFragment(n,r)}if(r.childNodes&&r.childNodes.length>0){var o=this._store.activeItems;var a=this._canAddItem(o,this.input.value);if(a.response){this.choiceList.append(r);this._highlightChoice()}else{this.choiceList.append(this._getTemplate("notice",a.notice))}}else{var c;var l;if(this._isSearching){l=typeof this.config.noResultsText==="function"?this.config.noResultsText():this.config.noResultsText;c=this._getTemplate("notice",l,"no-results")}else{l=typeof this.config.noChoicesText==="function"?this.config.noChoicesText():this.config.noChoicesText;c=this._getTemplate("notice",l,"no-choices")}this.choiceList.append(c)}};e._renderItems=function _renderItems(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);if(t.childNodes){this.itemList.append(t)}};e._createGroupsFragment=function _createGroupsFragment(e,t,i){var n=this;if(i===void 0){i=document.createDocumentFragment()}var r=function getGroupChoices(e){return t.filter((function(t){if(n._isSelectOneElement){return t.groupId===e.id}return t.groupId===e.id&&(n.config.renderSelectedChoices==="always"||!t.selected)}))};if(this.config.shouldSort){e.sort(this.config.sorter)}e.forEach((function(e){var t=r(e);if(t.length>=1){var s=n._getTemplate("choiceGroup",e);i.appendChild(s);n._createChoicesFragment(t,i,true)}}));return i};e._createChoicesFragment=function _createChoicesFragment(e,t,i){var n=this;if(t===void 0){t=document.createDocumentFragment()}if(i===void 0){i=false}var r=this.config,s=r.renderSelectedChoices,o=r.searchResultLimit,a=r.renderChoiceLimit;var c=this._isSearching?A:this.config.sorter;var l=function appendChoice(e){var i=s==="auto"?n._isSelectOneElement||!e.selected:true;if(i){var r=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(r)}};var u=e;if(s==="auto"&&!this._isSelectOneElement){u=e.filter((function(e){return!e.selected}))}var h=u.reduce((function(e,t){if(t.placeholder){e.placeholderChoices.push(t)}else{e.normalChoices.push(t)}return e}),{placeholderChoices:[],normalChoices:[]}),d=h.placeholderChoices,f=h.normalChoices;if(this.config.shouldSort||this._isSearching){f.sort(c)}var p=u.length;var m=this._isSelectOneElement?[].concat(d,f):f;if(this._isSearching){p=o}else if(a&&a>0&&!i){p=a}for(var v=0;v=n){var o=r?this._searchChoices(e):0;this.passedElement.triggerEvent(R.search,{value:e,resultCount:o})}else if(s){this._isSearching=false;this._store.dispatch(ie(true))}};e._canAddItem=function _canAddItem(e,t){var i=true;var n=typeof this.config.addItemText==="function"?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=T(e,t);if(this.config.maxItemCount>0&&this.config.maxItemCount<=e.length){i=false;n=typeof this.config.maxItemText==="function"?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText}if(!this.config.duplicateItemsAllowed&&r&&i){i=false;n=typeof this.config.uniqueItemText==="function"?this.config.uniqueItemText(t):this.config.uniqueItemText}if(this._isTextElement&&this.config.addItems&&i&&typeof this.config.addItemFilter==="function"&&!this.config.addItemFilter(t)){i=false;n=typeof this.config.customAddItemText==="function"?this.config.customAddItemText(t):this.config.customAddItemText}}return{response:i,notice:n}};e._searchChoices=function _searchChoices(e){var t=typeof e==="string"?e.trim():e;var i=typeof this._currentValue==="string"?this._currentValue.trim():this._currentValue;if(t.length<1&&t===i+" "){return 0}var n=this._store.searchableChoices;var s=t;var o=[].concat(this.config.searchFields);var a=Object.assign(this.config.fuseOptions,{keys:o});var c=new r.a(n,a);var l=c.search(s);this._currentValue=t;this._highlightPosition=0;this._isSearching=true;this._store.dispatch(te(l));return l.length};e._addEventListeners=function _addEventListeners(){var e=document,t=e.documentElement;t.addEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.addEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,true);t.addEventListener("click",this._onClick,{passive:true});t.addEventListener("touchmove",this._onTouchMove,{passive:true});this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:true});if(this._isSelectOneElement){this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:true});this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:true})}this.input.element.addEventListener("keyup",this._onKeyUp,{passive:true});this.input.element.addEventListener("focus",this._onFocus,{passive:true});this.input.element.addEventListener("blur",this._onBlur,{passive:true});if(this.input.element.form){this.input.element.form.addEventListener("reset",this._onFormReset,{passive:true})}this.input.addEventListeners()};e._removeEventListeners=function _removeEventListeners(){var e=document,t=e.documentElement;t.removeEventListener("touchend",this._onTouchEnd,true);this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,true);this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,true);t.removeEventListener("click",this._onClick);t.removeEventListener("touchmove",this._onTouchMove);this.dropdown.element.removeEventListener("mouseover",this._onMouseOver);if(this._isSelectOneElement){this.containerOuter.element.removeEventListener("focus",this._onFocus);this.containerOuter.element.removeEventListener("blur",this._onBlur)}this.input.element.removeEventListener("keyup",this._onKeyUp);this.input.element.removeEventListener("focus",this._onFocus);this.input.element.removeEventListener("blur",this._onBlur);if(this.input.element.form){this.input.element.form.removeEventListener("reset",this._onFormReset)}this.input.removeEventListeners()};e._onKeyDown=function _onKeyDown(e){var t;var i=e.target,n=e.keyCode,r=e.ctrlKey,s=e.metaKey;var o=this._store.activeItems;var a=this.input.isFocussed;var c=this.dropdown.isActive;var l=this.itemList.hasChildren();var u=String.fromCharCode(n);var h=B.BACK_KEY,d=B.DELETE_KEY,f=B.ENTER_KEY,p=B.A_KEY,m=B.ESC_KEY,v=B.UP_KEY,g=B.DOWN_KEY,_=B.PAGE_UP_KEY,b=B.PAGE_DOWN_KEY;var y=r||s;if(!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(u)){this.showDropdown()}var E=(t={},t[p]=this._onAKey,t[f]=this._onEnterKey,t[m]=this._onEscapeKey,t[v]=this._onDirectionKey,t[_]=this._onDirectionKey,t[g]=this._onDirectionKey,t[b]=this._onDirectionKey,t[d]=this._onDeleteKey,t[h]=this._onDeleteKey,t);if(E[n]){E[n]({event:e,target:i,keyCode:n,metaKey:s,activeItems:o,hasFocusedInput:a,hasActiveDropdown:c,hasItems:l,hasCtrlDownKeyPressed:y})}};e._onKeyUp=function _onKeyUp(e){var t=e.target,i=e.keyCode;var n=this.input.value;var r=this._store.activeItems;var s=this._canAddItem(r,n);var o=B.BACK_KEY,a=B.DELETE_KEY;if(this._isTextElement){var c=s.notice&&n;if(c){var l=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=l.outerHTML;this.showDropdown(true)}else{this.hideDropdown(true)}}else{var u=(i===o||i===a)&&!t.value;var h=!this._isTextElement&&this._isSearching;var d=this._canSearch&&s.response;if(u&&h){this._isSearching=false;this._store.dispatch(ie(true))}else if(d){this._handleSearch(this.input.value)}}this._canSearch=this.config.searchEnabled};e._onAKey=function _onAKey(e){var t=e.hasItems,i=e.hasCtrlDownKeyPressed;if(i&&t){this._canSearch=false;var n=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;if(n){this.highlightAll()}}};e._onEnterKey=function _onEnterKey(e){var t=e.event,i=e.target,n=e.activeItems,r=e.hasActiveDropdown;var s=B.ENTER_KEY;var o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;var c=this._canAddItem(n,a);if(c.response){this.hideDropdown(true);this._addItem({value:a});this._triggerChange(a);this.clearInput()}}if(o){this._handleButtonAction(n,i);t.preventDefault()}if(r){var l=this.dropdown.getChild("."+this.config.classNames.highlightedState);if(l){if(n[0]){n[0].keyCode=s}this._handleChoiceAction(n,l)}t.preventDefault()}else if(this._isSelectOneElement){this.showDropdown();t.preventDefault()}};e._onEscapeKey=function _onEscapeKey(e){var t=e.hasActiveDropdown;if(t){this.hideDropdown(true);this.containerOuter.focus()}};e._onDirectionKey=function _onDirectionKey(e){var t=e.event,i=e.hasActiveDropdown,n=e.keyCode,r=e.metaKey;var s=B.DOWN_KEY,o=B.PAGE_UP_KEY,a=B.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown();this._canSearch=false;var c=n===s||n===a?1:-1;var l=r||n===a||n===o;var u="[data-choice-selectable]";var h;if(l){if(c>0){h=this.dropdown.element.querySelector(u+":last-of-type")}else{h=this.dropdown.element.querySelector(u)}}else{var d=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);if(d){h=w(d,u,c)}else{h=this.dropdown.element.querySelector(u)}}if(h){if(!I(h,this.choiceList.element,c)){this.choiceList.scrollToChildElement(h,c)}this._highlightChoice(h)}t.preventDefault()}};e._onDeleteKey=function _onDeleteKey(e){var t=e.event,i=e.target,n=e.hasFocusedInput,r=e.activeItems;if(n&&!i.value&&!this._isSelectOneElement){this._handleBackspace(r);t.preventDefault()}};e._onTouchMove=function _onTouchMove(){if(this._wasTap){this._wasTap=false}};e._onTouchEnd=function _onTouchEnd(e){var t=e||e.touches[0],i=t.target;var n=this._wasTap&&this.containerOuter.element.contains(i);if(n){var r=i===this.containerOuter.element||i===this.containerInner.element;if(r){if(this._isTextElement){this.input.focus()}else if(this._isSelectMultipleElement){this.showDropdown()}}e.stopPropagation()}this._wasTap=true};e._onMouseDown=function _onMouseDown(e){var t=e.target;if(!(t instanceof HTMLElement)){return}if(he&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild;var n=this._direction==="ltr"?e.offsetX>=i.offsetWidth:e.offsetX0;if(n){this.unhighlightAll()}this.containerOuter.removeFocusState();this.hideDropdown(true)}};e._onFocus=function _onFocus(e){var t=this,i;var n=e.target;var r=this.containerOuter.element.contains(n);if(!r){return}var s=(i={},i[G]=function(){if(n===t.input.element){t.containerOuter.addFocusState()}},i[V]=function(){t.containerOuter.addFocusState();if(n===t.input.element){t.showDropdown(true)}},i[U]=function(){if(n===t.input.element){t.showDropdown(true);t.containerOuter.addFocusState()}},i);s[this.passedElement.element.type]()};e._onBlur=function _onBlur(e){var t=this;var i=e.target;var n=this.containerOuter.element.contains(i);if(n&&!this._isScrollingOnIe){var r;var s=this._store.activeItems;var o=s.some((function(e){return e.highlighted}));var a=(r={},r[G]=function(){if(i===t.input.element){t.containerOuter.removeFocusState();if(o){t.unhighlightAll()}t.hideDropdown(true)}},r[V]=function(){t.containerOuter.removeFocusState();if(i===t.input.element||i===t.containerOuter.element&&!t._canSearch){t.hideDropdown(true)}},r[U]=function(){if(i===t.input.element){t.containerOuter.removeFocusState();t.hideDropdown(true);if(o){t.unhighlightAll()}}},r);a[this.passedElement.element.type]()}else{this._isScrollingOnIe=false;this.input.element.focus()}};e._onFormReset=function _onFormReset(){this._store.dispatch(le(this._initialState))};e._highlightChoice=function _highlightChoice(e){var t=this;if(e===void 0){e=null}var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(!i.length){return}var n=e;var r=Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState));r.forEach((function(e){e.classList.remove(t.config.classNames.highlightedState);e.setAttribute("aria-selected","false")}));if(n){this._highlightPosition=i.indexOf(n)}else{if(i.length>this._highlightPosition){n=i[this._highlightPosition]}else{n=i[i.length-1]}if(!n){n=i[0]}}n.classList.add(this.config.classNames.highlightedState);n.setAttribute("aria-selected","true");this.passedElement.triggerEvent(R.highlightChoice,{el:n});if(this.dropdown.isActive){this.input.setActiveDescendant(n.id);this.containerOuter.setActiveDescendant(n.id)}};e._addItem=function _addItem(e){var t=e.value,i=e.label,n=i===void 0?null:i,r=e.choiceId,s=r===void 0?-1:r,o=e.groupId,a=o===void 0?-1:o,c=e.customProperties,l=c===void 0?null:c,u=e.placeholder,h=u===void 0?false:u,d=e.keyCode,f=d===void 0?null:d;var p=typeof t==="string"?t.trim():t;var m=f;var v=l;var g=this._store.items;var _=n||p;var b=s||-1;var y=a>=0?this._store.getGroupById(a):null;var E=g?g.length+1:1;if(this.config.prependValue){p=this.config.prependValue+p.toString()}if(this.config.appendValue){p+=this.config.appendValue.toString()}this._store.dispatch(re({value:p,label:_,id:E,choiceId:b,groupId:a,customProperties:l,placeholder:h,keyCode:m}));if(this._isSelectOneElement){this.removeActiveItems(E)}this.passedElement.triggerEvent(R.addItem,{id:E,value:p,label:_,customProperties:v,groupValue:y&&y.value?y.value:undefined,keyCode:m});return this};e._removeItem=function _removeItem(e){if(!e||!y("Object",e)){return this}var t=e.id,i=e.value,n=e.label,r=e.choiceId,s=e.groupId;var o=s>=0?this._store.getGroupById(s):null;this._store.dispatch(se(t,r));if(o&&o.value){this.passedElement.triggerEvent(R.removeItem,{id:t,value:i,label:n,groupValue:o.value})}else{this.passedElement.triggerEvent(R.removeItem,{id:t,value:i,label:n})}return this};e._addChoice=function _addChoice(e){var t=e.value,i=e.label,n=i===void 0?null:i,r=e.isSelected,s=r===void 0?false:r,o=e.isDisabled,a=o===void 0?false:o,c=e.groupId,l=c===void 0?-1:c,u=e.customProperties,h=u===void 0?null:u,d=e.placeholder,f=d===void 0?false:d,p=e.keyCode,m=p===void 0?null:p;if(typeof t==="undefined"||t===null){return}var v=this._store.choices;var g=n||t;var _=v?v.length+1:1;var b=this._baseId+"-"+this._idNames.itemChoice+"-"+_;this._store.dispatch(ee({id:_,groupId:l,elementId:b,value:t,label:g,disabled:a,customProperties:h,placeholder:f,keyCode:m}));if(s){this._addItem({value:t,label:g,choiceId:_,customProperties:h,placeholder:f,keyCode:m})}};e._addGroup=function _addGroup(e){var t=this;var i=e.group,n=e.id,r=e.valueKey,s=r===void 0?"value":r,o=e.labelKey,a=o===void 0?"label":o;var c=y("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION"));var l=n||Math.floor((new Date).valueOf()*Math.random());var u=i.disabled?i.disabled:false;if(c){this._store.dispatch(ae({value:i.label,id:l,active:true,disabled:u}));var h=function addGroupChoices(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[s],label:y("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})};c.forEach(h)}else{this._store.dispatch(ae({value:i.label,id:i.id,active:false,disabled:i.disabled}))}};e._getTemplate=function _getTemplate(e){var t;if(!e){return null}var i=this.config.classNames;for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s=0){e()}else{t=false;document.addEventListener("DOMContentLoaded",load,false);window.addEventListener("load",load,false)}}if(typeof document!=="undefined"){onDOMReady(init)}}))}}]);
\ No newline at end of file
diff --git a/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.hammerjs.js b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.hammerjs.js
new file mode 100644
index 00000000..5d4599ff
--- /dev/null
+++ b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.hammerjs.js
@@ -0,0 +1,6 @@
+(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[32],{335:function(t,e,i){var n;
+/*! Hammer.JS - v2.0.7 - 2016-04-22
+ * http://hammerjs.github.io/
+ *
+ * Copyright (c) 2016 Jorik Tangelder;
+ * Licensed under the MIT license */(function(r,s,o,a){"use strict";var u=["","webkit","Moz","MS","ms","o"];var c=s.createElement("div");var h="function";var l=Math.round;var p=Math.abs;var f=Date.now;function setTimeoutContext(t,e,i){return setTimeout(bindFn(t,i),e)}function invokeArrayArg(t,e,i){if(Array.isArray(t)){each(t,i[e],i);return true}return false}function each(t,e,i){var n;if(!t){return}if(t.forEach){t.forEach(e,i)}else if(t.length!==a){n=0;while(n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var s=r.console&&(r.console.warn||r.console.log);if(s){s.call(r.console,n,i)}return t.apply(this,arguments)}}var v;if(typeof Object.assign!=="function"){v=function assign(t){if(t===a||t===null){throw new TypeError("Cannot convert undefined or null to object")}var e=Object(t);for(var i=1;i-1}function splitStr(t){return t.trim().split(/\s+/g)}function inArray(t,e,i){if(t.indexOf&&!i){return t.indexOf(e)}else{var n=0;while(ni[e]}))}}return n}function prefixed(t,e){var i,n;var r=e[0].toUpperCase()+e.slice(1);var s=0;while(s1&&!i.firstMultiple){i.firstMultiple=simpleCloneInputData(e)}else if(r===1){i.firstMultiple=false}var s=i.firstInput;var o=i.firstMultiple;var a=o?o.center:s.center;var u=e.center=getCenter(n);e.timeStamp=f();e.deltaTime=e.timeStamp-s.timeStamp;e.angle=getAngle(a,u);e.distance=getDistance(a,u);computeDeltaXY(i,e);e.offsetDirection=getDirection(e.deltaX,e.deltaY);var c=getVelocity(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x;e.overallVelocityY=c.y;e.overallVelocity=p(c.x)>p(c.y)?c.x:c.y;e.scale=o?getScale(o.pointers,n):1;e.rotation=o?getRotation(o.pointers,n):0;e.maxPointers=!i.prevInput?e.pointers.length:e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers;computeIntervalInputData(i,e);var h=t.element;if(hasParent(e.srcEvent.target,h)){h=e.srcEvent.target}e.target=h}function computeDeltaXY(t,e){var i=e.center;var n=t.offsetDelta||{};var r=t.prevDelta||{};var s=t.prevInput||{};if(e.eventType===D||s.eventType===C){r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0};n=t.offsetDelta={x:i.x,y:i.y}}e.deltaX=r.x+(i.x-n.x);e.deltaY=r.y+(i.y-n.y)}function computeIntervalInputData(t,e){var i=t.lastInterval||e,n=e.timeStamp-i.timeStamp,r,s,o,u;if(e.eventType!=M&&(n>P||i.velocity===a)){var c=e.deltaX-i.deltaX;var h=e.deltaY-i.deltaY;var l=getVelocity(n,c,h);s=l.x;o=l.y;r=p(l.x)>p(l.y)?l.x:l.y;u=getDirection(c,h);t.lastInterval=e}else{r=i.velocity;s=i.velocityX;o=i.velocityY;u=i.direction}e.velocity=r;e.velocityX=s;e.velocityY=o;e.direction=u}function simpleCloneInputData(t){var e=[];var i=0;while(i=p(e)){return t<0?x:_}return e<0?F:O}function getDistance(t,e,i){if(!i){i=Y}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function getAngle(t,e,i){if(!i){i=Y}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.atan2(r,n)*180/Math.PI}function getRotation(t,e){return getAngle(e[1],e[0],H)+getAngle(t[1],t[0],H)}function getScale(t,e){return getDistance(e[0],e[1],H)/getDistance(t[0],t[1],H)}var q={mousedown:D,mousemove:w,mouseup:C};var k="mousedown";var W="mousemove mouseup";function MouseInput(){this.evEl=k;this.evWin=W;this.pressed=false;Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(t){var e=q[t.type];if(e&D&&t.button===0){this.pressed=true}if(e&w&&t.which!==1){e=C}if(!this.pressed){return}if(e&C){this.pressed=false}this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:z,srcEvent:t})}});var U={pointerdown:D,pointermove:w,pointerup:C,pointercancel:M,pointerout:M};var V={2:A,3:R,4:z,5:S};var j="pointerdown";var B="pointermove pointerup pointercancel";if(r.MSPointerEvent&&!r.PointerEvent){j="MSPointerDown";B="MSPointerMove MSPointerUp MSPointerCancel"}function PointerEventInput(){this.evEl=j;this.evWin=B;Input.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}inherit(PointerEventInput,Input,{handler:function PEhandler(t){var e=this.store;var i=false;var n=t.type.toLowerCase().replace("ms","");var r=U[n];var s=V[t.pointerType]||t.pointerType;var o=s==A;var a=inArray(e,t.pointerId,"pointerId");if(r&D&&(t.button===0||o)){if(a<0){e.push(t);a=e.length-1}}else if(r&(C|M)){i=true}if(a<0){return}e[a]=t;this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t});if(i){e.splice(a,1)}}});var G={touchstart:D,touchmove:w,touchend:C,touchcancel:M};var Z="touchstart";var $="touchstart touchmove touchend touchcancel";function SingleTouchInput(){this.evTarget=Z;this.evWin=$;this.started=false;Input.apply(this,arguments)}inherit(SingleTouchInput,Input,{handler:function TEhandler(t){var e=G[t.type];if(e===D){this.started=true}if(!this.started){return}var i=normalizeSingleTouches.call(this,t,e);if(e&(C|M)&&i[0].length-i[1].length===0){this.started=false}this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:A,srcEvent:t})}});function normalizeSingleTouches(t,e){var i=toArray(t.touches);var n=toArray(t.changedTouches);if(e&(C|M)){i=uniqueArray(i.concat(n),"identifier",true)}return[i,n]}var J={touchstart:D,touchmove:w,touchend:C,touchcancel:M};var K="touchstart touchmove touchend touchcancel";function TouchInput(){this.evTarget=K;this.targetIds={};Input.apply(this,arguments)}inherit(TouchInput,Input,{handler:function MTEhandler(t){var e=J[t.type];var i=getTouches.call(this,t,e);if(!i){return}this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:A,srcEvent:t})}});function getTouches(t,e){var i=toArray(t.touches);var n=this.targetIds;if(e&(D|w)&&i.length===1){n[i[0].identifier]=true;return[i,i]}var r,s,o=toArray(t.changedTouches),a=[],u=this.target;s=i.filter((function(t){return hasParent(t.target,u)}));if(e===D){r=0;while(r-1){n.splice(t,1)}};setTimeout(removeLastTouch,Q)}}function isSyntheticEvent(t){var e=t.srcEvent.clientX,i=t.srcEvent.clientY;for(var n=0;n-1){this.requireFail.splice(e,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this;var i=this.state;function emit(i){e.manager.emit(i,t)}if(i=ft){emit(e.options.event+stateStr(i))}},tryEmit:function(t){if(this.canEmit()){return this.emit(t)}this.state=dt},canEmit:function(){var t=0;while(te.threshold&&r&e.direction},attrTest:function(t){return AttrRecognizer.prototype.attrTest.call(this,t)&&(this.state<||!(this.state<)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var e=directionStr(t.direction);if(e){t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state<)},emit:function(t){if(t.scale!==1){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function PressRecognizer(){Recognizer.apply(this,arguments);this._timer=null;this._input=null}inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[rt]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distancee.time;this._input=t;if(!n||!i||t.eventType&(C|M)&&!r){this.reset()}else if(t.eventType&D){this.reset();this._timer=setTimeoutContext((function(){this.state=vt;this.tryEmit()}),e.time,this)}else if(t.eventType&C){return vt}return dt},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==vt){return}if(t&&t.eventType&C){this.manager.emit(this.options.event+"up",t)}else{this._input.timeStamp=f();this.manager.emit(this.options.event,this._input)}}});function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state<)}});function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:N|L,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(t){var e=this.options.direction;var i;if(e&(N|L)){i=t.overallVelocity}else if(e&N){i=t.overallVelocityX}else if(e&L){i=t.overallVelocityY}return this._super.attrTest.call(this,t)&&e&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(i)>this.options.velocity&&t.eventType&C},emit:function(t){var e=directionStr(t.offsetDirection);if(e){this.manager.emit(this.options.event+e,t)}this.manager.emit(this.options.event,t)}});function TapRecognizer(){Recognizer.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[st]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distance0}})}return}var t=window.document;var e=[];function IntersectionObserverEntry(t){this.time=t.time;this.target=t.target;this.rootBounds=t.rootBounds;this.boundingClientRect=t.boundingClientRect;this.intersectionRect=t.intersectionRect||getEmptyRect();this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect;var n=e.width*e.height;var r=this.intersectionRect;var i=r.width*r.height;if(n){this.intersectionRatio=Number((i/n).toFixed(4))}else{this.intersectionRatio=this.isIntersecting?1:0}}function IntersectionObserver(t,e){var n=e||{};if(typeof t!="function"){throw new Error("callback must be a function")}if(n.root&&n.root.nodeType!=1){throw new Error("root must be an Element")}this._checkForIntersections=throttle(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}IntersectionObserver.prototype.THROTTLE_TIMEOUT=100;IntersectionObserver.prototype.POLL_INTERVAL=null;IntersectionObserver.prototype.USE_MUTATION_OBSERVER=true;IntersectionObserver.prototype.observe=function(t){var e=this._observationTargets.some((function(e){return e.element==t}));if(e){return}if(!(t&&t.nodeType==1)){throw new Error("target must be an Element")}this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections();this._checkForIntersections()};IntersectionObserver.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t}));if(!this._observationTargets.length){this._unmonitorIntersections();this._unregisterInstance()}};IntersectionObserver.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()};IntersectionObserver.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};IntersectionObserver.prototype._initThresholds=function(t){var e=t||[0];if(!Array.isArray(e))e=[e];return e.sort().filter((function(t,e,n){if(typeof t!="number"||isNaN(t)||t<0||t>1){throw new Error("threshold must be a number between 0 and 1 inclusively")}return t!==n[e-1]}))};IntersectionObserver.prototype._parseRootMargin=function(t){var e=t||"0px";var n=e.split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e){throw new Error("rootMargin must be specified in pixels or percent")}return{value:parseFloat(e[1]),unit:e[2]}}));n[1]=n[1]||n[0];n[2]=n[2]||n[0];n[3]=n[3]||n[1];return n};IntersectionObserver.prototype._monitorIntersections=function(){if(!this._monitoringIntersections){this._monitoringIntersections=true;if(this.POLL_INTERVAL){this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL)}else{addEvent(window,"resize",this._checkForIntersections,true);addEvent(t,"scroll",this._checkForIntersections,true);if(this.USE_MUTATION_OBSERVER&&"MutationObserver"in window){this._domObserver=new MutationObserver(this._checkForIntersections);this._domObserver.observe(t,{attributes:true,childList:true,characterData:true,subtree:true})}}}};IntersectionObserver.prototype._unmonitorIntersections=function(){if(this._monitoringIntersections){this._monitoringIntersections=false;clearInterval(this._monitoringInterval);this._monitoringInterval=null;removeEvent(window,"resize",this._checkForIntersections,true);removeEvent(t,"scroll",this._checkForIntersections,true);if(this._domObserver){this._domObserver.disconnect();this._domObserver=null}}};IntersectionObserver.prototype._checkForIntersections=function(){var t=this._rootIsInDom();var e=t?this._getRootRect():getEmptyRect();this._observationTargets.forEach((function(n){var r=n.element;var i=getBoundingClientRect(r);var o=this._rootContainsTarget(r);var s=n.entry;var c=t&&o&&this._computeTargetAndRootIntersection(r,e);var h=n.entry=new IntersectionObserverEntry({time:now(),target:r,boundingClientRect:i,rootBounds:e,intersectionRect:c});if(!s){this._queuedEntries.push(h)}else if(t&&o){if(this._hasCrossedThreshold(s,h)){this._queuedEntries.push(h)}}else{if(s&&s.isIntersecting){this._queuedEntries.push(h)}}}),this);if(this._queuedEntries.length){this._callback(this.takeRecords(),this)}};IntersectionObserver.prototype._computeTargetAndRootIntersection=function(e,n){if(window.getComputedStyle(e).display=="none")return;var r=getBoundingClientRect(e);var i=r;var o=getParentNode(e);var s=false;while(!s){var c=null;var h=o.nodeType==1?window.getComputedStyle(o):{};if(h.display=="none")return;if(o==this.root||o==t){s=true;c=n}else{if(o!=t.body&&o!=t.documentElement&&h.overflow!="visible"){c=getBoundingClientRect(o)}}if(c){i=computeRectIntersection(c,i);if(!i)break}o=getParentNode(o)}return i};IntersectionObserver.prototype._getRootRect=function(){var e;if(this.root){e=getBoundingClientRect(this.root)}else{var n=t.documentElement;var r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};IntersectionObserver.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return e.unit=="px"?e.value:e.value*(n%2?t.width:t.height)/100}));var n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};IntersectionObserver.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1;var r=e.isIntersecting?e.intersectionRatio||0:-1;if(n===r)return;for(var i=0;i=0&&c>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:c}}function getBoundingClientRect(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return getEmptyRect();if(!(e.width&&e.height)){e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}}return e}function getEmptyRect(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function containsDeep(t,e){var n=e;while(n){if(n==t)return true;n=getParentNode(n)}return false}function getParentNode(t){var e=t.parentNode;if(e&&e.nodeType==11&&e.host){return e.host}if(e&&e.assignedSlot){return e.assignedSlot.parentNode}return e}window.IntersectionObserver=IntersectionObserver;window.IntersectionObserverEntry=IntersectionObserverEntry})()}}]);
\ No newline at end of file
diff --git a/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.localforage.js b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.localforage.js
new file mode 100644
index 00000000..c9439d2e
--- /dev/null
+++ b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.localforage.js
@@ -0,0 +1,7 @@
+(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[51],{378:function(e,r,t){(function(r){var t;var t;
+/*!
+ localForage -- Offline Storage, Improved
+ Version 1.7.3
+ https://localforage.github.io/localForage
+ (c) 2013-2017 Mozilla, Apache License 2.0
+*/(function(r){if(true){e.exports=r()}else{var t}})((function(){var e,n,o;return function e(r,n,o){function s(i,c){if(!n[i]){if(!r[i]){var u=typeof t=="function"&&t;if(!c&&u)return t(i,!0);if(a)return a(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[i]={exports:{}};r[i][0].call(l.exports,(function(e){var t=r[i][1][e];return s(t?t:e)}),l,l.exports,e,r,n,o)}return n[i].exports}var a=typeof t=="function"&&t;for(var i=0;i=43)}}))["catch"]((function(){return false}))}function _checkBlobSupport(e){if(typeof c==="boolean"){return a.resolve(c)}return _checkBlobSupportWithoutCaching(e).then((function(e){c=e;return c}))}function _deferReadiness(e){var r=u[e.name];var t={};t.promise=new a((function(e,r){t.resolve=e;t.reject=r}));r.deferredOperations.push(t);if(!r.dbReady){r.dbReady=t.promise}else{r.dbReady=r.dbReady.then((function(){return t.promise}))}}function _advanceReadiness(e){var r=u[e.name];var t=r.deferredOperations.pop();if(t){t.resolve();return t.promise}}function _rejectReadiness(e,r){var t=u[e.name];var n=t.deferredOperations.pop();if(n){n.reject(r);return n.promise}}function _getConnection(e,r){return new a((function(t,n){u[e.name]=u[e.name]||createDbContext();if(e.db){if(r){_deferReadiness(e);e.db.close()}else{return t(e.db)}}var a=[e.name];if(r){a.push(e.version)}var c=o.open.apply(o,a);if(r){c.onupgradeneeded=function(r){var t=c.result;try{t.createObjectStore(e.storeName);if(r.oldVersion<=1){t.createObjectStore(i)}}catch(t){if(t.name==="ConstraintError"){console.warn('The database "'+e.name+'"'+" has been upgraded from version "+r.oldVersion+" to version "+r.newVersion+', but the storage "'+e.storeName+'" already exists.')}else{throw t}}}}c.onerror=function(e){e.preventDefault();n(c.error)};c.onsuccess=function(){t(c.result);_advanceReadiness(e)}}))}function _getOriginalConnection(e){return _getConnection(e,false)}function _getUpgradedConnection(e){return _getConnection(e,true)}function _isUpgradeNeeded(e,r){if(!e.db){return true}var t=!e.db.objectStoreNames.contains(e.storeName);var n=e.versione.db.version;if(n){if(e.version!==r){console.warn('The database "'+e.name+'"'+" can't be downgraded from version "+e.db.version+" to version "+e.version+".")}e.version=e.db.version}if(o||t){if(t){var a=e.db.version+1;if(a>e.version){e.version=a}}return true}return false}function _encodeBlob(e){return new a((function(r,t){var n=new FileReader;n.onerror=t;n.onloadend=function(t){var n=btoa(t.target.result||"");r({__local_forage_encoded_blob:true,data:n,type:e.type})};n.readAsBinaryString(e)}))}function _decodeBlob(e){var r=_binStringToArrayBuffer(atob(e.data));return createBlob([r],{type:e.type})}function _isEncodedBlob(e){return e&&e.__local_forage_encoded_blob}function _fullyReady(e){var r=this;var t=r._initReady().then((function(){var e=u[r._dbInfo.name];if(e&&e.dbReady){return e.dbReady}}));executeTwoCallbacks(t,e,e);return t}function _tryReconnect(e){_deferReadiness(e);var r=u[e.name];var t=r.forages;for(var n=0;n0&&(!e.db||o.name==="InvalidStateError"||o.name==="NotFoundError")){return a.resolve().then((function(){if(!e.db||o.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version){if(e.db){e.version=e.db.version+1}return _getUpgradedConnection(e)}})).then((function(){return _tryReconnect(e).then((function(){createTransaction(e,r,t,n-1)}))}))["catch"](t)}t(o)}}function createDbContext(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function _initStorage(e){var r=this;var t={db:null};if(e){for(var n in e){t[n]=e[n]}}var o=u[t.name];if(!o){o=createDbContext();u[t.name]=o}o.forages.push(r);if(!r._initReady){r._initReady=r.ready;r.ready=_fullyReady}var i=[];function ignoreErrors(){return a.resolve()}for(var c=0;c>4;s[o++]=(i&15)<<4|c>>2;s[o++]=(c&3)<<6|u&63}return f}function bufferToString(e){var r=new Uint8Array(e);var t="";var n;for(n=0;n>2];t+=d[(r[n]&3)<<4|r[n+1]>>4];t+=d[(r[n+1]&15)<<2|r[n+2]>>6];t+=d[r[n+2]&63]}if(r.length%3===2){t=t.substring(0,t.length-1)+"="}else if(r.length%3===1){t=t.substring(0,t.length-2)+"=="}return t}function serialize(e,r){var t="";if(e){t=R.call(e)}if(e&&(t==="[object ArrayBuffer]"||e.buffer&&R.call(e.buffer)==="[object ArrayBuffer]")){var n;var o=b;if(e instanceof ArrayBuffer){n=e;o+=g}else{n=e.buffer;if(t==="[object Int8Array]"){o+=_}else if(t==="[object Uint8Array]"){o+=I}else if(t==="[object Uint8ClampedArray]"){o+=S}else if(t==="[object Int16Array]"){o+=w}else if(t==="[object Uint16Array]"){o+=C}else if(t==="[object Int32Array]"){o+=x}else if(t==="[object Uint32Array]"){o+=E}else if(t==="[object Float32Array]"){o+=k}else if(t==="[object Float64Array]"){o+=T}else{r(new Error("Failed to get type for BinaryArray"))}}r(o+bufferToString(n))}else if(t==="[object Blob]"){var a=new FileReader;a.onload=function(){var t=h+e.type+"~"+bufferToString(this.result);r(b+m+t)};a.readAsArrayBuffer(e)}else{try{r(JSON.stringify(e))}catch(t){console.error("Couldn't convert value into a JSON string: ",e);r(null,t)}}}function deserialize(e){if(e.substring(0,p)!==b){return JSON.parse(e)}var r=e.substring(N);var t=e.substring(p,N);var n;if(t===m&&y.test(r)){var o=r.match(y);n=o[1];r=r.substring(o[0].length)}var a=stringToBuffer(r);switch(t){case g:return a;case m:return createBlob([a],{type:n});case _:return new Int8Array(a);case I:return new Uint8Array(a);case S:return new Uint8ClampedArray(a);case w:return new Int16Array(a);case C:return new Uint16Array(a);case x:return new Int32Array(a);case E:return new Uint32Array(a);case k:return new Float32Array(a);case T:return new Float64Array(a);default:throw new Error("Unkown type: "+t)}}var D={serialize:serialize,deserialize:deserialize,stringToBuffer:stringToBuffer,bufferToString:bufferToString};function createDbTable(e,r,t,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" "+"(id INTEGER PRIMARY KEY, key unique, value)",[],t,n)}function _initStorage$1(e){var r=this;var t={db:null};if(e){for(var n in e){t[n]=typeof e[n]!=="string"?e[n].toString():e[n]}}var o=new a((function(e,n){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(e){return n(e)}t.db.transaction((function(o){createDbTable(o,t,(function(){r._dbInfo=t;e()}),(function(e,r){n(r)}))}),n)}));t.serializer=D;return o}function tryExecuteSql(e,r,t,n,o,a){e.executeSql(t,n,o,(function(e,i){if(i.code===i.SYNTAX_ERR){e.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name = ?",[r.storeName],(function(e,c){if(!c.rows.length){createDbTable(e,r,(function(){e.executeSql(t,n,o,a)}),a)}else{a(e,i)}}),a)}else{a(e,i)}}),a)}function getItem$1(e,r){var t=this;e=normalizeKey(e);var n=new a((function(r,n){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){tryExecuteSql(t,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,t){var n=t.rows.length?t.rows.item(0).value:null;if(n){n=o.serializer.deserialize(n)}r(n)}),(function(e,r){n(r)}))}))}))["catch"](n)}));executeCallback(n,r);return n}function iterate$1(e,r){var t=this;var n=new a((function(r,n){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){tryExecuteSql(t,o,"SELECT * FROM "+o.storeName,[],(function(t,n){var a=n.rows;var i=a.length;for(var c=0;c0){a(_setItem.apply(o,[e,c,t,n-1]));return}i(r)}}))}}))}))["catch"](i)}));executeCallback(i,t);return i}function setItem$1(e,r,t){return _setItem.apply(this,[e,r,t,1])}function removeItem$1(e,r){var t=this;e=normalizeKey(e);var n=new a((function(r,n){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){tryExecuteSql(t,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){r()}),(function(e,r){n(r)}))}))}))["catch"](n)}));executeCallback(n,r);return n}function clear$1(e){var r=this;var t=new a((function(e,t){r.ready().then((function(){var n=r._dbInfo;n.db.transaction((function(r){tryExecuteSql(r,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,r){t(r)}))}))}))["catch"](t)}));executeCallback(t,e);return t}function length$1(e){var r=this;var t=new a((function(e,t){r.ready().then((function(){var n=r._dbInfo;n.db.transaction((function(r){tryExecuteSql(r,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(r,t){var n=t.rows.item(0).c;e(n)}),(function(e,r){t(r)}))}))}))["catch"](t)}));executeCallback(t,e);return t}function key$1(e,r){var t=this;var n=new a((function(r,n){t.ready().then((function(){var o=t._dbInfo;o.db.transaction((function(t){tryExecuteSql(t,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,t){var n=t.rows.length?t.rows.item(0).key:null;r(n)}),(function(e,r){n(r)}))}))}))["catch"](n)}));executeCallback(n,r);return n}function keys$1(e){var r=this;var t=new a((function(e,t){r.ready().then((function(){var n=r._dbInfo;n.db.transaction((function(r){tryExecuteSql(r,n,"SELECT key FROM "+n.storeName,[],(function(r,t){var n=[];for(var o=0;o '__WebKitDatabaseInfoTable__'",[],(function(t,n){var o=[];for(var a=0;a0}function _initStorage$2(e){var r=this;var t={};if(e){for(var n in e){t[n]=e[n]}}t.keyPrefix=_getKeyPrefix(e,r._defaultConfig);if(!_isLocalStorageUsable()){return a.reject()}r._dbInfo=t;t.serializer=D;return a.resolve()}function clear$2(e){var r=this;var t=r.ready().then((function(){var e=r._dbInfo.keyPrefix;for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);if(n.indexOf(e)===0){localStorage.removeItem(n)}}}));executeCallback(t,e);return t}function getItem$2(e,r){var t=this;e=normalizeKey(e);var n=t.ready().then((function(){var r=t._dbInfo;var n=localStorage.getItem(r.keyPrefix+e);if(n){n=r.serializer.deserialize(n)}return n}));executeCallback(n,r);return n}function iterate$2(e,r){var t=this;var n=t.ready().then((function(){var r=t._dbInfo;var n=r.keyPrefix;var o=n.length;var a=localStorage.length;var i=1;for(var c=0;c=0;r--){var t=localStorage.key(r);if(t.indexOf(e)===0){localStorage.removeItem(t)}}}))}executeCallback(o,r);return o}var B={_driver:"localStorageWrapper",_initStorage:_initStorage$2,_support:isLocalStorageValid(),iterate:iterate$2,getItem:getItem$2,setItem:setItem$2,removeItem:removeItem$2,clear:clear$2,length:length$2,key:key$2,keys:keys$2,dropInstance:dropInstance$2};var A=function sameValue(e,r){return e===r||typeof e==="number"&&typeof r==="number"&&isNaN(e)&&isNaN(r)};var L=function includes(e,r){var t=e.length;var n=0;while(nn.clientWidth||"contain"===e&&t.clientWidth=0){o=1;break}}function microtaskDebounce(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then((function(){t=false;e()}))}}function taskDebounce(e){var t=false;return function(){if(!t){t=true;setTimeout((function(){t=false;e()}),o)}}}var a=r&&window.Promise;var f=a?microtaskDebounce:taskDebounce;function isFunction(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function getStyleComputedProperty(e,t){if(e.nodeType!==1){return[]}var r=e.ownerDocument.defaultView;var n=r.getComputedStyle(e,null);return t?n[t]:n}function getParentNode(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function getScrollParent(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=getStyleComputedProperty(e),r=t.overflow,n=t.overflowX,o=t.overflowY;if(/(auto|scroll|overlay)/.test(r+o+n)){return e}return getScrollParent(getParentNode(e))}var s=r&&!!(window.MSInputMethodContext&&document.documentMode);var l=r&&/MSIE 10/.test(navigator.userAgent);function isIE(e){if(e===11){return s}if(e===10){return l}return s||l}function getOffsetParent(e){if(!e){return document.documentElement}var t=isIE(10)?document.body:null;var r=e.offsetParent||null;while(r===t&&e.nextElementSibling){r=(e=e.nextElementSibling).offsetParent}var n=r&&r.nodeName;if(!n||n==="BODY"||n==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&getStyleComputedProperty(r,"position")==="static"){return getOffsetParent(r)}return r}function isOffsetContainer(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||getOffsetParent(e.firstElementChild)===e}function getRoot(e){if(e.parentNode!==null){return getRoot(e.parentNode)}return e}function findCommonOffsetParent(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var n=r?e:t;var o=r?t:e;var i=document.createRange();i.setStart(n,0);i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||n.contains(o)){if(isOffsetContainer(a)){return a}return getOffsetParent(a)}var f=getRoot(e);if(f.host){return findCommonOffsetParent(f.host,t)}else{return findCommonOffsetParent(e,getRoot(t).host)}}function getScroll(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var r=t==="top"?"scrollTop":"scrollLeft";var n=e.nodeName;if(n==="BODY"||n==="HTML"){var o=e.ownerDocument.documentElement;var i=e.ownerDocument.scrollingElement||o;return i[r]}return e[r]}function includeScroll(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=getScroll(t,"top");var o=getScroll(t,"left");var i=r?-1:1;e.top+=n*i;e.bottom+=n*i;e.left+=o*i;e.right+=o*i;return e}function getBordersSize(e,t){var r=t==="x"?"Left":"Top";var n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function getSize(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],isIE(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(e){var t=e.body;var r=e.documentElement;var n=isIE(10)&&getComputedStyle(r);return{height:getSize("Height",t,r,n),width:getSize("Width",t,r,n)}}var classCallCheck=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}};var p=function(){function defineProperties(e,t){for(var r=0;r2&&arguments[2]!==undefined?arguments[2]:false;var n=isIE(10);var o=t.nodeName==="HTML";var i=getBoundingClientRect(e);var a=getBoundingClientRect(t);var f=getScrollParent(e);var s=getStyleComputedProperty(t);var l=parseFloat(s.borderTopWidth,10);var p=parseFloat(s.borderLeftWidth,10);if(r&&o){a.top=Math.max(a.top,0);a.left=Math.max(a.left,0)}var u=getClientRect({top:i.top-a.top-l,left:i.left-a.left-p,width:i.width,height:i.height});u.marginTop=0;u.marginLeft=0;if(!n&&o){var d=parseFloat(s.marginTop,10);var c=parseFloat(s.marginLeft,10);u.top-=l-d;u.bottom-=l-d;u.left-=p-c;u.right-=p-c;u.marginTop=d;u.marginLeft=c}if(n&&!r?t.contains(f):t===f&&f.nodeName!=="BODY"){u=includeScroll(u,t)}return u}function getViewportOffsetRectRelativeToArtbitraryNode(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r=e.ownerDocument.documentElement;var n=getOffsetRectRelativeToArbitraryNode(e,r);var o=Math.max(r.clientWidth,window.innerWidth||0);var i=Math.max(r.clientHeight,window.innerHeight||0);var a=!t?getScroll(r):0;var f=!t?getScroll(r,"left"):0;var s={top:a-n.top+n.marginTop,left:f-n.left+n.marginLeft,width:o,height:i};return getClientRect(s)}function isFixed(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(getStyleComputedProperty(e,"position")==="fixed"){return true}return isFixed(getParentNode(e))}function getFixedPositionOffsetParent(e){if(!e||!e.parentElement||isIE()){return document.documentElement}var t=e.parentElement;while(t&&getStyleComputedProperty(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function getBoundaries(e,t,r,n){var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var i={top:0,left:0};var a=o?getFixedPositionOffsetParent(e):findCommonOffsetParent(e,t);if(n==="viewport"){i=getViewportOffsetRectRelativeToArtbitraryNode(a,o)}else{var f=void 0;if(n==="scrollParent"){f=getScrollParent(getParentNode(t));if(f.nodeName==="BODY"){f=e.ownerDocument.documentElement}}else if(n==="window"){f=e.ownerDocument.documentElement}else{f=n}var s=getOffsetRectRelativeToArbitraryNode(f,a,o);if(f.nodeName==="HTML"&&!isFixed(a)){var l=getWindowSizes(e.ownerDocument),p=l.height,u=l.width;i.top+=s.top-s.marginTop;i.bottom=p+s.top;i.left+=s.left-s.marginLeft;i.right=u+s.left}else{i=s}}r=r||0;var d=typeof r==="number";i.left+=d?r:r.left||0;i.top+=d?r:r.top||0;i.right-=d?r:r.right||0;i.bottom-=d?r:r.bottom||0;return i}function getArea(e){var t=e.width,r=e.height;return t*r}function computeAutoPlacement(e,t,r,n,o){var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var a=getBoundaries(r,n,i,o);var f={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}};var s=Object.keys(f).map((function(e){return u({key:e},f[e],{area:getArea(f[e])})})).sort((function(e,t){return t.area-e.area}));var l=s.filter((function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}));var p=l.length>0?l[0].key:s[0].key;var d=e.split("-")[1];return p+(d?"-"+d:"")}function getReferenceOffsets(e,t,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var o=n?getFixedPositionOffsetParent(t):findCommonOffsetParent(t,r);return getOffsetRectRelativeToArbitraryNode(r,o,n)}function getOuterSizes(e){var t=e.ownerDocument.defaultView;var r=t.getComputedStyle(e);var n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0);var o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0);var i={width:e.offsetWidth+o,height:e.offsetHeight+n};return i}function getOppositePlacement(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function getPopperOffsets(e,t,r){r=r.split("-")[0];var n=getOuterSizes(e);var o={width:n.width,height:n.height};var i=["right","left"].indexOf(r)!==-1;var a=i?"top":"left";var f=i?"left":"top";var s=i?"height":"width";var l=!i?"height":"width";o[a]=t[a]+t[s]/2-n[s]/2;if(r===f){o[f]=t[f]-n[l]}else{o[f]=t[getOppositePlacement(f)]}return o}function find(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function findIndex(e,t,r){if(Array.prototype.findIndex){return e.findIndex((function(e){return e[t]===r}))}var n=find(e,(function(e){return e[t]===r}));return e.indexOf(n)}function runModifiers(e,t,r){var n=r===undefined?e:e.slice(0,findIndex(e,"name",r));n.forEach((function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var r=e["function"]||e.fn;if(e.enabled&&isFunction(r)){t.offsets.popper=getClientRect(t.offsets.popper);t.offsets.reference=getClientRect(t.offsets.reference);t=r(t,e)}}));return t}function update(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=computeAutoPlacement(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=getPopperOffsets(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=runModifiers(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function isModifierEnabled(e,t){return e.some((function(e){var r=e.name,n=e.enabled;return n&&r===t}))}function getSupportedPropertyName(e){var t=[false,"ms","Webkit","Moz","O"];var r=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0;na[c]){e.offsets.popper[u]+=f[u]+h-a[c]}e.offsets.popper=getClientRect(e.offsets.popper);var v=f[u]+f[l]/2-h/2;var m=getStyleComputedProperty(e.instance.popper);var g=parseFloat(m["margin"+p],10);var b=parseFloat(m["border"+p+"Width"],10);var w=v-e.offsets.popper[u]-g-b;w=Math.max(Math.min(a[l]-h,w),0);e.arrowElement=n;e.offsets.arrow=(r={},defineProperty(r,u,Math.round(w)),defineProperty(r,d,""),r);return e}function getOppositeVariation(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var c=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var h=c.slice(3);function clockwise(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r=h.indexOf(e);var n=h.slice(r+1).concat(h.slice(0,r));return t?n.reverse():n}var v={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(e,t){if(isModifierEnabled(e.instance.modifiers,"inner")){return e}if(e.flipped&&e.placement===e.originalPlacement){return e}var r=getBoundaries(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed);var n=e.placement.split("-")[0];var o=getOppositePlacement(n);var i=e.placement.split("-")[1]||"";var a=[];switch(t.behavior){case v.FLIP:a=[n,o];break;case v.CLOCKWISE:a=clockwise(n);break;case v.COUNTERCLOCKWISE:a=clockwise(n,true);break;default:a=t.behavior}a.forEach((function(f,s){if(n!==f||a.length===s+1){return e}n=e.placement.split("-")[0];o=getOppositePlacement(n);var l=e.offsets.popper;var p=e.offsets.reference;var d=Math.floor;var c=n==="left"&&d(l.right)>d(p.left)||n==="right"&&d(l.left)d(p.top)||n==="bottom"&&d(l.top)d(r.right);var m=d(l.top)d(r.bottom);var b=n==="left"&&h||n==="right"&&v||n==="top"&&m||n==="bottom"&&g;var w=["top","bottom"].indexOf(n)!==-1;var y=!!t.flipVariations&&(w&&i==="start"&&h||w&&i==="end"&&v||!w&&i==="start"&&m||!w&&i==="end"&&g);if(c||b||y){e.flipped=true;if(c||b){n=a[s+1]}if(y){i=getOppositeVariation(i)}e.placement=n+(i?"-"+i:"");e.offsets.popper=u({},e.offsets.popper,getPopperOffsets(e.instance.popper,e.offsets.reference,e.placement));e=runModifiers(e.instance.modifiers,e,"flip")}}));return e}function keepTogether(e){var t=e.offsets,r=t.popper,n=t.reference;var o=e.placement.split("-")[0];var i=Math.floor;var a=["top","bottom"].indexOf(o)!==-1;var f=a?"right":"bottom";var s=a?"left":"top";var l=a?"width":"height";if(r[f]i(n[f])){e.offsets.popper[s]=i(n[f])}return e}function toValue(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var i=+o[1];var a=o[2];if(!i){return e}if(a.indexOf("%")===0){var f=void 0;switch(a){case"%p":f=r;break;case"%":case"%r":default:f=n}var s=getClientRect(f);return s[t]/100*i}else if(a==="vh"||a==="vw"){var l=void 0;if(a==="vh"){l=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return l/100*i}else{return i}}function parseOffset(e,t,r,n){var o=[0,0];var i=["right","left"].indexOf(n)!==-1;var a=e.split(/(\+|\-)/).map((function(e){return e.trim()}));var f=a.indexOf(find(a,(function(e){return e.search(/,|\s/)!==-1})));if(a[f]&&a[f].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var s=/\s*,\s*|\s+/;var l=f!==-1?[a.slice(0,f).concat([a[f].split(s)[0]]),[a[f].split(s)[1]].concat(a.slice(f+1))]:[a];l=l.map((function(e,n){var o=(n===1?!i:i)?"height":"width";var a=false;return e.reduce((function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;a=true;return e}else if(a){e[e.length-1]+=t;a=false;return e}else{return e.concat(t)}}),[]).map((function(e){return toValue(e,o,t,r)}))}));l.forEach((function(e,t){e.forEach((function(r,n){if(isNumeric(r)){o[t]+=r*(e[n-1]==="-"?-1:1)}}))}));return o}function offset(e,t){var r=t.offset;var n=e.placement,o=e.offsets,i=o.popper,a=o.reference;var f=n.split("-")[0];var s=void 0;if(isNumeric(+r)){s=[+r,0]}else{s=parseOffset(r,i,a,f)}if(f==="left"){i.top+=s[0];i.left-=s[1]}else if(f==="right"){i.top+=s[0];i.left+=s[1]}else if(f==="top"){i.left+=s[0];i.top-=s[1]}else if(f==="bottom"){i.left+=s[0];i.top+=s[1]}e.popper=i;return e}function preventOverflow(e,t){var r=t.boundariesElement||getOffsetParent(e.instance.popper);if(e.instance.reference===r){r=getOffsetParent(r)}var n=getSupportedPropertyName("transform");var o=e.instance.popper.style;var i=o.top,a=o.left,f=o[n];o.top="";o.left="";o[n]="";var s=getBoundaries(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);o.top=i;o.left=a;o[n]=f;t.boundaries=s;var l=t.priority;var p=e.offsets.popper;var d={primary:function primary(e){var r=p[e];if(p[e]s[e]&&!t.escapeWithReference){n=Math.min(p[r],s[e]-(e==="right"?p.width:p.height))}return defineProperty({},r,n)}};l.forEach((function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";p=u({},p,d[t](e))}));e.offsets.popper=p;return e}function shift(e){var t=e.placement;var r=t.split("-")[0];var n=t.split("-")[1];if(n){var o=e.offsets,i=o.reference,a=o.popper;var f=["bottom","top"].indexOf(r)!==-1;var s=f?"left":"top";var l=f?"width":"height";var p={start:defineProperty({},s,i[s]),end:defineProperty({},s,i[s]+i[l]-a[l])};e.offsets.popper=u({},a,p[n])}return e}function hide(e){if(!isModifierRequired(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var r=find(e.instance.modifiers,(function(e){return e.name==="preventOverflow"})).boundaries;if(t.bottomr.right||t.top>r.bottom||t.right2&&arguments[2]!==undefined?arguments[2]:{};classCallCheck(this,Popper);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=f(this.update.bind(this));this.options=u({},Popper.Defaults,n);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(u({},Popper.Defaults.modifiers,n.modifiers)).forEach((function(e){r.options.modifiers[e]=u({},Popper.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}));this.modifiers=Object.keys(this.options.modifiers).map((function(e){return u({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order}));this.modifiers.forEach((function(e){if(e.enabled&&isFunction(e.onLoad)){e.onLoad(r.reference,r.popper,r.options,e,r.state)}}));this.update();var o=this.options.eventsEnabled;if(o){this.enableEventListeners()}this.state.eventsEnabled=o}p(Popper,[{key:"update",value:function update$$1(){return update.call(this)}},{key:"destroy",value:function destroy$$1(){return destroy.call(this)}},{key:"enableEventListeners",value:function enableEventListeners$$1(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function disableEventListeners$$1(){return disableEventListeners.call(this)}}]);return Popper}();b.Utils=(typeof window!=="undefined"?window:e).PopperUtils;b.placements=c;b.Defaults=g;t["a"]=b}).call(this,r(100))}}]);
\ No newline at end of file
diff --git a/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.sentry.js b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.sentry.js
new file mode 100644
index 00000000..ca278613
--- /dev/null
+++ b/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.pkg.sentry.js
@@ -0,0 +1 @@
+(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[137],{260:function(e,t,n){"use strict";n.r(t);var r={};n.r(r);n.d(r,"FunctionToString",(function(){return Z}));n.d(r,"InboundFilters",(function(){return ee}));var i={};n.r(i);n.d(i,"GlobalHandlers",(function(){return he}));n.d(i,"TryCatch",(function(){return ne}));n.d(i,"Breadcrumbs",(function(){return de}));n.d(i,"LinkedErrors",(function(){return _e}));n.d(i,"UserAgent",(function(){return me}));var o={};n.r(o);n.d(o,"BaseTransport",(function(){return q}));n.d(o,"FetchTransport",(function(){return W}));n.d(o,"XHRTransport",(function(){return Y}));var a=n(264);var s;(function(e){e["Fatal"]="fatal";e["Error"]="error";e["Warning"]="warning";e["Log"]="log";e["Info"]="info";e["Debug"]="debug";e["Critical"]="critical"})(s||(s={}));(function(e){function fromString(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}e.fromString=fromString})(s||(s={}));var u;(function(e){e["Unknown"]="unknown";e["Skipped"]="skipped";e["Success"]="success";e["RateLimit"]="rate_limit";e["Invalid"]="invalid";e["Failed"]="failed"})(u||(u={}));(function(e){function fromHttpCode(t){if(t>=200&&t<300){return e.Success}if(t===429){return e.RateLimit}if(t>=400&&t<500){return e.Invalid}if(t>=500){return e.Failed}return e.Unknown}e.fromHttpCode=fromHttpCode})(u||(u={}));var c=n(291);var f;(function(e){e["PENDING"]="PENDING";e["RESOLVED"]="RESOLVED";e["REJECTED"]="REJECTED"})(f||(f={}));var l=function(){function SyncPromise(e){var t=this;this._state=f.PENDING;this._handlers=[];this._resolve=function(e){t._setResult(f.RESOLVED,e)};this._reject=function(e){t._setResult(f.REJECTED,e)};this._setResult=function(e,n){if(t._state!==f.PENDING){return}if(Object(c["m"])(n)){n.then(t._resolve,t._reject);return}t._state=e;t._value=n;t._executeHandlers()};this._attachHandler=function(e){t._handlers=t._handlers.concat(e);t._executeHandlers()};this._executeHandlers=function(){if(t._state===f.PENDING){return}var e=t._handlers.slice();t._handlers=[];e.forEach((function(e){if(e.done){return}if(t._state===f.RESOLVED){if(e.onfulfilled){e.onfulfilled(t._value)}}if(t._state===f.REJECTED){if(e.onrejected){e.onrejected(t._value)}}e.done=true}))};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}SyncPromise.prototype.toString=function(){return"[object SyncPromise]"};SyncPromise.resolve=function(e){return new SyncPromise((function(t){t(e)}))};SyncPromise.reject=function(e){return new SyncPromise((function(t,n){n(e)}))};SyncPromise.all=function(e){return new SyncPromise((function(t,n){if(!Array.isArray(e)){n(new TypeError("Promise.all requires an array as input."));return}if(e.length===0){t([]);return}var r=e.length;var i=[];e.forEach((function(e,o){SyncPromise.resolve(e).then((function(e){i[o]=e;r-=1;if(r!==0){return}t(i)})).then(null,n)}))}))};SyncPromise.prototype.then=function(e,t){var n=this;return new SyncPromise((function(r,i){n._attachHandler({done:false,onfulfilled:function(t){if(!e){r(t);return}try{r(e(t));return}catch(e){i(e);return}},onrejected:function(e){if(!t){i(e);return}try{r(t(e));return}catch(e){i(e);return}}})}))};SyncPromise.prototype.catch=function(e){return this.then((function(e){return e}),e)};SyncPromise.prototype.finally=function(e){var t=this;return new SyncPromise((function(n,r){var i;var o;return t.then((function(t){o=false;i=t;if(e){e()}}),(function(t){o=true;i=t;if(e){e()}})).then((function(){if(o){r(i);return}n(i)}))}))};return SyncPromise}();var p=n(307);var d=function(){function Scope(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._user={};this._tags={};this._extra={};this._context={}}Scope.prototype.addScopeListener=function(e){this._scopeListeners.push(e)};Scope.prototype.addEventProcessor=function(e){this._eventProcessors.push(e);return this};Scope.prototype._notifyScopeListeners=function(){var e=this;if(!this._notifyingListeners){this._notifyingListeners=true;setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)}));e._notifyingListeners=false}))}};Scope.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;if(r===void 0){r=0}return new l((function(o,s){var u=e[r];if(t===null||typeof u!=="function"){o(t)}else{var f=u(a["a"]({},t),n);if(Object(c["m"])(f)){f.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,s)}else{i._notifyEventProcessors(e,f,n,r+1).then(o).then(null,s)}}}))};Scope.prototype.setUser=function(e){this._user=e||{};this._notifyScopeListeners();return this};Scope.prototype.setTags=function(e){this._tags=a["a"]({},this._tags,e);this._notifyScopeListeners();return this};Scope.prototype.setTag=function(e,t){var n;this._tags=a["a"]({},this._tags,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setExtras=function(e){this._extra=a["a"]({},this._extra,e);this._notifyScopeListeners();return this};Scope.prototype.setExtra=function(e,t){var n;this._extra=a["a"]({},this._extra,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setFingerprint=function(e){this._fingerprint=e;this._notifyScopeListeners();return this};Scope.prototype.setLevel=function(e){this._level=e;this._notifyScopeListeners();return this};Scope.prototype.setTransaction=function(e){this._transaction=e;if(this._span){this._span.transaction=e}this._notifyScopeListeners();return this};Scope.prototype.setContext=function(e,t){var n;this._context=a["a"]({},this._context,(n={},n[e]=t,n));this._notifyScopeListeners();return this};Scope.prototype.setSpan=function(e){this._span=e;this._notifyScopeListeners();return this};Scope.prototype.getSpan=function(){return this._span};Scope.clone=function(e){var t=new Scope;if(e){t._breadcrumbs=a["d"](e._breadcrumbs);t._tags=a["a"]({},e._tags);t._extra=a["a"]({},e._extra);t._context=a["a"]({},e._context);t._user=e._user;t._level=e._level;t._span=e._span;t._transaction=e._transaction;t._fingerprint=e._fingerprint;t._eventProcessors=a["d"](e._eventProcessors)}return t};Scope.prototype.clear=function(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._context={};this._level=undefined;this._transaction=undefined;this._fingerprint=undefined;this._span=undefined;this._notifyScopeListeners();return this};Scope.prototype.addBreadcrumb=function(e,t){var n=a["a"]({timestamp:Object(p["l"])()},e);this._breadcrumbs=t!==undefined&&t>=0?a["d"](this._breadcrumbs,[n]).slice(-t):a["d"](this._breadcrumbs,[n]);this._notifyScopeListeners();return this};Scope.prototype.clearBreadcrumbs=function(){this._breadcrumbs=[];this._notifyScopeListeners();return this};Scope.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[];if(this._fingerprint){e.fingerprint=e.fingerprint.concat(this._fingerprint)}if(e.fingerprint&&!e.fingerprint.length){delete e.fingerprint}};Scope.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length){e.extra=a["a"]({},this._extra,e.extra)}if(this._tags&&Object.keys(this._tags).length){e.tags=a["a"]({},this._tags,e.tags)}if(this._user&&Object.keys(this._user).length){e.user=a["a"]({},this._user,e.user)}if(this._context&&Object.keys(this._context).length){e.contexts=a["a"]({},this._context,e.contexts)}if(this._level){e.level=this._level}if(this._transaction){e.transaction=this._transaction}if(this._span){e.contexts=a["a"]({trace:this._span.getTraceContext()},e.contexts)}this._applyFingerprint(e);e.breadcrumbs=a["d"](e.breadcrumbs||[],this._breadcrumbs);e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:undefined;return this._notifyEventProcessors(a["d"](getGlobalEventProcessors(),this._eventProcessors),e,t)};return Scope}();function getGlobalEventProcessors(){var e=Object(p["f"])();e.__SENTRY__=e.__SENTRY__||{};e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[];return e.__SENTRY__.globalEventProcessors}function addGlobalEventProcessor(e){getGlobalEventProcessors().push(e)}var h=Object(p["f"])();var v="Sentry Logger ";var g=function(){function Logger(){this._enabled=false}Logger.prototype.disable=function(){this._enabled=false};Logger.prototype.enable=function(){this._enabled=true};Logger.prototype.log=function(){var e=[];for(var t=0;t0?e[e.length-1].scope:undefined;var n=d.clone(t);this.getStack().push({client:this.getClient(),scope:n});return n};Hub.prototype.popScope=function(){return this.getStack().pop()!==undefined};Hub.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}};Hub.prototype.getClient=function(){return this.getStackTop().client};Hub.prototype.getScope=function(){return this.getStackTop().scope};Hub.prototype.getStack=function(){return this._stack};Hub.prototype.getStackTop=function(){return this._stack[this._stack.length-1]};Hub.prototype.captureException=function(e,t){var n=this._lastEventId=Object(p["m"])();var r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}this._invokeClient("captureException",e,a["a"]({},r,{event_id:n}));return n};Hub.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(p["m"])();var i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}this._invokeClient("captureMessage",e,t,a["a"]({},i,{event_id:r}));return r};Hub.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(p["m"])();this._invokeClient("captureEvent",e,a["a"]({},t,{event_id:n}));return n};Hub.prototype.lastEventId=function(){return this._lastEventId};Hub.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(!n.scope||!n.client){return}var r=n.client.getOptions&&n.client.getOptions()||{},i=r.beforeBreadcrumb,o=i===void 0?null:i,s=r.maxBreadcrumbs,u=s===void 0?m:s;if(u<=0){return}var c=Object(p["l"])();var f=a["a"]({timestamp:c},e);var l=o?Object(p["c"])((function(){return o(f,t)})):f;if(l===null){return}n.scope.addBreadcrumb(l,Math.min(u,y))};Hub.prototype.setUser=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setUser(e)};Hub.prototype.setTags=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setTags(e)};Hub.prototype.setExtras=function(e){var t=this.getStackTop();if(!t.scope){return}t.scope.setExtras(e)};Hub.prototype.setTag=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setTag(e,t)};Hub.prototype.setExtra=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setExtra(e,t)};Hub.prototype.setContext=function(e,t){var n=this.getStackTop();if(!n.scope){return}n.scope.setContext(e,t)};Hub.prototype.configureScope=function(e){var t=this.getStackTop();if(t.scope&&t.client){e(t.scope)}};Hub.prototype.run=function(e){var t=makeMain(this);try{e(this)}finally{makeMain(t)}};Hub.prototype.getIntegration=function(e){var t=this.getClient();if(!t){return null}try{return t.getIntegration(e)}catch(t){_.warn("Cannot retrieve integration "+e.id+" from the current Hub");return null}};Hub.prototype.startSpan=function(e,t){if(t===void 0){t=false}return this._callExtensionMethod("startSpan",e,t)};Hub.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")};Hub.prototype._callExtensionMethod=function(e){var t=[];for(var n=1;n1){p=h.slice(0,-1).join("/");d=h.pop()}this._fromComponents({host:u,pass:s,path:p,projectId:d,port:f,protocol:r,user:i})};Dsn.prototype._fromComponents=function(e){this.protocol=e.protocol;this.user=e.user;this.pass=e.pass||"";this.host=e.host;this.port=e.port||"";this.path=e.path||"";this.projectId=e.projectId};Dsn.prototype._validate=function(){var e=this;["protocol","user","host","projectId"].forEach((function(t){if(!e[t]){throw new S(j)}}));if(this.protocol!=="http"&&this.protocol!=="https"){throw new S(j)}if(this.port&&isNaN(parseInt(this.port,10))){throw new S(j)}};return Dsn}();var k=n(574);var T="7";var H=function(){function API(e){this.dsn=e;this._dsnObject=new w(e)}API.prototype.getDsn=function(){return this._dsnObject};API.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()};API.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e=this._dsnObject;var t={sentry_key:e.user,sentry_version:T};return this.getStoreEndpoint()+"?"+Object(k["e"])(t)};API.prototype._getBaseUrl=function(){var e=this._dsnObject;var t=e.protocol?e.protocol+":":"";var n=e.port?":"+e.port:"";return t+"//"+e.host+n};API.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"};API.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject;var r=["Sentry sentry_version="+T];r.push("sentry_client="+e+"/"+t);r.push("sentry_key="+n.user);if(n.pass){r.push("sentry_secret="+n.pass)}return{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}};API.prototype.getReportDialogEndpoint=function(e){if(e===void 0){e={}}var t=this._dsnObject;var n=""+this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/";var r=[];r.push("dsn="+t.toString());for(var i in e){if(i==="user"){if(!e.user){continue}if(e.user.name){r.push("name="+encodeURIComponent(e.user.name))}if(e.user.email){r.push("email="+encodeURIComponent(e.user.email))}}else{r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]))}}if(r.length){return n+"?"+r.join("&")}return n};return API}();var C=n(370);var I=[];function getIntegrationsToSetup(e){var t=e.defaultIntegrations&&a["d"](e.defaultIntegrations)||[];var n=e.integrations;var r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name}));var o=[];t.forEach((function(e){if(i.indexOf(e.name)===-1&&o.indexOf(e.name)===-1){r.push(e);o.push(e.name)}}));n.forEach((function(e){if(o.indexOf(e.name)===-1){r.push(e);o.push(e.name)}}))}else if(typeof n==="function"){r=n(t);r=Array.isArray(r)?r:[r]}else{r=a["d"](t)}var s=r.map((function(e){return e.name}));var u="Debug";if(s.indexOf(u)!==-1){r.push.apply(r,a["d"](r.splice(s.indexOf(u),1)))}return r}function setupIntegration(e){if(I.indexOf(e.name)!==-1){return}e.setupOnce(addGlobalEventProcessor,getCurrentHub);I.push(e.name);_.log("Integration installed: "+e.name)}function setupIntegrations(e){var t={};getIntegrationsToSetup(e).forEach((function(e){t[e.name]=e;setupIntegration(e)}));return t}var F=function(){function BaseClient(e,t){this._integrations={};this._processing=false;this._backend=new e(t);this._options=t;if(t.dsn){this._dsn=new w(t.dsn)}}BaseClient.prototype.captureException=function(e,t,n){var r=this;var i=t&&t.event_id;this._processing=true;this._getBackend().eventFromException(e,t).then((function(e){return r._processEvent(e,t,n)})).then((function(e){i=e&&e.event_id;r._processing=false})).then(null,(function(e){_.error(e);r._processing=false}));return i};BaseClient.prototype.captureMessage=function(e,t,n,r){var i=this;var o=n&&n.event_id;this._processing=true;var a=Object(c["i"])(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n);a.then((function(e){return i._processEvent(e,n,r)})).then((function(e){o=e&&e.event_id;i._processing=false})).then(null,(function(e){_.error(e);i._processing=false}));return o};BaseClient.prototype.captureEvent=function(e,t,n){var r=this;var i=t&&t.event_id;this._processing=true;this._processEvent(e,t,n).then((function(e){i=e&&e.event_id;r._processing=false})).then(null,(function(e){_.error(e);r._processing=false}));return i};BaseClient.prototype.getDsn=function(){return this._dsn};BaseClient.prototype.getOptions=function(){return this._options};BaseClient.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){clearInterval(n.interval);return t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))};BaseClient.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){t.getOptions().enabled=false;return e}))};BaseClient.prototype.setupIntegrations=function(){if(this._isEnabled()){this._integrations=setupIntegrations(this._options)}};BaseClient.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){_.warn("Cannot retrieve integration "+e.id+" from the current Client");return null}};BaseClient.prototype._isClientProcessing=function(e){var t=this;return new l((function(n){var r=0;var i=1;var o=0;clearInterval(o);o=setInterval((function(){if(!t._processing){n({interval:o,ready:true})}else{r+=i;if(e&&r>=e){n({interval:o,ready:false})}}}),i)}))};BaseClient.prototype._getBackend=function(){return this._backend};BaseClient.prototype._isEnabled=function(){return this.getOptions().enabled!==false&&this._dsn!==undefined};BaseClient.prototype._prepareEvent=function(e,t,n){var r=this;var i=this.getOptions(),o=i.environment,s=i.release,u=i.dist,c=i.maxValueLength,f=c===void 0?250:c,d=i.normalizeDepth,h=d===void 0?3:d;var v=a["a"]({},e);if(v.environment===undefined&&o!==undefined){v.environment=o}if(v.release===undefined&&s!==undefined){v.release=s}if(v.dist===undefined&&u!==undefined){v.dist=u}if(v.message){v.message=Object(C["d"])(v.message,f)}var g=v.exception&&v.exception.values&&v.exception.values[0];if(g&&g.value){g.value=Object(C["d"])(g.value,f)}var _=v.request;if(_&&_.url){_.url=Object(C["d"])(_.url,f)}if(v.event_id===undefined){v.event_id=n&&n.event_id?n.event_id:Object(p["m"])()}this._addIntegrations(v.sdk);var b=l.resolve(v);if(t){b=t.applyToEvent(v,n)}return b.then((function(e){if(typeof h==="number"&&h>0){return r._normalizeEvent(e,h)}return e}))};BaseClient.prototype._normalizeEvent=function(e,t){if(!e){return null}return a["a"]({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return a["a"]({},e,e.data&&{data:Object(k["c"])(e.data,t)})}))},e.user&&{user:Object(k["c"])(e.user,t)},e.contexts&&{contexts:Object(k["c"])(e.contexts,t)},e.extra&&{extra:Object(k["c"])(e.extra,t)})};BaseClient.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);if(e&&t.length>0){e.integrations=t}};BaseClient.prototype._processEvent=function(e,t,n){var r=this;var i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled()){return l.reject("SDK not enabled, will not send event.")}if(typeof a==="number"&&Math.random()>a){return l.reject("This event has been sampled, will not send event.")}return new l((function(i,a){r._prepareEvent(e,n,t).then((function(e){if(e===null){a("An event processor returned null, will not send event.");return}var n=e;var s=t&&t.data&&t.data.__sentry__===true;if(s||!o){r._getBackend().sendEvent(n);i(n);return}var u=o(e,t);if(typeof u==="undefined"){_.error("`beforeSend` method has to return `null` or a valid event.")}else if(Object(c["m"])(u)){r._handleAsyncBeforeSend(u,i,a)}else{n=u;if(n===null){_.log("`beforeSend` returned `null`, will not send event.");i(null);return}r._getBackend().sendEvent(n);i(n)}})).then(null,(function(e){r.captureException(e,{data:{__sentry__:true},originalException:e});a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))}))};BaseClient.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){if(e===null){n("`beforeSend` returned `null`, will not send event.");return}r._getBackend().sendEvent(e);t(e)})).then(null,(function(e){n("beforeSend rejected with "+e)}))};return BaseClient}();var R=function(){function NoopTransport(){}NoopTransport.prototype.sendEvent=function(e){return l.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})};NoopTransport.prototype.close=function(e){return l.resolve(true)};return NoopTransport}();var B=function(){function BaseBackend(e){this._options=e;if(!this._options.dsn){_.warn("No DSN provided, backend will not do anything.")}this._transport=this._setupTransport()}BaseBackend.prototype._setupTransport=function(){return new R};BaseBackend.prototype.eventFromException=function(e,t){throw new S("Backend has to implement `eventFromException` method")};BaseBackend.prototype.eventFromMessage=function(e,t,n){throw new S("Backend has to implement `eventFromMessage` method")};BaseBackend.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){_.error("Error while sending event: "+e)}))};BaseBackend.prototype.getTransport=function(){return this._transport};return BaseBackend}();function supportsErrorEvent(){try{new ErrorEvent("");return true}catch(e){return false}}function supportsDOMError(){try{new DOMError("");return true}catch(e){return false}}function supportsDOMException(){try{new DOMException("");return true}catch(e){return false}}function supportsFetch(){if(!("fetch"in Object(p["f"])())){return false}try{new Headers;new Request("");new Response;return true}catch(e){return false}}function isNativeFetch(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if(!supportsFetch()){return false}var e=Object(p["f"])();if(isNativeFetch(e.fetch)){return true}var t=false;var n=e.document;if(n&&typeof n.createElement==="function"){try{var r=n.createElement("iframe");r.hidden=true;n.head.appendChild(r);if(r.contentWindow&&r.contentWindow.fetch){t=isNativeFetch(r.contentWindow.fetch)}n.head.removeChild(r)}catch(e){_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return t}function supportsReportingObserver(){return"ReportingObserver"in Object(p["f"])()}function supportsReferrerPolicy(){if(!supportsFetch()){return false}try{new Request("_",{referrerPolicy:"origin"});return true}catch(e){return false}}function supportsHistory(){var e=Object(p["f"])();var t=e.chrome;var n=t&&t.app&&t.app.runtime;var r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}var P="?";var N=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;var D=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i;var L=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var U=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;var M=/\((\S*)(?::(\d+))(?::(\d+))\)/;function computeStackTrace(e){var t=null;var n=e&&e.framesToPop;try{t=computeStackTraceFromStacktraceProp(e);if(t){return popFrames(t,n)}}catch(e){}try{t=computeStackTraceFromStackProp(e);if(t){return popFrames(t,n)}}catch(e){}return{message:extractMessage(e),name:e&&e.name,stack:[],failed:true}}function computeStackTraceFromStackProp(e){if(!e||!e.stack){return null}var t=[];var n=e.stack.split("\n");var r;var i;var o;var a;for(var s=0;s eval")>-1;if(r&&(i=U.exec(o[3]))){o[1]=o[1]||"eval";o[3]=i[1];o[4]=i[2];o[5]=""}else if(s===0&&!o[5]&&e.columnNumber!==void 0){t[0].column=e.columnNumber+1}a={url:o[3],func:o[1]||P,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null}}else{continue}if(!a.func&&a.line){a.func=P}t.push(a)}if(!t.length){return null}return{message:extractMessage(e),name:e.name,stack:t}}function computeStackTraceFromStacktraceProp(e){if(!e||!e.stacktrace){return null}var t=e.stacktrace;var n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;var r=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i;var i=t.split("\n");var o=[];var a;for(var s=0;s0){n(false)}}),e);l.all(t._buffer).then((function(){clearTimeout(r);n(true)})).then(null,(function(){n(true)}))}))};return PromiseBuffer}();var q=function(){function BaseTransport(e){this.options=e;this._buffer=new G(30);this.url=new H(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}BaseTransport.prototype.sendEvent=function(e){throw new S("Transport Class has to implement `sendEvent` method")};BaseTransport.prototype.close=function(e){return this._buffer.drain(e)};return BaseTransport}();var z=Object(p["f"])();var W=function(e){a["b"](FetchTransport,e);function FetchTransport(){var t=e!==null&&e.apply(this,arguments)||this;t._disabledUntil=new Date(Date.now());return t}FetchTransport.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())0}function ignoreNextOnError(){te+=1;setTimeout((function(){te-=1}))}function wrap(e,t,n){if(t===void 0){t={}}if(typeof e!=="function"){return e}try{if(e.__sentry__){return e}if(e.__sentry_wrapped__){return e.__sentry_wrapped__}}catch(t){return e}var sentryWrapped=function(){var r=Array.prototype.slice.call(arguments);try{if(n&&typeof n==="function"){n.apply(this,arguments)}var i=r.map((function(e){return wrap(e,t)}));if(e.handleEvent){return e.handleEvent.apply(this,i)}return e.apply(this,i)}catch(e){ignoreNextOnError();withScope((function(n){n.addEventProcessor((function(e){var n=a["a"]({},e);if(t.mechanism){Object(p["b"])(n,undefined,undefined);Object(p["a"])(n,t.mechanism)}n.extra=a["a"]({},n.extra,{arguments:r});return n}));captureException(e)}));throw e}};try{for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){sentryWrapped[r]=e[r]}}}catch(e){}e.prototype=e.prototype||{};sentryWrapped.prototype=e.prototype;Object.defineProperty(e,"__sentry_wrapped__",{enumerable:false,value:sentryWrapped});Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:false,value:true},__sentry_original__:{enumerable:false,value:e}});try{var i=Object.getOwnPropertyDescriptor(sentryWrapped,"name");if(i.configurable){Object.defineProperty(sentryWrapped,"name",{get:function(){return e.name}})}}catch(e){}return sentryWrapped}var ne=function(){function TryCatch(){this._ignoreOnError=0;this.name=TryCatch.id}TryCatch.prototype._wrapTimeFunction=function(e){return function(){var t=[];for(var n=0;n2?t[2]:undefined;if(r){var i=ae;var o=String(r);ae=o;triggerHandlers("history",{from:i,to:o})}return e.apply(this,t)}}Object(k["b"])(re.history,"pushState",historyReplacementFunction);Object(k["b"])(re.history,"replaceState",historyReplacementFunction)}function instrumentDOM(){if(!("document"in re)){return}re.document.addEventListener("click",domEventHandler("click",triggerHandlers.bind(null,"dom")),false);re.document.addEventListener("keypress",keypressEventHandler(triggerHandlers.bind(null,"dom")),false);["EventTarget","Node"].forEach((function(e){var t=re[e]&&re[e].prototype;if(!t||!t.hasOwnProperty||!t.hasOwnProperty("addEventListener")){return}Object(k["b"])(t,"addEventListener",(function(e){return function(t,n,r){if(n&&n.handleEvent){if(t==="click"){Object(k["b"])(n,"handleEvent",(function(e){return function(t){domEventHandler("click",triggerHandlers.bind(null,"dom"))(t);return e.call(this,t)}}))}if(t==="keypress"){Object(k["b"])(n,"handleEvent",(function(e){return function(t){keypressEventHandler(triggerHandlers.bind(null,"dom"))(t);return e.call(this,t)}}))}}else{if(t==="click"){domEventHandler("click",triggerHandlers.bind(null,"dom"),true)(this)}if(t==="keypress"){keypressEventHandler(triggerHandlers.bind(null,"dom"))(this)}}return e.call(this,t,n,r)}}));Object(k["b"])(t,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}}))}))}var se=1e3;var ue=0;var ce;var fe;function domEventHandler(e,t,n){if(n===void 0){n=false}return function(r){ce=undefined;if(!r||fe===r){return}fe=r;if(ue){clearTimeout(ue)}if(n){ue=setTimeout((function(){t({event:r,name:e})}))}else{t({event:r,name:e})}}}function keypressEventHandler(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(!r||r!=="INPUT"&&r!=="TEXTAREA"&&!n.isContentEditable){return}if(!ce){domEventHandler("input",e)(t)}clearTimeout(ce);ce=setTimeout((function(){ce=undefined}),se)}}var le=null;function instrumentError(){le=re.onerror;re.onerror=function(e,t,n,r,i){triggerHandlers("error",{column:r,error:i,line:n,msg:e,url:t});if(le){return le.apply(this,arguments)}return false}}var pe=null;function instrumentUnhandledRejection(){pe=re.onunhandledrejection;re.onunhandledrejection=function(e){triggerHandlers("unhandledrejection",e);if(pe){return pe.apply(this,arguments)}return true}}var de=function(){function Breadcrumbs(e){this.name=Breadcrumbs.id;this._options=a["a"]({console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true},e)}Breadcrumbs.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:s.fromString(e.level),message:Object(C["b"])(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){t.message="Assertion failed: "+(Object(C["b"])(e.args.slice(1)," ")||"console.assert");t.data.arguments=e.args.slice(1)}else{return}}getCurrentHub().addBreadcrumb(t,{input:e.args,level:e.level})};Breadcrumbs.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(p["h"])(e.event.target):Object(p["h"])(e.event)}catch(e){t=""}if(t.length===0){return}getCurrentHub().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})};Breadcrumbs.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__){return}getCurrentHub().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr});return}if(this._options.sentry&&e.xhr.__sentry_own_request__){addSentryBreadcrumb(e.args[0])}};Breadcrumbs.prototype._fetchBreadcrumb=function(e){if(!e.endTimestamp){return}var t=getCurrentHub().getClient();var n=t&&t.getDsn();if(this._options.sentry&&n){var r=new H(n).getStoreEndpoint();if(r&&e.fetchData.url.indexOf(r)!==-1&&e.fetchData.method==="POST"&&e.args[1]&&e.args[1].body){addSentryBreadcrumb(e.args[1].body);return}}if(e.error){getCurrentHub().addBreadcrumb({category:"fetch",data:a["a"]({},e.fetchData,{status_code:e.response.status}),level:s.Error,type:"http"},{data:e.error,input:e.args})}else{getCurrentHub().addBreadcrumb({category:"fetch",data:a["a"]({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}};Breadcrumbs.prototype._historyBreadcrumb=function(e){var t=Object(p["f"])();var n=e.from;var r=e.to;var i=Object(p["k"])(t.location.href);var o=Object(p["k"])(n);var a=Object(p["k"])(r);if(!o.path){o=i}if(i.protocol===a.protocol&&i.host===a.host){r=a.relative}if(i.protocol===o.protocol&&i.host===o.host){n=o.relative}getCurrentHub().addBreadcrumb({category:"navigation",data:{from:n,to:r}})};Breadcrumbs.prototype.setupOnce=function(){var e=this;if(this._options.console){addInstrumentationHandler({callback:function(){var t=[];for(var n=0;n0?t:Object(p["g"])();if(e.exception.values[0].stacktrace.frames.length===0){e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:true,lineno:o})}return e};GlobalHandlers.id="GlobalHandlers";return GlobalHandlers}();var ve="cause";var ge=5;var _e=function(){function LinkedErrors(e){if(e===void 0){e={}}this.name=LinkedErrors.id;this._key=e.key||ve;this._limit=e.limit||ge}LinkedErrors.prototype.setupOnce=function(){addGlobalEventProcessor((function(e,t){var n=getCurrentHub().getIntegration(LinkedErrors);if(n){return n._handler(e,t)}return e}))};LinkedErrors.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!Object(c["g"])(t.originalException,Error)){return e}var n=this._walkErrorTree(t.originalException,this._key);e.exception.values=a["d"](n,e.exception.values);return e};LinkedErrors.prototype._walkErrorTree=function(e,t,n){if(n===void 0){n=[]}if(!Object(c["g"])(e[t],Error)||n.length+1>=this._limit){return n}var r=computeStackTrace(e[t]);var i=exceptionFromStacktrace(r);return this._walkErrorTree(e[t],t,a["d"]([i],n))};LinkedErrors.id="LinkedErrors";return LinkedErrors}();var be=Object(p["f"])();var me=function(){function UserAgent(){this.name=UserAgent.id}UserAgent.prototype.setupOnce=function(){addGlobalEventProcessor((function(e){if(getCurrentHub().getIntegration(UserAgent)){if(!be.navigator||!be.location){return e}var t=e.request||{};t.url=t.url||be.location.href;t.headers=t.headers||{};t.headers["User-Agent"]=be.navigator.userAgent;return a["a"]({},e,{request:t})}return e}))};UserAgent.id="UserAgent";return UserAgent}();var ye=[new r.InboundFilters,new r.FunctionToString,new ne,new de,new he,new _e,new me];function init(e){if(e===void 0){e={}}if(e.defaultIntegrations===undefined){e.defaultIntegrations=ye}if(e.release===undefined){var t=Object(p["f"])();if(t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id){e.release=t.SENTRY_RELEASE.id}}initAndBind($,e)}function showReportDialog(e){if(e===void 0){e={}}if(!e.eventId){e.eventId=getCurrentHub().lastEventId()}var t=getCurrentHub().getClient();if(t){t.showReportDialog(e)}}function lastEventId(){return getCurrentHub().lastEventId()}function forceLoad(){}function onLoad(e){e()}function flush(e){var t=getCurrentHub().getClient();if(t){return t.flush(e)}return l.reject(false)}function sdk_close(e){var t=getCurrentHub().getClient();if(t){return t.close(e)}return l.reject(false)}function sdk_wrap(e){return wrap(e)()}n.d(t,"Integrations",(function(){return Se}));n.d(t,"Severity",(function(){return s}));n.d(t,"Status",(function(){return u}));n.d(t,"addGlobalEventProcessor",(function(){return addGlobalEventProcessor}));n.d(t,"addBreadcrumb",(function(){return addBreadcrumb}));n.d(t,"captureException",(function(){return captureException}));n.d(t,"captureEvent",(function(){return captureEvent}));n.d(t,"captureMessage",(function(){return captureMessage}));n.d(t,"configureScope",(function(){return configureScope}));n.d(t,"getHubFromCarrier",(function(){return getHubFromCarrier}));n.d(t,"getCurrentHub",(function(){return getCurrentHub}));n.d(t,"Hub",(function(){return E}));n.d(t,"Scope",(function(){return d}));n.d(t,"setContext",(function(){return setContext}));n.d(t,"setExtra",(function(){return setExtra}));n.d(t,"setExtras",(function(){return setExtras}));n.d(t,"setTag",(function(){return setTag}));n.d(t,"setTags",(function(){return setTags}));n.d(t,"setUser",(function(){return setUser}));n.d(t,"withScope",(function(){return withScope}));n.d(t,"BrowserClient",(function(){return $}));n.d(t,"defaultIntegrations",(function(){return ye}));n.d(t,"forceLoad",(function(){return forceLoad}));n.d(t,"init",(function(){return init}));n.d(t,"lastEventId",(function(){return lastEventId}));n.d(t,"onLoad",(function(){return onLoad}));n.d(t,"showReportDialog",(function(){return showReportDialog}));n.d(t,"flush",(function(){return flush}));n.d(t,"close",(function(){return sdk_close}));n.d(t,"wrap",(function(){return sdk_wrap}));n.d(t,"SDK_NAME",(function(){return V}));n.d(t,"SDK_VERSION",(function(){return J}));n.d(t,"Transports",(function(){return o}));var Ee={};var Oe=Object(p["f"])();if(Oe.Sentry&&Oe.Sentry.Integrations){Ee=Oe.Sentry.Integrations}var Se=a["a"]({},Ee,r,i)},291:function(e,t,n){"use strict";n.d(t,"d",(function(){return isError}));n.d(t,"e",(function(){return isErrorEvent}));n.d(t,"a",(function(){return isDOMError}));n.d(t,"b",(function(){return isDOMException}));n.d(t,"k",(function(){return isString}));n.d(t,"i",(function(){return isPrimitive}));n.d(t,"h",(function(){return isPlainObject}));n.d(t,"f",(function(){return isEvent}));n.d(t,"c",(function(){return isElement}));n.d(t,"j",(function(){return isRegExp}));n.d(t,"m",(function(){return isThenable}));n.d(t,"l",(function(){return isSyntheticEvent}));n.d(t,"g",(function(){return isInstanceOf}));function isError(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return true;case"[object Exception]":return true;case"[object DOMException]":return true;default:return isInstanceOf(e,Error)}}function isErrorEvent(e){return Object.prototype.toString.call(e)==="[object ErrorEvent]"}function isDOMError(e){return Object.prototype.toString.call(e)==="[object DOMError]"}function isDOMException(e){return Object.prototype.toString.call(e)==="[object DOMException]"}function isString(e){return Object.prototype.toString.call(e)==="[object String]"}function isPrimitive(e){return e===null||typeof e!=="object"&&typeof e!=="function"}function isPlainObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isEvent(e){return typeof Event!=="undefined"&&isInstanceOf(e,Event)}function isElement(e){return typeof Element!=="undefined"&&isInstanceOf(e,Element)}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function isThenable(e){return Boolean(e&&e.then&&typeof e.then==="function")}function isSyntheticEvent(e){return isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function isInstanceOf(e,t){try{return e instanceof t}catch(e){return false}}},307:function(e,t,n){"use strict";(function(e,r,i){n.d(t,"i",(function(){return isNodeEnv}));n.d(t,"f",(function(){return getGlobalObject}));n.d(t,"m",(function(){return uuid4}));n.d(t,"k",(function(){return parseUrl}));n.d(t,"d",(function(){return getEventDescription}));n.d(t,"c",(function(){return consoleSandbox}));n.d(t,"b",(function(){return addExceptionTypeValue}));n.d(t,"a",(function(){return addExceptionMechanism}));n.d(t,"g",(function(){return getLocationHref}));n.d(t,"h",(function(){return htmlTreeAsString}));n.d(t,"l",(function(){return timestampWithMs}));n.d(t,"j",(function(){return parseRetryAfterHeader}));n.d(t,"e",(function(){return getFunctionName}));var o=n(291);var a=n(370);function dynamicRequire(e,t){return e.require(t)}function isNodeEnv(){return Object.prototype.toString.call(typeof e!=="undefined"?e:0)==="[object process]"}var s={};function getGlobalObject(){return isNodeEnv()?r:typeof window!=="undefined"?window:typeof self!=="undefined"?self:s}function uuid4(){var e=getGlobalObject();var t=e.crypto||e.msCrypto;if(!(t===void 0)&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n);n[3]=n[3]&4095|16384;n[4]=n[4]&16383|32768;var pad=function(e){var t=e.toString(16);while(t.length<4){t="0"+t}return t};return pad(n[0])+pad(n[1])+pad(n[2])+pad(n[3])+pad(n[4])+pad(n[5])+pad(n[6])+pad(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.random()*16|0;var n=e==="x"?t:t&3|8;return n.toString(16)}))}function parseUrl(e){if(!e){return{}}var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}var n=t[6]||"";var r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function getEventDescription(e){if(e.message){return e.message}if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];if(t.type&&t.value){return t.type+": "+t.value}return t.type||t.value||e.event_id||""}return e.event_id||""}function consoleSandbox(e){var t=getGlobalObject();var n=["debug","info","warn","error","log","assert"];if(!("console"in t)){return e()}var r=t.console;var i={};n.forEach((function(e){if(e in t.console&&r[e].__sentry_original__){i[e]=r[e];r[e]=r[e].__sentry_original__}}));var o=e();Object.keys(i).forEach((function(e){r[e]=i[e]}));return o}function addExceptionTypeValue(e,t,n){e.exception=e.exception||{};e.exception.values=e.exception.values||[];e.exception.values[0]=e.exception.values[0]||{};e.exception.values[0].value=e.exception.values[0].value||t||"";e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function addExceptionMechanism(e,t){if(t===void 0){t={}}try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{};Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function getLocationHref(){try{return document.location.href}catch(e){return""}}function htmlTreeAsString(e){try{var t=e;var n=5;var r=80;var i=[];var o=0;var a=0;var s=" > ";var u=s.length;var c=void 0;while(t&&o++1&&a+i.length*u+c.length>=r){break}i.push(c);a+=c.length;t=t.parentNode}return i.reverse().join(s)}catch(e){return""}}function _htmlElementAsString(e){var t=e;var n=[];var r;var i;var a;var s;var u;if(!t||!t.tagName){return""}n.push(t.tagName.toLowerCase());if(t.id){n.push("#"+t.id)}r=t.className;if(r&&Object(o["k"])(r)){i=r.split(/\s+/);for(u=0;ur){t=r}var i=Math.max(t-60,0);if(i<5){i=0}var o=Math.min(i+140,r);if(o>r-5){o=r}if(o===r){i=Math.max(o-140,0)}n=n.slice(i,o);if(i>0){n="'{snip} "+n}if(o"}try{s.currentTarget=Object(i["c"])(o.currentTarget)?Object(a["h"])(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){s.currentTarget=""}if(typeof CustomEvent!=="undefined"&&Object(i["g"])(e,CustomEvent)){s.detail=o.detail}for(var r in o){if(Object.prototype.hasOwnProperty.call(o,r)){s[r]=o}}return s}return e}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}function normalizeToSize(e,t,n){if(t===void 0){t=3}if(n===void 0){n=100*1024}var r=normalize(e,t);if(jsonSize(r)>n){return normalizeToSize(e,t-1,n)}return r}function serializeValue(e){var t=Object.prototype.toString.call(e);if(typeof e==="string"){return e}if(t==="[object Object]"){return"[Object]"}if(t==="[object Array]"){return"[Array]"}var n=normalizeValue(e);return Object(i["i"])(n)?n:t}function normalizeValue(t,n){if(n==="domain"&&t&&typeof t==="object"&&t._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof e!=="undefined"&&t===e){return"[Global]"}if(typeof window!=="undefined"&&t===window){return"[Window]"}if(typeof document!=="undefined"&&t===document){return"[Document]"}if(Object(i["l"])(t)){return"[SyntheticEvent]"}if(typeof t==="number"&&t!==t){return"[NaN]"}if(t===void 0){return"[undefined]"}if(typeof t==="function"){return"[Function: "+Object(a["e"])(t)+"]"}return t}function walk(e,t,n,r){if(n===void 0){n=+Infinity}if(r===void 0){r=new o["a"]}if(n===0){return serializeValue(t)}if(t!==null&&t!==undefined&&typeof t.toJSON==="function"){return t.toJSON()}var a=normalizeValue(t,e);if(Object(i["i"])(a)){return a}var s=getWalkSource(t);var u=Array.isArray(t)?[]:{};if(r.memoize(t)){return"[Circular ~]"}for(var c in s){if(!Object.prototype.hasOwnProperty.call(s,c)){continue}u[c]=walk(c,s[c],n-1,r)}r.unmemoize(t);return u}function normalize(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return walk(e,n,t)})))}catch(e){return"**non-serializable**"}}function extractExceptionKeysForMessage(e,t){if(t===void 0){t=40}var n=Object.keys(getWalkSource(e));n.sort();if(!n.length){return"[object has no keys]"}if(n[0].length>=t){return Object(s["d"])(n[0],t)}for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(i.length>t){continue}if(r===n.length){return i}return Object(s["d"])(i,t)}return""}function dropUndefinedKeys(e){var t,n;if(Object(i["h"])(e)){var o=e;var a={};try{for(var s=r["e"](Object.keys(o)),u=s.next();!u.done;u=s.next()){var c=u.value;if(typeof o[c]!=="undefined"){a[c]=dropUndefinedKeys(o[c])}}}catch(e){t={error:e}}finally{try{if(u&&!u.done&&(n=s.return))n.call(s)}finally{if(t)throw t.error}}return a}if(Array.isArray(e)){return e.map(dropUndefinedKeys)}return e}}).call(this,n(100))},575:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function Memo(){this._hasWeakSet=typeof WeakSet==="function";this._inner=this._hasWeakSet?new WeakSet:[]}Memo.prototype.memoize=function(e){if(this._hasWeakSet){if(this._inner.has(e)){return true}this._inner.add(e);return false}for(var t=0;t=0?JSON.parse(e):e}function setLocalStorage(e,t,n,i){if(i){try{e.setItem(t,n)}catch(e){}}return n}function getSlideId(){var e=window.tnsId;window.tnsId=!e?1:e+1;return"tns"+window.tnsId}function getBody(){var e=document,t=e.body;if(!t){t=e.createElement("body");t.fake=true}return t}var f=document.documentElement;function setFakeBody(e){var t="";if(e.fake){t=f.style.overflow;e.style.background="";e.style.overflow=f.style.overflow="hidden";f.appendChild(e)}return t}function resetFakeBody(e,t){if(e.fake){e.remove();f.style.overflow=t;f.offsetHeight}}function calc(){var e=document,t=getBody(),n=setFakeBody(t),i=e.createElement("div"),a=false;t.appendChild(i);try{var r="(10px * 10)",o=["calc"+r,"-moz-calc"+r,"-webkit-calc"+r],s;for(var l=0;l<3;l++){s=o[l];i.style.width=s;if(i.offsetWidth===100){a=s.replace(r,"");break}}}catch(e){}t.fake?resetFakeBody(t,n):i.remove();return a}function percentageLayout(){var e=document,t=getBody(),n=setFakeBody(t),i=e.createElement("div"),a=e.createElement("div"),r="",o=70,s=3,l=false;i.className="tns-t-subp2";a.className="tns-t-ct";for(var f=0;f