app.si-wid-lod-1222.npr.service-initiation.asurion.com
Open in
urlscan Pro
18.245.31.110
Public Scan
URL:
https://app.si-wid-lod-1222.npr.service-initiation.asurion.com/
Submission: On May 02 via api from US — Scanned from DE
Submission: On May 02 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(()=>{var e={714:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function u(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?o.arrayMerge(e,n,o):s(e,n,o):r(n,o)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var c=u;e.exports=c},843:function(e){e.exports=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},375:function(e,t){!function(e){"use strict";function t(e,t,n,r){return new(n=n||Promise)((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function n(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var r=function(e){return!(!(t=e)||"object"!=typeof t||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||function(e){return e.$$typeof===i}(t)));var t},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]));var t}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){var a,s;(!u(a=e,s=i)||Object.hasOwnProperty.call(a,s)&&Object.propertyIsEnumerable.call(a,s))&&(u(e,i)&&n.isMergeableObject(t[i])?r[i]=(a=i,((s=n).customMerge&&"function"==typeof(a=s.customMerge(a))?a:l)(e[i],t[i],n)):r[i]=o(t[i],n))})),r}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):o(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var d=l,f=(h.prototype.union=function(e){return e?new h(this.Scopes.concat(e.Scopes||[]),d(this.ExtraData,e.ExtraData||{}),d(this.MetaData,e.MetaData||{}),d(this.Identities,e.Identities||{}),this.Filters.concat(e.Filters||[])):this},h.prototype.toEventModel=function(e){return t(this,void 0,void 0,(function(){var r,i=this;return n(this,(function(o){switch(o.label){case 0:return r={Name:e,Scope:this.Scopes.join("_"),ExtraData:d({},this.ExtraData),MetaData:d({},this.MetaData),Identities:d({},this.Identities)},[4,this.Filters.reduce((function(e,o){return t(i,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e];case 1:return t.sent(),[4,o(r)];case 2:return t.sent(),[2]}}))}))}),Promise.resolve())];case 1:return o.sent(),[2,r]}}))}))},h);function h(e,t,n,r,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=[]),this.Scopes=e=void 0===e?[]:e,this.ExtraData=t,this.MetaData=n,this.Identities=r,this.Filters=i}var p=(m.prototype.dispatch=function(e,t){return void 0===e&&(e=""),t=this.context.union(t),this.dispatchAnalytics(e,t)},m.prototype.extend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return t(e)}),this)},m);function m(e,t){void 0===t&&(t=new f),this.dispatchAnalytics=e,this.context=t}function v(e){return e}var y=function(){return"undefined"!=typeof process&&!1};function b(e,t){if(e&&"object"==typeof e&&!Array.isArray(e))return 1;if(y())throw TypeError("'"+t+"' should be an object")}function g(e){return function(t){return new p(t.dispatch.bind(t),e instanceof f?e:new f(e.Scopes,e.ExtraData,e.MetaData,e.Identities,e.Filters))}}function w(e){if(Array.isArray(e))return g({Filters:e.filter((function(e){return e&&"function"==typeof e}))});if(y())throw TypeError("'filters' should be an array");return v}function x(e){e.ExtraData.Time=(new Date).toISOString()}var E=[x];function S(e){return b(e,"extras")?g({ExtraData:e}):v}function O(e){return b(e,"identities")?g({Identities:e}):v}var I=Object.freeze({__proto__:null,createScoped:function(e){return g({Scopes:[e]})},withContext:g,withExtra:function(e,t){var n;return S(((n={})[e]=t,n))},withExtras:S,withFilter:function(e){if(e&&"function"==typeof e)return w([e]);if(y())throw TypeError("'filter' should be a function");return v},withFilters:w,withIdentities:O,withIdentity:function(e,t){var n;return O(((n={})[e]=t,n))},withMeta:function(e,t){var n;return g({MetaData:((n={})[e]=t,n)})}}),P=Object.freeze({__proto__:null,addTime:x}),C=Object.freeze({__proto__:null,consoleWriter:function(e){console.log(JSON.stringify(e))},mixpanelWriter:function(e){return function(t){var n;"undefined"!=typeof mixpanel&&(t.Identities[e]&&mixpanel.identify(t.Identities[e]),n=[t.Scope,t.Name].filter((function(e){return e})).join("_"),t=d.all([t.Identities,t.ExtraData,t.MetaData]),mixpanel.track(n,t))}}});e.AnalyticsContext=f,e.AnalyticsDispatcher=p,e.createRootDispatcher=function(e,r){var i=this;return new p((function(r,o){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,o.toEventModel(r)];case 1:return t=n.sent(),[4,e(t)];case 2:return[2,n.sent()]}}))}))}),r).extend(w(E))},e.extenders=I,e.filters=P,e.writers=C,Object.defineProperty(e,"__esModule",{value:!0})}(t)},353:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="major",d="model",f="name",h="type",p="vendor",m="version",v="architecture",y="console",b="mobile",g="tablet",w="smarttv",x="wearable",E="embedded",S="Amazon",O="Apple",I="ASUS",P="BlackBerry",C="Browser",k="Chrome",D="Firefox",A="Google",M="Huawei",j="LG",_="Microsoft",T="Motorola",q="Opera",N="Samsung",L="Sharp",U="Sony",R="Xiaomi",F="Zebra",B="Facebook",K="Chromium OS",z="Mac OS",Q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===c&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},X=function(e,t){for(var n,r,i,s,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(V(t[n][r],e))return"?"===n?o:n}else if(V(t[n],e))return"?"===n?o:n;return e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,q+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[f,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+C],m],[/\bfocus\/([\w\.]+)/i],[m,[f,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[m,[f,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+C]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+C],m],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,B],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,k+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,G]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,N],[h,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,N],[h,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,O],[h,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,O],[h,g]],[/(macintosh);/i],[d,[p,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,L],[h,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,M],[h,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,M],[h,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,R],[h,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,R],[h,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,T],[h,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,T],[h,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,j],[h,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,j],[h,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,b]],[/(pixel c)\b/i],[d,[p,A],[h,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,A],[h,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,U],[h,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,U],[h,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,S],[h,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,S],[h,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,P],[h,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,I],[h,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,I],[h,b]],[/(nexus 9)/i],[d,[p,"HTC"],[h,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,g]],[/(surface duo)/i],[d,[p,_],[h,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,b]],[/(u304aa)/i],[d,[p,"AT&T"],[h,b]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,b]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,g]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,g]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,g]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,g]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,g]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,b]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,b]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,g]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,g]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,b]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,g]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,g]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,g]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,g]],[/(sprint) (\w+)/i],[p,d,[h,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,_],[h,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,F],[h,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,F],[h,b]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,N],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,j],[h,w]],[/(apple) ?tv/i],[p,[d,O+" TV"],[h,w]],[/crkey/i],[[d,k+"cast"],[p,A],[h,w]],[/droid.+aft(\w)( bui|\))/i],[d,[p,S],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,L],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,U],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,R],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,W],[d,W],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,y]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[d,[p,U],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,_],[h,y]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,O],[h,x]],[/droid.+; (glass) \d/i],[d,[p,A],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,F],[h,x]],[/(quest( 2| pro)?)/i],[d,[p,B],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,E]],[/(aeobc)\b/i],[d,[p,S],[h,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[h,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,b]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[m,H,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[m,H,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,z],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,P]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,K],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},Z=function(e,t){if(typeof e===u&&(t=e,e=o),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=o,t[m]=o,X.call(t,r,w.browser),t[l]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[v]=o,X.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[h]=o,X.call(e,r,w.device),x&&!e[h]&&y&&y.mobile&&(e[h]=b),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=g),e},this.getEngine=function(){var e={};return e[f]=o,e[m]=o,X.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=o,e[m]=o,X.call(e,r,w.os),x&&!e[f]&&y&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,K).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>350?W(e,350):e,this},this.setUA(r),this};Z.VERSION="1.0.35",Z.BROWSER=Q([f,m,l]),Z.CPU=Q([v]),Z.DEVICE=Q([d,p,h,y,b,w,g,x,E]),Z.ENGINE=Z.OS=Q([f,m]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=(function(){return Z}).call(t,n,t,e))===o||(e.exports=r):typeof i!==s&&(i.UAParser=Z);var Y=typeof i!==s&&(i.jQuery||i.Zepto);if(Y&&!Y.ua){var ee=new Z;Y.ua=ee.getResult(),Y.ua.get=function(){return ee.getUA()},Y.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:this)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function t(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;Object.create;var r=n(714),i=n.n(r),o=function(){function n(e,t,n,r,i){void 0===e&&(e=[]),void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=[]),this.Scopes=e,this.ExtraData=t,this.MetaData=n,this.Identities=r,this.Filters=i}return n.prototype.union=function(e){return e?new n(this.Scopes.concat(e.Scopes||[]),i()(this.ExtraData,e.ExtraData||{}),i()(this.MetaData,e.MetaData||{}),i()(this.Identities,e.Identities||{}),this.Filters.concat(e.Filters||[])):this},n.prototype.toEventModel=function(n){return e(this,void 0,void 0,(function(){var r,o=this;return t(this,(function(a){switch(a.label){case 0:return r={Name:n,Scope:this.Scopes.join("_"),ExtraData:i()({},this.ExtraData),MetaData:i()({},this.MetaData),Identities:i()({},this.Identities)},[4,this.Filters.reduce((function(n,i){return e(o,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,n];case 1:return e.sent(),[4,i(r)];case 2:return e.sent(),[2]}}))}))}),Promise.resolve())];case 1:return a.sent(),[2,r]}}))}))},n}(),a=function(){function e(e,t){void 0===t&&(t=new o),this.dispatchAnalytics=e,this.context=t}return e.prototype.dispatch=function(e,t){void 0===e&&(e="");var n=this.context.union(t);return this.dispatchAnalytics(e,n)},e.prototype.extend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return t(e)}),this)},e}();function s(e){return function(t){return new a(t.dispatch.bind(t),e instanceof o?e:new o(e.Scopes,e.ExtraData,e.MetaData,e.Identities,e.Filters))}}function u(e){return e}var c=function(){return"undefined"!=typeof process&&!1};function l(e,t){if(!function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}(e)){if(c())throw TypeError("'"+t+"' should be an object");return!1}return!0}function d(e){return l(e,"extras")?s({ExtraData:e}):u}let f=function(e){return e[e.SM=375]="SM",e[e.MD=768]="MD",e[e.MD2=1024]="MD2",e[e.LG=1280]="LG",e[e.XL=1440]="XL",e[e.XXL=1920]="XXL",e}({});f.SM,f.SM,f.SM,f.MD,f.MD,f.MD,f.LG,f.MD2,f.MD2,f.LG,f.LG,f.LG,f.XL,f.XL,f.XL,f.XXL,f.XXL;class Widget{constructor(){this.actions=void 0}execute(e,...t){if(!Object.getOwnPropertyDescriptor(this.actions,e))throw new Error("Unknown action");this.actions[e](...t)}}let h=function(e){return e.Asurion="asurion",e.Google="google",e.Verizon="verizon",e}({}),p=function(e){return e.Collapse="collapse",e.Destroy="destroy",e.Expand="expand",e.Init="init",e}({});var m,v,y=n(375);!function(e){e.PageLoad="pageLoad",e.Default="default"}(m||(m={})),function(e){e.HTML5="HTML5",e.IP="IP"}(v||(v={}));var b;!function(e){e.Console="console",e.Desktop="desktop",e.Embedded="embedded",e.Mobile="mobile",e.SmartTv="smarttv",e.Tablet="tablet",e.Wearable="wearable"}(b||(b={}));var g=n(353),w=n.n(g);var x;!function(e){e.UtmSource="utm_source",e.UtmMedium="utm_medium",e.UtmCampaign="utm_campaign",e.UtmTerm="utm_term",e.UtmContent="utm_content"}(x||(x={}));var E="ajs_anonymous_id";function S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var O={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var I,P=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=S({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(u){}}return e?r[e]:r}},remove:function(e,t){r(e,"",S({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,S({},this.attributes,t))},withConverter:function(t){return e(S({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}(O,{path:"/"}),C={secure:!0,sameSite:"None",domain:"asurion.com"},k=function(e,t){P.set(e,t,C)},D=function(e){return P.get(e)},A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},M=new Uint8Array(16);function j(){if(!I&&!(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(M)}const _=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const T=function(e){return"string"==typeof e&&_.test(e)};for(var q=[],N=0;N<256;++N)q.push((N+256).toString(16).substr(1));const L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase();if(!T(n))throw TypeError("Stringified UUID is invalid");return n};const U=function(e,t,n){var r=(e=e||{}).random||(e.rng||j)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return L(r)};var R,F=function(){var e=D(E)||null;if(!e){if(!(e=function(){var e=window.localStorage.getItem(E);return e?JSON.parse(e):e}())){e=U();try{!function(e){if(!e)throw new Error("Id not provided");window.localStorage.setItem(E,JSON.stringify(e))}(e)}catch(t){throw t}}!function(e){if(!e)throw new Error("Id not provided");k(E,e)}(e)}return e},B=new Uint8Array(16);function K(){if(!R&&!(R="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(B)}const z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Q=function(e){return"string"==typeof e&&z.test(e)};for(var V=[],G=0;G<256;++G)V.push((G+256).toString(16).substr(1));const W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase();if(!Q(n))throw TypeError("Stringified UUID is invalid");return n};const X=function(e,t,n){var r=(e=e||{}).random||(e.rng||K)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return W(r)},H="mx-user-browser-session-id",$=()=>{let e=(()=>{try{return window.sessionStorage.getItem(H)}catch(e){return}})();return e||(e=X(),(e=>{try{window.sessionStorage.setItem(H,e)}catch(t){console.warn("Cannot persist session id",{error:t})}})(e)),e};class UserBrowser{constructor(){this.Id=F(),this.SessionId=$(),this.Referrer=document.referrer,this.UserAgent=(()=>{var e,t;const n=(new(w())).getResult();return{Os:n.os.name,OsVersion:n.os.version,Browser:n.browser.name,BrowserVersion:n.browser.version,DeviceVendor:n.device.vendor,DeviceModel:n.device.model,DeviceFormFactor:null!==(t=null===(e=n.device.type)||void 0===e?void 0:e.toLowerCase())&&void 0!==t?t:b.Desktop,UAString:navigator.userAgent,CookiesEnabled:navigator.cookieEnabled}})(),this.UserSessionData=Object.keys(x).reduce((function(e,t){var n;return A(A({},e),((n={})[t]=D(t),n))}),{})}static get(){return this.instance||(this.instance=new UserBrowser),this.instance}async getLocation(){return await(async()=>await new Promise(((e,t)=>{const n=t=>e({type:v.HTML5,latitude:t.coords.latitude,longitude:t.coords.longitude}),r=e=>{console.error("Failed to obtain HTML5 Coordinates",{name:"HTML5 Geolocation Error",message:e.message}),t(e)};navigator.geolocation&&navigator.geolocation.getCurrentPosition(n,r)})))()}async getBrowserEvents(e){return await ge(e)}}const J=UserBrowser.get(),Z=e=>({type:e,sessionId:J.SessionId,createdAt:(new Date).toISOString()}),Y=(e,t)=>t.some((t=>e instanceof t));let ee,te;const ne=new WeakMap,re=new WeakMap,ie=new WeakMap,oe=new WeakMap,ae=new WeakMap;let se={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return re.get(e);if("objectStoreNames"===t)return e.objectStoreNames||ie.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return le(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ue(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(te||(te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(de(this),t),le(ne.get(this))}:function(...t){return le(e.apply(de(this),t))}:function(t,...n){const r=e.call(de(this),t,...n);return ie.set(r,t.sort?t.sort():[t]),le(r)}}function ce(e){return"function"==typeof e?ue(e):(e instanceof IDBTransaction&&function(e){if(re.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));re.set(e,t)}(e),Y(e,ee||(ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,se):e)}function le(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(le(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&ne.set(t,e)})).catch((()=>{})),ae.set(t,e),t}(e);if(oe.has(e))return oe.get(e);const t=ce(e);return t!==e&&(oe.set(e,t),ae.set(t,e)),t}const de=e=>ae.get(e);const fe=["get","getKey","getAll","getAllKeys","count"],he=["put","add","delete","clear"],pe=new Map;function me(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(pe.get(t))return pe.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=he.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!fe.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return pe.set(t,o),o}var ve;se=(e=>({...e,get:(t,n,r)=>me(t,n)||e.get(t,n,r),has:(t,n)=>!!me(t,n)||e.has(t,n)}))(se),function(e){e.BrowserEvents="BrowserEvents"}(ve||(ve={}));const ye="UserBrowserDb",be=async()=>{let e;try{e=await function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=le(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(le(a.result),e.oldVersion,e.newVersion,le(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(ye,1,{upgrade(e){if(!e.objectStoreNames.contains(ve.BrowserEvents)){const t=e.createObjectStore(ve.BrowserEvents,{autoIncrement:!0});t.createIndex("type","type"),t.createIndex("timestamp","timestamp",{unique:!0})}}})}catch(t){throw console.error(`Failed to initialize ${ye} IDB`,t),t}return e},ge=async e=>{var t;let n=[];const r=await be(),i=null===(t=null==r?void 0:r.transaction(ve.BrowserEvents,"readonly"))||void 0===t?void 0:t.objectStore(ve.BrowserEvents);if(i)try{n=e?await i.index("type").getAll(IDBKeyRange.only(e),25):await i.getAll(null,25)}catch(o){console.error("Failed to retrieve browser events from store",o)}return n},we=async()=>{await xe({...Z(m.PageLoad),protocol:window.location.protocol,hostname:window.location.hostname,pathname:window.location.pathname,search:window.location.search,href:window.location.href})},xe=async e=>{var t;const n=await be(),r=null===(t=null==n?void 0:n.transaction(ve.BrowserEvents,"readwrite"))||void 0===t?void 0:t.objectStore(ve.BrowserEvents);if(r)try{await r.add(e)}catch(i){throw console.error("Failed to add browser event to store",i),i}finally{n.close()}};"undefined"!=typeof window&&window.addEventListener("load",(()=>{we()})),function(){var e=new URLSearchParams(window.location.href);for(var t in x){var n=x[t],r=e.get(n);r&&k(t,r)}}();var Ee=n(843),Se=n.n(Ee),Oe="undefined",Ie="object",Pe="any",Ce="*",ke="undefined"!=typeof process?process:{},De=(ke.env&&ke.env.NODE_ENV,"undefined"!=typeof document);De&&window.location.hostname,null!=ke.versions&&ke.versions.node,"undefined"!=typeof Deno&&Deno.core,"object"==typeof self&&self.constructor&&self.constructor.name,De&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Ae(e,t){return t.charAt(0)[e]()+t.slice(1)}var Me=Ae.bind(null,"toUpperCase"),je=Ae.bind(null,"toLowerCase");function _e(e){return Fe(e)?Me("null"):"object"==typeof e?function(e){return Ne(e.constructor)?e.constructor.name:null}(e):Object.prototype.toString.call(e).slice(8,-1)}function Te(e,t){void 0===t&&(t=!0);var n=_e(e);return t?je(n):n}function qe(e,t){return typeof t===e}var Ne=qe.bind(null,"function"),Le=qe.bind(null,"string"),Ue=qe.bind(null,"undefined");var Re=qe.bind(null,"boolean");qe.bind(null,"symbol");function Fe(e){return null===e}function Be(e){return"number"===Te(e)&&!isNaN(e)}function Ke(e){return"array"===Te(e)}function ze(e){if(!Qe(e))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qe(e){return e&&("object"==typeof e||null!==e)}function Ve(e,t){if("object"!=typeof t||Fe(t))return!1;if(t instanceof e)return!0;var n=Te(new e(""));if(function(e){return e instanceof Error||Le(e.message)&&e.constructor&&Be(e.constructor.stackTraceLimit)}(t))for(;t;){if(Te(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Ve.bind(null,TypeError),Ve.bind(null,SyntaxError);function Ge(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?function(e,t){return void 0===t&&(t=""),e&&e.nodeName===t.toUpperCase()}(e,t):n}function We(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}We(Ge,"form"),We(Ge,"button"),We(Ge,"input"),We(Ge,"select");function Xe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function He(e){return function(e){for(var t,n=Object.create(null),r=/([^&=]+)=?([^&]*)/g;t=r.exec(e);){var i=Xe(t[1]),o=Xe(t[2]);"[]"===i.substring(i.length-2)?(n[i=i.substring(0,i.length-2)]||(n[i]=[])).push(o):n[i]=""===o||o}for(var a in n){var s=a.split("[");s.length>1&&($e(n,s.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),n[a]),delete n[a])}return n}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return De&&window.location.search.substring(1)}(e))}function $e(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if("__proto__"===o||"constructor"===o)break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Je(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+="-"==r||"4"==r?r:("x"==r?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var Ze="global",Ye="__global__",et=typeof self===Ie&&self.self===self&&self||typeof global===Ie&&global.global===global&&global||void 0;function tt(e){return et[Ye][e]}function nt(e,t){return et[Ye][e]=t}function rt(e){delete et[Ye][e]}function it(e,t,n){var r;try{if(at(e)){var i=window[e];r=i[t].bind(i)}}catch(e){}return r||n}et[Ye]||(et[Ye]={});var ot={};function at(e){if(typeof ot[e]!==Oe)return ot[e];try{var t=window[e];t.setItem(Oe,Oe),t.removeItem(Oe)}catch(t){return ot[e]=!1}return ot[e]=!0}function st(){return st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}var ut="function",ct="undefined",lt="@@redux/"+Math.random().toString(36),dt=function(){return typeof Symbol===ut&&Symbol.observable||"@@observable"}(),ft=" != "+ut;function ht(e,t,n){var r;if(typeof t===ut&&typeof n===ct&&(n=t,t=void 0),typeof n!==ct){if(typeof n!==ut)throw new Error("enhancer"+ft);return n(ht)(e,t)}if(typeof e!==ut)throw new Error("reducer"+ft);var i=e,o=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){return o}function d(e){if(typeof e!==ut)throw new Error("Listener"+ft);var t=!0;return c(),s.push(e),function(){if(t){t=!1,c();var n=s.indexOf(e);s.splice(n,1)}}}function f(e){if(!ze(e))throw new Error("Act != obj");if(typeof e.type===ct)throw new Error("ActType "+ct);if(u)throw new Error("Dispatch in reducer");try{u=!0,o=i(o,e)}finally{u=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:"@@redux/INIT"}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if(typeof e!==ut)throw new Error("next reducer"+ft);i=e,f({type:"@@redux/INIT"})}})[dt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Observer != obj");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[dt]=function(){return this},e},r}function pt(e,t){var n=t&&t.type;return"action "+(n&&n.toString()||"?")+"reducer "+e+" returns "+ct}function mt(){var e=[].slice.call(arguments);return 0===e.length?function(e){return e}:1===e.length?e[0]:e.reduce((function(e,t){return function(){return e(t.apply(void 0,[].slice.call(arguments)))}}))}function vt(){var e=arguments;return function(t){return function(n,r,i){var o,a=t(n,r,i),s=a.dispatch,u={getState:a.getState,dispatch:function(e){return s(e)}};return o=[].slice.call(e).map((function(e){return e(u)})),st({},a,{dispatch:s=mt.apply(void 0,o)(a.dispatch)})}}}var yt="__anon_id",bt="__user_id",gt="__user_traits",wt="userId",xt="anonymousId",Et=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],St=["name","EVENTS","config","loaded"],Ot=Et.reduce((function(e,t){return e[t]=t,e}),{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),It=/^utm_/,Pt=/^an_prop_/,Ct=/^an_trait_/;function kt(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===Ot.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,u=i.initialUser,c=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(yt,a.anonymousId),c||t(bt,a.userId),u.traits&&t(gt,st({},c&&s.traits?s.traits:{},u.traits));var l=Object.keys(i.params);if(l.length){var d=o.an_uid,f=o.an_event,h=l.reduce((function(e,t){if(t.match(It)||t.match(/^(d|g)clid/)){var n=t.replace(It,"");e.campaign["campaign"===n?"name":n]=o[t]}return t.match(Pt)&&(e.props[t.replace(Pt,"")]=o[t]),t.match(Ct)&&(e.traits[t.replace(Ct,"")]=o[t]),e}),{campaign:{},props:{},traits:{}});n.dispatch(st({type:Ot.params,raw:o},h,d?{userId:d}:{})),d&&setTimeout((function(){return e.identify(d,h.traits)}),0),f&&setTimeout((function(){return e.track(f,h.props)}),0),Object.keys(h.campaign).length&&n.dispatch({type:Ot.campaign,campaign:h.campaign})}}return r(i)}}}}function Dt(e){return function(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),n.type===Ot.setItemEnd){if(n.key===yt)return st({},t,{anonymousId:n.value});if(n.key===bt)return st({},t,{userId:n.value})}switch(n.type){case Ot.identify:return Object.assign({},t,{userId:n.userId,traits:st({},t.traits,n.traits)});case Ot.reset:return[bt,yt,gt].forEach((function(t){e.removeItem(t)})),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function At(e){return{userId:e.getItem(bt),anonymousId:e.getItem(yt),traits:e.getItem(gt)}}var Mt=function(e){return"__TEMP__"+e};function jt(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(e){return function(t){return function(o){var a=o.userId,s=o.traits,u=o.options;if(o.type===Ot.reset&&([bt,gt,yt].forEach((function(e){r(e)})),[wt,xt,"traits"].forEach((function(e){rt(Mt(e))}))),o.type===Ot.identify){i(yt)||n(yt,Je());var c=i(bt),l=i(gt)||{};c&&c!==a&&e.dispatch({type:Ot.userIdChanged,old:{userId:c,traits:l},new:{userId:a,traits:s},options:u}),a&&n(bt,a),s&&n(gt,st({},l,s))}return t(o)}}}}var _t={};function Tt(e,t){_t[e]&&Ne(_t[e])&&(_t[e](t),delete _t[e])}function qt(e,t,n){return new Promise((function(r,i){return t()?r(e):n<1?i(st({},e,{queue:!0})):new Promise((function(e){return setTimeout(e,10)})).then((function(o){return qt(e,t,n-10).then(r,i)}))}))}function Nt(e){return{abort:e}}function Lt(e,t,n){var r={},i=t(),o=e.getState(),a=o.plugins,s=o.queue,u=o.user;if(!o.context.offline&&s&&s.actions&&s.actions.length){var c=s.actions.reduce((function(e,t,n){return a[t.plugin].loaded?(e.process.push(t),e.processIndex.push(n)):(e.requeue.push(t),e.requeueIndex.push(n)),e}),{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(c.processIndex&&c.processIndex.length){c.processIndex.forEach((function(t){var o=s.actions[t],c=o.plugin,l=o.payload.type,d=i[c][l];if(d&&Ne(d)){var f,h=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),[wt,xt].reduce((function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n}),e)}(o.payload,u),p=r[h.meta.rid];if(!p&&(f=d({payload:h,config:a[c].config,instance:n,abort:Nt}))&&ze(f)&&f.abort)return void(r[h.meta.rid]=!0);if(!p){var m=l+":"+c;e.dispatch(st({},h,{type:m,_:{called:m,from:"queueDrain"}}))}}}));var l=s.actions.filter((function(e,t){return!~c.processIndex.indexOf(t)}));s.actions=l}}}var Ut=function(e){var t=e.data,n=e.action,r=e.instance,i=e.state,o=e.allPlugins,a=e.allMatches,s=e.store,u=e.EVENTS;try{var c=i.plugins,l=i.context,d=n.type,f=d.match(Rt),h=t.exact.map((function(e){return e.pluginName}));f&&(h=a.during.map((function(e){return e.pluginName})));var p=function(e,t){return function(n,r,i){var o=r.config,a=r.name,s=a+"."+n.type;i&&(s=i.event);var u=n.type.match(Rt)?function(e,t,n,r,i){return function(o,a){var s=r?r.name:e,u=a&&Xt(a)?a:n;if(r&&(!(u=a&&Xt(a)?a:[e]).includes(e)||1!==u.length))throw new Error("Method "+t+" can only abort "+e+" plugin. "+JSON.stringify(u)+" input valid");return st({},i,{abort:{reason:o,plugins:u,caller:t,_:s}})}}(a,s,t,i,n):function(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}(n,s);return{payload:Jt(n),instance:e,config:o||{},abort:u}}}(r,h),m=t.exact.reduce((function(e,t){var n=t.pluginName,r=t.methodName,i=!1;return r.match(/^initialize/)||r.match(/^reset/)||(i=!c[n].loaded),l.offline&&r.match(/^(page|track|identify)/)&&(i=!0),e[""+n]=i,e}),{});return Promise.resolve(t.exact.reduce((function(e,i,a){try{var s=i.pluginName;return Promise.resolve(e).then((function(e){function i(){return Promise.resolve(e)}var a=function(){if(t.namespaced&&t.namespaced[s])return Promise.resolve(t.namespaced[s].reduce((function(e,t,n){try{return Promise.resolve(e).then((function(e){return t.method&&Ne(t.method)?(function(e,t){var n=$t(e);if(n&&n.name===t){var r=$t(n.method);throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use "+n.method+" "+(r?"or "+r.method:"")+" in "+t+" plugin insteadof "+e].join("\n"))}}(t.methodName,t.pluginName),Promise.resolve(t.method({payload:e,instance:r,abort:(n=e,i=s,a=t.pluginName,function(e,t){return st({},n,{abort:{reason:e,plugins:t||[i],caller:d,from:a||i}})}),config:zt(t.pluginName,c,o),plugins:c})).then((function(t){var n=ze(t)?t:{};return Promise.resolve(st({},e,n))}))):e;var n,i,a}))}catch(e){return Promise.reject(e)}}),Promise.resolve(n))).then((function(t){e[s]=t}));e[s]=n}();return a&&a.then?a.then(i):i()}))}catch(e){return Promise.reject(e)}}),Promise.resolve({}))).then((function(e){return Promise.resolve(t.exact.reduce((function(n,i,a){try{var u=t.exact.length===a+1,l=i.pluginName,h=o[l];return Promise.resolve(n).then((function(t){var n=e[l]?e[l]:{};if(f&&(n=t),Gt(n,l))return Kt({data:n,method:d,instance:r,pluginName:l,store:s}),Promise.resolve(t);if(Gt(t,l))return u&&Kt({data:t,method:d,instance:r,store:s}),Promise.resolve(t);if(m.hasOwnProperty(l)&&!0===m[l])return s.dispatch({type:"queue",plugin:l,payload:n,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(t);var i=p(e[l],o[l]);return Promise.resolve(h[d]({abort:i.abort,payload:n,instance:r,config:zt(l,c,o),plugins:c})).then((function(i){var o=ze(i)?i:{},a=st({},t,o),u=e[l];if(Gt(u,l))Kt({data:u,method:d,instance:r,pluginName:l,store:s});else{var c=d+":"+l;(c.match(/:/g)||[]).length<2&&!d.match(Ft)&&!d.match(Bt)&&r.dispatch(st({},f?a:n,{type:c,_:{called:c,from:"submethod"}}))}return Promise.resolve(a)}))}))}catch(e){return Promise.reject(e)}}),Promise.resolve(n))).then((function(e){if(!(d.match(Rt)||d.match(/^registerPlugin/)||d.match(Bt)||d.match(Ft)||d.match(/^params/)||d.match(/^userIdChanged/))){if(u.plugins.includes(d),e._&&e._.originalAction===d)return e;var n=st({},e,{_:{originalAction:e.type,called:e.type,from:"engineEnd"}});Wt(e,t.exact.length)&&!d.match(/End$/)&&(n=st({},n,{type:e.type+"Aborted"})),s.dispatch(n)}return e}))}))}catch(e){return Promise.reject(e)}},Rt=/Start$/,Ft=/^bootstrap/,Bt=/^ready/;function Kt(e){var t=e.pluginName,n=e.method+"Aborted"+(t?":"+t:"");e.store.dispatch(st({},e.data,{type:n,_:{called:n,from:"abort"}}))}function zt(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function Qt(e,t){return t.reduce((function(t,n){return n[e]?t.concat({methodName:e,pluginName:n.name,method:n[e]}):t}),[])}function Vt(e,t){var n=e.replace(Rt,""),r=t?":"+t:"";return[""+e+r,""+n+r,n+"End"+r]}function Gt(e,t){var n=e.abort;return!!n&&(!0===n||Ht(n,t)||n&&Ht(n.plugins,t))}function Wt(e,t){var n=e.abort;if(!n)return!1;if(!0===n||Le(n))return!0;var r=n.plugins;return Xt(n)&&n.length===t||Xt(r)&&r.length===t}function Xt(e){return Array.isArray(e)}function Ht(e,t){return!(!e||!Xt(e))&&e.includes(t)}function $t(e){var t=e.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function Jt(e){return Object.keys(e).reduce((function(t,n){return"type"===n||(t[n]=ze(e[n])?Object.assign({},e[n]):e[n]),t}),{})}function Zt(e,t,n){var r={};return function(i){return function(o){return function(a){try{var s,u=function(e){return s?e:o(d)},c=a.type,l=a.plugins,d=a;if(a.abort)return Promise.resolve(o(a));if(c===Ot.enablePlugin&&i.dispatch({type:Ot.initializeStart,plugins:l,disabled:[],fromEnable:!0,meta:a.meta}),c===Ot.disablePlugin&&setTimeout((function(){return Tt(a.meta.rid,{payload:a})}),0),c===Ot.initializeEnd){var f=t(),h=Object.keys(f),p=h.filter((function(e){return l.includes(e)})).map((function(e){return f[e]})),m=[],v=[],y=a.disabled,b=p.map((function(e){var t=e.loaded,n=e.name,o=e.config;return qt(e,(function(){return t({config:o})}),1e4).then((function(t){return r[n]||(i.dispatch({type:Ot.pluginReadyType(n),name:n,events:Object.keys(e).filter((function(e){return!St.includes(e)}))}),r[n]=!0),m=m.concat(n),e})).catch((function(e){if(e instanceof Error)throw new Error(e);return v=v.concat(e.name),e}))}));Promise.all(b).then((function(e){var t={plugins:m,failed:v,disabled:y};setTimeout((function(){h.length===b.length+y.length&&i.dispatch(st({},{type:Ot.ready},t))}),0)}))}var g=function(){if(c!==Ot.bootstrap)return/^ready:([^:]*)$/.test(c)&&setTimeout((function(){return Lt(i,t,e)}),0),Promise.resolve(function(e,t,n,r,i){try{var o=Ne(t)?t():t,a=e.type,s=a.replace(Rt,"");if(e._&&e._.called)return Promise.resolve(e);var u=n.getState(),c=(f=o,void 0===(h=u.plugins)&&(h={}),void 0===(p=e.options)&&(p={}),Object.keys(f).filter((function(e){var t=p.plugins||{};return Re(t[e])?t[e]:!1!==t.all&&(!h[e]||!1!==h[e].enabled)})).map((function(e){return f[e]})));a===Ot.initializeStart&&e.fromEnable&&(c=Object.keys(u.plugins).filter((function(t){var n=u.plugins[t];return e.plugins.includes(t)&&!n.initialized})).map((function(e){return o[e]})));var l=c.map((function(e){return e.name})),d=function(e,t,n){var r=Vt(e).map((function(e){return Qt(e,t)}));return t.reduce((function(n,r){var i=r.name,o=Vt(e,i).map((function(e){return Qt(e,t)})),a=o[0],s=o[1],u=o[2];return a.length&&(n.beforeNS[i]=a),s.length&&(n.duringNS[i]=s),u.length&&(n.afterNS[i]=u),n}),{before:r[0],beforeNS:{},during:r[1],duringNS:{},after:r[2],afterNS:{}})}(a,c);return Promise.resolve(Ut({action:e,data:{exact:d.before,namespaced:d.beforeNS},state:u,allPlugins:o,allMatches:d,instance:n,store:r,EVENTS:i})).then((function(e){function t(){var t=function(){if(a.match(Rt))return Promise.resolve(Ut({action:st({},c,{type:s+"End"}),data:{exact:d.after,namespaced:d.afterNS},state:u,allPlugins:o,allMatches:d,instance:n,store:r,EVENTS:i})).then((function(e){e.meta&&e.meta.hasCallback&&Tt(e.meta.rid,{payload:e})}))}();return t&&t.then?t.then((function(){return e})):e}if(Wt(e,l.length))return e;var c,f=function(){if(a!==s)return Promise.resolve(Ut({action:st({},e,{type:s}),data:{exact:d.during,namespaced:d.duringNS},state:u,allPlugins:o,allMatches:d,instance:n,store:r,EVENTS:i})).then((function(e){c=e}));c=e}();return f&&f.then?f.then(t):t()}))}catch(e){return Promise.reject(e)}var f,h,p}(a,t,e,i,n)).then((function(e){return s=1,o(e)}))}();return Promise.resolve(g&&g.then?g.then(u):u(g))}catch(e){return Promise.reject(e)}}}}}function Yt(e){return function(t){return function(t){return function(n){var r=n.type,i=n.key,o=n.value,a=n.options;if(r===Ot.setItem||r===Ot.removeItem){if(n.abort)return t(n);r===Ot.setItem?e.setItem(i,o,a):e.removeItem(i,a)}return t(n)}}}}var en=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(t,n){e[n]=e[n].concat(t)},this.removeMiddleware=function(t,n){var r=e[n].findIndex((function(e){return e===t}));-1!==r&&(e[n]=[].concat(e[n].slice(0,r),e[n].slice(r+1)))},this.dynamicMiddlewares=function(t){return function(n){return function(r){return function(i){var o={getState:n.getState,dispatch:function(e){return n.dispatch(e)}},a=e[t].map((function(e){return e(o)}));return mt.apply(void 0,a)(r)(i)}}}}};function tn(e){return function(t,n){void 0===t&&(t={});var r={};if("initialize:aborted"===n.type)return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=nn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled,s=o.config;return r[i]={enabled:a,initialized:!!a&&Boolean(!o.initialize),loaded:!!a&&Boolean(o.loaded({config:s})),config:s},st({},t,r)}if(/^initialize:([^:]*)$/.test(n.type)){var u=nn(n.type,Ot.initialize),c=e()[u];return c&&u?(r[u]=st({},t[u],{initialized:!0,loaded:Boolean(c.loaded({config:c.config}))}),st({},t,r)):t}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=st({},t[n.name],{loaded:!0}),st({},t,r);switch(n.type){case Ot.disablePlugin:return st({},t,rn(n.plugins,!1,t));case Ot.enablePlugin:return st({},t,rn(n.plugins,!0,t));default:return t}}}function nn(e,t){return e.substring(t.length+1,e.length)}function rn(e,t,n){return e.reduce((function(e,r){return e[r]=st({},n[r],{enabled:t}),e}),n)}function on(e){try{return JSON.parse(JSON.stringify(e))}catch(e){}return e}var an={last:{},history:[]};function sn(e,t){void 0===e&&(e=an);var n=t.options,r=t.meta;if(t.type===Ot.track){var i=on(st({event:t.event,properties:t.properties},Object.keys(n).length&&{options:n},{meta:r}));return st({},e,{last:i,history:e.history.concat(i)})}return e}var un={actions:[]};function cn(e,t){void 0===e&&(e=un);var n=t.payload;switch(t.type){case"queue":var r;return r=n&&n.type&&n.type===Ot.identify?[t].concat(e.actions):e.actions.concat(t),st({},e,{actions:r});case"dequeue":return[];default:return e}}var ln=/#.*$/;function dn(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(t&&t[3]?t[3].split("?")[0].replace(ln,""):"")}var fn,hn,pn,mn,vn=function(e){if(void 0===e&&(e={}),!De)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,u=o.hash,c=o.search,l=function(e){var t=function(){if(De)for(var e,t=document.getElementsByTagName("link"),n=0;e=t[n];n++)if("canonical"===e.getAttribute("rel"))return e.getAttribute("href")}();return t?t.match(/\?/)?t:t+e:window.location.href.replace(ln,"")}(c),d={title:n,url:l,path:dn(l),hash:u,search:c,width:a,height:s};return r&&""!==r&&(d.referrer=r),st({},d,e)},yn={last:{},history:[]};function bn(e,t){void 0===e&&(e=yn);var n=t.options;if(t.type===Ot.page){var r=on(st({properties:t.properties,meta:t.meta},Object.keys(n).length&&{options:n}));return st({},e,{last:r,history:e.history.concat(r)})}return e}fn=function(){if(!De)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}(),hn=De?document.referrer:null,pn=function(){if(De){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}(),mn=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}();var gn={initialized:!1,sessionId:Je(),app:null,version:null,debug:!1,offline:!!De&&!navigator.onLine,os:{name:fn},userAgent:De?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.7"},timezone:mn,locale:pn,campaign:{},referrer:hn};function wn(e,t){void 0===e&&(e=gn);var n=e.initialized,r=t.campaign;switch(t.type){case Ot.campaign:return st({},e,{campaign:r});case Ot.offline:return st({},e,{offline:!0});case Ot.online:return st({},e,{offline:!1});default:return n?e:st({},gn,e,{initialized:!0})}}var xn=["plugins","reducers","storage"];function En(e,t,n){if(De){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach((function(e){r(e,t)}))}}function Sn(e){var t=En.bind(null,"online offline",(function(t){return Promise.resolve(!navigator.onLine).then(e)}));return t(!0),function(e){return t(!1)}}function On(){return nt("analytics",[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch;return Object.assign(i,{dispatch:function(e){return et[Ye].analytics.push(e.action||e),o(e)}})}}}function In(e){return function(){return mt(mt.apply(null,arguments),On())}}function Pn(e){return e?Ke(e)?e:[e]:[]}function Cn(e,t,n){void 0===e&&(e={});var r,i,o=Je();return t&&(_t[o]=(r=t,i=function(e){for(var t,n=e||Array.prototype.slice.call(arguments),r=0;r<n.length;r++)if(Ne(n[r])){t=n[r];break}return t}(n),function(e){i&&i(e),r(e)})),st({},e,{rid:o,ts:(new Date).getTime()},t?{hasCallback:!0}:{})}function kn(e){void 0===e&&(e={});var t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce((function(e,t){if(Ne(t))return e.middlewares=e.middlewares.concat(t),e;if(t.NAMESPACE&&(t.name=t.NAMESPACE),!t.name)throw new Error("https://lytics.dev/errors/1");t.config||(t.config={});var n=t.EVENTS?Object.keys(t.EVENTS).map((function(e){return t.EVENTS[e]})):[];e.pluginEnabled[t.name]=!(!1===t.enabled||!1===t.config.enabled),delete t.enabled,t.methods&&(e.methods[t.name]=Object.keys(t.methods).reduce((function(e,n){var r;return e[n]=(r=t.methods[n],function(){for(var e=Array.prototype.slice.call(arguments),t=new Array(r.length),n=0;n<e.length;n++)t[n]=e[n];return t[t.length]=x,r.apply({instance:x},t)}),e}),{}),delete t.methods);var r=Object.keys(t).concat(n),i=new Set(e.events.concat(r));if(e.events=Array.from(i),e.pluginsArray=e.pluginsArray.concat(t),e.plugins[t.name])throw new Error(t.name+"AlreadyLoaded");return e.plugins[t.name]=t,e.plugins[t.name].loaded||(e.plugins[t.name].loaded=function(){return!0}),e}),{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:tt,setItem:nt,removeItem:rt},o=function(e){return function(t,n,r){return n.getState("user")[t]||(r&&ze(r)&&r[t]?r[t]:At(e)[t]||tt(Mt(t))||null)}}(i),a=r.plugins,s=r.events.filter((function(e){return!St.includes(e)})).sort(),u=new Set(s.concat(Et).filter((function(e){return!St.includes(e)}))),c=Array.from(u).sort(),l=function(){return a},d=new en,f=d.addMiddleware,h=d.removeMiddleware,p=d.dynamicMiddlewares,m=function(){throw new Error("Abort disabled inListener")},v=He(),y=At(i),b=st({},y,n,v.an_uid?{userId:v.an_uid}:{},v.an_aid?{anonymousId:v.an_aid}:{});b.anonymousId||(b.anonymousId=Je());var g=st({enable:function(e,t){return new Promise((function(n){M.dispatch({type:Ot.enablePlugin,plugins:Pn(e),_:{originalAction:Ot.enablePlugin}},n,[t])}))},disable:function(e,t){return new Promise((function(n){M.dispatch({type:Ot.disablePlugin,plugins:Pn(e),_:{originalAction:Ot.disablePlugin}},n,[t])}))}},r.methods),w=!1,x={identify:function(e,t,n,r){try{var i=Le(e)?e:null,a=ze(e)?e:t,s=n||{},u=x.user();nt(Mt(wt),i);var c=i||a.userId||o(wt,x,a);return Promise.resolve(new Promise((function(e){M.dispatch(st({type:Ot.identifyStart,userId:c,traits:a||{},options:s,anonymousId:u.anonymousId},u.id&&u.id!==i&&{previousId:u.id}),e,[t,n,r])})))}catch(e){return Promise.reject(e)}},track:function(e,t,n,r){try{var i=ze(e)?e.event:e;if(!i||!Le(i))throw new Error("EventMissing");var a=ze(e)?e:t||{},s=ze(n)?n:{};return Promise.resolve(new Promise((function(e){M.dispatch({type:Ot.trackStart,event:i,properties:a,options:s,userId:o(wt,x,t),anonymousId:o(xt,x,t)},e,[t,n,r])})))}catch(e){return Promise.reject(e)}},page:function(e,t,n){try{var r=ze(e)?e:{},i=ze(t)?t:{};return Promise.resolve(new Promise((function(a){M.dispatch({type:Ot.pageStart,properties:vn(r),options:i,userId:o(wt,x,r),anonymousId:o(xt,x,r)},a,[e,t,n])})))}catch(e){return Promise.reject(e)}},user:function(e){if(e===wt||"id"===e)return o(wt,x);if(e===xt||"anonId"===e)return o(xt,x);var t=x.getState("user");return e?Se()(t,e):t},reset:function(e){return new Promise((function(t){M.dispatch({type:Ot.resetStart},t,e)}))},ready:function(e){return w&&e({plugins:g,instance:x}),x.on(Ot.ready,(function(t){e(t),w=!0}))},on:function(e,t){if(!e||!Ne(t))return!1;if(e===Ot.bootstrap)throw new Error(".on disabled for "+e);var n=/Start$|Start:/;if("*"===e){var r=function(e){return function(e){return function(r){return r.type.match(n)&&t({payload:r,instance:x,plugins:a}),e(r)}}},i=function(e){return function(e){return function(r){return r.type.match(n)||t({payload:r,instance:x,plugins:a}),e(r)}}};return f(r,Dn),f(i,An),function(){h(r,Dn),h(i,An)}}var o=e.match(n)?Dn:An,s=function(n){return function(n){return function(r){return r.type===e&&t({payload:r,instance:x,plugins:a,abort:m}),n(r)}}};return f(s,o),function(){return h(s,o)}},once:function(e,t){if(!e||!Ne(t))return!1;if(e===Ot.bootstrap)throw new Error(".once disabled for "+e);var n=x.on(e,(function(e){t({payload:e.payload,instance:x,plugins:a,abort:m}),n()}));return n},getState:function(e){var t=M.getState();return e?Se()(t,e):Object.assign({},t)},dispatch:function(e){var t=Le(e)?{type:e}:e;if(Et.includes(t.type))throw new Error("reserved action "+t.type);var n=st({},t,{_:st({originalAction:t.type},e._||{})});M.dispatch(n)},enablePlugin:g.enable,disablePlugin:g.disable,plugins:g,storage:{getItem:i.getItem,setItem:function(e,t,n){M.dispatch({type:Ot.setItemStart,key:e,value:t,options:n})},removeItem:function(e,t){M.dispatch({type:Ot.removeItemStart,key:e,options:t})}},setAnonymousId:function(e,t){x.storage.setItem(yt,e,t)},events:{core:Et,plugins:s}},E=r.middlewares.concat([function(e){return function(e){return function(t){return t.meta||(t.meta=Cn()),e(t)}}},p(Dn),Zt(x,l,{all:c,plugins:s}),Yt(i),kt(x),jt(x),p(An)]),S={context:wn,user:Dt(i),page:bn,track:sn,plugins:tn(l),queue:cn},O=mt,I=mt;if(De&&e.debug){var P=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;P&&(O=P({trace:!0,traceLimit:25})),I=function(){return 0===arguments.length?On():ze(typeof arguments[0])?In():In().apply(null,arguments)}}var C,k=function(e){return Object.keys(e).reduce((function(t,n){return xn.includes(n)||(t[n]=e[n]),t}),{})}(e),D=r.pluginsArray.reduce((function(e,t){var n=t.name,i=t.config,o=t.loaded,a=r.pluginEnabled[n];return e[n]={enabled:a,initialized:!!a&&Boolean(!t.initialize),loaded:Boolean(o({config:i})),config:i},e}),{}),A={context:k,user:b,plugins:D},M=ht(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]===ut&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(typeof n(void 0,{type:"@@redux/INIT"})===ct||typeof n(void 0,{type:lt})===ct)throw new Error("reducer "+t+" "+ct)}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var u=a[s],c=e[u],l=(0,n[u])(c,t);if(typeof l===ct){var d=pt(u,t);throw new Error(d)}i[u]=l,r=r||l!==c}return r?i:e}}(st({},S,t)),A,I(O(vt.apply(void 0,E))));M.dispatch=(C=M.dispatch,function(e,t,n){var r=st({},e,{meta:Cn(e.meta,t,Pn(n))});return C.apply(null,[r])});var j=Object.keys(a);M.dispatch({type:Ot.bootstrap,plugins:j,config:k,params:v,user:b,initialUser:n,persistedUser:y});var _=j.filter((function(e){return r.pluginEnabled[e]})),T=j.filter((function(e){return!r.pluginEnabled[e]}));return M.dispatch({type:Ot.registerPlugins,plugins:j,enabled:r.pluginEnabled}),r.pluginsArray.map((function(e,t){var n=e.bootstrap,i=e.config,o=e.name;n&&Ne(n)&&n({instance:x,config:i,payload:e}),M.dispatch({type:Ot.registerPluginType(o),name:o,enabled:r.pluginEnabled[o],plugin:e}),r.pluginsArray.length===t+1&&M.dispatch({type:Ot.initializeStart,plugins:_,disabled:T})})),Sn((function(e){M.dispatch({type:e?Ot.offline:Ot.online})})),function(e,t,n){setInterval((function(){return Lt(e,t,n)}),3e3)}(M,l,x),x}var Dn="before",An="after",Mn="cookie",jn=Nn(),_n=Ln,Tn=Ln;function qn(e){return jn?Ln(e,"",-1):rt(e)}function Nn(){if(void 0!==jn)return jn;var e="cookiecookie";try{Ln(e,e),jn=-1!==document.cookie.indexOf(e),qn(e)}catch(e){jn=!1}return jn}function Ln(e,t,n,r,i,o){if("undefined"!=typeof window){var a=arguments.length>1;return!1===jn&&(a?nt(e,t):tt(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var Un="localStorage",Rn=at.bind(null,"localStorage"),Fn=(it("localStorage","getItem",tt),it("localStorage","setItem",nt),it("localStorage","removeItem",rt),"sessionStorage"),Bn=at.bind(null,"sessionStorage");it("sessionStorage","getItem",tt),it("sessionStorage","setItem",nt),it("sessionStorage","removeItem",rt);function Kn(e){var t=e;try{if("true"===(t=JSON.parse(e)))return!0;if("false"===t)return!1;if(ze(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch(e){}if(null!==t&&""!==t)return t}var zn=Rn(),Qn=Bn(),Vn=Nn();function Gn(e,t){if(e){var n=Wn(t),r=!Jn(n),i=Xn(n)?Kn(localStorage.getItem(e)):void 0;if(r&&!Ue(i))return i;var o=Hn(n)?Kn(_n(e)):void 0;if(r&&o)return o;var a=$n(n)?Kn(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=tt(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function Wn(e){return e?Le(e)?e:e.storage:Pe}function Xn(e){return zn&&Zn(e,Un)}function Hn(e){return Vn&&Zn(e,Mn)}function $n(e){return Qn&&Zn(e,Fn)}function Jn(e){return e===Ce||"all"===e}function Zn(e,t){return e===Pe||e===t||Jn(e)}function Yn(e,t,n){return{location:e,current:t,previous:n}}var er={setItem:function(e,t,n){if(e&&!Ue(t)){var r={},i=Wn(n),o=JSON.stringify(t),a=!Jn(i);return Xn(i)&&(r[Un]=Yn(Un,t,Kn(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[Un]:Hn(i)&&(r[Mn]=Yn(Mn,t,Kn(_n(e))),Tn(e,o),a)?r[Mn]:$n(i)&&(r[Fn]=Yn(Fn,t,Kn(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[Fn]:(r[Ze]=Yn(Ze,t,tt(e)),nt(e,t),a?r[Ze]:r)}},getItem:Gn,removeItem:function(e,t){if(e){var n=Wn(t),r=Gn(e,Ce),i={};return!Ue(r.localStorage)&&Xn(n)&&(localStorage.removeItem(e),i[Un]=r.localStorage),!Ue(r.cookie)&&Hn(n)&&(qn(e),i[Mn]=r.cookie),!Ue(r.sessionStorage)&&$n(n)&&(sessionStorage.removeItem(e),i[Fn]=r.sessionStorage),!Ue(r.global)&&Zn(n,Ze)&&(rt(e),i[Ze]=r.global),i}}};function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ir={name:"google-analytics",track:e=>{e.payload.properties.MetaData.DispatchedBy="SIN-GoogleAnalyticsPlugin",void 0!==window.dataLayer&&window.dataLayer.push(Object.assign({event:e.payload.properties.Name},e.payload.properties))}};let or=function(e){return e[e.Accepted=202]="Accepted",e[e.BadRequest=400]="BadRequest",e[e.Conflict=409]="Conflict",e[e.Created=201]="Created",e[e.InternalServerError=500]="InternalServerError",e[e.NoContent=204]="NoContent",e[e.NotFound=404]="NotFound",e[e.NotImplemented=501]="NotImplemented",e[e.OK=200]="OK",e[e.ResetContent=205]="ResetContent",e[e.Unauthorized=401]="Unauthorized",e}({});const ar="undefined"==typeof window||"Deno"in window;function sr(){}function ur(e,t,n){return wr(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function cr(e,t,n){return wr(e)?[{...t,queryKey:e},n]:[e||{},t]}function lr(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(wr(a))if(r){if(t.queryHash!==fr(a,t.options))return!1}else if(!pr(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function dr(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(wr(o)){if(!t.options.mutationKey)return!1;if(n){if(hr(t.options.mutationKey)!==hr(o))return!1}else if(!pr(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function fr(e,t){return((null==t?void 0:t.queryKeyHashFn)||hr)(e)}function hr(e){return JSON.stringify(e,((e,t)=>br(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function pr(e,t){return mr(e,t)}function mr(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!mr(e[n],t[n]))))}function vr(e,t){if(e===t)return e;const n=yr(e)&&yr(t);if(n||br(e)&&br(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let u=0;u<o;u++){const r=n?u:i[u];a[r]=vr(e[r],t[r]),a[r]===e[r]&&s++}return r===o&&s===r?e:a}return t}function yr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function br(e){if(!gr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!gr(n)&&!!n.hasOwnProperty("isPrototypeOf")}function gr(e){return"[object Object]"===Object.prototype.toString.call(e)}function wr(e){return Array.isArray(e)}function xr(e){return new Promise((t=>{setTimeout(t,e)}))}function Er(e){xr(0).then(e)}function Sr(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?vr(e,t):t}const Or=console;const Ir=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):Er((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&Er((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Pr=new class FocusManager extends Subscribable{constructor(){super(),this.setup=e=>{if(!ar&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Cr=["online","offline"];const kr=new class OnlineManager extends Subscribable{constructor(){super(),this.setup=e=>{if(!ar&&window.addEventListener){const t=()=>e();return Cr.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{Cr.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Dr(e){return Math.min(1e3*2**e,3e4)}function Ar(e){return"online"!==(null!=e?e:"online")||kr.isOnline()}class CancelledError{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Mr(e){return e instanceof CancelledError}function jr(e){let t,n,r,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),u=()=>!Pr.isFocused()||"always"!==e.networkMode&&!kr.isOnline(),c=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},l=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=a||!u();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),f=()=>{if(a)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:Dr,h="function"==typeof c?c(o,t):c,p=!0===s||"number"==typeof s&&o<s||"function"==typeof s&&s(o,t);!i&&p?(o++,null==e.onFail||e.onFail(o,t),xr(h).then((()=>{if(u())return d()})).then((()=>{i?l(t):f()}))):l(t)}))};return Ar(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(l(new CancelledError(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:ar?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Query extends Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Or,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Sr(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(sr).catch(sr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(a);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=u.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=u.fetchOptions)?void 0:c.meta});const l=e=>{var t,n,r,i;(Mr(e)&&e.silent||this.dispatch({type:"error",error:e}),Mr(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=jr({fn:u.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(this.queryHash+" data is undefined"))},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Ar(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Mr(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ir.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class QueryCache extends Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:fr(i,t);let a=this.get(o);return a||(a=new Query({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Ir.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=cr(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>lr(n,e)))}findAll(e,t){const[n]=cr(e,t);return Object.keys(n).length>0?this.queries.filter((e=>lr(n,e))):this.queries}notify(e){Ir.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){Ir.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Ir.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Mutation extends Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Or,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=jr({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,a,s,u,c;if(!t){var l,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(l=(d=this.mutationCache.config).onMutate)?void 0:l.call(d,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(u=(c=this.options).onSettled)?void 0:u.call(c,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(E){try{var p,m,v,y,b,g,w,x;throw await(null==(p=(m=this.mutationCache.config).onError)?void 0:p.call(m,E,this.state.variables,this.state.context,this)),await(null==(v=(y=this.options).onError)?void 0:v.call(y,E,this.state.variables,this.state.context)),await(null==(b=(g=this.mutationCache.config).onSettled)?void 0:b.call(g,void 0,E,this.state.variables,this.state.context,this)),await(null==(w=(x=this.options).onSettled)?void 0:w.call(x,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ar(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),Ir.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class MutationCache extends Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Ir.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>dr(e,t)))}findAll(e){return this.mutations.filter((t=>dr(e,t)))}notify(e){Ir.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return Ir.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(sr)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function _r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==u?void 0:u.pageParam,l="forward"===(null==u?void 0:u.direction),d="backward"===(null==u?void 0:u.direction),f=(null==(o=e.state.data)?void 0:o.pages)||[],h=(null==(a=e.state.data)?void 0:a.pageParams)||[];let p=h,m=!1;const v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),b=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=v(o);return Promise.resolve(s).then((e=>y(t,r,e,i)))};let g;if(f.length)if(l){const t=void 0!==c,n=t?c:Tr(e.options,f);g=b(f,t,n)}else if(d){const t=void 0!==c,n=t?c:qr(e.options,f);g=b(f,t,n,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;g=!s||!f[0]||s(f[0],0,f)?b([],t,h[0]):Promise.resolve(y([],h[0],f[0]));for(let n=1;n<f.length;n++)g=g.then((r=>{if(!s||!f[n]||s(f[n],n,f)){const i=t?h[n]:Tr(e.options,r);return b(r,t,i)}return Promise.resolve(y(r,h[n],f[n]))}))}else g=b([]);return g.then((e=>({pages:e,pageParams:p})))}}}}function Tr(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function qr(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const Nr=new class QueryClient{constructor(e={}){this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.logger=e.logger||Or,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Pr.subscribe((()=>{Pr.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=kr.subscribe((()=>{kr.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=cr(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ur(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===i)return;const o=ur(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ir.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=cr(e,t),r=this.queryCache;Ir.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,i]=cr(e,t,n),o=this.queryCache,a={type:"active",...r};return Ir.batch((()=>(o.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(a,i))))}cancelQueries(e,t,n){const[r,i={}]=cr(e,t,n);void 0===i.revert&&(i.revert=!0);const o=Ir.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(o).then(sr).catch(sr)}invalidateQueries(e,t,n){const[r,i]=cr(e,t,n);return Ir.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[r,i]=cr(e,t,n),o=Ir.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let a=Promise.all(o).then(sr);return null!=i&&i.throwOnError||(a=a.catch(sr)),a}fetchQuery(e,t,n){const r=ur(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(sr).catch(sr)}fetchInfiniteQuery(e,t,n){const r=ur(e,t,n);return r.behavior=_r(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(sr).catch(sr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>hr(e)===hr(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>pr(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>hr(e)===hr(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>pr(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=fr(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}};const Lr=e=>/^application\/json/i.test(e),Ur=async e=>{const t=e.headers.get("Content-Type");try{return t?Lr(t)?await e.json():await e.text():void 0}catch(bn){return}},Rr=async({body:e,method:t,options:n,url:r})=>{var i;const o=(null==n||null==(i=n.headers)?void 0:i["Content-Type"])||"application/json",a=await fetch(r,Object.assign({},n,e?Lr(o)?{body:JSON.stringify(e)}:{body:e}:{},{headers:Object.assign({},e?{"Content-Type":o}:{},null==n?void 0:n.headers),method:t}));return await(async e=>({body:await Ur(e),status:e.status}))(a)},Fr={delete:async(e,t)=>await Rr({body:void 0,method:"DELETE",options:t,url:e}),get:async(e,t)=>await Rr({body:void 0,method:"GET",options:t,url:e}),patch:async(e,t,n)=>await Rr({body:t,method:"PATCH",options:n,url:e}),post:async(e,t,n)=>await Rr({body:t,method:"POST",options:n,url:e}),put:async(e,t,n)=>await Rr({body:t,method:"PUT",options:n,url:e})};const Br=new class EIPApiKeyAuthClient{async getApiKey(){const e="EzIivuKZEe4uwdL336BSub52wZrAGncd";return e}},Kr=new class EIPClient{constructor({apiKeyAuthClient:e,baseUrl:t={NX_APP_ENV:"production",NX_ASURION_WIDGET_ORIGIN:"https://app.si-wid-app-1222.npr.service-initiation.asurion.com",NX_VERIZON_WIDGET_ORIGIN:"https://app.si-wid-vzw-1222.npr.service-initiation.asurion.com",NX_GOOGLE_WIDGET_ORIGIN:"https://app.si-wid-goo-1222.npr.service-initiation.asurion.com",NX_EIP_URL:"https://ingestion.events.asurion.com",NX_EIP_API_KEY:"EzIivuKZEe4uwdL336BSub52wZrAGncd",NX_WIDGET_LOADER_URL:"",NX_CLI_SET:"true",NX_LOAD_DOT_ENV_FILES:"true",NX_WORKSPACE_ROOT:"/home/runner/_work/service-initiation/service-initiation",NX_TERMINAL_OUTPUT_PATH:"/home/runner/_work/service-initiation/service-initiation/.nx/cache/terminalOutputs/14376216470284632460",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"widget-loader",NX_TASK_TARGET_TARGET:"build",NX_TASK_TARGET_CONFIGURATION:"production",NX_TASK_HASH:"14376216470284632460",NX_BUILD_LIBS_FROM_SOURCE:"true",NX_BUILD_TARGET:"widget-loader:build:production"}.EIP_URL,httpClient:n}){this.apiKeyAuthClient=void 0,this.baseUrl=void 0,this.httpClient=void 0,this.baseUrl=t,this.httpClient=n,this.apiKeyAuthClient=e}async getSharedHeaders(){return{Accept:"application/json","Content-Type":"application/json","X-Api-Key":await this.apiKeyAuthClient.getApiKey()}}async createAnalyticEvents({events:e}){const t=(({baseUrl:e,path:t,params:n})=>`${e}${t}${n?`?${Object.entries(n).filter((([,e])=>void 0!==e)).map((([e,t])=>`${e}=${t}`)).join("&")}`:""}`)({baseUrl:this.baseUrl,params:{eventType:"analytics"},path:"/stream"});return await this.httpClient.post(t,e,{headers:await this.getSharedHeaders()})}}({apiKeyAuthClient:Br,baseUrl:"https://ingestion.events.asurion.com",httpClient:Fr}),zr=new class BufferedEmitter{constructor({action:e,emitInterval:t,maxItems:n}){this.action=void 0,this.buffer=void 0,this.intervalTimeoutId=void 0,this.emitInterval=void 0,this.maxItems=void 0,this.buffer=[],this.emitInterval=t||300,this.maxItems=n||10,this.action=e,this.flush(this.buffer)}async flush(e=[]){this.intervalTimeoutId&&clearTimeout(this.intervalTimeoutId),this.intervalTimeoutId=setTimeout((()=>{this.flush(this.buffer.splice(0,this.maxItems))}),this.emitInterval),e.length&&await this.action(e)}add(e){this.buffer.push(e),this.buffer.length>=this.maxItems&&this.cleanup()}async cleanup(){const e=this.buffer.splice(0,this.maxItems);await this.flush(e)}}({action:e=>{Nr.fetchQuery({queryFn:async()=>{const t=await Kr.createAnalyticEvents({events:e});if(t.status!==or.OK)throw new Error("Failed to create analytics event");return t},queryKey:["eip-create-analytics-event",e],retry:3})},emitInterval:2e3,maxItems:10}),Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return kn(rr(rr({},{storage:er}),e))}({app:"widget-loader",plugins:[ir,{name:"eip",track:e=>{e.payload.properties.MetaData.DispatchedBy="SIN-EIPPlugin",zr.add(e.payload.properties)}}]}),Vr=(0,y.createRootDispatcher)((e=>{Qr.track(e.Name,e)})).extend((Hr="widget-loader",s({Scopes:[Hr]}))).extend(d({HostOrigin:window.location.origin,HostPath:window.location.pathname})).extend((Xr={SessionId:J.SessionId,UserBrowserId:J.Id},l(Xr,"identities")?s({Identities:Xr}):u)).extend((Gr=!1,s({MetaData:(Wr={},Wr["IsTest"]=Gr,Wr)})));var Gr,Wr,Xr,Hr;const $r=e=>(({allowedTargetOrigins:e,originWindow:t=window,targetOrigin:n="*",targetWindow:r})=>{const i={},o=t=>{if(e&&!e.includes(t.origin))return;const n=t.data;(i[n.type]||[]).forEach((e=>e(n.payload)))};return t.addEventListener("message",o),{addListener:(e,t)=>{i[e]=[...i[e]||[],t]},destroy:()=>{t.removeEventListener("message",o)},removeListener:(e,t)=>{i[e]=(i[e]||[]).filter((e=>e!==t))},sendMessage:e=>{null==r||r.postMessage(e,n)}}})(e),Jr={border:"none",bottom:"0",display:"none",height:"92px",maxHeight:"100%",maxWidth:"100%",position:"fixed",right:"0",width:"100%","z-index":99999};(e=>{var t,n,r;const i=null==(t=document.currentScript)||null==(t=t.attributes.getNamedItem("id"))?void 0:t.value;if(!i)throw new Error("Widget instance name is not defined.");if(!window[i])throw new Error("Widget instance is not defined.");const o=null!=(n=null==(r=window[i])?void 0:r.q)?n:[];for(let a=0;a<o.length;a++){const[t,...n]=o[a];e.execute(t,...n)}window[i]=(t,...n)=>e.execute(t,...n)})(new class SIWidget extends Widget{constructor(...e){super(...e),this.getWidgetOriginByVariant=e=>{switch(e){case h.Verizon:return"https://app.si-wid-vzw-1222.npr.service-initiation.asurion.com";case h.Asurion:return"https://app.si-wid-app-1222.npr.service-initiation.asurion.com";case h.Google:return"https://app.si-wid-goo-1222.npr.service-initiation.asurion.com";default:throw new Error(`Variant(${e}) is not currently supported`)}},this.iframeConnection=void 0,this.iframeElement=void 0,this.isDesktopMediaQuery=window.matchMedia(`(min-width: ${f.MD}px)`),this.onDesktopMediaQueryChange=()=>{if(this.iframeElement){this.iframeElement.style.right=this.isDesktopMediaQuery.matches?"0px":Jr.right,this.iframeElement.style.maxWidth=this.isDesktopMediaQuery.matches?"415px":Jr.maxWidth;const e="687px"===this.iframeElement.style.height||"100%"===this.iframeElement.style.height;this.isDesktopMediaQuery.matches?this.iframeElement.style.height=e?"687px":"92px":this.iframeElement.style.height=e?"100%":"92px"}},this.parentElement=void 0,this.actions={[p.Collapse]:()=>{var e;null==(e=this.iframeConnection)||e.sendMessage({type:"collapse-widget"})},[p.Destroy]:()=>{var e;this.iframeElement&&(this.isDesktopMediaQuery.removeEventListener("change",this.onDesktopMediaQueryChange),null==(e=this.iframeConnection)||e.destroy(),this.parentElement&&this.parentElement.removeChild(this.iframeElement),this.iframeConnection=void 0,this.iframeElement=void 0,this.parentElement=void 0)},[p.Expand]:()=>{var e;null==(e=this.iframeConnection)||e.sendMessage({type:"expand-widget"})},[p.Init]:({parentElement:e=window.document.body,variant:t})=>{this.actions[p.Destroy](),this.parentElement=e;const n=this.getWidgetOriginByVariant(t),r=document.createElement("iframe");r.src=n,Object.assign(r.style,Jr),this.isDesktopMediaQuery.matches&&(r.style.right="0px",r.style.maxWidth="415px",r.style.height="92px"),this.isDesktopMediaQuery.addEventListener("change",this.onDesktopMediaQueryChange);const i=()=>{r.style.display="block",this.iframeConnection=$r({allowedTargetOrigins:[n],targetOrigin:n,targetWindow:r.contentWindow}),this.iframeConnection.addListener("expand-iframe",(()=>{var e;r.style.height=this.isDesktopMediaQuery.matches?"687px":"100%",null==(e=this.iframeConnection)||e.sendMessage({type:"iframe-expanded"})})),this.iframeConnection.addListener("collapse-iframe",(()=>{var e;r.style.height="92px",null==(e=this.iframeConnection)||e.sendMessage({type:"iframe-collapsed"})})),this.iframeConnection.addListener("analytic",(e=>{Vr.extend(d({WidgetOrigin:n,WidgetVariant:t})).dispatch(null==e?void 0:e.Name,e)})),r.removeEventListener("load",i)};r.addEventListener("load",i),this.iframeElement=r,e.appendChild(r)}}}})})()})();