@bdelab/roar-sre 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1d44e62f-18b4-4c10-bbdc-b2ccb0a1afa2",e._sentryDebugIdIdentifier="sentry-dbid-1d44e62f-18b4-4c10-bbdc-b2ccb0a1afa2")}catch(e){}}();import e from"path";import t from"stream";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"c12a6b384c368ef06c19063c3c1a97985ea2b946"};var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={exports:{}};
|
|
2
2
|
/*! store2 - v2.14.3 - 2024-02-14
|
|
3
3
|
* Copyright (c) 2024 Nathan Bubna; Licensed MIT */s=a,function(e,t){var i={version:"2.14.3",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var i in e)t.hasOwnProperty(i)||Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||i.replace)},parse:function(e,t){try{return JSON.parse(e,t||i.revive)}catch(t){return e}},fn:function(e,t){for(var n in i.storeAPI[e]=t,i.apis)i.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,i){e.setItem(t,i)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var s=i.inherit(i.storeAPI,(function(e,t,i){return 0===arguments.length?s.getAll():"function"==typeof t?s.transact(e,t,i):void 0!==t?s.set(e,t,i):"string"==typeof e||"number"==typeof e?s.get(e):"function"==typeof e?s.each(e):e?s.setAll(e,t):s.clear()}));s._id=e;try{var a="__store2_test";t.setItem(a,"ok"),s._area=t,t.removeItem(a)}catch(e){s._area=i.storage("fake")}return s._ns=n||"",i.areas[e]||(i.areas[e]=s._area),i.apis[s._ns+s._id]||(i.apis[s._ns+s._id]=s),s},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=i.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||i.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var s=e,a=this[s];if(!(a&&a.namespace||((a=i.Store(this._id,this._area,this._ns+s+n))._delim=n,this[s]||(this[s]=a),t)))for(var r in i.areas)a.area(r,i.areas[r]);return a},isFake:function(e){return e?(this._real=this._area,this._area=i.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):!!(this._in(e)in this._area)},size:function(){return this.keys().length},each:function(e,t){for(var n=0,s=i.length(this._area);n<s;n++){var a=this._out(i.key(this._area,n));if(void 0!==a&&!1===e.call(this,a,this.get(a),t))break;s>i.length(this._area)&&(s--,n--)}return t||this},keys:function(e){return this.each((function(e,t,i){i.push(e)}),e||[])},get:function(e,t){var n,s=i.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==s?i.parse(s,n):null!=t?t:s},getAll:function(e){return this.each((function(e,t,i){i[e]=t}),e||{})},transact:function(e,t,i){var n=this.get(e,i),s=t(n);return this.set(e,void 0===s?n:s),this},set:function(e,t,n){var s,a=this.get(e);return null!=a&&!1===n?t:("function"==typeof n&&(s=n,n=void 0),i.set(this._area,this._in(e),i.stringify(t,s),n)||a)},setAll:function(e,t){var i,n;for(var s in e)n=e[s],this.set(s,n,t)!==n&&(i=!0);return i},add:function(e,t,n){var s=this.get(e);if(s instanceof Array)t=s.concat(t);else if(null!==s){var a=typeof s;if(a===typeof t&&"object"===a){for(var r in t)s[r]=t[r];t=s}else t=s+t}return i.set(this._area,this._in(e),i.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return i.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each((function(e){i.remove(this._area,this._in(e))}),1):i.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in i.areas)i.areas.hasOwnProperty(t)&&(this._area=i.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=i.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return i.inherit(i.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var i in this.items)if(this.has(i)&&e===t++)return i},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},n=i.Store("local",function(){try{return localStorage}catch(e){}}());n.local=n,n._=i,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",i.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],(function(){return n})):s.exports?s.exports=n:(e.store&&(i.conflict=e.store),e.store=n)}(i,i&&i.define);var r=n(a.exports);var o=function(){this.__data__=[],this.size=0};var c=function(e,t){return e===t||e!=e&&t!=t},d=c;var l=function(e,t){for(var i=e.length;i--;)if(d(e[i][0],t))return i;return-1},u=l,p=Array.prototype.splice;var m=l;var f=l;var h=l;var g=o,_=function(e){var t=this.__data__,i=u(t,e);return!(i<0)&&(i==t.length-1?t.pop():p.call(t,i,1),--this.size,!0)},I=function(e){var t=this.__data__,i=m(t,e);return i<0?void 0:t[i][1]},y=function(e){return f(this.__data__,e)>-1},v=function(e,t){var i=this.__data__,n=h(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function w(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}w.prototype.clear=g,w.prototype.delete=_,w.prototype.get=I,w.prototype.has=y,w.prototype.set=v;var b=w,E=b;var A=function(){this.__data__=new E,this.size=0};var S=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};var x=function(e){return this.__data__.get(e)};var T=function(e){return this.__data__.has(e)},R="object"==typeof i&&i&&i.Object===Object&&i,k=R,L="object"==typeof self&&self&&self.Object===Object&&self,N=k||L||Function("return this")(),F=N.Symbol,U=F,O=Object.prototype,C=O.hasOwnProperty,P=O.toString,j=U?U.toStringTag:void 0;var M=function(e){var t=C.call(e,j),i=e[j];try{e[j]=void 0;var n=!0}catch(e){}var s=P.call(e);return n&&(t?e[j]=i:delete e[j]),s},z=Object.prototype.toString;var D=M,B=function(e){return z.call(e)},$=F?F.toStringTag:void 0;var V=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?D(e):B(e)};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},H=V,W=q;var K,G=function(e){if(!W(e))return!1;var t=H(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=N["__core-js_shared__"],J=(K=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"";var Q=function(e){return!!J&&J in e},Z=Function.prototype.toString;var X=function(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ee=G,te=Q,ie=q,ne=X,se=/^\[object .+?Constructor\]$/,ae=Function.prototype,re=Object.prototype,oe=ae.toString,ce=re.hasOwnProperty,de=RegExp("^"+oe.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!ie(e)||te(e))&&(ee(e)?de:se).test(ne(e))},ue=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var i=ue(e,t);return le(i)?i:void 0},me=pe(N,"Map"),fe=pe(Object,"create"),he=fe;var ge=function(){this.__data__=he?he(null):{},this.size=0};var _e=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ie=fe,ye=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;if(Ie){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return ye.call(t,e)?t[e]:void 0},we=fe,be=Object.prototype.hasOwnProperty;var Ee=fe;var Ae=ge,Se=_e,xe=ve,Te=function(e){var t=this.__data__;return we?void 0!==t[e]:be.call(t,e)},Re=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ee&&void 0===t?"__lodash_hash_undefined__":t,this};function ke(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}ke.prototype.clear=Ae,ke.prototype.delete=Se,ke.prototype.get=xe,ke.prototype.has=Te,ke.prototype.set=Re;var Le=ke,Ne=b,Fe=me;var Ue=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Oe=Ue;var Ce=function(e,t){var i=e.__data__;return Oe(t)?i["string"==typeof t?"string":"hash"]:i.map},Pe=Ce;var je=Ce;var Me=Ce;var ze=Ce;var De=function(){this.size=0,this.__data__={hash:new Le,map:new(Fe||Ne),string:new Le}},Be=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},$e=function(e){return je(this,e).get(e)},Ve=function(e){return Me(this,e).has(e)},qe=function(e,t){var i=ze(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function He(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}He.prototype.clear=De,He.prototype.delete=Be,He.prototype.get=$e,He.prototype.has=Ve,He.prototype.set=qe;var We=He,Ke=b,Ge=me,Ye=We;var Je=b,Qe=A,Ze=S,Xe=x,et=T,tt=function(e,t){var i=this.__data__;if(i instanceof Ke){var n=i.__data__;if(!Ge||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Ye(n)}return i.set(e,t),this.size=i.size,this};function it(e){var t=this.__data__=new Je(e);this.size=t.size}it.prototype.clear=Qe,it.prototype.delete=Ze,it.prototype.get=Xe,it.prototype.has=et,it.prototype.set=tt;var nt=it;var st=We,at=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rt=function(e){return this.__data__.has(e)};function ot(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new st;++t<i;)this.add(e[t])}ot.prototype.add=ot.prototype.push=at,ot.prototype.has=rt;var ct=ot,dt=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1},lt=function(e,t){return e.has(t)};var ut=function(e,t,i,n,s,a){var r=1&i,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var d=a.get(e),l=a.get(t);if(d&&l)return d==t&&l==e;var u=-1,p=!0,m=2&i?new ct:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var f=e[u],h=t[u];if(n)var g=r?n(h,f,u,t,e,a):n(f,h,u,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(m){if(!dt(t,(function(e,t){if(!lt(m,t)&&(f===e||s(f,e,i,n,a)))return m.push(t)}))){p=!1;break}}else if(f!==h&&!s(f,h,i,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p},pt=N.Uint8Array;var mt=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i};var ft=pt,ht=c,gt=ut,_t=mt,It=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i},yt=F?F.prototype:void 0,vt=yt?yt.valueOf:void 0;var wt=function(e,t,i,n,s,a,r){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new ft(e),new ft(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ht(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=_t;case"[object Set]":var c=1&n;if(o||(o=It),e.size!=t.size&&!c)return!1;var d=r.get(e);if(d)return d==t;n|=2,r.set(e,t);var l=gt(o(e),o(t),n,s,a,r);return r.delete(e),l;case"[object Symbol]":if(vt)return vt.call(e)==vt.call(t)}return!1};var bt=function(e,t){for(var i=-1,n=t.length,s=e.length;++i<n;)e[s+i]=t[i];return e},Et=Array.isArray,At=bt,St=Et;var xt=function(e,t,i){var n=t(e);return St(e)?n:At(n,i(e))};var Tt=function(){return[]},Rt=function(e,t){for(var i=-1,n=null==e?0:e.length,s=0,a=[];++i<n;){var r=e[i];t(r,i,e)&&(a[s++]=r)}return a},kt=Tt,Lt=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,Ft=Nt?function(e){return null==e?[]:(e=Object(e),Rt(Nt(e),(function(t){return Lt.call(e,t)})))}:kt;var Ut=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};var Ot=function(e){return null!=e&&"object"==typeof e},Ct=V,Pt=Ot;var jt=function(e){return Pt(e)&&"[object Arguments]"==Ct(e)},Mt=Ot,zt=Object.prototype,Dt=zt.hasOwnProperty,Bt=zt.propertyIsEnumerable,$t=jt(function(){return arguments}())?jt:function(e){return Mt(e)&&Dt.call(e,"callee")&&!Bt.call(e,"callee")},Vt={exports:{}};var qt=function(){return!1};!function(e,t){var i=N,n=qt,s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,r=a&&a.exports===s?i.Buffer:void 0,o=(r?r.isBuffer:void 0)||n;e.exports=o}(Vt,Vt.exports);var Ht=Vt.exports,Wt=/^(?:0|[1-9]\d*)$/;var Kt=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&Wt.test(e))&&e>-1&&e%1==0&&e<t};var Gt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Yt=V,Jt=Gt,Qt=Ot,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var Xt=function(e){return Qt(e)&&Jt(e.length)&&!!Zt[Yt(e)]};var ei=function(e){return function(t){return e(t)}},ti={exports:{}};!function(e,t){var i=R,n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n&&i.process,r=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=r}(ti,ti.exports);var ii=ti.exports,ni=Xt,si=ei,ai=ii&&ii.isTypedArray,ri=ai?si(ai):ni,oi=Ut,ci=$t,di=Et,li=Ht,ui=Kt,pi=ri,mi=Object.prototype.hasOwnProperty;var fi=function(e,t){var i=di(e),n=!i&&ci(e),s=!i&&!n&&li(e),a=!i&&!n&&!s&&pi(e),r=i||n||s||a,o=r?oi(e.length,String):[],c=o.length;for(var d in e)!t&&!mi.call(e,d)||r&&("length"==d||s&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||ui(d,c))||o.push(d);return o},hi=Object.prototype;var gi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||hi)};var _i=function(e,t){return function(i){return e(t(i))}},Ii=_i(Object.keys,Object),yi=gi,vi=Ii,wi=Object.prototype.hasOwnProperty;var bi=G,Ei=Gt;var Ai=function(e){return null!=e&&Ei(e.length)&&!bi(e)},Si=fi,xi=function(e){if(!yi(e))return vi(e);var t=[];for(var i in Object(e))wi.call(e,i)&&"constructor"!=i&&t.push(i);return t},Ti=Ai;var Ri=function(e){return Ti(e)?Si(e):xi(e)},ki=xt,Li=Ft,Ni=Ri;var Fi=function(e){return ki(e,Ni,Li)},Ui=Fi,Oi=Object.prototype.hasOwnProperty;var Ci=function(e,t,i,n,s,a){var r=1&i,o=Ui(e),c=o.length;if(c!=Ui(t).length&&!r)return!1;for(var d=c;d--;){var l=o[d];if(!(r?l in t:Oi.call(t,l)))return!1}var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var f=r;++d<c;){var h=e[l=o[d]],g=t[l];if(n)var _=r?n(g,h,l,t,e,a):n(h,g,l,e,t,a);if(!(void 0===_?h===g||s(h,g,i,n,a):_)){m=!1;break}f||(f="constructor"==l)}if(m&&!f){var I=e.constructor,y=t.constructor;I==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof I&&I instanceof I&&"function"==typeof y&&y instanceof y||(m=!1)}return a.delete(e),a.delete(t),m},Pi=pe(N,"DataView"),ji=me,Mi=pe(N,"Promise"),zi=pe(N,"Set"),Di=pe(N,"WeakMap"),Bi=V,$i=X,Vi="[object Map]",qi="[object Promise]",Hi="[object Set]",Wi="[object WeakMap]",Ki="[object DataView]",Gi=$i(Pi),Yi=$i(ji),Ji=$i(Mi),Qi=$i(zi),Zi=$i(Di),Xi=Bi;(Pi&&Xi(new Pi(new ArrayBuffer(1)))!=Ki||ji&&Xi(new ji)!=Vi||Mi&&Xi(Mi.resolve())!=qi||zi&&Xi(new zi)!=Hi||Di&&Xi(new Di)!=Wi)&&(Xi=function(e){var t=Bi(e),i="[object Object]"==t?e.constructor:void 0,n=i?$i(i):"";if(n)switch(n){case Gi:return Ki;case Yi:return Vi;case Ji:return qi;case Qi:return Hi;case Zi:return Wi}return t});var en=Xi,tn=nt,nn=ut,sn=wt,an=Ci,rn=en,on=Et,cn=Ht,dn=ri,ln="[object Arguments]",un="[object Array]",pn="[object Object]",mn=Object.prototype.hasOwnProperty;var fn=function(e,t,i,n,s,a){var r=on(e),o=on(t),c=r?un:rn(e),d=o?un:rn(t),l=(c=c==ln?pn:c)==pn,u=(d=d==ln?pn:d)==pn,p=c==d;if(p&&cn(e)){if(!cn(t))return!1;r=!0,l=!1}if(p&&!l)return a||(a=new tn),r||dn(e)?nn(e,t,i,n,s,a):sn(e,t,c,i,n,s,a);if(!(1&i)){var m=l&&mn.call(e,"__wrapped__"),f=u&&mn.call(t,"__wrapped__");if(m||f){var h=m?e.value():e,g=f?t.value():t;return a||(a=new tn),s(h,g,i,n,a)}}return!!p&&(a||(a=new tn),an(e,t,i,n,s,a))},hn=Ot;var gn=function e(t,i,n,s,a){return t===i||(null==t||null==i||!hn(t)&&!hn(i)?t!=t&&i!=i:fn(t,i,n,s,e,a))},_n=nt,In=gn;var yn=q;var vn=function(e){return e==e&&!yn(e)},wn=vn,bn=Ri;var En=function(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}},An=function(e,t,i,n){var s=i.length,a=s,r=!n;if(null==e)return!a;for(e=Object(e);s--;){var o=i[s];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<a;){var c=(o=i[s])[0],d=e[c],l=o[1];if(r&&o[2]){if(void 0===d&&!(c in e))return!1}else{var u=new _n;if(n)var p=n(d,l,c,e,t,u);if(!(void 0===p?In(l,d,3,n,u):p))return!1}}return!0},Sn=function(e){for(var t=bn(e),i=t.length;i--;){var n=t[i],s=e[n];t[i]=[n,s,wn(s)]}return t},xn=En;var Tn=function(e){var t=Sn(e);return 1==t.length&&t[0][2]?xn(t[0][0],t[0][1]):function(i){return i===e||An(i,e,t)}},Rn=V,kn=Ot;var Ln=function(e){return"symbol"==typeof e||kn(e)&&"[object Symbol]"==Rn(e)},Nn=Et,Fn=Ln,Un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/;var Cn=function(e,t){if(Nn(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!Fn(e))||(On.test(e)||!Un.test(e)||null!=t&&e in Object(t))},Pn=We;function jn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,s=t?t.apply(this,n):n[0],a=i.cache;if(a.has(s))return a.get(s);var r=e.apply(this,n);return i.cache=a.set(s,r)||a,r};return i.cache=new(jn.Cache||Pn),i}jn.Cache=Pn;var Mn=jn;var zn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dn=/\\(\\)?/g,Bn=function(e){var t=Mn(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(zn,(function(e,i,n,s){t.push(n?s.replace(Dn,"$1"):i||e)})),t}));var $n=function(e,t){for(var i=-1,n=null==e?0:e.length,s=Array(n);++i<n;)s[i]=t(e[i],i,e);return s},Vn=$n,qn=Et,Hn=Ln,Wn=F?F.prototype:void 0,Kn=Wn?Wn.toString:void 0;var Gn=function e(t){if("string"==typeof t)return t;if(qn(t))return Vn(t,e)+"";if(Hn(t))return Kn?Kn.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i},Yn=Gn;var Jn=Et,Qn=Cn,Zn=Bn,Xn=function(e){return null==e?"":Yn(e)};var es=function(e,t){return Jn(e)?e:Qn(e,t)?[e]:Zn(Xn(e))},ts=Ln;var is=function(e){if("string"==typeof e||ts(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},ns=es,ss=is;var as=function(e,t){for(var i=0,n=(t=ns(t,e)).length;null!=e&&i<n;)e=e[ss(t[i++])];return i&&i==n?e:void 0},rs=as;var os=function(e,t,i){var n=null==e?void 0:rs(e,t);return void 0===n?i:n};var cs=es,ds=$t,ls=Et,us=Kt,ps=Gt,ms=is;var fs=function(e,t,i){for(var n=-1,s=(t=cs(t,e)).length,a=!1;++n<s;){var r=ms(t[n]);if(!(a=null!=e&&i(e,r)))break;e=e[r]}return a||++n!=s?a:!!(s=null==e?0:e.length)&&ps(s)&&us(r,s)&&(ls(e)||ds(e))},hs=function(e,t){return null!=e&&t in Object(e)},gs=fs;var _s=function(e,t){return null!=e&&gs(e,t,hs)},Is=gn,ys=os,vs=_s,ws=Cn,bs=vn,Es=En,As=is;var Ss=function(e,t){return ws(e)&&bs(t)?Es(As(e),t):function(i){var n=ys(i,e);return void 0===n&&n===t?vs(i,e):Is(t,n,3)}};var xs=function(e){return e};var Ts=as;var Rs=function(e){return function(t){return Ts(t,e)}},ks=function(e){return function(t){return null==t?void 0:t[e]}},Ls=Rs,Ns=Cn,Fs=is;var Us=function(e){return Ns(e)?ks(Fs(e)):Ls(e)},Os=Tn,Cs=Ss,Ps=xs,js=Et,Ms=Us;var zs=function(e){return"function"==typeof e?e:null==e?Ps:"object"==typeof e?js(e)?Cs(e[0],e[1]):Os(e):Ms(e)};var Ds=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},Bs=pe,$s=function(){try{var e=Bs(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Vs=$s;var qs=function(e,t,i){"__proto__"==t&&Vs?Vs(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i},Hs=qs,Ws=c,Ks=Object.prototype.hasOwnProperty;var Gs=function(e,t,i){var n=e[t];Ks.call(e,t)&&Ws(n,i)&&(void 0!==i||t in e)||Hs(e,t,i)},Ys=Gs,Js=es,Qs=Kt,Zs=q,Xs=is;var ea=function(e,t,i,n){if(!Zs(e))return e;for(var s=-1,a=(t=Js(t,e)).length,r=a-1,o=e;null!=o&&++s<a;){var c=Xs(t[s]),d=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(s!=r){var l=o[c];void 0===(d=n?n(l,c,o):void 0)&&(d=Zs(l)?l:Qs(t[s+1])?[]:{})}Ys(o,c,d),o=o[c]}return e},ta=as,ia=ea,na=es;var sa=function(e,t,i){for(var n=-1,s=t.length,a={};++n<s;){var r=t[n],o=ta(e,r);i(o,r)&&ia(a,na(r,e),o)}return a},aa=_i(Object.getPrototypeOf,Object),ra=bt,oa=aa,ca=Ft,da=Tt,la=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ra(t,ca(e)),e=oa(e);return t}:da;var ua=q,pa=gi,ma=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t},fa=Object.prototype.hasOwnProperty;var ha=fi,ga=function(e){if(!ua(e))return ma(e);var t=pa(e),i=[];for(var n in e)("constructor"!=n||!t&&fa.call(e,n))&&i.push(n);return i},_a=Ai;var Ia=function(e){return _a(e)?ha(e,!0):ga(e)},ya=xt,va=la,wa=Ia;var ba=function(e){return ya(e,wa,va)},Ea=$n,Aa=zs,Sa=sa,xa=ba;var Ta=function(e,t){if(null==e)return{};var i=Ea(xa(e),(function(e){return[e]}));return t=Aa(t),Sa(e,i,(function(e,i){return t(e,i[0])}))},Ra=zs,ka=Ds,La=Ta;var Na=n((function(e,t){return La(e,ka(Ra(t)))}));var Fa=n((function(e){return null===e}));var Ua=n((function(e){return void 0===e}));function Oa(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ca(e,t){for(var i,n="",s=0,a=-1,r=0,o=0;o<=e.length;++o){if(o<e.length)i=e.charCodeAt(o);else{if(47===i)break;i=47}if(47===i){if(a===o-1||1===r);else if(a!==o-1&&2===r){if(n.length<2||2!==s||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",s=0):s=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=o,r=0;continue}}else if(2===n.length||1===n.length){n="",s=0,a=o,r=0;continue}t&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),s=o-a-1;a=o,r=0}else 46===i&&-1!==r?++r:r=-1}return n}var Pa={resolve:function(){for(var e,t="",i=!1,n=arguments.length-1;n>=-1&&!i;n--){var s;n>=0?s=arguments[n]:(void 0===e&&(e=process.cwd()),s=e),Oa(s),0!==s.length&&(t=s+"/"+t,i=47===s.charCodeAt(0))}return t=Ca(t,!i),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Oa(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=Ca(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Oa(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];Oa(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":Pa.normalize(e)},relative:function(e,t){if(Oa(e),Oa(t),e===t)return"";if((e=Pa.resolve(e))===(t=Pa.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var n=e.length,s=n-i,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var r=t.length-a,o=s<r?s:r,c=-1,d=0;d<=o;++d){if(d===o){if(r>o){if(47===t.charCodeAt(a+d))return t.slice(a+d+1);if(0===d)return t.slice(a+d)}else s>o&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var l=e.charCodeAt(i+d);if(l!==t.charCodeAt(a+d))break;47===l&&(c=d)}var u="";for(d=i+c+1;d<=n;++d)d!==n&&47!==e.charCodeAt(d)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Oa(e),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return-1===n?i?"/":".":i&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Oa(e);var i,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,o=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!a){n=i+1;break}}else-1===o&&(a=!1,o=i+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(s=i):(r=-1,s=o))}return n===s?s=o:-1===s&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!a){n=i+1;break}}else-1===s&&(a=!1,s=i+1);return-1===s?"":e.slice(n,s)},extname:function(e){Oa(e);for(var t=-1,i=0,n=-1,s=!0,a=0,r=e.length-1;r>=0;--r){var o=e.charCodeAt(r);if(47!==o)-1===n&&(s=!1,n=r+1),46===o?-1===t?t=r:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){i=r+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===i+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var i=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+n:i+e+n:n}("/",e)},parse:function(e){Oa(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,n=e.charCodeAt(0),s=47===n;s?(t.root="/",i=1):i=0;for(var a=-1,r=0,o=-1,c=!0,d=e.length-1,l=0;d>=i;--d)if(47!==(n=e.charCodeAt(d)))-1===o&&(c=!1,o=d+1),46===n?-1===a?a=d:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){r=d+1;break}return-1===a||-1===o||0===l||1===l&&a===o-1&&a===r+1?-1!==o&&(t.base=t.name=0===r&&s?e.slice(1,o):e.slice(r,o)):(0===r&&s?(t.name=e.slice(1,a),t.base=e.slice(1,o)):(t.name=e.slice(r,a),t.base=e.slice(r,o)),t.ext=e.slice(a,o)),r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Pa.posix=Pa;var ja=n(Pa),Ma={},za={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
4
4
|
/*!
|
|
@@ -22,5 +22,5 @@ function(e){for(var t=[],i=0;i<e.elements.length;i++){var n=e.elements[i];if(n.n
|
|
|
22
22
|
* Released under MIT license <https://lodash.com/license>
|
|
23
23
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
24
24
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
25
|
-
*/!function(e,t){(function(){var n,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,d=64,l=128,u=256,p=1/0,m=9007199254740991,f=NaN,h=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",d],["rearg",u]],_="[object Arguments]",I="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",E="[object GeneratorFunction]",A="[object Map]",S="[object Number]",x="[object Object]",T="[object Promise]",R="[object RegExp]",k="[object Set]",L="[object String]",N="[object Symbol]",F="[object WeakMap]",U="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",D="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]",q=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Y=RegExp(K.source),J=RegExp(G.source),Q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ne.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,Ie=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Ne="["+Ee+"]",Fe="["+ke+"]",Ue="["+Ae+"]",Oe="\\d+",Ce="["+Se+"]",Pe="["+xe+"]",je="[^"+Ee+ke+Oe+Se+xe+Te+"]",Me="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ee+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Te+"]",Ve="\\u200d",qe="(?:"+Pe+"|"+je+")",He="(?:"+$e+"|"+je+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ue+"|"+Me+")"+"?",Ye="["+Re+"]?",Je=Ye+Ge+("(?:"+Ve+"(?:"+[ze,De,Be].join("|")+")"+Ye+Ge+")*"),Qe="(?:"+[Ce,De,Be].join("|")+")"+Je,Ze="(?:"+[ze+Ue+"?",Ue,De,Be,Ne].join("|")+")",Xe=RegExp(Le,"g"),et=RegExp(Ue,"g"),tt=RegExp(Me+"(?="+Me+")|"+Ze+Je,"g"),it=RegExp([$e+"?"+Pe+"+"+We+"(?="+[Fe,$e,"$"].join("|")+")",He+"+"+Ke+"(?="+[Fe,$e+qe,"$"].join("|")+")",$e+"?"+qe+"+"+We,$e+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Qe].join("|"),"g"),nt=RegExp("["+Ve+Ee+Ae+Re+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[C]=ot[P]=ot[j]=ot[M]=ot[z]=ot[D]=ot[B]=ot[$]=ot[V]=!0,ot[_]=ot[I]=ot[U]=ot[y]=ot[O]=ot[v]=ot[w]=ot[b]=ot[A]=ot[S]=ot[x]=ot[R]=ot[k]=ot[L]=ot[F]=!1;var ct={};ct[_]=ct[I]=ct[U]=ct[O]=ct[y]=ct[v]=ct[C]=ct[P]=ct[j]=ct[M]=ct[z]=ct[A]=ct[S]=ct[x]=ct[R]=ct[k]=ct[L]=ct[N]=ct[D]=ct[B]=ct[$]=ct[V]=!0,ct[w]=ct[b]=ct[F]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,pt="object"==typeof i&&i&&i.Object===Object&&i,mt="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||mt||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,_t=gt&>.exports===ht,It=_t&&pt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(e){}}(),vt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,bt=yt&&yt.isMap,Et=yt&&yt.isRegExp,At=yt&&yt.isSet,St=yt&&yt.isTypedArray;function xt(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Tt(e,t,i,n){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(n,r,i(r),e)}return n}function Rt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function kt(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function Lt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function Nt(e,t){for(var i=-1,n=null==e?0:e.length,s=0,a=[];++i<n;){var r=e[i];t(r,i,e)&&(a[s++]=r)}return a}function Ft(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Ut(e,t,i){for(var n=-1,s=null==e?0:e.length;++n<s;)if(i(t,e[n]))return!0;return!1}function Ot(e,t){for(var i=-1,n=null==e?0:e.length,s=Array(n);++i<n;)s[i]=t(e[i],i,e);return s}function Ct(e,t){for(var i=-1,n=t.length,s=e.length;++i<n;)e[s+i]=t[i];return e}function Pt(e,t,i,n){var s=-1,a=null==e?0:e.length;for(n&&a&&(i=e[++s]);++s<a;)i=t(i,e[s],s,e);return i}function jt(e,t,i,n){var s=null==e?0:e.length;for(n&&s&&(i=e[--s]);s--;)i=t(i,e[s],s,e);return i}function Mt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var zt=Wt("length");function Dt(e,t,i){var n;return i(e,(function(e,i,s){if(t(e,i,s))return n=i,!1})),n}function Bt(e,t,i,n){for(var s=e.length,a=i+(n?1:-1);n?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function $t(e,t,i){return t==t?function(e,t,i){var n=i-1,s=e.length;for(;++n<s;)if(e[n]===t)return n;return-1}(e,t,i):Bt(e,qt,i)}function Vt(e,t,i,n){for(var s=i-1,a=e.length;++s<a;)if(n(e[s],t))return s;return-1}function qt(e){return e!=e}function Ht(e,t){var i=null==e?0:e.length;return i?Yt(e,t)/i:f}function Wt(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,i,n,s){return s(e,(function(e,s,a){i=n?(n=!1,e):t(i,e,s,a)})),i}function Yt(e,t){for(var i,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==n&&(i=i===n?r:i+r)}return i}function Jt(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Qt(e){return e?e.slice(0,fi(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function Xt(e,t){return Ot(t,(function(t){return e[t]}))}function ei(e,t){return e.has(t)}function ti(e,t){for(var i=-1,n=e.length;++i<n&&$t(t,e[i],0)>-1;);return i}function ii(e,t){for(var i=e.length;i--&&$t(t,e[i],0)>-1;);return i}var ni=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),si=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ai(e){return"\\"+dt[e]}function ri(e){return nt.test(e)}function oi(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function ci(e,t){return function(i){return e(t(i))}}function di(e,t){for(var i=-1,n=e.length,s=0,a=[];++i<n;){var o=e[i];o!==t&&o!==r||(e[i]=r,a[s++]=i)}return a}function li(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function ui(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i}function pi(e){return ri(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):zt(e)}function mi(e){return ri(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function fi(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var hi=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gi=function e(t){var i=(t=null==t?ft:gi.defaults(ft.Object(),t,gi.pick(ft,at))).Array,re=t.Date,Ee=t.Error,Ae=t.Function,Se=t.Math,xe=t.Object,Te=t.RegExp,Re=t.String,ke=t.TypeError,Le=i.prototype,Ne=Ae.prototype,Fe=xe.prototype,Ue=t["__core-js_shared__"],Oe=Ne.toString,Ce=Fe.hasOwnProperty,Pe=0,je=function(){var e=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Fe.toString,ze=Oe.call(xe),De=ft._,Be=Te("^"+Oe.call(Ce).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=_t?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,He=$e?$e.allocUnsafe:n,We=ci(xe.getPrototypeOf,xe),Ke=xe.create,Ge=Fe.propertyIsEnumerable,Ye=Le.splice,Je=Ve?Ve.isConcatSpreadable:n,Qe=Ve?Ve.iterator:n,Ze=Ve?Ve.toStringTag:n,tt=function(){try{var e=ua(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Se.ceil,ht=Se.floor,gt=xe.getOwnPropertySymbols,It=$e?$e.isBuffer:n,yt=t.isFinite,zt=Le.join,Kt=ci(xe.keys,xe),_i=Se.max,Ii=Se.min,yi=re.now,vi=t.parseInt,wi=Se.random,bi=Le.reverse,Ei=ua(t,"DataView"),Ai=ua(t,"Map"),Si=ua(t,"Promise"),xi=ua(t,"Set"),Ti=ua(t,"WeakMap"),Ri=ua(xe,"create"),ki=Ti&&new Ti,Li={},Ni=ja(Ei),Fi=ja(Ai),Ui=ja(Si),Oi=ja(xi),Ci=ja(Ti),Pi=Ve?Ve.prototype:n,ji=Pi?Pi.valueOf:n,Mi=Pi?Pi.toString:n;function zi(e){if(eo(e)&&!Vr(e)&&!(e instanceof Vi)){if(e instanceof $i)return e;if(Ce.call(e,"__wrapped__"))return Ma(e)}return new $i(e)}var Di=function(){function e(){}return function(t){if(!Xr(t))return{};if(Ke)return Ke(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function Bi(){}function $i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function qi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Wi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Ki(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Wi;++t<i;)this.add(e[t])}function Gi(e){var t=this.__data__=new Hi(e);this.size=t.size}function Yi(e,t){var i=Vr(e),n=!i&&$r(e),s=!i&&!n&&Kr(e),a=!i&&!n&&!s&&co(e),r=i||n||s||a,o=r?Jt(e.length,Re):[],c=o.length;for(var d in e)!t&&!Ce.call(e,d)||r&&("length"==d||s&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Ia(d,c))||o.push(d);return o}function Ji(e){var t=e.length;return t?e[Gn(0,t-1)]:n}function Qi(e,t){return Oa(ks(e),on(t,0,e.length))}function Zi(e){return Oa(ks(e))}function Xi(e,t,i){(i!==n&&!zr(e[t],i)||i===n&&!(t in e))&&an(e,t,i)}function en(e,t,i){var s=e[t];Ce.call(e,t)&&zr(s,i)&&(i!==n||t in e)||an(e,t,i)}function tn(e,t){for(var i=e.length;i--;)if(zr(e[i][0],t))return i;return-1}function nn(e,t,i,n){return pn(e,(function(e,s,a){t(n,e,i(e),a)})),n}function sn(e,t){return e&&Ls(t,No(t),e)}function an(e,t,i){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function rn(e,t){for(var s=-1,a=t.length,r=i(a),o=null==e;++s<a;)r[s]=o?n:xo(e,t[s]);return r}function on(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function cn(e,t,i,s,a,r){var o,c=1&t,d=2&t,l=4&t;if(i&&(o=a?i(e,s,a,r):i(e)),o!==n)return o;if(!Xr(e))return e;var u=Vr(e);if(u){if(o=function(e){var t=e.length,i=new e.constructor(t);t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(i.index=e.index,i.input=e.input);return i}(e),!c)return ks(e,o)}else{var p=fa(e),m=p==b||p==E;if(Kr(e))return Es(e,c);if(p==x||p==_||m&&!a){if(o=d||m?{}:ga(e),!c)return d?function(e,t){return Ls(e,ma(e),t)}(e,function(e,t){return e&&Ls(t,Fo(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,sn(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,i){var n=e.constructor;switch(t){case U:return As(e);case y:case v:return new n(+e);case O:return function(e,t){var i=t?As(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case C:case P:case j:case M:case z:case D:case B:case $:case V:return Ss(e,i);case A:return new n;case S:case L:return new n(e);case R:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new n;case N:return s=e,ji?xe(ji.call(s)):{}}var s}(e,p,c)}}r||(r=new Gi);var f=r.get(e);if(f)return f;r.set(e,o),ao(e)?e.forEach((function(n){o.add(cn(n,t,i,n,e,r))})):to(e)&&e.forEach((function(n,s){o.set(s,cn(n,t,i,s,e,r))}));var h=u?n:(l?d?sa:na:d?Fo:No)(e);return Rt(h||e,(function(n,s){h&&(n=e[s=n]),en(o,s,cn(n,t,i,s,e,r))})),o}function dn(e,t,i){var s=i.length;if(null==e)return!s;for(e=xe(e);s--;){var a=i[s],r=t[a],o=e[a];if(o===n&&!(a in e)||!r(o))return!1}return!0}function ln(e,t,i){if("function"!=typeof e)throw new ke(s);return La((function(){e.apply(n,i)}),t)}function un(e,t,i,n){var s=-1,a=Ft,r=!0,o=e.length,c=[],d=t.length;if(!o)return c;i&&(t=Ot(t,Zt(i))),n?(a=Ut,r=!1):t.length>=200&&(a=ei,r=!1,t=new Ki(t));e:for(;++s<o;){var l=e[s],u=null==i?l:i(l);if(l=n||0!==l?l:0,r&&u==u){for(var p=d;p--;)if(t[p]===u)continue e;c.push(l)}else a(t,u,n)||c.push(l)}return c}zi.templateSettings={escape:Q,evaluate:Z,interpolate:X,variable:"",imports:{_:zi}},zi.prototype=Bi.prototype,zi.prototype.constructor=zi,$i.prototype=Di(Bi.prototype),$i.prototype.constructor=$i,Vi.prototype=Di(Bi.prototype),Vi.prototype.constructor=Vi,qi.prototype.clear=function(){this.__data__=Ri?Ri(null):{},this.size=0},qi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qi.prototype.get=function(e){var t=this.__data__;if(Ri){var i=t[e];return i===a?n:i}return Ce.call(t,e)?t[e]:n},qi.prototype.has=function(e){var t=this.__data__;return Ri?t[e]!==n:Ce.call(t,e)},qi.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ri&&t===n?a:t,this},Hi.prototype.clear=function(){this.__data__=[],this.size=0},Hi.prototype.delete=function(e){var t=this.__data__,i=tn(t,e);return!(i<0)&&(i==t.length-1?t.pop():Ye.call(t,i,1),--this.size,!0)},Hi.prototype.get=function(e){var t=this.__data__,i=tn(t,e);return i<0?n:t[i][1]},Hi.prototype.has=function(e){return tn(this.__data__,e)>-1},Hi.prototype.set=function(e,t){var i=this.__data__,n=tn(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},Wi.prototype.clear=function(){this.size=0,this.__data__={hash:new qi,map:new(Ai||Hi),string:new qi}},Wi.prototype.delete=function(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t},Wi.prototype.get=function(e){return da(this,e).get(e)},Wi.prototype.has=function(e){return da(this,e).has(e)},Wi.prototype.set=function(e,t){var i=da(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Ki.prototype.add=Ki.prototype.push=function(e){return this.__data__.set(e,a),this},Ki.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.clear=function(){this.__data__=new Hi,this.size=0},Gi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Gi.prototype.get=function(e){return this.__data__.get(e)},Gi.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Hi){var n=i.__data__;if(!Ai||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Wi(n)}return i.set(e,t),this.size=i.size,this};var pn=Us(vn),mn=Us(wn,!0);function fn(e,t){var i=!0;return pn(e,(function(e,n,s){return i=!!t(e,n,s)})),i}function hn(e,t,i){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===n?o==o&&!oo(o):i(o,c)))var c=o,d=r}return d}function gn(e,t){var i=[];return pn(e,(function(e,n,s){t(e,n,s)&&i.push(e)})),i}function _n(e,t,i,n,s){var a=-1,r=e.length;for(i||(i=_a),s||(s=[]);++a<r;){var o=e[a];t>0&&i(o)?t>1?_n(o,t-1,i,n,s):Ct(s,o):n||(s[s.length]=o)}return s}var In=Os(),yn=Os(!0);function vn(e,t){return e&&In(e,t,No)}function wn(e,t){return e&&yn(e,t,No)}function bn(e,t){return Nt(t,(function(t){return Jr(e[t])}))}function En(e,t){for(var i=0,s=(t=ys(t,e)).length;null!=e&&i<s;)e=e[Pa(t[i++])];return i&&i==s?e:n}function An(e,t,i){var n=t(e);return Vr(e)?n:Ct(n,i(e))}function Sn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Ze&&Ze in xe(e)?function(e){var t=Ce.call(e,Ze),i=e[Ze];try{e[Ze]=n;var s=!0}catch(e){}var a=Me.call(e);s&&(t?e[Ze]=i:delete e[Ze]);return a}(e):function(e){return Me.call(e)}(e)}function xn(e,t){return e>t}function Tn(e,t){return null!=e&&Ce.call(e,t)}function Rn(e,t){return null!=e&&t in xe(e)}function kn(e,t,s){for(var a=s?Ut:Ft,r=e[0].length,o=e.length,c=o,d=i(o),l=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Ot(p,Zt(t))),l=Ii(p.length,l),d[c]=!s&&(t||r>=120&&p.length>=120)?new Ki(c&&p):n}p=e[0];var m=-1,f=d[0];e:for(;++m<r&&u.length<l;){var h=p[m],g=t?t(h):h;if(h=s||0!==h?h:0,!(f?ei(f,g):a(u,g,s))){for(c=o;--c;){var _=d[c];if(!(_?ei(_,g):a(e[c],g,s)))continue e}f&&f.push(g),u.push(h)}}return u}function Ln(e,t,i){var s=null==(e=Ta(e,t=ys(t,e)))?e:e[Pa(Ya(t))];return null==s?n:xt(s,e,i)}function Nn(e){return eo(e)&&Sn(e)==_}function Fn(e,t,i,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,i,s,a,r){var o=Vr(e),c=Vr(t),d=o?I:fa(e),l=c?I:fa(t),u=(d=d==_?x:d)==x,p=(l=l==_?x:l)==x,m=d==l;if(m&&Kr(e)){if(!Kr(t))return!1;o=!0,u=!1}if(m&&!u)return r||(r=new Gi),o||co(e)?ta(e,t,i,s,a,r):function(e,t,i,n,s,a,r){switch(i){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U:return!(e.byteLength!=t.byteLength||!a(new qe(e),new qe(t)));case y:case v:case S:return zr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case R:case L:return e==t+"";case A:var o=oi;case k:var c=1&n;if(o||(o=li),e.size!=t.size&&!c)return!1;var d=r.get(e);if(d)return d==t;n|=2,r.set(e,t);var l=ta(o(e),o(t),n,s,a,r);return r.delete(e),l;case N:if(ji)return ji.call(e)==ji.call(t)}return!1}(e,t,d,i,s,a,r);if(!(1&i)){var f=u&&Ce.call(e,"__wrapped__"),h=p&&Ce.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,b=h?t.value():t;return r||(r=new Gi),a(g,b,i,s,r)}}if(!m)return!1;return r||(r=new Gi),function(e,t,i,s,a,r){var o=1&i,c=na(e),d=c.length,l=na(t),u=l.length;if(d!=u&&!o)return!1;var p=d;for(;p--;){var m=c[p];if(!(o?m in t:Ce.call(t,m)))return!1}var f=r.get(e),h=r.get(t);if(f&&h)return f==t&&h==e;var g=!0;r.set(e,t),r.set(t,e);var _=o;for(;++p<d;){var I=e[m=c[p]],y=t[m];if(s)var v=o?s(y,I,m,t,e,r):s(I,y,m,e,t,r);if(!(v===n?I===y||a(I,y,i,s,r):v)){g=!1;break}_||(_="constructor"==m)}if(g&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,i,s,a,r)}(e,t,i,s,Fn,a))}function Un(e,t,i,s){var a=i.length,r=a,o=!s;if(null==e)return!r;for(e=xe(e);a--;){var c=i[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var d=(c=i[a])[0],l=e[d],u=c[1];if(o&&c[2]){if(l===n&&!(d in e))return!1}else{var p=new Gi;if(s)var m=s(l,u,d,e,t,p);if(!(m===n?Fn(u,l,3,s,p):m))return!1}}return!0}function On(e){return!(!Xr(e)||(t=e,je&&je in t))&&(Jr(e)?Be:_e).test(ja(e));var t}function Cn(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Vr(e)?Bn(e[0],e[1]):Dn(e):pc(e)}function Pn(e){if(!Ea(e))return Kt(e);var t=[];for(var i in xe(e))Ce.call(e,i)&&"constructor"!=i&&t.push(i);return t}function jn(e){if(!Xr(e))return function(e){var t=[];if(null!=e)for(var i in xe(e))t.push(i);return t}(e);var t=Ea(e),i=[];for(var n in e)("constructor"!=n||!t&&Ce.call(e,n))&&i.push(n);return i}function Mn(e,t){return e<t}function zn(e,t){var n=-1,s=Hr(e)?i(e.length):[];return pn(e,(function(e,i,a){s[++n]=t(e,i,a)})),s}function Dn(e){var t=la(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(i){return i===e||Un(i,e,t)}}function Bn(e,t){return va(e)&&Aa(t)?Sa(Pa(e),t):function(i){var s=xo(i,e);return s===n&&s===t?To(i,e):Fn(t,s,3)}}function $n(e,t,i,s,a){e!==t&&In(t,(function(r,o){if(a||(a=new Gi),Xr(r))!function(e,t,i,s,a,r,o){var c=Ra(e,i),d=Ra(t,i),l=o.get(d);if(l)return void Xi(e,i,l);var u=r?r(c,d,i+"",e,t,o):n,p=u===n;if(p){var m=Vr(d),f=!m&&Kr(d),h=!m&&!f&&co(d);u=d,m||f||h?Vr(c)?u=c:Wr(c)?u=ks(c):f?(p=!1,u=Es(d,!0)):h?(p=!1,u=Ss(d,!0)):u=[]:no(d)||$r(d)?(u=c,$r(c)?u=_o(c):Xr(c)&&!Jr(c)||(u=ga(d))):p=!1}p&&(o.set(d,u),a(u,d,s,r,o),o.delete(d));Xi(e,i,u)}(e,t,o,i,$n,s,a);else{var c=s?s(Ra(e,o),r,o+"",e,t,a):n;c===n&&(c=r),Xi(e,o,c)}}),Fo)}function Vn(e,t){var i=e.length;if(i)return Ia(t+=t<0?i:0,i)?e[t]:n}function qn(e,t,i){t=t.length?Ot(t,(function(e){return Vr(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[nc];var n=-1;t=Ot(t,Zt(ca()));var s=zn(e,(function(e,i,s){var a=Ot(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(s,(function(e,t){return function(e,t,i){var n=-1,s=e.criteria,a=t.criteria,r=s.length,o=i.length;for(;++n<r;){var c=xs(s[n],a[n]);if(c)return n>=o?c:c*("desc"==i[n]?-1:1)}return e.index-t.index}(e,t,i)}))}function Hn(e,t,i){for(var n=-1,s=t.length,a={};++n<s;){var r=t[n],o=En(e,r);i(o,r)&&Xn(a,ys(r,e),o)}return a}function Wn(e,t,i,n){var s=n?Vt:$t,a=-1,r=t.length,o=e;for(e===t&&(t=ks(t)),i&&(o=Ot(e,Zt(i)));++a<r;)for(var c=0,d=t[a],l=i?i(d):d;(c=s(o,l,c,n))>-1;)o!==e&&Ye.call(o,c,1),Ye.call(e,c,1);return e}function Kn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var s=t[i];if(i==n||s!==a){var a=s;Ia(s)?Ye.call(e,s,1):us(e,s)}}return e}function Gn(e,t){return e+ht(wi()*(t-e+1))}function Yn(e,t){var i="";if(!e||t<1||t>m)return i;do{t%2&&(i+=e),(t=ht(t/2))&&(e+=e)}while(t);return i}function Jn(e,t){return Na(xa(e,t,nc),e+"")}function Qn(e){return Ji(Do(e))}function Zn(e,t){var i=Do(e);return Oa(i,on(t,0,i.length))}function Xn(e,t,i,s){if(!Xr(e))return e;for(var a=-1,r=(t=ys(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var d=Pa(t[a]),l=i;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(a!=o){var u=c[d];(l=s?s(u,d,c):n)===n&&(l=Xr(u)?u:Ia(t[a+1])?[]:{})}en(c,d,l),c=c[d]}return e}var es=ki?function(e,t){return ki.set(e,t),e}:nc,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:nc;function is(e){return Oa(Do(e))}function ns(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=i(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var i;return pn(e,(function(e,n,s){return!(i=t(e,n,s))})),!!i}function as(e,t,i){var n=0,s=null==e?n:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;n<s;){var a=n+s>>>1,r=e[a];null!==r&&!oo(r)&&(i?r<=t:r<t)?n=a+1:s=a}return s}return rs(e,t,nc,i)}function rs(e,t,i,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=i(t))!=t,c=null===t,d=oo(t),l=t===n;a<r;){var u=ht((a+r)/2),p=i(e[u]),m=p!==n,f=null===p,h=p==p,g=oo(p);if(o)var _=s||h;else _=l?h&&(s||m):c?h&&m&&(s||!f):d?h&&m&&!f&&(s||!g):!f&&!g&&(s?p<=t:p<t);_?a=u+1:r=u}return Ii(r,4294967294)}function os(e,t){for(var i=-1,n=e.length,s=0,a=[];++i<n;){var r=e[i],o=t?t(r):r;if(!i||!zr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?f:+e}function ds(e){if("string"==typeof e)return e;if(Vr(e))return Ot(e,ds)+"";if(oo(e))return Mi?Mi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ls(e,t,i){var n=-1,s=Ft,a=e.length,r=!0,o=[],c=o;if(i)r=!1,s=Ut;else if(a>=200){var d=t?null:Ys(e);if(d)return li(d);r=!1,s=ei,c=new Ki}else c=t?[]:o;e:for(;++n<a;){var l=e[n],u=t?t(l):l;if(l=i||0!==l?l:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(l)}else s(c,u,i)||(c!==o&&c.push(u),o.push(l))}return o}function us(e,t){return null==(e=Ta(e,t=ys(t,e)))||delete e[Pa(Ya(t))]}function ps(e,t,i,n){return Xn(e,t,i(En(e,t)),n)}function ms(e,t,i,n){for(var s=e.length,a=n?s:-1;(n?a--:++a<s)&&t(e[a],a,e););return i?ns(e,n?0:a,n?a+1:s):ns(e,n?a+1:0,n?s:a)}function fs(e,t){var i=e;return i instanceof Vi&&(i=i.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))}),i)}function hs(e,t,n){var s=e.length;if(s<2)return s?ls(e[0]):[];for(var a=-1,r=i(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=un(r[a]||o,e[c],t,n));return ls(_n(r,1),t,n)}function gs(e,t,i){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:n;i(o,e[s],c)}return o}function _s(e){return Wr(e)?e:[]}function Is(e){return"function"==typeof e?e:nc}function ys(e,t){return Vr(e)?e:va(e,t)?[e]:Ca(Io(e))}var vs=Jn;function ws(e,t,i){var s=e.length;return i=i===n?s:i,!t&&i>=s?e:ns(e,t,i)}var bs=nt||function(e){return ft.clearTimeout(e)};function Es(e,t){if(t)return e.slice();var i=e.length,n=He?He(i):new e.constructor(i);return e.copy(n),n}function As(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ss(e,t){var i=t?As(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function xs(e,t){if(e!==t){var i=e!==n,s=null===e,a=e==e,r=oo(e),o=t!==n,c=null===t,d=t==t,l=oo(t);if(!c&&!l&&!r&&e>t||r&&o&&d&&!c&&!l||s&&o&&d||!i&&d||!a)return 1;if(!s&&!r&&!l&&e<t||l&&i&&a&&!s&&!r||c&&i&&a||!o&&a||!d)return-1}return 0}function Ts(e,t,n,s){for(var a=-1,r=e.length,o=n.length,c=-1,d=t.length,l=_i(r-o,0),u=i(d+l),p=!s;++c<d;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[n[a]]=e[a]);for(;l--;)u[c++]=e[a++];return u}function Rs(e,t,n,s){for(var a=-1,r=e.length,o=-1,c=n.length,d=-1,l=t.length,u=_i(r-c,0),p=i(u+l),m=!s;++a<u;)p[a]=e[a];for(var f=a;++d<l;)p[f+d]=t[d];for(;++o<c;)(m||a<r)&&(p[f+n[o]]=e[a++]);return p}function ks(e,t){var n=-1,s=e.length;for(t||(t=i(s));++n<s;)t[n]=e[n];return t}function Ls(e,t,i,s){var a=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var c=t[r],d=s?s(i[c],e[c],c,i,e):n;d===n&&(d=e[c]),a?an(i,c,d):en(i,c,d)}return i}function Ns(e,t){return function(i,n){var s=Vr(i)?Tt:nn,a=t?t():{};return s(i,e,ca(n,2),a)}}function Fs(e){return Jn((function(t,i){var s=-1,a=i.length,r=a>1?i[a-1]:n,o=a>2?i[2]:n;for(r=e.length>3&&"function"==typeof r?(a--,r):n,o&&ya(i[0],i[1],o)&&(r=a<3?n:r,a=1),t=xe(t);++s<a;){var c=i[s];c&&e(t,c,s,r)}return t}))}function Us(e,t){return function(i,n){if(null==i)return i;if(!Hr(i))return e(i,n);for(var s=i.length,a=t?s:-1,r=xe(i);(t?a--:++a<s)&&!1!==n(r[a],a,r););return i}}function Os(e){return function(t,i,n){for(var s=-1,a=xe(t),r=n(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===i(a[c],c,a))break}return t}}function Cs(e){return function(t){var i=ri(t=Io(t))?mi(t):n,s=i?i[0]:t.charAt(0),a=i?ws(i,1).join(""):t.slice(1);return s[e]()+a}}function Ps(e){return function(t){return Pt(Qo(Vo(t).replace(Xe,"")),e,"")}}function js(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Di(e.prototype),n=e.apply(i,t);return Xr(n)?n:i}}function Ms(e){return function(t,i,s){var a=xe(t);if(!Hr(t)){var r=ca(i,3);t=No(t),i=function(e){return r(a[e],e,a)}}var o=e(t,i,s);return o>-1?a[r?t[o]:o]:n}}function zs(e){return ia((function(t){var i=t.length,a=i,r=$i.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new ke(s);if(r&&!c&&"wrapper"==ra(o))var c=new $i([],!0)}for(a=c?a:i;++a<i;){var d=ra(o=t[a]),l="wrapper"==d?aa(o):n;c=l&&wa(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ra(l[0])].apply(c,l[3]):1==o.length&&wa(o)?c[d]():c.thru(o)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Vr(n))return c.plant(n).value();for(var s=0,a=i?t[s].apply(this,e):n;++s<i;)a=t[s].call(this,a);return a}}))}function Ds(e,t,s,a,r,o,c,d,u,p){var m=t&l,f=1&t,h=2&t,g=24&t,_=512&t,I=h?n:js(e);return function l(){for(var y=arguments.length,v=i(y),w=y;w--;)v[w]=arguments[w];if(g)var b=oa(l),E=function(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}(v,b);if(a&&(v=Ts(v,a,r,g)),o&&(v=Rs(v,o,c,g)),y-=E,g&&y<p){var A=di(v,b);return Ks(e,t,Ds,l.placeholder,s,v,A,d,u,p-y)}var S=f?s:this,x=h?S[e]:e;return y=v.length,d?v=function(e,t){var i=e.length,s=Ii(t.length,i),a=ks(e);for(;s--;){var r=t[s];e[s]=Ia(r,i)?a[r]:n}return e}(v,d):_&&y>1&&v.reverse(),m&&u<y&&(v.length=u),this&&this!==ft&&this instanceof l&&(x=I||js(x)),x.apply(S,v)}}function Bs(e,t){return function(i,n){return function(e,t,i,n){return vn(e,(function(e,s,a){t(n,i(e),s,a)})),n}(i,e,t(n),{})}}function $s(e,t){return function(i,s){var a;if(i===n&&s===n)return t;if(i!==n&&(a=i),s!==n){if(a===n)return s;"string"==typeof i||"string"==typeof s?(i=ds(i),s=ds(s)):(i=cs(i),s=cs(s)),a=e(i,s)}return a}}function Vs(e){return ia((function(t){return t=Ot(t,Zt(ca())),Jn((function(i){var n=this;return e(t,(function(e){return xt(e,n,i)}))}))}))}function qs(e,t){var i=(t=t===n?" ":ds(t)).length;if(i<2)return i?Yn(t,e):t;var s=Yn(t,mt(e/pi(t)));return ri(t)?ws(mi(s),0,e).join(""):s.slice(0,e)}function Hs(e){return function(t,s,a){return a&&"number"!=typeof a&&ya(t,s,a)&&(s=a=n),t=mo(t),s===n?(s=t,t=0):s=mo(s),function(e,t,n,s){for(var a=-1,r=_i(mt((t-e)/(n||1)),0),o=i(r);r--;)o[s?r:++a]=e,e+=n;return o}(t,s,a=a===n?t<s?1:-1:mo(a),e)}}function Ws(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=go(t),i=go(i)),e(t,i)}}function Ks(e,t,i,s,a,r,o,l,u,p){var m=8&t;t|=m?c:d,4&(t&=~(m?d:c))||(t&=-4);var f=[e,t,a,m?r:n,m?o:n,m?n:r,m?n:o,l,u,p],h=i.apply(n,f);return wa(e)&&ka(h,f),h.placeholder=s,Fa(h,e,t)}function Gs(e){var t=Se[e];return function(e,i){if(e=go(e),(i=null==i?0:Ii(fo(i),292))&&yt(e)){var n=(Io(e)+"e").split("e");return+((n=(Io(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var Ys=xi&&1/li(new xi([,-0]))[1]==p?function(e){return new xi(e)}:cc;function Js(e){return function(t){var i=fa(t);return i==A?oi(t):i==k?ui(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qs(e,t,a,p,m,f,h,g){var _=2&t;if(!_&&"function"!=typeof e)throw new ke(s);var I=p?p.length:0;if(I||(t&=-97,p=m=n),h=h===n?h:_i(fo(h),0),g=g===n?g:fo(g),I-=m?m.length:0,t&d){var y=p,v=m;p=m=n}var w=_?n:aa(e),b=[e,t,a,p,m,y,v,f,h,g];if(w&&function(e,t){var i=e[1],n=t[1],s=i|n,a=s<131,o=n==l&&8==i||n==l&&i==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==i;if(!a&&!o)return e;1&n&&(e[2]=t[2],s|=1&i?0:4);var c=t[3];if(c){var d=e[3];e[3]=d?Ts(d,c,t[4]):c,e[4]=d?di(e[3],r):t[4]}(c=t[5])&&(d=e[5],e[5]=d?Rs(d,c,t[6]):c,e[6]=d?di(e[5],r):t[6]);(c=t[7])&&(e[7]=c);n&l&&(e[8]=null==e[8]?t[8]:Ii(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(b,w),e=b[0],t=b[1],a=b[2],p=b[3],m=b[4],!(g=b[9]=b[9]===n?_?0:e.length:_i(b[9]-I,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==o?function(e,t,s){var a=js(e);return function r(){for(var o=arguments.length,c=i(o),d=o,l=oa(r);d--;)c[d]=arguments[d];var u=o<3&&c[0]!==l&&c[o-1]!==l?[]:di(c,l);return(o-=u.length)<s?Ks(e,t,Ds,r.placeholder,n,c,u,n,n,s-o):xt(this&&this!==ft&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||m.length?Ds.apply(n,b):function(e,t,n,s){var a=1&t,r=js(e);return function t(){for(var o=-1,c=arguments.length,d=-1,l=s.length,u=i(l+c),p=this&&this!==ft&&this instanceof t?r:e;++d<l;)u[d]=s[d];for(;c--;)u[d++]=arguments[++o];return xt(p,a?n:this,u)}}(e,t,a,p);else var E=function(e,t,i){var n=1&t,s=js(e);return function t(){return(this&&this!==ft&&this instanceof t?s:e).apply(n?i:this,arguments)}}(e,t,a);return Fa((w?es:ka)(E,b),e,t)}function Zs(e,t,i,s){return e===n||zr(e,Fe[i])&&!Ce.call(s,i)?t:e}function Xs(e,t,i,s,a,r){return Xr(e)&&Xr(t)&&(r.set(t,e),$n(e,t,n,Xs,r),r.delete(t)),e}function ea(e){return no(e)?n:e}function ta(e,t,i,s,a,r){var o=1&i,c=e.length,d=t.length;if(c!=d&&!(o&&d>c))return!1;var l=r.get(e),u=r.get(t);if(l&&u)return l==t&&u==e;var p=-1,m=!0,f=2&i?new Ki:n;for(r.set(e,t),r.set(t,e);++p<c;){var h=e[p],g=t[p];if(s)var _=o?s(g,h,p,t,e,r):s(h,g,p,e,t,r);if(_!==n){if(_)continue;m=!1;break}if(f){if(!Mt(t,(function(e,t){if(!ei(f,t)&&(h===e||a(h,e,i,s,r)))return f.push(t)}))){m=!1;break}}else if(h!==g&&!a(h,g,i,s,r)){m=!1;break}}return r.delete(e),r.delete(t),m}function ia(e){return Na(xa(e,n,qa),e+"")}function na(e){return An(e,No,pa)}function sa(e){return An(e,Fo,ma)}var aa=ki?function(e){return ki.get(e)}:cc;function ra(e){for(var t=e.name+"",i=Li[t],n=Ce.call(Li,t)?i.length:0;n--;){var s=i[n],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Ce.call(zi,"placeholder")?zi:e).placeholder}function ca(){var e=zi.iteratee||sc;return e=e===sc?Cn:e,arguments.length?e(arguments[0],arguments[1]):e}function da(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function la(e){for(var t=No(e),i=t.length;i--;){var n=t[i],s=e[n];t[i]=[n,s,Aa(s)]}return t}function ua(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return On(i)?i:n}var pa=gt?function(e){return null==e?[]:(e=xe(e),Nt(gt(e),(function(t){return Ge.call(e,t)})))}:hc,ma=gt?function(e){for(var t=[];e;)Ct(t,pa(e)),e=We(e);return t}:hc,fa=Sn;function ha(e,t,i){for(var n=-1,s=(t=ys(t,e)).length,a=!1;++n<s;){var r=Pa(t[n]);if(!(a=null!=e&&i(e,r)))break;e=e[r]}return a||++n!=s?a:!!(s=null==e?0:e.length)&&Zr(s)&&Ia(r,s)&&(Vr(e)||$r(e))}function ga(e){return"function"!=typeof e.constructor||Ea(e)?{}:Di(We(e))}function _a(e){return Vr(e)||$r(e)||!!(Je&&e&&e[Je])}function Ia(e,t){var i=typeof e;return!!(t=null==t?m:t)&&("number"==i||"symbol"!=i&&ye.test(e))&&e>-1&&e%1==0&&e<t}function ya(e,t,i){if(!Xr(i))return!1;var n=typeof t;return!!("number"==n?Hr(i)&&Ia(t,i.length):"string"==n&&t in i)&&zr(i[t],e)}function va(e,t){if(Vr(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in xe(t))}function wa(e){var t=ra(e),i=zi[t];if("function"!=typeof i||!(t in Vi.prototype))return!1;if(e===i)return!0;var n=aa(i);return!!n&&e===n[0]}(Ei&&fa(new Ei(new ArrayBuffer(1)))!=O||Ai&&fa(new Ai)!=A||Si&&fa(Si.resolve())!=T||xi&&fa(new xi)!=k||Ti&&fa(new Ti)!=F)&&(fa=function(e){var t=Sn(e),i=t==x?e.constructor:n,s=i?ja(i):"";if(s)switch(s){case Ni:return O;case Fi:return A;case Ui:return T;case Oi:return k;case Ci:return F}return t});var ba=Ue?Jr:gc;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Fe)}function Aa(e){return e==e&&!Xr(e)}function Sa(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in xe(i)))}}function xa(e,t,s){return t=_i(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,r=_i(n.length-t,0),o=i(r);++a<r;)o[a]=n[t+a];a=-1;for(var c=i(t+1);++a<t;)c[a]=n[a];return c[t]=s(o),xt(e,this,c)}}function Ta(e,t){return t.length<2?e:En(e,ns(t,0,-1))}function Ra(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ka=Ua(es),La=pt||function(e,t){return ft.setTimeout(e,t)},Na=Ua(ts);function Fa(e,t,i){var n=t+"";return Na(e,function(e,t){var i=t.length;if(!i)return e;var n=i-1;return t[n]=(i>1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Rt(g,(function(i){var n="_."+i[0];t&i[1]&&!Ft(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(de):[]}(n),i)))}function Ua(e){var t=0,i=0;return function(){var s=yi(),a=16-(s-i);if(i=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Oa(e,t){var i=-1,s=e.length,a=s-1;for(t=t===n?s:t;++i<t;){var r=Gn(i,a),o=e[r];e[r]=e[i],e[i]=o}return e.length=t,e}var Ca=function(e){var t=Ur(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,i,n,s){t.push(n?s.replace(pe,"$1"):i||e)})),t}));function Pa(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ma(e){if(e instanceof Vi)return e.clone();var t=new $i(e.__wrapped__,e.__chain__);return t.__actions__=ks(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var za=Jn((function(e,t){return Wr(e)?un(e,_n(t,1,Wr,!0)):[]})),Da=Jn((function(e,t){var i=Ya(t);return Wr(i)&&(i=n),Wr(e)?un(e,_n(t,1,Wr,!0),ca(i,2)):[]})),Ba=Jn((function(e,t){var i=Ya(t);return Wr(i)&&(i=n),Wr(e)?un(e,_n(t,1,Wr,!0),n,i):[]}));function $a(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var s=null==i?0:fo(i);return s<0&&(s=_i(n+s,0)),Bt(e,ca(t,3),s)}function Va(e,t,i){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return i!==n&&(a=fo(i),a=i<0?_i(s+a,0):Ii(a,s-1)),Bt(e,ca(t,3),a,!0)}function qa(e){return(null==e?0:e.length)?_n(e,1):[]}function Ha(e){return e&&e.length?e[0]:n}var Wa=Jn((function(e){var t=Ot(e,_s);return t.length&&t[0]===e[0]?kn(t):[]})),Ka=Jn((function(e){var t=Ya(e),i=Ot(e,_s);return t===Ya(i)?t=n:i.pop(),i.length&&i[0]===e[0]?kn(i,ca(t,2)):[]})),Ga=Jn((function(e){var t=Ya(e),i=Ot(e,_s);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?kn(i,n,t):[]}));function Ya(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ja=Jn(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Wn(e,t):e}var Za=ia((function(e,t){var i=null==e?0:e.length,n=rn(e,t);return Kn(e,Ot(t,(function(e){return Ia(e,i)?+e:e})).sort(xs)),n}));function Xa(e){return null==e?e:bi.call(e)}var er=Jn((function(e){return ls(_n(e,1,Wr,!0))})),tr=Jn((function(e){var t=Ya(e);return Wr(t)&&(t=n),ls(_n(e,1,Wr,!0),ca(t,2))})),ir=Jn((function(e){var t=Ya(e);return t="function"==typeof t?t:n,ls(_n(e,1,Wr,!0),n,t)}));function nr(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Wr(e))return t=_i(e.length,t),!0})),Jt(t,(function(t){return Ot(e,Wt(t))}))}function sr(e,t){if(!e||!e.length)return[];var i=nr(e);return null==t?i:Ot(i,(function(e){return xt(t,n,e)}))}var ar=Jn((function(e,t){return Wr(e)?un(e,t):[]})),rr=Jn((function(e){return hs(Nt(e,Wr))})),or=Jn((function(e){var t=Ya(e);return Wr(t)&&(t=n),hs(Nt(e,Wr),ca(t,2))})),cr=Jn((function(e){var t=Ya(e);return t="function"==typeof t?t:n,hs(Nt(e,Wr),n,t)})),dr=Jn(nr);var lr=Jn((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,sr(e,i)}));function ur(e){var t=zi(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var mr=ia((function(e){var t=e.length,i=t?e[0]:0,s=this.__wrapped__,a=function(t){return rn(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vi&&Ia(i)?((s=s.slice(i,+i+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:n}),new $i(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var fr=Ns((function(e,t,i){Ce.call(e,i)?++e[i]:an(e,i,1)}));var hr=Ms($a),gr=Ms(Va);function _r(e,t){return(Vr(e)?Rt:pn)(e,ca(t,3))}function Ir(e,t){return(Vr(e)?kt:mn)(e,ca(t,3))}var yr=Ns((function(e,t,i){Ce.call(e,i)?e[i].push(t):an(e,i,[t])}));var vr=Jn((function(e,t,n){var s=-1,a="function"==typeof t,r=Hr(e)?i(e.length):[];return pn(e,(function(e){r[++s]=a?xt(t,e,n):Ln(e,t,n)})),r})),wr=Ns((function(e,t,i){an(e,i,t)}));function br(e,t){return(Vr(e)?Ot:zn)(e,ca(t,3))}var Er=Ns((function(e,t,i){e[i?0:1].push(t)}),(function(){return[[],[]]}));var Ar=Jn((function(e,t){if(null==e)return[];var i=t.length;return i>1&&ya(e,t[0],t[1])?t=[]:i>2&&ya(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,_n(t,1),[])})),Sr=dt||function(){return ft.Date.now()};function xr(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Qs(e,l,n,n,n,n,t)}function Tr(e,t){var i;if("function"!=typeof t)throw new ke(s);return e=fo(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Rr=Jn((function(e,t,i){var n=1;if(i.length){var s=di(i,oa(Rr));n|=c}return Qs(e,n,t,i,s)})),kr=Jn((function(e,t,i){var n=3;if(i.length){var s=di(i,oa(kr));n|=c}return Qs(t,n,e,i,s)}));function Lr(e,t,i){var a,r,o,c,d,l,u=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw new ke(s);function h(t){var i=a,s=r;return a=r=n,u=t,c=e.apply(s,i)}function g(e){var i=e-l;return l===n||i>=t||i<0||m&&e-u>=o}function _(){var e=Sr();if(g(e))return I(e);d=La(_,function(e){var i=t-(e-l);return m?Ii(i,o-(e-u)):i}(e))}function I(e){return d=n,f&&a?h(e):(a=r=n,c)}function y(){var e=Sr(),i=g(e);if(a=arguments,r=this,l=e,i){if(d===n)return function(e){return u=e,d=La(_,t),p?h(e):c}(l);if(m)return bs(d),d=La(_,t),h(l)}return d===n&&(d=La(_,t)),c}return t=go(t)||0,Xr(i)&&(p=!!i.leading,o=(m="maxWait"in i)?_i(go(i.maxWait)||0,t):o,f="trailing"in i?!!i.trailing:f),y.cancel=function(){d!==n&&bs(d),u=0,a=l=r=d=n},y.flush=function(){return d===n?c:I(Sr())},y}var Nr=Jn((function(e,t){return ln(e,1,t)})),Fr=Jn((function(e,t,i){return ln(e,go(t)||0,i)}));function Ur(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(s);var i=function(){var n=arguments,s=t?t.apply(this,n):n[0],a=i.cache;if(a.has(s))return a.get(s);var r=e.apply(this,n);return i.cache=a.set(s,r)||a,r};return i.cache=new(Ur.Cache||Wi),i}function Or(e){if("function"!=typeof e)throw new ke(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ur.Cache=Wi;var Cr=vs((function(e,t){var i=(t=1==t.length&&Vr(t[0])?Ot(t[0],Zt(ca())):Ot(_n(t,1),Zt(ca()))).length;return Jn((function(n){for(var s=-1,a=Ii(n.length,i);++s<a;)n[s]=t[s].call(this,n[s]);return xt(e,this,n)}))})),Pr=Jn((function(e,t){var i=di(t,oa(Pr));return Qs(e,c,n,t,i)})),jr=Jn((function(e,t){var i=di(t,oa(jr));return Qs(e,d,n,t,i)})),Mr=ia((function(e,t){return Qs(e,u,n,n,n,t)}));function zr(e,t){return e===t||e!=e&&t!=t}var Dr=Ws(xn),Br=Ws((function(e,t){return e>=t})),$r=Nn(function(){return arguments}())?Nn:function(e){return eo(e)&&Ce.call(e,"callee")&&!Ge.call(e,"callee")},Vr=i.isArray,qr=vt?Zt(vt):function(e){return eo(e)&&Sn(e)==U};function Hr(e){return null!=e&&Zr(e.length)&&!Jr(e)}function Wr(e){return eo(e)&&Hr(e)}var Kr=It||gc,Gr=wt?Zt(wt):function(e){return eo(e)&&Sn(e)==v};function Yr(e){if(!eo(e))return!1;var t=Sn(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!no(e)}function Jr(e){if(!Xr(e))return!1;var t=Sn(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qr(e){return"number"==typeof e&&e==fo(e)}function Zr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function Xr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=bt?Zt(bt):function(e){return eo(e)&&fa(e)==A};function io(e){return"number"==typeof e||eo(e)&&Sn(e)==S}function no(e){if(!eo(e)||Sn(e)!=x)return!1;var t=We(e);if(null===t)return!0;var i=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Oe.call(i)==ze}var so=Et?Zt(Et):function(e){return eo(e)&&Sn(e)==R};var ao=At?Zt(At):function(e){return eo(e)&&fa(e)==k};function ro(e){return"string"==typeof e||!Vr(e)&&eo(e)&&Sn(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Sn(e)==N}var co=St?Zt(St):function(e){return eo(e)&&Zr(e.length)&&!!ot[Sn(e)]};var lo=Ws(Mn),uo=Ws((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Hr(e))return ro(e)?mi(e):ks(e);if(Qe&&e[Qe])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[Qe]());var t=fa(e);return(t==A?oi:t==k?li:Do)(e)}function mo(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fo(e){var t=mo(e),i=t%1;return t==t?i?t-i:t:0}function ho(e){return e?on(fo(e),0,h):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Xr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var i=ge.test(e);return i||Ie.test(e)?ut(e.slice(2),i?2:8):he.test(e)?f:+e}function _o(e){return Ls(e,Fo(e))}function Io(e){return null==e?"":ds(e)}var yo=Fs((function(e,t){if(Ea(t)||Hr(t))Ls(t,No(t),e);else for(var i in t)Ce.call(t,i)&&en(e,i,t[i])})),vo=Fs((function(e,t){Ls(t,Fo(t),e)})),wo=Fs((function(e,t,i,n){Ls(t,Fo(t),e,n)})),bo=Fs((function(e,t,i,n){Ls(t,No(t),e,n)})),Eo=ia(rn);var Ao=Jn((function(e,t){e=xe(e);var i=-1,s=t.length,a=s>2?t[2]:n;for(a&&ya(t[0],t[1],a)&&(s=1);++i<s;)for(var r=t[i],o=Fo(r),c=-1,d=o.length;++c<d;){var l=o[c],u=e[l];(u===n||zr(u,Fe[l])&&!Ce.call(e,l))&&(e[l]=r[l])}return e})),So=Jn((function(e){return e.push(n,Xs),xt(Oo,n,e)}));function xo(e,t,i){var s=null==e?n:En(e,t);return s===n?i:s}function To(e,t){return null!=e&&ha(e,t,Rn)}var Ro=Bs((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=i}),ec(nc)),ko=Bs((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ce.call(e,t)?e[t].push(i):e[t]=[i]}),ca),Lo=Jn(Ln);function No(e){return Hr(e)?Yi(e):Pn(e)}function Fo(e){return Hr(e)?Yi(e,!0):jn(e)}var Uo=Fs((function(e,t,i){$n(e,t,i)})),Oo=Fs((function(e,t,i,n){$n(e,t,i,n)})),Co=ia((function(e,t){var i={};if(null==e)return i;var n=!1;t=Ot(t,(function(t){return t=ys(t,e),n||(n=t.length>1),t})),Ls(e,sa(e),i),n&&(i=cn(i,7,ea));for(var s=t.length;s--;)us(i,t[s]);return i}));var Po=ia((function(e,t){return null==e?{}:function(e,t){return Hn(e,t,(function(t,i){return To(e,i)}))}(e,t)}));function jo(e,t){if(null==e)return{};var i=Ot(sa(e),(function(e){return[e]}));return t=ca(t),Hn(e,i,(function(e,i){return t(e,i[0])}))}var Mo=Js(No),zo=Js(Fo);function Do(e){return null==e?[]:Xt(e,No(e))}var Bo=Ps((function(e,t,i){return t=t.toLowerCase(),e+(i?$o(t):t)}));function $o(e){return Jo(Io(e).toLowerCase())}function Vo(e){return(e=Io(e))&&e.replace(ve,ni).replace(et,"")}var qo=Ps((function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})),Ho=Ps((function(e,t,i){return e+(i?" ":"")+t.toLowerCase()})),Wo=Cs("toLowerCase");var Ko=Ps((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));var Go=Ps((function(e,t,i){return e+(i?" ":"")+Jo(t)}));var Yo=Ps((function(e,t,i){return e+(i?" ":"")+t.toUpperCase()})),Jo=Cs("toUpperCase");function Qo(e,t,i){return e=Io(e),(t=i?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Zo=Jn((function(e,t){try{return xt(e,n,t)}catch(e){return Yr(e)?e:new Ee(e)}})),Xo=ia((function(e,t){return Rt(t,(function(t){t=Pa(t),an(e,t,Rr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=zs(),ic=zs(!0);function nc(e){return e}function sc(e){return Cn("function"==typeof e?e:cn(e,1))}var ac=Jn((function(e,t){return function(i){return Ln(i,e,t)}})),rc=Jn((function(e,t){return function(i){return Ln(e,i,t)}}));function oc(e,t,i){var n=No(t),s=bn(t,n);null!=i||Xr(t)&&(s.length||!n.length)||(i=t,t=e,e=this,s=bn(t,No(t)));var a=!(Xr(i)&&"chain"in i&&!i.chain),r=Jr(e);return Rt(s,(function(i){var n=t[i];e[i]=n,r&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=ks(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,Ct([this.value()],arguments))})})),e}function cc(){}var dc=Vs(Ot),lc=Vs(Lt),uc=Vs(Mt);function pc(e){return va(e)?Wt(Pa(e)):function(e){return function(t){return En(t,e)}}(e)}var mc=Hs(),fc=Hs(!0);function hc(){return[]}function gc(){return!1}var _c=$s((function(e,t){return e+t}),0),Ic=Gs("ceil"),yc=$s((function(e,t){return e/t}),1),vc=Gs("floor");var wc,bc=$s((function(e,t){return e*t}),1),Ec=Gs("round"),Ac=$s((function(e,t){return e-t}),0);return zi.after=function(e,t){if("function"!=typeof t)throw new ke(s);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},zi.ary=xr,zi.assign=yo,zi.assignIn=vo,zi.assignInWith=wo,zi.assignWith=bo,zi.at=Eo,zi.before=Tr,zi.bind=Rr,zi.bindAll=Xo,zi.bindKey=kr,zi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vr(e)?e:[e]},zi.chain=ur,zi.chunk=function(e,t,s){t=(s?ya(e,t,s):t===n)?1:_i(fo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=i(mt(a/t));r<a;)c[o++]=ns(e,r,r+=t);return c},zi.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,s=[];++t<i;){var a=e[t];a&&(s[n++]=a)}return s},zi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ct(Vr(n)?ks(n):[n],_n(t,1))},zi.cond=function(e){var t=null==e?0:e.length,i=ca();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new ke(s);return[i(e[0]),e[1]]})):[],Jn((function(i){for(var n=-1;++n<t;){var s=e[n];if(xt(s[0],this,i))return xt(s[1],this,i)}}))},zi.conforms=function(e){return function(e){var t=No(e);return function(i){return dn(i,e,t)}}(cn(e,1))},zi.constant=ec,zi.countBy=fr,zi.create=function(e,t){var i=Di(e);return null==t?i:sn(i,t)},zi.curry=function e(t,i,s){var a=Qs(t,8,n,n,n,n,n,i=s?n:i);return a.placeholder=e.placeholder,a},zi.curryRight=function e(t,i,s){var a=Qs(t,o,n,n,n,n,n,i=s?n:i);return a.placeholder=e.placeholder,a},zi.debounce=Lr,zi.defaults=Ao,zi.defaultsDeep=So,zi.defer=Nr,zi.delay=Fr,zi.difference=za,zi.differenceBy=Da,zi.differenceWith=Ba,zi.drop=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,(t=i||t===n?1:fo(t))<0?0:t,s):[]},zi.dropRight=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,0,(t=s-(t=i||t===n?1:fo(t)))<0?0:t):[]},zi.dropRightWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!0,!0):[]},zi.dropWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!0):[]},zi.fill=function(e,t,i,s){var a=null==e?0:e.length;return a?(i&&"number"!=typeof i&&ya(e,t,i)&&(i=0,s=a),function(e,t,i,s){var a=e.length;for((i=fo(i))<0&&(i=-i>a?0:a+i),(s=s===n||s>a?a:fo(s))<0&&(s+=a),s=i>s?0:ho(s);i<s;)e[i++]=t;return e}(e,t,i,s)):[]},zi.filter=function(e,t){return(Vr(e)?Nt:gn)(e,ca(t,3))},zi.flatMap=function(e,t){return _n(br(e,t),1)},zi.flatMapDeep=function(e,t){return _n(br(e,t),p)},zi.flatMapDepth=function(e,t,i){return i=i===n?1:fo(i),_n(br(e,t),i)},zi.flatten=qa,zi.flattenDeep=function(e){return(null==e?0:e.length)?_n(e,p):[]},zi.flattenDepth=function(e,t){return(null==e?0:e.length)?_n(e,t=t===n?1:fo(t)):[]},zi.flip=function(e){return Qs(e,512)},zi.flow=tc,zi.flowRight=ic,zi.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var s=e[t];n[s[0]]=s[1]}return n},zi.functions=function(e){return null==e?[]:bn(e,No(e))},zi.functionsIn=function(e){return null==e?[]:bn(e,Fo(e))},zi.groupBy=yr,zi.initial=function(e){return(null==e?0:e.length)?ns(e,0,-1):[]},zi.intersection=Wa,zi.intersectionBy=Ka,zi.intersectionWith=Ga,zi.invert=Ro,zi.invertBy=ko,zi.invokeMap=vr,zi.iteratee=sc,zi.keyBy=wr,zi.keys=No,zi.keysIn=Fo,zi.map=br,zi.mapKeys=function(e,t){var i={};return t=ca(t,3),vn(e,(function(e,n,s){an(i,t(e,n,s),e)})),i},zi.mapValues=function(e,t){var i={};return t=ca(t,3),vn(e,(function(e,n,s){an(i,n,t(e,n,s))})),i},zi.matches=function(e){return Dn(cn(e,1))},zi.matchesProperty=function(e,t){return Bn(e,cn(t,1))},zi.memoize=Ur,zi.merge=Uo,zi.mergeWith=Oo,zi.method=ac,zi.methodOf=rc,zi.mixin=oc,zi.negate=Or,zi.nthArg=function(e){return e=fo(e),Jn((function(t){return Vn(t,e)}))},zi.omit=Co,zi.omitBy=function(e,t){return jo(e,Or(ca(t)))},zi.once=function(e){return Tr(2,e)},zi.orderBy=function(e,t,i,s){return null==e?[]:(Vr(t)||(t=null==t?[]:[t]),Vr(i=s?n:i)||(i=null==i?[]:[i]),qn(e,t,i))},zi.over=dc,zi.overArgs=Cr,zi.overEvery=lc,zi.overSome=uc,zi.partial=Pr,zi.partialRight=jr,zi.partition=Er,zi.pick=Po,zi.pickBy=jo,zi.property=pc,zi.propertyOf=function(e){return function(t){return null==e?n:En(e,t)}},zi.pull=Ja,zi.pullAll=Qa,zi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Wn(e,t,ca(i,2)):e},zi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Wn(e,t,n,i):e},zi.pullAt=Za,zi.range=mc,zi.rangeRight=fc,zi.rearg=Mr,zi.reject=function(e,t){return(Vr(e)?Nt:gn)(e,Or(ca(t,3)))},zi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,s=[],a=e.length;for(t=ca(t,3);++n<a;){var r=e[n];t(r,n,e)&&(i.push(r),s.push(n))}return Kn(e,s),i},zi.rest=function(e,t){if("function"!=typeof e)throw new ke(s);return Jn(e,t=t===n?t:fo(t))},zi.reverse=Xa,zi.sampleSize=function(e,t,i){return t=(i?ya(e,t,i):t===n)?1:fo(t),(Vr(e)?Qi:Zn)(e,t)},zi.set=function(e,t,i){return null==e?e:Xn(e,t,i)},zi.setWith=function(e,t,i,s){return s="function"==typeof s?s:n,null==e?e:Xn(e,t,i,s)},zi.shuffle=function(e){return(Vr(e)?Zi:is)(e)},zi.slice=function(e,t,i){var s=null==e?0:e.length;return s?(i&&"number"!=typeof i&&ya(e,t,i)?(t=0,i=s):(t=null==t?0:fo(t),i=i===n?s:fo(i)),ns(e,t,i)):[]},zi.sortBy=Ar,zi.sortedUniq=function(e){return e&&e.length?os(e):[]},zi.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},zi.split=function(e,t,i){return i&&"number"!=typeof i&&ya(e,t,i)&&(t=i=n),(i=i===n?h:i>>>0)?(e=Io(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ds(t))&&ri(e)?ws(mi(e),0,i):e.split(t,i):[]},zi.spread=function(e,t){if("function"!=typeof e)throw new ke(s);return t=null==t?0:_i(fo(t),0),Jn((function(i){var n=i[t],s=ws(i,0,t);return n&&Ct(s,n),xt(e,this,s)}))},zi.tail=function(e){var t=null==e?0:e.length;return t?ns(e,1,t):[]},zi.take=function(e,t,i){return e&&e.length?ns(e,0,(t=i||t===n?1:fo(t))<0?0:t):[]},zi.takeRight=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,(t=s-(t=i||t===n?1:fo(t)))<0?0:t,s):[]},zi.takeRightWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!1,!0):[]},zi.takeWhile=function(e,t){return e&&e.length?ms(e,ca(t,3)):[]},zi.tap=function(e,t){return t(e),e},zi.throttle=function(e,t,i){var n=!0,a=!0;if("function"!=typeof e)throw new ke(s);return Xr(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),Lr(e,t,{leading:n,maxWait:t,trailing:a})},zi.thru=pr,zi.toArray=po,zi.toPairs=Mo,zi.toPairsIn=zo,zi.toPath=function(e){return Vr(e)?Ot(e,Pa):oo(e)?[e]:ks(Ca(Io(e)))},zi.toPlainObject=_o,zi.transform=function(e,t,i){var n=Vr(e),s=n||Kr(e)||co(e);if(t=ca(t,4),null==i){var a=e&&e.constructor;i=s?n?new a:[]:Xr(e)&&Jr(a)?Di(We(e)):{}}return(s?Rt:vn)(e,(function(e,n,s){return t(i,e,n,s)})),i},zi.unary=function(e){return xr(e,1)},zi.union=er,zi.unionBy=tr,zi.unionWith=ir,zi.uniq=function(e){return e&&e.length?ls(e):[]},zi.uniqBy=function(e,t){return e&&e.length?ls(e,ca(t,2)):[]},zi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ls(e,n,t):[]},zi.unset=function(e,t){return null==e||us(e,t)},zi.unzip=nr,zi.unzipWith=sr,zi.update=function(e,t,i){return null==e?e:ps(e,t,Is(i))},zi.updateWith=function(e,t,i,s){return s="function"==typeof s?s:n,null==e?e:ps(e,t,Is(i),s)},zi.values=Do,zi.valuesIn=function(e){return null==e?[]:Xt(e,Fo(e))},zi.without=ar,zi.words=Qo,zi.wrap=function(e,t){return Pr(Is(t),e)},zi.xor=rr,zi.xorBy=or,zi.xorWith=cr,zi.zip=dr,zi.zipObject=function(e,t){return gs(e||[],t||[],en)},zi.zipObjectDeep=function(e,t){return gs(e||[],t||[],Xn)},zi.zipWith=lr,zi.entries=Mo,zi.entriesIn=zo,zi.extend=vo,zi.extendWith=wo,oc(zi,zi),zi.add=_c,zi.attempt=Zo,zi.camelCase=Bo,zi.capitalize=$o,zi.ceil=Ic,zi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=go(i))==i?i:0),t!==n&&(t=(t=go(t))==t?t:0),on(go(e),t,i)},zi.clone=function(e){return cn(e,4)},zi.cloneDeep=function(e){return cn(e,5)},zi.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:n)},zi.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:n)},zi.conformsTo=function(e,t){return null==t||dn(e,t,No(t))},zi.deburr=Vo,zi.defaultTo=function(e,t){return null==e||e!=e?t:e},zi.divide=yc,zi.endsWith=function(e,t,i){e=Io(e),t=ds(t);var s=e.length,a=i=i===n?s:on(fo(i),0,s);return(i-=t.length)>=0&&e.slice(i,a)==t},zi.eq=zr,zi.escape=function(e){return(e=Io(e))&&J.test(e)?e.replace(G,si):e},zi.escapeRegExp=function(e){return(e=Io(e))&&se.test(e)?e.replace(ne,"\\$&"):e},zi.every=function(e,t,i){var s=Vr(e)?Lt:fn;return i&&ya(e,t,i)&&(t=n),s(e,ca(t,3))},zi.find=hr,zi.findIndex=$a,zi.findKey=function(e,t){return Dt(e,ca(t,3),vn)},zi.findLast=gr,zi.findLastIndex=Va,zi.findLastKey=function(e,t){return Dt(e,ca(t,3),wn)},zi.floor=vc,zi.forEach=_r,zi.forEachRight=Ir,zi.forIn=function(e,t){return null==e?e:In(e,ca(t,3),Fo)},zi.forInRight=function(e,t){return null==e?e:yn(e,ca(t,3),Fo)},zi.forOwn=function(e,t){return e&&vn(e,ca(t,3))},zi.forOwnRight=function(e,t){return e&&wn(e,ca(t,3))},zi.get=xo,zi.gt=Dr,zi.gte=Br,zi.has=function(e,t){return null!=e&&ha(e,t,Tn)},zi.hasIn=To,zi.head=Ha,zi.identity=nc,zi.includes=function(e,t,i,n){e=Hr(e)?e:Do(e),i=i&&!n?fo(i):0;var s=e.length;return i<0&&(i=_i(s+i,0)),ro(e)?i<=s&&e.indexOf(t,i)>-1:!!s&&$t(e,t,i)>-1},zi.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var s=null==i?0:fo(i);return s<0&&(s=_i(n+s,0)),$t(e,t,s)},zi.inRange=function(e,t,i){return t=mo(t),i===n?(i=t,t=0):i=mo(i),function(e,t,i){return e>=Ii(t,i)&&e<_i(t,i)}(e=go(e),t,i)},zi.invoke=Lo,zi.isArguments=$r,zi.isArray=Vr,zi.isArrayBuffer=qr,zi.isArrayLike=Hr,zi.isArrayLikeObject=Wr,zi.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Sn(e)==y},zi.isBuffer=Kr,zi.isDate=Gr,zi.isElement=function(e){return eo(e)&&1===e.nodeType&&!no(e)},zi.isEmpty=function(e){if(null==e)return!0;if(Hr(e)&&(Vr(e)||"string"==typeof e||"function"==typeof e.splice||Kr(e)||co(e)||$r(e)))return!e.length;var t=fa(e);if(t==A||t==k)return!e.size;if(Ea(e))return!Pn(e).length;for(var i in e)if(Ce.call(e,i))return!1;return!0},zi.isEqual=function(e,t){return Fn(e,t)},zi.isEqualWith=function(e,t,i){var s=(i="function"==typeof i?i:n)?i(e,t):n;return s===n?Fn(e,t,n,i):!!s},zi.isError=Yr,zi.isFinite=function(e){return"number"==typeof e&&yt(e)},zi.isFunction=Jr,zi.isInteger=Qr,zi.isLength=Zr,zi.isMap=to,zi.isMatch=function(e,t){return e===t||Un(e,t,la(t))},zi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,Un(e,t,la(t),i)},zi.isNaN=function(e){return io(e)&&e!=+e},zi.isNative=function(e){if(ba(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return On(e)},zi.isNil=function(e){return null==e},zi.isNull=function(e){return null===e},zi.isNumber=io,zi.isObject=Xr,zi.isObjectLike=eo,zi.isPlainObject=no,zi.isRegExp=so,zi.isSafeInteger=function(e){return Qr(e)&&e>=-9007199254740991&&e<=m},zi.isSet=ao,zi.isString=ro,zi.isSymbol=oo,zi.isTypedArray=co,zi.isUndefined=function(e){return e===n},zi.isWeakMap=function(e){return eo(e)&&fa(e)==F},zi.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Sn(e)},zi.join=function(e,t){return null==e?"":zt.call(e,t)},zi.kebabCase=qo,zi.last=Ya,zi.lastIndexOf=function(e,t,i){var s=null==e?0:e.length;if(!s)return-1;var a=s;return i!==n&&(a=(a=fo(i))<0?_i(s+a,0):Ii(a,s-1)),t==t?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Bt(e,qt,a,!0)},zi.lowerCase=Ho,zi.lowerFirst=Wo,zi.lt=lo,zi.lte=uo,zi.max=function(e){return e&&e.length?hn(e,nc,xn):n},zi.maxBy=function(e,t){return e&&e.length?hn(e,ca(t,2),xn):n},zi.mean=function(e){return Ht(e,nc)},zi.meanBy=function(e,t){return Ht(e,ca(t,2))},zi.min=function(e){return e&&e.length?hn(e,nc,Mn):n},zi.minBy=function(e,t){return e&&e.length?hn(e,ca(t,2),Mn):n},zi.stubArray=hc,zi.stubFalse=gc,zi.stubObject=function(){return{}},zi.stubString=function(){return""},zi.stubTrue=function(){return!0},zi.multiply=bc,zi.nth=function(e,t){return e&&e.length?Vn(e,fo(t)):n},zi.noConflict=function(){return ft._===this&&(ft._=De),this},zi.noop=cc,zi.now=Sr,zi.pad=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return qs(ht(s),i)+e+qs(mt(s),i)},zi.padEnd=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;return t&&n<t?e+qs(t-n,i):e},zi.padStart=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;return t&&n<t?qs(t-n,i)+e:e},zi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),vi(Io(e).replace(ae,""),t||0)},zi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&ya(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=mo(e),t===n?(t=e,e=0):t=mo(t)),e>t){var s=e;e=t,t=s}if(i||e%1||t%1){var a=wi();return Ii(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Gn(e,t)},zi.reduce=function(e,t,i){var n=Vr(e)?Pt:Gt,s=arguments.length<3;return n(e,ca(t,4),i,s,pn)},zi.reduceRight=function(e,t,i){var n=Vr(e)?jt:Gt,s=arguments.length<3;return n(e,ca(t,4),i,s,mn)},zi.repeat=function(e,t,i){return t=(i?ya(e,t,i):t===n)?1:fo(t),Yn(Io(e),t)},zi.replace=function(){var e=arguments,t=Io(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zi.result=function(e,t,i){var s=-1,a=(t=ys(t,e)).length;for(a||(a=1,e=n);++s<a;){var r=null==e?n:e[Pa(t[s])];r===n&&(s=a,r=i),e=Jr(r)?r.call(e):r}return e},zi.round=Ec,zi.runInContext=e,zi.sample=function(e){return(Vr(e)?Ji:Qn)(e)},zi.size=function(e){if(null==e)return 0;if(Hr(e))return ro(e)?pi(e):e.length;var t=fa(e);return t==A||t==k?e.size:Pn(e).length},zi.snakeCase=Ko,zi.some=function(e,t,i){var s=Vr(e)?Mt:ss;return i&&ya(e,t,i)&&(t=n),s(e,ca(t,3))},zi.sortedIndex=function(e,t){return as(e,t)},zi.sortedIndexBy=function(e,t,i){return rs(e,t,ca(i,2))},zi.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=as(e,t);if(n<i&&zr(e[n],t))return n}return-1},zi.sortedLastIndex=function(e,t){return as(e,t,!0)},zi.sortedLastIndexBy=function(e,t,i){return rs(e,t,ca(i,2),!0)},zi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var i=as(e,t,!0)-1;if(zr(e[i],t))return i}return-1},zi.startCase=Go,zi.startsWith=function(e,t,i){return e=Io(e),i=null==i?0:on(fo(i),0,e.length),t=ds(t),e.slice(i,i+t.length)==t},zi.subtract=Ac,zi.sum=function(e){return e&&e.length?Yt(e,nc):0},zi.sumBy=function(e,t){return e&&e.length?Yt(e,ca(t,2)):0},zi.template=function(e,t,i){var s=zi.templateSettings;i&&ya(e,t,i)&&(t=n),e=Io(e),t=wo({},t,s,Zs);var a,r,o=wo({},t.imports,s.imports,Zs),c=No(o),d=Xt(o,c),l=0,u=t.interpolate||we,p="__p += '",m=Te((t.escape||we).source+"|"+u.source+"|"+(u===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(m,(function(t,i,n,s,o,c){return n||(n=s),p+=e.slice(l,c).replace(be,ai),i&&(a=!0,p+="' +\n__e("+i+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var h=Ce.call(t,"variable")&&t.variable;if(h){if(ue.test(h))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(q,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Zo((function(){return Ae(c,f+"return "+p).apply(n,d)}));if(g.source=p,Yr(g))throw g;return g},zi.times=function(e,t){if((e=fo(e))<1||e>m)return[];var i=h,n=Ii(e,h);t=ca(t),e-=h;for(var s=Jt(n,t);++i<e;)t(i);return s},zi.toFinite=mo,zi.toInteger=fo,zi.toLength=ho,zi.toLower=function(e){return Io(e).toLowerCase()},zi.toNumber=go,zi.toSafeInteger=function(e){return e?on(fo(e),-9007199254740991,m):0===e?e:0},zi.toString=Io,zi.toUpper=function(e){return Io(e).toUpperCase()},zi.trim=function(e,t,i){if((e=Io(e))&&(i||t===n))return Qt(e);if(!e||!(t=ds(t)))return e;var s=mi(e),a=mi(t);return ws(s,ti(s,a),ii(s,a)+1).join("")},zi.trimEnd=function(e,t,i){if((e=Io(e))&&(i||t===n))return e.slice(0,fi(e)+1);if(!e||!(t=ds(t)))return e;var s=mi(e);return ws(s,0,ii(s,mi(t))+1).join("")},zi.trimStart=function(e,t,i){if((e=Io(e))&&(i||t===n))return e.replace(ae,"");if(!e||!(t=ds(t)))return e;var s=mi(e);return ws(s,ti(s,mi(t))).join("")},zi.truncate=function(e,t){var i=30,s="...";if(Xr(t)){var a="separator"in t?t.separator:a;i="length"in t?fo(t.length):i,s="omission"in t?ds(t.omission):s}var r=(e=Io(e)).length;if(ri(e)){var o=mi(e);r=o.length}if(i>=r)return e;var c=i-pi(s);if(c<1)return s;var d=o?ws(o,0,c).join(""):e.slice(0,c);if(a===n)return d+s;if(o&&(c+=d.length-c),so(a)){if(e.slice(c).search(a)){var l,u=d;for(a.global||(a=Te(a.source,Io(fe.exec(a))+"g")),a.lastIndex=0;l=a.exec(u);)var p=l.index;d=d.slice(0,p===n?c:p)}}else if(e.indexOf(ds(a),c)!=c){var m=d.lastIndexOf(a);m>-1&&(d=d.slice(0,m))}return d+s},zi.unescape=function(e){return(e=Io(e))&&Y.test(e)?e.replace(K,hi):e},zi.uniqueId=function(e){var t=++Pe;return Io(e)+t},zi.upperCase=Yo,zi.upperFirst=Jo,zi.each=_r,zi.eachRight=Ir,zi.first=Ha,oc(zi,(wc={},vn(zi,(function(e,t){Ce.call(zi.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zi.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zi[e].placeholder=zi})),Rt(["drop","take"],(function(e,t){Vi.prototype[e]=function(i){i=i===n?1:_i(fo(i),0);var s=this.__filtered__&&!t?new Vi(this):this.clone();return s.__filtered__?s.__takeCount__=Ii(i,s.__takeCount__):s.__views__.push({size:Ii(i,h),type:e+(s.__dir__<0?"Right":"")}),s},Vi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var i=t+1,n=1==i||3==i;Vi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}})),Rt(["head","last"],(function(e,t){var i="take"+(t?"Right":"");Vi.prototype[e]=function(){return this[i](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var i="drop"+(t?"":"Right");Vi.prototype[e]=function(){return this.__filtered__?new Vi(this):this[i](1)}})),Vi.prototype.compact=function(){return this.filter(nc)},Vi.prototype.find=function(e){return this.filter(e).head()},Vi.prototype.findLast=function(e){return this.reverse().find(e)},Vi.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Vi(this):this.map((function(i){return Ln(i,e,t)}))})),Vi.prototype.reject=function(e){return this.filter(Or(ca(e)))},Vi.prototype.slice=function(e,t){e=fo(e);var i=this;return i.__filtered__&&(e>0||t<0)?new Vi(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=fo(t))<0?i.dropRight(-t):i.take(t-e)),i)},Vi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vi.prototype.toArray=function(){return this.take(h)},vn(Vi.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=zi[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&(zi.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vi,d=o[0],l=c||Vr(t),u=function(e){var t=a.apply(zi,Ct([e],o));return s&&p?t[0]:t};l&&i&&"function"==typeof d&&1!=d.length&&(c=l=!1);var p=this.__chain__,m=!!this.__actions__.length,f=r&&!p,h=c&&!m;if(!r&&l){t=h?t:new Vi(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:n}),new $i(g,p)}return f&&h?e.apply(this,o):(g=this.thru(u),f?s?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);zi.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var s=this.value();return t.apply(Vr(s)?s:[],e)}return this[i]((function(i){return t.apply(Vr(i)?i:[],e)}))}})),vn(Vi.prototype,(function(e,t){var i=zi[t];if(i){var n=i.name+"";Ce.call(Li,n)||(Li[n]=[]),Li[n].push({name:t,func:i})}})),Li[Ds(n,2).name]=[{name:"wrapper",func:n}],Vi.prototype.clone=function(){var e=new Vi(this.__wrapped__);return e.__actions__=ks(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ks(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ks(this.__views__),e},Vi.prototype.reverse=function(){if(this.__filtered__){var e=new Vi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=Vr(e),n=t<0,s=i?e.length:0,a=function(e,t,i){var n=-1,s=i.length;for(;++n<s;){var a=i[n],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=Ii(t,e+r);break;case"takeRight":e=_i(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,d=n?o:r-1,l=this.__iteratees__,u=l.length,p=0,m=Ii(c,this.__takeCount__);if(!i||!n&&s==c&&m==c)return fs(e,this.__actions__);var f=[];e:for(;c--&&p<m;){for(var h=-1,g=e[d+=t];++h<u;){var _=l[h],I=_.iteratee,y=_.type,v=I(g);if(2==y)g=v;else if(!v){if(1==y)continue e;break e}}f[p++]=g}return f},zi.prototype.at=mr,zi.prototype.chain=function(){return ur(this)},zi.prototype.commit=function(){return new $i(this.value(),this.__chain__)},zi.prototype.next=function(){this.__values__===n&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zi.prototype.plant=function(e){for(var t,i=this;i instanceof Bi;){var s=Ma(i);s.__index__=0,s.__values__=n,t?a.__wrapped__=s:t=s;var a=s;i=i.__wrapped__}return a.__wrapped__=e,t},zi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vi){var t=e;return this.__actions__.length&&(t=new Vi(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Xa],thisArg:n}),new $i(t,this.__chain__)}return this.thru(Xa)},zi.prototype.toJSON=zi.prototype.valueOf=zi.prototype.value=function(){return fs(this.__wrapped__,this.__actions__)},zi.prototype.first=zi.prototype.head,Qe&&(zi.prototype[Qe]=function(){return this}),zi}();gt?((gt.exports=gi)._=gi,ht._=gi):ft._=gi}).call(i)}(gd,gd.exports);var _d=gd.exports;const Id={type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("introductionNs")]:Od.audio[_d.camelCase("introduction")],prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("introduction.intro.text1")} </h3>\n <p> ${hc.t("introduction.intro.text2")} </p> \n <p> ${hc.t("introduction.intro.text3")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("introduction.intro.text4")} </h3>\n <p> ${hc.t("introduction.intro.text5")} </p> \n <p> ${hc.t("introduction.intro.text6")} </p> \n <p> ${hc.t("introduction.intro.text3")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},yd={timeline:[{type:Ec,stimulus:()=>Od.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${hc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${hc.t("practice.postPracticeIntro.text2")}</p>\n <p>${hc.t("practice.postPracticeIntro.text3")}</p>\n <p>${hc.t("practice.postPracticeIntro.text4")}</p>\n <p>${hc.t("practice.postPracticeIntro.text5")}</p>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`:""},{type:Ec,stimulus:()=>Od.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${hc.t("reminderTexts.remember")}</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${hc.t(ud?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")}</p>\n <img width="70%" src="${Od.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${hc.t(ud?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")}</p>\n <img width="70%" src="${Od.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b>${hc.t("practice.postPracticeReminder.text3")}</b></p>\n <p><b>${hc.t("practice.postPracticeReminder.text4")}</b></p>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{r.session.set("indexTracking",0)}}]},vd={name:"fullscreen",parameters:{fullscreen_mode:{type:wr.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:wr.HTML_STRING,pretty_name:"Message",default:"<p>The experiment will switch to full screen mode when you press the button below</p>",array:!1},button_label:{type:wr.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:wr.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class wd{constructor(e){this.jsPsych=e,this.rt=null,this.start_time=0}trial(e,t){"undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element?this.endTrial(e,!1,t):t.fullscreen_mode?this.showDisplay(e,t):(this.exitFullScreen(),this.endTrial(e,!0,t))}showDisplay(e,t){e.innerHTML=`\n ${t.message}\n <button id="jspsych-fullscreen-btn" class="jspsych-btn">${t.button_label}</button>\n `,e.querySelector("#jspsych-fullscreen-btn").addEventListener("click",(()=>{this.rt=Math.round(performance.now()-this.start_time),this.enterFullScreen(),this.endTrial(e,!0,t)})),this.start_time=performance.now()}endTrial(e,t,i){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t,rt:this.rt};this.jsPsych.finishTrial(e)}),i.delay_after)}enterFullScreen(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}exitFullScreen(){(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}simulate(e,t,i,n){"data-only"==t&&(n(),this.simulate_data_only(e,i)),"visual"==t&&this.simulate_visual(e,i,n)}create_simulation_data(e,t){const i={success:!0,rt:this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)};return this.jsPsych.pluginAPI.mergeSimulationData(i,t)}simulate_data_only(e,t){const i=this.create_simulation_data(e,t);this.jsPsych.finishTrial(i)}simulate_visual(e,t,i){const n=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();!1===n.success?this.endTrial(s,!1,e):(this.trial(s,e),i(),this.jsPsych.pluginAPI.clickTarget(s.querySelector("#jspsych-fullscreen-btn"),n.rt))}}wd.info=vd;const bd={name:"html-multi-response",parameters:{stimulus:{type:wr.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:wr.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:wr.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:wr.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:wr.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:wr.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:wr.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:wr.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:wr.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:wr.BOOL,pretty_name:"Response ends trial",default:!0}}};class Ed{constructor(e){this.jsPsych=e}trial(e,t){var i='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",n=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?n=t.button_html:console.error("Error in html-multi-response plugin. The length of the button_html array does not equal the length of the button_choices array");else for(var s=0;s<t.button_choices.length;s++)n.push(t.button_html);i+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=n[s].replace(/%choice%/g,t.button_choices[s]);i+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+s+'" data-choice="'+s+'">'+a+"</div>"}i+="</div>",null!==t.prompt&&(i+=t.prompt),e.innerHTML=i;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(i){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},i)),t.response_ends_trial&&d()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{l(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const d=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var i={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(i)};function l(i){var n=performance.now(),s=Math.round(n-o);c.button=parseInt(i),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].setAttribute("disabled","disabled");t.response_ends_trial&&d()}null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-multi-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(d,t.trial_duration)}simulate(e,t,i,n){"data-only"==t&&(n(),this.simulate_data_only(e,i)),"visual"==t&&this.simulate_visual(e,i,n)}create_simulation_data(e,t){const i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},s=Math.random()<.5?i:n,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}simulate_data_only(e,t){const i=this.create_simulation_data(e,t);this.jsPsych.finishTrial(i)}simulate_visual(e,t,i){const n=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();this.trial(s,e),i(),null!==n.rt&&(null!==n.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${n.button_response}"] button`),n.rt):this.jsPsych.pluginAPI.pressKey(n.keyboard_response,n.rt))}}Ed.info=bd;const Ad={type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("halfwayNs")]:r.session.get("config").story?Od.audio[_d.camelCase(`${r.session("character")}Halfway`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${hc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Od.images[_d.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${hc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${hc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`,on_finish:()=>{r.session.set("indexTracking",0)}},Sd={timeline:[{type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("endNs")]:r.session.get("config").story?Od.audio[_d.camelCase(`${r.session("character")}End`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${hc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Od.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${hc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${r.session("character_name")} ${hc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Od.images[_d.camelCase(`${r.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:Ed,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${hc.t("gameBreak.debrief.text1")}</h3>\n <p>${hc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===r.session.get("config").userMode},{type:wd,fullscreen_mode:!1,delay_after:0}]},xd={timeline:[{type:Ec,stimulus:()=>Od.audio.studentSelect,prompt:()=>ud?`\n <div>\n <img id="mobile-classroom-bg" src=${Od.images.classroomBackground} alt="background"/>\n <h3>${hc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${hc.t(ud?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${Od.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${hc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${hc.t(ud?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${ud?"":`<div class="number">${[1,2,3,4].map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${ud?"mobile-student-select-characters":""}">\n ${["dog","cat","bird","deer"].map((e=>`<img src=${Od.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${hc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>ud?"NO_KEYS":["1","2","3","4"],button_choices:()=>ud?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>ud,data:{save_trial:!1},on_load:()=>{if(ud){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),i=document.createTextNode(hc.t("characterSelect.studentSelect.paragraph3MobileBefore")),n=document.createTextNode(hc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=hc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(i),t.appendChild(s),t.appendChild(n),t.classList.add("button");const a=document.createElement("div"),r=["dog","cat","bird","deer"].map((e=>{const t=document.createElement("img");return t.setAttribute("src",Od.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{const t={1:{character:"dog",characterName:hc.t("characterSelect.studentCharacter.dog"),characterActivity:hc.t("characterSelect.studentActivity.dog")},2:{character:"cat",characterName:hc.t("characterSelect.studentCharacter.cat"),characterActivity:hc.t("characterSelect.studentActivity.cat")},3:{character:"bird",characterName:hc.t("characterSelect.studentCharacter.bird"),characterActivity:hc.t("characterSelect.studentActivity.bird")},4:{character:"deer",characterName:hc.t("characterSelect.studentCharacter.deer"),characterActivity:hc.t("characterSelect.studentActivity.deer")}};r.session.set("character",t[ud?e.button_response+1:e.keyboard_response].character),r.session.set("character_name",t[ud?e.button_response+1:e.keyboard_response].characterName),r.session.set("character_activity",t[ud?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Ec,stimulus:()=>Od.audio[_d.camelCase(`${r.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Od.images[_d.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${hc.t("characterSelect.studentIntro.paragraph1")} ${r.session("character_name")}. </p>\n <p> ${hc.t("characterSelect.studentIntro.paragraph2")} ${r.session("character_activity")}. </p>\n <p> ${hc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6)},Td=(e,t,i)=>({timeline:[{type:Ed,stimulus:()=>{if(0===r.session("indexTracking")){const t=setTimeout((()=>r.session.set("timeOut",!0)),i);r.session.set("timerId",t),"tosrec"===e?r.session.set("currentCorpus",md[r.session("tosrecCorpusId")]):e.startsWith("fixedForm")?r.session.set("currentCorpus",md.fixedForms[e]):r.session.set("currentCorpus",md[e])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("currentCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>ud?"":`\n <div> \n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>ud?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:i=>{i.keyboard_response?"arrowleft"===i.keyboard_response?r.session.set("keyResponse","left"):r.session.set("keyResponse","right"):0===i.button_response?r.session.set("buttonResponse","left"):r.session.set("buttonResponse","right"),i.keyboard_response?i.correct=hd.pluginAPI.compareKeys(r.session("keyResponse"),r.session("currentCorpus")[r.session("indexTracking")].direction):i.correct=0===i.button_response&&"left"===r.session("currentCorpus")[r.session("indexTracking")].direction||1===i.button_response&&"right"===r.session("currentCorpus")[r.session("indexTracking")].direction,i.correct?r.session.set("dataCorrect",1):r.session.set("dataCorrect",0),Ud.addResponseData(i.rt,i.keyboard_response?i.keyboard_response:i.button_response,r.session("dataCorrect")),hd.data.addDataToLastTrial({save_trial:!r.session("timeOut"),pid:r.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:r.session("tosrecCorpusId"),trialNumBlock:r.session("indexTracking")+1,itemId:r.session("currentCorpus")[r.session("indexTracking")].itemId,testsetId:r.session("currentCorpus")[r.session("indexTracking")].testsetId,item:r.session("currentCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("currentCorpus")[r.session("indexTracking")].answer,correct:r.session("dataCorrect"),story:r.session.get("config").story})}},{type:Ec,stimulus:()=>Od.audio.neutralSoundSub,prompt:()=>ud?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return r.session("indexTracking")===r.session("currentCorpus").length-1||r.session("timeOut")?(r.session.set("indexTracking",0),r.session.set("timeOut",!1),clearTimeout(r.session.get("timerId")),!1):(r.session.transact("indexTracking",(e=>e+1)),!0)}}),Rd={type:Ec,stimulus:()=>Od.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${hc.t("practice.intro.text1")}</h2>\n <p>${hc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${hc.t(ud?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Od.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${hc.t(ud?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Od.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${hc.t("practice.intro.text5")}</b> </p> \n <div class="button">${hc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button">${hc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{r.session.set("indexTracking",-1)}},kd={type:Ed,stimulus:()=>(r.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("practiceCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>ud?"":`\n <div> \n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>ud?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=hd.pluginAPI.compareKeys(e.keyboard_response,r.session("practiceCorpus")[r.session("indexTracking")].correct_response),r.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(r.session.set("dataCorrect",1),r.session.set("feedbackResponse",hc.t("feedbackTranslations.correct"))):(r.session.set("dataCorrect",0),r.session.set("feedbackResponse",hc.t("feedbackTranslations.incorrect")));const t="arrowleft"===e.keyboard_response||0===e.button_response;r.session.set("responseLR",t?"left":"right"),r.session.set("answerRP",t?"false":"true"),r.session.set("responseColor",t?"orange":"blue");const i="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response;r.session.set("correctLR",i?"left":"right"),r.session.set("correctRP",i?"false":"true"),r.session.set("answerColor",i?"orange":"blue"),hd.data.addDataToLastTrial({pid:r.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:r.session("dataCorrect"),trialNumBlock:r.session("indexTracking"),item:r.session("practiceCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("practiceCorpus")[r.session("indexTracking")].answer,story:r.session.get("config").story})}},Ld={type:Ec,response_allowed_while_playing:()=>r.session.get("config").skipInstructions,stimulus:()=>1===r.session("dataCorrect")?Od.audio[`feedback${r.session("indexTracking")}Correct`]:Od.audio[`feedback${r.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${ud?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${r.session("responseColor")}>${r.session("feedbackResponse")} ${hc.t(ud?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===r.session("responseLR")?hc.t("terms.left"):hc.t("terms.right"),type:"true"===r.session("answerRP")?hc.t("terms.true"):hc.t("terms.false")})}</span>\n <br></br> \n "${r.session("practiceCorpus")[r.session("indexTracking")].sentence}"\n <span class=${r.session("answerColor")}> ${hc.t(ud?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===r.session("correctLR")?hc.t("terms.left"):hc.t("terms.right"),type:"true"===r.session("correctRP")?hc.t("terms.true"):hc.t("terms.false")})}</span>\n </p>\n </div>\n ${ud?"":`<img class="lower" src= "${"false"===r.session("correctRP")?Od.images.falseFlashKey:Od.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>ud?"NO_KEYS":"false"===r.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>ud?["ArrowLeft","ArrowRight"]:[],button_html:()=>ud?[`<button class="mobile-practice-feedback ${"false"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===r.session("correctRP")?Od.images.falseFlashKeySplit:Od.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===r.session("correctRP")?Od.images.trueFlashKeySplit:Od.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>ud,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const i="false"===r.session("correctRP");0!==t||i?1===t&&i&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};var Nd={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:["practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","grade-keyboard.webp","false-flash-key.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp","false-key.webp","grade-keys.webp","true-flash-key.webp","true-key.webp"]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.webp","bird-happy.webp","bird-talking.webp","bird.webp","cat-happy.webp","cat-talking.webp","cat.webp","classroom-background.webp","deer-happy.webp","deer-talking.webp","deer.webp","dog-happy.webp","dog-talking.webp","dog.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp"]}};const Fd="https://storage.googleapis.com/roar-sre";let Ud,Od,Cd;const Pd=[hc.t("grades.1"),hc.t("grades.2"),hc.t("grades.3"),hc.t("grades.4"),hc.t("grades.5"),hc.t("grades.6"),hc.t("grades.7"),hc.t("grades.8+")],jd=[{timeline:[{type:_c,questions:[{prompt:hc.t("labID"),name:"labId",required:!0}],button_label:hc.t("buttonLabel"),css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").labId&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:_c,questions:[{prompt:hc.t("participantID"),name:"pid",required:!0}],button_label:hc.t("buttonLabel"),css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").pid&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:yc,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:wc,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const i in e.response)""===e.response[i]?t[i]=null:t[i]="retake"===i||"ell"===i?parseInt(e.response[i],10):e.response[i];t.grade=r.session.get("config").userMetadata.grade;const i=r.session.get("config"),n=cr(null,null,t.age);i.userMetadata={...i.userMetadata,...t,...n},r.session.set("config",i)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:Ec,stimulus:()=>Od.audio.gradeSelect,prompt:()=>ud?`\n <div class="mobile-grade-select">\n <h3>${hc.t("introduction.gradeSelect.text1")}</h3>\n <p>${hc.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${hc.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${hc.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${hc.t("introduction.gradeSelect.text1")}</h3>\n <p>${hc.t("introduction.gradeSelect.text2")}</p>\n <p>${hc.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Od.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${hc.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:ud?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:ud?Pd:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;ud?r.session.set("tosrecCorpusId",`tosrec${t+1}`):r.session.set("tosrecCorpusId",`tosrec${t}`);const i=r.session.get("config");i.userMetadata={...i.userMetadata,grade:Number(ud?t+1:t)},i.story=yp(i.storyOption,i.userMetadata.grade),r.session.set("config",i)}}],conditional_function:()=>{const{grade:e}=r.session.get("config").userMetadata;return null==dr(e)||(r.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}];var Md=n((function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var s=e[t];n[s[0]]=s[1]}return n}));var zd=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e},Dd=Gs,Bd=qs;var $d=function(e,t,i,n){var s=!i;i||(i={});for(var a=-1,r=t.length;++a<r;){var o=t[a],c=n?n(i[o],e[o],o,i,e):void 0;void 0===c&&(c=e[o]),s?Bd(i,o,c):Dd(i,o,c)}return i},Vd=$d,qd=Ri;var Hd=function(e,t){return e&&Vd(t,qd(t),e)},Wd=$d,Kd=Ia;var Gd=function(e,t){return e&&Wd(t,Kd(t),e)},Yd={exports:{}};!function(e,t){var i=N,n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n?i.Buffer:void 0,r=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,n=r?r(i):new e.constructor(i);return e.copy(n),n}}(Yd,Yd.exports);var Jd=Yd.exports;var Qd=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t},Zd=$d,Xd=Ft;var el=function(e,t){return Zd(e,Xd(e),t)},tl=$d,il=la;var nl=function(e,t){return tl(e,il(e),t)},sl=Object.prototype.hasOwnProperty;var al=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&sl.call(e,"index")&&(i.index=e.index,i.input=e.input),i},rl=pt;var ol=function(e){var t=new e.constructor(e.byteLength);return new rl(t).set(new rl(e)),t},cl=ol;var dl=function(e,t){var i=t?cl(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)},ll=/\w*$/;var ul=function(e){var t=new e.constructor(e.source,ll.exec(e));return t.lastIndex=e.lastIndex,t},pl=F?F.prototype:void 0,ml=pl?pl.valueOf:void 0;var fl=ol;var hl=ol,gl=dl,_l=ul,Il=function(e){return ml?Object(ml.call(e)):{}},yl=function(e,t){var i=t?fl(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};var vl=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return hl(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return gl(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return yl(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return _l(e);case"[object Symbol]":return Il(e)}},wl=q,bl=Object.create,El=function(){function e(){}return function(t){if(!wl(t))return{};if(bl)return bl(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),Al=aa,Sl=gi;var xl=function(e){return"function"!=typeof e.constructor||Sl(e)?{}:El(Al(e))},Tl=en,Rl=Ot;var kl=function(e){return Rl(e)&&"[object Map]"==Tl(e)},Ll=ei,Nl=ii&&ii.isMap,Fl=Nl?Ll(Nl):kl,Ul=en,Ol=Ot;var Cl=function(e){return Ol(e)&&"[object Set]"==Ul(e)},Pl=ei,jl=ii&&ii.isSet,Ml=jl?Pl(jl):Cl,zl=nt,Dl=zd,Bl=Gs,$l=Hd,Vl=Gd,ql=Jd,Hl=Qd,Wl=el,Kl=nl,Gl=Fi,Yl=ba,Jl=en,Ql=al,Zl=vl,Xl=xl,eu=Et,tu=Ht,iu=Fl,nu=q,su=Ml,au=Ri,ru=Ia,ou="[object Arguments]",cu="[object Function]",du="[object Object]",lu={};lu[ou]=lu["[object Array]"]=lu["[object ArrayBuffer]"]=lu["[object DataView]"]=lu["[object Boolean]"]=lu["[object Date]"]=lu["[object Float32Array]"]=lu["[object Float64Array]"]=lu["[object Int8Array]"]=lu["[object Int16Array]"]=lu["[object Int32Array]"]=lu["[object Map]"]=lu["[object Number]"]=lu[du]=lu["[object RegExp]"]=lu["[object Set]"]=lu["[object String]"]=lu["[object Symbol]"]=lu["[object Uint8Array]"]=lu["[object Uint8ClampedArray]"]=lu["[object Uint16Array]"]=lu["[object Uint32Array]"]=!0,lu["[object Error]"]=lu[cu]=lu["[object WeakMap]"]=!1;var uu=function e(t,i,n,s,a,r){var o,c=1&i,d=2&i,l=4&i;if(n&&(o=a?n(t,s,a,r):n(t)),void 0!==o)return o;if(!nu(t))return t;var u=eu(t);if(u){if(o=Ql(t),!c)return Hl(t,o)}else{var p=Jl(t),m=p==cu||"[object GeneratorFunction]"==p;if(tu(t))return ql(t,c);if(p==du||p==ou||m&&!a){if(o=d||m?{}:Xl(t),!c)return d?Kl(t,Vl(o,t)):Wl(t,$l(o,t))}else{if(!lu[p])return a?t:{};o=Zl(t,p,c)}}r||(r=new zl);var f=r.get(t);if(f)return f;r.set(t,o),su(t)?t.forEach((function(s){o.add(e(s,i,n,s,t,r))})):iu(t)&&t.forEach((function(s,a){o.set(a,e(s,i,n,a,t,r))}));var h=u?void 0:(l?d?Yl:Gl:d?ru:au)(t);return Dl(h||t,(function(s,a){h&&(s=t[a=s]),Bl(o,a,e(s,i,n,a,t,r))})),o};var pu=as,mu=function(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var a=Array(s);++n<s;)a[n]=e[n+t];return a};var fu=function(e,t){return t.length<2?e:pu(e,mu(t,0,-1))},hu=es,gu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},_u=fu,Iu=is;var yu=function(e,t){return t=hu(t,e),null==(e=_u(e,t))||delete e[Iu(gu(t))]},vu=V,wu=aa,bu=Ot,Eu=Function.prototype,Au=Object.prototype,Su=Eu.toString,xu=Au.hasOwnProperty,Tu=Su.call(Object);var Ru=function(e){if(!bu(e)||"[object Object]"!=vu(e))return!1;var t=wu(e);if(null===t)return!0;var i=xu.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Su.call(i)==Tu};var ku=function(e){return Ru(e)?void 0:e},Lu=$t,Nu=Et,Fu=F?F.isConcatSpreadable:void 0;var Uu=bt,Ou=function(e){return Nu(e)||Lu(e)||!!(Fu&&e&&e[Fu])};var Cu=function e(t,i,n,s,a){var r=-1,o=t.length;for(n||(n=Ou),a||(a=[]);++r<o;){var c=t[r];i>0&&n(c)?i>1?e(c,i-1,n,s,a):Uu(a,c):s||(a[a.length]=c)}return a},Pu=Cu;var ju=function(e){return(null==e?0:e.length)?Pu(e,1):[]};var Mu=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)},zu=Math.max;var Du=function(e,t,i){return t=zu(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,a=zu(n.length-t,0),r=Array(a);++s<a;)r[s]=n[t+s];s=-1;for(var o=Array(t+1);++s<t;)o[s]=n[s];return o[t]=i(r),Mu(e,this,o)}};var Bu=function(e){return function(){return e}},$u=$s,Vu=$u?function(e,t){return $u(e,"toString",{configurable:!0,enumerable:!1,value:Bu(t),writable:!0})}:xs,qu=Date.now;var Hu=function(e){var t=0,i=0;return function(){var n=qu(),s=16-(n-i);if(i=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Vu),Wu=ju,Ku=Du,Gu=Hu;var Yu=$n,Ju=uu,Qu=yu,Zu=es,Xu=$d,ep=ku,tp=ba,ip=function(e){return Gu(Ku(e,void 0,Wu),e+"")}((function(e,t){var i={};if(null==e)return i;var n=!1;t=Yu(t,(function(t){return t=Zu(t,e),n||(n=t.length>1),t})),Xu(e,tp(e),i),n&&(i=Ju(i,7,ep));for(var s=t.length;s--;)Qu(i,t[s]);return i})),np=n(ip),sp=$n;var ap=function(e,t){return sp(t,(function(t){return[t,e[t]]}))},rp=en,op=mt,cp=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i};var dp=n(function(e){return function(t){var i=rp(t);return"[object Map]"==i?op(t):"[object Set]"==i?cp(t):ap(t,e(t))}}(Ri)),lp={exports:{}};lp.exports=function e(){var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{};function n(){var t=i.URL||i.webkitURL||null,n=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))}var s=!i.document&&!!i.postMessage,a=i.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=l,c.unparse=u,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!s&&!!i.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=v,c.ParserHandle=I,c.NetworkStreamer=m,c.FileStreamer=f,c.StringStreamer=h,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=_),i.jQuery){var d=i.jQuery;d.fn.parse=function(e){var t=e.config||{},n=[];return this.each((function(e){if("INPUT"!==d(this).prop("tagName").toUpperCase()||"file"!==d(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:d.extend({},t)})})),s(),this;function s(){if(0!==n.length){var t=n[0];if(R(e.before)){var i=e.before(t.file,t.inputElem);if("object"==typeof i){if("abort"===i.action)return void a("AbortError",t.file,t.inputElem,i.reason);if("skip"===i.action)return void r();"object"==typeof i.config&&(t.instanceConfig=d.extend(t.instanceConfig,i.config))}else if("skip"===i)return void r()}var s=t.instanceConfig.complete;t.instanceConfig.complete=function(e){R(s)&&s(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else R(e.complete)&&e.complete()}function a(t,i,n,s){R(e.error)&&e.error({name:t},i,n,s)}function r(){n.splice(0,1),s()}}}function l(e,t){var n=(t=t||{}).dynamicTyping||!1;if(R(n)&&(t.dynamicTypingFunction=n,n={}),t.dynamicTyping=n,t.transform=!!R(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var s=w();return s.userStep=t.step,s.userChunk=t.chunk,s.userComplete=t.complete,s.userError=t.error,t.step=R(t.step),t.chunk=R(t.chunk),t.complete=R(t.complete),t.error=R(t.error),delete t.worker,void s.postMessage({input:e,config:t,workerId:s.id})}var a=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(a=new _(t)).getStream():("string"==typeof e?(e=r(e),a=t.download?new m(t):new h(t)):!0===e.readable&&R(e.read)&&R(e.on)?a=new g(t):(i.File&&e instanceof File||e instanceof Object)&&(a=new f(t)),a.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function u(e,t){var i=!1,n=!0,s=",",a="\r\n",r='"',o=r+r,d=!1,l=null,u=!1;m();var p=new RegExp(y(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,d);if("object"==typeof e[0])return f(l||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||l),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],d);throw new Error("Unable to serialize unrecognized input");function m(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&n){for(var d=0;d<e.length;d++)d>0&&(r+=s),r+=h(e[d],d);t.length>0&&(r+=a)}for(var l=0;l<t.length;l++){var u=o?e.length:t[l].length,p=!1,m=o?0===Object.keys(t[l]).length:0===t[l].length;if(i&&!o&&(p="greedy"===i?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===i&&o){for(var f=[],g=0;g<u;g++){var _=c?e[g]:g;f.push(t[l][_])}p=""===f.join("").trim()}if(!p){for(var I=0;I<u;I++){I>0&&!m&&(r+=s);var y=o&&c?e[I]:I;r+=h(t[l][y],I)}l<t.length-1&&(!i||u>0&&!m)&&(r+=a)}}return r}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,n=!0);var a=e.toString().replace(p,o);return(n=n||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||g(a,c.BAD_DELIMITERS)||a.indexOf(s)>-1||" "===a.charAt(0)||" "===a.charAt(a.length-1))?r+a+r:a}function g(e,t){for(var i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return!0;return!1}}function p(e){function t(e){var t=x(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new I(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&R(this._config.beforeFirstChunk)){var n=this._config.beforeFirstChunk(e);void 0!==n&&(e=n)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var r=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=s.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var d=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)i.postMessage({results:r,workerId:c.WORKER_ID,finished:d});else if(R(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!d||!R(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),d||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){R(this._config.error)?this._config.error(e):a&&this._config.error&&i.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function m(e){var t;function i(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),p.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),s||(t.onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var i in e)t.setRequestHeader(i,e[i])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+n)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=i(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function f(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var s=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,s)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;e=e||{},p.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],i=!0,n=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=T((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=T((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=T((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=T((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function _(e){var i=t.Duplex,n=x(e),s=!0,a=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},n.step=T(this._onCsvData,this),n.complete=T(this._onCsvComplete,this),p.call(this,n),this._nextChunk=function(){a&&1===r.length&&(this._finished=!0),r.length?r.shift()():s=!0},this._addToParseQueue=function(e,t){r.push(T((function(){if(this.parseChunk("string"==typeof e?e:e.toString(n.encoding)),R(t))return t()}),this)),s&&(s=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,i){this._addToParseQueue(e,i)},this._onWriteComplete=function(){a=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new i({readableObjectMode:!0,decodeStrings:!1,read:T(this._onRead,this),write:T(this._onWrite,this)})).once("finish",T(this._onWriteComplete,this))}function I(e){var t,i,n,s=Math.pow(2,53),a=-s,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,l=0,u=0,p=!1,m=!1,f=[],h={data:[],errors:[],meta:{}};if(R(e.step)){var g=e.step;e.step=function(t){if(h=t,b())w();else{if(w(),0===h.data.length)return;l+=t.data.length,e.preview&&l>e.preview?i.abort():(h.data=h.data[0],g(h,d))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function I(e){if(r.test(e)){var t=parseFloat(e);if(t>a&&t<s)return!0}return!1}function w(){return h&&n&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(h.data=h.data.filter((function(e){return!_(e)}))),b()&&E(),T()}function b(){return e.header&&0===f.length}function E(){if(h)if(Array.isArray(h.data[0])){for(var t=0;b()&&t<h.data.length;t++)h.data[t].forEach(i);h.data.splice(0,1)}else h.data.forEach(i);function i(t,i){R(e.transformHeader)&&(t=e.transformHeader(t,i)),f.push(t)}}function A(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function S(e,t){return A(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(I(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function T(){if(!h||!e.header&&!e.dynamicTyping&&!e.transform)return h;function t(t,i){var n,s=e.header?{}:[];for(n=0;n<t.length;n++){var a=n,r=t[n];e.header&&(a=n>=f.length?"__parsed_extra":f[n]),e.transform&&(r=e.transform(r,a)),r=S(a,r),"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(r)):s[a]=r}return e.header&&(n>f.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+n,u+i):n<f.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+n,u+i)),s}var i=1;return!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(t),i=h.data.length):h.data=t(h.data,0),e.header&&h.meta&&(h.meta.fields=f),u+=i,h}function k(t,i,n,s,a){var r,o,d,l;a=a||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var u=0;u<a.length;u++){var p=a[u],m=0,f=0,h=0;d=void 0;for(var g=new v({comments:s,delimiter:p,newline:i,preview:10}).parse(t),I=0;I<g.data.length;I++)if(n&&_(g.data[I]))h++;else{var y=g.data[I].length;f+=y,void 0!==d?y>0&&(m+=Math.abs(y-d),d=y):d=y}g.data.length>0&&(f/=g.data.length-h),(void 0===o||m<=o)&&(void 0===l||f>l)&&f>1.99&&(o=m,r=p,l=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function L(e,t){e=e.substring(0,1048576);var i=new RegExp(y(t)+"([^]*?)"+y(t),"gm"),n=(e=e.replace(i,"")).split("\r"),s=e.split("\n"),a=s.length>1&&s[0].length<n[0].length;if(1===n.length||a)return"\n";for(var r=0,o=0;o<n.length;o++)"\n"===n[o][0]&&r++;return r>=n.length/2?"\r\n":"\r"}function N(e,t,i,n){var s={type:e,code:t,message:i};void 0!==n&&(s.row=n),h.errors.push(s)}this.parse=function(s,a,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=L(s,o)),n=!1,e.delimiter)R(e.delimiter)&&(e.delimiter=e.delimiter(s),h.meta.delimiter=e.delimiter);else{var d=k(s,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);d.successful?e.delimiter=d.bestDelimiter:(n=!0,e.delimiter=c.DefaultDelimiter),h.meta.delimiter=e.delimiter}var l=x(e);return e.preview&&e.header&&l.preview++,t=s,i=new v(l),h=i.parse(t,a,r),w(),p?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,i.abort(),t=R(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(p=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),t=""}}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t,i=(e=e||{}).delimiter,n=e.newline,s=e.comments,a=e.step,r=e.preview,o=e.fastMode,d=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof i||c.BAD_DELIMITERS.indexOf(i)>-1)&&(i=","),s===i)throw new Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||c.BAD_DELIMITERS.indexOf(s)>-1)&&(s=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var l=0,u=!1;this.parse=function(c,p,m){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,h=i.length,g=n.length,_=s.length,I=R(a);l=0;var v=[],w=[],b=[],E=0;if(!c)return K();if(e.header&&!p){var A=c.split(n)[0].split(i),S="_",x=[],T={},k=!1;for(var L in A){var N=A[L];R(e.transformHeader)&&(N=e.transformHeader(N,L));var F=N,U=T[N]||0;for(U>0&&(k=!0,F=N+S+U),T[N]=U+1;x.includes(F);)F=F+S+U;x.push(F)}if(k){var O=c.split(n);O[0]=x.join(i),c=O.join(n)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var C=c.split(n),P=0;P<C.length;P++){if(b=C[P],l+=b.length,P!==C.length-1)l+=n.length;else if(m)return K();if(!s||b.substring(0,_)!==s){if(I){if(v=[],V(b.split(i)),G(),u)return K()}else V(b.split(i));if(r&&P>=r)return v=v.slice(0,r),K(!0)}}return K()}for(var j=c.indexOf(i,l),M=c.indexOf(n,l),z=new RegExp(y(d)+y(t),"g"),D=c.indexOf(t,l);;)if(c[l]!==t)if(s&&0===b.length&&c.substring(l,l+_)===s){if(-1===M)return K();l=M+g,M=c.indexOf(n,l),j=c.indexOf(i,l)}else if(-1!==j&&(j<M||-1===M))b.push(c.substring(l,j)),l=j+h,j=c.indexOf(i,l);else{if(-1===M)break;if(b.push(c.substring(l,M)),W(M+g),I&&(G(),u))return K();if(r&&v.length>=r)return K(!0)}else for(D=l,l++;;){if(-1===(D=c.indexOf(t,D+1)))return m||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:v.length,index:l}),H();if(D===f-1)return H(c.substring(l,D).replace(z,t));if(t!==d||c[D+1]!==d){if(t===d||0===D||c[D-1]!==d){-1!==j&&j<D+1&&(j=c.indexOf(i,D+1)),-1!==M&&M<D+1&&(M=c.indexOf(n,D+1));var B=q(-1===M?j:Math.min(j,M));if(c.substr(D+1+B,h)===i){b.push(c.substring(l,D).replace(z,t)),l=D+1+B+h,c[D+1+B+h]!==t&&(D=c.indexOf(t,l)),j=c.indexOf(i,l),M=c.indexOf(n,l);break}var $=q(M);if(c.substring(D+1+$,D+1+$+g)===n){if(b.push(c.substring(l,D).replace(z,t)),W(D+1+$+g),j=c.indexOf(i,l),D=c.indexOf(t,l),I&&(G(),u))return K();if(r&&v.length>=r)return K(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:v.length,index:l}),D++}}else D++}return H();function V(e){v.push(e),E=l}function q(e){var t=0;if(-1!==e){var i=c.substring(D+1,e);i&&""===i.trim()&&(t=i.length)}return t}function H(e){return m||(void 0===e&&(e=c.substring(l)),b.push(e),l=f,V(b),I&&G()),K()}function W(e){l=e,V(b),b=[],M=c.indexOf(n,l)}function K(e){return{data:v,errors:w,meta:{delimiter:i,linebreak:n,aborted:u,truncated:!!e,cursor:E+(p||0)}}}function G(){a(K()),v=[],w=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return l}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=n(),t=new i.Worker(e);return t.onmessage=b,t.id=o++,r[t.id]=t,t}function b(e){var t=e.data,i=r[t.workerId],n=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:A,resume:A};if(R(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!n);a++);delete t.results}else R(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&E(t.workerId,t.results)}function E(e,t){var i=r[e];R(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function A(){throw new Error("Not implemented.")}function S(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)i.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(i.File&&t.input instanceof File||t.input instanceof Object){var n=c.parse(t.input,t.config);n&&i.postMessage({workerId:c.WORKER_ID,results:n,finished:!0})}}function x(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=x(e[i]);return t}function T(e,t){return function(){e.apply(t,arguments)}}function R(e){return"function"==typeof e}return a&&(i.onmessage=S),m.prototype=Object.create(p.prototype),m.prototype.constructor=m,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,h.prototype=Object.create(h.prototype),h.prototype.constructor=h,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(_.prototype=Object.create(p.prototype),_.prototype.constructor=_),c}();var up=lp.exports;const pp=(e=3)=>{let t=r.session.get("config").userMetadata?.ageMonths;const i=dr(r.session.get("config").userMetadata?.grade),{taskId:n}=r.session.get("config");if(null==t){if(null==i)throw new Error("Attempting to determine user age from grade but grade is undefined");t=66+12*i}const s=3===e&&"sre"===n?180:216;return t<72&&(t=72),t>s&&(t=s),{ageMonths:t,grade:i}},mp=({ageMonths:e,grade:t,scoringVersion:i,taskId:n})=>{if(3===i&&"sre"===n)return null!=t;if(4===i||"sre-es"===n)return null!=e||null!=t;throw new Error("Invalid scoring version")};class fp{constructor(){this.scoringVersion=r.session.get("config").scoringVersion,this.taskId=r.session.get("config").taskId,this.useAgeForScoring=(({scoringVersion:e,taskId:t})=>3!==e||"sre-es"===t)({scoringVersion:this.scoringVersion,taskId:this.taskId}),this.useGradeForScoring=(({scoringVersion:e,taskId:t})=>3===e&&"sre"===t)({scoringVersion:this.scoringVersion,taskId:this.taskId});const e=this.taskId.replace("-","_");this.tableURL=`https://storage.googleapis.com/roar-sre/scores/${e}_lookup_v${this.scoringVersion}.csv`,this.aiTableURL="https://storage.googleapis.com/roar-sre/scores/sre_parallel_equating_lookup.csv",this.lookupTable=[],this.aiLookupTable=[],this.tableLoaded=!1,this.aiTableLoaded=!1,this.isValidForScoring=void 0}async initTable(){return new Promise(((e,t)=>{const{ageMonths:i,grade:n}=pp(this.scoringVersion);void 0===this.isValidForScoring&&(this.isValidForScoring=mp({ageMonths:i,grade:n,scoringVersion:this.scoringVersion,taskId:this.taskId})),this.isValidForScoring||t(),this.ageForScore=i,this.gradeForScore=n,up.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{(this.useGradeForScoring&&this.gradeForScore===Number(e.data.grade)||this.useAgeForScoring&&this.ageForScore===Number(e.data.ageMonths))&&this.lookupTable.push(np(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}}),up.parse(this.aiTableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.aiLookupTable.push(np(e.data,["","X"]))},complete:()=>{this.aiTableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const{taskId:t}=r.session.get("config");if(!["sre","sre-es"].includes(t))return null;const i=Md(dp(e).map((([e,t])=>{const i="practice"===e?"practice":"test";return[e,{sreScore:(t[i]?.numCorrect||0)-(t[i]?.numIncorrect||0)}]}))),n=(e=>{if("sre"===this.taskId){if(e.lab?.sreScore)return Math.max(e.lab.sreScore,0);if(e.aiV1P1?.sreScore){const t=Math.max(e.aiV1P1.sreScore,0);return this.aiLookupTable.find((e=>e.rawScore===t&&"aiP1"===e.form)).sreScore}if(e.aiV1P2?.sreScore){const t=Math.max(e.aiV1P2.sreScore,0);return this.aiLookupTable.find((e=>e.rawScore===t&&"aiP2"===e.form)).sreScore}}else if("sre-es"===this.taskId){const t=np(e,["practice","composite"]),i=Object.values(t).reduce(((e,t)=>e+(t.sreScore||0)),0);return Math.max(i,0)}return 0})(i);if(i.composite={sreScore:n},void 0===this.isValidForScoring){const{ageMonths:e,grade:t}=pp(this.scoringVersion);this.isValidForScoring=mp({ageMonths:e,grade:t,scoringVersion:this.scoringVersion,taskId:this.taskId})}if(this.isValidForScoring){this.tableLoaded&&this.aiTableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:t,ageMonths:s,sreScore:a,...r}=e;i.composite={sreScore:n,...r,scoringVersion:this.scoringVersion}}}return i}}let hp=!0;const gp=document.querySelector("#sentry-feedback"),_p={type:wd,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${hc.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${hc.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default",gp&&(gp.style.display="none")},on_finish:()=>{hp?hp=!1:document.body.style.cursor="none"}};var Ip={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://roar.education/schemas/sre/parameters.json",title:"Valid Parameters",description:"Valid game parameters for the roar-sre application.",type:"object",properties:{consent:{oneOf:[{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if consent was provided."},lng:{oneOf:[{type:"string",enum:["de","en","es","it","pt"]},{type:"null"}],description:"Language of the user."},recruitment:{oneOf:[{type:"string",enum:["demo","otherLabs","parentSignUp","pilot","school"]},{type:"null"}],description:"Recruitment source for participants."},scoringVersion:{oneOf:[{type:"number",enum:[1,3,4]},{type:"null"}],description:"Version of the scoring system to use."},skipInstructions:{oneOf:[{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if instructions should be skipped."},storyOption:{oneOf:[{type:"string",enum:["grade-based"]},{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if story should be shown."},timerLength:{oneOf:[{type:"number",minimum:0,maximum:18e4},{type:"null"}],description:"Length of the timer in milliseconds."},userMode:{oneOf:[{type:"string",enum:["default","demo","2BlocksV2","3min1Block","3minBlock90sBlock","3minParallelAIFormV1","90s2Blocks","90s2BlocksFixedForms"]},{type:"null"}],description:"Mode of the user during the task."}},additionalProperties:{not:!0,errorMessage:"Parameter is not allowed."},errorMessage:{properties:{consent:"consent must be a boolean or null.",lng:"lng must be a string with a value of 'de', 'en', 'es', 'it', 'pt' or null.",recruitment:"recruitment must be a string with a value of 'demo', 'otherLabs', 'pilot' or null.",scoringVersion:"scoringVersion must be a number value of one of the following: 1 (sre-es), 3 or 4 (sre), or null.",skipInstructions:"skipInstructions must be a boolean or null.",storyOption:"storyOption must be a string with a value of 'grade-based', boolean, or null.",timerLength:"timerLength must be a number between 0 and 180000 or null.",userMode:"userMode must be a string with a value of 'default', 'demo', '2BlocksV2', '3min1Block', '3minBlock90sBlock', '3minParallelAIFormV1', '90s2Blocks', '90s2BlocksFixedForms' or null."}}};const yp=(e,t)=>{let i;return i="grade-based"===e?!(dr(t)>=6):!e||"true"===e?.toLocaleLowerCase(),i};function vp(e,t){if("3minParallelAIFormV1"===e)return Math.random()<.5?pd(["lab","aiV1P1"]):pd(["lab","aiV1P2"]);if("3min1Block"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0]];if("2BlocksV2"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0],"aiV2"];if("3minBlock90sBlock"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0],Object.keys(t.fixedForms)[Math.floor(Math.random()*Object.keys(t.fixedForms).length)]];if("90s2Blocks"===e)return pd(["test1","test2"]);if("90s2BlocksFixedForms"===e){return Object.keys(t.fixedForms).sort((()=>.5-Math.random())).slice(0,2)}return["lab","ai"]}function wp(e){return"3min1Block"===e?[18e4]:"2BlocksV2"===e||"3minBlock90sBlock"===e?[18e4,9e4]:"90s2Blocks"===e||"90s2BlocksFixedForms"===e?[9e4,9e4]:[18e4,18e4]}function bp(e){return"es"===e||"pt"===e||"de"===e?"90s2Blocks":"3minBlock90sBlock"}const Ep=e=>{e.displayElement&&(hd.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};hd.opts.on_finish=t(hd.opts.on_finish,(()=>{e.firekit.finishRun(),Ud.markAsCompleted(),e.experimentFinished&&e.experimentFinished()}));const i=new fp;hd.opts.on_data_update=t(hd.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,i.computedScoreCallback.bind(i))})),hd.opts.on_interaction_data_update=function(t){e.firekit.addInteraction(t)},r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",md.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},Ap=e=>[_p,...jd,{type:xo,func:()=>{const t=r.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<16;i+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}],Sp=Object.prototype.toString;function xp(e){switch(Sp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return jp(e,Error)}}function Tp(e,t){return Sp.call(e)===`[object ${t}]`}function Rp(e){return Tp(e,"ErrorEvent")}function kp(e){return Tp(e,"DOMError")}function Lp(e){return Tp(e,"String")}function Np(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Fp(e){return null===e||Np(e)||"object"!=typeof e&&"function"!=typeof e}function Up(e){return Tp(e,"Object")}function Op(e){return"undefined"!=typeof Event&&jp(e,Event)}function Cp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Pp(e){return"number"==typeof e&&e!=e}function jp(e,t){try{return e instanceof t}catch(e){return!1}}function Mp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function zp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Dp(e,t){let i=e;const n=i.length;if(n<=150)return i;t>n&&(t=n);let s=Math.max(t-60,0);s<5&&(s=0);let a=Math.min(s+140,n);return a>n-5&&(a=n),a===n&&(s=Math.max(a-140,0)),i=i.slice(s,a),s>0&&(i=`'{snip} ${i}`),a<n&&(i+=" {snip}"),i}function Bp(e,t){if(!Array.isArray(e))return"";const i=[];for(let t=0;t<e.length;t++){const n=e[t];try{Mp(n)?i.push("[VueViewModel]"):i.push(String(n))}catch(e){i.push("[value cannot be serialized]")}}return i.join(t)}function $p(e,t,i=!1){return!!Lp(e)&&(Tp(t,"RegExp")?t.test(e):!!Lp(t)&&(i?e===t:e.includes(t)))}function Vp(e,t=[],i=!1){return t.some((t=>$p(e,t,i)))}function qp(e,t,i=250,n,s,a,r){if(!(a.exception&&a.exception.values&&r&&jp(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,d;o&&(a.exception.values=(c=Hp(e,t,s,r.originalException,n,a.exception.values,o,0),d=i,c.map((e=>(e.value&&(e.value=zp(e.value,d)),e)))))}function Hp(e,t,i,n,s,a,r,o){if(a.length>=i+1)return a;let c=[...a];if(jp(n[s],Error)){Wp(r,o);const a=e(t,n[s]),d=c.length;Kp(a,s,d,o),c=Hp(e,t,i,n[s],s,[a,...c],a,d)}return Array.isArray(n.errors)&&n.errors.forEach(((n,a)=>{if(jp(n,Error)){Wp(r,o);const d=e(t,n),l=c.length;Kp(d,`errors[${a}]`,l,o),c=Hp(e,t,i,n,s,[d,...c],d,l)}})),c}function Wp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Kp(e,t,i,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:i,parent_id:n}}function Gp(e){return e&&e.Math==Math?e:void 0}const Yp="object"==typeof globalThis&&Gp(globalThis)||"object"==typeof window&&Gp(window)||"object"==typeof self&&Gp(self)||"object"==typeof global&&Gp(global)||function(){return this}()||{};function Jp(){return Yp}function Qp(e,t,i){const n=i||Yp,s=n.__SENTRY__=n.__SENTRY__||{};return s[e]||(s[e]=t())}const Zp=Jp();function Xp(e,t={}){if(!e)return"<unknown>";try{let i=e;const n=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let d;const l=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&a++<n&&(d=em(i,l),!("html"===d||a>1&&r+s.length*c+d.length>=u));)s.push(d),r+=d.length,i=i.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function em(e,t){const i=e,n=[];let s,a,r,o,c;if(!i||!i.tagName)return"";if(Zp.HTMLElement&&i instanceof HTMLElement&&i.dataset&&i.dataset.sentryComponent)return i.dataset.sentryComponent;n.push(i.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>i.getAttribute(e))).map((e=>[e,i.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{n.push(`[${e[0]}="${e[1]}"]`)}));else if(i.id&&n.push(`#${i.id}`),s=i.className,s&&Lp(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)n.push(`.${a[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)r=l[c],o=i.getAttribute(r),o&&n.push(`[${r}="${o}"]`);return n.join("")}function tm(e){if(!Zp.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const im="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nm=["debug","info","warn","error","log","assert","trace"],sm={};function am(e){if(!("console"in Yp))return e();const t=Yp.console,i={},n=Object.keys(sm);n.forEach((e=>{const n=sm[e];i[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=i[e]}))}}const rm=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return im?nm.forEach((i=>{t[i]=(...t)=>{e&&am((()=>{Yp.console[i](`Sentry Logger [${i}]:`,...t)}))}})):nm.forEach((e=>{t[e]=()=>{}})),t}(),om=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function cm(e,t=!1){const{host:i,path:n,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${i}${a?`:${a}`:""}/${n?`${n}/`:n}${r}`}function dm(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lm(e){const t="string"==typeof e?function(e){const t=om.exec(e);if(!t)return void am((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[i,n,s="",a,r="",o]=t.slice(1);let c="",d=o;const l=d.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),d=l.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return dm({host:a,pass:s,path:c,projectId:d,port:r,protocol:i,publicKey:n})}(e):dm(e);if(t&&function(e){if(!im)return!0;const{port:t,projectId:i,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(rm.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(i.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?t&&isNaN(parseInt(t,10))&&(rm.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(rm.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):(rm.error(`Invalid Sentry Dsn: Invalid projectId ${i}`),1)))}(t))return t}class um extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function pm(e,t,i){if(!(t in e))return;const n=e[t],s=i(n);"function"==typeof s&&fm(s,n),e[t]=s}function mm(e,t,i){try{Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0})}catch(i){im&&rm.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fm(e,t){try{const i=t.prototype||{};e.prototype=t.prototype=i,mm(e,"__sentry_original__",t)}catch(e){}}function hm(e){return e.__sentry_original__}function gm(e){if(xp(e))return{message:e.message,name:e.name,stack:e.stack,...Im(e)};if(Op(e)){const t={type:e.type,target:_m(e.target),currentTarget:_m(e.currentTarget),...Im(e)};return"undefined"!=typeof CustomEvent&&jp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function _m(e){try{return t=e,"undefined"!=typeof Element&&jp(t,Element)?Xp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Im(e){if("object"==typeof e&&null!==e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}return{}}function ym(e){return vm(e,new Map)}function vm(e,t){if(function(e){if(!Up(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const i=t.get(e);if(void 0!==i)return i;const n={};t.set(e,n);for(const i of Object.keys(e))void 0!==e[i]&&(n[i]=vm(e[i],t));return n}if(Array.isArray(e)){const i=t.get(e);if(void 0!==i)return i;const n=[];return t.set(e,n),e.forEach((e=>{n.push(vm(e,t))})),n}return e}const wm=/\(error: (.*)\)/,bm=/captureMessage|captureException/;function Em(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,i=0)=>{const n=[],s=e.split("\n");for(let e=i;e<s.length;e++){const i=s[e];if(i.length>1024)continue;const a=wm.test(i)?i.replace(wm,"$1"):i;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){n.push(t);break}}if(n.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),bm.test(t[t.length-1].function||"")&&(t.pop(),bm.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(n)}}const Am="<anonymous>";function Sm(e){try{return e&&"function"==typeof e&&e.name||Am}catch(e){return Am}}const xm={},Tm={};function Rm(e,t){xm[e]=xm[e]||[],xm[e].push(t)}function km(e,t){Tm[e]||(t(),Tm[e]=!0)}function Lm(e,t){const i=e&&xm[e];if(i)for(const n of i)try{n(t)}catch(t){im&&rm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Sm(n)}\nError:`,t)}}function Nm(e){const t="console";Rm(t,e),km(t,Fm)}function Fm(){"console"in Yp&&nm.forEach((function(e){e in Yp.console&&pm(Yp.console,e,(function(t){return sm[e]=t,function(...t){Lm("console",{args:t,level:e});const i=sm[e];i&&i.apply(Yp.console,t)}}))}))}function Um(){const e=Yp,t=e.crypto||e.msCrypto;let i=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(i=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&i())>>e/4).toString(16)))}function Om(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Cm(e){const{message:t,event_id:i}=e;if(t)return t;const n=Om(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||i||"<unknown>":i||"<unknown>"}function Pm(e,t,i){const n=e.exception=e.exception||{},s=n.values=n.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function jm(e,t){const i=Om(e);if(!i)return;const n=i.mechanism;if(i.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};i.mechanism.data=e}}function Mm(e){if(e&&e.__sentry_captured__)return!0;try{mm(e,"__sentry_captured__",!0)}catch(e){}return!1}function zm(e){return Array.isArray(e)?e:[e]}const Dm=Yp;let Bm,$m,Vm;function qm(e){Rm("dom",e),km("dom",Hm)}function Hm(){if(!Dm.document)return;const e=Lm.bind(null,"dom"),t=Wm(e,!0);Dm.document.addEventListener("click",t,!1),Dm.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const i=Dm[t]&&Dm[t].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(pm(i,"addEventListener",(function(t){return function(i,n,s){if("click"===i||"keypress"==i)try{const n=this,a=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},r=a[i]=a[i]||{refCount:0};if(!r.handler){const n=Wm(e);r.handler=n,t.call(this,i,n,s)}r.refCount++}catch(e){}return t.call(this,i,n,s)}})),pm(i,"removeEventListener",(function(e){return function(t,i,n){if("click"===t||"keypress"==t)try{const i=this,s=i.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete i.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,i,n)}})))}))}function Wm(e,t=!1){return i=>{if(!i||i._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(i);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(i.type,n))return;mm(i,"_sentryCaptured",!0),n&&!n._sentryId&&mm(n,"_sentryId",Um());const s="keypress"===i.type?"input":i.type;if(!function(e){if(e.type!==$m)return!1;try{if(!e.target||e.target._sentryId!==Vm)return!1}catch(e){}return!0}(i)){e({event:i,name:s,global:t}),$m=i.type,Vm=n?n._sentryId:void 0}clearTimeout(Bm),Bm=Dm.setTimeout((()=>{Vm=void 0,$m=void 0}),1e3)}}const Km=Jp();function Gm(){if(!("fetch"in Km))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Ym(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Jm(e){const t="fetch";Rm(t,e),km(t,Qm)}function Qm(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Gm())return!1;if(Ym(Km.fetch))return!0;let e=!1;const t=Km.document;if(t&&"function"==typeof t.createElement)try{const i=t.createElement("iframe");i.hidden=!0,t.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(e=Ym(i.contentWindow.fetch)),t.head.removeChild(i)}catch(e){im&&rm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&pm(Yp,"fetch",(function(e){return function(...t){const{method:i,url:n}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,i]=e;return{url:Xm(t),method:Zm(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:Xm(t),method:Zm(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:i,url:n},startTimestamp:Date.now()};return Lm("fetch",{...s}),e.apply(Yp,t).then((e=>(Lm("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Lm("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function Zm(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Xm(e){return"string"==typeof e?e:e?Zm(e,"url")?e.url:e.toString?e.toString():"":""}let ef=null;function tf(e){const t="error";Rm(t,e),km(t,nf)}function nf(){ef=Yp.onerror,Yp.onerror=function(e,t,i,n,s){return Lm("error",{column:n,error:s,line:i,msg:e,url:t}),!(!ef||ef.__SENTRY_LOADER__)&&ef.apply(this,arguments)},Yp.onerror.__SENTRY_INSTRUMENTED__=!0}let sf=null;function af(e){const t="unhandledrejection";Rm(t,e),km(t,rf)}function rf(){sf=Yp.onunhandledrejection,Yp.onunhandledrejection=function(e){return Lm("unhandledrejection",e),!(sf&&!sf.__SENTRY_LOADER__)||sf.apply(this,arguments)},Yp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const of=Jp();const cf=Yp;let df;function lf(e){const t="history";Rm(t,e),km(t,uf)}function uf(){if(!function(){const e=of.chrome,t=e&&e.app&&e.app.runtime,i="history"in of&&!!of.history.pushState&&!!of.history.replaceState;return!t&&i}())return;const e=cf.onpopstate;function t(e){return function(...t){const i=t.length>2?t[2]:void 0;if(i){const e=df,t=String(i);df=t;Lm("history",{from:e,to:t})}return e.apply(this,t)}}cf.onpopstate=function(...t){const i=cf.location.href,n=df;df=i;if(Lm("history",{from:n,to:i}),e)try{return e.apply(this,t)}catch(e){}},pm(cf.history,"pushState",t),pm(cf.history,"replaceState",t)}const pf=Yp,mf="__sentry_xhr_v3__";function ff(e){Rm("xhr",e),km("xhr",hf)}function hf(){if(!pf.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;pm(e,"open",(function(e){return function(...t){const i=Date.now(),n=Lp(t[0])?t[0].toUpperCase():void 0,s=function(e){if(Lp(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!n||!s)return e.apply(this,t);this[mf]={method:n,url:s,request_headers:{}},"POST"===n&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[mf];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Lm("xhr",{args:[n,s],endTimestamp:Date.now(),startTimestamp:i,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?pm(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),pm(this,"setRequestHeader",(function(e){return function(...t){const[i,n]=t,s=this[mf];return s&&Lp(i)&&Lp(n)&&(s.request_headers[i.toLowerCase()]=n),e.apply(this,t)}})),e.apply(this,t)}})),pm(e,"send",(function(e){return function(...t){const i=this[mf];if(!i)return e.apply(this,t);void 0!==t[0]&&(i.body=t[0]);return Lm("xhr",{args:[i.method,i.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function gf(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function _f(){return"undefined"!=typeof window&&(!gf()||void 0!==Yp.process&&"renderer"===Yp.process.type)}function If(e,t=100,i=1/0){try{return vf("",e,t,i)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yf(e,t=3,i=102400){const n=If(e,t);return s=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>i?yf(e,t-1,i):n;var s}function vf(e,t,i=1/0,n=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(i){if(e)return!!t.has(i)||(t.add(i),!1);for(let e=0;e<t.length;e++)if(t[e]===i)return!0;return t.push(i),!1},function(i){if(e)t.delete(i);else for(let e=0;e<t.length;e++)if(t[e]===i){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Pp(t))return t;const o=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Mp(t))return"[VueViewModel]";if(Up(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${Sm(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}var i}(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:i;if(0===c)return o.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return vf("",d.toJSON(),c-1,n,s)}catch(e){}const l=Array.isArray(t)?[]:{};let u=0;const p=gm(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=n){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=vf(e,t,c-1,n,s),u++}return r(t),l}var wf;function bf(e){return new Af((t=>{t(e)}))}function Ef(e){return new Af(((t,i)=>{i(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(wf||(wf={}));class Af{constructor(e){Af.prototype.__init.call(this),Af.prototype.__init2.call(this),Af.prototype.__init3.call(this),Af.prototype.__init4.call(this),this._state=wf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Af(((i,n)=>{this._handlers.push([!1,t=>{if(e)try{i(e(t))}catch(e){n(e)}else i(t)},e=>{if(t)try{i(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Af(((t,i)=>{let n,s;return this.then((t=>{s=!1,n=t,e&&e()}),(t=>{s=!0,n=t,e&&e()})).then((()=>{s?i(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(wf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(wf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===wf.PENDING&&(Cp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===wf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===wf.RESOLVED&&e[1](this._value),this._state===wf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Sf(e){const t=[];function i(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return Ef(new um("Not adding Promise because buffer limit was reached."));const s=n();return-1===t.indexOf(s)&&t.push(s),s.then((()=>i(s))).then(null,(()=>i(s).then(null,(()=>{})))),s},drain:function(e){return new Af(((i,n)=>{let s=t.length;if(!s)return i(!0);const a=setTimeout((()=>{e&&e>0&&i(!1)}),e);t.forEach((e=>{bf(e).then((()=>{--s||(clearTimeout(a),i(!0))}),n)}))}))}}}function xf(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const i=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:i,hash:n,relative:t[5]+i+n}}const Tf=["fatal","error","warning","log","info","debug"];function Rf(e){return"warn"===e?"warning":Tf.includes(e)?e:"log"}function kf(){return Date.now()/1e3}const Lf=function(){const{performance:e}=Yp;if(!e||!e.now)return kf;const t=Date.now()-e.now(),i=null==e.timeOrigin?t:e.timeOrigin;return()=>(i+e.now())/1e3}(),Nf=(()=>{const{performance:e}=Yp;if(!e||!e.now)return;const t=36e5,i=e.now(),n=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+i-n):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+i-n):t;return a||o<t?s<=o?e.timeOrigin:r:n})(),Ff="baggage",Uf="sentry-",Of=/^sentry-/;function Cf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,i],n)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(i)}`,a=0===n?s:`${e},${s}`;return a.length>8192?(im&&rm.warn(`Not adding key: ${t} with val: ${i} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,i])=>(i&&(e[`${Uf}${t}`]=i),e)),{}))}function Pf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,i])=>(e[t]=i,e)),{})}const jf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mf(e,t){const i=function(e){if(!e)return;const t=e.match(jf);if(!t)return;let i;return"1"===t[3]?i=!0:"0"===t[3]&&(i=!1),{traceId:t[1],parentSampled:i,parentSpanId:t[2]}}(e),n=function(e){if(!Lp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const i=Pf(t);for(const t of Object.keys(i))e[t]=i[t];return e}),{});else{if(!e)return;t=Pf(e)}const i=Object.entries(t).reduce(((e,[t,i])=>(t.match(Of)&&(e[t.slice(7)]=i),e)),{});return Object.keys(i).length>0?i:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=i||{};return i?{traceId:s||Um(),parentSpanId:a||Um().substring(16),spanId:Um().substring(16),sampled:r,dsc:n||{}}:{traceId:s||Um(),spanId:Um().substring(16)}}function zf(e=Um(),t=Um().substring(16),i){let n="";return void 0!==i&&(n=i?"-1":"-0"),`${e}-${t}${n}`}function Df(e,t=[]){return[e,t]}function Bf(e,t){const[i,n]=e;return[i,[...n,t]]}function $f(e,t){const i=e[1];for(const e of i){if(t(e,e[0].type))return!0}return!1}function Vf(e,t){return(t||new TextEncoder).encode(e)}function qf(e,t){const[i,n]=e;let s=JSON.stringify(i);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[Vf(s,t),e]:s.push("string"==typeof e?Vf(e,t):e)}for(const e of n){const[t,i]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof i||i instanceof Uint8Array)a(i);else{let e;try{e=JSON.stringify(i)}catch(t){e=JSON.stringify(If(i))}a(e)}}return"string"==typeof s?s:function(e){const t=e.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(t);let n=0;for(const t of e)i.set(t,n),n+=t.length;return i}(s)}function Hf(e,t){const i="string"==typeof e.data?Vf(e.data,t):e.data;return[ym({type:"attachment",length:i.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),i]}const Wf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Kf(e){return Wf[e]}function Gf(e){if(!e||!e.sdk)return;const{name:t,version:i}=e.sdk;return{name:t,version:i}}function Yf(e,t,i,n){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!i&&n&&{dsn:cm(n)},...s&&{trace:ym({...s})}}}function Jf(e,t,i=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>i}function Qf(e,{statusCode:t,headers:i},n=Date.now()){const s={...e},a=i&&i["x-sentry-rate-limits"],r=i&&i["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,i,,,a]=e.split(":",5),r=parseInt(t,10),o=1e3*(isNaN(r)?60:r);if(i)for(const e of i.split(";"))"metric_bucket"===e&&a&&!a.split(";").includes("custom")||(s[e]=n+o);else s.all=n+o}else r?s.all=n+function(e,t=Date.now()){const i=parseInt(`${e}`,10);if(!isNaN(i))return 1e3*i;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(r,n):429===t&&(s.all=n+6e4);return s}function Zf(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}const Xf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eh="production";function th(){return Qp("globalEventProcessors",(()=>[]))}function ih(e){th().push(e)}function nh(e,t,i,n=0){return new Af(((s,a)=>{const r=e[n];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},i);Xf&&r.id&&null===o&&rm.log(`Event processor "${r.id}" dropped event`),Cp(o)?o.then((t=>nh(e,t,i,n+1).then(s))).then(null,a):nh(e,o,i,n+1).then(s).then(null,a)}}))}function sh(e){const t=Lf(),i={sid:Um(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ym({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(i)};return e&&ah(i,e),i}function ah(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Lf(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Um()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function rh(e,t){let i={};"ok"===e.status&&(i={status:"exited"}),ah(e,i)}function oh(e){const{spanId:t,traceId:i}=e.spanContext(),{data:n,op:s,parent_span_id:a,status:r,tags:o,origin:c}=uh(e);return ym({data:n,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:i,origin:c})}function ch(e){const{traceId:t,spanId:i}=e.spanContext();return zf(t,i,ph(e))}function dh(e){return"number"==typeof e?lh(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lh(e.getTime()):Lf()}function lh(e){return e>9999999999?e/1e3:e}function uh(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function ph(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}function mh(e,t,i,n,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||i.event_id||Um(),timestamp:t.timestamp||kf()},d=i.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:i,release:n,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?i:eh);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=zp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=zp(r.value,a));const o=e.request;o&&o.url&&(o.url=zp(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,d),void 0===t.type&&function(e,t){const i=Yp._sentryDebugIds;if(!i)return;let n;const s=fh.get(t);s?n=s:(n=new Map,fh.set(t,n));const a=Object.keys(i).reduce(((e,s)=>{let a;const r=n.get(s);r?a=r:(a=t(s),n.set(s,a));for(let t=a.length-1;t>=0;t--){const n=a[t];if(n.filename){e[n.filename]=i[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const l=function(e,t){if(!t)return e;const i=e?e.clone():new Ch;return i.update(t),i}(n,i.captureContext);i.mechanism&&jm(c,i.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){Oh||(Oh=new Ch);return Oh}().getScopeData();if(a){Fh(p,a.getScopeData())}if(l){Fh(p,l.getScopeData())}const m=[...i.attachments||[],...p.attachments];m.length&&(i.attachments=m),Nh(c,p);return nh([...u,...th(),...p.eventProcessors],c,i).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const i=e.debug_meta.images;Object.keys(t).forEach((e=>{i.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,i){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:If(e.data,t,i)}})))},...e.user&&{user:If(e.user,t,i)},...e.contexts&&{contexts:If(e.contexts,t,i)},...e.extra&&{extra:If(e.extra,t,i)}};e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=If(e.contexts.trace.data,t,i)));e.spans&&(n.spans=e.spans.map((e=>{const n=uh(e).data;return n&&(e.data=If(n,t,i)),e})));return n}(e,r,o):e)))}const fh=new WeakMap;function hh(e){if(e)return function(e){return e instanceof Ch||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>gh.includes(e)))}(e)?{captureContext:e}:e}const gh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _h(e,t){return Vh().captureException(e,hh(t))}function Ih(e,t){const i="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return Vh().captureMessage(e,i,n)}function yh(e,t){return Vh().captureEvent(e,t)}function vh(e,t){Vh().addBreadcrumb(e,t)}function wh(...e){const t=Vh();if(2===e.length){const[i,n]=e;return i?t.withScope((()=>(t.getStackTop().scope=i,n(i)))):t.withScope(n)}return t.withScope(e[0])}function bh(){return Vh().getClient()}function Eh(){return Vh().getScope()}function Ah(e){const t=bh(),i=qh(),n=Eh(),{release:s,environment:a=eh}=t&&t.getOptions()||{},{userAgent:r}=Yp.navigator||{},o=sh({release:s,environment:a,user:n.getUser()||i.getUser(),...r&&{userAgent:r},...e}),c=i.getSession();return c&&"ok"===c.status&&ah(c,{status:"exited"}),Sh(),i.setSession(o),n.setSession(o),o}function Sh(){const e=qh(),t=Eh(),i=t.getSession()||e.getSession();i&&rh(i),xh(),e.setSession(),t.setSession()}function xh(){const e=qh(),t=Eh(),i=bh(),n=t.getSession()||e.getSession();n&&i&&i.captureSession&&i.captureSession(n)}function Th(e=!1){e?Sh():xh()}function Rh(e){return e.transaction}function kh(e,t,i){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=i&&i.getUser()||{},r=ym({environment:n.environment||eh,release:n.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}function Lh(e){const t=bh();if(!t)return{};const i=kh(uh(e).trace_id||"",t,Eh()),n=Rh(e);if(!n)return i;const s=n&&n._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=n.metadata;null!=a&&(i.sample_rate=`${a}`);const o=uh(n);return r&&"url"!==r&&(i.transaction=o.description),i.sampled=String(ph(n)),t.emit&&t.emit("createDsc",i),i}function Nh(e,t){const{fingerprint:i,span:n,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:i,tags:n,user:s,contexts:a,level:r,transactionName:o}=t,c=ym(i);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const d=ym(n);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const l=ym(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const u=ym(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),n&&function(e,t){e.contexts={trace:oh(t),...e.contexts};const i=Rh(t);if(i){e.sdkProcessingMetadata={dynamicSamplingContext:Lh(t),...e.sdkProcessingMetadata};const n=uh(i).description;n&&(e.tags={transaction:n,...e.tags})}}(e,n),function(e,t){e.fingerprint=e.fingerprint?zm(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,i),function(e,t){const i=[...e.breadcrumbs||[],...t];e.breadcrumbs=i.length?i:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function Fh(e,t){const{extra:i,tags:n,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:d,eventProcessors:l,attachments:u,propagationContext:p,transactionName:m,span:f}=t;Uh(e,"extra",i),Uh(e,"tags",n),Uh(e,"user",s),Uh(e,"contexts",a),Uh(e,"sdkProcessingMetadata",o),r&&(e.level=r),m&&(e.transactionName=m),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function Uh(e,t,i){if(i&&Object.keys(i).length){e[t]={...e[t]};for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[t][n]=i[n])}}let Oh;class Ch{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ph()}static clone(e){return e?e.clone():new Ch}clone(){const e=new Ch;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ah(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof Ch){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(Up(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ph(),this}addBreadcrumb(e,t){const i="number"==typeof t?t:100;if(i<=0)return this;const n={timestamp:kf(),...e},s=this._breadcrumbs;return s.push(n),this._breadcrumbs=s.length>i?s.slice(-i):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:i,_tags:n,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:d,_sdkProcessingMetadata:l,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:i,tags:n,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:d,sdkProcessingMetadata:l,transactionName:u,span:p}}applyToEvent(e,t={},i=[]){Nh(e,this.getScopeData());return nh([...i,...th(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const i=t&&t.event_id?t.event_id:Um();if(!this._client)return rm.warn("No client configured on scope - will not capture exception!"),i;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:i},this),i}captureMessage(e,t,i){const n=i&&i.event_id?i.event_id:Um();if(!this._client)return rm.warn("No client configured on scope - will not capture message!"),n;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...i,event_id:n},this),n}captureEvent(e,t){const i=t&&t.event_id?t.event_id:Um();return this._client?(this._client.captureEvent(e,{...t,event_id:i},this),i):(rm.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Ph(){return{traceId:Um(),spanId:Um().substring(16)}}const jh="7.119.0",Mh=parseFloat(jh),zh=100;class Dh{constructor(e,t,i,n=Mh){let s,a;this._version=n,t?s=t:(s=new Ch,s.setClient(e)),i?a=i:(a=new Ch,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let i;try{i=e(t)}catch(e){throw this.popScope(),e}return Cp(i)?i.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const i=this._lastEventId=t&&t.event_id?t.event_id:Um(),n=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:i}),i}captureMessage(e,t,i){const n=this._lastEventId=i&&i.event_id?i.event_id:Um(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...i,event_id:n}),n}captureEvent(e,t){const i=t&&t.event_id?t.event_id:Um();return e.type||(this._lastEventId=i),this.getScope().captureEvent(e,{...t,event_id:i}),i}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:i,client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=zh}=n.getOptions&&n.getOptions()||{};if(a<=0)return;const r={timestamp:kf(),...e},o=s?am((()=>s(r,t))):r;null!==o&&(n.emit&&n.emit("beforeAddBreadcrumb",o,t),i.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:i}=this.getStackTop();i&&e(t)}run(e){const t=$h(this);try{e(this)}finally{$h(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Xf&&rm.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const i=this._callExtensionMethod("startTransaction",e,t);if(Xf&&!i){this.getClient()?rm.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):rm.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return i}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&rh(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:i}=this.getStackTop(),{release:n,environment:s=eh}=i&&i.getOptions()||{},{userAgent:a}=Yp.navigator||{},r=sh({release:n,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&ah(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),i=e.getSession();i&&t&&t.captureSession&&t.captureSession(i)}_callExtensionMethod(e,...t){const i=Bh().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);Xf&&rm.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Bh(){return Yp.__SENTRY__=Yp.__SENTRY__||{extensions:{},hub:void 0},Yp}function $h(e){const t=Bh(),i=Hh(t);return Wh(t,e),i}function Vh(){const e=Bh();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Bh()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Hh(e).isOlderThan(Mh)||Wh(e,new Dh);var t;return Hh(e)}(e)}function qh(){return Vh().getIsolationScope()}function Hh(e){return Qp("hub",(()=>new Dh),e)}function Wh(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Kh(e){return Vh().getScope().getTransaction()}let Gh=!1;function Yh(){const e=Kh();if(e){const t="internal_error";Xf&&rm.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var Jh;function Qh(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const i=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==i&&e.setStatus(i)}function Zh(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=bh(),i=e||t&&t.getOptions();return!!i&&(i.enableTracing||"tracesSampleRate"in i||"tracesSampler"in i)}function Xh(e){if(!Zh())return;const t=function(e){if(e.startTime){const t={...e};return t.startTimestamp=dh(e.startTime),delete t.startTime,t}return e}(e),i=Vh(),n=e.scope?e.scope.getSpan():eg();if(e.onlyIfParent&&!n)return;const s=(e.scope||Eh()).clone();return function(e,{parentSpan:t,spanContext:i,forceTransaction:n,scope:s}){if(!Zh())return;const a=qh();let r;if(t&&!n)r=t.startChild(i);else if(t){const n=Lh(t),{traceId:s,spanId:a}=t.spanContext(),o=ph(t);r=e.startTransaction({traceId:s,parentSpanId:a,parentSampled:o,...i,metadata:{dynamicSamplingContext:n,...i.metadata}})}else{const{traceId:t,dsc:n,parentSpanId:o,sampled:c}={...a.getPropagationContext(),...s.getPropagationContext()};r=e.startTransaction({traceId:t,parentSpanId:o,parentSampled:c,...i,metadata:{dynamicSamplingContext:n,...i.metadata}})}return s.setSpan(r),function(e,t,i){e&&(mm(e,ig,i),mm(e,tg,t))}(r,s,a),r}(i,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function eg(){return Eh().getSpan()}Yh.tag="sentry_tracingErrorCallback",function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(Jh||(Jh={}));const tg="_sentryScope",ig="_sentryIsolationScope";const ng="sentry.source",sg="sentry.sample_rate",ag="sentry.op",rg="sentry.origin";class og{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class cg{constructor(e={}){this._traceId=e.traceId||Um(),this._spanId=e.spanId||Um().substring(16),this._startTime=e.startTimestamp||Lf(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[rg]:e.origin||"manual",[ag]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[ag]}set op(e){this.setAttribute(ag,e)}get origin(){return this._attributes[rg]}set origin(e){this.setAttribute(rg,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:i}=this;return{spanId:e,traceId:t,traceFlags:i?1:0}}startChild(e){const t=new cg({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const i=Rh(this);if(t.transaction=i,Xf&&i){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${uh(t).description||"< unknown name >"}' (${i.spanContext().spanId}).`;rm.log(n),this._logMessage=n}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Qh(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=Rh(this);if(Xf&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&rm.log(e.replace("Starting","Finishing"))}this._endTime=dh(e)}toTraceparent(){return ch(this)}toContext(){return ym({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return oh(this)}getSpanJSON(){return ym({data:this._getData(),description:this._name,op:this._attributes[ag],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rg],_metrics_summary:void 0,profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,i=Object.keys(e).length>0,n=Object.keys(t).length>0;if(i||n)return i&&n?{...e,...t}:i?e:t}}class dg extends cg{constructor(e,t){super(e),this._contexts={},this._hub=t||Vh(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const i=this._metadata.dynamicSamplingContext;i&&(this._frozenDynamicSamplingContext={...i})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ng]&&{source:this._attributes[ng]},...this._attributes[sg]&&{sampleRate:this._attributes[sg]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(ng,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new og(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,i=""){this._measurements[e]={value:t,unit:i}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=dh(e),i=this._finishTransaction(t);if(i)return this._hub.captureEvent(i)}toContext(){return ym({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Lh(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Xf&&rm.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Xf&&rm.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const i=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&uh(e).timestamp)):[];if(this._trimEnd&&i.length>0){const e=i.map((e=>uh(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:n,isolationScope:s}={scope:(a=this)[tg],isolationScope:a[ig]};var a;const{metadata:r}=this,{source:o}=r,c={contexts:{...this._contexts,trace:oh(this)},spans:i,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...r,capturedSpanScope:n,capturedSpanIsolationScope:s,...ym({dynamicSamplingContext:Lh(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Xf&&rm.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),Xf&&rm.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const lg={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},ug=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class pg extends og{constructor(e,t,i,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=i}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...i)=>(this._popActivity(e.spanContext().spanId),t.apply(e,i)),void 0===uh(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class mg extends dg{constructor(e,t,i=lg.idleTimeout,n=lg.finalTimeout,s=lg.heartbeatInterval,a=!1,r=!1){super(e,t),this._idleHub=t,this._idleTimeout=i,this._finalTimeout=n,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ug[4],this._autoFinishAllowed=!r,a&&(Xf&&rm.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),r||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ug[3],this.end())}),this._finalTimeout)}end(e){const t=dh(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Xf&&rm.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;uh(e).timestamp||(e.setStatus("cancelled"),e.end(t),Xf&&rm.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:i,timestamp:n}=uh(e),s=i&&i<t,a=(this._finalTimeout+this._idleTimeout)/1e3,r=n&&i&&n-i<a;if(Xf){const t=JSON.stringify(e,void 0,2);s?r||rm.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):rm.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&r})),Xf&&rm.log("[Tracing] flushing IdleTransaction")}else Xf&&rm.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},i=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new pg(t,i,this.spanContext().spanId,e),Xf&&rm.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ug[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Xf&&rm.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=ug[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Xf&&rm.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Xf&&rm.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Xf&&rm.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Xf&&rm.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=Lf();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ug[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Xf&&rm.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ug[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Xf&&rm.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function fg(e,t,i){if(!Zh(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(sg,Number(e.sampled)),e;let n;return"function"==typeof t.tracesSampler?(n=t.tracesSampler(i),e.setAttribute(sg,Number(n))):void 0!==i.parentSampled?n=i.parentSampled:void 0!==t.tracesSampleRate?(n=t.tracesSampleRate,e.setAttribute(sg,Number(n))):(n=1,e.setAttribute(sg,n)),hg(n)?n?(e.sampled=Math.random()<n,e.sampled?(Xf&&rm.log(`[Tracing] starting ${e.op} transaction - ${uh(e).description}`),e):(Xf&&rm.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):(Xf&&rm.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Xf&&rm.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function hg(e){return Pp(e)||"number"!=typeof e&&"boolean"!=typeof e?(Xf&&rm.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(Xf&&rm.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function gg(){const e=this.getScope().getSpan();return e?{"sentry-trace":ch(e)}:{}}function _g(e,t){const i=this.getClient(),n=i&&i.getOptions()||{},s=n.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(Xf&&rm.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new dg(e,this);return r=fg(r,n,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),r.isRecording()&&r.initSpanRecorder(n._experiments&&n._experiments.maxSpans),i&&i.emit&&i.emit("startTransaction",r),r}function Ig(e,t,i,n,s,a,r,o=!1){const c=e.getClient(),d=c&&c.getOptions()||{};let l=new mg(t,e,i,n,r,s,o);return l=fg(l,d,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),l.isRecording()&&l.initSpanRecorder(d._experiments&&d._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function yg(){const e=Bh();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=_g),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=gg),Gh||(Gh=!0,tf(Yh),af(Yh)))}function vg(e,t){return i={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(i).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`)).join("&");var i}const wg=[];function bg(e){const t=e.defaultIntegrations||[],i=e.integrations;let n;t.forEach((e=>{e.isDefaultInstance=!0})),n=Array.isArray(i)?[...t,...i]:"function"==typeof i?zm(i(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:i}=e,n=t[i];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[i]=e)})),Object.keys(t).map((e=>t[e]))}(n),a=function(e,t){for(let i=0;i<e.length;i++)if(!0===t(e[i]))return i;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function Eg(e,t){for(const i of t)i&&i.afterAllSetup&&i.afterAllSetup(e)}function Ag(e,t,i){if(i[t.name])Xf&&rm.log(`Integration skipped because it was already installed: ${t.name}`);else{if(i[t.name]=t,-1===wg.indexOf(t.name)&&(t.setupOnce(ih,Vh),wg.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>i(t,n,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const i=t.processEvent.bind(t),n=Object.assign(((t,n)=>i(t,n,e)),{id:t.name});e.addEventProcessor(n)}Xf&&rm.log(`Integration installed: ${t.name}`)}}function Sg(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function xg(e,t,i,n){const s={sent_at:(new Date).toISOString()};i&&i.sdk&&(s.sdk={name:i.sdk.name,version:i.sdk.version}),n&&t&&(s.dsn=cm(t));const a=function(e){const t=function(e){let t="";for(const i of e){const e=Object.entries(i.tags),n=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${i.name}@${i.unit}:${i.metric}|${i.metricType}${n}|T${i.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Df(s,[a])}const Tg="Not capturing exception because it's already been captured.";class Rg{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=lm(e.dsn):Xf&&rm.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const i="string"==typeof t?t:t.tunnel,n="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return i||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"";return`${t}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${vg(e,n)}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,i){if(Mm(e))return void(Xf&&rm.log(Tg));let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,i))).then((e=>{n=e}))),n}captureMessage(e,t,i,n){let s=i&&i.event_id;const a=Np(e)?e:String(e),r=Fp(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(r.then((e=>this._captureEvent(e,i,n))).then((e=>{s=e}))),s}captureEvent(e,t,i){if(t&&t.originalException&&Mm(t.originalException))return void(Xf&&rm.log(Tg));let n=t&&t.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,s||i).then((e=>{n=e}))),n}captureSession(e){"string"!=typeof e.release?Xf&&rm.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ah(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((i=>t.flush(e).then((e=>i&&e))))):bf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Xf&&rm.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ag(this,e,this._integrations),t||Eg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let i=function(e,t,i,n){const s=Gf(i),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,i&&i.sdk);const r=Yf(e,s,n,t);return delete e.sdkProcessingMetadata,Df(r,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])i=Bf(i,Hf(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const n=this._sendEnvelope(i);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,i,n){const s=Gf(i);return Df({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!n&&t&&{dsn:cm(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,i){if(this._options.sendClientReports){const n="number"==typeof i?i:1,s=`${e}:${t}`;Xf&&rm.log(`Recording outcome: "${s}"${n>1?` (${n} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+n}}captureAggregateMetrics(e){Xf&&rm.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=xg(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const i={};return t.forEach((t=>{t&&Ag(e,t,i)})),i}(this,e),Eg(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let i=!1,n=!1;const s=t.exception&&t.exception.values;if(s){n=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){i=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&i)&&(ah(e,{...i&&{status:"crashed"},errors:e.errors||Number(n||i)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Af((t=>{let i=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(i+=1,e&&i>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,i,n=qh()){const s=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),mh(s,e,t,i,this,n).then((e=>{if(null===e)return e;const t={...n.getPropagationContext(),...i?i.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:n,span_id:s,parent_span_id:a},...e.contexts};const o=r||kh(n,this,i);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},i){return this._processEvent(e,t,i).then((e=>e.event_id),(e=>{if(Xf){const t=e;"log"===t.logLevel?rm.log(t.message):rm.warn(t)}}))}_processEvent(e,t,i){const n=this.getOptions(),{sampleRate:s}=n,a=Lg(e),r=kg(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),Ef(new um(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d="replay_event"===o?"replay":o,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,i,l).then((i=>{if(null===i)throw this.recordDroppedEvent("event_processor",d,e),new um("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return i;const s=function(e,t,i){const{beforeSend:n,beforeSendTransaction:s}=e;if(kg(t)&&n)return n(t,i);if(Lg(t)&&s){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(t,i)}return t}(n,i,t);return function(e,t){const i=`${t} must return \`null\` or a valid event.`;if(Cp(e))return e.then((e=>{if(!Up(e)&&null!==e)throw new um(i);return e}),(e=>{throw new um(`${t} rejected with ${e}`)}));if(!Up(e)&&null!==e)throw new um(i);return e}(s,c)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",d,e),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new um(`${c} returned \`null\`, will not send event.`,"log")}const s=i&&i.getSession();if(!a&&s&&this._updateSessionFromEvent(s,n),a){const e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const r=n.transaction_info;if(a&&r&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...r,source:e}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof um)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new um(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Xf&&rm.error("Error while sending event:",e)}));Xf&&rm.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[i,n]=t.split(":");return{reason:i,category:n,quantity:e[t]}}))}}function kg(e){return void 0===e.type}function Lg(e){return"transaction"===e.type}function Ng(e,t){!0===t.debug&&(Xf?rm.enable():am((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));Eh().update(t.initialScope);const i=new e(t);!function(e){const t=Vh().getStackTop();t.client=e,t.scope.setClient(e)}(i),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(i)}function Fg(e,t,i=Sf(e.bufferSize||30)){let n={};function s(s){const a=[];if($f(s,((t,i)=>{const s=Kf(i);if(Jf(n,s)){const n=Ug(t,i);e.recordDroppedEvent("ratelimit_backoff",s,n)}else a.push(t)})),0===a.length)return bf();const r=Df(s[0],a),o=t=>{$f(r,((i,n)=>{const s=Ug(i,n);e.recordDroppedEvent(t,Kf(n),s)}))};return i.add((()=>t({body:qf(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Xf&&rm.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=Qf(n,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof um)return Xf&&rm.error("Skipped sending event because buffer is full."),o("queue_overflow"),bf();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>i.drain(e)}}function Ug(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Og(e){return[{type:"span"},e]}function Cg(e,t){const i=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,n=i&&i.getDsn(),s=i&&i.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return Pg(e)===Pg(t)}(e,s)}function Pg(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const jg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Mg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],zg="InboundFilters",Dg=(e={})=>({name:zg,setupOnce(){},processEvent(t,i,n){const s=n.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Mg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Xf&&rm.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let i;try{i=e.exception.values[e.exception.values.length-1]}catch(e){}i&&i.value&&(t.push(i.value),i.type&&t.push(`${i.type}: ${i.value}`));Xf&&0===t.length&&rm.error(`Could not extract message for event ${Cm(e)}`);return t}(e).some((e=>Vp(e,t)))}(e,t.ignoreErrors))return Xf&&rm.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const i=e.transaction;return!!i&&Vp(i,t)}(e,t.ignoreTransactions))return Xf&&rm.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const i=Bg(e);return!!i&&Vp(i,t)}(e,t.denyUrls))return Xf&&rm.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Cm(e)}.\nUrl: ${Bg(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const i=Bg(e);return!i||Vp(i,t)}(e,t.allowUrls))return Xf&&rm.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Cm(e)}.\nUrl: ${Bg(e)}`),!0;return!1}(t,a)?null:t}});function Bg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const i=e[t];if(i&&"<anonymous>"!==i.filename&&"[native code]"!==i.filename)return i.filename||null}return null}(t):null}catch(t){return Xf&&rm.error(`Cannot extract url for event ${Cm(e)}`),null}}let $g;Sg(zg,Dg);const Vg="FunctionToString",qg=new WeakMap,Hg=()=>({name:Vg,setupOnce(){$g=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=hm(this),i=qg.has(bh())&&void 0!==t?t:this;return $g.apply(i,e)}}catch(e){}},setup(e){qg.set(e,!0)}});Sg(Vg,Hg);const Wg="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kg=Yp;const Gg=(e,t,i)=>{let n,s;return a=>{t.value>=0&&(a||i)&&(s=t.value-(n||0),(s||void 0===n)&&(n=t.value,t.delta=s,e(t)))}},Yg=()=>Kg.__WEB_VITALS_POLYFILL__?Kg.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Kg.performance.timing,t=Kg.performance.navigation.type,i={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(i[t]=Math.max(e[t]-e.navigationStart,0));return i})()):Kg.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Jg=()=>{const e=Yg();return e&&e.activationStart||0},Qg=(e,t)=>{const i=Yg();let n="navigate";return i&&(n=Kg.document&&Kg.document.prerendering||Jg()>0?"prerender":i.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Zg=(e,t,i)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch(e){}},Xg=(e,t)=>{const i=n=>{"pagehide"!==n.type&&"hidden"!==Kg.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))};Kg.document&&(addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0))};let e_=-1;const t_=()=>(e_<0&&(Kg.document&&Kg.document.visibilityState&&(e_="hidden"!==Kg.document.visibilityState||Kg.document.prerendering?1/0:0),Xg((({timeStamp:e})=>{e_=e}),!0)),{get firstHiddenTime(){return e_}});let i_=0,n_=1/0,s_=0;const a_=e=>{e.forEach((e=>{e.interactionId&&(n_=Math.min(n_,e.interactionId),s_=Math.max(s_,e.interactionId),i_=s_?(s_-n_)/7+1:0)}))};let r_;const o_=()=>{"interactionCount"in performance||r_||(r_=Zg("event",a_,{type:"event",buffered:!0,durationThreshold:0}))},c_=()=>r_?i_:performance.interactionCount||0,d_=[],l_={},u_=e=>{const t=d_[d_.length-1],i=l_[e.interactionId];if(i||d_.length<10||e.duration>t.latency){if(i)i.entries.push(e),i.latency=Math.max(i.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};l_[t.id]=t,d_.push(t)}d_.sort(((e,t)=>t.latency-e.latency)),d_.splice(10).forEach((e=>{delete l_[e.id]}))}},p_=(e,t)=>{t=t||{},o_();const i=Qg("INP");let n;const s=e=>{e.forEach((e=>{if(e.interactionId&&u_(e),"first-input"===e.entryType){!d_.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&u_(e)}}));const t=(()=>{const e=Math.min(d_.length-1,Math.floor(c_()/50));return d_[e]})();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,n())},a=Zg("event",s,{durationThreshold:t.durationThreshold||40});n=Gg(e,i,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Xg((()=>{s(a.takeRecords()),i.value<0&&c_()>0&&(i.value=0,i.entries=[]),n(!0)})))},m_={},f_=e=>{Kg.document&&(Kg.document.prerendering?addEventListener("prerenderingchange",(()=>f_(e)),!0):"complete"!==Kg.document.readyState?addEventListener("load",(()=>f_(e)),!0):setTimeout(e,0))},h_={},g_={};let __,I_,y_,v_,w_;function b_(e,t=!1){return L_("lcp",e,T_,y_,t)}function E_(e,t){return N_(e,t),g_[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Zg(e,(t=>{A_(e,{entries:t})}),t)}(e),g_[e]=!0),F_(e,t)}function A_(e,t){const i=h_[e];if(i&&i.length)for(const n of i)try{n(t)}catch(t){Wg&&rm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Sm(n)}\nError:`,t)}}function S_(){return((e,t={})=>{const i=Qg("CLS",0);let n,s=0,a=[];const r=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=a[0],r=a[a.length-1];s&&0!==a.length&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,a.push(e)):(s=e.value,a=[e]),s>i.value&&(i.value=s,i.entries=a,n&&n())}}))},o=Zg("layout-shift",r);if(o){n=Gg(e,i,t.reportAllChanges);const s=()=>{r(o.takeRecords()),n(!0)};return Xg(s),s}})((e=>{A_("cls",{metric:e}),__=e}),{reportAllChanges:!0})}function x_(){return(e=>{const t=t_(),i=Qg("FID");let n;const s=e=>{e.startTime<t.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=e=>{e.forEach(s)},r=Zg("first-input",a);n=Gg(e,i),r&&Xg((()=>{a(r.takeRecords()),r.disconnect()}),!0)})((e=>{A_("fid",{metric:e}),I_=e}))}function T_(){return(e=>{const t=t_(),i=Qg("LCP");let n;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-Jg(),0);e<t.firstHiddenTime&&(i.value=e,i.entries=[s],n())}},a=Zg("largest-contentful-paint",s);if(a){n=Gg(e,i);const t=()=>{m_[i.id]||(s(a.takeRecords()),a.disconnect(),m_[i.id]=!0,n(!0))};return["keydown","click"].forEach((e=>{Kg.document&&addEventListener(e,t,{once:!0,capture:!0})})),Xg(t,!0),t}})((e=>{A_("lcp",{metric:e}),y_=e}))}function R_(){return((e,t)=>{t=t||{};const i=Qg("TTFB"),n=Gg(e,i,t.reportAllChanges);f_((()=>{const e=Yg();if(e){if(i.value=Math.max(e.responseStart-Jg(),0),i.value<0||i.value>performance.now())return;i.entries=[e],n(!0)}}))})((e=>{A_("ttfb",{metric:e}),v_=e}))}function k_(){return p_((e=>{A_("inp",{metric:e}),w_=e}))}function L_(e,t,i,n,s=!1){let a;return N_(e,t),g_[e]||(a=i(),g_[e]=!0),n&&t({metric:n}),F_(e,t,s?a:void 0)}function N_(e,t){h_[e]=h_[e]||[],h_[e].push(t)}function F_(e,t,i){return()=>{i&&i();const n=h_[e];if(!n)return;const s=n.indexOf(t);-1!==s&&n.splice(s,1)}}function U_(e){return"number"==typeof e&&isFinite(e)}function O_(e,{startTimestamp:t,...i}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...i})}function C_(e){return e/1e3}function P_(){return Kg&&Kg.addEventListener&&Kg.performance}let j_,M_,z_=0,D_={};function B_(){const e=P_();if(e&&Nf){e.mark&&Kg.performance.mark("sentry-tracing-init");const t=L_("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const i=C_(Nf),n=C_(t.startTime);Wg&&rm.log("[Measurements] Adding FID"),D_.fid={value:e.value,unit:"millisecond"},D_["mark.fid"]={value:i+n,unit:"second"}}),x_,I_),i=function(e,t=!1){return L_("cls",e,S_,__,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wg&&rm.log("[Measurements] Adding CLS"),D_.cls={value:e.value,unit:""},M_=t)}),!0),n=b_((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wg&&rm.log("[Measurements] Adding LCP"),D_.lcp={value:e.value,unit:"millisecond"},j_=t)}),!0),s=function(e){return L_("ttfb",e,R_,v_)}((({metric:e})=>{e.entries[e.entries.length-1]&&(Wg&&rm.log("[Measurements] Adding TTFB"),D_.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),i(),n(),s()}}return()=>{}}function $_(e,t){if(P_()&&Nf){const i=function(e,t){return i=({metric:i})=>{if(void 0===i.value)return;const n=i.entries.find((e=>e.duration===i.value&&void 0!==V_[e.name])),s=bh();if(!n||!s)return;const a=V_[n.name],r=s.getOptions(),o=C_(Nf+n.startTime),c=C_(i.value),d=void 0!==n.interactionId?e[n.interactionId]:void 0;if(void 0===d)return;const{routeName:l,parentContext:u,activeTransaction:p,user:m,replayId:f}=d,h=void 0!==m?m.email||m.id||m.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,_=new cg({startTimestamp:o,endTimestamp:o+c,op:`ui.interaction.${a}`,name:Xp(n.target),attributes:{release:r.release,environment:r.environment,transaction:l,...void 0!==h&&""!==h?{user:h}:{},...void 0!==g?{profile_id:g}:{},...void 0!==f?{replay_id:f}:{}},exclusiveTime:i.value,measurements:{inp:{value:i.value,unit:"millisecond"}}}),I=function(e,t,i){if(!Zh(t))return!1;let n;return n=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Kg.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,hg(n)?!0===n?i:!1===n?0:n*i:(Wg&&rm.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(u,r,t);if(I&&Math.random()<I){const e=_?function(e,t){const i={sent_at:(new Date).toISOString()};return t&&(i.dsn=cm(t)),Df(i,e.map(Og))}([_],s.getDsn()):void 0,t=s&&s.getTransport();t&&e&&t.send(e).then(null,(e=>{Wg&&rm.error("Error while sending interaction:",e)}))}},L_("inp",i,k_,w_);var i}(e,t);return()=>{i()}}return()=>{}}const V_={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function q_(e){const t=P_();if(!t||!Kg.performance.getEntries||!Nf)return;Wg&&rm.log("[Tracing] Adding & adjusting spans using Performance API");const i=C_(Nf),n=t.getEntries(),{op:s,start_timestamp:a}=uh(e);if(n.slice(z_).forEach((t=>{const n=C_(t.startTime),s=C_(t.duration);if(!("navigation"===e.op&&a&&i+n<a))switch(t.entryType){case"navigation":!function(e,t,i){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{H_(e,t,n,i)})),H_(e,t,"secureConnection",i,"TLS/SSL","connectEnd"),H_(e,t,"fetch",i,"cache","domainLookupStart"),H_(e,t,"domainLookup",i,"DNS"),function(e,t,i){t.responseEnd&&(O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+C_(t.requestStart),endTimestamp:i+C_(t.responseEnd)}),O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+C_(t.responseStart),endTimestamp:i+C_(t.responseEnd)}))}(e,t,i)}(e,t,i);break;case"mark":case"paint":case"measure":{!function(e,t,i,n,s){const a=s+i,r=a+n;O_(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,n,s,i);const a=t_(),r=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&r&&(Wg&&rm.log("[Measurements] Adding FP"),D_.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&r&&(Wg&&rm.log("[Measurements] Adding FCP"),D_.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,i,n,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r=xf(i),o={};W_(o,t,"transferSize","http.response_transfer_size"),W_(o,t,"encodedBodySize","http.response_content_length"),W_(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);r.protocol&&(o["url.scheme"]=r.protocol.split(":").pop());r.host&&(o["server.address"]=r.host);o["url.same_origin"]=i.includes(Kg.location.origin);const c=a+n,d=c+s;O_(e,{description:i.replace(Kg.location.origin,""),endTimestamp:d,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(e,t,t.name,n,s,i)}})),z_=Math.max(n.length-1,0),function(e){const t=Kg.navigator;if(!t)return;const i=t.connection;i&&(i.effectiveType&&e.setTag("effectiveConnectionType",i.effectiveType),i.type&&e.setTag("connectionType",i.type),U_(i.rtt)&&(D_["connection.rtt"]={value:i.rtt,unit:"millisecond"}));U_(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);U_(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e){const t=Yg();if(!t)return;const{responseStart:i,requestStart:n}=t;n<=i&&(Wg&&rm.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:i-n,unit:"millisecond"})}(D_),["fcp","fp","lcp"].forEach((e=>{if(!D_[e]||!a||i>=a)return;const t=D_[e].value,n=i+C_(t),s=Math.abs(1e3*(n-a)),r=s-t;Wg&&rm.log(`[Measurements] Normalized ${e} from ${t} to ${s} (${r})`),D_[e].value=s}));const t=D_["mark.fid"];t&&D_.fid&&(O_(e,{description:"first input delay",endTimestamp:t.value+C_(D_.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete D_["mark.fid"]),"fcp"in D_||delete D_.cls,Object.keys(D_).forEach((e=>{!function(e,t,i){const n=Kh();n&&n.setMeasurement(e,t,i)}(e,D_[e].value,D_[e].unit)})),function(e){j_&&(Wg&&rm.log("[Measurements] Adding LCP Data"),j_.element&&e.setTag("lcp.element",Xp(j_.element)),j_.id&&e.setTag("lcp.id",j_.id),j_.url&&e.setTag("lcp.url",j_.url.trim().slice(0,200)),e.setTag("lcp.size",j_.size));M_&&M_.sources&&(Wg&&rm.log("[Measurements] Adding CLS Data"),M_.sources.forEach(((t,i)=>e.setTag(`cls.source.${i+1}`,Xp(t.node)))))}(e)}j_=void 0,M_=void 0,D_={}}function H_(e,t,i,n,s,a){const r=a?t[a]:t[`${i}End`],o=t[`${i}Start`];o&&r&&O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||i,startTimestamp:n+C_(o),endTimestamp:n+C_(r)})}function W_(e,t,i,n){const s=t[i];null!=s&&s<2147483647&&(e[n]=s)}function K_(e,t,i,n,s="auto.http.browser"){if(!Zh()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const i=n[t];return void(i&&(!function(e,t){if(t.response){Qh(e,t.response.status);const i=t.response&&t.response.headers&&t.response.headers.get("content-length");if(i){const t=parseInt(i);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(i,e),delete n[t]))}const r=Eh(),o=bh(),{method:c,url:d}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(d),u=l?xf(l).host:void 0,p=a?Xh({name:`${c} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":c,"http.url":l,"server.address":u,[rg]:s},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p),i(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const i=e.args[1];i.headers=function(e,t,i,n,s){const a=s||i.getSpan(),r=qh(),{traceId:o,spanId:c,sampled:d,dsc:l}={...r.getPropagationContext(),...i.getPropagationContext()},u=a?ch(a):zf(o,c,d),p=Cf(l||(a?Lh(a):kh(o,t,i))),m=n.headers||("undefined"!=typeof Request&&jp(e,Request)?e.headers:void 0);if(m){if("undefined"!=typeof Headers&&jp(m,Headers)){const e=new Headers(m);return e.append("sentry-trace",u),p&&e.append(Ff,p),e}if(Array.isArray(m)){const e=[...m,["sentry-trace",u]];return p&&e.push([Ff,p]),e}{const e="baggage"in m?m.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...m,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,i,p)}return p}const G_=["localhost",/^\/(?!\/)/],Y_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:G_,tracePropagationTargets:G_};function J_(e){const{traceFetch:t,traceXHR:i,tracePropagationTargets:n,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:Y_.traceFetch,traceXHR:Y_.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return Vp(e,t||G_)}(e,n||s),d={};t&&Jm((e=>{const t=K_(e,o,c,d);if(t){const i=X_(e.fetchData.url),n=i?xf(i).host:void 0;t.setAttributes({"http.url":i,"server.address":n})}r&&t&&Q_(t)})),i&&ff((e=>{const t=function(e,t,i,n){const s=e.xhr,a=s&&s[mf];if(!Zh()||!s||s.__sentry_own_request__||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=n[e];return void(t&&void 0!==a.status_code&&(Qh(t,a.status_code),t.end(),delete n[e]))}const o=Eh(),c=qh(),d=X_(a.url),l=d?xf(d).host:void 0,u=r?Xh({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":d,url:a.url,"server.address":l,[rg]:"auto.http.browser"},op:"http.client"}):void 0;u&&(s.__sentry_xhr_span_id__=u.spanContext().spanId,n[s.__sentry_xhr_span_id__]=u);const p=bh();if(s.setRequestHeader&&i(a.url)&&p){const{traceId:e,spanId:t,sampled:i,dsc:n}={...c.getPropagationContext(),...o.getPropagationContext()};!function(e,t,i){try{e.setRequestHeader("sentry-trace",t),i&&e.setRequestHeader(Ff,i)}catch(e){}}(s,u?ch(u):zf(e,t,i),Cf(n||(u?Lh(u):kh(e,p,o))))}return u}(e,o,c,d);r&&t&&Q_(t)}))}function Q_(e){const{url:t}=uh(e).data||{};if(!t||"string"!=typeof t)return;const i=E_("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){const t=function(e){const{name:t,version:i}=function(e){let t="unknown",i="unknown",n="";for(const s of e){if("/"===s){[t,i]=e.split("/");break}if(!isNaN(Number(s))){t="h"===n?"http":n,i=e.split(n)[1];break}n+=s}n===e&&(t=n);return{name:t,version:i}}(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",i],["network.protocol.name",t]),!Nf)return n;return[...n,["http.request.redirect_start",Z_(e.redirectStart)],["http.request.fetch_start",Z_(e.fetchStart)],["http.request.domain_lookup_start",Z_(e.domainLookupStart)],["http.request.domain_lookup_end",Z_(e.domainLookupEnd)],["http.request.connect_start",Z_(e.connectStart)],["http.request.secure_connection_start",Z_(e.secureConnectionStart)],["http.request.connection_end",Z_(e.connectEnd)],["http.request.request_start",Z_(e.requestStart)],["http.request.response_start",Z_(e.responseStart)],["http.request.response_end",Z_(e.responseEnd)]]}(n);t.forEach((t=>e.setAttribute(...t))),setTimeout(i)}}))}))}function Z_(e=0){return((Nf||performance.timeOrigin)+e)/1e3}function X_(e){try{return new URL(e,Kg.location.origin).href}catch(e){return}}const eI={...lg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Y_},tI=(e={})=>{const t=!!Wg&&!(!e.tracePropagationTargets&&!e.tracingOrigins);yg(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const i={...eI,...e},n=B_(),s={};i.enableInp&&$_(s,i.interactionsSampleRate),i.enableLongTask&&E_("longtask",(({entries:e})=>{for(const t of e){const e=Kh();if(!e)return;const i=C_(Nf+t.startTime),n=C_(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+n})}})),i._experiments.enableInteractions&&E_("event",(({entries:e})=>{for(const t of e){const e=Kh();if(!e)return;if("click"===t.name){const i=C_(Nf+t.startTime),n=C_(t.duration),s={description:Xp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+n},a=tm(t.target);a&&(s.attributes={"ui.component_name":a}),e.startChild(s)}}}));const a={name:void 0,context:void 0};function r(e){const t=Vh(),{beforeStartSpan:s,idleTimeout:r,finalTimeout:o,heartbeatInterval:c}=i,d="pageload"===e.op;let l;if(d){const t=d?iI("sentry-trace"):"",i=d?iI("baggage"):void 0,{traceId:n,dsc:s,parentSpanId:a,sampled:r}=Mf(t,i);l={traceId:n,parentSpanId:a,parentSampled:r,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else l={trimEnd:!0,...e};const u=s?s(l):l;u.metadata=u.name!==l.name?{...u.metadata,source:"custom"}:u.metadata,a.name=u.name,a.context=u,!1===u.sampled&&Wg&&rm.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),Wg&&rm.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:p}=Kg,m=Ig(t,u,r,o,!0,{location:p},c,d);return d&&Kg.document&&(Kg.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Kg.document.readyState)&&m.sendAutoFinishSignal()})),["interactive","complete"].includes(Kg.document.readyState)&&m.sendAutoFinishSignal()),m.registerBeforeFinishCallback((e=>{n(),q_(e)})),m}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const n=e.getOptions(),{markBackgroundSpan:o,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:l,enableHTTPTimings:u,_experiments:p}=i,m=n&&n.tracePropagationTargets,f=m||i.tracePropagationTargets;let h;Wg&&t&&m&&rm.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=Kg.location&&Kg.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{h&&(Wg&&rm.log(`[Tracing] Finishing current transaction with op: ${uh(h).op}`),h.end()),h=r({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{h&&(Wg&&rm.log(`[Tracing] Finishing current transaction with op: ${uh(h).op}`),h.end()),h=r({op:"pageload",...e})}))),i.instrumentPageLoad&&e.emit&&Kg.location){const t={name:Kg.location.pathname,startTimestamp:Nf?Nf/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ng]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const i=eg();i&&uh(i).op}(e,t)}i.instrumentNavigation&&e.emit&&Kg.location&&lf((({to:t,from:i})=>{if(void 0===i&&g&&-1!==g.indexOf(t))g=void 0;else if(i!==t){g=void 0;const t={name:Kg.location.pathname,origin:"auto.navigation.browser",attributes:{[ng]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const i=eg();i&&uh(i).op}(e,t)}})),o&&(Kg.document?Kg.document.addEventListener("visibilitychange",(()=>{const e=Kh();if(Kg.document.hidden&&e){const t="cancelled",{op:i,status:n}=uh(e);Wg&&rm.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${i}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Wg&&rm.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&function(e,t){let i;const n=()=>{const{idleTimeout:n,finalTimeout:s,heartbeatInterval:a}=e,r="ui.action.click",o=Kh();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(Wg&&rm.warn(`[Tracing] Did not create ${r} transaction because a pageload or navigation transaction is in progress.`));if(i&&(i.setFinishReason("interactionInterrupted"),i.end(),i=void 0),!t.name)return void(Wg&&rm.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`));const{location:c}=Kg,d={name:t.name,op:r,trimEnd:!0,data:{[ng]:t.context?sI(t.context):"url"}};i=Ig(Vh(),d,n,s,!0,{location:c},a)};["click"].forEach((e=>{Kg.document&&addEventListener(e,n,{once:!1,capture:!0})}))}(i,a),i.enableInp&&function(e,t){const i=({entries:i})=>{const n=bh(),s=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,a=void 0!==s?s.getReplayId():void 0,r=Kh(),o=Eh(),c=void 0!==o?o.getUser():void 0;i.forEach((i=>{if(function(e){return"duration"in e}(i)){const n=i.interactionId;if(void 0===n)return;const s=e[n],o=i.duration,d=i.startTime,l=Object.keys(e),u=l.length>0?l.reduce(((t,i)=>e[t].duration<e[i].duration?t:i)):void 0;if("first-input"===i.entryType){if(l.map((t=>e[t])).some((e=>e.duration===o&&e.startTime===d)))return}if(!n)return;if(s)s.duration=Math.max(s.duration,o);else if(l.length<nI||void 0===u||o>e[u].duration){const i=t.name,s=t.context;i&&s&&(u&&Object.keys(e).length>=nI&&delete e[u],e[n]={routeName:i,duration:o,parentContext:s,user:c,activeTransaction:r,replayId:a,startTime:d})}}}))};E_("event",i),E_("first-input",i)}(s,a),J_({traceFetch:c,traceXHR:d,tracePropagationTargets:f,shouldCreateSpanForRequest:l,enableHTTPTimings:u})},options:i}};function iI(e){const t=(i=`meta[name=${e}]`,Zp.document&&Zp.document.querySelector?Zp.document.querySelector(i):null);var i;return t?t.getAttribute("content"):void 0}const nI=10;function sI(e){const t=e.attributes&&e.attributes[ng],i=e.data&&e.data[ng],n=e.metadata&&e.metadata.source;return t||i||n}const aI=Yp;let rI=0;function oI(){return rI>0}function cI(e,t={},i){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(hm(e))return e}catch(t){return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{const n=i.map((e=>cI(e,t)));return e.apply(this,n)}catch(e){throw rI++,setTimeout((()=>{rI--})),wh((n=>{n.addEventProcessor((e=>(t.mechanism&&(Pm(e,void 0),jm(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),_h(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}fm(n,e),mm(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}const dI="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function lI(e,t){const i=pI(e,t),n={type:t&&t.name,value:fI(t)};return i.length&&(n.stacktrace={frames:i}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function uI(e,t){return{exception:{values:[lI(e,t)]}}}function pI(e,t){const i=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(mI.test(e.message))return 1}return 0}(t);try{return e(i,n)}catch(e){}return[]}const mI=/Minified React error #\d+;/i;function fI(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function hI(e,t,i,n,s){let a;if(Rp(t)&&t.error){return uI(e,t.error)}if(kp(t)||Tp(t,"DOMException")){const s=t;if("stack"in t)a=uI(e,t);else{const t=s.name||(kp(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=gI(e,r,i,n),Pm(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(xp(t))return uI(e,t);if(Up(t)||Op(t)){return a=function(e,t,i,n){const s=bh(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:Op(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:_I(t,{isUnhandledRejection:n})}]},extra:{__serialized__:yf(t,a)}};if(i){const t=pI(e,i);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,i,s),jm(a,{synthetic:!0}),a}return a=gI(e,t,i,n),Pm(a,`${t}`),jm(a,{synthetic:!0}),a}function gI(e,t,i,n){const s={};if(n&&i){const n=pI(e,i);n.length&&(s.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(Np(t)){const{__sentry_template_string__:e,__sentry_template_values__:i}=t;return s.logentry={message:e,params:i},s}return s.message=t,s}function _I(e,{isUnhandledRejection:t}){const i=function(e,t=40){const i=Object.keys(gm(e));if(i.sort(),!i.length)return"[object has no keys]";if(i[0].length>=t)return zp(i[0],t);for(let e=i.length;e>0;e--){const n=i.slice(0,e).join(", ");if(!(n.length>t))return e===i.length?n:zp(n,t)}return""}(e),n=t?"promise rejection":"exception";if(Rp(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(Op(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${i}`}class II extends Rg{constructor(e){!function(e,t,i=[t],n="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:i.map((e=>({name:`${n}:@sentry/${e}`,version:jh}))),version:jh}),e._metadata=s}(e,"browser",["browser"],aI.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&aI.document&&aI.document.addEventListener("visibilitychange",(()=>{"hidden"===aI.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,i,n){const s=hI(e,t,i&&i.syntheticException||void 0,n);return jm(s),s.level="error",i&&i.event_id&&(s.event_id=i.event_id),bf(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",i){return function(e,t,i="info",n,s){const a=gI(e,t,n&&n.syntheticException||void 0,s);return a.level=i,n&&n.event_id&&(a.event_id=n.event_id),bf(a)}(this._options.stackParser,e,t,i,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(dI&&rm.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:i,dsn:n}){const s={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!i&&!!n&&{dsn:cm(n)}},a=function(e){return[{type:"user_report"},e]}(e);return Df(s,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,i)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(dI&&rm.log("No outcomes to send"));if(!this._dsn)return void(dI&&rm.log("No dsn provided, will not send outcomes"));dI&&rm.log("Sending outcomes:",e);const t=(i=e,Df((n=this._options.tunnel&&cm(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:kf(),discarded_events:i}]]));var i,n;this._sendEnvelope(t)}}let yI;function vI(e,t=function(){if(yI)return yI;if(Ym(aI.fetch))return yI=aI.fetch.bind(aI);const e=aI.document;let t=aI.fetch;if(e&&"function"==typeof e.createElement)try{const i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i);const n=i.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(i)}catch(e){dI&&rm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return yI=t.bind(aI)}()){let i=0,n=0;return Fg(e,(function(s){const a=s.body.length;i+=a,n++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:i<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(i-=a,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return yI=void 0,i-=a,n--,Ef(e)}}))}function wI(e){return Fg(e,(function(t){return new Af(((i,n)=>{const s=new XMLHttpRequest;s.onerror=n,s.onreadystatechange=()=>{4===s.readyState&&i({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const bI="?";function EI(e,t,i,n){const s={filename:e,function:t,in_app:!0};return void 0!==i&&(s.lineno=i),void 0!==n&&(s.colno=n),s}const AI=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,SI=/\((\S*)(?::(\d+))(?::(\d+))\)/,xI=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,TI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,RI=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,kI=Em(...[[30,e=>{const t=AI.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=SI.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,i]=LI(t[1]||bI,t[2]);return EI(i,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=xI.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=TI.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],i=t[1]||bI;return[i,e]=LI(i,e),EI(e,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=RI.exec(e);return t?EI(t[2],t[1]||bI,+t[3],t[4]?+t[4]:void 0):void 0}]]),LI=(e,t)=>{const i=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return i||n?[-1!==e.indexOf("@")?e.split("@")[0]:bI,i?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},NI=1024,FI="Breadcrumbs",UI=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:FI,setupOnce(){},setup(e){t.console&&Nm(function(e){return function(t){if(bh()!==e)return;const i={category:"console",data:{arguments:t.args,logger:"console"},level:Rf(t.level),message:Bp(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;i.message=`Assertion failed: ${Bp(t.args.slice(1)," ")||"console.assert"}`,i.data.arguments=t.args.slice(1)}vh(i,{input:t.args,level:t.level})}}(e)),t.dom&&qm(function(e,t){return function(i){if(bh()!==e)return;let n,s,a="object"==typeof t?t.serializeAttribute:void 0,r="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;r&&r>NI&&(dI&&rm.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=NI),"string"==typeof a&&(a=[a]);try{const e=i.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=Xp(t,{keyAttrs:a,maxStringLength:r}),s=tm(t)}catch(e){n="<unknown>"}if(0===n.length)return;const o={category:`ui.${i.name}`,message:n};s&&(o.data={"ui.component_name":s}),vh(o,{event:i.event,name:i.name,global:i.global})}}(e,t.dom)),t.xhr&&ff(function(e){return function(t){if(bh()!==e)return;const{startTimestamp:i,endTimestamp:n}=t,s=t.xhr[mf];if(!i||!n||!s)return;const{method:a,url:r,status_code:o,body:c}=s;vh({category:"xhr",data:{method:a,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:c,startTimestamp:i,endTimestamp:n})}}(e)),t.fetch&&Jm(function(e){return function(t){if(bh()!==e)return;const{startTimestamp:i,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){vh({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:i,endTimestamp:n})}else{const e=t.response;vh({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:i,endTimestamp:n})}}}(e)),t.history&&lf(function(e){return function(t){if(bh()!==e)return;let i=t.from,n=t.to;const s=xf(aI.location.href);let a=i?xf(i):void 0;const r=xf(n);a&&a.path||(a=s),s.protocol===r.protocol&&s.host===r.host&&(n=r.relative),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),vh({category:"navigation",data:{from:i,to:n}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){bh()===e&&vh({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Cm(t)},{event:t})}}(e))}}};Sg(FI,UI);const OI="Dedupe",CI=()=>{let e;return{name:OI,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const i=e.message,n=t.message;if(!i&&!n)return!1;if(i&&!n||!i&&n)return!1;if(i!==n)return!1;if(!jI(e,t))return!1;if(!PI(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const i=MI(t),n=MI(e);if(!i||!n)return!1;if(i.type!==n.type||i.value!==n.value)return!1;if(!jI(e,t))return!1;if(!PI(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return dI&&rm.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function PI(e,t){let i=zI(e),n=zI(t);if(!i&&!n)return!0;if(i&&!n||!i&&n)return!1;if(n.length!==i.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],s=i[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function jI(e,t){let i=e.fingerprint,n=t.fingerprint;if(!i&&!n)return!0;if(i&&!n||!i&&n)return!1;try{return!(i.join("")!==n.join(""))}catch(e){return!1}}function MI(e){return e.exception&&e.exception.values&&e.exception.values[0]}function zI(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Sg(OI,CI);const DI="GlobalHandlers",BI=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:DI,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){tf((t=>{const{stackParser:i,attachStacktrace:n}=qI();if(bh()!==e||oI())return;const{msg:s,url:a,line:r,column:o,error:c}=t,d=void 0===c&&Lp(s)?function(e,t,i,n){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Rp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return $I(c,t,i,n)}(s,a,r,o):$I(hI(i,c||s,void 0,n,!1),a,r,o);d.level="error",yh(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),VI("onerror")),t.onunhandledrejection&&(!function(e){af((t=>{const{stackParser:i,attachStacktrace:n}=qI();if(bh()!==e||oI())return;const s=function(e){if(Fp(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),a=Fp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:hI(i,s,void 0,n,!0);a.level="error",yh(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),VI("onunhandledrejection"))}}};function $I(e,t,i,n){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],d=isNaN(parseInt(n,10))?void 0:n,l=isNaN(parseInt(i,10))?void 0:i,u=Lp(t)&&t.length>0?t:function(){try{return Zp.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:d,filename:u,function:"?",in_app:!0,lineno:l}),e}function VI(e){dI&&rm.log(`Global Handler attached: ${e}`)}function qI(){const e=bh();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}Sg(DI,BI);const HI="HttpContext",WI=()=>({name:HI,setupOnce(){},preprocessEvent(e){if(!aI.navigator&&!aI.location&&!aI.document)return;const t=e.request&&e.request.url||aI.location&&aI.location.href,{referrer:i}=aI.document||{},{userAgent:n}=aI.navigator||{},s={...e.request&&e.request.headers,...i&&{Referer:i},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:s};e.request=a}});Sg(HI,WI);const KI="LinkedErrors",GI=(e={})=>{const t=e.limit||5,i=e.key||"cause";return{name:KI,setupOnce(){},preprocessEvent(e,n,s){const a=s.getOptions();qp(lI,a.stackParser,a.maxValueLength,i,t,e,n)}}};Sg(KI,GI);const YI=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],JI="TryCatch",QI=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:JI,setupOnce(){t.setTimeout&&pm(aI,"setTimeout",ZI),t.setInterval&&pm(aI,"setInterval",ZI),t.requestAnimationFrame&&pm(aI,"requestAnimationFrame",XI),t.XMLHttpRequest&&"XMLHttpRequest"in aI&&pm(XMLHttpRequest.prototype,"send",ey);const e=t.eventTarget;if(e){(Array.isArray(e)?e:YI).forEach(ty)}}}};function ZI(e){return function(...t){const i=t[0];return t[0]=cI(i,{mechanism:{data:{function:Sm(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function XI(e){return function(t){return e.apply(this,[cI(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Sm(e)},handled:!1,type:"instrument"}})])}}function ey(e){return function(...t){const i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in i&&"function"==typeof i[e]&&pm(i,e,(function(t){const i={mechanism:{data:{function:e,handler:Sm(t)},handled:!1,type:"instrument"}},n=hm(t);return n&&(i.mechanism.data.handler=Sm(n)),cI(t,i)}))})),e.apply(this,t)}}function ty(e){const t=aI,i=t[e]&&t[e].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(pm(i,"addEventListener",(function(t){return function(i,n,s){try{"function"==typeof n.handleEvent&&(n.handleEvent=cI(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sm(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[i,cI(n,{mechanism:{data:{function:"addEventListener",handler:Sm(n),target:e},handled:!1,type:"instrument"}}),s])}})),pm(i,"removeEventListener",(function(e){return function(t,i,n){const s=i;try{const i=s&&s.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,s,n)}})))}Sg(JI,QI);const iy=[Dg(),Hg(),QI(),UI(),BI(),GI(),CI(),WI()];function ny(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...iy]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),aI.SENTRY_RELEASE&&aI.SENTRY_RELEASE.id&&(e.release=aI.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(i=e.stackParser||kI,Array.isArray(i)?Em(...i):i),integrations:bg(e),transport:e.transport||(Gm()?vI:wI)};var i;Ng(II,t),e.autoSessionTracking&&function(){if(void 0===aI.document)return void(dI&&rm.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Ah({ignoreDuration:!0}),Th(),lf((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ah({ignoreDuration:!0}),Th())}))}()}const sy=Yp,ay="sentryReplaySession",ry="Unable to send Replay",oy=15e4,cy=5e3,dy=2e7,ly=36e5;function uy(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}var py;function my(e){const t=uy([e,"optionalAccess",e=>e.host]);return Boolean(uy([t,"optionalAccess",e=>e.shadowRoot])===e)}function fy(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function hy(e){try{const i=e.rules||e.cssRules;return i?((t=Array.from(i,gy).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function gy(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=hy(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const i=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?i.push("layer"):e.layerName&&i.push(`layer(${e.layerName})`),e.supportsText&&i.push(`supports(${e.supportsText})`),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(py||(py={}));class _y{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=uy([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return n=()=>-1,null!=(i=t)?i:n();var i,n}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const e=this.nodeMetaMap.get(i);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Iy({maskInputOptions:e,tagName:t,type:i}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||i&&e[i]||"password"===i||"INPUT"===t&&!i&&e.text)}function yy({isMasked:e,element:t,value:i,maskInputFn:n}){let s=i||"";return e?(n&&(s=n(s,t)),"*".repeat(s.length)):s}function vy(e){return e.toLowerCase()}function wy(e){return e.toUpperCase()}const by="__rrweb_original__";function Ey(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?vy(t):null}function Ay(e,t,i){return"INPUT"!==t||"radio"!==i&&"checkbox"!==i?e.value:e.getAttribute("value")||""}let Sy=1;const xy=new RegExp("[^a-z0-9-_:]");function Ty(){return Sy++}let Ry,ky;const Ly=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ny=/^(?:[a-z+]+:)?\/\//i,Fy=/^www\..*/i,Uy=/^(data:)([^,]*),(.*)/i;function Oy(e,t){return(e||"").replace(Ly,((e,i,n,s,a,r)=>{const o=n||a||r,c=i||s||"";if(!o)return e;if(Ny.test(o)||Fy.test(o))return`url(${c}${o}${c})`;if(Uy.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+o}${c})`;const d=t.split("/"),l=o.split("/");d.pop();for(const e of l)"."!==e&&(".."===e?d.pop():d.push(e));return`url(${c}${d.join("/")}${c})`}))}const Cy=/^[^ \t\n\r\u000c]+/,Py=/^[, \t\n\r\u000c]+/;function jy(e,t){if(!t||""===t.trim())return t;const i=e.createElement("a");return i.href=t,i.href}function My(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function zy(){const e=document.createElement("a");return e.href="",e.href}function Dy(e,t,i,n,s,a){return n?"src"===i||"href"===i&&("use"!==t||"#"!==n[0])||"xlink:href"===i&&"#"!==n[0]?jy(e,n):"background"!==i||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===i?function(e,t){if(""===t.trim())return t;let i=0;function n(e){let n;const s=e.exec(t.substring(i));return s?(n=s[0],i+=n.length,n):""}const s=[];for(;n(Py),!(i>=t.length);){let a=n(Cy);if(","===a.slice(-1))a=jy(e,a.substring(0,a.length-1)),s.push(a);else{let n="";a=jy(e,a);let r=!1;for(;;){const e=t.charAt(i);if(""===e){s.push((a+n).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){i+=1,s.push((a+n).trim());break}"("===e&&(r=!0)}n+=e,i+=1}}}return s.join(", ")}(e,n):"style"===i?Oy(n,zy()):"object"===t&&"data"===i?jy(e,n):"function"==typeof a?a(i,n,s):n:jy(e,n):n}function By(e,t,i){return("video"===e||"audio"===e)&&"autoplay"===t}function $y(e,t,i=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>i?-1:t(e)?n:$y(e.parentNode,t,i,n+1):-1}function Vy(e,t){return i=>{const n=i;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch(e){return!1}}}function qy(e,t,i,n,s,a){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("INPUT"===r.tagName){const e=r.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,c=-1;if(a){if(c=$y(r,Vy(n,s)),c<0)return!0;o=$y(r,Vy(t,i),c>=0?c:1/0)}else{if(o=$y(r,Vy(t,i)),o<0)return!1;c=$y(r,Vy(n,s),o>=0?o:1/0)}return o>=0?!(c>=0)||o<=c:!(c>=0)&&!!a}catch(e){}return!!a}function Hy(e,t){const{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:f={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:I,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:w=!1}=t,b=function(e,t){if(!t.hasNode(e))return;const i=t.getId(e);return 1===i?void 0:i}(i,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:py.Document,childNodes:[],compatMode:e.compatMode}:{type:py.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:py.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return function(e,t){const{doc:i,blockClass:n,blockSelector:s,unblockSelector:a,inlineStylesheet:r,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:l={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,rootId:h,maskAllText:g,maskTextClass:_,unmaskTextClass:I,maskTextSelector:y,unmaskTextSelector:v}=t,w=function(e,t,i,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}if(i)return e.matches(i)}catch(e){}return!1}(e,n,s,a),b=function(e){if(e instanceof HTMLFormElement)return"form";const t=vy(e.tagName);return xy.test(t)?"div":t}(e);let E={};const A=e.attributes.length;for(let t=0;t<A;t++){const n=e.attributes[t];n.name&&!By(b,n.name,n.value)&&(E[n.name]=Dy(i,b,vy(n.name),n.value,e,c))}if("link"===b&&r){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=hy(t)),n&&(delete E.rel,delete E.href,E._cssText=Oy(n,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=hy(e.sheet);t&&(E._cssText=Oy(t,zy()))}if("input"===b||"textarea"===b||"select"===b||"option"===b){const t=e,i=Ey(t),n=Ay(t,wy(b),i),s=t.checked;if("submit"!==i&&"button"!==i&&n){const e=qy(t,_,y,I,v,Iy({type:i,tagName:wy(b),maskInputOptions:o}));E.value=yy({isMasked:e,element:t,value:n,maskInputFn:d})}s&&(E.checked=s)}"option"===b&&(e.selected&&!o.select?E.selected=!0:delete E.selected);if("canvas"===b&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let i=0;i<e.width;i+=50)for(let n=0;n<e.height;n+=50){const s=t.getImageData,a=by in s?s[by]:s;if(new Uint32Array(a.call(t,i,n,Math.min(50,e.width-i),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),i=document.createElement("canvas");i.width=e.width,i.height=e.height;t!==i.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===b&&u){Ry||(Ry=i.createElement("canvas"),ky=Ry.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{Ry.width=t.naturalWidth,Ry.height=t.naturalHeight,ky.drawImage(t,0,0),E.rr_dataURL=Ry.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?E.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==b&&"video"!==b||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:i}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${i}px`}}"iframe"!==b||m(E.src)||(e.contentDocument||(E.rr_src=E.src),delete E.src);let S;try{customElements.get(b)&&(S=!0)}catch(e){}return{type:py.Element,tagName:b,attributes:E,childNodes:[],isSVG:My(e)||void 0,needBlock:w,rootId:h,isCustom:S}}(e,{doc:i,blockClass:s,blockSelector:a,unblockSelector:r,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:I,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:w,rootId:b,maskAllText:o,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:i,maskTextClass:n,unmaskTextClass:s,maskTextSelector:a,unmaskTextSelector:r,maskTextFn:o,maskInputOptions:c,maskInputFn:d,rootId:l}=t,u=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m="STYLE"===u||void 0,f="SCRIPT"===u||void 0,h="TEXTAREA"===u||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||uy([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=hy(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Oy(p,zy())}f&&(p="SCRIPT_PLACEHOLDER");const g=qy(e,n,a,s,r,i);m||f||h||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*"));h&&p&&(c.textarea||g)&&(p=d?d(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===u&&p){p=yy({isMasked:qy(e,n,a,s,r,Iy({type:null,tagName:u,maskInputOptions:c})),element:e,value:p,maskInputFn:d})}return{type:py.Text,textContent:p||"",isStyle:m,rootId:l}}(e,{maskAllText:o,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:h,maskInputOptions:f,maskInputFn:g,rootId:b});case e.CDATA_SECTION_NODE:return{type:py.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:py.Comment,textContent:e.textContent||"",rootId:b};default:return!1}}function Wy(e){return null==e?"":e.toLowerCase()}function Ky(e,t){const{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:f={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y={},inlineImages:v=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:R=!1}=t;let{preserveWhiteSpace:k=!0}=t;const L=Hy(e,{doc:i,mirror:n,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:v,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:R});if(!L)return console.warn(e,"not serialized"),null;let N;N=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===py.Comment)return!0;if(e.type===py.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Wy(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Wy(e.attributes.name)||"icon"===Wy(e.attributes.rel)||"apple-touch-icon"===Wy(e.attributes.rel)||"shortcut icon"===Wy(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Wy(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Wy(e.attributes.property).match(/^(og|twitter|fb):/)||Wy(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Wy(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Wy(e.attributes.name)||"googlebot"===Wy(e.attributes.name)||"bingbot"===Wy(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Wy(e.attributes.name)||"generator"===Wy(e.attributes.name)||"framework"===Wy(e.attributes.name)||"publisher"===Wy(e.attributes.name)||"progid"===Wy(e.attributes.name)||Wy(e.attributes.property).match(/^article:/)||Wy(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Wy(e.attributes.name)||"yandex-verification"===Wy(e.attributes.name)||"csrf-token"===Wy(e.attributes.name)||"p:domain_verify"===Wy(e.attributes.name)||"verify-v1"===Wy(e.attributes.name)||"verification"===Wy(e.attributes.name)||"shopify-checkout-api-token"===Wy(e.attributes.name)))return!0}}return!1}(L,I)&&(k||L.type!==py.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?Ty():-2;const F=Object.assign(L,{id:N});if(n.add(e,F),-2===N)return null;b&&b(e);let U=!p;if(F.type===py.Element){U=U&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&fy(t)&&(F.isShadowHost=!0)}if((F.type===py.Document||F.type===py.Element)&&U){I.headWhitespace&&F.type===py.Element&&"head"===F.tagName&&(k=!1);const t={doc:i,mirror:n,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:p,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T};for(const i of Array.from(e.childNodes)){const e=Ky(i,t);e&&F.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const i of Array.from(e.shadowRoot.childNodes)){const n=Ky(i,t);n&&(fy(e.shadowRoot)&&(n.isShadow=!0),F.childNodes.push(n))}}return e.parentNode&&my(e.parentNode)&&fy(e.parentNode)&&(F.isShadow=!0),F.type===py.Element&&"iframe"===F.tagName&&function(e,t,i){const n=e.contentWindow;if(!n)return;let s,a=!1;try{s=n.document.readyState}catch(e){return}if("complete"!==s){const n=setTimeout((()=>{a||(t(),a=!0)}),i);return void e.addEventListener("load",(()=>{clearTimeout(n),a=!0,t()}))}const r="about:blank";if(n.location.href!==r||e.src===r||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&E){const i=Ky(t,{doc:t,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T});i&&E(e,i)}}),A),F.type===py.Element&&"link"===F.tagName&&"stylesheet"===F.attributes.rel&&function(e,t,i){let n,s=!1;try{n=e.sheet}catch(e){return}if(n)return;const a=setTimeout((()=>{s||(t(),s=!0)}),i);e.addEventListener("load",(()=>{clearTimeout(a),s=!0,t()}))}(e,(()=>{if(S){const t=Ky(e,{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T});t&&S(e,t)}}),x),F}function Gy(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}function Yy(e,t,i=document){const n={capture:!0,passive:!0};return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}const Jy="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Qy={map:{},getId:()=>(console.error(Jy),-1),getNode:()=>(console.error(Jy),null),removeNodeFromMap(){console.error(Jy)},has:()=>(console.error(Jy),!1),reset(){console.error(Jy)}};function Zy(e,t,i={}){let n=null,s=0;return function(...a){const r=Date.now();s||!1!==i.leading||(s=r);const o=t-(r-s),c=this;o<=0||o>t?(n&&(!function(...e){Iv("clearTimeout")(...e)}(n),n=null),s=r,e.apply(c,a)):n||!1===i.trailing||(n=yv((()=>{s=!1===i.leading?0:Date.now(),n=null,e.apply(c,a)}),o))}}function Xy(e,t,i,n,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?i:{set(e){yv((()=>{i.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Xy(e,t,a||{},!0)}function ev(e,t,i){try{if(!(t in e))return()=>{};const n=e[t],s=i(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Qy=new Proxy(Qy,{get:(e,t,i)=>("map"===t&&console.error(Jy),Reflect.get(e,t,i))}));let tv=Date.now;function iv(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Gy([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Gy([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function nv(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sv(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function av(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function rv(e,t,i,n,s){if(!e)return!1;const a=av(e);if(!a)return!1;const r=Vy(t,i);if(!s){const e=n&&a.matches(n);return r(a)&&!e}const o=$y(a,r);let c=-1;return!(o<0)&&(n&&(c=$y(a,Vy(null,n))),o>-1&&c<0||o<c)}function ov(e,t){return-2===t.getId(e)}function cv(e,t){if(my(e))return!1;const i=t.getId(e);return!t.has(i)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||cv(e.parentNode,t))}function dv(e){return Boolean(e.changedTouches)}function lv(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function uv(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function pv(e){return Boolean(Gy([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(tv=()=>(new Date).getTime());class mv{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),i=()=>-1,null!=t?t:i();var t,i}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let i;return i=void 0===t?this.id++:t,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fv(e){let t=null;return Gy([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function hv(e){const t=e.ownerDocument;if(!t)return!1;const i=function(e){let t,i=e;for(;t=fv(i);)i=t;return i}(e);return t.contains(i)}function gv(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||hv(e))}const _v={};function Iv(e){const t=_v[e];if(t)return t;const i=window.document;let n=window[e];if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(n=s[e]),i.head.removeChild(t)}catch(e){}return _v[e]=n.bind(window)}function yv(...e){return Iv("setTimeout")(...e)}var vv=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(vv||{}),wv=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(wv||{}),bv=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(bv||{}),Ev=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ev||{});function Av(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}function Sv(e){return"__ln"in e}class xv{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let i=0;i<e;i++)t=Av([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Sv(e.previousSibling)){const i=e.previousSibling.__ln.next;t.next=i,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,i&&(i.previous=t)}else if(e.nextSibling&&Sv(e.nextSibling)&&e.nextSibling.__ln.previous){const i=e.nextSibling.__ln.previous;t.previous=i,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,i&&(i.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tv=(e,t)=>`${e}@${t}`;class Rv{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,i=new xv,n=e=>{let t=e,i=-2;for(;-2===i;)t=t&&t.nextSibling,i=t&&this.mirror.getId(t);return i},s=s=>{if(!s.parentNode||!gv(s))return;const a=my(s.parentNode)?this.mirror.getId(fv(s)):this.mirror.getId(s.parentNode),r=n(s);if(-1===a||-1===r)return i.addNode(s);const o=Ky(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{lv(e,this.mirror)&&this.iframeManager.addIframe(e),uv(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),pv(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:a,nextId:r,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Lv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)Fv(this.droppedSet,e)||Lv(this.removes,e,this.mirror)?Fv(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let a=null;for(;i.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),i=n(a.value);-1!==t&&-1!==i&&(e=a)}if(!e){let t=i.tail;for(;t;){const i=t;if(t=t.previous,i){const t=this.mirror.getId(i.value.parentNode);if(-1===n(i.value))continue;if(-1!==t){e=i;break}{const t=i.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=i;break}}}}}}if(!e){for(;i.head;)i.removeNode(i.head.value);break}a=e.previous,i.removeNode(e.value),s(e.value)}const r={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const i=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);i.length<t.style.length&&(i+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=e=>{if(!ov(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:qy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,av(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let i=e.attributeName,n=e.target.getAttribute(i);if("value"===i){const i=Ey(t),s=t.tagName;n=Ay(t,s,i);const a=Iy({maskInputOptions:this.maskInputOptions,tagName:s,type:i});n=yy({isMasked:qy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===i&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;i="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===i&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!By(t.tagName,i)&&(s.attributes[i]=Dy(this.doc,vy(t.tagName),vy(i),n,t,this.maskAttributeFn),"style"===i)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);n!==i.style.getPropertyValue(e)||a!==i.style.getPropertyPriority(e)?s.styleDiff[e]=""===a?n:[n,a]:s._unchangedStyles[e]=[n,a]}for(const e of Array.from(i.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const i=this.mirror.getId(t),n=my(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ov(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(kv(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===i||cv(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tv(i,n)]?kv(this.movedSet,t):this.removes.push({parentId:n,id:i,isShadow:!(!my(e.target)||!fy(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ov(e,this.mirror))return;this.movedSet.add(e);let i=null;t&&this.mirror.hasNode(t)&&(i=this.mirror.getId(t)),i&&-1!==i&&(this.movedMap[Tv(this.mirror.getId(e),i)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),pv(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function kv(e,t){e.delete(t),t.childNodes.forEach((t=>kv(e,t)))}function Lv(e,t,i){return 0!==e.length&&Nv(e,t,i)}function Nv(e,t,i){const{parentNode:n}=t;if(!n)return!1;const s=i.getId(n);return!!e.some((e=>e.id===s))||Nv(e,n,i)}function Fv(e,t){return 0!==e.size&&Uv(e,t)}function Uv(e,t){const{parentNode:i}=t;return!!i&&(!!e.has(i)||Uv(e,i))}let Ov;function Cv(e){Ov=e}function Pv(){Ov=void 0}const jv=e=>{if(!Ov)return e;return(...t)=>{try{return e(...t)}catch(e){if(Ov&&!0===Ov(e))return()=>{};throw e}}};function Mv(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}const zv=[];function Dv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Bv(e,t){const i=new Rv;zv.push(i),i.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const s=Mv([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(n=window[s]);const a=new n(jv((t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function $v({mouseInteractionCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];let d=null;return Object.keys(bv).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{let o=vy(r);const l=(t=>r=>{const o=Dv(r);if(rv(o,n,s,a,!0))return;let c=null,l=t;if("pointerType"in r){switch(r.pointerType){case"mouse":c=Ev.Mouse;break;case"touch":c=Ev.Touch;break;case"pen":c=Ev.Pen}c===Ev.Touch?bv[t]===bv.MouseDown?l="TouchStart":bv[t]===bv.MouseUp&&(l="TouchEnd"):Ev.Pen}else dv(r)&&(c=Ev.Touch);null!==c?(d=c,(l.startsWith("Touch")&&c===Ev.Touch||l.startsWith("Mouse")&&c===Ev.Mouse)&&(c=null)):bv[t]===bv.Click&&(c=d,d=null);const u=dv(r)?r.changedTouches[0]:r;if(!u)return;const p=i.getId(o),{clientX:m,clientY:f}=u;jv(e)({type:bv[l],id:p,x:m,y:f,...null!==c&&{pointerType:c}})})(r);if(window.PointerEvent)switch(bv[r]){case bv.MouseDown:case bv.MouseUp:o=o.replace("mouse","pointer");break;case bv.TouchStart:case bv.TouchEnd:return}c.push(Yy(o,l,t))})),jv((()=>{c.forEach((e=>e()))}))}function Vv({scrollCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,sampling:r}){return Yy("scroll",jv(Zy(jv((r=>{const o=Dv(r);if(!o||rv(o,n,s,a,!0))return;const c=i.getId(o);if(o===t&&t.defaultView){const i=iv(t.defaultView);e({id:c,x:i.left,y:i.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})})),r.scroll||100)),t)}const qv=["INPUT","TEXTAREA","SELECT"],Hv=new WeakMap;function Wv({inputCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputOptions:c,maskInputFn:d,sampling:l,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:m,maskTextSelector:f,unmaskTextSelector:h}){function g(e){let i=Dv(e);const l=e.isTrusted,g=i&&wy(i.tagName);if("OPTION"===g&&(i=i.parentElement),!i||!g||qv.indexOf(g)<0||rv(i,n,s,a,!0))return;const I=i;if(I.classList.contains(r)||o&&I.matches(o))return;const y=Ey(i);let v=Ay(I,g,y),w=!1;const b=Iy({maskInputOptions:c,tagName:g,type:y}),E=qy(i,p,f,m,h,b);"radio"!==y&&"checkbox"!==y||(w=i.checked),v=yy({isMasked:E,element:i,value:v,maskInputFn:d}),_(i,u?{text:v,isChecked:w,userTriggered:l}:{text:v,isChecked:w});const A=i.name;"radio"===y&&A&&w&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach((e=>{if(e!==i){const t=yy({isMasked:E,element:e,value:Ay(e,g,y),maskInputFn:d});_(e,u?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function _(t,n){const s=Hv.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){Hv.set(t,n);const s=i.getId(t);jv(e)({...n,id:s})}}const I=("last"===l.input?["change"]:["input","change"]).map((e=>Yy(e,jv(g),t))),y=t.defaultView;if(!y)return()=>{I.forEach((e=>e()))};const v=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value"),w=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&I.push(...w.map((e=>Xy(e[0],e[1],{set(){jv(g)({target:this,isTrusted:!1})}},!1,y)))),jv((()=>{I.forEach((e=>e()))}))}function Kv(e){return function(e,t){if(Qv("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Qv("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Qv("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Qv("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const i=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(i)}else if(e.parentStyleSheet){const i=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(i)}return t}(e,[])}function Gv(e,t,i){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=i.getId(e),{styleId:s,id:n}):{}}function Yv({mirror:e,stylesheetManager:t},i){let n=null;n="#document"===i.nodeName?e.getId(i):e.getId(i.host);const s="#document"===i.nodeName?Mv([i,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Mv([i,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=Mv([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Mv([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&s&&a?(Object.defineProperty(i,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Mv([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const i=Mv([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return i}}),jv((()=>{Object.defineProperty(i,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function Jv(e,t={}){const i=e.doc.defaultView;if(!i)return()=>{};const n=Bv(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:i,mirror:n}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=Zy(jv((t=>{const i=Date.now()-r;e(o.map((e=>(e.timeOffset-=i,e))),t),o=[],r=null})),a),d=jv(Zy(jv((e=>{const t=Dv(e),{clientX:i,clientY:s}=dv(e)?e.changedTouches[0]:e;r||(r=tv()),o.push({x:i,y:s,id:n.getId(t),timeOffset:tv()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?wv.Drag:e instanceof MouseEvent?wv.MouseMove:wv.TouchMove)})),s,{trailing:!1})),l=[Yy("mousemove",d,i),Yy("touchmove",d,i),Yy("drag",d,i)];return jv((()=>{l.forEach((e=>e()))}))}(e),a=$v(e),r=Vv(e),o=function({viewportResizeCb:e},{win:t}){let i=-1,n=-1;return Yy("resize",jv(Zy(jv((()=>{const t=nv(),s=sv();i===t&&n===s||(e({width:Number(s),height:Number(t)}),i=t,n=s)})),200)),t)}(e,{win:i}),c=Wv(e),d=function({mediaInteractionCb:e,blockClass:t,blockSelector:i,unblockSelector:n,mirror:s,sampling:a,doc:r}){const o=jv((r=>Zy(jv((a=>{const o=Dv(a);if(!o||rv(o,t,i,n,!0))return;const{currentTime:c,volume:d,muted:l,playbackRate:u}=o;e({type:r,id:s.getId(o),currentTime:c,volume:d,muted:l,playbackRate:u})})),a.media||500))),c=[Yy("play",o(0),r),Yy("pause",o(1),r),Yy("seeked",o(2),r),Yy("volumechange",o(3),r),Yy("ratechange",o(4),r)];return jv((()=>{c.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:i},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:jv(((n,s,a)=>{const[r,o]=a,{id:c,styleId:d}=Gv(s,t,i.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,adds:[{rule:r,index:o}]}),n.apply(s,a)}))});const a=n.CSSStyleSheet.prototype.deleteRule;let r,o;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:r}]}),n.apply(s,a)}))}),n.CSSStyleSheet.prototype.replace&&(r=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replace:r}),n.apply(s,a)}))})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replaceSync:r}),n.apply(s,a)}))}));const c={};Zv("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(Zv("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),Zv("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),Zv("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const d={};return Object.entries(c).forEach((([n,s])=>{d[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(d[n].insertRule,{apply:jv(((n,s,a)=>{const[r,o]=a,{id:c,styleId:d}=Gv(s.parentStyleSheet,t,i.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,adds:[{rule:r,index:[...Kv(s),o||0]}]}),n.apply(s,a)}))}),s.prototype.deleteRule=new Proxy(d[n].deleteRule,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s.parentStyleSheet,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:[...Kv(s),r]}]}),n.apply(s,a)}))})})),jv((()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,r&&(n.CSSStyleSheet.prototype.replace=r),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=d[e].insertRule,t.prototype.deleteRule=d[e].deleteRule}))}))}(e,{win:i}),u=Yv(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:i,stylesheetManager:n},{win:s}){const a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:jv(((s,r,o)=>{const[c,d,l]=o;if(i.has(c))return a.apply(r,[c,d,l]);const{id:u,styleId:p}=Gv(Mv([r,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,set:{property:c,value:d,priority:l},index:Kv(r.parentRule)}),s.apply(r,o)}))});const r=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(r,{apply:jv(((s,a,o)=>{const[c]=o;if(i.has(c))return r.apply(a,[c]);const{id:d,styleId:l}=Gv(Mv([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(d&&-1!==d||l&&-1!==l)&&e({id:d,styleId:l,remove:{property:c},index:Kv(a.parentRule)}),s.apply(a,o)}))}),jv((()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=r}))}(e,{win:i}),m=e.collectFonts?function({fontCb:e,doc:t}){const i=t.defaultView;if(!i)return()=>{};const n=[],s=new WeakMap,a=i.FontFace;i.FontFace=function(e,t,i){const n=new a(e,t,i);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:i,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const r=ev(t.fonts,"add",(function(t){return function(i){return yv(jv((()=>{const t=s.get(i);t&&(e(t),s.delete(i))})),0),t.apply(this,[i])}}));return n.push((()=>{i.FontFace=a})),n.push(r),jv((()=>{n.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,selectionCb:r}=e;let o=!0;const c=jv((()=>{const e=t.getSelection();if(!e||o&&Mv([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;const c=[],d=e.rangeCount||0;for(let t=0;t<d;t++){const r=e.getRangeAt(t),{startContainer:o,startOffset:d,endContainer:l,endOffset:u}=r;rv(o,n,s,a,!0)||rv(l,n,s,a,!0)||c.push({start:i.getId(o),startOffset:d,end:i.getId(l),endOffset:u})}r({ranges:c})}));return c(),Yy("selectionchange",c)}(e),h=function({doc:e,customElementCb:t}){const i=e.defaultView;if(!i||!i.customElements)return()=>{};const n=ev(i.customElements,"define",(function(e){return function(i,n,s){try{t({define:{name:i}})}catch(e){}return e.apply(this,[i,n,s])}}));return n}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,i,t.options));return jv((()=>{zv.forEach((e=>e.reset())),n.disconnect(),s(),a(),r(),o(),c(),d(),l(),u(),p(),m(),f(),h(),g.forEach((e=>e()))}))}function Qv(e){return void 0!==window[e]}function Zv(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xv{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,i,n){const s=i||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e);let r=s.get(t);return r||(r=this.generateIdFn(),s.set(t,r),a.set(r,t)),r}getIds(e,t){const i=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,i,n)))}getRemoteId(e,t,i){const n=i||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=n.get(t);return s||-1}getRemoteIds(e,t){const i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,i)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function ew(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}class tw{constructor(){this.crossOriginIframeMirror=new Xv(Ty),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class iw{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xv(Ty),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xv(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),ew([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case vv.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:vv.IncrementalSnapshot,data:{source:wv.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case vv.Meta:case vv.Load:case vv.DomContentLoaded:return!1;case vv.Plugin:return t;case vv.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case vv.IncrementalSnapshot:switch(t.data.source){case wv.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const i=this.crossOriginIframeRootIdMap.get(e);i&&this.patchRootIdOnNode(t.node,i)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case wv.Drag:case wv.TouchMove:case wv.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case wv.ViewportResize:return!1;case wv.MediaInteraction:case wv.MouseInteraction:case wv.Scroll:case wv.CanvasMutation:case wv.Input:return this.replaceIds(t.data,e,["id"]),t;case wv.StyleSheetRule:case wv.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case wv.Font:return t;case wv.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case wv.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),ew([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,i,n){for(const s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(i,t[s]):t[s]=e.getId(i,t[s]));return t}replaceIds(e,t,i){return this.replace(this.crossOriginIframeMirror,e,t,i)}replaceStyleIds(e,t,i){return this.replace(this.crossOriginIframeStyleMirror,e,t,i)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===py.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class nw{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sw{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!fy(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const i=Bv({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>i.disconnect())),this.restoreHandlers.push(Vv({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),yv((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Yv({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const i=this;this.restoreHandlers.push(ev(e.prototype,"attachShadow",(function(e){return function(n){const s=e.call(this,n);return this.shadowRoot&&gv(this)&&i.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class aw{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class rw{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new mv,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const i={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:gy(e),index:t})))})),i.styleIds.push(e)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ow{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Iv("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const i=this.nodeMap.get(e);return i&&Array.from(i).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let cw,dw;const lw=new _y;function uw(e={}){const{emit:t,checkoutEveryNms:i,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,maxCanvasSize:w=null,packFn:b,sampling:E={},dataURLOptions:A={},mousemoveWait:S,recordCanvas:x=!1,recordCrossOriginIframes:T=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:L=!1,inlineImages:N=!1,plugins:F,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:O=new Set([]),errorHandler:C,onMutation:P,getCanvasManager:j}=e;Cv(C);const M=!T||window.parent===window;let z=!1;if(!M)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(M&&!t)throw new Error("emit function is required");void 0!==S&&void 0===E.mousemove&&(E.mousemove=S),lw.reset();const D=!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const q=e=>{for(const t of F||[])t.eventProcessor&&(e=t.eventProcessor(e));return b&&!z&&(e=b(e)),e};cw=(e,s)=>{const a=e;if(a.timestamp=tv(),!Zf([zv,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||a.type===vv.FullSnapshot||a.type===vv.IncrementalSnapshot&&a.data.source===wv.Mutation||zv.forEach((e=>e.unfreeze())),M)Zf([t,"optionalCall",e=>e(q(a),s)]);else if(z){const e={type:"rrweb",event:q(a),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(a.type===vv.FullSnapshot)$=a,V=0;else if(a.type===vv.IncrementalSnapshot){if(a.data.source===wv.Mutation&&a.data.isAttachIframe)return;V++;const e=n&&V>=n,t=i&&$&&a.timestamp-$.timestamp>i;(e||t)&&X(!0)}};const H=e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.Mutation,...e}})},W=e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Scroll,...e}}),K=e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.CanvasMutation,...e}}),G=new rw({mutationCb:H,adoptedStyleSheetCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tw:new iw({mirror:lw,mutationCb:H,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:cw});for(const e of F||[])e.getMirror&&e.getMirror({nodeMirror:lw,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const J=new ow,Q=function(e,t){try{return e?e(t):new aw}catch(e){return console.warn("Unable to initialize CanvasManager"),new aw}}(j,{mirror:lw,win:window,mutationCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.CanvasMutation,...e}}),recordCanvas:x,blockClass:s,blockSelector:a,unblockSelector:r,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:A,errorHandler:C}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nw:new sw({mutationCb:H,scrollCb:W,bypassOptions:{onMutation:P,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskInputOptions:D,dataURLOptions:A,maskAttributeFn:I,maskTextFn:v,maskInputFn:y,recordCanvas:x,inlineImages:N,sampling:E,slimDOMOptions:B,iframeManager:Y,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:U,processedNodeManager:J},mirror:lw}),X=(e=!1)=>{cw({type:vv.Meta,data:{href:window.location.href,width:sv(),height:nv()}},e),G.reset(),Z.init(),zv.forEach((e=>e.lock()));const t=function(e,t){const{mirror:i=new _y,blockClass:n="rr-block",blockSelector:s=null,unblockSelector:a=null,maskAllText:r=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:l=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:f=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:I=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:S,keepIframeSrcFn:x=()=>!1}=t||{};return Ky(e,{doc:e,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,maskAllText:r,maskTextClass:o,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:y,inlineImages:p,recordCanvas:m,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:S,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:lw,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskAllInputs:D,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,slimDOM:B,dataURLOptions:A,recordCanvas:x,inlineImages:N,onSerialize:e=>{lv(e,lw)&&Y.addIframe(e),uv(e,lw)&&G.trackLinkElement(e),pv(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:U});if(!t)return console.warn("Failed to snapshot the document");cw({type:vv.FullSnapshot,data:{node:t,initialOffset:iv(window)}}),zv.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,lw.getId(document))};dw=X;try{const e=[],t=e=>jv(Jv)({onMutation:P,mutationCb:H,mousemoveCb:(e,t)=>cw({type:vv.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.ViewportResize,...e}}),inputCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Input,...e}}),mediaInteractionCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.MediaInteraction,...e}}),styleSheetRuleCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.StyleSheetRule,...e}}),styleDeclarationCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Font,...e}}),selectionCb:e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.Selection,...e}})},customElementCb:e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:c,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:D,inlineStylesheet:f,sampling:E,recordCanvas:x,inlineImages:N,userTriggeredOnInput:k,collectFonts:L,doc:e,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,keepIframeSrcFn:U,blockSelector:a,unblockSelector:r,slimDOMOptions:B,dataURLOptions:A,mirror:lw,iframeManager:Y,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:J,canvasManager:Q,ignoreCSSAttributes:O,plugins:Zf([F,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>cw({type:vv.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((i=>{try{e.push(t(i.contentDocument))}catch(e){console.warn(e)}}));const i=()=>{X(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?i():(e.push(Yy("DOMContentLoaded",(()=>{cw({type:vv.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&i()}))),e.push(Yy("load",(()=>{cw({type:vv.Load,data:{}}),"load"===R&&i()}),window))),()=>{e.forEach((e=>e())),J.destroy(),dw=void 0,Pv()}}catch(e){console.warn(e)}}uw.mirror=lw,uw.takeFullSnapshot=function(e){if(!dw)throw new Error("please take full snapshot after start recording");dw(e)};function pw(e){return e>9999999999?e:1e3*e}function mw(e){return e>9999999999?e/1e3:e}function fw(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:vv.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:If(t,10,1e3)}}),"console"===t.category))))}function hw(e){return e.closest("button,a")||e}function gw(e){const t=_w(e);return t&&t instanceof Element?hw(t):t}function _w(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Iw;function yw(e){return Iw||(Iw=[],pm(sy,"open",(function(e){return function(...t){if(Iw)try{Iw.forEach((e=>e()))}catch(e){}return e.apply(sy,t)}}))),Iw.push(e),()=>{const t=Iw?Iw.indexOf(e):-1;t>-1&&Iw.splice(t,1)}}class vw{constructor(e,t,i=fw){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=i}addListeners(){const e=yw((()=>{this._lastMutation=bw()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!ww.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const i={timestamp:mw(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===i.node&&Math.abs(e.timestamp-i.timestamp)<1))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=mw(e)}registerScroll(e=Date.now()){this._lastScroll=mw(e)}registerClick(e){const t=hw(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=bw();this._clicks.forEach((i=>{!i.mutationAfter&&this._lastMutation&&(i.mutationAfter=i.timestamp<=this._lastMutation?this._lastMutation-i.timestamp:void 0),!i.scrollAfter&&this._lastScroll&&(i.scrollAfter=i.timestamp<=this._lastScroll?this._lastScroll-i.timestamp:void 0),i.timestamp+this._timeout<=t&&e.push(i)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,i=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!i&&!n,{clickCount:a,clickBreadcrumb:r}=e;if(s){const i=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=i<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:sy.location.href,route:t.getCurrentRoute(),timeAfterClickMs:i,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:sy.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const ww=["A","BUTTON","INPUT"];function bw(){return Date.now()/1e3}function Ew(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:i}=t.data;if(i===wv.Mutation&&e.registerMutation(t.timestamp),i===wv.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===wv.MouseInteraction}(t)){const{type:i,id:n}=t.data,s=uw.mirror.getNode(n);s instanceof HTMLElement&&i===bv.Click&&e.registerClick(s)}}catch(e){}}function Aw(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Sw;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Sw||(Sw={}));const xw=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Tw(e){const t={};for(const i in e)if(xw.has(i)){let n=i;"data-testid"!==i&&"data-test-id"!==i||(n="testId"),t[n]=e[i]}return t}const Rw=e=>t=>{if(!e.isEnabled())return;const i=function(e){const{target:t,message:i}=function(e){const t="click"===e.name;let i,n=null;try{n=t?gw(e.event):_w(e.event),i=Xp(n,{maxStringLength:200})||"<unknown>"}catch(e){i="<unknown>"}return{target:n,message:i}}(e);return Aw({category:`ui.${e.name}`,...kw(t,i)})}(t);if(!i)return;const n="click"===t.name,s=n?t.event:void 0;var a,r,o;!(n&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=i,o=gw(t.event),a.handleClick(r,o)),fw(e,i)};function kw(e,t){const i=uw.mirror.getId(e),n=i&&uw.mirror.getNode(i),s=n&&uw.mirror.getMeta(n),a=s&&function(e){return e.type===Sw.Element}(s)?s:null;return{message:t,data:a?{nodeId:i,node:{id:i,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===Sw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Tw(a.attributes)}}:{}}}function Lw(e,t){if(!e.isEnabled())return;e.updateUserActivity();const i=function(e){const{metaKey:t,shiftKey:i,ctrlKey:n,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||n||s,c=1===a.length;if(!o&&c)return null;const d=Xp(r,{maxStringLength:200})||"<unknown>",l=kw(r,d);return Aw({category:"ui.keyDown",message:d,data:{...l.data,metaKey:t,shiftKey:i,ctrlKey:n,altKey:s,key:a}})}(t);i&&fw(e,i)}const Nw={resource:function(e){const{entryType:t,initiatorType:i,name:n,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:d}=e;if(["fetch","xmlhttprequest"].includes(i))return null;return{type:`${t}.${i}`,start:Uw(a),end:Uw(s),name:n,data:{size:d,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:i,name:n,startTime:s}=e,a=Uw(s);return{type:i,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:i,decodedBodySize:n,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:l,loadEventEnd:u,redirectCount:p,startTime:m,transferSize:f,type:h}=e;if(0===s)return null;return{type:`${t}.${h}`,start:Uw(m),end:Uw(a),name:i,data:{size:f,decodedBodySize:n,encodedBodySize:r,duration:s,domInteractive:d,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:u,domComplete:a,redirectCount:p}}}};function Fw(e){return Nw[e.entryType]?Nw[e.entryType](e):null}function Uw(e){return((Nf||sy.performance.timeOrigin)+e)/1e3}function Ow(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function i({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push(E_(e,i))})),n.push(b_((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,i=t[t.length-1],n=i?i.element:void 0,s=e.value,a=Uw(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:s,size:s,nodeId:n?uw.mirror.getId(n):void 0}}}(t))}))),()=>{n.forEach((e=>e()))}}const Cw="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Pw(e,t){Cw&&(rm.info(e),t&&Mw(e))}function jw(e,t){Cw&&(rm.info(e),t&&setTimeout((()=>{Mw(e)}),0))}function Mw(e){vh({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class zw extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Dw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>dy)throw new zw;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?pw(e):null}}class Bw{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:i})=>{i.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Pw("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const i=this._getAndIncrementId();return new Promise(((n,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===i){if(this._worker.removeEventListener("message",a),!r.success)return Cw&&rm.error("[Replay]",r.response),void s(new Error("Error in compression worker"));n(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:i,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class $w{constructor(e){this._worker=new Bw(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=pw(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const i=JSON.stringify(e);return this._totalSize+=i.length,this._totalSize>dy?Promise.reject(new zw):this._sendEventToWorker(i)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Cw&&rm.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Vw{constructor(e){this._fallback=new Dw,this._compression=new $w(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Pw("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,i=[];for(const t of e)i.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(i)}catch(e){Cw&&rm.warn("[Replay] Failed to add events when switching buffers.",e)}}}function qw({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Pw("[Replay] Using compression worker"+(e?` from ${e}`:""));const i=new Worker(t);return new Vw(i)}catch(e){Pw("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Pw("[Replay] Using simple buffer"),new Dw}function Hw(){try{return"sessionStorage"in sy&&!!sy.sessionStorage}catch(e){return!1}}function Ww(e){!function(){if(!Hw())return;try{sy.sessionStorage.removeItem(ay)}catch(e){}}(),e.session=void 0}function Kw(e){return void 0!==e&&Math.random()<e}function Gw(e){const t=Date.now();return{id:e.id||Um(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Yw(e){if(Hw())try{sy.sessionStorage.setItem(ay,JSON.stringify(e))}catch(e){}}function Jw({sessionSampleRate:e,allowBuffering:t,stickySession:i=!1},{previousSessionId:n}={}){const s=function(e,t){return Kw(e)?"session":!!t&&"buffer"}(e,t),a=Gw({sampled:s,previousSessionId:n});return i&&Yw(a),a}function Qw(e,t,i=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=i}function Zw(e,{maxReplayDuration:t,sessionIdleExpire:i,targetTime:n=Date.now()}){return Qw(e.started,t,n)||Qw(e.lastActivity,i,n)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:i}){return!!Zw(e,{sessionIdleExpire:t,maxReplayDuration:i})&&("buffer"!==e.sampled||0!==e.segmentId)}function eb({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:i,previousSessionId:n},s){const a=s.stickySession&&function(e){if(!Hw())return null;try{const t=sy.sessionStorage.getItem(ay);if(!t)return null;const i=JSON.parse(t);return jw("[Replay] Loading existing session",e),Gw(i)}catch(e){return null}}(e);return a?Xw(a,{sessionIdleExpire:t,maxReplayDuration:i})?(jw("[Replay] Session in sessionStorage is expired, creating new one..."),Jw(s,{previousSessionId:a.id})):a:(jw("[Replay] Creating new session",e),Jw(s,{previousSessionId:n}))}function tb(e,t,i){return!!nb(e,t)&&(ib(e,t,i),!0)}async function ib(e,t,i){if(!e.eventBuffer)return null;try{i&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),i&&(e.eventBuffer.hasCheckout=!0);const n=function(e,t){try{if("function"==typeof t&&function(e){return e.type===vv.Custom}(e))return t(e)}catch(e){return Cw&&rm.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!n)return;return await e.eventBuffer.addEvent(n)}catch(t){const i=t&&t instanceof zw?"addEventSizeExceeded":"addEvent";Cw&&rm.error(t),await e.stop({reason:i});const n=bh();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function nb(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const i=pw(t.timestamp);return!(i+e.timeouts.sessionIdlePause<Date.now())&&(!(i>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Pw(`[Replay] Skipping event with timestamp ${i} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function sb(e){return!e.type}function ab(e){return"transaction"===e.type}function rb(e){return"feedback"===e.type}function ob(e){const t=function(){const e=bh();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(i,n)=>{if(!e.isEnabled()||!sb(i)&&!ab(i))return;const s=n&&n.statusCode;t&&(!s||s<200||s>=300)||(ab(i)?function(e,t){const i=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&i.traceIds.size<100&&i.traceIds.add(t.contexts.trace.trace_id)}(e,i):function(e,t){const i=e.getContext();t.event_id&&i.errorIds.size<100&&i.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,i))}}function cb(e){return t=>{e.isEnabled()&&sb(t)&&function(e,t){const i=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof i)return;if(i.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i)){fw(e,Aw({category:"replay.hydrate-error"}))}}(e,t)}}function db(e,t=!1){const i=t?ob(e):void 0;return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!sb(t)&&!ab(t)&&!rb(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(rb(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:vv.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Cw&&rm.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==ry&&!(!t.exception||t.type)&&Kw(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&i(t,{statusCode:200}),t}),{id:"Replay"})}function lb(e,t){return t.map((({type:t,start:i,end:n,name:s,data:a})=>{const r=e.throttledAddEvent({type:vv.Custom,timestamp:i,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:i,endTimestamp:n,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function ub(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{from:t,to:i}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:i,data:{previous:t}}}(t);null!==i&&(e.getContext().urls.push(i.name),e.triggerUserActivity(),e.addUpdate((()=>(lb(e,[i]),!1))))}}function pb(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Cw||!e.getOptions()._experiments.traceInternals)&&Cg(t,bh())}(e,t.name)||e.addUpdate((()=>(lb(e,[t]),!0))))}function mb(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{startTimestamp:t,endTimestamp:i,xhr:n}=e,s=n[mf];if(!t||!i||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:i/1e3,data:{method:a,statusCode:o}}}(t);pb(e,i)}}function fb(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const i=bb(e);return t.encode(i).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function hb(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function gb(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[bb(e)];if(!e)return[void 0]}catch(t){return Cw&&rm.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Cw&&rm.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function _b(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const i={...e._meta},n=i.warnings||[];return i.warnings=[...n,t],e._meta=i,e}function Ib(e,t){if(!t)return null;const{startTimestamp:i,endTimestamp:n,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:i/1e3,end:n/1e3,name:s,data:ym({method:a,statusCode:r,request:o,response:c})}}function yb(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function vb(e,t,i){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!i)return{headers:e,size:t};const n={headers:e,size:t},{body:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>oy,i=function(e){const t=e[0],i=e[e.length-1];return"["===t&&"]"===i||"{"===t&&"}"===i}(e);if(t){const t=e.slice(0,oy);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(i);return n.body=s,a&&a.length>0&&(n._meta={warnings:a}),n}function wb(e,t){return Object.keys(e).reduce(((i,n)=>{const s=n.toLowerCase();return t.includes(s)&&e[n]&&(i[s]=e[n]),i}),{})}function bb(e){return new URLSearchParams(e).toString()}function Eb(e,t){const i=function(e,t=sy.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(sy.location.origin))return e;const i=new URL(e,t);if(i.origin!==new URL(t).origin)return e;const n=i.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return Vp(i,t)}async function Ab(e,t,i){try{const n=await async function(e,t,i){const n=Date.now(),{startTimestamp:s=n,endTimestamp:a=n}=t,{url:r,method:o,status_code:c=0,request_body_size:d,response_body_size:l}=e.data,u=Eb(r,i.networkDetailAllowUrls)&&!Eb(r,i.networkDetailDenyUrls),p=u?function({networkCaptureBodies:e,networkRequestHeaders:t},i,n){const s=i?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Tb(e[0],t);if(2===e.length)return Tb(e[1],t);return{}}(i,t):{};if(!e)return vb(s,n,void 0);const a=Sb(i),[r,o]=gb(a),c=vb(s,n,r);if(o)return _b(c,o);return c}(i,t.input,d):yb(d),m=await async function(e,{networkCaptureBodies:t,textEncoder:i,networkResponseHeaders:n},s,a){if(!e&&void 0!==a)return yb(a);const r=s?xb(s.headers,n):{};if(!s||!t&&void 0!==a)return vb(r,a,void 0);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Cw&&rm.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,i)=>{const n=setTimeout((()=>i(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>i(e))).finally((()=>clearTimeout(n)))}))}(t);return[e]}catch(e){return Cw&&rm.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(s),d=function(e,{networkCaptureBodies:t,textEncoder:i,responseBodySize:n,captureDetails:s,headers:a}){try{const r=e&&e.length&&void 0===n?fb(e,i):n;return s?vb(a,r,t?e:void 0):yb(r)}catch(e){return Cw&&rm.warn("[Replay] Failed to serialize response body",e),vb(a,n,void 0)}}(o,{networkCaptureBodies:t,textEncoder:i,responseBodySize:a,captureDetails:e,headers:r});if(c)return _b(d,c);return d}(u,i,t.response,l);return{startTimestamp:s,endTimestamp:a,url:r,method:o,statusCode:c,request:p,response:m}}(e,t,i),s=Ib("resource.fetch",n);pb(i.replay,s)}catch(e){Cw&&rm.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Sb(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function xb(e,t){const i={};return t.forEach((t=>{e.get(t)&&(i[t]=e.get(t))})),i}function Tb(e,t){if(!e)return{};const i=e.headers;return i?i instanceof Headers?xb(i,t):Array.isArray(i)?{}:wb(i,t):{}}async function Rb(e,t,i){try{const n=function(e,t,i){const n=Date.now(),{startTimestamp:s=n,endTimestamp:a=n,input:r,xhr:o}=t,{url:c,method:d,status_code:l=0,request_body_size:u,response_body_size:p}=e.data;if(!c)return null;if(!o||!Eb(c,i.networkDetailAllowUrls)||Eb(c,i.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:a,url:c,method:d,statusCode:l,request:yb(u),response:yb(p)}}const m=o[mf],f=m?wb(m.request_headers,i.networkRequestHeaders):{},h=wb(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[i,n]=t.split(": ");return e[i.toLowerCase()]=n,e}),{})}(o),i.networkResponseHeaders),[g,_]=i.networkCaptureBodies?gb(r):[void 0],[I,y]=i.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Cw&&rm.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Cw&&rm.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Cw&&rm.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(o):[void 0],v=vb(f,u,g),w=vb(h,p,I);return{startTimestamp:s,endTimestamp:a,url:c,method:d,statusCode:l,request:_?_b(v,_):v,response:y?_b(w,y):w}}(e,t,i),s=Ib("resource.xhr",n);pb(i.replay,s)}catch(e){Cw&&rm.error("[Replay] Failed to capture xhr breadcrumb",e)}}function kb(e,t,i){const{xhr:n,input:s}=t;if(!n)return;const a=fb(s,i.textEncoder),r=n.getResponseHeader("content-length")?hb(n.getResponseHeader("content-length")):function(e,t,i){try{return fb("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,i)}catch(e){return}}(n.response,n.responseType,i.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}function Lb(e){const t=bh();try{const i=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:i,networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,i){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(i)&&(kb(t,i,e),Rb(t,i,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(i)&&(!function(e,t,i){const{input:n,response:s}=t,a=fb(n?Sb(n):void 0,i.textEncoder),r=s?hb(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,i,e),Ab(t,i,e))}catch(e){Cw&&rm.warn("Error when enriching network breadcrumb")}}(c,e,t))):(Jm(function(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{startTimestamp:t,endTimestamp:i,fetchData:n,response:s}=e;if(!i)return null;const{method:a,url:r}=n;return{type:"resource.fetch",start:t/1e3,end:i/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);pb(e,i)}}(e)),ff(mb(e)))}catch(e){}}let Nb=null;const Fb=e=>t=>{if(!e.isEnabled())return;const i=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Nb===t||!t)return null;if(Nb=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Aw(e);let i=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>cy?(i=!0,`${e.slice(0,cy)}…`):e;if("object"==typeof e)try{const t=If(e,7);return JSON.stringify(t).length>cy?(i=!0,`${JSON.stringify(t,null,2).slice(0,cy)}…`):t}catch(e){}return e}));return Aw({...e,data:{...e.data,arguments:n,...i?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Aw(t)}(t);i&&fw(e,i)};function Ub(e){const t=Eh(),i=bh();t.addScopeListener(Fb(e)),qm(Rw(e)),lf(ub(e)),Lb(e);const n=db(e,!Ob(i));i&&i.addEventProcessor?i.addEventProcessor(n):function(e){const t=bh();t&&t.addEventProcessor&&t.addEventProcessor(e)}(n),Ob(i)&&(i.on("beforeSendEvent",cb(e)),i.on("afterSendEvent",ob(e)),i.on("createDsc",(t=>{const i=e.getSessionId();if(i&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=i)}})),i.on("startTransaction",(t=>{e.lastTransaction=t})),i.on("finishTransaction",(t=>{e.lastTransaction=t})),i.on("beforeSendFeedback",((t,i)=>{const n=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)})))}function Ob(e){return!(!e||!e.on)}function Cb(e){const{jsHeapSizeLimit:t,totalJSHeapSize:i,usedJSHeapSize:n}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:i,usedJSHeapSize:n}}}}function Pb(e){let t=!1;return(i,n)=>{if(!e.checkAndHandleExpiredSession())return void(Cw&&rm.warn("[Replay] Received replay event after session expired."));const s=n||!t;t=!0,e.clickDetector&&Ew(e.clickDetector,i),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!tb(e,i,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;tb(e,function(e){const t=e.getOptions();return{type:vv.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Pw(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Yw(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function jb({recordingData:e,replayId:t,segmentId:i,eventContext:n,timestamp:s,session:a}){const r=function({recordingData:e,headers:t}){let i;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)i=`${n}${e}`;else{const t=(new TextEncoder).encode(n);i=new Uint8Array(t.length+e.length),i.set(t),i.set(e,t.length)}return i}({recordingData:e,headers:{segment_id:i}}),{urls:o,errorIds:c,traceIds:d,initialTimestamp:l}=n,u=bh(),p=Eh(),m=u&&u.getTransport(),f=u&&u.getDsn();if(!(u&&m&&f&&a.sampled))return;const h={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:d,urls:o,replay_id:t,segment_id:i,replay_type:a.sampled},g=await async function({client:e,scope:t,replayId:i,event:n}){const s={event_id:i,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",n,s);const a=await mh(e.getOptions(),n,s,t,e,qh());if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}({scope:p,client:u,replayId:t,event:h});if(!g)return u.recordDroppedEvent("event_processor","replay",h),void Pw("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const _=function(e,t,i,n){return Df(Yf(e,Gf(e),n,i),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,r,f,u.getOptions().tunnel);let I;try{I=await m.send(_)}catch(e){const t=new Error(ry);try{t.cause=e}catch(e){}throw t}if(!I)return I;if("number"==typeof I.statusCode&&(I.statusCode<200||I.statusCode>=300))throw new Mb(I.statusCode);const y=Qf({},I);if(Jf(y,"replay"))throw new zb(y);return I}class Mb extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class zb extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Db(e,t={count:0,interval:5e3}){const{recordingData:i,options:n}=e;var s,a;if(i.length)try{return await jb(e),!0}catch(i){if(i instanceof Mb||i instanceof zb)throw i;if(s="Replays",a={_retryCount:t.count},Vh().setContext(s,a),Cw&&n._experiments&&n._experiments.captureExceptions&&_h(i),t.count>=3){const e=new Error(`${ry} - max retries exceeded`);try{e.cause=i}catch(e){}throw e}return t.interval*=++t.count,new Promise(((i,n)=>{setTimeout((async()=>{try{await Db(e,t),i(!0)}catch(e){n(e)}}),t.interval)}))}}const Bb="__THROTTLED";function $b(e,t,i){const n=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-i;n.forEach(((e,i)=>{i<t&&n.delete(i)}))})(r),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":Bb}s=!1;const o=n.get(r)||0;return n.set(r,o+1),e(...a)}}class Vb{constructor({options:e,recordingOptions:t}){Vb.prototype.__init.call(this),Vb.prototype.__init2.call(this),Vb.prototype.__init3.call(this),Vb.prototype.__init4.call(this),Vb.prototype.__init5.call(this),Vb.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,i){let n,s,a;const r=i&&i.maxWait?Math.max(i.maxWait,t):0;function o(){return c(),n=e(),n}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function d(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),n}return d.cancel=c,d.flush=function(){return void 0!==s||void 0!==a?o():n},d}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$b(((e,t)=>function(e,t,i){return nb(e,t)?ib(e,t,i):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:i,slowClickIgnoreSelectors:n}=this.getOptions(),s=i?{threshold:Math.min(3e3,i),timeout:i,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;s&&(this.clickDetector=new vw(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:i}=this._options;t<=0&&i<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",jw(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");jw("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=eb({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");jw("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=eb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=uw({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Pb(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Pw("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ww(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Pw("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Pw("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Pw("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const i=this.stopRecording();e&&i&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Qw(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${sy.location.pathname}${sy.location.hash}${sy.location.search}`,t=`${sy.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const i=this._throttledAddEvent(e,t);if(i===Bb){const e=Aw({category:"replay.throttled"});this.addUpdate((()=>!tb(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return i}getCurrentRoute(){const e=this.lastTransaction||Eh().getTransaction(),t=(e&&uh(e).data||{})[ng];if(e&&t&&["route","custom"].includes(t))return uh(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=qw({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Cw&&rm.error("[Replay]",e),Cw&&this._options._experiments&&this._options._experiments.captureExceptions&&_h(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,i=eb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=i}_checkSession(){if(!this.session)return!1;const e=this.session;return!Xw(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{sy.document.addEventListener("visibilitychange",this._handleVisibilityChange),sy.addEventListener("blur",this._handleWindowBlur),sy.addEventListener("focus",this._handleWindowFocus),sy.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ub(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Ow(this)}_removeListeners(){try{sy.document.removeEventListener("visibilitychange",this._handleVisibilityChange),sy.removeEventListener("blur",this._handleWindowBlur),sy.removeEventListener("focus",this._handleWindowFocus),sy.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===sy.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Aw({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Aw({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Lw(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Zw(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Pw("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:vv.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Fw).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(lb(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const i=t.getEarliestTimestamp();i&&i<this._context.initialTimestamp&&(this._context.initialTimestamp=i)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(lb(e,[Cb(sy.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const i=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Db({replayId:e,recordingData:s,segmentId:n,eventContext:i,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=bh();t&&t.recordDroppedEvent("send_error","replay")}}else Cw&&rm.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Cw&&rm.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,i=Date.now()-t;this._debouncedFlush.cancel();const n=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(n||s)return Pw(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${n?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(n&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&Pw("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Cw&&rm.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Yw(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,i=this._options.mutationLimit,n=i&&t>i;if(t>this._options.mutationBreadcrumbLimit||n){const e=Aw({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function qb(e,t,i,n){const s=[...e,..."string"==typeof n?n.split(","):[],...t];return void 0!==i&&("string"==typeof i&&s.push(`.${i}`),am((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),s.join(",")}const Hb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Wb=["content-length","content-type","accept"];let Kb=!1;const Gb=e=>new Yb(e);class Yb{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:i=4999,maxReplayDuration:n=36e5,stickySession:s=!0,useCompression:a=!0,workerUrl:r,_experiments:o={},sessionSampleRate:c,errorSampleRate:d,maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:I=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:w=[],mask:b=[],maskAttributes:E=["title","placeholder"],unmask:A=[],block:S=[],unblock:x=[],ignore:T=[],maskFn:R,beforeAddRecordingEvent:k,beforeErrorSampling:L,blockClass:N,blockSelector:F,maskInputOptions:U,maskTextClass:O,maskTextSelector:C,ignoreClass:P}={}){this.name=Yb.id;const j=function({mask:e,unmask:t,block:i,unblock:n,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:d}){const l={maskTextSelector:qb(e,[".sentry-mask","[data-sentry-mask]"],o,c),unmaskTextSelector:qb(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:qb(i,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:qb(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:qb(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],d)};return a instanceof RegExp&&(l.blockClass=a),o instanceof RegExp&&(l.maskTextClass=o),l}({mask:b,unmask:A,block:S,unblock:x,ignore:T,blockClass:N,blockSelector:F,maskTextClass:O,maskTextSelector:C,ignoreClass:P});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{...U||{},password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(e,t,i)=>function({el:e,key:t,maskAttributes:i,maskAllText:n,privacyOptions:s,value:a}){return n?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?a:i.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:E,maskAllText:l,privacyOptions:j,key:e,value:t,el:i}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(i,15e3),maxReplayDuration:Math.min(n,ly),stickySession:s,sessionSampleRate:c,errorSampleRate:d,useCompression:a,workerUrl:r,blockAllMedia:p,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:m,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:I,networkCaptureBodies:y,networkRequestHeaders:Jb(v),networkResponseHeaders:Jb(w),beforeAddRecordingEvent:k,beforeErrorSampling:L,_experiments:o},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof d&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${d} })`),this._initialOptions.errorSampleRate=d),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Hb}`:Hb),this._isInitialized&&_f())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Kb}set _isInitialized(e){Kb=e}setupOnce(){_f()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=bh(),i=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...ym(e)};if(!i)return am((()=>{console.warn("SDK client is not available.")})),n;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==i.replaysSessionSampleRate&&null==i.replaysOnErrorSampleRate&&am((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof i.replaysSessionSampleRate&&(n.sessionSampleRate=i.replaysSessionSampleRate);"number"==typeof i.replaysOnErrorSampleRate&&(n.errorSampleRate=i.replaysOnErrorSampleRate);return n}(this._initialOptions);this._replay=new Vb({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=bh().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Jb(e){return[...Wb,...e.map((e=>e.toLowerCase()))]}Yb.__initStatic();const Qb="CaptureConsole",Zb=(e={})=>{const t=e.levels||nm;return{name:Qb,setupOnce(){},setup(e){"console"in Yp&&Nm((({args:i,level:n})=>{bh()===e&&t.includes(n)&&function(e,t){const i={level:Rf(t),extra:{arguments:e}};wh((n=>{if(n.addEventProcessor((e=>(e.logger="console",jm(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${Bp(e.slice(1)," ")||"console.assert"}`;return n.setExtra("arguments",e.slice(1)),void Ih(t,i)}const s=e.find((e=>e instanceof Error));if("error"===t&&s)return void _h(s,i);Ih(Bp(e," "),i)}))}(i,n)}))}}};Sg(Qb,Zb);const Xb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eE="ExtraErrorData",tE=(e={})=>{const t=e.depth||3,i=e.captureErrorCause||!1;return{name:eE,setupOnce(){},processEvent:(e,n)=>function(e,t={},i,n){if(!t.originalException||!xp(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,a=function(e,t){try{const i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(const t of Object.keys(e)){if(-1!==i.indexOf(t))continue;const s=e[t];n[t]=xp(s)?s.toString():s}if(t&&void 0!==e.cause&&(n.cause=xp(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const i=t[e];n[e]=xp(i)?i.toString():i}}return n}catch(e){Xb&&rm.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n);if(a){const t={...e.contexts},n=If(a,i);return Up(n)&&(mm(n,"__sentry_skip_normalization__",!0),t[s]=n),{...e,contexts:t}}return e}(e,n,t,i)}};Sg(eE,tE);const iE=Yp,nE="ContextLines",sE=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:nE,setupOnce(){},processEvent:e=>function(e,t){const i=iE.document,n=iE.location&&(s=iE.location.href,s.split(/[\?#]/,1)[0]);var s;if(!i||!n)return e;const a=e.exception&&e.exception.values;if(!a||!a.length)return e;const r=i.documentElement.innerHTML;if(!r)return e;const o=["<!DOCTYPE html>","<html>",...r.split("\n"),"</html>"];return a.forEach((e=>{const i=e.stacktrace;i&&i.frames&&(i.frames=i.frames.map((e=>function(e,t,i,n){if(e.filename!==i||!e.lineno||!t.length)return e;return function(e,t,i=5){if(void 0===t.lineno)return;const n=e.length,s=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-i),s).map((e=>Dp(e,0))),t.context_line=Dp(e[Math.min(n-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,n),s+1+i).map((e=>Dp(e,0)))}(t,e,n),e}(e,o,n,t))))})),e}(e,t)}};Sg(nE,sE);const aE=new RegExp("^https:\\/\\/roar-sre--pr\\d+-\\w+\\.web\\.app\\/"),rE=new RegExp("^https:\\/\\/roar-staging\\.web\\.app\\/game\\/sre|https:\\/\\/roar-staging--pr\\d+-\\w+\\.web\\.app\\/");class oE{constructor(e,t,i,n,s){this.gameParams=t,this.userParams=i,this.firekit=e,this.displayElement=n,this.useParameterValidation=s,this.jsPsych=null}async init(){ny({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[Gb({maskAllText:!0,maskAllInputs:!0}),tI(),Zb({levels:["warning","error","debug","assert"]}),sE(),tE()],attachStacktrace:!0,tracesSampleRate:.2,tracePropagationTargets:[aE,rE,"https://roar.education/game/sre","localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),await this.firekit.startRun();const e=await(async(e,t,i,n,s)=>{const a=Na(Na({...t,...i},Fa),Ua),r="es"===hc.language?1:3,{userMode:o,assessmentPid:c,labId:d,recruitment:l,userMetadata:u,urlParams:p,consent:m,storyOption:f,language:h=hc.language,skipInstructions:g,grade:_,birthMonth:I,birthYear:y,age:v,ageMonths:w,timerLength:b,scoringVersion:E=r}=a,A=Number.isNaN(parseInt(E,10))?r:E;"en"!==h&&hc.changeLanguage(h);const S=cr(I,y,v,w),x={taskId:e.task.taskId,pid:c,labId:d,userMode:o||bp(h),recruitment:l||"pilot",storyOption:f,story:yp(f,_),userMetadata:{...u,grade:_,...S},startTime:new Date,urlParams:p,firekit:e,language:h,skipInstructions:g??!0,consent:m??!0,displayElement:n||null,blockOrder:vp(o||bp(h),md),timerLength:b??18e4,timerLengthList:wp(o||bp(h)),useParameterValidation:s??!0,scoringVersion:A},T=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,x[e]??t])));return await x.firekit.updateTaskParams(T),x.useParameterValidation&&await x.firekit.validateParameters(Ip),null!==x.pid&&await x.firekit.updateUser({assessmentPid:x.pid,...u}),x})(this.firekit,this.gameParams,this.userParams,this.displayElement,this.useParameterValidation);return r.session.set("config",e),function(e,t){Od=Eo(Nd,Fd,hc.language),Cd=Ao(Nd,Fd,hc.language).default,Cd.message=hc.t("loading"),Ep(t);const i=Ap(e),n=ur({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["incomplete","responseTimeTooFast"]});Ud=new pr({evaluateValidity:n,handleEngagementFlags:(e,i)=>t.firekit.run.started?t.firekit.updateEngagementFlags(e,i):null});const s=[Cd,...i];return(e=>{const i={timeline:[kd,Ld],repetitions:4};s.push(Id),s.push(xd),s.push(Rd),s.push(i),s.push(yd);for(let i=0;i<e.length;i+=1)s.push(Td(e[i],i+1,t.timerLengthList[i])),i<e.length-1&&s.push(Ad);s.push(Sd)})(t.blockOrder),{jsPsych:hd,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=i=>{e()?i():setTimeout((e=>t(i)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{oE as default};
|
|
26
|
-
//# sourceMappingURL=index.
|
|
25
|
+
*/!function(e,t){(function(){var n,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,d=64,l=128,u=256,p=1/0,m=9007199254740991,f=NaN,h=4294967295,g=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",d],["rearg",u]],_="[object Arguments]",I="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",E="[object GeneratorFunction]",A="[object Map]",S="[object Number]",x="[object Object]",T="[object Promise]",R="[object RegExp]",k="[object Set]",L="[object String]",N="[object Symbol]",F="[object WeakMap]",U="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",D="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]",q=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Y=RegExp(K.source),J=RegExp(G.source),Q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ne.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,Ie=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",Ne="["+Ee+"]",Fe="["+ke+"]",Ue="["+Ae+"]",Oe="\\d+",Ce="["+Se+"]",Pe="["+xe+"]",je="[^"+Ee+ke+Oe+Se+xe+Te+"]",Me="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ee+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Te+"]",Ve="\\u200d",qe="(?:"+Pe+"|"+je+")",He="(?:"+$e+"|"+je+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ue+"|"+Me+")"+"?",Ye="["+Re+"]?",Je=Ye+Ge+("(?:"+Ve+"(?:"+[ze,De,Be].join("|")+")"+Ye+Ge+")*"),Qe="(?:"+[Ce,De,Be].join("|")+")"+Je,Ze="(?:"+[ze+Ue+"?",Ue,De,Be,Ne].join("|")+")",Xe=RegExp(Le,"g"),et=RegExp(Ue,"g"),tt=RegExp(Me+"(?="+Me+")|"+Ze+Je,"g"),it=RegExp([$e+"?"+Pe+"+"+We+"(?="+[Fe,$e,"$"].join("|")+")",He+"+"+Ke+"(?="+[Fe,$e+qe,"$"].join("|")+")",$e+"?"+qe+"+"+We,$e+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Qe].join("|"),"g"),nt=RegExp("["+Ve+Ee+Ae+Re+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[C]=ot[P]=ot[j]=ot[M]=ot[z]=ot[D]=ot[B]=ot[$]=ot[V]=!0,ot[_]=ot[I]=ot[U]=ot[y]=ot[O]=ot[v]=ot[w]=ot[b]=ot[A]=ot[S]=ot[x]=ot[R]=ot[k]=ot[L]=ot[F]=!1;var ct={};ct[_]=ct[I]=ct[U]=ct[O]=ct[y]=ct[v]=ct[C]=ct[P]=ct[j]=ct[M]=ct[z]=ct[A]=ct[S]=ct[x]=ct[R]=ct[k]=ct[L]=ct[N]=ct[D]=ct[B]=ct[$]=ct[V]=!0,ct[w]=ct[b]=ct[F]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,pt="object"==typeof i&&i&&i.Object===Object&&i,mt="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||mt||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,_t=gt&>.exports===ht,It=_t&&pt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||It&&It.binding&&It.binding("util")}catch(e){}}(),vt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,bt=yt&&yt.isMap,Et=yt&&yt.isRegExp,At=yt&&yt.isSet,St=yt&&yt.isTypedArray;function xt(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Tt(e,t,i,n){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(n,r,i(r),e)}return n}function Rt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}function kt(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function Lt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(!t(e[i],i,e))return!1;return!0}function Nt(e,t){for(var i=-1,n=null==e?0:e.length,s=0,a=[];++i<n;){var r=e[i];t(r,i,e)&&(a[s++]=r)}return a}function Ft(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Ut(e,t,i){for(var n=-1,s=null==e?0:e.length;++n<s;)if(i(t,e[n]))return!0;return!1}function Ot(e,t){for(var i=-1,n=null==e?0:e.length,s=Array(n);++i<n;)s[i]=t(e[i],i,e);return s}function Ct(e,t){for(var i=-1,n=t.length,s=e.length;++i<n;)e[s+i]=t[i];return e}function Pt(e,t,i,n){var s=-1,a=null==e?0:e.length;for(n&&a&&(i=e[++s]);++s<a;)i=t(i,e[s],s,e);return i}function jt(e,t,i,n){var s=null==e?0:e.length;for(n&&s&&(i=e[--s]);s--;)i=t(i,e[s],s,e);return i}function Mt(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}var zt=Wt("length");function Dt(e,t,i){var n;return i(e,(function(e,i,s){if(t(e,i,s))return n=i,!1})),n}function Bt(e,t,i,n){for(var s=e.length,a=i+(n?1:-1);n?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function $t(e,t,i){return t==t?function(e,t,i){var n=i-1,s=e.length;for(;++n<s;)if(e[n]===t)return n;return-1}(e,t,i):Bt(e,qt,i)}function Vt(e,t,i,n){for(var s=i-1,a=e.length;++s<a;)if(n(e[s],t))return s;return-1}function qt(e){return e!=e}function Ht(e,t){var i=null==e?0:e.length;return i?Yt(e,t)/i:f}function Wt(e){return function(t){return null==t?n:t[e]}}function Kt(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,i,n,s){return s(e,(function(e,s,a){i=n?(n=!1,e):t(i,e,s,a)})),i}function Yt(e,t){for(var i,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==n&&(i=i===n?r:i+r)}return i}function Jt(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Qt(e){return e?e.slice(0,fi(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function Xt(e,t){return Ot(t,(function(t){return e[t]}))}function ei(e,t){return e.has(t)}function ti(e,t){for(var i=-1,n=e.length;++i<n&&$t(t,e[i],0)>-1;);return i}function ii(e,t){for(var i=e.length;i--&&$t(t,e[i],0)>-1;);return i}var ni=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),si=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ai(e){return"\\"+dt[e]}function ri(e){return nt.test(e)}function oi(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function ci(e,t){return function(i){return e(t(i))}}function di(e,t){for(var i=-1,n=e.length,s=0,a=[];++i<n;){var o=e[i];o!==t&&o!==r||(e[i]=r,a[s++]=i)}return a}function li(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}function ui(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i}function pi(e){return ri(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):zt(e)}function mi(e){return ri(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function fi(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var hi=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gi=function e(t){var i=(t=null==t?ft:gi.defaults(ft.Object(),t,gi.pick(ft,at))).Array,re=t.Date,Ee=t.Error,Ae=t.Function,Se=t.Math,xe=t.Object,Te=t.RegExp,Re=t.String,ke=t.TypeError,Le=i.prototype,Ne=Ae.prototype,Fe=xe.prototype,Ue=t["__core-js_shared__"],Oe=Ne.toString,Ce=Fe.hasOwnProperty,Pe=0,je=function(){var e=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Fe.toString,ze=Oe.call(xe),De=ft._,Be=Te("^"+Oe.call(Ce).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=_t?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,He=$e?$e.allocUnsafe:n,We=ci(xe.getPrototypeOf,xe),Ke=xe.create,Ge=Fe.propertyIsEnumerable,Ye=Le.splice,Je=Ve?Ve.isConcatSpreadable:n,Qe=Ve?Ve.iterator:n,Ze=Ve?Ve.toStringTag:n,tt=function(){try{var e=ua(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Se.ceil,ht=Se.floor,gt=xe.getOwnPropertySymbols,It=$e?$e.isBuffer:n,yt=t.isFinite,zt=Le.join,Kt=ci(xe.keys,xe),_i=Se.max,Ii=Se.min,yi=re.now,vi=t.parseInt,wi=Se.random,bi=Le.reverse,Ei=ua(t,"DataView"),Ai=ua(t,"Map"),Si=ua(t,"Promise"),xi=ua(t,"Set"),Ti=ua(t,"WeakMap"),Ri=ua(xe,"create"),ki=Ti&&new Ti,Li={},Ni=ja(Ei),Fi=ja(Ai),Ui=ja(Si),Oi=ja(xi),Ci=ja(Ti),Pi=Ve?Ve.prototype:n,ji=Pi?Pi.valueOf:n,Mi=Pi?Pi.toString:n;function zi(e){if(eo(e)&&!Vr(e)&&!(e instanceof Vi)){if(e instanceof $i)return e;if(Ce.call(e,"__wrapped__"))return Ma(e)}return new $i(e)}var Di=function(){function e(){}return function(t){if(!Xr(t))return{};if(Ke)return Ke(t);e.prototype=t;var i=new e;return e.prototype=n,i}}();function Bi(){}function $i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function qi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Wi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Ki(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Wi;++t<i;)this.add(e[t])}function Gi(e){var t=this.__data__=new Hi(e);this.size=t.size}function Yi(e,t){var i=Vr(e),n=!i&&$r(e),s=!i&&!n&&Kr(e),a=!i&&!n&&!s&&co(e),r=i||n||s||a,o=r?Jt(e.length,Re):[],c=o.length;for(var d in e)!t&&!Ce.call(e,d)||r&&("length"==d||s&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Ia(d,c))||o.push(d);return o}function Ji(e){var t=e.length;return t?e[Gn(0,t-1)]:n}function Qi(e,t){return Oa(ks(e),on(t,0,e.length))}function Zi(e){return Oa(ks(e))}function Xi(e,t,i){(i!==n&&!zr(e[t],i)||i===n&&!(t in e))&&an(e,t,i)}function en(e,t,i){var s=e[t];Ce.call(e,t)&&zr(s,i)&&(i!==n||t in e)||an(e,t,i)}function tn(e,t){for(var i=e.length;i--;)if(zr(e[i][0],t))return i;return-1}function nn(e,t,i,n){return pn(e,(function(e,s,a){t(n,e,i(e),a)})),n}function sn(e,t){return e&&Ls(t,No(t),e)}function an(e,t,i){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function rn(e,t){for(var s=-1,a=t.length,r=i(a),o=null==e;++s<a;)r[s]=o?n:xo(e,t[s]);return r}function on(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function cn(e,t,i,s,a,r){var o,c=1&t,d=2&t,l=4&t;if(i&&(o=a?i(e,s,a,r):i(e)),o!==n)return o;if(!Xr(e))return e;var u=Vr(e);if(u){if(o=function(e){var t=e.length,i=new e.constructor(t);t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(i.index=e.index,i.input=e.input);return i}(e),!c)return ks(e,o)}else{var p=fa(e),m=p==b||p==E;if(Kr(e))return Es(e,c);if(p==x||p==_||m&&!a){if(o=d||m?{}:ga(e),!c)return d?function(e,t){return Ls(e,ma(e),t)}(e,function(e,t){return e&&Ls(t,Fo(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,sn(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,i){var n=e.constructor;switch(t){case U:return As(e);case y:case v:return new n(+e);case O:return function(e,t){var i=t?As(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case C:case P:case j:case M:case z:case D:case B:case $:case V:return Ss(e,i);case A:return new n;case S:case L:return new n(e);case R:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new n;case N:return s=e,ji?xe(ji.call(s)):{}}var s}(e,p,c)}}r||(r=new Gi);var f=r.get(e);if(f)return f;r.set(e,o),ao(e)?e.forEach((function(n){o.add(cn(n,t,i,n,e,r))})):to(e)&&e.forEach((function(n,s){o.set(s,cn(n,t,i,s,e,r))}));var h=u?n:(l?d?sa:na:d?Fo:No)(e);return Rt(h||e,(function(n,s){h&&(n=e[s=n]),en(o,s,cn(n,t,i,s,e,r))})),o}function dn(e,t,i){var s=i.length;if(null==e)return!s;for(e=xe(e);s--;){var a=i[s],r=t[a],o=e[a];if(o===n&&!(a in e)||!r(o))return!1}return!0}function ln(e,t,i){if("function"!=typeof e)throw new ke(s);return La((function(){e.apply(n,i)}),t)}function un(e,t,i,n){var s=-1,a=Ft,r=!0,o=e.length,c=[],d=t.length;if(!o)return c;i&&(t=Ot(t,Zt(i))),n?(a=Ut,r=!1):t.length>=200&&(a=ei,r=!1,t=new Ki(t));e:for(;++s<o;){var l=e[s],u=null==i?l:i(l);if(l=n||0!==l?l:0,r&&u==u){for(var p=d;p--;)if(t[p]===u)continue e;c.push(l)}else a(t,u,n)||c.push(l)}return c}zi.templateSettings={escape:Q,evaluate:Z,interpolate:X,variable:"",imports:{_:zi}},zi.prototype=Bi.prototype,zi.prototype.constructor=zi,$i.prototype=Di(Bi.prototype),$i.prototype.constructor=$i,Vi.prototype=Di(Bi.prototype),Vi.prototype.constructor=Vi,qi.prototype.clear=function(){this.__data__=Ri?Ri(null):{},this.size=0},qi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qi.prototype.get=function(e){var t=this.__data__;if(Ri){var i=t[e];return i===a?n:i}return Ce.call(t,e)?t[e]:n},qi.prototype.has=function(e){var t=this.__data__;return Ri?t[e]!==n:Ce.call(t,e)},qi.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ri&&t===n?a:t,this},Hi.prototype.clear=function(){this.__data__=[],this.size=0},Hi.prototype.delete=function(e){var t=this.__data__,i=tn(t,e);return!(i<0)&&(i==t.length-1?t.pop():Ye.call(t,i,1),--this.size,!0)},Hi.prototype.get=function(e){var t=this.__data__,i=tn(t,e);return i<0?n:t[i][1]},Hi.prototype.has=function(e){return tn(this.__data__,e)>-1},Hi.prototype.set=function(e,t){var i=this.__data__,n=tn(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},Wi.prototype.clear=function(){this.size=0,this.__data__={hash:new qi,map:new(Ai||Hi),string:new qi}},Wi.prototype.delete=function(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t},Wi.prototype.get=function(e){return da(this,e).get(e)},Wi.prototype.has=function(e){return da(this,e).has(e)},Wi.prototype.set=function(e,t){var i=da(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Ki.prototype.add=Ki.prototype.push=function(e){return this.__data__.set(e,a),this},Ki.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.clear=function(){this.__data__=new Hi,this.size=0},Gi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Gi.prototype.get=function(e){return this.__data__.get(e)},Gi.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Hi){var n=i.__data__;if(!Ai||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Wi(n)}return i.set(e,t),this.size=i.size,this};var pn=Us(vn),mn=Us(wn,!0);function fn(e,t){var i=!0;return pn(e,(function(e,n,s){return i=!!t(e,n,s)})),i}function hn(e,t,i){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===n?o==o&&!oo(o):i(o,c)))var c=o,d=r}return d}function gn(e,t){var i=[];return pn(e,(function(e,n,s){t(e,n,s)&&i.push(e)})),i}function _n(e,t,i,n,s){var a=-1,r=e.length;for(i||(i=_a),s||(s=[]);++a<r;){var o=e[a];t>0&&i(o)?t>1?_n(o,t-1,i,n,s):Ct(s,o):n||(s[s.length]=o)}return s}var In=Os(),yn=Os(!0);function vn(e,t){return e&&In(e,t,No)}function wn(e,t){return e&&yn(e,t,No)}function bn(e,t){return Nt(t,(function(t){return Jr(e[t])}))}function En(e,t){for(var i=0,s=(t=ys(t,e)).length;null!=e&&i<s;)e=e[Pa(t[i++])];return i&&i==s?e:n}function An(e,t,i){var n=t(e);return Vr(e)?n:Ct(n,i(e))}function Sn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Ze&&Ze in xe(e)?function(e){var t=Ce.call(e,Ze),i=e[Ze];try{e[Ze]=n;var s=!0}catch(e){}var a=Me.call(e);s&&(t?e[Ze]=i:delete e[Ze]);return a}(e):function(e){return Me.call(e)}(e)}function xn(e,t){return e>t}function Tn(e,t){return null!=e&&Ce.call(e,t)}function Rn(e,t){return null!=e&&t in xe(e)}function kn(e,t,s){for(var a=s?Ut:Ft,r=e[0].length,o=e.length,c=o,d=i(o),l=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Ot(p,Zt(t))),l=Ii(p.length,l),d[c]=!s&&(t||r>=120&&p.length>=120)?new Ki(c&&p):n}p=e[0];var m=-1,f=d[0];e:for(;++m<r&&u.length<l;){var h=p[m],g=t?t(h):h;if(h=s||0!==h?h:0,!(f?ei(f,g):a(u,g,s))){for(c=o;--c;){var _=d[c];if(!(_?ei(_,g):a(e[c],g,s)))continue e}f&&f.push(g),u.push(h)}}return u}function Ln(e,t,i){var s=null==(e=Ta(e,t=ys(t,e)))?e:e[Pa(Ya(t))];return null==s?n:xt(s,e,i)}function Nn(e){return eo(e)&&Sn(e)==_}function Fn(e,t,i,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,i,s,a,r){var o=Vr(e),c=Vr(t),d=o?I:fa(e),l=c?I:fa(t),u=(d=d==_?x:d)==x,p=(l=l==_?x:l)==x,m=d==l;if(m&&Kr(e)){if(!Kr(t))return!1;o=!0,u=!1}if(m&&!u)return r||(r=new Gi),o||co(e)?ta(e,t,i,s,a,r):function(e,t,i,n,s,a,r){switch(i){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U:return!(e.byteLength!=t.byteLength||!a(new qe(e),new qe(t)));case y:case v:case S:return zr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case R:case L:return e==t+"";case A:var o=oi;case k:var c=1&n;if(o||(o=li),e.size!=t.size&&!c)return!1;var d=r.get(e);if(d)return d==t;n|=2,r.set(e,t);var l=ta(o(e),o(t),n,s,a,r);return r.delete(e),l;case N:if(ji)return ji.call(e)==ji.call(t)}return!1}(e,t,d,i,s,a,r);if(!(1&i)){var f=u&&Ce.call(e,"__wrapped__"),h=p&&Ce.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,b=h?t.value():t;return r||(r=new Gi),a(g,b,i,s,r)}}if(!m)return!1;return r||(r=new Gi),function(e,t,i,s,a,r){var o=1&i,c=na(e),d=c.length,l=na(t),u=l.length;if(d!=u&&!o)return!1;var p=d;for(;p--;){var m=c[p];if(!(o?m in t:Ce.call(t,m)))return!1}var f=r.get(e),h=r.get(t);if(f&&h)return f==t&&h==e;var g=!0;r.set(e,t),r.set(t,e);var _=o;for(;++p<d;){var I=e[m=c[p]],y=t[m];if(s)var v=o?s(y,I,m,t,e,r):s(I,y,m,e,t,r);if(!(v===n?I===y||a(I,y,i,s,r):v)){g=!1;break}_||(_="constructor"==m)}if(g&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,i,s,a,r)}(e,t,i,s,Fn,a))}function Un(e,t,i,s){var a=i.length,r=a,o=!s;if(null==e)return!r;for(e=xe(e);a--;){var c=i[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var d=(c=i[a])[0],l=e[d],u=c[1];if(o&&c[2]){if(l===n&&!(d in e))return!1}else{var p=new Gi;if(s)var m=s(l,u,d,e,t,p);if(!(m===n?Fn(u,l,3,s,p):m))return!1}}return!0}function On(e){return!(!Xr(e)||(t=e,je&&je in t))&&(Jr(e)?Be:_e).test(ja(e));var t}function Cn(e){return"function"==typeof e?e:null==e?nc:"object"==typeof e?Vr(e)?Bn(e[0],e[1]):Dn(e):pc(e)}function Pn(e){if(!Ea(e))return Kt(e);var t=[];for(var i in xe(e))Ce.call(e,i)&&"constructor"!=i&&t.push(i);return t}function jn(e){if(!Xr(e))return function(e){var t=[];if(null!=e)for(var i in xe(e))t.push(i);return t}(e);var t=Ea(e),i=[];for(var n in e)("constructor"!=n||!t&&Ce.call(e,n))&&i.push(n);return i}function Mn(e,t){return e<t}function zn(e,t){var n=-1,s=Hr(e)?i(e.length):[];return pn(e,(function(e,i,a){s[++n]=t(e,i,a)})),s}function Dn(e){var t=la(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(i){return i===e||Un(i,e,t)}}function Bn(e,t){return va(e)&&Aa(t)?Sa(Pa(e),t):function(i){var s=xo(i,e);return s===n&&s===t?To(i,e):Fn(t,s,3)}}function $n(e,t,i,s,a){e!==t&&In(t,(function(r,o){if(a||(a=new Gi),Xr(r))!function(e,t,i,s,a,r,o){var c=Ra(e,i),d=Ra(t,i),l=o.get(d);if(l)return void Xi(e,i,l);var u=r?r(c,d,i+"",e,t,o):n,p=u===n;if(p){var m=Vr(d),f=!m&&Kr(d),h=!m&&!f&&co(d);u=d,m||f||h?Vr(c)?u=c:Wr(c)?u=ks(c):f?(p=!1,u=Es(d,!0)):h?(p=!1,u=Ss(d,!0)):u=[]:no(d)||$r(d)?(u=c,$r(c)?u=_o(c):Xr(c)&&!Jr(c)||(u=ga(d))):p=!1}p&&(o.set(d,u),a(u,d,s,r,o),o.delete(d));Xi(e,i,u)}(e,t,o,i,$n,s,a);else{var c=s?s(Ra(e,o),r,o+"",e,t,a):n;c===n&&(c=r),Xi(e,o,c)}}),Fo)}function Vn(e,t){var i=e.length;if(i)return Ia(t+=t<0?i:0,i)?e[t]:n}function qn(e,t,i){t=t.length?Ot(t,(function(e){return Vr(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[nc];var n=-1;t=Ot(t,Zt(ca()));var s=zn(e,(function(e,i,s){var a=Ot(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(s,(function(e,t){return function(e,t,i){var n=-1,s=e.criteria,a=t.criteria,r=s.length,o=i.length;for(;++n<r;){var c=xs(s[n],a[n]);if(c)return n>=o?c:c*("desc"==i[n]?-1:1)}return e.index-t.index}(e,t,i)}))}function Hn(e,t,i){for(var n=-1,s=t.length,a={};++n<s;){var r=t[n],o=En(e,r);i(o,r)&&Xn(a,ys(r,e),o)}return a}function Wn(e,t,i,n){var s=n?Vt:$t,a=-1,r=t.length,o=e;for(e===t&&(t=ks(t)),i&&(o=Ot(e,Zt(i)));++a<r;)for(var c=0,d=t[a],l=i?i(d):d;(c=s(o,l,c,n))>-1;)o!==e&&Ye.call(o,c,1),Ye.call(e,c,1);return e}function Kn(e,t){for(var i=e?t.length:0,n=i-1;i--;){var s=t[i];if(i==n||s!==a){var a=s;Ia(s)?Ye.call(e,s,1):us(e,s)}}return e}function Gn(e,t){return e+ht(wi()*(t-e+1))}function Yn(e,t){var i="";if(!e||t<1||t>m)return i;do{t%2&&(i+=e),(t=ht(t/2))&&(e+=e)}while(t);return i}function Jn(e,t){return Na(xa(e,t,nc),e+"")}function Qn(e){return Ji(Do(e))}function Zn(e,t){var i=Do(e);return Oa(i,on(t,0,i.length))}function Xn(e,t,i,s){if(!Xr(e))return e;for(var a=-1,r=(t=ys(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var d=Pa(t[a]),l=i;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(a!=o){var u=c[d];(l=s?s(u,d,c):n)===n&&(l=Xr(u)?u:Ia(t[a+1])?[]:{})}en(c,d,l),c=c[d]}return e}var es=ki?function(e,t){return ki.set(e,t),e}:nc,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:nc;function is(e){return Oa(Do(e))}function ns(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=i(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var i;return pn(e,(function(e,n,s){return!(i=t(e,n,s))})),!!i}function as(e,t,i){var n=0,s=null==e?n:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;n<s;){var a=n+s>>>1,r=e[a];null!==r&&!oo(r)&&(i?r<=t:r<t)?n=a+1:s=a}return s}return rs(e,t,nc,i)}function rs(e,t,i,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=i(t))!=t,c=null===t,d=oo(t),l=t===n;a<r;){var u=ht((a+r)/2),p=i(e[u]),m=p!==n,f=null===p,h=p==p,g=oo(p);if(o)var _=s||h;else _=l?h&&(s||m):c?h&&m&&(s||!f):d?h&&m&&!f&&(s||!g):!f&&!g&&(s?p<=t:p<t);_?a=u+1:r=u}return Ii(r,4294967294)}function os(e,t){for(var i=-1,n=e.length,s=0,a=[];++i<n;){var r=e[i],o=t?t(r):r;if(!i||!zr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?f:+e}function ds(e){if("string"==typeof e)return e;if(Vr(e))return Ot(e,ds)+"";if(oo(e))return Mi?Mi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ls(e,t,i){var n=-1,s=Ft,a=e.length,r=!0,o=[],c=o;if(i)r=!1,s=Ut;else if(a>=200){var d=t?null:Ys(e);if(d)return li(d);r=!1,s=ei,c=new Ki}else c=t?[]:o;e:for(;++n<a;){var l=e[n],u=t?t(l):l;if(l=i||0!==l?l:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(l)}else s(c,u,i)||(c!==o&&c.push(u),o.push(l))}return o}function us(e,t){return null==(e=Ta(e,t=ys(t,e)))||delete e[Pa(Ya(t))]}function ps(e,t,i,n){return Xn(e,t,i(En(e,t)),n)}function ms(e,t,i,n){for(var s=e.length,a=n?s:-1;(n?a--:++a<s)&&t(e[a],a,e););return i?ns(e,n?0:a,n?a+1:s):ns(e,n?a+1:0,n?s:a)}function fs(e,t){var i=e;return i instanceof Vi&&(i=i.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))}),i)}function hs(e,t,n){var s=e.length;if(s<2)return s?ls(e[0]):[];for(var a=-1,r=i(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=un(r[a]||o,e[c],t,n));return ls(_n(r,1),t,n)}function gs(e,t,i){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:n;i(o,e[s],c)}return o}function _s(e){return Wr(e)?e:[]}function Is(e){return"function"==typeof e?e:nc}function ys(e,t){return Vr(e)?e:va(e,t)?[e]:Ca(Io(e))}var vs=Jn;function ws(e,t,i){var s=e.length;return i=i===n?s:i,!t&&i>=s?e:ns(e,t,i)}var bs=nt||function(e){return ft.clearTimeout(e)};function Es(e,t){if(t)return e.slice();var i=e.length,n=He?He(i):new e.constructor(i);return e.copy(n),n}function As(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ss(e,t){var i=t?As(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function xs(e,t){if(e!==t){var i=e!==n,s=null===e,a=e==e,r=oo(e),o=t!==n,c=null===t,d=t==t,l=oo(t);if(!c&&!l&&!r&&e>t||r&&o&&d&&!c&&!l||s&&o&&d||!i&&d||!a)return 1;if(!s&&!r&&!l&&e<t||l&&i&&a&&!s&&!r||c&&i&&a||!o&&a||!d)return-1}return 0}function Ts(e,t,n,s){for(var a=-1,r=e.length,o=n.length,c=-1,d=t.length,l=_i(r-o,0),u=i(d+l),p=!s;++c<d;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[n[a]]=e[a]);for(;l--;)u[c++]=e[a++];return u}function Rs(e,t,n,s){for(var a=-1,r=e.length,o=-1,c=n.length,d=-1,l=t.length,u=_i(r-c,0),p=i(u+l),m=!s;++a<u;)p[a]=e[a];for(var f=a;++d<l;)p[f+d]=t[d];for(;++o<c;)(m||a<r)&&(p[f+n[o]]=e[a++]);return p}function ks(e,t){var n=-1,s=e.length;for(t||(t=i(s));++n<s;)t[n]=e[n];return t}function Ls(e,t,i,s){var a=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var c=t[r],d=s?s(i[c],e[c],c,i,e):n;d===n&&(d=e[c]),a?an(i,c,d):en(i,c,d)}return i}function Ns(e,t){return function(i,n){var s=Vr(i)?Tt:nn,a=t?t():{};return s(i,e,ca(n,2),a)}}function Fs(e){return Jn((function(t,i){var s=-1,a=i.length,r=a>1?i[a-1]:n,o=a>2?i[2]:n;for(r=e.length>3&&"function"==typeof r?(a--,r):n,o&&ya(i[0],i[1],o)&&(r=a<3?n:r,a=1),t=xe(t);++s<a;){var c=i[s];c&&e(t,c,s,r)}return t}))}function Us(e,t){return function(i,n){if(null==i)return i;if(!Hr(i))return e(i,n);for(var s=i.length,a=t?s:-1,r=xe(i);(t?a--:++a<s)&&!1!==n(r[a],a,r););return i}}function Os(e){return function(t,i,n){for(var s=-1,a=xe(t),r=n(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===i(a[c],c,a))break}return t}}function Cs(e){return function(t){var i=ri(t=Io(t))?mi(t):n,s=i?i[0]:t.charAt(0),a=i?ws(i,1).join(""):t.slice(1);return s[e]()+a}}function Ps(e){return function(t){return Pt(Qo(Vo(t).replace(Xe,"")),e,"")}}function js(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Di(e.prototype),n=e.apply(i,t);return Xr(n)?n:i}}function Ms(e){return function(t,i,s){var a=xe(t);if(!Hr(t)){var r=ca(i,3);t=No(t),i=function(e){return r(a[e],e,a)}}var o=e(t,i,s);return o>-1?a[r?t[o]:o]:n}}function zs(e){return ia((function(t){var i=t.length,a=i,r=$i.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new ke(s);if(r&&!c&&"wrapper"==ra(o))var c=new $i([],!0)}for(a=c?a:i;++a<i;){var d=ra(o=t[a]),l="wrapper"==d?aa(o):n;c=l&&wa(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ra(l[0])].apply(c,l[3]):1==o.length&&wa(o)?c[d]():c.thru(o)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Vr(n))return c.plant(n).value();for(var s=0,a=i?t[s].apply(this,e):n;++s<i;)a=t[s].call(this,a);return a}}))}function Ds(e,t,s,a,r,o,c,d,u,p){var m=t&l,f=1&t,h=2&t,g=24&t,_=512&t,I=h?n:js(e);return function l(){for(var y=arguments.length,v=i(y),w=y;w--;)v[w]=arguments[w];if(g)var b=oa(l),E=function(e,t){for(var i=e.length,n=0;i--;)e[i]===t&&++n;return n}(v,b);if(a&&(v=Ts(v,a,r,g)),o&&(v=Rs(v,o,c,g)),y-=E,g&&y<p){var A=di(v,b);return Ks(e,t,Ds,l.placeholder,s,v,A,d,u,p-y)}var S=f?s:this,x=h?S[e]:e;return y=v.length,d?v=function(e,t){var i=e.length,s=Ii(t.length,i),a=ks(e);for(;s--;){var r=t[s];e[s]=Ia(r,i)?a[r]:n}return e}(v,d):_&&y>1&&v.reverse(),m&&u<y&&(v.length=u),this&&this!==ft&&this instanceof l&&(x=I||js(x)),x.apply(S,v)}}function Bs(e,t){return function(i,n){return function(e,t,i,n){return vn(e,(function(e,s,a){t(n,i(e),s,a)})),n}(i,e,t(n),{})}}function $s(e,t){return function(i,s){var a;if(i===n&&s===n)return t;if(i!==n&&(a=i),s!==n){if(a===n)return s;"string"==typeof i||"string"==typeof s?(i=ds(i),s=ds(s)):(i=cs(i),s=cs(s)),a=e(i,s)}return a}}function Vs(e){return ia((function(t){return t=Ot(t,Zt(ca())),Jn((function(i){var n=this;return e(t,(function(e){return xt(e,n,i)}))}))}))}function qs(e,t){var i=(t=t===n?" ":ds(t)).length;if(i<2)return i?Yn(t,e):t;var s=Yn(t,mt(e/pi(t)));return ri(t)?ws(mi(s),0,e).join(""):s.slice(0,e)}function Hs(e){return function(t,s,a){return a&&"number"!=typeof a&&ya(t,s,a)&&(s=a=n),t=mo(t),s===n?(s=t,t=0):s=mo(s),function(e,t,n,s){for(var a=-1,r=_i(mt((t-e)/(n||1)),0),o=i(r);r--;)o[s?r:++a]=e,e+=n;return o}(t,s,a=a===n?t<s?1:-1:mo(a),e)}}function Ws(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=go(t),i=go(i)),e(t,i)}}function Ks(e,t,i,s,a,r,o,l,u,p){var m=8&t;t|=m?c:d,4&(t&=~(m?d:c))||(t&=-4);var f=[e,t,a,m?r:n,m?o:n,m?n:r,m?n:o,l,u,p],h=i.apply(n,f);return wa(e)&&ka(h,f),h.placeholder=s,Fa(h,e,t)}function Gs(e){var t=Se[e];return function(e,i){if(e=go(e),(i=null==i?0:Ii(fo(i),292))&&yt(e)){var n=(Io(e)+"e").split("e");return+((n=(Io(t(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return t(e)}}var Ys=xi&&1/li(new xi([,-0]))[1]==p?function(e){return new xi(e)}:cc;function Js(e){return function(t){var i=fa(t);return i==A?oi(t):i==k?ui(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qs(e,t,a,p,m,f,h,g){var _=2&t;if(!_&&"function"!=typeof e)throw new ke(s);var I=p?p.length:0;if(I||(t&=-97,p=m=n),h=h===n?h:_i(fo(h),0),g=g===n?g:fo(g),I-=m?m.length:0,t&d){var y=p,v=m;p=m=n}var w=_?n:aa(e),b=[e,t,a,p,m,y,v,f,h,g];if(w&&function(e,t){var i=e[1],n=t[1],s=i|n,a=s<131,o=n==l&&8==i||n==l&&i==u&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==i;if(!a&&!o)return e;1&n&&(e[2]=t[2],s|=1&i?0:4);var c=t[3];if(c){var d=e[3];e[3]=d?Ts(d,c,t[4]):c,e[4]=d?di(e[3],r):t[4]}(c=t[5])&&(d=e[5],e[5]=d?Rs(d,c,t[6]):c,e[6]=d?di(e[5],r):t[6]);(c=t[7])&&(e[7]=c);n&l&&(e[8]=null==e[8]?t[8]:Ii(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(b,w),e=b[0],t=b[1],a=b[2],p=b[3],m=b[4],!(g=b[9]=b[9]===n?_?0:e.length:_i(b[9]-I,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==o?function(e,t,s){var a=js(e);return function r(){for(var o=arguments.length,c=i(o),d=o,l=oa(r);d--;)c[d]=arguments[d];var u=o<3&&c[0]!==l&&c[o-1]!==l?[]:di(c,l);return(o-=u.length)<s?Ks(e,t,Ds,r.placeholder,n,c,u,n,n,s-o):xt(this&&this!==ft&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||m.length?Ds.apply(n,b):function(e,t,n,s){var a=1&t,r=js(e);return function t(){for(var o=-1,c=arguments.length,d=-1,l=s.length,u=i(l+c),p=this&&this!==ft&&this instanceof t?r:e;++d<l;)u[d]=s[d];for(;c--;)u[d++]=arguments[++o];return xt(p,a?n:this,u)}}(e,t,a,p);else var E=function(e,t,i){var n=1&t,s=js(e);return function t(){return(this&&this!==ft&&this instanceof t?s:e).apply(n?i:this,arguments)}}(e,t,a);return Fa((w?es:ka)(E,b),e,t)}function Zs(e,t,i,s){return e===n||zr(e,Fe[i])&&!Ce.call(s,i)?t:e}function Xs(e,t,i,s,a,r){return Xr(e)&&Xr(t)&&(r.set(t,e),$n(e,t,n,Xs,r),r.delete(t)),e}function ea(e){return no(e)?n:e}function ta(e,t,i,s,a,r){var o=1&i,c=e.length,d=t.length;if(c!=d&&!(o&&d>c))return!1;var l=r.get(e),u=r.get(t);if(l&&u)return l==t&&u==e;var p=-1,m=!0,f=2&i?new Ki:n;for(r.set(e,t),r.set(t,e);++p<c;){var h=e[p],g=t[p];if(s)var _=o?s(g,h,p,t,e,r):s(h,g,p,e,t,r);if(_!==n){if(_)continue;m=!1;break}if(f){if(!Mt(t,(function(e,t){if(!ei(f,t)&&(h===e||a(h,e,i,s,r)))return f.push(t)}))){m=!1;break}}else if(h!==g&&!a(h,g,i,s,r)){m=!1;break}}return r.delete(e),r.delete(t),m}function ia(e){return Na(xa(e,n,qa),e+"")}function na(e){return An(e,No,pa)}function sa(e){return An(e,Fo,ma)}var aa=ki?function(e){return ki.get(e)}:cc;function ra(e){for(var t=e.name+"",i=Li[t],n=Ce.call(Li,t)?i.length:0;n--;){var s=i[n],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Ce.call(zi,"placeholder")?zi:e).placeholder}function ca(){var e=zi.iteratee||sc;return e=e===sc?Cn:e,arguments.length?e(arguments[0],arguments[1]):e}function da(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function la(e){for(var t=No(e),i=t.length;i--;){var n=t[i],s=e[n];t[i]=[n,s,Aa(s)]}return t}function ua(e,t){var i=function(e,t){return null==e?n:e[t]}(e,t);return On(i)?i:n}var pa=gt?function(e){return null==e?[]:(e=xe(e),Nt(gt(e),(function(t){return Ge.call(e,t)})))}:hc,ma=gt?function(e){for(var t=[];e;)Ct(t,pa(e)),e=We(e);return t}:hc,fa=Sn;function ha(e,t,i){for(var n=-1,s=(t=ys(t,e)).length,a=!1;++n<s;){var r=Pa(t[n]);if(!(a=null!=e&&i(e,r)))break;e=e[r]}return a||++n!=s?a:!!(s=null==e?0:e.length)&&Zr(s)&&Ia(r,s)&&(Vr(e)||$r(e))}function ga(e){return"function"!=typeof e.constructor||Ea(e)?{}:Di(We(e))}function _a(e){return Vr(e)||$r(e)||!!(Je&&e&&e[Je])}function Ia(e,t){var i=typeof e;return!!(t=null==t?m:t)&&("number"==i||"symbol"!=i&&ye.test(e))&&e>-1&&e%1==0&&e<t}function ya(e,t,i){if(!Xr(i))return!1;var n=typeof t;return!!("number"==n?Hr(i)&&Ia(t,i.length):"string"==n&&t in i)&&zr(i[t],e)}function va(e,t){if(Vr(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in xe(t))}function wa(e){var t=ra(e),i=zi[t];if("function"!=typeof i||!(t in Vi.prototype))return!1;if(e===i)return!0;var n=aa(i);return!!n&&e===n[0]}(Ei&&fa(new Ei(new ArrayBuffer(1)))!=O||Ai&&fa(new Ai)!=A||Si&&fa(Si.resolve())!=T||xi&&fa(new xi)!=k||Ti&&fa(new Ti)!=F)&&(fa=function(e){var t=Sn(e),i=t==x?e.constructor:n,s=i?ja(i):"";if(s)switch(s){case Ni:return O;case Fi:return A;case Ui:return T;case Oi:return k;case Ci:return F}return t});var ba=Ue?Jr:gc;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Fe)}function Aa(e){return e==e&&!Xr(e)}function Sa(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in xe(i)))}}function xa(e,t,s){return t=_i(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,r=_i(n.length-t,0),o=i(r);++a<r;)o[a]=n[t+a];a=-1;for(var c=i(t+1);++a<t;)c[a]=n[a];return c[t]=s(o),xt(e,this,c)}}function Ta(e,t){return t.length<2?e:En(e,ns(t,0,-1))}function Ra(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ka=Ua(es),La=pt||function(e,t){return ft.setTimeout(e,t)},Na=Ua(ts);function Fa(e,t,i){var n=t+"";return Na(e,function(e,t){var i=t.length;if(!i)return e;var n=i-1;return t[n]=(i>1?"& ":"")+t[n],t=t.join(i>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Rt(g,(function(i){var n="_."+i[0];t&i[1]&&!Ft(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(de):[]}(n),i)))}function Ua(e){var t=0,i=0;return function(){var s=yi(),a=16-(s-i);if(i=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Oa(e,t){var i=-1,s=e.length,a=s-1;for(t=t===n?s:t;++i<t;){var r=Gn(i,a),o=e[r];e[r]=e[i],e[i]=o}return e.length=t,e}var Ca=function(e){var t=Ur(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,i,n,s){t.push(n?s.replace(pe,"$1"):i||e)})),t}));function Pa(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ma(e){if(e instanceof Vi)return e.clone();var t=new $i(e.__wrapped__,e.__chain__);return t.__actions__=ks(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var za=Jn((function(e,t){return Wr(e)?un(e,_n(t,1,Wr,!0)):[]})),Da=Jn((function(e,t){var i=Ya(t);return Wr(i)&&(i=n),Wr(e)?un(e,_n(t,1,Wr,!0),ca(i,2)):[]})),Ba=Jn((function(e,t){var i=Ya(t);return Wr(i)&&(i=n),Wr(e)?un(e,_n(t,1,Wr,!0),n,i):[]}));function $a(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var s=null==i?0:fo(i);return s<0&&(s=_i(n+s,0)),Bt(e,ca(t,3),s)}function Va(e,t,i){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return i!==n&&(a=fo(i),a=i<0?_i(s+a,0):Ii(a,s-1)),Bt(e,ca(t,3),a,!0)}function qa(e){return(null==e?0:e.length)?_n(e,1):[]}function Ha(e){return e&&e.length?e[0]:n}var Wa=Jn((function(e){var t=Ot(e,_s);return t.length&&t[0]===e[0]?kn(t):[]})),Ka=Jn((function(e){var t=Ya(e),i=Ot(e,_s);return t===Ya(i)?t=n:i.pop(),i.length&&i[0]===e[0]?kn(i,ca(t,2)):[]})),Ga=Jn((function(e){var t=Ya(e),i=Ot(e,_s);return(t="function"==typeof t?t:n)&&i.pop(),i.length&&i[0]===e[0]?kn(i,n,t):[]}));function Ya(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ja=Jn(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Wn(e,t):e}var Za=ia((function(e,t){var i=null==e?0:e.length,n=rn(e,t);return Kn(e,Ot(t,(function(e){return Ia(e,i)?+e:e})).sort(xs)),n}));function Xa(e){return null==e?e:bi.call(e)}var er=Jn((function(e){return ls(_n(e,1,Wr,!0))})),tr=Jn((function(e){var t=Ya(e);return Wr(t)&&(t=n),ls(_n(e,1,Wr,!0),ca(t,2))})),ir=Jn((function(e){var t=Ya(e);return t="function"==typeof t?t:n,ls(_n(e,1,Wr,!0),n,t)}));function nr(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Wr(e))return t=_i(e.length,t),!0})),Jt(t,(function(t){return Ot(e,Wt(t))}))}function sr(e,t){if(!e||!e.length)return[];var i=nr(e);return null==t?i:Ot(i,(function(e){return xt(t,n,e)}))}var ar=Jn((function(e,t){return Wr(e)?un(e,t):[]})),rr=Jn((function(e){return hs(Nt(e,Wr))})),or=Jn((function(e){var t=Ya(e);return Wr(t)&&(t=n),hs(Nt(e,Wr),ca(t,2))})),cr=Jn((function(e){var t=Ya(e);return t="function"==typeof t?t:n,hs(Nt(e,Wr),n,t)})),dr=Jn(nr);var lr=Jn((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,sr(e,i)}));function ur(e){var t=zi(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var mr=ia((function(e){var t=e.length,i=t?e[0]:0,s=this.__wrapped__,a=function(t){return rn(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vi&&Ia(i)?((s=s.slice(i,+i+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:n}),new $i(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var fr=Ns((function(e,t,i){Ce.call(e,i)?++e[i]:an(e,i,1)}));var hr=Ms($a),gr=Ms(Va);function _r(e,t){return(Vr(e)?Rt:pn)(e,ca(t,3))}function Ir(e,t){return(Vr(e)?kt:mn)(e,ca(t,3))}var yr=Ns((function(e,t,i){Ce.call(e,i)?e[i].push(t):an(e,i,[t])}));var vr=Jn((function(e,t,n){var s=-1,a="function"==typeof t,r=Hr(e)?i(e.length):[];return pn(e,(function(e){r[++s]=a?xt(t,e,n):Ln(e,t,n)})),r})),wr=Ns((function(e,t,i){an(e,i,t)}));function br(e,t){return(Vr(e)?Ot:zn)(e,ca(t,3))}var Er=Ns((function(e,t,i){e[i?0:1].push(t)}),(function(){return[[],[]]}));var Ar=Jn((function(e,t){if(null==e)return[];var i=t.length;return i>1&&ya(e,t[0],t[1])?t=[]:i>2&&ya(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,_n(t,1),[])})),Sr=dt||function(){return ft.Date.now()};function xr(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,Qs(e,l,n,n,n,n,t)}function Tr(e,t){var i;if("function"!=typeof t)throw new ke(s);return e=fo(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Rr=Jn((function(e,t,i){var n=1;if(i.length){var s=di(i,oa(Rr));n|=c}return Qs(e,n,t,i,s)})),kr=Jn((function(e,t,i){var n=3;if(i.length){var s=di(i,oa(kr));n|=c}return Qs(t,n,e,i,s)}));function Lr(e,t,i){var a,r,o,c,d,l,u=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw new ke(s);function h(t){var i=a,s=r;return a=r=n,u=t,c=e.apply(s,i)}function g(e){var i=e-l;return l===n||i>=t||i<0||m&&e-u>=o}function _(){var e=Sr();if(g(e))return I(e);d=La(_,function(e){var i=t-(e-l);return m?Ii(i,o-(e-u)):i}(e))}function I(e){return d=n,f&&a?h(e):(a=r=n,c)}function y(){var e=Sr(),i=g(e);if(a=arguments,r=this,l=e,i){if(d===n)return function(e){return u=e,d=La(_,t),p?h(e):c}(l);if(m)return bs(d),d=La(_,t),h(l)}return d===n&&(d=La(_,t)),c}return t=go(t)||0,Xr(i)&&(p=!!i.leading,o=(m="maxWait"in i)?_i(go(i.maxWait)||0,t):o,f="trailing"in i?!!i.trailing:f),y.cancel=function(){d!==n&&bs(d),u=0,a=l=r=d=n},y.flush=function(){return d===n?c:I(Sr())},y}var Nr=Jn((function(e,t){return ln(e,1,t)})),Fr=Jn((function(e,t,i){return ln(e,go(t)||0,i)}));function Ur(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(s);var i=function(){var n=arguments,s=t?t.apply(this,n):n[0],a=i.cache;if(a.has(s))return a.get(s);var r=e.apply(this,n);return i.cache=a.set(s,r)||a,r};return i.cache=new(Ur.Cache||Wi),i}function Or(e){if("function"!=typeof e)throw new ke(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ur.Cache=Wi;var Cr=vs((function(e,t){var i=(t=1==t.length&&Vr(t[0])?Ot(t[0],Zt(ca())):Ot(_n(t,1),Zt(ca()))).length;return Jn((function(n){for(var s=-1,a=Ii(n.length,i);++s<a;)n[s]=t[s].call(this,n[s]);return xt(e,this,n)}))})),Pr=Jn((function(e,t){var i=di(t,oa(Pr));return Qs(e,c,n,t,i)})),jr=Jn((function(e,t){var i=di(t,oa(jr));return Qs(e,d,n,t,i)})),Mr=ia((function(e,t){return Qs(e,u,n,n,n,t)}));function zr(e,t){return e===t||e!=e&&t!=t}var Dr=Ws(xn),Br=Ws((function(e,t){return e>=t})),$r=Nn(function(){return arguments}())?Nn:function(e){return eo(e)&&Ce.call(e,"callee")&&!Ge.call(e,"callee")},Vr=i.isArray,qr=vt?Zt(vt):function(e){return eo(e)&&Sn(e)==U};function Hr(e){return null!=e&&Zr(e.length)&&!Jr(e)}function Wr(e){return eo(e)&&Hr(e)}var Kr=It||gc,Gr=wt?Zt(wt):function(e){return eo(e)&&Sn(e)==v};function Yr(e){if(!eo(e))return!1;var t=Sn(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!no(e)}function Jr(e){if(!Xr(e))return!1;var t=Sn(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qr(e){return"number"==typeof e&&e==fo(e)}function Zr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function Xr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=bt?Zt(bt):function(e){return eo(e)&&fa(e)==A};function io(e){return"number"==typeof e||eo(e)&&Sn(e)==S}function no(e){if(!eo(e)||Sn(e)!=x)return!1;var t=We(e);if(null===t)return!0;var i=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Oe.call(i)==ze}var so=Et?Zt(Et):function(e){return eo(e)&&Sn(e)==R};var ao=At?Zt(At):function(e){return eo(e)&&fa(e)==k};function ro(e){return"string"==typeof e||!Vr(e)&&eo(e)&&Sn(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Sn(e)==N}var co=St?Zt(St):function(e){return eo(e)&&Zr(e.length)&&!!ot[Sn(e)]};var lo=Ws(Mn),uo=Ws((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Hr(e))return ro(e)?mi(e):ks(e);if(Qe&&e[Qe])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[Qe]());var t=fa(e);return(t==A?oi:t==k?li:Do)(e)}function mo(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fo(e){var t=mo(e),i=t%1;return t==t?i?t-i:t:0}function ho(e){return e?on(fo(e),0,h):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Xr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var i=ge.test(e);return i||Ie.test(e)?ut(e.slice(2),i?2:8):he.test(e)?f:+e}function _o(e){return Ls(e,Fo(e))}function Io(e){return null==e?"":ds(e)}var yo=Fs((function(e,t){if(Ea(t)||Hr(t))Ls(t,No(t),e);else for(var i in t)Ce.call(t,i)&&en(e,i,t[i])})),vo=Fs((function(e,t){Ls(t,Fo(t),e)})),wo=Fs((function(e,t,i,n){Ls(t,Fo(t),e,n)})),bo=Fs((function(e,t,i,n){Ls(t,No(t),e,n)})),Eo=ia(rn);var Ao=Jn((function(e,t){e=xe(e);var i=-1,s=t.length,a=s>2?t[2]:n;for(a&&ya(t[0],t[1],a)&&(s=1);++i<s;)for(var r=t[i],o=Fo(r),c=-1,d=o.length;++c<d;){var l=o[c],u=e[l];(u===n||zr(u,Fe[l])&&!Ce.call(e,l))&&(e[l]=r[l])}return e})),So=Jn((function(e){return e.push(n,Xs),xt(Oo,n,e)}));function xo(e,t,i){var s=null==e?n:En(e,t);return s===n?i:s}function To(e,t){return null!=e&&ha(e,t,Rn)}var Ro=Bs((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=i}),ec(nc)),ko=Bs((function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Ce.call(e,t)?e[t].push(i):e[t]=[i]}),ca),Lo=Jn(Ln);function No(e){return Hr(e)?Yi(e):Pn(e)}function Fo(e){return Hr(e)?Yi(e,!0):jn(e)}var Uo=Fs((function(e,t,i){$n(e,t,i)})),Oo=Fs((function(e,t,i,n){$n(e,t,i,n)})),Co=ia((function(e,t){var i={};if(null==e)return i;var n=!1;t=Ot(t,(function(t){return t=ys(t,e),n||(n=t.length>1),t})),Ls(e,sa(e),i),n&&(i=cn(i,7,ea));for(var s=t.length;s--;)us(i,t[s]);return i}));var Po=ia((function(e,t){return null==e?{}:function(e,t){return Hn(e,t,(function(t,i){return To(e,i)}))}(e,t)}));function jo(e,t){if(null==e)return{};var i=Ot(sa(e),(function(e){return[e]}));return t=ca(t),Hn(e,i,(function(e,i){return t(e,i[0])}))}var Mo=Js(No),zo=Js(Fo);function Do(e){return null==e?[]:Xt(e,No(e))}var Bo=Ps((function(e,t,i){return t=t.toLowerCase(),e+(i?$o(t):t)}));function $o(e){return Jo(Io(e).toLowerCase())}function Vo(e){return(e=Io(e))&&e.replace(ve,ni).replace(et,"")}var qo=Ps((function(e,t,i){return e+(i?"-":"")+t.toLowerCase()})),Ho=Ps((function(e,t,i){return e+(i?" ":"")+t.toLowerCase()})),Wo=Cs("toLowerCase");var Ko=Ps((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));var Go=Ps((function(e,t,i){return e+(i?" ":"")+Jo(t)}));var Yo=Ps((function(e,t,i){return e+(i?" ":"")+t.toUpperCase()})),Jo=Cs("toUpperCase");function Qo(e,t,i){return e=Io(e),(t=i?n:t)===n?function(e){return st.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Zo=Jn((function(e,t){try{return xt(e,n,t)}catch(e){return Yr(e)?e:new Ee(e)}})),Xo=ia((function(e,t){return Rt(t,(function(t){t=Pa(t),an(e,t,Rr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=zs(),ic=zs(!0);function nc(e){return e}function sc(e){return Cn("function"==typeof e?e:cn(e,1))}var ac=Jn((function(e,t){return function(i){return Ln(i,e,t)}})),rc=Jn((function(e,t){return function(i){return Ln(e,i,t)}}));function oc(e,t,i){var n=No(t),s=bn(t,n);null!=i||Xr(t)&&(s.length||!n.length)||(i=t,t=e,e=this,s=bn(t,No(t)));var a=!(Xr(i)&&"chain"in i&&!i.chain),r=Jr(e);return Rt(s,(function(i){var n=t[i];e[i]=n,r&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=ks(this.__actions__)).push({func:n,args:arguments,thisArg:e}),i.__chain__=t,i}return n.apply(e,Ct([this.value()],arguments))})})),e}function cc(){}var dc=Vs(Ot),lc=Vs(Lt),uc=Vs(Mt);function pc(e){return va(e)?Wt(Pa(e)):function(e){return function(t){return En(t,e)}}(e)}var mc=Hs(),fc=Hs(!0);function hc(){return[]}function gc(){return!1}var _c=$s((function(e,t){return e+t}),0),Ic=Gs("ceil"),yc=$s((function(e,t){return e/t}),1),vc=Gs("floor");var wc,bc=$s((function(e,t){return e*t}),1),Ec=Gs("round"),Ac=$s((function(e,t){return e-t}),0);return zi.after=function(e,t){if("function"!=typeof t)throw new ke(s);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},zi.ary=xr,zi.assign=yo,zi.assignIn=vo,zi.assignInWith=wo,zi.assignWith=bo,zi.at=Eo,zi.before=Tr,zi.bind=Rr,zi.bindAll=Xo,zi.bindKey=kr,zi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vr(e)?e:[e]},zi.chain=ur,zi.chunk=function(e,t,s){t=(s?ya(e,t,s):t===n)?1:_i(fo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=i(mt(a/t));r<a;)c[o++]=ns(e,r,r+=t);return c},zi.compact=function(e){for(var t=-1,i=null==e?0:e.length,n=0,s=[];++t<i;){var a=e[t];a&&(s[n++]=a)}return s},zi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ct(Vr(n)?ks(n):[n],_n(t,1))},zi.cond=function(e){var t=null==e?0:e.length,i=ca();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new ke(s);return[i(e[0]),e[1]]})):[],Jn((function(i){for(var n=-1;++n<t;){var s=e[n];if(xt(s[0],this,i))return xt(s[1],this,i)}}))},zi.conforms=function(e){return function(e){var t=No(e);return function(i){return dn(i,e,t)}}(cn(e,1))},zi.constant=ec,zi.countBy=fr,zi.create=function(e,t){var i=Di(e);return null==t?i:sn(i,t)},zi.curry=function e(t,i,s){var a=Qs(t,8,n,n,n,n,n,i=s?n:i);return a.placeholder=e.placeholder,a},zi.curryRight=function e(t,i,s){var a=Qs(t,o,n,n,n,n,n,i=s?n:i);return a.placeholder=e.placeholder,a},zi.debounce=Lr,zi.defaults=Ao,zi.defaultsDeep=So,zi.defer=Nr,zi.delay=Fr,zi.difference=za,zi.differenceBy=Da,zi.differenceWith=Ba,zi.drop=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,(t=i||t===n?1:fo(t))<0?0:t,s):[]},zi.dropRight=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,0,(t=s-(t=i||t===n?1:fo(t)))<0?0:t):[]},zi.dropRightWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!0,!0):[]},zi.dropWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!0):[]},zi.fill=function(e,t,i,s){var a=null==e?0:e.length;return a?(i&&"number"!=typeof i&&ya(e,t,i)&&(i=0,s=a),function(e,t,i,s){var a=e.length;for((i=fo(i))<0&&(i=-i>a?0:a+i),(s=s===n||s>a?a:fo(s))<0&&(s+=a),s=i>s?0:ho(s);i<s;)e[i++]=t;return e}(e,t,i,s)):[]},zi.filter=function(e,t){return(Vr(e)?Nt:gn)(e,ca(t,3))},zi.flatMap=function(e,t){return _n(br(e,t),1)},zi.flatMapDeep=function(e,t){return _n(br(e,t),p)},zi.flatMapDepth=function(e,t,i){return i=i===n?1:fo(i),_n(br(e,t),i)},zi.flatten=qa,zi.flattenDeep=function(e){return(null==e?0:e.length)?_n(e,p):[]},zi.flattenDepth=function(e,t){return(null==e?0:e.length)?_n(e,t=t===n?1:fo(t)):[]},zi.flip=function(e){return Qs(e,512)},zi.flow=tc,zi.flowRight=ic,zi.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var s=e[t];n[s[0]]=s[1]}return n},zi.functions=function(e){return null==e?[]:bn(e,No(e))},zi.functionsIn=function(e){return null==e?[]:bn(e,Fo(e))},zi.groupBy=yr,zi.initial=function(e){return(null==e?0:e.length)?ns(e,0,-1):[]},zi.intersection=Wa,zi.intersectionBy=Ka,zi.intersectionWith=Ga,zi.invert=Ro,zi.invertBy=ko,zi.invokeMap=vr,zi.iteratee=sc,zi.keyBy=wr,zi.keys=No,zi.keysIn=Fo,zi.map=br,zi.mapKeys=function(e,t){var i={};return t=ca(t,3),vn(e,(function(e,n,s){an(i,t(e,n,s),e)})),i},zi.mapValues=function(e,t){var i={};return t=ca(t,3),vn(e,(function(e,n,s){an(i,n,t(e,n,s))})),i},zi.matches=function(e){return Dn(cn(e,1))},zi.matchesProperty=function(e,t){return Bn(e,cn(t,1))},zi.memoize=Ur,zi.merge=Uo,zi.mergeWith=Oo,zi.method=ac,zi.methodOf=rc,zi.mixin=oc,zi.negate=Or,zi.nthArg=function(e){return e=fo(e),Jn((function(t){return Vn(t,e)}))},zi.omit=Co,zi.omitBy=function(e,t){return jo(e,Or(ca(t)))},zi.once=function(e){return Tr(2,e)},zi.orderBy=function(e,t,i,s){return null==e?[]:(Vr(t)||(t=null==t?[]:[t]),Vr(i=s?n:i)||(i=null==i?[]:[i]),qn(e,t,i))},zi.over=dc,zi.overArgs=Cr,zi.overEvery=lc,zi.overSome=uc,zi.partial=Pr,zi.partialRight=jr,zi.partition=Er,zi.pick=Po,zi.pickBy=jo,zi.property=pc,zi.propertyOf=function(e){return function(t){return null==e?n:En(e,t)}},zi.pull=Ja,zi.pullAll=Qa,zi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Wn(e,t,ca(i,2)):e},zi.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Wn(e,t,n,i):e},zi.pullAt=Za,zi.range=mc,zi.rangeRight=fc,zi.rearg=Mr,zi.reject=function(e,t){return(Vr(e)?Nt:gn)(e,Or(ca(t,3)))},zi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var n=-1,s=[],a=e.length;for(t=ca(t,3);++n<a;){var r=e[n];t(r,n,e)&&(i.push(r),s.push(n))}return Kn(e,s),i},zi.rest=function(e,t){if("function"!=typeof e)throw new ke(s);return Jn(e,t=t===n?t:fo(t))},zi.reverse=Xa,zi.sampleSize=function(e,t,i){return t=(i?ya(e,t,i):t===n)?1:fo(t),(Vr(e)?Qi:Zn)(e,t)},zi.set=function(e,t,i){return null==e?e:Xn(e,t,i)},zi.setWith=function(e,t,i,s){return s="function"==typeof s?s:n,null==e?e:Xn(e,t,i,s)},zi.shuffle=function(e){return(Vr(e)?Zi:is)(e)},zi.slice=function(e,t,i){var s=null==e?0:e.length;return s?(i&&"number"!=typeof i&&ya(e,t,i)?(t=0,i=s):(t=null==t?0:fo(t),i=i===n?s:fo(i)),ns(e,t,i)):[]},zi.sortBy=Ar,zi.sortedUniq=function(e){return e&&e.length?os(e):[]},zi.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},zi.split=function(e,t,i){return i&&"number"!=typeof i&&ya(e,t,i)&&(t=i=n),(i=i===n?h:i>>>0)?(e=Io(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ds(t))&&ri(e)?ws(mi(e),0,i):e.split(t,i):[]},zi.spread=function(e,t){if("function"!=typeof e)throw new ke(s);return t=null==t?0:_i(fo(t),0),Jn((function(i){var n=i[t],s=ws(i,0,t);return n&&Ct(s,n),xt(e,this,s)}))},zi.tail=function(e){var t=null==e?0:e.length;return t?ns(e,1,t):[]},zi.take=function(e,t,i){return e&&e.length?ns(e,0,(t=i||t===n?1:fo(t))<0?0:t):[]},zi.takeRight=function(e,t,i){var s=null==e?0:e.length;return s?ns(e,(t=s-(t=i||t===n?1:fo(t)))<0?0:t,s):[]},zi.takeRightWhile=function(e,t){return e&&e.length?ms(e,ca(t,3),!1,!0):[]},zi.takeWhile=function(e,t){return e&&e.length?ms(e,ca(t,3)):[]},zi.tap=function(e,t){return t(e),e},zi.throttle=function(e,t,i){var n=!0,a=!0;if("function"!=typeof e)throw new ke(s);return Xr(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),Lr(e,t,{leading:n,maxWait:t,trailing:a})},zi.thru=pr,zi.toArray=po,zi.toPairs=Mo,zi.toPairsIn=zo,zi.toPath=function(e){return Vr(e)?Ot(e,Pa):oo(e)?[e]:ks(Ca(Io(e)))},zi.toPlainObject=_o,zi.transform=function(e,t,i){var n=Vr(e),s=n||Kr(e)||co(e);if(t=ca(t,4),null==i){var a=e&&e.constructor;i=s?n?new a:[]:Xr(e)&&Jr(a)?Di(We(e)):{}}return(s?Rt:vn)(e,(function(e,n,s){return t(i,e,n,s)})),i},zi.unary=function(e){return xr(e,1)},zi.union=er,zi.unionBy=tr,zi.unionWith=ir,zi.uniq=function(e){return e&&e.length?ls(e):[]},zi.uniqBy=function(e,t){return e&&e.length?ls(e,ca(t,2)):[]},zi.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ls(e,n,t):[]},zi.unset=function(e,t){return null==e||us(e,t)},zi.unzip=nr,zi.unzipWith=sr,zi.update=function(e,t,i){return null==e?e:ps(e,t,Is(i))},zi.updateWith=function(e,t,i,s){return s="function"==typeof s?s:n,null==e?e:ps(e,t,Is(i),s)},zi.values=Do,zi.valuesIn=function(e){return null==e?[]:Xt(e,Fo(e))},zi.without=ar,zi.words=Qo,zi.wrap=function(e,t){return Pr(Is(t),e)},zi.xor=rr,zi.xorBy=or,zi.xorWith=cr,zi.zip=dr,zi.zipObject=function(e,t){return gs(e||[],t||[],en)},zi.zipObjectDeep=function(e,t){return gs(e||[],t||[],Xn)},zi.zipWith=lr,zi.entries=Mo,zi.entriesIn=zo,zi.extend=vo,zi.extendWith=wo,oc(zi,zi),zi.add=_c,zi.attempt=Zo,zi.camelCase=Bo,zi.capitalize=$o,zi.ceil=Ic,zi.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=go(i))==i?i:0),t!==n&&(t=(t=go(t))==t?t:0),on(go(e),t,i)},zi.clone=function(e){return cn(e,4)},zi.cloneDeep=function(e){return cn(e,5)},zi.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:n)},zi.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:n)},zi.conformsTo=function(e,t){return null==t||dn(e,t,No(t))},zi.deburr=Vo,zi.defaultTo=function(e,t){return null==e||e!=e?t:e},zi.divide=yc,zi.endsWith=function(e,t,i){e=Io(e),t=ds(t);var s=e.length,a=i=i===n?s:on(fo(i),0,s);return(i-=t.length)>=0&&e.slice(i,a)==t},zi.eq=zr,zi.escape=function(e){return(e=Io(e))&&J.test(e)?e.replace(G,si):e},zi.escapeRegExp=function(e){return(e=Io(e))&&se.test(e)?e.replace(ne,"\\$&"):e},zi.every=function(e,t,i){var s=Vr(e)?Lt:fn;return i&&ya(e,t,i)&&(t=n),s(e,ca(t,3))},zi.find=hr,zi.findIndex=$a,zi.findKey=function(e,t){return Dt(e,ca(t,3),vn)},zi.findLast=gr,zi.findLastIndex=Va,zi.findLastKey=function(e,t){return Dt(e,ca(t,3),wn)},zi.floor=vc,zi.forEach=_r,zi.forEachRight=Ir,zi.forIn=function(e,t){return null==e?e:In(e,ca(t,3),Fo)},zi.forInRight=function(e,t){return null==e?e:yn(e,ca(t,3),Fo)},zi.forOwn=function(e,t){return e&&vn(e,ca(t,3))},zi.forOwnRight=function(e,t){return e&&wn(e,ca(t,3))},zi.get=xo,zi.gt=Dr,zi.gte=Br,zi.has=function(e,t){return null!=e&&ha(e,t,Tn)},zi.hasIn=To,zi.head=Ha,zi.identity=nc,zi.includes=function(e,t,i,n){e=Hr(e)?e:Do(e),i=i&&!n?fo(i):0;var s=e.length;return i<0&&(i=_i(s+i,0)),ro(e)?i<=s&&e.indexOf(t,i)>-1:!!s&&$t(e,t,i)>-1},zi.indexOf=function(e,t,i){var n=null==e?0:e.length;if(!n)return-1;var s=null==i?0:fo(i);return s<0&&(s=_i(n+s,0)),$t(e,t,s)},zi.inRange=function(e,t,i){return t=mo(t),i===n?(i=t,t=0):i=mo(i),function(e,t,i){return e>=Ii(t,i)&&e<_i(t,i)}(e=go(e),t,i)},zi.invoke=Lo,zi.isArguments=$r,zi.isArray=Vr,zi.isArrayBuffer=qr,zi.isArrayLike=Hr,zi.isArrayLikeObject=Wr,zi.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Sn(e)==y},zi.isBuffer=Kr,zi.isDate=Gr,zi.isElement=function(e){return eo(e)&&1===e.nodeType&&!no(e)},zi.isEmpty=function(e){if(null==e)return!0;if(Hr(e)&&(Vr(e)||"string"==typeof e||"function"==typeof e.splice||Kr(e)||co(e)||$r(e)))return!e.length;var t=fa(e);if(t==A||t==k)return!e.size;if(Ea(e))return!Pn(e).length;for(var i in e)if(Ce.call(e,i))return!1;return!0},zi.isEqual=function(e,t){return Fn(e,t)},zi.isEqualWith=function(e,t,i){var s=(i="function"==typeof i?i:n)?i(e,t):n;return s===n?Fn(e,t,n,i):!!s},zi.isError=Yr,zi.isFinite=function(e){return"number"==typeof e&&yt(e)},zi.isFunction=Jr,zi.isInteger=Qr,zi.isLength=Zr,zi.isMap=to,zi.isMatch=function(e,t){return e===t||Un(e,t,la(t))},zi.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,Un(e,t,la(t),i)},zi.isNaN=function(e){return io(e)&&e!=+e},zi.isNative=function(e){if(ba(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return On(e)},zi.isNil=function(e){return null==e},zi.isNull=function(e){return null===e},zi.isNumber=io,zi.isObject=Xr,zi.isObjectLike=eo,zi.isPlainObject=no,zi.isRegExp=so,zi.isSafeInteger=function(e){return Qr(e)&&e>=-9007199254740991&&e<=m},zi.isSet=ao,zi.isString=ro,zi.isSymbol=oo,zi.isTypedArray=co,zi.isUndefined=function(e){return e===n},zi.isWeakMap=function(e){return eo(e)&&fa(e)==F},zi.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Sn(e)},zi.join=function(e,t){return null==e?"":zt.call(e,t)},zi.kebabCase=qo,zi.last=Ya,zi.lastIndexOf=function(e,t,i){var s=null==e?0:e.length;if(!s)return-1;var a=s;return i!==n&&(a=(a=fo(i))<0?_i(s+a,0):Ii(a,s-1)),t==t?function(e,t,i){for(var n=i+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Bt(e,qt,a,!0)},zi.lowerCase=Ho,zi.lowerFirst=Wo,zi.lt=lo,zi.lte=uo,zi.max=function(e){return e&&e.length?hn(e,nc,xn):n},zi.maxBy=function(e,t){return e&&e.length?hn(e,ca(t,2),xn):n},zi.mean=function(e){return Ht(e,nc)},zi.meanBy=function(e,t){return Ht(e,ca(t,2))},zi.min=function(e){return e&&e.length?hn(e,nc,Mn):n},zi.minBy=function(e,t){return e&&e.length?hn(e,ca(t,2),Mn):n},zi.stubArray=hc,zi.stubFalse=gc,zi.stubObject=function(){return{}},zi.stubString=function(){return""},zi.stubTrue=function(){return!0},zi.multiply=bc,zi.nth=function(e,t){return e&&e.length?Vn(e,fo(t)):n},zi.noConflict=function(){return ft._===this&&(ft._=De),this},zi.noop=cc,zi.now=Sr,zi.pad=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return qs(ht(s),i)+e+qs(mt(s),i)},zi.padEnd=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;return t&&n<t?e+qs(t-n,i):e},zi.padStart=function(e,t,i){e=Io(e);var n=(t=fo(t))?pi(e):0;return t&&n<t?qs(t-n,i)+e:e},zi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),vi(Io(e).replace(ae,""),t||0)},zi.random=function(e,t,i){if(i&&"boolean"!=typeof i&&ya(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=mo(e),t===n?(t=e,e=0):t=mo(t)),e>t){var s=e;e=t,t=s}if(i||e%1||t%1){var a=wi();return Ii(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Gn(e,t)},zi.reduce=function(e,t,i){var n=Vr(e)?Pt:Gt,s=arguments.length<3;return n(e,ca(t,4),i,s,pn)},zi.reduceRight=function(e,t,i){var n=Vr(e)?jt:Gt,s=arguments.length<3;return n(e,ca(t,4),i,s,mn)},zi.repeat=function(e,t,i){return t=(i?ya(e,t,i):t===n)?1:fo(t),Yn(Io(e),t)},zi.replace=function(){var e=arguments,t=Io(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zi.result=function(e,t,i){var s=-1,a=(t=ys(t,e)).length;for(a||(a=1,e=n);++s<a;){var r=null==e?n:e[Pa(t[s])];r===n&&(s=a,r=i),e=Jr(r)?r.call(e):r}return e},zi.round=Ec,zi.runInContext=e,zi.sample=function(e){return(Vr(e)?Ji:Qn)(e)},zi.size=function(e){if(null==e)return 0;if(Hr(e))return ro(e)?pi(e):e.length;var t=fa(e);return t==A||t==k?e.size:Pn(e).length},zi.snakeCase=Ko,zi.some=function(e,t,i){var s=Vr(e)?Mt:ss;return i&&ya(e,t,i)&&(t=n),s(e,ca(t,3))},zi.sortedIndex=function(e,t){return as(e,t)},zi.sortedIndexBy=function(e,t,i){return rs(e,t,ca(i,2))},zi.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var n=as(e,t);if(n<i&&zr(e[n],t))return n}return-1},zi.sortedLastIndex=function(e,t){return as(e,t,!0)},zi.sortedLastIndexBy=function(e,t,i){return rs(e,t,ca(i,2),!0)},zi.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var i=as(e,t,!0)-1;if(zr(e[i],t))return i}return-1},zi.startCase=Go,zi.startsWith=function(e,t,i){return e=Io(e),i=null==i?0:on(fo(i),0,e.length),t=ds(t),e.slice(i,i+t.length)==t},zi.subtract=Ac,zi.sum=function(e){return e&&e.length?Yt(e,nc):0},zi.sumBy=function(e,t){return e&&e.length?Yt(e,ca(t,2)):0},zi.template=function(e,t,i){var s=zi.templateSettings;i&&ya(e,t,i)&&(t=n),e=Io(e),t=wo({},t,s,Zs);var a,r,o=wo({},t.imports,s.imports,Zs),c=No(o),d=Xt(o,c),l=0,u=t.interpolate||we,p="__p += '",m=Te((t.escape||we).source+"|"+u.source+"|"+(u===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(m,(function(t,i,n,s,o,c){return n||(n=s),p+=e.slice(l,c).replace(be,ai),i&&(a=!0,p+="' +\n__e("+i+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var h=Ce.call(t,"variable")&&t.variable;if(h){if(ue.test(h))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(q,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Zo((function(){return Ae(c,f+"return "+p).apply(n,d)}));if(g.source=p,Yr(g))throw g;return g},zi.times=function(e,t){if((e=fo(e))<1||e>m)return[];var i=h,n=Ii(e,h);t=ca(t),e-=h;for(var s=Jt(n,t);++i<e;)t(i);return s},zi.toFinite=mo,zi.toInteger=fo,zi.toLength=ho,zi.toLower=function(e){return Io(e).toLowerCase()},zi.toNumber=go,zi.toSafeInteger=function(e){return e?on(fo(e),-9007199254740991,m):0===e?e:0},zi.toString=Io,zi.toUpper=function(e){return Io(e).toUpperCase()},zi.trim=function(e,t,i){if((e=Io(e))&&(i||t===n))return Qt(e);if(!e||!(t=ds(t)))return e;var s=mi(e),a=mi(t);return ws(s,ti(s,a),ii(s,a)+1).join("")},zi.trimEnd=function(e,t,i){if((e=Io(e))&&(i||t===n))return e.slice(0,fi(e)+1);if(!e||!(t=ds(t)))return e;var s=mi(e);return ws(s,0,ii(s,mi(t))+1).join("")},zi.trimStart=function(e,t,i){if((e=Io(e))&&(i||t===n))return e.replace(ae,"");if(!e||!(t=ds(t)))return e;var s=mi(e);return ws(s,ti(s,mi(t))).join("")},zi.truncate=function(e,t){var i=30,s="...";if(Xr(t)){var a="separator"in t?t.separator:a;i="length"in t?fo(t.length):i,s="omission"in t?ds(t.omission):s}var r=(e=Io(e)).length;if(ri(e)){var o=mi(e);r=o.length}if(i>=r)return e;var c=i-pi(s);if(c<1)return s;var d=o?ws(o,0,c).join(""):e.slice(0,c);if(a===n)return d+s;if(o&&(c+=d.length-c),so(a)){if(e.slice(c).search(a)){var l,u=d;for(a.global||(a=Te(a.source,Io(fe.exec(a))+"g")),a.lastIndex=0;l=a.exec(u);)var p=l.index;d=d.slice(0,p===n?c:p)}}else if(e.indexOf(ds(a),c)!=c){var m=d.lastIndexOf(a);m>-1&&(d=d.slice(0,m))}return d+s},zi.unescape=function(e){return(e=Io(e))&&Y.test(e)?e.replace(K,hi):e},zi.uniqueId=function(e){var t=++Pe;return Io(e)+t},zi.upperCase=Yo,zi.upperFirst=Jo,zi.each=_r,zi.eachRight=Ir,zi.first=Ha,oc(zi,(wc={},vn(zi,(function(e,t){Ce.call(zi.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zi.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zi[e].placeholder=zi})),Rt(["drop","take"],(function(e,t){Vi.prototype[e]=function(i){i=i===n?1:_i(fo(i),0);var s=this.__filtered__&&!t?new Vi(this):this.clone();return s.__filtered__?s.__takeCount__=Ii(i,s.__takeCount__):s.__views__.push({size:Ii(i,h),type:e+(s.__dir__<0?"Right":"")}),s},Vi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var i=t+1,n=1==i||3==i;Vi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:i}),t.__filtered__=t.__filtered__||n,t}})),Rt(["head","last"],(function(e,t){var i="take"+(t?"Right":"");Vi.prototype[e]=function(){return this[i](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var i="drop"+(t?"":"Right");Vi.prototype[e]=function(){return this.__filtered__?new Vi(this):this[i](1)}})),Vi.prototype.compact=function(){return this.filter(nc)},Vi.prototype.find=function(e){return this.filter(e).head()},Vi.prototype.findLast=function(e){return this.reverse().find(e)},Vi.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Vi(this):this.map((function(i){return Ln(i,e,t)}))})),Vi.prototype.reject=function(e){return this.filter(Or(ca(e)))},Vi.prototype.slice=function(e,t){e=fo(e);var i=this;return i.__filtered__&&(e>0||t<0)?new Vi(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=fo(t))<0?i.dropRight(-t):i.take(t-e)),i)},Vi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vi.prototype.toArray=function(){return this.take(h)},vn(Vi.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=zi[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&(zi.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vi,d=o[0],l=c||Vr(t),u=function(e){var t=a.apply(zi,Ct([e],o));return s&&p?t[0]:t};l&&i&&"function"==typeof d&&1!=d.length&&(c=l=!1);var p=this.__chain__,m=!!this.__actions__.length,f=r&&!p,h=c&&!m;if(!r&&l){t=h?t:new Vi(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:n}),new $i(g,p)}return f&&h?e.apply(this,o):(g=this.thru(u),f?s?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);zi.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var s=this.value();return t.apply(Vr(s)?s:[],e)}return this[i]((function(i){return t.apply(Vr(i)?i:[],e)}))}})),vn(Vi.prototype,(function(e,t){var i=zi[t];if(i){var n=i.name+"";Ce.call(Li,n)||(Li[n]=[]),Li[n].push({name:t,func:i})}})),Li[Ds(n,2).name]=[{name:"wrapper",func:n}],Vi.prototype.clone=function(){var e=new Vi(this.__wrapped__);return e.__actions__=ks(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ks(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ks(this.__views__),e},Vi.prototype.reverse=function(){if(this.__filtered__){var e=new Vi(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vi.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=Vr(e),n=t<0,s=i?e.length:0,a=function(e,t,i){var n=-1,s=i.length;for(;++n<s;){var a=i[n],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=Ii(t,e+r);break;case"takeRight":e=_i(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,d=n?o:r-1,l=this.__iteratees__,u=l.length,p=0,m=Ii(c,this.__takeCount__);if(!i||!n&&s==c&&m==c)return fs(e,this.__actions__);var f=[];e:for(;c--&&p<m;){for(var h=-1,g=e[d+=t];++h<u;){var _=l[h],I=_.iteratee,y=_.type,v=I(g);if(2==y)g=v;else if(!v){if(1==y)continue e;break e}}f[p++]=g}return f},zi.prototype.at=mr,zi.prototype.chain=function(){return ur(this)},zi.prototype.commit=function(){return new $i(this.value(),this.__chain__)},zi.prototype.next=function(){this.__values__===n&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zi.prototype.plant=function(e){for(var t,i=this;i instanceof Bi;){var s=Ma(i);s.__index__=0,s.__values__=n,t?a.__wrapped__=s:t=s;var a=s;i=i.__wrapped__}return a.__wrapped__=e,t},zi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vi){var t=e;return this.__actions__.length&&(t=new Vi(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Xa],thisArg:n}),new $i(t,this.__chain__)}return this.thru(Xa)},zi.prototype.toJSON=zi.prototype.valueOf=zi.prototype.value=function(){return fs(this.__wrapped__,this.__actions__)},zi.prototype.first=zi.prototype.head,Qe&&(zi.prototype[Qe]=function(){return this}),zi}();gt?((gt.exports=gi)._=gi,ht._=gi):ft._=gi}).call(i)}(gd,gd.exports);var _d=gd.exports;const Id={type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("introductionNs")]:Od.audio[_d.camelCase("introduction")],prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("introduction.intro.text1")} </h3>\n <p> ${hc.t("introduction.intro.text2")} </p> \n <p> ${hc.t("introduction.intro.text3")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("introduction.intro.text4")} </h3>\n <p> ${hc.t("introduction.intro.text5")} </p> \n <p> ${hc.t("introduction.intro.text6")} </p> \n <p> ${hc.t("introduction.intro.text3")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},yd={timeline:[{type:Ec,stimulus:()=>Od.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${hc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${hc.t("practice.postPracticeIntro.text2")}</p>\n <p>${hc.t("practice.postPracticeIntro.text3")}</p>\n <p>${hc.t("practice.postPracticeIntro.text4")}</p>\n <p>${hc.t("practice.postPracticeIntro.text5")}</p>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`:""},{type:Ec,stimulus:()=>Od.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${hc.t("reminderTexts.remember")}</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${hc.t(ud?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")}</p>\n <img width="70%" src="${Od.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style="text-align:center;">${hc.t(ud?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")}</p>\n <img width="70%" src="${Od.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b>${hc.t("practice.postPracticeReminder.text3")}</b></p>\n <p><b>${hc.t("practice.postPracticeReminder.text4")}</b></p>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>ud?`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{r.session.set("indexTracking",0)}}]},vd={name:"fullscreen",parameters:{fullscreen_mode:{type:wr.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:wr.HTML_STRING,pretty_name:"Message",default:"<p>The experiment will switch to full screen mode when you press the button below</p>",array:!1},button_label:{type:wr.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:wr.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class wd{constructor(e){this.jsPsych=e,this.rt=null,this.start_time=0}trial(e,t){"undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element?this.endTrial(e,!1,t):t.fullscreen_mode?this.showDisplay(e,t):(this.exitFullScreen(),this.endTrial(e,!0,t))}showDisplay(e,t){e.innerHTML=`\n ${t.message}\n <button id="jspsych-fullscreen-btn" class="jspsych-btn">${t.button_label}</button>\n `,e.querySelector("#jspsych-fullscreen-btn").addEventListener("click",(()=>{this.rt=Math.round(performance.now()-this.start_time),this.enterFullScreen(),this.endTrial(e,!0,t)})),this.start_time=performance.now()}endTrial(e,t,i){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t,rt:this.rt};this.jsPsych.finishTrial(e)}),i.delay_after)}enterFullScreen(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}exitFullScreen(){(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}simulate(e,t,i,n){"data-only"==t&&(n(),this.simulate_data_only(e,i)),"visual"==t&&this.simulate_visual(e,i,n)}create_simulation_data(e,t){const i={success:!0,rt:this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)};return this.jsPsych.pluginAPI.mergeSimulationData(i,t)}simulate_data_only(e,t){const i=this.create_simulation_data(e,t);this.jsPsych.finishTrial(i)}simulate_visual(e,t,i){const n=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();!1===n.success?this.endTrial(s,!1,e):(this.trial(s,e),i(),this.jsPsych.pluginAPI.clickTarget(s.querySelector("#jspsych-fullscreen-btn"),n.rt))}}wd.info=vd;const bd={name:"html-multi-response",parameters:{stimulus:{type:wr.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:wr.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:wr.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:wr.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:wr.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:wr.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:wr.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:wr.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:wr.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:wr.BOOL,pretty_name:"Response ends trial",default:!0}}};class Ed{constructor(e){this.jsPsych=e}trial(e,t){var i='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",n=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?n=t.button_html:console.error("Error in html-multi-response plugin. The length of the button_html array does not equal the length of the button_choices array");else for(var s=0;s<t.button_choices.length;s++)n.push(t.button_html);i+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=n[s].replace(/%choice%/g,t.button_choices[s]);i+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+s+'" data-choice="'+s+'">'+a+"</div>"}i+="</div>",null!==t.prompt&&(i+=t.prompt),e.innerHTML=i;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(i){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},i)),t.response_ends_trial&&d()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{l(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const d=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var i={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(i)};function l(i){var n=performance.now(),s=Math.round(n-o);c.button=parseInt(i),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].setAttribute("disabled","disabled");t.response_ends_trial&&d()}null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-multi-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(d,t.trial_duration)}simulate(e,t,i,n){"data-only"==t&&(n(),this.simulate_data_only(e,i)),"visual"==t&&this.simulate_visual(e,i,n)}create_simulation_data(e,t){const i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},s=Math.random()<.5?i:n,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}simulate_data_only(e,t){const i=this.create_simulation_data(e,t);this.jsPsych.finishTrial(i)}simulate_visual(e,t,i){const n=this.create_simulation_data(e,t),s=this.jsPsych.getDisplayElement();this.trial(s,e),i(),null!==n.rt&&(null!==n.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${n.button_response}"] button`),n.rt):this.jsPsych.pluginAPI.pressKey(n.keyboard_response,n.rt))}}Ed.info=bd;const Ad={type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("halfwayNs")]:r.session.get("config").story?Od.audio[_d.camelCase(`${r.session("character")}Halfway`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${hc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Od.images[_d.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${hc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${hc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${ud?"":`<div class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`,on_finish:()=>{r.session.set("indexTracking",0)}},Sd={timeline:[{type:Ec,stimulus:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?Od.audio[_d.camelCase("endNs")]:r.session.get("config").story?Od.audio[_d.camelCase(`${r.session("character")}End`)]:"",prompt:()=>!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${hc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${hc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Od.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${hc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${r.session("character_name")} ${hc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Od.images[_d.camelCase(`${r.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:Ed,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Od.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${hc.t("gameBreak.debrief.text1")}</h3>\n <p>${hc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===r.session.get("config").userMode},{type:wd,fullscreen_mode:!1,delay_after:0}]},xd={timeline:[{type:Ec,stimulus:()=>Od.audio.studentSelect,prompt:()=>ud?`\n <div>\n <img id="mobile-classroom-bg" src=${Od.images.classroomBackground} alt="background"/>\n <h3>${hc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${hc.t(ud?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${Od.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${hc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${hc.t(ud?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${ud?"":`<div class="number">${[1,2,3,4].map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${ud?"mobile-student-select-characters":""}">\n ${["dog","cat","bird","deer"].map((e=>`<img src=${Od.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${hc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>ud?"NO_KEYS":["1","2","3","4"],button_choices:()=>ud?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>ud,data:{save_trial:!1},on_load:()=>{if(ud){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),i=document.createTextNode(hc.t("characterSelect.studentSelect.paragraph3MobileBefore")),n=document.createTextNode(hc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=hc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(i),t.appendChild(s),t.appendChild(n),t.classList.add("button");const a=document.createElement("div"),r=["dog","cat","bird","deer"].map((e=>{const t=document.createElement("img");return t.setAttribute("src",Od.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{const t={1:{character:"dog",characterName:hc.t("characterSelect.studentCharacter.dog"),characterActivity:hc.t("characterSelect.studentActivity.dog")},2:{character:"cat",characterName:hc.t("characterSelect.studentCharacter.cat"),characterActivity:hc.t("characterSelect.studentActivity.cat")},3:{character:"bird",characterName:hc.t("characterSelect.studentCharacter.bird"),characterActivity:hc.t("characterSelect.studentActivity.bird")},4:{character:"deer",characterName:hc.t("characterSelect.studentCharacter.deer"),characterActivity:hc.t("characterSelect.studentActivity.deer")}};r.session.set("character",t[ud?e.button_response+1:e.keyboard_response].character),r.session.set("character_name",t[ud?e.button_response+1:e.keyboard_response].characterName),r.session.set("character_activity",t[ud?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Ec,stimulus:()=>Od.audio[_d.camelCase(`${r.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Od.images[_d.camelCase(`${r.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${hc.t("characterSelect.studentIntro.paragraph1")} ${r.session("character_name")}. </p>\n <p> ${hc.t("characterSelect.studentIntro.paragraph2")} ${r.session("character_activity")}. </p>\n <p> ${hc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${ud?"":`<div class="button">${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.anyKey")}`,action:`${hc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button"> ${hc.t("navigation.continueButtonText",{input:`${hc.t("terms.here")}`,action:`${hc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!r.session.get("config").story||"default"===r.session.get("config").userMode&&r.session.get("config").userMetadata.grade>=6)},Td=(e,t,i)=>({timeline:[{type:Ed,stimulus:()=>{if(0===r.session("indexTracking")){const t=setTimeout((()=>r.session.set("timeOut",!0)),i);r.session.set("timerId",t),"tosrec"===e?r.session.set("currentCorpus",md[r.session("tosrecCorpusId")]):e.startsWith("fixedForm")?r.session.set("currentCorpus",md.fixedForms[e]):r.session.set("currentCorpus",md[e])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("currentCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>ud?"":`\n <div> \n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>ud?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:i=>{i.keyboard_response?"arrowleft"===i.keyboard_response?r.session.set("keyResponse","left"):r.session.set("keyResponse","right"):0===i.button_response?r.session.set("buttonResponse","left"):r.session.set("buttonResponse","right"),i.keyboard_response?i.correct=hd.pluginAPI.compareKeys(r.session("keyResponse"),r.session("currentCorpus")[r.session("indexTracking")].direction):i.correct=0===i.button_response&&"left"===r.session("currentCorpus")[r.session("indexTracking")].direction||1===i.button_response&&"right"===r.session("currentCorpus")[r.session("indexTracking")].direction,i.correct?r.session.set("dataCorrect",1):r.session.set("dataCorrect",0),Ud.addResponseData(i.rt,i.keyboard_response?i.keyboard_response:i.button_response,r.session("dataCorrect")),hd.data.addDataToLastTrial({save_trial:!r.session("timeOut"),pid:r.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:r.session("tosrecCorpusId"),trialNumBlock:r.session("indexTracking")+1,itemId:r.session("currentCorpus")[r.session("indexTracking")].itemId,testsetId:r.session("currentCorpus")[r.session("indexTracking")].testsetId,item:r.session("currentCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("currentCorpus")[r.session("indexTracking")].answer,correct:r.session("dataCorrect"),story:r.session.get("config").story})}},{type:Ec,stimulus:()=>Od.audio.neutralSoundSub,prompt:()=>ud?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return r.session("indexTracking")===r.session("currentCorpus").length-1||r.session("timeOut")?(r.session.set("indexTracking",0),r.session.set("timeOut",!1),clearTimeout(r.session.get("timerId")),!1):(r.session.transact("indexTracking",(e=>e+1)),!0)}}),Rd={type:Ec,stimulus:()=>Od.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${hc.t("practice.intro.text1")}</h2>\n <p>${hc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${hc.t(ud?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Od.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${hc.t(ud?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Od.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${hc.t("practice.intro.text5")}</b> </p> \n <div class="button">${hc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>ud?"NO_KEYS":"ALL_KEYS",button_choices:()=>ud?["HERE"]:[],button_html:()=>`<button class="button">${hc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{r.session.set("indexTracking",-1)}},kd={type:Ed,stimulus:()=>(r.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${r.session("practiceCorpus")[r.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>ud?"":`\n <div> \n <img class="lower" src="${Od.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>ud?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>ud?[hc.t("terms.false")[0].toUpperCase(),hc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>ud?[`<button class="mobile-stimulus-btn"><img src=${Od.images.leftArrowBlankShort} alt=${hc.t("terms.false")}/><span>${hc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Od.images.rightArrowBlankShort} alt=${hc.t("terms.true")}/><span>${hc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(ud){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=hd.pluginAPI.compareKeys(e.keyboard_response,r.session("practiceCorpus")[r.session("indexTracking")].correct_response),r.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(r.session.set("dataCorrect",1),r.session.set("feedbackResponse",hc.t("feedbackTranslations.correct"))):(r.session.set("dataCorrect",0),r.session.set("feedbackResponse",hc.t("feedbackTranslations.incorrect")));const t="arrowleft"===e.keyboard_response||0===e.button_response;r.session.set("responseLR",t?"left":"right"),r.session.set("answerRP",t?"false":"true"),r.session.set("responseColor",t?"orange":"blue");const i="arrowleft"===r.session("practiceCorpus")[r.session("indexTracking")].correct_response;r.session.set("correctLR",i?"left":"right"),r.session.set("correctRP",i?"false":"true"),r.session.set("answerColor",i?"orange":"blue"),hd.data.addDataToLastTrial({pid:r.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:r.session("dataCorrect"),trialNumBlock:r.session("indexTracking"),item:r.session("practiceCorpus")[r.session("indexTracking")].sentence,truefalse:r.session("practiceCorpus")[r.session("indexTracking")].answer,story:r.session.get("config").story})}},Ld={type:Ec,response_allowed_while_playing:()=>r.session.get("config").skipInstructions,stimulus:()=>1===r.session("dataCorrect")?Od.audio[`feedback${r.session("indexTracking")}Correct`]:Od.audio[`feedback${r.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${ud?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${r.session("responseColor")}>${r.session("feedbackResponse")} ${hc.t(ud?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===r.session("responseLR")?hc.t("terms.left"):hc.t("terms.right"),type:"true"===r.session("answerRP")?hc.t("terms.true"):hc.t("terms.false")})}</span>\n <br></br> \n "${r.session("practiceCorpus")[r.session("indexTracking")].sentence}"\n <span class=${r.session("answerColor")}> ${hc.t(ud?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===r.session("correctLR")?hc.t("terms.left"):hc.t("terms.right"),type:"true"===r.session("correctRP")?hc.t("terms.true"):hc.t("terms.false")})}</span>\n </p>\n </div>\n ${ud?"":`<img class="lower" src= "${"false"===r.session("correctRP")?Od.images.falseFlashKey:Od.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>ud?"NO_KEYS":"false"===r.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>ud?["ArrowLeft","ArrowRight"]:[],button_html:()=>ud?[`<button class="mobile-practice-feedback ${"false"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===r.session("correctRP")?Od.images.falseFlashKeySplit:Od.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===r.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===r.session("correctRP")?Od.images.trueFlashKeySplit:Od.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>ud,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const i="false"===r.session("correctRP");0!==t||i?1===t&&i&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};var Nd={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:["practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","grade-keyboard.webp","false-flash-key.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp","false-key.webp","grade-keys.webp","true-flash-key.webp","true-key.webp"]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.webp","bird-happy.webp","bird-talking.webp","bird.webp","cat-happy.webp","cat-talking.webp","cat.webp","classroom-background.webp","deer-happy.webp","deer-talking.webp","deer.webp","dog-happy.webp","dog-talking.webp","dog.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp"]}};const Fd="https://storage.googleapis.com/roar-sre";let Ud,Od,Cd;const Pd=[hc.t("grades.1"),hc.t("grades.2"),hc.t("grades.3"),hc.t("grades.4"),hc.t("grades.5"),hc.t("grades.6"),hc.t("grades.7"),hc.t("grades.8+")],jd=[{timeline:[{type:_c,questions:[{prompt:hc.t("labID"),name:"labId",required:!0}],button_label:hc.t("buttonLabel"),css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").labId&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:_c,questions:[{prompt:hc.t("participantID"),name:"pid",required:!0}],button_label:hc.t("buttonLabel"),css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:()=>!r.session.get("config").pid&&"otherLabs"===r.session.get("config").recruitment},{timeline:[{type:yc,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:wc,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const i in e.response)""===e.response[i]?t[i]=null:t[i]="retake"===i||"ell"===i?parseInt(e.response[i],10):e.response[i];t.grade=r.session.get("config").userMetadata.grade;const i=r.session.get("config"),n=cr(null,null,t.age);i.userMetadata={...i.userMetadata,...t,...n},r.session.set("config",i)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},{timeline:[{type:Ec,stimulus:()=>Od.audio.gradeSelect,prompt:()=>ud?`\n <div class="mobile-grade-select">\n <h3>${hc.t("introduction.gradeSelect.text1")}</h3>\n <p>${hc.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${hc.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${hc.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${hc.t("introduction.gradeSelect.text1")}</h3>\n <p>${hc.t("introduction.gradeSelect.text2")}</p>\n <p>${hc.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Od.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${hc.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:ud?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:ud?Pd:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;ud?r.session.set("tosrecCorpusId",`tosrec${t+1}`):r.session.set("tosrecCorpusId",`tosrec${t}`);const i=r.session.get("config");i.userMetadata={...i.userMetadata,grade:Number(ud?t+1:t)},i.story=yp(i.storyOption,i.userMetadata.grade),r.session.set("config",i)}}],conditional_function:()=>{const{grade:e}=r.session.get("config").userMetadata;return null==dr(e)||(r.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}];var Md=n((function(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var s=e[t];n[s[0]]=s[1]}return n}));var zd=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e},Dd=Gs,Bd=qs;var $d=function(e,t,i,n){var s=!i;i||(i={});for(var a=-1,r=t.length;++a<r;){var o=t[a],c=n?n(i[o],e[o],o,i,e):void 0;void 0===c&&(c=e[o]),s?Bd(i,o,c):Dd(i,o,c)}return i},Vd=$d,qd=Ri;var Hd=function(e,t){return e&&Vd(t,qd(t),e)},Wd=$d,Kd=Ia;var Gd=function(e,t){return e&&Wd(t,Kd(t),e)},Yd={exports:{}};!function(e,t){var i=N,n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,a=s&&s.exports===n?i.Buffer:void 0,r=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,n=r?r(i):new e.constructor(i);return e.copy(n),n}}(Yd,Yd.exports);var Jd=Yd.exports;var Qd=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t},Zd=$d,Xd=Ft;var el=function(e,t){return Zd(e,Xd(e),t)},tl=$d,il=la;var nl=function(e,t){return tl(e,il(e),t)},sl=Object.prototype.hasOwnProperty;var al=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&sl.call(e,"index")&&(i.index=e.index,i.input=e.input),i},rl=pt;var ol=function(e){var t=new e.constructor(e.byteLength);return new rl(t).set(new rl(e)),t},cl=ol;var dl=function(e,t){var i=t?cl(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)},ll=/\w*$/;var ul=function(e){var t=new e.constructor(e.source,ll.exec(e));return t.lastIndex=e.lastIndex,t},pl=F?F.prototype:void 0,ml=pl?pl.valueOf:void 0;var fl=ol;var hl=ol,gl=dl,_l=ul,Il=function(e){return ml?Object(ml.call(e)):{}},yl=function(e,t){var i=t?fl(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};var vl=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return hl(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return gl(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return yl(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return _l(e);case"[object Symbol]":return Il(e)}},wl=q,bl=Object.create,El=function(){function e(){}return function(t){if(!wl(t))return{};if(bl)return bl(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),Al=aa,Sl=gi;var xl=function(e){return"function"!=typeof e.constructor||Sl(e)?{}:El(Al(e))},Tl=en,Rl=Ot;var kl=function(e){return Rl(e)&&"[object Map]"==Tl(e)},Ll=ei,Nl=ii&&ii.isMap,Fl=Nl?Ll(Nl):kl,Ul=en,Ol=Ot;var Cl=function(e){return Ol(e)&&"[object Set]"==Ul(e)},Pl=ei,jl=ii&&ii.isSet,Ml=jl?Pl(jl):Cl,zl=nt,Dl=zd,Bl=Gs,$l=Hd,Vl=Gd,ql=Jd,Hl=Qd,Wl=el,Kl=nl,Gl=Fi,Yl=ba,Jl=en,Ql=al,Zl=vl,Xl=xl,eu=Et,tu=Ht,iu=Fl,nu=q,su=Ml,au=Ri,ru=Ia,ou="[object Arguments]",cu="[object Function]",du="[object Object]",lu={};lu[ou]=lu["[object Array]"]=lu["[object ArrayBuffer]"]=lu["[object DataView]"]=lu["[object Boolean]"]=lu["[object Date]"]=lu["[object Float32Array]"]=lu["[object Float64Array]"]=lu["[object Int8Array]"]=lu["[object Int16Array]"]=lu["[object Int32Array]"]=lu["[object Map]"]=lu["[object Number]"]=lu[du]=lu["[object RegExp]"]=lu["[object Set]"]=lu["[object String]"]=lu["[object Symbol]"]=lu["[object Uint8Array]"]=lu["[object Uint8ClampedArray]"]=lu["[object Uint16Array]"]=lu["[object Uint32Array]"]=!0,lu["[object Error]"]=lu[cu]=lu["[object WeakMap]"]=!1;var uu=function e(t,i,n,s,a,r){var o,c=1&i,d=2&i,l=4&i;if(n&&(o=a?n(t,s,a,r):n(t)),void 0!==o)return o;if(!nu(t))return t;var u=eu(t);if(u){if(o=Ql(t),!c)return Hl(t,o)}else{var p=Jl(t),m=p==cu||"[object GeneratorFunction]"==p;if(tu(t))return ql(t,c);if(p==du||p==ou||m&&!a){if(o=d||m?{}:Xl(t),!c)return d?Kl(t,Vl(o,t)):Wl(t,$l(o,t))}else{if(!lu[p])return a?t:{};o=Zl(t,p,c)}}r||(r=new zl);var f=r.get(t);if(f)return f;r.set(t,o),su(t)?t.forEach((function(s){o.add(e(s,i,n,s,t,r))})):iu(t)&&t.forEach((function(s,a){o.set(a,e(s,i,n,a,t,r))}));var h=u?void 0:(l?d?Yl:Gl:d?ru:au)(t);return Dl(h||t,(function(s,a){h&&(s=t[a=s]),Bl(o,a,e(s,i,n,a,t,r))})),o};var pu=as,mu=function(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var a=Array(s);++n<s;)a[n]=e[n+t];return a};var fu=function(e,t){return t.length<2?e:pu(e,mu(t,0,-1))},hu=es,gu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},_u=fu,Iu=is;var yu=function(e,t){return t=hu(t,e),null==(e=_u(e,t))||delete e[Iu(gu(t))]},vu=V,wu=aa,bu=Ot,Eu=Function.prototype,Au=Object.prototype,Su=Eu.toString,xu=Au.hasOwnProperty,Tu=Su.call(Object);var Ru=function(e){if(!bu(e)||"[object Object]"!=vu(e))return!1;var t=wu(e);if(null===t)return!0;var i=xu.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Su.call(i)==Tu};var ku=function(e){return Ru(e)?void 0:e},Lu=$t,Nu=Et,Fu=F?F.isConcatSpreadable:void 0;var Uu=bt,Ou=function(e){return Nu(e)||Lu(e)||!!(Fu&&e&&e[Fu])};var Cu=function e(t,i,n,s,a){var r=-1,o=t.length;for(n||(n=Ou),a||(a=[]);++r<o;){var c=t[r];i>0&&n(c)?i>1?e(c,i-1,n,s,a):Uu(a,c):s||(a[a.length]=c)}return a},Pu=Cu;var ju=function(e){return(null==e?0:e.length)?Pu(e,1):[]};var Mu=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)},zu=Math.max;var Du=function(e,t,i){return t=zu(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,a=zu(n.length-t,0),r=Array(a);++s<a;)r[s]=n[t+s];s=-1;for(var o=Array(t+1);++s<t;)o[s]=n[s];return o[t]=i(r),Mu(e,this,o)}};var Bu=function(e){return function(){return e}},$u=$s,Vu=$u?function(e,t){return $u(e,"toString",{configurable:!0,enumerable:!1,value:Bu(t),writable:!0})}:xs,qu=Date.now;var Hu=function(e){var t=0,i=0;return function(){var n=qu(),s=16-(n-i);if(i=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Vu),Wu=ju,Ku=Du,Gu=Hu;var Yu=$n,Ju=uu,Qu=yu,Zu=es,Xu=$d,ep=ku,tp=ba,ip=function(e){return Gu(Ku(e,void 0,Wu),e+"")}((function(e,t){var i={};if(null==e)return i;var n=!1;t=Yu(t,(function(t){return t=Zu(t,e),n||(n=t.length>1),t})),Xu(e,tp(e),i),n&&(i=Ju(i,7,ep));for(var s=t.length;s--;)Qu(i,t[s]);return i})),np=n(ip),sp=$n;var ap=function(e,t){return sp(t,(function(t){return[t,e[t]]}))},rp=en,op=mt,cp=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=[e,e]})),i};var dp=n(function(e){return function(t){var i=rp(t);return"[object Map]"==i?op(t):"[object Set]"==i?cp(t):ap(t,e(t))}}(Ri)),lp={exports:{}};lp.exports=function e(){var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{};function n(){var t=i.URL||i.webkitURL||null,n=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))}var s=!i.document&&!!i.postMessage,a=i.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=l,c.unparse=u,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!s&&!!i.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=v,c.ParserHandle=I,c.NetworkStreamer=m,c.FileStreamer=f,c.StringStreamer=h,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=_),i.jQuery){var d=i.jQuery;d.fn.parse=function(e){var t=e.config||{},n=[];return this.each((function(e){if("INPUT"!==d(this).prop("tagName").toUpperCase()||"file"!==d(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:d.extend({},t)})})),s(),this;function s(){if(0!==n.length){var t=n[0];if(R(e.before)){var i=e.before(t.file,t.inputElem);if("object"==typeof i){if("abort"===i.action)return void a("AbortError",t.file,t.inputElem,i.reason);if("skip"===i.action)return void r();"object"==typeof i.config&&(t.instanceConfig=d.extend(t.instanceConfig,i.config))}else if("skip"===i)return void r()}var s=t.instanceConfig.complete;t.instanceConfig.complete=function(e){R(s)&&s(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else R(e.complete)&&e.complete()}function a(t,i,n,s){R(e.error)&&e.error({name:t},i,n,s)}function r(){n.splice(0,1),s()}}}function l(e,t){var n=(t=t||{}).dynamicTyping||!1;if(R(n)&&(t.dynamicTypingFunction=n,n={}),t.dynamicTyping=n,t.transform=!!R(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var s=w();return s.userStep=t.step,s.userChunk=t.chunk,s.userComplete=t.complete,s.userError=t.error,t.step=R(t.step),t.chunk=R(t.chunk),t.complete=R(t.complete),t.error=R(t.error),delete t.worker,void s.postMessage({input:e,config:t,workerId:s.id})}var a=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(a=new _(t)).getStream():("string"==typeof e?(e=r(e),a=t.download?new m(t):new h(t)):!0===e.readable&&R(e.read)&&R(e.on)?a=new g(t):(i.File&&e instanceof File||e instanceof Object)&&(a=new f(t)),a.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function u(e,t){var i=!1,n=!0,s=",",a="\r\n",r='"',o=r+r,d=!1,l=null,u=!1;m();var p=new RegExp(y(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,d);if("object"==typeof e[0])return f(l||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||l),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],d);throw new Error("Unable to serialize unrecognized input");function m(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(s=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(u=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&n){for(var d=0;d<e.length;d++)d>0&&(r+=s),r+=h(e[d],d);t.length>0&&(r+=a)}for(var l=0;l<t.length;l++){var u=o?e.length:t[l].length,p=!1,m=o?0===Object.keys(t[l]).length:0===t[l].length;if(i&&!o&&(p="greedy"===i?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===i&&o){for(var f=[],g=0;g<u;g++){var _=c?e[g]:g;f.push(t[l][_])}p=""===f.join("").trim()}if(!p){for(var I=0;I<u;I++){I>0&&!m&&(r+=s);var y=o&&c?e[I]:I;r+=h(t[l][y],I)}l<t.length-1&&(!i||u>0&&!m)&&(r+=a)}}return r}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;u&&"string"==typeof e&&u.test(e)&&(e="'"+e,n=!0);var a=e.toString().replace(p,o);return(n=n||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||g(a,c.BAD_DELIMITERS)||a.indexOf(s)>-1||" "===a.charAt(0)||" "===a.charAt(a.length-1))?r+a+r:a}function g(e,t){for(var i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return!0;return!1}}function p(e){function t(e){var t=x(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new I(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&R(this._config.beforeFirstChunk)){var n=this._config.beforeFirstChunk(e);void 0!==n&&(e=n)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var r=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=s.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var d=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(a)i.postMessage({results:r,workerId:c.WORKER_ID,finished:d});else if(R(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!d||!R(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),d||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){R(this._config.error)?this._config.error(e):a&&this._config.error&&i.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function m(e){var t;function i(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),p.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),s||(t.onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var i in e)t.setRequestHeader(i,e[i])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+n)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=i(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function f(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=T(this._chunkLoaded,this),t.onerror=T(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var s=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,s)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;e=e||{},p.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],i=!0,n=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=T((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=T((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=T((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=T((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function _(e){var i=t.Duplex,n=x(e),s=!0,a=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},n.step=T(this._onCsvData,this),n.complete=T(this._onCsvComplete,this),p.call(this,n),this._nextChunk=function(){a&&1===r.length&&(this._finished=!0),r.length?r.shift()():s=!0},this._addToParseQueue=function(e,t){r.push(T((function(){if(this.parseChunk("string"==typeof e?e:e.toString(n.encoding)),R(t))return t()}),this)),s&&(s=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,i){this._addToParseQueue(e,i)},this._onWriteComplete=function(){a=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new i({readableObjectMode:!0,decodeStrings:!1,read:T(this._onRead,this),write:T(this._onWrite,this)})).once("finish",T(this._onWriteComplete,this))}function I(e){var t,i,n,s=Math.pow(2,53),a=-s,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,l=0,u=0,p=!1,m=!1,f=[],h={data:[],errors:[],meta:{}};if(R(e.step)){var g=e.step;e.step=function(t){if(h=t,b())w();else{if(w(),0===h.data.length)return;l+=t.data.length,e.preview&&l>e.preview?i.abort():(h.data=h.data[0],g(h,d))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function I(e){if(r.test(e)){var t=parseFloat(e);if(t>a&&t<s)return!0}return!1}function w(){return h&&n&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(h.data=h.data.filter((function(e){return!_(e)}))),b()&&E(),T()}function b(){return e.header&&0===f.length}function E(){if(h)if(Array.isArray(h.data[0])){for(var t=0;b()&&t<h.data.length;t++)h.data[t].forEach(i);h.data.splice(0,1)}else h.data.forEach(i);function i(t,i){R(e.transformHeader)&&(t=e.transformHeader(t,i)),f.push(t)}}function A(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function S(e,t){return A(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(I(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function T(){if(!h||!e.header&&!e.dynamicTyping&&!e.transform)return h;function t(t,i){var n,s=e.header?{}:[];for(n=0;n<t.length;n++){var a=n,r=t[n];e.header&&(a=n>=f.length?"__parsed_extra":f[n]),e.transform&&(r=e.transform(r,a)),r=S(a,r),"__parsed_extra"===a?(s[a]=s[a]||[],s[a].push(r)):s[a]=r}return e.header&&(n>f.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+n,u+i):n<f.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+n,u+i)),s}var i=1;return!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(t),i=h.data.length):h.data=t(h.data,0),e.header&&h.meta&&(h.meta.fields=f),u+=i,h}function k(t,i,n,s,a){var r,o,d,l;a=a||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var u=0;u<a.length;u++){var p=a[u],m=0,f=0,h=0;d=void 0;for(var g=new v({comments:s,delimiter:p,newline:i,preview:10}).parse(t),I=0;I<g.data.length;I++)if(n&&_(g.data[I]))h++;else{var y=g.data[I].length;f+=y,void 0!==d?y>0&&(m+=Math.abs(y-d),d=y):d=y}g.data.length>0&&(f/=g.data.length-h),(void 0===o||m<=o)&&(void 0===l||f>l)&&f>1.99&&(o=m,r=p,l=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function L(e,t){e=e.substring(0,1048576);var i=new RegExp(y(t)+"([^]*?)"+y(t),"gm"),n=(e=e.replace(i,"")).split("\r"),s=e.split("\n"),a=s.length>1&&s[0].length<n[0].length;if(1===n.length||a)return"\n";for(var r=0,o=0;o<n.length;o++)"\n"===n[o][0]&&r++;return r>=n.length/2?"\r\n":"\r"}function N(e,t,i,n){var s={type:e,code:t,message:i};void 0!==n&&(s.row=n),h.errors.push(s)}this.parse=function(s,a,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=L(s,o)),n=!1,e.delimiter)R(e.delimiter)&&(e.delimiter=e.delimiter(s),h.meta.delimiter=e.delimiter);else{var d=k(s,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);d.successful?e.delimiter=d.bestDelimiter:(n=!0,e.delimiter=c.DefaultDelimiter),h.meta.delimiter=e.delimiter}var l=x(e);return e.preview&&e.header&&l.preview++,t=s,i=new v(l),h=i.parse(t,a,r),w(),p?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,i.abort(),t=R(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(p=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),t=""}}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t,i=(e=e||{}).delimiter,n=e.newline,s=e.comments,a=e.step,r=e.preview,o=e.fastMode,d=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof i||c.BAD_DELIMITERS.indexOf(i)>-1)&&(i=","),s===i)throw new Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||c.BAD_DELIMITERS.indexOf(s)>-1)&&(s=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var l=0,u=!1;this.parse=function(c,p,m){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,h=i.length,g=n.length,_=s.length,I=R(a);l=0;var v=[],w=[],b=[],E=0;if(!c)return K();if(e.header&&!p){var A=c.split(n)[0].split(i),S="_",x=[],T={},k=!1;for(var L in A){var N=A[L];R(e.transformHeader)&&(N=e.transformHeader(N,L));var F=N,U=T[N]||0;for(U>0&&(k=!0,F=N+S+U),T[N]=U+1;x.includes(F);)F=F+S+U;x.push(F)}if(k){var O=c.split(n);O[0]=x.join(i),c=O.join(n)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var C=c.split(n),P=0;P<C.length;P++){if(b=C[P],l+=b.length,P!==C.length-1)l+=n.length;else if(m)return K();if(!s||b.substring(0,_)!==s){if(I){if(v=[],V(b.split(i)),G(),u)return K()}else V(b.split(i));if(r&&P>=r)return v=v.slice(0,r),K(!0)}}return K()}for(var j=c.indexOf(i,l),M=c.indexOf(n,l),z=new RegExp(y(d)+y(t),"g"),D=c.indexOf(t,l);;)if(c[l]!==t)if(s&&0===b.length&&c.substring(l,l+_)===s){if(-1===M)return K();l=M+g,M=c.indexOf(n,l),j=c.indexOf(i,l)}else if(-1!==j&&(j<M||-1===M))b.push(c.substring(l,j)),l=j+h,j=c.indexOf(i,l);else{if(-1===M)break;if(b.push(c.substring(l,M)),W(M+g),I&&(G(),u))return K();if(r&&v.length>=r)return K(!0)}else for(D=l,l++;;){if(-1===(D=c.indexOf(t,D+1)))return m||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:v.length,index:l}),H();if(D===f-1)return H(c.substring(l,D).replace(z,t));if(t!==d||c[D+1]!==d){if(t===d||0===D||c[D-1]!==d){-1!==j&&j<D+1&&(j=c.indexOf(i,D+1)),-1!==M&&M<D+1&&(M=c.indexOf(n,D+1));var B=q(-1===M?j:Math.min(j,M));if(c.substr(D+1+B,h)===i){b.push(c.substring(l,D).replace(z,t)),l=D+1+B+h,c[D+1+B+h]!==t&&(D=c.indexOf(t,l)),j=c.indexOf(i,l),M=c.indexOf(n,l);break}var $=q(M);if(c.substring(D+1+$,D+1+$+g)===n){if(b.push(c.substring(l,D).replace(z,t)),W(D+1+$+g),j=c.indexOf(i,l),D=c.indexOf(t,l),I&&(G(),u))return K();if(r&&v.length>=r)return K(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:v.length,index:l}),D++}}else D++}return H();function V(e){v.push(e),E=l}function q(e){var t=0;if(-1!==e){var i=c.substring(D+1,e);i&&""===i.trim()&&(t=i.length)}return t}function H(e){return m||(void 0===e&&(e=c.substring(l)),b.push(e),l=f,V(b),I&&G()),K()}function W(e){l=e,V(b),b=[],M=c.indexOf(n,l)}function K(e){return{data:v,errors:w,meta:{delimiter:i,linebreak:n,aborted:u,truncated:!!e,cursor:E+(p||0)}}}function G(){a(K()),v=[],w=[]}},this.abort=function(){u=!0},this.getCharIndex=function(){return l}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=n(),t=new i.Worker(e);return t.onmessage=b,t.id=o++,r[t.id]=t,t}function b(e){var t=e.data,i=r[t.workerId],n=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var s={abort:function(){n=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:A,resume:A};if(R(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},s),!n);a++);delete t.results}else R(i.userChunk)&&(i.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&E(t.workerId,t.results)}function E(e,t){var i=r[e];R(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function A(){throw new Error("Not implemented.")}function S(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)i.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(i.File&&t.input instanceof File||t.input instanceof Object){var n=c.parse(t.input,t.config);n&&i.postMessage({workerId:c.WORKER_ID,results:n,finished:!0})}}function x(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=x(e[i]);return t}function T(e,t){return function(){e.apply(t,arguments)}}function R(e){return"function"==typeof e}return a&&(i.onmessage=S),m.prototype=Object.create(p.prototype),m.prototype.constructor=m,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,h.prototype=Object.create(h.prototype),h.prototype.constructor=h,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(_.prototype=Object.create(p.prototype),_.prototype.constructor=_),c}();var up=lp.exports;const pp=(e=3)=>{let t=r.session.get("config").userMetadata?.ageMonths,i=dr(r.session.get("config").userMetadata?.grade);const{taskId:n}=r.session.get("config");if(null==t){if(null==i)throw new Error("Attempting to determine user age from grade but grade is undefined");t=66+12*i}const s=3===e&&"sre"===n?180:216;return t<72&&(t=72),t>s&&(t=s),null!=i&&"sre"===n&&3===e&&(i=Math.min(12,Math.max(1,i))),{ageMonths:t,grade:i}},mp=({ageMonths:e,grade:t,scoringVersion:i,taskId:n})=>{if(3===i&&"sre"===n)return null!=t;if(4===i||"sre-es"===n)return null!=e||null!=t;throw new Error("Invalid scoring version")};class fp{constructor(){this.scoringVersion=r.session.get("config").scoringVersion,this.taskId=r.session.get("config").taskId,this.useAgeForScoring=(({scoringVersion:e,taskId:t})=>3!==e||"sre-es"===t)({scoringVersion:this.scoringVersion,taskId:this.taskId}),this.useGradeForScoring=(({scoringVersion:e,taskId:t})=>3===e&&"sre"===t)({scoringVersion:this.scoringVersion,taskId:this.taskId});const e=this.taskId.replace("-","_");this.tableURL=`https://storage.googleapis.com/roar-sre/scores/${e}_lookup_v${this.scoringVersion}.csv`,this.aiTableURL="https://storage.googleapis.com/roar-sre/scores/sre_parallel_equating_lookup.csv",this.lookupTable=[],this.aiLookupTable=[],this.tableLoaded=!1,this.aiTableLoaded=!1,this.isValidForScoring=void 0}async initTable(){return new Promise(((e,t)=>{const{ageMonths:i,grade:n}=pp(this.scoringVersion);void 0===this.isValidForScoring&&(this.isValidForScoring=mp({ageMonths:i,grade:n,scoringVersion:this.scoringVersion,taskId:this.taskId})),this.isValidForScoring||t(),this.ageForScore=i,this.gradeForScore=n,up.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{(this.useGradeForScoring&&this.gradeForScore===Number(e.data.grade)||this.useAgeForScoring&&this.ageForScore===Number(e.data.ageMonths))&&this.lookupTable.push(np(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}}),up.parse(this.aiTableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.aiLookupTable.push(np(e.data,["","X"]))},complete:()=>{this.aiTableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const{taskId:t}=r.session.get("config");if(!["sre","sre-es"].includes(t))return null;const i=Md(dp(e).map((([e,t])=>{const i="practice"===e?"practice":"test";return[e,{sreScore:(t[i]?.numCorrect||0)-(t[i]?.numIncorrect||0)}]}))),n=(e=>{if("sre"===this.taskId){if(e.lab?.sreScore)return Math.max(e.lab.sreScore,0);if(e.aiV1P1?.sreScore){const t=Math.max(e.aiV1P1.sreScore,0);return this.aiLookupTable.find((e=>e.rawScore===t&&"aiP1"===e.form)).sreScore}if(e.aiV1P2?.sreScore){const t=Math.max(e.aiV1P2.sreScore,0);return this.aiLookupTable.find((e=>e.rawScore===t&&"aiP2"===e.form)).sreScore}}else if("sre-es"===this.taskId){const t=np(e,["practice","composite"]),i=Object.values(t).reduce(((e,t)=>e+(t.sreScore||0)),0);return Math.max(i,0)}return 0})(i);if(i.composite={sreScore:n},void 0===this.isValidForScoring){const{ageMonths:e,grade:t}=pp(this.scoringVersion);this.isValidForScoring=mp({ageMonths:e,grade:t,scoringVersion:this.scoringVersion,taskId:this.taskId})}if(this.isValidForScoring){this.tableLoaded&&this.aiTableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:t,ageMonths:s,sreScore:a,...r}=e;i.composite={sreScore:n,...r,scoringVersion:this.scoringVersion}}}return i}}let hp=!0;const gp=document.querySelector("#sentry-feedback"),_p={type:wd,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${hc.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${hc.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default",gp&&(gp.style.display="none")},on_finish:()=>{hp?hp=!1:document.body.style.cursor="none"}};var Ip={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://roar.education/schemas/sre/parameters.json",title:"Valid Parameters",description:"Valid game parameters for the roar-sre application.",type:"object",properties:{consent:{oneOf:[{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if consent was provided."},lng:{oneOf:[{type:"string",enum:["de","en","es","it","pt"]},{type:"null"}],description:"Language of the user."},recruitment:{oneOf:[{type:"string",enum:["demo","otherLabs","parentSignUp","pilot","school"]},{type:"null"}],description:"Recruitment source for participants."},scoringVersion:{oneOf:[{type:"number",enum:[1,3,4]},{type:"null"}],description:"Version of the scoring system to use."},skipInstructions:{oneOf:[{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if instructions should be skipped."},storyOption:{oneOf:[{type:"string",enum:["grade-based"]},{type:"boolean",enum:[!0,!1]},{type:"null"}],description:"Indicates if story should be shown."},timerLength:{oneOf:[{type:"number",minimum:0,maximum:18e4},{type:"null"}],description:"Length of the timer in milliseconds."},userMode:{oneOf:[{type:"string",enum:["default","demo","2BlocksV2","3min1Block","3minBlock90sBlock","3minParallelAIFormV1","90s2Blocks","90s2BlocksFixedForms"]},{type:"null"}],description:"Mode of the user during the task."}},additionalProperties:{not:!0,errorMessage:"Parameter is not allowed."},errorMessage:{properties:{consent:"consent must be a boolean or null.",lng:"lng must be a string with a value of 'de', 'en', 'es', 'it', 'pt' or null.",recruitment:"recruitment must be a string with a value of 'demo', 'otherLabs', 'pilot' or null.",scoringVersion:"scoringVersion must be a number value of one of the following: 1 (sre-es), 3 or 4 (sre), or null.",skipInstructions:"skipInstructions must be a boolean or null.",storyOption:"storyOption must be a string with a value of 'grade-based', boolean, or null.",timerLength:"timerLength must be a number between 0 and 180000 or null.",userMode:"userMode must be a string with a value of 'default', 'demo', '2BlocksV2', '3min1Block', '3minBlock90sBlock', '3minParallelAIFormV1', '90s2Blocks', '90s2BlocksFixedForms' or null."}}};const yp=(e,t)=>{let i;return i="grade-based"===e?!(dr(t)>=6):!e||"true"===e?.toLocaleLowerCase(),i};function vp(e,t,i){if("3minParallelAIFormV1"===e)return Math.random()<.5?pd(["lab","aiV1P1"]):pd(["lab","aiV1P2"]);if("3min1Block"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0]];if("2BlocksV2"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0],"aiV2"];if("3minBlock90sBlock"===e)return[pd(["lab","aiV1P1","aiV1P2"])[0],Object.keys(t.fixedForms)[Math.floor(Math.random()*Object.keys(t.fixedForms).length)]];if("90s2Blocks"===e)return pd(["test1","test2"]);if("90s2BlocksFixedForms"===e){return Object.keys(t.fixedForms).sort((()=>.5-Math.random())).slice(0,2)}return"pt"===i||"de"===i?pd(["test1","test2"]):["lab","ai"]}function wp(e){return"3min1Block"===e?[18e4]:"2BlocksV2"===e||"3minBlock90sBlock"===e?[18e4,9e4]:"90s2Blocks"===e||"90s2BlocksFixedForms"===e?[9e4,9e4]:[18e4,18e4]}function bp(e){return"es"===e||"pt"===e||"de"===e?"90s2Blocks":"3minBlock90sBlock"}const Ep=e=>{e.displayElement&&(hd.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};hd.opts.on_finish=t(hd.opts.on_finish,(()=>{e.firekit.finishRun(),Ud.markAsCompleted(),e.experimentFinished&&e.experimentFinished()}));const i=new fp;hd.opts.on_data_update=t(hd.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,i.computedScoreCallback.bind(i))})),hd.opts.on_interaction_data_update=function(t){e.firekit.addInteraction(t)},r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",md.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},Ap=e=>[_p,...jd,{type:xo,func:()=>{const t=r.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<16;i+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}],Sp=Object.prototype.toString;function xp(e){switch(Sp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return jp(e,Error)}}function Tp(e,t){return Sp.call(e)===`[object ${t}]`}function Rp(e){return Tp(e,"ErrorEvent")}function kp(e){return Tp(e,"DOMError")}function Lp(e){return Tp(e,"String")}function Np(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Fp(e){return null===e||Np(e)||"object"!=typeof e&&"function"!=typeof e}function Up(e){return Tp(e,"Object")}function Op(e){return"undefined"!=typeof Event&&jp(e,Event)}function Cp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Pp(e){return"number"==typeof e&&e!=e}function jp(e,t){try{return e instanceof t}catch(e){return!1}}function Mp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function zp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Dp(e,t){let i=e;const n=i.length;if(n<=150)return i;t>n&&(t=n);let s=Math.max(t-60,0);s<5&&(s=0);let a=Math.min(s+140,n);return a>n-5&&(a=n),a===n&&(s=Math.max(a-140,0)),i=i.slice(s,a),s>0&&(i=`'{snip} ${i}`),a<n&&(i+=" {snip}"),i}function Bp(e,t){if(!Array.isArray(e))return"";const i=[];for(let t=0;t<e.length;t++){const n=e[t];try{Mp(n)?i.push("[VueViewModel]"):i.push(String(n))}catch(e){i.push("[value cannot be serialized]")}}return i.join(t)}function $p(e,t,i=!1){return!!Lp(e)&&(Tp(t,"RegExp")?t.test(e):!!Lp(t)&&(i?e===t:e.includes(t)))}function Vp(e,t=[],i=!1){return t.some((t=>$p(e,t,i)))}function qp(e,t,i=250,n,s,a,r){if(!(a.exception&&a.exception.values&&r&&jp(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,d;o&&(a.exception.values=(c=Hp(e,t,s,r.originalException,n,a.exception.values,o,0),d=i,c.map((e=>(e.value&&(e.value=zp(e.value,d)),e)))))}function Hp(e,t,i,n,s,a,r,o){if(a.length>=i+1)return a;let c=[...a];if(jp(n[s],Error)){Wp(r,o);const a=e(t,n[s]),d=c.length;Kp(a,s,d,o),c=Hp(e,t,i,n[s],s,[a,...c],a,d)}return Array.isArray(n.errors)&&n.errors.forEach(((n,a)=>{if(jp(n,Error)){Wp(r,o);const d=e(t,n),l=c.length;Kp(d,`errors[${a}]`,l,o),c=Hp(e,t,i,n,s,[d,...c],d,l)}})),c}function Wp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Kp(e,t,i,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:i,parent_id:n}}function Gp(e){return e&&e.Math==Math?e:void 0}const Yp="object"==typeof globalThis&&Gp(globalThis)||"object"==typeof window&&Gp(window)||"object"==typeof self&&Gp(self)||"object"==typeof global&&Gp(global)||function(){return this}()||{};function Jp(){return Yp}function Qp(e,t,i){const n=i||Yp,s=n.__SENTRY__=n.__SENTRY__||{};return s[e]||(s[e]=t())}const Zp=Jp();function Xp(e,t={}){if(!e)return"<unknown>";try{let i=e;const n=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let d;const l=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&a++<n&&(d=em(i,l),!("html"===d||a>1&&r+s.length*c+d.length>=u));)s.push(d),r+=d.length,i=i.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function em(e,t){const i=e,n=[];let s,a,r,o,c;if(!i||!i.tagName)return"";if(Zp.HTMLElement&&i instanceof HTMLElement&&i.dataset&&i.dataset.sentryComponent)return i.dataset.sentryComponent;n.push(i.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>i.getAttribute(e))).map((e=>[e,i.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{n.push(`[${e[0]}="${e[1]}"]`)}));else if(i.id&&n.push(`#${i.id}`),s=i.className,s&&Lp(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)n.push(`.${a[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)r=l[c],o=i.getAttribute(r),o&&n.push(`[${r}="${o}"]`);return n.join("")}function tm(e){if(!Zp.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const im="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nm=["debug","info","warn","error","log","assert","trace"],sm={};function am(e){if(!("console"in Yp))return e();const t=Yp.console,i={},n=Object.keys(sm);n.forEach((e=>{const n=sm[e];i[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=i[e]}))}}const rm=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return im?nm.forEach((i=>{t[i]=(...t)=>{e&&am((()=>{Yp.console[i](`Sentry Logger [${i}]:`,...t)}))}})):nm.forEach((e=>{t[e]=()=>{}})),t}(),om=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function cm(e,t=!1){const{host:i,path:n,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${i}${a?`:${a}`:""}/${n?`${n}/`:n}${r}`}function dm(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lm(e){const t="string"==typeof e?function(e){const t=om.exec(e);if(!t)return void am((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[i,n,s="",a,r="",o]=t.slice(1);let c="",d=o;const l=d.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),d=l.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return dm({host:a,pass:s,path:c,projectId:d,port:r,protocol:i,publicKey:n})}(e):dm(e);if(t&&function(e){if(!im)return!0;const{port:t,projectId:i,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(rm.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(i.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(n)?t&&isNaN(parseInt(t,10))&&(rm.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(rm.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):(rm.error(`Invalid Sentry Dsn: Invalid projectId ${i}`),1)))}(t))return t}class um extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function pm(e,t,i){if(!(t in e))return;const n=e[t],s=i(n);"function"==typeof s&&fm(s,n),e[t]=s}function mm(e,t,i){try{Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0})}catch(i){im&&rm.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fm(e,t){try{const i=t.prototype||{};e.prototype=t.prototype=i,mm(e,"__sentry_original__",t)}catch(e){}}function hm(e){return e.__sentry_original__}function gm(e){if(xp(e))return{message:e.message,name:e.name,stack:e.stack,...Im(e)};if(Op(e)){const t={type:e.type,target:_m(e.target),currentTarget:_m(e.currentTarget),...Im(e)};return"undefined"!=typeof CustomEvent&&jp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function _m(e){try{return t=e,"undefined"!=typeof Element&&jp(t,Element)?Xp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Im(e){if("object"==typeof e&&null!==e){const t={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}return{}}function ym(e){return vm(e,new Map)}function vm(e,t){if(function(e){if(!Up(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const i=t.get(e);if(void 0!==i)return i;const n={};t.set(e,n);for(const i of Object.keys(e))void 0!==e[i]&&(n[i]=vm(e[i],t));return n}if(Array.isArray(e)){const i=t.get(e);if(void 0!==i)return i;const n=[];return t.set(e,n),e.forEach((e=>{n.push(vm(e,t))})),n}return e}const wm=/\(error: (.*)\)/,bm=/captureMessage|captureException/;function Em(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,i=0)=>{const n=[],s=e.split("\n");for(let e=i;e<s.length;e++){const i=s[e];if(i.length>1024)continue;const a=wm.test(i)?i.replace(wm,"$1"):i;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){n.push(t);break}}if(n.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),bm.test(t[t.length-1].function||"")&&(t.pop(),bm.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(n)}}const Am="<anonymous>";function Sm(e){try{return e&&"function"==typeof e&&e.name||Am}catch(e){return Am}}const xm={},Tm={};function Rm(e,t){xm[e]=xm[e]||[],xm[e].push(t)}function km(e,t){Tm[e]||(t(),Tm[e]=!0)}function Lm(e,t){const i=e&&xm[e];if(i)for(const n of i)try{n(t)}catch(t){im&&rm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Sm(n)}\nError:`,t)}}function Nm(e){const t="console";Rm(t,e),km(t,Fm)}function Fm(){"console"in Yp&&nm.forEach((function(e){e in Yp.console&&pm(Yp.console,e,(function(t){return sm[e]=t,function(...t){Lm("console",{args:t,level:e});const i=sm[e];i&&i.apply(Yp.console,t)}}))}))}function Um(){const e=Yp,t=e.crypto||e.msCrypto;let i=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(i=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&i())>>e/4).toString(16)))}function Om(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Cm(e){const{message:t,event_id:i}=e;if(t)return t;const n=Om(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||i||"<unknown>":i||"<unknown>"}function Pm(e,t,i){const n=e.exception=e.exception||{},s=n.values=n.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function jm(e,t){const i=Om(e);if(!i)return;const n=i.mechanism;if(i.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};i.mechanism.data=e}}function Mm(e){if(e&&e.__sentry_captured__)return!0;try{mm(e,"__sentry_captured__",!0)}catch(e){}return!1}function zm(e){return Array.isArray(e)?e:[e]}const Dm=Yp;let Bm,$m,Vm;function qm(e){Rm("dom",e),km("dom",Hm)}function Hm(){if(!Dm.document)return;const e=Lm.bind(null,"dom"),t=Wm(e,!0);Dm.document.addEventListener("click",t,!1),Dm.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const i=Dm[t]&&Dm[t].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(pm(i,"addEventListener",(function(t){return function(i,n,s){if("click"===i||"keypress"==i)try{const n=this,a=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},r=a[i]=a[i]||{refCount:0};if(!r.handler){const n=Wm(e);r.handler=n,t.call(this,i,n,s)}r.refCount++}catch(e){}return t.call(this,i,n,s)}})),pm(i,"removeEventListener",(function(e){return function(t,i,n){if("click"===t||"keypress"==t)try{const i=this,s=i.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete i.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,i,n)}})))}))}function Wm(e,t=!1){return i=>{if(!i||i._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(i);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(i.type,n))return;mm(i,"_sentryCaptured",!0),n&&!n._sentryId&&mm(n,"_sentryId",Um());const s="keypress"===i.type?"input":i.type;if(!function(e){if(e.type!==$m)return!1;try{if(!e.target||e.target._sentryId!==Vm)return!1}catch(e){}return!0}(i)){e({event:i,name:s,global:t}),$m=i.type,Vm=n?n._sentryId:void 0}clearTimeout(Bm),Bm=Dm.setTimeout((()=>{Vm=void 0,$m=void 0}),1e3)}}const Km=Jp();function Gm(){if(!("fetch"in Km))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Ym(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Jm(e){const t="fetch";Rm(t,e),km(t,Qm)}function Qm(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Gm())return!1;if(Ym(Km.fetch))return!0;let e=!1;const t=Km.document;if(t&&"function"==typeof t.createElement)try{const i=t.createElement("iframe");i.hidden=!0,t.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(e=Ym(i.contentWindow.fetch)),t.head.removeChild(i)}catch(e){im&&rm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&pm(Yp,"fetch",(function(e){return function(...t){const{method:i,url:n}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,i]=e;return{url:Xm(t),method:Zm(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:Xm(t),method:Zm(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:i,url:n},startTimestamp:Date.now()};return Lm("fetch",{...s}),e.apply(Yp,t).then((e=>(Lm("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Lm("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}function Zm(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Xm(e){return"string"==typeof e?e:e?Zm(e,"url")?e.url:e.toString?e.toString():"":""}let ef=null;function tf(e){const t="error";Rm(t,e),km(t,nf)}function nf(){ef=Yp.onerror,Yp.onerror=function(e,t,i,n,s){return Lm("error",{column:n,error:s,line:i,msg:e,url:t}),!(!ef||ef.__SENTRY_LOADER__)&&ef.apply(this,arguments)},Yp.onerror.__SENTRY_INSTRUMENTED__=!0}let sf=null;function af(e){const t="unhandledrejection";Rm(t,e),km(t,rf)}function rf(){sf=Yp.onunhandledrejection,Yp.onunhandledrejection=function(e){return Lm("unhandledrejection",e),!(sf&&!sf.__SENTRY_LOADER__)||sf.apply(this,arguments)},Yp.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const of=Jp();const cf=Yp;let df;function lf(e){const t="history";Rm(t,e),km(t,uf)}function uf(){if(!function(){const e=of.chrome,t=e&&e.app&&e.app.runtime,i="history"in of&&!!of.history.pushState&&!!of.history.replaceState;return!t&&i}())return;const e=cf.onpopstate;function t(e){return function(...t){const i=t.length>2?t[2]:void 0;if(i){const e=df,t=String(i);df=t;Lm("history",{from:e,to:t})}return e.apply(this,t)}}cf.onpopstate=function(...t){const i=cf.location.href,n=df;df=i;if(Lm("history",{from:n,to:i}),e)try{return e.apply(this,t)}catch(e){}},pm(cf.history,"pushState",t),pm(cf.history,"replaceState",t)}const pf=Yp,mf="__sentry_xhr_v3__";function ff(e){Rm("xhr",e),km("xhr",hf)}function hf(){if(!pf.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;pm(e,"open",(function(e){return function(...t){const i=Date.now(),n=Lp(t[0])?t[0].toUpperCase():void 0,s=function(e){if(Lp(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!n||!s)return e.apply(this,t);this[mf]={method:n,url:s,request_headers:{}},"POST"===n&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[mf];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Lm("xhr",{args:[n,s],endTimestamp:Date.now(),startTimestamp:i,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?pm(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),pm(this,"setRequestHeader",(function(e){return function(...t){const[i,n]=t,s=this[mf];return s&&Lp(i)&&Lp(n)&&(s.request_headers[i.toLowerCase()]=n),e.apply(this,t)}})),e.apply(this,t)}})),pm(e,"send",(function(e){return function(...t){const i=this[mf];if(!i)return e.apply(this,t);void 0!==t[0]&&(i.body=t[0]);return Lm("xhr",{args:[i.method,i.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function gf(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function _f(){return"undefined"!=typeof window&&(!gf()||void 0!==Yp.process&&"renderer"===Yp.process.type)}function If(e,t=100,i=1/0){try{return vf("",e,t,i)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yf(e,t=3,i=102400){const n=If(e,t);return s=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>i?yf(e,t-1,i):n;var s}function vf(e,t,i=1/0,n=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(i){if(e)return!!t.has(i)||(t.add(i),!1);for(let e=0;e<t.length;e++)if(t[e]===i)return!0;return t.push(i),!1},function(i){if(e)t.delete(i);else for(let e=0;e<t.length;e++)if(t[e]===i){t.splice(e,1);break}}]}()){const[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Pp(t))return t;const o=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(Mp(t))return"[VueViewModel]";if(Up(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${Sm(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}var i}(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:i;if(0===c)return o.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return vf("",d.toJSON(),c-1,n,s)}catch(e){}const l=Array.isArray(t)?[]:{};let u=0;const p=gm(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=n){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=vf(e,t,c-1,n,s),u++}return r(t),l}var wf;function bf(e){return new Af((t=>{t(e)}))}function Ef(e){return new Af(((t,i)=>{i(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(wf||(wf={}));class Af{constructor(e){Af.prototype.__init.call(this),Af.prototype.__init2.call(this),Af.prototype.__init3.call(this),Af.prototype.__init4.call(this),this._state=wf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Af(((i,n)=>{this._handlers.push([!1,t=>{if(e)try{i(e(t))}catch(e){n(e)}else i(t)},e=>{if(t)try{i(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Af(((t,i)=>{let n,s;return this.then((t=>{s=!1,n=t,e&&e()}),(t=>{s=!0,n=t,e&&e()})).then((()=>{s?i(n):t(n)}))}))}__init(){this._resolve=e=>{this._setResult(wf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(wf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===wf.PENDING&&(Cp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===wf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===wf.RESOLVED&&e[1](this._value),this._state===wf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Sf(e){const t=[];function i(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return Ef(new um("Not adding Promise because buffer limit was reached."));const s=n();return-1===t.indexOf(s)&&t.push(s),s.then((()=>i(s))).then(null,(()=>i(s).then(null,(()=>{})))),s},drain:function(e){return new Af(((i,n)=>{let s=t.length;if(!s)return i(!0);const a=setTimeout((()=>{e&&e>0&&i(!1)}),e);t.forEach((e=>{bf(e).then((()=>{--s||(clearTimeout(a),i(!0))}),n)}))}))}}}function xf(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const i=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:i,hash:n,relative:t[5]+i+n}}const Tf=["fatal","error","warning","log","info","debug"];function Rf(e){return"warn"===e?"warning":Tf.includes(e)?e:"log"}function kf(){return Date.now()/1e3}const Lf=function(){const{performance:e}=Yp;if(!e||!e.now)return kf;const t=Date.now()-e.now(),i=null==e.timeOrigin?t:e.timeOrigin;return()=>(i+e.now())/1e3}(),Nf=(()=>{const{performance:e}=Yp;if(!e||!e.now)return;const t=36e5,i=e.now(),n=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+i-n):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+i-n):t;return a||o<t?s<=o?e.timeOrigin:r:n})(),Ff="baggage",Uf="sentry-",Of=/^sentry-/;function Cf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,i],n)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(i)}`,a=0===n?s:`${e},${s}`;return a.length>8192?(im&&rm.warn(`Not adding key: ${t} with val: ${i} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,i])=>(i&&(e[`${Uf}${t}`]=i),e)),{}))}function Pf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,i])=>(e[t]=i,e)),{})}const jf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mf(e,t){const i=function(e){if(!e)return;const t=e.match(jf);if(!t)return;let i;return"1"===t[3]?i=!0:"0"===t[3]&&(i=!1),{traceId:t[1],parentSampled:i,parentSpanId:t[2]}}(e),n=function(e){if(!Lp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const i=Pf(t);for(const t of Object.keys(i))e[t]=i[t];return e}),{});else{if(!e)return;t=Pf(e)}const i=Object.entries(t).reduce(((e,[t,i])=>(t.match(Of)&&(e[t.slice(7)]=i),e)),{});return Object.keys(i).length>0?i:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=i||{};return i?{traceId:s||Um(),parentSpanId:a||Um().substring(16),spanId:Um().substring(16),sampled:r,dsc:n||{}}:{traceId:s||Um(),spanId:Um().substring(16)}}function zf(e=Um(),t=Um().substring(16),i){let n="";return void 0!==i&&(n=i?"-1":"-0"),`${e}-${t}${n}`}function Df(e,t=[]){return[e,t]}function Bf(e,t){const[i,n]=e;return[i,[...n,t]]}function $f(e,t){const i=e[1];for(const e of i){if(t(e,e[0].type))return!0}return!1}function Vf(e,t){return(t||new TextEncoder).encode(e)}function qf(e,t){const[i,n]=e;let s=JSON.stringify(i);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[Vf(s,t),e]:s.push("string"==typeof e?Vf(e,t):e)}for(const e of n){const[t,i]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof i||i instanceof Uint8Array)a(i);else{let e;try{e=JSON.stringify(i)}catch(t){e=JSON.stringify(If(i))}a(e)}}return"string"==typeof s?s:function(e){const t=e.reduce(((e,t)=>e+t.length),0),i=new Uint8Array(t);let n=0;for(const t of e)i.set(t,n),n+=t.length;return i}(s)}function Hf(e,t){const i="string"==typeof e.data?Vf(e.data,t):e.data;return[ym({type:"attachment",length:i.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),i]}const Wf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Kf(e){return Wf[e]}function Gf(e){if(!e||!e.sdk)return;const{name:t,version:i}=e.sdk;return{name:t,version:i}}function Yf(e,t,i,n){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!i&&n&&{dsn:cm(n)},...s&&{trace:ym({...s})}}}function Jf(e,t,i=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>i}function Qf(e,{statusCode:t,headers:i},n=Date.now()){const s={...e},a=i&&i["x-sentry-rate-limits"],r=i&&i["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,i,,,a]=e.split(":",5),r=parseInt(t,10),o=1e3*(isNaN(r)?60:r);if(i)for(const e of i.split(";"))"metric_bucket"===e&&a&&!a.split(";").includes("custom")||(s[e]=n+o);else s.all=n+o}else r?s.all=n+function(e,t=Date.now()){const i=parseInt(`${e}`,10);if(!isNaN(i))return 1e3*i;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(r,n):429===t&&(s.all=n+6e4);return s}function Zf(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}const Xf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eh="production";function th(){return Qp("globalEventProcessors",(()=>[]))}function ih(e){th().push(e)}function nh(e,t,i,n=0){return new Af(((s,a)=>{const r=e[n];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},i);Xf&&r.id&&null===o&&rm.log(`Event processor "${r.id}" dropped event`),Cp(o)?o.then((t=>nh(e,t,i,n+1).then(s))).then(null,a):nh(e,o,i,n+1).then(s).then(null,a)}}))}function sh(e){const t=Lf(),i={sid:Um(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ym({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(i)};return e&&ah(i,e),i}function ah(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Lf(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Um()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function rh(e,t){let i={};"ok"===e.status&&(i={status:"exited"}),ah(e,i)}function oh(e){const{spanId:t,traceId:i}=e.spanContext(),{data:n,op:s,parent_span_id:a,status:r,tags:o,origin:c}=uh(e);return ym({data:n,op:s,parent_span_id:a,span_id:t,status:r,tags:o,trace_id:i,origin:c})}function ch(e){const{traceId:t,spanId:i}=e.spanContext();return zf(t,i,ph(e))}function dh(e){return"number"==typeof e?lh(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lh(e.getTime()):Lf()}function lh(e){return e>9999999999?e/1e3:e}function uh(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function ph(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}function mh(e,t,i,n,s,a){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e,c={...t,event_id:t.event_id||i.event_id||Um(),timestamp:t.timestamp||kf()},d=i.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:i,release:n,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?i:eh);void 0===e.release&&void 0!==n&&(e.release=n);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=zp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=zp(r.value,a));const o=e.request;o&&o.url&&(o.url=zp(o.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,d),void 0===t.type&&function(e,t){const i=Yp._sentryDebugIds;if(!i)return;let n;const s=fh.get(t);s?n=s:(n=new Map,fh.set(t,n));const a=Object.keys(i).reduce(((e,s)=>{let a;const r=n.get(s);r?a=r:(a=t(s),n.set(s,a));for(let t=a.length-1;t>=0;t--){const n=a[t];if(n.filename){e[n.filename]=i[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(c,e.stackParser);const l=function(e,t){if(!t)return e;const i=e?e.clone():new Ch;return i.update(t),i}(n,i.captureContext);i.mechanism&&jm(c,i.mechanism);const u=s&&s.getEventProcessors?s.getEventProcessors():[],p=function(){Oh||(Oh=new Ch);return Oh}().getScopeData();if(a){Fh(p,a.getScopeData())}if(l){Fh(p,l.getScopeData())}const m=[...i.attachments||[],...p.attachments];m.length&&(i.attachments=m),Nh(c,p);return nh([...u,...th(),...p.eventProcessors],c,i).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const i=e.debug_meta.images;Object.keys(t).forEach((e=>{i.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof r&&r>0?function(e,t,i){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:If(e.data,t,i)}})))},...e.user&&{user:If(e.user,t,i)},...e.contexts&&{contexts:If(e.contexts,t,i)},...e.extra&&{extra:If(e.extra,t,i)}};e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=If(e.contexts.trace.data,t,i)));e.spans&&(n.spans=e.spans.map((e=>{const n=uh(e).data;return n&&(e.data=If(n,t,i)),e})));return n}(e,r,o):e)))}const fh=new WeakMap;function hh(e){if(e)return function(e){return e instanceof Ch||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>gh.includes(e)))}(e)?{captureContext:e}:e}const gh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _h(e,t){return Vh().captureException(e,hh(t))}function Ih(e,t){const i="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return Vh().captureMessage(e,i,n)}function yh(e,t){return Vh().captureEvent(e,t)}function vh(e,t){Vh().addBreadcrumb(e,t)}function wh(...e){const t=Vh();if(2===e.length){const[i,n]=e;return i?t.withScope((()=>(t.getStackTop().scope=i,n(i)))):t.withScope(n)}return t.withScope(e[0])}function bh(){return Vh().getClient()}function Eh(){return Vh().getScope()}function Ah(e){const t=bh(),i=qh(),n=Eh(),{release:s,environment:a=eh}=t&&t.getOptions()||{},{userAgent:r}=Yp.navigator||{},o=sh({release:s,environment:a,user:n.getUser()||i.getUser(),...r&&{userAgent:r},...e}),c=i.getSession();return c&&"ok"===c.status&&ah(c,{status:"exited"}),Sh(),i.setSession(o),n.setSession(o),o}function Sh(){const e=qh(),t=Eh(),i=t.getSession()||e.getSession();i&&rh(i),xh(),e.setSession(),t.setSession()}function xh(){const e=qh(),t=Eh(),i=bh(),n=t.getSession()||e.getSession();n&&i&&i.captureSession&&i.captureSession(n)}function Th(e=!1){e?Sh():xh()}function Rh(e){return e.transaction}function kh(e,t,i){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=i&&i.getUser()||{},r=ym({environment:n.environment||eh,release:n.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}function Lh(e){const t=bh();if(!t)return{};const i=kh(uh(e).trace_id||"",t,Eh()),n=Rh(e);if(!n)return i;const s=n&&n._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:a,source:r}=n.metadata;null!=a&&(i.sample_rate=`${a}`);const o=uh(n);return r&&"url"!==r&&(i.transaction=o.description),i.sampled=String(ph(n)),t.emit&&t.emit("createDsc",i),i}function Nh(e,t){const{fingerprint:i,span:n,breadcrumbs:s,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:i,tags:n,user:s,contexts:a,level:r,transactionName:o}=t,c=ym(i);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const d=ym(n);d&&Object.keys(d).length&&(e.tags={...d,...e.tags});const l=ym(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const u=ym(a);u&&Object.keys(u).length&&(e.contexts={...u,...e.contexts});r&&(e.level=r);o&&(e.transaction=o)}(e,t),n&&function(e,t){e.contexts={trace:oh(t),...e.contexts};const i=Rh(t);if(i){e.sdkProcessingMetadata={dynamicSamplingContext:Lh(t),...e.sdkProcessingMetadata};const n=uh(i).description;n&&(e.tags={transaction:n,...e.tags})}}(e,n),function(e,t){e.fingerprint=e.fingerprint?zm(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,i),function(e,t){const i=[...e.breadcrumbs||[],...t];e.breadcrumbs=i.length?i:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function Fh(e,t){const{extra:i,tags:n,user:s,contexts:a,level:r,sdkProcessingMetadata:o,breadcrumbs:c,fingerprint:d,eventProcessors:l,attachments:u,propagationContext:p,transactionName:m,span:f}=t;Uh(e,"extra",i),Uh(e,"tags",n),Uh(e,"user",s),Uh(e,"contexts",a),Uh(e,"sdkProcessingMetadata",o),r&&(e.level=r),m&&(e.transactionName=m),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),u.length&&(e.attachments=[...e.attachments,...u]),e.propagationContext={...e.propagationContext,...p}}function Uh(e,t,i){if(i&&Object.keys(i).length){e[t]={...e[t]};for(const n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[t][n]=i[n])}}let Oh;class Ch{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ph()}static clone(e){return e?e.clone():new Ch}clone(){const e=new Ch;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ah(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof Ch){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(Up(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ph(),this}addBreadcrumb(e,t){const i="number"==typeof t?t:100;if(i<=0)return this;const n={timestamp:kf(),...e},s=this._breadcrumbs;return s.push(n),this._breadcrumbs=s.length>i?s.slice(-i):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:i,_tags:n,_extra:s,_user:a,_level:r,_fingerprint:o,_eventProcessors:c,_propagationContext:d,_sdkProcessingMetadata:l,_transactionName:u,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:i,tags:n,extra:s,user:a,level:r,fingerprint:o||[],eventProcessors:c,propagationContext:d,sdkProcessingMetadata:l,transactionName:u,span:p}}applyToEvent(e,t={},i=[]){Nh(e,this.getScopeData());return nh([...i,...th(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const i=t&&t.event_id?t.event_id:Um();if(!this._client)return rm.warn("No client configured on scope - will not capture exception!"),i;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:i},this),i}captureMessage(e,t,i){const n=i&&i.event_id?i.event_id:Um();if(!this._client)return rm.warn("No client configured on scope - will not capture message!"),n;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...i,event_id:n},this),n}captureEvent(e,t){const i=t&&t.event_id?t.event_id:Um();return this._client?(this._client.captureEvent(e,{...t,event_id:i},this),i):(rm.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Ph(){return{traceId:Um(),spanId:Um().substring(16)}}const jh="7.119.0",Mh=parseFloat(jh),zh=100;class Dh{constructor(e,t,i,n=Mh){let s,a;this._version=n,t?s=t:(s=new Ch,s.setClient(e)),i?a=i:(a=new Ch,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let i;try{i=e(t)}catch(e){throw this.popScope(),e}return Cp(i)?i.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const i=this._lastEventId=t&&t.event_id?t.event_id:Um(),n=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:n,...t,event_id:i}),i}captureMessage(e,t,i){const n=this._lastEventId=i&&i.event_id?i.event_id:Um(),s=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...i,event_id:n}),n}captureEvent(e,t){const i=t&&t.event_id?t.event_id:Um();return e.type||(this._lastEventId=i),this.getScope().captureEvent(e,{...t,event_id:i}),i}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:i,client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=zh}=n.getOptions&&n.getOptions()||{};if(a<=0)return;const r={timestamp:kf(),...e},o=s?am((()=>s(r,t))):r;null!==o&&(n.emit&&n.emit("beforeAddBreadcrumb",o,t),i.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:i}=this.getStackTop();i&&e(t)}run(e){const t=$h(this);try{e(this)}finally{$h(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Xf&&rm.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const i=this._callExtensionMethod("startTransaction",e,t);if(Xf&&!i){this.getClient()?rm.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):rm.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return i}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&rh(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:i}=this.getStackTop(),{release:n,environment:s=eh}=i&&i.getOptions()||{},{userAgent:a}=Yp.navigator||{},r=sh({release:n,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&ah(o,{status:"exited"}),this.endSession(),t.setSession(r),r}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),i=e.getSession();i&&t&&t.captureSession&&t.captureSession(i)}_callExtensionMethod(e,...t){const i=Bh().__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);Xf&&rm.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Bh(){return Yp.__SENTRY__=Yp.__SENTRY__||{extensions:{},hub:void 0},Yp}function $h(e){const t=Bh(),i=Hh(t);return Wh(t,e),i}function Vh(){const e=Bh();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Bh()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Hh(e).isOlderThan(Mh)||Wh(e,new Dh);var t;return Hh(e)}(e)}function qh(){return Vh().getIsolationScope()}function Hh(e){return Qp("hub",(()=>new Dh),e)}function Wh(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Kh(e){return Vh().getScope().getTransaction()}let Gh=!1;function Yh(){const e=Kh();if(e){const t="internal_error";Xf&&rm.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var Jh;function Qh(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const i=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==i&&e.setStatus(i)}function Zh(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=bh(),i=e||t&&t.getOptions();return!!i&&(i.enableTracing||"tracesSampleRate"in i||"tracesSampler"in i)}function Xh(e){if(!Zh())return;const t=function(e){if(e.startTime){const t={...e};return t.startTimestamp=dh(e.startTime),delete t.startTime,t}return e}(e),i=Vh(),n=e.scope?e.scope.getSpan():eg();if(e.onlyIfParent&&!n)return;const s=(e.scope||Eh()).clone();return function(e,{parentSpan:t,spanContext:i,forceTransaction:n,scope:s}){if(!Zh())return;const a=qh();let r;if(t&&!n)r=t.startChild(i);else if(t){const n=Lh(t),{traceId:s,spanId:a}=t.spanContext(),o=ph(t);r=e.startTransaction({traceId:s,parentSpanId:a,parentSampled:o,...i,metadata:{dynamicSamplingContext:n,...i.metadata}})}else{const{traceId:t,dsc:n,parentSpanId:o,sampled:c}={...a.getPropagationContext(),...s.getPropagationContext()};r=e.startTransaction({traceId:t,parentSpanId:o,parentSampled:c,...i,metadata:{dynamicSamplingContext:n,...i.metadata}})}return s.setSpan(r),function(e,t,i){e&&(mm(e,ig,i),mm(e,tg,t))}(r,s,a),r}(i,{parentSpan:n,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function eg(){return Eh().getSpan()}Yh.tag="sentry_tracingErrorCallback",function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(Jh||(Jh={}));const tg="_sentryScope",ig="_sentryIsolationScope";const ng="sentry.source",sg="sentry.sample_rate",ag="sentry.op",rg="sentry.origin";class og{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class cg{constructor(e={}){this._traceId=e.traceId||Um(),this._spanId=e.spanId||Um().substring(16),this._startTime=e.startTimestamp||Lf(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[rg]:e.origin||"manual",[ag]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[ag]}set op(e){this.setAttribute(ag,e)}get origin(){return this._attributes[rg]}set origin(e){this.setAttribute(rg,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:i}=this;return{spanId:e,traceId:t,traceFlags:i?1:0}}startChild(e){const t=new cg({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const i=Rh(this);if(t.transaction=i,Xf&&i){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${uh(t).description||"< unknown name >"}' (${i.spanContext().spanId}).`;rm.log(n),this._logMessage=n}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Qh(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=Rh(this);if(Xf&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&rm.log(e.replace("Starting","Finishing"))}this._endTime=dh(e)}toTraceparent(){return ch(this)}toContext(){return ym({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return oh(this)}getSpanJSON(){return ym({data:this._getData(),description:this._name,op:this._attributes[ag],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[rg],_metrics_summary:void 0,profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,i=Object.keys(e).length>0,n=Object.keys(t).length>0;if(i||n)return i&&n?{...e,...t}:i?e:t}}class dg extends cg{constructor(e,t){super(e),this._contexts={},this._hub=t||Vh(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const i=this._metadata.dynamicSamplingContext;i&&(this._frozenDynamicSamplingContext={...i})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ng]&&{source:this._attributes[ng]},...this._attributes[sg]&&{sampleRate:this._attributes[sg]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(ng,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new og(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,i=""){this._measurements[e]={value:t,unit:i}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=dh(e),i=this._finishTransaction(t);if(i)return this._hub.captureEvent(i)}toContext(){return ym({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Lh(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Xf&&rm.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Xf&&rm.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const i=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&uh(e).timestamp)):[];if(this._trimEnd&&i.length>0){const e=i.map((e=>uh(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:n,isolationScope:s}={scope:(a=this)[tg],isolationScope:a[ig]};var a;const{metadata:r}=this,{source:o}=r,c={contexts:{...this._contexts,trace:oh(this)},spans:i,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...r,capturedSpanScope:n,capturedSpanIsolationScope:s,...ym({dynamicSamplingContext:Lh(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(Xf&&rm.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),Xf&&rm.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const lg={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},ug=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class pg extends og{constructor(e,t,i,n){super(n),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=i}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...i)=>(this._popActivity(e.spanContext().spanId),t.apply(e,i)),void 0===uh(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class mg extends dg{constructor(e,t,i=lg.idleTimeout,n=lg.finalTimeout,s=lg.heartbeatInterval,a=!1,r=!1){super(e,t),this._idleHub=t,this._idleTimeout=i,this._finalTimeout=n,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ug[4],this._autoFinishAllowed=!r,a&&(Xf&&rm.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),r||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ug[3],this.end())}),this._finalTimeout)}end(e){const t=dh(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Xf&&rm.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;uh(e).timestamp||(e.setStatus("cancelled"),e.end(t),Xf&&rm.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:i,timestamp:n}=uh(e),s=i&&i<t,a=(this._finalTimeout+this._idleTimeout)/1e3,r=n&&i&&n-i<a;if(Xf){const t=JSON.stringify(e,void 0,2);s?r||rm.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):rm.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return s&&r})),Xf&&rm.log("[Tracing] flushing IdleTransaction")}else Xf&&rm.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},i=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new pg(t,i,this.spanContext().spanId,e),Xf&&rm.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ug[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Xf&&rm.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=ug[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Xf&&rm.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Xf&&rm.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Xf&&rm.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Xf&&rm.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=Lf();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ug[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Xf&&rm.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ug[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Xf&&rm.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function fg(e,t,i){if(!Zh(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(sg,Number(e.sampled)),e;let n;return"function"==typeof t.tracesSampler?(n=t.tracesSampler(i),e.setAttribute(sg,Number(n))):void 0!==i.parentSampled?n=i.parentSampled:void 0!==t.tracesSampleRate?(n=t.tracesSampleRate,e.setAttribute(sg,Number(n))):(n=1,e.setAttribute(sg,n)),hg(n)?n?(e.sampled=Math.random()<n,e.sampled?(Xf&&rm.log(`[Tracing] starting ${e.op} transaction - ${uh(e).description}`),e):(Xf&&rm.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),e)):(Xf&&rm.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Xf&&rm.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function hg(e){return Pp(e)||"number"!=typeof e&&"boolean"!=typeof e?(Xf&&rm.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(Xf&&rm.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function gg(){const e=this.getScope().getSpan();return e?{"sentry-trace":ch(e)}:{}}function _g(e,t){const i=this.getClient(),n=i&&i.getOptions()||{},s=n.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(Xf&&rm.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new dg(e,this);return r=fg(r,n,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),r.isRecording()&&r.initSpanRecorder(n._experiments&&n._experiments.maxSpans),i&&i.emit&&i.emit("startTransaction",r),r}function Ig(e,t,i,n,s,a,r,o=!1){const c=e.getClient(),d=c&&c.getOptions()||{};let l=new mg(t,e,i,n,r,s,o);return l=fg(l,d,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),l.isRecording()&&l.initSpanRecorder(d._experiments&&d._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function yg(){const e=Bh();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=_g),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=gg),Gh||(Gh=!0,tf(Yh),af(Yh)))}function vg(e,t){return i={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(i).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`)).join("&");var i}const wg=[];function bg(e){const t=e.defaultIntegrations||[],i=e.integrations;let n;t.forEach((e=>{e.isDefaultInstance=!0})),n=Array.isArray(i)?[...t,...i]:"function"==typeof i?zm(i(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:i}=e,n=t[i];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[i]=e)})),Object.keys(t).map((e=>t[e]))}(n),a=function(e,t){for(let i=0;i<e.length;i++)if(!0===t(e[i]))return i;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function Eg(e,t){for(const i of t)i&&i.afterAllSetup&&i.afterAllSetup(e)}function Ag(e,t,i){if(i[t.name])Xf&&rm.log(`Integration skipped because it was already installed: ${t.name}`);else{if(i[t.name]=t,-1===wg.indexOf(t.name)&&(t.setupOnce(ih,Vh),wg.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>i(t,n,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const i=t.processEvent.bind(t),n=Object.assign(((t,n)=>i(t,n,e)),{id:t.name});e.addEventProcessor(n)}Xf&&rm.log(`Integration installed: ${t.name}`)}}function Sg(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function xg(e,t,i,n){const s={sent_at:(new Date).toISOString()};i&&i.sdk&&(s.sdk={name:i.sdk.name,version:i.sdk.version}),n&&t&&(s.dsn=cm(t));const a=function(e){const t=function(e){let t="";for(const i of e){const e=Object.entries(i.tags),n=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${i.name}@${i.unit}:${i.metric}|${i.metricType}${n}|T${i.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Df(s,[a])}const Tg="Not capturing exception because it's already been captured.";class Rg{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=lm(e.dsn):Xf&&rm.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const i="string"==typeof t?t:t.tunnel,n="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return i||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"";return`${t}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${vg(e,n)}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,i){if(Mm(e))return void(Xf&&rm.log(Tg));let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,i))).then((e=>{n=e}))),n}captureMessage(e,t,i,n){let s=i&&i.event_id;const a=Np(e)?e:String(e),r=Fp(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(r.then((e=>this._captureEvent(e,i,n))).then((e=>{s=e}))),s}captureEvent(e,t,i){if(t&&t.originalException&&Mm(t.originalException))return void(Xf&&rm.log(Tg));let n=t&&t.event_id;const s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,s||i).then((e=>{n=e}))),n}captureSession(e){"string"!=typeof e.release?Xf&&rm.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ah(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((i=>t.flush(e).then((e=>i&&e))))):bf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Xf&&rm.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ag(this,e,this._integrations),t||Eg(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let i=function(e,t,i,n){const s=Gf(i),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,i&&i.sdk);const r=Yf(e,s,n,t);return delete e.sdkProcessingMetadata,Df(r,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])i=Bf(i,Hf(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const n=this._sendEnvelope(i);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,i,n){const s=Gf(i);return Df({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!n&&t&&{dsn:cm(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,i){if(this._options.sendClientReports){const n="number"==typeof i?i:1,s=`${e}:${t}`;Xf&&rm.log(`Recording outcome: "${s}"${n>1?` (${n} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+n}}captureAggregateMetrics(e){Xf&&rm.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=xg(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const i={};return t.forEach((t=>{t&&Ag(e,t,i)})),i}(this,e),Eg(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let i=!1,n=!1;const s=t.exception&&t.exception.values;if(s){n=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){i=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&i)&&(ah(e,{...i&&{status:"crashed"},errors:e.errors||Number(n||i)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Af((t=>{let i=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(i+=1,e&&i>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,i,n=qh()){const s=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),mh(s,e,t,i,this,n).then((e=>{if(null===e)return e;const t={...n.getPropagationContext(),...i?i.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:n,span_id:s,parent_span_id:a},...e.contexts};const o=r||kh(n,this,i);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},i){return this._processEvent(e,t,i).then((e=>e.event_id),(e=>{if(Xf){const t=e;"log"===t.logLevel?rm.log(t.message):rm.warn(t)}}))}_processEvent(e,t,i){const n=this.getOptions(),{sampleRate:s}=n,a=Lg(e),r=kg(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),Ef(new um(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const d="replay_event"===o?"replay":o,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,i,l).then((i=>{if(null===i)throw this.recordDroppedEvent("event_processor",d,e),new um("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return i;const s=function(e,t,i){const{beforeSend:n,beforeSendTransaction:s}=e;if(kg(t)&&n)return n(t,i);if(Lg(t)&&s){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(t,i)}return t}(n,i,t);return function(e,t){const i=`${t} must return \`null\` or a valid event.`;if(Cp(e))return e.then((e=>{if(!Up(e)&&null!==e)throw new um(i);return e}),(e=>{throw new um(`${t} rejected with ${e}`)}));if(!Up(e)&&null!==e)throw new um(i);return e}(s,c)})).then((n=>{if(null===n){if(this.recordDroppedEvent("before_send",d,e),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new um(`${c} returned \`null\`, will not send event.`,"log")}const s=i&&i.getSession();if(!a&&s&&this._updateSessionFromEvent(s,n),a){const e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const r=n.transaction_info;if(a&&r&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...r,source:e}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof um)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new um(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Xf&&rm.error("Error while sending event:",e)}));Xf&&rm.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[i,n]=t.split(":");return{reason:i,category:n,quantity:e[t]}}))}}function kg(e){return void 0===e.type}function Lg(e){return"transaction"===e.type}function Ng(e,t){!0===t.debug&&(Xf?rm.enable():am((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));Eh().update(t.initialScope);const i=new e(t);!function(e){const t=Vh().getStackTop();t.client=e,t.scope.setClient(e)}(i),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(i)}function Fg(e,t,i=Sf(e.bufferSize||30)){let n={};function s(s){const a=[];if($f(s,((t,i)=>{const s=Kf(i);if(Jf(n,s)){const n=Ug(t,i);e.recordDroppedEvent("ratelimit_backoff",s,n)}else a.push(t)})),0===a.length)return bf();const r=Df(s[0],a),o=t=>{$f(r,((i,n)=>{const s=Ug(i,n);e.recordDroppedEvent(t,Kf(n),s)}))};return i.add((()=>t({body:qf(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Xf&&rm.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=Qf(n,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof um)return Xf&&rm.error("Skipped sending event because buffer is full."),o("queue_overflow"),bf();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>i.drain(e)}}function Ug(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Og(e){return[{type:"span"},e]}function Cg(e,t){const i=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,n=i&&i.getDsn(),s=i&&i.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return Pg(e)===Pg(t)}(e,s)}function Pg(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const jg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Mg=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],zg="InboundFilters",Dg=(e={})=>({name:zg,setupOnce(){},processEvent(t,i,n){const s=n.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Mg],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Xf&&rm.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let i;try{i=e.exception.values[e.exception.values.length-1]}catch(e){}i&&i.value&&(t.push(i.value),i.type&&t.push(`${i.type}: ${i.value}`));Xf&&0===t.length&&rm.error(`Could not extract message for event ${Cm(e)}`);return t}(e).some((e=>Vp(e,t)))}(e,t.ignoreErrors))return Xf&&rm.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const i=e.transaction;return!!i&&Vp(i,t)}(e,t.ignoreTransactions))return Xf&&rm.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Cm(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const i=Bg(e);return!!i&&Vp(i,t)}(e,t.denyUrls))return Xf&&rm.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Cm(e)}.\nUrl: ${Bg(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const i=Bg(e);return!i||Vp(i,t)}(e,t.allowUrls))return Xf&&rm.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Cm(e)}.\nUrl: ${Bg(e)}`),!0;return!1}(t,a)?null:t}});function Bg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const i=e[t];if(i&&"<anonymous>"!==i.filename&&"[native code]"!==i.filename)return i.filename||null}return null}(t):null}catch(t){return Xf&&rm.error(`Cannot extract url for event ${Cm(e)}`),null}}let $g;Sg(zg,Dg);const Vg="FunctionToString",qg=new WeakMap,Hg=()=>({name:Vg,setupOnce(){$g=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=hm(this),i=qg.has(bh())&&void 0!==t?t:this;return $g.apply(i,e)}}catch(e){}},setup(e){qg.set(e,!0)}});Sg(Vg,Hg);const Wg="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kg=Yp;const Gg=(e,t,i)=>{let n,s;return a=>{t.value>=0&&(a||i)&&(s=t.value-(n||0),(s||void 0===n)&&(n=t.value,t.delta=s,e(t)))}},Yg=()=>Kg.__WEB_VITALS_POLYFILL__?Kg.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=Kg.performance.timing,t=Kg.performance.navigation.type,i={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(i[t]=Math.max(e[t]-e.navigationStart,0));return i})()):Kg.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Jg=()=>{const e=Yg();return e&&e.activationStart||0},Qg=(e,t)=>{const i=Yg();let n="navigate";return i&&(n=Kg.document&&Kg.document.prerendering||Jg()>0?"prerender":i.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Zg=(e,t,i)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},i||{})),n}}catch(e){}},Xg=(e,t)=>{const i=n=>{"pagehide"!==n.type&&"hidden"!==Kg.document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))};Kg.document&&(addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0))};let e_=-1;const t_=()=>(e_<0&&(Kg.document&&Kg.document.visibilityState&&(e_="hidden"!==Kg.document.visibilityState||Kg.document.prerendering?1/0:0),Xg((({timeStamp:e})=>{e_=e}),!0)),{get firstHiddenTime(){return e_}});let i_=0,n_=1/0,s_=0;const a_=e=>{e.forEach((e=>{e.interactionId&&(n_=Math.min(n_,e.interactionId),s_=Math.max(s_,e.interactionId),i_=s_?(s_-n_)/7+1:0)}))};let r_;const o_=()=>{"interactionCount"in performance||r_||(r_=Zg("event",a_,{type:"event",buffered:!0,durationThreshold:0}))},c_=()=>r_?i_:performance.interactionCount||0,d_=[],l_={},u_=e=>{const t=d_[d_.length-1],i=l_[e.interactionId];if(i||d_.length<10||e.duration>t.latency){if(i)i.entries.push(e),i.latency=Math.max(i.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};l_[t.id]=t,d_.push(t)}d_.sort(((e,t)=>t.latency-e.latency)),d_.splice(10).forEach((e=>{delete l_[e.id]}))}},p_=(e,t)=>{t=t||{},o_();const i=Qg("INP");let n;const s=e=>{e.forEach((e=>{if(e.interactionId&&u_(e),"first-input"===e.entryType){!d_.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&u_(e)}}));const t=(()=>{const e=Math.min(d_.length-1,Math.floor(c_()/50));return d_[e]})();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,n())},a=Zg("event",s,{durationThreshold:t.durationThreshold||40});n=Gg(e,i,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Xg((()=>{s(a.takeRecords()),i.value<0&&c_()>0&&(i.value=0,i.entries=[]),n(!0)})))},m_={},f_=e=>{Kg.document&&(Kg.document.prerendering?addEventListener("prerenderingchange",(()=>f_(e)),!0):"complete"!==Kg.document.readyState?addEventListener("load",(()=>f_(e)),!0):setTimeout(e,0))},h_={},g_={};let __,I_,y_,v_,w_;function b_(e,t=!1){return L_("lcp",e,T_,y_,t)}function E_(e,t){return N_(e,t),g_[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Zg(e,(t=>{A_(e,{entries:t})}),t)}(e),g_[e]=!0),F_(e,t)}function A_(e,t){const i=h_[e];if(i&&i.length)for(const n of i)try{n(t)}catch(t){Wg&&rm.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Sm(n)}\nError:`,t)}}function S_(){return((e,t={})=>{const i=Qg("CLS",0);let n,s=0,a=[];const r=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=a[0],r=a[a.length-1];s&&0!==a.length&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,a.push(e)):(s=e.value,a=[e]),s>i.value&&(i.value=s,i.entries=a,n&&n())}}))},o=Zg("layout-shift",r);if(o){n=Gg(e,i,t.reportAllChanges);const s=()=>{r(o.takeRecords()),n(!0)};return Xg(s),s}})((e=>{A_("cls",{metric:e}),__=e}),{reportAllChanges:!0})}function x_(){return(e=>{const t=t_(),i=Qg("FID");let n;const s=e=>{e.startTime<t.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=e=>{e.forEach(s)},r=Zg("first-input",a);n=Gg(e,i),r&&Xg((()=>{a(r.takeRecords()),r.disconnect()}),!0)})((e=>{A_("fid",{metric:e}),I_=e}))}function T_(){return(e=>{const t=t_(),i=Qg("LCP");let n;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-Jg(),0);e<t.firstHiddenTime&&(i.value=e,i.entries=[s],n())}},a=Zg("largest-contentful-paint",s);if(a){n=Gg(e,i);const t=()=>{m_[i.id]||(s(a.takeRecords()),a.disconnect(),m_[i.id]=!0,n(!0))};return["keydown","click"].forEach((e=>{Kg.document&&addEventListener(e,t,{once:!0,capture:!0})})),Xg(t,!0),t}})((e=>{A_("lcp",{metric:e}),y_=e}))}function R_(){return((e,t)=>{t=t||{};const i=Qg("TTFB"),n=Gg(e,i,t.reportAllChanges);f_((()=>{const e=Yg();if(e){if(i.value=Math.max(e.responseStart-Jg(),0),i.value<0||i.value>performance.now())return;i.entries=[e],n(!0)}}))})((e=>{A_("ttfb",{metric:e}),v_=e}))}function k_(){return p_((e=>{A_("inp",{metric:e}),w_=e}))}function L_(e,t,i,n,s=!1){let a;return N_(e,t),g_[e]||(a=i(),g_[e]=!0),n&&t({metric:n}),F_(e,t,s?a:void 0)}function N_(e,t){h_[e]=h_[e]||[],h_[e].push(t)}function F_(e,t,i){return()=>{i&&i();const n=h_[e];if(!n)return;const s=n.indexOf(t);-1!==s&&n.splice(s,1)}}function U_(e){return"number"==typeof e&&isFinite(e)}function O_(e,{startTimestamp:t,...i}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...i})}function C_(e){return e/1e3}function P_(){return Kg&&Kg.addEventListener&&Kg.performance}let j_,M_,z_=0,D_={};function B_(){const e=P_();if(e&&Nf){e.mark&&Kg.performance.mark("sentry-tracing-init");const t=L_("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const i=C_(Nf),n=C_(t.startTime);Wg&&rm.log("[Measurements] Adding FID"),D_.fid={value:e.value,unit:"millisecond"},D_["mark.fid"]={value:i+n,unit:"second"}}),x_,I_),i=function(e,t=!1){return L_("cls",e,S_,__,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wg&&rm.log("[Measurements] Adding CLS"),D_.cls={value:e.value,unit:""},M_=t)}),!0),n=b_((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wg&&rm.log("[Measurements] Adding LCP"),D_.lcp={value:e.value,unit:"millisecond"},j_=t)}),!0),s=function(e){return L_("ttfb",e,R_,v_)}((({metric:e})=>{e.entries[e.entries.length-1]&&(Wg&&rm.log("[Measurements] Adding TTFB"),D_.ttfb={value:e.value,unit:"millisecond"})}));return()=>{t(),i(),n(),s()}}return()=>{}}function $_(e,t){if(P_()&&Nf){const i=function(e,t){return i=({metric:i})=>{if(void 0===i.value)return;const n=i.entries.find((e=>e.duration===i.value&&void 0!==V_[e.name])),s=bh();if(!n||!s)return;const a=V_[n.name],r=s.getOptions(),o=C_(Nf+n.startTime),c=C_(i.value),d=void 0!==n.interactionId?e[n.interactionId]:void 0;if(void 0===d)return;const{routeName:l,parentContext:u,activeTransaction:p,user:m,replayId:f}=d,h=void 0!==m?m.email||m.id||m.ip_address:void 0,g=void 0!==p?p.getProfileId():void 0,_=new cg({startTimestamp:o,endTimestamp:o+c,op:`ui.interaction.${a}`,name:Xp(n.target),attributes:{release:r.release,environment:r.environment,transaction:l,...void 0!==h&&""!==h?{user:h}:{},...void 0!==g?{profile_id:g}:{},...void 0!==f?{replay_id:f}:{}},exclusiveTime:i.value,measurements:{inp:{value:i.value,unit:"millisecond"}}}),I=function(e,t,i){if(!Zh(t))return!1;let n;return n=void 0!==e&&"function"==typeof t.tracesSampler?t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:Kg.location}):void 0!==e&&void 0!==e.sampled?e.sampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1,hg(n)?!0===n?i:!1===n?0:n*i:(Wg&&rm.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(u,r,t);if(I&&Math.random()<I){const e=_?function(e,t){const i={sent_at:(new Date).toISOString()};return t&&(i.dsn=cm(t)),Df(i,e.map(Og))}([_],s.getDsn()):void 0,t=s&&s.getTransport();t&&e&&t.send(e).then(null,(e=>{Wg&&rm.error("Error while sending interaction:",e)}))}},L_("inp",i,k_,w_);var i}(e,t);return()=>{i()}}return()=>{}}const V_={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function q_(e){const t=P_();if(!t||!Kg.performance.getEntries||!Nf)return;Wg&&rm.log("[Tracing] Adding & adjusting spans using Performance API");const i=C_(Nf),n=t.getEntries(),{op:s,start_timestamp:a}=uh(e);if(n.slice(z_).forEach((t=>{const n=C_(t.startTime),s=C_(t.duration);if(!("navigation"===e.op&&a&&i+n<a))switch(t.entryType){case"navigation":!function(e,t,i){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{H_(e,t,n,i)})),H_(e,t,"secureConnection",i,"TLS/SSL","connectEnd"),H_(e,t,"fetch",i,"cache","domainLookupStart"),H_(e,t,"domainLookup",i,"DNS"),function(e,t,i){t.responseEnd&&(O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+C_(t.requestStart),endTimestamp:i+C_(t.responseEnd)}),O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+C_(t.responseStart),endTimestamp:i+C_(t.responseEnd)}))}(e,t,i)}(e,t,i);break;case"mark":case"paint":case"measure":{!function(e,t,i,n,s){const a=s+i,r=a+n;O_(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,n,s,i);const a=t_(),r=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&r&&(Wg&&rm.log("[Measurements] Adding FP"),D_.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&r&&(Wg&&rm.log("[Measurements] Adding FCP"),D_.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,i,n,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r=xf(i),o={};W_(o,t,"transferSize","http.response_transfer_size"),W_(o,t,"encodedBodySize","http.response_content_length"),W_(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus);r.protocol&&(o["url.scheme"]=r.protocol.split(":").pop());r.host&&(o["server.address"]=r.host);o["url.same_origin"]=i.includes(Kg.location.origin);const c=a+n,d=c+s;O_(e,{description:i.replace(Kg.location.origin,""),endTimestamp:d,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}(e,t,t.name,n,s,i)}})),z_=Math.max(n.length-1,0),function(e){const t=Kg.navigator;if(!t)return;const i=t.connection;i&&(i.effectiveType&&e.setTag("effectiveConnectionType",i.effectiveType),i.type&&e.setTag("connectionType",i.type),U_(i.rtt)&&(D_["connection.rtt"]={value:i.rtt,unit:"millisecond"}));U_(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);U_(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e){const t=Yg();if(!t)return;const{responseStart:i,requestStart:n}=t;n<=i&&(Wg&&rm.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:i-n,unit:"millisecond"})}(D_),["fcp","fp","lcp"].forEach((e=>{if(!D_[e]||!a||i>=a)return;const t=D_[e].value,n=i+C_(t),s=Math.abs(1e3*(n-a)),r=s-t;Wg&&rm.log(`[Measurements] Normalized ${e} from ${t} to ${s} (${r})`),D_[e].value=s}));const t=D_["mark.fid"];t&&D_.fid&&(O_(e,{description:"first input delay",endTimestamp:t.value+C_(D_.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete D_["mark.fid"]),"fcp"in D_||delete D_.cls,Object.keys(D_).forEach((e=>{!function(e,t,i){const n=Kh();n&&n.setMeasurement(e,t,i)}(e,D_[e].value,D_[e].unit)})),function(e){j_&&(Wg&&rm.log("[Measurements] Adding LCP Data"),j_.element&&e.setTag("lcp.element",Xp(j_.element)),j_.id&&e.setTag("lcp.id",j_.id),j_.url&&e.setTag("lcp.url",j_.url.trim().slice(0,200)),e.setTag("lcp.size",j_.size));M_&&M_.sources&&(Wg&&rm.log("[Measurements] Adding CLS Data"),M_.sources.forEach(((t,i)=>e.setTag(`cls.source.${i+1}`,Xp(t.node)))))}(e)}j_=void 0,M_=void 0,D_={}}function H_(e,t,i,n,s,a){const r=a?t[a]:t[`${i}End`],o=t[`${i}Start`];o&&r&&O_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||i,startTimestamp:n+C_(o),endTimestamp:n+C_(r)})}function W_(e,t,i,n){const s=t[i];null!=s&&s<2147483647&&(e[n]=s)}function K_(e,t,i,n,s="auto.http.browser"){if(!Zh()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const i=n[t];return void(i&&(!function(e,t){if(t.response){Qh(e,t.response.status);const i=t.response&&t.response.headers&&t.response.headers.get("content-length");if(i){const t=parseInt(i);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(i,e),delete n[t]))}const r=Eh(),o=bh(),{method:c,url:d}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(d),u=l?xf(l).host:void 0,p=a?Xh({name:`${c} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":c,"http.url":l,"server.address":u,[rg]:s},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p),i(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const i=e.args[1];i.headers=function(e,t,i,n,s){const a=s||i.getSpan(),r=qh(),{traceId:o,spanId:c,sampled:d,dsc:l}={...r.getPropagationContext(),...i.getPropagationContext()},u=a?ch(a):zf(o,c,d),p=Cf(l||(a?Lh(a):kh(o,t,i))),m=n.headers||("undefined"!=typeof Request&&jp(e,Request)?e.headers:void 0);if(m){if("undefined"!=typeof Headers&&jp(m,Headers)){const e=new Headers(m);return e.append("sentry-trace",u),p&&e.append(Ff,p),e}if(Array.isArray(m)){const e=[...m,["sentry-trace",u]];return p&&e.push([Ff,p]),e}{const e="baggage"in m?m.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...m,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,i,p)}return p}const G_=["localhost",/^\/(?!\/)/],Y_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:G_,tracePropagationTargets:G_};function J_(e){const{traceFetch:t,traceXHR:i,tracePropagationTargets:n,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:Y_.traceFetch,traceXHR:Y_.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return Vp(e,t||G_)}(e,n||s),d={};t&&Jm((e=>{const t=K_(e,o,c,d);if(t){const i=X_(e.fetchData.url),n=i?xf(i).host:void 0;t.setAttributes({"http.url":i,"server.address":n})}r&&t&&Q_(t)})),i&&ff((e=>{const t=function(e,t,i,n){const s=e.xhr,a=s&&s[mf];if(!Zh()||!s||s.__sentry_own_request__||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=n[e];return void(t&&void 0!==a.status_code&&(Qh(t,a.status_code),t.end(),delete n[e]))}const o=Eh(),c=qh(),d=X_(a.url),l=d?xf(d).host:void 0,u=r?Xh({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":d,url:a.url,"server.address":l,[rg]:"auto.http.browser"},op:"http.client"}):void 0;u&&(s.__sentry_xhr_span_id__=u.spanContext().spanId,n[s.__sentry_xhr_span_id__]=u);const p=bh();if(s.setRequestHeader&&i(a.url)&&p){const{traceId:e,spanId:t,sampled:i,dsc:n}={...c.getPropagationContext(),...o.getPropagationContext()};!function(e,t,i){try{e.setRequestHeader("sentry-trace",t),i&&e.setRequestHeader(Ff,i)}catch(e){}}(s,u?ch(u):zf(e,t,i),Cf(n||(u?Lh(u):kh(e,p,o))))}return u}(e,o,c,d);r&&t&&Q_(t)}))}function Q_(e){const{url:t}=uh(e).data||{};if(!t||"string"!=typeof t)return;const i=E_("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){const t=function(e){const{name:t,version:i}=function(e){let t="unknown",i="unknown",n="";for(const s of e){if("/"===s){[t,i]=e.split("/");break}if(!isNaN(Number(s))){t="h"===n?"http":n,i=e.split(n)[1];break}n+=s}n===e&&(t=n);return{name:t,version:i}}(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",i],["network.protocol.name",t]),!Nf)return n;return[...n,["http.request.redirect_start",Z_(e.redirectStart)],["http.request.fetch_start",Z_(e.fetchStart)],["http.request.domain_lookup_start",Z_(e.domainLookupStart)],["http.request.domain_lookup_end",Z_(e.domainLookupEnd)],["http.request.connect_start",Z_(e.connectStart)],["http.request.secure_connection_start",Z_(e.secureConnectionStart)],["http.request.connection_end",Z_(e.connectEnd)],["http.request.request_start",Z_(e.requestStart)],["http.request.response_start",Z_(e.responseStart)],["http.request.response_end",Z_(e.responseEnd)]]}(n);t.forEach((t=>e.setAttribute(...t))),setTimeout(i)}}))}))}function Z_(e=0){return((Nf||performance.timeOrigin)+e)/1e3}function X_(e){try{return new URL(e,Kg.location.origin).href}catch(e){return}}const eI={...lg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Y_},tI=(e={})=>{const t=!!Wg&&!(!e.tracePropagationTargets&&!e.tracingOrigins);yg(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const i={...eI,...e},n=B_(),s={};i.enableInp&&$_(s,i.interactionsSampleRate),i.enableLongTask&&E_("longtask",(({entries:e})=>{for(const t of e){const e=Kh();if(!e)return;const i=C_(Nf+t.startTime),n=C_(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+n})}})),i._experiments.enableInteractions&&E_("event",(({entries:e})=>{for(const t of e){const e=Kh();if(!e)return;if("click"===t.name){const i=C_(Nf+t.startTime),n=C_(t.duration),s={description:Xp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+n},a=tm(t.target);a&&(s.attributes={"ui.component_name":a}),e.startChild(s)}}}));const a={name:void 0,context:void 0};function r(e){const t=Vh(),{beforeStartSpan:s,idleTimeout:r,finalTimeout:o,heartbeatInterval:c}=i,d="pageload"===e.op;let l;if(d){const t=d?iI("sentry-trace"):"",i=d?iI("baggage"):void 0,{traceId:n,dsc:s,parentSpanId:a,sampled:r}=Mf(t,i);l={traceId:n,parentSpanId:a,parentSampled:r,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else l={trimEnd:!0,...e};const u=s?s(l):l;u.metadata=u.name!==l.name?{...u.metadata,source:"custom"}:u.metadata,a.name=u.name,a.context=u,!1===u.sampled&&Wg&&rm.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),Wg&&rm.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:p}=Kg,m=Ig(t,u,r,o,!0,{location:p},c,d);return d&&Kg.document&&(Kg.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(Kg.document.readyState)&&m.sendAutoFinishSignal()})),["interactive","complete"].includes(Kg.document.readyState)&&m.sendAutoFinishSignal()),m.registerBeforeFinishCallback((e=>{n(),q_(e)})),m}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const n=e.getOptions(),{markBackgroundSpan:o,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:l,enableHTTPTimings:u,_experiments:p}=i,m=n&&n.tracePropagationTargets,f=m||i.tracePropagationTargets;let h;Wg&&t&&m&&rm.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=Kg.location&&Kg.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{h&&(Wg&&rm.log(`[Tracing] Finishing current transaction with op: ${uh(h).op}`),h.end()),h=r({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{h&&(Wg&&rm.log(`[Tracing] Finishing current transaction with op: ${uh(h).op}`),h.end()),h=r({op:"pageload",...e})}))),i.instrumentPageLoad&&e.emit&&Kg.location){const t={name:Kg.location.pathname,startTimestamp:Nf?Nf/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ng]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const i=eg();i&&uh(i).op}(e,t)}i.instrumentNavigation&&e.emit&&Kg.location&&lf((({to:t,from:i})=>{if(void 0===i&&g&&-1!==g.indexOf(t))g=void 0;else if(i!==t){g=void 0;const t={name:Kg.location.pathname,origin:"auto.navigation.browser",attributes:{[ng]:"url"}};!function(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const i=eg();i&&uh(i).op}(e,t)}})),o&&(Kg.document?Kg.document.addEventListener("visibilitychange",(()=>{const e=Kh();if(Kg.document.hidden&&e){const t="cancelled",{op:i,status:n}=uh(e);Wg&&rm.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${i}`),n||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Wg&&rm.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&function(e,t){let i;const n=()=>{const{idleTimeout:n,finalTimeout:s,heartbeatInterval:a}=e,r="ui.action.click",o=Kh();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(Wg&&rm.warn(`[Tracing] Did not create ${r} transaction because a pageload or navigation transaction is in progress.`));if(i&&(i.setFinishReason("interactionInterrupted"),i.end(),i=void 0),!t.name)return void(Wg&&rm.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`));const{location:c}=Kg,d={name:t.name,op:r,trimEnd:!0,data:{[ng]:t.context?sI(t.context):"url"}};i=Ig(Vh(),d,n,s,!0,{location:c},a)};["click"].forEach((e=>{Kg.document&&addEventListener(e,n,{once:!1,capture:!0})}))}(i,a),i.enableInp&&function(e,t){const i=({entries:i})=>{const n=bh(),s=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,a=void 0!==s?s.getReplayId():void 0,r=Kh(),o=Eh(),c=void 0!==o?o.getUser():void 0;i.forEach((i=>{if(function(e){return"duration"in e}(i)){const n=i.interactionId;if(void 0===n)return;const s=e[n],o=i.duration,d=i.startTime,l=Object.keys(e),u=l.length>0?l.reduce(((t,i)=>e[t].duration<e[i].duration?t:i)):void 0;if("first-input"===i.entryType){if(l.map((t=>e[t])).some((e=>e.duration===o&&e.startTime===d)))return}if(!n)return;if(s)s.duration=Math.max(s.duration,o);else if(l.length<nI||void 0===u||o>e[u].duration){const i=t.name,s=t.context;i&&s&&(u&&Object.keys(e).length>=nI&&delete e[u],e[n]={routeName:i,duration:o,parentContext:s,user:c,activeTransaction:r,replayId:a,startTime:d})}}}))};E_("event",i),E_("first-input",i)}(s,a),J_({traceFetch:c,traceXHR:d,tracePropagationTargets:f,shouldCreateSpanForRequest:l,enableHTTPTimings:u})},options:i}};function iI(e){const t=(i=`meta[name=${e}]`,Zp.document&&Zp.document.querySelector?Zp.document.querySelector(i):null);var i;return t?t.getAttribute("content"):void 0}const nI=10;function sI(e){const t=e.attributes&&e.attributes[ng],i=e.data&&e.data[ng],n=e.metadata&&e.metadata.source;return t||i||n}const aI=Yp;let rI=0;function oI(){return rI>0}function cI(e,t={},i){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(hm(e))return e}catch(t){return e}const n=function(){const i=Array.prototype.slice.call(arguments);try{const n=i.map((e=>cI(e,t)));return e.apply(this,n)}catch(e){throw rI++,setTimeout((()=>{rI--})),wh((n=>{n.addEventProcessor((e=>(t.mechanism&&(Pm(e,void 0),jm(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),_h(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}fm(n,e),mm(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}const dI="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function lI(e,t){const i=pI(e,t),n={type:t&&t.name,value:fI(t)};return i.length&&(n.stacktrace={frames:i}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function uI(e,t){return{exception:{values:[lI(e,t)]}}}function pI(e,t){const i=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(mI.test(e.message))return 1}return 0}(t);try{return e(i,n)}catch(e){}return[]}const mI=/Minified React error #\d+;/i;function fI(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function hI(e,t,i,n,s){let a;if(Rp(t)&&t.error){return uI(e,t.error)}if(kp(t)||Tp(t,"DOMException")){const s=t;if("stack"in t)a=uI(e,t);else{const t=s.name||(kp(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=gI(e,r,i,n),Pm(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(xp(t))return uI(e,t);if(Up(t)||Op(t)){return a=function(e,t,i,n){const s=bh(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:Op(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:_I(t,{isUnhandledRejection:n})}]},extra:{__serialized__:yf(t,a)}};if(i){const t=pI(e,i);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,i,s),jm(a,{synthetic:!0}),a}return a=gI(e,t,i,n),Pm(a,`${t}`),jm(a,{synthetic:!0}),a}function gI(e,t,i,n){const s={};if(n&&i){const n=pI(e,i);n.length&&(s.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(Np(t)){const{__sentry_template_string__:e,__sentry_template_values__:i}=t;return s.logentry={message:e,params:i},s}return s.message=t,s}function _I(e,{isUnhandledRejection:t}){const i=function(e,t=40){const i=Object.keys(gm(e));if(i.sort(),!i.length)return"[object has no keys]";if(i[0].length>=t)return zp(i[0],t);for(let e=i.length;e>0;e--){const n=i.slice(0,e).join(", ");if(!(n.length>t))return e===i.length?n:zp(n,t)}return""}(e),n=t?"promise rejection":"exception";if(Rp(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(Op(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${i}`}class II extends Rg{constructor(e){!function(e,t,i=[t],n="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:i.map((e=>({name:`${n}:@sentry/${e}`,version:jh}))),version:jh}),e._metadata=s}(e,"browser",["browser"],aI.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&aI.document&&aI.document.addEventListener("visibilitychange",(()=>{"hidden"===aI.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,i,n){const s=hI(e,t,i&&i.syntheticException||void 0,n);return jm(s),s.level="error",i&&i.event_id&&(s.event_id=i.event_id),bf(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",i){return function(e,t,i="info",n,s){const a=gI(e,t,n&&n.syntheticException||void 0,s);return a.level=i,n&&n.event_id&&(a.event_id=n.event_id),bf(a)}(this._options.stackParser,e,t,i,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(dI&&rm.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:i,dsn:n}){const s={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!i&&!!n&&{dsn:cm(n)}},a=function(e){return[{type:"user_report"},e]}(e);return Df(s,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,i)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(dI&&rm.log("No outcomes to send"));if(!this._dsn)return void(dI&&rm.log("No dsn provided, will not send outcomes"));dI&&rm.log("Sending outcomes:",e);const t=(i=e,Df((n=this._options.tunnel&&cm(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:kf(),discarded_events:i}]]));var i,n;this._sendEnvelope(t)}}let yI;function vI(e,t=function(){if(yI)return yI;if(Ym(aI.fetch))return yI=aI.fetch.bind(aI);const e=aI.document;let t=aI.fetch;if(e&&"function"==typeof e.createElement)try{const i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i);const n=i.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(i)}catch(e){dI&&rm.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return yI=t.bind(aI)}()){let i=0,n=0;return Fg(e,(function(s){const a=s.body.length;i+=a,n++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:i<=6e4&&n<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(i-=a,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return yI=void 0,i-=a,n--,Ef(e)}}))}function wI(e){return Fg(e,(function(t){return new Af(((i,n)=>{const s=new XMLHttpRequest;s.onerror=n,s.onreadystatechange=()=>{4===s.readyState&&i({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const bI="?";function EI(e,t,i,n){const s={filename:e,function:t,in_app:!0};return void 0!==i&&(s.lineno=i),void 0!==n&&(s.colno=n),s}const AI=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,SI=/\((\S*)(?::(\d+))(?::(\d+))\)/,xI=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,TI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,RI=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,kI=Em(...[[30,e=>{const t=AI.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=SI.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,i]=LI(t[1]||bI,t[2]);return EI(i,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=xI.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=TI.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],i=t[1]||bI;return[i,e]=LI(i,e),EI(e,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=RI.exec(e);return t?EI(t[2],t[1]||bI,+t[3],t[4]?+t[4]:void 0):void 0}]]),LI=(e,t)=>{const i=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return i||n?[-1!==e.indexOf("@")?e.split("@")[0]:bI,i?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},NI=1024,FI="Breadcrumbs",UI=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:FI,setupOnce(){},setup(e){t.console&&Nm(function(e){return function(t){if(bh()!==e)return;const i={category:"console",data:{arguments:t.args,logger:"console"},level:Rf(t.level),message:Bp(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;i.message=`Assertion failed: ${Bp(t.args.slice(1)," ")||"console.assert"}`,i.data.arguments=t.args.slice(1)}vh(i,{input:t.args,level:t.level})}}(e)),t.dom&&qm(function(e,t){return function(i){if(bh()!==e)return;let n,s,a="object"==typeof t?t.serializeAttribute:void 0,r="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;r&&r>NI&&(dI&&rm.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=NI),"string"==typeof a&&(a=[a]);try{const e=i.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=Xp(t,{keyAttrs:a,maxStringLength:r}),s=tm(t)}catch(e){n="<unknown>"}if(0===n.length)return;const o={category:`ui.${i.name}`,message:n};s&&(o.data={"ui.component_name":s}),vh(o,{event:i.event,name:i.name,global:i.global})}}(e,t.dom)),t.xhr&&ff(function(e){return function(t){if(bh()!==e)return;const{startTimestamp:i,endTimestamp:n}=t,s=t.xhr[mf];if(!i||!n||!s)return;const{method:a,url:r,status_code:o,body:c}=s;vh({category:"xhr",data:{method:a,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:c,startTimestamp:i,endTimestamp:n})}}(e)),t.fetch&&Jm(function(e){return function(t){if(bh()!==e)return;const{startTimestamp:i,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){vh({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:i,endTimestamp:n})}else{const e=t.response;vh({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:i,endTimestamp:n})}}}(e)),t.history&&lf(function(e){return function(t){if(bh()!==e)return;let i=t.from,n=t.to;const s=xf(aI.location.href);let a=i?xf(i):void 0;const r=xf(n);a&&a.path||(a=s),s.protocol===r.protocol&&s.host===r.host&&(n=r.relative),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),vh({category:"navigation",data:{from:i,to:n}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){bh()===e&&vh({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Cm(t)},{event:t})}}(e))}}};Sg(FI,UI);const OI="Dedupe",CI=()=>{let e;return{name:OI,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const i=e.message,n=t.message;if(!i&&!n)return!1;if(i&&!n||!i&&n)return!1;if(i!==n)return!1;if(!jI(e,t))return!1;if(!PI(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const i=MI(t),n=MI(e);if(!i||!n)return!1;if(i.type!==n.type||i.value!==n.value)return!1;if(!jI(e,t))return!1;if(!PI(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return dI&&rm.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function PI(e,t){let i=zI(e),n=zI(t);if(!i&&!n)return!0;if(i&&!n||!i&&n)return!1;if(n.length!==i.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],s=i[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function jI(e,t){let i=e.fingerprint,n=t.fingerprint;if(!i&&!n)return!0;if(i&&!n||!i&&n)return!1;try{return!(i.join("")!==n.join(""))}catch(e){return!1}}function MI(e){return e.exception&&e.exception.values&&e.exception.values[0]}function zI(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Sg(OI,CI);const DI="GlobalHandlers",BI=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:DI,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){tf((t=>{const{stackParser:i,attachStacktrace:n}=qI();if(bh()!==e||oI())return;const{msg:s,url:a,line:r,column:o,error:c}=t,d=void 0===c&&Lp(s)?function(e,t,i,n){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Rp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return $I(c,t,i,n)}(s,a,r,o):$I(hI(i,c||s,void 0,n,!1),a,r,o);d.level="error",yh(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),VI("onerror")),t.onunhandledrejection&&(!function(e){af((t=>{const{stackParser:i,attachStacktrace:n}=qI();if(bh()!==e||oI())return;const s=function(e){if(Fp(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),a=Fp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:hI(i,s,void 0,n,!0);a.level="error",yh(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),VI("onunhandledrejection"))}}};function $I(e,t,i,n){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],d=isNaN(parseInt(n,10))?void 0:n,l=isNaN(parseInt(i,10))?void 0:i,u=Lp(t)&&t.length>0?t:function(){try{return Zp.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:d,filename:u,function:"?",in_app:!0,lineno:l}),e}function VI(e){dI&&rm.log(`Global Handler attached: ${e}`)}function qI(){const e=bh();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}Sg(DI,BI);const HI="HttpContext",WI=()=>({name:HI,setupOnce(){},preprocessEvent(e){if(!aI.navigator&&!aI.location&&!aI.document)return;const t=e.request&&e.request.url||aI.location&&aI.location.href,{referrer:i}=aI.document||{},{userAgent:n}=aI.navigator||{},s={...e.request&&e.request.headers,...i&&{Referer:i},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:s};e.request=a}});Sg(HI,WI);const KI="LinkedErrors",GI=(e={})=>{const t=e.limit||5,i=e.key||"cause";return{name:KI,setupOnce(){},preprocessEvent(e,n,s){const a=s.getOptions();qp(lI,a.stackParser,a.maxValueLength,i,t,e,n)}}};Sg(KI,GI);const YI=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],JI="TryCatch",QI=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:JI,setupOnce(){t.setTimeout&&pm(aI,"setTimeout",ZI),t.setInterval&&pm(aI,"setInterval",ZI),t.requestAnimationFrame&&pm(aI,"requestAnimationFrame",XI),t.XMLHttpRequest&&"XMLHttpRequest"in aI&&pm(XMLHttpRequest.prototype,"send",ey);const e=t.eventTarget;if(e){(Array.isArray(e)?e:YI).forEach(ty)}}}};function ZI(e){return function(...t){const i=t[0];return t[0]=cI(i,{mechanism:{data:{function:Sm(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function XI(e){return function(t){return e.apply(this,[cI(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Sm(e)},handled:!1,type:"instrument"}})])}}function ey(e){return function(...t){const i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in i&&"function"==typeof i[e]&&pm(i,e,(function(t){const i={mechanism:{data:{function:e,handler:Sm(t)},handled:!1,type:"instrument"}},n=hm(t);return n&&(i.mechanism.data.handler=Sm(n)),cI(t,i)}))})),e.apply(this,t)}}function ty(e){const t=aI,i=t[e]&&t[e].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(pm(i,"addEventListener",(function(t){return function(i,n,s){try{"function"==typeof n.handleEvent&&(n.handleEvent=cI(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sm(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[i,cI(n,{mechanism:{data:{function:"addEventListener",handler:Sm(n),target:e},handled:!1,type:"instrument"}}),s])}})),pm(i,"removeEventListener",(function(e){return function(t,i,n){const s=i;try{const i=s&&s.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,s,n)}})))}Sg(JI,QI);const iy=[Dg(),Hg(),QI(),UI(),BI(),GI(),CI(),WI()];function ny(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...iy]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),aI.SENTRY_RELEASE&&aI.SENTRY_RELEASE.id&&(e.release=aI.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(i=e.stackParser||kI,Array.isArray(i)?Em(...i):i),integrations:bg(e),transport:e.transport||(Gm()?vI:wI)};var i;Ng(II,t),e.autoSessionTracking&&function(){if(void 0===aI.document)return void(dI&&rm.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Ah({ignoreDuration:!0}),Th(),lf((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ah({ignoreDuration:!0}),Th())}))}()}const sy=Yp,ay="sentryReplaySession",ry="Unable to send Replay",oy=15e4,cy=5e3,dy=2e7,ly=36e5;function uy(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}var py;function my(e){const t=uy([e,"optionalAccess",e=>e.host]);return Boolean(uy([t,"optionalAccess",e=>e.shadowRoot])===e)}function fy(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function hy(e){try{const i=e.rules||e.cssRules;return i?((t=Array.from(i,gy).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function gy(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=hy(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const i=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?i.push("layer"):e.layerName&&i.push(`layer(${e.layerName})`),e.supportsText&&i.push(`supports(${e.supportsText})`),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(py||(py={}));class _y{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=uy([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return n=()=>-1,null!=(i=t)?i:n();var i,n}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const e=this.nodeMetaMap.get(i);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Iy({maskInputOptions:e,tagName:t,type:i}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||i&&e[i]||"password"===i||"INPUT"===t&&!i&&e.text)}function yy({isMasked:e,element:t,value:i,maskInputFn:n}){let s=i||"";return e?(n&&(s=n(s,t)),"*".repeat(s.length)):s}function vy(e){return e.toLowerCase()}function wy(e){return e.toUpperCase()}const by="__rrweb_original__";function Ey(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?vy(t):null}function Ay(e,t,i){return"INPUT"!==t||"radio"!==i&&"checkbox"!==i?e.value:e.getAttribute("value")||""}let Sy=1;const xy=new RegExp("[^a-z0-9-_:]");function Ty(){return Sy++}let Ry,ky;const Ly=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ny=/^(?:[a-z+]+:)?\/\//i,Fy=/^www\..*/i,Uy=/^(data:)([^,]*),(.*)/i;function Oy(e,t){return(e||"").replace(Ly,((e,i,n,s,a,r)=>{const o=n||a||r,c=i||s||"";if(!o)return e;if(Ny.test(o)||Fy.test(o))return`url(${c}${o}${c})`;if(Uy.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+o}${c})`;const d=t.split("/"),l=o.split("/");d.pop();for(const e of l)"."!==e&&(".."===e?d.pop():d.push(e));return`url(${c}${d.join("/")}${c})`}))}const Cy=/^[^ \t\n\r\u000c]+/,Py=/^[, \t\n\r\u000c]+/;function jy(e,t){if(!t||""===t.trim())return t;const i=e.createElement("a");return i.href=t,i.href}function My(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function zy(){const e=document.createElement("a");return e.href="",e.href}function Dy(e,t,i,n,s,a){return n?"src"===i||"href"===i&&("use"!==t||"#"!==n[0])||"xlink:href"===i&&"#"!==n[0]?jy(e,n):"background"!==i||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===i?function(e,t){if(""===t.trim())return t;let i=0;function n(e){let n;const s=e.exec(t.substring(i));return s?(n=s[0],i+=n.length,n):""}const s=[];for(;n(Py),!(i>=t.length);){let a=n(Cy);if(","===a.slice(-1))a=jy(e,a.substring(0,a.length-1)),s.push(a);else{let n="";a=jy(e,a);let r=!1;for(;;){const e=t.charAt(i);if(""===e){s.push((a+n).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){i+=1,s.push((a+n).trim());break}"("===e&&(r=!0)}n+=e,i+=1}}}return s.join(", ")}(e,n):"style"===i?Oy(n,zy()):"object"===t&&"data"===i?jy(e,n):"function"==typeof a?a(i,n,s):n:jy(e,n):n}function By(e,t,i){return("video"===e||"audio"===e)&&"autoplay"===t}function $y(e,t,i=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>i?-1:t(e)?n:$y(e.parentNode,t,i,n+1):-1}function Vy(e,t){return i=>{const n=i;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch(e){return!1}}}function qy(e,t,i,n,s,a){try{const r=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===r)return!1;if("INPUT"===r.tagName){const e=r.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,c=-1;if(a){if(c=$y(r,Vy(n,s)),c<0)return!0;o=$y(r,Vy(t,i),c>=0?c:1/0)}else{if(o=$y(r,Vy(t,i)),o<0)return!1;c=$y(r,Vy(n,s),o>=0?o:1/0)}return o>=0?!(c>=0)||o<=c:!(c>=0)&&!!a}catch(e){}return!!a}function Hy(e,t){const{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:f={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:I,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:w=!1}=t,b=function(e,t){if(!t.hasNode(e))return;const i=t.getId(e);return 1===i?void 0:i}(i,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:py.Document,childNodes:[],compatMode:e.compatMode}:{type:py.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:py.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return function(e,t){const{doc:i,blockClass:n,blockSelector:s,unblockSelector:a,inlineStylesheet:r,maskInputOptions:o={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:l={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,rootId:h,maskAllText:g,maskTextClass:_,unmaskTextClass:I,maskTextSelector:y,unmaskTextSelector:v}=t,w=function(e,t,i,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const n=e.classList[i];if(t.test(n))return!0}if(i)return e.matches(i)}catch(e){}return!1}(e,n,s,a),b=function(e){if(e instanceof HTMLFormElement)return"form";const t=vy(e.tagName);return xy.test(t)?"div":t}(e);let E={};const A=e.attributes.length;for(let t=0;t<A;t++){const n=e.attributes[t];n.name&&!By(b,n.name,n.value)&&(E[n.name]=Dy(i,b,vy(n.name),n.value,e,c))}if("link"===b&&r){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=hy(t)),n&&(delete E.rel,delete E.href,E._cssText=Oy(n,t.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=hy(e.sheet);t&&(E._cssText=Oy(t,zy()))}if("input"===b||"textarea"===b||"select"===b||"option"===b){const t=e,i=Ey(t),n=Ay(t,wy(b),i),s=t.checked;if("submit"!==i&&"button"!==i&&n){const e=qy(t,_,y,I,v,Iy({type:i,tagName:wy(b),maskInputOptions:o}));E.value=yy({isMasked:e,element:t,value:n,maskInputFn:d})}s&&(E.checked=s)}"option"===b&&(e.selected&&!o.select?E.selected=!0:delete E.selected);if("canvas"===b&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let i=0;i<e.width;i+=50)for(let n=0;n<e.height;n+=50){const s=t.getImageData,a=by in s?s[by]:s;if(new Uint32Array(a.call(t,i,n,Math.min(50,e.width-i),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),i=document.createElement("canvas");i.width=e.width,i.height=e.height;t!==i.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===b&&u){Ry||(Ry=i.createElement("canvas"),ky=Ry.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{Ry.width=t.naturalWidth,Ry.height=t.naturalHeight,ky.drawImage(t,0,0),E.rr_dataURL=Ry.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?E.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==b&&"video"!==b||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:i}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${i}px`}}"iframe"!==b||m(E.src)||(e.contentDocument||(E.rr_src=E.src),delete E.src);let S;try{customElements.get(b)&&(S=!0)}catch(e){}return{type:py.Element,tagName:b,attributes:E,childNodes:[],isSVG:My(e)||void 0,needBlock:w,rootId:h,isCustom:S}}(e,{doc:i,blockClass:s,blockSelector:a,unblockSelector:r,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:I,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:w,rootId:b,maskAllText:o,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:i,maskTextClass:n,unmaskTextClass:s,maskTextSelector:a,unmaskTextSelector:r,maskTextFn:o,maskInputOptions:c,maskInputFn:d,rootId:l}=t,u=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m="STYLE"===u||void 0,f="SCRIPT"===u||void 0,h="TEXTAREA"===u||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||uy([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=hy(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Oy(p,zy())}f&&(p="SCRIPT_PLACEHOLDER");const g=qy(e,n,a,s,r,i);m||f||h||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*"));h&&p&&(c.textarea||g)&&(p=d?d(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===u&&p){p=yy({isMasked:qy(e,n,a,s,r,Iy({type:null,tagName:u,maskInputOptions:c})),element:e,value:p,maskInputFn:d})}return{type:py.Text,textContent:p||"",isStyle:m,rootId:l}}(e,{maskAllText:o,maskTextClass:d,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:h,maskInputOptions:f,maskInputFn:g,rootId:b});case e.CDATA_SECTION_NODE:return{type:py.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:py.Comment,textContent:e.textContent||"",rootId:b};default:return!1}}function Wy(e){return null==e?"":e.toLowerCase()}function Ky(e,t){const{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:f={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y={},inlineImages:v=!1,recordCanvas:w=!1,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:R=!1}=t;let{preserveWhiteSpace:k=!0}=t;const L=Hy(e,{doc:i,mirror:n,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:v,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:R});if(!L)return console.warn(e,"not serialized"),null;let N;N=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===py.Comment)return!0;if(e.type===py.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Wy(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Wy(e.attributes.name)||"icon"===Wy(e.attributes.rel)||"apple-touch-icon"===Wy(e.attributes.rel)||"shortcut icon"===Wy(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Wy(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Wy(e.attributes.property).match(/^(og|twitter|fb):/)||Wy(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Wy(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Wy(e.attributes.name)||"googlebot"===Wy(e.attributes.name)||"bingbot"===Wy(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Wy(e.attributes.name)||"generator"===Wy(e.attributes.name)||"framework"===Wy(e.attributes.name)||"publisher"===Wy(e.attributes.name)||"progid"===Wy(e.attributes.name)||Wy(e.attributes.property).match(/^article:/)||Wy(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Wy(e.attributes.name)||"yandex-verification"===Wy(e.attributes.name)||"csrf-token"===Wy(e.attributes.name)||"p:domain_verify"===Wy(e.attributes.name)||"verify-v1"===Wy(e.attributes.name)||"verification"===Wy(e.attributes.name)||"shopify-checkout-api-token"===Wy(e.attributes.name)))return!0}}return!1}(L,I)&&(k||L.type!==py.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?Ty():-2;const F=Object.assign(L,{id:N});if(n.add(e,F),-2===N)return null;b&&b(e);let U=!p;if(F.type===py.Element){U=U&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&fy(t)&&(F.isShadowHost=!0)}if((F.type===py.Document||F.type===py.Element)&&U){I.headWhitespace&&F.type===py.Element&&"head"===F.tagName&&(k=!1);const t={doc:i,mirror:n,blockClass:s,blockSelector:a,maskAllText:o,unblockSelector:r,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:p,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T};for(const i of Array.from(e.childNodes)){const e=Ky(i,t);e&&F.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const i of Array.from(e.shadowRoot.childNodes)){const n=Ky(i,t);n&&(fy(e.shadowRoot)&&(n.isShadow=!0),F.childNodes.push(n))}}return e.parentNode&&my(e.parentNode)&&fy(e.parentNode)&&(F.isShadow=!0),F.type===py.Element&&"iframe"===F.tagName&&function(e,t,i){const n=e.contentWindow;if(!n)return;let s,a=!1;try{s=n.document.readyState}catch(e){return}if("complete"!==s){const n=setTimeout((()=>{a||(t(),a=!0)}),i);return void e.addEventListener("load",(()=>{clearTimeout(n),a=!0,t()}))}const r="about:blank";if(n.location.href!==r||e.src===r||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&E){const i=Ky(t,{doc:t,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T});i&&E(e,i)}}),A),F.type===py.Element&&"link"===F.tagName&&"stylesheet"===F.attributes.rel&&function(e,t,i){let n,s=!1;try{n=e.sheet}catch(e){return}if(n)return;const a=setTimeout((()=>{s||(t(),s=!0)}),i);e.addEventListener("load",(()=>{clearTimeout(a),s=!0,t()}))}(e,(()=>{if(S){const t=Ky(e,{doc:i,mirror:n,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:I,dataURLOptions:y,inlineImages:v,recordCanvas:w,preserveWhiteSpace:k,onSerialize:b,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:T});t&&S(e,t)}}),x),F}function Gy(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}function Yy(e,t,i=document){const n={capture:!0,passive:!0};return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}const Jy="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Qy={map:{},getId:()=>(console.error(Jy),-1),getNode:()=>(console.error(Jy),null),removeNodeFromMap(){console.error(Jy)},has:()=>(console.error(Jy),!1),reset(){console.error(Jy)}};function Zy(e,t,i={}){let n=null,s=0;return function(...a){const r=Date.now();s||!1!==i.leading||(s=r);const o=t-(r-s),c=this;o<=0||o>t?(n&&(!function(...e){Iv("clearTimeout")(...e)}(n),n=null),s=r,e.apply(c,a)):n||!1===i.trailing||(n=yv((()=>{s=!1===i.leading?0:Date.now(),n=null,e.apply(c,a)}),o))}}function Xy(e,t,i,n,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?i:{set(e){yv((()=>{i.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Xy(e,t,a||{},!0)}function ev(e,t,i){try{if(!(t in e))return()=>{};const n=e[t],s=i(n);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Qy=new Proxy(Qy,{get:(e,t,i)=>("map"===t&&console.error(Jy),Reflect.get(e,t,i))}));let tv=Date.now;function iv(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Gy([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Gy([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Gy([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function nv(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sv(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function av(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function rv(e,t,i,n,s){if(!e)return!1;const a=av(e);if(!a)return!1;const r=Vy(t,i);if(!s){const e=n&&a.matches(n);return r(a)&&!e}const o=$y(a,r);let c=-1;return!(o<0)&&(n&&(c=$y(a,Vy(null,n))),o>-1&&c<0||o<c)}function ov(e,t){return-2===t.getId(e)}function cv(e,t){if(my(e))return!1;const i=t.getId(e);return!t.has(i)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||cv(e.parentNode,t))}function dv(e){return Boolean(e.changedTouches)}function lv(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function uv(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function pv(e){return Boolean(Gy([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(tv=()=>(new Date).getTime());class mv{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),i=()=>-1,null!=t?t:i();var t,i}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let i;return i=void 0===t?this.id++:t,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fv(e){let t=null;return Gy([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function hv(e){const t=e.ownerDocument;if(!t)return!1;const i=function(e){let t,i=e;for(;t=fv(i);)i=t;return i}(e);return t.contains(i)}function gv(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||hv(e))}const _v={};function Iv(e){const t=_v[e];if(t)return t;const i=window.document;let n=window[e];if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(n=s[e]),i.head.removeChild(t)}catch(e){}return _v[e]=n.bind(window)}function yv(...e){return Iv("setTimeout")(...e)}var vv=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(vv||{}),wv=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(wv||{}),bv=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(bv||{}),Ev=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ev||{});function Av(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}function Sv(e){return"__ln"in e}class xv{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let i=0;i<e;i++)t=Av([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Sv(e.previousSibling)){const i=e.previousSibling.__ln.next;t.next=i,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,i&&(i.previous=t)}else if(e.nextSibling&&Sv(e.nextSibling)&&e.nextSibling.__ln.previous){const i=e.nextSibling.__ln.previous;t.previous=i,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,i&&(i.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Tv=(e,t)=>`${e}@${t}`;class Rv{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,i=new xv,n=e=>{let t=e,i=-2;for(;-2===i;)t=t&&t.nextSibling,i=t&&this.mirror.getId(t);return i},s=s=>{if(!s.parentNode||!gv(s))return;const a=my(s.parentNode)?this.mirror.getId(fv(s)):this.mirror.getId(s.parentNode),r=n(s);if(-1===a||-1===r)return i.addNode(s);const o=Ky(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{lv(e,this.mirror)&&this.iframeManager.addIframe(e),uv(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),pv(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:a,nextId:r,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Lv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)Fv(this.droppedSet,e)||Lv(this.removes,e,this.mirror)?Fv(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let a=null;for(;i.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),i=n(a.value);-1!==t&&-1!==i&&(e=a)}if(!e){let t=i.tail;for(;t;){const i=t;if(t=t.previous,i){const t=this.mirror.getId(i.value.parentNode);if(-1===n(i.value))continue;if(-1!==t){e=i;break}{const t=i.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=i;break}}}}}}if(!e){for(;i.head;)i.removeNode(i.head.value);break}a=e.previous,i.removeNode(e.value),s(e.value)}const r={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const i=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);i.length<t.style.length&&(i+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=e=>{if(!ov(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:qy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,av(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let i=e.attributeName,n=e.target.getAttribute(i);if("value"===i){const i=Ey(t),s=t.tagName;n=Ay(t,s,i);const a=Iy({maskInputOptions:this.maskInputOptions,tagName:s,type:i});n=yy({isMasked:qy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===i&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;i="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===i&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!By(t.tagName,i)&&(s.attributes[i]=Dy(this.doc,vy(t.tagName),vy(i),n,t,this.maskAttributeFn),"style"===i)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);n!==i.style.getPropertyValue(e)||a!==i.style.getPropertyPriority(e)?s.styleDiff[e]=""===a?n:[n,a]:s._unchangedStyles[e]=[n,a]}for(const e of Array.from(i.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const i=this.mirror.getId(t),n=my(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rv(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ov(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(kv(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===i||cv(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Tv(i,n)]?kv(this.movedSet,t):this.removes.push({parentId:n,id:i,isShadow:!(!my(e.target)||!fy(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ov(e,this.mirror))return;this.movedSet.add(e);let i=null;t&&this.mirror.hasNode(t)&&(i=this.mirror.getId(t)),i&&-1!==i&&(this.movedMap[Tv(this.mirror.getId(e),i)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rv(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),pv(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function kv(e,t){e.delete(t),t.childNodes.forEach((t=>kv(e,t)))}function Lv(e,t,i){return 0!==e.length&&Nv(e,t,i)}function Nv(e,t,i){const{parentNode:n}=t;if(!n)return!1;const s=i.getId(n);return!!e.some((e=>e.id===s))||Nv(e,n,i)}function Fv(e,t){return 0!==e.size&&Uv(e,t)}function Uv(e,t){const{parentNode:i}=t;return!!i&&(!!e.has(i)||Uv(e,i))}let Ov;function Cv(e){Ov=e}function Pv(){Ov=void 0}const jv=e=>{if(!Ov)return e;return(...t)=>{try{return e(...t)}catch(e){if(Ov&&!0===Ov(e))return()=>{};throw e}}};function Mv(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}const zv=[];function Dv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Bv(e,t){const i=new Rv;zv.push(i),i.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const s=Mv([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(n=window[s]);const a=new n(jv((t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function $v({mouseInteractionCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];let d=null;return Object.keys(bv).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{let o=vy(r);const l=(t=>r=>{const o=Dv(r);if(rv(o,n,s,a,!0))return;let c=null,l=t;if("pointerType"in r){switch(r.pointerType){case"mouse":c=Ev.Mouse;break;case"touch":c=Ev.Touch;break;case"pen":c=Ev.Pen}c===Ev.Touch?bv[t]===bv.MouseDown?l="TouchStart":bv[t]===bv.MouseUp&&(l="TouchEnd"):Ev.Pen}else dv(r)&&(c=Ev.Touch);null!==c?(d=c,(l.startsWith("Touch")&&c===Ev.Touch||l.startsWith("Mouse")&&c===Ev.Mouse)&&(c=null)):bv[t]===bv.Click&&(c=d,d=null);const u=dv(r)?r.changedTouches[0]:r;if(!u)return;const p=i.getId(o),{clientX:m,clientY:f}=u;jv(e)({type:bv[l],id:p,x:m,y:f,...null!==c&&{pointerType:c}})})(r);if(window.PointerEvent)switch(bv[r]){case bv.MouseDown:case bv.MouseUp:o=o.replace("mouse","pointer");break;case bv.TouchStart:case bv.TouchEnd:return}c.push(Yy(o,l,t))})),jv((()=>{c.forEach((e=>e()))}))}function Vv({scrollCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,sampling:r}){return Yy("scroll",jv(Zy(jv((r=>{const o=Dv(r);if(!o||rv(o,n,s,a,!0))return;const c=i.getId(o);if(o===t&&t.defaultView){const i=iv(t.defaultView);e({id:c,x:i.left,y:i.top})}else e({id:c,x:o.scrollLeft,y:o.scrollTop})})),r.scroll||100)),t)}const qv=["INPUT","TEXTAREA","SELECT"],Hv=new WeakMap;function Wv({inputCb:e,doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputOptions:c,maskInputFn:d,sampling:l,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:m,maskTextSelector:f,unmaskTextSelector:h}){function g(e){let i=Dv(e);const l=e.isTrusted,g=i&&wy(i.tagName);if("OPTION"===g&&(i=i.parentElement),!i||!g||qv.indexOf(g)<0||rv(i,n,s,a,!0))return;const I=i;if(I.classList.contains(r)||o&&I.matches(o))return;const y=Ey(i);let v=Ay(I,g,y),w=!1;const b=Iy({maskInputOptions:c,tagName:g,type:y}),E=qy(i,p,f,m,h,b);"radio"!==y&&"checkbox"!==y||(w=i.checked),v=yy({isMasked:E,element:i,value:v,maskInputFn:d}),_(i,u?{text:v,isChecked:w,userTriggered:l}:{text:v,isChecked:w});const A=i.name;"radio"===y&&A&&w&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach((e=>{if(e!==i){const t=yy({isMasked:E,element:e,value:Ay(e,g,y),maskInputFn:d});_(e,u?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function _(t,n){const s=Hv.get(t);if(!s||s.text!==n.text||s.isChecked!==n.isChecked){Hv.set(t,n);const s=i.getId(t);jv(e)({...n,id:s})}}const I=("last"===l.input?["change"]:["input","change"]).map((e=>Yy(e,jv(g),t))),y=t.defaultView;if(!y)return()=>{I.forEach((e=>e()))};const v=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value"),w=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&I.push(...w.map((e=>Xy(e[0],e[1],{set(){jv(g)({target:this,isTrusted:!1})}},!1,y)))),jv((()=>{I.forEach((e=>e()))}))}function Kv(e){return function(e,t){if(Qv("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Qv("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Qv("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Qv("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const i=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(i)}else if(e.parentStyleSheet){const i=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(i)}return t}(e,[])}function Gv(e,t,i){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=i.getId(e),{styleId:s,id:n}):{}}function Yv({mirror:e,stylesheetManager:t},i){let n=null;n="#document"===i.nodeName?e.getId(i):e.getId(i.host);const s="#document"===i.nodeName?Mv([i,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Mv([i,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=Mv([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Mv([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&s&&a?(Object.defineProperty(i,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Mv([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const i=Mv([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return i}}),jv((()=>{Object.defineProperty(i,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function Jv(e,t={}){const i=e.doc.defaultView;if(!i)return()=>{};const n=Bv(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:i,mirror:n}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=Zy(jv((t=>{const i=Date.now()-r;e(o.map((e=>(e.timeOffset-=i,e))),t),o=[],r=null})),a),d=jv(Zy(jv((e=>{const t=Dv(e),{clientX:i,clientY:s}=dv(e)?e.changedTouches[0]:e;r||(r=tv()),o.push({x:i,y:s,id:n.getId(t),timeOffset:tv()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?wv.Drag:e instanceof MouseEvent?wv.MouseMove:wv.TouchMove)})),s,{trailing:!1})),l=[Yy("mousemove",d,i),Yy("touchmove",d,i),Yy("drag",d,i)];return jv((()=>{l.forEach((e=>e()))}))}(e),a=$v(e),r=Vv(e),o=function({viewportResizeCb:e},{win:t}){let i=-1,n=-1;return Yy("resize",jv(Zy(jv((()=>{const t=nv(),s=sv();i===t&&n===s||(e({width:Number(s),height:Number(t)}),i=t,n=s)})),200)),t)}(e,{win:i}),c=Wv(e),d=function({mediaInteractionCb:e,blockClass:t,blockSelector:i,unblockSelector:n,mirror:s,sampling:a,doc:r}){const o=jv((r=>Zy(jv((a=>{const o=Dv(a);if(!o||rv(o,t,i,n,!0))return;const{currentTime:c,volume:d,muted:l,playbackRate:u}=o;e({type:r,id:s.getId(o),currentTime:c,volume:d,muted:l,playbackRate:u})})),a.media||500))),c=[Yy("play",o(0),r),Yy("pause",o(1),r),Yy("seeked",o(2),r),Yy("volumechange",o(3),r),Yy("ratechange",o(4),r)];return jv((()=>{c.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:i},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:jv(((n,s,a)=>{const[r,o]=a,{id:c,styleId:d}=Gv(s,t,i.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,adds:[{rule:r,index:o}]}),n.apply(s,a)}))});const a=n.CSSStyleSheet.prototype.deleteRule;let r,o;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:r}]}),n.apply(s,a)}))}),n.CSSStyleSheet.prototype.replace&&(r=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replace:r}),n.apply(s,a)}))})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,replaceSync:r}),n.apply(s,a)}))}));const c={};Zv("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(Zv("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),Zv("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),Zv("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const d={};return Object.entries(c).forEach((([n,s])=>{d[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(d[n].insertRule,{apply:jv(((n,s,a)=>{const[r,o]=a,{id:c,styleId:d}=Gv(s.parentStyleSheet,t,i.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,adds:[{rule:r,index:[...Kv(s),o||0]}]}),n.apply(s,a)}))}),s.prototype.deleteRule=new Proxy(d[n].deleteRule,{apply:jv(((n,s,a)=>{const[r]=a,{id:o,styleId:c}=Gv(s.parentStyleSheet,t,i.styleMirror);return(o&&-1!==o||c&&-1!==c)&&e({id:o,styleId:c,removes:[{index:[...Kv(s),r]}]}),n.apply(s,a)}))})})),jv((()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,r&&(n.CSSStyleSheet.prototype.replace=r),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=d[e].insertRule,t.prototype.deleteRule=d[e].deleteRule}))}))}(e,{win:i}),u=Yv(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:i,stylesheetManager:n},{win:s}){const a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:jv(((s,r,o)=>{const[c,d,l]=o;if(i.has(c))return a.apply(r,[c,d,l]);const{id:u,styleId:p}=Gv(Mv([r,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,set:{property:c,value:d,priority:l},index:Kv(r.parentRule)}),s.apply(r,o)}))});const r=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(r,{apply:jv(((s,a,o)=>{const[c]=o;if(i.has(c))return r.apply(a,[c]);const{id:d,styleId:l}=Gv(Mv([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,n.styleMirror);return(d&&-1!==d||l&&-1!==l)&&e({id:d,styleId:l,remove:{property:c},index:Kv(a.parentRule)}),s.apply(a,o)}))}),jv((()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=r}))}(e,{win:i}),m=e.collectFonts?function({fontCb:e,doc:t}){const i=t.defaultView;if(!i)return()=>{};const n=[],s=new WeakMap,a=i.FontFace;i.FontFace=function(e,t,i){const n=new a(e,t,i);return s.set(n,{family:e,buffer:"string"!=typeof t,descriptors:i,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const r=ev(t.fonts,"add",(function(t){return function(i){return yv(jv((()=>{const t=s.get(i);t&&(e(t),s.delete(i))})),0),t.apply(this,[i])}}));return n.push((()=>{i.FontFace=a})),n.push(r),jv((()=>{n.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,selectionCb:r}=e;let o=!0;const c=jv((()=>{const e=t.getSelection();if(!e||o&&Mv([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;const c=[],d=e.rangeCount||0;for(let t=0;t<d;t++){const r=e.getRangeAt(t),{startContainer:o,startOffset:d,endContainer:l,endOffset:u}=r;rv(o,n,s,a,!0)||rv(l,n,s,a,!0)||c.push({start:i.getId(o),startOffset:d,end:i.getId(l),endOffset:u})}r({ranges:c})}));return c(),Yy("selectionchange",c)}(e),h=function({doc:e,customElementCb:t}){const i=e.defaultView;if(!i||!i.customElements)return()=>{};const n=ev(i.customElements,"define",(function(e){return function(i,n,s){try{t({define:{name:i}})}catch(e){}return e.apply(this,[i,n,s])}}));return n}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,i,t.options));return jv((()=>{zv.forEach((e=>e.reset())),n.disconnect(),s(),a(),r(),o(),c(),d(),l(),u(),p(),m(),f(),h(),g.forEach((e=>e()))}))}function Qv(e){return void 0!==window[e]}function Zv(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Xv{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,i,n){const s=i||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e);let r=s.get(t);return r||(r=this.generateIdFn(),s.set(t,r),a.set(r,t)),r}getIds(e,t){const i=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,i,n)))}getRemoteId(e,t,i){const n=i||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=n.get(t);return s||-1}getRemoteIds(e,t){const i=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,i)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function ew(e){let t,i=e[0],n=1;for(;n<e.length;){const s=e[n],a=e[n+1];if(n+=2,("optionalAccess"===s||"optionalCall"===s)&&null==i)return;"access"===s||"optionalAccess"===s?(t=i,i=a(i)):"call"!==s&&"optionalCall"!==s||(i=a(((...e)=>i.call(t,...e))),t=void 0)}return i}class tw{constructor(){this.crossOriginIframeMirror=new Xv(Ty),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class iw{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Xv(Ty),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Xv(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),ew([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case vv.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:vv.IncrementalSnapshot,data:{source:wv.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case vv.Meta:case vv.Load:case vv.DomContentLoaded:return!1;case vv.Plugin:return t;case vv.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case vv.IncrementalSnapshot:switch(t.data.source){case wv.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const i=this.crossOriginIframeRootIdMap.get(e);i&&this.patchRootIdOnNode(t.node,i)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case wv.Drag:case wv.TouchMove:case wv.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case wv.ViewportResize:return!1;case wv.MediaInteraction:case wv.MouseInteraction:case wv.Scroll:case wv.CanvasMutation:case wv.Input:return this.replaceIds(t.data,e,["id"]),t;case wv.StyleSheetRule:case wv.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case wv.Font:return t;case wv.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case wv.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),ew([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,i,n){for(const s of n)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(i,t[s]):t[s]=e.getId(i,t[s]));return t}replaceIds(e,t,i){return this.replace(this.crossOriginIframeMirror,e,t,i)}replaceStyleIds(e,t,i){return this.replace(this.crossOriginIframeStyleMirror,e,t,i)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===py.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class nw{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sw{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!fy(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const i=Bv({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>i.disconnect())),this.restoreHandlers.push(Vv({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),yv((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Yv({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const i=this;this.restoreHandlers.push(ev(e.prototype,"attachShadow",(function(e){return function(n){const s=e.call(this,n);return this.shadowRoot&&gv(this)&&i.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class aw{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class rw{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new mv,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const i={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:gy(e),index:t})))})),i.styleIds.push(e)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ow{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Iv("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const i=this.nodeMap.get(e);return i&&Array.from(i).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let cw,dw;const lw=new _y;function uw(e={}){const{emit:t,checkoutEveryNms:i,checkoutEveryNth:n,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:l="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,maxCanvasSize:w=null,packFn:b,sampling:E={},dataURLOptions:A={},mousemoveWait:S,recordCanvas:x=!1,recordCrossOriginIframes:T=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:L=!1,inlineImages:N=!1,plugins:F,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:O=new Set([]),errorHandler:C,onMutation:P,getCanvasManager:j}=e;Cv(C);const M=!T||window.parent===window;let z=!1;if(!M)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(M&&!t)throw new Error("emit function is required");void 0!==S&&void 0===E.mousemove&&(E.mousemove=S),lw.reset();const D=!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const q=e=>{for(const t of F||[])t.eventProcessor&&(e=t.eventProcessor(e));return b&&!z&&(e=b(e)),e};cw=(e,s)=>{const a=e;if(a.timestamp=tv(),!Zf([zv,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||a.type===vv.FullSnapshot||a.type===vv.IncrementalSnapshot&&a.data.source===wv.Mutation||zv.forEach((e=>e.unfreeze())),M)Zf([t,"optionalCall",e=>e(q(a),s)]);else if(z){const e={type:"rrweb",event:q(a),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(a.type===vv.FullSnapshot)$=a,V=0;else if(a.type===vv.IncrementalSnapshot){if(a.data.source===wv.Mutation&&a.data.isAttachIframe)return;V++;const e=n&&V>=n,t=i&&$&&a.timestamp-$.timestamp>i;(e||t)&&X(!0)}};const H=e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.Mutation,...e}})},W=e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Scroll,...e}}),K=e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.CanvasMutation,...e}}),G=new rw({mutationCb:H,adoptedStyleSheetCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tw:new iw({mirror:lw,mutationCb:H,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:cw});for(const e of F||[])e.getMirror&&e.getMirror({nodeMirror:lw,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const J=new ow,Q=function(e,t){try{return e?e(t):new aw}catch(e){return console.warn("Unable to initialize CanvasManager"),new aw}}(j,{mirror:lw,win:window,mutationCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.CanvasMutation,...e}}),recordCanvas:x,blockClass:s,blockSelector:a,unblockSelector:r,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:A,errorHandler:C}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nw:new sw({mutationCb:H,scrollCb:W,bypassOptions:{onMutation:P,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskInputOptions:D,dataURLOptions:A,maskAttributeFn:I,maskTextFn:v,maskInputFn:y,recordCanvas:x,inlineImages:N,sampling:E,slimDOMOptions:B,iframeManager:Y,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:U,processedNodeManager:J},mirror:lw}),X=(e=!1)=>{cw({type:vv.Meta,data:{href:window.location.href,width:sv(),height:nv()}},e),G.reset(),Z.init(),zv.forEach((e=>e.lock()));const t=function(e,t){const{mirror:i=new _y,blockClass:n="rr-block",blockSelector:s=null,unblockSelector:a=null,maskAllText:r=!1,maskTextClass:o="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:l=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:f=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:I=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:S,keepIframeSrcFn:x=()=>!1}=t||{};return Ky(e,{doc:e,mirror:i,blockClass:n,blockSelector:s,unblockSelector:a,maskAllText:r,maskTextClass:o,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===I||"all"===I?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===I,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===I?{}:I,dataURLOptions:y,inlineImages:p,recordCanvas:m,preserveWhiteSpace:v,onSerialize:w,onIframeLoad:b,iframeLoadTimeout:E,onStylesheetLoad:A,stylesheetLoadTimeout:S,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:lw,blockClass:s,blockSelector:a,unblockSelector:r,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskAllInputs:D,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,slimDOM:B,dataURLOptions:A,recordCanvas:x,inlineImages:N,onSerialize:e=>{lv(e,lw)&&Y.addIframe(e),uv(e,lw)&&G.trackLinkElement(e),pv(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:U});if(!t)return console.warn("Failed to snapshot the document");cw({type:vv.FullSnapshot,data:{node:t,initialOffset:iv(window)}}),zv.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,lw.getId(document))};dw=X;try{const e=[],t=e=>jv(Jv)({onMutation:P,mutationCb:H,mousemoveCb:(e,t)=>cw({type:vv.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.ViewportResize,...e}}),inputCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Input,...e}}),mediaInteractionCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.MediaInteraction,...e}}),styleSheetRuleCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.StyleSheetRule,...e}}),styleDeclarationCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>cw({type:vv.IncrementalSnapshot,data:{source:wv.Font,...e}}),selectionCb:e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.Selection,...e}})},customElementCb:e=>{cw({type:vv.IncrementalSnapshot,data:{source:wv.CustomElement,...e}})},blockClass:s,ignoreClass:o,ignoreSelector:c,maskAllText:d,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:D,inlineStylesheet:f,sampling:E,recordCanvas:x,inlineImages:N,userTriggeredOnInput:k,collectFonts:L,doc:e,maskAttributeFn:I,maskInputFn:y,maskTextFn:v,keepIframeSrcFn:U,blockSelector:a,unblockSelector:r,slimDOMOptions:B,dataURLOptions:A,mirror:lw,iframeManager:Y,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:J,canvasManager:Q,ignoreCSSAttributes:O,plugins:Zf([F,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>cw({type:vv.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((i=>{try{e.push(t(i.contentDocument))}catch(e){console.warn(e)}}));const i=()=>{X(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?i():(e.push(Yy("DOMContentLoaded",(()=>{cw({type:vv.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&i()}))),e.push(Yy("load",(()=>{cw({type:vv.Load,data:{}}),"load"===R&&i()}),window))),()=>{e.forEach((e=>e())),J.destroy(),dw=void 0,Pv()}}catch(e){console.warn(e)}}uw.mirror=lw,uw.takeFullSnapshot=function(e){if(!dw)throw new Error("please take full snapshot after start recording");dw(e)};function pw(e){return e>9999999999?e:1e3*e}function mw(e){return e>9999999999?e/1e3:e}function fw(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:vv.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:If(t,10,1e3)}}),"console"===t.category))))}function hw(e){return e.closest("button,a")||e}function gw(e){const t=_w(e);return t&&t instanceof Element?hw(t):t}function _w(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Iw;function yw(e){return Iw||(Iw=[],pm(sy,"open",(function(e){return function(...t){if(Iw)try{Iw.forEach((e=>e()))}catch(e){}return e.apply(sy,t)}}))),Iw.push(e),()=>{const t=Iw?Iw.indexOf(e):-1;t>-1&&Iw.splice(t,1)}}class vw{constructor(e,t,i=fw){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=i}addListeners(){const e=yw((()=>{this._lastMutation=bw()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!ww.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const i={timestamp:mw(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===i.node&&Math.abs(e.timestamp-i.timestamp)<1))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=mw(e)}registerScroll(e=Date.now()){this._lastScroll=mw(e)}registerClick(e){const t=hw(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=bw();this._clicks.forEach((i=>{!i.mutationAfter&&this._lastMutation&&(i.mutationAfter=i.timestamp<=this._lastMutation?this._lastMutation-i.timestamp:void 0),!i.scrollAfter&&this._lastScroll&&(i.scrollAfter=i.timestamp<=this._lastScroll?this._lastScroll-i.timestamp:void 0),i.timestamp+this._timeout<=t&&e.push(i)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,i=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!i&&!n,{clickCount:a,clickBreadcrumb:r}=e;if(s){const i=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=i<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:sy.location.href,route:t.getCurrentRoute(),timeAfterClickMs:i,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:sy.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const ww=["A","BUTTON","INPUT"];function bw(){return Date.now()/1e3}function Ew(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:i}=t.data;if(i===wv.Mutation&&e.registerMutation(t.timestamp),i===wv.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===wv.MouseInteraction}(t)){const{type:i,id:n}=t.data,s=uw.mirror.getNode(n);s instanceof HTMLElement&&i===bv.Click&&e.registerClick(s)}}catch(e){}}function Aw(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Sw;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Sw||(Sw={}));const xw=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Tw(e){const t={};for(const i in e)if(xw.has(i)){let n=i;"data-testid"!==i&&"data-test-id"!==i||(n="testId"),t[n]=e[i]}return t}const Rw=e=>t=>{if(!e.isEnabled())return;const i=function(e){const{target:t,message:i}=function(e){const t="click"===e.name;let i,n=null;try{n=t?gw(e.event):_w(e.event),i=Xp(n,{maxStringLength:200})||"<unknown>"}catch(e){i="<unknown>"}return{target:n,message:i}}(e);return Aw({category:`ui.${e.name}`,...kw(t,i)})}(t);if(!i)return;const n="click"===t.name,s=n?t.event:void 0;var a,r,o;!(n&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=i,o=gw(t.event),a.handleClick(r,o)),fw(e,i)};function kw(e,t){const i=uw.mirror.getId(e),n=i&&uw.mirror.getNode(i),s=n&&uw.mirror.getMeta(n),a=s&&function(e){return e.type===Sw.Element}(s)?s:null;return{message:t,data:a?{nodeId:i,node:{id:i,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===Sw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Tw(a.attributes)}}:{}}}function Lw(e,t){if(!e.isEnabled())return;e.updateUserActivity();const i=function(e){const{metaKey:t,shiftKey:i,ctrlKey:n,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||n||s,c=1===a.length;if(!o&&c)return null;const d=Xp(r,{maxStringLength:200})||"<unknown>",l=kw(r,d);return Aw({category:"ui.keyDown",message:d,data:{...l.data,metaKey:t,shiftKey:i,ctrlKey:n,altKey:s,key:a}})}(t);i&&fw(e,i)}const Nw={resource:function(e){const{entryType:t,initiatorType:i,name:n,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:d}=e;if(["fetch","xmlhttprequest"].includes(i))return null;return{type:`${t}.${i}`,start:Uw(a),end:Uw(s),name:n,data:{size:d,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:i,name:n,startTime:s}=e,a=Uw(s);return{type:i,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:i,decodedBodySize:n,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:l,loadEventEnd:u,redirectCount:p,startTime:m,transferSize:f,type:h}=e;if(0===s)return null;return{type:`${t}.${h}`,start:Uw(m),end:Uw(a),name:i,data:{size:f,decodedBodySize:n,encodedBodySize:r,duration:s,domInteractive:d,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:u,domComplete:a,redirectCount:p}}}};function Fw(e){return Nw[e.entryType]?Nw[e.entryType](e):null}function Uw(e){return((Nf||sy.performance.timeOrigin)+e)/1e3}function Ow(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function i({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push(E_(e,i))})),n.push(b_((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,i=t[t.length-1],n=i?i.element:void 0,s=e.value,a=Uw(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:s,size:s,nodeId:n?uw.mirror.getId(n):void 0}}}(t))}))),()=>{n.forEach((e=>e()))}}const Cw="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Pw(e,t){Cw&&(rm.info(e),t&&Mw(e))}function jw(e,t){Cw&&(rm.info(e),t&&setTimeout((()=>{Mw(e)}),0))}function Mw(e){vh({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class zw extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Dw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>dy)throw new zw;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?pw(e):null}}class Bw{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:i})=>{i.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Pw("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const i=this._getAndIncrementId();return new Promise(((n,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===i){if(this._worker.removeEventListener("message",a),!r.success)return Cw&&rm.error("[Replay]",r.response),void s(new Error("Error in compression worker"));n(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:i,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class $w{constructor(e){this._worker=new Bw(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=pw(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const i=JSON.stringify(e);return this._totalSize+=i.length,this._totalSize>dy?Promise.reject(new zw):this._sendEventToWorker(i)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Cw&&rm.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Vw{constructor(e){this._fallback=new Dw,this._compression=new $w(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Pw("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,i=[];for(const t of e)i.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(i)}catch(e){Cw&&rm.warn("[Replay] Failed to add events when switching buffers.",e)}}}function qw({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Pw("[Replay] Using compression worker"+(e?` from ${e}`:""));const i=new Worker(t);return new Vw(i)}catch(e){Pw("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Pw("[Replay] Using simple buffer"),new Dw}function Hw(){try{return"sessionStorage"in sy&&!!sy.sessionStorage}catch(e){return!1}}function Ww(e){!function(){if(!Hw())return;try{sy.sessionStorage.removeItem(ay)}catch(e){}}(),e.session=void 0}function Kw(e){return void 0!==e&&Math.random()<e}function Gw(e){const t=Date.now();return{id:e.id||Um(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Yw(e){if(Hw())try{sy.sessionStorage.setItem(ay,JSON.stringify(e))}catch(e){}}function Jw({sessionSampleRate:e,allowBuffering:t,stickySession:i=!1},{previousSessionId:n}={}){const s=function(e,t){return Kw(e)?"session":!!t&&"buffer"}(e,t),a=Gw({sampled:s,previousSessionId:n});return i&&Yw(a),a}function Qw(e,t,i=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=i}function Zw(e,{maxReplayDuration:t,sessionIdleExpire:i,targetTime:n=Date.now()}){return Qw(e.started,t,n)||Qw(e.lastActivity,i,n)}function Xw(e,{sessionIdleExpire:t,maxReplayDuration:i}){return!!Zw(e,{sessionIdleExpire:t,maxReplayDuration:i})&&("buffer"!==e.sampled||0!==e.segmentId)}function eb({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:i,previousSessionId:n},s){const a=s.stickySession&&function(e){if(!Hw())return null;try{const t=sy.sessionStorage.getItem(ay);if(!t)return null;const i=JSON.parse(t);return jw("[Replay] Loading existing session",e),Gw(i)}catch(e){return null}}(e);return a?Xw(a,{sessionIdleExpire:t,maxReplayDuration:i})?(jw("[Replay] Session in sessionStorage is expired, creating new one..."),Jw(s,{previousSessionId:a.id})):a:(jw("[Replay] Creating new session",e),Jw(s,{previousSessionId:n}))}function tb(e,t,i){return!!nb(e,t)&&(ib(e,t,i),!0)}async function ib(e,t,i){if(!e.eventBuffer)return null;try{i&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),i&&(e.eventBuffer.hasCheckout=!0);const n=function(e,t){try{if("function"==typeof t&&function(e){return e.type===vv.Custom}(e))return t(e)}catch(e){return Cw&&rm.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!n)return;return await e.eventBuffer.addEvent(n)}catch(t){const i=t&&t instanceof zw?"addEventSizeExceeded":"addEvent";Cw&&rm.error(t),await e.stop({reason:i});const n=bh();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function nb(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const i=pw(t.timestamp);return!(i+e.timeouts.sessionIdlePause<Date.now())&&(!(i>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Pw(`[Replay] Skipping event with timestamp ${i} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function sb(e){return!e.type}function ab(e){return"transaction"===e.type}function rb(e){return"feedback"===e.type}function ob(e){const t=function(){const e=bh();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(i,n)=>{if(!e.isEnabled()||!sb(i)&&!ab(i))return;const s=n&&n.statusCode;t&&(!s||s<200||s>=300)||(ab(i)?function(e,t){const i=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&i.traceIds.size<100&&i.traceIds.add(t.contexts.trace.trace_id)}(e,i):function(e,t){const i=e.getContext();t.event_id&&i.errorIds.size<100&&i.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,i))}}function cb(e){return t=>{e.isEnabled()&&sb(t)&&function(e,t){const i=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof i)return;if(i.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i)){fw(e,Aw({category:"replay.hydrate-error"}))}}(e,t)}}function db(e,t=!1){const i=t?ob(e):void 0;return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!sb(t)&&!ab(t)&&!rb(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(rb(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:vv.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Cw&&rm.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==ry&&!(!t.exception||t.type)&&Kw(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&i(t,{statusCode:200}),t}),{id:"Replay"})}function lb(e,t){return t.map((({type:t,start:i,end:n,name:s,data:a})=>{const r=e.throttledAddEvent({type:vv.Custom,timestamp:i,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:i,endTimestamp:n,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function ub(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{from:t,to:i}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:i,data:{previous:t}}}(t);null!==i&&(e.getContext().urls.push(i.name),e.triggerUserActivity(),e.addUpdate((()=>(lb(e,[i]),!1))))}}function pb(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Cw||!e.getOptions()._experiments.traceInternals)&&Cg(t,bh())}(e,t.name)||e.addUpdate((()=>(lb(e,[t]),!0))))}function mb(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{startTimestamp:t,endTimestamp:i,xhr:n}=e,s=n[mf];if(!t||!i||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:i/1e3,data:{method:a,statusCode:o}}}(t);pb(e,i)}}function fb(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const i=bb(e);return t.encode(i).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function hb(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function gb(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[bb(e)];if(!e)return[void 0]}catch(t){return Cw&&rm.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Cw&&rm.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function _b(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const i={...e._meta},n=i.warnings||[];return i.warnings=[...n,t],e._meta=i,e}function Ib(e,t){if(!t)return null;const{startTimestamp:i,endTimestamp:n,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:i/1e3,end:n/1e3,name:s,data:ym({method:a,statusCode:r,request:o,response:c})}}function yb(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function vb(e,t,i){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!i)return{headers:e,size:t};const n={headers:e,size:t},{body:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>oy,i=function(e){const t=e[0],i=e[e.length-1];return"["===t&&"]"===i||"{"===t&&"}"===i}(e);if(t){const t=e.slice(0,oy);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(i);return n.body=s,a&&a.length>0&&(n._meta={warnings:a}),n}function wb(e,t){return Object.keys(e).reduce(((i,n)=>{const s=n.toLowerCase();return t.includes(s)&&e[n]&&(i[s]=e[n]),i}),{})}function bb(e){return new URLSearchParams(e).toString()}function Eb(e,t){const i=function(e,t=sy.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(sy.location.origin))return e;const i=new URL(e,t);if(i.origin!==new URL(t).origin)return e;const n=i.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return Vp(i,t)}async function Ab(e,t,i){try{const n=await async function(e,t,i){const n=Date.now(),{startTimestamp:s=n,endTimestamp:a=n}=t,{url:r,method:o,status_code:c=0,request_body_size:d,response_body_size:l}=e.data,u=Eb(r,i.networkDetailAllowUrls)&&!Eb(r,i.networkDetailDenyUrls),p=u?function({networkCaptureBodies:e,networkRequestHeaders:t},i,n){const s=i?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Tb(e[0],t);if(2===e.length)return Tb(e[1],t);return{}}(i,t):{};if(!e)return vb(s,n,void 0);const a=Sb(i),[r,o]=gb(a),c=vb(s,n,r);if(o)return _b(c,o);return c}(i,t.input,d):yb(d),m=await async function(e,{networkCaptureBodies:t,textEncoder:i,networkResponseHeaders:n},s,a){if(!e&&void 0!==a)return yb(a);const r=s?xb(s.headers,n):{};if(!s||!t&&void 0!==a)return vb(r,a,void 0);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Cw&&rm.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,i)=>{const n=setTimeout((()=>i(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>i(e))).finally((()=>clearTimeout(n)))}))}(t);return[e]}catch(e){return Cw&&rm.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(s),d=function(e,{networkCaptureBodies:t,textEncoder:i,responseBodySize:n,captureDetails:s,headers:a}){try{const r=e&&e.length&&void 0===n?fb(e,i):n;return s?vb(a,r,t?e:void 0):yb(r)}catch(e){return Cw&&rm.warn("[Replay] Failed to serialize response body",e),vb(a,n,void 0)}}(o,{networkCaptureBodies:t,textEncoder:i,responseBodySize:a,captureDetails:e,headers:r});if(c)return _b(d,c);return d}(u,i,t.response,l);return{startTimestamp:s,endTimestamp:a,url:r,method:o,statusCode:c,request:p,response:m}}(e,t,i),s=Ib("resource.fetch",n);pb(i.replay,s)}catch(e){Cw&&rm.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Sb(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function xb(e,t){const i={};return t.forEach((t=>{e.get(t)&&(i[t]=e.get(t))})),i}function Tb(e,t){if(!e)return{};const i=e.headers;return i?i instanceof Headers?xb(i,t):Array.isArray(i)?{}:wb(i,t):{}}async function Rb(e,t,i){try{const n=function(e,t,i){const n=Date.now(),{startTimestamp:s=n,endTimestamp:a=n,input:r,xhr:o}=t,{url:c,method:d,status_code:l=0,request_body_size:u,response_body_size:p}=e.data;if(!c)return null;if(!o||!Eb(c,i.networkDetailAllowUrls)||Eb(c,i.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:a,url:c,method:d,statusCode:l,request:yb(u),response:yb(p)}}const m=o[mf],f=m?wb(m.request_headers,i.networkRequestHeaders):{},h=wb(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[i,n]=t.split(": ");return e[i.toLowerCase()]=n,e}),{})}(o),i.networkResponseHeaders),[g,_]=i.networkCaptureBodies?gb(r):[void 0],[I,y]=i.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Cw&&rm.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Cw&&rm.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Cw&&rm.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(o):[void 0],v=vb(f,u,g),w=vb(h,p,I);return{startTimestamp:s,endTimestamp:a,url:c,method:d,statusCode:l,request:_?_b(v,_):v,response:y?_b(w,y):w}}(e,t,i),s=Ib("resource.xhr",n);pb(i.replay,s)}catch(e){Cw&&rm.error("[Replay] Failed to capture xhr breadcrumb",e)}}function kb(e,t,i){const{xhr:n,input:s}=t;if(!n)return;const a=fb(s,i.textEncoder),r=n.getResponseHeader("content-length")?hb(n.getResponseHeader("content-length")):function(e,t,i){try{return fb("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,i)}catch(e){return}}(n.response,n.responseType,i.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}function Lb(e){const t=bh();try{const i=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:i,networkDetailAllowUrls:n,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,i){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(i)&&(kb(t,i,e),Rb(t,i,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(i)&&(!function(e,t,i){const{input:n,response:s}=t,a=fb(n?Sb(n):void 0,i.textEncoder),r=s?hb(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,i,e),Ab(t,i,e))}catch(e){Cw&&rm.warn("Error when enriching network breadcrumb")}}(c,e,t))):(Jm(function(e){return t=>{if(!e.isEnabled())return;const i=function(e){const{startTimestamp:t,endTimestamp:i,fetchData:n,response:s}=e;if(!i)return null;const{method:a,url:r}=n;return{type:"resource.fetch",start:t/1e3,end:i/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);pb(e,i)}}(e)),ff(mb(e)))}catch(e){}}let Nb=null;const Fb=e=>t=>{if(!e.isEnabled())return;const i=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Nb===t||!t)return null;if(Nb=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Aw(e);let i=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>cy?(i=!0,`${e.slice(0,cy)}…`):e;if("object"==typeof e)try{const t=If(e,7);return JSON.stringify(t).length>cy?(i=!0,`${JSON.stringify(t,null,2).slice(0,cy)}…`):t}catch(e){}return e}));return Aw({...e,data:{...e.data,arguments:n,...i?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Aw(t)}(t);i&&fw(e,i)};function Ub(e){const t=Eh(),i=bh();t.addScopeListener(Fb(e)),qm(Rw(e)),lf(ub(e)),Lb(e);const n=db(e,!Ob(i));i&&i.addEventProcessor?i.addEventProcessor(n):function(e){const t=bh();t&&t.addEventProcessor&&t.addEventProcessor(e)}(n),Ob(i)&&(i.on("beforeSendEvent",cb(e)),i.on("afterSendEvent",ob(e)),i.on("createDsc",(t=>{const i=e.getSessionId();if(i&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=i)}})),i.on("startTransaction",(t=>{e.lastTransaction=t})),i.on("finishTransaction",(t=>{e.lastTransaction=t})),i.on("beforeSendFeedback",((t,i)=>{const n=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&n&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n)})))}function Ob(e){return!(!e||!e.on)}function Cb(e){const{jsHeapSizeLimit:t,totalJSHeapSize:i,usedJSHeapSize:n}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:i,usedJSHeapSize:n}}}}function Pb(e){let t=!1;return(i,n)=>{if(!e.checkAndHandleExpiredSession())return void(Cw&&rm.warn("[Replay] Received replay event after session expired."));const s=n||!t;t=!0,e.clickDetector&&Ew(e.clickDetector,i),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!tb(e,i,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;tb(e,function(e){const t=e.getOptions();return{type:vv.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Pw(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Yw(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function jb({recordingData:e,replayId:t,segmentId:i,eventContext:n,timestamp:s,session:a}){const r=function({recordingData:e,headers:t}){let i;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)i=`${n}${e}`;else{const t=(new TextEncoder).encode(n);i=new Uint8Array(t.length+e.length),i.set(t),i.set(e,t.length)}return i}({recordingData:e,headers:{segment_id:i}}),{urls:o,errorIds:c,traceIds:d,initialTimestamp:l}=n,u=bh(),p=Eh(),m=u&&u.getTransport(),f=u&&u.getDsn();if(!(u&&m&&f&&a.sampled))return;const h={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:d,urls:o,replay_id:t,segment_id:i,replay_type:a.sampled},g=await async function({client:e,scope:t,replayId:i,event:n}){const s={event_id:i,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",n,s);const a=await mh(e.getOptions(),n,s,t,e,qh());if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}({scope:p,client:u,replayId:t,event:h});if(!g)return u.recordDroppedEvent("event_processor","replay",h),void Pw("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const _=function(e,t,i,n){return Df(Yf(e,Gf(e),n,i),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,r,f,u.getOptions().tunnel);let I;try{I=await m.send(_)}catch(e){const t=new Error(ry);try{t.cause=e}catch(e){}throw t}if(!I)return I;if("number"==typeof I.statusCode&&(I.statusCode<200||I.statusCode>=300))throw new Mb(I.statusCode);const y=Qf({},I);if(Jf(y,"replay"))throw new zb(y);return I}class Mb extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class zb extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Db(e,t={count:0,interval:5e3}){const{recordingData:i,options:n}=e;var s,a;if(i.length)try{return await jb(e),!0}catch(i){if(i instanceof Mb||i instanceof zb)throw i;if(s="Replays",a={_retryCount:t.count},Vh().setContext(s,a),Cw&&n._experiments&&n._experiments.captureExceptions&&_h(i),t.count>=3){const e=new Error(`${ry} - max retries exceeded`);try{e.cause=i}catch(e){}throw e}return t.interval*=++t.count,new Promise(((i,n)=>{setTimeout((async()=>{try{await Db(e,t),i(!0)}catch(e){n(e)}}),t.interval)}))}}const Bb="__THROTTLED";function $b(e,t,i){const n=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-i;n.forEach(((e,i)=>{i<t&&n.delete(i)}))})(r),[...n.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":Bb}s=!1;const o=n.get(r)||0;return n.set(r,o+1),e(...a)}}class Vb{constructor({options:e,recordingOptions:t}){Vb.prototype.__init.call(this),Vb.prototype.__init2.call(this),Vb.prototype.__init3.call(this),Vb.prototype.__init4.call(this),Vb.prototype.__init5.call(this),Vb.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,i){let n,s,a;const r=i&&i.maxWait?Math.max(i.maxWait,t):0;function o(){return c(),n=e(),n}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function d(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),n}return d.cancel=c,d.flush=function(){return void 0!==s||void 0!==a?o():n},d}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$b(((e,t)=>function(e,t,i){return nb(e,t)?ib(e,t,i):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:i,slowClickIgnoreSelectors:n}=this.getOptions(),s=i?{threshold:Math.min(3e3,i),timeout:i,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;s&&(this.clickDetector=new vw(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:i}=this._options;t<=0&&i<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",jw(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");jw("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=eb({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");jw("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=eb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=uw({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Pb(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Pw("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ww(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Pw("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Pw("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Pw("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const i=this.stopRecording();e&&i&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Qw(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${sy.location.pathname}${sy.location.hash}${sy.location.search}`,t=`${sy.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const i=this._throttledAddEvent(e,t);if(i===Bb){const e=Aw({category:"replay.throttled"});this.addUpdate((()=>!tb(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return i}getCurrentRoute(){const e=this.lastTransaction||Eh().getTransaction(),t=(e&&uh(e).data||{})[ng];if(e&&t&&["route","custom"].includes(t))return uh(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=qw({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Cw&&rm.error("[Replay]",e),Cw&&this._options._experiments&&this._options._experiments.captureExceptions&&_h(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,i=eb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=i}_checkSession(){if(!this.session)return!1;const e=this.session;return!Xw(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{sy.document.addEventListener("visibilitychange",this._handleVisibilityChange),sy.addEventListener("blur",this._handleWindowBlur),sy.addEventListener("focus",this._handleWindowFocus),sy.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ub(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Ow(this)}_removeListeners(){try{sy.document.removeEventListener("visibilitychange",this._handleVisibilityChange),sy.removeEventListener("blur",this._handleWindowBlur),sy.removeEventListener("focus",this._handleWindowFocus),sy.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===sy.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Aw({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Aw({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Lw(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Zw(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Pw("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:vv.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Fw).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(lb(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const i=t.getEarliestTimestamp();i&&i<this._context.initialTimestamp&&(this._context.initialTimestamp=i)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(lb(e,[Cb(sy.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const i=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Db({replayId:e,recordingData:s,segmentId:n,eventContext:i,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=bh();t&&t.recordDroppedEvent("send_error","replay")}}else Cw&&rm.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Cw&&rm.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,i=Date.now()-t;this._debouncedFlush.cancel();const n=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(n||s)return Pw(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${n?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(n&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&Pw("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Cw&&rm.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Yw(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,i=this._options.mutationLimit,n=i&&t>i;if(t>this._options.mutationBreadcrumbLimit||n){const e=Aw({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function qb(e,t,i,n){const s=[...e,..."string"==typeof n?n.split(","):[],...t];return void 0!==i&&("string"==typeof i&&s.push(`.${i}`),am((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),s.join(",")}const Hb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Wb=["content-length","content-type","accept"];let Kb=!1;const Gb=e=>new Yb(e);class Yb{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:i=4999,maxReplayDuration:n=36e5,stickySession:s=!0,useCompression:a=!0,workerUrl:r,_experiments:o={},sessionSampleRate:c,errorSampleRate:d,maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:I=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:w=[],mask:b=[],maskAttributes:E=["title","placeholder"],unmask:A=[],block:S=[],unblock:x=[],ignore:T=[],maskFn:R,beforeAddRecordingEvent:k,beforeErrorSampling:L,blockClass:N,blockSelector:F,maskInputOptions:U,maskTextClass:O,maskTextSelector:C,ignoreClass:P}={}){this.name=Yb.id;const j=function({mask:e,unmask:t,block:i,unblock:n,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:d}){const l={maskTextSelector:qb(e,[".sentry-mask","[data-sentry-mask]"],o,c),unmaskTextSelector:qb(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:qb(i,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:qb(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:qb(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],d)};return a instanceof RegExp&&(l.blockClass=a),o instanceof RegExp&&(l.maskTextClass=o),l}({mask:b,unmask:A,block:S,unblock:x,ignore:T,blockClass:N,blockSelector:F,maskTextClass:O,maskTextSelector:C,ignoreClass:P});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{...U||{},password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(e,t,i)=>function({el:e,key:t,maskAttributes:i,maskAllText:n,privacyOptions:s,value:a}){return n?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?a:i.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:E,maskAllText:l,privacyOptions:j,key:e,value:t,el:i}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(i,15e3),maxReplayDuration:Math.min(n,ly),stickySession:s,sessionSampleRate:c,errorSampleRate:d,useCompression:a,workerUrl:r,blockAllMedia:p,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:m,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:I,networkCaptureBodies:y,networkRequestHeaders:Jb(v),networkResponseHeaders:Jb(w),beforeAddRecordingEvent:k,beforeErrorSampling:L,_experiments:o},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof d&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${d} })`),this._initialOptions.errorSampleRate=d),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Hb}`:Hb),this._isInitialized&&_f())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Kb}set _isInitialized(e){Kb=e}setupOnce(){_f()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=bh(),i=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...ym(e)};if(!i)return am((()=>{console.warn("SDK client is not available.")})),n;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==i.replaysSessionSampleRate&&null==i.replaysOnErrorSampleRate&&am((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof i.replaysSessionSampleRate&&(n.sessionSampleRate=i.replaysSessionSampleRate);"number"==typeof i.replaysOnErrorSampleRate&&(n.errorSampleRate=i.replaysOnErrorSampleRate);return n}(this._initialOptions);this._replay=new Vb({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=bh().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Jb(e){return[...Wb,...e.map((e=>e.toLowerCase()))]}Yb.__initStatic();const Qb="CaptureConsole",Zb=(e={})=>{const t=e.levels||nm;return{name:Qb,setupOnce(){},setup(e){"console"in Yp&&Nm((({args:i,level:n})=>{bh()===e&&t.includes(n)&&function(e,t){const i={level:Rf(t),extra:{arguments:e}};wh((n=>{if(n.addEventProcessor((e=>(e.logger="console",jm(e,{handled:!1,type:"console"}),e))),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${Bp(e.slice(1)," ")||"console.assert"}`;return n.setExtra("arguments",e.slice(1)),void Ih(t,i)}const s=e.find((e=>e instanceof Error));if("error"===t&&s)return void _h(s,i);Ih(Bp(e," "),i)}))}(i,n)}))}}};Sg(Qb,Zb);const Xb="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eE="ExtraErrorData",tE=(e={})=>{const t=e.depth||3,i=e.captureErrorCause||!1;return{name:eE,setupOnce(){},processEvent:(e,n)=>function(e,t={},i,n){if(!t.originalException||!xp(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,a=function(e,t){try{const i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(const t of Object.keys(e)){if(-1!==i.indexOf(t))continue;const s=e[t];n[t]=xp(s)?s.toString():s}if(t&&void 0!==e.cause&&(n.cause=xp(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const i=t[e];n[e]=xp(i)?i.toString():i}}return n}catch(e){Xb&&rm.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n);if(a){const t={...e.contexts},n=If(a,i);return Up(n)&&(mm(n,"__sentry_skip_normalization__",!0),t[s]=n),{...e,contexts:t}}return e}(e,n,t,i)}};Sg(eE,tE);const iE=Yp,nE="ContextLines",sE=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:nE,setupOnce(){},processEvent:e=>function(e,t){const i=iE.document,n=iE.location&&(s=iE.location.href,s.split(/[\?#]/,1)[0]);var s;if(!i||!n)return e;const a=e.exception&&e.exception.values;if(!a||!a.length)return e;const r=i.documentElement.innerHTML;if(!r)return e;const o=["<!DOCTYPE html>","<html>",...r.split("\n"),"</html>"];return a.forEach((e=>{const i=e.stacktrace;i&&i.frames&&(i.frames=i.frames.map((e=>function(e,t,i,n){if(e.filename!==i||!e.lineno||!t.length)return e;return function(e,t,i=5){if(void 0===t.lineno)return;const n=e.length,s=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-i),s).map((e=>Dp(e,0))),t.context_line=Dp(e[Math.min(n-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,n),s+1+i).map((e=>Dp(e,0)))}(t,e,n),e}(e,o,n,t))))})),e}(e,t)}};Sg(nE,sE);const aE=new RegExp("^https:\\/\\/roar-sre--pr\\d+-\\w+\\.web\\.app\\/"),rE=new RegExp("^https:\\/\\/roar-staging\\.web\\.app\\/game\\/sre|https:\\/\\/roar-staging--pr\\d+-\\w+\\.web\\.app\\/");class oE{constructor(e,t,i,n,s){this.gameParams=t,this.userParams=i,this.firekit=e,this.displayElement=n,this.useParameterValidation=s,this.jsPsych=null}async init(){ny({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[Gb({maskAllText:!0,maskAllInputs:!0}),tI(),Zb({levels:["warning","error","debug","assert"]}),sE(),tE()],attachStacktrace:!0,tracesSampleRate:.2,tracePropagationTargets:[aE,rE,"https://roar.education/game/sre","localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),await this.firekit.startRun();const e=await(async(e,t,i,n,s)=>{const a=Na(Na({...t,...i},Fa),Ua),r="es"===hc.language?1:3,{userMode:o,assessmentPid:c,labId:d,recruitment:l,userMetadata:u,urlParams:p,consent:m,storyOption:f,language:h=hc.language,skipInstructions:g,grade:_,birthMonth:I,birthYear:y,age:v,ageMonths:w,timerLength:b,scoringVersion:E=r}=a,A=Number.isNaN(parseInt(E,10))?r:E;"en"!==h&&hc.changeLanguage(h);const S=cr(I,y,v,w),x={taskId:e.task.taskId,pid:c,labId:d,userMode:o||bp(h),recruitment:l||"pilot",storyOption:f,story:yp(f,_),userMetadata:{...u,grade:_,...S},startTime:new Date,urlParams:p,firekit:e,language:h,skipInstructions:g??!0,consent:m??!0,displayElement:n||null,blockOrder:vp(o||bp(h),md,h),timerLength:b??18e4,timerLengthList:wp(o||bp(h)),useParameterValidation:s??!0,scoringVersion:A},T=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,x[e]??t])));return await x.firekit.updateTaskParams(T),x.useParameterValidation&&await x.firekit.validateParameters(Ip),null!==x.pid&&await x.firekit.updateUser({assessmentPid:x.pid,...u}),x})(this.firekit,this.gameParams,this.userParams,this.displayElement,this.useParameterValidation);return r.session.set("config",e),function(e,t){Od=Eo(Nd,Fd,hc.language),Cd=Ao(Nd,Fd,hc.language).default,Cd.message=hc.t("loading"),Ep(t);const i=Ap(e),n=ur({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["incomplete","responseTimeTooFast"]});Ud=new pr({evaluateValidity:n,handleEngagementFlags:(e,i)=>t.firekit.run.started?t.firekit.updateEngagementFlags(e,i):null});const s=[Cd,...i];return(e=>{const i={timeline:[kd,Ld],repetitions:4};s.push(Id),s.push(xd),s.push(Rd),s.push(i),s.push(yd);for(let i=0;i<e.length;i+=1)s.push(Td(e[i],i+1,t.timerLengthList[i])),i<e.length-1&&s.push(Ad);s.push(Sd)})(t.blockOrder),{jsPsych:hd,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=i=>{e()?i():setTimeout((e=>t(i)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{oE as default};
|
|
26
|
+
//# sourceMappingURL=index.HsrC62ai.js.map
|