@bdelab/roar-sre 1.8.0 → 1.9.0
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 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 Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b4bcb723-5a03-4449-b786-2ec0c70d2470",e._sentryDebugIdIdentifier="sentry-dbid-b4bcb723-5a03-4449-b786-2ec0c70d2470")}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:"c8deba4fa20e0fb97d569ec6d2d34ee412e055f1"};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};
|
|
2
2
|
/*! store2 - v2.14.2 - 2022-07-18
|
|
3
3
|
* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */!function(e){!function(t,n){var i={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));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,n){e.setItem(t,n)},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 a=i.inherit(i.storeAPI,(function(e,t,n){return 0===arguments.length?a.getAll():"function"==typeof t?a.transact(e,t,n):void 0!==t?a.set(e,t,n):"string"==typeof e||"number"==typeof e?a.get(e):"function"==typeof e?a.each(e):e?a.setAll(e,t):a.clear()}));a._id=e;try{var s="__store2_test";t.setItem(s,"ok"),a._area=t,t.removeItem(s)}catch(e){a._area=i.storage("fake")}return a._ns=n||"",i.areas[e]||(i.areas[e]=a._area),i.apis[a._ns+a._id]||(i.apis[a._ns+a._id]=a),a},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 a=e,s=this[a];if(!(s&&s.namespace||((s=i.Store(this._id,this._area,this._ns+a+n))._delim=n,this[a]||(this[a]=s),t)))for(var r in i.areas)s.area(r,i.areas[r]);return s},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,a=i.length(this._area);n<a;n++){var s=this._out(i.key(this._area,n));if(void 0!==s&&!1===e.call(this,s,this.get(s),t))break;a>i.length(this._area)&&(a--,n--)}return t||this},keys:function(e){return this.each((function(e,t,n){n.push(e)}),e||[])},get:function(e,t){var n,a=i.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==a?i.parse(a,n):null!=t?t:a},getAll:function(e){return this.each((function(e,t,n){n[e]=t}),e||{})},transact:function(e,t,n){var i=this.get(e,n),a=t(i);return this.set(e,void 0===a?i:a),this},set:function(e,t,n){var a,s=this.get(e);return null!=s&&!1===n?t:("function"==typeof n&&(a=n,n=void 0),i.set(this._area,this._in(e),i.stringify(t,a),n)||s)},setAll:function(e,t){var n,i;for(var a in e)i=e[a],this.set(a,i,t)!==i&&(n=!0);return n},add:function(e,t,n){var a=this.get(e);if(a instanceof Array)t=a.concat(t);else if(null!==a){var s=typeof a;if(s===typeof t&&"object"===s){for(var r in t)a[r]=t[r];t=a}else t=a+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 n in this.items)if(this.has(n)&&e===t++)return n},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)}}},a=i.Store("local",function(){try{return localStorage}catch(e){}}());a.local=a,a._=i,a.area("session",function(){try{return sessionStorage}catch(e){}}()),a.area("page",i.storage("page")),"function"==typeof n&&void 0!==n.amd?n("store2",[],(function(){return a})):e.exports?e.exports=a:(t.store&&(i.conflict=t.store),t.store=a)}(n,n&&n.define)}(a);var s=i(a.exports);var r=function(){this.__data__=[],this.size=0};var o=function(e,t){return e===t||e!=e&&t!=t},c=o;var l=function(e,t){for(var n=e.length;n--;)if(c(e[n][0],t))return n;return-1},u=l,d=Array.prototype.splice;var p=l;var h=l;var f=l;var m=r,g=function(e){var t=this.__data__,n=u(t,e);return!(n<0)&&(n==t.length-1?t.pop():d.call(t,n,1),--this.size,!0)},_=function(e){var t=this.__data__,n=p(t,e);return n<0?void 0:t[n][1]},y=function(e){return h(this.__data__,e)>-1},v=function(e,t){var n=this.__data__,i=f(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function b(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}b.prototype.clear=m,b.prototype.delete=g,b.prototype.get=_,b.prototype.has=y,b.prototype.set=v;var w=b,x=w;var E=function(){this.__data__=new x,this.size=0};var S=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var k=function(e){return this.__data__.get(e)};var T=function(e){return this.__data__.has(e)},R="object"==typeof n&&n&&n.Object===Object&&n,I=R,A="object"==typeof self&&self&&self.Object===Object&&self,C=I||A||Function("return this")(),O=C.Symbol,L=O,j=Object.prototype,P=j.hasOwnProperty,U=j.toString,F=L?L.toStringTag:void 0;var D=function(e){var t=P.call(e,F),n=e[F];try{e[F]=void 0;var i=!0}catch(e){}var a=U.call(e);return i&&(t?e[F]=n:delete e[F]),a},N=Object.prototype.toString;var M=D,z=function(e){return N.call(e)},B=O?O.toStringTag:void 0;var $=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?M(e):z(e)};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=$,Y=q;var G,H=function(e){if(!Y(e))return!1;var t=V(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},W=C["__core-js_shared__"],K=(G=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var Z=function(e){return!!K&&K in e},J=Function.prototype.toString;var X=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=H,ee=Z,te=q,ne=X,ie=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,re=ae.toString,oe=se.hasOwnProperty,ce=RegExp("^"+re.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!te(e)||ee(e))&&(Q(e)?ce:ie).test(ne(e))},ue=function(e,t){return null==e?void 0:e[t]};var de=function(e,t){var n=ue(e,t);return le(n)?n:void 0},pe=de(C,"Map"),he=de(Object,"create"),fe=he;var me=function(){this.__data__=fe?fe(null):{},this.size=0};var ge=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e=he,ye=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;if(_e){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ye.call(t,e)?t[e]:void 0},be=he,we=Object.prototype.hasOwnProperty;var xe=he;var Ee=me,Se=ge,ke=ve,Te=function(e){var t=this.__data__;return be?void 0!==t[e]:we.call(t,e)},Re=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ie.prototype.clear=Ee,Ie.prototype.delete=Se,Ie.prototype.get=ke,Ie.prototype.has=Te,Ie.prototype.set=Re;var Ae=Ie,Ce=w,Oe=pe;var Le=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var je=function(e,t){var n=e.__data__;return Le(t)?n["string"==typeof t?"string":"hash"]:n.map},Pe=je;var Ue=je;var Fe=je;var De=je;var Ne=function(){this.size=0,this.__data__={hash:new Ae,map:new(Oe||Ce),string:new Ae}},Me=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},ze=function(e){return Ue(this,e).get(e)},Be=function(e){return Fe(this,e).has(e)},$e=function(e,t){var n=De(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}qe.prototype.clear=Ne,qe.prototype.delete=Me,qe.prototype.get=ze,qe.prototype.has=Be,qe.prototype.set=$e;var Ve=qe,Ye=w,Ge=pe,He=Ve;var We=w,Ke=E,Ze=S,Je=k,Xe=T,Qe=function(e,t){var n=this.__data__;if(n instanceof Ye){var i=n.__data__;if(!Ge||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new He(i)}return n.set(e,t),this.size=n.size,this};function et(e){var t=this.__data__=new We(e);this.size=t.size}et.prototype.clear=Ke,et.prototype.delete=Ze,et.prototype.get=Je,et.prototype.has=Xe,et.prototype.set=Qe;var tt=et;var nt=Ve,it=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},at=function(e){return this.__data__.has(e)};function st(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nt;++t<n;)this.add(e[t])}st.prototype.add=st.prototype.push=it,st.prototype.has=at;var rt=st,ot=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},ct=function(e,t){return e.has(t)};var lt=function(e,t,n,i,a,s){var r=1&n,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var d=-1,p=!0,h=2&n?new rt:void 0;for(s.set(e,t),s.set(t,e);++d<o;){var f=e[d],m=t[d];if(i)var g=r?i(m,f,d,t,e,s):i(f,m,d,e,t,s);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!ot(t,(function(e,t){if(!ct(h,t)&&(f===e||a(f,e,n,i,s)))return h.push(t)}))){p=!1;break}}else if(f!==m&&!a(f,m,n,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p},ut=C.Uint8Array;var dt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var pt=ut,ht=o,ft=lt,mt=dt,gt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},_t=O?O.prototype:void 0,yt=_t?_t.valueOf:void 0;var vt=function(e,t,n,i,a,s,r){switch(n){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||!s(new pt(e),new pt(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=mt;case"[object Set]":var c=1&i;if(o||(o=gt),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var u=ft(o(e),o(t),i,a,s,r);return r.delete(e),u;case"[object Symbol]":if(yt)return yt.call(e)==yt.call(t)}return!1};var bt=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},wt=Array.isArray,xt=bt,Et=wt;var St=function(e,t,n){var i=t(e);return Et(e)?i:xt(i,n(e))};var kt=function(){return[]},Tt=function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,s=[];++n<i;){var r=e[n];t(r,n,e)&&(s[a++]=r)}return s},Rt=kt,It=Object.prototype.propertyIsEnumerable,At=Object.getOwnPropertySymbols,Ct=At?function(e){return null==e?[]:(e=Object(e),Tt(At(e),(function(t){return It.call(e,t)})))}:Rt;var Ot=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var Lt=function(e){return null!=e&&"object"==typeof e},jt=$,Pt=Lt;var Ut=function(e){return Pt(e)&&"[object Arguments]"==jt(e)},Ft=Lt,Dt=Object.prototype,Nt=Dt.hasOwnProperty,Mt=Dt.propertyIsEnumerable,zt=Ut(function(){return arguments}())?Ut:function(e){return Ft(e)&&Nt.call(e,"callee")&&!Mt.call(e,"callee")},Bt={exports:{}};var $t=function(){return!1};!function(e,t){var n=C,i=$t,a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,r=s&&s.exports===a?n.Buffer:void 0,o=(r?r.isBuffer:void 0)||i;e.exports=o}(Bt,Bt.exports);var qt=Bt.exports,Vt=/^(?:0|[1-9]\d*)$/;var Yt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Vt.test(e))&&e>-1&&e%1==0&&e<t};var Gt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ht=$,Wt=Gt,Kt=Lt,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 Jt=function(e){return Kt(e)&&Wt(e.length)&&!!Zt[Ht(e)]};var Xt=function(e){return function(t){return e(t)}},Qt={exports:{}};!function(e,t){var n=R,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=r}(Qt,Qt.exports);var en=Qt.exports,tn=Jt,nn=Xt,an=en&&en.isTypedArray,sn=an?nn(an):tn,rn=Ot,on=zt,cn=wt,ln=qt,un=Yt,dn=sn,pn=Object.prototype.hasOwnProperty;var hn=function(e,t){var n=cn(e),i=!n&&on(e),a=!n&&!i&&ln(e),s=!n&&!i&&!a&&dn(e),r=n||i||a||s,o=r?rn(e.length,String):[],c=o.length;for(var l in e)!t&&!pn.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||un(l,c))||o.push(l);return o},fn=Object.prototype;var mn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fn)};var gn=function(e,t){return function(n){return e(t(n))}},_n=gn(Object.keys,Object),yn=mn,vn=_n,bn=Object.prototype.hasOwnProperty;var wn=H,xn=Gt;var En=function(e){return null!=e&&xn(e.length)&&!wn(e)},Sn=hn,kn=function(e){if(!yn(e))return vn(e);var t=[];for(var n in Object(e))bn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Tn=En;var Rn=function(e){return Tn(e)?Sn(e):kn(e)},In=St,An=Ct,Cn=Rn;var On=function(e){return In(e,Cn,An)},Ln=On,jn=Object.prototype.hasOwnProperty;var Pn=function(e,t,n,i,a,s){var r=1&n,o=Ln(e),c=o.length;if(c!=Ln(t).length&&!r)return!1;for(var l=c;l--;){var u=o[l];if(!(r?u in t:jn.call(t,u)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var f=r;++l<c;){var m=e[u=o[l]],g=t[u];if(i)var _=r?i(g,m,u,t,e,s):i(m,g,u,e,t,s);if(!(void 0===_?m===g||a(m,g,n,i,s):_)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(h=!1)}return s.delete(e),s.delete(t),h},Un=de(C,"DataView"),Fn=pe,Dn=de(C,"Promise"),Nn=de(C,"Set"),Mn=de(C,"WeakMap"),zn=$,Bn=X,$n="[object Map]",qn="[object Promise]",Vn="[object Set]",Yn="[object WeakMap]",Gn="[object DataView]",Hn=Bn(Un),Wn=Bn(Fn),Kn=Bn(Dn),Zn=Bn(Nn),Jn=Bn(Mn),Xn=zn;(Un&&Xn(new Un(new ArrayBuffer(1)))!=Gn||Fn&&Xn(new Fn)!=$n||Dn&&Xn(Dn.resolve())!=qn||Nn&&Xn(new Nn)!=Vn||Mn&&Xn(new Mn)!=Yn)&&(Xn=function(e){var t=zn(e),n="[object Object]"==t?e.constructor:void 0,i=n?Bn(n):"";if(i)switch(i){case Hn:return Gn;case Wn:return $n;case Kn:return qn;case Zn:return Vn;case Jn:return Yn}return t});var Qn=Xn,ei=tt,ti=lt,ni=vt,ii=Pn,ai=Qn,si=wt,ri=qt,oi=sn,ci="[object Arguments]",li="[object Array]",ui="[object Object]",di=Object.prototype.hasOwnProperty;var pi=function(e,t,n,i,a,s){var r=si(e),o=si(t),c=r?li:ai(e),l=o?li:ai(t),u=(c=c==ci?ui:c)==ui,d=(l=l==ci?ui:l)==ui,p=c==l;if(p&&ri(e)){if(!ri(t))return!1;r=!0,u=!1}if(p&&!u)return s||(s=new ei),r||oi(e)?ti(e,t,n,i,a,s):ni(e,t,c,n,i,a,s);if(!(1&n)){var h=u&&di.call(e,"__wrapped__"),f=d&&di.call(t,"__wrapped__");if(h||f){var m=h?e.value():e,g=f?t.value():t;return s||(s=new ei),a(m,g,n,i,s)}}return!!p&&(s||(s=new ei),ii(e,t,n,i,a,s))},hi=Lt;var fi=function e(t,n,i,a,s){return t===n||(null==t||null==n||!hi(t)&&!hi(n)?t!=t&&n!=n:pi(t,n,i,a,e,s))},mi=tt,gi=fi;var _i=q;var yi=function(e){return e==e&&!_i(e)},vi=yi,bi=Rn;var wi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},xi=function(e,t,n,i){var a=n.length,s=a,r=!i;if(null==e)return!s;for(e=Object(e);a--;){var o=n[a];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){var c=(o=n[a])[0],l=e[c],u=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var d=new mi;if(i)var p=i(l,u,c,e,t,d);if(!(void 0===p?gi(u,l,3,i,d):p))return!1}}return!0},Ei=function(e){for(var t=bi(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,vi(a)]}return t},Si=wi;var ki=function(e){var t=Ei(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||xi(n,e,t)}},Ti=$,Ri=Lt;var Ii=function(e){return"symbol"==typeof e||Ri(e)&&"[object Symbol]"==Ti(e)},Ai=wt,Ci=Ii,Oi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Li=/^\w*$/;var ji=function(e,t){if(Ai(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(Li.test(e)||!Oi.test(e)||null!=t&&e in Object(t))},Pi=Ve;function Ui(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var r=e.apply(this,i);return n.cache=s.set(a,r)||s,r};return n.cache=new(Ui.Cache||Pi),n}Ui.Cache=Pi;var Fi=Ui;var Di=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ni=/\\(\\)?/g,Mi=function(e){var t=Fi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Di,(function(e,n,i,a){t.push(i?a.replace(Ni,"$1"):n||e)})),t}));var zi=function(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a},Bi=zi,$i=wt,qi=Ii,Vi=O?O.prototype:void 0,Yi=Vi?Vi.toString:void 0;var Gi=function e(t){if("string"==typeof t)return t;if($i(t))return Bi(t,e)+"";if(qi(t))return Yi?Yi.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Hi=Gi;var Wi=wt,Ki=ji,Zi=Mi,Ji=function(e){return null==e?"":Hi(e)};var Xi=function(e,t){return Wi(e)?e:Ki(e,t)?[e]:Zi(Ji(e))},Qi=Ii;var ea=function(e){if("string"==typeof e||Qi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},ta=Xi,na=ea;var ia=function(e,t){for(var n=0,i=(t=ta(t,e)).length;null!=e&&n<i;)e=e[na(t[n++])];return n&&n==i?e:void 0},aa=ia;var sa=function(e,t,n){var i=null==e?void 0:aa(e,t);return void 0===i?n:i};var ra=Xi,oa=zt,ca=wt,la=Yt,ua=Gt,da=ea;var pa=function(e,t,n){for(var i=-1,a=(t=ra(t,e)).length,s=!1;++i<a;){var r=da(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&ua(a)&&la(r,a)&&(ca(e)||oa(e))},ha=function(e,t){return null!=e&&t in Object(e)},fa=pa;var ma=function(e,t){return null!=e&&fa(e,t,ha)},ga=fi,_a=sa,ya=ma,va=ji,ba=yi,wa=wi,xa=ea;var Ea=function(e,t){return va(e)&&ba(t)?wa(xa(e),t):function(n){var i=_a(n,e);return void 0===i&&i===t?ya(n,e):ga(t,i,3)}};var Sa=function(e){return e};var ka=ia;var Ta=function(e){return function(t){return ka(t,e)}},Ra=function(e){return function(t){return null==t?void 0:t[e]}},Ia=Ta,Aa=ji,Ca=ea;var Oa=function(e){return Aa(e)?Ra(Ca(e)):Ia(e)},La=ki,ja=Ea,Pa=Sa,Ua=wt,Fa=Oa;var Da=function(e){return"function"==typeof e?e:null==e?Pa:"object"==typeof e?Ua(e)?ja(e[0],e[1]):La(e):Fa(e)};var Na=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)}},Ma=de,za=function(){try{var e=Ma(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ba=za;var $a=function(e,t,n){"__proto__"==t&&Ba?Ba(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qa=$a,Va=o,Ya=Object.prototype.hasOwnProperty;var Ga=function(e,t,n){var i=e[t];Ya.call(e,t)&&Va(i,n)&&(void 0!==n||t in e)||qa(e,t,n)},Ha=Ga,Wa=Xi,Ka=Yt,Za=q,Ja=ea;var Xa=function(e,t,n,i){if(!Za(e))return e;for(var a=-1,s=(t=Wa(t,e)).length,r=s-1,o=e;null!=o&&++a<s;){var c=Ja(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var u=o[c];void 0===(l=i?i(u,c,o):void 0)&&(l=Za(u)?u:Ka(t[a+1])?[]:{})}Ha(o,c,l),o=o[c]}return e},Qa=ia,es=Xa,ts=Xi;var ns=function(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Qa(e,r);n(o,r)&&es(s,ts(r,e),o)}return s},is=gn(Object.getPrototypeOf,Object),as=bt,ss=is,rs=Ct,os=kt,cs=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)as(t,rs(e)),e=ss(e);return t}:os;var ls=q,us=mn,ds=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ps=Object.prototype.hasOwnProperty;var hs=hn,fs=function(e){if(!ls(e))return ds(e);var t=us(e),n=[];for(var i in e)("constructor"!=i||!t&&ps.call(e,i))&&n.push(i);return n},ms=En;var gs=function(e){return ms(e)?hs(e,!0):fs(e)},_s=St,ys=cs,vs=gs;var bs=function(e){return _s(e,vs,ys)},ws=zi,xs=Da,Es=ns,Ss=bs;var ks=function(e,t){if(null==e)return{};var n=ws(Ss(e),(function(e){return[e]}));return t=xs(t),Es(e,n,(function(e,n){return t(e,n[0])}))},Ts=Da,Rs=Na,Is=ks;var As=i((function(e,t){return Is(e,Rs(Ts(t)))}));var Cs=i((function(e){return null===e})),Os=/\s/;var Ls=function(e){for(var t=e.length;t--&&Os.test(e.charAt(t)););return t},js=/^\s+/;var Ps=function(e){return e?e.slice(0,Ls(e)+1).replace(js,""):e},Us=q,Fs=Ii,Ds=/^[-+]0x[0-9a-f]+$/i,Ns=/^0b[01]+$/i,Ms=/^0o[0-7]+$/i,zs=parseInt;var Bs=i((function(e){if("number"==typeof e)return e;if(Fs(e))return NaN;if(Us(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Us(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ps(e);var n=Ns.test(e);return n||Ms.test(e)?zs(e.slice(2),n?2:8):Ds.test(e)?NaN:+e}));var $s=i((function(e){return void 0===e}));function qs(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Vs(e,t){for(var n,i="",a=0,s=-1,r=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else{if(47===n)break;n=47}if(47===n){if(s===o-1||1===r);else if(s!==o-1&&2===r){if(i.length<2||2!==a||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",a=0):a=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),s=o,r=0;continue}}else if(2===i.length||1===i.length){i="",a=0,s=o,r=0;continue}t&&(i.length>0?i+="/..":i="..",a=2)}else i.length>0?i+="/"+e.slice(s+1,o):i=e.slice(s+1,o),a=o-s-1;s=o,r=0}else 46===n&&-1!==r?++r:r=-1}return i}var Ys={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=process.cwd()),a=e),qs(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=Vs(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(qs(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=Vs(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return qs(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 n=arguments[t];qs(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":Ys.normalize(e)},relative:function(e,t){if(qs(e),qs(t),e===t)return"";if((e=Ys.resolve(e))===(t=Ys.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,a=i-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var r=t.length-s,o=a<r?a:r,c=-1,l=0;l<=o;++l){if(l===o){if(r>o){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else a>o&&(47===e.charCodeAt(n+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(s+l))break;47===u&&(c=l)}var d="";for(l=n+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(s+c):(s+=c,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(qs(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');qs(e);var n,i=0,a=-1,s=!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(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){i=n+1;break}}else-1===o&&(s=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=o))}return i===a?a=o:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1);return-1===a?"":e.slice(i,a)},extname:function(e){qs(e);for(var t=-1,n=0,i=-1,a=!0,s=0,r=e.length-1;r>=0;--r){var o=e.charCodeAt(r);if(47!==o)-1===i&&(a=!1,i=r+1),46===o?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!a){n=r+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},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 n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){qs(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),a=47===i;a?(t.root="/",n=1):n=0;for(var s=-1,r=0,o=-1,c=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===o&&(c=!1,o=l+1),46===i?-1===s?s=l:1!==u&&(u=1):-1!==s&&(u=-1);else if(!c){r=l+1;break}return-1===s||-1===o||0===u||1===u&&s===o-1&&s===r+1?-1!==o&&(t.base=t.name=0===r&&a?e.slice(1,o):e.slice(r,o)):(0===r&&a?(t.name=e.slice(1,s),t.base=e.slice(1,o)):(t.name=e.slice(r,s),t.base=e.slice(r,o)),t.ext=e.slice(s,o)),r>0?t.dir=e.slice(0,r-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ys.posix=Ys;var Gs=i(Ys),Hs={},Ws={"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
|
/*!
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {Node} form The form to serialize
|
|
15
15
|
* @return {String} The serialized form data
|
|
16
16
|
*/
|
|
17
|
-
function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.name&&!i.disabled&&"file"!==i.type&&"reset"!==i.type&&"submit"!==i.type&&"button"!==i.type)if("select-multiple"===i.type)for(var a=0;a<i.options.length;a++)i.options[a].selected&&t.push({name:i.name,value:i.options[a].value});else("checkbox"!==i.type&&"radio"!==i.type||i.checked)&&t.push({name:i.name,value:i.value})}return t}(e.querySelector("#jspsych-survey-html-form"));t.dataAsArray||(r=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].name]=e[n].value;return t}(r));var o={rt:s,response:r};e.innerHTML="",this.jsPsych.finishTrial(o)}));var a=performance.now()}}Do.info=Fo;const No={name:"audio-multi-response",parameters:{stimulus:{type:Ir.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Ir.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Ir.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Ir.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Ir.HTML_STRING,pretty_name:"Prompt",default:null},prompt_above_buttons:{type:Ir.BOOL,pretty_name:"Prompt above buttons",default:!1},trial_duration:{type:Ir.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Ir.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Ir.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Ir.BOOL,pretty_name:"Response ends trial",default:!0},trial_ends_after_audio:{type:Ir.BOOL,pretty_name:"Trial ends after audio",default:!1},response_allowed_while_playing:{type:Ir.BOOL,pretty_name:"Response allowed while playing",default:!0}}};class Mo{constructor(e){this.jsPsych=e}trial(e,t,n){let i;var a=this.jsPsych.pluginAPI.audioContext();let s={rt:null,key:null,button:null,source:null};var r;this.jsPsych.pluginAPI.getAudioBuffer(t.stimulus).then((e=>{null!==a?(this.audio=a.createBufferSource(),this.audio.buffer=e,this.audio.connect(a.destination)):(this.audio=e,this.audio.currentTime=0),o()})).catch((e=>{console.error(`Failed to load audio file "${t.stimulus}". Try checking the file path. We recommend using the preload plugin to load audio files.`),console.error(e)}));const o=()=>{t.trial_ends_after_audio&&this.audio.addEventListener("ended",c),t.response_allowed_while_playing||t.trial_ends_after_audio||(this.audio.addEventListener("ended",h),this.audio.addEventListener("ended",d));var i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in audio-multi-response plugin. The length of the button_html array does not equal the length of the choices array");else for(var s=0;s<t.button_choices.length;s++)i.push(t.button_html);let o='<div id="jspsych-audio-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var l=i[s].replace(/%choice%/g,t.button_choices[s]);o+='<div class="jspsych-audio-multi-response-button" style="cursor: pointer; display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-audio-multi-response-button-'+s+'" data-choice="'+s+'">'+l+"</div>"}o+="</div>",null!==t.prompt&&(t.prompt_above_buttons?o='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"+o:o+='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"),e.innerHTML=o,t.response_allowed_while_playing?(d(),h()):u(),r=performance.now(),null!==a?(r=a.currentTime,this.audio.start(r)):this.audio.play(),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{c()}),t.trial_duration),n()},c=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),null!==a?this.audio.stop():this.audio.pause(),this.audio.removeEventListener("ended",c),this.audio.removeEventListener("ended",h),this.audio.removeEventListener("ended",d),this.jsPsych.pluginAPI.cancelAllKeyboardResponses();const n={rt:s.rt,stimulus:t.stimulus,keyboard_response:s.key,button_response:s.button,response_source:s.source};e.innerHTML="",this.jsPsych.finishTrial(n),i()};function l(e){!function(e){var n=performance.now(),i=Math.round(n-r);null!==a&&(n=a.currentTime,i=Math.round(1e3*(n-r)));s.button=parseInt(e),s.rt=i,s.source="button",u(),t.response_ends_trial&&c()}(e.currentTarget.getAttribute("data-choice"))}function u(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!0),e[t].removeEventListener("click",l)}}function d(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!1),e[t].addEventListener("click",l)}}const p=e=>{null==s.key&&(s=Object.assign({source:"keyboard",button:null},e)),t.response_ends_trial&&c()},h=()=>{if("NO_KEYS"!=t.keyboard_choices){let e;e=null!==a?{rt_method:"audio",audio_context:a,audio_context_start_time:r}:{rt_method:"performance"},this.jsPsych.pluginAPI.getKeyboardResponse(Object.assign({callback_function:p,valid_responses:t.keyboard_choices,persist:!1,allow_held_key:!1},e))}};return new Promise((e=>{i=e}))}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={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"},i={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"},a=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(a,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement(),s=()=>{null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(a.querySelector(`div[data-choice="${i.response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))};this.trial(a,e,(()=>{n(),e.response_allowed_while_playing?s():this.audio.addEventListener("ended",s)}))}}Mo.info=No;const zo={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Bo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||zo,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Bo(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Bo(this.logger,e)}}var $o=new Bo;class qo{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){[].concat(this.observers[e]).forEach((e=>{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}}function Vo(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return n.resolve=e,n.reject=t,n}function Yo(e){return null==e?"":""+e}function Go(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}const s="string"!=typeof t?[].concat(t):t.split(".");for(;s.length>1;){if(a())return{};const t=i(s.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return a()?{}:{obj:e,k:i(s.shift())}}function Ho(e,t,n){const{obj:i,k:a}=Go(e,t,Object);i[a]=n}function Wo(e,t){const{obj:n,k:i}=Go(e,t);if(n)return n[i]}function Ko(e,t,n){for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):Ko(e[i],t[i],n):e[i]=t[i]);return e}function Zo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Jo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Xo(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Jo[e])):e}const Qo=[" ",",","?","!",";"];function ec(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(n);let a=e;for(let e=0;e<i.length;++e){if(!a)return;if("string"==typeof a[i[e]]&&e+1<i.length)return;if(void 0===a[i[e]]){let s=2,r=i.slice(e,e+s).join(n),o=a[r];for(;void 0===o&&i.length>e+s;)s++,r=i.slice(e,e+s).join(n),o=a[r];if(void 0===o)return;if(null===o)return null;if(t.endsWith(r)){if("string"==typeof o)return o;if(r&&"string"==typeof o[r])return o[r]}const c=i.slice(e+s).join(n);return c?ec(o,c,n):void 0}a=a[i[e]]}return a}function tc(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class nc extends qo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[e,t];n&&"string"!=typeof n&&(r=r.concat(n)),n&&"string"==typeof n&&(r=r.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=e.split("."));const o=Wo(this.data,r);return o||!s||"string"!=typeof n?o:ec(this.data&&this.data[e]&&this.data[e][t],n,a)}addResource(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let r=[e,t];n&&(r=r.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(r=e.split("."),i=t,t=r[1]),this.addNamespaces(t),Ho(this.data,r,i),a.silent||this.emit("added",e,t,n,i)}addResources(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,a){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),i=n,n=t,t=r[1]),this.addNamespaces(t);let o=Wo(this.data,r)||{};i?Ko(o,n,a):o={...o,...n},Ho(this.data,r,o),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var ic={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,a){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,i,a))})),t}};const ac={};class sc extends qo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(i[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const i=Qo.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===i.length)return!0;const a=new RegExp(`(${i.map((e=>"?"===e?"\\?":e)).join("|")})`);let s=!a.test(e);if(!s){const t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(s=!0)}return s}(e,n,i));if(s&&!r){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:a};const s=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),e=s.join(i)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:r}=this.extractFromKey(e[e.length-1],t),o=r[r.length-1],c=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${o}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:o}:`${o}${e}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:o}:s}const u=this.resolve(e,t);let d=u&&u.res;const p=u&&u.usedKey||s,h=u&&u.exactUsedKey||s,f=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0&&("string"!=typeof m||"[object Array]"!==f)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:r}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u):e}if(a){const e="[object Array]"===f,n=e?[]:{},i=e?h:p;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const s=`${i}${a}${e}`;n[e]=this.translate(s,{...t,joinArrays:!1,ns:r}),n[e]===s&&(n[e]=d[e])}d=n}}else if(g&&"string"==typeof m&&"[object Array]"===f)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let i=!1,r=!1;const l=void 0!==t.count&&"string"!=typeof t.count,p=sc.hasDefaultValue(t),h=l?this.pluralResolver.getSuffix(c,t.count,t):"",f=t.ordinal&&l?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",m=t[`defaultValue${h}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(i=!0,d=m),this.isValidLookup(d)||(r=!0,d=s);const g=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:d,_=p&&m!==d&&this.options.updateMissing;if(r||i||_){if(this.logger.log(_?"updateKey":"missingKey",c,o,s,_?m:d),a){const e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const i=(e,n,i)=>{const a=p&&i!==d?i:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,o,n,a,_,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,o,n,a,_,t),this.emit("missingKey",e,o,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{i([e],s+n,t[`defaultValue${n}`]||m)}))})):i(e,s,m))}d=this.extendTranslation(d,e,t,u,n),r&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${o}:${s}`),(r||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${s}`:s,i?d:void 0):this.options.parseMissingKeyHandler(d))}return i?(u.res=d,u):d}extendTranslation(e,t,n,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const r="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(r){const t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),r){const t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return a&&a[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null):s.translate(...i,t)}),n)),n.interpolation&&this.interpolator.reset()}const r=n.postProcess||this.options.postProcess,o="string"==typeof r?[r]:r;return null!=e&&o&&o.length&&!1!==n.applyPostProcessor&&(e=ic.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...n}:n,this)),e}resolve(e){let t,n,i,a,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const o=this.extractFromKey(e,r),c=o.key;n=c;let l=o.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==r.count&&"string"!=typeof r.count,d=u&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);l.forEach((e=>{this.isValidLookup(t)||(s=e,!ac[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ac[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;a=n;const s=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,c,n,e,r);else{let e;u&&(e=this.pluralResolver.getSuffix(n,r.count,r));const t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(s.push(c+e),r.ordinal&&0===e.indexOf(i)&&s.push(c+e.replace(i,this.options.pluralSeparator)),d&&s.push(c+t)),p){const n=`${c}${this.options.contextSeparator}${r.context}`;s.push(n),u&&(s.push(n+e),r.ordinal&&0===e.indexOf(i)&&s.push(n+e.replace(i,this.options.pluralSeparator)),d&&s.push(n+t))}}let o;for(;o=s.pop();)this.isValidLookup(t)||(i=o,t=this.getResource(n,e,o,r))})))}))})),{res:t,usedKey:n,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function rc(e){return e.charAt(0).toUpperCase()+e.slice(1)}class oc{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=tc(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=tc(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=rc(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=rc(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=rc(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),n.forEach((e=>{i.indexOf(e)<0&&a(this.formatLanguageCode(e))})),i}}let cc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],lc={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const uc=["v1","v2","v3"],dc=["v4"],pc={zero:0,one:1,two:2,few:3,many:4,other:5};class hc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=$o.create("pluralResolver"),this.options.compatibilityJSON&&!dc.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return cc.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:lc[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(tc(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>pc[e]-pc[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!uc.includes(this.options.compatibilityJSON)}}function fc(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=function(e,t,n){const i=Wo(e,n);return void 0!==i?i:Wo(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=ec(e,n,i),void 0===s&&(s=ec(t,n,i))),s}class mc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Xo,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Zo(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Zo(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Zo(t.nestingPrefix):t.nestingPrefixEscaped||Zo("$t("),this.nestingSuffix=t.nestingSuffix?Zo(t.nestingSuffix):t.nestingSuffixEscaped||Zo(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,i){let a,s,r;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}const l=e=>{if(e.indexOf(this.formatSeparator)<0){const a=fc(t,o,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,n,{...i,...t,interpolationkey:e}):a}const a=e.split(this.formatSeparator),s=a.shift().trim(),r=a.join(this.formatSeparator).trim();return this.format(fc(t,o,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...i,...t,interpolationkey:s})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}].forEach((t=>{for(r=0;a=t.regex.exec(e);){const n=a[1].trim();if(s=l(n),void 0===s)if("function"==typeof u){const t=u(e,a,i);s="string"==typeof t?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(d){s=a[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),s=""}else"string"==typeof s||this.useRawValueToEscape||(s=Yo(s));const o=t.safeValue(s);if(e=e.replace(a[0],o),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,r++,r>=this.maxReplaces)break}})),e}nest(e,t){let n,i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const i=e.split(new RegExp(`${n}[ ]*{`));let s=`{${i[1]}`;e=i[0],s=this.interpolate(s,a);const r=s.match(/'/g),o=s.match(/"/g);(r&&r.length%2==0&&!o||o.length%2!=0)&&(s=s.replace(/'/g,'"'));try{a=JSON.parse(s),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${s}`}return delete a.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let o=[];a={...s},a=a.replace&&"string"!=typeof a.replace?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),o=e,c=!0}if(i=t(r.call(this,n[1].trim(),a),a),i&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Yo(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),c&&(i=o.reduce(((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}function gc(e){const t={};return function(n,i,a){const s=i+JSON.stringify(a);let r=t[s];return r||(r=e(tc(i),a),t[s]=r),r(n)}}class _c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$o.create("formatter"),this.options=e,this.formats={number:gc(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:gc(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:gc(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:gc(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:gc(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=gc(t)}format(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:a,formatOptions:s}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);"currency"===t&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach((e=>{if(!e)return;const[t,...i]=e.split(":"),a=i.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=a),"false"===a&&(n[t.trim()]=!1),"true"===a&&(n[t.trim()]=!0),isNaN(a)||(n[t.trim()]=parseInt(a,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[a]){let t=e;try{const r=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},o=r.locale||r.lng||i.locale||i.lng||n;t=this.formats[a](e,o,{...s,...i,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e}),e)}}class yc extends qo{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=$o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(e,t,n,i){const a={},s={},r={},o={};return e.forEach((e=>{let i=!0;t.forEach((t=>{const r=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,i=!1,void 0===s[r]&&(s[r]=!0),void 0===a[r]&&(a[r]=!0),void 0===o[t]&&(o[t]=!0)))})),i||(r[e]=!0)})),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const i=e.split("|"),a=i[0],s=i[1];t&&this.emit("failedLoading",a,s,t),n&&this.store.addResourceBundle(a,s,n),this.state[e]=t?-1:2;const r={};this.queue.forEach((n=>{!function(e,t,n,i){const{obj:a,k:s}=Go(e,t,Object);a[s]=a[s]||[],i&&(a[s]=a[s].concat(n)),i||a[s].push(n)}(n.loaded,[a],s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{r[e]||(r[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===r[e][t]&&(r[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:a,callback:s});this.readingCalls++;const r=(r,o)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}r&&o&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,i+1,2*a,s)}),a):s(r,o)},o=this.backend[n].bind(this.backend);if(2!==o.length)return o(e,t,r);try{const n=o(e,t);n&&"function"==typeof n.then?n.then((e=>r(null,e))).catch(r):r(null,n)}catch(e){r(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const a=this.queueLoad(e,t,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`,n),!n&&s&&this.logger.log(`${t}loaded namespace ${a} for language ${i}`,s),this.loaded(e,n,s)}))}saveMissing(e,t,n,i,a){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const o={...s,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let a;a=5===c.length?c(e,t,n,i,o):c(e,t,n,i),a&&"function"==typeof a.then?a.then((e=>r(null,e))).catch(r):r(null,a)}catch(e){r(e)}else c(e,t,n,i,r,o)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}function vc(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,i)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function bc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function wc(){}class xc extends qo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=bc(e),this.services={},this.logger=$o,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=vc();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options={...i,...this.options,...bc(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?$o.init(a(this.modules.logger),this.options):$o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_c);const n=new oc(this.options);this.store=new nc(this.options.resources,this.options);const s=this.services;s.logger=$o,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new hc(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=a(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new mc(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new yc(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.emit(t,...i)})),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new sc(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.emit(t,...i)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=wc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const s=Vo(),r=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?r():setTimeout(r,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return t();const e=[],i=t=>{if(!t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)}))};if(n)i(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>i(e)))}this.options.preload&&this.options.preload.forEach((e=>i(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const i=Vo();return e||(e=this.languages),t||(t=this.options.ns),n||(n=wc),this.services.backendConnector.reload(e,t,(e=>{i.resolve(),n(e)})),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ic.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const i=Vo();this.emit("languageChanging",e);const a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(a(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},r=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||a(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{s(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}getFixedT(e,t,n){var i=this;const a=function(e,t){let s;if("object"!=typeof t){for(var r=arguments.length,o=new Array(r>2?r-2:0),c=2;c<r;c++)o[c-2]=arguments[c];s=i.options.overloadTranslationOptionHandler([e,t].concat(o))}else s={...t};s.lng=s.lng||a.lng,s.lngs=s.lngs||a.lngs,s.ns=s.ns||a.ns,s.keyPrefix=s.keyPrefix||n||a.keyPrefix;const l=i.options.keySeparator||".";let u;return u=s.keyPrefix&&Array.isArray(e)?e.map((e=>`${s.keyPrefix}${l}${e}`)):s.keyPrefix?`${s.keyPrefix}${l}${e}`:e,i.t(u,s)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,s);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(n,e)||i&&!s(a,e)))}loadNamespaces(e,t){const n=Vo();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Vo();"string"==typeof e&&(e=[e]);const i=this.options.preload||[],a=e.filter((e=>i.indexOf(e)<0));return a.length?(this.options.preload=i.concat(a),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new oc(vc());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new xc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new xc(i);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));return["store","services","language"].forEach((e=>{a[e]=this[e]})),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new nc(this.store.data,i),a.services.resourceStore=a.store),a.translator=new sc(a.services,i),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];a.emit(e,...n)})),a.init(i,t),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ec=xc.createInstance();function Sc(e){return Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(e)}function kc(e){var t=function(e,t){if("object"!==Sc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Sc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sc(t)?t:String(t)}function Tc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,kc(i.key),i)}}Ec.createInstance=xc.createInstance,Ec.createInstance,Ec.dir,Ec.init,Ec.loadResources,Ec.reloadResources,Ec.use,Ec.changeLanguage,Ec.getFixedT,Ec.t,Ec.exists,Ec.setDefaultNamespace,Ec.hasLoadedNamespace,Ec.loadNamespaces,Ec.loadLanguages;var Rc=[],Ic=Rc.forEach,Ac=Rc.slice;var Cc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Oc=function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*n*1e3)),i&&(a.domain=i),document.cookie=function(e,t,n){var i=n||{};i.path=i.path||"/";var a=encodeURIComponent(t),s="".concat(e,"=").concat(a);if(i.maxAge>0){var r=i.maxAge-0;if(Number.isNaN(r))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(r))}if(i.domain){if(!Cc.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Cc.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}(e,encodeURIComponent(t),a)},Lc=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return null},jc={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=Lc(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&Oc(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Pc={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=n.substring(1).split("&"),a=0;a<i.length;a++){var s=i[a].indexOf("=");if(s>0)i[a].substring(0,s)===e.lookupQuerystring&&(t=i[a].substring(s+1))}}return t}},Uc=null,Fc=function(){if(null!==Uc)return Uc;try{Uc="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Uc=!1}return Uc},Dc={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Fc()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Fc()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Nc=null,Mc=function(){if(null!==Nc)return Nc;try{Nc="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Nc=!1}return Nc},zc={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Mc()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Mc()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Bc={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},$c={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},qc={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Vc={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var Yc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}var t,n,i;return t=e,n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return Ic.call(Ac.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(jc),this.addDetector(Pc),this.addDetector(Dc),this.addDetector(zc),this.addDetector(Bc),this.addDetector($c),this.addDetector(qc),this.addDetector(Vc)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var i=t.detectors[e].lookup(t.options);i&&"string"==typeof i&&(i=[i]),i&&(n=n.concat(i))}})),n=n.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}],n&&Tc(t.prototype,n),i&&Tc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Yc.type="languageDetector";var Gc={progressBar:"Progress Complete",preloadTrial:{messageText:"Please wait while the experiment loads. This may take a few minutes."},fullScreenTrial:{prompt:"The experiment will switch to full screen mode. <br/> Click the button to continue.",buttonText:"Continue"},navigation:{continueButtonText:"Press <span class='yellow'>{{input}}</span> to {{action}}",studentSelect:"Press <span class='yellow'>a number key</span> to pick a student "},introduction:{gradeSelect:{text1:"What grade are you in?",text2:"To get started, press the number key on your keyboard of the grade you are in.",text2Mobile:"To get started, press the number of the grade you are in.",text3:"For example, you would press “4” if you are in 4th grade.",text4:"Press <span class='yellow'>the number key </span> of the grade you are in to continue ",text4Mobile:"Press <span class='yellow'>the number</span> of the grade you are in to continue "},intro:{text1:"Welcome to the Sentence Reading Efficiency activity!",text2:"In this activity, you are going to decide if a sentence is true or not.",text3:"Some of the sentences may be confusing, but do your best to label as many as you can.",text4:"Welcome! You are the new professor at Sentencia Academy.",text5:"We have some bright students that need your help with their sentence reading homework.",text6:"You will help these students decide if a sentence is true or not."}},practice:{intro:{text1:"Instructions",text2:"In this activity, you are going to read some sentences and decide whether each sentence is true or false.",text3:"Press the <span class='orange'><b> LEFT ARROW KEY </b></span> if a sentence is false. For example, 'A fish lives on land', is a false sentence so you would press the <span class='orange'> <b> left arrow key. </b> </span>",text3Mobile:"Press the <span class='orange'><b> LEFT ARROW </b></span> if a sentence is false. For example, 'A fish lives on land', is a false sentence so you would press the <span class='orange'> <b> left arrow. </b> </span>",text4:"Press the <span class='blue'><b> RIGHT ARROW KEY </b></span> if a sentence is true. For example, 'A cow is an animal', is a true sentence so you would press the <span class='blue'> <b> right arrow key. </b> </span>",text4Mobile:"Press the <span class='blue'><b> RIGHT ARROW </b></span> if a sentence is true. For example, 'A cow is an animal', is a true sentence so you would press the <span class='blue'> <b> right arrow. </b> </span>",text5:"Let's do some for practice!",text6:"Press <span class='yellow'>any key</span> to begin the practice sentences",text6Mobile:"Press <span class='yellow'>HERE</span> to begin the practice sentences"},postPracticeIntro:{text1:"Great job on those practice sentences!",text2:"You are ready to start the game.",text3:"You will have <b> 3 minutes </b> to label as many sentences as you can.",text4:"Read each sentence silently and work as fast as you can without making mistakes.",text5:"It's okay if you don't know the answer. Give it your best guess and move to the next one."},feedback:{text1:"You pressed the {{arrow}} arrow key for {{type}} sentences.",text1Mobile:"You pressed the {{arrow}} arrow for {{type}} sentences.",text2:"is a {{type}} sentence. Press the {{arrow}} arrow key to continue.",text2Mobile:"is a {{type}} sentence. Press the {{arrow}} arrow to continue."},postPracticeReminder:{text1:"Press the <span class='orange'> <b> left arrow key </b> </span> for <span class='orange'> <b> false sentences.</b> </span>",text1Mobile:"Press the <span class='orange'> <b> left arrow </b> </span> for <span class='orange'> <b> false sentences.</b> </span>",text2:"Press the <span class='blue'> <b> right arrow key </b> </span> for <span class='blue'> <b> true sentences. </b> </span>",text2Mobile:"Press the <span class='blue'> <b> right arrow </b> </span> for <span class='blue'> <b> true sentences. </b> </span>",text3:"Do your best!",text4:"Ready?"}},characterSelect:{studentSelect:{paragraph1:"Now, let's meet your students!",paragraph2:"Press the number key on your keyboard to pick the student you would like to work with.",paragraph2Mobile:"Press the number of the student you would like to work with.",paragraph3:"Press <span class='yellow'>a number key</span> to pick a student",paragraph3MobileBefore:"Press ",paragraph3MobileSpan:"a number ",paragraph3MobileAfter:"to pick a student"},studentIntro:{paragraph1:"Hi Professor! It's nice to meet you. My name is",paragraph2:"I'm having trouble with my sentence reading homework. I need to finish it so I can",paragraph3:"Can you help me?"}},gameBreak:{halfwayScreen:{text1:"Great job!",text2:"You are halfway through - let's keep going.",text3:"Wow! I'm getting the hang of this!",text4:"We're halfway through - let's keep going."},endScreen:{text1:"Amazing job!",text2:"You are all done. Thank you so much for completing our activity.",text3:"Amazing job, Professor!",text4:"finished in record time. Thank you for your help!"},debrief:{text1:"Thank you for your participation!",text2:"Your responses have been saved."}},terms:{here:"HERE",anyKey:"ANY KEY",continue:"continue",practice:"practice",begin:"begin",left:"left",right:"right",save:"save your work",close:"close the game",true:"true",false:"false"}};(new Yc).addDetector({name:"defaultToEnglish",lookup:()=>"en"}),Ec.use(Yc).init({debug:!1,load:"languageOnly",fallbackLng:"en",detection:{order:["defaultToEnglish","querystring"]},resources:{en:{translation:Gc},es:{translation:"esTranslations"},it:{translation:"itTranslations"}}});const Hc={en:{corpusPractice:[{'\ufeff""':"0",sentence:"An apple is blue.",answer:"F",direction:"left",correctresponse:"arrowleft"},{'\ufeff""':"1",sentence:"You can read stories at school.",answer:"T",direction:"right",correctresponse:"arrowright"},{'\ufeff""':"2",sentence:"People drive cars.",answer:"T",direction:"right",correctresponse:"arrowright"},{'\ufeff""':"3",sentence:"You wear a hat on your foot.",answer:"F",direction:"left",correctresponse:"arrowleft"}],corpusLab:[{"":"1",sentence:"A blanket can be very soft.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_1"},{"":"2",sentence:"Fish have thumbs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_2"},{"":"3",sentence:"Sandwiches are food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_3"},{"":"4",sentence:"Some worms ride pumpkins to school.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_4"},{"":"5",sentence:"Sweaters can be made of coal.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_5"},{"":"6",sentence:"Some children are afraid of the dark.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_6"},{"":"7",sentence:"A teacher is a person that works at a school.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_7"},{"":"8",sentence:"The ocean is home to many aquatic animals.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_8"},{"":"9",sentence:"Triangles have five sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_9"},{"":"10",sentence:"Chefs cook meals in their beds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_10"},{"":"11",sentence:"People like to eat mud.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_11"},{"":"12",sentence:"Children can be sad.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_12"},{"":"13",sentence:"Cars have wheels.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_13"},{"":"14",sentence:"All cars are yellow.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_14"},{"":"15",sentence:"Trees have branches.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_15"},{"":"16",sentence:"Soda is always brown.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_16"},{"":"17",sentence:"Trash is thrown away in bathtubs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_17"},{"":"18",sentence:"Wolves are a type of monkey.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_18"},{"":"19",sentence:"Children enjoy playing with toys.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_19"},{"":"20",sentence:"All children are afraid of the sun.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_20"},{"":"21",sentence:"It is usually dark at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_21"},{"":"22",sentence:"Towels are often made of glass.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_22"},{"":"23",sentence:"A pillow can be very soft.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_23"},{"":"24",sentence:"A monkey has a face.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_24"},{"":"25",sentence:"Eyeglasses can help you see better.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_25"},{"":"26",sentence:"Some houses have back yards.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_26"},{"":"27",sentence:"Soccer is a game you play with only your hands.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_27"},{"":"28",sentence:"When you break a bone you normally have to wear a cast.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_28"},{"":"29",sentence:"Computers need electricity to work.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_29"},{"":"30",sentence:"Dogs always walk on two legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_30"},{"":"31",sentence:"Basketball is a game that you play with a fork.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_31"},{"":"32",sentence:"Spaceships are flown by cowboys.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_32"},{"":"33",sentence:"Some kids take music lessons.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_33"},{"":"34",sentence:"Grandparents can bring presents when they come to visit their family.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_34"},{"":"35",sentence:"Trash cans are where you store extra notebook paper.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_35"},{"":"36",sentence:"Most humans listen with their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_36"},{"":"37",sentence:"Chairs are alive.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_37"},{"":"38",sentence:"People can buy tomatoes at the market.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_38"},{"":"39",sentence:"Orange juice is always made of grapes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_39"},{"":"40",sentence:"Some people like to run for exercise in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_40"},{"":"41",sentence:"Snails are usually very fast.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_41"},{"":"42",sentence:"Apples grow on trees.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_42"},{"":"43",sentence:"Some slugs ride elephants to school.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_43"},{"":"44",sentence:"People drive cars on the road.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_44"},{"":"45",sentence:"Students never get in trouble when they cheat on tests.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_45"},{"":"46",sentence:"Whales have two legs.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_46"},{"":"47",sentence:"Girls can listen to music with earphones.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_47"},{"":"48",sentence:"A curtain is something you wear.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_48"},{"":"49",sentence:"Many nurses work in hospitals.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_49"},{"":"50",sentence:"Medicine is supposed to make you stay sick longer.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_50"},{"":"51",sentence:"Many people paint pictures with screwdrivers.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_51"},{"":"52",sentence:"The sun is bright.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_52"},{"":"53",sentence:"It is faster to run than it is to walk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_53"},{"":"54",sentence:"Stores are where you go to buy things.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_54"},{"":"55",sentence:"Elephants are large animals.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_55"},{"":"56",sentence:"Kittens are young cats.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_56"},{"":"57",sentence:"Blankets are made of metal.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_57"},{"":"58",sentence:"People like to eat dust.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_58"},{"":"59",sentence:"Most dogs wear leashes when they go for a walk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_59"},{"":"60",sentence:"Spiders like to drink orange juice out of coffee mugs.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_60"},{"":"61",sentence:"Some kids love red crayons.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_61"},{"":"62",sentence:"A doctor can work in a hospital that serves many people.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_62"},{"":"63",sentence:"People can use cash to pay in stores.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_63"},{"":"64",sentence:"Moms like eating hats.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_64"},{"":"65",sentence:"Lizards like to cook pasta.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_65"},{"":"66",sentence:"Many babies drink milk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_66"},{"":"67",sentence:"Air conditioners can lower the temperature of a room.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_67"},{"":"68",sentence:"Every magician is a fairy.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_68"},{"":"69",sentence:"People can wear socks to keep their feet warm.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_69"},{"":"70",sentence:"People sometimes drink milk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_70"},{"":"71",sentence:"Most girls keep their books in a pond.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_71"},{"":"72",sentence:"Every basketball player is on a school team.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_72"},{"":"73",sentence:"Pockets can be used to keep change.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_73"},{"":"74",sentence:"Baseball is a game that you play with a knife.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_74"},{"":"75",sentence:"Lollipops are always made from vegetables.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_75"},{"":"76",sentence:"Towels are used to make things dry.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_76"},{"":"77",sentence:"Climbing up a mountain can be exhausting.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_77"},{"":"78",sentence:"Some shoes have laces.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_78"},{"":"79",sentence:"People drive cars in the sink.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_79"},{"":"80",sentence:"A cactus may grow in the desert.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_80"},{"":"81",sentence:"Most houses have grass on the ceiling.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_81"},{"":"82",sentence:"Most houses are made of foam.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_82"},{"":"83",sentence:"Dentists always give children candy and lemonade.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_83"},{"":"84",sentence:"People brush their teeth with mayonnaise.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_84"},{"":"85",sentence:"Eating only ice cream is healthy.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_85"},{"":"86",sentence:"Cows sing at night.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_86"},{"":"87",sentence:"The United States of America is in Africa.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_87"},{"":"88",sentence:"Some girls play the piano.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_88"},{"":"89",sentence:"Pets can keep people company.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_89"},{"":"90",sentence:"Adults can be sad.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_90"},{"":"91",sentence:"Blankets help keep you cold.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_91"},{"":"92",sentence:"Puppies carry backpacks on their back.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_92"},{"":"93",sentence:"When a traffic light is red you need to stop.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_93"},{"":"94",sentence:"All flowers are yellow.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_94"},{"":"95",sentence:"Friends can cheer you up when you are having a bad day.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_95"},{"":"96",sentence:"Tigers sometimes swing at playgrounds.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_96"},{"":"97",sentence:"Mice have ears.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_97"},{"":"98",sentence:"Cloudy days are always warm.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_98"},{"":"99",sentence:"Boys usually wash their hair with yogurt.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_99"},{"":"100",sentence:"Umbrellas are useful for keeping people dry when it rains.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_100"},{"":"101",sentence:"Bears can talk.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_101"},{"":"102",sentence:"A picture can hang on the wall.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_102"},{"":"103",sentence:"Some people like to read books before they go to sleep.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_103"},{"":"104",sentence:"Adults are usually taller than their children.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_104"},{"":"105",sentence:"Halloween is a holiday in February.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_105"},{"":"106",sentence:"Most babies know how to drive a car.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_106"},{"":"107",sentence:"Stones can be found near a river.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_107"},{"":"108",sentence:"A raven is a bird.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_108"},{"":"109",sentence:"Police officers drive school busses while on duty.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_109"},{"":"110",sentence:"Wheels are round.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_110"},{"":"111",sentence:"Television shows are longer than movies.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_111"},{"":"112",sentence:"Hats should be worn on your elbow.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_112"},{"":"113",sentence:"Every child holds pencils with their left hand.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_113"},{"":"114",sentence:"Snow always falls in the summer.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_114"},{"":"115",sentence:"A gardener works at a bakery.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_115"},{"":"116",sentence:"A cactus grows under the sea.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_116"},{"":"117",sentence:"Some people get to work using a spaceship.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_117"},{"":"118",sentence:"Friends can do many things together after school.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_118"},{"":"119",sentence:"A tricycle has two wheels.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_119"},{"":"120",sentence:"Ice helps to keep things cold.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_120"},{"":"121",sentence:"People can use credit cards to pay in stores.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_121"},{"":"122",sentence:"Another name for a present is a gift.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_122"},{"":"123",sentence:"Dish washers make plates dirty.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_123"},{"":"124",sentence:"Doors are always open.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_124"},{"":"125",sentence:"Trampolines help you bounce higher.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_125"},{"":"126",sentence:"Trashcans can become smelly if trash is left inside too long.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_126"},{"":"127",sentence:"A mouse is a rodent that squeaks.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_127"},{"":"128",sentence:"The weather in the winter can be unpredictable.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_128"},{"":"129",sentence:"There are many types of lizards.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_129"},{"":"130",sentence:"Most people play board games with at least one other person.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_130"}],corpusTOSREC:[{"":"1",sentence:"A fish can swim.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_1"},{"":"2",sentence:"Pigs can fly.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_2"},{"":"3",sentence:"Bears have fur.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_3"},{"":"4",sentence:"A fox can run.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_4"},{"":"5",sentence:"Mom can ride a kite.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_5"},{"":"6",sentence:"Cats drive a bus.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_6"},{"":"7",sentence:"The grass is green.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_7"},{"":"8",sentence:"Cows go to church.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_8"},{"":"9",sentence:"You can help a baby.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_9"},{"":"10",sentence:"You sleep on a log.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_10"},{"":"11",sentence:"Ducks like to dress up.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_11"},{"":"12",sentence:"You can eat an egg.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_12"},{"":"13",sentence:"A mouse can quack.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_13"},{"":"14",sentence:"Birds fly in the sky.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_14"},{"":"15",sentence:"Some girls like juice.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_15"},{"":"16",sentence:"A princess lives in the sun.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_16"},{"":"17",sentence:"You can keep money in the bank.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_17"},{"":"18",sentence:"An eagle is a small bird.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_18"},{"":"19",sentence:"You can feed a hamster.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_19"},{"":"20",sentence:"Popcorn can be cooked on a stove.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_20"},{"":"21",sentence:"You eat cereal with a fork.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_21"},{"":"22",sentence:"A lion can fly at night.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_22"},{"":"23",sentence:"You can fill a balloon with air.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_23"},{"":"24",sentence:"A fishing boat can be at a dock.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_24"},{"":"25",sentence:"You might find a cabin in the woods.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"26",sentence:"Football is played by frogs.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_26"},{"":"27",sentence:"You can find starfish in space.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_27"},{"":"28",sentence:"A joke might not be funny.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_28"},{"":"29",sentence:"You can ride a rooster.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_29"},{"":"30",sentence:"A doctor can help if you are sick.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_30"},{"":"31",sentence:"Clowns live in caves with crickets.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_31"},{"":"32",sentence:"You can practice how to sail a boat.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_32"},{"":"33",sentence:"Bullfrogs wear green boots on their feet.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_33"},{"":"34",sentence:"You say good-bye when you leave.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_34"},{"":"35",sentence:"You might earn money if you clean your room.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_35"},{"":"36",sentence:"A wagon is used for catching fish.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_36"},{"":"37",sentence:"An artist can paint a picture.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_37"},{"":"38",sentence:"You can grow onions in a tree.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_38"},{"":"39",sentence:"A boy might read an article in a book.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_39"},{"":"40",sentence:"You can use a rattle to write a letter.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_40"},{"":"41",sentence:"A horse can slide up a mountain covered in snow.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_41"},{"":"42",sentence:"Raindrops can fall down a chimney.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_42"},{"":"43",sentence:"You might find a parade of ants at a picnic.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_43"},{"":"44",sentence:"A boy can use a ladder to climb into a tree house.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_44"},{"":"45",sentence:"Doughnuts like to read comic books.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_45"},{"":"46",sentence:"You might learn counting and addition at school.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_46"},{"":"47",sentence:"The weather is hot and sunny in the Arctic.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_47"},{"":"48",sentence:"Lobsters might be found eating grain in a snowstorm.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_48"},{"":"49",sentence:"Sharks like to ride on moving skateboards.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_49"},{"":"50",sentence:"A couch and tables are for sale in a furniture store.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_50"},{"":"51",sentence:"A boy can eat cake.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_51"},{"":"52",sentence:"It is hot in the snow.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_52"},{"":"53",sentence:"A horse lives in a barn.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_53"},{"":"54",sentence:"The sun is dark.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_54"},{"":"55",sentence:"A car can walk.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_55"},{"":"56",sentence:"You can look at a house.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_56"},{"":"57",sentence:"A girl can wear a shoe.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_57"},{"":"58",sentence:"You write with gum.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_58"},{"":"59",sentence:"You can drive a hen.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_59"},{"":"60",sentence:"Fish swim in a lake.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_60"},{"":"61",sentence:"A tiger will roar.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_61"},{"":"62",sentence:"A princess lives on the sun.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_62"},{"":"63",sentence:"You eat cereal with a fork.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_21"},{"":"64",sentence:"There is sand at the beach.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_63"},{"":"65",sentence:"You can buy some food in a market.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_64"},{"":"66",sentence:"Moths listen to moons.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_65"},{"":"67",sentence:"You can cook an airport.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_66"},{"":"68",sentence:"A doctor can help if you are sick.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_30"},{"":"69",sentence:"A lion can fly at night.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_22"},{"":"70",sentence:"Birds make nests for their babies.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_67"},{"":"71",sentence:"A boy might read an article.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_68"},{"":"72",sentence:"A lighthouse shines brightly at night.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_69"},{"":"73",sentence:"You might find an island in your cereal.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_70"},{"":"74",sentence:"Ladders are always made of steak.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_71"},{"":"75",sentence:"You might find a parade of ants at a picnic.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_43"},{"":"76",sentence:"A chipmunk can work on the railroad.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_72"},{"":"77",sentence:"An artist can paint a picture.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_37"},{"":"78",sentence:"You can write with an onion.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_73"},{"":"79",sentence:"You might find a starfish jogging by the sea.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_74"},{"":"80",sentence:"A boy can use a ladder to climb into a tree house.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_44"},{"":"81",sentence:"The alphabet is made of coal and sticks.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_75"},{"":"82",sentence:"Raindrops can fall down a chimney.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_42"},{"":"83",sentence:"A carrot has three eyes, one nose, and a mouth.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_76"},{"":"84",sentence:"You may borrow a pencil from a cat.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_77"},{"":"85",sentence:"A mother will be proud if her children fail in school.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_78"},{"":"86",sentence:"Baby chickens are called chicks.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_79"},{"":"87",sentence:"A storm can produce flooding.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_80"},{"":"88",sentence:"Doughnuts grow in the ground with spinach.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_81"},{"":"89",sentence:"A mule might pull a heavy wagon up a steep hill.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_82"},{"":"90",sentence:"A lighthouse is used to shine light for ships sailing to shore.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_83"},{"":"91",sentence:"Cattle swim in catnip.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_84"},{"":"92",sentence:"Some greyhounds are raised for racing around a track.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_85"},{"":"93",sentence:"Students are supposed to obey the rule of the class.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_86"},{"":"94",sentence:"You can iron wrinkles out of puppies.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_87"},{"":"95",sentence:"If you have a lot of school spirit you might cheer loudly at games.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_88"},{"":"96",sentence:"Mice play checkers with cats on Tuesday mornings.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_89"},{"":"97",sentence:"You can find icebergs in the desert.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_90"},{"":"98",sentence:"Some people who want to lose weight count calories.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_91"},{"":"99",sentence:"It is a crime if a boy shoplifts candy from a store.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_92"},{"":"100",sentence:"A shark can play the bagpipes at a baseball game.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_93"},{"":"101",sentence:"You might find an old arrowhead buried in the dirt.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_94"},{"":"102",sentence:"The planets can be found in a pineapple under the sea.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_95"},{"":"103",sentence:"Puppies gallop faster than horses.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"104",sentence:"A doctor uses a telescope to check your heart.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"105",sentence:"A relative can be your cousin.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_98"},{"":"106",sentence:"A teacher might have an assistant in the classroom.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_99"},{"":"107",sentence:"A cowboy is a person who enjoys riding seals.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"108",sentence:"You might use goggles to see while swimming under water.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_101"},{"":"109",sentence:"Eyeglasses are meant to be worn inside your socks.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_102"},{"":"110",sentence:"A girl can be a bridesmaid in her sister�s wedding.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_103"},{"":"111",sentence:"The sun is round.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_104"},{"":"112",sentence:"A ball can see.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_105"},{"":"113",sentence:"Fish swim in a lake.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_60"},{"":"114",sentence:"A baby can row a boat.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_106"},{"":"115",sentence:"You can clean a room.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_107"},{"":"116",sentence:"Schoolwork can be hard to do.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_108"},{"":"117",sentence:"A hamster can have ten feet.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_109"},{"":"118",sentence:"Friday is a month of the year.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_110"},{"":"119",sentence:"A prince likes to eat sand for dinner.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_111"},{"":"120",sentence:"A car requires gas.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_112"},{"":"121",sentence:"A girl can talk on a telephone.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_113"},{"":"122",sentence:"A banana is good to drink.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_114"},{"":"123",sentence:"A state has a capital.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_115"},{"":"124",sentence:"You play checkers on a journal.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_116"},{"":"125",sentence:"You can move a mountain in a wagon.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_117"},{"":"126",sentence:"A storm might be powerful.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_118"},{"":"127",sentence:"A lighthouse can be in a harbor.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_119"},{"":"128",sentence:"A porcupine is fun to pet.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_120"},{"":"129",sentence:"Chrome is always very dull.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_121"},{"":"130",sentence:"A dog can be hard to control if a rabbit runs by.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_122"},{"":"131",sentence:"A teenager is a boy or girl who is less than ten years old.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_123"},{"":"132",sentence:"A student might need help doing homework.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_124"},{"":"133",sentence:"Most people wear jackets on their feet rather than shoes.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_125"},{"":"134",sentence:"A hawk might fly down from a tree to chase after a rabbit.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_126"},{"":"135",sentence:"If you have a lot of school spirit you might cheer loudly at games.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_88"},{"":"136",sentence:"You can buy popcorn in a movie theter.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_127"},{"":"137",sentence:"A melon is a fish that is bigger than a salmon.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_128"},{"":"138",sentence:"A bucket filled with a hundred gold coins is worthless.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_129"},{"":"139",sentence:"A majority of votes means more than half of them.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_130"},{"":"140",sentence:"It is unusual for the sun to rise in the morning.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_131"},{"":"141",sentence:"A family might go to a store to purchase a new bed.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_132"},{"":"142",sentence:"A watermelon can be too big for a small boy to lift.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_133"},{"":"143",sentence:"A castle made in the sand at the beach is very sturdy.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_134"},{"":"144",sentence:"Most people eat their breakfast at midnight.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_135"},{"":"145",sentence:"A tortoise is faster than a greyhound.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_136"},{"":"146",sentence:"A test tube might break if you drop it during an experiment.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_137"},{"":"147",sentence:"You should invite vultures to a wedding.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_138"},{"":"148",sentence:"A tongue makes a good hammer for pounding nails into a wall.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_139"},{"":"149",sentence:"A captain might request cheese for his chili.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_140"},{"":"150",sentence:"A principal might talk with a girl about what she wore to school.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_141"},{"":"151",sentence:"An astronaut is a person who sells used cars for a living.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_142"},{"":"152",sentence:"Some people prefer to have their own pillow with them on a trip.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_143"},{"":"153",sentence:"Your arm is connected to your elbow by your ankle.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_144"},{"":"154",sentence:"A person who cooks a meal may go to the store to buy an ingredient.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_145"},{"":"155",sentence:"A cowboy who rides bareback does not use a saddle.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_146"},{"":"156",sentence:"A doctor might tell a patient to exercise more.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_147"},{"":"157",sentence:"A passenger is a man who plays a violin.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_148"},{"":"158",sentence:"A boy who is not a good swimmer will wear luggage to keep from sinking.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_149"},{"":"159",sentence:"A candidate for Congress might ask you to decide to vote for her.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_150"},{"":"160",sentence:"Bison like to dress up in costumes and go to dinner parties.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_151"},{"":"161",sentence:"A teacher might recommend that you stop talking to a friend and do your work.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_152"},{"":"162",sentence:"People walked on the moon in prehistoric times.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_153"},{"":"163",sentence:"You can get some information that you need from a radio.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_154"},{"":"164",sentence:"Playing ball can be a good way to get recreation and exercise.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_155"},{"":"165",sentence:"Mathematics is the study of plant life.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_156"},{"":"166",sentence:"Bubbles you blow from bubble gum are very durable.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_157"},{"":"167",sentence:"People who build tunnels through mountains might use dynamite.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_158"},{"":"168",sentence:"A penny is a significant sum of money.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_159"},{"":"169",sentence:"A viscious dog is very friendly and safe around children.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_160"},{"":"170",sentence:"You might be told a tale about ghosts who inhabit cemeteries.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_161"},{"":"171",sentence:"You can look at a book.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_162"},{"":"172",sentence:"Snow is green.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_163"},{"":"173",sentence:"You can fly a kite.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_164"},{"":"174",sentence:"A father can go to work.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_165"},{"":"175",sentence:"Ants have hats.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_166"},{"":"176",sentence:"A tiger will roar.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_61"},{"":"177",sentence:"You can ride a rooster.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_29"},{"":"178",sentence:"Football is played by frogs.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_26"},{"":"179",sentence:"You wear a ring on your elbow.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_167"},{"":"180",sentence:"You might find a cabin in the woods.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"181",sentence:"A lighthouse shines brightly at night.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_69"},{"":"182",sentence:"You can grow onions in a tree.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_38"},{"":"183",sentence:"A storm can produce flooding.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_80"},{"":"184",sentence:"Ladders are always made of steak.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_71"},{"":"185",sentence:"A horse can slide up a mountain covered in snow.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_41"},{"":"186",sentence:"A student may have to go see the principal.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_168"},{"":"187",sentence:"A family might go to a store to purchase a bed.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_169"},{"":"188",sentence:"Lobsters might be found eating grain in a snowstorm.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_48"},{"":"189",sentence:"You might invite your friends to your birthday party.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_170"},{"":"190",sentence:"A salmon will run after bears to eat them for dinner.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_171"},{"":"191",sentence:"Bacon is grown in dry climates.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_172"},{"":"192",sentence:"A boy might make a girl blush by giving her candy and flowers.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_173"},{"":"193",sentence:"The planets can be found in a pineapple under the sea.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_95"},{"":"194",sentence:"You might find an old arrowhead buried in the dirt.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_94"},{"":"195",sentence:"A relative can be your cousin.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_98"},{"":"196",sentence:"You can find several bodyguards at the White House.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_174"},{"":"197",sentence:"Velvet is an expensive product made of hamsters.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_175"},{"":"198",sentence:"Potato farmers love droughts in the spring.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_176"},{"":"199",sentence:"A man might smoke a cigar while playing a game of poker with friends.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_177"},{"":"200",sentence:"Puppies gallop faster than horses.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"201",sentence:"A teacher might have an assistant in the classroom.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_99"},{"":"202",sentence:"You might go to a conference to learn more about playing chess.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_178"},{"":"203",sentence:"A doctor uses a telescope to check your heart.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"204",sentence:"A cannon is a small owl that is easily thrown into the air.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_179"},{"":"205",sentence:"Dwarf hamsters eat entire trees.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_180"},{"":"206",sentence:"A girl can be a bridesmaid in her sister's wedding.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_181"},{"":"207",sentence:"A cowboy is a person who enjoys riding seals.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"208",sentence:"Eyeglasses are meant to be worn inside your socks.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_102"},{"":"209",sentence:"A blacksmith hammers shoes for horses out of hot metal.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_182"},{"":"210",sentence:"You might use goggles to see while swimming under water.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_101"},{"":"211",sentence:"Sneezing when you go out is an emergency.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_183"},{"":"212",sentence:"Some airplanes fly at a very high altitude.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"213",sentence:"If you win a million dollars you will be dejected.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_185"},{"":"214",sentence:"An amateur athlete might train after school.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_186"},{"":"215",sentence:"Too many absences can make it difficult to keep up with your work and get good grades.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_187"},{"":"216",sentence:"If you are careless when doing work you can make mistakes.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_188"},{"":"217",sentence:"A doctor spends most of her time examining rocks and comets.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_189"},{"":"218",sentence:"Firecrackers are good to eat for dinner.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_190"},{"":"219",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"220",sentence:"Fertilizer is used to keep plants from growing.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_192"},{"":"221",sentence:"A planet that is habitable will support life.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_193"},{"":"222",sentence:"Dynamite is often used in cooking.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_194"},{"":"223",sentence:"Frost can appear on a vehicle if the climate is extremely cold.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_195"},{"":"224",sentence:"An assertive girl is likely to say what she really thinks rather than keep quiet.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_196"},{"":"225",sentence:"The weather always is very cold at the equator.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_197"},{"":"226",sentence:"Someone with a large appetite will eat very little food.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_198"},{"":"227",sentence:"Not being able to swim is a barrier to having a career as a swimming instructor.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_199"},{"":"228",sentence:"Wearing a blindfold is better than wearing glasses if you cannot see the board clearly.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_200"},{"":"229",sentence:"A solitary bird flying overhead will block out the sun and make it dark during the day.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_201"},{"":"230",sentence:"A boomerang that has been thrown correctly is supposed to come back to the person who threw it.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_202"},{"":"231",sentence:"An airplane can fly high.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_203"},{"":"232",sentence:"A cat will eat a mailbox.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_204"},{"":"233",sentence:"A bank has money.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_205"},{"":"234",sentence:"You can cook an airport.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_66"},{"":"235",sentence:"Sugar is good to put on your feet.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_206"},{"":"236",sentence:"A banana is a fruit you can eat.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_207"},{"":"237",sentence:"A storm might be powerful.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_118"},{"":"238",sentence:"A sentence ends with a comma.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_208"},{"":"239",sentence:"Rabbits like to eat carrots.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_209"},{"":"240",sentence:"A neighbor lives far away.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_210"},{"":"241",sentence:"A boy standing outside may have a shadow.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_211"},{"":"242",sentence:"Having lots of wrinkles means that you are very young.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_212"},{"":"243",sentence:"A teacher might write a story on a blackboard.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_213"},{"":"244",sentence:"A spark might terrify a new leather chair.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_214"},{"":"245",sentence:"Many schools are used to educate ants.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_215"},{"":"246",sentence:"A passenger is a man who plays violin.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_216"},{"":"247",sentence:"You can eat a hamburger with mustard for dinner.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_217"},{"":"248",sentence:"A microscope is for seeing things that are far away.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_218"},{"":"249",sentence:"A doctor might tell a patient to exercise more.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_147"},{"":"250",sentence:"Parents can ask for a conference to talk about a child's grades.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_219"},{"":"251",sentence:"Some airplanes fly at a very high altitude.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"252",sentence:"When food is abundant, there will be limited amounts of food to eat.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_220"},{"":"253",sentence:"If you go to the circus, you might get to see the acrobats perform.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_221"},{"":"254",sentence:"An amateur athlete might train after school.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_186"},{"":"255",sentence:"If you want to keep a secret, you should broadcast it on the radio.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_222"},{"":"256",sentence:"You will want to spend a lot of time with a person who is very annoying.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_223"},{"":"257",sentence:"Some children with an allergy might be allergic to pets such as dogs or cats.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_224"},{"":"258",sentence:"Too many absences can make it difficult to keep up with your work and get good grades.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_187"},{"":"259",sentence:"A friend you admire is someone you have little respect for.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_225"},{"":"260",sentence:"Some children who help around the house get an allowance from their parents.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_226"},{"":"261",sentence:"If an unexpected guest arrives, you might have to adjust your plans.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_227"},{"":"262",sentence:"An alert watchdog will sleep through a burglary attempt.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_228"},{"":"263",sentence:"If an automobile stops abruptly, a box on the the seat might fall on the floor.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_229"},{"":"264",sentence:"A billion dollars is a small amount of money for most of us.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_230"},{"":"265",sentence:"A student who studies abroad will leave her country to go to college.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_231"},{"":"266",sentence:"An illegal alien is a person who was born in this country.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_232"},{"":"267",sentence:"Barbecue is a sport that requires a big field, a baseball, and a bat.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_233"},{"":"268",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"269",sentence:"A barometer is good for telling how hot or cold it is outside.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_234"},{"":"270",sentence:"Archeology is a field of science that is used to predict if it will rain.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_235"},{"":"271",sentence:"A mechanic might recommend that you rotate your tires.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_236"},{"":"272",sentence:"Anything made of steel is flexible.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_237"},{"":"273",sentence:"An asteroid is best eaten for breakfast or dinner.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_238"},{"":"274",sentence:"Climbing a mountain can be treacherous.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_239"},{"":"275",sentence:"You might be told a tale about ghosts who inhabit cemeteries.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_161"},{"":"276",sentence:"A confidential story should be shared with others.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_240"},{"":"277",sentence:"A candidate who loses a close election might ask for a recount.�",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_241"},{"":"278",sentence:"A teacher might be emphatic about the need to follow classroom rules.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_242"},{"":"279",sentence:"Flies should be kept safe because they are endangered animals.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_243"},{"":"280",sentence:"Radioactive waste is good for the environment if it leaks out on the ground.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_244"},{"":"281",sentence:"Doing the same thing over and over again can be very monotonous.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_245"},{"":"282",sentence:"A victorious runner might have a reason to be happy.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_246"},{"":"283",sentence:"A gangster is a person who gives millions to charities.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_247"},{"":"284",sentence:"A fisherman might exaggerate the size of a trophy fish that got away.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_248"},{"":"285",sentence:"Many school children carry a fire hydrant in their backpacks in case a fire alarm occurs.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_249"},{"":"286",sentence:"Doing two hundred sit-ups requires stamina.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_250"},{"":"287",sentence:"A dissatisfied customer is likely to leave a very large tip after a meal.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_251"},{"":"288",sentence:'A good label for a box that contains all kinds of different things would be "Miscellaneous".',grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_252"},{"":"289",sentence:"When a shortage of gasoline occurs, too much is available for purchase.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_253"},{"":"290",sentence:"A provisional decision is one that is permanent and not subject to change.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_254"},{"":"291",sentence:"A bank has money.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_205"},{"":"292",sentence:"A car requires gas.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_112"},{"":"293",sentence:"Adults are small.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_255"},{"":"294",sentence:"Clowns live in caves with crickets.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_31"},{"":"295",sentence:"You might find a cabin in the woods.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"296",sentence:"Some greyhounds are raised for racing around a track.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_85"},{"":"297",sentence:"A teenager is a boy or girl who is less than ten years old.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_123"},{"":"298",sentence:"A person might wear an apron while cooking.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_256"},{"":"299",sentence:"Some people who want to lose weight count calories.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_91"},{"":"300",sentence:"It is unusual for the sun to rise in the morning.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_131"},{"":"301",sentence:"Puppies gallop faster than horses.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"302",sentence:"A person who gets lost might try to use a compass to get home safely.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_257"},{"":"303",sentence:"A doctor uses a telescope to check your heart.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"304",sentence:"You might be anxious if you are about to take a spelling test.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_258"},{"":"305",sentence:"A cowboy is a person who enjoys riding seals.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"306",sentence:"Drinking water is a good precaution to take if it is hot and you are going to run.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_259"},{"":"307",sentence:"Sneezing when you go out is an emergency.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_183"},{"":"308",sentence:"People ride to a shopping mall in envelopes.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_260"},{"":"309",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"310",sentence:"Firecrackers are good to eat for dinner.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_190"},{"":"311",sentence:"People who build tunnels through mountains might use dynamite.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_158"},{"":"312",sentence:"Blinking your eyes is a very dangerous thing to do.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_261"},{"":"313",sentence:"A light rain is an example of a major disaster.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_262"},{"":"314",sentence:"Frost can appear on a vehicle if the climate is extremely cold.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_195"},{"":"315",sentence:"A planet that is habitable will support life.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_193"},{"":"316",sentence:"A celebrity might be asked for her autograph.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_263"},{"":"317",sentence:"Men wear cosmetics to make them feel more intelligent.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_264"},{"":"318",sentence:"Dynamite is often used in cooking.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_194"},{"":"319",sentence:"Asthma is a problem that sometimes can make it difficult to breathe.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_265"},{"":"320",sentence:"A formidable challenge is one that is very easy to deal with.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_266"},{"":"321",sentence:"If you are right-handed, it probably will feel awkward if you attempt to write with your left hand.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_267"},{"":"322",sentence:"Identical twins are very easy to tell apart when you first meet them.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_268"},{"":"323",sentence:"It is easy to ignite a fire using matches under water.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_269"},{"":"324",sentence:"A boycott might be organized as a way to protest a decision made by a store.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_270"},{"":"325",sentence:"If you go to a restaurant with a buffet you get to pick whatever you want to eat.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_271"},{"":"326",sentence:"Birds, turtles, and trees are invisible.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_272"},{"":"327",sentence:"A microphone is used to take pictures on vacation.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_273"},{"":"328",sentence:"Charcoal is sometimes used to cook hamburgers or hot dogs.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_274"},{"":"329",sentence:"A penny is a significant sum of money.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_159"},{"":"330",sentence:"A contagious disease can be passed from one person to another.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_275"},{"":"331",sentence:"You can misunderstand people if they talk so quietly that you cannot hear them clearly.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_276"},{"":"332",sentence:"A generator can be useful if a storm causes the power to go out.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_277"},{"":"333",sentence:"The safest time to go swimming, boating, or fishing is during a severe typhoon.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_278"},{"":"334",sentence:"Good students might be honored for their accomplishments at a school assembly.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_279"},{"":"335",sentence:"A reluctant skydiver is eager to jump from an airplane.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_280"},{"":"336",sentence:"Most people wear ancient pyramids on their wrists for predicting weather.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_281"},{"":"337",sentence:"Not being able to swim is a barrier to having a career as a swimming instructor.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_199"},{"":"338",sentence:"A microscopic germ is bigger than a building but smaller than a city.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_282"},{"":"339",sentence:"A criminal who tries to blackmail someone may hope to get money from his victim.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_283"},{"":"340",sentence:"Most people would be disappointed to learn that they were millionaires.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_284"},{"":"341",sentence:"A confidential remark is not meant to be repeated to others.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_285"},{"":"342",sentence:"Winning the lottery would be complete agony for most people.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_286"},{"":"343",sentence:"A convict who attempts to escape from prison is likely to receive a longer sentence.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_287"},{"":"344",sentence:"An airplane accelerates down the runway before lifting off into the air.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_288"},{"":"345",sentence:"An abbreviated program is one that is longer than a complete program.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_289"},{"":"346",sentence:"Most parents will disapprove if their children earn perfect scores on a difficult and important test.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_290"},{"":"347",sentence:"Some criminals have an accomplice who accompanies them.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_291"},{"":"348",sentence:"Libraries prefer that all people be delinquent in returning books.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_292"},{"":"349",sentence:"A football game that ends with a tie score of fourteen to fourteen is an example of a decisive victory.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_293"},{"":"350",sentence:"Bleach is sometimes used in washing machines to remove difficult stains from very dirty clothes.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_294"},{"":"351",sentence:"You can play with a toy in the bathtub.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_295"},{"":"352",sentence:"Blue jays are smaller than ants.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_296"},{"":"353",sentence:"Farmers grow wheat in large fields.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_297"},{"":"354",sentence:"Birds make nests for their babies.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_67"},{"":"355",sentence:"Snakes are good at farming.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_298"},{"":"356",sentence:"You can buy popcorn in a movie theater.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_299"},{"":"357",sentence:"A test tube might break if you drop it during an experiment.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_137"},{"":"358",sentence:"You can find icebergs in the desert.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_90"},{"":"359",sentence:"Teenagers like to drive sponges to school.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_300"},{"":"360",sentence:"A man in prison can roam freely throughout the world.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_301"},{"":"361",sentence:"You might calculate to solve a problem in a math class.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_302"},{"":"362",sentence:"Some of our ancestors were born and lived in prehistoric times.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_303"},{"":"363",sentence:"An alert watchdog will sleep through a burglary attempt.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_228"},{"":"364",sentence:"If you spend more than your budget allows, you may run short of money.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_304"},{"":"365",sentence:"A friend you admire is someone you have little respect for.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_225"},{"":"366",sentence:"A teacher might put a bonus question on a test to give students extra credit.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_305"},{"":"367",sentence:"A boycott might be organized as a way to protect a decision made by a store.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_306"},{"":"368",sentence:"A hunter wears camouflage to be seen more easily.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_307"},{"":"369",sentence:"Men wear cosmetics to make them feel more intelligent.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_264"},{"":"370",sentence:"An automatic decision is one that requires a lot of thought.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_308"},{"":"371",sentence:"Doing the same thing over and over again can be monotonous.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_309"},{"":"372",sentence:"If you commit a serious crime you might be sent to a penitentiary.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_310"},{"":"373",sentence:"You may be asked to calculate answers to difficult problems in a college math class.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_311"},{"":"374",sentence:"Wearing a blindfold is better than wearing glasses if you cannot see the board.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_312"},{"":"375",sentence:"It would be dishonest to return a lost wallet with all of the money inside it to its owner.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_313"},{"":"376",sentence:"One way to find a solution to a disagreement is to look for a compromise.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_314"},{"":"377",sentence:"A disinfectant is useful for killing some germs that can cause illness.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_315"},{"":"378",sentence:"The main problem with having a famine is overly abundant food to eat.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_316"},{"":"379",sentence:"A math teacher who asks you to estimate an answer is asking for an answer that is exact.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_317"},{"":"380",sentence:"A speedometer is used to tell what the temperature is outside.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_318"},{"":"381",sentence:"Eating spoiled food can cause an upset stomach or other problems with digestion.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_319"},{"":"382",sentence:"A punctual student always is late for his classes or any appointments.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_320"},{"":"383",sentence:"Most adolescents go to school and like movies and listening to music.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_321"},{"":"384",sentence:"People have seven hundred thousand knuckles on their ankles and noses.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_322"},{"":"385",sentence:"Someone with a large appetite will eat very little food.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_198"},{"":"386",sentence:"If a tiger escaped from a zoo and was walking in a city, it would cause commotion.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_323"},{"":"387",sentence:"Most people would be disappointed to learn that they were millionaires.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_284"},{"":"388",sentence:"An automobile is useful for going out to eat or to the grocery store.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_324"},{"":"389",sentence:"A microscopic germ is bigger than a building but smaller than a city.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_282"},{"":"390",sentence:"A teacher might give you criticism about a paper you wrote to make you a better writer.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_325"},{"":"391",sentence:"Toxic oil spills in oceans, streams, and lakes are beneficial for the environment.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_326"},{"":"392",sentence:"The purpose of the population census is to count the number of rainy days every month.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_327"},{"":"393",sentence:"Very large farms with many kinds of livestock and many fileds for planting can cover a lot of acreage.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_328"},{"":"394",sentence:"Clam chowder is made from various spiders, peanuts, and several kinds of insects.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_329"},{"":"395",sentence:"A computer works best if it is thrown from the top floor of a tall building during a major thunderstorm.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_330"},{"":"396",sentence:"An adequate number of players on a team is required to be able to play an opponent.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_331"},{"":"397",sentence:"Giving to needy individuals who have less than you is an admirable thing to do",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_332"},{"":"398",sentence:"A leaf falling from a tree will endanger most every resident in a city.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_333"},{"":"399",sentence:"People who are adrift in a boat with a broken-down motor may be lucky and be rescued by a passing boater.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_334"},{"":"400",sentence:"Studying hard and listening in class are advisable if you want to achieve better grades.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_335"},{"":"401",sentence:"Ice cream is a very distasteful thing to be given to eat for almost all children regardless of their age.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_336"},{"":"402",sentence:"A tornado can result in a catastrophe if it strikes where people will live and a safe place to go is not available.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_337"},{"":"403",sentence:"Most bankers are given bonuses if they are able to embezzle money from the bank to buy a sailboat.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_338"},{"":"404",sentence:"Compulsory rules are not optional but rather must always be followed.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_339"},{"":"405",sentence:"Hamburgers and hot dogs sometimes are sold at concession stands at various sporting events.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_340"},{"":"406",sentence:"Two people who dislike being together are inseparable.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_341"},{"":"407",sentence:"Fingerprints can incriminate a suspect.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_342"},{"":"408",sentence:"Spanish is the predominant language spoken in Mexico.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_343"},{"":"409",sentence:"Not helping a family whose automobile has broken down is an example of compassion.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_344"},{"":"410",sentence:"A dilapidated building is well maintained.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_345"},{"":"411",sentence:"There is sand in the desert.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_346"},{"":"412",sentence:"You can play with a toy in the bathtub.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_295"},{"":"413",sentence:"People like to eat dirt for lunch as a snack.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_347"},{"":"414",sentence:"A girl can have a lot of freckles on her face.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_348"},{"":"415",sentence:"You can find starfish in space.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_27"},{"":"416",sentence:"A tortoise is faster than a greyhound.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_136"},{"":"417",sentence:"Most people wear jackets on their feet rather than shoes.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_125"},{"":"418",sentence:"A beagle might bark to warn its owner if it sees a hawk.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_349"},{"":"419",sentence:"A watermelon can be too big for a small boy to lift.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_133"},{"":"420",sentence:"You should invite vultures to a wedding.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_138"},{"":"421",sentence:"Some airplanes fly at a very high altitude.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"422",sentence:"An envelope can be used as a radio.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_350"},{"":"423",sentence:"If you appreciate a gift very much you should tell the person who gave it to you.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_351"},{"":"424",sentence:"Some of our ancestors were born and lived in prehistoric times.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_303"},{"":"425",sentence:"A plumber should be called right away if your automobile breaks down.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_352"},{"":"426",sentence:"A celebrity might be asked for her autograph.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_263"},{"":"427",sentence:'Getting an "A" on an important test would devastate most students.',grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_353"},{"":"428",sentence:"A bachelor is someone who has been married all of his adult life.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_354"},{"":"429",sentence:"A parent might ask a daughter to buckle her seat belt to protect her in an accident.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_355"},{"":"430",sentence:"An automatic decision is one that requires a lot of thought.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_308"},{"":"431",sentence:"People who go fishing sometimes exaggerate the size of the fish they catch.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_356"},{"":"432",sentence:"The main problem with having a famine is overly abundant food to eat.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_316"},{"":"433",sentence:"A disinfectant is useful for killing some germs that can cause illness.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_315"},{"":"434",sentence:"Most people wear ancient pyramids on their wrists for predicting weather.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_281"},{"":"435",sentence:"One way to find a solution to a disagreement is to look for a compromise.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_314"},{"":"436",sentence:"Hotels are one form of accommodation for people taking trips.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_357"},{"":"437",sentence:"If too much rain accumulates, severe flooding can damage houses.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_358"},{"":"438",sentence:"Clam chowder is made from various spiders, peanuts, and several kinds of insects.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_329"},{"":"439",sentence:"A criminal standing trial will be very happy if the jury acquits him.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_359"},{"":"440",sentence:"It can be difficult to move large appliances such as stoves or refrigerators.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_360"},{"":"441",sentence:"A computer works best if it is thrown from the top floor of a tall building during a major thunderstorm.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_330"},{"":"442",sentence:"A leaf falling from a tree will endanger most every resident in a city.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_333"},{"":"443",sentence:"With high gasoline prices, a small automobile can be more economical to drive than a large truck.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_361"},{"":"444",sentence:"A substantial dinner consists of one potato chip.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_362"},{"":"445",sentence:"If you are taking a multiple-choice test, it can be helpful to eliminate answers that you know are wrong.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_363"},{"":"446",sentence:"Very little stamina is required for running a distance of twenty miles.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_364"},{"":"447",sentence:"Milk is pasteurized to change its color from purple to orange and to make it fit into a milk carton.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_365"},{"":"448",sentence:"If you hear thunder, keeping away from tall trees can reduce the chance of being electrocuted.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_366"},{"":"449",sentence:"The purpose of the population census is to count the number of rainy days every month.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_327"},{"":"450",sentence:"If a painting by a famous artist turns out to be a forgery, its value is likely to be much less.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_367"},{"":"451",sentence:"If a traffic light quits working, two cars could get into an accident at an intersection.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_368"},{"":"452",sentence:"An old cat sleeping on a pillow in front of a sunny window is highly energetic.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_369"},{"":"453",sentence:"It helps to be logical if you are trying to convince someone with an effective argument.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_370"},{"":"454",sentence:"A firefighter pours gasoline on a fire to extinguish it.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_371"},{"":"455",sentence:"Mythology refers to true stories of events that happened.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_372"},{"":"456",sentence:"A spendthrift can usually be counted on to spend money for lavish entertainment.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_373"},{"":"457",sentence:"The abolition of slavery resulted in changes for the South.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_374"},{"":"458",sentence:"An adversary is someone who takes your side in any argument.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_375"},{"":"459",sentence:"Some citizens who cannot vote because they are away are able to vote by absentee ballot.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_376"},{"":"460",sentence:"If you want to be friends with someone, the best way is to antagonize the person continuously.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_377"},{"":"461",sentence:"A football game that ends with a tie score of fourteen to fourteen is an example of a decisive victory.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_293"},{"":"462",sentence:"Some criminals have an accomplice who accompanies them.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_291"},{"":"463",sentence:"Libraries prefer that all people be delinquent in returning books.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_292"},{"":"464",sentence:"Supporters denounce the candidate they are working for rather than the opponent.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_378"},{"":"465",sentence:"Police officers try to apprehend criminals and to prevent crime.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_379"},{"":"466",sentence:"Drinking a glass of water leads to immediate, extreme discomfort for most people.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_380"},{"":"467",sentence:"Bleach is sometimes used in washing machines to remove difficult stains from very dirty clothes.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_294"},{"":"468",sentence:"An arrogant person may not be liked by others because he conveys the impression that he is better than they are.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_381"},{"":"469",sentence:"Most parents will disapprove if their children earn perfect scores on a difficult and important test.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_290"},{"":"470",sentence:"Turning on a light switch almost always results in disastrous consequences.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_382"},{"":"471",sentence:"Seeds germinate when conditions are suitable.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_383"},{"":"472",sentence:"Being open to different opinions and ideas is the key characteristic of an intolerant individual.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_384"},{"":"473",sentence:"Guerillas are tiny invertebrates that live under water.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_385"},{"":"474",sentence:"Spanish is the predominant language spoken in Mexico.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_343"},{"":"475",sentence:"A blood transfusion might be necessary in an operation.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_386"},{"":"476",sentence:"An inaccessible mountain is easily reached.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_387"},{"":"477",sentence:"A cumulative grade-point average never changes.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_388"},{"":"478",sentence:"An inevitable event is unlikely to occur.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_389"},{"":"479",sentence:"Your passport might be scrutinized if you seem suspicious when returning from visiting a foreign country.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_390"},{"":"480",sentence:"After an operation, it may take months to recuperate completely.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_391"}],corpusAI:[{sentence:"Children grow as they get older.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_1"},{sentence:"A freezer keeps food frozen.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_2"},{sentence:"Children play in the playground.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_3"},{sentence:"A farmer grows food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_4"},{sentence:"A nap helps us rest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_5"},{sentence:"Babies cry when they are upset.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_6"},{sentence:"A seashell comes from the sea.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_7"},{sentence:"A house is a place to live.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_8"},{sentence:"A mountain is tall and rocky.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_9"},{sentence:"A pond has water and fish.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_10"},{sentence:"A kitten is a baby cat.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_11"},{sentence:"Animals live in the zoo.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_12"},{sentence:"A beach has sand and water.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_13"},{sentence:"Flowers need water to grow.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_14"},{sentence:"A spoon helps us eat soup.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_15"},{sentence:"A swing goes back and forth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_16"},{sentence:"Mail is eaten by mail carriers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_17"},{sentence:"We use our stomach to digest food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_18"},{sentence:"A telephone helps us talk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_19"},{sentence:"Most birds lay potatoes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_20"},{sentence:"A turtle has a shell.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_21"},{sentence:"Ice cream is cold and sweet.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_22"},{sentence:"The moon comes out at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_23"},{sentence:"We cut paper with scissors.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_24"},{sentence:"Apples grow on trees.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_25"},{sentence:"A stapler keeps papers together.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_26"},{sentence:"People use umbrellas in the rain.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_27"},{sentence:"Snowflakes are black and rough.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_28"},{sentence:"People use their eyes to see.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_29"},{sentence:"Babies drink milk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_30"},{sentence:"A boat floats on water.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_31"},{sentence:"A baby learns to crawl.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_32"},{sentence:"A pancake is round and flat.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_33"},{sentence:"Fish have wings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_34"},{sentence:"Birds swim in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_35"},{sentence:"Snow is warm and white.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_36"},{sentence:"A horse can run fast.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_37"},{sentence:"A stove cooks our food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_38"},{sentence:"Doctors help us when we are sick.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_39"},{sentence:"People wear hats on their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_40"},{sentence:"A pillow is soft and fluffy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_41"},{sentence:"An adult is a grown-up.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_42"},{sentence:"A squirrel has a bushy tail.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_43"},{sentence:"Dogs meow and retract their tails.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_44"},{sentence:"Birds crawl high in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_45"},{sentence:"Rain is made of syrup.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_46"},{sentence:"Sheep have thick wool.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_47"},{sentence:"Whales live in the ocean.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_48"},{sentence:"Puppies are baby dogs.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_49"},{sentence:"The ocean is large and deep.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_50"},{sentence:"We sleep at night to rest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_51"},{sentence:"People wear gloves on their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_52"},{sentence:"Roads have cotton candy and unicorns.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_53"},{sentence:"Hamsters swim on wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_54"},{sentence:"Dogs like to bark and play.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_55"},{sentence:"Sunscreen protects us from the sun.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_56"},{sentence:"People use money to buy things.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_57"},{sentence:"Octopuses have two arms.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_58"},{sentence:"Puzzles have one piece.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_59"},{sentence:"Pumpkins are blue and square.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_60"},{sentence:"A bed is for sleeping.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_61"},{sentence:"People laugh when something is funny.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_62"},{sentence:"A candle gives us light.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_63"},{sentence:"A bike has pedals.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_64"},{sentence:"Animals need food to live.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_65"},{sentence:"A wallet holds money.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_66"},{sentence:"We eat breakfast in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_67"},{sentence:"Squirrels live underwater.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_68"},{sentence:"Many animals live in the forest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_69"},{sentence:"A teacher helps us learn.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_70"},{sentence:"Glasses help people see better.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_71"},{sentence:"Gardens are where people grow skyscrapers, vehicles, and statues.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_72"},{sentence:"A suitcase carries our clothes.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_73"},{sentence:"Light bulbs make darkness.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_74"},{sentence:"A car has four wheels.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_75"},{sentence:"Toothpaste helps to clean teeth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_76"},{sentence:"A square has nine sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_77"},{sentence:"Trains run on clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_78"},{sentence:"People write with hammers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_79"},{sentence:"The sun shines during the day.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_80"},{sentence:"A peach is fuzzy and sweet.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_81"},{sentence:"We sweep floors with a broom.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_82"},{sentence:"Colors make things smell funny.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_83"},{sentence:"Rabbits have long ears.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_84"},{sentence:"We eat dinner in the evening.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_85"},{sentence:"Everyone has a purple unicorn.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_86"},{sentence:"A baby bottle has a tail.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_87"},{sentence:"Birds make nests for their eggs.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_88"},{sentence:"People wear swimsuits for swimming.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_89"},{sentence:"Mushrooms grow in damp areas.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_90"},{sentence:"Wheels are square and roll.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_91"},{sentence:"Ants are huge and weak.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_92"},{sentence:"A triangle has ten sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_93"},{sentence:"Oranges are blue and square.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_94"},{sentence:"It is dark at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_95"},{sentence:"We drink water when we're thirsty.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_96"},{sentence:"A shirt covers our body.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_97"},{sentence:"Baking bread makes the house smell good.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_98"},{sentence:"The sun rises in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_99"},{sentence:"Shoes go on your hands.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_100"},{sentence:"Socks keep your feet cold.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_101"},{sentence:"Cars float on water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_102"},{sentence:"People smile when they're happy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_103"},{sentence:"Plants need sunlight to grow.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_104"},{sentence:"Squirrels eat clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_105"},{sentence:"Sharks have sharp teeth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_106"},{sentence:"A lion whispers softly.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_107"},{sentence:"Numbers prevent us from counting things.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_108"},{sentence:"Books have pages with salsa.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_109"},{sentence:"A brick is made from butter.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_110"},{sentence:"People wear clothes every day.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_111"},{sentence:"Letters make soup for reading.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_112"},{sentence:"Hot air balloons dig down.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_113"},{sentence:"A pig is pink and plump.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_114"},{sentence:"We take baths to get clean.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_115"},{sentence:"Butter is made from water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_116"},{sentence:"Zebras have polka-dotted stripes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_117"},{sentence:"A tree has a trunk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_118"},{sentence:"A year has four seasons.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_119"},{sentence:"Feet have no toes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_120"},{sentence:"People have spaghetti on their heads.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_121"},{sentence:"Bread is made from flour.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_122"},{sentence:"Buttons help clean clothes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_123"},{sentence:"People use their hands to clap.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_124"},{sentence:"Chocolate comes from pickle jars.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_125"},{sentence:"People sleep on ceilings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_126"},{sentence:"Everyone has an alien spaceship.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_127"},{sentence:"Bees make honey in hives.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_128"},{sentence:"Strawberry is a red fruit.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_129"},{sentence:"Toys are for staring at.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_130"},{sentence:"A sandwich is for skiing.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_131"},{sentence:"The desert is hot and dry.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_132"},{sentence:"We walk on the sidewalk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_133"},{sentence:"Sidewalks are for driving.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_134"},{sentence:"Turtles can fly in their shells.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_135"},{sentence:"A nose smells music.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_136"},{sentence:"Birds can swim underground.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_137"},{sentence:"A picture can grow carrots.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_138"},{sentence:"A beach has ice and lava.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_139"},{sentence:"A lock keeps things safe.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_140"},{sentence:"A dog is a good friend to people.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_141"},{sentence:"Mirrors show cartoons.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_142"},{sentence:"A comb is used on hair.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_143"},{sentence:"People wear sunglasses in sunlight.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_144"},{sentence:"Skies can be solid or liquid.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_145"},{sentence:"Pets are living things we care for.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_146"},{sentence:"We all live on Earth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_147"},{sentence:"Chairs have no legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_148"},{sentence:"A frog flies and sinks.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_149"},{sentence:"Pencils are for drawing and writing.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_150"},{sentence:"Blankets make us shiver.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_151"},{sentence:"Music makes people sleep.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_152"},{sentence:"Squirrels are giant creatures that gather rocks to eat.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_153"},{sentence:"Cows give us soda to drink.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_154"},{sentence:"Corn grows in a field.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_155"},{sentence:"Telephone conversations prevent people from talking at all.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_156"},{sentence:"Drums make loud sounds.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_157"},{sentence:"Most people have twelve legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_158"},{sentence:"A fish has fins.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_159"},{sentence:"Books have no pages or words.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_160"},{sentence:"A cake is sweet and yummy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_161"},{sentence:"Lollipops are vegetables on a stick.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_162"},{sentence:"People use ears to hear.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_163"},{sentence:"A plate holds our food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_164"},{sentence:"A button waters plants.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_165"},{sentence:"Birds have scales and wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_166"},{sentence:"Bananas are yellow when ripe.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_167"},{sentence:"Stars are invisible at night.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_168"},{sentence:"We wear belts to loosen pants.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_169"},{sentence:"We say hello to greet people.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_170"},{sentence:"Rain wets the ground.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_171"},{sentence:"Shoes always have wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_172"},{sentence:"Paper comes from clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_173"},{sentence:"A deer has wings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_174"},{sentence:"Sunsets are white and gray.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_175"},{sentence:"Paintbrushes help you dance.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_176"},{sentence:"Skies are yellow on sunny days.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_177"},{sentence:"Bears can sing all winter.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_178"},{sentence:"Jet planes crawl slowly.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_179"},{sentence:"Snakes fly in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_180"},{sentence:"Insects have no legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_181"},{sentence:"Bears are tiny and weak.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_182"},{sentence:"A stove is for swimming.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_183"},{sentence:"Fire is cold and safe.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_184"},{sentence:"Grass is purple and hides inside.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_185"},{sentence:"Frogs paint in the pond.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_186"},{sentence:"Monkeys are serious animals that swim underwater using their tails.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_187"},{sentence:"Picnics are underground with televisions.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_188"},{sentence:"Lambs are baby camels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_189"},{sentence:"Oceans are full of sugar water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_190"},{sentence:"Teachers work in submarines.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_191"},{sentence:"Our hearts beat outside our chest.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_192"},{sentence:"Water boils when it's cold.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_193"},{sentence:"A shirt has wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_194"},{sentence:"Most animals have propellers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_195"},{sentence:"Tadpoles grow into trees.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_196"},{sentence:"Crayons are used for building houses.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_197"},{sentence:"Kangaroos can't jump at all.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_198"},{sentence:"Lizards live in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_199"},{sentence:"Dolphins reside in the desert.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_200"}],corpusAIV1P1:[{sentence:"A flag hangs from a pole.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_1"},{sentence:"Snowflakes fall in the summer.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_2"},{sentence:"Airplanes fly in the air.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_3"},{sentence:"Walruses have tiny teeth and live in tropical environments.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_4"},{sentence:"Owls cannot turn their heads.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_5"},{sentence:"Roads have signs and lights.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_6"},{sentence:"We breathe in air all the time.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_7"},{sentence:"A gift is wrapped with love.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_8"},{sentence:"Rainbows show only one color.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_9"},{sentence:"A car has ten wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_10"},{sentence:"Cameras drink pictures.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_11"},{sentence:"Oceans are full of salt water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_12"},{sentence:"People sleep in beds.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_13"},{sentence:"Everyone dislikes all colors.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_14"},{sentence:"Sharks have sharp teeth.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_15"},{sentence:"Flags have no colors.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_16"},{sentence:"Cars float on water.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_17"},{sentence:"Cakes are salty.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_18"},{sentence:"Horses can run fast.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_19"},{sentence:"A telephone helps us walk.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_20"},{sentence:"Everyone has a voice.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_21"},{sentence:"A seashell comes from the forest.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_22"},{sentence:"A house is a place to live.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_23"},{sentence:"We wear jackets in the cold.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_24"},{sentence:"People need sleep every day.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_25"},{sentence:"Ants work together.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_26"},{sentence:"A lock eats things safe.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_27"},{sentence:"Toys are for playing with.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_28"},{sentence:"A pillow is soft and fluffy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_29"},{sentence:"Dolphins can jump out of a volcano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_30"},{sentence:"A whale is a small land creature.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_31"},{sentence:"People use sand to buy things.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_32"},{sentence:"Monkeys climb trees.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_33"},{sentence:"People walk, run, and jump to move and get exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_34"},{sentence:"Bees ignore honey and don't help flowers by carrying pollen.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_35"},{sentence:"Children go to school to levitate.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_36"},{sentence:"Hamsters swim on wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_37"},{sentence:"Teachers work in schools.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_38"},{sentence:"A watch dances the time.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_39"},{sentence:"A baby learns to crawl.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_40"},{sentence:"No one has feelings.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_41"},{sentence:"Hands can hold things.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_42"},{sentence:"Pumpkins grow in the spring.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_43"},{sentence:"Families live together.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_44"},{sentence:"Yawns show we are hungry.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_45"},{sentence:"A triangle has ten sides.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_46"},{sentence:"Pets are living things we care for.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_47"},{sentence:"Hammers are for playing piano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_48"},{sentence:"The moon can be seen at night and changes in shape.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_49"},{sentence:"Wind can make things invisible.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_50"},{sentence:"Mountains are very short.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_51"},{sentence:"People speak different languages.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_52"},{sentence:"A fan keeps us cool.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_53"},{sentence:"Streets are for walking and driving.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_54"},{sentence:"Lions are big cats.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_55"},{sentence:"Puppies and kittens grow into adult dogs and cats.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_56"},{sentence:"People walk on their hands.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_57"},{sentence:"A ruler cooks things.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_58"},{sentence:"Kangaroos can jump far.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_59"},{sentence:"The ocean is microscopic.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_60"},{sentence:"The park is for playing.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_61"},{sentence:"We say goodbye when we leave.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_62"},{sentence:"Skies can be blue or gray.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_63"},{sentence:"Sunscreen attracts the sun.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_64"},{sentence:"Bananas are blue when ripe.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_65"},{sentence:"Zebras have black and white stripes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_66"},{sentence:"Babies need milk, love, and care as they grow into children.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_67"},{sentence:"Animals like turtles, snakes, and lizards are called mammals.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_68"},{sentence:"A peach is fuzzy and sweet.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_69"},{sentence:"Leaves fall from trees.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_70"},{sentence:"Doors dissolve and reappear.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_71"},{sentence:"Pencils can help you swim.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_72"},{sentence:"People use maps to find places.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_73"},{sentence:'A train goes "meow meow."',answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_74"},{sentence:"People talk with their elbows.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_75"},{sentence:"People learn from their mistakes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_76"},{sentence:"You can hear a song.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_77"},{sentence:"Dogs like to bark and play.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_78"},{sentence:"The sun sets in the morning.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_79"},{sentence:"Raincoats keep us dry.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_80"},{sentence:"We eat our teeth every day.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_81"},{sentence:"Milk comes from rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_82"},{sentence:"Planets repel the sun.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_83"},{sentence:"People write with hammers.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_84"},{sentence:"A shoe doesn't have a sole.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_85"},{sentence:"We drink out of hats.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_86"},{sentence:"Lambs are baby camels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_87"},{sentence:"Children learn from adults.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_88"},{sentence:"A boat has a sail.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_89"},{sentence:"Everyone has a favorite color.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_90"},{sentence:"All people eat rainbows.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_91"},{sentence:"A deer has wings.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_92"},{sentence:"A bus takes people places.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_93"},{sentence:"Eggs come from fish.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_94"},{sentence:"Rabbits have soft fur.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_95"},{sentence:"We wear shoes to know time.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_96"},{sentence:"Paper can be folded.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_97"},{sentence:"Jellyfish are land creatures with short arms that can high-five.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_98"},{sentence:"Ice is boiling water.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_99"},{sentence:"An adult is a grown-up.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_100"},{sentence:"Squirrels live underwater.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_101"},{sentence:"Friends help each other.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_102"},{sentence:"Elephants are large animals with big ears and a long trunk.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_103"},{sentence:"Orange juice comes from oranges.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_104"},{sentence:"Children shrink as they get older.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_105"},{sentence:"A kitten is a baby elephant.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_106"},{sentence:"Sheep have thick wool.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_107"},{sentence:"People have different height.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_108"},{sentence:"Straws help us listen to music.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_109"},{sentence:"A giraffe has a long neck.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_110"},{sentence:"We wake up in the evening.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_111"},{sentence:"Turtles can fly in their shells.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_112"},{sentence:"Music cannot be played on instruments like drums, guitars, and pianos.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_113"},{sentence:"A bee can knit.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_114"},{sentence:"A pig is blue and thin.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_115"},{sentence:"A computer hinders our work.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_116"},{sentence:"People wear glasses to help them hear more clearly.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_117"},{sentence:"People of all ages can enjoy spending time with animals.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_118"},{sentence:"Shoes always have wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_119"},{sentence:"Fire is hot and burns.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_120"},{sentence:"Kids put on backpacks for school.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_121"},{sentence:"We use keys to open doors.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_122"},{sentence:"The sky is yellow.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_123"},{sentence:"Chickens lay marbles for us to eat.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_124"},{sentence:"All people need love and care.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_125"},{sentence:"Books are for reading and learning.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_126"},{sentence:"A mountain is tall and rocky.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_127"},{sentence:"Buttons help close clothes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_128"},{sentence:"Water is wet and we need it to stay healthy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_129"},{sentence:"Apples can be red, green, or yellow.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_130"}],corpusAIV1P2:[{sentence:"Ants are small.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_1"},{sentence:"All kids shrink.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_2"},{sentence:"The sun rises every day.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_3"},{sentence:"People use phones to swim.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_4"},{sentence:"Balloons can be filled with rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_5"},{sentence:"People turn pages to read books.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_6"},{sentence:"We say thank you to be polite.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_7"},{sentence:"Everyone feels sad sometimes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_8"},{sentence:"Ducks dislike swimming.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_9"},{sentence:"Bicycles have thirty wheels and make people invisible.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_10"},{sentence:"A pillow is for swimming.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_11"},{sentence:"Water is wet and clear.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_12"},{sentence:"The sky is blue.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_13"},{sentence:"A wallet holds vegetables.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_14"},{sentence:"Mountains are very tall.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_15"},{sentence:"Rubber bands cannot stretch.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_16"},{sentence:"Most flowers emit invisible smoke.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_17"},{sentence:"A refrigerator warms food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_18"},{sentence:"All people have a name.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_19"},{sentence:"Corn grows in a volcano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_20"},{sentence:"Cakes are sweet.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_21"},{sentence:"Mice have giant tails.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_22"},{sentence:"A kitten is a baby cat.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_23"},{sentence:"A doorbell rings when pressed.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_24"},{sentence:"Everyone likes to feel loved.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_25"},{sentence:"Families can have pets.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_26"},{sentence:"A chair is for people to hover.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_27"},{sentence:"Kangaroos are animals with strong legs and can hop very far.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_28"},{sentence:"Showers are for getting clean.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_29"},{sentence:"People use maps to eat food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_30"},{sentence:"Books have no pages.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_31"},{sentence:"Deserts are icy and snowy places with constant rainfall.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_32"},{sentence:"Fish breathe through gills.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_33"},{sentence:"People walk, run, and jump to move and get exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_34"},{sentence:"Streets are for swimming and flying.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_35"},{sentence:"A ball is flat and sticks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_36"},{sentence:"A fence generates electricity.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_37"},{sentence:"We wear belts to hold pants up.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_38"},{sentence:"Jellyfish cannot sting.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_39"},{sentence:"We ride bikes for fun or exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_40"},{sentence:"Lollipops are vegetables on a stick.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_41"},{sentence:"People live in houses.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_42"},{sentence:"A year has eleven months.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_43"},{sentence:"Children go to school.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_44"},{sentence:"Monkeys run underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_45"},{sentence:"People wear sandals when it's cold.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_46"},{sentence:"Children like singing songs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_47"},{sentence:"Insects have no legs.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_48"},{sentence:"Shoes can have laces or straps.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_49"},{sentence:"You have to swallow a door.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_50"},{sentence:"Water boils when it's cold.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_51"},{sentence:"People brush their teeth.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_52"},{sentence:"Children often take turns during games or sharing toys.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_53"},{sentence:"Rivers, lakes, and oceans are large bodies of water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_54"},{sentence:"Puppies are baby dogs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_55"},{sentence:"People use money to buy things.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_56"},{sentence:"Fish drive cars and have wheels and headlights.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_57"},{sentence:"Snakes fly in the sky.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_58"},{sentence:"Seashells come in many shapes and colors and can be found at the beach.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_59"},{sentence:"MAIL gets buried under houses.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_60"},{sentence:"Windows let light in.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_61"},{sentence:"Gifts are given on special occasions like birthdays and holidays.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_62"},{sentence:"Horses can run and carry people or things on their backs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_63"},{sentence:"People clap their feet.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_64"},{sentence:"Crayons are used for building houses.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_65"},{sentence:"Hands can hold objects.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_66"},{sentence:"Farm animals like cows, pigs, and chickens provide us with food.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_67"},{sentence:"The ocean is small and shallow.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_68"},{sentence:"Children play in the playground.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_69"},{sentence:"Most people have two legs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_70"},{sentence:"We use napkins to paint our faces.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_71"},{sentence:"Telephone conversations prevent people from talking at all.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_72"},{sentence:"We eat dinner in the evening.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_73"},{sentence:"A turtle has a cape.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_74"},{sentence:"Ropes are used for eating.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_75"},{sentence:"Vaccines help to protect us.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_76"},{sentence:"Children take naps during the day to rest and recharge.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_77"},{sentence:"A teacher helps us learn.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_78"},{sentence:"Zebras have polka dots and live underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_79"},{sentence:"Plants need water and sunlight.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_80"},{sentence:"Dogs plant flowers.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_81"},{sentence:"Apples can be blue and grow underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_82"},{sentence:"Beds are for dancing.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_83"},{sentence:"We drink from hats.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_84"},{sentence:"Ants are gigantic.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_85"},{sentence:"Rainbows have one color.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_86"},{sentence:"Penguins can fly.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_87"},{sentence:"Dogs can bark.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_88"},{sentence:"We cook food in ovens.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_89"},{sentence:"The sun sets every evening.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_90"},{sentence:"Birds have scales.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_91"},{sentence:"Whales are reptiles.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_92"},{sentence:"We put on pajamas before bed.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_93"},{sentence:"Bears are tiny and weak.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_94"},{sentence:"Music can be played on instruments like drums, guitars, and pianos.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_95"},{sentence:"Children play in the stratosphere.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_96"},{sentence:"Airplanes fly in the sky.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_97"},{sentence:"We eat with telekinesis.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_98"},{sentence:"Ice cream is hot and sour.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_99"},{sentence:"Pizzas have different toppings.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_100"},{sentence:"Butterflies start as rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_101"},{sentence:"You go to sleep at night.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_102"},{sentence:"A car horn honks loudly.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_103"},{sentence:"Frogs are green and can jump and swim in water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_104"},{sentence:"Cats have wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_105"},{sentence:"A caterpillar becomes a rhino.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_106"},{sentence:"People laugh when things are funny.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_107"},{sentence:"People have different hair colors.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_108"},{sentence:"The moon can't be seen at night and stays in one shape.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_109"},{sentence:"People talk with their mouths.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_110"},{sentence:"People need to levitate.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_111"},{sentence:"People eat rocks to live.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_112"},{sentence:"Bread is a rare food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_113"},{sentence:"We walk with our hands.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_114"},{sentence:"Snowflakes are black and rough.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_115"},{sentence:"Trains swim on train tracks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_116"},{sentence:"A train goes on roads.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_117"},{sentence:"The seasons are spring, summer, autumn, and winter, each with unique features.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_118"},{sentence:"Elephants are blue and small.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_119"},{sentence:"People feel hot in the sun.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_120"},{sentence:"Strawberry is a red fruit.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_121"},{sentence:"Doctors help us when we are sick.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_122"},{sentence:"We all live on Mars.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_123"},{sentence:"Drums produce images when hit.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_124"},{sentence:"Blankets are for snuggling.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_125"},{sentence:"Fruits and vegetables help our bodies to grow and stay strong.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_126"},{sentence:"A doll can be fun to play with.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_127"},{sentence:"Parents take care of children.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_128"},{sentence:"People drink water when thirsty.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_129"},{sentence:"Cats meow and purr when happy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_130"}]},es:{corpusPractice:"",corpusLab:"",corpusTOSREC:"",corpusAI:""},it:{corpusPractice:"",corpusLab:"",corpusTOSREC:"",corpusAI:""}};var Wc={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:[]},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","false-flash-key.webp","false-key.webp","grade-keyboard.webp","grade-keys.webp","practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","true-flash-key.webp","true-key.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp"]}};const Kc="mobile"===fr(),Zc="https://storage.googleapis.com/roar-sre",Jc=function(e,t,n){var i={images:{},video:{},audio:{}},a=hr(n),s=fr(),r=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=gr(e),l=Gs.parse(e).name,u=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),d=mr(t,e,a,s,n,r,o);i[c][u]=d}))},o=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)?r(e,"default"):(e.languageSpecific&&(Array.isArray(e.languageSpecific)?r(e.languageSpecific,"languageSpecific"):function(e,t){Object.entries(e).forEach((function(e){var n=Io(e,2),i=n[0],a=n[1];r(a,i,!0,t)}))}(e.languageSpecific,n)),e.device&&r(e.device,"device"),e.shared&&(t=e.shared,Array.isArray(t)?r(t,"shared"):Object.entries(t).forEach((function(e){var t=Io(e,2),n=t[0],i=t[1];r(i,"device"===n?"shared/device":"shared")}))))};return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Io(e,2)[1];o(t)})),e.default&&o(e.default,!0),i}(Wc,Zc),Xc=function(e,t,n){var i={},a=hr(n),s=fr();function r(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=gr(e),u=mr(t,e,a,s,r,o,c);i[n]||(i[n]={type:Ro,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[n][l].push(u)}))}function o(e,t,n){Array.isArray(t)?r(t,e,"languageSpecific"):function(e,t,n){Object.entries(t).forEach((function(t){var i=Io(t,2),a=i[0];r(i[1],e,a,!0,n)}))}(e,t,n)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(t)?r(t,e,"default"):(t.languageSpecific&&o(e,t.languageSpecific,n),t.device&&r(t.device,e,"device"),t.shared&&function(e,t){Array.isArray(t)?r(t,e,"shared"):Object.entries(t).forEach((function(t){var n=Io(t,2),i=n[0];r(n[1],e,"device"===i?"shared/device":"shared")}))}(e,t.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Io(e,2);c(t[0],t[1])})),e.default&&c("default",e.default,!0),i}(Wc,Zc).default,Qc=e=>{const t=[...e];for(let e=t.length-1;e>0;e-=1){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},el={timeline:[{type:jo,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=s.session.get("config");t.labId=e.response.labId,s.session.set("config",t)}}],conditional_function:()=>!s.session.get("config").labId&&"otherLabs"===s.session.get("config").recruitment},tl={timeline:[{type:jo,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=s.session.get("config");t.pid=e.response.pid,s.session.set("config",t)}}],conditional_function:()=>!s.session.get("config").pid&&("demo"===s.session.get("config").recruitment||"otherLabs"===s.session.get("config").recruitment)},nl={timeline:[{type:Uo,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"===s.session.get("config").recruitment||s.session.get("config").consent},il={timeline:[{type:Do,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 n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=s.session.get("config").userMetadata.grade;const n=s.session.get("config"),i=_r(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},s.session.set("config",n)}}],conditional_function:()=>"demo"===s.session.get("config").recruitment||s.session.get("config").consent},al={type:Mo,stimulus:()=>Jc.audio.gradeSelect,prompt:()=>Kc?`\n <div class="mobile-grade-select">\n <h3>${Ec.t("introduction.gradeSelect.text1")}</h3>\n <p>${Ec.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${Ec.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${Ec.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Ec.t("introduction.gradeSelect.text1")}</h3>\n <p>${Ec.t("introduction.gradeSelect.text2")}</p>\n <p>${Ec.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Jc.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Ec.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Kc?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Kc?["1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade","8th Grade or higher"]:[],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;Kc?s.session.set("tosrecCorpusId",`tosrec${t+1}`):s.session.set("tosrecCorpusId",`tosrec${t}`);const n=s.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Kc?t+1:t)},s.session.set("config",n)}},sl=["K","PK","TK","PreKindergarten","TransitionalKindergarten","Kindergarten","InfantToddler","Preschool"].map((e=>e.toLowerCase()));const rl=[el,tl,nl,il,{timeline:[al],conditional_function:()=>{const{grade:e}=s.session.get("config").userMetadata;return!function(e){return!!(e>0&&e<=12||("string"==typeof e||e instanceof String)&&sl.includes(e.toLowerCase()))}(e)||(s.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}],ol=function(e){const t=new ko(e);return Object.defineProperties(t,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map((([e,t])=>[e,{get(){throw new kr(t)}}])))),t}({show_progress_bar:!1,auto_update_progress_bar:!1,message_progress_bar:`${Ec.t("progressBar")}`,on_finish:()=>{document.body.style.cursor="auto"}});var cl=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}));var ll=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},ul=Ga,dl=$a;var pl=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,r=t.length;++s<r;){var o=t[s],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),a?dl(n,o,c):ul(n,o,c)}return n},hl=pl,fl=Rn;var ml=function(e,t){return e&&hl(t,fl(t),e)},gl=pl,_l=gs;var yl=function(e,t){return e&&gl(t,_l(t),e)},vl={exports:{}};!function(e,t){var n=C,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,r=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(vl,vl.exports);var bl=vl.exports;var wl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},xl=pl,El=Ct;var Sl=function(e,t){return xl(e,El(e),t)},kl=pl,Tl=cs;var Rl=function(e,t){return kl(e,Tl(e),t)},Il=Object.prototype.hasOwnProperty;var Al=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Il.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Cl=ut;var Ol=function(e){var t=new e.constructor(e.byteLength);return new Cl(t).set(new Cl(e)),t},Ll=Ol;var jl=function(e,t){var n=t?Ll(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Pl=/\w*$/;var Ul=function(e){var t=new e.constructor(e.source,Pl.exec(e));return t.lastIndex=e.lastIndex,t},Fl=O?O.prototype:void 0,Dl=Fl?Fl.valueOf:void 0;var Nl=Ol;var Ml=Ol,zl=jl,Bl=Ul,$l=function(e){return Dl?Object(Dl.call(e)):{}},ql=function(e,t){var n=t?Nl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Vl=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return Ml(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return zl(e,n);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 ql(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return Bl(e);case"[object Symbol]":return $l(e)}},Yl=q,Gl=Object.create,Hl=function(){function e(){}return function(t){if(!Yl(t))return{};if(Gl)return Gl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Wl=is,Kl=mn;var Zl=function(e){return"function"!=typeof e.constructor||Kl(e)?{}:Hl(Wl(e))},Jl=Qn,Xl=Lt;var Ql=function(e){return Xl(e)&&"[object Map]"==Jl(e)},eu=Xt,tu=en&&en.isMap,nu=tu?eu(tu):Ql,iu=Qn,au=Lt;var su=function(e){return au(e)&&"[object Set]"==iu(e)},ru=Xt,ou=en&&en.isSet,cu=ou?ru(ou):su,lu=tt,uu=ll,du=Ga,pu=ml,hu=yl,fu=bl,mu=wl,gu=Sl,_u=Rl,yu=On,vu=bs,bu=Qn,wu=Al,xu=Vl,Eu=Zl,Su=wt,ku=qt,Tu=nu,Ru=q,Iu=cu,Au=Rn,Cu=gs,Ou="[object Arguments]",Lu="[object Function]",ju="[object Object]",Pu={};Pu[Ou]=Pu["[object Array]"]=Pu["[object ArrayBuffer]"]=Pu["[object DataView]"]=Pu["[object Boolean]"]=Pu["[object Date]"]=Pu["[object Float32Array]"]=Pu["[object Float64Array]"]=Pu["[object Int8Array]"]=Pu["[object Int16Array]"]=Pu["[object Int32Array]"]=Pu["[object Map]"]=Pu["[object Number]"]=Pu[ju]=Pu["[object RegExp]"]=Pu["[object Set]"]=Pu["[object String]"]=Pu["[object Symbol]"]=Pu["[object Uint8Array]"]=Pu["[object Uint8ClampedArray]"]=Pu["[object Uint16Array]"]=Pu["[object Uint32Array]"]=!0,Pu["[object Error]"]=Pu[Lu]=Pu["[object WeakMap]"]=!1;var Uu=function e(t,n,i,a,s,r){var o,c=1&n,l=2&n,u=4&n;if(i&&(o=s?i(t,a,s,r):i(t)),void 0!==o)return o;if(!Ru(t))return t;var d=Su(t);if(d){if(o=wu(t),!c)return mu(t,o)}else{var p=bu(t),h=p==Lu||"[object GeneratorFunction]"==p;if(ku(t))return fu(t,c);if(p==ju||p==Ou||h&&!s){if(o=l||h?{}:Eu(t),!c)return l?_u(t,hu(o,t)):gu(t,pu(o,t))}else{if(!Pu[p])return s?t:{};o=xu(t,p,c)}}r||(r=new lu);var f=r.get(t);if(f)return f;r.set(t,o),Iu(t)?t.forEach((function(a){o.add(e(a,n,i,a,t,r))})):Tu(t)&&t.forEach((function(a,s){o.set(s,e(a,n,i,s,t,r))}));var m=d?void 0:(u?l?vu:yu:l?Cu:Au)(t);return uu(m||t,(function(a,s){m&&(a=t[s=a]),du(o,s,e(a,n,i,s,t,r))})),o};var Fu=ia,Du=function(e,t,n){var i=-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 s=Array(a);++i<a;)s[i]=e[i+t];return s};var Nu=function(e,t){return t.length<2?e:Fu(e,Du(t,0,-1))},Mu=Xi,zu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Bu=Nu,$u=ea;var qu=function(e,t){return t=Mu(t,e),null==(e=Bu(e,t))||delete e[$u(zu(t))]},Vu=$,Yu=is,Gu=Lt,Hu=Function.prototype,Wu=Object.prototype,Ku=Hu.toString,Zu=Wu.hasOwnProperty,Ju=Ku.call(Object);var Xu=function(e){if(!Gu(e)||"[object Object]"!=Vu(e))return!1;var t=Yu(e);if(null===t)return!0;var n=Zu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ku.call(n)==Ju};var Qu=function(e){return Xu(e)?void 0:e},ed=zt,td=wt,nd=O?O.isConcatSpreadable:void 0;var id=bt,ad=function(e){return td(e)||ed(e)||!!(nd&&e&&e[nd])};var sd=function e(t,n,i,a,s){var r=-1,o=t.length;for(i||(i=ad),s||(s=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,a,s):id(s,c):a||(s[s.length]=c)}return s},rd=sd;var od=function(e){return(null==e?0:e.length)?rd(e,1):[]};var cd=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ld=Math.max;var ud=function(e,t,n){return t=ld(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=ld(i.length-t,0),r=Array(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),cd(e,this,o)}};var dd=function(e){return function(){return e}},pd=za,hd=pd?function(e,t){return pd(e,"toString",{configurable:!0,enumerable:!1,value:dd(t),writable:!0})}:Sa,fd=Date.now;var md=function(e){var t=0,n=0;return function(){var i=fd(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(hd),gd=od,_d=ud,yd=md;var vd=zi,bd=Uu,wd=qu,xd=Xi,Ed=pl,Sd=Qu,kd=bs,Td=function(e){return yd(_d(e,void 0,gd),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=vd(t,(function(t){return t=xd(t,e),i||(i=t.length>1),t})),Ed(e,kd(e),n),i&&(n=bd(n,7,Sd));for(var a=t.length;a--;)wd(n,t[a]);return n})),Rd=i(Td),Id=zi;var Ad=function(e,t){return Id(t,(function(t){return[t,e[t]]}))},Cd=Qn,Od=dt,Ld=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var jd=i(function(e){return function(t){var n=Cd(t);return"[object Map]"==n?Od(t):"[object Set]"==n?Ld(t):Ad(t,e(t))}}(Rn)),Pd={exports:{}};Pd.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=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; ","(",i,")();"],{type:"text/javascript"})))}var a=!n.document&&!!n.postMessage,s=n.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=u,c.unparse=d,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=!a&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=b,c.ParserHandle=y,c.NetworkStreamer=h,c.FileStreamer=f,c.StringStreamer=m,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=_),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var a=0;a<this.files.length;a++)i.push({file:this.files[a],inputElem:this,instanceConfig:l.extend({},t)})})),a(),this;function a(){if(0!==i.length){var t=i[0];if(I(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void s("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var a=t.instanceConfig.complete;t.instanceConfig.complete=function(e){I(a)&&a(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else I(e.complete)&&e.complete()}function s(t,n,i,a){I(e.error)&&e.error({name:t},n,i,a)}function r(){i.splice(0,1),a()}}}function u(e,t){var i=(t=t||{}).dynamicTyping||!1;if(I(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!I(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var a=w();return a.userStep=t.step,a.userChunk=t.chunk,a.userComplete=t.complete,a.userError=t.error,t.step=I(t.step),t.chunk=I(t.chunk),t.complete=I(t.complete),t.error=I(t.error),delete t.worker,void a.postMessage({input:e,config:t,workerId:a.id})}var s=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(s=new _(t)).getStream():("string"==typeof e?(e=r(e),s=t.download?new h(t):new m(t)):!0===e.readable&&I(e.read)&&I(e.on)?s=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(s=new f(t)),s.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function d(e,t){var n=!1,i=!0,a=",",s="\r\n",r='"',o=r+r,l=!1,u=null,d=!1;h();var p=new RegExp(v(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}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||u),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||[],l);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){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&&i){for(var l=0;l<e.length;l++)l>0&&(r+=a),r+=m(e[l],l);t.length>0&&(r+=s)}for(var u=0;u<t.length;u++){var d=o?e.length:t[u].length,p=!1,h=o?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!o&&(p="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&o){for(var f=[],g=0;g<d;g++){var _=c?e[g]:g;f.push(t[u][_])}p=""===f.join("").trim()}if(!p){for(var y=0;y<d;y++){y>0&&!h&&(r+=a);var v=o&&c?e[y]:y;r+=m(t[u][v],y)}u<t.length-1&&(!n||d>0&&!h)&&(r+=s)}}return r}function m(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,i=!0);var s=e.toString().replace(p,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(s,c.BAD_DELIMITERS)||s.indexOf(a)>-1||" "===s.charAt(0)||" "===s.charAt(s.length-1))?r+s+r:s}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function p(e){function t(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(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&&I(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var r=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=a.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(s)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(I(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||!l||!I(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){I(this._config.error)?this._config.error(e):s&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(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=a?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),a||(t.onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&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>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=R(this._chunkLoaded,this),t.onerror=R(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 a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},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 m(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,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],n=!0,i=!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(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=R((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=R((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=R((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=R((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function _(e){var n=t.Duplex,i=T(e),a=!0,s=!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)},i.step=R(this._onCsvData,this),i.complete=R(this._onCsvComplete,this),p.call(this,i),this._nextChunk=function(){s&&1===r.length&&(this._finished=!0),r.length?r.shift()():a=!0},this._addToParseQueue=function(e,t){r.push(R((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),I(t))return t()}),this)),a&&(a=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:R(this._onRead,this),write:R(this._onWrite,this)})).once("finish",R(this._onWriteComplete,this))}function y(e){var t,n,i,a=Math.pow(2,53),s=-a,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)))$/,l=this,u=0,d=0,p=!1,h=!1,f=[],m={data:[],errors:[],meta:{}};if(I(e.step)){var g=e.step;e.step=function(t){if(m=t,x())w();else{if(w(),0===m.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(m.data=m.data[0],g(m,l))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(e){if(r.test(e)){var t=parseFloat(e);if(t>s&&t<a)return!0}return!1}function w(){return m&&i&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!_(e)}))),x()&&E(),R()}function x(){return e.header&&0===f.length}function E(){if(m)if(Array.isArray(m.data[0])){for(var t=0;x()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){I(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function k(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(y(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function R(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var i,a=e.header?{}:[];for(i=0;i<t.length;i++){var s=i,r=t[i];e.header&&(s=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,s)),r=k(s,r),"__parsed_extra"===s?(a[s]=a[s]||[],a[s].push(r)):a[s]=r}return e.header&&(i>f.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,d+n):i<f.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,d+n)),a}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=f),d+=n,m}function A(t,n,i,a,s){var r,o,l,u;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var d=0;d<s.length;d++){var p=s[d],h=0,f=0,m=0;l=void 0;for(var g=new b({comments:a,delimiter:p,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(i&&_(g.data[y]))m++;else{var v=g.data[y].length;f+=v,void 0!==l?v>0&&(h+=Math.abs(v-l),l=v):l=v}g.data.length>0&&(f/=g.data.length-m),(void 0===o||h<=o)&&(void 0===u||f>u)&&f>1.99&&(o=h,r=p,u=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function C(e,t){e=e.substring(0,1048576);var n=new RegExp(v(t)+"([^]*?)"+v(t),"gm"),i=(e=e.replace(n,"")).split("\r"),a=e.split("\n"),s=a.length>1&&a[0].length<i[0].length;if(1===i.length||s)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function O(e,t,n,i){var a={type:e,code:t,message:n};void 0!==i&&(a.row=i),m.errors.push(a)}this.parse=function(a,s,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=C(a,o)),i=!1,e.delimiter)I(e.delimiter)&&(e.delimiter=e.delimiter(a),m.meta.delimiter=e.delimiter);else{var l=A(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),m.meta.delimiter=e.delimiter}var u=T(e);return e.preview&&e.header&&u.preview++,t=a,n=new b(u),m=n.parse(t,s,r),w(),p?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=I(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(p=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,I(e.complete)&&e.complete(m),t=""}}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e){var t,n=(e=e||{}).delimiter,i=e.newline,a=e.comments,s=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),a===n)throw new Error("Comment character same as delimiter");!0===a?a="#":("string"!=typeof a||c.BAD_DELIMITERS.indexOf(a)>-1)&&(a=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var u=0,d=!1;this.parse=function(c,p,h){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,m=n.length,g=i.length,_=a.length,y=I(s);u=0;var b=[],w=[],x=[],E=0;if(!c)return H();if(e.header&&!p){var S=c.split(i)[0].split(n),k="_",T=[],R={},A=!1;for(var C in S){var O=S[C];I(e.transformHeader)&&(O=e.transformHeader(O,C));var L=O,j=R[O]||0;for(j>0&&(A=!0,L=O+k+j),R[O]=j+1;T.includes(L);)L=L+k+j;T.push(L)}if(A){var P=c.split(i);P[0]=T.join(n),c=P.join(i)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var U=c.split(i),F=0;F<U.length;F++){if(x=U[F],u+=x.length,F!==U.length-1)u+=i.length;else if(h)return H();if(!a||x.substring(0,_)!==a){if(y){if(b=[],q(x.split(n)),W(),d)return H()}else q(x.split(n));if(r&&F>=r)return b=b.slice(0,r),H(!0)}}return H()}for(var D=c.indexOf(n,u),N=c.indexOf(i,u),M=new RegExp(v(l)+v(t),"g"),z=c.indexOf(t,u);;)if(c[u]!==t)if(a&&0===x.length&&c.substring(u,u+_)===a){if(-1===N)return H();u=N+g,N=c.indexOf(i,u),D=c.indexOf(n,u)}else if(-1!==D&&(D<N||-1===N))x.push(c.substring(u,D)),u=D+m,D=c.indexOf(n,u);else{if(-1===N)break;if(x.push(c.substring(u,N)),G(N+g),y&&(W(),d))return H();if(r&&b.length>=r)return H(!0)}else for(z=u,u++;;){if(-1===(z=c.indexOf(t,z+1)))return h||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:u}),Y();if(z===f-1)return Y(c.substring(u,z).replace(M,t));if(t!==l||c[z+1]!==l){if(t===l||0===z||c[z-1]!==l){-1!==D&&D<z+1&&(D=c.indexOf(n,z+1)),-1!==N&&N<z+1&&(N=c.indexOf(i,z+1));var B=V(-1===N?D:Math.min(D,N));if(c.substr(z+1+B,m)===n){x.push(c.substring(u,z).replace(M,t)),u=z+1+B+m,c[z+1+B+m]!==t&&(z=c.indexOf(t,u)),D=c.indexOf(n,u),N=c.indexOf(i,u);break}var $=V(N);if(c.substring(z+1+$,z+1+$+g)===i){if(x.push(c.substring(u,z).replace(M,t)),G(z+1+$+g),D=c.indexOf(n,u),z=c.indexOf(t,u),y&&(W(),d))return H();if(r&&b.length>=r)return H(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:u}),z++}}else z++}return Y();function q(e){b.push(e),E=u}function V(e){var t=0;if(-1!==e){var n=c.substring(z+1,e);n&&""===n.trim()&&(t=n.length)}return t}function Y(e){return h||(void 0===e&&(e=c.substring(u)),x.push(e),u=f,q(x),y&&W()),H()}function G(e){u=e,q(x),x=[],N=c.indexOf(i,u)}function H(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:i,aborted:d,truncated:!!e,cursor:E+(p||0)}}}function W(){s(H()),b=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=x,t.id=o++,r[t.id]=t,t}function x(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){i=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(I(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},a),!i);s++);delete t.results}else I(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!i&&E(t.workerId,t.results)}function E(e,t){var n=r[e];I(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function S(){throw new Error("Not implemented.")}function k(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function T(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=T(e[n]);return t}function R(e,t){return function(){e.apply(t,arguments)}}function I(e){return"function"==typeof e}return s&&(n.onmessage=k),h.prototype=Object.create(p.prototype),h.prototype.constructor=h,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,m.prototype=Object.create(m.prototype),m.prototype.constructor=m,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(_.prototype=Object.create(p.prototype),_.prototype.constructor=_),c}();var Ud=Pd.exports;class Fd{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v3.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=s.session.get("config").userMetadata?.grade;n||t(),this.gradeForScore=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,i=Number(e);return Number.isNaN(i)||i<t?t:i>n?n:i}(n,1,12),Ud.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(Rd(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const t=cl(jd(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),n=(i=t,i.lab?.sreScore?Math.max(t.lab.sreScore,0):i.aiV1P1?.sreScore?Math.max(i.aiV1P1.sreScore+5,0):i.aiV1P2?.sreScore?Math.max(i.aiV1P2.sreScore+3,0):0);var i;t.composite={sreScore:n};const a=s.session.get("config").userMetadata?.grade;if(a){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:i,sreScore:a,...s}=e;t.composite={sreScore:n,...s}}}return t}}const Dd={practice:Hc[Ec.language].corpusPractice,lab:Hc[Ec.language].corpusLab,ai:Hc[Ec.language].corpusAI,tosrec:Hc[Ec.language].corpusTOSREC,aiV1P1:Hc[Ec.language].corpusAIV1P1,aiV1P2:Hc[Ec.language].corpusAIV1P2},Nd=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,direction:t.direction,answer:t.answer,difficulty:t.difficulty,itemId:t.itemId};return e.push(n),e}),[]),Md=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,grade:t.grade,direction:t.direction,answer:t.answer,itemId:t.itemId};return e.push(n),e}),[]),zd={practice:(Bd=Dd.practice,Bd.reduce(((e,t)=>{const n={sentence:t.sentence,answer:t.answer,correct_response:t.correctresponse};return e.push(n),e}),[])),lab:Nd(Dd.lab),ai:Qc(Nd(Dd.ai)).slice(0,130),aiV1P1:Nd(Dd.aiV1P1),aiV1P2:Nd(Dd.aiV1P2),tosrec1:Md(Dd.tosrec).filter((e=>1===e.grade)),tosrec2:Md(Dd.tosrec).filter((e=>2===e.grade)),tosrec3:Md(Dd.tosrec).filter((e=>3===e.grade)),tosrec4:Md(Dd.tosrec).filter((e=>4===e.grade)),tosrec5:Md(Dd.tosrec).filter((e=>5===e.grade)),tosrec6:Md(Dd.tosrec).filter((e=>6===e.grade)),tosrec7:Md(Dd.tosrec).filter((e=>7===e.grade)),tosrec8:Md(Dd.tosrec).filter((e=>8===e.grade))};var Bd;const $d={name:"fullscreen",parameters:{fullscreen_mode:{type:Ir.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:Ir.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:Ir.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:Ir.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class qd{constructor(e){this.jsPsych=e}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.enterFullScreen(),this.endTrial(e,!0,t)}))}endTrial(e,t,n){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t};this.jsPsych.finishTrial(e)}),n.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,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();!1===i.success?this.endTrial(a,!1,e):(this.trial(a,e),n(),this.jsPsych.pluginAPI.clickTarget(a.querySelector("#jspsych-fullscreen-btn"),this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)))}}qd.info=$d;let Vd=!0;const Yd={type:qd,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${Ec.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${Ec.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default"},on_finish:()=>{Vd?Vd=!1:document.body.style.cursor="none"}};function Gd(e,t){let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(Bs(t)>=6),n}function Hd(e){return"3minParallelAIFormV1"===e?Math.random()<.5?Qc(["lab","aiV1P1"]):Qc(["lab","aiV1P2"]):"3min1Block"===e?[Qc(["lab","aiV1P1","aiV1P2"])[0]]:["lab","ai"]}const Wd=e=>{e.displayElement&&(ol.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};ol.opts.on_finish=t(ol.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()}));const n=new Fd;ol.opts.on_data_update=t(ol.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:ol.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(a||null),colNo:String(s||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),s.session.has("initialized")&&s.local("initialized")||(s.session.set("practiceIndex",0),s.session.set("currentBlockIndex",0),s.session.set("trialNumBlock",0),s.session.set("trialNumTotal",0),s.session.set("demoCounter",0),s.session.set("nextStimulus",null),s.session.set("response",""),s.session.set("dataCorrect",""),s.session.set("keyResponse",""),s.session.set("gradeKeyResponse",[]),s.session.set("currentCorpus",[]),s.session.set("timeOut",!1),s.session.set("practiceCorpus",zd.practice),s.session.set("currentTrialCorrect",!0),s.session.set("coinTrackingIndex",0),s.session.set("initialized",!0)),s.session},Kd=e=>{const t=[Yd,...rl,{type:Oo,func:()=>{const t=s.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}];return t};!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof _?t:_,r=Object.create(s.prototype),o=new C(i||[]);return a(r,"_invoke",{value:T(e,n,o)}),r}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function _(){}function y(){}function v(){}var b={};l(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&i.call(x,r)&&(b=x);var E=v.prototype=_.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,s,r,o){var c=d(e[a],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,r,o)}),(function(e){n("throw",e,r,o)})):t.resolve(u).then((function(e){l.value=e,r(l)}),(function(e){return n("throw",e,r,o)}))}o(c.arg)}var s;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return s=s?s.then(a,a):a()}})}function T(e,t,n){var i=p;return function(a,s){if(i===f)throw new Error("Generator is already running");if(i===m){if("throw"===a)throw s;return L()}for(n.method=a,n.arg=s;;){var r=n.delegate;if(r){var o=R(r,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=d(e,t,n);if("normal"===c.type){if(i=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function R(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=d(a,e.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var r=s.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=v,a(E,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,o,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,a,s){void 0===s&&(s=Promise);var r=new k(u(t,n,i,a),s);return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(E),l(E,c,"Generator"),l(E,r,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return o.type="throw",o.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var c=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=e,r.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Zd={exports:{}};
|
|
17
|
+
function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.name&&!i.disabled&&"file"!==i.type&&"reset"!==i.type&&"submit"!==i.type&&"button"!==i.type)if("select-multiple"===i.type)for(var a=0;a<i.options.length;a++)i.options[a].selected&&t.push({name:i.name,value:i.options[a].value});else("checkbox"!==i.type&&"radio"!==i.type||i.checked)&&t.push({name:i.name,value:i.value})}return t}(e.querySelector("#jspsych-survey-html-form"));t.dataAsArray||(r=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].name]=e[n].value;return t}(r));var o={rt:s,response:r};e.innerHTML="",this.jsPsych.finishTrial(o)}));var a=performance.now()}}Do.info=Fo;const No={name:"audio-multi-response",parameters:{stimulus:{type:Ir.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Ir.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Ir.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Ir.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Ir.HTML_STRING,pretty_name:"Prompt",default:null},prompt_above_buttons:{type:Ir.BOOL,pretty_name:"Prompt above buttons",default:!1},trial_duration:{type:Ir.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Ir.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Ir.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Ir.BOOL,pretty_name:"Response ends trial",default:!0},trial_ends_after_audio:{type:Ir.BOOL,pretty_name:"Trial ends after audio",default:!1},response_allowed_while_playing:{type:Ir.BOOL,pretty_name:"Response allowed while playing",default:!0}}};class Mo{constructor(e){this.jsPsych=e}trial(e,t,n){let i;var a=this.jsPsych.pluginAPI.audioContext();let s={rt:null,key:null,button:null,source:null};var r;this.jsPsych.pluginAPI.getAudioBuffer(t.stimulus).then((e=>{null!==a?(this.audio=a.createBufferSource(),this.audio.buffer=e,this.audio.connect(a.destination)):(this.audio=e,this.audio.currentTime=0),o()})).catch((e=>{console.error(`Failed to load audio file "${t.stimulus}". Try checking the file path. We recommend using the preload plugin to load audio files.`),console.error(e)}));const o=()=>{t.trial_ends_after_audio&&this.audio.addEventListener("ended",c),t.response_allowed_while_playing||t.trial_ends_after_audio||(this.audio.addEventListener("ended",h),this.audio.addEventListener("ended",d));var i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in audio-multi-response plugin. The length of the button_html array does not equal the length of the choices array");else for(var s=0;s<t.button_choices.length;s++)i.push(t.button_html);let o='<div id="jspsych-audio-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var l=i[s].replace(/%choice%/g,t.button_choices[s]);o+='<div class="jspsych-audio-multi-response-button" style="cursor: pointer; display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-audio-multi-response-button-'+s+'" data-choice="'+s+'">'+l+"</div>"}o+="</div>",null!==t.prompt&&(t.prompt_above_buttons?o='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"+o:o+='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"),e.innerHTML=o,t.response_allowed_while_playing?(d(),h()):u(),r=performance.now(),null!==a?(r=a.currentTime,this.audio.start(r)):this.audio.play(),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{c()}),t.trial_duration),n()},c=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),null!==a?this.audio.stop():this.audio.pause(),this.audio.removeEventListener("ended",c),this.audio.removeEventListener("ended",h),this.audio.removeEventListener("ended",d),this.jsPsych.pluginAPI.cancelAllKeyboardResponses();const n={rt:s.rt,stimulus:t.stimulus,keyboard_response:s.key,button_response:s.button,response_source:s.source};e.innerHTML="",this.jsPsych.finishTrial(n),i()};function l(e){!function(e){var n=performance.now(),i=Math.round(n-r);null!==a&&(n=a.currentTime,i=Math.round(1e3*(n-r)));s.button=parseInt(e),s.rt=i,s.source="button",u(),t.response_ends_trial&&c()}(e.currentTarget.getAttribute("data-choice"))}function u(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!0),e[t].removeEventListener("click",l)}}function d(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!1),e[t].addEventListener("click",l)}}const p=e=>{null==s.key&&(s=Object.assign({source:"keyboard",button:null},e)),t.response_ends_trial&&c()},h=()=>{if("NO_KEYS"!=t.keyboard_choices){let e;e=null!==a?{rt_method:"audio",audio_context:a,audio_context_start_time:r}:{rt_method:"performance"},this.jsPsych.pluginAPI.getKeyboardResponse(Object.assign({callback_function:p,valid_responses:t.keyboard_choices,persist:!1,allow_held_key:!1},e))}};return new Promise((e=>{i=e}))}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={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"},i={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"},a=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(a,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement(),s=()=>{null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(a.querySelector(`div[data-choice="${i.response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))};this.trial(a,e,(()=>{n(),e.response_allowed_while_playing?s():this.audio.addEventListener("ended",s)}))}}Mo.info=No;const zo={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Bo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||zo,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Bo(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Bo(this.logger,e)}}var $o=new Bo;class qo{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){[].concat(this.observers[e]).forEach((e=>{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}}function Vo(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return n.resolve=e,n.reject=t,n}function Yo(e){return null==e?"":""+e}function Go(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}const s="string"!=typeof t?[].concat(t):t.split(".");for(;s.length>1;){if(a())return{};const t=i(s.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return a()?{}:{obj:e,k:i(s.shift())}}function Ho(e,t,n){const{obj:i,k:a}=Go(e,t,Object);i[a]=n}function Wo(e,t){const{obj:n,k:i}=Go(e,t);if(n)return n[i]}function Ko(e,t,n){for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):Ko(e[i],t[i],n):e[i]=t[i]);return e}function Zo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Jo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Xo(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Jo[e])):e}const Qo=[" ",",","?","!",";"];function ec(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(n);let a=e;for(let e=0;e<i.length;++e){if(!a)return;if("string"==typeof a[i[e]]&&e+1<i.length)return;if(void 0===a[i[e]]){let s=2,r=i.slice(e,e+s).join(n),o=a[r];for(;void 0===o&&i.length>e+s;)s++,r=i.slice(e,e+s).join(n),o=a[r];if(void 0===o)return;if(null===o)return null;if(t.endsWith(r)){if("string"==typeof o)return o;if(r&&"string"==typeof o[r])return o[r]}const c=i.slice(e+s).join(n);return c?ec(o,c,n):void 0}a=a[i[e]]}return a}function tc(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class nc extends qo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[e,t];n&&"string"!=typeof n&&(r=r.concat(n)),n&&"string"==typeof n&&(r=r.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=e.split("."));const o=Wo(this.data,r);return o||!s||"string"!=typeof n?o:ec(this.data&&this.data[e]&&this.data[e][t],n,a)}addResource(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let r=[e,t];n&&(r=r.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(r=e.split("."),i=t,t=r[1]),this.addNamespaces(t),Ho(this.data,r,i),a.silent||this.emit("added",e,t,n,i)}addResources(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,a){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),i=n,n=t,t=r[1]),this.addNamespaces(t);let o=Wo(this.data,r)||{};i?Ko(o,n,a):o={...o,...n},Ho(this.data,r,o),s.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var ic={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,a){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,i,a))})),t}};const ac={};class sc extends qo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(i[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const i=Qo.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===i.length)return!0;const a=new RegExp(`(${i.map((e=>"?"===e?"\\?":e)).join("|")})`);let s=!a.test(e);if(!s){const t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(s=!0)}return s}(e,n,i));if(s&&!r){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:a};const s=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),e=s.join(i)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:r}=this.extractFromKey(e[e.length-1],t),o=r[r.length-1],c=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${o}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:o}:`${o}${e}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:o}:s}const u=this.resolve(e,t);let d=u&&u.res;const p=u&&u.usedKey||s,h=u&&u.exactUsedKey||s,f=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0&&("string"!=typeof m||"[object Array]"!==f)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:r}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u):e}if(a){const e="[object Array]"===f,n=e?[]:{},i=e?h:p;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const s=`${i}${a}${e}`;n[e]=this.translate(s,{...t,joinArrays:!1,ns:r}),n[e]===s&&(n[e]=d[e])}d=n}}else if(g&&"string"==typeof m&&"[object Array]"===f)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let i=!1,r=!1;const l=void 0!==t.count&&"string"!=typeof t.count,p=sc.hasDefaultValue(t),h=l?this.pluralResolver.getSuffix(c,t.count,t):"",f=t.ordinal&&l?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",m=t[`defaultValue${h}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(i=!0,d=m),this.isValidLookup(d)||(r=!0,d=s);const g=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:d,_=p&&m!==d&&this.options.updateMissing;if(r||i||_){if(this.logger.log(_?"updateKey":"missingKey",c,o,s,_?m:d),a){const e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const i=(e,n,i)=>{const a=p&&i!==d?i:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,o,n,a,_,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,o,n,a,_,t),this.emit("missingKey",e,o,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{i([e],s+n,t[`defaultValue${n}`]||m)}))})):i(e,s,m))}d=this.extendTranslation(d,e,t,u,n),r&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${o}:${s}`),(r||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${s}`:s,i?d:void 0):this.options.parseMissingKeyHandler(d))}return i?(u.res=d,u):d}extendTranslation(e,t,n,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const r="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(r){const t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),r){const t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return a&&a[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null):s.translate(...i,t)}),n)),n.interpolation&&this.interpolator.reset()}const r=n.postProcess||this.options.postProcess,o="string"==typeof r?[r]:r;return null!=e&&o&&o.length&&!1!==n.applyPostProcessor&&(e=ic.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...n}:n,this)),e}resolve(e){let t,n,i,a,s,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const o=this.extractFromKey(e,r),c=o.key;n=c;let l=o.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==r.count&&"string"!=typeof r.count,d=u&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);l.forEach((e=>{this.isValidLookup(t)||(s=e,!ac[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ac[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;a=n;const s=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,c,n,e,r);else{let e;u&&(e=this.pluralResolver.getSuffix(n,r.count,r));const t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(s.push(c+e),r.ordinal&&0===e.indexOf(i)&&s.push(c+e.replace(i,this.options.pluralSeparator)),d&&s.push(c+t)),p){const n=`${c}${this.options.contextSeparator}${r.context}`;s.push(n),u&&(s.push(n+e),r.ordinal&&0===e.indexOf(i)&&s.push(n+e.replace(i,this.options.pluralSeparator)),d&&s.push(n+t))}}let o;for(;o=s.pop();)this.isValidLookup(t)||(i=o,t=this.getResource(n,e,o,r))})))}))})),{res:t,usedKey:n,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function rc(e){return e.charAt(0).toUpperCase()+e.slice(1)}class oc{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=tc(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=tc(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=rc(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=rc(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=rc(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),n.forEach((e=>{i.indexOf(e)<0&&a(this.formatLanguageCode(e))})),i}}let cc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],lc={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const uc=["v1","v2","v3"],dc=["v4"],pc={zero:0,one:1,two:2,few:3,many:4,other:5};class hc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=$o.create("pluralResolver"),this.options.compatibilityJSON&&!dc.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return cc.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:lc[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(tc(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>pc[e]-pc[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const a=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!uc.includes(this.options.compatibilityJSON)}}function fc(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=function(e,t,n){const i=Wo(e,n);return void 0!==i?i:Wo(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=ec(e,n,i),void 0===s&&(s=ec(t,n,i))),s}class mc{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Xo,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Zo(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Zo(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Zo(t.nestingPrefix):t.nestingPrefixEscaped||Zo("$t("),this.nestingSuffix=t.nestingSuffix?Zo(t.nestingSuffix):t.nestingSuffixEscaped||Zo(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,i){let a,s,r;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}const l=e=>{if(e.indexOf(this.formatSeparator)<0){const a=fc(t,o,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,n,{...i,...t,interpolationkey:e}):a}const a=e.split(this.formatSeparator),s=a.shift().trim(),r=a.join(this.formatSeparator).trim();return this.format(fc(t,o,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...i,...t,interpolationkey:s})};this.resetRegExp();const u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}].forEach((t=>{for(r=0;a=t.regex.exec(e);){const n=a[1].trim();if(s=l(n),void 0===s)if("function"==typeof u){const t=u(e,a,i);s="string"==typeof t?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(d){s=a[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),s=""}else"string"==typeof s||this.useRawValueToEscape||(s=Yo(s));const o=t.safeValue(s);if(e=e.replace(a[0],o),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,r++,r>=this.maxReplaces)break}})),e}nest(e,t){let n,i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const i=e.split(new RegExp(`${n}[ ]*{`));let s=`{${i[1]}`;e=i[0],s=this.interpolate(s,a);const r=s.match(/'/g),o=s.match(/"/g);(r&&r.length%2==0&&!o||o.length%2!=0)&&(s=s.replace(/'/g,'"'));try{a=JSON.parse(s),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${s}`}return delete a.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let o=[];a={...s},a=a.replace&&"string"!=typeof a.replace?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),o=e,c=!0}if(i=t(r.call(this,n[1].trim(),a),a),i&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Yo(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),c&&(i=o.reduce(((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}function gc(e){const t={};return function(n,i,a){const s=i+JSON.stringify(a);let r=t[s];return r||(r=e(tc(i),a),t[s]=r),r(n)}}class _c{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$o.create("formatter"),this.options=e,this.formats={number:gc(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:gc(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:gc(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:gc(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:gc(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=gc(t)}format(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:a,formatOptions:s}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);"currency"===t&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach((e=>{if(!e)return;const[t,...i]=e.split(":"),a=i.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=a),"false"===a&&(n[t.trim()]=!1),"true"===a&&(n[t.trim()]=!0),isNaN(a)||(n[t.trim()]=parseInt(a,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[a]){let t=e;try{const r=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},o=r.locale||r.lng||i.locale||i.lng||n;t=this.formats[a](e,o,{...s,...i,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e}),e)}}class yc extends qo{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=$o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(e,t,n,i){const a={},s={},r={},o={};return e.forEach((e=>{let i=!0;t.forEach((t=>{const r=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,i=!1,void 0===s[r]&&(s[r]=!0),void 0===a[r]&&(a[r]=!0),void 0===o[t]&&(o[t]=!0)))})),i||(r[e]=!0)})),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const i=e.split("|"),a=i[0],s=i[1];t&&this.emit("failedLoading",a,s,t),n&&this.store.addResourceBundle(a,s,n),this.state[e]=t?-1:2;const r={};this.queue.forEach((n=>{!function(e,t,n,i){const{obj:a,k:s}=Go(e,t,Object);a[s]=a[s]||[],i&&(a[s]=a[s].concat(n)),i||a[s].push(n)}(n.loaded,[a],s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{r[e]||(r[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===r[e][t]&&(r[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:a,callback:s});this.readingCalls++;const r=(r,o)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}r&&o&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,i+1,2*a,s)}),a):s(r,o)},o=this.backend[n].bind(this.backend);if(2!==o.length)return o(e,t,r);try{const n=o(e,t);n&&"function"==typeof n.then?n.then((e=>r(null,e))).catch(r):r(null,n)}catch(e){r(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const a=this.queueLoad(e,t,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,((n,s)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`,n),!n&&s&&this.logger.log(`${t}loaded namespace ${a} for language ${i}`,s),this.loaded(e,n,s)}))}saveMissing(e,t,n,i,a){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const o={...s,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let a;a=5===c.length?c(e,t,n,i,o):c(e,t,n,i),a&&"function"==typeof a.then?a.then((e=>r(null,e))).catch(r):r(null,a)}catch(e){r(e)}else c(e,t,n,i,r,o)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}function vc(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,i)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function bc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function wc(){}class xc extends qo{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=bc(e),this.services={},this.logger=$o,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const i=vc();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options={...i,...this.options,...bc(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?$o.init(a(this.modules.logger),this.options):$o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=_c);const n=new oc(this.options);this.store=new nc(this.options.resources,this.options);const s=this.services;s.logger=$o,s.resourceStore=this.store,s.languageUtils=n,s.pluralResolver=new hc(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=a(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new mc(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new yc(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.emit(t,...i)})),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new sc(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.emit(t,...i)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=wc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const s=Vo(),r=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?r():setTimeout(r,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return t();const e=[],i=t=>{if(!t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)}))};if(n)i(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>i(e)))}this.options.preload&&this.options.preload.forEach((e=>i(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const i=Vo();return e||(e=this.languages),t||(t=this.options.ns),n||(n=wc),this.services.backendConnector.reload(e,t,(e=>{i.resolve(),n(e)})),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ic.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const i=Vo();this.emit("languageChanging",e);const a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(a(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},r=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||a(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{s(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),i}getFixedT(e,t,n){var i=this;const a=function(e,t){let s;if("object"!=typeof t){for(var r=arguments.length,o=new Array(r>2?r-2:0),c=2;c<r;c++)o[c-2]=arguments[c];s=i.options.overloadTranslationOptionHandler([e,t].concat(o))}else s={...t};s.lng=s.lng||a.lng,s.lngs=s.lngs||a.lngs,s.ns=s.ns||a.ns,s.keyPrefix=s.keyPrefix||n||a.keyPrefix;const l=i.options.keySeparator||".";let u;return u=s.keyPrefix&&Array.isArray(e)?e.map((e=>`${s.keyPrefix}${l}${e}`)):s.keyPrefix?`${s.keyPrefix}${l}${e}`:e,i.t(u,s)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const s=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,s);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!s(n,e)||i&&!s(a,e)))}loadNamespaces(e,t){const n=Vo();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Vo();"string"==typeof e&&(e=[e]);const i=this.options.preload||[],a=e.filter((e=>i.indexOf(e)<0));return a.length?(this.options.preload=i.concat(a),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new oc(vc());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new xc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},a=new xc(i);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));return["store","services","language"].forEach((e=>{a[e]=this[e]})),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new nc(this.store.data,i),a.services.resourceStore=a.store),a.translator=new sc(a.services,i),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];a.emit(e,...n)})),a.init(i,t),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ec=xc.createInstance();function Sc(e){return Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(e)}function kc(e){var t=function(e,t){if("object"!==Sc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Sc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sc(t)?t:String(t)}function Tc(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,kc(i.key),i)}}Ec.createInstance=xc.createInstance,Ec.createInstance,Ec.dir,Ec.init,Ec.loadResources,Ec.reloadResources,Ec.use,Ec.changeLanguage,Ec.getFixedT,Ec.t,Ec.exists,Ec.setDefaultNamespace,Ec.hasLoadedNamespace,Ec.loadNamespaces,Ec.loadLanguages;var Rc=[],Ic=Rc.forEach,Ac=Rc.slice;var Cc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Oc=function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*n*1e3)),i&&(a.domain=i),document.cookie=function(e,t,n){var i=n||{};i.path=i.path||"/";var a=encodeURIComponent(t),s="".concat(e,"=").concat(a);if(i.maxAge>0){var r=i.maxAge-0;if(Number.isNaN(r))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(r))}if(i.domain){if(!Cc.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Cc.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}(e,encodeURIComponent(t),a)},Lc=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.length)}return null},jc={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=Lc(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&Oc(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Pc={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=n.substring(1).split("&"),a=0;a<i.length;a++){var s=i[a].indexOf("=");if(s>0)i[a].substring(0,s)===e.lookupQuerystring&&(t=i[a].substring(s+1))}}return t}},Uc=null,Fc=function(){if(null!==Uc)return Uc;try{Uc="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Uc=!1}return Uc},Dc={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Fc()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Fc()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Nc=null,Mc=function(){if(null!==Nc)return Nc;try{Nc="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Nc=!1}return Nc},zc={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Mc()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Mc()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Bc={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},$c={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},qc={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Vc={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var Yc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}var t,n,i;return t=e,n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return Ic.call(Ac.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(jc),this.addDetector(Pc),this.addDetector(Dc),this.addDetector(zc),this.addDetector(Bc),this.addDetector($c),this.addDetector(qc),this.addDetector(Vc)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var i=t.detectors[e].lookup(t.options);i&&"string"==typeof i&&(i=[i]),i&&(n=n.concat(i))}})),n=n.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}],n&&Tc(t.prototype,n),i&&Tc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Yc.type="languageDetector";var Gc={progressBar:"Progress Complete",preloadTrial:{messageText:"Please wait while the experiment loads. This may take a few minutes."},fullScreenTrial:{prompt:"The experiment will switch to full screen mode. <br/> Click the button to continue.",buttonText:"Continue"},navigation:{continueButtonText:"Press <span class='yellow'>{{input}}</span> to {{action}}",studentSelect:"Press <span class='yellow'>a number key</span> to pick a student "},introduction:{gradeSelect:{text1:"What grade are you in?",text2:"To get started, press the number key on your keyboard of the grade you are in.",text2Mobile:"To get started, press the number of the grade you are in.",text3:"For example, you would press “4” if you are in 4th grade.",text4:"Press <span class='yellow'>the number key </span> of the grade you are in to continue ",text4Mobile:"Press <span class='yellow'>the number</span> of the grade you are in to continue "},intro:{text1:"Welcome to the Sentence Reading Efficiency activity!",text2:"In this activity, you are going to decide if a sentence is true or not.",text3:"Some of the sentences may be confusing, but do your best to label as many as you can.",text4:"Welcome! You are the new professor at Sentencia Academy.",text5:"We have some bright students that need your help with their sentence reading homework.",text6:"You will help these students decide if a sentence is true or not."}},practice:{intro:{text1:"Instructions",text2:"In this activity, you are going to read some sentences and decide whether each sentence is true or false.",text3:"Press the <span class='orange'><b> LEFT ARROW KEY </b></span> if a sentence is false. For example, 'A fish lives on land', is a false sentence so you would press the <span class='orange'> <b> left arrow key. </b> </span>",text3Mobile:"Press the <span class='orange'><b> LEFT ARROW </b></span> if a sentence is false. For example, 'A fish lives on land', is a false sentence so you would press the <span class='orange'> <b> left arrow. </b> </span>",text4:"Press the <span class='blue'><b> RIGHT ARROW KEY </b></span> if a sentence is true. For example, 'A cow is an animal', is a true sentence so you would press the <span class='blue'> <b> right arrow key. </b> </span>",text4Mobile:"Press the <span class='blue'><b> RIGHT ARROW </b></span> if a sentence is true. For example, 'A cow is an animal', is a true sentence so you would press the <span class='blue'> <b> right arrow. </b> </span>",text5:"Let's do some for practice!",text6:"Press <span class='yellow'>any key</span> to begin the practice sentences",text6Mobile:"Press <span class='yellow'>HERE</span> to begin the practice sentences"},postPracticeIntro:{text1:"Great job on those practice sentences!",text2:"You are ready to start the game.",text3:"You will have a <b> few minutes </b> to label as many sentences as you can.",text4:"Read each sentence silently and work as fast as you can without making mistakes.",text5:"It's okay if you don't know the answer. Give it your best guess and move to the next one."},feedback:{text1:"You pressed the {{arrow}} arrow key for {{type}} sentences.",text1Mobile:"You pressed the {{arrow}} arrow for {{type}} sentences.",text2:"is a {{type}} sentence. Press the {{arrow}} arrow key to continue.",text2Mobile:"is a {{type}} sentence. Press the {{arrow}} arrow to continue."},postPracticeReminder:{text1:"Press the <span class='orange'> <b> left arrow key </b> </span> for <span class='orange'> <b> false sentences.</b> </span>",text1Mobile:"Press the <span class='orange'> <b> left arrow </b> </span> for <span class='orange'> <b> false sentences.</b> </span>",text2:"Press the <span class='blue'> <b> right arrow key </b> </span> for <span class='blue'> <b> true sentences. </b> </span>",text2Mobile:"Press the <span class='blue'> <b> right arrow </b> </span> for <span class='blue'> <b> true sentences. </b> </span>",text3:"Do your best!",text4:"Ready?"}},characterSelect:{studentSelect:{paragraph1:"Now, let's meet your students!",paragraph2:"Press the number key on your keyboard to pick the student you would like to work with.",paragraph2Mobile:"Press the number of the student you would like to work with.",paragraph3:"Press <span class='yellow'>a number key</span> to pick a student",paragraph3MobileBefore:"Press ",paragraph3MobileSpan:"a number ",paragraph3MobileAfter:"to pick a student"},studentIntro:{paragraph1:"Hi Professor! It's nice to meet you. My name is",paragraph2:"I'm having trouble with my sentence reading homework. I need to finish it so I can",paragraph3:"Can you help me?"}},gameBreak:{halfwayScreen:{text1:"Great job!",text2:"You are halfway through - let's keep going.",text3:"Wow! I'm getting the hang of this!",text4:"We're halfway through - let's keep going."},endScreen:{text1:"Amazing job!",text2:"You are all done. Thank you so much for completing our activity.",text3:"Amazing job, Professor!",text4:"finished in record time. Thank you for your help!"},debrief:{text1:"Thank you for your participation!",text2:"Your responses have been saved."}},terms:{here:"HERE",anyKey:"ANY KEY",continue:"continue",practice:"practice",begin:"begin",left:"left",right:"right",save:"save your work",close:"close the game",true:"true",false:"false"}};(new Yc).addDetector({name:"defaultToEnglish",lookup:()=>"en"}),Ec.use(Yc).init({debug:!1,load:"languageOnly",fallbackLng:"en",detection:{order:["defaultToEnglish","querystring"]},resources:{en:{translation:Gc},es:{translation:"esTranslations"},it:{translation:"itTranslations"}}});const Hc={en:{corpusPractice:[{'\ufeff""':"0",sentence:"An apple is blue.",answer:"F",direction:"left",correctresponse:"arrowleft"},{'\ufeff""':"1",sentence:"You can read stories at school.",answer:"T",direction:"right",correctresponse:"arrowright"},{'\ufeff""':"2",sentence:"People drive cars.",answer:"T",direction:"right",correctresponse:"arrowright"},{'\ufeff""':"3",sentence:"You wear a hat on your foot.",answer:"F",direction:"left",correctresponse:"arrowleft"}],corpusLab:[{"":"1",sentence:"A blanket can be very soft.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_1"},{"":"2",sentence:"Fish have thumbs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_2"},{"":"3",sentence:"Sandwiches are food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_3"},{"":"4",sentence:"Some worms ride pumpkins to school.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_4"},{"":"5",sentence:"Sweaters can be made of coal.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_5"},{"":"6",sentence:"Some children are afraid of the dark.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_6"},{"":"7",sentence:"A teacher is a person that works at a school.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_7"},{"":"8",sentence:"The ocean is home to many aquatic animals.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_8"},{"":"9",sentence:"Triangles have five sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_9"},{"":"10",sentence:"Chefs cook meals in their beds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_10"},{"":"11",sentence:"People like to eat mud.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_11"},{"":"12",sentence:"Children can be sad.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_12"},{"":"13",sentence:"Cars have wheels.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_13"},{"":"14",sentence:"All cars are yellow.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_14"},{"":"15",sentence:"Trees have branches.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_15"},{"":"16",sentence:"Soda is always brown.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_16"},{"":"17",sentence:"Trash is thrown away in bathtubs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_17"},{"":"18",sentence:"Wolves are a type of monkey.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_18"},{"":"19",sentence:"Children enjoy playing with toys.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_19"},{"":"20",sentence:"All children are afraid of the sun.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_20"},{"":"21",sentence:"It is usually dark at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_21"},{"":"22",sentence:"Towels are often made of glass.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_22"},{"":"23",sentence:"A pillow can be very soft.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_23"},{"":"24",sentence:"A monkey has a face.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_24"},{"":"25",sentence:"Eyeglasses can help you see better.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_25"},{"":"26",sentence:"Some houses have back yards.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_26"},{"":"27",sentence:"Soccer is a game you play with only your hands.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_27"},{"":"28",sentence:"When you break a bone you normally have to wear a cast.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_28"},{"":"29",sentence:"Computers need electricity to work.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_29"},{"":"30",sentence:"Dogs always walk on two legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_30"},{"":"31",sentence:"Basketball is a game that you play with a fork.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_31"},{"":"32",sentence:"Spaceships are flown by cowboys.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_32"},{"":"33",sentence:"Some kids take music lessons.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_33"},{"":"34",sentence:"Grandparents can bring presents when they come to visit their family.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_34"},{"":"35",sentence:"Trash cans are where you store extra notebook paper.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_35"},{"":"36",sentence:"Most humans listen with their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_36"},{"":"37",sentence:"Chairs are alive.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_37"},{"":"38",sentence:"People can buy tomatoes at the market.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_38"},{"":"39",sentence:"Orange juice is always made of grapes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"lab_39"},{"":"40",sentence:"Some people like to run for exercise in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"lab_40"},{"":"41",sentence:"Snails are usually very fast.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_41"},{"":"42",sentence:"Apples grow on trees.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_42"},{"":"43",sentence:"Some slugs ride elephants to school.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_43"},{"":"44",sentence:"People drive cars on the road.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_44"},{"":"45",sentence:"Students never get in trouble when they cheat on tests.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_45"},{"":"46",sentence:"Whales have two legs.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_46"},{"":"47",sentence:"Girls can listen to music with earphones.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_47"},{"":"48",sentence:"A curtain is something you wear.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_48"},{"":"49",sentence:"Many nurses work in hospitals.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_49"},{"":"50",sentence:"Medicine is supposed to make you stay sick longer.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_50"},{"":"51",sentence:"Many people paint pictures with screwdrivers.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_51"},{"":"52",sentence:"The sun is bright.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_52"},{"":"53",sentence:"It is faster to run than it is to walk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_53"},{"":"54",sentence:"Stores are where you go to buy things.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_54"},{"":"55",sentence:"Elephants are large animals.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_55"},{"":"56",sentence:"Kittens are young cats.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_56"},{"":"57",sentence:"Blankets are made of metal.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_57"},{"":"58",sentence:"People like to eat dust.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_58"},{"":"59",sentence:"Most dogs wear leashes when they go for a walk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_59"},{"":"60",sentence:"Spiders like to drink orange juice out of coffee mugs.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_60"},{"":"61",sentence:"Some kids love red crayons.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_61"},{"":"62",sentence:"A doctor can work in a hospital that serves many people.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_62"},{"":"63",sentence:"People can use cash to pay in stores.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_63"},{"":"64",sentence:"Moms like eating hats.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_64"},{"":"65",sentence:"Lizards like to cook pasta.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_65"},{"":"66",sentence:"Many babies drink milk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_66"},{"":"67",sentence:"Air conditioners can lower the temperature of a room.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_67"},{"":"68",sentence:"Every magician is a fairy.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_68"},{"":"69",sentence:"People can wear socks to keep their feet warm.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_69"},{"":"70",sentence:"People sometimes drink milk.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_70"},{"":"71",sentence:"Most girls keep their books in a pond.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_71"},{"":"72",sentence:"Every basketball player is on a school team.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_72"},{"":"73",sentence:"Pockets can be used to keep change.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_73"},{"":"74",sentence:"Baseball is a game that you play with a knife.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_74"},{"":"75",sentence:"Lollipops are always made from vegetables.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_75"},{"":"76",sentence:"Towels are used to make things dry.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_76"},{"":"77",sentence:"Climbing up a mountain can be exhausting.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_77"},{"":"78",sentence:"Some shoes have laces.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_78"},{"":"79",sentence:"People drive cars in the sink.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_79"},{"":"80",sentence:"A cactus may grow in the desert.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_80"},{"":"81",sentence:"Most houses have grass on the ceiling.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_81"},{"":"82",sentence:"Most houses are made of foam.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_82"},{"":"83",sentence:"Dentists always give children candy and lemonade.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_83"},{"":"84",sentence:"People brush their teeth with mayonnaise.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_84"},{"":"85",sentence:"Eating only ice cream is healthy.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_85"},{"":"86",sentence:"Cows sing at night.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_86"},{"":"87",sentence:"The United States of America is in Africa.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_87"},{"":"88",sentence:"Some girls play the piano.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_88"},{"":"89",sentence:"Pets can keep people company.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_89"},{"":"90",sentence:"Adults can be sad.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_90"},{"":"91",sentence:"Blankets help keep you cold.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_91"},{"":"92",sentence:"Puppies carry backpacks on their back.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_92"},{"":"93",sentence:"When a traffic light is red you need to stop.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_93"},{"":"94",sentence:"All flowers are yellow.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_94"},{"":"95",sentence:"Friends can cheer you up when you are having a bad day.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_95"},{"":"96",sentence:"Tigers sometimes swing at playgrounds.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_96"},{"":"97",sentence:"Mice have ears.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_97"},{"":"98",sentence:"Cloudy days are always warm.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_98"},{"":"99",sentence:"Boys usually wash their hair with yogurt.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_99"},{"":"100",sentence:"Umbrellas are useful for keeping people dry when it rains.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_100"},{"":"101",sentence:"Bears can talk.",answer:"FALSE",direction:"left",difficulty:"medium",itemId:"lab_101"},{"":"102",sentence:"A picture can hang on the wall.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_102"},{"":"103",sentence:"Some people like to read books before they go to sleep.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_103"},{"":"104",sentence:"Adults are usually taller than their children.",answer:"TRUE",direction:"right",difficulty:"medium",itemId:"lab_104"},{"":"105",sentence:"Halloween is a holiday in February.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_105"},{"":"106",sentence:"Most babies know how to drive a car.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_106"},{"":"107",sentence:"Stones can be found near a river.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_107"},{"":"108",sentence:"A raven is a bird.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_108"},{"":"109",sentence:"Police officers drive school busses while on duty.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_109"},{"":"110",sentence:"Wheels are round.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_110"},{"":"111",sentence:"Television shows are longer than movies.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_111"},{"":"112",sentence:"Hats should be worn on your elbow.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_112"},{"":"113",sentence:"Every child holds pencils with their left hand.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_113"},{"":"114",sentence:"Snow always falls in the summer.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_114"},{"":"115",sentence:"A gardener works at a bakery.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_115"},{"":"116",sentence:"A cactus grows under the sea.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_116"},{"":"117",sentence:"Some people get to work using a spaceship.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_117"},{"":"118",sentence:"Friends can do many things together after school.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_118"},{"":"119",sentence:"A tricycle has two wheels.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_119"},{"":"120",sentence:"Ice helps to keep things cold.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_120"},{"":"121",sentence:"People can use credit cards to pay in stores.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_121"},{"":"122",sentence:"Another name for a present is a gift.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_122"},{"":"123",sentence:"Dish washers make plates dirty.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_123"},{"":"124",sentence:"Doors are always open.",answer:"FALSE",direction:"left",difficulty:"hard",itemId:"lab_124"},{"":"125",sentence:"Trampolines help you bounce higher.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_125"},{"":"126",sentence:"Trashcans can become smelly if trash is left inside too long.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_126"},{"":"127",sentence:"A mouse is a rodent that squeaks.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_127"},{"":"128",sentence:"The weather in the winter can be unpredictable.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_128"},{"":"129",sentence:"There are many types of lizards.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_129"},{"":"130",sentence:"Most people play board games with at least one other person.",answer:"TRUE",direction:"right",difficulty:"hard",itemId:"lab_130"}],corpusTOSREC:[{"":"1",sentence:"A fish can swim.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_1"},{"":"2",sentence:"Pigs can fly.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_2"},{"":"3",sentence:"Bears have fur.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_3"},{"":"4",sentence:"A fox can run.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_4"},{"":"5",sentence:"Mom can ride a kite.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_5"},{"":"6",sentence:"Cats drive a bus.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_6"},{"":"7",sentence:"The grass is green.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_7"},{"":"8",sentence:"Cows go to church.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_8"},{"":"9",sentence:"You can help a baby.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_9"},{"":"10",sentence:"You sleep on a log.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_10"},{"":"11",sentence:"Ducks like to dress up.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_11"},{"":"12",sentence:"You can eat an egg.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_12"},{"":"13",sentence:"A mouse can quack.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_13"},{"":"14",sentence:"Birds fly in the sky.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_14"},{"":"15",sentence:"Some girls like juice.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_15"},{"":"16",sentence:"A princess lives in the sun.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_16"},{"":"17",sentence:"You can keep money in the bank.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_17"},{"":"18",sentence:"An eagle is a small bird.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_18"},{"":"19",sentence:"You can feed a hamster.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_19"},{"":"20",sentence:"Popcorn can be cooked on a stove.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_20"},{"":"21",sentence:"You eat cereal with a fork.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_21"},{"":"22",sentence:"A lion can fly at night.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_22"},{"":"23",sentence:"You can fill a balloon with air.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_23"},{"":"24",sentence:"A fishing boat can be at a dock.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_24"},{"":"25",sentence:"You might find a cabin in the woods.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"26",sentence:"Football is played by frogs.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_26"},{"":"27",sentence:"You can find starfish in space.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_27"},{"":"28",sentence:"A joke might not be funny.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_28"},{"":"29",sentence:"You can ride a rooster.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_29"},{"":"30",sentence:"A doctor can help if you are sick.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_30"},{"":"31",sentence:"Clowns live in caves with crickets.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_31"},{"":"32",sentence:"You can practice how to sail a boat.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_32"},{"":"33",sentence:"Bullfrogs wear green boots on their feet.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_33"},{"":"34",sentence:"You say good-bye when you leave.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_34"},{"":"35",sentence:"You might earn money if you clean your room.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_35"},{"":"36",sentence:"A wagon is used for catching fish.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_36"},{"":"37",sentence:"An artist can paint a picture.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_37"},{"":"38",sentence:"You can grow onions in a tree.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_38"},{"":"39",sentence:"A boy might read an article in a book.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_39"},{"":"40",sentence:"You can use a rattle to write a letter.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_40"},{"":"41",sentence:"A horse can slide up a mountain covered in snow.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_41"},{"":"42",sentence:"Raindrops can fall down a chimney.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_42"},{"":"43",sentence:"You might find a parade of ants at a picnic.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_43"},{"":"44",sentence:"A boy can use a ladder to climb into a tree house.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_44"},{"":"45",sentence:"Doughnuts like to read comic books.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_45"},{"":"46",sentence:"You might learn counting and addition at school.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_46"},{"":"47",sentence:"The weather is hot and sunny in the Arctic.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_47"},{"":"48",sentence:"Lobsters might be found eating grain in a snowstorm.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_48"},{"":"49",sentence:"Sharks like to ride on moving skateboards.",grade:"1",answer:"FALSE",direction:"left",itemId:"TOSREC_49"},{"":"50",sentence:"A couch and tables are for sale in a furniture store.",grade:"1",answer:"TRUE",direction:"right",itemId:"TOSREC_50"},{"":"51",sentence:"A boy can eat cake.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_51"},{"":"52",sentence:"It is hot in the snow.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_52"},{"":"53",sentence:"A horse lives in a barn.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_53"},{"":"54",sentence:"The sun is dark.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_54"},{"":"55",sentence:"A car can walk.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_55"},{"":"56",sentence:"You can look at a house.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_56"},{"":"57",sentence:"A girl can wear a shoe.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_57"},{"":"58",sentence:"You write with gum.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_58"},{"":"59",sentence:"You can drive a hen.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_59"},{"":"60",sentence:"Fish swim in a lake.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_60"},{"":"61",sentence:"A tiger will roar.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_61"},{"":"62",sentence:"A princess lives on the sun.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_62"},{"":"63",sentence:"You eat cereal with a fork.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_21"},{"":"64",sentence:"There is sand at the beach.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_63"},{"":"65",sentence:"You can buy some food in a market.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_64"},{"":"66",sentence:"Moths listen to moons.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_65"},{"":"67",sentence:"You can cook an airport.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_66"},{"":"68",sentence:"A doctor can help if you are sick.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_30"},{"":"69",sentence:"A lion can fly at night.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_22"},{"":"70",sentence:"Birds make nests for their babies.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_67"},{"":"71",sentence:"A boy might read an article.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_68"},{"":"72",sentence:"A lighthouse shines brightly at night.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_69"},{"":"73",sentence:"You might find an island in your cereal.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_70"},{"":"74",sentence:"Ladders are always made of steak.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_71"},{"":"75",sentence:"You might find a parade of ants at a picnic.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_43"},{"":"76",sentence:"A chipmunk can work on the railroad.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_72"},{"":"77",sentence:"An artist can paint a picture.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_37"},{"":"78",sentence:"You can write with an onion.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_73"},{"":"79",sentence:"You might find a starfish jogging by the sea.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_74"},{"":"80",sentence:"A boy can use a ladder to climb into a tree house.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_44"},{"":"81",sentence:"The alphabet is made of coal and sticks.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_75"},{"":"82",sentence:"Raindrops can fall down a chimney.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_42"},{"":"83",sentence:"A carrot has three eyes, one nose, and a mouth.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_76"},{"":"84",sentence:"You may borrow a pencil from a cat.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_77"},{"":"85",sentence:"A mother will be proud if her children fail in school.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_78"},{"":"86",sentence:"Baby chickens are called chicks.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_79"},{"":"87",sentence:"A storm can produce flooding.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_80"},{"":"88",sentence:"Doughnuts grow in the ground with spinach.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_81"},{"":"89",sentence:"A mule might pull a heavy wagon up a steep hill.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_82"},{"":"90",sentence:"A lighthouse is used to shine light for ships sailing to shore.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_83"},{"":"91",sentence:"Cattle swim in catnip.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_84"},{"":"92",sentence:"Some greyhounds are raised for racing around a track.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_85"},{"":"93",sentence:"Students are supposed to obey the rule of the class.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_86"},{"":"94",sentence:"You can iron wrinkles out of puppies.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_87"},{"":"95",sentence:"If you have a lot of school spirit you might cheer loudly at games.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_88"},{"":"96",sentence:"Mice play checkers with cats on Tuesday mornings.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_89"},{"":"97",sentence:"You can find icebergs in the desert.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_90"},{"":"98",sentence:"Some people who want to lose weight count calories.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_91"},{"":"99",sentence:"It is a crime if a boy shoplifts candy from a store.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_92"},{"":"100",sentence:"A shark can play the bagpipes at a baseball game.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_93"},{"":"101",sentence:"You might find an old arrowhead buried in the dirt.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_94"},{"":"102",sentence:"The planets can be found in a pineapple under the sea.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_95"},{"":"103",sentence:"Puppies gallop faster than horses.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"104",sentence:"A doctor uses a telescope to check your heart.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"105",sentence:"A relative can be your cousin.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_98"},{"":"106",sentence:"A teacher might have an assistant in the classroom.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_99"},{"":"107",sentence:"A cowboy is a person who enjoys riding seals.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"108",sentence:"You might use goggles to see while swimming under water.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_101"},{"":"109",sentence:"Eyeglasses are meant to be worn inside your socks.",grade:"2",answer:"FALSE",direction:"left",itemId:"TOSREC_102"},{"":"110",sentence:"A girl can be a bridesmaid in her sister�s wedding.",grade:"2",answer:"TRUE",direction:"right",itemId:"TOSREC_103"},{"":"111",sentence:"The sun is round.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_104"},{"":"112",sentence:"A ball can see.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_105"},{"":"113",sentence:"Fish swim in a lake.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_60"},{"":"114",sentence:"A baby can row a boat.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_106"},{"":"115",sentence:"You can clean a room.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_107"},{"":"116",sentence:"Schoolwork can be hard to do.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_108"},{"":"117",sentence:"A hamster can have ten feet.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_109"},{"":"118",sentence:"Friday is a month of the year.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_110"},{"":"119",sentence:"A prince likes to eat sand for dinner.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_111"},{"":"120",sentence:"A car requires gas.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_112"},{"":"121",sentence:"A girl can talk on a telephone.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_113"},{"":"122",sentence:"A banana is good to drink.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_114"},{"":"123",sentence:"A state has a capital.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_115"},{"":"124",sentence:"You play checkers on a journal.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_116"},{"":"125",sentence:"You can move a mountain in a wagon.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_117"},{"":"126",sentence:"A storm might be powerful.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_118"},{"":"127",sentence:"A lighthouse can be in a harbor.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_119"},{"":"128",sentence:"A porcupine is fun to pet.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_120"},{"":"129",sentence:"Chrome is always very dull.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_121"},{"":"130",sentence:"A dog can be hard to control if a rabbit runs by.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_122"},{"":"131",sentence:"A teenager is a boy or girl who is less than ten years old.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_123"},{"":"132",sentence:"A student might need help doing homework.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_124"},{"":"133",sentence:"Most people wear jackets on their feet rather than shoes.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_125"},{"":"134",sentence:"A hawk might fly down from a tree to chase after a rabbit.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_126"},{"":"135",sentence:"If you have a lot of school spirit you might cheer loudly at games.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_88"},{"":"136",sentence:"You can buy popcorn in a movie theter.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_127"},{"":"137",sentence:"A melon is a fish that is bigger than a salmon.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_128"},{"":"138",sentence:"A bucket filled with a hundred gold coins is worthless.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_129"},{"":"139",sentence:"A majority of votes means more than half of them.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_130"},{"":"140",sentence:"It is unusual for the sun to rise in the morning.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_131"},{"":"141",sentence:"A family might go to a store to purchase a new bed.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_132"},{"":"142",sentence:"A watermelon can be too big for a small boy to lift.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_133"},{"":"143",sentence:"A castle made in the sand at the beach is very sturdy.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_134"},{"":"144",sentence:"Most people eat their breakfast at midnight.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_135"},{"":"145",sentence:"A tortoise is faster than a greyhound.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_136"},{"":"146",sentence:"A test tube might break if you drop it during an experiment.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_137"},{"":"147",sentence:"You should invite vultures to a wedding.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_138"},{"":"148",sentence:"A tongue makes a good hammer for pounding nails into a wall.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_139"},{"":"149",sentence:"A captain might request cheese for his chili.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_140"},{"":"150",sentence:"A principal might talk with a girl about what she wore to school.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_141"},{"":"151",sentence:"An astronaut is a person who sells used cars for a living.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_142"},{"":"152",sentence:"Some people prefer to have their own pillow with them on a trip.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_143"},{"":"153",sentence:"Your arm is connected to your elbow by your ankle.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_144"},{"":"154",sentence:"A person who cooks a meal may go to the store to buy an ingredient.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_145"},{"":"155",sentence:"A cowboy who rides bareback does not use a saddle.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_146"},{"":"156",sentence:"A doctor might tell a patient to exercise more.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_147"},{"":"157",sentence:"A passenger is a man who plays a violin.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_148"},{"":"158",sentence:"A boy who is not a good swimmer will wear luggage to keep from sinking.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_149"},{"":"159",sentence:"A candidate for Congress might ask you to decide to vote for her.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_150"},{"":"160",sentence:"Bison like to dress up in costumes and go to dinner parties.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_151"},{"":"161",sentence:"A teacher might recommend that you stop talking to a friend and do your work.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_152"},{"":"162",sentence:"People walked on the moon in prehistoric times.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_153"},{"":"163",sentence:"You can get some information that you need from a radio.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_154"},{"":"164",sentence:"Playing ball can be a good way to get recreation and exercise.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_155"},{"":"165",sentence:"Mathematics is the study of plant life.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_156"},{"":"166",sentence:"Bubbles you blow from bubble gum are very durable.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_157"},{"":"167",sentence:"People who build tunnels through mountains might use dynamite.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_158"},{"":"168",sentence:"A penny is a significant sum of money.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_159"},{"":"169",sentence:"A viscious dog is very friendly and safe around children.",grade:"3",answer:"FALSE",direction:"left",itemId:"TOSREC_160"},{"":"170",sentence:"You might be told a tale about ghosts who inhabit cemeteries.",grade:"3",answer:"TRUE",direction:"right",itemId:"TOSREC_161"},{"":"171",sentence:"You can look at a book.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_162"},{"":"172",sentence:"Snow is green.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_163"},{"":"173",sentence:"You can fly a kite.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_164"},{"":"174",sentence:"A father can go to work.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_165"},{"":"175",sentence:"Ants have hats.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_166"},{"":"176",sentence:"A tiger will roar.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_61"},{"":"177",sentence:"You can ride a rooster.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_29"},{"":"178",sentence:"Football is played by frogs.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_26"},{"":"179",sentence:"You wear a ring on your elbow.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_167"},{"":"180",sentence:"You might find a cabin in the woods.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"181",sentence:"A lighthouse shines brightly at night.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_69"},{"":"182",sentence:"You can grow onions in a tree.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_38"},{"":"183",sentence:"A storm can produce flooding.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_80"},{"":"184",sentence:"Ladders are always made of steak.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_71"},{"":"185",sentence:"A horse can slide up a mountain covered in snow.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_41"},{"":"186",sentence:"A student may have to go see the principal.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_168"},{"":"187",sentence:"A family might go to a store to purchase a bed.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_169"},{"":"188",sentence:"Lobsters might be found eating grain in a snowstorm.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_48"},{"":"189",sentence:"You might invite your friends to your birthday party.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_170"},{"":"190",sentence:"A salmon will run after bears to eat them for dinner.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_171"},{"":"191",sentence:"Bacon is grown in dry climates.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_172"},{"":"192",sentence:"A boy might make a girl blush by giving her candy and flowers.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_173"},{"":"193",sentence:"The planets can be found in a pineapple under the sea.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_95"},{"":"194",sentence:"You might find an old arrowhead buried in the dirt.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_94"},{"":"195",sentence:"A relative can be your cousin.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_98"},{"":"196",sentence:"You can find several bodyguards at the White House.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_174"},{"":"197",sentence:"Velvet is an expensive product made of hamsters.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_175"},{"":"198",sentence:"Potato farmers love droughts in the spring.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_176"},{"":"199",sentence:"A man might smoke a cigar while playing a game of poker with friends.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_177"},{"":"200",sentence:"Puppies gallop faster than horses.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"201",sentence:"A teacher might have an assistant in the classroom.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_99"},{"":"202",sentence:"You might go to a conference to learn more about playing chess.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_178"},{"":"203",sentence:"A doctor uses a telescope to check your heart.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"204",sentence:"A cannon is a small owl that is easily thrown into the air.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_179"},{"":"205",sentence:"Dwarf hamsters eat entire trees.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_180"},{"":"206",sentence:"A girl can be a bridesmaid in her sister's wedding.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_181"},{"":"207",sentence:"A cowboy is a person who enjoys riding seals.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"208",sentence:"Eyeglasses are meant to be worn inside your socks.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_102"},{"":"209",sentence:"A blacksmith hammers shoes for horses out of hot metal.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_182"},{"":"210",sentence:"You might use goggles to see while swimming under water.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_101"},{"":"211",sentence:"Sneezing when you go out is an emergency.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_183"},{"":"212",sentence:"Some airplanes fly at a very high altitude.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"213",sentence:"If you win a million dollars you will be dejected.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_185"},{"":"214",sentence:"An amateur athlete might train after school.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_186"},{"":"215",sentence:"Too many absences can make it difficult to keep up with your work and get good grades.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_187"},{"":"216",sentence:"If you are careless when doing work you can make mistakes.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_188"},{"":"217",sentence:"A doctor spends most of her time examining rocks and comets.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_189"},{"":"218",sentence:"Firecrackers are good to eat for dinner.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_190"},{"":"219",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"220",sentence:"Fertilizer is used to keep plants from growing.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_192"},{"":"221",sentence:"A planet that is habitable will support life.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_193"},{"":"222",sentence:"Dynamite is often used in cooking.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_194"},{"":"223",sentence:"Frost can appear on a vehicle if the climate is extremely cold.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_195"},{"":"224",sentence:"An assertive girl is likely to say what she really thinks rather than keep quiet.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_196"},{"":"225",sentence:"The weather always is very cold at the equator.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_197"},{"":"226",sentence:"Someone with a large appetite will eat very little food.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_198"},{"":"227",sentence:"Not being able to swim is a barrier to having a career as a swimming instructor.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_199"},{"":"228",sentence:"Wearing a blindfold is better than wearing glasses if you cannot see the board clearly.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_200"},{"":"229",sentence:"A solitary bird flying overhead will block out the sun and make it dark during the day.",grade:"4",answer:"FALSE",direction:"left",itemId:"TOSREC_201"},{"":"230",sentence:"A boomerang that has been thrown correctly is supposed to come back to the person who threw it.",grade:"4",answer:"TRUE",direction:"right",itemId:"TOSREC_202"},{"":"231",sentence:"An airplane can fly high.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_203"},{"":"232",sentence:"A cat will eat a mailbox.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_204"},{"":"233",sentence:"A bank has money.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_205"},{"":"234",sentence:"You can cook an airport.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_66"},{"":"235",sentence:"Sugar is good to put on your feet.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_206"},{"":"236",sentence:"A banana is a fruit you can eat.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_207"},{"":"237",sentence:"A storm might be powerful.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_118"},{"":"238",sentence:"A sentence ends with a comma.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_208"},{"":"239",sentence:"Rabbits like to eat carrots.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_209"},{"":"240",sentence:"A neighbor lives far away.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_210"},{"":"241",sentence:"A boy standing outside may have a shadow.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_211"},{"":"242",sentence:"Having lots of wrinkles means that you are very young.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_212"},{"":"243",sentence:"A teacher might write a story on a blackboard.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_213"},{"":"244",sentence:"A spark might terrify a new leather chair.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_214"},{"":"245",sentence:"Many schools are used to educate ants.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_215"},{"":"246",sentence:"A passenger is a man who plays violin.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_216"},{"":"247",sentence:"You can eat a hamburger with mustard for dinner.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_217"},{"":"248",sentence:"A microscope is for seeing things that are far away.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_218"},{"":"249",sentence:"A doctor might tell a patient to exercise more.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_147"},{"":"250",sentence:"Parents can ask for a conference to talk about a child's grades.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_219"},{"":"251",sentence:"Some airplanes fly at a very high altitude.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"252",sentence:"When food is abundant, there will be limited amounts of food to eat.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_220"},{"":"253",sentence:"If you go to the circus, you might get to see the acrobats perform.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_221"},{"":"254",sentence:"An amateur athlete might train after school.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_186"},{"":"255",sentence:"If you want to keep a secret, you should broadcast it on the radio.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_222"},{"":"256",sentence:"You will want to spend a lot of time with a person who is very annoying.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_223"},{"":"257",sentence:"Some children with an allergy might be allergic to pets such as dogs or cats.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_224"},{"":"258",sentence:"Too many absences can make it difficult to keep up with your work and get good grades.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_187"},{"":"259",sentence:"A friend you admire is someone you have little respect for.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_225"},{"":"260",sentence:"Some children who help around the house get an allowance from their parents.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_226"},{"":"261",sentence:"If an unexpected guest arrives, you might have to adjust your plans.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_227"},{"":"262",sentence:"An alert watchdog will sleep through a burglary attempt.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_228"},{"":"263",sentence:"If an automobile stops abruptly, a box on the the seat might fall on the floor.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_229"},{"":"264",sentence:"A billion dollars is a small amount of money for most of us.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_230"},{"":"265",sentence:"A student who studies abroad will leave her country to go to college.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_231"},{"":"266",sentence:"An illegal alien is a person who was born in this country.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_232"},{"":"267",sentence:"Barbecue is a sport that requires a big field, a baseball, and a bat.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_233"},{"":"268",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"269",sentence:"A barometer is good for telling how hot or cold it is outside.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_234"},{"":"270",sentence:"Archeology is a field of science that is used to predict if it will rain.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_235"},{"":"271",sentence:"A mechanic might recommend that you rotate your tires.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_236"},{"":"272",sentence:"Anything made of steel is flexible.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_237"},{"":"273",sentence:"An asteroid is best eaten for breakfast or dinner.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_238"},{"":"274",sentence:"Climbing a mountain can be treacherous.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_239"},{"":"275",sentence:"You might be told a tale about ghosts who inhabit cemeteries.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_161"},{"":"276",sentence:"A confidential story should be shared with others.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_240"},{"":"277",sentence:"A candidate who loses a close election might ask for a recount.�",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_241"},{"":"278",sentence:"A teacher might be emphatic about the need to follow classroom rules.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_242"},{"":"279",sentence:"Flies should be kept safe because they are endangered animals.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_243"},{"":"280",sentence:"Radioactive waste is good for the environment if it leaks out on the ground.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_244"},{"":"281",sentence:"Doing the same thing over and over again can be very monotonous.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_245"},{"":"282",sentence:"A victorious runner might have a reason to be happy.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_246"},{"":"283",sentence:"A gangster is a person who gives millions to charities.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_247"},{"":"284",sentence:"A fisherman might exaggerate the size of a trophy fish that got away.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_248"},{"":"285",sentence:"Many school children carry a fire hydrant in their backpacks in case a fire alarm occurs.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_249"},{"":"286",sentence:"Doing two hundred sit-ups requires stamina.",grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_250"},{"":"287",sentence:"A dissatisfied customer is likely to leave a very large tip after a meal.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_251"},{"":"288",sentence:'A good label for a box that contains all kinds of different things would be "Miscellaneous".',grade:"5",answer:"TRUE",direction:"right",itemId:"TOSREC_252"},{"":"289",sentence:"When a shortage of gasoline occurs, too much is available for purchase.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_253"},{"":"290",sentence:"A provisional decision is one that is permanent and not subject to change.",grade:"5",answer:"FALSE",direction:"left",itemId:"TOSREC_254"},{"":"291",sentence:"A bank has money.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_205"},{"":"292",sentence:"A car requires gas.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_112"},{"":"293",sentence:"Adults are small.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_255"},{"":"294",sentence:"Clowns live in caves with crickets.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_31"},{"":"295",sentence:"You might find a cabin in the woods.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_25"},{"":"296",sentence:"Some greyhounds are raised for racing around a track.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_85"},{"":"297",sentence:"A teenager is a boy or girl who is less than ten years old.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_123"},{"":"298",sentence:"A person might wear an apron while cooking.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_256"},{"":"299",sentence:"Some people who want to lose weight count calories.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_91"},{"":"300",sentence:"It is unusual for the sun to rise in the morning.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_131"},{"":"301",sentence:"Puppies gallop faster than horses.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_96"},{"":"302",sentence:"A person who gets lost might try to use a compass to get home safely.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_257"},{"":"303",sentence:"A doctor uses a telescope to check your heart.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_97"},{"":"304",sentence:"You might be anxious if you are about to take a spelling test.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_258"},{"":"305",sentence:"A cowboy is a person who enjoys riding seals.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_100"},{"":"306",sentence:"Drinking water is a good precaution to take if it is hot and you are going to run.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_259"},{"":"307",sentence:"Sneezing when you go out is an emergency.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_183"},{"":"308",sentence:"People ride to a shopping mall in envelopes.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_260"},{"":"309",sentence:"If you win an award, you should acknowledge people who helped you along the way.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_191"},{"":"310",sentence:"Firecrackers are good to eat for dinner.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_190"},{"":"311",sentence:"People who build tunnels through mountains might use dynamite.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_158"},{"":"312",sentence:"Blinking your eyes is a very dangerous thing to do.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_261"},{"":"313",sentence:"A light rain is an example of a major disaster.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_262"},{"":"314",sentence:"Frost can appear on a vehicle if the climate is extremely cold.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_195"},{"":"315",sentence:"A planet that is habitable will support life.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_193"},{"":"316",sentence:"A celebrity might be asked for her autograph.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_263"},{"":"317",sentence:"Men wear cosmetics to make them feel more intelligent.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_264"},{"":"318",sentence:"Dynamite is often used in cooking.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_194"},{"":"319",sentence:"Asthma is a problem that sometimes can make it difficult to breathe.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_265"},{"":"320",sentence:"A formidable challenge is one that is very easy to deal with.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_266"},{"":"321",sentence:"If you are right-handed, it probably will feel awkward if you attempt to write with your left hand.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_267"},{"":"322",sentence:"Identical twins are very easy to tell apart when you first meet them.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_268"},{"":"323",sentence:"It is easy to ignite a fire using matches under water.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_269"},{"":"324",sentence:"A boycott might be organized as a way to protest a decision made by a store.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_270"},{"":"325",sentence:"If you go to a restaurant with a buffet you get to pick whatever you want to eat.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_271"},{"":"326",sentence:"Birds, turtles, and trees are invisible.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_272"},{"":"327",sentence:"A microphone is used to take pictures on vacation.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_273"},{"":"328",sentence:"Charcoal is sometimes used to cook hamburgers or hot dogs.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_274"},{"":"329",sentence:"A penny is a significant sum of money.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_159"},{"":"330",sentence:"A contagious disease can be passed from one person to another.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_275"},{"":"331",sentence:"You can misunderstand people if they talk so quietly that you cannot hear them clearly.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_276"},{"":"332",sentence:"A generator can be useful if a storm causes the power to go out.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_277"},{"":"333",sentence:"The safest time to go swimming, boating, or fishing is during a severe typhoon.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_278"},{"":"334",sentence:"Good students might be honored for their accomplishments at a school assembly.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_279"},{"":"335",sentence:"A reluctant skydiver is eager to jump from an airplane.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_280"},{"":"336",sentence:"Most people wear ancient pyramids on their wrists for predicting weather.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_281"},{"":"337",sentence:"Not being able to swim is a barrier to having a career as a swimming instructor.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_199"},{"":"338",sentence:"A microscopic germ is bigger than a building but smaller than a city.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_282"},{"":"339",sentence:"A criminal who tries to blackmail someone may hope to get money from his victim.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_283"},{"":"340",sentence:"Most people would be disappointed to learn that they were millionaires.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_284"},{"":"341",sentence:"A confidential remark is not meant to be repeated to others.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_285"},{"":"342",sentence:"Winning the lottery would be complete agony for most people.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_286"},{"":"343",sentence:"A convict who attempts to escape from prison is likely to receive a longer sentence.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_287"},{"":"344",sentence:"An airplane accelerates down the runway before lifting off into the air.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_288"},{"":"345",sentence:"An abbreviated program is one that is longer than a complete program.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_289"},{"":"346",sentence:"Most parents will disapprove if their children earn perfect scores on a difficult and important test.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_290"},{"":"347",sentence:"Some criminals have an accomplice who accompanies them.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_291"},{"":"348",sentence:"Libraries prefer that all people be delinquent in returning books.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_292"},{"":"349",sentence:"A football game that ends with a tie score of fourteen to fourteen is an example of a decisive victory.",grade:"6",answer:"FALSE",direction:"left",itemId:"TOSREC_293"},{"":"350",sentence:"Bleach is sometimes used in washing machines to remove difficult stains from very dirty clothes.",grade:"6",answer:"TRUE",direction:"right",itemId:"TOSREC_294"},{"":"351",sentence:"You can play with a toy in the bathtub.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_295"},{"":"352",sentence:"Blue jays are smaller than ants.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_296"},{"":"353",sentence:"Farmers grow wheat in large fields.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_297"},{"":"354",sentence:"Birds make nests for their babies.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_67"},{"":"355",sentence:"Snakes are good at farming.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_298"},{"":"356",sentence:"You can buy popcorn in a movie theater.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_299"},{"":"357",sentence:"A test tube might break if you drop it during an experiment.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_137"},{"":"358",sentence:"You can find icebergs in the desert.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_90"},{"":"359",sentence:"Teenagers like to drive sponges to school.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_300"},{"":"360",sentence:"A man in prison can roam freely throughout the world.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_301"},{"":"361",sentence:"You might calculate to solve a problem in a math class.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_302"},{"":"362",sentence:"Some of our ancestors were born and lived in prehistoric times.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_303"},{"":"363",sentence:"An alert watchdog will sleep through a burglary attempt.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_228"},{"":"364",sentence:"If you spend more than your budget allows, you may run short of money.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_304"},{"":"365",sentence:"A friend you admire is someone you have little respect for.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_225"},{"":"366",sentence:"A teacher might put a bonus question on a test to give students extra credit.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_305"},{"":"367",sentence:"A boycott might be organized as a way to protect a decision made by a store.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_306"},{"":"368",sentence:"A hunter wears camouflage to be seen more easily.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_307"},{"":"369",sentence:"Men wear cosmetics to make them feel more intelligent.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_264"},{"":"370",sentence:"An automatic decision is one that requires a lot of thought.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_308"},{"":"371",sentence:"Doing the same thing over and over again can be monotonous.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_309"},{"":"372",sentence:"If you commit a serious crime you might be sent to a penitentiary.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_310"},{"":"373",sentence:"You may be asked to calculate answers to difficult problems in a college math class.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_311"},{"":"374",sentence:"Wearing a blindfold is better than wearing glasses if you cannot see the board.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_312"},{"":"375",sentence:"It would be dishonest to return a lost wallet with all of the money inside it to its owner.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_313"},{"":"376",sentence:"One way to find a solution to a disagreement is to look for a compromise.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_314"},{"":"377",sentence:"A disinfectant is useful for killing some germs that can cause illness.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_315"},{"":"378",sentence:"The main problem with having a famine is overly abundant food to eat.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_316"},{"":"379",sentence:"A math teacher who asks you to estimate an answer is asking for an answer that is exact.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_317"},{"":"380",sentence:"A speedometer is used to tell what the temperature is outside.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_318"},{"":"381",sentence:"Eating spoiled food can cause an upset stomach or other problems with digestion.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_319"},{"":"382",sentence:"A punctual student always is late for his classes or any appointments.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_320"},{"":"383",sentence:"Most adolescents go to school and like movies and listening to music.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_321"},{"":"384",sentence:"People have seven hundred thousand knuckles on their ankles and noses.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_322"},{"":"385",sentence:"Someone with a large appetite will eat very little food.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_198"},{"":"386",sentence:"If a tiger escaped from a zoo and was walking in a city, it would cause commotion.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_323"},{"":"387",sentence:"Most people would be disappointed to learn that they were millionaires.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_284"},{"":"388",sentence:"An automobile is useful for going out to eat or to the grocery store.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_324"},{"":"389",sentence:"A microscopic germ is bigger than a building but smaller than a city.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_282"},{"":"390",sentence:"A teacher might give you criticism about a paper you wrote to make you a better writer.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_325"},{"":"391",sentence:"Toxic oil spills in oceans, streams, and lakes are beneficial for the environment.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_326"},{"":"392",sentence:"The purpose of the population census is to count the number of rainy days every month.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_327"},{"":"393",sentence:"Very large farms with many kinds of livestock and many fileds for planting can cover a lot of acreage.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_328"},{"":"394",sentence:"Clam chowder is made from various spiders, peanuts, and several kinds of insects.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_329"},{"":"395",sentence:"A computer works best if it is thrown from the top floor of a tall building during a major thunderstorm.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_330"},{"":"396",sentence:"An adequate number of players on a team is required to be able to play an opponent.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_331"},{"":"397",sentence:"Giving to needy individuals who have less than you is an admirable thing to do",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_332"},{"":"398",sentence:"A leaf falling from a tree will endanger most every resident in a city.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_333"},{"":"399",sentence:"People who are adrift in a boat with a broken-down motor may be lucky and be rescued by a passing boater.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_334"},{"":"400",sentence:"Studying hard and listening in class are advisable if you want to achieve better grades.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_335"},{"":"401",sentence:"Ice cream is a very distasteful thing to be given to eat for almost all children regardless of their age.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_336"},{"":"402",sentence:"A tornado can result in a catastrophe if it strikes where people will live and a safe place to go is not available.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_337"},{"":"403",sentence:"Most bankers are given bonuses if they are able to embezzle money from the bank to buy a sailboat.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_338"},{"":"404",sentence:"Compulsory rules are not optional but rather must always be followed.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_339"},{"":"405",sentence:"Hamburgers and hot dogs sometimes are sold at concession stands at various sporting events.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_340"},{"":"406",sentence:"Two people who dislike being together are inseparable.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_341"},{"":"407",sentence:"Fingerprints can incriminate a suspect.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_342"},{"":"408",sentence:"Spanish is the predominant language spoken in Mexico.",grade:"7",answer:"TRUE",direction:"right",itemId:"TOSREC_343"},{"":"409",sentence:"Not helping a family whose automobile has broken down is an example of compassion.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_344"},{"":"410",sentence:"A dilapidated building is well maintained.",grade:"7",answer:"FALSE",direction:"left",itemId:"TOSREC_345"},{"":"411",sentence:"There is sand in the desert.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_346"},{"":"412",sentence:"You can play with a toy in the bathtub.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_295"},{"":"413",sentence:"People like to eat dirt for lunch as a snack.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_347"},{"":"414",sentence:"A girl can have a lot of freckles on her face.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_348"},{"":"415",sentence:"You can find starfish in space.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_27"},{"":"416",sentence:"A tortoise is faster than a greyhound.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_136"},{"":"417",sentence:"Most people wear jackets on their feet rather than shoes.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_125"},{"":"418",sentence:"A beagle might bark to warn its owner if it sees a hawk.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_349"},{"":"419",sentence:"A watermelon can be too big for a small boy to lift.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_133"},{"":"420",sentence:"You should invite vultures to a wedding.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_138"},{"":"421",sentence:"Some airplanes fly at a very high altitude.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_184"},{"":"422",sentence:"An envelope can be used as a radio.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_350"},{"":"423",sentence:"If you appreciate a gift very much you should tell the person who gave it to you.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_351"},{"":"424",sentence:"Some of our ancestors were born and lived in prehistoric times.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_303"},{"":"425",sentence:"A plumber should be called right away if your automobile breaks down.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_352"},{"":"426",sentence:"A celebrity might be asked for her autograph.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_263"},{"":"427",sentence:'Getting an "A" on an important test would devastate most students.',grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_353"},{"":"428",sentence:"A bachelor is someone who has been married all of his adult life.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_354"},{"":"429",sentence:"A parent might ask a daughter to buckle her seat belt to protect her in an accident.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_355"},{"":"430",sentence:"An automatic decision is one that requires a lot of thought.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_308"},{"":"431",sentence:"People who go fishing sometimes exaggerate the size of the fish they catch.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_356"},{"":"432",sentence:"The main problem with having a famine is overly abundant food to eat.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_316"},{"":"433",sentence:"A disinfectant is useful for killing some germs that can cause illness.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_315"},{"":"434",sentence:"Most people wear ancient pyramids on their wrists for predicting weather.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_281"},{"":"435",sentence:"One way to find a solution to a disagreement is to look for a compromise.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_314"},{"":"436",sentence:"Hotels are one form of accommodation for people taking trips.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_357"},{"":"437",sentence:"If too much rain accumulates, severe flooding can damage houses.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_358"},{"":"438",sentence:"Clam chowder is made from various spiders, peanuts, and several kinds of insects.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_329"},{"":"439",sentence:"A criminal standing trial will be very happy if the jury acquits him.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_359"},{"":"440",sentence:"It can be difficult to move large appliances such as stoves or refrigerators.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_360"},{"":"441",sentence:"A computer works best if it is thrown from the top floor of a tall building during a major thunderstorm.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_330"},{"":"442",sentence:"A leaf falling from a tree will endanger most every resident in a city.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_333"},{"":"443",sentence:"With high gasoline prices, a small automobile can be more economical to drive than a large truck.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_361"},{"":"444",sentence:"A substantial dinner consists of one potato chip.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_362"},{"":"445",sentence:"If you are taking a multiple-choice test, it can be helpful to eliminate answers that you know are wrong.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_363"},{"":"446",sentence:"Very little stamina is required for running a distance of twenty miles.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_364"},{"":"447",sentence:"Milk is pasteurized to change its color from purple to orange and to make it fit into a milk carton.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_365"},{"":"448",sentence:"If you hear thunder, keeping away from tall trees can reduce the chance of being electrocuted.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_366"},{"":"449",sentence:"The purpose of the population census is to count the number of rainy days every month.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_327"},{"":"450",sentence:"If a painting by a famous artist turns out to be a forgery, its value is likely to be much less.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_367"},{"":"451",sentence:"If a traffic light quits working, two cars could get into an accident at an intersection.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_368"},{"":"452",sentence:"An old cat sleeping on a pillow in front of a sunny window is highly energetic.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_369"},{"":"453",sentence:"It helps to be logical if you are trying to convince someone with an effective argument.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_370"},{"":"454",sentence:"A firefighter pours gasoline on a fire to extinguish it.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_371"},{"":"455",sentence:"Mythology refers to true stories of events that happened.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_372"},{"":"456",sentence:"A spendthrift can usually be counted on to spend money for lavish entertainment.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_373"},{"":"457",sentence:"The abolition of slavery resulted in changes for the South.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_374"},{"":"458",sentence:"An adversary is someone who takes your side in any argument.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_375"},{"":"459",sentence:"Some citizens who cannot vote because they are away are able to vote by absentee ballot.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_376"},{"":"460",sentence:"If you want to be friends with someone, the best way is to antagonize the person continuously.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_377"},{"":"461",sentence:"A football game that ends with a tie score of fourteen to fourteen is an example of a decisive victory.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_293"},{"":"462",sentence:"Some criminals have an accomplice who accompanies them.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_291"},{"":"463",sentence:"Libraries prefer that all people be delinquent in returning books.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_292"},{"":"464",sentence:"Supporters denounce the candidate they are working for rather than the opponent.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_378"},{"":"465",sentence:"Police officers try to apprehend criminals and to prevent crime.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_379"},{"":"466",sentence:"Drinking a glass of water leads to immediate, extreme discomfort for most people.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_380"},{"":"467",sentence:"Bleach is sometimes used in washing machines to remove difficult stains from very dirty clothes.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_294"},{"":"468",sentence:"An arrogant person may not be liked by others because he conveys the impression that he is better than they are.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_381"},{"":"469",sentence:"Most parents will disapprove if their children earn perfect scores on a difficult and important test.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_290"},{"":"470",sentence:"Turning on a light switch almost always results in disastrous consequences.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_382"},{"":"471",sentence:"Seeds germinate when conditions are suitable.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_383"},{"":"472",sentence:"Being open to different opinions and ideas is the key characteristic of an intolerant individual.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_384"},{"":"473",sentence:"Guerillas are tiny invertebrates that live under water.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_385"},{"":"474",sentence:"Spanish is the predominant language spoken in Mexico.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_343"},{"":"475",sentence:"A blood transfusion might be necessary in an operation.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_386"},{"":"476",sentence:"An inaccessible mountain is easily reached.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_387"},{"":"477",sentence:"A cumulative grade-point average never changes.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_388"},{"":"478",sentence:"An inevitable event is unlikely to occur.",grade:"8",answer:"FALSE",direction:"left",itemId:"TOSREC_389"},{"":"479",sentence:"Your passport might be scrutinized if you seem suspicious when returning from visiting a foreign country.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_390"},{"":"480",sentence:"After an operation, it may take months to recuperate completely.",grade:"8",answer:"TRUE",direction:"right",itemId:"TOSREC_391"}],corpusAI:[{sentence:"Children grow as they get older.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_1"},{sentence:"A freezer keeps food frozen.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_2"},{sentence:"Children play in the playground.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_3"},{sentence:"A farmer grows food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_4"},{sentence:"A nap helps us rest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_5"},{sentence:"Babies cry when they are upset.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_6"},{sentence:"A seashell comes from the sea.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_7"},{sentence:"A house is a place to live.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_8"},{sentence:"A mountain is tall and rocky.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_9"},{sentence:"A pond has water and fish.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_10"},{sentence:"A kitten is a baby cat.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_11"},{sentence:"Animals live in the zoo.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_12"},{sentence:"A beach has sand and water.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_13"},{sentence:"Flowers need water to grow.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_14"},{sentence:"A spoon helps us eat soup.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_15"},{sentence:"A swing goes back and forth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_16"},{sentence:"Mail is eaten by mail carriers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_17"},{sentence:"We use our stomach to digest food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_18"},{sentence:"A telephone helps us talk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_19"},{sentence:"Most birds lay potatoes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_20"},{sentence:"A turtle has a shell.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_21"},{sentence:"Ice cream is cold and sweet.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_22"},{sentence:"The moon comes out at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_23"},{sentence:"We cut paper with scissors.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_24"},{sentence:"Apples grow on trees.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_25"},{sentence:"A stapler keeps papers together.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_26"},{sentence:"People use umbrellas in the rain.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_27"},{sentence:"Snowflakes are black and rough.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_28"},{sentence:"People use their eyes to see.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_29"},{sentence:"Babies drink milk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_30"},{sentence:"A boat floats on water.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_31"},{sentence:"A baby learns to crawl.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_32"},{sentence:"A pancake is round and flat.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_33"},{sentence:"Fish have wings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_34"},{sentence:"Birds swim in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_35"},{sentence:"Snow is warm and white.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_36"},{sentence:"A horse can run fast.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_37"},{sentence:"A stove cooks our food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_38"},{sentence:"Doctors help us when we are sick.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_39"},{sentence:"People wear hats on their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_40"},{sentence:"A pillow is soft and fluffy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_41"},{sentence:"An adult is a grown-up.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_42"},{sentence:"A squirrel has a bushy tail.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_43"},{sentence:"Dogs meow and retract their tails.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_44"},{sentence:"Birds crawl high in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_45"},{sentence:"Rain is made of syrup.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_46"},{sentence:"Sheep have thick wool.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_47"},{sentence:"Whales live in the ocean.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_48"},{sentence:"Puppies are baby dogs.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_49"},{sentence:"The ocean is large and deep.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_50"},{sentence:"We sleep at night to rest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_51"},{sentence:"People wear gloves on their feet.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_52"},{sentence:"Roads have cotton candy and unicorns.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_53"},{sentence:"Hamsters swim on wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_54"},{sentence:"Dogs like to bark and play.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_55"},{sentence:"Sunscreen protects us from the sun.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_56"},{sentence:"People use money to buy things.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_57"},{sentence:"Octopuses have two arms.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_58"},{sentence:"Puzzles have one piece.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_59"},{sentence:"Pumpkins are blue and square.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_60"},{sentence:"A bed is for sleeping.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_61"},{sentence:"People laugh when something is funny.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_62"},{sentence:"A candle gives us light.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_63"},{sentence:"A bike has pedals.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_64"},{sentence:"Animals need food to live.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_65"},{sentence:"A wallet holds money.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_66"},{sentence:"We eat breakfast in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_67"},{sentence:"Squirrels live underwater.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_68"},{sentence:"Many animals live in the forest.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_69"},{sentence:"A teacher helps us learn.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_70"},{sentence:"Glasses help people see better.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_71"},{sentence:"Gardens are where people grow skyscrapers, vehicles, and statues.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_72"},{sentence:"A suitcase carries our clothes.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_73"},{sentence:"Light bulbs make darkness.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_74"},{sentence:"A car has four wheels.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_75"},{sentence:"Toothpaste helps to clean teeth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_76"},{sentence:"A square has nine sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_77"},{sentence:"Trains run on clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_78"},{sentence:"People write with hammers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_79"},{sentence:"The sun shines during the day.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_80"},{sentence:"A peach is fuzzy and sweet.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_81"},{sentence:"We sweep floors with a broom.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_82"},{sentence:"Colors make things smell funny.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_83"},{sentence:"Rabbits have long ears.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_84"},{sentence:"We eat dinner in the evening.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_85"},{sentence:"Everyone has a purple unicorn.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_86"},{sentence:"A baby bottle has a tail.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_87"},{sentence:"Birds make nests for their eggs.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_88"},{sentence:"People wear swimsuits for swimming.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_89"},{sentence:"Mushrooms grow in damp areas.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_90"},{sentence:"Wheels are square and roll.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_91"},{sentence:"Ants are huge and weak.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_92"},{sentence:"A triangle has ten sides.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_93"},{sentence:"Oranges are blue and square.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_94"},{sentence:"It is dark at night.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_95"},{sentence:"We drink water when we're thirsty.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_96"},{sentence:"A shirt covers our body.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_97"},{sentence:"Baking bread makes the house smell good.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_98"},{sentence:"The sun rises in the morning.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_99"},{sentence:"Shoes go on your hands.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_100"},{sentence:"Socks keep your feet cold.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_101"},{sentence:"Cars float on water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_102"},{sentence:"People smile when they're happy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_103"},{sentence:"Plants need sunlight to grow.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_104"},{sentence:"Squirrels eat clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_105"},{sentence:"Sharks have sharp teeth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_106"},{sentence:"A lion whispers softly.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_107"},{sentence:"Numbers prevent us from counting things.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_108"},{sentence:"Books have pages with salsa.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_109"},{sentence:"A brick is made from butter.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_110"},{sentence:"People wear clothes every day.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_111"},{sentence:"Letters make soup for reading.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_112"},{sentence:"Hot air balloons dig down.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_113"},{sentence:"A pig is pink and plump.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_114"},{sentence:"We take baths to get clean.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_115"},{sentence:"Butter is made from water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_116"},{sentence:"Zebras have polka-dotted stripes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_117"},{sentence:"A tree has a trunk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_118"},{sentence:"A year has four seasons.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_119"},{sentence:"Feet have no toes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_120"},{sentence:"People have spaghetti on their heads.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_121"},{sentence:"Bread is made from flour.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_122"},{sentence:"Buttons help clean clothes.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_123"},{sentence:"People use their hands to clap.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_124"},{sentence:"Chocolate comes from pickle jars.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_125"},{sentence:"People sleep on ceilings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_126"},{sentence:"Everyone has an alien spaceship.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_127"},{sentence:"Bees make honey in hives.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_128"},{sentence:"Strawberry is a red fruit.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_129"},{sentence:"Toys are for staring at.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_130"},{sentence:"A sandwich is for skiing.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_131"},{sentence:"The desert is hot and dry.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_132"},{sentence:"We walk on the sidewalk.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_133"},{sentence:"Sidewalks are for driving.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_134"},{sentence:"Turtles can fly in their shells.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_135"},{sentence:"A nose smells music.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_136"},{sentence:"Birds can swim underground.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_137"},{sentence:"A picture can grow carrots.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_138"},{sentence:"A beach has ice and lava.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_139"},{sentence:"A lock keeps things safe.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_140"},{sentence:"A dog is a good friend to people.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_141"},{sentence:"Mirrors show cartoons.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_142"},{sentence:"A comb is used on hair.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_143"},{sentence:"People wear sunglasses in sunlight.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_144"},{sentence:"Skies can be solid or liquid.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_145"},{sentence:"Pets are living things we care for.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_146"},{sentence:"We all live on Earth.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_147"},{sentence:"Chairs have no legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_148"},{sentence:"A frog flies and sinks.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_149"},{sentence:"Pencils are for drawing and writing.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_150"},{sentence:"Blankets make us shiver.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_151"},{sentence:"Music makes people sleep.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_152"},{sentence:"Squirrels are giant creatures that gather rocks to eat.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_153"},{sentence:"Cows give us soda to drink.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_154"},{sentence:"Corn grows in a field.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_155"},{sentence:"Telephone conversations prevent people from talking at all.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_156"},{sentence:"Drums make loud sounds.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_157"},{sentence:"Most people have twelve legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_158"},{sentence:"A fish has fins.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_159"},{sentence:"Books have no pages or words.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_160"},{sentence:"A cake is sweet and yummy.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_161"},{sentence:"Lollipops are vegetables on a stick.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_162"},{sentence:"People use ears to hear.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_163"},{sentence:"A plate holds our food.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_164"},{sentence:"A button waters plants.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_165"},{sentence:"Birds have scales and wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_166"},{sentence:"Bananas are yellow when ripe.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_167"},{sentence:"Stars are invisible at night.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_168"},{sentence:"We wear belts to loosen pants.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_169"},{sentence:"We say hello to greet people.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_170"},{sentence:"Rain wets the ground.",answer:"TRUE",direction:"right",difficulty:"easy",itemId:"ai_171"},{sentence:"Shoes always have wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_172"},{sentence:"Paper comes from clouds.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_173"},{sentence:"A deer has wings.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_174"},{sentence:"Sunsets are white and gray.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_175"},{sentence:"Paintbrushes help you dance.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_176"},{sentence:"Skies are yellow on sunny days.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_177"},{sentence:"Bears can sing all winter.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_178"},{sentence:"Jet planes crawl slowly.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_179"},{sentence:"Snakes fly in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_180"},{sentence:"Insects have no legs.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_181"},{sentence:"Bears are tiny and weak.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_182"},{sentence:"A stove is for swimming.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_183"},{sentence:"Fire is cold and safe.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_184"},{sentence:"Grass is purple and hides inside.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_185"},{sentence:"Frogs paint in the pond.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_186"},{sentence:"Monkeys are serious animals that swim underwater using their tails.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_187"},{sentence:"Picnics are underground with televisions.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_188"},{sentence:"Lambs are baby camels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_189"},{sentence:"Oceans are full of sugar water.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_190"},{sentence:"Teachers work in submarines.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_191"},{sentence:"Our hearts beat outside our chest.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_192"},{sentence:"Water boils when it's cold.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_193"},{sentence:"A shirt has wheels.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_194"},{sentence:"Most animals have propellers.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_195"},{sentence:"Tadpoles grow into trees.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_196"},{sentence:"Crayons are used for building houses.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_197"},{sentence:"Kangaroos can't jump at all.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_198"},{sentence:"Lizards live in the sky.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_199"},{sentence:"Dolphins reside in the desert.",answer:"FALSE",direction:"left",difficulty:"easy",itemId:"ai_200"}],corpusAIV1P1:[{sentence:"A flag hangs from a pole.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_1"},{sentence:"Snowflakes fall in the summer.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_2"},{sentence:"Airplanes fly in the air.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_3"},{sentence:"Walruses have tiny teeth and live in tropical environments.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_4"},{sentence:"Owls cannot turn their heads.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_5"},{sentence:"Roads have signs and lights.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_6"},{sentence:"We breathe in air all the time.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_7"},{sentence:"A gift is wrapped with love.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_8"},{sentence:"Rainbows show only one color.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_9"},{sentence:"A car has ten wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_10"},{sentence:"Cameras drink pictures.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_11"},{sentence:"Oceans are full of salt water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_12"},{sentence:"People sleep in beds.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_13"},{sentence:"Everyone dislikes all colors.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_14"},{sentence:"Sharks have sharp teeth.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_15"},{sentence:"Flags have no colors.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_16"},{sentence:"Cars float on water.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_17"},{sentence:"Cakes are salty.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_18"},{sentence:"Horses can run fast.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_19"},{sentence:"A telephone helps us walk.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_20"},{sentence:"Everyone has a voice.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_21"},{sentence:"A seashell comes from the forest.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_22"},{sentence:"A house is a place to live.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_23"},{sentence:"We wear jackets in the cold.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_24"},{sentence:"People need sleep every day.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_25"},{sentence:"Ants work together.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_26"},{sentence:"A lock eats things safe.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_27"},{sentence:"Toys are for playing with.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_28"},{sentence:"A pillow is soft and fluffy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_29"},{sentence:"Dolphins can jump out of a volcano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_30"},{sentence:"A whale is a small land creature.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_31"},{sentence:"People use sand to buy things.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_32"},{sentence:"Monkeys climb trees.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_33"},{sentence:"People walk, run, and jump to move and get exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_34"},{sentence:"Bees ignore honey and don't help flowers by carrying pollen.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_35"},{sentence:"Children go to school to levitate.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_36"},{sentence:"Hamsters swim on wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_37"},{sentence:"Teachers work in schools.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_38"},{sentence:"A watch dances the time.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_39"},{sentence:"A baby learns to crawl.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_40"},{sentence:"No one has feelings.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_41"},{sentence:"Hands can hold things.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_42"},{sentence:"Pumpkins grow in the spring.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_43"},{sentence:"Families live together.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_44"},{sentence:"Yawns show we are hungry.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_45"},{sentence:"A triangle has ten sides.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_46"},{sentence:"Pets are living things we care for.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_47"},{sentence:"Hammers are for playing piano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_48"},{sentence:"The moon can be seen at night and changes in shape.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_49"},{sentence:"Wind can make things invisible.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_50"},{sentence:"Mountains are very short.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_51"},{sentence:"People speak different languages.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_52"},{sentence:"A fan keeps us cool.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_53"},{sentence:"Streets are for walking and driving.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_54"},{sentence:"Lions are big cats.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_55"},{sentence:"Puppies and kittens grow into adult dogs and cats.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_56"},{sentence:"People walk on their hands.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_57"},{sentence:"A ruler cooks things.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_58"},{sentence:"Kangaroos can jump far.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_59"},{sentence:"The ocean is microscopic.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_60"},{sentence:"The park is for playing.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_61"},{sentence:"We say goodbye when we leave.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_62"},{sentence:"Skies can be blue or gray.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_63"},{sentence:"Sunscreen attracts the sun.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_64"},{sentence:"Bananas are blue when ripe.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_65"},{sentence:"Zebras have black and white stripes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_66"},{sentence:"Babies need milk, love, and care as they grow into children.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_67"},{sentence:"Animals like turtles, snakes, and lizards are called mammals.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_68"},{sentence:"A peach is fuzzy and sweet.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_69"},{sentence:"Leaves fall from trees.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_70"},{sentence:"Doors dissolve and reappear.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_71"},{sentence:"Pencils can help you swim.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_72"},{sentence:"People use maps to find places.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_73"},{sentence:'A train goes "meow meow."',answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_74"},{sentence:"People talk with their elbows.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_75"},{sentence:"People learn from their mistakes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_76"},{sentence:"You can hear a song.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_77"},{sentence:"Dogs like to bark and play.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_78"},{sentence:"The sun sets in the morning.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_79"},{sentence:"Raincoats keep us dry.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_80"},{sentence:"We eat our teeth every day.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_81"},{sentence:"Milk comes from rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_82"},{sentence:"Planets repel the sun.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_83"},{sentence:"People write with hammers.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_84"},{sentence:"A shoe doesn't have a sole.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_85"},{sentence:"We drink out of hats.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_86"},{sentence:"Lambs are baby camels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_87"},{sentence:"Children learn from adults.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_88"},{sentence:"A boat has a sail.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_89"},{sentence:"Everyone has a favorite color.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_90"},{sentence:"All people eat rainbows.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_91"},{sentence:"A deer has wings.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_92"},{sentence:"A bus takes people places.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_93"},{sentence:"Eggs come from fish.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_94"},{sentence:"Rabbits have soft fur.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_95"},{sentence:"We wear shoes to know time.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_96"},{sentence:"Paper can be folded.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_97"},{sentence:"Jellyfish are land creatures with short arms that can high-five.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_98"},{sentence:"Ice is boiling water.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_99"},{sentence:"An adult is a grown-up.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_100"},{sentence:"Squirrels live underwater.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_101"},{sentence:"Friends help each other.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_102"},{sentence:"Elephants are large animals with big ears and a long trunk.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_103"},{sentence:"Orange juice comes from oranges.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_104"},{sentence:"Children shrink as they get older.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_105"},{sentence:"A kitten is a baby elephant.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_106"},{sentence:"Sheep have thick wool.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_107"},{sentence:"People have different height.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_108"},{sentence:"Straws help us listen to music.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_109"},{sentence:"A giraffe has a long neck.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_110"},{sentence:"We wake up in the evening.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_111"},{sentence:"Turtles can fly in their shells.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_112"},{sentence:"Music cannot be played on instruments like drums, guitars, and pianos.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_113"},{sentence:"A bee can knit.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_114"},{sentence:"A pig is blue and thin.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_115"},{sentence:"A computer hinders our work.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_116"},{sentence:"People wear glasses to help them hear more clearly.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_117"},{sentence:"People of all ages can enjoy spending time with animals.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_118"},{sentence:"Shoes always have wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_119"},{sentence:"Fire is hot and burns.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_120"},{sentence:"Kids put on backpacks for school.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_121"},{sentence:"We use keys to open doors.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_122"},{sentence:"The sky is yellow.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_123"},{sentence:"Chickens lay marbles for us to eat.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P1_124"},{sentence:"All people need love and care.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_125"},{sentence:"Books are for reading and learning.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_126"},{sentence:"A mountain is tall and rocky.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_127"},{sentence:"Buttons help close clothes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_128"},{sentence:"Water is wet and we need it to stay healthy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_129"},{sentence:"Apples can be red, green, or yellow.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P1_130"}],corpusAIV1P2:[{sentence:"Ants are small.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_1"},{sentence:"All kids shrink.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_2"},{sentence:"The sun rises every day.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_3"},{sentence:"People use phones to swim.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_4"},{sentence:"Balloons can be filled with rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_5"},{sentence:"People turn pages to read books.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_6"},{sentence:"We say thank you to be polite.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_7"},{sentence:"Everyone feels sad sometimes.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_8"},{sentence:"Ducks dislike swimming.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_9"},{sentence:"Bicycles have thirty wheels and make people invisible.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_10"},{sentence:"A pillow is for swimming.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_11"},{sentence:"Water is wet and clear.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_12"},{sentence:"The sky is blue.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_13"},{sentence:"A wallet holds vegetables.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_14"},{sentence:"Mountains are very tall.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_15"},{sentence:"Rubber bands cannot stretch.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_16"},{sentence:"Most flowers emit invisible smoke.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_17"},{sentence:"A refrigerator warms food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_18"},{sentence:"All people have a name.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_19"},{sentence:"Corn grows in a volcano.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_20"},{sentence:"Cakes are sweet.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_21"},{sentence:"Mice have giant tails.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_22"},{sentence:"A kitten is a baby cat.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_23"},{sentence:"A doorbell rings when pressed.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_24"},{sentence:"Everyone likes to feel loved.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_25"},{sentence:"Families can have pets.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_26"},{sentence:"A chair is for people to hover.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_27"},{sentence:"Kangaroos are animals with strong legs and can hop very far.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_28"},{sentence:"Showers are for getting clean.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_29"},{sentence:"People use maps to eat food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_30"},{sentence:"Books have no pages.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_31"},{sentence:"Deserts are icy and snowy places with constant rainfall.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_32"},{sentence:"Fish breathe through gills.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_33"},{sentence:"People walk, run, and jump to move and get exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_34"},{sentence:"Streets are for swimming and flying.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_35"},{sentence:"A ball is flat and sticks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_36"},{sentence:"A fence generates electricity.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_37"},{sentence:"We wear belts to hold pants up.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_38"},{sentence:"Jellyfish cannot sting.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_39"},{sentence:"We ride bikes for fun or exercise.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_40"},{sentence:"Lollipops are vegetables on a stick.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_41"},{sentence:"People live in houses.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_42"},{sentence:"A year has eleven months.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_43"},{sentence:"Children go to school.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_44"},{sentence:"Monkeys run underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_45"},{sentence:"People wear sandals when it's cold.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_46"},{sentence:"Children like singing songs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_47"},{sentence:"Insects have no legs.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_48"},{sentence:"Shoes can have laces or straps.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_49"},{sentence:"You have to swallow a door.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_50"},{sentence:"Water boils when it's cold.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_51"},{sentence:"People brush their teeth.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_52"},{sentence:"Children often take turns during games or sharing toys.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_53"},{sentence:"Rivers, lakes, and oceans are large bodies of water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_54"},{sentence:"Puppies are baby dogs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_55"},{sentence:"People use money to buy things.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_56"},{sentence:"Fish drive cars and have wheels and headlights.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_57"},{sentence:"Snakes fly in the sky.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_58"},{sentence:"Seashells come in many shapes and colors and can be found at the beach.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_59"},{sentence:"MAIL gets buried under houses.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_60"},{sentence:"Windows let light in.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_61"},{sentence:"Gifts are given on special occasions like birthdays and holidays.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_62"},{sentence:"Horses can run and carry people or things on their backs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_63"},{sentence:"People clap their feet.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_64"},{sentence:"Crayons are used for building houses.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_65"},{sentence:"Hands can hold objects.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_66"},{sentence:"Farm animals like cows, pigs, and chickens provide us with food.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_67"},{sentence:"The ocean is small and shallow.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_68"},{sentence:"Children play in the playground.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_69"},{sentence:"Most people have two legs.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_70"},{sentence:"We use napkins to paint our faces.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_71"},{sentence:"Telephone conversations prevent people from talking at all.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_72"},{sentence:"We eat dinner in the evening.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_73"},{sentence:"A turtle has a cape.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_74"},{sentence:"Ropes are used for eating.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_75"},{sentence:"Vaccines help to protect us.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_76"},{sentence:"Children take naps during the day to rest and recharge.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_77"},{sentence:"A teacher helps us learn.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_78"},{sentence:"Zebras have polka dots and live underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_79"},{sentence:"Plants need water and sunlight.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_80"},{sentence:"Dogs plant flowers.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_81"},{sentence:"Apples can be blue and grow underground.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_82"},{sentence:"Beds are for dancing.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_83"},{sentence:"We drink from hats.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_84"},{sentence:"Ants are gigantic.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_85"},{sentence:"Rainbows have one color.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_86"},{sentence:"Penguins can fly.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_87"},{sentence:"Dogs can bark.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_88"},{sentence:"We cook food in ovens.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_89"},{sentence:"The sun sets every evening.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_90"},{sentence:"Birds have scales.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_91"},{sentence:"Whales are reptiles.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_92"},{sentence:"We put on pajamas before bed.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_93"},{sentence:"Bears are tiny and weak.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_94"},{sentence:"Music can be played on instruments like drums, guitars, and pianos.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_95"},{sentence:"Children play in the stratosphere.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_96"},{sentence:"Airplanes fly in the sky.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_97"},{sentence:"We eat with telekinesis.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_98"},{sentence:"Ice cream is hot and sour.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_99"},{sentence:"Pizzas have different toppings.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_100"},{sentence:"Butterflies start as rocks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_101"},{sentence:"You go to sleep at night.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_102"},{sentence:"A car horn honks loudly.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_103"},{sentence:"Frogs are green and can jump and swim in water.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_104"},{sentence:"Cats have wheels.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_105"},{sentence:"A caterpillar becomes a rhino.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_106"},{sentence:"People laugh when things are funny.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_107"},{sentence:"People have different hair colors.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_108"},{sentence:"The moon can't be seen at night and stays in one shape.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_109"},{sentence:"People talk with their mouths.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_110"},{sentence:"People need to levitate.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_111"},{sentence:"People eat rocks to live.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_112"},{sentence:"Bread is a rare food.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_113"},{sentence:"We walk with our hands.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_114"},{sentence:"Snowflakes are black and rough.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_115"},{sentence:"Trains swim on train tracks.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_116"},{sentence:"A train goes on roads.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_117"},{sentence:"The seasons are spring, summer, autumn, and winter, each with unique features.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_118"},{sentence:"Elephants are blue and small.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_119"},{sentence:"People feel hot in the sun.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_120"},{sentence:"Strawberry is a red fruit.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_121"},{sentence:"Doctors help us when we are sick.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_122"},{sentence:"We all live on Mars.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_123"},{sentence:"Drums produce images when hit.",answer:"FALSE",direction:"left",difficulty:"",itemId:"aiV1P2_124"},{sentence:"Blankets are for snuggling.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_125"},{sentence:"Fruits and vegetables help our bodies to grow and stay strong.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_126"},{sentence:"A doll can be fun to play with.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_127"},{sentence:"Parents take care of children.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_128"},{sentence:"People drink water when thirsty.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_129"},{sentence:"Cats meow and purr when happy.",answer:"TRUE",direction:"right",difficulty:"",itemId:"aiV1P2_130"}]},es:{corpusPractice:"",corpusLab:"",corpusTOSREC:"",corpusAI:""},it:{corpusPractice:"",corpusLab:"",corpusTOSREC:"",corpusAI:""}};var Wc={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:[]},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","false-flash-key.webp","false-key.webp","grade-keyboard.webp","grade-keys.webp","practice-left.webp","practice-right.webp","roar-sre-keyboard.webp","roar-sre-practice-keyboard.webp","true-flash-key.webp","true-key.webp","rightArrowBlankShort.webp","leftArrowBlankShort.webp","false-flash-key-split.webp","false-static-key-split.webp","true-flash-key-split.webp","true-static-key-split.webp"]}};const Kc="mobile"===fr(),Zc="https://storage.googleapis.com/roar-sre",Jc=function(e,t,n){var i={images:{},video:{},audio:{}},a=hr(n),s=fr(),r=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=gr(e),l=Gs.parse(e).name,u=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),d=mr(t,e,a,s,n,r,o);i[c][u]=d}))},o=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)?r(e,"default"):(e.languageSpecific&&(Array.isArray(e.languageSpecific)?r(e.languageSpecific,"languageSpecific"):function(e,t){Object.entries(e).forEach((function(e){var n=Io(e,2),i=n[0],a=n[1];r(a,i,!0,t)}))}(e.languageSpecific,n)),e.device&&r(e.device,"device"),e.shared&&(t=e.shared,Array.isArray(t)?r(t,"shared"):Object.entries(t).forEach((function(e){var t=Io(e,2),n=t[0],i=t[1];r(i,"device"===n?"shared/device":"shared")}))))};return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Io(e,2)[1];o(t)})),e.default&&o(e.default,!0),i}(Wc,Zc),Xc=function(e,t,n){var i={},a=hr(n),s=fr();function r(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=gr(e),u=mr(t,e,a,s,r,o,c);i[n]||(i[n]={type:Ro,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[n][l].push(u)}))}function o(e,t,n){Array.isArray(t)?r(t,e,"languageSpecific"):function(e,t,n){Object.entries(t).forEach((function(t){var i=Io(t,2),a=i[0];r(i[1],e,a,!0,n)}))}(e,t,n)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(t)?r(t,e,"default"):(t.languageSpecific&&o(e,t.languageSpecific,n),t.device&&r(t.device,e,"device"),t.shared&&function(e,t){Array.isArray(t)?r(t,e,"shared"):Object.entries(t).forEach((function(t){var n=Io(t,2),i=n[0];r(n[1],e,"device"===i?"shared/device":"shared")}))}(e,t.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Io(e,2);c(t[0],t[1])})),e.default&&c("default",e.default,!0),i}(Wc,Zc).default,Qc=e=>{const t=[...e];for(let e=t.length-1;e>0;e-=1){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},el={timeline:[{type:jo,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=s.session.get("config");t.labId=e.response.labId,s.session.set("config",t)}}],conditional_function:()=>!s.session.get("config").labId&&"otherLabs"===s.session.get("config").recruitment},tl={timeline:[{type:jo,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=s.session.get("config");t.pid=e.response.pid,s.session.set("config",t)}}],conditional_function:()=>!s.session.get("config").pid&&("demo"===s.session.get("config").recruitment||"otherLabs"===s.session.get("config").recruitment)},nl={timeline:[{type:Uo,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"===s.session.get("config").recruitment||s.session.get("config").consent},il={timeline:[{type:Do,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 n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=s.session.get("config").userMetadata.grade;const n=s.session.get("config"),i=_r(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},s.session.set("config",n)}}],conditional_function:()=>"demo"===s.session.get("config").recruitment||s.session.get("config").consent},al={type:Mo,stimulus:()=>Jc.audio.gradeSelect,prompt:()=>Kc?`\n <div class="mobile-grade-select">\n <h3>${Ec.t("introduction.gradeSelect.text1")}</h3>\n <p>${Ec.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${Ec.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${Ec.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Ec.t("introduction.gradeSelect.text1")}</h3>\n <p>${Ec.t("introduction.gradeSelect.text2")}</p>\n <p>${Ec.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Jc.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Ec.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Kc?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Kc?["1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade","8th Grade or higher"]:[],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;Kc?s.session.set("tosrecCorpusId",`tosrec${t+1}`):s.session.set("tosrecCorpusId",`tosrec${t}`);const n=s.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Kc?t+1:t)},s.session.set("config",n)}},sl=["K","PK","TK","PreKindergarten","TransitionalKindergarten","Kindergarten","InfantToddler","Preschool"].map((e=>e.toLowerCase()));const rl=[el,tl,nl,il,{timeline:[al],conditional_function:()=>{const{grade:e}=s.session.get("config").userMetadata;return!function(e){return!!(e>0&&e<=12||("string"==typeof e||e instanceof String)&&sl.includes(e.toLowerCase()))}(e)||(s.session.set("tosrecCorpusId",`tosrec${e}`),!1)}}],ol=function(e){const t=new ko(e);return Object.defineProperties(t,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map((([e,t])=>[e,{get(){throw new kr(t)}}])))),t}({show_progress_bar:!1,auto_update_progress_bar:!1,message_progress_bar:`${Ec.t("progressBar")}`,on_finish:()=>{document.body.style.cursor="auto"}});var cl=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}));var ll=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},ul=Ga,dl=$a;var pl=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,r=t.length;++s<r;){var o=t[s],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),a?dl(n,o,c):ul(n,o,c)}return n},hl=pl,fl=Rn;var ml=function(e,t){return e&&hl(t,fl(t),e)},gl=pl,_l=gs;var yl=function(e,t){return e&&gl(t,_l(t),e)},vl={exports:{}};!function(e,t){var n=C,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,r=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(vl,vl.exports);var bl=vl.exports;var wl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},xl=pl,El=Ct;var Sl=function(e,t){return xl(e,El(e),t)},kl=pl,Tl=cs;var Rl=function(e,t){return kl(e,Tl(e),t)},Il=Object.prototype.hasOwnProperty;var Al=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Il.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Cl=ut;var Ol=function(e){var t=new e.constructor(e.byteLength);return new Cl(t).set(new Cl(e)),t},Ll=Ol;var jl=function(e,t){var n=t?Ll(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Pl=/\w*$/;var Ul=function(e){var t=new e.constructor(e.source,Pl.exec(e));return t.lastIndex=e.lastIndex,t},Fl=O?O.prototype:void 0,Dl=Fl?Fl.valueOf:void 0;var Nl=Ol;var Ml=Ol,zl=jl,Bl=Ul,$l=function(e){return Dl?Object(Dl.call(e)):{}},ql=function(e,t){var n=t?Nl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Vl=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return Ml(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return zl(e,n);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 ql(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return Bl(e);case"[object Symbol]":return $l(e)}},Yl=q,Gl=Object.create,Hl=function(){function e(){}return function(t){if(!Yl(t))return{};if(Gl)return Gl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Wl=is,Kl=mn;var Zl=function(e){return"function"!=typeof e.constructor||Kl(e)?{}:Hl(Wl(e))},Jl=Qn,Xl=Lt;var Ql=function(e){return Xl(e)&&"[object Map]"==Jl(e)},eu=Xt,tu=en&&en.isMap,nu=tu?eu(tu):Ql,iu=Qn,au=Lt;var su=function(e){return au(e)&&"[object Set]"==iu(e)},ru=Xt,ou=en&&en.isSet,cu=ou?ru(ou):su,lu=tt,uu=ll,du=Ga,pu=ml,hu=yl,fu=bl,mu=wl,gu=Sl,_u=Rl,yu=On,vu=bs,bu=Qn,wu=Al,xu=Vl,Eu=Zl,Su=wt,ku=qt,Tu=nu,Ru=q,Iu=cu,Au=Rn,Cu=gs,Ou="[object Arguments]",Lu="[object Function]",ju="[object Object]",Pu={};Pu[Ou]=Pu["[object Array]"]=Pu["[object ArrayBuffer]"]=Pu["[object DataView]"]=Pu["[object Boolean]"]=Pu["[object Date]"]=Pu["[object Float32Array]"]=Pu["[object Float64Array]"]=Pu["[object Int8Array]"]=Pu["[object Int16Array]"]=Pu["[object Int32Array]"]=Pu["[object Map]"]=Pu["[object Number]"]=Pu[ju]=Pu["[object RegExp]"]=Pu["[object Set]"]=Pu["[object String]"]=Pu["[object Symbol]"]=Pu["[object Uint8Array]"]=Pu["[object Uint8ClampedArray]"]=Pu["[object Uint16Array]"]=Pu["[object Uint32Array]"]=!0,Pu["[object Error]"]=Pu[Lu]=Pu["[object WeakMap]"]=!1;var Uu=function e(t,n,i,a,s,r){var o,c=1&n,l=2&n,u=4&n;if(i&&(o=s?i(t,a,s,r):i(t)),void 0!==o)return o;if(!Ru(t))return t;var d=Su(t);if(d){if(o=wu(t),!c)return mu(t,o)}else{var p=bu(t),h=p==Lu||"[object GeneratorFunction]"==p;if(ku(t))return fu(t,c);if(p==ju||p==Ou||h&&!s){if(o=l||h?{}:Eu(t),!c)return l?_u(t,hu(o,t)):gu(t,pu(o,t))}else{if(!Pu[p])return s?t:{};o=xu(t,p,c)}}r||(r=new lu);var f=r.get(t);if(f)return f;r.set(t,o),Iu(t)?t.forEach((function(a){o.add(e(a,n,i,a,t,r))})):Tu(t)&&t.forEach((function(a,s){o.set(s,e(a,n,i,s,t,r))}));var m=d?void 0:(u?l?vu:yu:l?Cu:Au)(t);return uu(m||t,(function(a,s){m&&(a=t[s=a]),du(o,s,e(a,n,i,s,t,r))})),o};var Fu=ia,Du=function(e,t,n){var i=-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 s=Array(a);++i<a;)s[i]=e[i+t];return s};var Nu=function(e,t){return t.length<2?e:Fu(e,Du(t,0,-1))},Mu=Xi,zu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Bu=Nu,$u=ea;var qu=function(e,t){return t=Mu(t,e),null==(e=Bu(e,t))||delete e[$u(zu(t))]},Vu=$,Yu=is,Gu=Lt,Hu=Function.prototype,Wu=Object.prototype,Ku=Hu.toString,Zu=Wu.hasOwnProperty,Ju=Ku.call(Object);var Xu=function(e){if(!Gu(e)||"[object Object]"!=Vu(e))return!1;var t=Yu(e);if(null===t)return!0;var n=Zu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ku.call(n)==Ju};var Qu=function(e){return Xu(e)?void 0:e},ed=zt,td=wt,nd=O?O.isConcatSpreadable:void 0;var id=bt,ad=function(e){return td(e)||ed(e)||!!(nd&&e&&e[nd])};var sd=function e(t,n,i,a,s){var r=-1,o=t.length;for(i||(i=ad),s||(s=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,a,s):id(s,c):a||(s[s.length]=c)}return s},rd=sd;var od=function(e){return(null==e?0:e.length)?rd(e,1):[]};var cd=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},ld=Math.max;var ud=function(e,t,n){return t=ld(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=ld(i.length-t,0),r=Array(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),cd(e,this,o)}};var dd=function(e){return function(){return e}},pd=za,hd=pd?function(e,t){return pd(e,"toString",{configurable:!0,enumerable:!1,value:dd(t),writable:!0})}:Sa,fd=Date.now;var md=function(e){var t=0,n=0;return function(){var i=fd(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(hd),gd=od,_d=ud,yd=md;var vd=zi,bd=Uu,wd=qu,xd=Xi,Ed=pl,Sd=Qu,kd=bs,Td=function(e){return yd(_d(e,void 0,gd),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=vd(t,(function(t){return t=xd(t,e),i||(i=t.length>1),t})),Ed(e,kd(e),n),i&&(n=bd(n,7,Sd));for(var a=t.length;a--;)wd(n,t[a]);return n})),Rd=i(Td),Id=zi;var Ad=function(e,t){return Id(t,(function(t){return[t,e[t]]}))},Cd=Qn,Od=dt,Ld=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var jd=i(function(e){return function(t){var n=Cd(t);return"[object Map]"==n?Od(t):"[object Set]"==n?Ld(t):Ad(t,e(t))}}(Rn)),Pd={exports:{}};Pd.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=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; ","(",i,")();"],{type:"text/javascript"})))}var a=!n.document&&!!n.postMessage,s=n.IS_PAPA_WORKER||!1,r={},o=0,c={};if(c.parse=u,c.unparse=d,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=!a&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=b,c.ParserHandle=y,c.NetworkStreamer=h,c.FileStreamer=f,c.StringStreamer=m,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=_),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var a=0;a<this.files.length;a++)i.push({file:this.files[a],inputElem:this,instanceConfig:l.extend({},t)})})),a(),this;function a(){if(0!==i.length){var t=i[0];if(I(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void s("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var a=t.instanceConfig.complete;t.instanceConfig.complete=function(e){I(a)&&a(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else I(e.complete)&&e.complete()}function s(t,n,i,a){I(e.error)&&e.error({name:t},n,i,a)}function r(){i.splice(0,1),a()}}}function u(e,t){var i=(t=t||{}).dynamicTyping||!1;if(I(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!I(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var a=w();return a.userStep=t.step,a.userChunk=t.chunk,a.userComplete=t.complete,a.userError=t.error,t.step=I(t.step),t.chunk=I(t.chunk),t.complete=I(t.complete),t.error=I(t.error),delete t.worker,void a.postMessage({input:e,config:t,workerId:a.id})}var s=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(s=new _(t)).getStream():("string"==typeof e?(e=r(e),s=t.download?new h(t):new m(t)):!0===e.readable&&I(e.read)&&I(e.on)?s=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(s=new f(t)),s.stream(e));function r(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function d(e,t){var n=!1,i=!0,a=",",s="\r\n",r='"',o=r+r,l=!1,u=null,d=!1;h();var p=new RegExp(v(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}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||u),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||[],l);throw new Error("Unable to serialize unrecognized input");function h(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){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&&i){for(var l=0;l<e.length;l++)l>0&&(r+=a),r+=m(e[l],l);t.length>0&&(r+=s)}for(var u=0;u<t.length;u++){var d=o?e.length:t[u].length,p=!1,h=o?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!o&&(p="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&o){for(var f=[],g=0;g<d;g++){var _=c?e[g]:g;f.push(t[u][_])}p=""===f.join("").trim()}if(!p){for(var y=0;y<d;y++){y>0&&!h&&(r+=a);var v=o&&c?e[y]:y;r+=m(t[u][v],y)}u<t.length-1&&(!n||d>0&&!h)&&(r+=s)}}return r}function m(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,i=!0);var s=e.toString().replace(p,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(s,c.BAD_DELIMITERS)||s.indexOf(a)>-1||" "===s.charAt(0)||" "===s.charAt(s.length-1))?r+s+r:s}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function p(e){function t(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(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&&I(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var r=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=a.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(s)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(I(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||!l||!I(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){I(this._config.error)?this._config.error(e):s&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function h(e){var t;function n(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=a?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),a||(t.onload=R(this._chunkLoaded,this),t.onerror=R(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&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>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),p.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=R(this._chunkLoaded,this),t.onerror=R(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 a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},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 m(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,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},p.call(this,e);var t=[],n=!0,i=!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(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=R((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=R((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=R((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=R((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function _(e){var n=t.Duplex,i=T(e),a=!0,s=!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)},i.step=R(this._onCsvData,this),i.complete=R(this._onCsvComplete,this),p.call(this,i),this._nextChunk=function(){s&&1===r.length&&(this._finished=!0),r.length?r.shift()():a=!0},this._addToParseQueue=function(e,t){r.push(R((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),I(t))return t()}),this)),a&&(a=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:R(this._onRead,this),write:R(this._onWrite,this)})).once("finish",R(this._onWriteComplete,this))}function y(e){var t,n,i,a=Math.pow(2,53),s=-a,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)))$/,l=this,u=0,d=0,p=!1,h=!1,f=[],m={data:[],errors:[],meta:{}};if(I(e.step)){var g=e.step;e.step=function(t){if(m=t,x())w();else{if(w(),0===m.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(m.data=m.data[0],g(m,l))}}}function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(e){if(r.test(e)){var t=parseFloat(e);if(t>s&&t<a)return!0}return!1}function w(){return m&&i&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(m.data=m.data.filter((function(e){return!_(e)}))),x()&&E(),R()}function x(){return e.header&&0===f.length}function E(){if(m)if(Array.isArray(m.data[0])){for(var t=0;x()&&t<m.data.length;t++)m.data[t].forEach(n);m.data.splice(0,1)}else m.data.forEach(n);function n(t,n){I(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function k(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(y(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function R(){if(!m||!e.header&&!e.dynamicTyping&&!e.transform)return m;function t(t,n){var i,a=e.header?{}:[];for(i=0;i<t.length;i++){var s=i,r=t[i];e.header&&(s=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,s)),r=k(s,r),"__parsed_extra"===s?(a[s]=a[s]||[],a[s].push(r)):a[s]=r}return e.header&&(i>f.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,d+n):i<f.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,d+n)),a}var n=1;return!m.data.length||Array.isArray(m.data[0])?(m.data=m.data.map(t),n=m.data.length):m.data=t(m.data,0),e.header&&m.meta&&(m.meta.fields=f),d+=n,m}function A(t,n,i,a,s){var r,o,l,u;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var d=0;d<s.length;d++){var p=s[d],h=0,f=0,m=0;l=void 0;for(var g=new b({comments:a,delimiter:p,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(i&&_(g.data[y]))m++;else{var v=g.data[y].length;f+=v,void 0!==l?v>0&&(h+=Math.abs(v-l),l=v):l=v}g.data.length>0&&(f/=g.data.length-m),(void 0===o||h<=o)&&(void 0===u||f>u)&&f>1.99&&(o=h,r=p,u=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function C(e,t){e=e.substring(0,1048576);var n=new RegExp(v(t)+"([^]*?)"+v(t),"gm"),i=(e=e.replace(n,"")).split("\r"),a=e.split("\n"),s=a.length>1&&a[0].length<i[0].length;if(1===i.length||s)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function O(e,t,n,i){var a={type:e,code:t,message:n};void 0!==i&&(a.row=i),m.errors.push(a)}this.parse=function(a,s,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=C(a,o)),i=!1,e.delimiter)I(e.delimiter)&&(e.delimiter=e.delimiter(a),m.meta.delimiter=e.delimiter);else{var l=A(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),m.meta.delimiter=e.delimiter}var u=T(e);return e.preview&&e.header&&u.preview++,t=a,n=new b(u),m=n.parse(t,s,r),w(),p?{meta:{paused:!0}}:m||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=I(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(p=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),m.meta.aborted=!0,I(e.complete)&&e.complete(m),t=""}}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(e){var t,n=(e=e||{}).delimiter,i=e.newline,a=e.comments,s=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),a===n)throw new Error("Comment character same as delimiter");!0===a?a="#":("string"!=typeof a||c.BAD_DELIMITERS.indexOf(a)>-1)&&(a=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var u=0,d=!1;this.parse=function(c,p,h){if("string"!=typeof c)throw new Error("Input must be a string");var f=c.length,m=n.length,g=i.length,_=a.length,y=I(s);u=0;var b=[],w=[],x=[],E=0;if(!c)return H();if(e.header&&!p){var S=c.split(i)[0].split(n),k="_",T=[],R={},A=!1;for(var C in S){var O=S[C];I(e.transformHeader)&&(O=e.transformHeader(O,C));var L=O,j=R[O]||0;for(j>0&&(A=!0,L=O+k+j),R[O]=j+1;T.includes(L);)L=L+k+j;T.push(L)}if(A){var P=c.split(i);P[0]=T.join(n),c=P.join(i)}}if(o||!1!==o&&-1===c.indexOf(t)){for(var U=c.split(i),F=0;F<U.length;F++){if(x=U[F],u+=x.length,F!==U.length-1)u+=i.length;else if(h)return H();if(!a||x.substring(0,_)!==a){if(y){if(b=[],q(x.split(n)),W(),d)return H()}else q(x.split(n));if(r&&F>=r)return b=b.slice(0,r),H(!0)}}return H()}for(var D=c.indexOf(n,u),N=c.indexOf(i,u),M=new RegExp(v(l)+v(t),"g"),z=c.indexOf(t,u);;)if(c[u]!==t)if(a&&0===x.length&&c.substring(u,u+_)===a){if(-1===N)return H();u=N+g,N=c.indexOf(i,u),D=c.indexOf(n,u)}else if(-1!==D&&(D<N||-1===N))x.push(c.substring(u,D)),u=D+m,D=c.indexOf(n,u);else{if(-1===N)break;if(x.push(c.substring(u,N)),G(N+g),y&&(W(),d))return H();if(r&&b.length>=r)return H(!0)}else for(z=u,u++;;){if(-1===(z=c.indexOf(t,z+1)))return h||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:u}),Y();if(z===f-1)return Y(c.substring(u,z).replace(M,t));if(t!==l||c[z+1]!==l){if(t===l||0===z||c[z-1]!==l){-1!==D&&D<z+1&&(D=c.indexOf(n,z+1)),-1!==N&&N<z+1&&(N=c.indexOf(i,z+1));var B=V(-1===N?D:Math.min(D,N));if(c.substr(z+1+B,m)===n){x.push(c.substring(u,z).replace(M,t)),u=z+1+B+m,c[z+1+B+m]!==t&&(z=c.indexOf(t,u)),D=c.indexOf(n,u),N=c.indexOf(i,u);break}var $=V(N);if(c.substring(z+1+$,z+1+$+g)===i){if(x.push(c.substring(u,z).replace(M,t)),G(z+1+$+g),D=c.indexOf(n,u),z=c.indexOf(t,u),y&&(W(),d))return H();if(r&&b.length>=r)return H(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:u}),z++}}else z++}return Y();function q(e){b.push(e),E=u}function V(e){var t=0;if(-1!==e){var n=c.substring(z+1,e);n&&""===n.trim()&&(t=n.length)}return t}function Y(e){return h||(void 0===e&&(e=c.substring(u)),x.push(e),u=f,q(x),y&&W()),H()}function G(e){u=e,q(x),x=[],N=c.indexOf(i,u)}function H(e){return{data:b,errors:w,meta:{delimiter:n,linebreak:i,aborted:d,truncated:!!e,cursor:E+(p||0)}}}function W(){s(H()),b=[],w=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function w(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=x,t.id=o++,r[t.id]=t,t}function x(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){i=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(I(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},a),!i);s++);delete t.results}else I(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!i&&E(t.workerId,t.results)}function E(e,t){var n=r[e];I(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function S(){throw new Error("Not implemented.")}function k(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function T(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=T(e[n]);return t}function R(e,t){return function(){e.apply(t,arguments)}}function I(e){return"function"==typeof e}return s&&(n.onmessage=k),h.prototype=Object.create(p.prototype),h.prototype.constructor=h,f.prototype=Object.create(p.prototype),f.prototype.constructor=f,m.prototype=Object.create(m.prototype),m.prototype.constructor=m,g.prototype=Object.create(p.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(_.prototype=Object.create(p.prototype),_.prototype.constructor=_),c}();var Ud=Pd.exports;class Fd{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v3.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=s.session.get("config").userMetadata?.grade;n||t(),this.gradeForScore=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,i=Number(e);return Number.isNaN(i)||i<t?t:i>n?n:i}(n,1,12),Ud.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(Rd(e.data,["","X"]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const t=cl(jd(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),n=(i=t,i.lab?.sreScore?Math.max(t.lab.sreScore,0):i.aiV1P1?.sreScore?Math.max(i.aiV1P1.sreScore+5,0):i.aiV1P2?.sreScore?Math.max(i.aiV1P2.sreScore+3,0):0);var i;t.composite={sreScore:n};const a=s.session.get("config").userMetadata?.grade;if(a){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:i,sreScore:a,...s}=e;t.composite={sreScore:n,...s}}}return t}}const Dd={practice:Hc[Ec.language].corpusPractice,lab:Hc[Ec.language].corpusLab,ai:Hc[Ec.language].corpusAI,tosrec:Hc[Ec.language].corpusTOSREC,aiV1P1:Hc[Ec.language].corpusAIV1P1,aiV1P2:Hc[Ec.language].corpusAIV1P2},Nd=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,direction:t.direction,answer:t.answer,difficulty:t.difficulty,itemId:t.itemId};return e.push(n),e}),[]),Md=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,grade:t.grade,direction:t.direction,answer:t.answer,itemId:t.itemId};return e.push(n),e}),[]),zd={practice:(Bd=Dd.practice,Bd.reduce(((e,t)=>{const n={sentence:t.sentence,answer:t.answer,correct_response:t.correctresponse};return e.push(n),e}),[])),lab:Nd(Dd.lab),ai:Qc(Nd(Dd.ai)).slice(0,130),aiV1P1:Nd(Dd.aiV1P1),aiV1P2:Nd(Dd.aiV1P2),tosrec1:Md(Dd.tosrec).filter((e=>1===e.grade)),tosrec2:Md(Dd.tosrec).filter((e=>2===e.grade)),tosrec3:Md(Dd.tosrec).filter((e=>3===e.grade)),tosrec4:Md(Dd.tosrec).filter((e=>4===e.grade)),tosrec5:Md(Dd.tosrec).filter((e=>5===e.grade)),tosrec6:Md(Dd.tosrec).filter((e=>6===e.grade)),tosrec7:Md(Dd.tosrec).filter((e=>7===e.grade)),tosrec8:Md(Dd.tosrec).filter((e=>8===e.grade))};var Bd;const $d={name:"fullscreen",parameters:{fullscreen_mode:{type:Ir.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:Ir.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:Ir.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:Ir.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class qd{constructor(e){this.jsPsych=e}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.enterFullScreen(),this.endTrial(e,!0,t)}))}endTrial(e,t,n){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout((()=>{var e={success:t};this.jsPsych.finishTrial(e)}),n.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,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();!1===i.success?this.endTrial(a,!1,e):(this.trial(a,e),n(),this.jsPsych.pluginAPI.clickTarget(a.querySelector("#jspsych-fullscreen-btn"),this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)))}}qd.info=$d;let Vd=!0;const Yd={type:qd,fullscreen_mode:!0,message:()=>`<div class='text_div'><h1>${Ec.t("fullScreenTrial.prompt")}</h1></div>`,css_classes:["jspsych-content-modified"],delay_after:0,button_label:()=>`${Ec.t("fullScreenTrial.buttonText")}`,on_start:()=>{document.body.style.cursor="default"},on_finish:()=>{Vd?Vd=!1:document.body.style.cursor="none"}};function Gd(e,t){let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(Bs(t)>=6),n}function Hd(e){return"3minParallelAIFormV1"===e?Math.random()<.5?Qc(["lab","aiV1P1"]):Qc(["lab","aiV1P2"]):"3min1Block"===e?[Qc(["lab","aiV1P1","aiV1P2"])[0]]:["lab","ai"]}const Wd=e=>{e.displayElement&&(ol.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};ol.opts.on_finish=t(ol.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()}));const n=new Fd;ol.opts.on_data_update=t(ol.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:ol.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(a||null),colNo:String(s||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),s.session.has("initialized")&&s.local("initialized")||(s.session.set("practiceIndex",0),s.session.set("currentBlockIndex",0),s.session.set("trialNumBlock",0),s.session.set("trialNumTotal",0),s.session.set("demoCounter",0),s.session.set("nextStimulus",null),s.session.set("response",""),s.session.set("dataCorrect",""),s.session.set("keyResponse",""),s.session.set("gradeKeyResponse",[]),s.session.set("currentCorpus",[]),s.session.set("timeOut",!1),s.session.set("practiceCorpus",zd.practice),s.session.set("currentTrialCorrect",!0),s.session.set("coinTrackingIndex",0),s.session.set("initialized",!0)),s.session},Kd=e=>{const t=[Yd,...rl,{type:Oo,func:()=>{const t=s.session.get("config");t.pid=t.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n+=1)e+=t.charAt(Math.floor(62*Math.random()));return e})(),e.updateUser({assessmentPid:t.pid,labId:t.labId,...t.userMetadata})}}];return t};!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof _?t:_,r=Object.create(s.prototype),o=new C(i||[]);return a(r,"_invoke",{value:T(e,n,o)}),r}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function _(){}function y(){}function v(){}var b={};l(b,r,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&i.call(x,r)&&(b=x);var E=v.prototype=_.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,s,r,o){var c=d(e[a],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,r,o)}),(function(e){n("throw",e,r,o)})):t.resolve(u).then((function(e){l.value=e,r(l)}),(function(e){return n("throw",e,r,o)}))}o(c.arg)}var s;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return s=s?s.then(a,a):a()}})}function T(e,t,n){var i=p;return function(a,s){if(i===f)throw new Error("Generator is already running");if(i===m){if("throw"===a)throw s;return L()}for(n.method=a,n.arg=s;;){var r=n.delegate;if(r){var o=R(r,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=d(e,t,n);if("normal"===c.type){if(i=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function R(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=d(a,e.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var r=s.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=v,a(E,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,o,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,a,s){void 0===s&&(s=Promise);var r=new k(u(t,n,i,a),s);return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(E),l(E,c,"Generator"),l(E,r,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return o.type="throw",o.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var c=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=e,r.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Zd={exports:{}};
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Lodash <https://lodash.com/>
|
|
@@ -22,5 +22,5 @@ function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.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 i,a="Expected a function",s="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,u=128,d=256,p=1/0,h=9007199254740991,f=NaN,m=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",d]],_="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",x="[object Function]",E="[object GeneratorFunction]",S="[object Map]",k="[object Number]",T="[object Object]",R="[object Promise]",I="[object RegExp]",A="[object Set]",C="[object String]",O="[object Symbol]",L="[object WeakMap]",j="[object ArrayBuffer]",P="[object DataView]",U="[object Float32Array]",F="[object Float64Array]",D="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,K=RegExp(H.source),Z=RegExp(W.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Ae="\\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",Ce="['’]",Oe="["+Ee+"]",Le="["+Ae+"]",je="["+Se+"]",Pe="\\d+",Ue="["+ke+"]",Fe="["+Te+"]",De="[^"+Ee+Ae+Pe+ke+Te+Re+"]",Ne="\\ud83c[\\udffb-\\udfff]",Me="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Re+"]",qe="\\u200d",Ve="(?:"+Fe+"|"+De+")",Ye="(?:"+$e+"|"+De+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+je+"|"+Ne+")"+"?",Ke="["+Ie+"]?",Ze=Ke+We+("(?:"+qe+"(?:"+[Me,ze,Be].join("|")+")"+Ke+We+")*"),Je="(?:"+[Ue,ze,Be].join("|")+")"+Ze,Xe="(?:"+[Me+je+"?",je,ze,Be,Oe].join("|")+")",Qe=RegExp(Ce,"g"),et=RegExp(je,"g"),tt=RegExp(Ne+"(?="+Ne+")|"+Xe+Ze,"g"),nt=RegExp([$e+"?"+Fe+"+"+Ge+"(?="+[Le,$e,"$"].join("|")+")",Ye+"+"+He+"(?="+[Le,$e+Ve,"$"].join("|")+")",$e+"?"+Ve+"+"+Ge,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),it=RegExp("["+qe+Ee+Se+Ie+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["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[U]=ot[F]=ot[D]=ot[N]=ot[M]=ot[z]=ot[B]=ot[$]=ot[q]=!0,ot[_]=ot[y]=ot[j]=ot[v]=ot[P]=ot[b]=ot[w]=ot[x]=ot[S]=ot[k]=ot[T]=ot[I]=ot[A]=ot[C]=ot[L]=!1;var ct={};ct[_]=ct[y]=ct[j]=ct[P]=ct[v]=ct[b]=ct[U]=ct[F]=ct[D]=ct[N]=ct[M]=ct[S]=ct[k]=ct[T]=ct[I]=ct[A]=ct[C]=ct[O]=ct[z]=ct[B]=ct[$]=ct[q]=!0,ct[w]=ct[x]=ct[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,_t=gt&>.exports===mt,yt=_t&&pt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,xt=vt&&vt.isMap,Et=vt&&vt.isRegExp,St=vt&&vt.isSet,kt=vt&&vt.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Rt(e,t,n,i){for(var a=-1,s=null==e?0:e.length;++a<s;){var r=e[a];t(i,r,n(r),e)}return i}function It(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,i=null==e?0:e.length,a=0,s=[];++n<i;){var r=e[n];t(r,n,e)&&(s[a++]=r)}return s}function Lt(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function jt(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Pt(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}function Ut(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function Ft(e,t,n,i){var a=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}function Dt(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Nt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Mt=Gt("length");function zt(e,t,n){var i;return n(e,(function(e,n,a){if(t(e,n,a))return i=n,!1})),i}function Bt(e,t,n,i){for(var a=e.length,s=n+(i?1:-1);i?s--:++s<a;)if(t(e[s],s,e))return s;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,a=e.length;for(;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Vt,n)}function qt(e,t,n,i){for(var a=n-1,s=e.length;++a<s;)if(i(e[a],t))return a;return-1}function Vt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:f}function Gt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,a){return a(e,(function(e,a,s){n=i?(i=!1,e):t(n,e,a,s)})),n}function Kt(e,t){for(var n,a=-1,s=e.length;++a<s;){var r=t(e[a]);r!==i&&(n=n===i?r:n+r)}return n}function Zt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,mn(e)+1).replace(se,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Pt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var an=Ht({"À":"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"}),sn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,s[a++]=n)}return s}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Mt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var _n=function e(t){var n=(t=null==t?ft:_n.defaults(ft.Object(),t,_n.pick(ft,st))).Array,re=t.Date,Ee=t.Error,Se=t.Function,ke=t.Math,Te=t.Object,Re=t.RegExp,Ie=t.String,Ae=t.TypeError,Ce=n.prototype,Oe=Se.prototype,Le=Te.prototype,je=t["__core-js_shared__"],Pe=Oe.toString,Ue=Le.hasOwnProperty,Fe=0,De=function(){var e=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ne=Le.toString,Me=Pe.call(Te),ze=ft._,Be=Re("^"+Pe.call(Ue).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=_t?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ye=$e?$e.allocUnsafe:i,Ge=ln(Te.getPrototypeOf,Te),He=Te.create,We=Le.propertyIsEnumerable,Ke=Ce.splice,Ze=qe?qe.isConcatSpreadable:i,Je=qe?qe.iterator:i,Xe=qe?qe.toStringTag:i,tt=function(){try{var e=ds(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,mt=ke.floor,gt=Te.getOwnPropertySymbols,yt=$e?$e.isBuffer:i,vt=t.isFinite,Mt=Ce.join,Ht=ln(Te.keys,Te),yn=ke.max,vn=ke.min,bn=re.now,wn=t.parseInt,xn=ke.random,En=Ce.reverse,Sn=ds(t,"DataView"),kn=ds(t,"Map"),Tn=ds(t,"Promise"),Rn=ds(t,"Set"),In=ds(t,"WeakMap"),An=ds(Te,"create"),Cn=In&&new In,On={},Ln=Ds(Sn),jn=Ds(kn),Pn=Ds(Tn),Un=Ds(Rn),Fn=Ds(In),Dn=qe?qe.prototype:i,Nn=Dn?Dn.valueOf:i,Mn=Dn?Dn.toString:i;function zn(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Ue.call(e,"__wrapped__"))return Ns(e)}return new qn(e)}var Bn=function(){function e(){}return function(t){if(!Qr(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function $n(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=qr(e),i=!n&&$r(e),a=!n&&!i&&Hr(e),s=!n&&!i&&!a&&co(e),r=n||i||a||s,o=r?Zt(e.length,Ie):[],c=o.length;for(var l in e)!t&&!Ue.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ys(l,c))||o.push(l);return o}function Jn(e){var t=e.length;return t?e[Wi(0,t-1)]:i}function Xn(e,t){return Ps(Aa(e),oi(t,0,e.length))}function Qn(e){return Ps(Aa(e))}function ei(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&si(e,t,n)}function ti(e,t,n){var a=e[t];Ue.call(e,t)&&Mr(a,n)&&(n!==i||t in e)||si(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,a,s){t(i,e,n(e),s)})),i}function ai(e,t){return e&&Ca(t,Oo(t),e)}function si(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var a=-1,s=t.length,r=n(s),o=null==e;++a<s;)r[a]=o?i:To(e,t[a]);return r}function oi(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ci(e,t,n,a,s,r){var o,c=1&t,l=2&t,u=4&t;if(n&&(o=s?n(e,a,s,r):n(e)),o!==i)return o;if(!Qr(e))return e;var d=qr(e);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Aa(e,o)}else{var p=fs(e),h=p==x||p==E;if(Hr(e))return Ea(e,c);if(p==T||p==_||h&&!s){if(o=l||h?{}:gs(e),!c)return l?function(e,t){return Ca(e,hs(e),t)}(e,function(e,t){return e&&Ca(t,Lo(t),e)}(o,e)):function(e,t){return Ca(e,ps(e),t)}(e,ai(o,e))}else{if(!ct[p])return s?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case j:return Sa(e);case v:case b:return new i(+e);case P:return function(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case F:case D:case N:case M:case z:case B:case $:case q:return ka(e,n);case S:return new i;case k:case C:return new i(e);case I:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new i;case O:return a=e,Nn?Te(Nn.call(a)):{}}var a}(e,p,c)}}r||(r=new Kn);var f=r.get(e);if(f)return f;r.set(e,o),so(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,a){o.set(a,ci(i,t,n,a,e,r))}));var m=d?i:(u?l?as:is:l?Lo:Oo)(e);return It(m||e,(function(i,a){m&&(i=e[a=i]),ti(o,a,ci(i,t,n,a,e,r))})),o}function li(e,t,n){var a=n.length;if(null==e)return!a;for(e=Te(e);a--;){var s=n[a],r=t[s],o=e[s];if(o===i&&!(s in e)||!r(o))return!1}return!0}function ui(e,t,n){if("function"!=typeof e)throw new Ae(a);return Cs((function(){e.apply(i,n)}),t)}function di(e,t,n,i){var a=-1,s=Lt,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Pt(t,Xt(n))),i?(s=jt,r=!1):t.length>=200&&(s=en,r=!1,t=new Wn(t));e:for(;++a<o;){var u=e[a],d=null==n?u:n(u);if(u=i||0!==u?u:0,r&&d==d){for(var p=l;p--;)if(t[p]===d)continue e;c.push(u)}else s(t,d,i)||c.push(u)}return c}zn.templateSettings={escape:J,evaluate:X,interpolate:Q,variable:"",imports:{_:zn}},zn.prototype=$n.prototype,zn.prototype.constructor=zn,qn.prototype=Bn($n.prototype),qn.prototype.constructor=qn,Vn.prototype=Bn($n.prototype),Vn.prototype.constructor=Vn,Yn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===s?i:n}return Ue.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:Ue.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===i?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return ni(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,i=ni(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Gn),string:new Yn}},Hn.prototype.delete=function(e){var t=ls(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return ls(this,e).get(e)},Hn.prototype.has=function(e){return ls(this,e).has(e)},Hn.prototype.set=function(e,t){var n=ls(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,s),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!kn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(i)}return n.set(e,t),this.size=n.size,this};var pi=ja(bi),hi=ja(wi,!0);function fi(e,t){var n=!0;return pi(e,(function(e,i,a){return n=!!t(e,i,a)})),n}function mi(e,t,n){for(var a=-1,s=e.length;++a<s;){var r=e[a],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,a){t(e,i,a)&&n.push(e)})),n}function _i(e,t,n,i,a){var s=-1,r=e.length;for(n||(n=_s),a||(a=[]);++s<r;){var o=e[s];t>0&&n(o)?t>1?_i(o,t-1,n,i,a):Ut(a,o):i||(a[a.length]=o)}return a}var yi=Pa(),vi=Pa(!0);function bi(e,t){return e&&yi(e,t,Oo)}function wi(e,t){return e&&vi(e,t,Oo)}function xi(e,t){return Ot(t,(function(t){return Zr(e[t])}))}function Ei(e,t){for(var n=0,a=(t=va(t,e)).length;null!=e&&n<a;)e=e[Fs(t[n++])];return n&&n==a?e:i}function Si(e,t,n){var i=t(e);return qr(e)?i:Ut(i,n(e))}function ki(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in Te(e)?function(e){var t=Ue.call(e,Xe),n=e[Xe];try{e[Xe]=i;var a=!0}catch(e){}var s=Ne.call(e);a&&(t?e[Xe]=n:delete e[Xe]);return s}(e):function(e){return Ne.call(e)}(e)}function Ti(e,t){return e>t}function Ri(e,t){return null!=e&&Ue.call(e,t)}function Ii(e,t){return null!=e&&t in Te(e)}function Ai(e,t,a){for(var s=a?jt:Lt,r=e[0].length,o=e.length,c=o,l=n(o),u=1/0,d=[];c--;){var p=e[c];c&&t&&(p=Pt(p,Xt(t))),u=vn(p.length,u),l[c]=!a&&(t||r>=120&&p.length>=120)?new Wn(c&&p):i}p=e[0];var h=-1,f=l[0];e:for(;++h<r&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=a||0!==m?m:0,!(f?en(f,g):s(d,g,a))){for(c=o;--c;){var _=l[c];if(!(_?en(_,g):s(e[c],g,a)))continue e}f&&f.push(g),d.push(m)}}return d}function Ci(e,t,n){var a=null==(e=Rs(e,t=va(t,e)))?e:e[Fs(Ks(t))];return null==a?i:Tt(a,e,n)}function Oi(e){return eo(e)&&ki(e)==_}function Li(e,t,n,a,s){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,a,s,r){var o=qr(e),c=qr(t),l=o?y:fs(e),u=c?y:fs(t),d=(l=l==_?T:l)==T,p=(u=u==_?T:u)==T,h=l==u;if(h&&Hr(e)){if(!Hr(t))return!1;o=!0,d=!1}if(h&&!d)return r||(r=new Kn),o||co(e)?ts(e,t,n,a,s,r):function(e,t,n,i,a,s,r){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!s(new Ve(e),new Ve(t)));case v:case b:case k:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case I:case C:return e==t+"";case S:var o=cn;case A:var c=1&i;if(o||(o=dn),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var u=ts(o(e),o(t),i,a,s,r);return r.delete(e),u;case O:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,l,n,a,s,r);if(!(1&n)){var f=d&&Ue.call(e,"__wrapped__"),m=p&&Ue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,x=m?t.value():t;return r||(r=new Kn),s(g,x,n,a,r)}}if(!h)return!1;return r||(r=new Kn),function(e,t,n,a,s,r){var o=1&n,c=is(e),l=c.length,u=is(t),d=u.length;if(l!=d&&!o)return!1;var p=l;for(;p--;){var h=c[p];if(!(o?h in t:Ue.call(t,h)))return!1}var f=r.get(e),m=r.get(t);if(f&&m)return f==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var _=o;for(;++p<l;){var y=e[h=c[p]],v=t[h];if(a)var b=o?a(v,y,h,t,e,r):a(y,v,h,e,t,r);if(!(b===i?y===v||s(y,v,n,a,r):b)){g=!1;break}_||(_="constructor"==h)}if(g&&!_){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,a,s,r)}(e,t,n,a,Li,s))}function ji(e,t,n,a){var s=n.length,r=s,o=!a;if(null==e)return!r;for(e=Te(e);s--;){var c=n[s];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<r;){var l=(c=n[s])[0],u=e[l],d=c[1];if(o&&c[2]){if(u===i&&!(l in e))return!1}else{var p=new Kn;if(a)var h=a(u,d,l,e,t,p);if(!(h===i?Li(d,u,3,a,p):h))return!1}}return!0}function Pi(e){return!(!Qr(e)||(t=e,De&&De in t))&&(Zr(e)?Be:_e).test(Ds(e));var t}function Ui(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?Bi(e[0],e[1]):zi(e):pc(e)}function Fi(e){if(!Es(e))return Ht(e);var t=[];for(var n in Te(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Di(e){if(!Qr(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Es(e),n=[];for(var i in e)("constructor"!=i||!t&&Ue.call(e,i))&&n.push(i);return n}function Ni(e,t){return e<t}function Mi(e,t){var i=-1,a=Yr(e)?n(e.length):[];return pi(e,(function(e,n,s){a[++i]=t(e,n,s)})),a}function zi(e){var t=us(e);return 1==t.length&&t[0][2]?ks(t[0][0],t[0][1]):function(n){return n===e||ji(n,e,t)}}function Bi(e,t){return bs(e)&&Ss(t)?ks(Fs(e),t):function(n){var a=To(n,e);return a===i&&a===t?Ro(n,e):Li(t,a,3)}}function $i(e,t,n,a,s){e!==t&&yi(t,(function(r,o){if(s||(s=new Kn),Qr(r))!function(e,t,n,a,s,r,o){var c=Is(e,n),l=Is(t,n),u=o.get(l);if(u)return void ei(e,n,u);var d=r?r(c,l,n+"",e,t,o):i,p=d===i;if(p){var h=qr(l),f=!h&&Hr(l),m=!h&&!f&&co(l);d=l,h||f||m?qr(c)?d=c:Gr(c)?d=Aa(c):f?(p=!1,d=Ea(l,!0)):m?(p=!1,d=ka(l,!0)):d=[]:io(l)||$r(l)?(d=c,$r(c)?d=_o(c):Qr(c)&&!Zr(c)||(d=gs(l))):p=!1}p&&(o.set(l,d),s(d,l,a,r,o),o.delete(l));ei(e,n,d)}(e,t,o,n,$i,a,s);else{var c=a?a(Is(e,o),r,o+"",e,t,s):i;c===i&&(c=r),ei(e,o,c)}}),Lo)}function qi(e,t){var n=e.length;if(n)return ys(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Pt(t,(function(e){return qr(e)?function(t){return Ei(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Pt(t,Xt(cs()));var a=Mi(e,(function(e,n,a){var s=Pt(t,(function(t){return t(e)}));return{criteria:s,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var i=-1,a=e.criteria,s=t.criteria,r=a.length,o=n.length;for(;++i<r;){var c=Ta(a[i],s[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yi(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Ei(e,r);n(o,r)&&Qi(s,va(r,e),o)}return s}function Gi(e,t,n,i){var a=i?qt:$t,s=-1,r=t.length,o=e;for(e===t&&(t=Aa(t)),n&&(o=Pt(e,Xt(n)));++s<r;)for(var c=0,l=t[s],u=n?n(l):l;(c=a(o,u,c,i))>-1;)o!==e&&Ke.call(o,c,1),Ke.call(e,c,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;ys(a)?Ke.call(e,a,1):da(e,a)}}return e}function Wi(e,t){return e+mt(xn()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Os(Ts(e,t,ic),e+"")}function Ji(e){return Jn(zo(e))}function Xi(e,t){var n=zo(e);return Ps(n,oi(t,0,n.length))}function Qi(e,t,n,a){if(!Qr(e))return e;for(var s=-1,r=(t=va(t,e)).length,o=r-1,c=e;null!=c&&++s<r;){var l=Fs(t[s]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=o){var d=c[l];(u=a?a(d,l,c):i)===i&&(u=Qr(d)?d:ys(t[s+1])?[]:{})}ti(c,l,u),c=c[l]}return e}var ea=Cn?function(e,t){return Cn.set(e,t),e}:ic,ta=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function na(e){return Ps(zo(e))}function ia(e,t,i){var a=-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 r=n(s);++a<s;)r[a]=e[a+t];return r}function aa(e,t){var n;return pi(e,(function(e,i,a){return!(n=t(e,i,a))})),!!n}function sa(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var s=i+a>>>1,r=e[s];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=s+1:a=s}return a}return ra(e,t,ic,n)}function ra(e,t,n,a){var s=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),u=t===i;s<r;){var d=mt((s+r)/2),p=n(e[d]),h=p!==i,f=null===p,m=p==p,g=oo(p);if(o)var _=a||m;else _=u?m&&(a||h):c?m&&h&&(a||!f):l?m&&h&&!f&&(a||!g):!f&&!g&&(a?p<=t:p<t);_?s=d+1:r=d}return vn(r,4294967294)}function oa(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;s[a++]=0===r?0:r}}return s}function ca(e){return"number"==typeof e?e:oo(e)?f:+e}function la(e){if("string"==typeof e)return e;if(qr(e))return Pt(e,la)+"";if(oo(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ua(e,t,n){var i=-1,a=Lt,s=e.length,r=!0,o=[],c=o;if(n)r=!1,a=jt;else if(s>=200){var l=t?null:Ka(e);if(l)return dn(l);r=!1,a=en,c=new Wn}else c=t?[]:o;e:for(;++i<s;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,r&&d==d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),o.push(u)}else a(c,d,n)||(c!==o&&c.push(d),o.push(u))}return o}function da(e,t){return null==(e=Rs(e,t=va(t,e)))||delete e[Fs(Ks(t))]}function pa(e,t,n,i){return Qi(e,t,n(Ei(e,t)),i)}function ha(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?ia(e,i?0:s,i?s+1:a):ia(e,i?s+1:0,i?a:s)}function fa(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ma(e,t,i){var a=e.length;if(a<2)return a?ua(e[0]):[];for(var s=-1,r=n(a);++s<a;)for(var o=e[s],c=-1;++c<a;)c!=s&&(r[s]=di(r[s]||o,e[c],t,i));return ua(_i(r,1),t,i)}function ga(e,t,n){for(var a=-1,s=e.length,r=t.length,o={};++a<s;){var c=a<r?t[a]:i;n(o,e[a],c)}return o}function _a(e){return Gr(e)?e:[]}function ya(e){return"function"==typeof e?e:ic}function va(e,t){return qr(e)?e:bs(e,t)?[e]:Us(yo(e))}var ba=Zi;function wa(e,t,n){var a=e.length;return n=n===i?a:n,!t&&n>=a?e:ia(e,t,n)}var xa=it||function(e){return ft.clearTimeout(e)};function Ea(e,t){if(t)return e.slice();var n=e.length,i=Ye?Ye(n):new e.constructor(n);return e.copy(i),i}function Sa(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ka(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ta(e,t){if(e!==t){var n=e!==i,a=null===e,s=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,u=oo(t);if(!c&&!u&&!r&&e>t||r&&o&&l&&!c&&!u||a&&o&&l||!n&&l||!s)return 1;if(!a&&!r&&!u&&e<t||u&&n&&s&&!a&&!r||c&&n&&s||!o&&s||!l)return-1}return 0}function Ra(e,t,i,a){for(var s=-1,r=e.length,o=i.length,c=-1,l=t.length,u=yn(r-o,0),d=n(l+u),p=!a;++c<l;)d[c]=t[c];for(;++s<o;)(p||s<r)&&(d[i[s]]=e[s]);for(;u--;)d[c++]=e[s++];return d}function Ia(e,t,i,a){for(var s=-1,r=e.length,o=-1,c=i.length,l=-1,u=t.length,d=yn(r-c,0),p=n(d+u),h=!a;++s<d;)p[s]=e[s];for(var f=s;++l<u;)p[f+l]=t[l];for(;++o<c;)(h||s<r)&&(p[f+i[o]]=e[s++]);return p}function Aa(e,t){var i=-1,a=e.length;for(t||(t=n(a));++i<a;)t[i]=e[i];return t}function Ca(e,t,n,a){var s=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=a?a(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),s?si(n,c,l):ti(n,c,l)}return n}function Oa(e,t){return function(n,i){var a=qr(n)?Rt:ii,s=t?t():{};return a(n,e,cs(i,2),s)}}function La(e){return Zi((function(t,n){var a=-1,s=n.length,r=s>1?n[s-1]:i,o=s>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(s--,r):i,o&&vs(n[0],n[1],o)&&(r=s<3?i:r,s=1),t=Te(t);++a<s;){var c=n[a];c&&e(t,c,a,r)}return t}))}function ja(e,t){return function(n,i){if(null==n)return n;if(!Yr(n))return e(n,i);for(var a=n.length,s=t?a:-1,r=Te(n);(t?s--:++s<a)&&!1!==i(r[s],s,r););return n}}function Pa(e){return function(t,n,i){for(var a=-1,s=Te(t),r=i(t),o=r.length;o--;){var c=r[e?o:++a];if(!1===n(s[c],c,s))break}return t}}function Ua(e){return function(t){var n=on(t=yo(t))?fn(t):i,a=n?n[0]:t.charAt(0),s=n?wa(n,1).join(""):t.slice(1);return a[e]()+s}}function Fa(e){return function(t){return Ft(Jo(qo(t).replace(Qe,"")),e,"")}}function Da(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 n=Bn(e.prototype),i=e.apply(n,t);return Qr(i)?i:n}}function Na(e){return function(t,n,a){var s=Te(t);if(!Yr(t)){var r=cs(n,3);t=Oo(t),n=function(e){return r(s[e],e,s)}}var o=e(t,n,a);return o>-1?s[r?t[o]:o]:i}}function Ma(e){return ns((function(t){var n=t.length,s=n,r=qn.prototype.thru;for(e&&t.reverse();s--;){var o=t[s];if("function"!=typeof o)throw new Ae(a);if(r&&!c&&"wrapper"==rs(o))var c=new qn([],!0)}for(s=c?s:n;++s<n;){var l=rs(o=t[s]),u="wrapper"==l?ss(o):i;c=u&&ws(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[rs(u[0])].apply(c,u[3]):1==o.length&&ws(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var a=0,s=n?t[a].apply(this,e):i;++a<n;)s=t[a].call(this,s);return s}}))}function za(e,t,a,s,r,o,c,l,d,p){var h=t&u,f=1&t,m=2&t,g=24&t,_=512&t,y=m?i:Da(e);return function u(){for(var v=arguments.length,b=n(v),w=v;w--;)b[w]=arguments[w];if(g)var x=os(u),E=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,x);if(s&&(b=Ra(b,s,r,g)),o&&(b=Ia(b,o,c,g)),v-=E,g&&v<p){var S=un(b,x);return Ha(e,t,za,u.placeholder,a,b,S,l,d,p-v)}var k=f?a:this,T=m?k[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,a=vn(t.length,n),s=Aa(e);for(;a--;){var r=t[a];e[a]=ys(r,n)?s[r]:i}return e}(b,l):_&&v>1&&b.reverse(),h&&d<v&&(b.length=d),this&&this!==ft&&this instanceof u&&(T=y||Da(T)),T.apply(k,b)}}function Ba(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,a,s){t(i,n(e),a,s)})),i}(n,e,t(i),{})}}function $a(e,t){return function(n,a){var s;if(n===i&&a===i)return t;if(n!==i&&(s=n),a!==i){if(s===i)return a;"string"==typeof n||"string"==typeof a?(n=la(n),a=la(a)):(n=ca(n),a=ca(a)),s=e(n,a)}return s}}function qa(e){return ns((function(t){return t=Pt(t,Xt(cs())),Zi((function(n){var i=this;return e(t,(function(e){return Tt(e,i,n)}))}))}))}function Va(e,t){var n=(t=t===i?" ":la(t)).length;if(n<2)return n?Ki(t,e):t;var a=Ki(t,ht(e/hn(t)));return on(t)?wa(fn(a),0,e).join(""):a.slice(0,e)}function Ya(e){return function(t,a,s){return s&&"number"!=typeof s&&vs(t,a,s)&&(a=s=i),t=ho(t),a===i?(a=t,t=0):a=ho(a),function(e,t,i,a){for(var s=-1,r=yn(ht((t-e)/(i||1)),0),o=n(r);r--;)o[a?r:++s]=e,e+=i;return o}(t,a,s=s===i?t<a?1:-1:ho(s),e)}}function Ga(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Ha(e,t,n,a,s,r,o,u,d,p){var h=8&t;t|=h?c:l,4&(t&=~(h?l:c))||(t&=-4);var f=[e,t,s,h?r:i,h?o:i,h?i:r,h?i:o,u,d,p],m=n.apply(i,f);return ws(e)&&As(m,f),m.placeholder=a,Ls(m,e,t)}function Wa(e){var t=ke[e];return function(e,n){if(e=go(e),(n=null==n?0:vn(fo(n),292))&&vt(e)){var i=(yo(e)+"e").split("e");return+((i=(yo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ka=Rn&&1/dn(new Rn([,-0]))[1]==p?function(e){return new Rn(e)}:cc;function Za(e){return function(t){var n=fs(t);return n==S?cn(t):n==A?pn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ja(e,t,s,p,h,f,m,g){var _=2&t;if(!_&&"function"!=typeof e)throw new Ae(a);var y=p?p.length:0;if(y||(t&=-97,p=h=i),m=m===i?m:yn(fo(m),0),g=g===i?g:fo(g),y-=h?h.length:0,t&l){var v=p,b=h;p=h=i}var w=_?i:ss(e),x=[e,t,s,p,h,v,b,f,m,g];if(w&&function(e,t){var n=e[1],i=t[1],a=n|i,s=a<131,o=i==u&&8==n||i==u&&n==d&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&i&&(e[2]=t[2],a|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ra(l,c,t[4]):c,e[4]=l?un(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ia(l,c,t[6]):c,e[6]=l?un(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(x,w),e=x[0],t=x[1],s=x[2],p=x[3],h=x[4],!(g=x[9]=x[9]===i?_?0:e.length:yn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==o?function(e,t,a){var s=Da(e);return function r(){for(var o=arguments.length,c=n(o),l=o,u=os(r);l--;)c[l]=arguments[l];var d=o<3&&c[0]!==u&&c[o-1]!==u?[]:un(c,u);return(o-=d.length)<a?Ha(e,t,za,r.placeholder,i,c,d,i,i,a-o):Tt(this&&this!==ft&&this instanceof r?s:e,this,c)}}(e,t,g):t!=c&&33!=t||h.length?za.apply(i,x):function(e,t,i,a){var s=1&t,r=Da(e);return function t(){for(var o=-1,c=arguments.length,l=-1,u=a.length,d=n(u+c),p=this&&this!==ft&&this instanceof t?r:e;++l<u;)d[l]=a[l];for(;c--;)d[l++]=arguments[++o];return Tt(p,s?i:this,d)}}(e,t,s,p);else var E=function(e,t,n){var i=1&t,a=Da(e);return function t(){return(this&&this!==ft&&this instanceof t?a:e).apply(i?n:this,arguments)}}(e,t,s);return Ls((w?ea:As)(E,x),e,t)}function Xa(e,t,n,a){return e===i||Mr(e,Le[n])&&!Ue.call(a,n)?t:e}function Qa(e,t,n,a,s,r){return Qr(e)&&Qr(t)&&(r.set(t,e),$i(e,t,i,Qa,r),r.delete(t)),e}function es(e){return io(e)?i:e}function ts(e,t,n,a,s,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Wn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(a)var _=o?a(g,m,p,t,e,r):a(m,g,p,e,t,r);if(_!==i){if(_)continue;h=!1;break}if(f){if(!Nt(t,(function(e,t){if(!en(f,t)&&(m===e||s(m,e,n,a,r)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!s(m,g,n,a,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function ns(e){return Os(Ts(e,i,Vs),e+"")}function is(e){return Si(e,Oo,ps)}function as(e){return Si(e,Lo,hs)}var ss=Cn?function(e){return Cn.get(e)}:cc;function rs(e){for(var t=e.name+"",n=On[t],i=Ue.call(On,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}function os(e){return(Ue.call(zn,"placeholder")?zn:e).placeholder}function cs(){var e=zn.iteratee||ac;return e=e===ac?Ui:e,arguments.length?e(arguments[0],arguments[1]):e}function ls(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function us(e){for(var t=Oo(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,Ss(a)]}return t}function ds(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pi(n)?n:i}var ps=gt?function(e){return null==e?[]:(e=Te(e),Ot(gt(e),(function(t){return We.call(e,t)})))}:mc,hs=gt?function(e){for(var t=[];e;)Ut(t,ps(e)),e=Ge(e);return t}:mc,fs=ki;function ms(e,t,n){for(var i=-1,a=(t=va(t,e)).length,s=!1;++i<a;){var r=Fs(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&Xr(a)&&ys(r,a)&&(qr(e)||$r(e))}function gs(e){return"function"!=typeof e.constructor||Es(e)?{}:Bn(Ge(e))}function _s(e){return qr(e)||$r(e)||!!(Ze&&e&&e[Ze])}function ys(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vs(e,t,n){if(!Qr(n))return!1;var i=typeof t;return!!("number"==i?Yr(n)&&ys(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function bs(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Te(t))}function ws(e){var t=rs(e),n=zn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=ss(n);return!!i&&e===i[0]}(Sn&&fs(new Sn(new ArrayBuffer(1)))!=P||kn&&fs(new kn)!=S||Tn&&fs(Tn.resolve())!=R||Rn&&fs(new Rn)!=A||In&&fs(new In)!=L)&&(fs=function(e){var t=ki(e),n=t==T?e.constructor:i,a=n?Ds(n):"";if(a)switch(a){case Ln:return P;case jn:return S;case Pn:return R;case Un:return A;case Fn:return L}return t});var xs=je?Zr:gc;function Es(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ss(e){return e==e&&!Qr(e)}function ks(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Te(n)))}}function Ts(e,t,a){return t=yn(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,r=yn(i.length-t,0),o=n(r);++s<r;)o[s]=i[t+s];s=-1;for(var c=n(t+1);++s<t;)c[s]=i[s];return c[t]=a(o),Tt(e,this,c)}}function Rs(e,t){return t.length<2?e:Ei(e,ia(t,0,-1))}function Is(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var As=js(ea),Cs=pt||function(e,t){return ft.setTimeout(e,t)},Os=js(ta);function Ls(e,t,n){var i=t+"";return Os(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return It(g,(function(n){var i="_."+n[0];t&n[1]&&!Lt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function js(e){var t=0,n=0;return function(){var a=bn(),s=16-(a-n);if(n=a,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ps(e,t){var n=-1,a=e.length,s=a-1;for(t=t===i?a:t;++n<t;){var r=Wi(n,s),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Us=function(e){var t=jr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,i,a){t.push(i?a.replace(pe,"$1"):n||e)})),t}));function Fs(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ds(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ns(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Aa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ms=Zi((function(e,t){return Gr(e)?di(e,_i(t,1,Gr,!0)):[]})),zs=Zi((function(e,t){var n=Ks(t);return Gr(n)&&(n=i),Gr(e)?di(e,_i(t,1,Gr,!0),cs(n,2)):[]})),Bs=Zi((function(e,t){var n=Ks(t);return Gr(n)&&(n=i),Gr(e)?di(e,_i(t,1,Gr,!0),i,n):[]}));function $s(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:fo(n);return a<0&&(a=yn(i+a,0)),Bt(e,cs(t,3),a)}function qs(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a-1;return n!==i&&(s=fo(n),s=n<0?yn(a+s,0):vn(s,a-1)),Bt(e,cs(t,3),s,!0)}function Vs(e){return(null==e?0:e.length)?_i(e,1):[]}function Ys(e){return e&&e.length?e[0]:i}var Gs=Zi((function(e){var t=Pt(e,_a);return t.length&&t[0]===e[0]?Ai(t):[]})),Hs=Zi((function(e){var t=Ks(e),n=Pt(e,_a);return t===Ks(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ai(n,cs(t,2)):[]})),Ws=Zi((function(e){var t=Ks(e),n=Pt(e,_a);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ai(n,i,t):[]}));function Ks(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zs=Zi(Js);function Js(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var Xs=ns((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Hi(e,Pt(t,(function(e){return ys(e,n)?+e:e})).sort(Ta)),i}));function Qs(e){return null==e?e:En.call(e)}var er=Zi((function(e){return ua(_i(e,1,Gr,!0))})),tr=Zi((function(e){var t=Ks(e);return Gr(t)&&(t=i),ua(_i(e,1,Gr,!0),cs(t,2))})),nr=Zi((function(e){var t=Ks(e);return t="function"==typeof t?t:i,ua(_i(e,1,Gr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Gr(e))return t=yn(e.length,t),!0})),Zt(t,(function(t){return Pt(e,Gt(t))}))}function ar(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Pt(n,(function(e){return Tt(t,i,e)}))}var sr=Zi((function(e,t){return Gr(e)?di(e,t):[]})),rr=Zi((function(e){return ma(Ot(e,Gr))})),or=Zi((function(e){var t=Ks(e);return Gr(t)&&(t=i),ma(Ot(e,Gr),cs(t,2))})),cr=Zi((function(e){var t=Ks(e);return t="function"==typeof t?t:i,ma(Ot(e,Gr),i,t)})),lr=Zi(ir);var ur=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ar(e,n)}));function dr(e){var t=zn(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var hr=ns((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,s=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&ys(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[s],thisArg:i}),new qn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)}));var fr=Oa((function(e,t,n){Ue.call(e,n)?++e[n]:si(e,n,1)}));var mr=Na($s),gr=Na(qs);function _r(e,t){return(qr(e)?It:pi)(e,cs(t,3))}function yr(e,t){return(qr(e)?At:hi)(e,cs(t,3))}var vr=Oa((function(e,t,n){Ue.call(e,n)?e[n].push(t):si(e,n,[t])}));var br=Zi((function(e,t,i){var a=-1,s="function"==typeof t,r=Yr(e)?n(e.length):[];return pi(e,(function(e){r[++a]=s?Tt(t,e,i):Ci(e,t,i)})),r})),wr=Oa((function(e,t,n){si(e,n,t)}));function xr(e,t){return(qr(e)?Pt:Mi)(e,cs(t,3))}var Er=Oa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Sr=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vs(e,t[0],t[1])?t=[]:n>2&&vs(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,_i(t,1),[])})),kr=lt||function(){return ft.Date.now()};function Tr(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ja(e,u,i,i,i,i,t)}function Rr(e,t){var n;if("function"!=typeof t)throw new Ae(a);return e=fo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ir=Zi((function(e,t,n){var i=1;if(n.length){var a=un(n,os(Ir));i|=c}return Ja(e,i,t,n,a)})),Ar=Zi((function(e,t,n){var i=3;if(n.length){var a=un(n,os(Ar));i|=c}return Ja(t,i,e,n,a)}));function Cr(e,t,n){var s,r,o,c,l,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ae(a);function m(t){var n=s,a=r;return s=r=i,d=t,c=e.apply(a,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||h&&e-d>=o}function _(){var e=kr();if(g(e))return y(e);l=Cs(_,function(e){var n=t-(e-u);return h?vn(n,o-(e-d)):n}(e))}function y(e){return l=i,f&&s?m(e):(s=r=i,c)}function v(){var e=kr(),n=g(e);if(s=arguments,r=this,u=e,n){if(l===i)return function(e){return d=e,l=Cs(_,t),p?m(e):c}(u);if(h)return xa(l),l=Cs(_,t),m(u)}return l===i&&(l=Cs(_,t)),c}return t=go(t)||0,Qr(n)&&(p=!!n.leading,o=(h="maxWait"in n)?yn(go(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){l!==i&&xa(l),d=0,s=u=r=l=i},v.flush=function(){return l===i?c:y(kr())},v}var Or=Zi((function(e,t){return ui(e,1,t)})),Lr=Zi((function(e,t,n){return ui(e,go(t)||0,n)}));function jr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(a);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var r=e.apply(this,i);return n.cache=s.set(a,r)||s,r};return n.cache=new(jr.Cache||Hn),n}function Pr(e){if("function"!=typeof e)throw new Ae(a);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)}}jr.Cache=Hn;var Ur=ba((function(e,t){var n=(t=1==t.length&&qr(t[0])?Pt(t[0],Xt(cs())):Pt(_i(t,1),Xt(cs()))).length;return Zi((function(i){for(var a=-1,s=vn(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return Tt(e,this,i)}))})),Fr=Zi((function(e,t){var n=un(t,os(Fr));return Ja(e,c,i,t,n)})),Dr=Zi((function(e,t){var n=un(t,os(Dr));return Ja(e,l,i,t,n)})),Nr=ns((function(e,t){return Ja(e,d,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var zr=Ga(Ti),Br=Ga((function(e,t){return e>=t})),$r=Oi(function(){return arguments}())?Oi:function(e){return eo(e)&&Ue.call(e,"callee")&&!We.call(e,"callee")},qr=n.isArray,Vr=bt?Xt(bt):function(e){return eo(e)&&ki(e)==j};function Yr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Gr(e){return eo(e)&&Yr(e)}var Hr=yt||gc,Wr=wt?Xt(wt):function(e){return eo(e)&&ki(e)==b};function Kr(e){if(!eo(e))return!1;var t=ki(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Zr(e){if(!Qr(e))return!1;var t=ki(e);return t==x||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jr(e){return"number"==typeof e&&e==fo(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Qr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=xt?Xt(xt):function(e){return eo(e)&&fs(e)==S};function no(e){return"number"==typeof e||eo(e)&&ki(e)==k}function io(e){if(!eo(e)||ki(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Me}var ao=Et?Xt(Et):function(e){return eo(e)&&ki(e)==I};var so=St?Xt(St):function(e){return eo(e)&&fs(e)==A};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&ki(e)==C}function oo(e){return"symbol"==typeof e||eo(e)&&ki(e)==O}var co=kt?Xt(kt):function(e){return eo(e)&&Xr(e.length)&&!!ot[ki(e)]};var lo=Ga(Ni),uo=Ga((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Yr(e))return ro(e)?fn(e):Aa(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=fs(e);return(t==S?cn:t==A?dn:zo)(e)}function ho(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=ho(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(fo(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Qr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||ye.test(e)?dt(e.slice(2),n?2:8):me.test(e)?f:+e}function _o(e){return Ca(e,Lo(e))}function yo(e){return null==e?"":la(e)}var vo=La((function(e,t){if(Es(t)||Yr(t))Ca(t,Oo(t),e);else for(var n in t)Ue.call(t,n)&&ti(e,n,t[n])})),bo=La((function(e,t){Ca(t,Lo(t),e)})),wo=La((function(e,t,n,i){Ca(t,Lo(t),e,i)})),xo=La((function(e,t,n,i){Ca(t,Oo(t),e,i)})),Eo=ns(ri);var So=Zi((function(e,t){e=Te(e);var n=-1,a=t.length,s=a>2?t[2]:i;for(s&&vs(t[0],t[1],s)&&(a=1);++n<a;)for(var r=t[n],o=Lo(r),c=-1,l=o.length;++c<l;){var u=o[c],d=e[u];(d===i||Mr(d,Le[u])&&!Ue.call(e,u))&&(e[u]=r[u])}return e})),ko=Zi((function(e){return e.push(i,Qa),Tt(Po,i,e)}));function To(e,t,n){var a=null==e?i:Ei(e,t);return a===i?n:a}function Ro(e,t){return null!=e&&ms(e,t,Ii)}var Io=Ba((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),ec(ic)),Ao=Ba((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),cs),Co=Zi(Ci);function Oo(e){return Yr(e)?Zn(e):Fi(e)}function Lo(e){return Yr(e)?Zn(e,!0):Di(e)}var jo=La((function(e,t,n){$i(e,t,n)})),Po=La((function(e,t,n,i){$i(e,t,n,i)})),Uo=ns((function(e,t){var n={};if(null==e)return n;var i=!1;t=Pt(t,(function(t){return t=va(t,e),i||(i=t.length>1),t})),Ca(e,as(e),n),i&&(n=ci(n,7,es));for(var a=t.length;a--;)da(n,t[a]);return n}));var Fo=ns((function(e,t){return null==e?{}:function(e,t){return Yi(e,t,(function(t,n){return Ro(e,n)}))}(e,t)}));function Do(e,t){if(null==e)return{};var n=Pt(as(e),(function(e){return[e]}));return t=cs(t),Yi(e,n,(function(e,n){return t(e,n[0])}))}var No=Za(Oo),Mo=Za(Lo);function zo(e){return null==e?[]:Qt(e,Oo(e))}var Bo=Fa((function(e,t,n){return t=t.toLowerCase(),e+(n?$o(t):t)}));function $o(e){return Zo(yo(e).toLowerCase())}function qo(e){return(e=yo(e))&&e.replace(be,an).replace(et,"")}var Vo=Fa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Yo=Fa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Go=Ua("toLowerCase");var Ho=Fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Wo=Fa((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Ko=Fa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Ua("toUpperCase");function Jo(e,t,n){return e=yo(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return Tt(e,i,t)}catch(e){return Kr(e)?e:new Ee(e)}})),Qo=ns((function(e,t){return It(t,(function(t){t=Fs(t),si(e,t,Ir(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ma(),nc=Ma(!0);function ic(e){return e}function ac(e){return Ui("function"==typeof e?e:ci(e,1))}var sc=Zi((function(e,t){return function(n){return Ci(n,e,t)}})),rc=Zi((function(e,t){return function(n){return Ci(e,n,t)}}));function oc(e,t,n){var i=Oo(t),a=xi(t,i);null!=n||Qr(t)&&(a.length||!i.length)||(n=t,t=e,e=this,a=xi(t,Oo(t)));var s=!(Qr(n)&&"chain"in n&&!n.chain),r=Zr(e);return It(a,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=Aa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function cc(){}var lc=qa(Pt),uc=qa(Ct),dc=qa(Nt);function pc(e){return bs(e)?Gt(Fs(e)):function(e){return function(t){return Ei(t,e)}}(e)}var hc=Ya(),fc=Ya(!0);function mc(){return[]}function gc(){return!1}var _c=$a((function(e,t){return e+t}),0),yc=Wa("ceil"),vc=$a((function(e,t){return e/t}),1),bc=Wa("floor");var wc,xc=$a((function(e,t){return e*t}),1),Ec=Wa("round"),Sc=$a((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ae(a);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Tr,zn.assign=vo,zn.assignIn=bo,zn.assignInWith=wo,zn.assignWith=xo,zn.at=Eo,zn.before=Rr,zn.bind=Ir,zn.bindAll=Qo,zn.bindKey=Ar,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},zn.chain=dr,zn.chunk=function(e,t,a){t=(a?vs(e,t,a):t===i)?1:yn(fo(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var r=0,o=0,c=n(ht(s/t));r<s;)c[o++]=ia(e,r,r+=t);return c},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Ut(qr(i)?Aa(i):[i],_i(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=cs();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Ae(a);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var a=e[i];if(Tt(a[0],this,n))return Tt(a[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Oo(e);return function(n){return li(n,e,t)}}(ci(e,1))},zn.constant=ec,zn.countBy=fr,zn.create=function(e,t){var n=Bn(e);return null==t?n:ai(n,t)},zn.curry=function e(t,n,a){var s=Ja(t,8,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},zn.curryRight=function e(t,n,a){var s=Ja(t,o,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},zn.debounce=Cr,zn.defaults=So,zn.defaultsDeep=ko,zn.defer=Or,zn.delay=Lr,zn.difference=Ms,zn.differenceBy=zs,zn.differenceWith=Bs,zn.drop=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,(t=n||t===i?1:fo(t))<0?0:t,a):[]},zn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,0,(t=a-(t=n||t===i?1:fo(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!0):[]},zn.fill=function(e,t,n,a){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&vs(e,t,n)&&(n=0,a=s),function(e,t,n,a){var s=e.length;for((n=fo(n))<0&&(n=-n>s?0:s+n),(a=a===i||a>s?s:fo(a))<0&&(a+=s),a=n>a?0:mo(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},zn.filter=function(e,t){return(qr(e)?Ot:gi)(e,cs(t,3))},zn.flatMap=function(e,t){return _i(xr(e,t),1)},zn.flatMapDeep=function(e,t){return _i(xr(e,t),p)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:fo(n),_i(xr(e,t),n)},zn.flatten=Vs,zn.flattenDeep=function(e){return(null==e?0:e.length)?_i(e,p):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?_i(e,t=t===i?1:fo(t)):[]},zn.flip=function(e){return Ja(e,512)},zn.flow=tc,zn.flowRight=nc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i},zn.functions=function(e){return null==e?[]:xi(e,Oo(e))},zn.functionsIn=function(e){return null==e?[]:xi(e,Lo(e))},zn.groupBy=vr,zn.initial=function(e){return(null==e?0:e.length)?ia(e,0,-1):[]},zn.intersection=Gs,zn.intersectionBy=Hs,zn.intersectionWith=Ws,zn.invert=Io,zn.invertBy=Ao,zn.invokeMap=br,zn.iteratee=ac,zn.keyBy=wr,zn.keys=Oo,zn.keysIn=Lo,zn.map=xr,zn.mapKeys=function(e,t){var n={};return t=cs(t,3),bi(e,(function(e,i,a){si(n,t(e,i,a),e)})),n},zn.mapValues=function(e,t){var n={};return t=cs(t,3),bi(e,(function(e,i,a){si(n,i,t(e,i,a))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return Bi(e,ci(t,1))},zn.memoize=jr,zn.merge=jo,zn.mergeWith=Po,zn.method=sc,zn.methodOf=rc,zn.mixin=oc,zn.negate=Pr,zn.nthArg=function(e){return e=fo(e),Zi((function(t){return qi(t,e)}))},zn.omit=Uo,zn.omitBy=function(e,t){return Do(e,Pr(cs(t)))},zn.once=function(e){return Rr(2,e)},zn.orderBy=function(e,t,n,a){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=a?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},zn.over=lc,zn.overArgs=Ur,zn.overEvery=uc,zn.overSome=dc,zn.partial=Fr,zn.partialRight=Dr,zn.partition=Er,zn.pick=Fo,zn.pickBy=Do,zn.property=pc,zn.propertyOf=function(e){return function(t){return null==e?i:Ei(e,t)}},zn.pull=Zs,zn.pullAll=Js,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,cs(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,i,n):e},zn.pullAt=Xs,zn.range=hc,zn.rangeRight=fc,zn.rearg=Nr,zn.reject=function(e,t){return(qr(e)?Ot:gi)(e,Pr(cs(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],s=e.length;for(t=cs(t,3);++i<s;){var r=e[i];t(r,i,e)&&(n.push(r),a.push(i))}return Hi(e,a),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ae(a);return Zi(e,t=t===i?t:fo(t))},zn.reverse=Qs,zn.sampleSize=function(e,t,n){return t=(n?vs(e,t,n):t===i)?1:fo(t),(qr(e)?Xn:Xi)(e,t)},zn.set=function(e,t,n){return null==e?e:Qi(e,t,n)},zn.setWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:Qi(e,t,n,a)},zn.shuffle=function(e){return(qr(e)?Qn:na)(e)},zn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&vs(e,t,n)?(t=0,n=a):(t=null==t?0:fo(t),n=n===i?a:fo(n)),ia(e,t,n)):[]},zn.sortBy=Sr,zn.sortedUniq=function(e){return e&&e.length?oa(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?oa(e,cs(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&vs(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!ao(t))&&!(t=la(t))&&on(e)?wa(fn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ae(a);return t=null==t?0:yn(fo(t),0),Zi((function(n){var i=n[t],a=wa(n,0,t);return i&&Ut(a,i),Tt(e,this,a)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ia(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ia(e,0,(t=n||t===i?1:fo(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,(t=a-(t=n||t===i?1:fo(t)))<0?0:t,a):[]},zn.takeRightWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?ha(e,cs(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new Ae(a);return Qr(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),Cr(e,t,{leading:i,maxWait:t,trailing:s})},zn.thru=pr,zn.toArray=po,zn.toPairs=No,zn.toPairsIn=Mo,zn.toPath=function(e){return qr(e)?Pt(e,Fs):oo(e)?[e]:Aa(Us(yo(e)))},zn.toPlainObject=_o,zn.transform=function(e,t,n){var i=qr(e),a=i||Hr(e)||co(e);if(t=cs(t,4),null==n){var s=e&&e.constructor;n=a?i?new s:[]:Qr(e)&&Zr(s)?Bn(Ge(e)):{}}return(a?It:bi)(e,(function(e,i,a){return t(n,e,i,a)})),n},zn.unary=function(e){return Tr(e,1)},zn.union=er,zn.unionBy=tr,zn.unionWith=nr,zn.uniq=function(e){return e&&e.length?ua(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ua(e,cs(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ua(e,i,t):[]},zn.unset=function(e,t){return null==e||da(e,t)},zn.unzip=ir,zn.unzipWith=ar,zn.update=function(e,t,n){return null==e?e:pa(e,t,ya(n))},zn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:pa(e,t,ya(n),a)},zn.values=zo,zn.valuesIn=function(e){return null==e?[]:Qt(e,Lo(e))},zn.without=sr,zn.words=Jo,zn.wrap=function(e,t){return Fr(ya(t),e)},zn.xor=rr,zn.xorBy=or,zn.xorWith=cr,zn.zip=lr,zn.zipObject=function(e,t){return ga(e||[],t||[],ti)},zn.zipObjectDeep=function(e,t){return ga(e||[],t||[],Qi)},zn.zipWith=ur,zn.entries=No,zn.entriesIn=Mo,zn.extend=bo,zn.extendWith=wo,oc(zn,zn),zn.add=_c,zn.attempt=Xo,zn.camelCase=Bo,zn.capitalize=$o,zn.ceil=yc,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||li(e,t,Oo(t))},zn.deburr=qo,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=vc,zn.endsWith=function(e,t,n){e=yo(e),t=la(t);var a=e.length,s=n=n===i?a:oi(fo(n),0,a);return(n-=t.length)>=0&&e.slice(n,s)==t},zn.eq=Mr,zn.escape=function(e){return(e=yo(e))&&Z.test(e)?e.replace(W,sn):e},zn.escapeRegExp=function(e){return(e=yo(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},zn.every=function(e,t,n){var a=qr(e)?Ct:fi;return n&&vs(e,t,n)&&(t=i),a(e,cs(t,3))},zn.find=mr,zn.findIndex=$s,zn.findKey=function(e,t){return zt(e,cs(t,3),bi)},zn.findLast=gr,zn.findLastIndex=qs,zn.findLastKey=function(e,t){return zt(e,cs(t,3),wi)},zn.floor=bc,zn.forEach=_r,zn.forEachRight=yr,zn.forIn=function(e,t){return null==e?e:yi(e,cs(t,3),Lo)},zn.forInRight=function(e,t){return null==e?e:vi(e,cs(t,3),Lo)},zn.forOwn=function(e,t){return e&&bi(e,cs(t,3))},zn.forOwnRight=function(e,t){return e&&wi(e,cs(t,3))},zn.get=To,zn.gt=zr,zn.gte=Br,zn.has=function(e,t){return null!=e&&ms(e,t,Ri)},zn.hasIn=Ro,zn.head=Ys,zn.identity=ic,zn.includes=function(e,t,n,i){e=Yr(e)?e:zo(e),n=n&&!i?fo(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),ro(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&$t(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:fo(n);return a<0&&(a=yn(i+a,0)),$t(e,t,a)},zn.inRange=function(e,t,n){return t=ho(t),n===i?(n=t,t=0):n=ho(n),function(e,t,n){return e>=vn(t,n)&&e<yn(t,n)}(e=go(e),t,n)},zn.invoke=Co,zn.isArguments=$r,zn.isArray=qr,zn.isArrayBuffer=Vr,zn.isArrayLike=Yr,zn.isArrayLikeObject=Gr,zn.isBoolean=function(e){return!0===e||!1===e||eo(e)&&ki(e)==v},zn.isBuffer=Hr,zn.isDate=Wr,zn.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Yr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Hr(e)||co(e)||$r(e)))return!e.length;var t=fs(e);if(t==S||t==A)return!e.size;if(Es(e))return!Fi(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Li(e,t)},zn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:i)?n(e,t):i;return a===i?Li(e,t,i,n):!!a},zn.isError=Kr,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Zr,zn.isInteger=Jr,zn.isLength=Xr,zn.isMap=to,zn.isMatch=function(e,t){return e===t||ji(e,t,us(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,ji(e,t,us(t),n)},zn.isNaN=function(e){return no(e)&&e!=+e},zn.isNative=function(e){if(xs(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pi(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=no,zn.isObject=Qr,zn.isObjectLike=eo,zn.isPlainObject=io,zn.isRegExp=ao,zn.isSafeInteger=function(e){return Jr(e)&&e>=-9007199254740991&&e<=h},zn.isSet=so,zn.isString=ro,zn.isSymbol=oo,zn.isTypedArray=co,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return eo(e)&&fs(e)==L},zn.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==ki(e)},zn.join=function(e,t){return null==e?"":Mt.call(e,t)},zn.kebabCase=Vo,zn.last=Ks,zn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a;return n!==i&&(s=(s=fo(n))<0?yn(a+s,0):vn(s,a-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Bt(e,Vt,s,!0)},zn.lowerCase=Yo,zn.lowerFirst=Go,zn.lt=lo,zn.lte=uo,zn.max=function(e){return e&&e.length?mi(e,ic,Ti):i},zn.maxBy=function(e,t){return e&&e.length?mi(e,cs(t,2),Ti):i},zn.mean=function(e){return Yt(e,ic)},zn.meanBy=function(e,t){return Yt(e,cs(t,2))},zn.min=function(e){return e&&e.length?mi(e,ic,Ni):i},zn.minBy=function(e,t){return e&&e.length?mi(e,cs(t,2),Ni):i},zn.stubArray=mc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=xc,zn.nth=function(e,t){return e&&e.length?qi(e,fo(t)):i},zn.noConflict=function(){return ft._===this&&(ft._=ze),this},zn.noop=cc,zn.now=kr,zn.pad=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Va(mt(a),n)+e+Va(ht(a),n)},zn.padEnd=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?e+Va(t-i,n):e},zn.padStart=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?Va(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(yo(e).replace(se,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vs(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ho(e),t===i?(t=e,e=0):t=ho(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var s=xn();return vn(e+s*(t-e+ut("1e-"+((s+"").length-1))),t)}return Wi(e,t)},zn.reduce=function(e,t,n){var i=qr(e)?Ft:Wt,a=arguments.length<3;return i(e,cs(t,4),n,a,pi)},zn.reduceRight=function(e,t,n){var i=qr(e)?Dt:Wt,a=arguments.length<3;return i(e,cs(t,4),n,a,hi)},zn.repeat=function(e,t,n){return t=(n?vs(e,t,n):t===i)?1:fo(t),Ki(yo(e),t)},zn.replace=function(){var e=arguments,t=yo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var a=-1,s=(t=va(t,e)).length;for(s||(s=1,e=i);++a<s;){var r=null==e?i:e[Fs(t[a])];r===i&&(a=s,r=n),e=Zr(r)?r.call(e):r}return e},zn.round=Ec,zn.runInContext=e,zn.sample=function(e){return(qr(e)?Jn:Ji)(e)},zn.size=function(e){if(null==e)return 0;if(Yr(e))return ro(e)?hn(e):e.length;var t=fs(e);return t==S||t==A?e.size:Fi(e).length},zn.snakeCase=Ho,zn.some=function(e,t,n){var a=qr(e)?Nt:aa;return n&&vs(e,t,n)&&(t=i),a(e,cs(t,3))},zn.sortedIndex=function(e,t){return sa(e,t)},zn.sortedIndexBy=function(e,t,n){return ra(e,t,cs(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=sa(e,t);if(i<n&&Mr(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return sa(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ra(e,t,cs(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=sa(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},zn.startCase=Wo,zn.startsWith=function(e,t,n){return e=yo(e),n=null==n?0:oi(fo(n),0,e.length),t=la(t),e.slice(n,n+t.length)==t},zn.subtract=Sc,zn.sum=function(e){return e&&e.length?Kt(e,ic):0},zn.sumBy=function(e,t){return e&&e.length?Kt(e,cs(t,2)):0},zn.template=function(e,t,n){var a=zn.templateSettings;n&&vs(e,t,n)&&(t=i),e=yo(e),t=wo({},t,a,Xa);var s,r,o=wo({},t.imports,a.imports,Xa),c=Oo(o),l=Qt(o,c),u=0,d=t.interpolate||we,p="__p += '",h=Re((t.escape||we).source+"|"+d.source+"|"+(d===Q?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,i,a,o,c){return i||(i=a),p+=e.slice(u,c).replace(xe,rn),n&&(s=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),p+="';\n";var m=Ue.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(Y,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xo((function(){return Se(c,f+"return "+p).apply(i,l)}));if(g.source=p,Kr(g))throw g;return g},zn.times=function(e,t){if((e=fo(e))<1||e>h)return[];var n=m,i=vn(e,m);t=cs(t),e-=m;for(var a=Zt(i,t);++n<e;)t(n);return a},zn.toFinite=ho,zn.toInteger=fo,zn.toLength=mo,zn.toLower=function(e){return yo(e).toLowerCase()},zn.toNumber=go,zn.toSafeInteger=function(e){return e?oi(fo(e),-9007199254740991,h):0===e?e:0},zn.toString=yo,zn.toUpper=function(e){return yo(e).toUpperCase()},zn.trim=function(e,t,n){if((e=yo(e))&&(n||t===i))return Jt(e);if(!e||!(t=la(t)))return e;var a=fn(e),s=fn(t);return wa(a,tn(a,s),nn(a,s)+1).join("")},zn.trimEnd=function(e,t,n){if((e=yo(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=la(t)))return e;var a=fn(e);return wa(a,0,nn(a,fn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=yo(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=la(t)))return e;var a=fn(e);return wa(a,tn(a,fn(t))).join("")},zn.truncate=function(e,t){var n=30,a="...";if(Qr(t)){var s="separator"in t?t.separator:s;n="length"in t?fo(t.length):n,a="omission"in t?la(t.omission):a}var r=(e=yo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-hn(a);if(c<1)return a;var l=o?wa(o,0,c).join(""):e.slice(0,c);if(s===i)return l+a;if(o&&(c+=l.length-c),ao(s)){if(e.slice(c).search(s)){var u,d=l;for(s.global||(s=Re(s.source,yo(fe.exec(s))+"g")),s.lastIndex=0;u=s.exec(d);)var p=u.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(la(s),c)!=c){var h=l.lastIndexOf(s);h>-1&&(l=l.slice(0,h))}return l+a},zn.unescape=function(e){return(e=yo(e))&&K.test(e)?e.replace(H,gn):e},zn.uniqueId=function(e){var t=++Fe;return yo(e)+t},zn.upperCase=Ko,zn.upperFirst=Zo,zn.each=_r,zn.eachRight=yr,zn.first=Ys,oc(zn,(wc={},bi(zn,(function(e,t){Ue.call(zn.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zn.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),It(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:yn(fo(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=vn(n,a.__takeCount__):a.__views__.push({size:vn(n,m),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:cs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ci(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Pr(cs(e)))},Vn.prototype.slice=function(e,t){e=fo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),s=zn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);s&&(zn.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,c=t instanceof Vn,l=o[0],u=c||qr(t),d=function(e){var t=s.apply(zn,Ut([e],o));return a&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=r&&!p,m=c&&!h;if(!r&&u){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[d],thisArg:i}),new qn(g,p)}return f&&m?e.apply(this,o):(g=this.thru(d),f?a?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return t.apply(qr(a)?a:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Ue.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}})),On[za(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Aa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Aa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Aa(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,a=n?e.length:0,s=function(e,t,n){var i=-1,a=n.length;for(;++i<a;){var s=n[i],r=s.size;switch(s.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=vn(t,e+r);break;case"takeRight":e=yn(e,t-r)}}return{start:e,end:t}}(0,a,this.__views__),r=s.start,o=s.end,c=o-r,l=i?o:r-1,u=this.__iteratees__,d=u.length,p=0,h=vn(c,this.__takeCount__);if(!n||!i&&a==c&&h==c)return fa(e,this.__actions__);var f=[];e:for(;c--&&p<h;){for(var m=-1,g=e[l+=t];++m<d;){var _=u[m],y=_.iteratee,v=_.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)continue e;break e}}f[p++]=g}return f},zn.prototype.at=hr,zn.prototype.chain=function(){return dr(this)},zn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var a=Ns(n);a.__index__=0,a.__values__=i,t?s.__wrapped__=a:t=a;var s=a;n=n.__wrapped__}return s.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Qs],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Qs)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Je&&(zn.prototype[Je]=function(){return this}),zn}();gt?((gt.exports=_n)._=_n,mt._=_n):ft._=_n}).call(n)}(Zd,Zd.exports);var Jd=Zd.exports;const Xd={type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("introductionNs")]:Jc.audio[Jd.camelCase("introduction")],prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("introduction.intro.text1")} </h3>\n <p> ${Ec.t("introduction.intro.text2")} </p> \n <p> ${Ec.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("introduction.intro.text4")} </h3>\n <p> ${Ec.t("introduction.intro.text5")} </p> \n <p> ${Ec.t("introduction.intro.text6")} </p> \n <p> ${Ec.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},Qd={timeline:[{type:Mo,stimulus:()=>Jc.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Ec.t("practice.postPracticeIntro.text1")}</h3>\n <p>${Ec.t("practice.postPracticeIntro.text2")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text3")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text4")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text5")}</p>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`:""},{type:Mo,stimulus:()=>Jc.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Ec.t(Kc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${Jc.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Ec.t(Kc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${Jc.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${Ec.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${Ec.t("practice.postPracticeReminder.text4")} </b></p>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.begin")}`})} </button>`:"",on_finish:()=>{s.session.set("indexTracking",0)}}]},ep={name:"html-multi-response",parameters:{stimulus:{type:Ir.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Ir.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Ir.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Ir.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Ir.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Ir.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Ir.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Ir.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Ir.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Ir.BOOL,pretty_name:"Response ends trial",default:!0}}};class tp{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=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 a=0;a<t.button_choices.length;a++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(a=0;a<t.button_choices.length;a++){var s=i[a].replace(/%choice%/g,t.button_choices[a]);n+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+a+'" data-choice="'+a+'">'+s+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(n){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},n)),t.response_ends_trial&&l()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(a=0;a<t.button_choices.length;a++)e.querySelector("#jspsych-html-multi-response-button-"+a).addEventListener("click",(e=>{u(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var n={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(n)};function u(n){var i=performance.now(),a=Math.round(i-o);c.button=parseInt(n),c.rt=a,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var s=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<s.length;r++)s[r].setAttribute("disabled","disabled");t.response_ends_trial&&l()}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(l,t.trial_duration)}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={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"},i={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"},a=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(a,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();this.trial(a,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(a.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}tp.info=ep;const np={type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("halfwayNs")]:s.session.get("config").story?Jc.audio[Jd.camelCase(`${s.session("character")}Halfway`)]:"",prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${Ec.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.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="${Jc.images[Jd.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${Ec.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${Ec.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`,on_finish:()=>{s.session.set("indexTracking",0)}},ip={timeline:[{type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("endNs")]:s.session.get("config").story?Jc.audio[Jd.camelCase(`${s.session("character")}End`)]:"",prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("gameBreak.endScreen.text1")} </h3>\n <p> ${Ec.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Jc.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> ${Ec.t("gameBreak.endScreen.text3")} </h3>\n <p> ${s.session("character_name")} ${Ec.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Jc.images[Jd.camelCase(`${s.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:tp,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${Ec.t("gameBreak.debrief.text1")}</h3>\n <p>${Ec.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===s.session.get("config").userMode},{type:qd,fullscreen_mode:!1,delay_after:0}]},ap={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},sp=[1,2,3,4],rp=["dog","cat","bird","deer"],op={timeline:[{type:Mo,stimulus:()=>Jc.audio.studentSelect,prompt:()=>Kc?`\n <div>\n <img id="mobile-classroom-bg" src=${Jc.images.classroomBackground} alt="background"/>\n <h3>${Ec.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Ec.t(Kc?"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=${Jc.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>${Ec.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Ec.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Kc?"":`<div class="number">${sp.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Kc?"mobile-student-select-characters":""}">\n ${rp.map((e=>`<img src=${Jc.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${Ec.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Kc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Kc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Kc,data:{save_trial:!1},on_load:()=>{if(Kc){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"),n=document.createTextNode(Ec.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(Ec.t("characterSelect.studentSelect.paragraph3MobileAfter")),a=document.createElement("span");a.classList.add("yellow"),a.textContent=Ec.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(a),t.appendChild(i),t.classList.add("button");const s=document.createElement("div"),r=rp.map((e=>{const t=document.createElement("img");return t.setAttribute("src",Jc.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)s.appendChild(e);e.appendChild(s),e.appendChild(t)}}},on_finish:e=>{s.session.set("character",ap[Kc?e.button_response+1:e.keyboard_response].character),s.session.set("character_name",ap[Kc?e.button_response+1:e.keyboard_response].characterName),s.session.set("character_activity",ap[Kc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Mo,stimulus:()=>Jc.audio[Jd.camelCase(`${s.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="${Jc.images[Jd.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${Ec.t("characterSelect.studentIntro.paragraph1")} ${s.session("character_name")}. </p>\n <p> ${Ec.t("characterSelect.studentIntro.paragraph2")} ${s.session("character_activity")}. </p>\n <p> ${Ec.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6)},cp=(e,t,n)=>({timeline:[{type:tp,stimulus:()=>{if(0===s.session("indexTracking")){const t=setTimeout((()=>s.session.set("timeOut",!0)),n);s.session.set("timerId",t),"tosrec"!==e?s.session.set("currentCorpus",zd[e]):s.session.set("currentCorpus",zd[s.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${s.session("currentCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){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:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?s.session.set("keyResponse","left"):s.session.set("keyResponse","right"):0===n.button_response?s.session.set("buttonResponse","left"):s.session.set("buttonResponse","right"),n.keyboard_response?n.correct=ol.pluginAPI.compareKeys(s.session("keyResponse"),s.session("currentCorpus")[s.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===s.session("currentCorpus")[s.session("indexTracking")].direction||1===n.button_response&&"right"===s.session("currentCorpus")[s.session("indexTracking")].direction,n.correct?s.session.set("dataCorrect",1):s.session.set("dataCorrect",0),pp.addResponseData(n.rt,n.keyboard_response,s.session("dataCorrect")),ol.data.addDataToLastTrial({save_trial:!s.session("timeOut"),pid:s.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:s.session("tosrecCorpusId"),trialNumBlock:s.session("indexTracking")+1,itemId:s.session("currentCorpus")[s.session("indexTracking")].itemId,item:s.session("currentCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("currentCorpus")[s.session("indexTracking")].answer,correct:s.session("dataCorrect"),story:s.session.get("config").story})}},{type:Mo,stimulus:()=>Jc.audio.neutralSoundSub,prompt:()=>Kc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Kc){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 s.session("indexTracking")===s.session("currentCorpus").length-1||s.session("timeOut")?(s.session.set("indexTracking",0),s.session.set("timeOut",!1),clearTimeout(s.session.get("timerId")),!1):(s.session.transact("indexTracking",(e=>e+1)),!0)}}),lp={type:Mo,stimulus:()=>Jc.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${Ec.t("practice.intro.text1")}</h2>\n <p>${Ec.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${Ec.t(Kc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Jc.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${Ec.t(Kc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Jc.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${Ec.t("practice.intro.text5")}</b> </p> \n <div class="button">${Ec.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button">${Ec.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{s.session.set("indexTracking",-1)}},up={type:tp,stimulus:()=>(s.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${s.session("practiceCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){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=ol.pluginAPI.compareKeys(e.keyboard_response,s.session("practiceCorpus")[s.session("indexTracking")].correct_response),s.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(s.session.set("dataCorrect",1),s.session.set("feedbackResponse","Correct!")):(s.session.set("dataCorrect",0),s.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.keyboard_response||0===e.button_response;s.session.set("responseLR",t?"left":"right"),s.session.set("answerRP",t?"false":"true"),s.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response;s.session.set("correctLR",n?"left":"right"),s.session.set("correctRP",n?"false":"true"),s.session.set("answerColor",n?"orange":"blue"),ol.data.addDataToLastTrial({pid:s.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:s.session("dataCorrect"),trialNumBlock:s.session("indexTracking"),item:s.session("practiceCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("practiceCorpus")[s.session("indexTracking")].answer,story:s.session.get("config").story})}};"false"===s.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit,"false"===s.session("correctRP")?Jc.images.trueStaticKeySplit:Jc.images.trueFlashKeySplit;const dp={type:Mo,response_allowed_while_playing:()=>s.session.get("config").skipInstructions,stimulus:()=>1===s.session("dataCorrect")?Jc.audio[`feedback${s.session("indexTracking")}Correct`]:Jc.audio[`feedback${s.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Kc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${s.session("responseColor")}>${s.session("feedbackResponse")} ${Ec.t(Kc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===s.session("responseLR")?Ec.t("terms.left"):Ec.t("terms.right"),type:"true"===s.session("answerRP")?Ec.t("terms.true"):Ec.t("terms.false")})}</span>\n <br></br> \n "${s.session("practiceCorpus")[s.session("indexTracking")].sentence}"\n <span class=${s.session("answerColor")}> ${Ec.t(Kc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===s.session("correctLR")?Ec.t("terms.left"):Ec.t("terms.right"),type:"true"===s.session("correctRP")?Ec.t("terms.true"):Ec.t("terms.false")})}</span>\n </p>\n </div>\n ${Kc?"":`<img class="lower" src= "${"false"===s.session("correctRP")?Jc.images.falseFlashKey:Jc.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Kc?"NO_KEYS":"false"===s.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Kc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Kc?[`<button class="mobile-practice-feedback ${"false"===s.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===s.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===s.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===s.session("correctRP")?Jc.images.trueFlashKeySplit:Jc.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Kc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===s.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};let pp;const hp=Object.prototype.toString;function fp(e){switch(hp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Sp(e,Error)}}function mp(e,t){return hp.call(e)===`[object ${t}]`}function gp(e){return mp(e,"ErrorEvent")}function _p(e){return mp(e,"DOMError")}function yp(e){return mp(e,"String")}function vp(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function bp(e){return mp(e,"Object")}function wp(e){return"undefined"!=typeof Event&&Sp(e,Event)}function xp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ep(e){return"number"==typeof e&&e!=e}function Sp(e,t){try{return e instanceof t}catch(e){return!1}}function kp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function Tp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Rp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{kp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ip(e,t,n=!1){return!!yp(e)&&(mp(t,"RegExp")?t.test(e):!!yp(t)&&(n?e===t:e.includes(t)))}function Ap(e,t=[],n=!1){return t.some((t=>Ip(e,t,n)))}function Cp(e,t,n=250,i,a,s,r){if(!(s.exception&&s.exception.values&&r&&Sp(r.originalException,Error)))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;o&&(s.exception.values=(c=Op(e,t,a,r.originalException,i,s.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=Tp(e.value,l)),e)))))}function Op(e,t,n,i,a,s,r,o){if(s.length>=n+1)return s;let c=[...s];if(Sp(i[a],Error)){Lp(r,o);const s=e(t,i[a]),l=c.length;jp(s,a,l,o),c=Op(e,t,n,i[a],a,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,s)=>{if(Sp(i,Error)){Lp(r,o);const l=e(t,i),u=c.length;jp(l,`errors[${s}]`,u,o),c=Op(e,t,n,i,a,[l,...c],l,u)}})),c}function Lp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function jp(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Pp(e){return e&&e.Math==Math?e:void 0}const Up="object"==typeof globalThis&&Pp(globalThis)||"object"==typeof window&&Pp(window)||"object"==typeof self&&Pp(self)||"object"==typeof global&&Pp(global)||function(){return this}()||{};function Fp(){return Up}function Dp(e,t,n){const i=n||Up,a=i.__SENTRY__=i.__SENTRY__||{};return a[e]||(a[e]=t())}const Np=Fp(),Mp=80;function zp(e,t={}){try{let n=e;const i=5,a=[];let s=0,r=0;const o=" > ",c=o.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Mp;for(;n&&s++<i&&(l=Bp(n,u),!("html"===l||s>1&&r+a.length*c+l.length>=d));)a.push(l),r+=l.length,n=n.parentNode;return a.reverse().join(o)}catch(e){return"<unknown>"}}function Bp(e,t){const n=e,i=[];let a,s,r,o,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),a=n.className,a&&yp(a))for(s=a.split(/\s+/),c=0;c<s.length;c++)i.push(`.${s[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)r=u[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const $p=["debug","info","warn","error","log","assert","trace"],qp={};function Vp(e){if(!("console"in Up))return e();const t=Up.console,n={},i=Object.keys(qp);i.forEach((e=>{const i=qp[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Yp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?$p.forEach((n=>{t[n]=(...t)=>{e&&Vp((()=>{Up.console[n](`Sentry Logger [${n}]:`,...t)}))}})):$p.forEach((e=>{t[e]=()=>{}})),t}(),Gp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hp(e,t=!1){const{host:n,path:i,pass:a,port:s,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&a?`:${a}`:""}@${n}${s?`:${s}`:""}/${i?`${i}/`:i}${r}`}function Wp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Kp(e){const t="string"==typeof e?function(e){const t=Gp.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,i,a="",s,r="",o]=t.slice(1);let c="",l=o;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Wp({host:s,pass:a,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Wp(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Yp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Yp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Yp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Yp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Zp 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 Jp(e,t,n){if(!(t in e))return;const i=e[t],a=n(i);"function"==typeof a&&Qp(a,i),e[t]=a}function Xp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Qp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Xp(e,"__sentry_original__",t)}catch(e){}}function eh(e){return e.__sentry_original__}function th(e){if(fp(e))return{message:e.message,name:e.name,stack:e.stack,...ih(e)};if(wp(e)){const t={type:e.type,target:nh(e.target),currentTarget:nh(e.currentTarget),...ih(e)};return"undefined"!=typeof CustomEvent&&Sp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function nh(e){try{return t=e,"undefined"!=typeof Element&&Sp(t,Element)?zp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function ih(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ah(e){return sh(e,new Map)}function sh(e,t){if(bp(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=sh(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(sh(e,t))})),i}return e}const rh=50,oh=/\(error: (.*)\)/,ch=/captureMessage|captureException/;function lh(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],a=e.split("\n");for(let e=n;e<a.length;e++){const n=a[e];if(n.length>1024)continue;const s=oh.test(n)?n.replace(oh,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){i.push(t);break}}if(i.length>=rh)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),ch.test(t[t.length-1].function||"")&&(t.pop(),ch.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,rh).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const uh="<anonymous>";function dh(e){try{return e&&"function"==typeof e&&e.name||uh}catch(e){return uh}}const ph=Fp();function hh(){if(!("fetch"in ph))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function fh(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const mh=Fp();const gh=Fp(),_h="__sentry_xhr_v2__",yh={},vh={};function bh(e){if(!vh[e])switch(vh[e]=!0,e){case"console":!function(){if(!("console"in Up))return;$p.forEach((function(e){e in Up.console&&Jp(Up.console,e,(function(t){return qp[e]=t,function(...t){xh("console",{args:t,level:e});const n=qp[e];n&&n.apply(Up.console,t)}}))}))}();break;case"dom":!function(){if(!gh.document)return;const e=xh.bind(null,"dom"),t=Ah(e,!0);gh.document.addEventListener("click",t,!1),gh.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=gh[t]&&gh[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Jp(n,"addEventListener",(function(t){return function(n,i,a){if("click"===n||"keypress"==n)try{const i=this,s=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=s[n]=s[n]||{refCount:0};if(!r.handler){const i=Ah(e);r.handler=i,t.call(this,n,i,a)}r.refCount++}catch(e){}return t.call(this,n,i,a)}})),Jp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,a=n.__sentry_instrumentation_handlers__||{},s=a[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,i),s.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}();break;case"xhr":!function(){if(!gh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Jp(e,"open",(function(e){return function(...t){const n=t[1],i=this[_h]={method:yp(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};yp(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[_h];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}xh("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Jp(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),Jp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,a=this[_h];return a&&(a.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Jp(e,"send",(function(e){return function(...t){const n=this[_h];return n&&void 0!==t[0]&&(n.body=t[0]),xh("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!hh())return!1;if(fh(ph.fetch))return!0;let e=!1;const t=ph.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=fh(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;Jp(Up,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Sh(t),method:Eh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Sh(t),method:Eh(t,"method")?String(t.method).toUpperCase():"GET"}}(t),a={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return xh("fetch",{...a}),e.apply(Up,t).then((e=>(xh("fetch",{...a,endTimestamp:Date.now(),response:e}),e)),(e=>{throw xh("fetch",{...a,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=mh.chrome,t=e&&e.app&&e.app.runtime,n="history"in mh&&!!mh.history.pushState&&!!mh.history.replaceState;return!t&&n}())return;const e=gh.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kh,t=String(n);kh=t,xh("history",{from:e,to:t})}return e.apply(this,t)}}gh.onpopstate=function(...t){const n=gh.location.href,i=kh;if(kh=n,xh("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Jp(gh.history,"pushState",t),Jp(gh.history,"replaceState",t)}();break;case"error":Ch=gh.onerror,gh.onerror=function(e,t,n,i,a){return xh("error",{column:i,error:a,line:n,msg:e,url:t}),!(!Ch||Ch.__SENTRY_LOADER__)&&Ch.apply(this,arguments)},gh.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Oh=gh.onunhandledrejection,gh.onunhandledrejection=function(e){return xh("unhandledrejection",e),!(Oh&&!Oh.__SENTRY_LOADER__)||Oh.apply(this,arguments)},gh.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("unknown instrumentation type:",e))}}function wh(e,t){yh[e]=yh[e]||[],yh[e].push(t),bh(e)}function xh(e,t){if(e&&yh[e])for(const n of yh[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${dh(n)}\nError:`,t)}}function Eh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sh(e){return"string"==typeof e?e:e?Eh(e,"url")?e.url:e.toString?e.toString():"":""}let kh;const Th=1e3;let Rh,Ih;function Ah(e,t=!1){return n=>{if(!n||Ih===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const i="keypress"===n.type?"input":n.type;(void 0===Rh||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Ih,n))&&(e({event:n,name:i,global:t}),Ih=n),clearTimeout(Rh),Rh=gh.setTimeout((()=>{Rh=void 0}),Th)}}let Ch=null;let Oh=null;function Lh(){const e=Up,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function jh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ph(e){const{message:t,event_id:n}=e;if(t)return t;const i=jh(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Uh(e,t,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function Fh(e,t){const n=jh(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function Dh(e){if(e&&e.__sentry_captured__)return!0;try{Xp(e,"__sentry_captured__",!0)}catch(e){}return!1}function Nh(e){return Array.isArray(e)?e:[e]}function Mh(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function zh(e,t=100,n=1/0){try{return $h("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Bh(e,t=3,n=102400){const i=zh(e,t);return a=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(a))>n?Bh(e,t-1,n):i;var a}function $h(e,t,n=1/0,i=1/0,a=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,r]=a;if(null==t||["number","boolean","string"].includes(typeof t)&&!Ep(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(kp(t))return"[VueViewModel]";if(bp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${dh(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}var n}(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__:n;if(0===c)return o.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return $h("",l.toJSON(),c-1,i,a)}catch(e){}const u=Array.isArray(t)?[]:{};let d=0;const p=th(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=i){u[e]="[MaxProperties ~]";break}const t=p[e];u[e]=$h(e,t,c-1,i,a),d++}return r(t),u}var qh;function Vh(e){return new Gh((t=>{t(e)}))}function Yh(e){return new Gh(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(qh||(qh={}));class Gh{constructor(e){Gh.prototype.__init.call(this),Gh.prototype.__init2.call(this),Gh.prototype.__init3.call(this),Gh.prototype.__init4.call(this),this._state=qh.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Gh(((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Gh(((t,n)=>{let i,a;return this.then((t=>{a=!1,i=t,e&&e()}),(t=>{a=!0,i=t,e&&e()})).then((()=>{a?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(qh.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(qh.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===qh.PENDING&&(xp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===qh.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===qh.RESOLVED&&e[1](this._value),this._state===qh.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Hh(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return Yh(new Zp("Not adding Promise because buffer limit was reached."));const a=i();return-1===t.indexOf(a)&&t.push(a),a.then((()=>n(a))).then(null,(()=>n(a).then(null,(()=>{})))),a},drain:function(e){return new Gh(((n,i)=>{let a=t.length;if(!a)return n(!0);const s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Vh(e).then((()=>{--a||(clearTimeout(s),n(!0))}),i)}))}))}}}function Wh(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const Kh=["fatal","error","warning","log","info","debug"];const Zh=Fp(),Jh={nowSeconds:()=>Date.now()/1e3};const Xh=Mh()?function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}():function(){const{performance:e}=Zh;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),Qh=void 0===Xh?Jh:{nowSeconds:()=>(Xh.timeOrigin+Xh.now())/1e3},ef=Jh.nowSeconds.bind(Jh),tf=Qh.nowSeconds.bind(Qh),nf=(()=>{const{performance:e}=Zh;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=a<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return s||o<t?a<=o?e.timeOrigin:r:i})(),af="baggage",sf="sentry-",rf=/^sentry-/,of=8192;function cf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>of?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${sf}${t}`]=n),e)),{}))}function lf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const uf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function df(e,t){const n=function(e){if(!e)return;const t=e.match(uf);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),i=function(e){if(!yp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...lf(t)})),{});else{if(!e)return;t=lf(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(rf)&&(e[t.slice(sf.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:a,parentSpanId:s,parentSampled:r}=n||{},o={traceId:a||Lh(),spanId:Lh().substring(16),sampled:r};return s&&(o.parentSpanId=s),i&&(o.dsc=i),{traceparentData:n,dynamicSamplingContext:i,propagationContext:o}}function pf(e=Lh(),t=Lh().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function hf(e,t=[]){return[e,t]}function ff(e,t){const[n,i]=e;return[n,[...i,t]]}function mf(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function gf(e,t){return(t||new TextEncoder).encode(e)}function _f(e,t){const[n,i]=e;let a=JSON.stringify(n);function s(e){"string"==typeof a?a="string"==typeof e?a+e:[gf(a,t),e]:a.push("string"==typeof e?gf(e,t):e)}for(const e of i){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(zh(n))}s(e)}}return"string"==typeof a?a:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(a)}function yf(e,t){const n="string"==typeof e.data?gf(e.data,t):e.data;return[ah({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const vf={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"};function bf(e){return vf[e]}function wf(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xf(e,t,n,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Hp(i)},...a&&{trace:ah({...a})}}}const Ef=6e4;function Sf(e,{statusCode:t,headers:n},i=Date.now()){const a={...e},s=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n]=e.split(":",2),s=parseInt(t,10),r=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))a[e]=i+r;else a.all=i+r}else r?a.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?Ef:i-t}(r,i):429===t&&(a.all=i+6e4);return a}const kf="production";function Tf(){return Dp("globalEventProcessors",(()=>[]))}function Rf(e){Tf().push(e)}function If(e,t,n,i=0){return new Gh(((a,s)=>{const r=e[i];if(null===t||"function"!=typeof r)a(t);else{const o=r({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.id&&null===o&&Yp.log(`Event processor "${r.id}" dropped event`),xp(o)?o.then((t=>If(e,t,n,i+1).then(a))).then(null,s):If(e,o,n,i+1).then(a).then(null,s)}}))}function Af(e){const t=tf(),n={sid:Lh(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ah({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Cf(n,e),n}function Cf(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||tf(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Lh()),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)}class Of{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Lf()}static clone(e){const t=new Of;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Cf(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.getSpan();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;if("function"==typeof e){const t=e(this);return t instanceof Of?t:this}return e instanceof Of?(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&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):bp(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),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=Lf(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:ef(),...e},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,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._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},If([...Tf(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Nh(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Lf(){return{traceId:Lh(),spanId:Lh().substring(16)}}const jf=4,Pf=100;class Uf{constructor(e,t=new Of,n=jf){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Of.clone(this.getScope());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();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Lh(),i=new Error("Sentry syntheticException");return this._withClient(((a,s)=>{a.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},s)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Lh(),a=new Error(e);return this._withClient(((s,r)=>{s.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},r)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Lh();return e.type||(this._lastEventId=n),this._withClient(((i,a)=>{i.captureEvent(e,{...t,event_id:n},a)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=Pf}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const r={timestamp:ef(),...e},o=a?Vp((()=>a(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Df(this);try{e(this)}finally{Df(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}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&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Cf(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:a=kf}=n&&n.getOptions()||{},{userAgent:s}=Up.navigator||{},r=Af({release:i,environment:a,user:t.getUser(),...s&&{userAgent:s},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Cf(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(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Ff().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ff(){return Up.__SENTRY__=Up.__SENTRY__||{extensions:{},hub:void 0},Up}function Df(e){const t=Ff(),n=Mf(t);return zf(t,e),n}function Nf(){const e=Ff();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ff()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Mf(e).isOlderThan(jf)||zf(e,new Uf);var t;return Mf(e)}(e)}function Mf(e){return Dp("hub",(()=>new Uf),e)}function zf(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Bf(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Nf().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function $f(e){return(e||Nf()).getScope().getTransaction()}let qf=!1;function Vf(){const e=$f();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Vf.tag="sentry_tracingErrorCallback";class Yf{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Gf{constructor(e={}){this.traceId=e.traceId||Lh(),this.spanId=e.spanId||Lh().substring(16),this.startTimestamp=e.startTimestamp||tf(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new Gf({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},Yp.log(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}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=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"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Yp.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:tf()}toTraceparent(){return pf(this.traceId,this.spanId,this.sampled)}toContext(){return ah({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ah({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ah({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function Hf(e,t,n){const i=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},r=ah({environment:i.environment||kf,release:i.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",r),r}class Wf extends Gf{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||Nf(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Yf(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const i=this.metadata,a={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(a)}toContext(){return ah({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||Nf(),t=e.getClient();if(!t)return{};const n=e.getScope(),i=Hf(this.traceId,t,n),a=this.metadata.sampleRate;void 0!==a&&(i.sample_rate=`${a}`);const s=this.metadata.source;return s&&"url"!==s&&(i.transaction=this.name),void 0!==this.sampled&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}}const Kf={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Zf=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Jf extends Yf{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:tf(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class Xf extends Wf{constructor(e,t,n=Kf.idleTimeout,i=Kf.finalTimeout,a=Kf.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Zf[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Zf[3],this.finish())}),this._finalTimeout)}finish(e=tf()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e,i=(this._finalTimeout+this._idleTimeout)/1e3,a=t.endTimestamp-this.startTimestamp<i;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=JSON.stringify(t,void 0,2);n?a||Yp.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):Yp.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&a})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Jf(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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=Zf[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Zf[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=tf();this._idleTimeoutCanceledPermanently?(this._finishReason=Zf[5],this.finish(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?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Zf[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Qf(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function em(e,t,n){if(!Bf(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),function(e){if(Ep(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function tm(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},a=i.instrumenter||"sentry",s=e.instrumenter||"sentry";a!==s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${a}\` instrumenter.\nThe transaction will not be sampled. Please use the ${a} instrumentation to start transactions.`),e.sampled=!1);let r=new Wf(e,this);return r=em(r,i,{parentSampled:e.parentSampled,transactionContext:e,...t}),r.sampled&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function nm(e,t,n,i,a,s,r){const o=e.getClient(),c=o&&o.getOptions()||{};let l=new Xf(t,e,n,i,r,a);return l=em(l,c,{parentSampled:t.parentSampled,transactionContext:t,...s}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function im(){const e=Ff();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=tm),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Qf),qf||(qf=!0,wh("error",Vf),wh("unhandledrejection",Vf)))}function am(e,t){return Nf().captureException(e,{captureContext:t})}const sm="7";function rm(e,t){return n={sentry_key:e.publicKey,sentry_version:sm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const om=[];function cm(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?Nh(n(t)):t;const a=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),s=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(a,(e=>"Debug"===e.name));if(-1!==s){const[e]=a.splice(s,1);a.push(e)}return a}function lm(e,t,n){if(n[t.name]=t,-1===om.indexOf(t.name)&&(t.setupOnce(Rf,Nf),om.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Integration installed: ${t.name}`)}function um(e,t,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:r=1e3}=e,o={...t,event_id:t.event_id||n.event_id||Lh(),timestamp:t.timestamp||ef()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:a,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:kf);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==a&&(e.dist=a);e.message&&(e.message=Tp(e.message,s));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=Tp(r.value,s));const o=e.request;o&&o.url&&(o.url=Tp(o.url,s))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){const n=Up._sentryDebugIds;if(!n)return;let i;const a=dm.get(t);a?i=a:(i=new Map,dm.set(t,i));const s=Object.keys(n).reduce(((e,a)=>{let s;const r=i.get(a);r?s=r:(s=t(a),i.set(a,s));for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.filename){e[i.filename]=n[a];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(o,e.stackParser);let l=i;n.captureContext&&(l=Of.clone(l).update(n.captureContext));let u=Vh(o);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}u=l.applyToEvent(o,n)}return u.then((e=>a&&a.getEventProcessors?If(a.getEventProcessors(),e,n):e)).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 n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:zh(e.data,t,n)}})))},...e.user&&{user:zh(e.user,t,n)},...e.contexts&&{contexts:zh(e.contexts,t,n)},...e.extra&&{extra:zh(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=zh(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>(e.data&&(e.data=zh(e.data,t,n)),e))));return i}(e,s,r):e)))}const dm=new WeakMap;const pm="Not capturing exception because it's already been captured.";class hm{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Kp(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("No DSN provided, client will not do anything."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${rm(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Dh(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(pm));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let a=n&&n.event_id;const s=vp(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,i))).then((e=>{a=e}))),a}captureEvent(e,t,n){if(t&&t.originalException&&Dh(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(pm));let i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{i=e}))),i}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Cf(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Vh(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&lm(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){lm(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,i){const a=wf(n),s=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,n&&n.sdk);const r=xf(e,a,i,t);return delete e.sdkProcessingMetadata,hf(r,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ff(n,yf(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,i){const a=wf(n);return hf({sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!i&&{dsn:Hp(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,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}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)))}_updateSessionFromEvent(e,t){let n=!1,i=!1;const a=t.exception&&t.exception.values;if(a){i=!0;for(const e of a){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Cf(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Gh((t=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),um(i,e,t,n,this).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:a,parentSpanId:s,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:a,parent_span_id:s},...e.contexts};const o=r||Hf(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?Yp.log(t.message):Yp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:a}=i;if(!this._isEnabled())return Yh(new Zp("SDK not enabled, will not capture event.","log"));const s=mm(e),r=fm(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof a&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),Yh(new Zp(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Zp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const a=function(e,t,n){const{beforeSend:i,beforeSendTransaction:a}=e;if(fm(t)&&i)return i(t,n);if(mm(t)&&a)return a(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xp(e))return e.then((e=>{if(!bp(e)&&null!==e)throw new Zp(n);return e}),(e=>{throw new Zp(`${t} rejected with ${e}`)}));if(!bp(e)&&null!==e)throw new Zp(n);return e}(a,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Zp(`${c} returned \`null\`, will not send event.`,"log");const a=n&&n.getSession();!s&&a&&this._updateSessionFromEvent(a,i);const r=i.transaction_info;if(s&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Zp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Zp(`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._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function fm(e){return void 0===e.type}function mm(e){return"transaction"===e.type}const gm=30;function _m(e,t,n=Hh(e.bufferSize||gm)){let i={};function a(a){const s=[];if(mf(a,((t,n)=>{const a=bf(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,a)){const i=ym(t,n);e.recordDroppedEvent("ratelimit_backoff",a,i)}else s.push(t)})),0===s.length)return Vh();const r=hf(a[0],s),o=t=>{mf(r,((n,i)=>{const a=ym(n,i);e.recordDroppedEvent(t,bf(i),a)}))};return n.add((()=>t({body:_f(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Sf(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Zp)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Skipped sending event because buffer is full."),o("queue_overflow"),Vh();throw e}))}return a.__sentry__baseTransport__=!0,{send:a,flush:e=>n.drain(e)}}function ym(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const vm="7.70.0";let bm;class wm{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=wm.id}setupOnce(){bm=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=eh(this)||this;return bm.apply(t,e)}}catch(e){}}}wm.__initStatic();const xm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Em=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Sm{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Sm.id,this._options=e}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(Sm);if(t){const i=n.getClient(),a=i?i.getOptions():{},s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Em],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Ph(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 n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==t.length||Yp.error(`Could not extract message for event ${Ph(e)}`);return t}(e).some((e=>Ap(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ph(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Ap(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ph(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=km(e);return!!n&&Ap(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ph(e)}.\nUrl: ${km(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=km(e);return!n||Ap(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ph(e)}.\nUrl: ${km(e)}`),!0;return!1}(e,s)?null:e}}return e};n.id=this.name,e(n)}}function km(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 n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`Cannot extract url for event ${Ph(e)}`),null}}Sm.__initStatic();const Tm=Up;let Rm=0;function Im(){return Rm>0}function Am(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(eh(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const a=i.map((e=>Am(e,t)));return e.apply(this,a)}catch(e){throw Rm++,setTimeout((()=>{Rm--})),a=n=>{n.addEventProcessor((e=>(t.mechanism&&(Uh(e,void 0,void 0),Fh(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),am(e)},Nf().withScope(a),e}var a};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}Qp(i,e),Xp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}function Cm(e,t){const n=Lm(e,t),i={type:t&&t.name,value:Pm(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Om(e,t){return{exception:{values:[Cm(e,t)]}}}function Lm(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(jm.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const jm=/Minified React error #\d+;/i;function Pm(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Um(e,t,n,i,a){let s;if(gp(t)&&t.error){return Om(e,t.error)}if(_p(t)||mp(t,"DOMException")){const a=t;if("stack"in t)s=Om(e,t);else{const t=a.name||(_p(a)?"DOMError":"DOMException"),r=a.message?`${t}: ${a.message}`:t;s=Fm(e,r,n,i),Uh(s,r)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if(fp(t))return Om(e,t);if(bp(t)||wp(t)){return s=function(e,t,n,i){const a=Nf().getClient(),s=a&&a.getOptions().normalizeDepth,r={exception:{values:[{type:wp(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Dm(t,{isUnhandledRejection:i})}]},extra:{__serialized__:Bh(t,s)}};if(n){const t=Lm(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,a),Fh(s,{synthetic:!0}),s}return s=Fm(e,t,n,i),Uh(s,`${t}`,void 0),Fh(s,{synthetic:!0}),s}function Fm(e,t,n,i){const a={message:t};if(i&&n){const i=Lm(e,n);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]})}return a}function Dm(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(th(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Tp(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:Tp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(gp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(wp(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 ${i}`}return`Object captured as ${i} with keys: ${n}`}class Nm extends hm{constructor(e){const t=Tm.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:vm}],version:vm},super(e),e.sendClientReports&&Tm.document&&Tm.document.addEventListener("visibilitychange",(()=>{"hidden"===Tm.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const a=Um(e,t,n&&n.syntheticException||void 0,i);return Fh(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Vh(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,a){const s=Fm(e,t,i&&i.syntheticException||void 0,a);return s.level=n,i&&i.event_id&&(s.event_id=i.event_id),Vh(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:Hp(i)}},s=function(e){return[{type:"user_report"},e]}(e);return hf(a,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("Sending outcomes:",e);const t=(n=e,hf((i=this._options.tunnel&&Hp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:a||ef(),discarded_events:n}]]));var n,i,a;this._sendEnvelope(t)}}let Mm;function zm(e,t=function(){if(Mm)return Mm;if(fh(Tm.fetch))return Mm=Tm.fetch.bind(Tm);const e=Tm.document;let t=Tm.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Mm=t.bind(Tm)}()){let n=0,i=0;return _m(e,(function(a){const s=a.body.length;n+=s,i++;const r={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=s,i--,{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 Mm=void 0,n-=s,i--,Yh(e)}}))}const Bm=4;function $m(e){return _m(e,(function(t){return new Gh(((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Bm&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&a.setRequestHeader(t,e.headers[t]);a.send(t.body)}))}))}const qm="?";function Vm(e,t,n,i){const a={filename:e,function:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==i&&(a.colno=i),a}const Ym=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gm=/\((\S*)(?::(\d+))(?::(\d+))\)/,Hm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Km=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zm=lh(...[[30,e=>{const t=Ym.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Gm.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Jm(t[1]||qm,t[2]);return Vm(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Hm.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Wm.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||qm;return[n,e]=Jm(n,e),Vm(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Km.exec(e);return t?Vm(t[2],t[1]||qm,+t[3],t[4]?+t[4]:void 0):void 0}]]),Jm=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:qm,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Xm{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Xm.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:Qm,onunhandledrejection:eg}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function Qm(){wh("error",(e=>{const[t,n,i]=ig();if(!t.getIntegration(Xm))return;const{msg:a,url:s,line:r,column:o,error:c}=e;if(Im()||c&&c.__sentry_own_request__)return;const l=void 0===c&&yp(a)?function(e,t,n,i){const a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=gp(e)?e.message:e,r="Error";const o=s.match(a);o&&(r=o[1],s=o[2]);const c={exception:{values:[{type:r,value:s}]}};return tg(c,t,n,i)}(a,s,r,o):tg(Um(n,c||a,void 0,i,!1),s,r,o);l.level="error",ng(t,c,l,"onerror")}))}function eg(){wh("unhandledrejection",(e=>{const[t,n,i]=ig();if(!t.getIntegration(Xm))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(Im()||a&&a.__sentry_own_request__)return!0;const s=vp(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:Um(n,a,void 0,i,!0);s.level="error",ng(t,a,s,"onunhandledrejection")}))}function tg(e,t,n,i){const a=e.exception=e.exception||{},s=a.values=a.values||[],r=s[0]=s[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=yp(t)&&t.length>0?t:function(){try{return Np.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function ng(e,t,n,i){Fh(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function ig(){const e=Nf(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Xm.__initStatic();const ag=["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"];class sg{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=sg.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&Jp(Tm,"setTimeout",rg),this._options.setInterval&&Jp(Tm,"setInterval",rg),this._options.requestAnimationFrame&&Jp(Tm,"requestAnimationFrame",og),this._options.XMLHttpRequest&&"XMLHttpRequest"in Tm&&Jp(XMLHttpRequest.prototype,"send",cg);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:ag).forEach(lg)}}}function rg(e){return function(...t){const n=t[0];return t[0]=Am(n,{mechanism:{data:{function:dh(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function og(e){return function(t){return e.apply(this,[Am(t,{mechanism:{data:{function:"requestAnimationFrame",handler:dh(e)},handled:!1,type:"instrument"}})])}}function cg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Jp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:dh(t)},handled:!1,type:"instrument"}},i=eh(t);return i&&(n.mechanism.data.handler=dh(i)),Am(t,n)}))})),e.apply(this,t)}}function lg(e){const t=Tm,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Jp(n,"addEventListener",(function(t){return function(n,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=Am(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dh(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Am(i,{mechanism:{data:{function:"addEventListener",handler:dh(i),target:e},handled:!1,type:"instrument"}}),a])}})),Jp(n,"removeEventListener",(function(e){return function(t,n,i){const a=n;try{const n=a&&a.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,a,i)}})))}sg.__initStatic();const ug=1024;class dg{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=dg.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&wh("console",hg),this.options.dom&&wh("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,a="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>ug&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=ug),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?zp(e.target,{keyAttrs:i,maxStringLength:a}):zp(e,{keyAttrs:i,maxStringLength:a})}catch(e){n="<unknown>"}0!==n.length&&Nf().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&wh("xhr",fg),this.options.fetch&&wh("fetch",mg),this.options.history&&wh("history",gg),this.options.sentry){const e=Nf().getClient();e&&e.on&&e.on("beforeSendEvent",pg)}}}function pg(e){Nf().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Ph(e)},{event:e})}function hg(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":Kh.includes(n)?n:"log"),message:Rp(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Rp(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}Nf().addBreadcrumb(t,{input:e.args,level:e.level})}function fg(e){const{startTimestamp:t,endTimestamp:n}=e,i=e.xhr[_h];if(!t||!n||!i)return;const{method:a,url:s,status_code:r,body:o}=i,c={method:a,url:s,status_code:r},l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function mg(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,a={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},a)}else{const i={...e.fetchData,status_code:e.response&&e.response.status},a={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"fetch",data:i,type:"http"},a)}}function gg(e){let t=e.from,n=e.to;const i=Wh(Tm.location.href);let a=Wh(t);const s=Wh(n);a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===a.protocol&&i.host===a.host&&(t=a.relative),Nf().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}dg.__initStatic();class _g{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=_g.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){const i=n.getOptions();Cp(Cm,i.stackParser,i.maxValueLength,this._key,this._limit,e,t)}}_g.__initStatic();class yg{static __initStatic(){this.id="HttpContext"}constructor(){this.name=yg.id}setupOnce(){Rf((e=>{if(Nf().getIntegration(yg)){if(!Tm.navigator&&!Tm.location&&!Tm.document)return e;const t=e.request&&e.request.url||Tm.location&&Tm.location.href,{referrer:n}=Tm.document||{},{userAgent:i}=Tm.navigator||{},a={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},s={...e.request,...t&&{url:t},headers:a};return{...e,request:s}}return e}))}}yg.__initStatic();class vg{static __initStatic(){this.id="Dedupe"}constructor(){this.name=vg.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(vg);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!wg(e,t))return!1;if(!bg(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=xg(t),i=xg(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!wg(e,t))return!1;if(!bg(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function bg(e,t){let n=Eg(e),i=Eg(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function wg(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function xg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eg(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}vg.__initStatic();const Sg=[new Sm,new wm,new sg,new dg,new Xm,new _g,new vg,new yg];function kg(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Sg),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Tm.SENTRY_RELEASE&&Tm.SENTRY_RELEASE.id&&(e.release=Tm.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Zm,Array.isArray(n)?lh(...n):n),integrations:cm(e),transport:e.transport||(hh()?zm:$m)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Yp.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=Nf();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Nm,t),e.autoSessionTracking&&function(){if(void 0===Tm.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=Nf();if(!e.captureSession)return;Tg(e),wh("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Tg(Nf())}))}()}function Tg(e){e.startSession({ignoreDuration:!0}),e.captureSession()}const Rg=Up,Ig="sentryReplaySession",Ag="replay_event",Cg="Unable to send Replay",Og=15e4,Lg=5e3,jg=2e7,Pg=36e5;var Ug;function Fg(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Dg({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");const i="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||i&&e[i]||"password"===i||"input"===t&&!n&&e.text}function Ng({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:i,tagName:a,type:s,value:r,maskInputFn:o}){let c=r||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(s="password"),(Dg({maskInputOptions:i,tagName:a,type:s})||t&&e.matches(t))&&(c=o?o(c):"*".repeat(c.length))),c}!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"}(Ug||(Ug={}));const Mg="__rrweb_original__";function zg(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function Bg(e,t,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let $g=1;const qg=new RegExp("[^a-z0-9-_:]"),Vg=-2;function Yg(e){return e?e.replace(/[\S]/g,"*"):""}function Gg(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(Hg).join(""):null}catch(e){return null}}function Hg(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Gg(e.styleSheet)||t}catch(e){}return Wg(t)}function Wg(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}let Kg,Zg;const Jg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xg=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Qg=/^(data:)([^,]*),(.*)/i;function e_(e,t){return(e||"").replace(Jg,((e,n,i,a,s,r)=>{const o=i||s||r,c=n||a||"";if(!o)return e;if(!Xg.test(o))return`url(${c}${o}${c})`;if(Qg.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 l=t.split("/"),u=o.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const t_=/^[^ \t\n\r\u000c]+/,n_=/^[, \t\n\r\u000c]+/;function i_(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function a_(){const e=document.createElement("a");return e.href="",e.href}function s_(e,t,n,i,a,s,r,o){if(!a)return a;const c=i.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==a[0]?i_(e,a):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i,a=e.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}let a=[];for(;i(n_),!(n>=t.length);){let s=i(t_);if(","===s.slice(-1))s=i_(e,s.substring(0,s.length-1)),a.push(s);else{let i="";s=i_(e,s);let r=!1;for(;;){let e=t.charAt(n);if(""===e){a.push((s+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,a.push((s+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return a.join(", ")}(e,a):"style"===c?e_(a,a_()):"object"===l&&"data"===c?i_(e,a):s&&function(e,t,n,i){if(i&&e.matches(i))return!1;return["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}(t,c,l,r)?o?o(a):Yg(a):a:i_(e,a)}function r_(e,t,n,i,a){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r_(e.parentNode,t,n,i,a);if(i&&(e.matches(i)||e.closest(i)))return!1;if(a)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!(!n||!e.matches(n))||r_(e.parentNode,t,n,i,a)}function o_(e,t){var n;const{doc:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b}=t;let w;if(i.__sn){const e=i.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ug.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:Ug.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:Ug.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,i){if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!!n&&e.matches(n)}(e,a,s,r),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return qg.test(t)?"div":t}(e);let k={};for(const{name:t,value:n}of Array.from(e.attributes))u_(S,t)||(k[t]=s_(i,e,S,t,n,h,l,m));if("link"===S&&u){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Gg(t)),n&&(delete k.rel,delete k.href,k._cssText=e_(n,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Gg(e.sheet);t&&(k._cssText=e_(t,a_()))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=zg(t),i=Bg(t,S.toUpperCase(),n),a=e.checked;"submit"!==n&&"button"!==n&&i&&(k.value=Ng({input:t,type:n,tagName:S,value:i,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:f,maskInputFn:g})),a&&(k.checked=a)}if("option"===S&&(e.selected&&!f.select?k.selected=!0:delete k.selected),"canvas"===S&&v)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const a=t.getImageData,s=Mg in a?a[Mg]:a;if(new Uint32Array(s.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(_.type,_.quality));else if(!("__context"in e)){const t=e.toDataURL(_.type,_.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(_.type,_.quality)&&(k.rr_dataURL=t)}if("img"===S&&y){Kg||(Kg=i.createElement("canvas"),Zg=Kg.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const a=()=>{try{Kg.width=t.naturalWidth,Kg.height=t.naturalHeight,Zg.drawImage(t,0,0),k.rr_dataURL=Kg.toDataURL(_.type,_.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?k.crossOrigin=n:delete k.crossOrigin};t.complete&&0!==t.naturalWidth?a():t.onload=a}if("audio"!==S&&"video"!==S||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==S||b(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src),{type:Ug.Element,tagName:S,attributes:k,childNodes:[],isSVG:(E=e,Boolean("svg"===E.tagName||E.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const T=e.parentNode&&e.parentNode.tagName;let R=e.textContent;const I="STYLE"===T||void 0,A="SCRIPT"===T||void 0;if(I&&R){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(R=(x=e.parentNode.sheet).cssRules?Array.from(x.cssRules).map((e=>e.cssText?Wg(e.cssText):"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}R=e_(R,a_())}if(A&&(R="SCRIPT_PLACEHOLDER"),"TEXTAREA"===T&&R)R="";else if("OPTION"===T&&R){R=Ng({input:e.parentNode,type:null,tagName:T,value:R,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:f,maskInputFn:g})}else!I&&!A&&r_(e,o,c,l,h)&&R&&(R=m?m(R):Yg(R));return{type:Ug.Text,textContent:R||"",isStyle:I,rootId:w};case e.CDATA_SECTION_NODE:return{type:Ug.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Ug.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var x,E}function c_(e){return null==e?"":e.toLowerCase()}function l_(e,t){const{doc:n,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m={},maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S=5e3,keepIframeSrcFn:k=(()=>!1)}=t;let{preserveWhiteSpace:T=!0}=t;const R=o_(e,{doc:n,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:k});if(!R)return console.warn(e,"not serialized"),null;let I;I="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===Ug.Comment)return!0;if(e.type===Ug.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&&(c_(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===c_(e.attributes.name)||"icon"===c_(e.attributes.rel)||"apple-touch-icon"===c_(e.attributes.rel)||"shortcut icon"===c_(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&c_(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(c_(e.attributes.property).match(/^(og|twitter|fb):/)||c_(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===c_(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===c_(e.attributes.name)||"googlebot"===c_(e.attributes.name)||"bingbot"===c_(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===c_(e.attributes.name)||"generator"===c_(e.attributes.name)||"framework"===c_(e.attributes.name)||"publisher"===c_(e.attributes.name)||"progid"===c_(e.attributes.name)||c_(e.attributes.property).match(/^article:/)||c_(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===c_(e.attributes.name)||"yandex-verification"===c_(e.attributes.name)||"csrf-token"===c_(e.attributes.name)||"p:domain_verify"===c_(e.attributes.name)||"verify-v1"===c_(e.attributes.name)||"verification"===c_(e.attributes.name)||"shopify-checkout-api-token"===c_(e.attributes.name)))return!0}}return!1}(R,y)&&(T||R.type!==Ug.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?$g++:Vg;const A=Object.assign(R,{id:I});if(e.__sn=A,I===Vg)return null;i[I]=e,x&&x(e);let C=!u;if(A.type===Ug.Element&&(C=C&&!A.needBlock,delete A.needBlock,e.shadowRoot&&(A.isShadowHost=!0)),(A.type===Ug.Document||A.type===Ug.Element)&&C){y.headWhitespace&&R.type===Ug.Element&&"head"===R.tagName&&(T=!1);const t={doc:n,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S,keepIframeSrcFn:k};for(const n of Array.from(e.childNodes)){const e=l_(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const e=l_(n,t);e&&(e.isShadow=!0,A.childNodes.push(e))}}return e.parentNode&&Fg(e.parentNode)&&(A.isShadow=!0),A.type===Ug.Element&&"iframe"===A.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let a,s=!1;try{a=i.document.readyState}catch(e){return}if("complete"!==a){const i=setTimeout((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),s=!0,t()}))}const r="about:blank";i.location.href===r&&e.src!==r&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&E){const n=l_(t,{doc:t,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S,keepIframeSrcFn:k});n&&E(e,n)}}),S),A}function u_(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var d_,p_,h_,f_,m_,g_;function __(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}!function(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"}(d_||(d_={})),function(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"}(p_||(p_={})),function(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"}(h_||(h_={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(f_||(f_={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(m_||(m_={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(g_||(g_={}));const y_="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 v_={map:{},getId:()=>(console.error(y_),-1),getNode:()=>(console.error(y_),null),removeNodeFromMap(){console.error(y_)},has:()=>(console.error(y_),!1),reset(){console.error(y_)}};function b_(e,t,n={}){let i=null,a=0;return function(s){let r=Date.now();a||!1!==n.leading||(a=r);let o=t-(r-a),c=this,l=arguments;o<=0||o>t?(i&&(clearTimeout(i),i=null),a=r,e.apply(c,l)):i||!1===n.trailing||(i=setTimeout((()=>{a=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),o))}}function w_(e,t,n,i,a=window){const s=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>w_(e,t,s||{},!0)}function x_(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],a=n(i);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=a,()=>{e[t]=i}}catch(e){return()=>{}}}function E_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function S_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function k_(e,t,n,i){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let a=!1;const s=i&&e.matches(i);return"string"==typeof t?a=void 0!==e.closest?!s&&null!==e.closest("."+t):!s&&e.classList.contains(t):!s&&e.classList.forEach((e=>{t.test(e)&&(a=!0)})),!a&&n&&(a=e.matches(n)),!s&&a||k_(e.parentNode,t,n,i)}return e.nodeType,e.TEXT_NODE,k_(e.parentNode,t,n,i)}function T_(e){return"__sn"in e&&e.__sn.id===Vg}function R_(e,t){if(Fg(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||R_(e.parentNode,t))}function I_(e){return Boolean(e.changedTouches)}function A_(e){return"__sn"in e&&(e.__sn.type===Ug.Element&&"iframe"===e.__sn.tagName)}function C_(e){return Boolean(null==e?void 0:e.shadowRoot)}function O_(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(v_=new Proxy(v_,{get:(e,t,n)=>("map"===t&&console.error(y_),Reflect.get(e,t,n))}));class L_{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&O_(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&O_(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=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.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}const j_=(e,t)=>`${e}@${t}`;function P_(e){return"__sn"in e}class U_{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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 L_,n=e=>{let t=e,n=Vg;for(;n===Vg;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{var a,s,r,o,c;const l=i.getRootNode?null===(a=i.getRootNode())||void 0===a?void 0:a.host:null;let u=l;for(;null===(r=null===(s=null==u?void 0:u.getRootNode)||void 0===s?void 0:s.call(u))||void 0===r?void 0:r.host;)u=(null===(c=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(i)||u&&this.doc.contains(u));if(!i.parentNode||d)return;const p=Fg(i.parentNode)?this.mirror.getId(l):this.mirror.getId(i.parentNode),h=n(i);if(-1===p||-1===h)return t.addNode(i);let f=l_(i,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{A_(e)&&this.iframeManager.addIframe(e),C_(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});f&&e.push({parentId:p,nextId:h,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)D_(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)N_(this.droppedSet,e)||D_(this.removes,e,this.mirror)?N_(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;t.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)for(let i=t.length-1;i>=0;i--){const a=t.get(i);if(a){const t=this.mirror.getId(a.value.parentNode),i=n(a.value);if(-1!==t&&-1!==i){e=a;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}a=e.previous,t.removeNode(e.value),i(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!T_(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:r_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=Ng({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let i=this.attributes.find((t=>t.node===e.target));if(i||(i={node:e.target,attributes:{}},this.attributes.push(i)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});try{const e=i.attributes.style;for(const i of Array.from(t.style)){const a=t.style.getPropertyValue(i),s=t.style.getPropertyPriority(i);a===n.style.getPropertyValue(i)&&s===n.style.getPropertyPriority(i)||(e[i]=""===s?a:[a,s])}for(const i of Array.from(n.style))""===t.style.getPropertyValue(i)&&(e[i]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;i.attributes[e.attributeName]=s_(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=Fg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||T_(t)||(this.addedSet.has(t)?(F_(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||R_(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[j_(n,i)]?F_(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!!Fg(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!k_(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(P_(e)){if(T_(e))return;this.movedSet.add(e);let n=null;t&&P_(t)&&(n=t.__sn.id),n&&(this.movedMap[j_(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);k_(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 F_(e,t){e.delete(t),t.childNodes.forEach((t=>F_(e,t)))}function D_(e,t,n){const{parentNode:i}=t;if(!i)return!1;const a=n.getId(i);return!!e.some((e=>e.id===a))||D_(e,i,n)}function N_(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||N_(e,n))}const M_=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},z_=[];function B_(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 $_(e,t){var n,i;const a=new U_;z_.push(a),a.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const r=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");r&&window[r]&&(s=window[r]);const o=new s(M_((t=>{e.onMutation&&!1===e.onMutation(t)||a.processMutations(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function q_({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];return Object.keys(h_).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{const o=r.toLowerCase(),l=M_((t=>r=>{const o=B_(r);if(k_(o,i,a,s))return;const c=I_(r)?r.changedTouches[0]:r;if(!c)return;const l=n.getId(o),{clientX:u,clientY:d}=c;M_(e)({type:h_[t],id:l,x:u,y:d})})(r));c.push(__(o,l,t))})),M_((()=>{c.forEach((e=>e()))}))}function V_({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:r}){const o=b_((r=>{const o=B_(r);if(!o||k_(o,i,a,s))return;const c=n.getId(o);if(o===t){const n=t.scrollingElement||t.documentElement;M_(e)({id:c,x:n.scrollLeft,y:n.scrollTop})}else M_(e)({id:c,x:o.scrollLeft,y:o.scrollTop})}),r.scroll||100);return __("scroll",M_(o),t)}function Y_(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const G_=["INPUT","TEXTAREA","SELECT"],H_=new WeakMap;function W_({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,ignoreClass:r,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:u,maskInputFn:d,sampling:p,userTriggeredOnInput:h}){function f(e){let n=B_(e);const p=n&&n.tagName,f=e.isTrusted;if("OPTION"===p&&(n=n.parentElement),!n||!p||G_.indexOf(p)<0||k_(n,i,a,s))return;const g=n,_=zg(g);if(g.classList.contains(r)||o&&g.matches(o))return;let y=Bg(g,p,_),v=!1;"radio"!==_&&"checkbox"!==_||(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:i}){return i||Dg({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:u,maskInputSelector:c,tagName:p,type:_})&&(y=Ng({input:g,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:_,value:y,maskInputFn:d})),m(n,M_(Y_)({text:y,isChecked:v,userTriggered:f},h));const b=n.name;"radio"===_&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((e=>{if(e!==n){const t=Ng({input:e,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:_,value:Bg(e,p,_),maskInputFn:d});m(e,M_(Y_)({text:t,isChecked:!v,userTriggered:!1},h))}}))}function m(t,i){const a=H_.get(t);if(!a||a.text!==i.text||a.isChecked!==i.isChecked){H_.set(t,i);const a=n.getId(t);e(Object.assign(Object.assign({},i),{id:a}))}}const g=("last"===p.input?["change"]:["input","change"]).map((e=>__(e,M_(f),t))),_=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return _&&_.set&&g.push(...y.map((e=>w_(e[0],e[1],{set(){M_(f)({target:this})}})))),M_((()=>{g.forEach((e=>e()))}))}function K_(e){return function(e,t){if(J_("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||J_("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||J_("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||J_("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Z_(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:r,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),a(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),r(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)}}(e,t);const i=$_(e,e.doc),a=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=b_((t=>{const n=Date.now()-r;M_(e)(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null}),s),l=b_((e=>{const t=B_(e),{clientX:n,clientY:a}=I_(e)?e.changedTouches[0]:e;r||(r=Date.now()),o.push({x:n,y:a,id:i.getId(t),timeOffset:Date.now()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?p_.Drag:e instanceof MouseEvent?p_.MouseMove:p_.TouchMove)}),a,{trailing:!1}),u=[__("mousemove",M_(l),n),__("touchmove",M_(l),n),__("drag",M_(l),n)];return M_((()=>{u.forEach((e=>e()))}))}(e),s=q_(e),r=V_(e),o=function({viewportResizeCb:e}){let t=-1,n=-1;const i=b_((()=>{const i=E_(),a=S_();t===i&&n===a||(M_(e)({width:Number(a),height:Number(i)}),t=i,n=a)}),200);return __("resize",M_(i),window)}(e),c=W_(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:a,sampling:s}){const r=r=>b_(M_((s=>{const o=B_(s);if(!o||k_(o,t,n,i))return;const{currentTime:c,volume:l,muted:u}=o;e({type:r,id:a.getId(o),currentTime:c,volume:l,muted:u})})),s.media||500),o=[__("play",r(0)),__("pause",r(1)),__("seeked",r(2)),__("volumechange",r(3))];return M_((()=>{o.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M_(((n,i,a)=>{const[s,r]=a,o=t.getId(i.ownerNode);return-1!==o&&e({id:o,adds:[{rule:s,index:r}]}),n.apply(i,a)}))});const a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:M_(((n,i,a)=>{const[s]=a,r=t.getId(i.ownerNode);return-1!==r&&e({id:r,removes:[{index:s}]}),n.apply(i,a)}))});const s={};X_("CSSGroupingRule")?s.CSSGroupingRule=n.CSSGroupingRule:(X_("CSSMediaRule")&&(s.CSSMediaRule=n.CSSMediaRule),X_("CSSConditionRule")&&(s.CSSConditionRule=n.CSSConditionRule),X_("CSSSupportsRule")&&(s.CSSSupportsRule=n.CSSSupportsRule));const r={};return Object.entries(s).forEach((([n,i])=>{r[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(r[n].insertRule,{apply:M_(((n,i,a)=>{const[s,r]=a,o=t.getId(i.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:s,index:[...K_(i),r||0]}]}),n.apply(i,a)}))}),i.prototype.deleteRule=new Proxy(r[n].deleteRule,{apply:M_(((n,i,a)=>{const[s]=a,r=t.getId(i.parentStyleSheet.ownerNode);return-1!==r&&e({id:r,removes:[{index:[...K_(i),s]}]}),n.apply(i,a)}))})})),M_((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach((([e,t])=>{t.prototype.insertRule=r[e].insertRule,t.prototype.deleteRule=r[e].deleteRule}))}))}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:M_(((n,i,a)=>{var s,r;const[o,c,l]=a,u=t.getId(null===(r=null===(s=i.parentRule)||void 0===s?void 0:s.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==u&&e({id:u,set:{property:o,value:c,priority:l},index:K_(i.parentRule)}),n.apply(i,a)}))});const a=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:M_(((n,i,a)=>{var s,r;const[o]=a,c=t.getId(null===(r=null===(s=i.parentRule)||void 0===s?void 0:s.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==c&&e({id:c,remove:{property:o},index:K_(i.parentRule)}),n.apply(i,a)}))}),M_((()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const i=new s(e,t,n);return a.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=x_(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=a.get(n);t&&(e(t),a.delete(n))}),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=s})),i.push(r),M_((()=>{i.forEach((e=>e()))}))}(e):()=>{},h=[];for(const t of e.plugins)h.push(t.observer(t.callback,n,t.options));return M_((()=>{z_.forEach((e=>e.reset())),i.disconnect(),a(),s(),r(),o(),c(),l();try{u(),d()}catch(e){}p(),h.forEach((e=>e()))}))}function J_(e){return void 0!==window[e]}function X_(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Q_{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class ey{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(x_(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){$_(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),V_(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(x_(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),i}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ny="undefined"==typeof Uint8Array?[]:new Uint8Array(256),iy=0;iy<64;iy++)ny[ty.charCodeAt(iy)]=iy;const ay=new Map;const sy=(e,t,n)=>{if(!e||!cy(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=ay.get(e);return n||(n=new Map,ay.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let a=i.indexOf(e);return-1===a&&(a=i.length,i.push(e)),a};function ry(e,t,n){if(e instanceof Array)return e.map((e=>ry(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,a="";for(t=0;t<i;t+=3)a+=ty[n[t]>>2],a+=ty[(3&n[t])<<4|n[t+1]>>4],a+=ty[(15&n[t+1])<<2|n[t+2]>>6],a+=ty[63&n[t+2]];return i%3==2?a=a.substring(0,a.length-1)+"=":i%3==1&&(a=a.substring(0,a.length-2)+"=="),a}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[ry(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[ry(e.data,t,n),e.width,e.height]}}if(cy(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:sy(e,t,n)}}return e}const oy=(e,t,n)=>[...e].map((e=>ry(e,t,n))),cy=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function ly(e,t,n,i,a,s,r,o){const c=[],l=Object.getOwnPropertyNames(e);for(const u of l)try{if("function"!=typeof e[u])continue;const l=x_(e,u,(function(c){return function(...l){const d=c.apply(this,l);if(sy(d,o,e),!k_(this.canvas,i,s,a)){r.getId(this.canvas);const i=oy([...l],o,e),a={type:t,property:u,args:i};n(this.canvas,a)}return d}}));c.push(l)}catch(i){const a=w_(e,u,{set(e){n(this.canvas,{type:t,property:u,args:[e],setter:!0})}});c.push(a)}return c}class uy{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=function(e,t,n,i){const a=[];try{const s=x_(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(a,...s){return k_(this,t,n,i)||"__context"in this||(this.__context=a),e.apply(this,[a,...s])}}));a.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach((e=>e()))}}(e,t,i,n),s=function(e,t,n,i,a,s){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const o=x_(t.CanvasRenderingContext2D.prototype,s,(function(t){return function(...r){return k_(this.canvas,n,a,i)||setTimeout((()=>{const t=[...r];if("drawImage"===s&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let i=null==n?void 0:n.getImageData(0,0,e.width,e.height),a=null==i?void 0:i.data;t[0]=JSON.stringify(a)}e(this.canvas,{type:f_["2D"],property:s,args:t})}),0),t.apply(this,r)}}));r.push(o)}catch(n){const i=w_(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:f_["2D"],property:s,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror),r=function(e,t,n,i,a,s){const r=[];return r.push(...ly(t.WebGLRenderingContext.prototype,f_.WebGL,e,n,i,a,s,t)),void 0!==t.WebGL2RenderingContext&&r.push(...ly(t.WebGL2RenderingContext.prototype,f_.WebGL2,e,n,i,a,s,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror);this.resetObservers=()=>{a(),s(),r()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}(e,["type"]);return t})),{type:a}=n[0];this.mutationCb({id:t,type:a,commands:i}),this.pendingCanvasMutations.delete(e)}}function dy(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let py,hy;const fy={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function my(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:p=null,unmaskInputSelector:h=null,inlineStylesheet:f=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskInputFn:v,maskTextFn:b,hooks:w,packFn:x,sampling:E={},mousemoveWait:S,recordCanvas:k=!1,userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:I=!1,plugins:A,keepIframeSrcFn:C=(()=>!1),onMutation:O}=e;if(!t)throw new Error("emit function is required");void 0!==S&&void 0===E.mousemove&&(E.mousemove=S);const L=!0===g?{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!==_?_:{},j=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let P;!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=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let U=0;py=(e,a)=>{var s;if(!(null===(s=z_[0])||void 0===s?void 0:s.isFrozen())||e.type===d_.FullSnapshot||e.type===d_.IncrementalSnapshot&&e.data.source===p_.Mutation||z_.forEach((e=>e.unfreeze())),t((e=>{for(const t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&(e=x(e)),e})(e),a),e.type===d_.FullSnapshot)P=e,U=0;else if(e.type===d_.IncrementalSnapshot){if(e.data.source===p_.Mutation&&e.data.isAttachIframe)return;U++;const t=i&&U>=i,a=n&&e.timestamp-P.timestamp>n;(t||a)&&hy(!0)}};const F=e=>{py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Mutation},e)}))},D=e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Scroll},e)})),N=e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.CanvasMutation},e)})),M=new Q_({mutationCb:F}),z=new uy({recordCanvas:k,mutationCb:N,win:window,blockClass:a,blockSelector:s,unblockSelector:r,mirror:fy}),B=new ey({mutationCb:F,scrollCb:D,bypassOptions:{onMutation:O,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:m,maskInputOptions:L,maskTextFn:b,maskInputFn:v,recordCanvas:k,inlineImages:I,sampling:E,slimDOMOptions:j,iframeManager:M,canvasManager:z},mirror:fy});hy=(e=!1)=>{var t,n,i,o;py(dy({type:d_.Meta,data:{href:window.location.href,width:S_(),height:E_()}}),e),z_.forEach((e=>e.lock()));const[c,g]=function(e,t){const{blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskTextClass:s="rr-mask",maskTextSelector:r=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:p=null,maskAllText:h=!1,maskAllInputs:f=!1,maskTextFn:m,maskInputFn:g,slimDOM:_=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:E=(()=>!1)}=t||{},S={};return[l_(e,{doc:e,map:S,blockClass:n,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:r,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,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,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:y,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:E}),S]}(document,{blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:m,maskAllInputs:L,maskTextFn:b,slimDOM:j,recordCanvas:k,inlineImages:I,onSerialize:e=>{A_(e)&&M.addIframe(e),C_(e)&&B.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{M.attachIframe(e,t),B.observeAttachShadow(e)},keepIframeSrcFn:C});if(!c)return console.warn("Failed to snapshot the document");fy.map=g,py(dy({type:d_.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),z_.forEach((e=>e.unlock()))};try{const e=[];e.push(__("DOMContentLoaded",(()=>{py(dy({type:d_.DomContentLoaded,data:{}}))})));const t=e=>{var t;return M_(Z_)({onMutation:O,mutationCb:F,mousemoveCb:(e,t)=>py(dy({type:d_.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.MouseInteraction},e)})),scrollCb:D,viewportResizeCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.ViewportResize},e)})),inputCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Input},e)})),mediaInteractionCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.MediaInteraction},e)})),styleSheetRuleCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.StyleSheetRule},e)})),styleDeclarationCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.StyleDeclaration},e)})),canvasMutationCb:N,fontCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Font},e)})),blockClass:a,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:L,inlineStylesheet:f,sampling:E,recordCanvas:k,inlineImages:I,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAllText:m,maskInputFn:v,maskTextFn:b,blockSelector:s,unblockSelector:r,slimDOMOptions:j,mirror:fy,iframeManager:M,shadowDomManager:B,canvasManager:z,plugins:(null===(t=null==A?void 0:A.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>py(dy({type:d_.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};M.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{hy(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(__("load",(()=>{py(dy({type:d_.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}function gy(e){return e>9999999999?e:1e3*e}function _y(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:d_.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:zh(t,10,1e3)}}),"console"===t.category))))}my.addCustomEvent=(e,t)=>{if(!py)throw new Error("please add custom event after start recording");py(dy({type:d_.Custom,data:{tag:e,payload:t}}))},my.freezePage=()=>{z_.forEach((e=>e.freeze()))},my.takeFullSnapshot=e=>{if(!hy)throw new Error("please take full snapshot after start recording");hy(e)},my.mirror=fy;const yy="button,a";function vy(e){const t=by(e);if(!(t&&t instanceof Element))return t;return t.closest(yy)||t}function by(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let wy;function xy(e){return wy||(wy=[],Jp(Rg,"open",(function(e){return function(...t){if(wy)try{wy.forEach((e=>e()))}catch(e){}return e.apply(Rg,t)}}))),wy.push(e),()=>{const t=wy?wy.indexOf(e):-1;t>-1&&wy.splice(t,1)}}class Ey{constructor(e,t,n=_y){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=n}addListeners(){const e=()=>{this._lastScroll=ky()},t=xy((()=>{this._lastMutation=ky()})),n=e=>{if(!e.target)return;const t=vy(e);t&&this._handleMultiClick(t)},i=new MutationObserver((()=>{this._lastMutation=ky()}));i.observe(Rg.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Rg.addEventListener("scroll",e,{passive:!0}),Rg.addEventListener("click",n,{passive:!0}),this._teardown=()=>{Rg.removeEventListener("scroll",e),Rg.removeEventListener("click",n),t(),i.disconnect(),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(!Sy.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 n={timestamp:(i=e.timestamp,i>9999999999?i/1e3:i),clickBreadcrumb:e,clickCount:0,node:t};var i;this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ky();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));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,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!i,{clickCount:s,clickBreadcrumb:r}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Rg.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:s||1}};this._addBreadcrumbEvent(t,a)}else if(s>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Rg.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Sy=["A","BUTTON","INPUT"];function ky(){return Date.now()/1e3}function Ty(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ry;!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"}(Ry||(Ry={}));const Iy=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function Ay(e){const t={};for(const n in e)if(Iy.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const Cy=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,i=null;try{i=t?vy(e.event):by(e.event),n=zp(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return Ty({category:`ui.${e.name}`,...Oy(t,n)})}(t);if(!n)return;const i="click"===t.name,a=i&&t.event;var s,r,o;!(i&&e.clickDetector&&a)||a.altKey||a.metaKey||a.ctrlKey||a.shiftKey||(s=e.clickDetector,r=n,o=vy(t.event),s.handleClick(r,o)),_y(e,n)};function Oy(e,t){const n=e&&"__sn"in e&&e.__sn.type===Ry.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map((e=>"__sn"in e&&e.__sn.type===Ry.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:Ay(n.attributes)}}:{}}}function Ly(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:a,key:s,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!s)return null;const o=t||i||a,c=1===s.length;if(!o&&c)return null;const l=zp(r,{maxStringLength:200})||"<unknown>",u=Oy(r,l);return Ty({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:a,key:s}})}(t);n&&_y(e,n)}const jy=["name","type","startTime","transferSize","duration"];function Py(e){return function(t){return jy.every((n=>e[n]===t[n]))}}function Uy(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,i,a]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),s=[],r=[];let o=i.length?i[i.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)s.push(e);else{const t=e;e.duration>0&&!n.find(Py(t))&&!r.find(Py(t))&&r.push(t)}else(!o||o.startTime<e.startTime)&&(o=e)})),[...o?[o]:[],...n,...a,...s,...r].sort(((e,t)=>e.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}const Fy='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Dy(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Yp.info(e),t&&My(e))}function Ny(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Yp.info(e),t&&setTimeout((()=>{My(e)}),0))}function My(e){Nf().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class zy extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class By{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>jg)throw new zy;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?gy(e):null}}class $y{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Dy("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,a)=>{const s=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",s),!r.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay]",r.response),void a(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class qy{constructor(e){this._worker=new $y(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=gy(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>jg?Promise.reject(new zy):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}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 Vy{constructor(e){this._fallback=new By,this._compression=new qy(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 Dy("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Yy({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob([Fy]);return URL.createObjectURL(e)}();Dy("[Replay] Using compression worker");const t=new Worker(e);return new Vy(t)}catch(e){Dy("[Replay] Failed to create compression worker")}return Dy("[Replay] Using simple buffer"),new By}function Gy(){try{return"sessionStorage"in Rg&&!!Rg.sessionStorage}catch(e){return!1}}function Hy(e){!function(){if(!Gy())return;try{Rg.sessionStorage.removeItem(Ig)}catch(e){}}(),e.session=void 0}function Wy(e){return void 0!==e&&Math.random()<e}function Ky(e){if(Gy())try{Rg.sessionStorage.setItem(Ig,JSON.stringify(e))}catch(e){}}function Zy(e){const t=Date.now();return{id:e.id||Lh(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Jy({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const a=function(e,t){return Wy(e)?"session":!!t&&"buffer"}(e,t),s=Zy({sampled:a,previousSessionId:i});return n&&Ky(s),s}function Xy(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Qy(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return Xy(e.started,t,i)||Xy(e.lastActivity,n,i)}function ev(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Qy(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function tv({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},a){const s=a.stickySession&&function(e){if(!Gy())return null;try{const t=Rg.sessionStorage.getItem(Ig);if(!t)return null;const n=JSON.parse(t);return Ny("[Replay] Loading existing session",e),Zy(n)}catch(e){return null}}(e);return s?ev(s,{sessionIdleExpire:t,maxReplayDuration:n})?(Ny("[Replay] Session in sessionStorage is expired, creating new one..."),Jy(a,{previousSessionId:s.id})):s:(Ny("[Replay] Creating new session",e),Jy(a,{previousSessionId:i}))}function nv(e,t,n){return!!av(e,t)&&(iv(e,t,n),!0)}async function iv(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===d_.Custom}(e))return t(e)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof zy?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(t),await e.stop({reason:n});const i=Nf().getClient();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function av(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=gy(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Dy(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function sv(e){return!e.type}function rv(e){return"transaction"===e.type}function ov(e){const t=function(){const e=Nf().getClient();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!sv(n)&&!rv(n))return;const a=i&&i.statusCode;t&&(!a||a<200||a>=300)||(rv(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function cv(e,t=!1){const n=t?ov(e):void 0;return(t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!sv(t)&&!rv(t))return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,i)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Replay] Ignoring error from rrweb internals",t),null;const a=function(e,t){return"buffer"===e.recordingMode&&t.message!==Cg&&!(!t.exception||t.type)&&Wy(e.getOptions().errorSampleRate)}(e,t);return(a||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}function lv(e,t){return t.map((({type:t,start:n,end:i,name:a,data:s})=>{const r=e.throttledAddEvent({type:d_.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:i,data:s}}});return"string"==typeof r?Promise.resolve(null):r}))}function uv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(lv(e,[n]),!1))))}}function dv(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=Nf().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}function pv(e,t){e.isEnabled()&&null!==t&&(dv(e,t.name)||e.addUpdate((()=>(lv(e,[t]),!0))))}function hv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,a=i[_h];if(!t||!n||!a)return null;const{method:s,url:r,status_code:o}=a;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:s,statusCode:o}}}(t);pv(e,n)}}const fv=10,mv=11,gv=12,_v=13,yv=14,vv=15,bv=20,wv=21,xv=22,Ev=23,Sv=["true","false","null"];function kv(e,t){if(!t.length)return e;let n=e;const i=t.length-1;n=function(e,t){switch(t){case fv:return`${e}"~~":"~~"`;case mv:return`${e}:"~~"`;case gv:return`${e}~~":"~~"`;case _v:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);if(Sv.includes(n.trim()))return`${e},"~~":"~~"`;return`${e.slice(0,t+1)}"~~"`}(e);case yv:return`${e}~~"`;case vv:return`${e},"~~":"~~"`;case bv:return`${e}"~~"`;case wv:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Sv.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case xv:return`${e}~~"`;case Ev:return`${e},"~~"`}return e}(n,t[i]);for(let e=i;e>=0;e--){switch(t[e]){case fv:n=`${n}}`;break;case bv:n=`${n}]`}}return n}function Tv(e,t,n){const i=e[e.length-1],a=t[n];if(!/\s/.test(a))if('"'!==a||Rv(t,n))switch(a){case"{":!function(e,t){if(!t)return void e.push(fv);if(t===_v)return void e.push(fv);t===wv&&e.push(fv);if(t===bv)e.push(fv)}(e,i);break;case"[":!function(e,t){if(!t)return e.push(bv),void e.push(wv);if(t===_v)return e.push(bv),void e.push(wv);t===wv&&(e.push(bv),e.push(wv));if(t===bv)e.push(bv),e.push(wv)}(e,i);break;case":":!function(e,t){t===mv&&(e.pop(),e.push(_v))}(e,i);break;case",":!function(e,t){if(t===_v)return void e.pop();if(t===vv)return e.pop(),void e.pop();if(t===wv)return;if(t===Ev)e.pop()}(e,i);break;case"}":!function(e,t){t===fv&&e.pop();t===_v&&(e.pop(),e.pop());t===vv&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(vv);e[e.length-1]===wv&&e.push(Ev)}(e,i);break;case"]":!function(e,t){t===bv&&e.pop();t===wv&&(e.pop(),e.pop());t===Ev&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(vv);e[e.length-1]===wv&&e.push(Ev)}(e,i)}else!function(e,t){if(t===yv)return e.pop(),void e.push(vv);if(t===xv)return e.pop(),void e.push(Ev);if(t===_v)return void e.push(yv);if(t===wv)return void e.push(xv);if(t===fv)return void e.push(gv);if(t===gv)e.pop(),e.push(mv)}(e,i)}function Rv(e,t){return"\\"===e[t-1]&&!Rv(e,t-1)}function Iv(e){return kv(e,function(e){const t=[];for(let n=0;n<e.length;n++)Tv(t,e,n);return t}(e))}function Av(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 n=Fv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Cv(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ov(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?Fv(e):void 0}function Lv(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:a,method:s,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:a,data:ah({method:s,statusCode:r,request:o,response:c})}}function jv(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Pv(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:a,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Og;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Iv(e.slice(0,Og)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,Og)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Og)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return i.body=a,s.length>0&&(i._meta={warnings:s}),i}function Uv(e,t){return Object.keys(e).reduce(((n,i)=>{const a=i.toLowerCase();return t.includes(a)&&e[i]&&(n[a]=e[i]),n}),{})}function Fv(e){return new URLSearchParams(e).toString()}function Dv(e,t){const n=function(e,t=Rg.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Rg.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;if(!e.endsWith("/")&&i.endsWith("/"))return i.slice(0,-1);return i}(e);return Ap(n,t)}async function Nv(e,t,n){try{const i=await async function(e,t,n){const{startTimestamp:i,endTimestamp:a}=t,{url:s,method:r,status_code:o=0,request_body_size:c,response_body_size:l}=e.data,u=Dv(s,n.networkDetailAllowUrls)&&!Dv(s,n.networkDetailDenyUrls),d=u?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const a=function(e,t){if(1===e.length&&"string"!=typeof e[0])return Bv(e[0],t);if(2===e.length)return Bv(e[1],t);return{}}(n,t);if(!e)return Pv(a,i,void 0);const s=Ov(Mv(n));return Pv(a,i,s)}(n,t.input,c):jv(c),p=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},a,s){if(!e&&void 0!==s)return jv(s);const r=zv(a.headers,i);if(!t&&void 0!==s)return Pv(r,s,void 0);try{const i=a.clone(),o=await async function(e){try{return await e.text()}catch(e){return}}(i),c=o&&o.length&&void 0===s?Av(o,n):s;return e?Pv(r,c,t?o:void 0):jv(c)}catch(e){return Pv(r,s,void 0)}}(u,n,t.response,l);return{startTimestamp:i,endTimestamp:a,url:s,method:r,statusCode:o,request:d,response:p}}(e,t,n),a=Lv("resource.fetch",i);pv(n.replay,a)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Mv(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function zv(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Bv(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?zv(n,t):Array.isArray(n)?{}:Uv(n,t):{}}async function $v(e,t,n){try{const i=function(e,t,n){const{startTimestamp:i,endTimestamp:a,input:s,xhr:r}=t,{url:o,method:c,status_code:l=0,request_body_size:u,response_body_size:d}=e.data;if(!o)return null;if(!Dv(o,n.networkDetailAllowUrls)||Dv(o,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:a,url:o,method:c,statusCode:l,request:jv(u),response:jv(d)}}const p=r[_h],h=p?Uv(p.request_headers,n.networkRequestHeaders):{},f=Uv(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(r),n.networkResponseHeaders),m=Pv(h,u,n.networkCaptureBodies?Ov(s):void 0),g=Pv(f,d,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:i,endTimestamp:a,url:o,method:c,statusCode:l,request:m,response:g}}(e,t,n),a=Lv("resource.xhr",i);pv(n.replay,a)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function qv(e){const t=Nf().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:a,networkCaptureBodies:s,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:a,networkCaptureBodies:s,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(!function(e,t,n){const{xhr:i,input:a}=t,s=Av(a,n.textEncoder),r=i.getResponseHeader("content-length")?Cv(i.getResponseHeader("content-length")):Av(i.response,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),$v(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:a}=t,s=Av(Mv(i),n.textEncoder),r=a?Cv(a.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),Nv(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Error when enriching network breadcrumb")}}(c,e,t))):(wh("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:a}=e;if(!n)return null;const{method:s,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:s,statusCode:a?a.status:void 0}}}(t);pv(e,n)}}(e)),wh("xhr",hv(e)))}catch(e){}}let Vv=null;const Yv=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Vv===t||!t)return null;if(Vv=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 Ty(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Lg?(n=!0,`${e.slice(0,Lg)}…`):e;if("object"==typeof e)try{const t=zh(e,7),i=JSON.stringify(t);if(i.length>Lg){const e=Iv(i.slice(0,Lg)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return Ty({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Ty(t)}(t);n&&_y(e,n)};function Gv(e){return!(!e||!e.on)}function Hv(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}const Wv={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:a,startTime:s,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Zv(s),end:Zv(a),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:a}=e,s=Zv(a);return{type:n,name:i,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:a,domComplete:s,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===a)return null;return{type:`${t}.${m}`,start:Zv(h),end:Zv(s),name:n,data:{size:f,decodedBodySize:i,encodedBodySize:r,duration:a,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:i}=e;let a=0;if(Rg.performance){const e=Rg.performance.getEntriesByType("navigation")[0];a=e&&e.activationStart||0}const s=Math.max(n-a,0),r=Zv(a)+s/1e3;return{type:t,name:t,start:r,end:r,data:{value:s,size:i,nodeId:my.mirror.getId(e.element)}}}};function Kv(e){return void 0===Wv[e.entryType]?null:Wv[e.entryType](e)}function Zv(e){return((nf||Rg.performance.timeOrigin)+e)/1e3}function Jv(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Replay] Received replay event after session expired."));const a=i||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!nv(e,n,a))return!0;if(!a)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;nv(e,function(e){const t=e.getOptions();return{type:d_.Custom,timestamp:Date.now(),data:{tag:"options",payload:{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,a),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Dy(`[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&&Ky(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Xv({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:a,session:s}){const r=function({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${i}${e}`;else{const t=(new TextEncoder).encode(i);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:l,initialTimestamp:u}=i,d=Nf(),p=d.getClient(),h=d.getScope(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&f&&m&&s.sampled))return;const g={type:Ag,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:s.sampled},_=await async function({client:e,scope:t,replayId:n,event:i}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,a);const s=await um(e.getOptions(),i,a,t,e);if(!s)return null;s.platform=s.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:h,client:p,replayId:t,event:g});if(!_)return p.recordDroppedEvent("event_processor","replay",g),void Dy("An event processor returned `null`, will not send event.");delete _.sdkProcessingMetadata;const y=function(e,t,n,i){return hf(xf(e,wf(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(_,r,m,p.getOptions().tunnel);let v;try{v=await f.send(y)}catch(e){const t=new Error(Cg);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Qv(v.statusCode);return v}class Qv extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function eb(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var a,s;if(n.length)try{return await Xv(e),!0}catch(n){if(n instanceof Qv)throw n;if(a="Replays",s={_retryCount:t.count},Nf().setContext(a,s),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i._experiments&&i._experiments.captureExceptions&&am(n),t.count>=3){const e=new Error(`${Cg} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await eb(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const tb="__THROTTLED";function nb(e,t,n){const i=new Map;let a=!1;return(...s)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?"__SKIPPED":tb}a=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...s)}}class ib{constructor({options:e,recordingOptions:t}){ib.prototype.__init.call(this),ib.prototype.__init2.call(this),ib.prototype.__init3.call(this),ib.prototype.__init4.call(this),ib.prototype.__init5.call(this),ib.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],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,n){let i,a,s;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==a&&clearTimeout(a),void 0!==s&&clearTimeout(s),a=s=void 0}function l(){return a&&clearTimeout(a),a=setTimeout(o,t),r&&void 0===s&&(s=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==s?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=nb(((e,t)=>function(e,t,n){return av(e,t)?iv(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new Ey(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Ny(`[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");Ny("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=tv({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");Ny("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=tv({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{this._stopRecording=my({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Jv(this),onMutation:this._onMutationHandler})}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{Dy("[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,Hy(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Dy("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Dy("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Dy("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"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&&Xy(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Rg.location.pathname}${Rg.location.hash}${Rg.location.search}`,t=`${Rg.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===tb){const e=Ty({category:"replay.throttled"});this.addUpdate((()=>!nv(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Nf().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Yy({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&am(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=tv({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=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!ev(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{Rg.document.addEventListener("visibilitychange",this._handleVisibilityChange),Rg.addEventListener("blur",this._handleWindowBlur),Rg.addEventListener("focus",this._handleWindowFocus),Rg.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=Nf().getScope(),n=Nf().getClient();t.addScopeListener(Yv(e)),wh("dom",Cy(e)),wh("history",uv(e)),qv(e),Rf(cv(e,!Gv(n))),Gv(n)&&(n.on("afterSendEvent",ov(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Rg&&(this._performanceObserver=Uy(this))}_removeListeners(){try{Rg.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Rg.removeEventListener("blur",this._handleWindowBlur),Rg.removeEventListener("focus",this._handleWindowFocus),Rg.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Rg.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ty({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ty({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ly(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Qy(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):Dy("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(e=!0){try{Dy("[Replay] Taking full rrweb snapshot"),my.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_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:d_.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(lv(this,function(e){return e.map(Kv).filter(Boolean)}(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 n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_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(lv(e,[Hv(Rg.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 n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await eb({replayId:e,recordingData:a,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Nf().getClient();t&&t.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] No session found to flush."));const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(i||a)return Dy(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&Dy("[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){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ky(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,i=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||i){const e=Ty({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ab(e,t,n,i){const a=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function sb({mask:e,unmask:t,block:n,unblock:i,ignore:a,blockClass:s,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const u=ab(e,[".sentry-mask","[data-sentry-mask]"],o,c),d=ab(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:ab(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,r),unblockSelector:ab(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ab(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return s instanceof RegExp&&(p.blockClass=s),o instanceof RegExp&&(p.maskTextClass=o),p}function rb(){return"undefined"!=typeof window&&(!Mh()||"undefined"!=typeof process&&"renderer"===process.type)}const ob='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',cb=["content-length","content-type","accept"];let lb=!1;class ub{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:a=!0,useCompression:s=!0,_experiments:r={},sessionSampleRate:o,errorSampleRate:c,maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:_=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],unmask:x=[],block:E=[],unblock:S=[],ignore:k=[],maskFn:T,beforeAddRecordingEvent:R,blockClass:I,blockSelector:A,maskInputOptions:C,maskTextClass:O,maskTextSelector:L,ignoreClass:j}={}){if(this.name=ub.id,this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{...C||{},password:!0},maskTextFn:T,maskInputFn:T,...sb({mask:w,unmask:x,block:E,unblock:S,ignore:k,blockClass:I,blockSelector:A,maskTextClass:O,maskTextSelector:L,ignoreClass:j}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Pg),stickySession:a,sessionSampleRate:o,errorSampleRate:c,useCompression:s,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:_,networkCaptureBodies:y,networkRequestHeaders:db(v),networkResponseHeaders:db(b),beforeAddRecordingEvent:R,_experiments:r},"number"==typeof o&&(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: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof c&&(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: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ob}`:ob),this._isInitialized&&rb())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lb}set _isInitialized(e){lb=e}setupOnce(){rb()&&(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._replay.initializeSampling()}_setup(){const e=function(e){const t=Nf().getClient(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...ah(e)};if(!n)return console.warn("SDK client is not available."),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new ib({options:e,recordingOptions:this._recordingOptions})}}function db(e){return[...cb,...e.map((e=>e.toLowerCase()))]}ub.__initStatic();const pb=Up;const hb=(e,t,n)=>{let i,a;return s=>{t.value>=0&&(s||n)&&(a=t.value-(i||0),(a||void 0===i)&&(i=t.value,t.delta=a,e(t)))}},fb=()=>pb.__WEB_VITALS_POLYFILL__?pb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=pb.performance.timing,t=pb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):pb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mb=()=>{const e=fb();return e&&e.activationStart||0},gb=(e,t)=>{const n=fb();let i="navigate";return n&&(i=pb.document.prerendering||mb()>0?"prerender":n.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:i}},_b=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},yb=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==pb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},vb=e=>{const t=gb("CLS",0);let n,i=0,a=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const s=a[0],r=a[a.length-1];i&&0!==a.length&&e.startTime-r.startTime<1e3&&e.startTime-s.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>t.value&&(t.value=i,t.entries=a,n&&n())}}))},r=_b("layout-shift",s);if(r){n=hb(e,t);const i=()=>{s(r.takeRecords()),n(!0)};return yb(i),i}};let bb=-1;const wb=()=>(bb<0&&(bb="hidden"!==pb.document.visibilityState||pb.document.prerendering?1/0:0,yb((({timeStamp:e})=>{bb=e}),!0)),{get firstHiddenTime(){return bb}}),xb=e=>{const t=wb(),n=gb("FID");let i;const a=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},s=e=>{e.forEach(a)},r=_b("first-input",s);i=hb(e,n),r&&yb((()=>{s(r.takeRecords()),r.disconnect()}),!0)},Eb={},Sb=e=>{const t=wb(),n=gb("LCP");let i;const a=e=>{const a=e[e.length-1];if(a){const e=Math.max(a.startTime-mb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[a],i())}},s=_b("largest-contentful-paint",a);if(s){i=hb(e,n);const t=()=>{Eb[n.id]||(a(s.takeRecords()),s.disconnect(),Eb[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),yb(t,!0),t}};function kb(e){return"number"==typeof e&&isFinite(e)}function Tb(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function Rb(e){return e/1e3}function Ib(){return pb&&pb.addEventListener&&pb.performance}let Ab,Cb,Ob=0,Lb={};function jb(){const e=Ib();if(e&&nf){e.mark&&pb.performance.mark("sentry-tracing-init"),xb((e=>{const t=e.entries.pop();if(!t)return;const n=Rb(nf),i=Rb(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FID"),Lb.fid={value:e.value,unit:"millisecond"},Lb["mark.fid"]={value:n+i,unit:"second"}}));const t=vb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding CLS"),Lb.cls={value:e.value,unit:""},Cb=t)})),n=Sb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding LCP"),Lb.lcp={value:e.value,unit:"millisecond"},Ab=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function Pb(e){const t=Ib();if(!t||!pb.performance.getEntries||!nf)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Rb(nf),i=t.getEntries();let a,s;if(i.slice(Ob).forEach((t=>{const i=Rb(t.startTime),r=Rb(t.duration);if(!("navigation"===e.op&&n+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{Ub(e,t,i,n)})),Ub(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Ub(e,t,"fetch",n,"cache","domainLookupStart"),Ub(e,t,"domainLookup",n,"DNS"),function(e,t,n){Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Rb(t.requestStart),endTimestamp:n+Rb(t.responseEnd)}),Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Rb(t.responseStart),endTimestamp:n+Rb(t.responseEnd)})}(e,t,n)}(e,t,n),a=n+Rb(t.responseStart),s=n+Rb(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,a){const s=a+n,r=s+i;Tb(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,i,r,n);const a=wb(),s=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FP"),Lb.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FCP"),Lb.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const a=t.name.replace(pb.location.origin,"");!function(e,t,n,i,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r={};"transferSize"in t&&(r["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(r["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(r["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(r["resource.render_blocking_status"]=t.renderBlockingStatus);const o=s+i,c=o+a;Tb(e,{description:n,endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:r})}(e,t,a,i,r,n);break}}})),Ob=Math.max(i.length-1,0),function(e){const t=pb.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),kb(n.rtt)&&(Lb["connection.rtt"]={value:n.rtt,unit:"millisecond"}));kb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);kb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding TTFB"),Lb.ttfb={value:1e3*(a-e.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=a&&(Lb["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Lb[t]||n>=e.startTimestamp)return;const i=Lb[t].value,a=n+Rb(i),s=Math.abs(1e3*(a-e.startTimestamp)),r=s-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Measurements] Normalized ${t} from ${i} to ${s} (${r})`),Lb[t].value=s}));const t=Lb["mark.fid"];t&&Lb.fid&&(Tb(e,{description:"first input delay",endTimestamp:t.value+Rb(Lb.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Lb["mark.fid"]),"fcp"in Lb||delete Lb.cls,Object.keys(Lb).forEach((t=>{e.setMeasurement(t,Lb[t].value,Lb[t].unit)})),function(e){Ab&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding LCP Data"),Ab.element&&e.setTag("lcp.element",zp(Ab.element)),Ab.id&&e.setTag("lcp.id",Ab.id),Ab.url&&e.setTag("lcp.url",Ab.url.trim().slice(0,200)),e.setTag("lcp.size",Ab.size));Cb&&Cb.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding CLS Data"),Cb.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,zp(t.node)))))}(e)}Ab=void 0,Cb=void 0,Lb={}}function Ub(e,t,n,i,a,s){const r=s?t[s]:t[`${n}End`],o=t[`${n}Start`];o&&r&&Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:a||n,startTimestamp:i+Rb(o),endTimestamp:i+Rb(r)})}const Fb=["localhost",/^\/(?!\/)/],Db={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Fb,tracePropagationTargets:Fb};function Nb(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:a,shouldCreateSpanForRequest:s,enableHTTPTimings:r}={traceFetch:Db.traceFetch,traceXHR:Db.traceXHR,...e},o="function"==typeof s?s:e=>!0,c=e=>function(e,t){return Ap(e,t||Fb)}(e,i||a),l={};t&&wh("fetch",(e=>{const t=function(e,t,n,i){if(!Bf()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length"),i=parseInt(t);i>0&&n.setData("http.response_content_length",i)}else e.error&&n.setStatus("internal_error");n.finish(),delete i[t]}return}const s=Nf(),r=s.getScope(),o=s.getClient(),c=r.getSpan(),{method:l,url:u}=e.fetchData,d=a&&c?c.startChild({data:{url:u,type:"fetch","http.method":l},description:`${l} ${u}`,op:"http.client",origin:"auto.http.browser"}):void 0;d&&(e.fetchData.__span=d.spanId,i[d.spanId]=d);if(n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,a){const s=a||n.getSpan(),r=s&&s.transaction,{traceId:o,sampled:c,dsc:l}=n.getPropagationContext(),u=s?s.toTraceparent():pf(o,void 0,c),d=r?r.getDynamicSamplingContext():l||Hf(o,t,n),p=cf(d),h="undefined"!=typeof Request&&Sp(e,Request)?e.headers:i.headers;if(h){if("undefined"!=typeof Headers&&Sp(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",u),p&&e.append(af,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",u]];return p&&e.push([af,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,n,d)}return d}(e,o,c,l);r&&t&&Mb(t)})),n&&wh("xhr",(e=>{const t=function(e,t,n,i){const a=e.xhr,s=a&&a[_h];if(!Bf()||a&&a.__sentry_own_request__||!a||!s)return;const r=t(s.url);if(e.endTimestamp&&r){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete i[e]))}const o=Nf(),c=o.getScope(),l=c.getSpan(),u=r&&l?l.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;u&&(a.__sentry_xhr_span_id__=u.spanId,i[a.__sentry_xhr_span_id__]=u);if(a.setRequestHeader&&n(s.url))if(u){const e=u&&u.transaction,t=cf(e&&e.getDynamicSamplingContext());Bb(a,u.toTraceparent(),t)}else{const e=o.getClient(),{traceId:t,sampled:n,dsc:i}=c.getPropagationContext();Bb(a,pf(t,void 0,n),cf(i||(e?Hf(t,e,c):void 0)))}return u}(e,o,c,l);r&&t&&Mb(t)}))}function Mb(e){const t=e.data.url,n=new PerformanceObserver((i=>{i.getEntries().forEach((i=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(i)&&i.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",i="";for(const a of e){if("/"===a){[t,n]=e.split("/");break}if(!isNaN(Number(a))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=a}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!nf)return i;return[...i,["http.request.redirect_start",zb(e.redirectStart)],["http.request.fetch_start",zb(e.fetchStart)],["http.request.domain_lookup_start",zb(e.domainLookupStart)],["http.request.domain_lookup_end",zb(e.domainLookupEnd)],["http.request.connect_start",zb(e.connectStart)],["http.request.secure_connection_start",zb(e.secureConnectionStart)],["http.request.connection_end",zb(e.connectEnd)],["http.request.request_start",zb(e.requestStart)],["http.request.response_start",zb(e.responseStart)],["http.request.response_end",zb(e.responseEnd)]]}(i);t.forEach((t=>e.setData(...t))),n.disconnect()}}))}));n.observe({entryTypes:["resource"]})}function zb(e=0){return((nf||performance.timeOrigin)+e)/1e3}function Bb(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(af,n)}catch(e){}}const $b={...Kf,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!pb||!pb.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not initialize routing instrumentation due to invalid location"));let i,a=pb.location.href;t&&(i=e({name:pb.location.pathname,startTimestamp:nf?nf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&wh("history",(({to:t,from:n})=>{void 0===n&&a&&-1!==a.indexOf(t)?a=void 0:n!==t&&(a=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:pb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Db};class qb{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,im(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...$b,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=jb(),this.options.enableLongTask&&_b("longtask",(e=>{for(const t of e){const e=$f();if(!e)return;const n=Rb(nf+t.startTime),i=Rb(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&_b("event",(e=>{for(const t of e){const e=$f();if(!e)return;if("click"===t.name){const n=Rb(nf+t.startTime),i=Rb(t.duration);e.startChild({description:zp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),i=n&&n.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:r,markBackgroundTransactions:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,h=i&&i.tracePropagationTargets,f=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&Yp.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."),a((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),r,s),o&&(pb&&pb.document?pb.document.addEventListener("visibilitychange",(()=>{const e=$f();if(pb.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),Nb({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,r="pageload"===e.op,o=r?Vb("sentry-trace"):"",c=r?Vb("baggage"):"",{traceparentData:l,dynamicSamplingContext:u,propagationContext:d}=df(o,c),p={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!u?{}:u},trimEnd:!0},h="function"==typeof n?n(p):p,f=void 0===h?{...p,sampled:!1}:h;f.metadata=f.name!==p.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,!1===f.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Starting ${f.op} transaction on scope`);const{location:m}=pb,g=nm(t,f,i,a,!0,{location:m},s),_=t.getScope();return r&&l?_.setPropagationContext(d):_.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Pb(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:i}=this.options,a="ui.action.click",s=$f();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`));const r=this._getCurrentHub(),{location:o}=pb,c={name:this._latestRouteName,op:a,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=nm(r,c,t,n,!0,{location:o},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function Vb(e){const t=(n=`meta[name=${e}]`,Np.document&&Np.document.querySelector?Np.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}class Yb{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){this.gameParams?.fromDashboard&&(kg({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[new qb({tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/]}),new ub],tracesSampleRate:1,replaysSessionSampleRate:1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),delete this.gameParams.fromDashboard),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const a=As(As({...t,...n},Cs),$s),{userMode:s,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:u,consent:d,storyOption:p,language:h,skipInstructions:f,grade:m,birthMonth:g,birthYear:_,age:y,ageMonths:v,timerLength:b}=a,w=_r(g,_,y,v),x={pid:r,labId:o,userMode:s||"default",recruitment:c||"pilot",storyOption:p,story:Gd(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:u,firekit:e,language:h,skipInstructions:f??!0,consent:d??!0,displayElement:i||null,blockOrder:Hd(s),timerLength:b??18e4},E=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,x[e]??t])));return await x.firekit.updateTaskParams(E),null!==x.pid&&await x.firekit.updateUser({assessmentPid:x.pid,...l}),x})(this.firekit,this.gameParams,this.userParams,this.displayElement);return s.session.set("config",e),function(e,t){Wd(t);const n=Kd(e),i=vr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["responseTimeTooFast"]});pp=new br({evaluateValidity:i,handleEngagementFlags:(e,n)=>{if(t.firekit.run.started)return t.firekit.updateEngagementFlags(e,n)}});const a=[Xc,...n];return(e=>{const n={timeline:[up,dp],repetitions:4};a.push(Xd),a.push(op),a.push(lp),a.push(n),a.push(Qd);for(let n=0;n<e.length;n+=1)a.push(cp(e[n],n+1,t.timerLength)),n<e.length-1&&a.push(np);a.push(ip)})(t.blockOrder),{jsPsych:ol,timeline:a}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),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{Yb as default};
|
|
26
|
-
//# sourceMappingURL=index.
|
|
25
|
+
*/!function(e,t){(function(){var i,a="Expected a function",s="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,u=128,d=256,p=1/0,h=9007199254740991,f=NaN,m=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",d]],_="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",x="[object Function]",E="[object GeneratorFunction]",S="[object Map]",k="[object Number]",T="[object Object]",R="[object Promise]",I="[object RegExp]",A="[object Set]",C="[object String]",O="[object Symbol]",L="[object WeakMap]",j="[object ArrayBuffer]",P="[object DataView]",U="[object Float32Array]",F="[object Float64Array]",D="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,K=RegExp(H.source),Z=RegExp(W.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,_e=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Ae="\\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",Ce="['’]",Oe="["+Ee+"]",Le="["+Ae+"]",je="["+Se+"]",Pe="\\d+",Ue="["+ke+"]",Fe="["+Te+"]",De="[^"+Ee+Ae+Pe+ke+Te+Re+"]",Ne="\\ud83c[\\udffb-\\udfff]",Me="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Re+"]",qe="\\u200d",Ve="(?:"+Fe+"|"+De+")",Ye="(?:"+$e+"|"+De+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+je+"|"+Ne+")"+"?",Ke="["+Ie+"]?",Ze=Ke+We+("(?:"+qe+"(?:"+[Me,ze,Be].join("|")+")"+Ke+We+")*"),Je="(?:"+[Ue,ze,Be].join("|")+")"+Ze,Xe="(?:"+[Me+je+"?",je,ze,Be,Oe].join("|")+")",Qe=RegExp(Ce,"g"),et=RegExp(je,"g"),tt=RegExp(Ne+"(?="+Ne+")|"+Xe+Ze,"g"),nt=RegExp([$e+"?"+Fe+"+"+Ge+"(?="+[Le,$e,"$"].join("|")+")",Ye+"+"+He+"(?="+[Le,$e+Ve,"$"].join("|")+")",$e+"?"+Ve+"+"+Ge,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),it=RegExp("["+qe+Ee+Se+Ie+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["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[U]=ot[F]=ot[D]=ot[N]=ot[M]=ot[z]=ot[B]=ot[$]=ot[q]=!0,ot[_]=ot[y]=ot[j]=ot[v]=ot[P]=ot[b]=ot[w]=ot[x]=ot[S]=ot[k]=ot[T]=ot[I]=ot[A]=ot[C]=ot[L]=!1;var ct={};ct[_]=ct[y]=ct[j]=ct[P]=ct[v]=ct[b]=ct[U]=ct[F]=ct[D]=ct[N]=ct[M]=ct[S]=ct[k]=ct[T]=ct[I]=ct[A]=ct[C]=ct[O]=ct[z]=ct[B]=ct[$]=ct[q]=!0,ct[w]=ct[x]=ct[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,_t=gt&>.exports===mt,yt=_t&&pt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,xt=vt&&vt.isMap,Et=vt&&vt.isRegExp,St=vt&&vt.isSet,kt=vt&&vt.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Rt(e,t,n,i){for(var a=-1,s=null==e?0:e.length;++a<s;){var r=e[a];t(i,r,n(r),e)}return i}function It(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,i=null==e?0:e.length,a=0,s=[];++n<i;){var r=e[n];t(r,n,e)&&(s[a++]=r)}return s}function Lt(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function jt(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Pt(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}function Ut(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function Ft(e,t,n,i){var a=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}function Dt(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Nt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Mt=Gt("length");function zt(e,t,n){var i;return n(e,(function(e,n,a){if(t(e,n,a))return i=n,!1})),i}function Bt(e,t,n,i){for(var a=e.length,s=n+(i?1:-1);i?s--:++s<a;)if(t(e[s],s,e))return s;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,a=e.length;for(;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Vt,n)}function qt(e,t,n,i){for(var a=n-1,s=e.length;++a<s;)if(i(e[a],t))return a;return-1}function Vt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:f}function Gt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,a){return a(e,(function(e,a,s){n=i?(i=!1,e):t(n,e,a,s)})),n}function Kt(e,t){for(var n,a=-1,s=e.length;++a<s;){var r=t(e[a]);r!==i&&(n=n===i?r:n+r)}return n}function Zt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,mn(e)+1).replace(se,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Pt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var an=Ht({"À":"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"}),sn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,s[a++]=n)}return s}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Mt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var _n=function e(t){var n=(t=null==t?ft:_n.defaults(ft.Object(),t,_n.pick(ft,st))).Array,re=t.Date,Ee=t.Error,Se=t.Function,ke=t.Math,Te=t.Object,Re=t.RegExp,Ie=t.String,Ae=t.TypeError,Ce=n.prototype,Oe=Se.prototype,Le=Te.prototype,je=t["__core-js_shared__"],Pe=Oe.toString,Ue=Le.hasOwnProperty,Fe=0,De=function(){var e=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ne=Le.toString,Me=Pe.call(Te),ze=ft._,Be=Re("^"+Pe.call(Ue).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=_t?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ye=$e?$e.allocUnsafe:i,Ge=ln(Te.getPrototypeOf,Te),He=Te.create,We=Le.propertyIsEnumerable,Ke=Ce.splice,Ze=qe?qe.isConcatSpreadable:i,Je=qe?qe.iterator:i,Xe=qe?qe.toStringTag:i,tt=function(){try{var e=ds(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ft.Date.now&&re.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,mt=ke.floor,gt=Te.getOwnPropertySymbols,yt=$e?$e.isBuffer:i,vt=t.isFinite,Mt=Ce.join,Ht=ln(Te.keys,Te),yn=ke.max,vn=ke.min,bn=re.now,wn=t.parseInt,xn=ke.random,En=Ce.reverse,Sn=ds(t,"DataView"),kn=ds(t,"Map"),Tn=ds(t,"Promise"),Rn=ds(t,"Set"),In=ds(t,"WeakMap"),An=ds(Te,"create"),Cn=In&&new In,On={},Ln=Ds(Sn),jn=Ds(kn),Pn=Ds(Tn),Un=Ds(Rn),Fn=Ds(In),Dn=qe?qe.prototype:i,Nn=Dn?Dn.valueOf:i,Mn=Dn?Dn.toString:i;function zn(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Ue.call(e,"__wrapped__"))return Ns(e)}return new qn(e)}var Bn=function(){function e(){}return function(t){if(!Qr(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function $n(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=qr(e),i=!n&&$r(e),a=!n&&!i&&Hr(e),s=!n&&!i&&!a&&co(e),r=n||i||a||s,o=r?Zt(e.length,Ie):[],c=o.length;for(var l in e)!t&&!Ue.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ys(l,c))||o.push(l);return o}function Jn(e){var t=e.length;return t?e[Wi(0,t-1)]:i}function Xn(e,t){return Ps(Aa(e),oi(t,0,e.length))}function Qn(e){return Ps(Aa(e))}function ei(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&si(e,t,n)}function ti(e,t,n){var a=e[t];Ue.call(e,t)&&Mr(a,n)&&(n!==i||t in e)||si(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,a,s){t(i,e,n(e),s)})),i}function ai(e,t){return e&&Ca(t,Oo(t),e)}function si(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var a=-1,s=t.length,r=n(s),o=null==e;++a<s;)r[a]=o?i:To(e,t[a]);return r}function oi(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ci(e,t,n,a,s,r){var o,c=1&t,l=2&t,u=4&t;if(n&&(o=s?n(e,a,s,r):n(e)),o!==i)return o;if(!Qr(e))return e;var d=qr(e);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Aa(e,o)}else{var p=fs(e),h=p==x||p==E;if(Hr(e))return Ea(e,c);if(p==T||p==_||h&&!s){if(o=l||h?{}:gs(e),!c)return l?function(e,t){return Ca(e,hs(e),t)}(e,function(e,t){return e&&Ca(t,Lo(t),e)}(o,e)):function(e,t){return Ca(e,ps(e),t)}(e,ai(o,e))}else{if(!ct[p])return s?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case j:return Sa(e);case v:case b:return new i(+e);case P:return function(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case F:case D:case N:case M:case z:case B:case $:case q:return ka(e,n);case S:return new i;case k:case C:return new i(e);case I:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new i;case O:return a=e,Nn?Te(Nn.call(a)):{}}var a}(e,p,c)}}r||(r=new Kn);var f=r.get(e);if(f)return f;r.set(e,o),so(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,a){o.set(a,ci(i,t,n,a,e,r))}));var m=d?i:(u?l?as:is:l?Lo:Oo)(e);return It(m||e,(function(i,a){m&&(i=e[a=i]),ti(o,a,ci(i,t,n,a,e,r))})),o}function li(e,t,n){var a=n.length;if(null==e)return!a;for(e=Te(e);a--;){var s=n[a],r=t[s],o=e[s];if(o===i&&!(s in e)||!r(o))return!1}return!0}function ui(e,t,n){if("function"!=typeof e)throw new Ae(a);return Cs((function(){e.apply(i,n)}),t)}function di(e,t,n,i){var a=-1,s=Lt,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Pt(t,Xt(n))),i?(s=jt,r=!1):t.length>=200&&(s=en,r=!1,t=new Wn(t));e:for(;++a<o;){var u=e[a],d=null==n?u:n(u);if(u=i||0!==u?u:0,r&&d==d){for(var p=l;p--;)if(t[p]===d)continue e;c.push(u)}else s(t,d,i)||c.push(u)}return c}zn.templateSettings={escape:J,evaluate:X,interpolate:Q,variable:"",imports:{_:zn}},zn.prototype=$n.prototype,zn.prototype.constructor=zn,qn.prototype=Bn($n.prototype),qn.prototype.constructor=qn,Vn.prototype=Bn($n.prototype),Vn.prototype.constructor=Vn,Yn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===s?i:n}return Ue.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:Ue.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===i?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return ni(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,i=ni(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Gn),string:new Yn}},Hn.prototype.delete=function(e){var t=ls(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return ls(this,e).get(e)},Hn.prototype.has=function(e){return ls(this,e).has(e)},Hn.prototype.set=function(e,t){var n=ls(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,s),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!kn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(i)}return n.set(e,t),this.size=n.size,this};var pi=ja(bi),hi=ja(wi,!0);function fi(e,t){var n=!0;return pi(e,(function(e,i,a){return n=!!t(e,i,a)})),n}function mi(e,t,n){for(var a=-1,s=e.length;++a<s;){var r=e[a],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,a){t(e,i,a)&&n.push(e)})),n}function _i(e,t,n,i,a){var s=-1,r=e.length;for(n||(n=_s),a||(a=[]);++s<r;){var o=e[s];t>0&&n(o)?t>1?_i(o,t-1,n,i,a):Ut(a,o):i||(a[a.length]=o)}return a}var yi=Pa(),vi=Pa(!0);function bi(e,t){return e&&yi(e,t,Oo)}function wi(e,t){return e&&vi(e,t,Oo)}function xi(e,t){return Ot(t,(function(t){return Zr(e[t])}))}function Ei(e,t){for(var n=0,a=(t=va(t,e)).length;null!=e&&n<a;)e=e[Fs(t[n++])];return n&&n==a?e:i}function Si(e,t,n){var i=t(e);return qr(e)?i:Ut(i,n(e))}function ki(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in Te(e)?function(e){var t=Ue.call(e,Xe),n=e[Xe];try{e[Xe]=i;var a=!0}catch(e){}var s=Ne.call(e);a&&(t?e[Xe]=n:delete e[Xe]);return s}(e):function(e){return Ne.call(e)}(e)}function Ti(e,t){return e>t}function Ri(e,t){return null!=e&&Ue.call(e,t)}function Ii(e,t){return null!=e&&t in Te(e)}function Ai(e,t,a){for(var s=a?jt:Lt,r=e[0].length,o=e.length,c=o,l=n(o),u=1/0,d=[];c--;){var p=e[c];c&&t&&(p=Pt(p,Xt(t))),u=vn(p.length,u),l[c]=!a&&(t||r>=120&&p.length>=120)?new Wn(c&&p):i}p=e[0];var h=-1,f=l[0];e:for(;++h<r&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=a||0!==m?m:0,!(f?en(f,g):s(d,g,a))){for(c=o;--c;){var _=l[c];if(!(_?en(_,g):s(e[c],g,a)))continue e}f&&f.push(g),d.push(m)}}return d}function Ci(e,t,n){var a=null==(e=Rs(e,t=va(t,e)))?e:e[Fs(Ks(t))];return null==a?i:Tt(a,e,n)}function Oi(e){return eo(e)&&ki(e)==_}function Li(e,t,n,a,s){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,a,s,r){var o=qr(e),c=qr(t),l=o?y:fs(e),u=c?y:fs(t),d=(l=l==_?T:l)==T,p=(u=u==_?T:u)==T,h=l==u;if(h&&Hr(e)){if(!Hr(t))return!1;o=!0,d=!1}if(h&&!d)return r||(r=new Kn),o||co(e)?ts(e,t,n,a,s,r):function(e,t,n,i,a,s,r){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!s(new Ve(e),new Ve(t)));case v:case b:case k:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case I:case C:return e==t+"";case S:var o=cn;case A:var c=1&i;if(o||(o=dn),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var u=ts(o(e),o(t),i,a,s,r);return r.delete(e),u;case O:if(Nn)return Nn.call(e)==Nn.call(t)}return!1}(e,t,l,n,a,s,r);if(!(1&n)){var f=d&&Ue.call(e,"__wrapped__"),m=p&&Ue.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,x=m?t.value():t;return r||(r=new Kn),s(g,x,n,a,r)}}if(!h)return!1;return r||(r=new Kn),function(e,t,n,a,s,r){var o=1&n,c=is(e),l=c.length,u=is(t),d=u.length;if(l!=d&&!o)return!1;var p=l;for(;p--;){var h=c[p];if(!(o?h in t:Ue.call(t,h)))return!1}var f=r.get(e),m=r.get(t);if(f&&m)return f==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var _=o;for(;++p<l;){var y=e[h=c[p]],v=t[h];if(a)var b=o?a(v,y,h,t,e,r):a(y,v,h,e,t,r);if(!(b===i?y===v||s(y,v,n,a,r):b)){g=!1;break}_||(_="constructor"==h)}if(g&&!_){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,a,s,r)}(e,t,n,a,Li,s))}function ji(e,t,n,a){var s=n.length,r=s,o=!a;if(null==e)return!r;for(e=Te(e);s--;){var c=n[s];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<r;){var l=(c=n[s])[0],u=e[l],d=c[1];if(o&&c[2]){if(u===i&&!(l in e))return!1}else{var p=new Kn;if(a)var h=a(u,d,l,e,t,p);if(!(h===i?Li(d,u,3,a,p):h))return!1}}return!0}function Pi(e){return!(!Qr(e)||(t=e,De&&De in t))&&(Zr(e)?Be:_e).test(Ds(e));var t}function Ui(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?Bi(e[0],e[1]):zi(e):pc(e)}function Fi(e){if(!Es(e))return Ht(e);var t=[];for(var n in Te(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Di(e){if(!Qr(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Es(e),n=[];for(var i in e)("constructor"!=i||!t&&Ue.call(e,i))&&n.push(i);return n}function Ni(e,t){return e<t}function Mi(e,t){var i=-1,a=Yr(e)?n(e.length):[];return pi(e,(function(e,n,s){a[++i]=t(e,n,s)})),a}function zi(e){var t=us(e);return 1==t.length&&t[0][2]?ks(t[0][0],t[0][1]):function(n){return n===e||ji(n,e,t)}}function Bi(e,t){return bs(e)&&Ss(t)?ks(Fs(e),t):function(n){var a=To(n,e);return a===i&&a===t?Ro(n,e):Li(t,a,3)}}function $i(e,t,n,a,s){e!==t&&yi(t,(function(r,o){if(s||(s=new Kn),Qr(r))!function(e,t,n,a,s,r,o){var c=Is(e,n),l=Is(t,n),u=o.get(l);if(u)return void ei(e,n,u);var d=r?r(c,l,n+"",e,t,o):i,p=d===i;if(p){var h=qr(l),f=!h&&Hr(l),m=!h&&!f&&co(l);d=l,h||f||m?qr(c)?d=c:Gr(c)?d=Aa(c):f?(p=!1,d=Ea(l,!0)):m?(p=!1,d=ka(l,!0)):d=[]:io(l)||$r(l)?(d=c,$r(c)?d=_o(c):Qr(c)&&!Zr(c)||(d=gs(l))):p=!1}p&&(o.set(l,d),s(d,l,a,r,o),o.delete(l));ei(e,n,d)}(e,t,o,n,$i,a,s);else{var c=a?a(Is(e,o),r,o+"",e,t,s):i;c===i&&(c=r),ei(e,o,c)}}),Lo)}function qi(e,t){var n=e.length;if(n)return ys(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Pt(t,(function(e){return qr(e)?function(t){return Ei(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Pt(t,Xt(cs()));var a=Mi(e,(function(e,n,a){var s=Pt(t,(function(t){return t(e)}));return{criteria:s,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var i=-1,a=e.criteria,s=t.criteria,r=a.length,o=n.length;for(;++i<r;){var c=Ta(a[i],s[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yi(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Ei(e,r);n(o,r)&&Qi(s,va(r,e),o)}return s}function Gi(e,t,n,i){var a=i?qt:$t,s=-1,r=t.length,o=e;for(e===t&&(t=Aa(t)),n&&(o=Pt(e,Xt(n)));++s<r;)for(var c=0,l=t[s],u=n?n(l):l;(c=a(o,u,c,i))>-1;)o!==e&&Ke.call(o,c,1),Ke.call(e,c,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;ys(a)?Ke.call(e,a,1):da(e,a)}}return e}function Wi(e,t){return e+mt(xn()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Os(Ts(e,t,ic),e+"")}function Ji(e){return Jn(zo(e))}function Xi(e,t){var n=zo(e);return Ps(n,oi(t,0,n.length))}function Qi(e,t,n,a){if(!Qr(e))return e;for(var s=-1,r=(t=va(t,e)).length,o=r-1,c=e;null!=c&&++s<r;){var l=Fs(t[s]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=o){var d=c[l];(u=a?a(d,l,c):i)===i&&(u=Qr(d)?d:ys(t[s+1])?[]:{})}ti(c,l,u),c=c[l]}return e}var ea=Cn?function(e,t){return Cn.set(e,t),e}:ic,ta=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function na(e){return Ps(zo(e))}function ia(e,t,i){var a=-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 r=n(s);++a<s;)r[a]=e[a+t];return r}function aa(e,t){var n;return pi(e,(function(e,i,a){return!(n=t(e,i,a))})),!!n}function sa(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var s=i+a>>>1,r=e[s];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=s+1:a=s}return a}return ra(e,t,ic,n)}function ra(e,t,n,a){var s=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),u=t===i;s<r;){var d=mt((s+r)/2),p=n(e[d]),h=p!==i,f=null===p,m=p==p,g=oo(p);if(o)var _=a||m;else _=u?m&&(a||h):c?m&&h&&(a||!f):l?m&&h&&!f&&(a||!g):!f&&!g&&(a?p<=t:p<t);_?s=d+1:r=d}return vn(r,4294967294)}function oa(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;s[a++]=0===r?0:r}}return s}function ca(e){return"number"==typeof e?e:oo(e)?f:+e}function la(e){if("string"==typeof e)return e;if(qr(e))return Pt(e,la)+"";if(oo(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ua(e,t,n){var i=-1,a=Lt,s=e.length,r=!0,o=[],c=o;if(n)r=!1,a=jt;else if(s>=200){var l=t?null:Ka(e);if(l)return dn(l);r=!1,a=en,c=new Wn}else c=t?[]:o;e:for(;++i<s;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,r&&d==d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),o.push(u)}else a(c,d,n)||(c!==o&&c.push(d),o.push(u))}return o}function da(e,t){return null==(e=Rs(e,t=va(t,e)))||delete e[Fs(Ks(t))]}function pa(e,t,n,i){return Qi(e,t,n(Ei(e,t)),i)}function ha(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?ia(e,i?0:s,i?s+1:a):ia(e,i?s+1:0,i?a:s)}function fa(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ma(e,t,i){var a=e.length;if(a<2)return a?ua(e[0]):[];for(var s=-1,r=n(a);++s<a;)for(var o=e[s],c=-1;++c<a;)c!=s&&(r[s]=di(r[s]||o,e[c],t,i));return ua(_i(r,1),t,i)}function ga(e,t,n){for(var a=-1,s=e.length,r=t.length,o={};++a<s;){var c=a<r?t[a]:i;n(o,e[a],c)}return o}function _a(e){return Gr(e)?e:[]}function ya(e){return"function"==typeof e?e:ic}function va(e,t){return qr(e)?e:bs(e,t)?[e]:Us(yo(e))}var ba=Zi;function wa(e,t,n){var a=e.length;return n=n===i?a:n,!t&&n>=a?e:ia(e,t,n)}var xa=it||function(e){return ft.clearTimeout(e)};function Ea(e,t){if(t)return e.slice();var n=e.length,i=Ye?Ye(n):new e.constructor(n);return e.copy(i),i}function Sa(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ka(e,t){var n=t?Sa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ta(e,t){if(e!==t){var n=e!==i,a=null===e,s=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,u=oo(t);if(!c&&!u&&!r&&e>t||r&&o&&l&&!c&&!u||a&&o&&l||!n&&l||!s)return 1;if(!a&&!r&&!u&&e<t||u&&n&&s&&!a&&!r||c&&n&&s||!o&&s||!l)return-1}return 0}function Ra(e,t,i,a){for(var s=-1,r=e.length,o=i.length,c=-1,l=t.length,u=yn(r-o,0),d=n(l+u),p=!a;++c<l;)d[c]=t[c];for(;++s<o;)(p||s<r)&&(d[i[s]]=e[s]);for(;u--;)d[c++]=e[s++];return d}function Ia(e,t,i,a){for(var s=-1,r=e.length,o=-1,c=i.length,l=-1,u=t.length,d=yn(r-c,0),p=n(d+u),h=!a;++s<d;)p[s]=e[s];for(var f=s;++l<u;)p[f+l]=t[l];for(;++o<c;)(h||s<r)&&(p[f+i[o]]=e[s++]);return p}function Aa(e,t){var i=-1,a=e.length;for(t||(t=n(a));++i<a;)t[i]=e[i];return t}function Ca(e,t,n,a){var s=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=a?a(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),s?si(n,c,l):ti(n,c,l)}return n}function Oa(e,t){return function(n,i){var a=qr(n)?Rt:ii,s=t?t():{};return a(n,e,cs(i,2),s)}}function La(e){return Zi((function(t,n){var a=-1,s=n.length,r=s>1?n[s-1]:i,o=s>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(s--,r):i,o&&vs(n[0],n[1],o)&&(r=s<3?i:r,s=1),t=Te(t);++a<s;){var c=n[a];c&&e(t,c,a,r)}return t}))}function ja(e,t){return function(n,i){if(null==n)return n;if(!Yr(n))return e(n,i);for(var a=n.length,s=t?a:-1,r=Te(n);(t?s--:++s<a)&&!1!==i(r[s],s,r););return n}}function Pa(e){return function(t,n,i){for(var a=-1,s=Te(t),r=i(t),o=r.length;o--;){var c=r[e?o:++a];if(!1===n(s[c],c,s))break}return t}}function Ua(e){return function(t){var n=on(t=yo(t))?fn(t):i,a=n?n[0]:t.charAt(0),s=n?wa(n,1).join(""):t.slice(1);return a[e]()+s}}function Fa(e){return function(t){return Ft(Jo(qo(t).replace(Qe,"")),e,"")}}function Da(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 n=Bn(e.prototype),i=e.apply(n,t);return Qr(i)?i:n}}function Na(e){return function(t,n,a){var s=Te(t);if(!Yr(t)){var r=cs(n,3);t=Oo(t),n=function(e){return r(s[e],e,s)}}var o=e(t,n,a);return o>-1?s[r?t[o]:o]:i}}function Ma(e){return ns((function(t){var n=t.length,s=n,r=qn.prototype.thru;for(e&&t.reverse();s--;){var o=t[s];if("function"!=typeof o)throw new Ae(a);if(r&&!c&&"wrapper"==rs(o))var c=new qn([],!0)}for(s=c?s:n;++s<n;){var l=rs(o=t[s]),u="wrapper"==l?ss(o):i;c=u&&ws(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[rs(u[0])].apply(c,u[3]):1==o.length&&ws(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var a=0,s=n?t[a].apply(this,e):i;++a<n;)s=t[a].call(this,s);return s}}))}function za(e,t,a,s,r,o,c,l,d,p){var h=t&u,f=1&t,m=2&t,g=24&t,_=512&t,y=m?i:Da(e);return function u(){for(var v=arguments.length,b=n(v),w=v;w--;)b[w]=arguments[w];if(g)var x=os(u),E=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,x);if(s&&(b=Ra(b,s,r,g)),o&&(b=Ia(b,o,c,g)),v-=E,g&&v<p){var S=un(b,x);return Ha(e,t,za,u.placeholder,a,b,S,l,d,p-v)}var k=f?a:this,T=m?k[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,a=vn(t.length,n),s=Aa(e);for(;a--;){var r=t[a];e[a]=ys(r,n)?s[r]:i}return e}(b,l):_&&v>1&&b.reverse(),h&&d<v&&(b.length=d),this&&this!==ft&&this instanceof u&&(T=y||Da(T)),T.apply(k,b)}}function Ba(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,a,s){t(i,n(e),a,s)})),i}(n,e,t(i),{})}}function $a(e,t){return function(n,a){var s;if(n===i&&a===i)return t;if(n!==i&&(s=n),a!==i){if(s===i)return a;"string"==typeof n||"string"==typeof a?(n=la(n),a=la(a)):(n=ca(n),a=ca(a)),s=e(n,a)}return s}}function qa(e){return ns((function(t){return t=Pt(t,Xt(cs())),Zi((function(n){var i=this;return e(t,(function(e){return Tt(e,i,n)}))}))}))}function Va(e,t){var n=(t=t===i?" ":la(t)).length;if(n<2)return n?Ki(t,e):t;var a=Ki(t,ht(e/hn(t)));return on(t)?wa(fn(a),0,e).join(""):a.slice(0,e)}function Ya(e){return function(t,a,s){return s&&"number"!=typeof s&&vs(t,a,s)&&(a=s=i),t=ho(t),a===i?(a=t,t=0):a=ho(a),function(e,t,i,a){for(var s=-1,r=yn(ht((t-e)/(i||1)),0),o=n(r);r--;)o[a?r:++s]=e,e+=i;return o}(t,a,s=s===i?t<a?1:-1:ho(s),e)}}function Ga(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Ha(e,t,n,a,s,r,o,u,d,p){var h=8&t;t|=h?c:l,4&(t&=~(h?l:c))||(t&=-4);var f=[e,t,s,h?r:i,h?o:i,h?i:r,h?i:o,u,d,p],m=n.apply(i,f);return ws(e)&&As(m,f),m.placeholder=a,Ls(m,e,t)}function Wa(e){var t=ke[e];return function(e,n){if(e=go(e),(n=null==n?0:vn(fo(n),292))&&vt(e)){var i=(yo(e)+"e").split("e");return+((i=(yo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ka=Rn&&1/dn(new Rn([,-0]))[1]==p?function(e){return new Rn(e)}:cc;function Za(e){return function(t){var n=fs(t);return n==S?cn(t):n==A?pn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ja(e,t,s,p,h,f,m,g){var _=2&t;if(!_&&"function"!=typeof e)throw new Ae(a);var y=p?p.length:0;if(y||(t&=-97,p=h=i),m=m===i?m:yn(fo(m),0),g=g===i?g:fo(g),y-=h?h.length:0,t&l){var v=p,b=h;p=h=i}var w=_?i:ss(e),x=[e,t,s,p,h,v,b,f,m,g];if(w&&function(e,t){var n=e[1],i=t[1],a=n|i,s=a<131,o=i==u&&8==n||i==u&&n==d&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&i&&(e[2]=t[2],a|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ra(l,c,t[4]):c,e[4]=l?un(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ia(l,c,t[6]):c,e[6]=l?un(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(x,w),e=x[0],t=x[1],s=x[2],p=x[3],h=x[4],!(g=x[9]=x[9]===i?_?0:e.length:yn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==o?function(e,t,a){var s=Da(e);return function r(){for(var o=arguments.length,c=n(o),l=o,u=os(r);l--;)c[l]=arguments[l];var d=o<3&&c[0]!==u&&c[o-1]!==u?[]:un(c,u);return(o-=d.length)<a?Ha(e,t,za,r.placeholder,i,c,d,i,i,a-o):Tt(this&&this!==ft&&this instanceof r?s:e,this,c)}}(e,t,g):t!=c&&33!=t||h.length?za.apply(i,x):function(e,t,i,a){var s=1&t,r=Da(e);return function t(){for(var o=-1,c=arguments.length,l=-1,u=a.length,d=n(u+c),p=this&&this!==ft&&this instanceof t?r:e;++l<u;)d[l]=a[l];for(;c--;)d[l++]=arguments[++o];return Tt(p,s?i:this,d)}}(e,t,s,p);else var E=function(e,t,n){var i=1&t,a=Da(e);return function t(){return(this&&this!==ft&&this instanceof t?a:e).apply(i?n:this,arguments)}}(e,t,s);return Ls((w?ea:As)(E,x),e,t)}function Xa(e,t,n,a){return e===i||Mr(e,Le[n])&&!Ue.call(a,n)?t:e}function Qa(e,t,n,a,s,r){return Qr(e)&&Qr(t)&&(r.set(t,e),$i(e,t,i,Qa,r),r.delete(t)),e}function es(e){return io(e)?i:e}function ts(e,t,n,a,s,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Wn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(a)var _=o?a(g,m,p,t,e,r):a(m,g,p,e,t,r);if(_!==i){if(_)continue;h=!1;break}if(f){if(!Nt(t,(function(e,t){if(!en(f,t)&&(m===e||s(m,e,n,a,r)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!s(m,g,n,a,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function ns(e){return Os(Ts(e,i,Vs),e+"")}function is(e){return Si(e,Oo,ps)}function as(e){return Si(e,Lo,hs)}var ss=Cn?function(e){return Cn.get(e)}:cc;function rs(e){for(var t=e.name+"",n=On[t],i=Ue.call(On,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}function os(e){return(Ue.call(zn,"placeholder")?zn:e).placeholder}function cs(){var e=zn.iteratee||ac;return e=e===ac?Ui:e,arguments.length?e(arguments[0],arguments[1]):e}function ls(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function us(e){for(var t=Oo(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,Ss(a)]}return t}function ds(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pi(n)?n:i}var ps=gt?function(e){return null==e?[]:(e=Te(e),Ot(gt(e),(function(t){return We.call(e,t)})))}:mc,hs=gt?function(e){for(var t=[];e;)Ut(t,ps(e)),e=Ge(e);return t}:mc,fs=ki;function ms(e,t,n){for(var i=-1,a=(t=va(t,e)).length,s=!1;++i<a;){var r=Fs(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&Xr(a)&&ys(r,a)&&(qr(e)||$r(e))}function gs(e){return"function"!=typeof e.constructor||Es(e)?{}:Bn(Ge(e))}function _s(e){return qr(e)||$r(e)||!!(Ze&&e&&e[Ze])}function ys(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vs(e,t,n){if(!Qr(n))return!1;var i=typeof t;return!!("number"==i?Yr(n)&&ys(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function bs(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Te(t))}function ws(e){var t=rs(e),n=zn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=ss(n);return!!i&&e===i[0]}(Sn&&fs(new Sn(new ArrayBuffer(1)))!=P||kn&&fs(new kn)!=S||Tn&&fs(Tn.resolve())!=R||Rn&&fs(new Rn)!=A||In&&fs(new In)!=L)&&(fs=function(e){var t=ki(e),n=t==T?e.constructor:i,a=n?Ds(n):"";if(a)switch(a){case Ln:return P;case jn:return S;case Pn:return R;case Un:return A;case Fn:return L}return t});var xs=je?Zr:gc;function Es(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ss(e){return e==e&&!Qr(e)}function ks(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Te(n)))}}function Ts(e,t,a){return t=yn(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,r=yn(i.length-t,0),o=n(r);++s<r;)o[s]=i[t+s];s=-1;for(var c=n(t+1);++s<t;)c[s]=i[s];return c[t]=a(o),Tt(e,this,c)}}function Rs(e,t){return t.length<2?e:Ei(e,ia(t,0,-1))}function Is(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var As=js(ea),Cs=pt||function(e,t){return ft.setTimeout(e,t)},Os=js(ta);function Ls(e,t,n){var i=t+"";return Os(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return It(g,(function(n){var i="_."+n[0];t&n[1]&&!Lt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function js(e){var t=0,n=0;return function(){var a=bn(),s=16-(a-n);if(n=a,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ps(e,t){var n=-1,a=e.length,s=a-1;for(t=t===i?a:t;++n<t;){var r=Wi(n,s),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Us=function(e){var t=jr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,i,a){t.push(i?a.replace(pe,"$1"):n||e)})),t}));function Fs(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ds(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ns(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Aa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ms=Zi((function(e,t){return Gr(e)?di(e,_i(t,1,Gr,!0)):[]})),zs=Zi((function(e,t){var n=Ks(t);return Gr(n)&&(n=i),Gr(e)?di(e,_i(t,1,Gr,!0),cs(n,2)):[]})),Bs=Zi((function(e,t){var n=Ks(t);return Gr(n)&&(n=i),Gr(e)?di(e,_i(t,1,Gr,!0),i,n):[]}));function $s(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:fo(n);return a<0&&(a=yn(i+a,0)),Bt(e,cs(t,3),a)}function qs(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a-1;return n!==i&&(s=fo(n),s=n<0?yn(a+s,0):vn(s,a-1)),Bt(e,cs(t,3),s,!0)}function Vs(e){return(null==e?0:e.length)?_i(e,1):[]}function Ys(e){return e&&e.length?e[0]:i}var Gs=Zi((function(e){var t=Pt(e,_a);return t.length&&t[0]===e[0]?Ai(t):[]})),Hs=Zi((function(e){var t=Ks(e),n=Pt(e,_a);return t===Ks(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ai(n,cs(t,2)):[]})),Ws=Zi((function(e){var t=Ks(e),n=Pt(e,_a);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ai(n,i,t):[]}));function Ks(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zs=Zi(Js);function Js(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var Xs=ns((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Hi(e,Pt(t,(function(e){return ys(e,n)?+e:e})).sort(Ta)),i}));function Qs(e){return null==e?e:En.call(e)}var er=Zi((function(e){return ua(_i(e,1,Gr,!0))})),tr=Zi((function(e){var t=Ks(e);return Gr(t)&&(t=i),ua(_i(e,1,Gr,!0),cs(t,2))})),nr=Zi((function(e){var t=Ks(e);return t="function"==typeof t?t:i,ua(_i(e,1,Gr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Gr(e))return t=yn(e.length,t),!0})),Zt(t,(function(t){return Pt(e,Gt(t))}))}function ar(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Pt(n,(function(e){return Tt(t,i,e)}))}var sr=Zi((function(e,t){return Gr(e)?di(e,t):[]})),rr=Zi((function(e){return ma(Ot(e,Gr))})),or=Zi((function(e){var t=Ks(e);return Gr(t)&&(t=i),ma(Ot(e,Gr),cs(t,2))})),cr=Zi((function(e){var t=Ks(e);return t="function"==typeof t?t:i,ma(Ot(e,Gr),i,t)})),lr=Zi(ir);var ur=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ar(e,n)}));function dr(e){var t=zn(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var hr=ns((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,s=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&ys(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[s],thisArg:i}),new qn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)}));var fr=Oa((function(e,t,n){Ue.call(e,n)?++e[n]:si(e,n,1)}));var mr=Na($s),gr=Na(qs);function _r(e,t){return(qr(e)?It:pi)(e,cs(t,3))}function yr(e,t){return(qr(e)?At:hi)(e,cs(t,3))}var vr=Oa((function(e,t,n){Ue.call(e,n)?e[n].push(t):si(e,n,[t])}));var br=Zi((function(e,t,i){var a=-1,s="function"==typeof t,r=Yr(e)?n(e.length):[];return pi(e,(function(e){r[++a]=s?Tt(t,e,i):Ci(e,t,i)})),r})),wr=Oa((function(e,t,n){si(e,n,t)}));function xr(e,t){return(qr(e)?Pt:Mi)(e,cs(t,3))}var Er=Oa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Sr=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vs(e,t[0],t[1])?t=[]:n>2&&vs(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,_i(t,1),[])})),kr=lt||function(){return ft.Date.now()};function Tr(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ja(e,u,i,i,i,i,t)}function Rr(e,t){var n;if("function"!=typeof t)throw new Ae(a);return e=fo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ir=Zi((function(e,t,n){var i=1;if(n.length){var a=un(n,os(Ir));i|=c}return Ja(e,i,t,n,a)})),Ar=Zi((function(e,t,n){var i=3;if(n.length){var a=un(n,os(Ar));i|=c}return Ja(t,i,e,n,a)}));function Cr(e,t,n){var s,r,o,c,l,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ae(a);function m(t){var n=s,a=r;return s=r=i,d=t,c=e.apply(a,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||h&&e-d>=o}function _(){var e=kr();if(g(e))return y(e);l=Cs(_,function(e){var n=t-(e-u);return h?vn(n,o-(e-d)):n}(e))}function y(e){return l=i,f&&s?m(e):(s=r=i,c)}function v(){var e=kr(),n=g(e);if(s=arguments,r=this,u=e,n){if(l===i)return function(e){return d=e,l=Cs(_,t),p?m(e):c}(u);if(h)return xa(l),l=Cs(_,t),m(u)}return l===i&&(l=Cs(_,t)),c}return t=go(t)||0,Qr(n)&&(p=!!n.leading,o=(h="maxWait"in n)?yn(go(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),v.cancel=function(){l!==i&&xa(l),d=0,s=u=r=l=i},v.flush=function(){return l===i?c:y(kr())},v}var Or=Zi((function(e,t){return ui(e,1,t)})),Lr=Zi((function(e,t,n){return ui(e,go(t)||0,n)}));function jr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(a);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var r=e.apply(this,i);return n.cache=s.set(a,r)||s,r};return n.cache=new(jr.Cache||Hn),n}function Pr(e){if("function"!=typeof e)throw new Ae(a);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)}}jr.Cache=Hn;var Ur=ba((function(e,t){var n=(t=1==t.length&&qr(t[0])?Pt(t[0],Xt(cs())):Pt(_i(t,1),Xt(cs()))).length;return Zi((function(i){for(var a=-1,s=vn(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return Tt(e,this,i)}))})),Fr=Zi((function(e,t){var n=un(t,os(Fr));return Ja(e,c,i,t,n)})),Dr=Zi((function(e,t){var n=un(t,os(Dr));return Ja(e,l,i,t,n)})),Nr=ns((function(e,t){return Ja(e,d,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var zr=Ga(Ti),Br=Ga((function(e,t){return e>=t})),$r=Oi(function(){return arguments}())?Oi:function(e){return eo(e)&&Ue.call(e,"callee")&&!We.call(e,"callee")},qr=n.isArray,Vr=bt?Xt(bt):function(e){return eo(e)&&ki(e)==j};function Yr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Gr(e){return eo(e)&&Yr(e)}var Hr=yt||gc,Wr=wt?Xt(wt):function(e){return eo(e)&&ki(e)==b};function Kr(e){if(!eo(e))return!1;var t=ki(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Zr(e){if(!Qr(e))return!1;var t=ki(e);return t==x||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jr(e){return"number"==typeof e&&e==fo(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Qr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=xt?Xt(xt):function(e){return eo(e)&&fs(e)==S};function no(e){return"number"==typeof e||eo(e)&&ki(e)==k}function io(e){if(!eo(e)||ki(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Me}var ao=Et?Xt(Et):function(e){return eo(e)&&ki(e)==I};var so=St?Xt(St):function(e){return eo(e)&&fs(e)==A};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&ki(e)==C}function oo(e){return"symbol"==typeof e||eo(e)&&ki(e)==O}var co=kt?Xt(kt):function(e){return eo(e)&&Xr(e.length)&&!!ot[ki(e)]};var lo=Ga(Ni),uo=Ga((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Yr(e))return ro(e)?fn(e):Aa(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=fs(e);return(t==S?cn:t==A?dn:zo)(e)}function ho(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=ho(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(fo(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return f;if(Qr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||ye.test(e)?dt(e.slice(2),n?2:8):me.test(e)?f:+e}function _o(e){return Ca(e,Lo(e))}function yo(e){return null==e?"":la(e)}var vo=La((function(e,t){if(Es(t)||Yr(t))Ca(t,Oo(t),e);else for(var n in t)Ue.call(t,n)&&ti(e,n,t[n])})),bo=La((function(e,t){Ca(t,Lo(t),e)})),wo=La((function(e,t,n,i){Ca(t,Lo(t),e,i)})),xo=La((function(e,t,n,i){Ca(t,Oo(t),e,i)})),Eo=ns(ri);var So=Zi((function(e,t){e=Te(e);var n=-1,a=t.length,s=a>2?t[2]:i;for(s&&vs(t[0],t[1],s)&&(a=1);++n<a;)for(var r=t[n],o=Lo(r),c=-1,l=o.length;++c<l;){var u=o[c],d=e[u];(d===i||Mr(d,Le[u])&&!Ue.call(e,u))&&(e[u]=r[u])}return e})),ko=Zi((function(e){return e.push(i,Qa),Tt(Po,i,e)}));function To(e,t,n){var a=null==e?i:Ei(e,t);return a===i?n:a}function Ro(e,t){return null!=e&&ms(e,t,Ii)}var Io=Ba((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),ec(ic)),Ao=Ba((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),cs),Co=Zi(Ci);function Oo(e){return Yr(e)?Zn(e):Fi(e)}function Lo(e){return Yr(e)?Zn(e,!0):Di(e)}var jo=La((function(e,t,n){$i(e,t,n)})),Po=La((function(e,t,n,i){$i(e,t,n,i)})),Uo=ns((function(e,t){var n={};if(null==e)return n;var i=!1;t=Pt(t,(function(t){return t=va(t,e),i||(i=t.length>1),t})),Ca(e,as(e),n),i&&(n=ci(n,7,es));for(var a=t.length;a--;)da(n,t[a]);return n}));var Fo=ns((function(e,t){return null==e?{}:function(e,t){return Yi(e,t,(function(t,n){return Ro(e,n)}))}(e,t)}));function Do(e,t){if(null==e)return{};var n=Pt(as(e),(function(e){return[e]}));return t=cs(t),Yi(e,n,(function(e,n){return t(e,n[0])}))}var No=Za(Oo),Mo=Za(Lo);function zo(e){return null==e?[]:Qt(e,Oo(e))}var Bo=Fa((function(e,t,n){return t=t.toLowerCase(),e+(n?$o(t):t)}));function $o(e){return Zo(yo(e).toLowerCase())}function qo(e){return(e=yo(e))&&e.replace(be,an).replace(et,"")}var Vo=Fa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Yo=Fa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Go=Ua("toLowerCase");var Ho=Fa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Wo=Fa((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Ko=Fa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Ua("toUpperCase");function Jo(e,t,n){return e=yo(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return Tt(e,i,t)}catch(e){return Kr(e)?e:new Ee(e)}})),Qo=ns((function(e,t){return It(t,(function(t){t=Fs(t),si(e,t,Ir(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ma(),nc=Ma(!0);function ic(e){return e}function ac(e){return Ui("function"==typeof e?e:ci(e,1))}var sc=Zi((function(e,t){return function(n){return Ci(n,e,t)}})),rc=Zi((function(e,t){return function(n){return Ci(e,n,t)}}));function oc(e,t,n){var i=Oo(t),a=xi(t,i);null!=n||Qr(t)&&(a.length||!i.length)||(n=t,t=e,e=this,a=xi(t,Oo(t)));var s=!(Qr(n)&&"chain"in n&&!n.chain),r=Zr(e);return It(a,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=Aa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function cc(){}var lc=qa(Pt),uc=qa(Ct),dc=qa(Nt);function pc(e){return bs(e)?Gt(Fs(e)):function(e){return function(t){return Ei(t,e)}}(e)}var hc=Ya(),fc=Ya(!0);function mc(){return[]}function gc(){return!1}var _c=$a((function(e,t){return e+t}),0),yc=Wa("ceil"),vc=$a((function(e,t){return e/t}),1),bc=Wa("floor");var wc,xc=$a((function(e,t){return e*t}),1),Ec=Wa("round"),Sc=$a((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ae(a);return e=fo(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Tr,zn.assign=vo,zn.assignIn=bo,zn.assignInWith=wo,zn.assignWith=xo,zn.at=Eo,zn.before=Rr,zn.bind=Ir,zn.bindAll=Qo,zn.bindKey=Ar,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},zn.chain=dr,zn.chunk=function(e,t,a){t=(a?vs(e,t,a):t===i)?1:yn(fo(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var r=0,o=0,c=n(ht(s/t));r<s;)c[o++]=ia(e,r,r+=t);return c},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Ut(qr(i)?Aa(i):[i],_i(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=cs();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Ae(a);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var a=e[i];if(Tt(a[0],this,n))return Tt(a[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Oo(e);return function(n){return li(n,e,t)}}(ci(e,1))},zn.constant=ec,zn.countBy=fr,zn.create=function(e,t){var n=Bn(e);return null==t?n:ai(n,t)},zn.curry=function e(t,n,a){var s=Ja(t,8,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},zn.curryRight=function e(t,n,a){var s=Ja(t,o,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},zn.debounce=Cr,zn.defaults=So,zn.defaultsDeep=ko,zn.defer=Or,zn.delay=Lr,zn.difference=Ms,zn.differenceBy=zs,zn.differenceWith=Bs,zn.drop=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,(t=n||t===i?1:fo(t))<0?0:t,a):[]},zn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,0,(t=a-(t=n||t===i?1:fo(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!0):[]},zn.fill=function(e,t,n,a){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&vs(e,t,n)&&(n=0,a=s),function(e,t,n,a){var s=e.length;for((n=fo(n))<0&&(n=-n>s?0:s+n),(a=a===i||a>s?s:fo(a))<0&&(a+=s),a=n>a?0:mo(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},zn.filter=function(e,t){return(qr(e)?Ot:gi)(e,cs(t,3))},zn.flatMap=function(e,t){return _i(xr(e,t),1)},zn.flatMapDeep=function(e,t){return _i(xr(e,t),p)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:fo(n),_i(xr(e,t),n)},zn.flatten=Vs,zn.flattenDeep=function(e){return(null==e?0:e.length)?_i(e,p):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?_i(e,t=t===i?1:fo(t)):[]},zn.flip=function(e){return Ja(e,512)},zn.flow=tc,zn.flowRight=nc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i},zn.functions=function(e){return null==e?[]:xi(e,Oo(e))},zn.functionsIn=function(e){return null==e?[]:xi(e,Lo(e))},zn.groupBy=vr,zn.initial=function(e){return(null==e?0:e.length)?ia(e,0,-1):[]},zn.intersection=Gs,zn.intersectionBy=Hs,zn.intersectionWith=Ws,zn.invert=Io,zn.invertBy=Ao,zn.invokeMap=br,zn.iteratee=ac,zn.keyBy=wr,zn.keys=Oo,zn.keysIn=Lo,zn.map=xr,zn.mapKeys=function(e,t){var n={};return t=cs(t,3),bi(e,(function(e,i,a){si(n,t(e,i,a),e)})),n},zn.mapValues=function(e,t){var n={};return t=cs(t,3),bi(e,(function(e,i,a){si(n,i,t(e,i,a))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return Bi(e,ci(t,1))},zn.memoize=jr,zn.merge=jo,zn.mergeWith=Po,zn.method=sc,zn.methodOf=rc,zn.mixin=oc,zn.negate=Pr,zn.nthArg=function(e){return e=fo(e),Zi((function(t){return qi(t,e)}))},zn.omit=Uo,zn.omitBy=function(e,t){return Do(e,Pr(cs(t)))},zn.once=function(e){return Rr(2,e)},zn.orderBy=function(e,t,n,a){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=a?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},zn.over=lc,zn.overArgs=Ur,zn.overEvery=uc,zn.overSome=dc,zn.partial=Fr,zn.partialRight=Dr,zn.partition=Er,zn.pick=Fo,zn.pickBy=Do,zn.property=pc,zn.propertyOf=function(e){return function(t){return null==e?i:Ei(e,t)}},zn.pull=Zs,zn.pullAll=Js,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,cs(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,i,n):e},zn.pullAt=Xs,zn.range=hc,zn.rangeRight=fc,zn.rearg=Nr,zn.reject=function(e,t){return(qr(e)?Ot:gi)(e,Pr(cs(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],s=e.length;for(t=cs(t,3);++i<s;){var r=e[i];t(r,i,e)&&(n.push(r),a.push(i))}return Hi(e,a),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ae(a);return Zi(e,t=t===i?t:fo(t))},zn.reverse=Qs,zn.sampleSize=function(e,t,n){return t=(n?vs(e,t,n):t===i)?1:fo(t),(qr(e)?Xn:Xi)(e,t)},zn.set=function(e,t,n){return null==e?e:Qi(e,t,n)},zn.setWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:Qi(e,t,n,a)},zn.shuffle=function(e){return(qr(e)?Qn:na)(e)},zn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&vs(e,t,n)?(t=0,n=a):(t=null==t?0:fo(t),n=n===i?a:fo(n)),ia(e,t,n)):[]},zn.sortBy=Sr,zn.sortedUniq=function(e){return e&&e.length?oa(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?oa(e,cs(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&vs(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!ao(t))&&!(t=la(t))&&on(e)?wa(fn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ae(a);return t=null==t?0:yn(fo(t),0),Zi((function(n){var i=n[t],a=wa(n,0,t);return i&&Ut(a,i),Tt(e,this,a)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ia(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ia(e,0,(t=n||t===i?1:fo(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?ia(e,(t=a-(t=n||t===i?1:fo(t)))<0?0:t,a):[]},zn.takeRightWhile=function(e,t){return e&&e.length?ha(e,cs(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?ha(e,cs(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new Ae(a);return Qr(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),Cr(e,t,{leading:i,maxWait:t,trailing:s})},zn.thru=pr,zn.toArray=po,zn.toPairs=No,zn.toPairsIn=Mo,zn.toPath=function(e){return qr(e)?Pt(e,Fs):oo(e)?[e]:Aa(Us(yo(e)))},zn.toPlainObject=_o,zn.transform=function(e,t,n){var i=qr(e),a=i||Hr(e)||co(e);if(t=cs(t,4),null==n){var s=e&&e.constructor;n=a?i?new s:[]:Qr(e)&&Zr(s)?Bn(Ge(e)):{}}return(a?It:bi)(e,(function(e,i,a){return t(n,e,i,a)})),n},zn.unary=function(e){return Tr(e,1)},zn.union=er,zn.unionBy=tr,zn.unionWith=nr,zn.uniq=function(e){return e&&e.length?ua(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ua(e,cs(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ua(e,i,t):[]},zn.unset=function(e,t){return null==e||da(e,t)},zn.unzip=ir,zn.unzipWith=ar,zn.update=function(e,t,n){return null==e?e:pa(e,t,ya(n))},zn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:pa(e,t,ya(n),a)},zn.values=zo,zn.valuesIn=function(e){return null==e?[]:Qt(e,Lo(e))},zn.without=sr,zn.words=Jo,zn.wrap=function(e,t){return Fr(ya(t),e)},zn.xor=rr,zn.xorBy=or,zn.xorWith=cr,zn.zip=lr,zn.zipObject=function(e,t){return ga(e||[],t||[],ti)},zn.zipObjectDeep=function(e,t){return ga(e||[],t||[],Qi)},zn.zipWith=ur,zn.entries=No,zn.entriesIn=Mo,zn.extend=bo,zn.extendWith=wo,oc(zn,zn),zn.add=_c,zn.attempt=Xo,zn.camelCase=Bo,zn.capitalize=$o,zn.ceil=yc,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||li(e,t,Oo(t))},zn.deburr=qo,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=vc,zn.endsWith=function(e,t,n){e=yo(e),t=la(t);var a=e.length,s=n=n===i?a:oi(fo(n),0,a);return(n-=t.length)>=0&&e.slice(n,s)==t},zn.eq=Mr,zn.escape=function(e){return(e=yo(e))&&Z.test(e)?e.replace(W,sn):e},zn.escapeRegExp=function(e){return(e=yo(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},zn.every=function(e,t,n){var a=qr(e)?Ct:fi;return n&&vs(e,t,n)&&(t=i),a(e,cs(t,3))},zn.find=mr,zn.findIndex=$s,zn.findKey=function(e,t){return zt(e,cs(t,3),bi)},zn.findLast=gr,zn.findLastIndex=qs,zn.findLastKey=function(e,t){return zt(e,cs(t,3),wi)},zn.floor=bc,zn.forEach=_r,zn.forEachRight=yr,zn.forIn=function(e,t){return null==e?e:yi(e,cs(t,3),Lo)},zn.forInRight=function(e,t){return null==e?e:vi(e,cs(t,3),Lo)},zn.forOwn=function(e,t){return e&&bi(e,cs(t,3))},zn.forOwnRight=function(e,t){return e&&wi(e,cs(t,3))},zn.get=To,zn.gt=zr,zn.gte=Br,zn.has=function(e,t){return null!=e&&ms(e,t,Ri)},zn.hasIn=Ro,zn.head=Ys,zn.identity=ic,zn.includes=function(e,t,n,i){e=Yr(e)?e:zo(e),n=n&&!i?fo(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),ro(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&$t(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:fo(n);return a<0&&(a=yn(i+a,0)),$t(e,t,a)},zn.inRange=function(e,t,n){return t=ho(t),n===i?(n=t,t=0):n=ho(n),function(e,t,n){return e>=vn(t,n)&&e<yn(t,n)}(e=go(e),t,n)},zn.invoke=Co,zn.isArguments=$r,zn.isArray=qr,zn.isArrayBuffer=Vr,zn.isArrayLike=Yr,zn.isArrayLikeObject=Gr,zn.isBoolean=function(e){return!0===e||!1===e||eo(e)&&ki(e)==v},zn.isBuffer=Hr,zn.isDate=Wr,zn.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Yr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Hr(e)||co(e)||$r(e)))return!e.length;var t=fs(e);if(t==S||t==A)return!e.size;if(Es(e))return!Fi(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Li(e,t)},zn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:i)?n(e,t):i;return a===i?Li(e,t,i,n):!!a},zn.isError=Kr,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Zr,zn.isInteger=Jr,zn.isLength=Xr,zn.isMap=to,zn.isMatch=function(e,t){return e===t||ji(e,t,us(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,ji(e,t,us(t),n)},zn.isNaN=function(e){return no(e)&&e!=+e},zn.isNative=function(e){if(xs(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pi(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=no,zn.isObject=Qr,zn.isObjectLike=eo,zn.isPlainObject=io,zn.isRegExp=ao,zn.isSafeInteger=function(e){return Jr(e)&&e>=-9007199254740991&&e<=h},zn.isSet=so,zn.isString=ro,zn.isSymbol=oo,zn.isTypedArray=co,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return eo(e)&&fs(e)==L},zn.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==ki(e)},zn.join=function(e,t){return null==e?"":Mt.call(e,t)},zn.kebabCase=Vo,zn.last=Ks,zn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a;return n!==i&&(s=(s=fo(n))<0?yn(a+s,0):vn(s,a-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Bt(e,Vt,s,!0)},zn.lowerCase=Yo,zn.lowerFirst=Go,zn.lt=lo,zn.lte=uo,zn.max=function(e){return e&&e.length?mi(e,ic,Ti):i},zn.maxBy=function(e,t){return e&&e.length?mi(e,cs(t,2),Ti):i},zn.mean=function(e){return Yt(e,ic)},zn.meanBy=function(e,t){return Yt(e,cs(t,2))},zn.min=function(e){return e&&e.length?mi(e,ic,Ni):i},zn.minBy=function(e,t){return e&&e.length?mi(e,cs(t,2),Ni):i},zn.stubArray=mc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=xc,zn.nth=function(e,t){return e&&e.length?qi(e,fo(t)):i},zn.noConflict=function(){return ft._===this&&(ft._=ze),this},zn.noop=cc,zn.now=kr,zn.pad=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Va(mt(a),n)+e+Va(ht(a),n)},zn.padEnd=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?e+Va(t-i,n):e},zn.padStart=function(e,t,n){e=yo(e);var i=(t=fo(t))?hn(e):0;return t&&i<t?Va(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(yo(e).replace(se,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vs(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ho(e),t===i?(t=e,e=0):t=ho(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var s=xn();return vn(e+s*(t-e+ut("1e-"+((s+"").length-1))),t)}return Wi(e,t)},zn.reduce=function(e,t,n){var i=qr(e)?Ft:Wt,a=arguments.length<3;return i(e,cs(t,4),n,a,pi)},zn.reduceRight=function(e,t,n){var i=qr(e)?Dt:Wt,a=arguments.length<3;return i(e,cs(t,4),n,a,hi)},zn.repeat=function(e,t,n){return t=(n?vs(e,t,n):t===i)?1:fo(t),Ki(yo(e),t)},zn.replace=function(){var e=arguments,t=yo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var a=-1,s=(t=va(t,e)).length;for(s||(s=1,e=i);++a<s;){var r=null==e?i:e[Fs(t[a])];r===i&&(a=s,r=n),e=Zr(r)?r.call(e):r}return e},zn.round=Ec,zn.runInContext=e,zn.sample=function(e){return(qr(e)?Jn:Ji)(e)},zn.size=function(e){if(null==e)return 0;if(Yr(e))return ro(e)?hn(e):e.length;var t=fs(e);return t==S||t==A?e.size:Fi(e).length},zn.snakeCase=Ho,zn.some=function(e,t,n){var a=qr(e)?Nt:aa;return n&&vs(e,t,n)&&(t=i),a(e,cs(t,3))},zn.sortedIndex=function(e,t){return sa(e,t)},zn.sortedIndexBy=function(e,t,n){return ra(e,t,cs(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=sa(e,t);if(i<n&&Mr(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return sa(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ra(e,t,cs(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=sa(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},zn.startCase=Wo,zn.startsWith=function(e,t,n){return e=yo(e),n=null==n?0:oi(fo(n),0,e.length),t=la(t),e.slice(n,n+t.length)==t},zn.subtract=Sc,zn.sum=function(e){return e&&e.length?Kt(e,ic):0},zn.sumBy=function(e,t){return e&&e.length?Kt(e,cs(t,2)):0},zn.template=function(e,t,n){var a=zn.templateSettings;n&&vs(e,t,n)&&(t=i),e=yo(e),t=wo({},t,a,Xa);var s,r,o=wo({},t.imports,a.imports,Xa),c=Oo(o),l=Qt(o,c),u=0,d=t.interpolate||we,p="__p += '",h=Re((t.escape||we).source+"|"+d.source+"|"+(d===Q?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,(function(t,n,i,a,o,c){return i||(i=a),p+=e.slice(u,c).replace(xe,rn),n&&(s=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),p+="';\n";var m=Ue.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(Y,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xo((function(){return Se(c,f+"return "+p).apply(i,l)}));if(g.source=p,Kr(g))throw g;return g},zn.times=function(e,t){if((e=fo(e))<1||e>h)return[];var n=m,i=vn(e,m);t=cs(t),e-=m;for(var a=Zt(i,t);++n<e;)t(n);return a},zn.toFinite=ho,zn.toInteger=fo,zn.toLength=mo,zn.toLower=function(e){return yo(e).toLowerCase()},zn.toNumber=go,zn.toSafeInteger=function(e){return e?oi(fo(e),-9007199254740991,h):0===e?e:0},zn.toString=yo,zn.toUpper=function(e){return yo(e).toUpperCase()},zn.trim=function(e,t,n){if((e=yo(e))&&(n||t===i))return Jt(e);if(!e||!(t=la(t)))return e;var a=fn(e),s=fn(t);return wa(a,tn(a,s),nn(a,s)+1).join("")},zn.trimEnd=function(e,t,n){if((e=yo(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=la(t)))return e;var a=fn(e);return wa(a,0,nn(a,fn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=yo(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=la(t)))return e;var a=fn(e);return wa(a,tn(a,fn(t))).join("")},zn.truncate=function(e,t){var n=30,a="...";if(Qr(t)){var s="separator"in t?t.separator:s;n="length"in t?fo(t.length):n,a="omission"in t?la(t.omission):a}var r=(e=yo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-hn(a);if(c<1)return a;var l=o?wa(o,0,c).join(""):e.slice(0,c);if(s===i)return l+a;if(o&&(c+=l.length-c),ao(s)){if(e.slice(c).search(s)){var u,d=l;for(s.global||(s=Re(s.source,yo(fe.exec(s))+"g")),s.lastIndex=0;u=s.exec(d);)var p=u.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(la(s),c)!=c){var h=l.lastIndexOf(s);h>-1&&(l=l.slice(0,h))}return l+a},zn.unescape=function(e){return(e=yo(e))&&K.test(e)?e.replace(H,gn):e},zn.uniqueId=function(e){var t=++Fe;return yo(e)+t},zn.upperCase=Ko,zn.upperFirst=Zo,zn.each=_r,zn.eachRight=yr,zn.first=Ys,oc(zn,(wc={},bi(zn,(function(e,t){Ue.call(zn.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zn.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),It(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:yn(fo(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=vn(n,a.__takeCount__):a.__views__.push({size:vn(n,m),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:cs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ci(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Pr(cs(e)))},Vn.prototype.slice=function(e,t){e=fo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),s=zn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);s&&(zn.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,c=t instanceof Vn,l=o[0],u=c||qr(t),d=function(e){var t=s.apply(zn,Ut([e],o));return a&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=r&&!p,m=c&&!h;if(!r&&u){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[d],thisArg:i}),new qn(g,p)}return f&&m?e.apply(this,o):(g=this.thru(d),f?a?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return t.apply(qr(a)?a:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Ue.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}})),On[za(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Aa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Aa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Aa(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,a=n?e.length:0,s=function(e,t,n){var i=-1,a=n.length;for(;++i<a;){var s=n[i],r=s.size;switch(s.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=vn(t,e+r);break;case"takeRight":e=yn(e,t-r)}}return{start:e,end:t}}(0,a,this.__views__),r=s.start,o=s.end,c=o-r,l=i?o:r-1,u=this.__iteratees__,d=u.length,p=0,h=vn(c,this.__takeCount__);if(!n||!i&&a==c&&h==c)return fa(e,this.__actions__);var f=[];e:for(;c--&&p<h;){for(var m=-1,g=e[l+=t];++m<d;){var _=u[m],y=_.iteratee,v=_.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)continue e;break e}}f[p++]=g}return f},zn.prototype.at=hr,zn.prototype.chain=function(){return dr(this)},zn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var a=Ns(n);a.__index__=0,a.__values__=i,t?s.__wrapped__=a:t=a;var s=a;n=n.__wrapped__}return s.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Qs],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Qs)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Je&&(zn.prototype[Je]=function(){return this}),zn}();gt?((gt.exports=_n)._=_n,mt._=_n):ft._=_n}).call(n)}(Zd,Zd.exports);var Jd=Zd.exports;const Xd={type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("introductionNs")]:Jc.audio[Jd.camelCase("introduction")],prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("introduction.intro.text1")} </h3>\n <p> ${Ec.t("introduction.intro.text2")} </p> \n <p> ${Ec.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("introduction.intro.text4")} </h3>\n <p> ${Ec.t("introduction.intro.text5")} </p> \n <p> ${Ec.t("introduction.intro.text6")} </p> \n <p> ${Ec.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},Qd={timeline:[{type:Mo,stimulus:()=>Jc.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Ec.t("practice.postPracticeIntro.text1")}</h3>\n <p>${Ec.t("practice.postPracticeIntro.text2")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text3")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text4")}</p>\n <p>${Ec.t("practice.postPracticeIntro.text5")}</p>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`:""},{type:Mo,stimulus:()=>Jc.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Ec.t(Kc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${Jc.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Ec.t(Kc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${Jc.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${Ec.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${Ec.t("practice.postPracticeReminder.text4")} </b></p>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.begin")}`})} </button>`:"",on_finish:()=>{s.session.set("indexTracking",0)}}]},ep={name:"html-multi-response",parameters:{stimulus:{type:Ir.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Ir.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Ir.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Ir.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Ir.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Ir.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Ir.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Ir.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Ir.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Ir.BOOL,pretty_name:"Response ends trial",default:!0}}};class tp{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=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 a=0;a<t.button_choices.length;a++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(a=0;a<t.button_choices.length;a++){var s=i[a].replace(/%choice%/g,t.button_choices[a]);n+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+a+'" data-choice="'+a+'">'+s+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(n){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},n)),t.response_ends_trial&&l()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var o=performance.now();for(a=0;a<t.button_choices.length;a++)e.querySelector("#jspsych-html-multi-response-button-"+a).addEventListener("click",(e=>{u(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);var n={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(n)};function u(n){var i=performance.now(),a=Math.round(i-o);c.button=parseInt(n),c.rt=a,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var s=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<s.length;r++)s[r].setAttribute("disabled","disabled");t.response_ends_trial&&l()}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(l,t.trial_duration)}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={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"},i={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"},a=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(a,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();this.trial(a,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(a.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}tp.info=ep;const np={type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("halfwayNs")]:s.session.get("config").story?Jc.audio[Jd.camelCase(`${s.session("character")}Halfway`)]:"",prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${Ec.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.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="${Jc.images[Jd.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${Ec.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${Ec.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`,on_finish:()=>{s.session.set("indexTracking",0)}},ip={timeline:[{type:Mo,stimulus:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?Jc.audio[Jd.camelCase("endNs")]:s.session.get("config").story?Jc.audio[Jd.camelCase(`${s.session("character")}End`)]:"",prompt:()=>!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Ec.t("gameBreak.endScreen.text1")} </h3>\n <p> ${Ec.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Jc.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> ${Ec.t("gameBreak.endScreen.text3")} </h3>\n <p> ${s.session("character_name")} ${Ec.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Jc.images[Jd.camelCase(`${s.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:tp,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${Ec.t("gameBreak.debrief.text1")}</h3>\n <p>${Ec.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===s.session.get("config").userMode},{type:qd,fullscreen_mode:!1,delay_after:0}]},ap={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},sp=[1,2,3,4],rp=["dog","cat","bird","deer"],op={timeline:[{type:Mo,stimulus:()=>Jc.audio.studentSelect,prompt:()=>Kc?`\n <div>\n <img id="mobile-classroom-bg" src=${Jc.images.classroomBackground} alt="background"/>\n <h3>${Ec.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Ec.t(Kc?"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=${Jc.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>${Ec.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Ec.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Kc?"":`<div class="number">${sp.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Kc?"mobile-student-select-characters":""}">\n ${rp.map((e=>`<img src=${Jc.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${Ec.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Kc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Kc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Kc,data:{save_trial:!1},on_load:()=>{if(Kc){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"),n=document.createTextNode(Ec.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(Ec.t("characterSelect.studentSelect.paragraph3MobileAfter")),a=document.createElement("span");a.classList.add("yellow"),a.textContent=Ec.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(a),t.appendChild(i),t.classList.add("button");const s=document.createElement("div"),r=rp.map((e=>{const t=document.createElement("img");return t.setAttribute("src",Jc.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)s.appendChild(e);e.appendChild(s),e.appendChild(t)}}},on_finish:e=>{s.session.set("character",ap[Kc?e.button_response+1:e.keyboard_response].character),s.session.set("character_name",ap[Kc?e.button_response+1:e.keyboard_response].characterName),s.session.set("character_activity",ap[Kc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Mo,stimulus:()=>Jc.audio[Jd.camelCase(`${s.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="${Jc.images[Jd.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${Ec.t("characterSelect.studentIntro.paragraph1")} ${s.session("character_name")}. </p>\n <p> ${Ec.t("characterSelect.studentIntro.paragraph2")} ${s.session("character_activity")}. </p>\n <p> ${Ec.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button">${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.anyKey")}`,action:`${Ec.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${Ec.t("navigation.continueButtonText",{input:`${Ec.t("terms.here")}`,action:`${Ec.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!s.session.get("config").story||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6)},cp=(e,t,n)=>({timeline:[{type:tp,stimulus:()=>{if(0===s.session("indexTracking")){const t=setTimeout((()=>s.session.set("timeOut",!0)),n);s.session.set("timerId",t),"tosrec"!==e?s.session.set("currentCorpus",zd[e]):s.session.set("currentCorpus",zd[s.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${s.session("currentCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){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:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?s.session.set("keyResponse","left"):s.session.set("keyResponse","right"):0===n.button_response?s.session.set("buttonResponse","left"):s.session.set("buttonResponse","right"),n.keyboard_response?n.correct=ol.pluginAPI.compareKeys(s.session("keyResponse"),s.session("currentCorpus")[s.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===s.session("currentCorpus")[s.session("indexTracking")].direction||1===n.button_response&&"right"===s.session("currentCorpus")[s.session("indexTracking")].direction,n.correct?s.session.set("dataCorrect",1):s.session.set("dataCorrect",0),pp.addResponseData(n.rt,n.keyboard_response?n.keyboard_response:n.button_response,s.session("dataCorrect")),ol.data.addDataToLastTrial({save_trial:!s.session("timeOut"),pid:s.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:s.session("tosrecCorpusId"),trialNumBlock:s.session("indexTracking")+1,itemId:s.session("currentCorpus")[s.session("indexTracking")].itemId,item:s.session("currentCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("currentCorpus")[s.session("indexTracking")].answer,correct:s.session("dataCorrect"),story:s.session.get("config").story})}},{type:Mo,stimulus:()=>Jc.audio.neutralSoundSub,prompt:()=>Kc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Kc){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 s.session("indexTracking")===s.session("currentCorpus").length-1||s.session("timeOut")?(s.session.set("indexTracking",0),s.session.set("timeOut",!1),clearTimeout(s.session.get("timerId")),!1):(s.session.transact("indexTracking",(e=>e+1)),!0)}}),lp={type:Mo,stimulus:()=>Jc.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${Ec.t("practice.intro.text1")}</h2>\n <p>${Ec.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${Ec.t(Kc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Jc.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${Ec.t(Kc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Jc.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${Ec.t("practice.intro.text5")}</b> </p> \n <div class="button">${Ec.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button">${Ec.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{s.session.set("indexTracking",-1)}},up={type:tp,stimulus:()=>(s.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${s.session("practiceCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[Ec.t("terms.false")[0].toUpperCase(),Ec.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${Ec.t("terms.false")}/><span>${Ec.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${Ec.t("terms.true")}/><span>${Ec.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){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=ol.pluginAPI.compareKeys(e.keyboard_response,s.session("practiceCorpus")[s.session("indexTracking")].correct_response),s.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(s.session.set("dataCorrect",1),s.session.set("feedbackResponse","Correct!")):(s.session.set("dataCorrect",0),s.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.keyboard_response||0===e.button_response;s.session.set("responseLR",t?"left":"right"),s.session.set("answerRP",t?"false":"true"),s.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response;s.session.set("correctLR",n?"left":"right"),s.session.set("correctRP",n?"false":"true"),s.session.set("answerColor",n?"orange":"blue"),ol.data.addDataToLastTrial({pid:s.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:s.session("dataCorrect"),trialNumBlock:s.session("indexTracking"),item:s.session("practiceCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("practiceCorpus")[s.session("indexTracking")].answer,story:s.session.get("config").story})}};"false"===s.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit,"false"===s.session("correctRP")?Jc.images.trueStaticKeySplit:Jc.images.trueFlashKeySplit;const dp={type:Mo,response_allowed_while_playing:()=>s.session.get("config").skipInstructions,stimulus:()=>1===s.session("dataCorrect")?Jc.audio[`feedback${s.session("indexTracking")}Correct`]:Jc.audio[`feedback${s.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Kc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${s.session("responseColor")}>${s.session("feedbackResponse")} ${Ec.t(Kc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===s.session("responseLR")?Ec.t("terms.left"):Ec.t("terms.right"),type:"true"===s.session("answerRP")?Ec.t("terms.true"):Ec.t("terms.false")})}</span>\n <br></br> \n "${s.session("practiceCorpus")[s.session("indexTracking")].sentence}"\n <span class=${s.session("answerColor")}> ${Ec.t(Kc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===s.session("correctLR")?Ec.t("terms.left"):Ec.t("terms.right"),type:"true"===s.session("correctRP")?Ec.t("terms.true"):Ec.t("terms.false")})}</span>\n </p>\n </div>\n ${Kc?"":`<img class="lower" src= "${"false"===s.session("correctRP")?Jc.images.falseFlashKey:Jc.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Kc?"NO_KEYS":"false"===s.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Kc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Kc?[`<button class="mobile-practice-feedback ${"false"===s.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===s.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===s.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===s.session("correctRP")?Jc.images.trueFlashKeySplit:Jc.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Kc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===s.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};let pp;const hp=Object.prototype.toString;function fp(e){switch(hp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Sp(e,Error)}}function mp(e,t){return hp.call(e)===`[object ${t}]`}function gp(e){return mp(e,"ErrorEvent")}function _p(e){return mp(e,"DOMError")}function yp(e){return mp(e,"String")}function vp(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function bp(e){return mp(e,"Object")}function wp(e){return"undefined"!=typeof Event&&Sp(e,Event)}function xp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ep(e){return"number"==typeof e&&e!=e}function Sp(e,t){try{return e instanceof t}catch(e){return!1}}function kp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function Tp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Rp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{kp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ip(e,t,n=!1){return!!yp(e)&&(mp(t,"RegExp")?t.test(e):!!yp(t)&&(n?e===t:e.includes(t)))}function Ap(e,t=[],n=!1){return t.some((t=>Ip(e,t,n)))}function Cp(e,t,n=250,i,a,s,r){if(!(s.exception&&s.exception.values&&r&&Sp(r.originalException,Error)))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;o&&(s.exception.values=(c=Op(e,t,a,r.originalException,i,s.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=Tp(e.value,l)),e)))))}function Op(e,t,n,i,a,s,r,o){if(s.length>=n+1)return s;let c=[...s];if(Sp(i[a],Error)){Lp(r,o);const s=e(t,i[a]),l=c.length;jp(s,a,l,o),c=Op(e,t,n,i[a],a,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,s)=>{if(Sp(i,Error)){Lp(r,o);const l=e(t,i),u=c.length;jp(l,`errors[${s}]`,u,o),c=Op(e,t,n,i,a,[l,...c],l,u)}})),c}function Lp(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function jp(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Pp(e){return e&&e.Math==Math?e:void 0}const Up="object"==typeof globalThis&&Pp(globalThis)||"object"==typeof window&&Pp(window)||"object"==typeof self&&Pp(self)||"object"==typeof global&&Pp(global)||function(){return this}()||{};function Fp(){return Up}function Dp(e,t,n){const i=n||Up,a=i.__SENTRY__=i.__SENTRY__||{};return a[e]||(a[e]=t())}const Np=Fp(),Mp=80;function zp(e,t={}){try{let n=e;const i=5,a=[];let s=0,r=0;const o=" > ",c=o.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Mp;for(;n&&s++<i&&(l=Bp(n,u),!("html"===l||s>1&&r+a.length*c+l.length>=d));)a.push(l),r+=l.length,n=n.parentNode;return a.reverse().join(o)}catch(e){return"<unknown>"}}function Bp(e,t){const n=e,i=[];let a,s,r,o,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),a=n.className,a&&yp(a))for(s=a.split(/\s+/),c=0;c<s.length;c++)i.push(`.${s[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)r=u[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const $p=["debug","info","warn","error","log","assert","trace"],qp={};function Vp(e){if(!("console"in Up))return e();const t=Up.console,n={},i=Object.keys(qp);i.forEach((e=>{const i=qp[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Yp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?$p.forEach((n=>{t[n]=(...t)=>{e&&Vp((()=>{Up.console[n](`Sentry Logger [${n}]:`,...t)}))}})):$p.forEach((e=>{t[e]=()=>{}})),t}(),Gp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hp(e,t=!1){const{host:n,path:i,pass:a,port:s,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&a?`:${a}`:""}@${n}${s?`:${s}`:""}/${i?`${i}/`:i}${r}`}function Wp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Kp(e){const t="string"==typeof e?function(e){const t=Gp.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,i,a="",s,r="",o]=t.slice(1);let c="",l=o;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Wp({host:s,pass:a,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Wp(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Yp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Yp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Yp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Yp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Zp 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 Jp(e,t,n){if(!(t in e))return;const i=e[t],a=n(i);"function"==typeof a&&Qp(a,i),e[t]=a}function Xp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Qp(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Xp(e,"__sentry_original__",t)}catch(e){}}function eh(e){return e.__sentry_original__}function th(e){if(fp(e))return{message:e.message,name:e.name,stack:e.stack,...ih(e)};if(wp(e)){const t={type:e.type,target:nh(e.target),currentTarget:nh(e.currentTarget),...ih(e)};return"undefined"!=typeof CustomEvent&&Sp(e,CustomEvent)&&(t.detail=e.detail),t}return e}function nh(e){try{return t=e,"undefined"!=typeof Element&&Sp(t,Element)?zp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function ih(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ah(e){return sh(e,new Map)}function sh(e,t){if(bp(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=sh(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach((e=>{i.push(sh(e,t))})),i}return e}const rh=50,oh=/\(error: (.*)\)/,ch=/captureMessage|captureException/;function lh(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],a=e.split("\n");for(let e=n;e<a.length;e++){const n=a[e];if(n.length>1024)continue;const s=oh.test(n)?n.replace(oh,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){i.push(t);break}}if(i.length>=rh)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),ch.test(t[t.length-1].function||"")&&(t.pop(),ch.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,rh).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const uh="<anonymous>";function dh(e){try{return e&&"function"==typeof e&&e.name||uh}catch(e){return uh}}const ph=Fp();function hh(){if(!("fetch"in ph))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function fh(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const mh=Fp();const gh=Fp(),_h="__sentry_xhr_v2__",yh={},vh={};function bh(e){if(!vh[e])switch(vh[e]=!0,e){case"console":!function(){if(!("console"in Up))return;$p.forEach((function(e){e in Up.console&&Jp(Up.console,e,(function(t){return qp[e]=t,function(...t){xh("console",{args:t,level:e});const n=qp[e];n&&n.apply(Up.console,t)}}))}))}();break;case"dom":!function(){if(!gh.document)return;const e=xh.bind(null,"dom"),t=Ah(e,!0);gh.document.addEventListener("click",t,!1),gh.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=gh[t]&&gh[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Jp(n,"addEventListener",(function(t){return function(n,i,a){if("click"===n||"keypress"==n)try{const i=this,s=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=s[n]=s[n]||{refCount:0};if(!r.handler){const i=Ah(e);r.handler=i,t.call(this,n,i,a)}r.refCount++}catch(e){}return t.call(this,n,i,a)}})),Jp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,a=n.__sentry_instrumentation_handlers__||{},s=a[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,i),s.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}();break;case"xhr":!function(){if(!gh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Jp(e,"open",(function(e){return function(...t){const n=t[1],i=this[_h]={method:yp(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};yp(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[_h];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}xh("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Jp(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),Jp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,a=this[_h];return a&&(a.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Jp(e,"send",(function(e){return function(...t){const n=this[_h];return n&&void 0!==t[0]&&(n.body=t[0]),xh("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!hh())return!1;if(fh(ph.fetch))return!0;let e=!1;const t=ph.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=fh(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;Jp(Up,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Sh(t),method:Eh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Sh(t),method:Eh(t,"method")?String(t.method).toUpperCase():"GET"}}(t),a={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return xh("fetch",{...a}),e.apply(Up,t).then((e=>(xh("fetch",{...a,endTimestamp:Date.now(),response:e}),e)),(e=>{throw xh("fetch",{...a,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=mh.chrome,t=e&&e.app&&e.app.runtime,n="history"in mh&&!!mh.history.pushState&&!!mh.history.replaceState;return!t&&n}())return;const e=gh.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kh,t=String(n);kh=t,xh("history",{from:e,to:t})}return e.apply(this,t)}}gh.onpopstate=function(...t){const n=gh.location.href,i=kh;if(kh=n,xh("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Jp(gh.history,"pushState",t),Jp(gh.history,"replaceState",t)}();break;case"error":Ch=gh.onerror,gh.onerror=function(e,t,n,i,a){return xh("error",{column:i,error:a,line:n,msg:e,url:t}),!(!Ch||Ch.__SENTRY_LOADER__)&&Ch.apply(this,arguments)},gh.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Oh=gh.onunhandledrejection,gh.onunhandledrejection=function(e){return xh("unhandledrejection",e),!(Oh&&!Oh.__SENTRY_LOADER__)||Oh.apply(this,arguments)},gh.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("unknown instrumentation type:",e))}}function wh(e,t){yh[e]=yh[e]||[],yh[e].push(t),bh(e)}function xh(e,t){if(e&&yh[e])for(const n of yh[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${dh(n)}\nError:`,t)}}function Eh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sh(e){return"string"==typeof e?e:e?Eh(e,"url")?e.url:e.toString?e.toString():"":""}let kh;const Th=1e3;let Rh,Ih;function Ah(e,t=!1){return n=>{if(!n||Ih===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const i="keypress"===n.type?"input":n.type;(void 0===Rh||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Ih,n))&&(e({event:n,name:i,global:t}),Ih=n),clearTimeout(Rh),Rh=gh.setTimeout((()=>{Rh=void 0}),Th)}}let Ch=null;let Oh=null;function Lh(){const e=Up,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function jh(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ph(e){const{message:t,event_id:n}=e;if(t)return t;const i=jh(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Uh(e,t,n){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function Fh(e,t){const n=jh(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function Dh(e){if(e&&e.__sentry_captured__)return!0;try{Xp(e,"__sentry_captured__",!0)}catch(e){}return!1}function Nh(e){return Array.isArray(e)?e:[e]}function Mh(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function zh(e,t=100,n=1/0){try{return $h("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Bh(e,t=3,n=102400){const i=zh(e,t);return a=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(a))>n?Bh(e,t-1,n):i;var a}function $h(e,t,n=1/0,i=1/0,a=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,r]=a;if(null==t||["number","boolean","string"].includes(typeof t)&&!Ep(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(kp(t))return"[VueViewModel]";if(bp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${dh(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}var n}(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__:n;if(0===c)return o.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return $h("",l.toJSON(),c-1,i,a)}catch(e){}const u=Array.isArray(t)?[]:{};let d=0;const p=th(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=i){u[e]="[MaxProperties ~]";break}const t=p[e];u[e]=$h(e,t,c-1,i,a),d++}return r(t),u}var qh;function Vh(e){return new Gh((t=>{t(e)}))}function Yh(e){return new Gh(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(qh||(qh={}));class Gh{constructor(e){Gh.prototype.__init.call(this),Gh.prototype.__init2.call(this),Gh.prototype.__init3.call(this),Gh.prototype.__init4.call(this),this._state=qh.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Gh(((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Gh(((t,n)=>{let i,a;return this.then((t=>{a=!1,i=t,e&&e()}),(t=>{a=!0,i=t,e&&e()})).then((()=>{a?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(qh.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(qh.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===qh.PENDING&&(xp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===qh.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===qh.RESOLVED&&e[1](this._value),this._state===qh.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Hh(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return Yh(new Zp("Not adding Promise because buffer limit was reached."));const a=i();return-1===t.indexOf(a)&&t.push(a),a.then((()=>n(a))).then(null,(()=>n(a).then(null,(()=>{})))),a},drain:function(e){return new Gh(((n,i)=>{let a=t.length;if(!a)return n(!0);const s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Vh(e).then((()=>{--a||(clearTimeout(s),n(!0))}),i)}))}))}}}function Wh(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}const Kh=["fatal","error","warning","log","info","debug"];const Zh=Fp(),Jh={nowSeconds:()=>Date.now()/1e3};const Xh=Mh()?function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}():function(){const{performance:e}=Zh;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),Qh=void 0===Xh?Jh:{nowSeconds:()=>(Xh.timeOrigin+Xh.now())/1e3},ef=Jh.nowSeconds.bind(Jh),tf=Qh.nowSeconds.bind(Qh),nf=(()=>{const{performance:e}=Zh;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=a<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return s||o<t?a<=o?e.timeOrigin:r:i})(),af="baggage",sf="sentry-",rf=/^sentry-/,of=8192;function cf(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>of?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${sf}${t}`]=n),e)),{}))}function lf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const uf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function df(e,t){const n=function(e){if(!e)return;const t=e.match(uf);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),i=function(e){if(!yp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...lf(t)})),{});else{if(!e)return;t=lf(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(rf)&&(e[t.slice(sf.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:a,parentSpanId:s,parentSampled:r}=n||{},o={traceId:a||Lh(),spanId:Lh().substring(16),sampled:r};return s&&(o.parentSpanId=s),i&&(o.dsc=i),{traceparentData:n,dynamicSamplingContext:i,propagationContext:o}}function pf(e=Lh(),t=Lh().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function hf(e,t=[]){return[e,t]}function ff(e,t){const[n,i]=e;return[n,[...i,t]]}function mf(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function gf(e,t){return(t||new TextEncoder).encode(e)}function _f(e,t){const[n,i]=e;let a=JSON.stringify(n);function s(e){"string"==typeof a?a="string"==typeof e?a+e:[gf(a,t),e]:a.push("string"==typeof e?gf(e,t):e)}for(const e of i){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(zh(n))}s(e)}}return"string"==typeof a?a:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(a)}function yf(e,t){const n="string"==typeof e.data?gf(e.data,t):e.data;return[ah({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const vf={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"};function bf(e){return vf[e]}function wf(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xf(e,t,n,i){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Hp(i)},...a&&{trace:ah({...a})}}}const Ef=6e4;function Sf(e,{statusCode:t,headers:n},i=Date.now()){const a={...e},s=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n]=e.split(":",2),s=parseInt(t,10),r=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))a[e]=i+r;else a.all=i+r}else r?a.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?Ef:i-t}(r,i):429===t&&(a.all=i+6e4);return a}const kf="production";function Tf(){return Dp("globalEventProcessors",(()=>[]))}function Rf(e){Tf().push(e)}function If(e,t,n,i=0){return new Gh(((a,s)=>{const r=e[i];if(null===t||"function"!=typeof r)a(t);else{const o=r({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.id&&null===o&&Yp.log(`Event processor "${r.id}" dropped event`),xp(o)?o.then((t=>If(e,t,n,i+1).then(a))).then(null,s):If(e,o,n,i+1).then(a).then(null,s)}}))}function Af(e){const t=tf(),n={sid:Lh(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ah({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Cf(n,e),n}function Cf(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||tf(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Lh()),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)}class Of{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Lf()}static clone(e){const t=new Of;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Cf(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.getSpan();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;if("function"==typeof e){const t=e(this);return t instanceof Of?t:this}return e instanceof Of?(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&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):bp(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),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=Lf(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:ef(),...e},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,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._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},If([...Tf(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Nh(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Lf(){return{traceId:Lh(),spanId:Lh().substring(16)}}const jf=4,Pf=100;class Uf{constructor(e,t=new Of,n=jf){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Of.clone(this.getScope());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();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:Lh(),i=new Error("Sentry syntheticException");return this._withClient(((a,s)=>{a.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},s)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Lh(),a=new Error(e);return this._withClient(((s,r)=>{s.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},r)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Lh();return e.type||(this._lastEventId=n),this._withClient(((i,a)=>{i.captureEvent(e,{...t,event_id:n},a)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=Pf}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const r={timestamp:ef(),...e},o=a?Vp((()=>a(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Df(this);try{e(this)}finally{Df(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}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&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Cf(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:a=kf}=n&&n.getOptions()||{},{userAgent:s}=Up.navigator||{},r=Af({release:i,environment:a,user:t.getUser(),...s&&{userAgent:s},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Cf(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(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Ff().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ff(){return Up.__SENTRY__=Up.__SENTRY__||{extensions:{},hub:void 0},Up}function Df(e){const t=Ff(),n=Mf(t);return zf(t,e),n}function Nf(){const e=Ff();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ff()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!Mf(e).isOlderThan(jf)||zf(e,new Uf);var t;return Mf(e)}(e)}function Mf(e){return Dp("hub",(()=>new Uf),e)}function zf(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function Bf(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Nf().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function $f(e){return(e||Nf()).getScope().getTransaction()}let qf=!1;function Vf(){const e=$f();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Vf.tag="sentry_tracingErrorCallback";class Yf{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Gf{constructor(e={}){this.traceId=e.traceId||Lh(),this.spanId=e.spanId||Lh().substring(16),this.startTimestamp=e.startTimestamp||tf(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new Gf({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},Yp.log(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}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=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"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Yp.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:tf()}toTraceparent(){return pf(this.traceId,this.spanId,this.sampled)}toContext(){return ah({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ah({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ah({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function Hf(e,t,n){const i=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},r=ah({environment:i.environment||kf,release:i.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",r),r}class Wf extends Gf{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||Nf(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Yf(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const i=this.metadata,a={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(a)}toContext(){return ah({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||Nf(),t=e.getClient();if(!t)return{};const n=e.getScope(),i=Hf(this.traceId,t,n),a=this.metadata.sampleRate;void 0!==a&&(i.sample_rate=`${a}`);const s=this.metadata.source;return s&&"url"!==s&&(i.transaction=this.name),void 0!==this.sampled&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}}const Kf={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Zf=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Jf extends Yf{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:tf(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class Xf extends Wf{constructor(e,t,n=Kf.idleTimeout,i=Kf.finalTimeout,a=Kf.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Zf[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Zf[3],this.finish())}),this._finalTimeout)}finish(e=tf()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e,i=(this._finalTimeout+this._idleTimeout)/1e3,a=t.endTimestamp-this.startTimestamp<i;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=JSON.stringify(t,void 0,2);n?a||Yp.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):Yp.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&a})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Jf(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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=Zf[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Zf[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=tf();this._idleTimeoutCanceledPermanently?(this._finishReason=Zf[5],this.finish(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?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Zf[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Qf(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function em(e,t,n){if(!Bf(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),function(e){if(Ep(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function tm(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},a=i.instrumenter||"sentry",s=e.instrumenter||"sentry";a!==s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${a}\` instrumenter.\nThe transaction will not be sampled. Please use the ${a} instrumentation to start transactions.`),e.sampled=!1);let r=new Wf(e,this);return r=em(r,i,{parentSampled:e.parentSampled,transactionContext:e,...t}),r.sampled&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function nm(e,t,n,i,a,s,r){const o=e.getClient(),c=o&&o.getOptions()||{};let l=new Xf(t,e,n,i,r,a);return l=em(l,c,{parentSampled:t.parentSampled,transactionContext:t,...s}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function im(){const e=Ff();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=tm),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Qf),qf||(qf=!0,wh("error",Vf),wh("unhandledrejection",Vf)))}function am(e,t){return Nf().captureException(e,{captureContext:t})}const sm="7";function rm(e,t){return n={sentry_key:e.publicKey,sentry_version:sm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const om=[];function cm(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?Nh(n(t)):t;const a=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),s=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(a,(e=>"Debug"===e.name));if(-1!==s){const[e]=a.splice(s,1);a.push(e)}return a}function lm(e,t,n){if(n[t.name]=t,-1===om.indexOf(t.name)&&(t.setupOnce(Rf,Nf),om.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign(((t,i)=>n(t,i,e)),{id:t.name});e.addEventProcessor(i)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Integration installed: ${t.name}`)}function um(e,t,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:r=1e3}=e,o={...t,event_id:t.event_id||n.event_id||Lh(),timestamp:t.timestamp||ef()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:a,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:kf);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==a&&(e.dist=a);e.message&&(e.message=Tp(e.message,s));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=Tp(r.value,s));const o=e.request;o&&o.url&&(o.url=Tp(o.url,s))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){const n=Up._sentryDebugIds;if(!n)return;let i;const a=dm.get(t);a?i=a:(i=new Map,dm.set(t,i));const s=Object.keys(n).reduce(((e,a)=>{let s;const r=i.get(a);r?s=r:(s=t(a),i.set(a,s));for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.filename){e[i.filename]=n[a];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(o,e.stackParser);let l=i;n.captureContext&&(l=Of.clone(l).update(n.captureContext));let u=Vh(o);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}u=l.applyToEvent(o,n)}return u.then((e=>a&&a.getEventProcessors?If(a.getEventProcessors(),e,n):e)).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 n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:zh(e.data,t,n)}})))},...e.user&&{user:zh(e.user,t,n)},...e.contexts&&{contexts:zh(e.contexts,t,n)},...e.extra&&{extra:zh(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=zh(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>(e.data&&(e.data=zh(e.data,t,n)),e))));return i}(e,s,r):e)))}const dm=new WeakMap;const pm="Not capturing exception because it's already been captured.";class hm{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Kp(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("No DSN provided, client will not do anything."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${rm(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Dh(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(pm));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let a=n&&n.event_id;const s=vp(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,i))).then((e=>{a=e}))),a}captureEvent(e,t,n){if(t&&t.originalException&&Dh(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(pm));let i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{i=e}))),i}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Cf(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Vh(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&lm(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){lm(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,i){const a=wf(n),s=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,n&&n.sdk);const r=xf(e,a,i,t);return delete e.sdkProcessingMetadata,hf(r,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ff(n,yf(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,i){const a=wf(n);return hf({sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!i&&{dsn:Hp(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,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}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)))}_updateSessionFromEvent(e,t){let n=!1,i=!1;const a=t.exception&&t.exception.values;if(a){i=!0;for(const e of a){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Cf(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Gh((t=>{let n=0;const i=setInterval((()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),um(i,e,t,n,this).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:a,parentSpanId:s,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:a,parent_span_id:s},...e.contexts};const o=r||Hf(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?Yp.log(t.message):Yp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:a}=i;if(!this._isEnabled())return Yh(new Zp("SDK not enabled, will not capture event.","log"));const s=mm(e),r=fm(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof a&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),Yh(new Zp(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Zp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const a=function(e,t,n){const{beforeSend:i,beforeSendTransaction:a}=e;if(fm(t)&&i)return i(t,n);if(mm(t)&&a)return a(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xp(e))return e.then((e=>{if(!bp(e)&&null!==e)throw new Zp(n);return e}),(e=>{throw new Zp(`${t} rejected with ${e}`)}));if(!bp(e)&&null!==e)throw new Zp(n);return e}(a,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Zp(`${c} returned \`null\`, will not send event.`,"log");const a=n&&n.getSession();!s&&a&&this._updateSessionFromEvent(a,i);const r=i.transaction_info;if(s&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Zp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Zp(`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._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function fm(e){return void 0===e.type}function mm(e){return"transaction"===e.type}const gm=30;function _m(e,t,n=Hh(e.bufferSize||gm)){let i={};function a(a){const s=[];if(mf(a,((t,n)=>{const a=bf(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,a)){const i=ym(t,n);e.recordDroppedEvent("ratelimit_backoff",a,i)}else s.push(t)})),0===s.length)return Vh();const r=hf(a[0],s),o=t=>{mf(r,((n,i)=>{const a=ym(n,i);e.recordDroppedEvent(t,bf(i),a)}))};return n.add((()=>t({body:_f(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Sf(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Zp)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("Skipped sending event because buffer is full."),o("queue_overflow"),Vh();throw e}))}return a.__sentry__baseTransport__=!0,{send:a,flush:e=>n.drain(e)}}function ym(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const vm="7.70.0";let bm;class wm{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=wm.id}setupOnce(){bm=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=eh(this)||this;return bm.apply(t,e)}}catch(e){}}}wm.__initStatic();const xm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Em=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Sm{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Sm.id,this._options=e}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(Sm);if(t){const i=n.getClient(),a=i?i.getOptions():{},s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Em],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Ph(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 n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==t.length||Yp.error(`Could not extract message for event ${Ph(e)}`);return t}(e).some((e=>Ap(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ph(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Ap(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ph(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=km(e);return!!n&&Ap(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ph(e)}.\nUrl: ${km(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=km(e);return!n||Ap(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ph(e)}.\nUrl: ${km(e)}`),!0;return!1}(e,s)?null:e}}return e};n.id=this.name,e(n)}}function km(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 n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(`Cannot extract url for event ${Ph(e)}`),null}}Sm.__initStatic();const Tm=Up;let Rm=0;function Im(){return Rm>0}function Am(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(eh(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const a=i.map((e=>Am(e,t)));return e.apply(this,a)}catch(e){throw Rm++,setTimeout((()=>{Rm--})),a=n=>{n.addEventProcessor((e=>(t.mechanism&&(Uh(e,void 0,void 0),Fh(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),am(e)},Nf().withScope(a),e}var a};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}Qp(i,e),Xp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}function Cm(e,t){const n=Lm(e,t),i={type:t&&t.name,value:Pm(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Om(e,t){return{exception:{values:[Cm(e,t)]}}}function Lm(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(jm.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const jm=/Minified React error #\d+;/i;function Pm(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Um(e,t,n,i,a){let s;if(gp(t)&&t.error){return Om(e,t.error)}if(_p(t)||mp(t,"DOMException")){const a=t;if("stack"in t)s=Om(e,t);else{const t=a.name||(_p(a)?"DOMError":"DOMException"),r=a.message?`${t}: ${a.message}`:t;s=Fm(e,r,n,i),Uh(s,r)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if(fp(t))return Om(e,t);if(bp(t)||wp(t)){return s=function(e,t,n,i){const a=Nf().getClient(),s=a&&a.getOptions().normalizeDepth,r={exception:{values:[{type:wp(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Dm(t,{isUnhandledRejection:i})}]},extra:{__serialized__:Bh(t,s)}};if(n){const t=Lm(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,a),Fh(s,{synthetic:!0}),s}return s=Fm(e,t,n,i),Uh(s,`${t}`,void 0),Fh(s,{synthetic:!0}),s}function Fm(e,t,n,i){const a={message:t};if(i&&n){const i=Lm(e,n);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]})}return a}function Dm(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(th(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Tp(n[0],t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:Tp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(gp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(wp(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 ${i}`}return`Object captured as ${i} with keys: ${n}`}class Nm extends hm{constructor(e){const t=Tm.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:vm}],version:vm},super(e),e.sendClientReports&&Tm.document&&Tm.document.addEventListener("visibilitychange",(()=>{"hidden"===Tm.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const a=Um(e,t,n&&n.syntheticException||void 0,i);return Fh(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Vh(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,a){const s=Fm(e,t,i&&i.syntheticException||void 0,a);return s.level=n,i&&i.event_id&&(s.event_id=i.event_id),Vh(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:Hp(i)}},s=function(e){return[{type:"user_report"},e]}(e);return hf(a,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("Sending outcomes:",e);const t=(n=e,hf((i=this._options.tunnel&&Hp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:a||ef(),discarded_events:n}]]));var n,i,a;this._sendEnvelope(t)}}let Mm;function zm(e,t=function(){if(Mm)return Mm;if(fh(Tm.fetch))return Mm=Tm.fetch.bind(Tm);const e=Tm.document;let t=Tm.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Mm=t.bind(Tm)}()){let n=0,i=0;return _m(e,(function(a){const s=a.body.length;n+=s,i++;const r={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=s,i--,{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 Mm=void 0,n-=s,i--,Yh(e)}}))}const Bm=4;function $m(e){return _m(e,(function(t){return new Gh(((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Bm&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&a.setRequestHeader(t,e.headers[t]);a.send(t.body)}))}))}const qm="?";function Vm(e,t,n,i){const a={filename:e,function:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==i&&(a.colno=i),a}const Ym=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gm=/\((\S*)(?::(\d+))(?::(\d+))\)/,Hm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Km=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zm=lh(...[[30,e=>{const t=Ym.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Gm.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Jm(t[1]||qm,t[2]);return Vm(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Hm.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Wm.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||qm;return[n,e]=Jm(n,e),Vm(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Km.exec(e);return t?Vm(t[2],t[1]||qm,+t[3],t[4]?+t[4]:void 0):void 0}]]),Jm=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:qm,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Xm{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Xm.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:Qm,onunhandledrejection:eg}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function Qm(){wh("error",(e=>{const[t,n,i]=ig();if(!t.getIntegration(Xm))return;const{msg:a,url:s,line:r,column:o,error:c}=e;if(Im()||c&&c.__sentry_own_request__)return;const l=void 0===c&&yp(a)?function(e,t,n,i){const a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=gp(e)?e.message:e,r="Error";const o=s.match(a);o&&(r=o[1],s=o[2]);const c={exception:{values:[{type:r,value:s}]}};return tg(c,t,n,i)}(a,s,r,o):tg(Um(n,c||a,void 0,i,!1),s,r,o);l.level="error",ng(t,c,l,"onerror")}))}function eg(){wh("unhandledrejection",(e=>{const[t,n,i]=ig();if(!t.getIntegration(Xm))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(Im()||a&&a.__sentry_own_request__)return!0;const s=vp(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:Um(n,a,void 0,i,!0);s.level="error",ng(t,a,s,"onunhandledrejection")}))}function tg(e,t,n,i){const a=e.exception=e.exception||{},s=a.values=a.values||[],r=s[0]=s[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,u=isNaN(parseInt(n,10))?void 0:n,d=yp(t)&&t.length>0?t:function(){try{return Np.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function ng(e,t,n,i){Fh(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function ig(){const e=Nf(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Xm.__initStatic();const ag=["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"];class sg{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=sg.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&Jp(Tm,"setTimeout",rg),this._options.setInterval&&Jp(Tm,"setInterval",rg),this._options.requestAnimationFrame&&Jp(Tm,"requestAnimationFrame",og),this._options.XMLHttpRequest&&"XMLHttpRequest"in Tm&&Jp(XMLHttpRequest.prototype,"send",cg);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:ag).forEach(lg)}}}function rg(e){return function(...t){const n=t[0];return t[0]=Am(n,{mechanism:{data:{function:dh(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function og(e){return function(t){return e.apply(this,[Am(t,{mechanism:{data:{function:"requestAnimationFrame",handler:dh(e)},handled:!1,type:"instrument"}})])}}function cg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Jp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:dh(t)},handled:!1,type:"instrument"}},i=eh(t);return i&&(n.mechanism.data.handler=dh(i)),Am(t,n)}))})),e.apply(this,t)}}function lg(e){const t=Tm,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Jp(n,"addEventListener",(function(t){return function(n,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=Am(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dh(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Am(i,{mechanism:{data:{function:"addEventListener",handler:dh(i),target:e},handled:!1,type:"instrument"}}),a])}})),Jp(n,"removeEventListener",(function(e){return function(t,n,i){const a=n;try{const n=a&&a.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,a,i)}})))}sg.__initStatic();const ug=1024;class dg{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=dg.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&wh("console",hg),this.options.dom&&wh("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,a="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;a&&a>ug&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=ug),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?zp(e.target,{keyAttrs:i,maxStringLength:a}):zp(e,{keyAttrs:i,maxStringLength:a})}catch(e){n="<unknown>"}0!==n.length&&Nf().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&wh("xhr",fg),this.options.fetch&&wh("fetch",mg),this.options.history&&wh("history",gg),this.options.sentry){const e=Nf().getClient();e&&e.on&&e.on("beforeSendEvent",pg)}}}function pg(e){Nf().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Ph(e)},{event:e})}function hg(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":Kh.includes(n)?n:"log"),message:Rp(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Rp(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}Nf().addBreadcrumb(t,{input:e.args,level:e.level})}function fg(e){const{startTimestamp:t,endTimestamp:n}=e,i=e.xhr[_h];if(!t||!n||!i)return;const{method:a,url:s,status_code:r,body:o}=i,c={method:a,url:s,status_code:r},l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function mg(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,a={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},a)}else{const i={...e.fetchData,status_code:e.response&&e.response.status},a={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};Nf().addBreadcrumb({category:"fetch",data:i,type:"http"},a)}}function gg(e){let t=e.from,n=e.to;const i=Wh(Tm.location.href);let a=Wh(t);const s=Wh(n);a.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===a.protocol&&i.host===a.host&&(t=a.relative),Nf().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}dg.__initStatic();class _g{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=_g.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){const i=n.getOptions();Cp(Cm,i.stackParser,i.maxValueLength,this._key,this._limit,e,t)}}_g.__initStatic();class yg{static __initStatic(){this.id="HttpContext"}constructor(){this.name=yg.id}setupOnce(){Rf((e=>{if(Nf().getIntegration(yg)){if(!Tm.navigator&&!Tm.location&&!Tm.document)return e;const t=e.request&&e.request.url||Tm.location&&Tm.location.href,{referrer:n}=Tm.document||{},{userAgent:i}=Tm.navigator||{},a={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},s={...e.request,...t&&{url:t},headers:a};return{...e,request:s}}return e}))}}yg.__initStatic();class vg{static __initStatic(){this.id="Dedupe"}constructor(){this.name=vg.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(vg);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!wg(e,t))return!1;if(!bg(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=xg(t),i=xg(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!wg(e,t))return!1;if(!bg(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function bg(e,t){let n=Eg(e),i=Eg(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function wg(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function xg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eg(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}vg.__initStatic();const Sg=[new Sm,new wm,new sg,new dg,new Xm,new _g,new vg,new yg];function kg(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Sg),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Tm.SENTRY_RELEASE&&Tm.SENTRY_RELEASE.id&&(e.release=Tm.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Zm,Array.isArray(n)?lh(...n):n),integrations:cm(e),transport:e.transport||(hh()?zm:$m)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Yp.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=Nf();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Nm,t),e.autoSessionTracking&&function(){if(void 0===Tm.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=Nf();if(!e.captureSession)return;Tg(e),wh("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Tg(Nf())}))}()}function Tg(e){e.startSession({ignoreDuration:!0}),e.captureSession()}const Rg=Up,Ig="sentryReplaySession",Ag="replay_event",Cg="Unable to send Replay",Og=15e4,Lg=5e3,jg=2e7,Pg=36e5;var Ug;function Fg(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Dg({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");const i="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||i&&e[i]||"password"===i||"input"===t&&!n&&e.text}function Ng({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:i,tagName:a,type:s,value:r,maskInputFn:o}){let c=r||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(s="password"),(Dg({maskInputOptions:i,tagName:a,type:s})||t&&e.matches(t))&&(c=o?o(c):"*".repeat(c.length))),c}!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"}(Ug||(Ug={}));const Mg="__rrweb_original__";function zg(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function Bg(e,t,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let $g=1;const qg=new RegExp("[^a-z0-9-_:]"),Vg=-2;function Yg(e){return e?e.replace(/[\S]/g,"*"):""}function Gg(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(Hg).join(""):null}catch(e){return null}}function Hg(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Gg(e.styleSheet)||t}catch(e){}return Wg(t)}function Wg(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}let Kg,Zg;const Jg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xg=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Qg=/^(data:)([^,]*),(.*)/i;function e_(e,t){return(e||"").replace(Jg,((e,n,i,a,s,r)=>{const o=i||s||r,c=n||a||"";if(!o)return e;if(!Xg.test(o))return`url(${c}${o}${c})`;if(Qg.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 l=t.split("/"),u=o.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const t_=/^[^ \t\n\r\u000c]+/,n_=/^[, \t\n\r\u000c]+/;function i_(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function a_(){const e=document.createElement("a");return e.href="",e.href}function s_(e,t,n,i,a,s,r,o){if(!a)return a;const c=i.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==a[0]?i_(e,a):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i,a=e.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}let a=[];for(;i(n_),!(n>=t.length);){let s=i(t_);if(","===s.slice(-1))s=i_(e,s.substring(0,s.length-1)),a.push(s);else{let i="";s=i_(e,s);let r=!1;for(;;){let e=t.charAt(n);if(""===e){a.push((s+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,a.push((s+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return a.join(", ")}(e,a):"style"===c?e_(a,a_()):"object"===l&&"data"===c?i_(e,a):s&&function(e,t,n,i){if(i&&e.matches(i))return!1;return["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}(t,c,l,r)?o?o(a):Yg(a):a:i_(e,a)}function r_(e,t,n,i,a){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r_(e.parentNode,t,n,i,a);if(i&&(e.matches(i)||e.closest(i)))return!1;if(a)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!(!n||!e.matches(n))||r_(e.parentNode,t,n,i,a)}function o_(e,t){var n;const{doc:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b}=t;let w;if(i.__sn){const e=i.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Ug.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:Ug.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:Ug.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,i){if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!!n&&e.matches(n)}(e,a,s,r),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return qg.test(t)?"div":t}(e);let k={};for(const{name:t,value:n}of Array.from(e.attributes))u_(S,t)||(k[t]=s_(i,e,S,t,n,h,l,m));if("link"===S&&u){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Gg(t)),n&&(delete k.rel,delete k.href,k._cssText=e_(n,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Gg(e.sheet);t&&(k._cssText=e_(t,a_()))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=zg(t),i=Bg(t,S.toUpperCase(),n),a=e.checked;"submit"!==n&&"button"!==n&&i&&(k.value=Ng({input:t,type:n,tagName:S,value:i,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:f,maskInputFn:g})),a&&(k.checked=a)}if("option"===S&&(e.selected&&!f.select?k.selected=!0:delete k.selected),"canvas"===S&&v)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const a=t.getImageData,s=Mg in a?a[Mg]:a;if(new Uint32Array(s.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(_.type,_.quality));else if(!("__context"in e)){const t=e.toDataURL(_.type,_.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(_.type,_.quality)&&(k.rr_dataURL=t)}if("img"===S&&y){Kg||(Kg=i.createElement("canvas"),Zg=Kg.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const a=()=>{try{Kg.width=t.naturalWidth,Kg.height=t.naturalHeight,Zg.drawImage(t,0,0),k.rr_dataURL=Kg.toDataURL(_.type,_.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?k.crossOrigin=n:delete k.crossOrigin};t.complete&&0!==t.naturalWidth?a():t.onload=a}if("audio"!==S&&"video"!==S||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==S||b(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src),{type:Ug.Element,tagName:S,attributes:k,childNodes:[],isSVG:(E=e,Boolean("svg"===E.tagName||E.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const T=e.parentNode&&e.parentNode.tagName;let R=e.textContent;const I="STYLE"===T||void 0,A="SCRIPT"===T||void 0;if(I&&R){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(R=(x=e.parentNode.sheet).cssRules?Array.from(x.cssRules).map((e=>e.cssText?Wg(e.cssText):"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}R=e_(R,a_())}if(A&&(R="SCRIPT_PLACEHOLDER"),"TEXTAREA"===T&&R)R="";else if("OPTION"===T&&R){R=Ng({input:e.parentNode,type:null,tagName:T,value:R,maskInputSelector:d,unmaskInputSelector:p,maskInputOptions:f,maskInputFn:g})}else!I&&!A&&r_(e,o,c,l,h)&&R&&(R=m?m(R):Yg(R));return{type:Ug.Text,textContent:R||"",isStyle:I,rootId:w};case e.CDATA_SECTION_NODE:return{type:Ug.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Ug.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var x,E}function c_(e){return null==e?"":e.toLowerCase()}function l_(e,t){const{doc:n,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m={},maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S=5e3,keepIframeSrcFn:k=(()=>!1)}=t;let{preserveWhiteSpace:T=!0}=t;const R=o_(e,{doc:n,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:k});if(!R)return console.warn(e,"not serialized"),null;let I;I="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===Ug.Comment)return!0;if(e.type===Ug.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&&(c_(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===c_(e.attributes.name)||"icon"===c_(e.attributes.rel)||"apple-touch-icon"===c_(e.attributes.rel)||"shortcut icon"===c_(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&c_(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(c_(e.attributes.property).match(/^(og|twitter|fb):/)||c_(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===c_(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===c_(e.attributes.name)||"googlebot"===c_(e.attributes.name)||"bingbot"===c_(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===c_(e.attributes.name)||"generator"===c_(e.attributes.name)||"framework"===c_(e.attributes.name)||"publisher"===c_(e.attributes.name)||"progid"===c_(e.attributes.name)||c_(e.attributes.property).match(/^article:/)||c_(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===c_(e.attributes.name)||"yandex-verification"===c_(e.attributes.name)||"csrf-token"===c_(e.attributes.name)||"p:domain_verify"===c_(e.attributes.name)||"verify-v1"===c_(e.attributes.name)||"verification"===c_(e.attributes.name)||"shopify-checkout-api-token"===c_(e.attributes.name)))return!0}}return!1}(R,y)&&(T||R.type!==Ug.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?$g++:Vg;const A=Object.assign(R,{id:I});if(e.__sn=A,I===Vg)return null;i[I]=e,x&&x(e);let C=!u;if(A.type===Ug.Element&&(C=C&&!A.needBlock,delete A.needBlock,e.shadowRoot&&(A.isShadowHost=!0)),(A.type===Ug.Document||A.type===Ug.Element)&&C){y.headWhitespace&&R.type===Ug.Element&&"head"===R.tagName&&(T=!1);const t={doc:n,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S,keepIframeSrcFn:k};for(const n of Array.from(e.childNodes)){const e=l_(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const e=l_(n,t);e&&(e.isShadow=!0,A.childNodes.push(e))}}return e.parentNode&&Fg(e.parentNode)&&(A.isShadow=!0),A.type===Ug.Element&&"iframe"===A.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let a,s=!1;try{a=i.document.readyState}catch(e){return}if("complete"!==a){const i=setTimeout((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),s=!0,t()}))}const r="about:blank";i.location.href===r&&e.src!==r&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&E){const n=l_(t,{doc:t,map:i,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputSelector:p,unmaskInputSelector:h,maskAllText:f,maskInputOptions:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:E,iframeLoadTimeout:S,keepIframeSrcFn:k});n&&E(e,n)}}),S),A}function u_(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var d_,p_,h_,f_,m_,g_;function __(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}!function(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"}(d_||(d_={})),function(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"}(p_||(p_={})),function(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"}(h_||(h_={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(f_||(f_={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(m_||(m_={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(g_||(g_={}));const y_="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 v_={map:{},getId:()=>(console.error(y_),-1),getNode:()=>(console.error(y_),null),removeNodeFromMap(){console.error(y_)},has:()=>(console.error(y_),!1),reset(){console.error(y_)}};function b_(e,t,n={}){let i=null,a=0;return function(s){let r=Date.now();a||!1!==n.leading||(a=r);let o=t-(r-a),c=this,l=arguments;o<=0||o>t?(i&&(clearTimeout(i),i=null),a=r,e.apply(c,l)):i||!1===n.trailing||(i=setTimeout((()=>{a=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),o))}}function w_(e,t,n,i,a=window){const s=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),s&&s.set&&s.set.call(this,e)}}),()=>w_(e,t,s||{},!0)}function x_(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],a=n(i);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=a,()=>{e[t]=i}}catch(e){return()=>{}}}function E_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function S_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function k_(e,t,n,i){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let a=!1;const s=i&&e.matches(i);return"string"==typeof t?a=void 0!==e.closest?!s&&null!==e.closest("."+t):!s&&e.classList.contains(t):!s&&e.classList.forEach((e=>{t.test(e)&&(a=!0)})),!a&&n&&(a=e.matches(n)),!s&&a||k_(e.parentNode,t,n,i)}return e.nodeType,e.TEXT_NODE,k_(e.parentNode,t,n,i)}function T_(e){return"__sn"in e&&e.__sn.id===Vg}function R_(e,t){if(Fg(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||R_(e.parentNode,t))}function I_(e){return Boolean(e.changedTouches)}function A_(e){return"__sn"in e&&(e.__sn.type===Ug.Element&&"iframe"===e.__sn.tagName)}function C_(e){return Boolean(null==e?void 0:e.shadowRoot)}function O_(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(v_=new Proxy(v_,{get:(e,t,n)=>("map"===t&&console.error(y_),Reflect.get(e,t,n))}));class L_{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&O_(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&O_(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=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.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}const j_=(e,t)=>`${e}@${t}`;function P_(e){return"__sn"in e}class U_{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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 L_,n=e=>{let t=e,n=Vg;for(;n===Vg;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{var a,s,r,o,c;const l=i.getRootNode?null===(a=i.getRootNode())||void 0===a?void 0:a.host:null;let u=l;for(;null===(r=null===(s=null==u?void 0:u.getRootNode)||void 0===s?void 0:s.call(u))||void 0===r?void 0:r.host;)u=(null===(c=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(i)||u&&this.doc.contains(u));if(!i.parentNode||d)return;const p=Fg(i.parentNode)?this.mirror.getId(l):this.mirror.getId(i.parentNode),h=n(i);if(-1===p||-1===h)return t.addNode(i);let f=l_(i,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{A_(e)&&this.iframeManager.addIframe(e),C_(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});f&&e.push({parentId:p,nextId:h,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)D_(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)N_(this.droppedSet,e)||D_(this.removes,e,this.mirror)?N_(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;t.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)for(let i=t.length-1;i>=0;i--){const a=t.get(i);if(a){const t=this.mirror.getId(a.value.parentNode),i=n(a.value);if(-1!==t&&-1!==i){e=a;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}a=e.previous,t.removeNode(e.value),i(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!T_(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:r_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=Ng({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let i=this.attributes.find((t=>t.node===e.target));if(i||(i={node:e.target,attributes:{}},this.attributes.push(i)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});try{const e=i.attributes.style;for(const i of Array.from(t.style)){const a=t.style.getPropertyValue(i),s=t.style.getPropertyPriority(i);a===n.style.getPropertyValue(i)&&s===n.style.getPropertyPriority(i)||(e[i]=""===s?a:[a,s])}for(const i of Array.from(n.style))""===t.style.getPropertyValue(i)&&(e[i]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;i.attributes[e.attributeName]=s_(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=Fg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);k_(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||T_(t)||(this.addedSet.has(t)?(F_(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||R_(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[j_(n,i)]?F_(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!!Fg(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!k_(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(P_(e)){if(T_(e))return;this.movedSet.add(e);let n=null;t&&P_(t)&&(n=t.__sn.id),n&&(this.movedMap[j_(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);k_(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 F_(e,t){e.delete(t),t.childNodes.forEach((t=>F_(e,t)))}function D_(e,t,n){const{parentNode:i}=t;if(!i)return!1;const a=n.getId(i);return!!e.some((e=>e.id===a))||D_(e,i,n)}function N_(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||N_(e,n))}const M_=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},z_=[];function B_(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 $_(e,t){var n,i;const a=new U_;z_.push(a),a.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const r=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");r&&window[r]&&(s=window[r]);const o=new s(M_((t=>{e.onMutation&&!1===e.onMutation(t)||a.processMutations(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function q_({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];return Object.keys(h_).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{const o=r.toLowerCase(),l=M_((t=>r=>{const o=B_(r);if(k_(o,i,a,s))return;const c=I_(r)?r.changedTouches[0]:r;if(!c)return;const l=n.getId(o),{clientX:u,clientY:d}=c;M_(e)({type:h_[t],id:l,x:u,y:d})})(r));c.push(__(o,l,t))})),M_((()=>{c.forEach((e=>e()))}))}function V_({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,sampling:r}){const o=b_((r=>{const o=B_(r);if(!o||k_(o,i,a,s))return;const c=n.getId(o);if(o===t){const n=t.scrollingElement||t.documentElement;M_(e)({id:c,x:n.scrollLeft,y:n.scrollTop})}else M_(e)({id:c,x:o.scrollLeft,y:o.scrollTop})}),r.scroll||100);return __("scroll",M_(o),t)}function Y_(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const G_=["INPUT","TEXTAREA","SELECT"],H_=new WeakMap;function W_({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,ignoreClass:r,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:u,maskInputFn:d,sampling:p,userTriggeredOnInput:h}){function f(e){let n=B_(e);const p=n&&n.tagName,f=e.isTrusted;if("OPTION"===p&&(n=n.parentElement),!n||!p||G_.indexOf(p)<0||k_(n,i,a,s))return;const g=n,_=zg(g);if(g.classList.contains(r)||o&&g.matches(o))return;let y=Bg(g,p,_),v=!1;"radio"!==_&&"checkbox"!==_||(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:i}){return i||Dg({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:u,maskInputSelector:c,tagName:p,type:_})&&(y=Ng({input:g,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:_,value:y,maskInputFn:d})),m(n,M_(Y_)({text:y,isChecked:v,userTriggered:f},h));const b=n.name;"radio"===_&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((e=>{if(e!==n){const t=Ng({input:e,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:_,value:Bg(e,p,_),maskInputFn:d});m(e,M_(Y_)({text:t,isChecked:!v,userTriggered:!1},h))}}))}function m(t,i){const a=H_.get(t);if(!a||a.text!==i.text||a.isChecked!==i.isChecked){H_.set(t,i);const a=n.getId(t);e(Object.assign(Object.assign({},i),{id:a}))}}const g=("last"===p.input?["change"]:["input","change"]).map((e=>__(e,M_(f),t))),_=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return _&&_.set&&g.push(...y.map((e=>w_(e[0],e[1],{set(){M_(f)({target:this})}})))),M_((()=>{g.forEach((e=>e()))}))}function K_(e){return function(e,t){if(J_("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||J_("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||J_("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||J_("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Z_(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:r,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),a(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),r(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)}}(e,t);const i=$_(e,e.doc),a=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=b_((t=>{const n=Date.now()-r;M_(e)(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null}),s),l=b_((e=>{const t=B_(e),{clientX:n,clientY:a}=I_(e)?e.changedTouches[0]:e;r||(r=Date.now()),o.push({x:n,y:a,id:i.getId(t),timeOffset:Date.now()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?p_.Drag:e instanceof MouseEvent?p_.MouseMove:p_.TouchMove)}),a,{trailing:!1}),u=[__("mousemove",M_(l),n),__("touchmove",M_(l),n),__("drag",M_(l),n)];return M_((()=>{u.forEach((e=>e()))}))}(e),s=q_(e),r=V_(e),o=function({viewportResizeCb:e}){let t=-1,n=-1;const i=b_((()=>{const i=E_(),a=S_();t===i&&n===a||(M_(e)({width:Number(a),height:Number(i)}),t=i,n=a)}),200);return __("resize",M_(i),window)}(e),c=W_(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:a,sampling:s}){const r=r=>b_(M_((s=>{const o=B_(s);if(!o||k_(o,t,n,i))return;const{currentTime:c,volume:l,muted:u}=o;e({type:r,id:a.getId(o),currentTime:c,volume:l,muted:u})})),s.media||500),o=[__("play",r(0)),__("pause",r(1)),__("seeked",r(2)),__("volumechange",r(3))];return M_((()=>{o.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M_(((n,i,a)=>{const[s,r]=a,o=t.getId(i.ownerNode);return-1!==o&&e({id:o,adds:[{rule:s,index:r}]}),n.apply(i,a)}))});const a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:M_(((n,i,a)=>{const[s]=a,r=t.getId(i.ownerNode);return-1!==r&&e({id:r,removes:[{index:s}]}),n.apply(i,a)}))});const s={};X_("CSSGroupingRule")?s.CSSGroupingRule=n.CSSGroupingRule:(X_("CSSMediaRule")&&(s.CSSMediaRule=n.CSSMediaRule),X_("CSSConditionRule")&&(s.CSSConditionRule=n.CSSConditionRule),X_("CSSSupportsRule")&&(s.CSSSupportsRule=n.CSSSupportsRule));const r={};return Object.entries(s).forEach((([n,i])=>{r[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(r[n].insertRule,{apply:M_(((n,i,a)=>{const[s,r]=a,o=t.getId(i.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:s,index:[...K_(i),r||0]}]}),n.apply(i,a)}))}),i.prototype.deleteRule=new Proxy(r[n].deleteRule,{apply:M_(((n,i,a)=>{const[s]=a,r=t.getId(i.parentStyleSheet.ownerNode);return-1!==r&&e({id:r,removes:[{index:[...K_(i),s]}]}),n.apply(i,a)}))})})),M_((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach((([e,t])=>{t.prototype.insertRule=r[e].insertRule,t.prototype.deleteRule=r[e].deleteRule}))}))}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:M_(((n,i,a)=>{var s,r;const[o,c,l]=a,u=t.getId(null===(r=null===(s=i.parentRule)||void 0===s?void 0:s.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==u&&e({id:u,set:{property:o,value:c,priority:l},index:K_(i.parentRule)}),n.apply(i,a)}))});const a=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:M_(((n,i,a)=>{var s,r;const[o]=a,c=t.getId(null===(r=null===(s=i.parentRule)||void 0===s?void 0:s.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==c&&e({id:c,remove:{property:o},index:K_(i.parentRule)}),n.apply(i,a)}))}),M_((()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const i=new s(e,t,n);return a.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=x_(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=a.get(n);t&&(e(t),a.delete(n))}),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=s})),i.push(r),M_((()=>{i.forEach((e=>e()))}))}(e):()=>{},h=[];for(const t of e.plugins)h.push(t.observer(t.callback,n,t.options));return M_((()=>{z_.forEach((e=>e.reset())),i.disconnect(),a(),s(),r(),o(),c(),l();try{u(),d()}catch(e){}p(),h.forEach((e=>e()))}))}function J_(e){return void 0!==window[e]}function X_(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Q_{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class ey{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(x_(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){$_(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),V_(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(x_(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),i}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ny="undefined"==typeof Uint8Array?[]:new Uint8Array(256),iy=0;iy<64;iy++)ny[ty.charCodeAt(iy)]=iy;const ay=new Map;const sy=(e,t,n)=>{if(!e||!cy(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=ay.get(e);return n||(n=new Map,ay.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let a=i.indexOf(e);return-1===a&&(a=i.length,i.push(e)),a};function ry(e,t,n){if(e instanceof Array)return e.map((e=>ry(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,a="";for(t=0;t<i;t+=3)a+=ty[n[t]>>2],a+=ty[(3&n[t])<<4|n[t+1]>>4],a+=ty[(15&n[t+1])<<2|n[t+2]>>6],a+=ty[63&n[t+2]];return i%3==2?a=a.substring(0,a.length-1)+"=":i%3==1&&(a=a.substring(0,a.length-2)+"=="),a}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[ry(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[ry(e.data,t,n),e.width,e.height]}}if(cy(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:sy(e,t,n)}}return e}const oy=(e,t,n)=>[...e].map((e=>ry(e,t,n))),cy=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function ly(e,t,n,i,a,s,r,o){const c=[],l=Object.getOwnPropertyNames(e);for(const u of l)try{if("function"!=typeof e[u])continue;const l=x_(e,u,(function(c){return function(...l){const d=c.apply(this,l);if(sy(d,o,e),!k_(this.canvas,i,s,a)){r.getId(this.canvas);const i=oy([...l],o,e),a={type:t,property:u,args:i};n(this.canvas,a)}return d}}));c.push(l)}catch(i){const a=w_(e,u,{set(e){n(this.canvas,{type:t,property:u,args:[e],setter:!0})}});c.push(a)}return c}class uy{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=function(e,t,n,i){const a=[];try{const s=x_(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(a,...s){return k_(this,t,n,i)||"__context"in this||(this.__context=a),e.apply(this,[a,...s])}}));a.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach((e=>e()))}}(e,t,i,n),s=function(e,t,n,i,a,s){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const o=x_(t.CanvasRenderingContext2D.prototype,s,(function(t){return function(...r){return k_(this.canvas,n,a,i)||setTimeout((()=>{const t=[...r];if("drawImage"===s&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let i=null==n?void 0:n.getImageData(0,0,e.width,e.height),a=null==i?void 0:i.data;t[0]=JSON.stringify(a)}e(this.canvas,{type:f_["2D"],property:s,args:t})}),0),t.apply(this,r)}}));r.push(o)}catch(n){const i=w_(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:f_["2D"],property:s,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror),r=function(e,t,n,i,a,s){const r=[];return r.push(...ly(t.WebGLRenderingContext.prototype,f_.WebGL,e,n,i,a,s,t)),void 0!==t.WebGL2RenderingContext&&r.push(...ly(t.WebGL2RenderingContext.prototype,f_.WebGL2,e,n,i,a,s,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror);this.resetObservers=()=>{a(),s(),r()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}(e,["type"]);return t})),{type:a}=n[0];this.mutationCb({id:t,type:a,commands:i}),this.pendingCanvasMutations.delete(e)}}function dy(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let py,hy;const fy={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function my(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:p=null,unmaskInputSelector:h=null,inlineStylesheet:f=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskInputFn:v,maskTextFn:b,hooks:w,packFn:x,sampling:E={},mousemoveWait:S,recordCanvas:k=!1,userTriggeredOnInput:T=!1,collectFonts:R=!1,inlineImages:I=!1,plugins:A,keepIframeSrcFn:C=(()=>!1),onMutation:O}=e;if(!t)throw new Error("emit function is required");void 0!==S&&void 0===E.mousemove&&(E.mousemove=S);const L=!0===g?{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!==_?_:{},j=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let P;!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=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let U=0;py=(e,a)=>{var s;if(!(null===(s=z_[0])||void 0===s?void 0:s.isFrozen())||e.type===d_.FullSnapshot||e.type===d_.IncrementalSnapshot&&e.data.source===p_.Mutation||z_.forEach((e=>e.unfreeze())),t((e=>{for(const t of A||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&(e=x(e)),e})(e),a),e.type===d_.FullSnapshot)P=e,U=0;else if(e.type===d_.IncrementalSnapshot){if(e.data.source===p_.Mutation&&e.data.isAttachIframe)return;U++;const t=i&&U>=i,a=n&&e.timestamp-P.timestamp>n;(t||a)&&hy(!0)}};const F=e=>{py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Mutation},e)}))},D=e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Scroll},e)})),N=e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.CanvasMutation},e)})),M=new Q_({mutationCb:F}),z=new uy({recordCanvas:k,mutationCb:N,win:window,blockClass:a,blockSelector:s,unblockSelector:r,mirror:fy}),B=new ey({mutationCb:F,scrollCb:D,bypassOptions:{onMutation:O,blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:m,maskInputOptions:L,maskTextFn:b,maskInputFn:v,recordCanvas:k,inlineImages:I,sampling:E,slimDOMOptions:j,iframeManager:M,canvasManager:z},mirror:fy});hy=(e=!1)=>{var t,n,i,o;py(dy({type:d_.Meta,data:{href:window.location.href,width:S_(),height:E_()}}),e),z_.forEach((e=>e.lock()));const[c,g]=function(e,t){const{blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskTextClass:s="rr-mask",maskTextSelector:r=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:p=null,maskAllText:h=!1,maskAllInputs:f=!1,maskTextFn:m,maskInputFn:g,slimDOM:_=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:E=(()=>!1)}=t||{},S={};return[l_(e,{doc:e,map:S,blockClass:n,blockSelector:i,unblockSelector:a,maskTextClass:s,maskTextSelector:r,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:p,maskAllText:h,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,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:y,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:E}),S]}(document,{blockClass:a,blockSelector:s,unblockSelector:r,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:f,maskAllText:m,maskAllInputs:L,maskTextFn:b,slimDOM:j,recordCanvas:k,inlineImages:I,onSerialize:e=>{A_(e)&&M.addIframe(e),C_(e)&&B.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{M.attachIframe(e,t),B.observeAttachShadow(e)},keepIframeSrcFn:C});if(!c)return console.warn("Failed to snapshot the document");fy.map=g,py(dy({type:d_.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),z_.forEach((e=>e.unlock()))};try{const e=[];e.push(__("DOMContentLoaded",(()=>{py(dy({type:d_.DomContentLoaded,data:{}}))})));const t=e=>{var t;return M_(Z_)({onMutation:O,mutationCb:F,mousemoveCb:(e,t)=>py(dy({type:d_.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.MouseInteraction},e)})),scrollCb:D,viewportResizeCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.ViewportResize},e)})),inputCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Input},e)})),mediaInteractionCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.MediaInteraction},e)})),styleSheetRuleCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.StyleSheetRule},e)})),styleDeclarationCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.StyleDeclaration},e)})),canvasMutationCb:N,fontCb:e=>py(dy({type:d_.IncrementalSnapshot,data:Object.assign({source:p_.Font},e)})),blockClass:a,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:L,inlineStylesheet:f,sampling:E,recordCanvas:k,inlineImages:I,userTriggeredOnInput:T,collectFonts:R,doc:e,maskAllText:m,maskInputFn:v,maskTextFn:b,blockSelector:s,unblockSelector:r,slimDOMOptions:j,mirror:fy,iframeManager:M,shadowDomManager:B,canvasManager:z,plugins:(null===(t=null==A?void 0:A.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>py(dy({type:d_.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};M.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{hy(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(__("load",(()=>{py(dy({type:d_.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}function gy(e){return e>9999999999?e:1e3*e}function _y(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:d_.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:zh(t,10,1e3)}}),"console"===t.category))))}my.addCustomEvent=(e,t)=>{if(!py)throw new Error("please add custom event after start recording");py(dy({type:d_.Custom,data:{tag:e,payload:t}}))},my.freezePage=()=>{z_.forEach((e=>e.freeze()))},my.takeFullSnapshot=e=>{if(!hy)throw new Error("please take full snapshot after start recording");hy(e)},my.mirror=fy;const yy="button,a";function vy(e){const t=by(e);if(!(t&&t instanceof Element))return t;return t.closest(yy)||t}function by(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let wy;function xy(e){return wy||(wy=[],Jp(Rg,"open",(function(e){return function(...t){if(wy)try{wy.forEach((e=>e()))}catch(e){}return e.apply(Rg,t)}}))),wy.push(e),()=>{const t=wy?wy.indexOf(e):-1;t>-1&&wy.splice(t,1)}}class Ey{constructor(e,t,n=_y){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=n}addListeners(){const e=()=>{this._lastScroll=ky()},t=xy((()=>{this._lastMutation=ky()})),n=e=>{if(!e.target)return;const t=vy(e);t&&this._handleMultiClick(t)},i=new MutationObserver((()=>{this._lastMutation=ky()}));i.observe(Rg.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Rg.addEventListener("scroll",e,{passive:!0}),Rg.addEventListener("click",n,{passive:!0}),this._teardown=()=>{Rg.removeEventListener("scroll",e),Rg.removeEventListener("click",n),t(),i.disconnect(),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(!Sy.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 n={timestamp:(i=e.timestamp,i>9999999999?i/1e3:i),clickBreadcrumb:e,clickCount:0,node:t};var i;this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ky();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));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,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!i,{clickCount:s,clickBreadcrumb:r}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Rg.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:s||1}};this._addBreadcrumbEvent(t,a)}else if(s>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Rg.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Sy=["A","BUTTON","INPUT"];function ky(){return Date.now()/1e3}function Ty(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ry;!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"}(Ry||(Ry={}));const Iy=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function Ay(e){const t={};for(const n in e)if(Iy.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const Cy=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,i=null;try{i=t?vy(e.event):by(e.event),n=zp(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return Ty({category:`ui.${e.name}`,...Oy(t,n)})}(t);if(!n)return;const i="click"===t.name,a=i&&t.event;var s,r,o;!(i&&e.clickDetector&&a)||a.altKey||a.metaKey||a.ctrlKey||a.shiftKey||(s=e.clickDetector,r=n,o=vy(t.event),s.handleClick(r,o)),_y(e,n)};function Oy(e,t){const n=e&&"__sn"in e&&e.__sn.type===Ry.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map((e=>"__sn"in e&&e.__sn.type===Ry.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:Ay(n.attributes)}}:{}}}function Ly(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:a,key:s,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!s)return null;const o=t||i||a,c=1===s.length;if(!o&&c)return null;const l=zp(r,{maxStringLength:200})||"<unknown>",u=Oy(r,l);return Ty({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:a,key:s}})}(t);n&&_y(e,n)}const jy=["name","type","startTime","transferSize","duration"];function Py(e){return function(t){return jy.every((n=>e[n]===t[n]))}}function Uy(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,i,a]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),s=[],r=[];let o=i.length?i[i.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)s.push(e);else{const t=e;e.duration>0&&!n.find(Py(t))&&!r.find(Py(t))&&r.push(t)}else(!o||o.startTime<e.startTime)&&(o=e)})),[...o?[o]:[],...n,...a,...s,...r].sort(((e,t)=>e.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}const Fy='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Dy(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Yp.info(e),t&&My(e))}function Ny(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Yp.info(e),t&&setTimeout((()=>{My(e)}),0))}function My(e){Nf().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class zy extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class By{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>jg)throw new zy;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?gy(e):null}}class $y{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Dy("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,a)=>{const s=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",s),!r.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay]",r.response),void a(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class qy{constructor(e){this._worker=new $y(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=gy(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>jg?Promise.reject(new zy):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}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 Vy{constructor(e){this._fallback=new By,this._compression=new qy(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 Dy("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Replay] Failed to add events when switching buffers.",e)}}}function Yy({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob([Fy]);return URL.createObjectURL(e)}();Dy("[Replay] Using compression worker");const t=new Worker(e);return new Vy(t)}catch(e){Dy("[Replay] Failed to create compression worker")}return Dy("[Replay] Using simple buffer"),new By}function Gy(){try{return"sessionStorage"in Rg&&!!Rg.sessionStorage}catch(e){return!1}}function Hy(e){!function(){if(!Gy())return;try{Rg.sessionStorage.removeItem(Ig)}catch(e){}}(),e.session=void 0}function Wy(e){return void 0!==e&&Math.random()<e}function Ky(e){if(Gy())try{Rg.sessionStorage.setItem(Ig,JSON.stringify(e))}catch(e){}}function Zy(e){const t=Date.now();return{id:e.id||Lh(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Jy({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const a=function(e,t){return Wy(e)?"session":!!t&&"buffer"}(e,t),s=Zy({sampled:a,previousSessionId:i});return n&&Ky(s),s}function Xy(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Qy(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return Xy(e.started,t,i)||Xy(e.lastActivity,n,i)}function ev(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Qy(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function tv({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},a){const s=a.stickySession&&function(e){if(!Gy())return null;try{const t=Rg.sessionStorage.getItem(Ig);if(!t)return null;const n=JSON.parse(t);return Ny("[Replay] Loading existing session",e),Zy(n)}catch(e){return null}}(e);return s?ev(s,{sessionIdleExpire:t,maxReplayDuration:n})?(Ny("[Replay] Session in sessionStorage is expired, creating new one..."),Jy(a,{previousSessionId:s.id})):s:(Ny("[Replay] Creating new session",e),Jy(a,{previousSessionId:i}))}function nv(e,t,n){return!!av(e,t)&&(iv(e,t,n),!0)}async function iv(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===d_.Custom}(e))return t(e)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof zy?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(t),await e.stop({reason:n});const i=Nf().getClient();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function av(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=gy(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Dy(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function sv(e){return!e.type}function rv(e){return"transaction"===e.type}function ov(e){const t=function(){const e=Nf().getClient();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!sv(n)&&!rv(n))return;const a=i&&i.statusCode;t&&(!a||a<200||a>=300)||(rv(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function cv(e,t=!1){const n=t?ov(e):void 0;return(t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!sv(t)&&!rv(t))return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,i)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Replay] Ignoring error from rrweb internals",t),null;const a=function(e,t){return"buffer"===e.recordingMode&&t.message!==Cg&&!(!t.exception||t.type)&&Wy(e.getOptions().errorSampleRate)}(e,t);return(a||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}function lv(e,t){return t.map((({type:t,start:n,end:i,name:a,data:s})=>{const r=e.throttledAddEvent({type:d_.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:i,data:s}}});return"string"==typeof r?Promise.resolve(null):r}))}function uv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(lv(e,[n]),!1))))}}function dv(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=Nf().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}function pv(e,t){e.isEnabled()&&null!==t&&(dv(e,t.name)||e.addUpdate((()=>(lv(e,[t]),!0))))}function hv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,a=i[_h];if(!t||!n||!a)return null;const{method:s,url:r,status_code:o}=a;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:s,statusCode:o}}}(t);pv(e,n)}}const fv=10,mv=11,gv=12,_v=13,yv=14,vv=15,bv=20,wv=21,xv=22,Ev=23,Sv=["true","false","null"];function kv(e,t){if(!t.length)return e;let n=e;const i=t.length-1;n=function(e,t){switch(t){case fv:return`${e}"~~":"~~"`;case mv:return`${e}:"~~"`;case gv:return`${e}~~":"~~"`;case _v:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);if(Sv.includes(n.trim()))return`${e},"~~":"~~"`;return`${e.slice(0,t+1)}"~~"`}(e);case yv:return`${e}~~"`;case vv:return`${e},"~~":"~~"`;case bv:return`${e}"~~"`;case wv:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Sv.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case xv:return`${e}~~"`;case Ev:return`${e},"~~"`}return e}(n,t[i]);for(let e=i;e>=0;e--){switch(t[e]){case fv:n=`${n}}`;break;case bv:n=`${n}]`}}return n}function Tv(e,t,n){const i=e[e.length-1],a=t[n];if(!/\s/.test(a))if('"'!==a||Rv(t,n))switch(a){case"{":!function(e,t){if(!t)return void e.push(fv);if(t===_v)return void e.push(fv);t===wv&&e.push(fv);if(t===bv)e.push(fv)}(e,i);break;case"[":!function(e,t){if(!t)return e.push(bv),void e.push(wv);if(t===_v)return e.push(bv),void e.push(wv);t===wv&&(e.push(bv),e.push(wv));if(t===bv)e.push(bv),e.push(wv)}(e,i);break;case":":!function(e,t){t===mv&&(e.pop(),e.push(_v))}(e,i);break;case",":!function(e,t){if(t===_v)return void e.pop();if(t===vv)return e.pop(),void e.pop();if(t===wv)return;if(t===Ev)e.pop()}(e,i);break;case"}":!function(e,t){t===fv&&e.pop();t===_v&&(e.pop(),e.pop());t===vv&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(vv);e[e.length-1]===wv&&e.push(Ev)}(e,i);break;case"]":!function(e,t){t===bv&&e.pop();t===wv&&(e.pop(),e.pop());t===Ev&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(vv);e[e.length-1]===wv&&e.push(Ev)}(e,i)}else!function(e,t){if(t===yv)return e.pop(),void e.push(vv);if(t===xv)return e.pop(),void e.push(Ev);if(t===_v)return void e.push(yv);if(t===wv)return void e.push(xv);if(t===fv)return void e.push(gv);if(t===gv)e.pop(),e.push(mv)}(e,i)}function Rv(e,t){return"\\"===e[t-1]&&!Rv(e,t-1)}function Iv(e){return kv(e,function(e){const t=[];for(let n=0;n<e.length;n++)Tv(t,e,n);return t}(e))}function Av(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 n=Fv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Cv(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ov(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?Fv(e):void 0}function Lv(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:a,method:s,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:a,data:ah({method:s,statusCode:r,request:o,response:c})}}function jv(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Pv(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:a,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Og;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Iv(e.slice(0,Og)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,Og)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Og)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return i.body=a,s.length>0&&(i._meta={warnings:s}),i}function Uv(e,t){return Object.keys(e).reduce(((n,i)=>{const a=i.toLowerCase();return t.includes(a)&&e[i]&&(n[a]=e[i]),n}),{})}function Fv(e){return new URLSearchParams(e).toString()}function Dv(e,t){const n=function(e,t=Rg.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Rg.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;if(!e.endsWith("/")&&i.endsWith("/"))return i.slice(0,-1);return i}(e);return Ap(n,t)}async function Nv(e,t,n){try{const i=await async function(e,t,n){const{startTimestamp:i,endTimestamp:a}=t,{url:s,method:r,status_code:o=0,request_body_size:c,response_body_size:l}=e.data,u=Dv(s,n.networkDetailAllowUrls)&&!Dv(s,n.networkDetailDenyUrls),d=u?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const a=function(e,t){if(1===e.length&&"string"!=typeof e[0])return Bv(e[0],t);if(2===e.length)return Bv(e[1],t);return{}}(n,t);if(!e)return Pv(a,i,void 0);const s=Ov(Mv(n));return Pv(a,i,s)}(n,t.input,c):jv(c),p=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},a,s){if(!e&&void 0!==s)return jv(s);const r=zv(a.headers,i);if(!t&&void 0!==s)return Pv(r,s,void 0);try{const i=a.clone(),o=await async function(e){try{return await e.text()}catch(e){return}}(i),c=o&&o.length&&void 0===s?Av(o,n):s;return e?Pv(r,c,t?o:void 0):jv(c)}catch(e){return Pv(r,s,void 0)}}(u,n,t.response,l);return{startTimestamp:i,endTimestamp:a,url:s,method:r,statusCode:o,request:d,response:p}}(e,t,n),a=Lv("resource.fetch",i);pv(n.replay,a)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Mv(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function zv(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Bv(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?zv(n,t):Array.isArray(n)?{}:Uv(n,t):{}}async function $v(e,t,n){try{const i=function(e,t,n){const{startTimestamp:i,endTimestamp:a,input:s,xhr:r}=t,{url:o,method:c,status_code:l=0,request_body_size:u,response_body_size:d}=e.data;if(!o)return null;if(!Dv(o,n.networkDetailAllowUrls)||Dv(o,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:a,url:o,method:c,statusCode:l,request:jv(u),response:jv(d)}}const p=r[_h],h=p?Uv(p.request_headers,n.networkRequestHeaders):{},f=Uv(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(r),n.networkResponseHeaders),m=Pv(h,u,n.networkCaptureBodies?Ov(s):void 0),g=Pv(f,d,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:i,endTimestamp:a,url:o,method:c,statusCode:l,request:m,response:g}}(e,t,n),a=Lv("resource.xhr",i);pv(n.replay,a)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function qv(e){const t=Nf().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:a,networkCaptureBodies:s,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:a,networkCaptureBodies:s,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(!function(e,t,n){const{xhr:i,input:a}=t,s=Av(a,n.textEncoder),r=i.getResponseHeader("content-length")?Cv(i.getResponseHeader("content-length")):Av(i.response,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),$v(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:a}=t,s=Av(Mv(i),n.textEncoder),r=a?Cv(a.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),Nv(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Error when enriching network breadcrumb")}}(c,e,t))):(wh("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:a}=e;if(!n)return null;const{method:s,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:s,statusCode:a?a.status:void 0}}}(t);pv(e,n)}}(e)),wh("xhr",hv(e)))}catch(e){}}let Vv=null;const Yv=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Vv===t||!t)return null;if(Vv=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 Ty(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Lg?(n=!0,`${e.slice(0,Lg)}…`):e;if("object"==typeof e)try{const t=zh(e,7),i=JSON.stringify(t);if(i.length>Lg){const e=Iv(i.slice(0,Lg)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return Ty({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Ty(t)}(t);n&&_y(e,n)};function Gv(e){return!(!e||!e.on)}function Hv(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}const Wv={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:a,startTime:s,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Zv(s),end:Zv(a),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:a}=e,s=Zv(a);return{type:n,name:i,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:a,domComplete:s,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===a)return null;return{type:`${t}.${m}`,start:Zv(h),end:Zv(s),name:n,data:{size:f,decodedBodySize:i,encodedBodySize:r,duration:a,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:i}=e;let a=0;if(Rg.performance){const e=Rg.performance.getEntriesByType("navigation")[0];a=e&&e.activationStart||0}const s=Math.max(n-a,0),r=Zv(a)+s/1e3;return{type:t,name:t,start:r,end:r,data:{value:s,size:i,nodeId:my.mirror.getId(e.element)}}}};function Kv(e){return void 0===Wv[e.entryType]?null:Wv[e.entryType](e)}function Zv(e){return((nf||Rg.performance.timeOrigin)+e)/1e3}function Jv(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Replay] Received replay event after session expired."));const a=i||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!nv(e,n,a))return!0;if(!a)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;nv(e,function(e){const t=e.getOptions();return{type:d_.Custom,timestamp:Date.now(),data:{tag:"options",payload:{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,a),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Dy(`[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&&Ky(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Xv({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:a,session:s}){const r=function({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${i}${e}`;else{const t=(new TextEncoder).encode(i);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:o,errorIds:c,traceIds:l,initialTimestamp:u}=i,d=Nf(),p=d.getClient(),h=d.getScope(),f=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&f&&m&&s.sampled))return;const g={type:Ag,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:s.sampled},_=await async function({client:e,scope:t,replayId:n,event:i}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,a);const s=await um(e.getOptions(),i,a,t,e);if(!s)return null;s.platform=s.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:h,client:p,replayId:t,event:g});if(!_)return p.recordDroppedEvent("event_processor","replay",g),void Dy("An event processor returned `null`, will not send event.");delete _.sdkProcessingMetadata;const y=function(e,t,n,i){return hf(xf(e,wf(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(_,r,m,p.getOptions().tunnel);let v;try{v=await f.send(y)}catch(e){const t=new Error(Cg);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Qv(v.statusCode);return v}class Qv extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function eb(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var a,s;if(n.length)try{return await Xv(e),!0}catch(n){if(n instanceof Qv)throw n;if(a="Replays",s={_retryCount:t.count},Nf().setContext(a,s),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i._experiments&&i._experiments.captureExceptions&&am(n),t.count>=3){const e=new Error(`${Cg} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await eb(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const tb="__THROTTLED";function nb(e,t,n){const i=new Map;let a=!1;return(...s)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?"__SKIPPED":tb}a=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...s)}}class ib{constructor({options:e,recordingOptions:t}){ib.prototype.__init.call(this),ib.prototype.__init2.call(this),ib.prototype.__init3.call(this),ib.prototype.__init4.call(this),ib.prototype.__init5.call(this),ib.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],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,n){let i,a,s;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==a&&clearTimeout(a),void 0!==s&&clearTimeout(s),a=s=void 0}function l(){return a&&clearTimeout(a),a=setTimeout(o,t),r&&void 0===s&&(s=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==s?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=nb(((e,t)=>function(e,t,n){return av(e,t)?iv(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new Ey(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Ny(`[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");Ny("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=tv({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");Ny("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=tv({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{this._stopRecording=my({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Jv(this),onMutation:this._onMutationHandler})}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{Dy("[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,Hy(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Dy("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Dy("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Dy("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"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&&Xy(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Rg.location.pathname}${Rg.location.hash}${Rg.location.search}`,t=`${Rg.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===tb){const e=Ty({category:"replay.throttled"});this.addUpdate((()=>!nv(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Nf().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Yy({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&am(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=tv({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=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!ev(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{Rg.document.addEventListener("visibilitychange",this._handleVisibilityChange),Rg.addEventListener("blur",this._handleWindowBlur),Rg.addEventListener("focus",this._handleWindowFocus),Rg.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=Nf().getScope(),n=Nf().getClient();t.addScopeListener(Yv(e)),wh("dom",Cy(e)),wh("history",uv(e)),qv(e),Rf(cv(e,!Gv(n))),Gv(n)&&(n.on("afterSendEvent",ov(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Rg&&(this._performanceObserver=Uy(this))}_removeListeners(){try{Rg.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Rg.removeEventListener("blur",this._handleWindowBlur),Rg.removeEventListener("focus",this._handleWindowFocus),Rg.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Rg.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ty({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ty({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ly(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Qy(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):Dy("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(e=!0){try{Dy("[Replay] Taking full rrweb snapshot"),my.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_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:d_.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(lv(this,function(e){return e.map(Kv).filter(Boolean)}(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 n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_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(lv(e,[Hv(Rg.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 n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await eb({replayId:e,recordingData:a,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Nf().getClient();t&&t.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.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(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error("[Replay] No session found to flush."));const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(i||a)return Dy(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&Dy("[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){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ky(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,i=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||i){const e=Ty({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ab(e,t,n,i){const a=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function sb({mask:e,unmask:t,block:n,unblock:i,ignore:a,blockClass:s,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const u=ab(e,[".sentry-mask","[data-sentry-mask]"],o,c),d=ab(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:ab(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,r),unblockSelector:ab(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ab(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return s instanceof RegExp&&(p.blockClass=s),o instanceof RegExp&&(p.maskTextClass=o),p}function rb(){return"undefined"!=typeof window&&(!Mh()||"undefined"!=typeof process&&"renderer"===process.type)}const ob='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',cb=["content-length","content-type","accept"];let lb=!1;class ub{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:a=!0,useCompression:s=!0,_experiments:r={},sessionSampleRate:o,errorSampleRate:c,maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:_=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],unmask:x=[],block:E=[],unblock:S=[],ignore:k=[],maskFn:T,beforeAddRecordingEvent:R,blockClass:I,blockSelector:A,maskInputOptions:C,maskTextClass:O,maskTextSelector:L,ignoreClass:j}={}){if(this.name=ub.id,this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{...C||{},password:!0},maskTextFn:T,maskInputFn:T,...sb({mask:w,unmask:x,block:E,unblock:S,ignore:k,blockClass:I,blockSelector:A,maskTextClass:O,maskTextSelector:L,ignoreClass:j}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Pg),stickySession:a,sessionSampleRate:o,errorSampleRate:c,useCompression:s,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:_,networkCaptureBodies:y,networkRequestHeaders:db(v),networkResponseHeaders:db(b),beforeAddRecordingEvent:R,_experiments:r},"number"==typeof o&&(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: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof c&&(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: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ob}`:ob),this._isInitialized&&rb())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lb}set _isInitialized(e){lb=e}setupOnce(){rb()&&(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._replay.initializeSampling()}_setup(){const e=function(e){const t=Nf().getClient(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...ah(e)};if(!n)return console.warn("SDK client is not available."),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new ib({options:e,recordingOptions:this._recordingOptions})}}function db(e){return[...cb,...e.map((e=>e.toLowerCase()))]}ub.__initStatic();const pb=Up;const hb=(e,t,n)=>{let i,a;return s=>{t.value>=0&&(s||n)&&(a=t.value-(i||0),(a||void 0===i)&&(i=t.value,t.delta=a,e(t)))}},fb=()=>pb.__WEB_VITALS_POLYFILL__?pb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=pb.performance.timing,t=pb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):pb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],mb=()=>{const e=fb();return e&&e.activationStart||0},gb=(e,t)=>{const n=fb();let i="navigate";return n&&(i=pb.document.prerendering||mb()>0?"prerender":n.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:i}},_b=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},yb=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==pb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},vb=e=>{const t=gb("CLS",0);let n,i=0,a=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const s=a[0],r=a[a.length-1];i&&0!==a.length&&e.startTime-r.startTime<1e3&&e.startTime-s.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e]),i>t.value&&(t.value=i,t.entries=a,n&&n())}}))},r=_b("layout-shift",s);if(r){n=hb(e,t);const i=()=>{s(r.takeRecords()),n(!0)};return yb(i),i}};let bb=-1;const wb=()=>(bb<0&&(bb="hidden"!==pb.document.visibilityState||pb.document.prerendering?1/0:0,yb((({timeStamp:e})=>{bb=e}),!0)),{get firstHiddenTime(){return bb}}),xb=e=>{const t=wb(),n=gb("FID");let i;const a=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},s=e=>{e.forEach(a)},r=_b("first-input",s);i=hb(e,n),r&&yb((()=>{s(r.takeRecords()),r.disconnect()}),!0)},Eb={},Sb=e=>{const t=wb(),n=gb("LCP");let i;const a=e=>{const a=e[e.length-1];if(a){const e=Math.max(a.startTime-mb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[a],i())}},s=_b("largest-contentful-paint",a);if(s){i=hb(e,n);const t=()=>{Eb[n.id]||(a(s.takeRecords()),s.disconnect(),Eb[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),yb(t,!0),t}};function kb(e){return"number"==typeof e&&isFinite(e)}function Tb(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function Rb(e){return e/1e3}function Ib(){return pb&&pb.addEventListener&&pb.performance}let Ab,Cb,Ob=0,Lb={};function jb(){const e=Ib();if(e&&nf){e.mark&&pb.performance.mark("sentry-tracing-init"),xb((e=>{const t=e.entries.pop();if(!t)return;const n=Rb(nf),i=Rb(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FID"),Lb.fid={value:e.value,unit:"millisecond"},Lb["mark.fid"]={value:n+i,unit:"second"}}));const t=vb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding CLS"),Lb.cls={value:e.value,unit:""},Cb=t)})),n=Sb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding LCP"),Lb.lcp={value:e.value,unit:"millisecond"},Ab=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function Pb(e){const t=Ib();if(!t||!pb.performance.getEntries||!nf)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Rb(nf),i=t.getEntries();let a,s;if(i.slice(Ob).forEach((t=>{const i=Rb(t.startTime),r=Rb(t.duration);if(!("navigation"===e.op&&n+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{Ub(e,t,i,n)})),Ub(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Ub(e,t,"fetch",n,"cache","domainLookupStart"),Ub(e,t,"domainLookup",n,"DNS"),function(e,t,n){Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Rb(t.requestStart),endTimestamp:n+Rb(t.responseEnd)}),Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Rb(t.responseStart),endTimestamp:n+Rb(t.responseEnd)})}(e,t,n)}(e,t,n),a=n+Rb(t.responseStart),s=n+Rb(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,a){const s=a+n,r=s+i;Tb(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,i,r,n);const a=wb(),s=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FP"),Lb.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding FCP"),Lb.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const a=t.name.replace(pb.location.origin,"");!function(e,t,n,i,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r={};"transferSize"in t&&(r["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(r["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(r["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(r["resource.render_blocking_status"]=t.renderBlockingStatus);const o=s+i,c=o+a;Tb(e,{description:n,endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:r})}(e,t,a,i,r,n);break}}})),Ob=Math.max(i.length-1,0),function(e){const t=pb.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),kb(n.rtt)&&(Lb["connection.rtt"]={value:n.rtt,unit:"millisecond"}));kb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);kb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding TTFB"),Lb.ttfb={value:1e3*(a-e.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=a&&(Lb["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Lb[t]||n>=e.startTimestamp)return;const i=Lb[t].value,a=n+Rb(i),s=Math.abs(1e3*(a-e.startTimestamp)),r=s-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Measurements] Normalized ${t} from ${i} to ${s} (${r})`),Lb[t].value=s}));const t=Lb["mark.fid"];t&&Lb.fid&&(Tb(e,{description:"first input delay",endTimestamp:t.value+Rb(Lb.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Lb["mark.fid"]),"fcp"in Lb||delete Lb.cls,Object.keys(Lb).forEach((t=>{e.setMeasurement(t,Lb[t].value,Lb[t].unit)})),function(e){Ab&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding LCP Data"),Ab.element&&e.setTag("lcp.element",zp(Ab.element)),Ab.id&&e.setTag("lcp.id",Ab.id),Ab.url&&e.setTag("lcp.url",Ab.url.trim().slice(0,200)),e.setTag("lcp.size",Ab.size));Cb&&Cb.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log("[Measurements] Adding CLS Data"),Cb.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,zp(t.node)))))}(e)}Ab=void 0,Cb=void 0,Lb={}}function Ub(e,t,n,i,a,s){const r=s?t[s]:t[`${n}End`],o=t[`${n}Start`];o&&r&&Tb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:a||n,startTimestamp:i+Rb(o),endTimestamp:i+Rb(r)})}const Fb=["localhost",/^\/(?!\/)/],Db={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Fb,tracePropagationTargets:Fb};function Nb(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:a,shouldCreateSpanForRequest:s,enableHTTPTimings:r}={traceFetch:Db.traceFetch,traceXHR:Db.traceXHR,...e},o="function"==typeof s?s:e=>!0,c=e=>function(e,t){return Ap(e,t||Fb)}(e,i||a),l={};t&&wh("fetch",(e=>{const t=function(e,t,n,i){if(!Bf()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length"),i=parseInt(t);i>0&&n.setData("http.response_content_length",i)}else e.error&&n.setStatus("internal_error");n.finish(),delete i[t]}return}const s=Nf(),r=s.getScope(),o=s.getClient(),c=r.getSpan(),{method:l,url:u}=e.fetchData,d=a&&c?c.startChild({data:{url:u,type:"fetch","http.method":l},description:`${l} ${u}`,op:"http.client",origin:"auto.http.browser"}):void 0;d&&(e.fetchData.__span=d.spanId,i[d.spanId]=d);if(n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,a){const s=a||n.getSpan(),r=s&&s.transaction,{traceId:o,sampled:c,dsc:l}=n.getPropagationContext(),u=s?s.toTraceparent():pf(o,void 0,c),d=r?r.getDynamicSamplingContext():l||Hf(o,t,n),p=cf(d),h="undefined"!=typeof Request&&Sp(e,Request)?e.headers:i.headers;if(h){if("undefined"!=typeof Headers&&Sp(h,Headers)){const e=new Headers(h);return e.append("sentry-trace",u),p&&e.append(af,p),e}if(Array.isArray(h)){const e=[...h,["sentry-trace",u]];return p&&e.push([af,p]),e}{const e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...h,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:p}}(t,o,r,n,d)}return d}(e,o,c,l);r&&t&&Mb(t)})),n&&wh("xhr",(e=>{const t=function(e,t,n,i){const a=e.xhr,s=a&&a[_h];if(!Bf()||a&&a.__sentry_own_request__||!a||!s)return;const r=t(s.url);if(e.endTimestamp&&r){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete i[e]))}const o=Nf(),c=o.getScope(),l=c.getSpan(),u=r&&l?l.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;u&&(a.__sentry_xhr_span_id__=u.spanId,i[a.__sentry_xhr_span_id__]=u);if(a.setRequestHeader&&n(s.url))if(u){const e=u&&u.transaction,t=cf(e&&e.getDynamicSamplingContext());Bb(a,u.toTraceparent(),t)}else{const e=o.getClient(),{traceId:t,sampled:n,dsc:i}=c.getPropagationContext();Bb(a,pf(t,void 0,n),cf(i||(e?Hf(t,e,c):void 0)))}return u}(e,o,c,l);r&&t&&Mb(t)}))}function Mb(e){const t=e.data.url,n=new PerformanceObserver((i=>{i.getEntries().forEach((i=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(i)&&i.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",i="";for(const a of e){if("/"===a){[t,n]=e.split("/");break}if(!isNaN(Number(a))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=a}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!nf)return i;return[...i,["http.request.redirect_start",zb(e.redirectStart)],["http.request.fetch_start",zb(e.fetchStart)],["http.request.domain_lookup_start",zb(e.domainLookupStart)],["http.request.domain_lookup_end",zb(e.domainLookupEnd)],["http.request.connect_start",zb(e.connectStart)],["http.request.secure_connection_start",zb(e.secureConnectionStart)],["http.request.connection_end",zb(e.connectEnd)],["http.request.request_start",zb(e.requestStart)],["http.request.response_start",zb(e.responseStart)],["http.request.response_end",zb(e.responseEnd)]]}(i);t.forEach((t=>e.setData(...t))),n.disconnect()}}))}));n.observe({entryTypes:["resource"]})}function zb(e=0){return((nf||performance.timeOrigin)+e)/1e3}function Bb(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(af,n)}catch(e){}}const $b={...Kf,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!pb||!pb.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("Could not initialize routing instrumentation due to invalid location"));let i,a=pb.location.href;t&&(i=e({name:pb.location.pathname,startTimestamp:nf?nf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&wh("history",(({to:t,from:n})=>{void 0===n&&a&&-1!==a.indexOf(t)?a=void 0:n!==t&&(a=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:pb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Db};class qb{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,im(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...$b,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=jb(),this.options.enableLongTask&&_b("longtask",(e=>{for(const t of e){const e=$f();if(!e)return;const n=Rb(nf+t.startTime),i=Rb(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&_b("event",(e=>{for(const t of e){const e=$f();if(!e)return;if("click"===t.name){const n=Rb(nf+t.startTime),i=Rb(t.duration);e.startChild({description:zp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),i=n&&n.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:r,markBackgroundTransactions:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:p}=this.options,h=i&&i.tracePropagationTargets,f=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&Yp.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."),a((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),r,s),o&&(pb&&pb.document?pb.document.addEventListener("visibilitychange",(()=>{const e=$f();if(pb.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),Nb({traceFetch:c,traceXHR:l,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,r="pageload"===e.op,o=r?Vb("sentry-trace"):"",c=r?Vb("baggage"):"",{traceparentData:l,dynamicSamplingContext:u,propagationContext:d}=df(o,c),p={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!u?{}:u},trimEnd:!0},h="function"==typeof n?n(p):p,f=void 0===h?{...p,sampled:!1}:h;f.metadata=f.name!==p.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,!1===f.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.log(`[Tracing] Starting ${f.op} transaction on scope`);const{location:m}=pb,g=nm(t,f,i,a,!0,{location:m},s),_=t.getScope();return r&&l?_.setPropagationContext(d):_.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Pb(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:i}=this.options,a="ui.action.click",s=$f();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Yp.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`));const r=this._getCurrentHub(),{location:o}=pb,c={name:this._latestRouteName,op:a,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=nm(r,c,t,n,!0,{location:o},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function Vb(e){const t=(n=`meta[name=${e}]`,Np.document&&Np.document.querySelector?Np.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}class Yb{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){this.gameParams?.fromDashboard&&(kg({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[new qb({tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/]}),new ub],tracesSampleRate:1,replaysSessionSampleRate:1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),delete this.gameParams.fromDashboard),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const a=As(As({...t,...n},Cs),$s),{userMode:s,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:u,consent:d,storyOption:p,language:h,skipInstructions:f,grade:m,birthMonth:g,birthYear:_,age:y,ageMonths:v,timerLength:b}=a,w=_r(g,_,y,v),x={pid:r,labId:o,userMode:s||"default",recruitment:c||"pilot",storyOption:p,story:Gd(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:u,firekit:e,language:h,skipInstructions:f??!0,consent:d??!0,displayElement:i||null,blockOrder:Hd(s),timerLength:b??18e4},E=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,x[e]??t])));return await x.firekit.updateTaskParams(E),null!==x.pid&&await x.firekit.updateUser({assessmentPid:x.pid,...l}),x})(this.firekit,this.gameParams,this.userParams,this.displayElement);return s.session.set("config",e),function(e,t){Wd(t);const n=Kd(e),i=vr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["responseTimeTooFast"]});pp=new br({evaluateValidity:i,handleEngagementFlags:(e,n)=>{if(t.firekit.run.started)return t.firekit.updateEngagementFlags(e,n)}});const a=[Xc,...n];return(e=>{const n={timeline:[up,dp],repetitions:4};a.push(Xd),a.push(op),a.push(lp),a.push(n),a.push(Qd);for(let n=0;n<e.length;n+=1)a.push(cp(e[n],n+1,t.timerLength)),n<e.length-1&&a.push(np);a.push(ip)})(t.blockOrder),{jsPsych:ol,timeline:a}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),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{Yb as default};
|
|
26
|
+
//# sourceMappingURL=index.d0380468.js.map
|