var uM=Object.defineProperty,dM=Object.defineProperties,hM=Object.getOwnPropertyDescriptors,Uv=Object.getOwnPropertySymbols,_M=Object.prototype.hasOwnProperty,pM=Object.prototype.propertyIsEnumerable,Fv=(Be,S,i)=>S in Be?uM(Be,S,{enumerable:!0,configurable:!0,writable:!0,value:i}):Be[S]=i,po=(Be,S)=>{for(var i in S||(S={}))_M.call(S,i)&&Fv(Be,i,S[i]);if(Uv)for(var i of Uv(S))pM.call(S,i)&&Fv(Be,i,S[i]);return Be},Yo=(Be,S)=>dM(Be,hM(S));(self.webpackChunktytapp=self.webpackChunktytapp||[]).push([[179],{75545:(Be,S,i)=>{"use strict";i.d(S,{ZT:()=>e,gn:()=>o,mG:()=>u,pi:()=>a,w6:()=>t});var n=function(W,x){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,R){k.__proto__=R}||function(k,R){for(var H in R)Object.prototype.hasOwnProperty.call(R,H)&&(k[H]=R[H])})(W,x)};function e(W,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function k(){this.constructor=W}n(W,x),W.prototype=null===x?Object.create(x):(k.prototype=x.prototype,new k)}var a=function(){return a=Object.assign||function(x){for(var k,R=1,H=arguments.length;R=0;Y--)(V=W[Y])&&(j=(H<3?V(j):H>3?V(x,k,j):V(x,k))||j);return H>3&&j&&Object.defineProperty(x,k,j),j}function t(W,x){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(W,x)}function u(W,x,k,R){return new(k||(k=Promise))(function(j,V){function Y(Re){try{oe(R.next(Re))}catch(We){V(We)}}function re(Re){try{oe(R.throw(Re))}catch(We){V(We)}}function oe(Re){Re.done?j(Re.value):function H(j){return j instanceof k?j:new k(function(V){V(j)})}(Re.value).then(Y,re)}oe((R=R.apply(W,x||[])).next())})}Object.create;Object.create},61057:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.CDNProvider=void 0;var i=function n(){};S.CDNProvider=i},28721:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},77976:(Be,S)=>{"use strict";var n;Object.defineProperty(S,"__esModule",{value:!0}),S.CommentsOrder=void 0,(n=S.CommentsOrder||(S.CommentsOrder={})).NEWEST="newest",n.OLDEST="oldest",n.LIKES="likes"},62133:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},22297:function(Be,S,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 h in c)Object.prototype.hasOwnProperty.call(c,h)&&(d[h]=c[h])})(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(h,m){function b(p){try{g(d.next(p))}catch(y){m(y)}}function v(p){try{g(d.throw(p))}catch(y){m(y)}}function g(p){p.done?h(p.value):function c(h){return h instanceof u?h:new u(function(m){m(h)})}(p.value).then(b,v)}g((d=d.apply(r,t||[])).next())})},a=this&&this.__generator||function(r,t){var d,c,h,m,u={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return m={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function b(g){return function(p){return function v(g){if(d)throw new TypeError("Generator is already executing.");for(;u;)try{if(d=1,c&&(h=2&g[0]?c.return:g[0]?c.throw||((h=c.return)&&h.call(c),0):c.next)&&!(h=h.call(c,g[1])).done)return h;switch(c=0,h&&(g=[2&g[0],h.value]),g[0]){case 0:case 1:h=g;break;case 4:return u.label++,{value:g[1],done:!1};case 5:u.label++,c=g[1],g=[0];continue;case 7:g=u.ops.pop(),u.trys.pop();continue;default:if(!(h=(h=u.trys).length>0&&h[h.length-1])&&(6===g[0]||2===g[0])){u=0;continue}if(3===g[0]&&(!h||g[1]>h[0]&&g[1]0&&d[d.length-1])&&(6===b[0]||2===b[0])){r=0;continue}if(3===b[0]&&(!d||b[1]>d[0]&&b[1]0&&this._attempt>=this.maxAttempts)return void this.close(503,"Service Unavailable");this.attemptToReconnect()}}else this.safelyClose(o)},Object.defineProperty(_.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}),_.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))},_.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()},_.prototype.setNotReady=function(){this._ready&&console.log("[Banta/DurableSocket] Connection is no longer ready."),this._ready=!1},_.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(_.prototype,"binaryType",{get:function(){return this._socket.binaryType},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"bufferedAmount",{get:function(){return this._socket.bufferedAmount},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extensions",{get:function(){return this._socket.extensions},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"CLOSED",{get:function(){return WebSocket.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"CLOSING",{get:function(){return WebSocket.CLOSING},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"CONNECTING",{get:function(){return WebSocket.CONNECTING},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"OPEN",{get:function(){return WebSocket.OPEN},enumerable:!1,configurable:!0}),Object.defineProperty(_.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(_.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(_.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(_.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(_.prototype,"protocol",{get:function(){return this._socket.protocol},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"readyState",{get:function(){return this._socket.readyState},enumerable:!1,configurable:!0}),_.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(_.prototype,"isReady",{get:function(){return this._ready},enumerable:!1,configurable:!0}),_.prototype.send=function(o){this._ready?this._socket.send(o):this._messageQueue.push(o)},_.prototype.sendImmediately=function(o){this._socket.send(o)},_.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))},_.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))},_.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]}})})},_.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},_}();S.DurableSocket=a},39240:(Be,S)=>{"use strict";var n;Object.defineProperty(S,"__esModule",{value:!0}),S.FilterMode=void 0,(n=S.FilterMode||(S.FilterMode={})).ALL="all",n.MINE="mine",n.THREADS="threads",n.MY_LIKES="my-likes"},15430:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.filterObject=void 0,S.filterObject=function i(n,e){return e.reduce(function(a,_){return _ in n&&(a[_]=n[_]),a},{})}},30509:function(Be,S,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(a,_,o,r){void 0===r&&(r=o);var t=Object.getOwnPropertyDescriptor(_,o);(!t||("get"in t?!_.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return _[o]}}),Object.defineProperty(a,r,t)}:function(a,_,o,r){void 0===r&&(r=o),a[r]=_[o]}),e=this&&this.__exportStar||function(a,_){for(var o in a)"default"!==o&&!Object.prototype.hasOwnProperty.call(_,o)&&n(_,a,o)};Object.defineProperty(S,"__esModule",{value:!0}),e(i(28721),S),e(i(62133),S),e(i(53075),S),e(i(7368),S),e(i(58826),S),e(i(61057),S),e(i(22297),S),e(i(34316),S),e(i(59972),S),e(i(19007),S),e(i(23189),S),e(i(15430),S),e(i(77976),S),e(i(39240),S),e(i(28764),S),e(i(65898),S),e(i(80082),S),e(i(43305),S),e(i(59585),S),e(i(59969),S)},23189:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.Injectable=void 0,S.Injectable=function i(){return function(n){}}},53075:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},7368:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},58826:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.NotificationsProvider=void 0;var i=function n(){};S.NotificationsProvider=i},80082:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},28764:function(Be,S,i){"use strict";var n=this&&this.__awaiter||function(b,v,g,p){return new(g||(g=Promise))(function(C,O){function P(U){try{A(p.next(U))}catch(I){O(I)}}function T(U){try{A(p.throw(U))}catch(I){O(I)}}function A(U){U.done?C(U.value):function y(C){return C instanceof g?C:new g(function(O){O(C)})}(U.value).then(P,T)}A((p=p.apply(b,v||[])).next())})},e=this&&this.__generator||function(b,v){var p,y,C,O,g={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return O={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(O[Symbol.iterator]=function(){return this}),O;function P(A){return function(U){return function T(A){if(p)throw new TypeError("Generator is already executing.");for(;g;)try{if(p=1,y&&(C=2&A[0]?y.return:A[0]?y.throw||((C=y.return)&&C.call(y),0):y.next)&&!(C=C.call(y,A[1])).done)return C;switch(y=0,C&&(A=[2&A[0],C.value]),A[0]){case 0:case 1:C=A;break;case 4:return g.label++,{value:A[1],done:!1};case 5:g.label++,y=A[1],A=[0];continue;case 7:A=g.ops.pop(),g.trys.pop();continue;default:if(!(C=(C=g.trys).length>0&&C[C.length-1])&&(6===A[0]||2===A[0])){g=0;continue}if(3===A[0]&&(!C||A[1]>C[0]&&A[1]0&&console.error("[Banta/RPC] Failed ".concat(v," in-flight requests due to connection failure")),g>0&&console.warn("[Banta/RPC] Rescheduled ".concat(g," in-flight requests due to connection failure"))},b.prototype.onReceiveMessage=function(v){return n(this,void 0,void 0,function(){var g,p,y,C,P;return e(this,function(T){switch(T.label){case 0:if(!function t(b){return"request"===b.type}(v))return[3,7];if("call"!==this.getRpcType(v.method)||"function"!=typeof this[v.method])return[3,5];g=void 0,p=void 0,T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this[v.method].apply(this,v.parameters)];case 2:return g=T.sent(),[3,4];case 3:return y=T.sent(),p=y instanceof Error?{message:y.message,stack:y.stack}:y,[3,4];case 4:return this.rawSend({type:"response",id:v.id,value:g,error:p}),[2];case 5:this.rawSend({type:"response",id:v.id,error:{code:"invalid-call",message:"No such method '".concat(v.method,"'")}}),T.label=6;case 6:return[2];case 7:return function u(b){return"response"===b.type}(v)?(C=this._callMap.get(v.id),C.request,(P=C.handler)?(this._callMap.delete(v.id),P(v),[2]):(console.error("Received response to unknown request '".concat(v.id,"'")),[2])):function d(b){return"event"===b.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])}})})},b.prototype.getRpcType=function(v){return Reflect.getMetadata("rpc:type",this.constructor.prototype,v)||"none"},b.prototype.getRpcCallableOptions=function(v){var g;return null!==(g=Reflect.getMetadata("rpc:callableOptions",this.constructor.prototype,v))&&void 0!==g?g:{}},b.prototype.close=function(){this._socket.close()},b}();S.SocketRPC=m},34316:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},59585:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},43305:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},59969:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.buildQuery=void 0,S.buildQuery=function i(n){for(var e=new URLSearchParams,a=0,_=Object.entries(n);a<_.length;a++){var o=_[a],r=o[0],t=o[1];void 0!==t&&e.append(r,t)}return e.toString()}},59972:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},19007:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0})},94400:Be=>{Be.exports=function(){var S,e=["navigation","request","process","log","user","state","error","manual"],a=function(Ve,_t,Dt){for(var Mt=Dt,Kt=0,nn=Ve.length;Kt=Ve&&Dt<=_t}},h=function(Ve){return"function"==typeof Ve||r(Ve)&&_(Ve,function(_t){return"function"==typeof _t}).length===Ve.length},m=function(Ve){return"string"==typeof Ve&&!!Ve.length},b={},v=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};b.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:m},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(Ve){return void 0===Ve||m(Ve)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(Ve){return void 0===Ve||m(Ve)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Ve){return!0===Ve||!1===Ve}},enabledErrorTypes:{defaultValue:function(){return v()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(Ve){if("object"!=typeof Ve||!Ve)return!1;var _t=d(Ve),Dt=d(v());return!(_(_t,function(Mt){return o(Dt,Mt)}).length<_t.length||_(d(Ve),function(Mt){return"boolean"!=typeof Ve[Mt]}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:h},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:h},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:h},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(Ve){return Ve&&"object"==typeof Ve&&m(Ve.notify)&&m(Ve.sessions)&&0===_(d(Ve),function(_t){return!o(["notify","sessions"],_t)}).length}},autoTrackSessions:{defaultValue:function(Ve){return!0},message:"should be true|false",validate:function(Ve){return!0===Ve||!1===Ve}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(Ve){return null===Ve||r(Ve)&&_(Ve,function(_t){return"string"==typeof _t}).length===Ve.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(Ve){return"string"==typeof Ve&&Ve.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(Ve){return c(0,100)(Ve)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(Ve){return null===Ve||r(Ve)&&a(Ve,function(_t,Dt){return!1===_t?_t:o(e,Dt)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(Ve){return void 0===Ve||"string"==typeof Ve}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(Ve){return null===Ve||Ve&&a(d(Ve),function(_t,Dt){return _t&&o(["id","email","name"],Dt)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(Ve){return"object"==typeof Ve&&null!==Ve}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(Ve){return!Ve||Ve&&a(["debug","info","warn","error"],function(_t,Dt){return _t&&"function"==typeof Ve[Dt]},!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(Ve){return r(Ve)&&Ve.length===_(Ve,function(_t){return"string"==typeof _t||_t&&"function"==typeof _t.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(Ve){return r(Ve)&&Ve.length===_(Ve,function(_t){return _t&&"object"==typeof _t&&"function"==typeof _t.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(Ve){return r(Ve)&&Ve.length===_(Ve,function(_t){return _t&&"object"==typeof _t&&"string"==typeof _t.name}).length}}};var g=function(Ve){for(var _t=1;_t-1&&(Ht=Ht.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var sn=Ht.replace(/^\s+/,"").replace(/\(eval code/g,"("),dn=sn.match(/ (\((.+):(\d+):(\d+)\)$)/),Gn=(sn=dn?sn.replace(dn[0],""):sn).split(/\s+/).slice(1),wn=this.extractLocation(dn?dn[1]:Gn.pop()),Zn=Gn.join(" ")||void 0,Zi=["eval",""].indexOf(wn[0])>-1?void 0:wn[0];return new _t({functionName:Zn,fileName:Zi,lineNumber:wn[1],columnNumber:wn[2],source:Ht})},this)},parseFFOrSafari:function(jt){return jt.stack.split("\n").filter(function(Ht){return!Ht.match(Kt)},this).map(function(Ht){if(Ht.indexOf(" > eval")>-1&&(Ht=Ht.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===Ht.indexOf("@")&&-1===Ht.indexOf(":"))return new _t({functionName:Ht});var sn=/((.*".+"[^@]*)?[^@]*)(?:@)/,dn=Ht.match(sn),Gn=dn&&dn[1]?dn[1]:void 0,wn=this.extractLocation(Ht.replace(sn,""));return new _t({functionName:Gn,fileName:wn[0],lineNumber:wn[1],columnNumber:wn[2],source:Ht})},this)},parseOpera:function(jt){return!jt.stacktrace||jt.message.indexOf("\n")>-1&&jt.message.split("\n").length>jt.stacktrace.split("\n").length?this.parseOpera9(jt):jt.stack?this.parseOpera11(jt):this.parseOpera10(jt)},parseOpera9:function(jt){for(var Nt=/Line (\d+).*script (?:in )?(\S+)/i,Ht=jt.message.split("\n"),sn=[],dn=2,Gn=Ht.length;dn/,"$2").replace(/\([^\)]*\)/g,"")||void 0;Gn.match(/\(([^\)]*)\)/)&&(Zn=Gn.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var Zi=void 0===Zn||"[arguments not available]"===Zn?void 0:Zn.split(",");return new _t({functionName:wn,args:Zi,fileName:dn[0],lineNumber:dn[1],columnNumber:dn[2],source:Ht})},this)}}});var L=I,B=function(Ve,_t,Dt,Mt){var Kt=Mt&&Mt.redactedKeys?Mt.redactedKeys:[],nn=Mt&&Mt.redactedPaths?Mt.redactedPaths:[];return JSON.stringify(Re(Ve,Kt,nn),_t,Dt)},F=20,W=25e3,x=8,k="...";function R(Ve){return Ve instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(Ve))}function H(Ve){return"[Throws: "+(Ve?Ve.message:"?")+"]"}function j(Ve,_t){for(var Dt=0,Mt=Ve.length;Dtx&&Kt>W}if(Kt++,Nt.length>F||Ht())return k;if(null===jt||"object"!=typeof jt)return jt;if(j(Mt,jt))return"[Circular]";if(Mt.push(jt),"function"==typeof jt.toJSON)try{Kt--;var sn=nn(jt.toJSON(),Nt);return Mt.pop(),sn}catch(pi){return H(pi)}if(R(jt)){Kt--;var Gn=nn({name:jt.name,message:jt.message},Nt);return Mt.pop(),Gn}if(re(jt)){for(var wn=[],Zn=0,Zi=jt.length;Zn-1&&!_t.file&&!_t.method&&(_t.file="global code"),_t},J=function(Ve){return/^global code$/i.test(Ve)?"global code":Ve},Oe=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},ue=function(Ve){return"string"==typeof Ve?Ve:""};function q(Ve,_t,Dt,Mt){return{errorClass:ue(Ve),errorMessage:ue(_t),type:Dt,stacktrace:a(Mt,function(Kt,nn){var jt=he(nn);try{return"{}"===JSON.stringify(jt)?Kt:Kt.concat(jt)}catch(Nt){return Kt}},[])}}function Ee(Ve){return Ve.cause?[Ve].concat(Ee(Ve.cause)):[Ve]}ie.getStacktrace=function(Ve,_t,Dt){if(Ie(Ve))return L.parse(Ve).slice(_t);try{return _(Ae.backtrace(),function(Mt){return-1===(Mt.functionName||"").indexOf("StackGenerator$$")}).slice(1+Dt)}catch(Mt){return[]}},ie.create=function(Ve,_t,Dt,Mt,Kt,nn){void 0===Kt&&(Kt=0);var sn,jt=Le(Ve,_t,Mt,nn),Nt=jt[0],Ht=jt[1];try{var dn=ie.getStacktrace(Nt,Ht>0?1+Ht+Kt:0,1+Kt);sn=new ie(Nt.name,Nt.message,dn,Dt,Ve)}catch(Zi){sn=new ie(Nt.name,Nt.message,[],Dt,Ve)}if("InvalidError"===Nt.name&&sn.addMetadata(""+Mt,"non-error parameter",xe(Ve)),Nt.cause){var Gn,wn=Ee(Nt).slice(1),Zn=p(wn,function(Zi){var Kn=yt(Zi)&&Ie(Zi)?L.parse(Zi):[],pi=Le(Zi,!0,"error cause")[0];return"InvalidError"===pi.name&&sn.addMetadata("error cause",xe(Zi)),q(pi.name,pi.message,ie.__type,Kn)});(Gn=sn.errors).push.apply(Gn,Zn)}return sn};var xe=function(Ve){return null===Ve?"null":void 0===Ve?"undefined":Ve},Le=function(Ve,_t,Dt,Mt){var Kt,nn=0,jt=function(Nt){var Ht="error cause"===Dt?"was":"received";Mt&&Mt.warn(Dt+" "+Ht+' a non-error: "'+Nt+'"');var sn=new Error(Dt+" "+Ht+' a non-error. See "'+Dt+'" tab for more detail.');return sn.name="InvalidError",sn};if(_t)switch(typeof Ve){case"string":case"number":case"boolean":Kt=new Error(String(Ve)),nn+=1;break;case"function":Kt=jt("function"),nn+=2;break;case"object":null!==Ve&&yt(Ve)?Kt=Ve:null!==Ve&&Fe(Ve)?((Kt=new Error(Ve.message||Ve.errorMessage)).name=Ve.name||Ve.errorClass,nn+=1):(Kt=jt(null===Ve?"null":"unsupported object"),nn+=2);break;default:Kt=jt("nothing"),nn+=2}else yt(Ve)?Kt=Ve:(Kt=jt(typeof Ve),nn+=2);if(!Ie(Kt))try{throw Kt}catch(Nt){Ie(Nt)&&(Kt=Nt,nn=1)}return[Kt,nn]};ie.__type="browserjs";var Fe=function(Ve){return!("string"!=typeof Ve.name&&"string"!=typeof Ve.errorClass||"string"!=typeof Ve.message&&"string"!=typeof Ve.errorMessage)},ve=ie,tt=function(Ve,_t,Dt){var Mt=0,Kt=function(){if(Mt>=Ve.length)return Dt(null,!0);_t(Ve[Mt],function(nn,jt){return nn?Dt(nn):!1===jt?Dt(null,!1):(Mt++,void Kt())})};Kt()},ht=function(Ve,_t,Dt,Mt){tt(Ve,function(nn,jt){if("function"!=typeof nn)return jt(null);try{if(2!==nn.length){var Nt=nn(_t);return Nt&&"function"==typeof Nt.then?Nt.then(function(Ht){return setTimeout(function(){return jt(null,Ht)})},function(Ht){setTimeout(function(){return Dt(Ht),jt(null,!0)})}):jt(null,Nt)}nn(_t,function(Ht,sn){if(Ht)return Dt(Ht),jt(null);jt(null,sn)})}catch(Ht){Dt(Ht),jt(null)}},Mt)},At=function(Ve,_t,Dt,Mt){for(var Kt=!1,nn=Ve.slice();!Kt&&nn.length;)try{Kt=!1===nn.pop()(_t)}catch(jt){Mt.error("Error occurred in "+Dt+" callback, continuing anyway\u2026"),Mt.error(jt)}return Kt},kt=function(_t,Dt){var Mt="000000000"+_t;return Mt.substr(Mt.length-Dt)},st="object"==typeof window?window:self,Se=0;for(var me in st)Object.hasOwnProperty.call(st,me)&&Se++;var Pe=navigator.mimeTypes?navigator.mimeTypes.length:0,Te=kt((Pe+navigator.userAgent.length).toString(36)+Se.toString(36),4),gt=function(){return Te},we=0,bt=4,$t=36,fn=Math.pow($t,bt);function Xt(){return kt((Math.random()*fn<<0).toString($t),bt)}function ot(){return we=wethis._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},_t._isBreadcrumbTypeEnabled=function(Mt){var Kt=this._config.enabledBreadcrumbTypes;return null===Kt||o(Kt,Mt)},_t.notify=function(Mt,Kt,nn){void 0===nn&&(nn=Tt);var jt=ve.create(Mt,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(jt,Kt,nn)},_t._notify=function(Mt,Kt,nn){var jt=this;if(void 0===nn&&(nn=Tt),Mt.app=g({},Mt.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),Mt.context=Mt.context||this._context,Mt._metadata=g({},Mt._metadata,this._metadata),Mt._features=g({},Mt._features,this._features),Mt._user=g({},Mt._user,this._user),Mt.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"),nn(null,Mt);var Nt=Mt.severity,Ht=function(dn){jt._logger.error("Error occurred in onError callback, continuing anyway\u2026"),jt._logger.error(dn)},sn=[].concat(this._cbs.e).concat(Kt);ht(sn,Mt,Ht,function(dn,Gn){if(dn&&Ht(dn),!Gn)return jt._logger.debug("Event not sent due to onError callback"),nn(null,Mt);jt._isBreadcrumbTypeEnabled("error")&&Ve.prototype.leaveBreadcrumb.call(jt,Mt.errors[0].errorClass,{errorClass:Mt.errors[0].errorClass,errorMessage:Mt.errors[0].errorMessage,severity:Mt.severity},"error"),Nt!==Mt.severity&&(Mt._handledState.severityReason={type:"userCallbackSetSeverity"}),Mt.unhandled!==Mt._handledState.unhandled&&(Mt._handledState.severityReason.unhandledOverridden=!0,Mt._handledState.unhandled=Mt.unhandled),jt._session&&(jt._session._track(Mt),Mt._session=jt._session),jt._delivery.sendEvent({apiKey:Mt.apiKey||jt._config.apiKey,notifier:jt._notifier,events:[Mt]},function(wn){return nn(wn,Mt)})})},Ve}(),He=function(Ve,_t){return new Error("Invalid configuration\n"+p(d(Ve),function(Mt){return" - "+Mt+" "+Ve[Mt]+", got "+Je(_t[Mt])}).join("\n\n"))},Je=function(Ve){switch(typeof Ve){case"string":case"number":case"object":return JSON.stringify(Ve);default:return String(Ve)}},St=wt,Qt={},Cn=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Qt.event=function(Ve,_t){var Dt=B(Ve,null,null,{redactedPaths:Cn,redactedKeys:_t});if(Dt.length>1e6&&(Ve.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+Dt.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(Dt=B(Ve,null,null,{redactedPaths:Cn,redactedKeys:_t})).length>1e6))throw new Error("payload exceeded 1MB limit");return Dt},Qt.session=function(Ve,_t){var Dt=B(Ve,null,null);if(Dt.length>1e6)throw new Error("payload exceeded 1MB limit");return Dt};var An={};An=function(Ve,_t){return void 0===_t&&(_t=window),{sendEvent:function(Dt,Mt){void 0===Mt&&(Mt=function(){});var Kt=qn(Ve._config,"notify","4",_t),nn=new _t.XDomainRequest;nn.onload=function(){Mt(null)},nn.open("POST",Kt),setTimeout(function(){try{nn.send(Qt.event(Dt,Ve._config.redactedKeys))}catch(jt){Ve._logger.error(jt),Mt(jt)}},0)},sendSession:function(Dt,Mt){void 0===Mt&&(Mt=function(){});var Kt=qn(Ve._config,"sessions","1",_t),nn=new _t.XDomainRequest;nn.onload=function(){Mt(null)},nn.open("POST",Kt),setTimeout(function(){try{nn.send(Qt.session(Dt,Ve._config.redactedKeys))}catch(jt){Ve._logger.error(jt),Mt(jt)}},0)}}};var qn=function(Ve,_t,Dt,Mt){var Kt=JSON.parse(JSON.stringify(new Date));return at(Ve.endpoints[_t],Mt.location.protocol)+"?apiKey="+encodeURIComponent(Ve.apiKey)+"&payloadVersion="+Dt+"&sentAt="+encodeURIComponent(Kt)},at=An._matchPageProtocol=function(Ve,_t){return"http:"===_t?Ve.replace(/^https:/,"http:"):Ve},_e=function(Ve,_t){return void 0===_t&&(_t=window),{sendEvent:function(Dt,Mt){void 0===Mt&&(Mt=function(){});try{var Kt=Ve._config.endpoints.notify,nn=new _t.XMLHttpRequest;nn.onreadystatechange=function(){nn.readyState===_t.XMLHttpRequest.DONE&&Mt(null)},nn.open("POST",Kt),nn.setRequestHeader("Content-Type","application/json"),nn.setRequestHeader("Bugsnag-Api-Key",Dt.apiKey||Ve._config.apiKey),nn.setRequestHeader("Bugsnag-Payload-Version","4"),nn.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),nn.send(Qt.event(Dt,Ve._config.redactedKeys))}catch(jt){Ve._logger.error(jt)}},sendSession:function(Dt,Mt){void 0===Mt&&(Mt=function(){});try{var Kt=Ve._config.endpoints.sessions,nn=new _t.XMLHttpRequest;nn.onreadystatechange=function(){nn.readyState===_t.XMLHttpRequest.DONE&&Mt(null)},nn.open("POST",Kt),nn.setRequestHeader("Content-Type","application/json"),nn.setRequestHeader("Bugsnag-Api-Key",Ve._config.apiKey),nn.setRequestHeader("Bugsnag-Payload-Version","1"),nn.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),nn.send(Qt.session(Dt,Ve._config.redactedKeys))}catch(jt){Ve._logger.error(jt)}}}},Ne=new Date,dt=function(){Ne=new Date},Xe={name:"appDuration",load:function(Ve){return Ve.addOnError(function(_t){var Dt=new Date;_t.app.duration=Dt-Ne},!0),{reset:dt}}},Vt=function(Ve){return void 0===Ve&&(Ve=window),{load:function(_t){_t.addOnError(function(Dt){void 0===Dt.context&&(Dt.context=Ve.location.pathname)},!0)}}},Pt=function(_t,Dt){var Mt="000000000"+_t;return Mt.substr(Mt.length-Dt)},It="object"==typeof window?window:self,un=0;for(var kn in It)Object.hasOwnProperty.call(It,kn)&&un++;var Sn=navigator.mimeTypes?navigator.mimeTypes.length:0,Jn=Pt((Sn+navigator.userAgent.length).toString(36)+un.toString(36),4),yi=function(){return Jn},en=0,ae=4,ye=36,Ct=Math.pow(ye,ae);function Lt(){return Pt((Math.random()*Ct<<0).toString(ye),ae)}function hn(){return en=endocument.documentElement.clientHeight?"landscape":"portrait",Dt._config.generateAnonymousId&&(Mt.id=_i()),Dt.addOnSession(function(Kt){Kt.device=g({},Kt.device,Mt),Dt._config.collectUserIp||Xi(Kt)}),Dt.addOnError(function(Kt){Kt.device=g({},Kt.device,Mt,{time:new Date}),Dt._config.collectUserIp||Xi(Kt)},!0)},configSchema:{generateAnonymousId:{validate:function(Dt){return!0===Dt||!1===Dt},defaultValue:function(){return!0},message:"should be true|false"}}}},Xi=function(Ve){var _t=Ve.getUser();(!_t||!_t.id)&&Ve.setUser(Ve.device.id)},ur=function(Ve){return void 0===Ve&&(Ve=window),{load:function(_t){_t.addOnError(function(Dt){Dt.request&&Dt.request.url||(Dt.request=g({},Dt.request,{url:Ve.location.href}))},!0)}}},Er={load:function(Ve){Ve._sessionDelegate=Mr}},Mr={startSession:function(Ve,_t){var Dt=Ve;return Dt._session=_t,Dt._pausedSession=null,null===Dt._config.enabledReleaseStages||o(Dt._config.enabledReleaseStages,Dt._config.releaseStage)?(Dt._delivery.sendSession({notifier:Dt._notifier,device:_t.device,app:_t.app,sessions:[{id:_t.id,startedAt:_t.startedAt,user:_t._user}]}),Dt):(Dt._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),Dt)},resumeSession:function(Ve){return Ve._session?Ve:Ve._pausedSession?(Ve._session=Ve._pausedSession,Ve._pausedSession=null,Ve):Ve.startSession()},pauseSession:function(Ve){Ve._pausedSession=Ve._session,Ve._session=null}},Li={load:function(Ve){Ve._config.collectUserIp||Ve.addOnError(function(_t){_t._user&&void 0===_t._user.id&&delete _t._user.id,_t._user=g({id:"[REDACTED]"},_t._user),_t.request=g({clientIp:"[REDACTED]"},_t.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(Ve){return!0===Ve||!1===Ve}}}},tr={load:function(Ve){/^(local-)?dev(elopment)?$/.test(Ve._config.releaseStage)||!Ve._isBreadcrumbTypeEnabled("log")||p(br,function(Dt){var Mt=console[Dt];console[Dt]=function(){for(var Kt=arguments.length,nn=new Array(Kt),jt=0;jt1){var Mt=Array.prototype.indexOf.call(Ve.parentNode.childNodes,Ve)+1;Dt.push(":nth-child("+Mt+")")}return 1===_t.document.querySelectorAll(Dt.join("")).length?Dt.join(""):Ve.parentNode?gr(Ve.parentNode,_t)+" > "+Dt.join(""):Dt.join("")}function ir(Ve,_t){var Dt="(...)";return Ve&&Ve.length<=_t?Ve:Ve.slice(0,_t-Dt.length)+Dt}var fr={};fr=function(Ve){return void 0===Ve&&(Ve=window),{load:function(Dt){if("addEventListener"in Ve&&Dt._isBreadcrumbTypeEnabled("navigation")){var Mt=function(Kt){return function(){return Dt.leaveBreadcrumb(Kt,{},"navigation")}};Ve.addEventListener("pagehide",Mt("Page hidden"),!0),Ve.addEventListener("pageshow",Mt("Page shown"),!0),Ve.addEventListener("load",Mt("Page loaded"),!0),Ve.document.addEventListener("DOMContentLoaded",Mt("DOMContentLoaded"),!0),Ve.addEventListener("load",function(){return Ve.addEventListener("popstate",Mt("Navigated back"),!0)}),Ve.addEventListener("hashchange",function(Kt){var nn=Kt.oldURL?{from:to(Kt.oldURL,Ve),to:to(Kt.newURL,Ve),state:Nr(Ve)}:{to:to(Ve.location.href,Ve)};Dt.leaveBreadcrumb("Hash changed",nn,"navigation")},!0),Ve.history.replaceState&&mr(Dt,Ve.history,"replaceState",Ve),Ve.history.pushState&&mr(Dt,Ve.history,"pushState",Ve)}}}};var to=function(Ve,_t){var Dt=_t.document.createElement("A");return Dt.href=Ve,""+Dt.pathname+Dt.search+Dt.hash},rr=function(Ve,_t,Dt,Mt){var Kt=to(Ve.location.href,Ve);return{title:Dt,state:_t,prevState:Nr(Ve),to:Mt||Kt,from:Kt}},mr=function(Ve,_t,Dt,Mt){var Kt=_t[Dt];_t[Dt]=function(nn,jt,Nt){Ve.leaveBreadcrumb("History "+Dt,rr(Mt,nn,jt,Nt),"navigation"),"function"==typeof Ve.resetEventCount&&Ve.resetEventCount(),Ve._config.autoTrackSessions&&Ve.startSession(),Kt.apply(_t,[nn,jt].concat(void 0!==Nt?Nt:[]))}},Nr=function(Ve){try{return Ve.history.state}catch(_t){}},Vi="request",qi=function(Ve,_t){void 0===Ve&&(Ve=[]),void 0===_t&&(_t=window);var Mt={load:function(Kt){if(Kt._isBreadcrumbTypeEnabled("request")){var nn=[Kt._config.endpoints.notify,Kt._config.endpoints.sessions].concat(Ve);jt(),sn();var dn=function(wn,Zn,Zi){var Kn={status:wn.status,request:Zn+" "+Zi};wn.status>=400?Kt.leaveBreadcrumb("fetch() failed",Kn,Vi):Kt.leaveBreadcrumb("fetch() succeeded",Kn,Vi)},Gn=function(wn,Zn){Kt.leaveBreadcrumb("fetch() error",{request:wn+" "+Zn},Vi)}}function jt(){if("addEventListener"in _t.XMLHttpRequest.prototype){var wn=_t.XMLHttpRequest.prototype.open;_t.XMLHttpRequest.prototype.open=function(Zi,Kn){var zn=this,pi=!1,Hi=function(){return Ht(Zi,Kn)},Ti=function(){return Nt(Zi,Kn,zn.status)};pi&&(this.removeEventListener("load",Ti),this.removeEventListener("error",Hi)),this.addEventListener("load",Ti),this.addEventListener("error",Hi),pi=!0,wn.apply(this,arguments)}}}function Nt(wn,Zn,Zi){if(void 0!==Zn){if("string"!=typeof Zn||!o(nn,Zn.replace(/\?.*$/,""))){var Kn={status:Zi,request:wn+" "+Zn};Zi>=400?Kt.leaveBreadcrumb("XMLHttpRequest failed",Kn,Vi):Kt.leaveBreadcrumb("XMLHttpRequest succeeded",Kn,Vi)}}else Kt._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function Ht(wn,Zn){void 0!==Zn?"string"==typeof Zn&&o(nn,Zn.replace(/\?.*$/,""))||Kt.leaveBreadcrumb("XMLHttpRequest error",{request:wn+" "+Zn},Vi):Kt._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 _t&&!_t.fetch.polyfill){var wn=_t.fetch;_t.fetch=function(){var pi,Zi=arguments,Kn=arguments[0],zn=arguments[1],Hi=null;return Kn&&"object"==typeof Kn?(Hi=Kn.url,zn&&"method"in zn?pi=zn.method:Kn&&"method"in Kn&&(pi=Kn.method)):(Hi=Kn,zn&&"method"in zn&&(pi=zn.method)),void 0===pi&&(pi="GET"),new Promise(function(Ti,Ai){wn.apply(void 0,Zi).then(function(wi){dn(wi,pi,Hi),Ti(wi)}).catch(function(wi){Gn(pi,Hi),Ai(wi)})})}}}}};return Mt},on={load:function(Ve){var _t=0;Ve.addOnError(function(Dt){if(_t>=Ve._config.maxEvents)return Ve._logger.warn("Cancelling event send due to maxEvents per session limit of "+Ve._config.maxEvents+" being reached"),!1;_t++}),Ve.resetEventCount=function(){_t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(Ve){return c(1,100)(Ve)}}}},vt={},Bt=(vt={load:function(Ve){Ve.addOnError(function(_t){var Dt=a(_t.errors,function(Mt,Kt){return Mt.concat(Kt.stacktrace)},[]);p(Dt,function(Mt){Mt.file=Bt(Mt.file)})})}})._strip=function(Ve){return"string"==typeof Ve?Ve.replace(/\?.*$/,"").replace(/#.*$/,""):Ve},an=function(Ve){return void 0===Ve&&(Ve=window),{load:function(_t){if(_t._config.autoDetectErrors&&_t._config.enabledErrorTypes.unhandledExceptions){var Mt=Ve.onerror;Ve.onerror=Dt}function Dt(Kt,nn,jt,Nt,Ht){if(0===jt&&/Script error\.?/.test(Kt))_t._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var dn,sn={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(Ht)dn=_t.Event.create(Ht,!0,sn,"window onerror",1),Bn(dn.errors[0].stacktrace,nn,jt,Nt);else if("object"!=typeof Kt||null===Kt||nn&&"string"==typeof nn||jt||Nt||Ht)dn=_t.Event.create(Kt,!0,sn,"window onerror",1),Bn(dn.errors[0].stacktrace,nn,jt,Nt);else{var Gn=Kt.type?"Event: "+Kt.type:"Error",wn=Kt.message||Kt.detail||"";(dn=_t.Event.create({name:Gn,message:wn},!0,sn,"window onerror",1)).originalError=Kt,dn.addMetadata("window onerror",{event:Kt,extraParameters:nn})}_t._notify(dn)}"function"==typeof Mt&&Mt.apply(this,arguments)}}}},Bn=function(Ve,_t,Dt,Mt){Ve[0]||Ve.push({});var Kt=Ve[0];!Kt.file&&"string"==typeof _t&&(Kt.file=_t),!Kt.lineNumber&&oi(Dt)&&(Kt.lineNumber=Dt),Kt.columnNumber||(oi(Mt)?Kt.columnNumber=Mt:window.event&&oi(window.event.errorCharacter)&&(Kt.columnNumber=window.event.errorCharacter))},oi=function(Ve){return"number"==typeof Ve&&"NaN"!==String.call(Ve)},gi=function(Ve){return void 0===Ve&&(Ve=window),{load:function(Dt){if(Dt._config.autoDetectErrors&&Dt._config.enabledErrorTypes.unhandledRejections){var Mt=function(Kt){var nn=Kt.reason,jt=!1;try{Kt.detail&&Kt.detail.reason&&(nn=Kt.detail.reason,jt=!0)}catch(Ht){}var Nt=Dt.Event.create(nn,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,Dt._logger);jt&&p(Nt.errors[0].stacktrace,Xn(nn)),Dt._notify(Nt,function(Ht){var sn;yt(Ht.originalError)&&!Ht.originalError.stack&&Ht.addMetadata("unhandledRejection handler",((sn={})[Object.prototype.toString.call(Ht.originalError)]={name:Ht.originalError.name,message:Ht.originalError.message,code:Ht.originalError.code},sn))})};"addEventListener"in Ve?Ve.addEventListener("unhandledrejection",Mt):Ve.onunhandledrejection=function(Kt,nn){Mt({detail:{reason:Kt,promise:nn}})}}}}},Xn=function(Ve){return function(_t){_t.file!==Ve.toString()&&_t.method&&(_t.method=_t.method.replace(/^\s+/,""))}},Nn={},Hn="Bugsnag JavaScript",Wn="7.16.7",Ln="https://github.com/bugsnag/bugsnag-js",ui=g({},b.schema,O),Mi={_client:null,createClient:function(Ve){"string"==typeof Ve&&(Ve={apiKey:Ve}),Ve||(Ve={});var _t=[Xe,Ii(),Vt(),ur(),on,Er,Li,vt,an(),gi(),fr(),ar(),qi(),tr,Sr()],Dt=new St(Ve,ui,_t,{name:Hn,version:Wn,url:Ln});return Dt._setDelivery(window.XDomainRequest?An:_e),Dt._logger.debug("Loaded!"),Dt.leaveBreadcrumb("Bugsnag loaded",{},"state"),Dt._config.autoTrackSessions?Dt.startSession():Dt},start:function(Ve){return Mi._client?(Mi._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Mi._client):(Mi._client=Mi.createClient(Ve),Mi._client)},isStarted:function(){return null!=Mi._client}};return p(["resetEventCount"].concat(d(St.prototype)),function(Ve){/^_/.test(Ve)||(Mi[Ve]=function(){if(!Mi._client)return console.log("Bugsnag."+Ve+"() was called before Bugsnag.start()");Mi._client._depth+=1;var _t=Mi._client[Ve].apply(Mi._client,arguments);return Mi._client._depth-=1,_t})}),(Nn=Mi).Client=St,Nn.Event=ve,Nn.Session=lt,Nn.Breadcrumb=A,Nn.default=Mi,Nn}()},25570:(Be,S,i)=>{Be.exports=i(94400)},28986:(Be,S,i)=>{"use strict";i.d(S,{$f:()=>r,n2:()=>d});var n=i(7589),e=i(53888),a=i(86177),_=i(39461);const o=new n.OlP("LOCAL_STORAGE_SERVICE_CONFIG");class r{static forRoot(h={}){return{ngModule:r,providers:[{provide:o,useValue:h}]}}}r.\u0275fac=function(h){return new(h||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({});const u="LOCAL_STORAGE_NOT_SUPPORTED";class d{constructor(h={}){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:b,storageType:v}=h;if(null!=m){let{setItem:g,removeItem:p}=m;this.setNotify(!!g,!!p)}null!=b&&this.setPrefix(b),null!=v&&this.setStorageType(v),this.errors$=new a.y(g=>this.errors=g).pipe((0,_.B)()),this.removeItems$=new a.y(g=>this.removeItems=g).pipe((0,_.B)()),this.setItems$=new a.y(g=>this.setItems=g).pipe((0,_.B)()),this.warnings$=new a.y(g=>this.warnings=g).pipe((0,_.B)()),this.isSupported=this.checkSupport()}add(h,m){return console&&console.warn&&(console.warn("This function is deprecated."),console.warn("Use `LocalStorageService.set` instead.")),this.set(h,m)}clearAll(h){let m=this.prefix?new RegExp("^"+this.prefix):new RegExp(""),b=h?new RegExp(h):new RegExp("");if(!this.isSupported)return this.warnings.next(u),!1;let v=this.prefix.length;for(let g in this.webStorage)if(m.test(g)&&b.test(g.substr(v)))try{this.remove(g.substr(v))}catch(p){return this.errors.next(p.message),!1}return!0}deriveKey(h){return`${this.prefix}${h}`}get(h){if(!this.isSupported)return this.warnings.next(u),null;let m=this.webStorage?this.webStorage.getItem(this.deriveKey(h)):null;if(!m||"null"===m)return null;try{return JSON.parse(m)}catch(b){return null}}getStorageType(){return this.storageType}keys(){if(!this.isSupported)return this.warnings.next(u),[];let h=this.prefix.length,m=[];for(let b in this.webStorage)if(b.substr(0,h)===this.prefix)try{m.push(b.substr(h))}catch(v){return this.errors.next(v.message),[]}return m}length(){let h=0,m=this.webStorage;for(let b=0;b{this.isSupported||(this.warnings.next(u),m=!1);try{this.webStorage.removeItem(this.deriveKey(b)),this.notifyOptions.removeItem&&this.removeItems.next({key:b,storageType:this.storageType})}catch(v){this.errors.next(v.message),m=!1}}),m}set(h,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(h),m),this.notifyOptions.setItem&&this.setItems.next({key:h,newvalue:m,storageType:this.storageType})}catch(b){return this.errors.next(b.message),!1}return!0}checkSupport(){try{let h=this.storageType in window&&null!==window[this.storageType];if(h){this.webStorage=window[this.storageType];let m=this.deriveKey(`__${Math.round(1e7*Math.random())}`);this.webStorage.setItem(m,""),this.webStorage.removeItem(m)}return h}catch(h){return this.errors.next(h.message),!1}}setPrefix(h){this.prefix=h;this.prefix&&!this.prefix.endsWith(".")&&(this.prefix=this.prefix?`${this.prefix}.`:"")}setStorageType(h){this.storageType=h}setNotify(h,m){null!=h&&(this.notifyOptions.setItem=h),null!=m&&(this.notifyOptions.removeItem=m)}}d.\u0275fac=function(h){return new(h||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:(Be,S,i)=>{"use strict";i.d(S,{b:()=>m,wn:()=>p});var n=i(7589),e=i(79194),a=i(4944),_=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 h{trackLocation(C){return new e.X({url:"/"})}prepareExternalUrl(C){return C}}class m{constructor(C,O){this.tracker=C,this.pageTrack=new a.t(10),this.eventTrack=new a.t(10),this.exceptionTrack=new a.t(10),this.setAlias=new a.t(10),this.setUsername=new a.t(10),this.setUserProperties=new a.t(10),this.setUserPropertiesOnce=new a.t(10),this.setSuperProperties=new a.t(10),this.setSuperPropertiesOnce=new a.t(10),this.userTimings=new a.t(10);const P=new d;this.settings=Object.assign({},P,O.settings),this.settings.pageTracking=Object.assign({},P.pageTracking,O.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(T=>this.trackUrlChange(T.url))}filterDeveloperMode(){return(0,_.h)((C,O)=>!this.settings.developerMode)}trackUrlChange(C){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(C)){const O=this.clearUrl(C);let P;P=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+O:this.tracker.prepareExternalUrl(O),this.pageTrack.next({path:P})}}matchesExcludedRoute(C){for(const O of this.settings.pageTracking.excludedRoutes)if(O instanceof RegExp&&O.test(C)||-1!==C.indexOf(O))return!0;return!1}clearUrl(C){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?C.split("/").map(O=>this.settings.pageTracking.clearQueryParams?O.split("?")[0]:O).map(O=>this.settings.pageTracking.clearHash?O.split("#")[0]:O).filter(O=>!this.settings.pageTracking.clearIds||!O.match(this.settings.pageTracking.idsRegExp)).join("/"):C}}m.\u0275fac=function(C){return new(C||m)(n.LFG(h),n.LFG(c))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac}),m.ctorParameters=()=>[{type:h},{type:void 0,decorators:[{type:n.tBr,args:[c]}]}];class b{constructor(C,O){this.router=C,this.location=O}trackLocation(C){return this.router.events.pipe((0,_.h)(O=>O instanceof u.m2),(0,_.h)(()=>!C.developerMode),(0,o.U)(O=>({url:O.urlAfterRedirects})),(0,r.g)(0))}prepareExternalUrl(C){return this.location.prepareExternalUrl(C)}}b.\u0275fac=function(C){return new(C||b)(n.LFG(u.F0),n.LFG(t.Ye))},b.\u0275prov=n.Yz7({token:b,factory:b.\u0275fac}),b.ctorParameters=()=>[{type:u.F0},{type:t.Ye}];class v{constructor(C,O,P){this.elRef=C,this.angulartics2=O,this.renderer=P,this.angularticsProperties={}}ngAfterContentInit(){this.renderer.listen(this.elRef.nativeElement,this.angulartics2On||"click",C=>this.eventTrack(C))}eventTrack(C){const O=this.angularticsAction,P=Object.assign({},this.angularticsProperties,{eventType:C.type});this.angularticsCategory&&(P.category=this.angularticsCategory),this.angularticsLabel&&(P.label=this.angularticsLabel),this.angularticsValue&&(P.value=this.angularticsValue),this.angulartics2.eventTrack.next({action:O,properties:P})}}v.\u0275fac=function(C){return new(C||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 g{}g.\u0275fac=function(C){return new(C||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({});class p{static forRoot(C,O={}){return{ngModule:p,providers:[{provide:c,useValue:{providers:C,settings:O}},m,{provide:h,useClass:b},...C]}}}p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=n.oAB({type:p}),p.\u0275inj=n.cJS({imports:[g]})},96677:(Be,S,i)=>{"use strict";i.d(S,{_:()=>_});var n=i(7589),e=i(42983);class a{constructor(){this.userId=null}}class _{constructor(r){this.angulartics2=r,"undefined"!=typeof dataLayer&&dataLayer&&(dataLayer=window.dataLayer=window.dataLayer||[]);const t=new a;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}}_.\u0275fac=function(r){return new(r||_)(n.LFG(e.b))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_.ctorParameters=()=>[{type:e.b}]},57802:Be=>{Be.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},45685:(Be,S,i)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.attributeRules=void 0;var n=i(57802),e=/[-[\]{}()*+?.,\\^$|#\s]/g;function a(r){return r.replace(e,"\\$&")}var _=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function o(r,t){return"boolean"==typeof r.ignoreCase?r.ignoreCase:"quirks"===r.ignoreCase?!!t.quirksMode:!t.xmlMode&&_.has(r.name)}S.attributeRules={equals:function(r,t,u){var d=u.adapter,c=t.name,h=t.value;return o(t,u)?(h=h.toLowerCase(),function(m){var b=d.getAttributeValue(m,c);return null!=b&&b.length===h.length&&b.toLowerCase()===h&&r(m)}):function(m){return d.getAttributeValue(m,c)===h&&r(m)}},hyphen:function(r,t,u){var d=u.adapter,c=t.name,h=t.value,m=h.length;return o(t,u)?(h=h.toLowerCase(),function(v){var g=d.getAttributeValue(v,c);return null!=g&&(g.length===m||"-"===g.charAt(m))&&g.substr(0,m).toLowerCase()===h&&r(v)}):function(v){var g=d.getAttributeValue(v,c);return null!=g&&(g.length===m||"-"===g.charAt(m))&&g.substr(0,m)===h&&r(v)}},element:function(r,t,u){var d=u.adapter,c=t.name,h=t.value;if(/\s/.test(h))return n.falseFunc;var m=new RegExp("(?:^|\\s)".concat(a(h),"(?:$|\\s)"),o(t,u)?"i":"");return function(v){var g=d.getAttributeValue(v,c);return null!=g&&g.length>=h.length&&m.test(g)&&r(v)}},exists:function(r,t,u){var d=t.name,c=u.adapter;return function(h){return c.hasAttrib(h,d)&&r(h)}},start:function(r,t,u){var d=u.adapter,c=t.name,h=t.value,m=h.length;return 0===m?n.falseFunc:o(t,u)?(h=h.toLowerCase(),function(b){var v=d.getAttributeValue(b,c);return null!=v&&v.length>=m&&v.substr(0,m).toLowerCase()===h&&r(b)}):function(b){var v;return!(null===(v=d.getAttributeValue(b,c))||void 0===v||!v.startsWith(h))&&r(b)}},end:function(r,t,u){var d=u.adapter,c=t.name,h=t.value,m=-h.length;return 0===m?n.falseFunc:o(t,u)?(h=h.toLowerCase(),function(b){var v;return(null===(v=d.getAttributeValue(b,c))||void 0===v?void 0:v.substr(m).toLowerCase())===h&&r(b)}):function(b){var v;return!(null===(v=d.getAttributeValue(b,c))||void 0===v||!v.endsWith(h))&&r(b)}},any:function(r,t,u){var d=u.adapter,c=t.name,h=t.value;if(""===h)return n.falseFunc;if(o(t,u)){var m=new RegExp(a(h),"i");return function(v){var g=d.getAttributeValue(v,c);return null!=g&&g.length>=h.length&&m.test(g)&&r(v)}}return function(b){var v;return!(null===(v=d.getAttributeValue(b,c))||void 0===v||!v.includes(h))&&r(b)}},not:function(r,t,u){var d=u.adapter,c=t.name,h=t.value;return""===h?function(m){return!!d.getAttributeValue(m,c)&&r(m)}:o(t,u)?(h=h.toLowerCase(),function(m){var b=d.getAttributeValue(m,c);return(null==b||b.length!==h.length||b.toLowerCase()!==h)&&r(m)}):function(m){return d.getAttributeValue(m,c)!==h&&r(m)}}}},80764:function(Be,S,i){"use strict";var n=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(S,"__esModule",{value:!0}),S.compileToken=S.compileUnsafe=S.compile=void 0;var e=i(52149),a=i(57802),_=n(i(28819)),o=i(633),r=i(77691),t=i(35103);function d(C,O,P){return g("string"==typeof C?(0,e.parse)(C):C,O,P)}function c(C){return"pseudo"===C.type&&("scope"===C.name||Array.isArray(C.data)&&C.data.some(function(O){return O.some(c)}))}S.compile=function u(C,O,P){var T=d(C,O,P);return(0,t.ensureIsTag)(T,O.adapter)},S.compileUnsafe=d;var h={type:e.SelectorType.Descendant},m={type:"_flexibleDescendant"},b={type:e.SelectorType.Pseudo,name:"scope",data:null};function g(C,O,P){var T;(C=C.filter(function(B){return B.length>0})).forEach(_.default),P=null!==(T=O.context)&&void 0!==T?T:P;var A=Array.isArray(P),U=P&&(Array.isArray(P)?P:[P]);!function v(C,O,P){for(var T=O.adapter,A=!(null==P||!P.every(function(B){var F=T.isTag(B)&&T.getParent(B);return B===t.PLACEHOLDER_ELEMENT||F&&T.isTag(F)})),U=0,I=C;U0&&(0,o.isTraversal)(L[0])&&"descendant"!==L[0].type)){if(!A||L.some(c))continue;L.unshift(h)}L.unshift(b)}}(C,O,U);var I=!1,L=C.map(function(B){if(B.length>=2){var F=B[0],W=B[1];"pseudo"!==F.type||"scope"!==F.name||(A&&"descendant"===W.type?B[1]=m:("adjacent"===W.type||"sibling"===W.type)&&(I=!0))}return function p(C,O,P){var T;return C.reduce(function(A,U){return A===a.falseFunc?a.falseFunc:(0,r.compileGeneralSelector)(A,U,O,P,g)},null!==(T=O.rootFunc)&&void 0!==T?T:a.trueFunc)}(B,O,U)}).reduce(y,a.falseFunc);return L.shouldTestNextSiblings=I,L}function y(C,O){return O===a.falseFunc||C===a.trueFunc?C:C===a.falseFunc||O===a.trueFunc?O:function(T){return C(T)||O(T)}}S.compileToken=g},77691:(Be,S,i)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.compileGeneralSelector=void 0;var n=i(45685),e=i(10658),a=i(52149);S.compileGeneralSelector=function _(o,r,t,u,d){var c=t.adapter,h=t.equals;switch(r.type){case a.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case a.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case a.SelectorType.Attribute:if(null!=r.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return(!t.xmlMode||t.lowerCaseAttributeNames)&&(r.name=r.name.toLowerCase()),n.attributeRules[r.action](o,r,t);case a.SelectorType.Pseudo:return(0,e.compilePseudoSelector)(o,r,t,u,d);case a.SelectorType.Tag:if(null!=r.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var m=r.name;return(!t.xmlMode||t.lowerCaseTags)&&(m=m.toLowerCase()),function(g){return c.getName(g)===m&&o(g)};case a.SelectorType.Descendant:if(!1===t.cacheResults||"undefined"==typeof WeakSet)return function(g){for(var p=g;p=c.getParent(p);)if(c.isTag(p)&&o(p))return!0;return!1};var b=new WeakSet;return function(g){for(var p=g;p=c.getParent(p);)if(!b.has(p)){if(c.isTag(p)&&o(p))return!0;b.add(p)}return!1};case"_flexibleDescendant":return function(g){var p=g;do{if(c.isTag(p)&&o(p))return!0}while(p=c.getParent(p));return!1};case a.SelectorType.Parent:return function(g){return c.getChildren(g).some(function(p){return c.isTag(p)&&o(p)})};case a.SelectorType.Child:return function(g){var p=c.getParent(g);return null!=p&&c.isTag(p)&&o(p)};case a.SelectorType.Sibling:return function(g){for(var p=c.getSiblings(g),y=0;y{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isTraversal=S.procedure=void 0,S.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,"column-combinator":-1,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},S.isTraversal=function i(n){return S.procedure[n.type]<0}},1474:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.aliases=void 0,S.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}},33773:function(Be,S,i){"use strict";var n=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0}),S.filters=void 0;var e=n(i(36870)),a=i(57802);function _(r,t){return function(u){var d=t.getParent(u);return null!=d&&t.isTag(d)&&r(u)}}function o(r){return function(u,d,c){var m=c.adapter[r];return"function"!=typeof m?a.falseFunc:function(v){return m(v)&&u(v)}}}S.filters={contains:function(r,t,u){var d=u.adapter;return function(h){return r(h)&&d.getText(h).includes(t)}},icontains:function(r,t,u){var d=u.adapter,c=t.toLowerCase();return function(m){return r(m)&&d.getText(m).toLowerCase().includes(c)}},"nth-child":function(r,t,u){var d=u.adapter,c=u.equals,h=(0,e.default)(t);return h===a.falseFunc?a.falseFunc:h===a.trueFunc?_(r,d):function(b){for(var v=d.getSiblings(b),g=0,p=0;p=0&&!c(b,v[p]);p--)d.isTag(v[p])&&g++;return h(g)&&r(b)}},"nth-of-type":function(r,t,u){var d=u.adapter,c=u.equals,h=(0,e.default)(t);return h===a.falseFunc?a.falseFunc:h===a.trueFunc?_(r,d):function(b){for(var v=d.getSiblings(b),g=0,p=0;p=0;p--){var y=v[p];if(c(b,y))break;d.isTag(y)&&d.getName(y)===d.getName(b)&&g++}return h(g)&&r(b)}},root:function(r,t,u){var d=u.adapter;return function(c){var h=d.getParent(c);return(null==h||!d.isTag(h))&&r(c)}},scope:function(r,t,u,d){var c=u.equals;return d&&0!==d.length?1===d.length?function(h){return c(d[0],h)&&r(h)}:function(h){return d.includes(h)&&r(h)}:S.filters.root(r,t,u)},hover:o("isHovered"),visited:o("isVisited"),active:o("isActive")}},10658:(Be,S,i)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.compilePseudoSelector=S.aliases=S.pseudos=S.filters=void 0;var n=i(57802),e=i(52149),a=i(33773);Object.defineProperty(S,"filters",{enumerable:!0,get:function(){return a.filters}});var _=i(40059);Object.defineProperty(S,"pseudos",{enumerable:!0,get:function(){return _.pseudos}});var o=i(1474);Object.defineProperty(S,"aliases",{enumerable:!0,get:function(){return o.aliases}});var r=i(35103);S.compilePseudoSelector=function t(u,d,c,h,m){var b=d.name,v=d.data;if(Array.isArray(v))return r.subselects[b](u,v,c,h,m);if(b in o.aliases){if(null!=v)throw new Error("Pseudo ".concat(b," doesn't have any arguments"));var g=(0,e.parse)(o.aliases[b]);return r.subselects.is(u,g,c,h,m)}if(b in a.filters)return a.filters[b](u,v,c,h);if(b in _.pseudos){var p=_.pseudos[b];return(0,_.verifyPseudoArgs)(p,b,v),p===n.falseFunc?n.falseFunc:u===n.trueFunc?function(y){return p(y,c,v)}:function(y){return p(y,c,v)&&u(y)}}throw new Error("unmatched pseudo-class :".concat(b))}},40059:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.verifyPseudoArgs=S.pseudos=void 0,S.pseudos={empty:function(n,e){var a=e.adapter;return!a.getChildren(n).some(function(_){return a.isTag(_)||""!==a.getText(_)})},"first-child":function(n,e){var a=e.adapter,_=e.equals,o=a.getSiblings(n).find(function(r){return a.isTag(r)});return null!=o&&_(n,o)},"last-child":function(n,e){for(var a=e.adapter,_=e.equals,o=a.getSiblings(n),r=o.length-1;r>=0;r--){if(_(n,o[r]))return!0;if(a.isTag(o[r]))break}return!1},"first-of-type":function(n,e){for(var a=e.adapter,_=e.equals,o=a.getSiblings(n),r=a.getName(n),t=0;t=0;t--){var u=o[t];if(_(n,u))return!0;if(a.isTag(u)&&a.getName(u)===r)break}return!1},"only-of-type":function(n,e){var a=e.adapter,_=e.equals,o=a.getName(n);return a.getSiblings(n).every(function(r){return _(n,r)||!a.isTag(r)||a.getName(r)!==o})},"only-child":function(n,e){var a=e.adapter,_=e.equals;return a.getSiblings(n).every(function(o){return _(n,o)||!a.isTag(o)})}},S.verifyPseudoArgs=function i(n,e,a){if(null===a){if(n.length>2)throw new Error("pseudo-selector :".concat(e," requires an argument"))}else if(2===n.length)throw new Error("pseudo-selector :".concat(e," doesn't have any arguments"))}},35103:function(Be,S,i){"use strict";var n=this&&this.__spreadArray||function(t,u,d){if(d||2===arguments.length)for(var m,c=0,h=u.length;c{"use strict";Object.defineProperty(S,"__esModule",{value:!0});var n=i(52149),e=i(633),a={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function o(r){var t=e.procedure[r.type];if(r.type===n.SelectorType.Attribute)(t=a[r.action])===a.equals&&"id"===r.name&&(t=9),r.ignoreCase&&(t>>=1);else if(r.type===n.SelectorType.Pseudo)if(r.data)if("has"===r.name||"contains"===r.name)t=0;else if(Array.isArray(r.data)){t=0;for(var u=0;ut&&(t=d)}r.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}S.default=function _(r){for(var t=r.map(o),u=1;u=0&&d{"use strict";var n,F;i.r(S),i.d(S,{AttributeAction:()=>a,IgnoreCaseMode:()=>e,SelectorType:()=>n,isTraversal:()=>u,parse:()=>v,stringify:()=>T}),(F=n||(n={})).Attribute="attribute",F.Pseudo="pseudo",F.PseudoElement="pseudo-element",F.Tag="tag",F.Universal="universal",F.Adjacent="adjacent",F.Child="child",F.Descendant="descendant",F.Parent="parent",F.Sibling="sibling",F.ColumnCombinator="column-combinator";const e={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var a;!function(F){F.Any="any",F.Element="element",F.End="end",F.Equals="equals",F.Exists="exists",F.Hyphen="hyphen",F.Not="not",F.Start="start"}(a||(a={}));const _=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,o=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,r=new Map([[126,a.Element],[94,a.Start],[36,a.End],[42,a.Any],[33,a.Not],[124,a.Hyphen]]),t=new Set(["has","not","matches","is","where","host","host-context"]);function u(F){switch(F.type){case n.Adjacent:case n.Child:case n.Descendant:case n.Parent:case n.Sibling:case n.ColumnCombinator:return!0;default:return!1}}const d=new Set(["contains","icontains"]);function c(F,W,x){const k=parseInt(W,16)-65536;return k!=k||x?W:k<0?String.fromCharCode(k+65536):String.fromCharCode(k>>10|55296,1023&k|56320)}function h(F){return F.replace(o,c)}function m(F){return 39===F||34===F}function b(F){return 32===F||9===F||10===F||12===F||13===F}function v(F){const W=[],x=g(W,`${F}`,0);if(x0&&x0&&u(k[k.length-1]))throw new Error("Did not expect successive traversals.")}function re(We){k.length>0&&k[k.length-1].type===n.Descendant?k[k.length-1].type=We:(Y(),k.push({type:We}))}function oe(We,Qe){k.push({type:n.Attribute,name:We,action:Qe,value:R(1),namespace:null,ignoreCase:"quirks"})}function Re(){if(k.length&&k[k.length-1].type===n.Descendant&&k.pop(),0===k.length)throw new Error("Empty sub-selector");F.push(k)}if(H(0),W.length===x)return x;e:for(;xF.charCodeAt(0))),O=new Set(y.map(F=>F.charCodeAt(0))),P=new Set([...y,"~","^","$","*","+","!","|",":","[","]"," ","."].map(F=>F.charCodeAt(0)));function T(F){return F.map(W=>W.map(A).join("")).join(", ")}function A(F,W,x){switch(F.type){case n.Child:return 0===W?"> ":" > ";case n.Parent:return 0===W?"< ":" < ";case n.Sibling:return 0===W?"~ ":" ~ ";case n.Adjacent:return 0===W?"+ ":" + ";case n.Descendant:return" ";case n.ColumnCombinator:return 0===W?"|| ":" || ";case n.Universal:return"*"===F.namespace&&W+10?k+F.slice(x):F}},14661:(Be,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.attributeNames=S.elementNames=void 0,S.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),S.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},83852:function(Be,S,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(P){for(var T,A=1,U=arguments.length;A"}(P);case o.Comment:return function O(P){return"\x3c!--"+P.data+"--\x3e"}(P);case o.CDATA:return function C(P){return""}(P);case o.Script:case o.Style:case o.Tag:return function g(P,T){var A;"foreign"===T.xmlMode&&(P.name=null!==(A=t.elementNames.get(P.name))&&void 0!==A?A:P.name,P.parent&&b.has(P.parent.name)&&(T=n(n({},T),{xmlMode:!1}))),!T.xmlMode&&v.has(P.name)&&(T=n(n({},T),{xmlMode:"foreign"}));var U="<"+P.name,I=function d(P,T){if(P)return Object.keys(P).map(function(A){var U,I,L=null!==(U=P[A])&&void 0!==U?U:"";return"foreign"===T.xmlMode&&(A=null!==(I=t.attributeNames.get(A))&&void 0!==I?I:A),T.emptyAttrs||T.xmlMode||""!==L?A+'="'+(!1!==T.decodeEntities?r.encodeXML(L):L.replace(/"/g,"""))+'"':A}).join(" ")}(P.attribs,T);return I&&(U+=" "+I),0===P.children.length&&(T.xmlMode?!1!==T.selfClosingTags:T.selfClosingTags&&c.has(P.name))?(T.xmlMode||(U+=" "),U+="/>"):(U+=">",P.children.length>0&&(U+=h(P.children,T)),(T.xmlMode||!c.has(P.name))&&(U+="")),U}(P,T);case o.Text:return function y(P,T){var A=P.data||"";return!1!==T.decodeEntities&&!(!T.xmlMode&&P.parent&&u.has(P.parent.name))&&(A=r.encodeXML(A)),A}(P,T)}}S.default=h;var b=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),v=new Set(["svg","math"])},28881:(Be,S)=>{"use strict";var i,e;Object.defineProperty(S,"__esModule",{value:!0}),S.Doctype=S.CDATA=S.Tag=S.Style=S.Script=S.Comment=S.Directive=S.Text=S.Root=S.isTag=S.ElementType=void 0,(e=i=S.ElementType||(S.ElementType={})).Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype",S.isTag=function n(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style},S.Root=i.Root,S.Text=i.Text,S.Directive=i.Directive,S.Comment=i.Comment,S.Script=i.Script,S.Style=i.Style,S.Tag=i.Tag,S.CDATA=i.CDATA,S.Doctype=i.Doctype},46089:function(Be,S,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(u,d,c,h){void 0===h&&(h=c);var m=Object.getOwnPropertyDescriptor(d,c);(!m||("get"in m?!d.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return d[c]}}),Object.defineProperty(u,h,m)}:function(u,d,c,h){void 0===h&&(h=c),u[h]=d[c]}),e=this&&this.__exportStar||function(u,d){for(var c in u)"default"!==c&&!Object.prototype.hasOwnProperty.call(d,c)&&n(d,u,c)};Object.defineProperty(S,"__esModule",{value:!0}),S.DomHandler=void 0;var a=i(28881),_=i(74372);e(i(74372),S);var o=/\s+/g,r={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},t=function(){function u(d,c,h){this.dom=[],this.root=new _.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof c&&(h=c,c=r),"object"==typeof d&&(c=d,d=void 0),this.callback=null!=d?d:null,this.options=null!=c?c:r,this.elementCB=null!=h?h:null}return u.prototype.onparserinit=function(d){this.parser=d},u.prototype.onreset=function(){this.dom=[],this.root=new _.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(d){this.handleCallback(d)},u.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},u.prototype.onopentag=function(d,c){var h=this.options.xmlMode?a.ElementType.Tag:void 0,m=new _.Element(d,c,void 0,h);this.addNode(m),this.tagStack.push(m)},u.prototype.ontext=function(d){var c=this.options.normalizeWhitespace,h=this.lastNode;if(h&&h.type===a.ElementType.Text)c?h.data=(h.data+d).replace(o," "):h.data+=d,this.options.withEndIndices&&(h.endIndex=this.parser.endIndex);else{c&&(d=d.replace(o," "));var m=new _.Text(d);this.addNode(m),this.lastNode=m}},u.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=d;else{var c=new _.Comment(d);this.addNode(c),this.lastNode=c}},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var d=new _.Text(""),c=new _.NodeWithChildren(a.ElementType.CDATA,[d]);this.addNode(c),d.parent=c,this.lastNode=d},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(d,c){var h=new _.ProcessingInstruction(d,c);this.addNode(h)},u.prototype.handleCallback=function(d){if("function"==typeof this.callback)this.callback(d,this.dom);else if(d)throw d},u.prototype.addNode=function(d){var c=this.tagStack[this.tagStack.length-1],h=c.children[c.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),c.children.push(d),h&&(d.prev=h,h.next=d),d.parent=c,this.lastNode=null},u}();S.DomHandler=t,S.default=t},74372:function(Be,S,i){"use strict";var A,n=this&&this.__extends||(A=function(U,I){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,B){L.__proto__=B}||function(L,B){for(var F in B)Object.prototype.hasOwnProperty.call(B,F)&&(L[F]=B[F])})(U,I)},function(U,I){if("function"!=typeof I&&null!==I)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function L(){this.constructor=U}A(U,I),U.prototype=null===I?Object.create(I):(L.prototype=I.prototype,new L)}),e=this&&this.__assign||function(){return e=Object.assign||function(A){for(var U,I=1,L=arguments.length;I0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"childNodes",{get:function(){return this.children},set:function(I){this.children=I},enumerable:!1,configurable:!0}),U}(o);S.NodeWithChildren=c;var h=function(A){function U(I){return A.call(this,a.ElementType.Root,I)||this}return n(U,A),U}(c);S.Document=h;var m=function(A){function U(I,L,B,F){void 0===B&&(B=[]),void 0===F&&(F="script"===I?a.ElementType.Script:"style"===I?a.ElementType.Style:a.ElementType.Tag);var W=A.call(this,F,B)||this;return W.name=I,W.attribs=L,W}return n(U,A),Object.defineProperty(U.prototype,"tagName",{get:function(){return this.name},set:function(I){this.name=I},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"attributes",{get:function(){var I=this;return Object.keys(this.attribs).map(function(L){var B,F;return{name:L,value:I.attribs[L],namespace:null===(B=I["x-attribsNamespace"])||void 0===B?void 0:B[L],prefix:null===(F=I["x-attribsPrefix"])||void 0===F?void 0:F[L]}})},enumerable:!1,configurable:!0}),U}(c);function b(A){return(0,a.isTag)(A)}function v(A){return A.type===a.ElementType.CDATA}function g(A){return A.type===a.ElementType.Text}function p(A){return A.type===a.ElementType.Comment}function y(A){return A.type===a.ElementType.Directive}function C(A){return A.type===a.ElementType.Root}function P(A,U){var I;if(void 0===U&&(U=!1),g(A))I=new t(A.data);else if(p(A))I=new u(A.data);else if(b(A)){var L=U?T(A.children):[],B=new m(A.name,e({},A.attribs),L);L.forEach(function(k){return k.parent=B}),null!=A.namespace&&(B.namespace=A.namespace),A["x-attribsNamespace"]&&(B["x-attribsNamespace"]=e({},A["x-attribsNamespace"])),A["x-attribsPrefix"]&&(B["x-attribsPrefix"]=e({},A["x-attribsPrefix"])),I=B}else if(v(A)){L=U?T(A.children):[];var F=new c(a.ElementType.CDATA,L);L.forEach(function(R){return R.parent=F}),I=F}else if(C(A)){L=U?T(A.children):[];var W=new h(L);L.forEach(function(R){return R.parent=W}),A["x-mode"]&&(W["x-mode"]=A["x-mode"]),I=W}else{if(!y(A))throw new Error("Not implemented yet: ".concat(A.type));var x=new d(A.name,A.data);null!=A["x-name"]&&(x["x-name"]=A["x-name"],x["x-publicId"]=A["x-publicId"],x["x-systemId"]=A["x-systemId"]),I=x}return I.startIndex=A.startIndex,I.endIndex=A.endIndex,null!=A.sourceCodeLocation&&(I.sourceCodeLocation=A.sourceCodeLocation),I}function T(A){for(var U=A.map(function(L){return P(L,!0)}),I=1;ILe.length)&&(Fe=Le.length);for(var ve=0,tt=new Array(Fe);ve1?ve-1:0),ht=1;ht/gm),Ot=g(/\${[\w\W]*}/gm),ct=g(/^data-[\-\w.\u00B7-\uFFFF]/),Ae=g(/^aria-[\-\w]+$/),ie=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),he=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oe=g(/^html$/i),ue=function(){return"undefined"==typeof window?null:window},q=function(Fe,ve){if("object"!==S(Fe)||"function"!=typeof Fe.createPolicy)return null;var tt=null,ht="data-tt-policy-suffix";ve.currentScript&&ve.currentScript.hasAttribute(ht)&&(tt=ve.currentScript.getAttribute(ht));var At="dompurify"+(tt?"#"+tt:"");try{return Fe.createPolicy(At,{createHTML:function(st){return st},createScriptURL:function(st){return st}})}catch(kt){return console.warn("TrustedTypes policy "+At+" could not be created."),null}};function Ee(){var Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue(),Fe=function(Nt){return Ee(Nt)};if(Fe.version="2.4.1",Fe.removed=[],!Le||!Le.document||9!==Le.document.nodeType)return Fe.isSupported=!1,Fe;var ve=Le.document,tt=Le.document,ht=Le.DocumentFragment,At=Le.HTMLTemplateElement,kt=Le.Node,st=Le.Element,Se=Le.NodeFilter,me=Le.NamedNodeMap,Pe=void 0===me?Le.NamedNodeMap||Le.MozNamedAttrMap:me,Te=Le.HTMLFormElement,gt=Le.DOMParser,we=Le.trustedTypes,bt=st.prototype,$t=Y(bt,"cloneNode"),fn=Y(bt,"nextSibling"),Xt=Y(bt,"childNodes"),ot=Y(bt,"parentNode");if("function"==typeof At){var nt=tt.createElement("template");nt.content&&nt.content.ownerDocument&&(tt=nt.content.ownerDocument)}var le=q(we,ve),De=le?le.createHTML(""):"",lt=tt,Tt=lt.implementation,wt=lt.createNodeIterator,He=lt.createDocumentFragment,Je=lt.getElementsByTagName,St=ve.importNode,Qt={};try{Qt=V(tt).documentMode?tt.documentMode:{}}catch(jt){}var Cn={};Fe.isSupported="function"==typeof ot&&Tt&&void 0!==Tt.createHTMLDocument&&9!==Qt;var rr,Vi,An=et,qn=ze,at=Ot,_e=ct,Ne=Ae,dt=he,Xe=J,Vt=ie,Pt=null,It=j({},[].concat(a(re),a(oe),a(Re),a(Qe),a(Me))),un=null,kn=j({},[].concat(a(Ie),a(Ze),a(Ue),a(yt))),Sn=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}})),Jn=null,yi=null,en=!0,ae=!0,ye=!1,Ct=!1,Lt=!1,hn=!1,li=!1,Ri=!1,Ni=!1,_i=!1,Ii=!0,Xi=!1,ur="user-content-",Er=!0,Mr=!1,Li={},tr=null,br=j({},["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"]),ji=null,Pr=j({},["audio","video","img","source","image","track"]),Sr=null,Fr=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dr="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",Yi="http://www.w3.org/1999/xhtml",gr=Yi,ir=!1,fr=null,to=j({},[dr,ar,Yi],I),mr=["application/xhtml+xml","text/html"],Nr="text/html",qi=null,on=tt.createElement("form"),vt=function(Nt){return Nt instanceof RegExp||Nt instanceof Function},Bt=function(Nt){qi&&qi===Nt||((!Nt||"object"!==S(Nt))&&(Nt={}),Nt=V(Nt),rr=rr=-1===mr.indexOf(Nt.PARSER_MEDIA_TYPE)?Nr:Nt.PARSER_MEDIA_TYPE,Vi="application/xhtml+xml"===rr?I:U,Pt="ALLOWED_TAGS"in Nt?j({},Nt.ALLOWED_TAGS,Vi):It,un="ALLOWED_ATTR"in Nt?j({},Nt.ALLOWED_ATTR,Vi):kn,fr="ALLOWED_NAMESPACES"in Nt?j({},Nt.ALLOWED_NAMESPACES,I):to,Sr="ADD_URI_SAFE_ATTR"in Nt?j(V(Fr),Nt.ADD_URI_SAFE_ATTR,Vi):Fr,ji="ADD_DATA_URI_TAGS"in Nt?j(V(Pr),Nt.ADD_DATA_URI_TAGS,Vi):Pr,tr="FORBID_CONTENTS"in Nt?j({},Nt.FORBID_CONTENTS,Vi):br,Jn="FORBID_TAGS"in Nt?j({},Nt.FORBID_TAGS,Vi):{},yi="FORBID_ATTR"in Nt?j({},Nt.FORBID_ATTR,Vi):{},Li="USE_PROFILES"in Nt&&Nt.USE_PROFILES,en=!1!==Nt.ALLOW_ARIA_ATTR,ae=!1!==Nt.ALLOW_DATA_ATTR,ye=Nt.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=Nt.SAFE_FOR_TEMPLATES||!1,Lt=Nt.WHOLE_DOCUMENT||!1,Ri=Nt.RETURN_DOM||!1,Ni=Nt.RETURN_DOM_FRAGMENT||!1,_i=Nt.RETURN_TRUSTED_TYPE||!1,li=Nt.FORCE_BODY||!1,Ii=!1!==Nt.SANITIZE_DOM,Xi=Nt.SANITIZE_NAMED_PROPS||!1,Er=!1!==Nt.KEEP_CONTENT,Mr=Nt.IN_PLACE||!1,Vt=Nt.ALLOWED_URI_REGEXP||Vt,gr=Nt.NAMESPACE||Yi,Nt.CUSTOM_ELEMENT_HANDLING&&vt(Nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Sn.tagNameCheck=Nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Nt.CUSTOM_ELEMENT_HANDLING&&vt(Nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Sn.attributeNameCheck=Nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Nt.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof Nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Sn.allowCustomizedBuiltInElements=Nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ct&&(ae=!1),Ni&&(Ri=!0),Li&&(Pt=j({},a(Me)),un=[],!0===Li.html&&(j(Pt,re),j(un,Ie)),!0===Li.svg&&(j(Pt,oe),j(un,Ze),j(un,yt)),!0===Li.svgFilters&&(j(Pt,Re),j(un,Ze),j(un,yt)),!0===Li.mathMl&&(j(Pt,Qe),j(un,Ue),j(un,yt))),Nt.ADD_TAGS&&(Pt===It&&(Pt=V(Pt)),j(Pt,Nt.ADD_TAGS,Vi)),Nt.ADD_ATTR&&(un===kn&&(un=V(un)),j(un,Nt.ADD_ATTR,Vi)),Nt.ADD_URI_SAFE_ATTR&&j(Sr,Nt.ADD_URI_SAFE_ATTR,Vi),Nt.FORBID_CONTENTS&&(tr===br&&(tr=V(tr)),j(tr,Nt.FORBID_CONTENTS,Vi)),Er&&(Pt["#text"]=!0),Lt&&j(Pt,["html","head","body"]),Pt.table&&(j(Pt,["tbody"]),delete Jn.tbody),v&&v(Nt),qi=Nt)},an=j({},["mi","mo","mn","ms","mtext"]),Bn=j({},["foreignobject","desc","title","annotation-xml"]),oi=j({},["title","style","font","a","script"]),ti=j({},oe);j(ti,Re),j(ti,We);var gi=j({},Qe);j(gi,Ye);var Xn=function(Nt){var Ht=ot(Nt);(!Ht||!Ht.tagName)&&(Ht={namespaceURI:gr,tagName:"template"});var sn=U(Nt.tagName),dn=U(Ht.tagName);return!!fr[Nt.namespaceURI]&&(Nt.namespaceURI===ar?Ht.namespaceURI===Yi?"svg"===sn:Ht.namespaceURI===dr?"svg"===sn&&("annotation-xml"===dn||an[dn]):Boolean(ti[sn]):Nt.namespaceURI===dr?Ht.namespaceURI===Yi?"math"===sn:Ht.namespaceURI===ar?"math"===sn&&Bn[dn]:Boolean(gi[sn]):Nt.namespaceURI===Yi?!(Ht.namespaceURI===ar&&!Bn[dn]||Ht.namespaceURI===dr&&!an[dn])&&!gi[sn]&&(oi[sn]||!ti[sn]):!("application/xhtml+xml"!==rr||!fr[Nt.namespaceURI]))},Nn=function(Nt){A(Fe.removed,{element:Nt});try{Nt.parentNode.removeChild(Nt)}catch(Ht){try{Nt.outerHTML=De}catch(sn){Nt.remove()}}},Hn=function(Nt,Ht){try{A(Fe.removed,{attribute:Ht.getAttributeNode(Nt),from:Ht})}catch(sn){A(Fe.removed,{attribute:null,from:Ht})}if(Ht.removeAttribute(Nt),"is"===Nt&&!un[Nt])if(Ri||Ni)try{Nn(Ht)}catch(sn){}else try{Ht.setAttribute(Nt,"")}catch(sn){}},Wn=function(Nt){var Ht,sn;if(li)Nt=""+Nt;else{var dn=L(Nt,/^[\r\n\t ]+/);sn=dn&&dn[0]}"application/xhtml+xml"===rr&&gr===Yi&&(Nt=''+Nt+"");var Gn=le?le.createHTML(Nt):Nt;if(gr===Yi)try{Ht=(new gt).parseFromString(Gn,rr)}catch(Zn){}if(!Ht||!Ht.documentElement){Ht=Tt.createDocument(gr,"template",null);try{Ht.documentElement.innerHTML=ir?"":Gn}catch(Zn){}}var wn=Ht.body||Ht.documentElement;return Nt&&sn&&wn.insertBefore(tt.createTextNode(sn),wn.childNodes[0]||null),gr===Yi?Je.call(Ht,Lt?"html":"body")[0]:Lt?Ht.documentElement:wn},Ln=function(Nt){return wt.call(Nt.ownerDocument||Nt,Nt,Se.SHOW_ELEMENT|Se.SHOW_COMMENT|Se.SHOW_TEXT,null,!1)},ui=function(Nt){return Nt instanceof Te&&("string"!=typeof Nt.nodeName||"string"!=typeof Nt.textContent||"function"!=typeof Nt.removeChild||!(Nt.attributes instanceof Pe)||"function"!=typeof Nt.removeAttribute||"function"!=typeof Nt.setAttribute||"string"!=typeof Nt.namespaceURI||"function"!=typeof Nt.insertBefore||"function"!=typeof Nt.hasChildNodes)},Mi=function(Nt){return"object"===S(kt)?Nt instanceof kt:Nt&&"object"===S(Nt)&&"number"==typeof Nt.nodeType&&"string"==typeof Nt.nodeName},Ve=function(Nt,Ht,sn){!Cn[Nt]||P(Cn[Nt],function(dn){dn.call(Fe,Ht,sn,qi)})},_t=function(Nt){var Ht;if(Ve("beforeSanitizeElements",Nt,null),ui(Nt)||x(/[\u0080-\uFFFF]/,Nt.nodeName))return Nn(Nt),!0;var sn=Vi(Nt.nodeName);if(Ve("uponSanitizeElement",Nt,{tagName:sn,allowedTags:Pt}),Nt.hasChildNodes()&&!Mi(Nt.firstElementChild)&&(!Mi(Nt.content)||!Mi(Nt.content.firstElementChild))&&x(/<[/\w]/g,Nt.innerHTML)&&x(/<[/\w]/g,Nt.textContent)||"select"===sn&&x(/