var sE=Object.defineProperty,lE=Object.defineProperties,cE=Object.getOwnPropertyDescriptors,gv=Object.getOwnPropertySymbols,uE=Object.prototype.hasOwnProperty,dE=Object.prototype.propertyIsEnumerable,fv=($e,j,i)=>j in $e?sE($e,j,{enumerable:!0,configurable:!0,writable:!0,value:i}):$e[j]=i,co=($e,j)=>{for(var i in j||(j={}))uE.call(j,i)&&fv($e,i,j[i]);if(gv)for(var i of gv(j))dE.call(j,i)&&fv($e,i,j[i]);return $e},zo=($e,j)=>lE($e,cE(j));(self.webpackChunktytapp=self.webpackChunktytapp||[]).push([[179],{75545:($e,j,i)=>{"use strict";i.d(j,{ZT:()=>e,gn:()=>o,mG:()=>u,pi:()=>l,w6:()=>t});var n=function(K,w){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,R){I.__proto__=R}||function(I,R){for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&(I[G]=R[G])})(K,w)};function e(K,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function I(){this.constructor=K}n(K,w),K.prototype=null===w?Object.create(w):(I.prototype=w.prototype,new I)}var l=function(){return l=Object.assign||function(w){for(var I,R=1,G=arguments.length;R=0;re--)(Z=K[re])&&(H=(G<3?Z(H):G>3?Z(w,I,H):Z(w,I))||H);return G>3&&H&&Object.defineProperty(w,I,H),H}function t(K,w){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(K,w)}function u(K,w,I,R){return new(I||(I=Promise))(function(H,Z){function re(Ke){try{pe(R.next(Ke))}catch(rt){Z(rt)}}function _e(Ke){try{pe(R.throw(Ke))}catch(rt){Z(rt)}}function pe(Ke){Ke.done?H(Ke.value):function G(H){return H instanceof I?H:new I(function(Z){Z(H)})}(Ke.value).then(re,_e)}pe((R=R.apply(K,w||[])).next())})}Object.create;Object.create},61057:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.CDNProvider=void 0;var i=function n(){};j.CDNProvider=i},28721:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},77976:($e,j)=>{"use strict";var n;Object.defineProperty(j,"__esModule",{value:!0}),j.CommentsOrder=void 0,(n=j.CommentsOrder||(j.CommentsOrder={})).NEWEST="newest",n.OLDEST="oldest",n.LIKES="likes"},62133:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},22297:function($e,j,i){"use strict";var r,n=this&&this.__extends||(r=function(t,u){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(d[p]=c[p])})(t,u)},function(t,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=t}r(t,u),t.prototype=null===u?Object.create(u):(d.prototype=u.prototype,new d)}),e=this&&this.__awaiter||function(r,t,u,d){return new(u||(u=Promise))(function(p,m){function C(g){try{f(d.next(g))}catch(y){m(y)}}function v(g){try{f(d.throw(g))}catch(y){m(y)}}function f(g){g.done?p(g.value):function c(p){return p instanceof u?p:new u(function(m){m(p)})}(g.value).then(C,v)}f((d=d.apply(r,t||[])).next())})},l=this&&this.__generator||function(r,t){var d,c,p,m,u={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function C(f){return function(g){return function v(f){if(d)throw new TypeError("Generator is already executing.");for(;u;)try{if(d=1,c&&(p=2&f[0]?c.return:f[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,f[1])).done)return p;switch(c=0,p&&(f=[2&f[0],p.value]),f[0]){case 0:case 1:p=f;break;case 4:return u.label++,{value:f[1],done:!1};case 5:u.label++,c=f[1],f=[0];continue;case 7:f=u.ops.pop(),u.trys.pop();continue;default:if(!(p=(p=u.trys).length>0&&p[p.length-1])&&(6===f[0]||2===f[0])){u=0;continue}if(3===f[0]&&(!p||f[1]>p[0]&&f[1]0&&d[d.length-1])&&(6===C[0]||2===C[0])){r=0;continue}if(3===C[0]&&(!d||C[1]>d[0]&&C[1]0&&this._attempt>=this.maxAttempts)return void this.close(503,"Service Unavailable");this.attemptToReconnect()}}else this.safelyClose(o)},Object.defineProperty(h.prototype,"actualReconnectTime",{get:function(){var o=Math.min(this.maxReconnectTime,this.reconnectTime*this._attempt*1.5);return Math.min(this.maxReconnectTime,o+Math.random()*this.jitter*o)},enumerable:!1,configurable:!0}),h.prototype.attemptToReconnect=function(){var o=this;this._ready||(console.log("[Banta/DurableSocket] Waiting ".concat(this.actualReconnectTime,"ms before reconnect (attempt ").concat(this._attempt,") [").concat(this.url,"]")),this._reconnectTimeout&&(console.warn("[Banta/DurableSocket] Warning: Attempt to schedule reconnect when there is already a reconnect timeout outstanding!"),clearTimeout(this._reconnectTimeout)),setTimeout(function(){o._ready||(o.connect(),clearTimeout(o._reconnectTimeout),o._reconnectTimeout=void 0)},this.actualReconnectTime))},h.prototype.reconnect=function(){var o;null===(o=this._socket)||void 0===o||o.close(),console.log("[Banta/DurableSocket] Connection is no longer ready."),this.setNotReady()},h.prototype.setNotReady=function(){this._ready&&console.log("[Banta/DurableSocket] Connection is no longer ready."),this._ready=!1},h.prototype.setReady=function(o){this._ready?console.warn("[Banta/DurableSocket] Connection marked ready, but it was already marked ready"):console.log("[Banta/DurableSocket] Connection is now ready."),this._ready||(this._ready=!0,this.dispatchSocketEvent(o,{type:"ready",bubbles:!1,cancelable:!1,cancelBubble:!1,composed:!1,currentTarget:this,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:void 0,srcElement:void 0,target:this,timeStamp:Date.now(),composedPath:function(){return[]},initEvent:void 0,preventDefault:function(){this.defaultPrevented=!0},stopPropagation:function(){},stopImmediatePropagation:function(){},AT_TARGET:2,BUBBLING_PHASE:3,CAPTURING_PHASE:1,NONE:0}))},Object.defineProperty(h.prototype,"binaryType",{get:function(){return this._socket.binaryType},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"bufferedAmount",{get:function(){return this._socket.bufferedAmount},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"extensions",{get:function(){return this._socket.extensions},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CLOSED",{get:function(){return WebSocket.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CLOSING",{get:function(){return WebSocket.CLOSING},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"CONNECTING",{get:function(){return WebSocket.CONNECTING},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"OPEN",{get:function(){return WebSocket.OPEN},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onclose",{get:function(){return this._onclose},set:function(o){this._onclose&&this.removeEventListener("close",this._onclose),this._onclose=o,o&&this.addEventListener("close",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onerror",{get:function(){return this._onerror},set:function(o){this._onclose&&this.removeEventListener("error",this._onerror),this._onerror=o,o&&this.addEventListener("error",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onmessage",{get:function(){return this._onmessage},set:function(o){this._onclose&&this.removeEventListener("message",this._onmessage),this._onmessage=o,o&&this.addEventListener("message",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onopen",{get:function(){return this._onopen},set:function(o){this._onclose&&this.removeEventListener("open",this._onopen),this._onopen=o,o&&this.addEventListener("open",o)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"protocol",{get:function(){return this._socket.protocol},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"readyState",{get:function(){return this._socket.readyState},enumerable:!1,configurable:!0}),h.prototype.close=function(o,r){var t;this._closed=!0,null===(t=this._socket)||void 0===t||t.close(o,r),this._socket=null,this.dispatchEvent({type:"close",bubbles:!1,cancelable:!1,cancelBubble:!1,composed:!1,currentTarget:this,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:void 0,srcElement:void 0,target:this,timeStamp:Date.now(),composedPath:function(){return[]},initEvent:void 0,preventDefault:function(){this.defaultPrevented=!0},stopPropagation:function(){},stopImmediatePropagation:function(){},AT_TARGET:2,BUBBLING_PHASE:3,CAPTURING_PHASE:1,NONE:0})},Object.defineProperty(h.prototype,"isReady",{get:function(){return this._ready},enumerable:!1,configurable:!0}),h.prototype.send=function(o){this._ready?this._socket.send(o):this._messageQueue.push(o)},h.prototype.sendImmediately=function(o){this._socket.send(o)},h.prototype.addEventListener=function(o,r,t){var u;this._subscribers.set(o,e(e([],null!==(u=this._subscribers.get(o))&&void 0!==u?u:[],!0),[r],!1))},h.prototype.removeEventListener=function(o,r,t){var u;this._subscribers.set(o,e([],(null!==(u=this._subscribers.get(o))&&void 0!==u?u:[]).filter(function(d){return d!==r}),!0))},h.prototype.dispatchSocketEvent=function(o,r){var t;return i(this,void 0,void 0,function(){var u;return n(this,function(d){switch(d.label){case 0:return this._socket!==o?(this.safelyClose(o),[2]):(u=null!==(t=this._subscribers.get(r.type))&&void 0!==t?t:[],[4,Promise.all(u.map(function(c){return c(r)}))]);case 1:return d.sent(),[2,!r.defaultPrevented]}})})},h.prototype.dispatchEvent=function(o){var r;return(null!==(r=this._subscribers.get(o.type))&&void 0!==r?r:[]).forEach(function(u){return u(o)}),!o.defaultPrevented},h}();j.DurableSocket=l},39240:($e,j)=>{"use strict";var n;Object.defineProperty(j,"__esModule",{value:!0}),j.FilterMode=void 0,(n=j.FilterMode||(j.FilterMode={})).ALL="all",n.MINE="mine",n.THREADS="threads",n.MY_LIKES="my-likes"},15430:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.filterObject=void 0,j.filterObject=function i(n,e){return e.reduce(function(l,h){return h in n&&(l[h]=n[h]),l},{})}},30509:function($e,j,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(l,h,o,r){void 0===r&&(r=o);var t=Object.getOwnPropertyDescriptor(h,o);(!t||("get"in t?!h.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return h[o]}}),Object.defineProperty(l,r,t)}:function(l,h,o,r){void 0===r&&(r=o),l[r]=h[o]}),e=this&&this.__exportStar||function(l,h){for(var o in l)"default"!==o&&!Object.prototype.hasOwnProperty.call(h,o)&&n(h,l,o)};Object.defineProperty(j,"__esModule",{value:!0}),e(i(28721),j),e(i(62133),j),e(i(53075),j),e(i(7368),j),e(i(58826),j),e(i(61057),j),e(i(22297),j),e(i(34316),j),e(i(59972),j),e(i(19007),j),e(i(23189),j),e(i(15430),j),e(i(77976),j),e(i(39240),j),e(i(28764),j),e(i(65898),j),e(i(80082),j),e(i(43305),j),e(i(59585),j),e(i(59969),j)},23189:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Injectable=void 0,j.Injectable=function i(){return function(n){}}},53075:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},7368:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},58826:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.NotificationsProvider=void 0;var i=function n(){};j.NotificationsProvider=i},80082:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},28764:function($e,j,i){"use strict";var n=this&&this.__awaiter||function(C,v,f,g){return new(f||(f=Promise))(function(M,S){function x(L){try{k(g.next(L))}catch(O){S(O)}}function D(L){try{k(g.throw(L))}catch(O){S(O)}}function k(L){L.done?M(L.value):function y(M){return M instanceof f?M:new f(function(S){S(M)})}(L.value).then(x,D)}k((g=g.apply(C,v||[])).next())})},e=this&&this.__generator||function(C,v){var g,y,M,S,f={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return S={next:x(0),throw:x(1),return:x(2)},"function"==typeof Symbol&&(S[Symbol.iterator]=function(){return this}),S;function x(k){return function(L){return function D(k){if(g)throw new TypeError("Generator is already executing.");for(;f;)try{if(g=1,y&&(M=2&k[0]?y.return:k[0]?y.throw||((M=y.return)&&M.call(y),0):y.next)&&!(M=M.call(y,k[1])).done)return M;switch(y=0,M&&(k=[2&k[0],M.value]),k[0]){case 0:case 1:M=k;break;case 4:return f.label++,{value:k[1],done:!1};case 5:f.label++,y=k[1],k=[0];continue;case 7:k=f.ops.pop(),f.trys.pop();continue;default:if(!(M=(M=f.trys).length>0&&M[M.length-1])&&(6===k[0]||2===k[0])){f=0;continue}if(3===k[0]&&(!M||k[1]>M[0]&&k[1]0&&console.error("[Banta/RPC] Failed ".concat(v," in-flight requests due to connection failure")),f>0&&console.warn("[Banta/RPC] Rescheduled ".concat(f," in-flight requests due to connection failure"))},C.prototype.onReceiveMessage=function(v){return n(this,void 0,void 0,function(){var f,g,y,M,x;return e(this,function(D){switch(D.label){case 0:if(!function t(C){return"request"===C.type}(v))return[3,7];if("call"!==this.getRpcType(v.method)||"function"!=typeof this[v.method])return[3,5];f=void 0,g=void 0,D.label=1;case 1:return D.trys.push([1,3,,4]),[4,this[v.method].apply(this,v.parameters)];case 2:return f=D.sent(),[3,4];case 3:return y=D.sent(),g=y instanceof Error?{message:y.message,stack:y.stack}:y,[3,4];case 4:return this.rawSend({type:"response",id:v.id,value:f,error:g}),[2];case 5:this.rawSend({type:"response",id:v.id,error:{code:"invalid-call",message:"No such method '".concat(v.method,"'")}}),D.label=6;case 6:return[2];case 7:return function u(C){return"response"===C.type}(v)?(M=this._callMap.get(v.id),M.request,(x=M.handler)?(this._callMap.delete(v.id),x(v),[2]):(console.error("Received response to unknown request '".concat(v.id,"'")),[2])):function d(C){return"event"===C.type}(v)?"event"===this.getRpcType(v.name)?(this[v.name](v.object),[2]):(console.error("Unsupported event type '".concat(v.name,"' received.")),[2]):"ping"===v.type?(this.rawSend({type:"pong"}),[2]):(console.error("Unknown message type from server '".concat(v.type,"'")),[2])}})})},C.prototype.getRpcType=function(v){return Reflect.getMetadata("rpc:type",this.constructor.prototype,v)||"none"},C.prototype.getRpcCallableOptions=function(v){var f;return null!==(f=Reflect.getMetadata("rpc:callableOptions",this.constructor.prototype,v))&&void 0!==f?f:{}},C.prototype.close=function(){this._socket.close()},C}();j.SocketRPC=m},34316:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},59585:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},43305:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},59969:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.buildQuery=void 0,j.buildQuery=function i(n){for(var e=new URLSearchParams,l=0,h=Object.entries(n);l{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},19007:($e,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0})},94400:$e=>{$e.exports=function(){var j,e=["navigation","request","process","log","user","state","error","manual"],l=function(Be,ot,bt){for(var yt=bt,Wt=0,on=Be.length;Wt=Be&&bt<=ot}},p=function(Be){return"function"==typeof Be||r(Be)&&h(Be,function(ot){return"function"==typeof ot}).length===Be.length},m=function(Be){return"string"==typeof Be&&!!Be.length},C={},v=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};C.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:m},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(Be){return void 0===Be||m(Be)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(Be){return void 0===Be||m(Be)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Be){return!0===Be||!1===Be}},enabledErrorTypes:{defaultValue:function(){return v()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(Be){if("object"!=typeof Be||!Be)return!1;var ot=d(Be),bt=d(v());return!(h(ot,function(yt){return o(bt,yt)}).length0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:p},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(Be){return Be&&"object"==typeof Be&&m(Be.notify)&&m(Be.sessions)&&0===h(d(Be),function(ot){return!o(["notify","sessions"],ot)}).length}},autoTrackSessions:{defaultValue:function(Be){return!0},message:"should be true|false",validate:function(Be){return!0===Be||!1===Be}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(Be){return null===Be||r(Be)&&h(Be,function(ot){return"string"==typeof ot}).length===Be.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(Be){return"string"==typeof Be&&Be.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(Be){return c(0,100)(Be)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(Be){return null===Be||r(Be)&&l(Be,function(ot,bt){return!1===ot?ot:o(e,bt)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(Be){return void 0===Be||"string"==typeof Be}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(Be){return null===Be||Be&&l(d(Be),function(ot,bt){return ot&&o(["id","email","name"],bt)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(Be){return"object"==typeof Be&&null!==Be}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(Be){return!Be||Be&&l(["debug","info","warn","error"],function(ot,bt){return ot&&"function"==typeof Be[bt]},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(Be){return r(Be)&&Be.length===h(Be,function(ot){return"string"==typeof ot||ot&&"function"==typeof ot.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(Be){return r(Be)&&Be.length===h(Be,function(ot){return ot&&"object"==typeof ot&&"function"==typeof ot.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(Be){return r(Be)&&Be.length===h(Be,function(ot){return ot&&"object"==typeof ot&&"string"==typeof ot.name}).length}}};var f=function(Be){for(var ot=1;ot-1&&(Qt=Qt.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var sn=Qt.replace(/^\s+/,"").replace(/\(eval code/g,"("),Mn=sn.match(/ (\((.+):(\d+):(\d+)\)$)/),si=(sn=Mn?sn.replace(Mn[0],""):sn).split(/\s+/).slice(1),In=this.extractLocation(Mn?Mn[1]:si.pop()),Nn=si.join(" ")||void 0,Gi=["eval",""].indexOf(In[0])>-1?void 0:In[0];return new ot({functionName:Nn,fileName:Gi,lineNumber:In[1],columnNumber:In[2],source:Qt})},this)},parseFFOrSafari:function(Xt){return Xt.stack.split("\n").filter(function(Qt){return!Qt.match(Wt)},this).map(function(Qt){if(Qt.indexOf(" > eval")>-1&&(Qt=Qt.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===Qt.indexOf("@")&&-1===Qt.indexOf(":"))return new ot({functionName:Qt});var sn=/((.*".+"[^@]*)?[^@]*)(?:@)/,Mn=Qt.match(sn),si=Mn&&Mn[1]?Mn[1]:void 0,In=this.extractLocation(Qt.replace(sn,""));return new ot({functionName:si,fileName:In[0],lineNumber:In[1],columnNumber:In[2],source:Qt})},this)},parseOpera:function(Xt){return!Xt.stacktrace||Xt.message.indexOf("\n")>-1&&Xt.message.split("\n").length>Xt.stacktrace.split("\n").length?this.parseOpera9(Xt):Xt.stack?this.parseOpera11(Xt):this.parseOpera10(Xt)},parseOpera9:function(Xt){for(var Tt=/Line (\d+).*script (?:in )?(\S+)/i,Qt=Xt.message.split("\n"),sn=[],Mn=2,si=Qt.length;Mn/,"$2").replace(/\([^\)]*\)/g,"")||void 0;si.match(/\(([^\)]*)\)/)&&(Nn=si.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var Gi=void 0===Nn||"[arguments not available]"===Nn?void 0:Nn.split(",");return new ot({functionName:In,args:Gi,fileName:Mn[0],lineNumber:Mn[1],columnNumber:Mn[2],source:Qt})},this)}}});var U=O,B=function(Be,ot,bt,yt){var Wt=yt&&yt.redactedKeys?yt.redactedKeys:[],on=yt&&yt.redactedPaths?yt.redactedPaths:[];return JSON.stringify(Ke(Be,Wt,on),ot,bt)},N=20,K=25e3,w=8,I="...";function R(Be){return Be instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(Be))}function G(Be){return"[Throws: "+(Be?Be.message:"?")+"]"}function H(Be,ot){for(var bt=0,yt=Be.length;btw&&Wt>K}if(Wt++,Tt.length>N||Qt())return I;if(null===Xt||"object"!=typeof Xt)return Xt;if(H(yt,Xt))return"[Circular]";if(yt.push(Xt),"function"==typeof Xt.toJSON)try{Wt--;var sn=on(Xt.toJSON(),Tt);return yt.pop(),sn}catch(ni){return G(ni)}if(R(Xt)){Wt--;var si=on({name:Xt.name,message:Xt.message},Tt);return yt.pop(),si}if(_e(Xt)){for(var In=[],Nn=0,Gi=Xt.length;Nn-1&&!ot.file&&!ot.method&&(ot.file="global code"),ot},te=function(Be){return/^global code$/i.test(Be)?"global code":Be},Pe=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},he=function(Be){return"string"==typeof Be?Be:""};function Y(Be,ot,bt,yt){return{errorClass:he(Be),errorMessage:he(ot),type:bt,stacktrace:l(yt,function(Wt,on){var Xt=ve(on);try{return"{}"===JSON.stringify(Xt)?Wt:Wt.concat(Xt)}catch(Tt){return Wt}},[])}}function Ee(Be){return Be.cause?[Be].concat(Ee(Be.cause)):[Be]}se.getStacktrace=function(Be,ot,bt){if(Ze(Be))return U.parse(Be).slice(ot);try{return h(we.backtrace(),function(yt){return-1===(yt.functionName||"").indexOf("StackGenerator$$")}).slice(1+bt)}catch(yt){return[]}},se.create=function(Be,ot,bt,yt,Wt,on){void 0===Wt&&(Wt=0);var sn,Xt=Re(Be,ot,yt,on),Tt=Xt[0],Qt=Xt[1];try{var Mn=se.getStacktrace(Tt,Qt>0?1+Qt+Wt:0,1+Wt);sn=new se(Tt.name,Tt.message,Mn,bt,Be)}catch(Gi){sn=new se(Tt.name,Tt.message,[],bt,Be)}if("InvalidError"===Tt.name&&sn.addMetadata(""+yt,"non-error parameter",Te(Be)),Tt.cause){var si,In=Ee(Tt).slice(1),Nn=g(In,function(Gi){var Yn=Et(Gi)&&Ze(Gi)?U.parse(Gi):[],ni=Re(Gi,!0,"error cause")[0];return"InvalidError"===ni.name&&sn.addMetadata("error cause",Te(Gi)),Y(ni.name,ni.message,se.__type,Yn)});(si=sn.errors).push.apply(si,Nn)}return sn};var Te=function(Be){return null===Be?"null":void 0===Be?"undefined":Be},Re=function(Be,ot,bt,yt){var Wt,on=0,Xt=function(Tt){var Qt="error cause"===bt?"was":"received";yt&&yt.warn(bt+" "+Qt+' a non-error: "'+Tt+'"');var sn=new Error(bt+" "+Qt+' a non-error. See "'+bt+'" tab for more detail.');return sn.name="InvalidError",sn};if(ot)switch(typeof Be){case"string":case"number":case"boolean":Wt=new Error(String(Be)),on+=1;break;case"function":Wt=Xt("function"),on+=2;break;case"object":null!==Be&&Et(Be)?Wt=Be:null!==Be&&Ve(Be)?((Wt=new Error(Be.message||Be.errorMessage)).name=Be.name||Be.errorClass,on+=1):(Wt=Xt(null===Be?"null":"unsupported object"),on+=2);break;default:Wt=Xt("nothing"),on+=2}else Et(Be)?Wt=Be:(Wt=Xt(typeof Be),on+=2);if(!Ze(Wt))try{throw Wt}catch(Tt){Ze(Tt)&&(Wt=Tt,on=1)}return[Wt,on]};se.__type="browserjs";var Ve=function(Be){return!("string"!=typeof Be.name&&"string"!=typeof Be.errorClass||"string"!=typeof Be.message&&"string"!=typeof Be.errorMessage)},Ce=se,et=function(Be,ot,bt){var yt=0,Wt=function(){if(yt>=Be.length)return bt(null,!0);ot(Be[yt],function(on,Xt){return on?bt(on):!1===Xt?bt(null,!1):(yt++,void Wt())})};Wt()},lt=function(Be,ot,bt,yt){et(Be,function(on,Xt){if("function"!=typeof on)return Xt(null);try{if(2!==on.length){var Tt=on(ot);return Tt&&"function"==typeof Tt.then?Tt.then(function(Qt){return setTimeout(function(){return Xt(null,Qt)})},function(Qt){setTimeout(function(){return bt(Qt),Xt(null,!0)})}):Xt(null,Tt)}on(ot,function(Qt,sn){if(Qt)return bt(Qt),Xt(null);Xt(null,sn)})}catch(Qt){bt(Qt),Xt(null)}},yt)},xt=function(Be,ot,bt,yt){for(var Wt=!1,on=Be.slice();!Wt&&on.length;)try{Wt=!1===on.pop()(ot)}catch(Xt){yt.error("Error occurred in "+bt+" callback, continuing anyway\u2026"),yt.error(Xt)}return Wt},Zt=function(ot,bt){var yt="000000000"+ot;return yt.substr(yt.length-bt)},Nt="object"==typeof window?window:self,nt=0;for(var je in Nt)Object.hasOwnProperty.call(Nt,je)&&nt++;var Ie=navigator.mimeTypes?navigator.mimeTypes.length:0,ke=Zt((Ie+navigator.userAgent.length).toString(36)+nt.toString(36),4),gt=function(){return ke},Oe=0,mt=4,qt=36,hn=Math.pow(qt,mt);function Ot(){return Zt((Math.random()*hn<<0).toString(qt),mt)}function De(){return Oe=Oethis._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},ot._isBreadcrumbTypeEnabled=function(yt){var Wt=this._config.enabledBreadcrumbTypes;return null===Wt||o(Wt,yt)},ot.notify=function(yt,Wt,on){void 0===on&&(on=Mt);var Xt=Ce.create(yt,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(Xt,Wt,on)},ot._notify=function(yt,Wt,on){var Xt=this;if(void 0===on&&(on=Mt),yt.app=f({},yt.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),yt.context=yt.context||this._context,yt._metadata=f({},yt._metadata,this._metadata),yt._features=f({},yt._features,this._features),yt._user=f({},yt._user,this._user),yt.breadcrumbs=this._breadcrumbs.slice(),null!==this._config.enabledReleaseStages&&!o(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),on(null,yt);var Tt=yt.severity,Qt=function(Mn){Xt._logger.error("Error occurred in onError callback, continuing anyway\u2026"),Xt._logger.error(Mn)},sn=[].concat(this._cbs.e).concat(Wt);lt(sn,yt,Qt,function(Mn,si){if(Mn&&Qt(Mn),!si)return Xt._logger.debug("Event not sent due to onError callback"),on(null,yt);Xt._isBreadcrumbTypeEnabled("error")&&Be.prototype.leaveBreadcrumb.call(Xt,yt.errors[0].errorClass,{errorClass:yt.errors[0].errorClass,errorMessage:yt.errors[0].errorMessage,severity:yt.severity},"error"),Tt!==yt.severity&&(yt._handledState.severityReason={type:"userCallbackSetSeverity"}),yt.unhandled!==yt._handledState.unhandled&&(yt._handledState.severityReason.unhandledOverridden=!0,yt._handledState.unhandled=yt.unhandled),Xt._session&&(Xt._session._track(yt),yt._session=Xt._session),Xt._delivery.sendEvent({apiKey:yt.apiKey||Xt._config.apiKey,notifier:Xt._notifier,events:[yt]},function(In){return on(In,yt)})})},Be}(),We=function(Be,ot){return new Error("Invalid configuration\n"+g(d(Be),function(yt){return" - "+yt+" "+Be[yt]+", got "+Xe(ot[yt])}).join("\n\n"))},Xe=function(Be){switch(typeof Be){case"string":case"number":case"object":return JSON.stringify(Be);default:return String(Be)}},kt=It,Jt={},On=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Jt.event=function(Be,ot){var bt=B(Be,null,null,{redactedPaths:On,redactedKeys:ot});if(bt.length>1e6&&(Be.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+bt.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(bt=B(Be,null,null,{redactedPaths:On,redactedKeys:ot})).length>1e6))throw new Error("payload exceeded 1MB limit");return bt},Jt.session=function(Be,ot){var bt=B(Be,null,null);if(bt.length>1e6)throw new Error("payload exceeded 1MB limit");return bt};var An={};An=function(Be,ot){return void 0===ot&&(ot=window),{sendEvent:function(bt,yt){void 0===yt&&(yt=function(){});var Wt=Wn(Be._config,"notify","4",ot),on=new ot.XDomainRequest;on.onload=function(){yt(null)},on.open("POST",Wt),setTimeout(function(){try{on.send(Jt.event(bt,Be._config.redactedKeys))}catch(Xt){Be._logger.error(Xt),yt(Xt)}},0)},sendSession:function(bt,yt){void 0===yt&&(yt=function(){});var Wt=Wn(Be._config,"sessions","1",ot),on=new ot.XDomainRequest;on.onload=function(){yt(null)},on.open("POST",Wt),setTimeout(function(){try{on.send(Jt.session(bt,Be._config.redactedKeys))}catch(Xt){Be._logger.error(Xt),yt(Xt)}},0)}}};var Wn=function(Be,ot,bt,yt){var Wt=JSON.parse(JSON.stringify(new Date));return it(Be.endpoints[ot],yt.location.protocol)+"?apiKey="+encodeURIComponent(Be.apiKey)+"&payloadVersion="+bt+"&sentAt="+encodeURIComponent(Wt)},it=An._matchPageProtocol=function(Be,ot){return"http:"===ot?Be.replace(/^https:/,"http:"):Be},ce=function(Be,ot){return void 0===ot&&(ot=window),{sendEvent:function(bt,yt){void 0===yt&&(yt=function(){});try{var Wt=Be._config.endpoints.notify,on=new ot.XMLHttpRequest;on.onreadystatechange=function(){on.readyState===ot.XMLHttpRequest.DONE&&yt(null)},on.open("POST",Wt),on.setRequestHeader("Content-Type","application/json"),on.setRequestHeader("Bugsnag-Api-Key",bt.apiKey||Be._config.apiKey),on.setRequestHeader("Bugsnag-Payload-Version","4"),on.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),on.send(Jt.event(bt,Be._config.redactedKeys))}catch(Xt){Be._logger.error(Xt)}},sendSession:function(bt,yt){void 0===yt&&(yt=function(){});try{var Wt=Be._config.endpoints.sessions,on=new ot.XMLHttpRequest;on.onreadystatechange=function(){on.readyState===ot.XMLHttpRequest.DONE&&yt(null)},on.open("POST",Wt),on.setRequestHeader("Content-Type","application/json"),on.setRequestHeader("Bugsnag-Api-Key",Be._config.apiKey),on.setRequestHeader("Bugsnag-Payload-Version","1"),on.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),on.send(Jt.session(bt,Be._config.redactedKeys))}catch(Xt){Be._logger.error(Xt)}}}},Le=new Date,st=function(){Le=new Date},qe={name:"appDuration",load:function(Be){return Be.addOnError(function(ot){var bt=new Date;ot.app.duration=bt-Le},!0),{reset:st}}},Kt=function(Be){return void 0===Be&&(Be=window),{load:function(ot){ot.addOnError(function(bt){void 0===bt.context&&(bt.context=Be.location.pathname)},!0)}}},Pt=function(ot,bt){var yt="000000000"+ot;return yt.substr(yt.length-bt)},St="object"==typeof window?window:self,un=0;for(var Sn in St)Object.hasOwnProperty.call(St,Sn)&&un++;var Rn=navigator.mimeTypes?navigator.mimeTypes.length:0,qn=Pt((Rn+navigator.userAgent.length).toString(36)+un.toString(36),4),_i=function(){return qn},Ht=0,ie=4,ye=36,ft=Math.pow(ye,ie);function wt(){return Pt((Math.random()*ft<<0).toString(ye),ie)}function _n(){return Ht=Htdocument.documentElement.clientHeight?"landscape":"portrait",bt._config.generateAnonymousId&&(yt.id=li()),bt.addOnSession(function(Wt){Wt.device=f({},Wt.device,yt),bt._config.collectUserIp||$i(Wt)}),bt.addOnError(function(Wt){Wt.device=f({},Wt.device,yt,{time:new Date}),bt._config.collectUserIp||$i(Wt)},!0)},configSchema:{generateAnonymousId:{validate:function(bt){return!0===bt||!1===bt},defaultValue:function(){return!0},message:"should be true|false"}}}},$i=function(Be){var ot=Be.getUser();(!ot||!ot.id)&&Be.setUser(Be.device.id)},nr=function(Be){return void 0===Be&&(Be=window),{load:function(ot){ot.addOnError(function(bt){bt.request&&bt.request.url||(bt.request=f({},bt.request,{url:Be.location.href}))},!0)}}},Mr={load:function(Be){Be._sessionDelegate=ir}},ir={startSession:function(Be,ot){var bt=Be;return bt._session=ot,bt._pausedSession=null,null===bt._config.enabledReleaseStages||o(bt._config.enabledReleaseStages,bt._config.releaseStage)?(bt._delivery.sendSession({notifier:bt._notifier,device:ot.device,app:ot.app,sessions:[{id:ot.id,startedAt:ot.startedAt,user:ot._user}]}),bt):(bt._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),bt)},resumeSession:function(Be){return Be._session?Be:Be._pausedSession?(Be._session=Be._pausedSession,Be._pausedSession=null,Be):Be.startSession()},pauseSession:function(Be){Be._pausedSession=Be._session,Be._session=null}},xi={load:function(Be){Be._config.collectUserIp||Be.addOnError(function(ot){ot._user&&void 0===ot._user.id&&delete ot._user.id,ot._user=f({id:"[REDACTED]"},ot._user),ot.request=f({clientIp:"[REDACTED]"},ot.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Be){return!0===Be||!1===Be}}}},Hi={load:function(Be){/^(local-)?dev(elopment)?$/.test(Be._config.releaseStage)||!Be._isBreadcrumbTypeEnabled("log")||g(ar,function(bt){var yt=console[bt];console[bt]=function(){for(var Wt=arguments.length,on=new Array(Wt),Xt=0;Xt1){var yt=Array.prototype.indexOf.call(Be.parentNode.childNodes,Be)+1;bt.push(":nth-child("+yt+")")}return 1===ot.document.querySelectorAll(bt.join("")).length?bt.join(""):Be.parentNode?lr(Be.parentNode,ot)+" > "+bt.join(""):bt.join("")}function ji(Be,ot){var bt="(...)";return Be&&Be.length<=ot?Be:Be.slice(0,ot-bt.length)+bt}var ur={};ur=function(Be){return void 0===Be&&(Be=window),{load:function(bt){if("addEventListener"in Be&&bt._isBreadcrumbTypeEnabled("navigation")){var yt=function(Wt){return function(){return bt.leaveBreadcrumb(Wt,{},"navigation")}};Be.addEventListener("pagehide",yt("Page hidden"),!0),Be.addEventListener("pageshow",yt("Page shown"),!0),Be.addEventListener("load",yt("Page loaded"),!0),Be.document.addEventListener("DOMContentLoaded",yt("DOMContentLoaded"),!0),Be.addEventListener("load",function(){return Be.addEventListener("popstate",yt("Navigated back"),!0)}),Be.addEventListener("hashchange",function(Wt){var on=Wt.oldURL?{from:zr(Wt.oldURL,Be),to:zr(Wt.newURL,Be),state:an(Be)}:{to:zr(Be.location.href,Be)};bt.leaveBreadcrumb("Hash changed",on,"navigation")},!0),Be.history.replaceState&&Zi(bt,Be.history,"replaceState",Be),Be.history.pushState&&Zi(bt,Be.history,"pushState",Be)}}}};var zr=function(Be,ot){var bt=ot.document.createElement("A");return bt.href=Be,""+bt.pathname+bt.search+bt.hash},er=function(Be,ot,bt,yt){var Wt=zr(Be.location.href,Be);return{title:bt,state:ot,prevState:an(Be),to:yt||Wt,from:Wt}},Zi=function(Be,ot,bt,yt){var Wt=ot[bt];ot[bt]=function(on,Xt,Tt){Be.leaveBreadcrumb("History "+bt,er(yt,on,Xt,Tt),"navigation"),"function"==typeof Be.resetEventCount&&Be.resetEventCount(),Be._config.autoTrackSessions&&Be.startSession(),Wt.apply(ot,[on,Xt].concat(void 0!==Tt?Tt:[]))}},an=function(Be){try{return Be.history.state}catch(ot){}},ut="request",Lt=function(Be,ot){void 0===Be&&(Be=[]),void 0===ot&&(ot=window);var yt={load:function(Wt){if(Wt._isBreadcrumbTypeEnabled("request")){var on=[Wt._config.endpoints.notify,Wt._config.endpoints.sessions].concat(Be);Xt(),sn();var Mn=function(In,Nn,Gi){var Yn={status:In.status,request:Nn+" "+Gi};In.status>=400?Wt.leaveBreadcrumb("fetch() failed",Yn,ut):Wt.leaveBreadcrumb("fetch() succeeded",Yn,ut)},si=function(In,Nn){Wt.leaveBreadcrumb("fetch() error",{request:In+" "+Nn},ut)}}function Xt(){if("addEventListener"in ot.XMLHttpRequest.prototype){var In=ot.XMLHttpRequest.prototype.open;ot.XMLHttpRequest.prototype.open=function(Gi,Yn){var Xn=this,ni=!1,Bi=function(){return Qt(Gi,Yn)},Pi=function(){return Tt(Gi,Yn,Xn.status)};ni&&(this.removeEventListener("load",Pi),this.removeEventListener("error",Bi)),this.addEventListener("load",Pi),this.addEventListener("error",Bi),ni=!0,In.apply(this,arguments)}}}function Tt(In,Nn,Gi){if(void 0!==Nn){if("string"!=typeof Nn||!o(on,Nn.replace(/\?.*$/,""))){var Yn={status:Gi,request:In+" "+Nn};Gi>=400?Wt.leaveBreadcrumb("XMLHttpRequest failed",Yn,ut):Wt.leaveBreadcrumb("XMLHttpRequest succeeded",Yn,ut)}}else Wt._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function Qt(In,Nn){void 0!==Nn?"string"==typeof Nn&&o(on,Nn.replace(/\?.*$/,""))||Wt.leaveBreadcrumb("XMLHttpRequest error",{request:In+" "+Nn},ut):Wt._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function sn(){if("fetch"in ot&&!ot.fetch.polyfill){var In=ot.fetch;ot.fetch=function(){var ni,Gi=arguments,Yn=arguments[0],Xn=arguments[1],Bi=null;return Yn&&"object"==typeof Yn?(Bi=Yn.url,Xn&&"method"in Xn?ni=Xn.method:Yn&&"method"in Yn&&(ni=Yn.method)):(Bi=Yn,Xn&&"method"in Xn&&(ni=Xn.method)),void 0===ni&&(ni="GET"),new Promise(function(Pi,Vi){In.apply(void 0,Gi).then(function(Ki){Mn(Ki,ni,Bi),Pi(Ki)}).catch(function(Ki){si(ni,Bi),Vi(Ki)})})}}}}};return yt},nn={load:function(Be){var ot=0;Be.addOnError(function(bt){if(ot>=Be._config.maxEvents)return Be._logger.warn("Cancelling event send due to maxEvents per session limit of "+Be._config.maxEvents+" being reached"),!1;ot++}),Be.resetEventCount=function(){ot=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(Be){return c(1,100)(Be)}}}},Bn={},ti=(Bn={load:function(Be){Be.addOnError(function(ot){var bt=l(ot.errors,function(yt,Wt){return yt.concat(Wt.stacktrace)},[]);g(bt,function(yt){yt.file=ti(yt.file)})})}})._strip=function(Be){return"string"==typeof Be?Be.replace(/\?.*$/,"").replace(/#.*$/,""):Be},zn=function(Be){return void 0===Be&&(Be=window),{load:function(ot){if(ot._config.autoDetectErrors&&ot._config.enabledErrorTypes.unhandledExceptions){var yt=Be.onerror;Be.onerror=bt}function bt(Wt,on,Xt,Tt,Qt){if(0===Xt&&/Script error\.?/.test(Wt))ot._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var Mn,sn={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(Qt)Mn=ot.Event.create(Qt,!0,sn,"window onerror",1),di(Mn.errors[0].stacktrace,on,Xt,Tt);else if("object"!=typeof Wt||null===Wt||on&&"string"==typeof on||Xt||Tt||Qt)Mn=ot.Event.create(Wt,!0,sn,"window onerror",1),di(Mn.errors[0].stacktrace,on,Xt,Tt);else{var si=Wt.type?"Event: "+Wt.type:"Error",In=Wt.message||Wt.detail||"";(Mn=ot.Event.create({name:si,message:In},!0,sn,"window onerror",1)).originalError=Wt,Mn.addMetadata("window onerror",{event:Wt,extraParameters:on})}ot._notify(Mn)}"function"==typeof yt&&yt.apply(this,arguments)}}}},di=function(Be,ot,bt,yt){Be[0]||Be.push({});var Wt=Be[0];!Wt.file&&"string"==typeof ot&&(Wt.file=ot),!Wt.lineNumber&&Vn(bt)&&(Wt.lineNumber=bt),Wt.columnNumber||(Vn(yt)?Wt.columnNumber=yt:window.event&&Vn(window.event.errorCharacter)&&(Wt.columnNumber=window.event.errorCharacter))},Vn=function(Be){return"number"==typeof Be&&"NaN"!==String.call(Be)},jn=function(Be){return void 0===Be&&(Be=window),{load:function(bt){if(bt._config.autoDetectErrors&&bt._config.enabledErrorTypes.unhandledRejections){var yt=function(Wt){var on=Wt.reason,Xt=!1;try{Wt.detail&&Wt.detail.reason&&(on=Wt.detail.reason,Xt=!0)}catch(Qt){}var Tt=bt.Event.create(on,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,bt._logger);Xt&&g(Tt.errors[0].stacktrace,Gn(on)),bt._notify(Tt,function(Qt){var sn;Et(Qt.originalError)&&!Qt.originalError.stack&&Qt.addMetadata("unhandledRejection handler",((sn={})[Object.prototype.toString.call(Qt.originalError)]={name:Qt.originalError.name,message:Qt.originalError.message,code:Qt.originalError.code},sn))})};"addEventListener"in Be?Be.addEventListener("unhandledrejection",yt):Be.onunhandledrejection=function(Wt,on){yt({detail:{reason:Wt,promise:on}})}}}}},Gn=function(Be){return function(ot){ot.file!==Be.toString()&&ot.method&&(ot.method=ot.method.replace(/^\s+/,""))}},vn={},pi="Bugsnag JavaScript",Ni="7.16.7",vr="https://github.com/bugsnag/bugsnag-js",pr=f({},C.schema,S),Ci={_client:null,createClient:function(Be){"string"==typeof Be&&(Be={apiKey:Be}),Be||(Be={});var ot=[qe,Ti(),Kt(),nr(),nn,Mr,xi,Bn,zn(),jn(),ur(),rr(),Lt(),Hi,Dr()],bt=new kt(Be,pr,ot,{name:pi,version:Ni,url:vr});return bt._setDelivery(window.XDomainRequest?An:ce),bt._logger.debug("Loaded!"),bt.leaveBreadcrumb("Bugsnag loaded",{},"state"),bt._config.autoTrackSessions?bt.startSession():bt},start:function(Be){return Ci._client?(Ci._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Ci._client):(Ci._client=Ci.createClient(Be),Ci._client)},isStarted:function(){return null!=Ci._client}};return g(["resetEventCount"].concat(d(kt.prototype)),function(Be){/^_/.test(Be)||(Ci[Be]=function(){if(!Ci._client)return console.log("Bugsnag."+Be+"() was called before Bugsnag.start()");Ci._client._depth+=1;var ot=Ci._client[Be].apply(Ci._client,arguments);return Ci._client._depth-=1,ot})}),(vn=Ci).Client=kt,vn.Event=Ce,vn.Session=Ge,vn.Breadcrumb=k,vn.default=Ci,vn}()},25570:($e,j,i)=>{$e.exports=i(94400)},28986:($e,j,i)=>{"use strict";i.d(j,{$f:()=>r,n2:()=>d});var n=i(7589),e=i(53888),l=i(86177),h=i(39461);const o=new n.OlP("LOCAL_STORAGE_SERVICE_CONFIG");class r{static forRoot(p={}){return{ngModule:r,providers:[{provide:o,useValue:p}]}}}r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({});const u="LOCAL_STORAGE_NOT_SUPPORTED";class d{constructor(p={}){this.isSupported=!1,this.notifyOptions={setItem:!1,removeItem:!1},this.prefix="ls",this.storageType="localStorage",this.errors=new e.L,this.removeItems=new e.L,this.setItems=new e.L,this.warnings=new e.L;let{notifyOptions:m,prefix:C,storageType:v}=p;if(null!=m){let{setItem:f,removeItem:g}=m;this.setNotify(!!f,!!g)}null!=C&&this.setPrefix(C),null!=v&&this.setStorageType(v),this.errors$=new l.y(f=>this.errors=f).pipe((0,h.B)()),this.removeItems$=new l.y(f=>this.removeItems=f).pipe((0,h.B)()),this.setItems$=new l.y(f=>this.setItems=f).pipe((0,h.B)()),this.warnings$=new l.y(f=>this.warnings=f).pipe((0,h.B)()),this.isSupported=this.checkSupport()}add(p,m){return console&&console.warn&&(console.warn("This function is deprecated."),console.warn("Use `LocalStorageService.set` instead.")),this.set(p,m)}clearAll(p){let m=this.prefix?new RegExp("^"+this.prefix):new RegExp(""),C=p?new RegExp(p):new RegExp("");if(!this.isSupported)return this.warnings.next(u),!1;let v=this.prefix.length;for(let f in this.webStorage)if(m.test(f)&&C.test(f.substr(v)))try{this.remove(f.substr(v))}catch(g){return this.errors.next(g.message),!1}return!0}deriveKey(p){return`${this.prefix}${p}`}get(p){if(!this.isSupported)return this.warnings.next(u),null;let m=this.webStorage?this.webStorage.getItem(this.deriveKey(p)):null;if(!m||"null"===m)return null;try{return JSON.parse(m)}catch(C){return null}}getStorageType(){return this.storageType}keys(){if(!this.isSupported)return this.warnings.next(u),[];let p=this.prefix.length,m=[];for(let C in this.webStorage)if(C.substr(0,p)===this.prefix)try{m.push(C.substr(p))}catch(v){return this.errors.next(v.message),[]}return m}length(){let p=0,m=this.webStorage;for(let C=0;C{this.isSupported||(this.warnings.next(u),m=!1);try{this.webStorage.removeItem(this.deriveKey(C)),this.notifyOptions.removeItem&&this.removeItems.next({key:C,storageType:this.storageType})}catch(v){this.errors.next(v.message),m=!1}}),m}set(p,m){if(m=void 0===m?null:JSON.stringify(m),!this.isSupported)return this.warnings.next(u),!1;try{this.webStorage&&this.webStorage.setItem(this.deriveKey(p),m),this.notifyOptions.setItem&&this.setItems.next({key:p,newvalue:m,storageType:this.storageType})}catch(C){return this.errors.next(C.message),!1}return!0}checkSupport(){try{let p=this.storageType in window&&null!==window[this.storageType];if(p){this.webStorage=window[this.storageType];let m=this.deriveKey(`__${Math.round(1e7*Math.random())}`);this.webStorage.setItem(m,""),this.webStorage.removeItem(m)}return p}catch(p){return this.errors.next(p.message),!1}}setPrefix(p){this.prefix=p;this.prefix&&!this.prefix.endsWith(".")&&(this.prefix=this.prefix?`${this.prefix}.`:"")}setStorageType(p){this.storageType=p}setNotify(p,m){null!=p&&(this.notifyOptions.setItem=p),null!=m&&(this.notifyOptions.removeItem=m)}}d.\u0275fac=function(p){return new(p||d)(n.LFG(o,8))},d.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d.ctorParameters=()=>[{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[o]}]}],d.ngInjectableDef=(0,n.Ez6)({factory:function(){return new d((0,n.f3M)(o,8))},token:d,providedIn:"root"})},42983:($e,j,i)=>{"use strict";i.d(j,{b:()=>m,wn:()=>g});var n=i(7589),e=i(79194),l=i(4944),h=i(18078),o=i(41389),r=i(59665),t=i(29921),u=i(52470);class d{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const c=new n.OlP("ANGULARTICS2");class p{trackLocation(M){return new e.X({url:"/"})}prepareExternalUrl(M){return M}}class m{constructor(M,S){this.tracker=M,this.pageTrack=new l.t(10),this.eventTrack=new l.t(10),this.exceptionTrack=new l.t(10),this.setAlias=new l.t(10),this.setUsername=new l.t(10),this.setUserProperties=new l.t(10),this.setUserPropertiesOnce=new l.t(10),this.setSuperProperties=new l.t(10),this.setSuperPropertiesOnce=new l.t(10),this.userTimings=new l.t(10);const x=new d;this.settings=Object.assign({},x,S.settings),this.settings.pageTracking=Object.assign({},x.pageTracking,S.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(D=>this.trackUrlChange(D.url))}filterDeveloperMode(){return(0,h.h)((M,S)=>!this.settings.developerMode)}trackUrlChange(M){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(M)){const S=this.clearUrl(M);let x;x=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+S:this.tracker.prepareExternalUrl(S),this.pageTrack.next({path:x})}}matchesExcludedRoute(M){for(const S of this.settings.pageTracking.excludedRoutes)if(S instanceof RegExp&&S.test(M)||-1!==M.indexOf(S))return!0;return!1}clearUrl(M){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?M.split("/").map(S=>this.settings.pageTracking.clearQueryParams?S.split("?")[0]:S).map(S=>this.settings.pageTracking.clearHash?S.split("#")[0]:S).filter(S=>!this.settings.pageTracking.clearIds||!S.match(this.settings.pageTracking.idsRegExp)).join("/"):M}}m.\u0275fac=function(M){return new(M||m)(n.LFG(p),n.LFG(c))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac}),m.ctorParameters=()=>[{type:p},{type:void 0,decorators:[{type:n.tBr,args:[c]}]}];class C{constructor(M,S){this.router=M,this.location=S}trackLocation(M){return this.router.events.pipe((0,h.h)(S=>S instanceof u.m2),(0,h.h)(()=>!M.developerMode),(0,o.U)(S=>({url:S.urlAfterRedirects})),(0,r.g)(0))}prepareExternalUrl(M){return this.location.prepareExternalUrl(M)}}C.\u0275fac=function(M){return new(M||C)(n.LFG(u.F0),n.LFG(t.Ye))},C.\u0275prov=n.Yz7({token:C,factory:C.\u0275fac}),C.ctorParameters=()=>[{type:u.F0},{type:t.Ye}];class v{constructor(M,S,x){this.elRef=M,this.angulartics2=S,this.renderer=x,this.angularticsProperties={}}ngAfterContentInit(){this.renderer.listen(this.elRef.nativeElement,this.angulartics2On||"click",M=>this.eventTrack(M))}eventTrack(M){const S=this.angularticsAction,x=Object.assign({},this.angularticsProperties,{eventType:M.type});this.angularticsCategory&&(x.category=this.angularticsCategory),this.angularticsLabel&&(x.label=this.angularticsLabel),this.angularticsValue&&(x.value=this.angularticsValue),this.angulartics2.eventTrack.next({action:S,properties:x})}}v.\u0275fac=function(M){return new(M||v)(n.Y36(n.SBq),n.Y36(m),n.Y36(n.Qsj))},v.\u0275dir=n.lG2({type:v,selectors:[["","angulartics2On",""]],inputs:{angularticsProperties:"angularticsProperties",angulartics2On:"angulartics2On",angularticsAction:"angularticsAction",angularticsCategory:"angularticsCategory",angularticsLabel:"angularticsLabel",angularticsValue:"angularticsValue"}}),v.\u0275prov=n.Yz7({token:v,factory:v.\u0275fac}),v.ctorParameters=()=>[{type:n.SBq},{type:m},{type:n.Qsj}],v.propDecorators={angulartics2On:[{type:n.IIB,args:["angulartics2On"]}],angularticsAction:[{type:n.IIB}],angularticsCategory:[{type:n.IIB}],angularticsLabel:[{type:n.IIB}],angularticsValue:[{type:n.IIB}],angularticsProperties:[{type:n.IIB}]};class f{}f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=n.oAB({type:f}),f.\u0275inj=n.cJS({});class g{static forRoot(M,S={}){return{ngModule:g,providers:[{provide:c,useValue:{providers:M,settings:S}},m,{provide:p,useClass:C},...M]}}}g.\u0275fac=function(M){return new(M||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[f]})},96677:($e,j,i)=>{"use strict";i.d(j,{_:()=>h});var n=i(7589),e=i(42983);class l{constructor(){this.userId=null}}class h{constructor(r){this.angulartics2=r,"undefined"!=typeof dataLayer&&dataLayer&&(dataLayer=window.dataLayer=window.dataLayer||[]);const t=new l;this.angulartics2.settings.gtm=Object.assign({},t,this.angulartics2.settings.gtm),this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.pageTrack(u.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.eventTrack(u.action,u.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(u=>this.exceptionTrack(u)),this.angulartics2.setUsername.subscribe(u=>this.setUsername(u))}pageTrack(r){"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push({event:"Page View","content-name":r,userId:this.angulartics2.settings.gtm.userId})}eventTrack(r,t){t=t||{},"undefined"!=typeof dataLayer&&dataLayer&&dataLayer.push(Object.assign({event:t.event||"interaction",target:t.category||"Event",action:r,label:t.label,value:t.value,interactionType:t.noninteraction,userId:this.angulartics2.settings.gtm.userId},t.gtmCustom))}exceptionTrack(r){r&&r.appId&&r.appName&&r.appVersion?(void 0===r.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),r.exFatal=!0),r.exDescription=r.event?r.event.stack:r.description,this.eventTrack(`Exception thrown for ${r.appName} <${r.appId}@${r.appVersion}>`,{category:"Exception",label:r.exDescription})):console.error("Must be setted appId, appName and appVersion.")}setUsername(r){this.angulartics2.settings.gtm.userId=r}}h.\u0275fac=function(r){return new(r||h)(n.LFG(e.b))},h.\u0275prov=n.Yz7({token:h,factory:h.\u0275fac}),h.ctorParameters=()=>[{type:e.b}]},56214:function($e){$e.exports=function(){"use strict";function j(Re){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ve){return typeof Ve}:function(Ve){return Ve&&"function"==typeof Symbol&&Ve.constructor===Symbol&&Ve!==Symbol.prototype?"symbol":typeof Ve})(Re)}function i(Re,Ve){return(i=Object.setPrototypeOf||function(et,lt){return et.__proto__=lt,et})(Re,Ve)}function n(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Re){return!1}}function e(Re,Ve,Ce){return(e=n()?Reflect.construct:function(lt,xt,Zt){var Nt=[null];Nt.push.apply(Nt,xt);var je=new(Function.bind.apply(lt,Nt));return Zt&&i(je,Zt.prototype),je}).apply(null,arguments)}function l(Re){return h(Re)||o(Re)||r(Re)||u()}function h(Re){if(Array.isArray(Re))return t(Re)}function o(Re){if("undefined"!=typeof Symbol&&null!=Re[Symbol.iterator]||null!=Re["@@iterator"])return Array.from(Re)}function r(Re,Ve){if(Re){if("string"==typeof Re)return t(Re,Ve);var Ce=Object.prototype.toString.call(Re).slice(8,-1);if("Object"===Ce&&Re.constructor&&(Ce=Re.constructor.name),"Map"===Ce||"Set"===Ce)return Array.from(Re);if("Arguments"===Ce||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return t(Re,Ve)}}function t(Re,Ve){(null==Ve||Ve>Re.length)&&(Ve=Re.length);for(var Ce=0,et=new Array(Ve);Ce1?Ce-1:0),lt=1;lt/gm),jt=f(/\${[\w\W]*}/gm),Dt=f(/^data-[\-\w.\u00B7-\uFFFF]/),we=f(/^aria-[\-\w]+$/),se=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ve=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pe=f(/^html$/i),he=function(){return"undefined"==typeof window?null:window},Y=function(Ve,Ce){if("object"!==j(Ve)||"function"!=typeof Ve.createPolicy)return null;var et=null,lt="data-tt-policy-suffix";Ce.currentScript&&Ce.currentScript.hasAttribute(lt)&&(et=Ce.currentScript.getAttribute(lt));var xt="dompurify"+(et?"#"+et:"");try{return Ve.createPolicy(xt,{createHTML:function(Nt){return Nt},createScriptURL:function(Nt){return Nt}})}catch(Zt){return console.warn("TrustedTypes policy "+xt+" could not be created."),null}};function Ee(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he(),Ve=function(Tt){return Ee(Tt)};if(Ve.version="2.4.1",Ve.removed=[],!Re||!Re.document||9!==Re.document.nodeType)return Ve.isSupported=!1,Ve;var Ce=Re.document,et=Re.document,lt=Re.DocumentFragment,xt=Re.HTMLTemplateElement,Zt=Re.Node,Nt=Re.Element,nt=Re.NodeFilter,je=Re.NamedNodeMap,Ie=void 0===je?Re.NamedNodeMap||Re.MozNamedAttrMap:je,ke=Re.HTMLFormElement,gt=Re.DOMParser,Oe=Re.trustedTypes,mt=Nt.prototype,qt=re(mt,"cloneNode"),hn=re(mt,"nextSibling"),Ot=re(mt,"childNodes"),De=re(mt,"parentNode");if("function"==typeof xt){var me=et.createElement("template");me.content&&me.content.ownerDocument&&(et=me.content.ownerDocument)}var q=Y(Oe,Ce),ue=q?q.createHTML(""):"",Ge=et,Mt=Ge.implementation,It=Ge.createNodeIterator,We=Ge.createDocumentFragment,Xe=Ge.getElementsByTagName,kt=Ce.importNode,Jt={};try{Jt=Z(et).documentMode?et.documentMode:{}}catch(Xt){}var On={};Ve.isSupported="function"==typeof De&&Mt&&void 0!==Mt.createHTMLDocument&&9!==Jt;var er,ut,An=Qe,Wn=Ct,it=jt,ce=Dt,Le=we,st=ve,qe=te,Kt=se,Pt=null,St=H({},[].concat(l(_e),l(pe),l(Ke),l(pt),l(Ae))),un=null,Sn=H({},[].concat(l(Ze),l(Se),l(Ne),l(Et))),Rn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),qn=null,_i=null,Ht=!0,ie=!0,ye=!1,ft=!1,wt=!1,_n=!1,hi=!1,Si=!1,wi=!1,li=!1,Ti=!0,$i=!1,nr="user-content-",Mr=!0,ir=!1,xi={},Hi=null,ar=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ki=null,fr=H({},["audio","video","img","source","image","track"]),Dr=null,mr=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qi="http://www.w3.org/1998/Math/MathML",rr="http://www.w3.org/2000/svg",zi="http://www.w3.org/1999/xhtml",lr=zi,ji=!1,ur=null,zr=H({},[Qi,rr,zi],O),Zi=["application/xhtml+xml","text/html"],an="text/html",Lt=null,nn=et.createElement("form"),Bn=function(Tt){return Tt instanceof RegExp||Tt instanceof Function},ti=function(Tt){Lt&&Lt===Tt||((!Tt||"object"!==j(Tt))&&(Tt={}),Tt=Z(Tt),er=er=-1===Zi.indexOf(Tt.PARSER_MEDIA_TYPE)?an:Tt.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===er?O:L,Pt="ALLOWED_TAGS"in Tt?H({},Tt.ALLOWED_TAGS,ut):St,un="ALLOWED_ATTR"in Tt?H({},Tt.ALLOWED_ATTR,ut):Sn,ur="ALLOWED_NAMESPACES"in Tt?H({},Tt.ALLOWED_NAMESPACES,O):zr,Dr="ADD_URI_SAFE_ATTR"in Tt?H(Z(mr),Tt.ADD_URI_SAFE_ATTR,ut):mr,ki="ADD_DATA_URI_TAGS"in Tt?H(Z(fr),Tt.ADD_DATA_URI_TAGS,ut):fr,Hi="FORBID_CONTENTS"in Tt?H({},Tt.FORBID_CONTENTS,ut):ar,qn="FORBID_TAGS"in Tt?H({},Tt.FORBID_TAGS,ut):{},_i="FORBID_ATTR"in Tt?H({},Tt.FORBID_ATTR,ut):{},xi="USE_PROFILES"in Tt&&Tt.USE_PROFILES,Ht=!1!==Tt.ALLOW_ARIA_ATTR,ie=!1!==Tt.ALLOW_DATA_ATTR,ye=Tt.ALLOW_UNKNOWN_PROTOCOLS||!1,ft=Tt.SAFE_FOR_TEMPLATES||!1,wt=Tt.WHOLE_DOCUMENT||!1,Si=Tt.RETURN_DOM||!1,wi=Tt.RETURN_DOM_FRAGMENT||!1,li=Tt.RETURN_TRUSTED_TYPE||!1,hi=Tt.FORCE_BODY||!1,Ti=!1!==Tt.SANITIZE_DOM,$i=Tt.SANITIZE_NAMED_PROPS||!1,Mr=!1!==Tt.KEEP_CONTENT,ir=Tt.IN_PLACE||!1,Kt=Tt.ALLOWED_URI_REGEXP||Kt,lr=Tt.NAMESPACE||zi,Tt.CUSTOM_ELEMENT_HANDLING&&Bn(Tt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Rn.tagNameCheck=Tt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Tt.CUSTOM_ELEMENT_HANDLING&&Bn(Tt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Rn.attributeNameCheck=Tt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Tt.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof Tt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Rn.allowCustomizedBuiltInElements=Tt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ft&&(ie=!1),wi&&(Si=!0),xi&&(Pt=H({},l(Ae)),un=[],!0===xi.html&&(H(Pt,_e),H(un,Ze)),!0===xi.svg&&(H(Pt,pe),H(un,Se),H(un,Et)),!0===xi.svgFilters&&(H(Pt,Ke),H(un,Se),H(un,Et)),!0===xi.mathMl&&(H(Pt,pt),H(un,Ne),H(un,Et))),Tt.ADD_TAGS&&(Pt===St&&(Pt=Z(Pt)),H(Pt,Tt.ADD_TAGS,ut)),Tt.ADD_ATTR&&(un===Sn&&(un=Z(un)),H(un,Tt.ADD_ATTR,ut)),Tt.ADD_URI_SAFE_ATTR&&H(Dr,Tt.ADD_URI_SAFE_ATTR,ut),Tt.FORBID_CONTENTS&&(Hi===ar&&(Hi=Z(Hi)),H(Hi,Tt.FORBID_CONTENTS,ut)),Mr&&(Pt["#text"]=!0),wt&&H(Pt,["html","head","body"]),Pt.table&&(H(Pt,["tbody"]),delete qn.tbody),v&&v(Tt),Lt=Tt)},zn=H({},["mi","mo","mn","ms","mtext"]),di=H({},["foreignobject","desc","title","annotation-xml"]),Vn=H({},["title","style","font","a","script"]),ai=H({},pe);H(ai,Ke),H(ai,rt);var jn=H({},pt);H(jn,ct);var Gn=function(Tt){var Qt=De(Tt);(!Qt||!Qt.tagName)&&(Qt={namespaceURI:lr,tagName:"template"});var sn=L(Tt.tagName),Mn=L(Qt.tagName);return!!ur[Tt.namespaceURI]&&(Tt.namespaceURI===rr?Qt.namespaceURI===zi?"svg"===sn:Qt.namespaceURI===Qi?"svg"===sn&&("annotation-xml"===Mn||zn[Mn]):Boolean(ai[sn]):Tt.namespaceURI===Qi?Qt.namespaceURI===zi?"math"===sn:Qt.namespaceURI===rr?"math"===sn&&di[Mn]:Boolean(jn[sn]):Tt.namespaceURI===zi?!(Qt.namespaceURI===rr&&!di[Mn]||Qt.namespaceURI===Qi&&!zn[Mn])&&!jn[sn]&&(Vn[sn]||!ai[sn]):!("application/xhtml+xml"!==er||!ur[Tt.namespaceURI]))},vn=function(Tt){k(Ve.removed,{element:Tt});try{Tt.parentNode.removeChild(Tt)}catch(Qt){try{Tt.outerHTML=ue}catch(sn){Tt.remove()}}},pi=function(Tt,Qt){try{k(Ve.removed,{attribute:Qt.getAttributeNode(Tt),from:Qt})}catch(sn){k(Ve.removed,{attribute:null,from:Qt})}if(Qt.removeAttribute(Tt),"is"===Tt&&!un[Tt])if(Si||wi)try{vn(Qt)}catch(sn){}else try{Qt.setAttribute(Tt,"")}catch(sn){}},Ni=function(Tt){var Qt,sn;if(hi)Tt=""+Tt;else{var Mn=U(Tt,/^[\r\n\t ]+/);sn=Mn&&Mn[0]}"application/xhtml+xml"===er&&lr===zi&&(Tt=''+Tt+"");var si=q?q.createHTML(Tt):Tt;if(lr===zi)try{Qt=(new gt).parseFromString(si,er)}catch(Nn){}if(!Qt||!Qt.documentElement){Qt=Mt.createDocument(lr,"template",null);try{Qt.documentElement.innerHTML=ji?"":si}catch(Nn){}}var In=Qt.body||Qt.documentElement;return Tt&&sn&&In.insertBefore(et.createTextNode(sn),In.childNodes[0]||null),lr===zi?Xe.call(Qt,wt?"html":"body")[0]:wt?Qt.documentElement:In},vr=function(Tt){return It.call(Tt.ownerDocument||Tt,Tt,nt.SHOW_ELEMENT|nt.SHOW_COMMENT|nt.SHOW_TEXT,null,!1)},pr=function(Tt){return Tt instanceof ke&&("string"!=typeof Tt.nodeName||"string"!=typeof Tt.textContent||"function"!=typeof Tt.removeChild||!(Tt.attributes instanceof Ie)||"function"!=typeof Tt.removeAttribute||"function"!=typeof Tt.setAttribute||"string"!=typeof Tt.namespaceURI||"function"!=typeof Tt.insertBefore||"function"!=typeof Tt.hasChildNodes)},Ci=function(Tt){return"object"===j(Zt)?Tt instanceof Zt:Tt&&"object"===j(Tt)&&"number"==typeof Tt.nodeType&&"string"==typeof Tt.nodeName},Be=function(Tt,Qt,sn){!On[Tt]||x(On[Tt],function(Mn){Mn.call(Ve,Qt,sn,Lt)})},ot=function(Tt){var Qt;if(Be("beforeSanitizeElements",Tt,null),pr(Tt)||w(/[\u0080-\uFFFF]/,Tt.nodeName))return vn(Tt),!0;var sn=ut(Tt.nodeName);if(Be("uponSanitizeElement",Tt,{tagName:sn,allowedTags:Pt}),Tt.hasChildNodes()&&!Ci(Tt.firstElementChild)&&(!Ci(Tt.content)||!Ci(Tt.content.firstElementChild))&&w(/<[/\w]/g,Tt.innerHTML)&&w(/<[/\w]/g,Tt.textContent)||"select"===sn&&w(/