@streamlayer/react 0.31.8 → 0.31.10

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,298 +1,30 @@
1
- "use strict";var Hr=Object.defineProperty;var Wr=(te,ie,oe)=>ie in te?Hr(te,ie,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ie]=oe;var Hn=(te,ie,oe)=>(Wr(te,typeof ie!="symbol"?ie+"":ie,oe),oe);const jsxRuntime=require("react/jsx-runtime"),e$9=require("react");function _interopNamespaceDefault(te){const ie=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(te){for(const oe in te)if(oe!=="default"){const le=Object.getOwnPropertyDescriptor(te,oe);Object.defineProperty(ie,oe,le.get?le:{enumerable:!0,get:()=>te[oe]})}}return ie.default=te,Object.freeze(ie)}const e__namespace=_interopNamespaceDefault(e$9),N$2={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",LEADERBOARD_UNIT:"rgba(255, 255, 255, 0.5)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"},T$2={PRIMARY_GREEN1:"#107D57",PRIMARY_GREEN2:"#006747",PRIMARY_GREEN3:"#1C4932",PRIMARY_GREEN4:"#193526",SECONDARY_RED1:"#DF2F3B",SECONDARY_RED2:"#BA0C2F",SECONDARY_RED3:"#f9d6d8",SECONDARY_YELLOW:"#fce300",SECONDARY_GREEN5:"#C0DC8F",SECONDARY_GREEN6:"#cee5de",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY8:"#53565A",NEUTRALS_GRAY9:"#25282A",NEUTRALS_BLACK:"#000000"},E$1=Object.assign({},N$2,T$2);Object.keys(E$1).reduce((te,ie)=>{const oe=E$1[ie];return`
2
- ${te}
3
- --color-${ie.toLowerCase().replaceAll("_","-")}: ${oe};
4
- `},"");const d$b="StreamLayerCSSReset",m$c="ttkj0ah",s$3=({children:te,style:ie})=>jsxRuntime.jsx("div",{className:"StreamLayerSDKTheme",children:jsxRuntime.jsx("div",{className:m$c,style:ie,children:te})});function assert(te,ie){if(!te)throw new Error(ie)}const FLOAT32_MAX=34028234663852886e22,FLOAT32_MIN=-34028234663852886e22,UINT32_MAX=4294967295,INT32_MAX=2147483647,INT32_MIN=-2147483648;function assertInt32(te){if(typeof te!="number")throw new Error("invalid int 32: "+typeof te);if(!Number.isInteger(te)||te>INT32_MAX||te<INT32_MIN)throw new Error("invalid int 32: "+te)}function assertUInt32(te){if(typeof te!="number")throw new Error("invalid uint 32: "+typeof te);if(!Number.isInteger(te)||te>UINT32_MAX||te<0)throw new Error("invalid uint 32: "+te)}function assertFloat32(te){if(typeof te!="number")throw new Error("invalid float 32: "+typeof te);if(Number.isFinite(te)&&(te>FLOAT32_MAX||te<FLOAT32_MIN))throw new Error("invalid float 32: "+te)}const enumTypeSymbol=Symbol("@bufbuild/protobuf/enum-type");function getEnumType(te){const ie=te[enumTypeSymbol];return assert(ie,"missing enum type on enum object"),ie}function setEnumType(te,ie,oe,le){te[enumTypeSymbol]=makeEnumType(ie,oe.map(ce=>({no:ce.no,name:ce.name,localName:te[ce.no]})))}function makeEnumType(te,ie,oe){const le=Object.create(null),ce=Object.create(null),ue=[];for(const fe of ie){const he=normalizeEnumValue(fe);ue.push(he),le[fe.name]=he,ce[fe.no]=he}return{typeName:te,values:ue,findName(fe){return le[fe]},findNumber(fe){return ce[fe]}}}function makeEnum(te,ie,oe){const le={};for(const ce of ie){const ue=normalizeEnumValue(ce);le[ue.localName]=ue.no,le[ue.no]=ue.localName}return setEnumType(le,te,ie),le}function normalizeEnumValue(te){return"localName"in te?te:Object.assign(Object.assign({},te),{localName:te.name})}class Message{equals(ie){return this.getType().runtime.util.equals(this.getType(),this,ie)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(ie,oe){const le=this.getType(),ce=le.runtime.bin,ue=ce.makeReadOptions(oe);return ce.readMessage(this,ue.readerFactory(ie),ie.byteLength,ue),this}fromJson(ie,oe){const le=this.getType(),ce=le.runtime.json,ue=ce.makeReadOptions(oe);return ce.readMessage(le,ie,ue,this),this}fromJsonString(ie,oe){let le;try{le=JSON.parse(ie)}catch(ce){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${ce instanceof Error?ce.message:String(ce)}`)}return this.fromJson(le,oe)}toBinary(ie){const oe=this.getType(),le=oe.runtime.bin,ce=le.makeWriteOptions(ie),ue=ce.writerFactory();return le.writeMessage(this,ue,ce),ue.finish()}toJson(ie){const oe=this.getType(),le=oe.runtime.json,ce=le.makeWriteOptions(ie);return le.writeMessage(this,ce)}toJsonString(ie){var oe;const le=this.toJson(ie);return JSON.stringify(le,null,(oe=ie==null?void 0:ie.prettySpaces)!==null&&oe!==void 0?oe:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function makeMessageType(te,ie,oe,le){var ce;const ue=(ce=le==null?void 0:le.localName)!==null&&ce!==void 0?ce:ie.substring(ie.lastIndexOf(".")+1),fe={[ue]:function(he){te.util.initFields(this),te.util.initPartial(he,this)}}[ue];return Object.setPrototypeOf(fe.prototype,new Message),Object.assign(fe,{runtime:te,typeName:ie,fields:te.util.newFieldList(oe),fromBinary(he,ve){return new fe().fromBinary(he,ve)},fromJson(he,ve){return new fe().fromJson(he,ve)},fromJsonString(he,ve){return new fe().fromJsonString(he,ve)},equals(he,ve){return te.util.equals(fe,he,ve)}}),fe}function makeProtoRuntime(te,ie,oe,le){return{syntax:te,json:ie,bin:oe,util:le,makeMessageType(ce,ue,fe){return makeMessageType(this,ce,ue,fe)},makeEnum,makeEnumType,getEnumType}}var ScalarType;(function(te){te[te.DOUBLE=1]="DOUBLE",te[te.FLOAT=2]="FLOAT",te[te.INT64=3]="INT64",te[te.UINT64=4]="UINT64",te[te.INT32=5]="INT32",te[te.FIXED64=6]="FIXED64",te[te.FIXED32=7]="FIXED32",te[te.BOOL=8]="BOOL",te[te.STRING=9]="STRING",te[te.BYTES=12]="BYTES",te[te.UINT32=13]="UINT32",te[te.SFIXED32=15]="SFIXED32",te[te.SFIXED64=16]="SFIXED64",te[te.SINT32=17]="SINT32",te[te.SINT64=18]="SINT64"})(ScalarType||(ScalarType={}));var LongType;(function(te){te[te.BIGINT=0]="BIGINT",te[te.STRING=1]="STRING"})(LongType||(LongType={}));function varint64read(){let te=0,ie=0;for(let le=0;le<28;le+=7){let ce=this.buf[this.pos++];if(te|=(ce&127)<<le,!(ce&128))return this.assertBounds(),[te,ie]}let oe=this.buf[this.pos++];if(te|=(oe&15)<<28,ie=(oe&112)>>4,!(oe&128))return this.assertBounds(),[te,ie];for(let le=3;le<=31;le+=7){let ce=this.buf[this.pos++];if(ie|=(ce&127)<<le,!(ce&128))return this.assertBounds(),[te,ie]}throw new Error("invalid varint")}function varint64write(te,ie,oe){for(let ue=0;ue<28;ue=ue+7){const fe=te>>>ue,he=!(!(fe>>>7)&&ie==0),ve=(he?fe|128:fe)&255;if(oe.push(ve),!he)return}const le=te>>>28&15|(ie&7)<<4,ce=!!(ie>>3);if(oe.push((ce?le|128:le)&255),!!ce){for(let ue=3;ue<31;ue=ue+7){const fe=ie>>>ue,he=!!(fe>>>7),ve=(he?fe|128:fe)&255;if(oe.push(ve),!he)return}oe.push(ie>>>31&1)}}const TWO_PWR_32_DBL=4294967296;function int64FromString(te){const ie=te[0]==="-";ie&&(te=te.slice(1));const oe=1e6;let le=0,ce=0;function ue(fe,he){const ve=Number(te.slice(fe,he));ce*=oe,le=le*oe+ve,le>=TWO_PWR_32_DBL&&(ce=ce+(le/TWO_PWR_32_DBL|0),le=le%TWO_PWR_32_DBL)}return ue(-24,-18),ue(-18,-12),ue(-12,-6),ue(-6),ie?negate(le,ce):newBits(le,ce)}function int64ToString(te,ie){let oe=newBits(te,ie);const le=oe.hi&2147483648;le&&(oe=negate(oe.lo,oe.hi));const ce=uInt64ToString(oe.lo,oe.hi);return le?"-"+ce:ce}function uInt64ToString(te,ie){if({lo:te,hi:ie}=toUnsigned(te,ie),ie<=2097151)return String(TWO_PWR_32_DBL*ie+te);const oe=te&16777215,le=(te>>>24|ie<<8)&16777215,ce=ie>>16&65535;let ue=oe+le*6777216+ce*6710656,fe=le+ce*8147497,he=ce*2;const ve=1e7;return ue>=ve&&(fe+=Math.floor(ue/ve),ue%=ve),fe>=ve&&(he+=Math.floor(fe/ve),fe%=ve),he.toString()+decimalFrom1e7WithLeadingZeros(fe)+decimalFrom1e7WithLeadingZeros(ue)}function toUnsigned(te,ie){return{lo:te>>>0,hi:ie>>>0}}function newBits(te,ie){return{lo:te|0,hi:ie|0}}function negate(te,ie){return ie=~ie,te?te=~te+1:ie+=1,newBits(te,ie)}const decimalFrom1e7WithLeadingZeros=te=>{const ie=String(te);return"0000000".slice(ie.length)+ie};function varint32write(te,ie){if(te>=0){for(;te>127;)ie.push(te&127|128),te=te>>>7;ie.push(te)}else{for(let oe=0;oe<9;oe++)ie.push(te&127|128),te=te>>7;ie.push(1)}}function varint32read(){let te=this.buf[this.pos++],ie=te&127;if(!(te&128))return this.assertBounds(),ie;if(te=this.buf[this.pos++],ie|=(te&127)<<7,!(te&128))return this.assertBounds(),ie;if(te=this.buf[this.pos++],ie|=(te&127)<<14,!(te&128))return this.assertBounds(),ie;if(te=this.buf[this.pos++],ie|=(te&127)<<21,!(te&128))return this.assertBounds(),ie;te=this.buf[this.pos++],ie|=(te&15)<<28;for(let oe=5;te&128&&oe<10;oe++)te=this.buf[this.pos++];if(te&128)throw new Error("invalid varint");return this.assertBounds(),ie>>>0}function getAugmentedNamespace(te){if(te.__esModule)return te;var ie=te.default;if(typeof ie=="function"){var oe=function le(){return this instanceof le?Reflect.construct(ie,arguments,this.constructor):ie.apply(this,arguments)};oe.prototype=ie.prototype}else oe={};return Object.defineProperty(oe,"__esModule",{value:!0}),Object.keys(te).forEach(function(le){var ce=Object.getOwnPropertyDescriptor(te,le);Object.defineProperty(oe,le,ce.get?ce:{enumerable:!0,get:function(){return te[le]}})}),oe}var dist={},buffer={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$8=0,len=code.length;i$8<len;++i$8)lookup[i$8]=code[i$8],revLookup[code.charCodeAt(i$8)]=i$8;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(te){var ie=te.length;if(ie%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var oe=te.indexOf("=");oe===-1&&(oe=ie);var le=oe===ie?0:4-oe%4;return[oe,le]}function byteLength(te){var ie=getLens(te),oe=ie[0],le=ie[1];return(oe+le)*3/4-le}function _byteLength(te,ie,oe){return(ie+oe)*3/4-oe}function toByteArray(te){var ie,oe=getLens(te),le=oe[0],ce=oe[1],ue=new Arr(_byteLength(te,le,ce)),fe=0,he=ce>0?le-4:le,ve;for(ve=0;ve<he;ve+=4)ie=revLookup[te.charCodeAt(ve)]<<18|revLookup[te.charCodeAt(ve+1)]<<12|revLookup[te.charCodeAt(ve+2)]<<6|revLookup[te.charCodeAt(ve+3)],ue[fe++]=ie>>16&255,ue[fe++]=ie>>8&255,ue[fe++]=ie&255;return ce===2&&(ie=revLookup[te.charCodeAt(ve)]<<2|revLookup[te.charCodeAt(ve+1)]>>4,ue[fe++]=ie&255),ce===1&&(ie=revLookup[te.charCodeAt(ve)]<<10|revLookup[te.charCodeAt(ve+1)]<<4|revLookup[te.charCodeAt(ve+2)]>>2,ue[fe++]=ie>>8&255,ue[fe++]=ie&255),ue}function tripletToBase64(te){return lookup[te>>18&63]+lookup[te>>12&63]+lookup[te>>6&63]+lookup[te&63]}function encodeChunk(te,ie,oe){for(var le,ce=[],ue=ie;ue<oe;ue+=3)le=(te[ue]<<16&16711680)+(te[ue+1]<<8&65280)+(te[ue+2]&255),ce.push(tripletToBase64(le));return ce.join("")}function fromByteArray(te){for(var ie,oe=te.length,le=oe%3,ce=[],ue=16383,fe=0,he=oe-le;fe<he;fe+=ue)ce.push(encodeChunk(te,fe,fe+ue>he?he:fe+ue));return le===1?(ie=te[oe-1],ce.push(lookup[ie>>2]+lookup[ie<<4&63]+"==")):le===2&&(ie=(te[oe-2]<<8)+te[oe-1],ce.push(lookup[ie>>10]+lookup[ie>>4&63]+lookup[ie<<2&63]+"=")),ce.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(te,ie,oe,le,ce){var ue,fe,he=ce*8-le-1,ve=(1<<he)-1,Se=ve>>1,ke=-7,Me=oe?ce-1:0,Pe=oe?-1:1,Re=te[ie+Me];for(Me+=Pe,ue=Re&(1<<-ke)-1,Re>>=-ke,ke+=he;ke>0;ue=ue*256+te[ie+Me],Me+=Pe,ke-=8);for(fe=ue&(1<<-ke)-1,ue>>=-ke,ke+=le;ke>0;fe=fe*256+te[ie+Me],Me+=Pe,ke-=8);if(ue===0)ue=1-Se;else{if(ue===ve)return fe?NaN:(Re?-1:1)*(1/0);fe=fe+Math.pow(2,le),ue=ue-Se}return(Re?-1:1)*fe*Math.pow(2,ue-le)};ieee754.write=function(te,ie,oe,le,ce,ue){var fe,he,ve,Se=ue*8-ce-1,ke=(1<<Se)-1,Me=ke>>1,Pe=ce===23?Math.pow(2,-24)-Math.pow(2,-77):0,Re=le?0:ue-1,Oe=le?1:-1,Be=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(he=isNaN(ie)?1:0,fe=ke):(fe=Math.floor(Math.log(ie)/Math.LN2),ie*(ve=Math.pow(2,-fe))<1&&(fe--,ve*=2),fe+Me>=1?ie+=Pe/ve:ie+=Pe*Math.pow(2,1-Me),ie*ve>=2&&(fe++,ve/=2),fe+Me>=ke?(he=0,fe=ke):fe+Me>=1?(he=(ie*ve-1)*Math.pow(2,ce),fe=fe+Me):(he=ie*Math.pow(2,Me-1)*Math.pow(2,ce),fe=0));ce>=8;te[oe+Re]=he&255,Re+=Oe,he/=256,ce-=8);for(fe=fe<<ce|he,Se+=ce;Se>0;te[oe+Re]=fe&255,Re+=Oe,fe/=256,Se-=8);te[oe+Re-Oe]|=Be*128};/*!
1
+ "use strict";var yc=Object.defineProperty;var Tc=(e,t,n)=>t in e?yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>(Tc(e,typeof t!="symbol"?t+"":t,n),n);const S=require("react/jsx-runtime"),Z=require("react");function kc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=kc(Z),bc={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",LEADERBOARD_UNIT:"rgba(255, 255, 255, 0.5)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"},Sc={PRIMARY_GREEN1:"#107D57",PRIMARY_GREEN2:"#006747",PRIMARY_GREEN3:"#1C4932",PRIMARY_GREEN4:"#193526",SECONDARY_RED1:"#DF2F3B",SECONDARY_RED2:"#BA0C2F",SECONDARY_RED3:"#f9d6d8",SECONDARY_YELLOW:"#fce300",SECONDARY_GREEN5:"#C0DC8F",SECONDARY_GREEN6:"#cee5de",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY8:"#53565A",NEUTRALS_GRAY9:"#25282A",NEUTRALS_BLACK:"#000000"},ss=Object.assign({},bc,Sc);Object.keys(ss).reduce((e,t)=>{const n=ss[t];return`
2
+ ${e}
3
+ --color-${t.toLowerCase().replaceAll("_","-")}: ${n};
4
+ `},"");const rs="StreamLayerCSSReset",Ec="ttkj0ah",ao=({children:e,style:t})=>S.jsx("div",{className:"StreamLayerSDKTheme",children:S.jsx("div",{className:Ec,style:t,children:e})});function Be(e,t){if(!e)throw new Error(t)}const vc=34028234663852886e22,_c=-34028234663852886e22,wc=4294967295,Ac=2147483647,Rc=-2147483648;function jn(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Ac||e<Rc)throw new Error("invalid int 32: "+e)}function is(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>wc||e<0)throw new Error("invalid uint 32: "+e)}function so(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>vc||e<_c))throw new Error("invalid float 32: "+e)}const ro=Symbol("@bufbuild/protobuf/enum-type");function Cc(e){const t=e[ro];return Be(t,"missing enum type on enum object"),t}function io(e,t,n,s){e[ro]=oo(t,n.map(a=>({no:a.no,name:a.name,localName:e[a.no]})))}function oo(e,t,n){const s=Object.create(null),a=Object.create(null),o=[];for(const u of t){const c=lo(u);o.push(c),s[u.name]=c,a[u.no]=c}return{typeName:e,values:o,findName(u){return s[u]},findNumber(u){return a[u]}}}function Ic(e,t,n){const s={};for(const a of t){const o=lo(a);s[o.localName]=o.no,s[o.no]=o.localName}return io(s,e,t),s}function lo(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class at{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){const s=this.getType(),a=s.runtime.bin,o=a.makeReadOptions(n);return a.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,n){const s=this.getType(),a=s.runtime.json,o=a.makeReadOptions(n);return a.readMessage(s,t,o,this),this}fromJsonString(t,n){let s;try{s=JSON.parse(t)}catch(a){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${a instanceof Error?a.message:String(a)}`)}return this.fromJson(s,n)}toBinary(t){const n=this.getType(),s=n.runtime.bin,a=s.makeWriteOptions(t),o=a.writerFactory();return s.writeMessage(this,o,a),o.finish()}toJson(t){const n=this.getType(),s=n.runtime.json,a=s.makeWriteOptions(t);return s.writeMessage(this,a)}toJsonString(t){var n;const s=this.toJson(t);return JSON.stringify(s,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function Nc(e,t,n,s){var a;const o=(a=s==null?void 0:s.localName)!==null&&a!==void 0?a:t.substring(t.lastIndexOf(".")+1),u={[o]:function(c){e.util.initFields(this),e.util.initPartial(c,this)}}[o];return Object.setPrototypeOf(u.prototype,new at),Object.assign(u,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(c,d){return new u().fromBinary(c,d)},fromJson(c,d){return new u().fromJson(c,d)},fromJsonString(c,d){return new u().fromJsonString(c,d)},equals(c,d){return e.util.equals(u,c,d)}}),u}function Oc(e,t,n,s){return{syntax:e,json:t,bin:n,util:s,makeMessageType(a,o,u){return Nc(this,a,o,u)},makeEnum:Ic,makeEnumType:oo,getEnumType:Cc}}var x;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(x||(x={}));var Vt;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Vt||(Vt={}));function Lc(){let e=0,t=0;for(let s=0;s<28;s+=7){let a=this.buf[this.pos++];if(e|=(a&127)<<s,!(a&128))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,!(n&128))return this.assertBounds(),[e,t];for(let s=3;s<=31;s+=7){let a=this.buf[this.pos++];if(t|=(a&127)<<s,!(a&128))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Aa(e,t,n){for(let o=0;o<28;o=o+7){const u=e>>>o,c=!(!(u>>>7)&&t==0),d=(c?u|128:u)&255;if(n.push(d),!c)return}const s=e>>>28&15|(t&7)<<4,a=!!(t>>3);if(n.push((a?s|128:s)&255),!!a){for(let o=3;o<31;o=o+7){const u=t>>>o,c=!!(u>>>7),d=(c?u|128:u)&255;if(n.push(d),!c)return}n.push(t>>>31&1)}}const Gn=4294967296;function gr(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let s=0,a=0;function o(u,c){const d=Number(e.slice(u,c));a*=n,s=s*n+d,s>=Gn&&(a=a+(s/Gn|0),s=s%Gn)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?uo(s,a):Ls(s,a)}function xc(e,t){let n=Ls(e,t);const s=n.hi&2147483648;s&&(n=uo(n.lo,n.hi));const a=co(n.lo,n.hi);return s?"-"+a:a}function co(e,t){if({lo:e,hi:t}=Mc(e,t),t<=2097151)return String(Gn*t+e);const n=e&16777215,s=(e>>>24|t<<8)&16777215,a=t>>16&65535;let o=n+s*6777216+a*6710656,u=s+a*8147497,c=a*2;const d=1e7;return o>=d&&(u+=Math.floor(o/d),o%=d),u>=d&&(c+=Math.floor(u/d),u%=d),c.toString()+yr(u)+yr(o)}function Mc(e,t){return{lo:e>>>0,hi:t>>>0}}function Ls(e,t){return{lo:e|0,hi:t|0}}function uo(e,t){return t=~t,e?e=~e+1:t+=1,Ls(e,t)}const yr=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Tr(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function Bc(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Pc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,a.get?a:{enumerable:!0,get:function(){return e[s]}})}),n}var un={},mo={},ua={};ua.byteLength=Dc;ua.toByteArray=jc;ua.fromByteArray=$c;var Xe=[],Ge=[],Uc=typeof Uint8Array<"u"?Uint8Array:Array,Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $t=0,Fc=Ra.length;$t<Fc;++$t)Xe[$t]=Ra[$t],Ge[Ra.charCodeAt($t)]=$t;Ge["-".charCodeAt(0)]=62;Ge["_".charCodeAt(0)]=63;function po(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var s=n===t?0:4-n%4;return[n,s]}function Dc(e){var t=po(e),n=t[0],s=t[1];return(n+s)*3/4-s}function Vc(e,t,n){return(t+n)*3/4-n}function jc(e){var t,n=po(e),s=n[0],a=n[1],o=new Uc(Vc(e,s,a)),u=0,c=a>0?s-4:s,d;for(d=0;d<c;d+=4)t=Ge[e.charCodeAt(d)]<<18|Ge[e.charCodeAt(d+1)]<<12|Ge[e.charCodeAt(d+2)]<<6|Ge[e.charCodeAt(d+3)],o[u++]=t>>16&255,o[u++]=t>>8&255,o[u++]=t&255;return a===2&&(t=Ge[e.charCodeAt(d)]<<2|Ge[e.charCodeAt(d+1)]>>4,o[u++]=t&255),a===1&&(t=Ge[e.charCodeAt(d)]<<10|Ge[e.charCodeAt(d+1)]<<4|Ge[e.charCodeAt(d+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o}function Gc(e){return Xe[e>>18&63]+Xe[e>>12&63]+Xe[e>>6&63]+Xe[e&63]}function qc(e,t,n){for(var s,a=[],o=t;o<n;o+=3)s=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),a.push(Gc(s));return a.join("")}function $c(e){for(var t,n=e.length,s=n%3,a=[],o=16383,u=0,c=n-s;u<c;u+=o)a.push(qc(e,u,u+o>c?c:u+o));return s===1?(t=e[n-1],a.push(Xe[t>>2]+Xe[t<<4&63]+"==")):s===2&&(t=(e[n-2]<<8)+e[n-1],a.push(Xe[t>>10]+Xe[t>>4&63]+Xe[t<<2&63]+"=")),a.join("")}var xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */xs.read=function(e,t,n,s,a){var o,u,c=a*8-s-1,d=(1<<c)-1,f=d>>1,g=-7,T=n?a-1:0,y=n?-1:1,b=e[t+T];for(T+=y,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+e[t+T],T+=y,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=s;g>0;u=u*256+e[t+T],T+=y,g-=8);if(o===0)o=1-f;else{if(o===d)return u?NaN:(b?-1:1)*(1/0);u=u+Math.pow(2,s),o=o-f}return(b?-1:1)*u*Math.pow(2,o-s)};xs.write=function(e,t,n,s,a,o){var u,c,d,f=o*8-a-1,g=(1<<f)-1,T=g>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=s?0:o-1,A=s?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+T>=1?t+=y/d:t+=y*Math.pow(2,1-T),t*d>=2&&(u++,d/=2),u+T>=g?(c=0,u=g):u+T>=1?(c=(t*d-1)*Math.pow(2,a),u=u+T):(c=t*Math.pow(2,T-1)*Math.pow(2,a),u=0));a>=8;e[n+b]=c&255,b+=A,c/=256,a-=8);for(u=u<<a|c,f+=a;f>0;e[n+b]=u&255,b+=A,u/=256,f-=8);e[n+b-A]|=R*128};/*!
5
5
  * The buffer module from node.js, for the browser.
6
6
  *
7
7
  * @author Feross Aboukhadijeh <https://feross.org>
8
8
  * @license MIT
9
- */(function(te){const ie=base64Js,oe=ieee754,le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=he,te.SlowBuffer=rt,te.INSPECT_MAX_BYTES=50;const ce=2147483647;te.kMaxLength=ce,he.TYPED_ARRAY_SUPPORT=ue(),!he.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ue(){try{const ge=new Uint8Array(1),ye={foo:function(){return 42}};return Object.setPrototypeOf(ye,Uint8Array.prototype),Object.setPrototypeOf(ge,ye),ge.foo()===42}catch{return!1}}Object.defineProperty(he.prototype,"parent",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.buffer}}),Object.defineProperty(he.prototype,"offset",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.byteOffset}});function fe(ge){if(ge>ce)throw new RangeError('The value "'+ge+'" is invalid for option "size"');const ye=new Uint8Array(ge);return Object.setPrototypeOf(ye,he.prototype),ye}function he(ge,ye,Te){if(typeof ge=="number"){if(typeof ye=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Me(ge)}return ve(ge,ye,Te)}he.poolSize=8192;function ve(ge,ye,Te){if(typeof ge=="string")return Pe(ge,ye);if(ArrayBuffer.isView(ge))return Oe(ge);if(ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ge);if(ja(ge,ArrayBuffer)||ge&&ja(ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ja(ge,SharedArrayBuffer)||ge&&ja(ge.buffer,SharedArrayBuffer)))return Be(ge,ye,Te);if(typeof ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const it=ge.valueOf&&ge.valueOf();if(it!=null&&it!==ge)return he.from(it,ye,Te);const pt=xe(ge);if(pt)return pt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ge[Symbol.toPrimitive]=="function")return he.from(ge[Symbol.toPrimitive]("string"),ye,Te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ge)}he.from=function(ge,ye,Te){return ve(ge,ye,Te)},Object.setPrototypeOf(he.prototype,Uint8Array.prototype),Object.setPrototypeOf(he,Uint8Array);function Se(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be of type number');if(ge<0)throw new RangeError('The value "'+ge+'" is invalid for option "size"')}function ke(ge,ye,Te){return Se(ge),ge<=0?fe(ge):ye!==void 0?typeof Te=="string"?fe(ge).fill(ye,Te):fe(ge).fill(ye):fe(ge)}he.alloc=function(ge,ye,Te){return ke(ge,ye,Te)};function Me(ge){return Se(ge),fe(ge<0?0:nt(ge)|0)}he.allocUnsafe=function(ge){return Me(ge)},he.allocUnsafeSlow=function(ge){return Me(ge)};function Pe(ge,ye){if((typeof ye!="string"||ye==="")&&(ye="utf8"),!he.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);const Te=ot(ge,ye)|0;let it=fe(Te);const pt=it.write(ge,ye);return pt!==Te&&(it=it.slice(0,pt)),it}function Re(ge){const ye=ge.length<0?0:nt(ge.length)|0,Te=fe(ye);for(let it=0;it<ye;it+=1)Te[it]=ge[it]&255;return Te}function Oe(ge){if(ja(ge,Uint8Array)){const ye=new Uint8Array(ge);return Be(ye.buffer,ye.byteOffset,ye.byteLength)}return Re(ge)}function Be(ge,ye,Te){if(ye<0||ge.byteLength<ye)throw new RangeError('"offset" is outside of buffer bounds');if(ge.byteLength<ye+(Te||0))throw new RangeError('"length" is outside of buffer bounds');let it;return ye===void 0&&Te===void 0?it=new Uint8Array(ge):Te===void 0?it=new Uint8Array(ge,ye):it=new Uint8Array(ge,ye,Te),Object.setPrototypeOf(it,he.prototype),it}function xe(ge){if(he.isBuffer(ge)){const ye=nt(ge.length)|0,Te=fe(ye);return Te.length===0||ge.copy(Te,0,0,ye),Te}if(ge.length!==void 0)return typeof ge.length!="number"||Ya(ge.length)?fe(0):Re(ge);if(ge.type==="Buffer"&&Array.isArray(ge.data))return Re(ge.data)}function nt(ge){if(ge>=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return ge|0}function rt(ge){return+ge!=ge&&(ge=0),he.alloc(+ge)}he.isBuffer=function(ye){return ye!=null&&ye._isBuffer===!0&&ye!==he.prototype},he.compare=function(ye,Te){if(ja(ye,Uint8Array)&&(ye=he.from(ye,ye.offset,ye.byteLength)),ja(Te,Uint8Array)&&(Te=he.from(Te,Te.offset,Te.byteLength)),!he.isBuffer(ye)||!he.isBuffer(Te))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ye===Te)return 0;let it=ye.length,pt=Te.length;for(let ft=0,qn=Math.min(it,pt);ft<qn;++ft)if(ye[ft]!==Te[ft]){it=ye[ft],pt=Te[ft];break}return it<pt?-1:pt<it?1:0},he.isEncoding=function(ye){switch(String(ye).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},he.concat=function(ye,Te){if(!Array.isArray(ye))throw new TypeError('"list" argument must be an Array of Buffers');if(ye.length===0)return he.alloc(0);let it;if(Te===void 0)for(Te=0,it=0;it<ye.length;++it)Te+=ye[it].length;const pt=he.allocUnsafe(Te);let ft=0;for(it=0;it<ye.length;++it){let qn=ye[it];if(ja(qn,Uint8Array))ft+qn.length>pt.length?(he.isBuffer(qn)||(qn=he.from(qn)),qn.copy(pt,ft)):Uint8Array.prototype.set.call(pt,qn,ft);else if(he.isBuffer(qn))qn.copy(pt,ft);else throw new TypeError('"list" argument must be an Array of Buffers');ft+=qn.length}return pt};function ot(ge,ye){if(he.isBuffer(ge))return ge.length;if(ArrayBuffer.isView(ge)||ja(ge,ArrayBuffer))return ge.byteLength;if(typeof ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ge);const Te=ge.length,it=arguments.length>2&&arguments[2]===!0;if(!it&&Te===0)return 0;let pt=!1;for(;;)switch(ye){case"ascii":case"latin1":case"binary":return Te;case"utf8":case"utf-8":return Qa(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te*2;case"hex":return Te>>>1;case"base64":return qa(ge).length;default:if(pt)return it?-1:Qa(ge).length;ye=(""+ye).toLowerCase(),pt=!0}}he.byteLength=ot;function ht(ge,ye,Te){let it=!1;if((ye===void 0||ye<0)&&(ye=0),ye>this.length||((Te===void 0||Te>this.length)&&(Te=this.length),Te<=0)||(Te>>>=0,ye>>>=0,Te<=ye))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return _a(this,ye,Te);case"utf8":case"utf-8":return Kn(this,ye,Te);case"ascii":return Jn(this,ye,Te);case"latin1":case"binary":return zn(this,ye,Te);case"base64":return Ta(this,ye,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ia(this,ye,Te);default:if(it)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),it=!0}}he.prototype._isBuffer=!0;function dt(ge,ye,Te){const it=ge[ye];ge[ye]=ge[Te],ge[Te]=it}he.prototype.swap16=function(){const ye=this.length;if(ye%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Te=0;Te<ye;Te+=2)dt(this,Te,Te+1);return this},he.prototype.swap32=function(){const ye=this.length;if(ye%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Te=0;Te<ye;Te+=4)dt(this,Te,Te+3),dt(this,Te+1,Te+2);return this},he.prototype.swap64=function(){const ye=this.length;if(ye%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Te=0;Te<ye;Te+=8)dt(this,Te,Te+7),dt(this,Te+1,Te+6),dt(this,Te+2,Te+5),dt(this,Te+3,Te+4);return this},he.prototype.toString=function(){const ye=this.length;return ye===0?"":arguments.length===0?Kn(this,0,ye):ht.apply(this,arguments)},he.prototype.toLocaleString=he.prototype.toString,he.prototype.equals=function(ye){if(!he.isBuffer(ye))throw new TypeError("Argument must be a Buffer");return this===ye?!0:he.compare(this,ye)===0},he.prototype.inspect=function(){let ye="";const Te=te.INSPECT_MAX_BYTES;return ye=this.toString("hex",0,Te).replace(/(.{2})/g,"$1 ").trim(),this.length>Te&&(ye+=" ... "),"<Buffer "+ye+">"},le&&(he.prototype[le]=he.prototype.inspect),he.prototype.compare=function(ye,Te,it,pt,ft){if(ja(ye,Uint8Array)&&(ye=he.from(ye,ye.offset,ye.byteLength)),!he.isBuffer(ye))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ye);if(Te===void 0&&(Te=0),it===void 0&&(it=ye?ye.length:0),pt===void 0&&(pt=0),ft===void 0&&(ft=this.length),Te<0||it>ye.length||pt<0||ft>this.length)throw new RangeError("out of range index");if(pt>=ft&&Te>=it)return 0;if(pt>=ft)return-1;if(Te>=it)return 1;if(Te>>>=0,it>>>=0,pt>>>=0,ft>>>=0,this===ye)return 0;let qn=ft-pt,Pa=it-Te;const Va=Math.min(qn,Pa),Fa=this.slice(pt,ft),Oa=ye.slice(Te,it);for(let Ba=0;Ba<Va;++Ba)if(Fa[Ba]!==Oa[Ba]){qn=Fa[Ba],Pa=Oa[Ba];break}return qn<Pa?-1:Pa<qn?1:0};function Rt(ge,ye,Te,it,pt){if(ge.length===0)return-1;if(typeof Te=="string"?(it=Te,Te=0):Te>2147483647?Te=2147483647:Te<-2147483648&&(Te=-2147483648),Te=+Te,Ya(Te)&&(Te=pt?0:ge.length-1),Te<0&&(Te=ge.length+Te),Te>=ge.length){if(pt)return-1;Te=ge.length-1}else if(Te<0)if(pt)Te=0;else return-1;if(typeof ye=="string"&&(ye=he.from(ye,it)),he.isBuffer(ye))return ye.length===0?-1:Ct(ge,ye,Te,it,pt);if(typeof ye=="number")return ye=ye&255,typeof Uint8Array.prototype.indexOf=="function"?pt?Uint8Array.prototype.indexOf.call(ge,ye,Te):Uint8Array.prototype.lastIndexOf.call(ge,ye,Te):Ct(ge,[ye],Te,it,pt);throw new TypeError("val must be string, number or Buffer")}function Ct(ge,ye,Te,it,pt){let ft=1,qn=ge.length,Pa=ye.length;if(it!==void 0&&(it=String(it).toLowerCase(),it==="ucs2"||it==="ucs-2"||it==="utf16le"||it==="utf-16le")){if(ge.length<2||ye.length<2)return-1;ft=2,qn/=2,Pa/=2,Te/=2}function Va(Oa,Ba){return ft===1?Oa[Ba]:Oa.readUInt16BE(Ba*ft)}let Fa;if(pt){let Oa=-1;for(Fa=Te;Fa<qn;Fa++)if(Va(ge,Fa)===Va(ye,Oa===-1?0:Fa-Oa)){if(Oa===-1&&(Oa=Fa),Fa-Oa+1===Pa)return Oa*ft}else Oa!==-1&&(Fa-=Fa-Oa),Oa=-1}else for(Te+Pa>qn&&(Te=qn-Pa),Fa=Te;Fa>=0;Fa--){let Oa=!0;for(let Ba=0;Ba<Pa;Ba++)if(Va(ge,Fa+Ba)!==Va(ye,Ba)){Oa=!1;break}if(Oa)return Fa}return-1}he.prototype.includes=function(ye,Te,it){return this.indexOf(ye,Te,it)!==-1},he.prototype.indexOf=function(ye,Te,it){return Rt(this,ye,Te,it,!0)},he.prototype.lastIndexOf=function(ye,Te,it){return Rt(this,ye,Te,it,!1)};function Lt(ge,ye,Te,it){Te=Number(Te)||0;const pt=ge.length-Te;it?(it=Number(it),it>pt&&(it=pt)):it=pt;const ft=ye.length;it>ft/2&&(it=ft/2);let qn;for(qn=0;qn<it;++qn){const Pa=parseInt(ye.substr(qn*2,2),16);if(Ya(Pa))return qn;ge[Te+qn]=Pa}return qn}function Qn(ge,ye,Te,it){return Ha(Qa(ye,ge.length-Te),ge,Te,it)}function Mn(ge,ye,Te,it){return Ha(Wa(ye),ge,Te,it)}function Gn(ge,ye,Te,it){return Ha(qa(ye),ge,Te,it)}function Sa(ge,ye,Te,it){return Ha(va(ye,ge.length-Te),ge,Te,it)}he.prototype.write=function(ye,Te,it,pt){if(Te===void 0)pt="utf8",it=this.length,Te=0;else if(it===void 0&&typeof Te=="string")pt=Te,it=this.length,Te=0;else if(isFinite(Te))Te=Te>>>0,isFinite(it)?(it=it>>>0,pt===void 0&&(pt="utf8")):(pt=it,it=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ft=this.length-Te;if((it===void 0||it>ft)&&(it=ft),ye.length>0&&(it<0||Te<0)||Te>this.length)throw new RangeError("Attempt to write outside buffer bounds");pt||(pt="utf8");let qn=!1;for(;;)switch(pt){case"hex":return Lt(this,ye,Te,it);case"utf8":case"utf-8":return Qn(this,ye,Te,it);case"ascii":case"latin1":case"binary":return Mn(this,ye,Te,it);case"base64":return Gn(this,ye,Te,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sa(this,ye,Te,it);default:if(qn)throw new TypeError("Unknown encoding: "+pt);pt=(""+pt).toLowerCase(),qn=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ta(ge,ye,Te){return ye===0&&Te===ge.length?ie.fromByteArray(ge):ie.fromByteArray(ge.slice(ye,Te))}function Kn(ge,ye,Te){Te=Math.min(ge.length,Te);const it=[];let pt=ye;for(;pt<Te;){const ft=ge[pt];let qn=null,Pa=ft>239?4:ft>223?3:ft>191?2:1;if(pt+Pa<=Te){let Va,Fa,Oa,Ba;switch(Pa){case 1:ft<128&&(qn=ft);break;case 2:Va=ge[pt+1],(Va&192)===128&&(Ba=(ft&31)<<6|Va&63,Ba>127&&(qn=Ba));break;case 3:Va=ge[pt+1],Fa=ge[pt+2],(Va&192)===128&&(Fa&192)===128&&(Ba=(ft&15)<<12|(Va&63)<<6|Fa&63,Ba>2047&&(Ba<55296||Ba>57343)&&(qn=Ba));break;case 4:Va=ge[pt+1],Fa=ge[pt+2],Oa=ge[pt+3],(Va&192)===128&&(Fa&192)===128&&(Oa&192)===128&&(Ba=(ft&15)<<18|(Va&63)<<12|(Fa&63)<<6|Oa&63,Ba>65535&&Ba<1114112&&(qn=Ba))}}qn===null?(qn=65533,Pa=1):qn>65535&&(qn-=65536,it.push(qn>>>10&1023|55296),qn=56320|qn&1023),it.push(qn),pt+=Pa}return Ra(it)}const ka=4096;function Ra(ge){const ye=ge.length;if(ye<=ka)return String.fromCharCode.apply(String,ge);let Te="",it=0;for(;it<ye;)Te+=String.fromCharCode.apply(String,ge.slice(it,it+=ka));return Te}function Jn(ge,ye,Te){let it="";Te=Math.min(ge.length,Te);for(let pt=ye;pt<Te;++pt)it+=String.fromCharCode(ge[pt]&127);return it}function zn(ge,ye,Te){let it="";Te=Math.min(ge.length,Te);for(let pt=ye;pt<Te;++pt)it+=String.fromCharCode(ge[pt]);return it}function _a(ge,ye,Te){const it=ge.length;(!ye||ye<0)&&(ye=0),(!Te||Te<0||Te>it)&&(Te=it);let pt="";for(let ft=ye;ft<Te;++ft)pt+=Ja[ge[ft]];return pt}function Ia(ge,ye,Te){const it=ge.slice(ye,Te);let pt="";for(let ft=0;ft<it.length-1;ft+=2)pt+=String.fromCharCode(it[ft]+it[ft+1]*256);return pt}he.prototype.slice=function(ye,Te){const it=this.length;ye=~~ye,Te=Te===void 0?it:~~Te,ye<0?(ye+=it,ye<0&&(ye=0)):ye>it&&(ye=it),Te<0?(Te+=it,Te<0&&(Te=0)):Te>it&&(Te=it),Te<ye&&(Te=ye);const pt=this.subarray(ye,Te);return Object.setPrototypeOf(pt,he.prototype),pt};function wa(ge,ye,Te){if(ge%1!==0||ge<0)throw new RangeError("offset is not uint");if(ge+ye>Te)throw new RangeError("Trying to access beyond buffer length")}he.prototype.readUintLE=he.prototype.readUIntLE=function(ye,Te,it){ye=ye>>>0,Te=Te>>>0,it||wa(ye,Te,this.length);let pt=this[ye],ft=1,qn=0;for(;++qn<Te&&(ft*=256);)pt+=this[ye+qn]*ft;return pt},he.prototype.readUintBE=he.prototype.readUIntBE=function(ye,Te,it){ye=ye>>>0,Te=Te>>>0,it||wa(ye,Te,this.length);let pt=this[ye+--Te],ft=1;for(;Te>0&&(ft*=256);)pt+=this[ye+--Te]*ft;return pt},he.prototype.readUint8=he.prototype.readUInt8=function(ye,Te){return ye=ye>>>0,Te||wa(ye,1,this.length),this[ye]},he.prototype.readUint16LE=he.prototype.readUInt16LE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,2,this.length),this[ye]|this[ye+1]<<8},he.prototype.readUint16BE=he.prototype.readUInt16BE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,2,this.length),this[ye]<<8|this[ye+1]},he.prototype.readUint32LE=he.prototype.readUInt32LE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),(this[ye]|this[ye+1]<<8|this[ye+2]<<16)+this[ye+3]*16777216},he.prototype.readUint32BE=he.prototype.readUInt32BE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),this[ye]*16777216+(this[ye+1]<<16|this[ye+2]<<8|this[ye+3])},he.prototype.readBigUInt64LE=za(function(ye){ye=ye>>>0,Ca(ye,"offset");const Te=this[ye],it=this[ye+7];(Te===void 0||it===void 0)&&$a(ye,this.length-8);const pt=Te+this[++ye]*2**8+this[++ye]*2**16+this[++ye]*2**24,ft=this[++ye]+this[++ye]*2**8+this[++ye]*2**16+it*2**24;return BigInt(pt)+(BigInt(ft)<<BigInt(32))}),he.prototype.readBigUInt64BE=za(function(ye){ye=ye>>>0,Ca(ye,"offset");const Te=this[ye],it=this[ye+7];(Te===void 0||it===void 0)&&$a(ye,this.length-8);const pt=Te*2**24+this[++ye]*2**16+this[++ye]*2**8+this[++ye],ft=this[++ye]*2**24+this[++ye]*2**16+this[++ye]*2**8+it;return(BigInt(pt)<<BigInt(32))+BigInt(ft)}),he.prototype.readIntLE=function(ye,Te,it){ye=ye>>>0,Te=Te>>>0,it||wa(ye,Te,this.length);let pt=this[ye],ft=1,qn=0;for(;++qn<Te&&(ft*=256);)pt+=this[ye+qn]*ft;return ft*=128,pt>=ft&&(pt-=Math.pow(2,8*Te)),pt},he.prototype.readIntBE=function(ye,Te,it){ye=ye>>>0,Te=Te>>>0,it||wa(ye,Te,this.length);let pt=Te,ft=1,qn=this[ye+--pt];for(;pt>0&&(ft*=256);)qn+=this[ye+--pt]*ft;return ft*=128,qn>=ft&&(qn-=Math.pow(2,8*Te)),qn},he.prototype.readInt8=function(ye,Te){return ye=ye>>>0,Te||wa(ye,1,this.length),this[ye]&128?(255-this[ye]+1)*-1:this[ye]},he.prototype.readInt16LE=function(ye,Te){ye=ye>>>0,Te||wa(ye,2,this.length);const it=this[ye]|this[ye+1]<<8;return it&32768?it|4294901760:it},he.prototype.readInt16BE=function(ye,Te){ye=ye>>>0,Te||wa(ye,2,this.length);const it=this[ye+1]|this[ye]<<8;return it&32768?it|4294901760:it},he.prototype.readInt32LE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),this[ye]|this[ye+1]<<8|this[ye+2]<<16|this[ye+3]<<24},he.prototype.readInt32BE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),this[ye]<<24|this[ye+1]<<16|this[ye+2]<<8|this[ye+3]},he.prototype.readBigInt64LE=za(function(ye){ye=ye>>>0,Ca(ye,"offset");const Te=this[ye],it=this[ye+7];(Te===void 0||it===void 0)&&$a(ye,this.length-8);const pt=this[ye+4]+this[ye+5]*2**8+this[ye+6]*2**16+(it<<24);return(BigInt(pt)<<BigInt(32))+BigInt(Te+this[++ye]*2**8+this[++ye]*2**16+this[++ye]*2**24)}),he.prototype.readBigInt64BE=za(function(ye){ye=ye>>>0,Ca(ye,"offset");const Te=this[ye],it=this[ye+7];(Te===void 0||it===void 0)&&$a(ye,this.length-8);const pt=(Te<<24)+this[++ye]*2**16+this[++ye]*2**8+this[++ye];return(BigInt(pt)<<BigInt(32))+BigInt(this[++ye]*2**24+this[++ye]*2**16+this[++ye]*2**8+it)}),he.prototype.readFloatLE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),oe.read(this,ye,!0,23,4)},he.prototype.readFloatBE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,4,this.length),oe.read(this,ye,!1,23,4)},he.prototype.readDoubleLE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,8,this.length),oe.read(this,ye,!0,52,8)},he.prototype.readDoubleBE=function(ye,Te){return ye=ye>>>0,Te||wa(ye,8,this.length),oe.read(this,ye,!1,52,8)};function Vn(ge,ye,Te,it,pt,ft){if(!he.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(ye>pt||ye<ft)throw new RangeError('"value" argument is out of bounds');if(Te+it>ge.length)throw new RangeError("Index out of range")}he.prototype.writeUintLE=he.prototype.writeUIntLE=function(ye,Te,it,pt){if(ye=+ye,Te=Te>>>0,it=it>>>0,!pt){const Pa=Math.pow(2,8*it)-1;Vn(this,ye,Te,it,Pa,0)}let ft=1,qn=0;for(this[Te]=ye&255;++qn<it&&(ft*=256);)this[Te+qn]=ye/ft&255;return Te+it},he.prototype.writeUintBE=he.prototype.writeUIntBE=function(ye,Te,it,pt){if(ye=+ye,Te=Te>>>0,it=it>>>0,!pt){const Pa=Math.pow(2,8*it)-1;Vn(this,ye,Te,it,Pa,0)}let ft=it-1,qn=1;for(this[Te+ft]=ye&255;--ft>=0&&(qn*=256);)this[Te+ft]=ye/qn&255;return Te+it},he.prototype.writeUint8=he.prototype.writeUInt8=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,1,255,0),this[Te]=ye&255,Te+1},he.prototype.writeUint16LE=he.prototype.writeUInt16LE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,2,65535,0),this[Te]=ye&255,this[Te+1]=ye>>>8,Te+2},he.prototype.writeUint16BE=he.prototype.writeUInt16BE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,2,65535,0),this[Te]=ye>>>8,this[Te+1]=ye&255,Te+2},he.prototype.writeUint32LE=he.prototype.writeUInt32LE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,4,4294967295,0),this[Te+3]=ye>>>24,this[Te+2]=ye>>>16,this[Te+1]=ye>>>8,this[Te]=ye&255,Te+4},he.prototype.writeUint32BE=he.prototype.writeUInt32BE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,4,4294967295,0),this[Te]=ye>>>24,this[Te+1]=ye>>>16,this[Te+2]=ye>>>8,this[Te+3]=ye&255,Te+4};function Wn(ge,ye,Te,it,pt){Ga(ye,it,pt,ge,Te,7);let ft=Number(ye&BigInt(4294967295));ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft;let qn=Number(ye>>BigInt(32)&BigInt(4294967295));return ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,Te}function ba(ge,ye,Te,it,pt){Ga(ye,it,pt,ge,Te,7);let ft=Number(ye&BigInt(4294967295));ge[Te+7]=ft,ft=ft>>8,ge[Te+6]=ft,ft=ft>>8,ge[Te+5]=ft,ft=ft>>8,ge[Te+4]=ft;let qn=Number(ye>>BigInt(32)&BigInt(4294967295));return ge[Te+3]=qn,qn=qn>>8,ge[Te+2]=qn,qn=qn>>8,ge[Te+1]=qn,qn=qn>>8,ge[Te]=qn,Te+8}he.prototype.writeBigUInt64LE=za(function(ye,Te=0){return Wn(this,ye,Te,BigInt(0),BigInt("0xffffffffffffffff"))}),he.prototype.writeBigUInt64BE=za(function(ye,Te=0){return ba(this,ye,Te,BigInt(0),BigInt("0xffffffffffffffff"))}),he.prototype.writeIntLE=function(ye,Te,it,pt){if(ye=+ye,Te=Te>>>0,!pt){const Va=Math.pow(2,8*it-1);Vn(this,ye,Te,it,Va-1,-Va)}let ft=0,qn=1,Pa=0;for(this[Te]=ye&255;++ft<it&&(qn*=256);)ye<0&&Pa===0&&this[Te+ft-1]!==0&&(Pa=1),this[Te+ft]=(ye/qn>>0)-Pa&255;return Te+it},he.prototype.writeIntBE=function(ye,Te,it,pt){if(ye=+ye,Te=Te>>>0,!pt){const Va=Math.pow(2,8*it-1);Vn(this,ye,Te,it,Va-1,-Va)}let ft=it-1,qn=1,Pa=0;for(this[Te+ft]=ye&255;--ft>=0&&(qn*=256);)ye<0&&Pa===0&&this[Te+ft+1]!==0&&(Pa=1),this[Te+ft]=(ye/qn>>0)-Pa&255;return Te+it},he.prototype.writeInt8=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,1,127,-128),ye<0&&(ye=255+ye+1),this[Te]=ye&255,Te+1},he.prototype.writeInt16LE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,2,32767,-32768),this[Te]=ye&255,this[Te+1]=ye>>>8,Te+2},he.prototype.writeInt16BE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,2,32767,-32768),this[Te]=ye>>>8,this[Te+1]=ye&255,Te+2},he.prototype.writeInt32LE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,4,2147483647,-2147483648),this[Te]=ye&255,this[Te+1]=ye>>>8,this[Te+2]=ye>>>16,this[Te+3]=ye>>>24,Te+4},he.prototype.writeInt32BE=function(ye,Te,it){return ye=+ye,Te=Te>>>0,it||Vn(this,ye,Te,4,2147483647,-2147483648),ye<0&&(ye=4294967295+ye+1),this[Te]=ye>>>24,this[Te+1]=ye>>>16,this[Te+2]=ye>>>8,this[Te+3]=ye&255,Te+4},he.prototype.writeBigInt64LE=za(function(ye,Te=0){return Wn(this,ye,Te,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),he.prototype.writeBigInt64BE=za(function(ye,Te=0){return ba(this,ye,Te,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Aa(ge,ye,Te,it,pt,ft){if(Te+it>ge.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("Index out of range")}function Da(ge,ye,Te,it,pt){return ye=+ye,Te=Te>>>0,pt||Aa(ge,ye,Te,4),oe.write(ge,ye,Te,it,23,4),Te+4}he.prototype.writeFloatLE=function(ye,Te,it){return Da(this,ye,Te,!0,it)},he.prototype.writeFloatBE=function(ye,Te,it){return Da(this,ye,Te,!1,it)};function xa(ge,ye,Te,it,pt){return ye=+ye,Te=Te>>>0,pt||Aa(ge,ye,Te,8),oe.write(ge,ye,Te,it,52,8),Te+8}he.prototype.writeDoubleLE=function(ye,Te,it){return xa(this,ye,Te,!0,it)},he.prototype.writeDoubleBE=function(ye,Te,it){return xa(this,ye,Te,!1,it)},he.prototype.copy=function(ye,Te,it,pt){if(!he.isBuffer(ye))throw new TypeError("argument should be a Buffer");if(it||(it=0),!pt&&pt!==0&&(pt=this.length),Te>=ye.length&&(Te=ye.length),Te||(Te=0),pt>0&&pt<it&&(pt=it),pt===it||ye.length===0||this.length===0)return 0;if(Te<0)throw new RangeError("targetStart out of bounds");if(it<0||it>=this.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("sourceEnd out of bounds");pt>this.length&&(pt=this.length),ye.length-Te<pt-it&&(pt=ye.length-Te+it);const ft=pt-it;return this===ye&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Te,it,pt):Uint8Array.prototype.set.call(ye,this.subarray(it,pt),Te),ft},he.prototype.fill=function(ye,Te,it,pt){if(typeof ye=="string"){if(typeof Te=="string"?(pt=Te,Te=0,it=this.length):typeof it=="string"&&(pt=it,it=this.length),pt!==void 0&&typeof pt!="string")throw new TypeError("encoding must be a string");if(typeof pt=="string"&&!he.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);if(ye.length===1){const qn=ye.charCodeAt(0);(pt==="utf8"&&qn<128||pt==="latin1")&&(ye=qn)}}else typeof ye=="number"?ye=ye&255:typeof ye=="boolean"&&(ye=Number(ye));if(Te<0||this.length<Te||this.length<it)throw new RangeError("Out of range index");if(it<=Te)return this;Te=Te>>>0,it=it===void 0?this.length:it>>>0,ye||(ye=0);let ft;if(typeof ye=="number")for(ft=Te;ft<it;++ft)this[ft]=ye;else{const qn=he.isBuffer(ye)?ye:he.from(ye,pt),Pa=qn.length;if(Pa===0)throw new TypeError('The value "'+ye+'" is invalid for argument "value"');for(ft=0;ft<it-Te;++ft)this[ft+Te]=qn[ft%Pa]}return this};const Ea={};function Ma(ge,ye,Te){Ea[ge]=class extends Te{constructor(){super(),Object.defineProperty(this,"message",{value:ye.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ge}]`,this.stack,delete this.name}get code(){return ge}set code(pt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pt,writable:!0})}toString(){return`${this.name} [${ge}]: ${this.message}`}}}Ma("ERR_BUFFER_OUT_OF_BOUNDS",function(ge){return ge?`${ge} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ma("ERR_INVALID_ARG_TYPE",function(ge,ye){return`The "${ge}" argument must be of type number. Received type ${typeof ye}`},TypeError),Ma("ERR_OUT_OF_RANGE",function(ge,ye,Te){let it=`The value of "${ge}" is out of range.`,pt=Te;return Number.isInteger(Te)&&Math.abs(Te)>2**32?pt=La(String(Te)):typeof Te=="bigint"&&(pt=String(Te),(Te>BigInt(2)**BigInt(32)||Te<-(BigInt(2)**BigInt(32)))&&(pt=La(pt)),pt+="n"),it+=` It must be ${ye}. Received ${pt}`,it},RangeError);function La(ge){let ye="",Te=ge.length;const it=ge[0]==="-"?1:0;for(;Te>=it+4;Te-=3)ye=`_${ge.slice(Te-3,Te)}${ye}`;return`${ge.slice(0,Te)}${ye}`}function Ua(ge,ye,Te){Ca(ye,"offset"),(ge[ye]===void 0||ge[ye+Te]===void 0)&&$a(ye,ge.length-(Te+1))}function Ga(ge,ye,Te,it,pt,ft){if(ge>Te||ge<ye){const qn=typeof ye=="bigint"?"n":"";let Pa;throw ft>3?ye===0||ye===BigInt(0)?Pa=`>= 0${qn} and < 2${qn} ** ${(ft+1)*8}${qn}`:Pa=`>= -(2${qn} ** ${(ft+1)*8-1}${qn}) and < 2 ** ${(ft+1)*8-1}${qn}`:Pa=`>= ${ye}${qn} and <= ${Te}${qn}`,new Ea.ERR_OUT_OF_RANGE("value",Pa,ge)}Ua(it,pt,ft)}function Ca(ge,ye){if(typeof ge!="number")throw new Ea.ERR_INVALID_ARG_TYPE(ye,"number",ge)}function $a(ge,ye,Te){throw Math.floor(ge)!==ge?(Ca(ge,Te),new Ea.ERR_OUT_OF_RANGE(Te||"offset","an integer",ge)):ye<0?new Ea.ERR_BUFFER_OUT_OF_BOUNDS:new Ea.ERR_OUT_OF_RANGE(Te||"offset",`>= ${Te?1:0} and <= ${ye}`,ge)}const Ka=/[^+/0-9A-Za-z-_]/g;function Za(ge){if(ge=ge.split("=")[0],ge=ge.trim().replace(Ka,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function Qa(ge,ye){ye=ye||1/0;let Te;const it=ge.length;let pt=null;const ft=[];for(let qn=0;qn<it;++qn){if(Te=ge.charCodeAt(qn),Te>55295&&Te<57344){if(!pt){if(Te>56319){(ye-=3)>-1&&ft.push(239,191,189);continue}else if(qn+1===it){(ye-=3)>-1&&ft.push(239,191,189);continue}pt=Te;continue}if(Te<56320){(ye-=3)>-1&&ft.push(239,191,189),pt=Te;continue}Te=(pt-55296<<10|Te-56320)+65536}else pt&&(ye-=3)>-1&&ft.push(239,191,189);if(pt=null,Te<128){if((ye-=1)<0)break;ft.push(Te)}else if(Te<2048){if((ye-=2)<0)break;ft.push(Te>>6|192,Te&63|128)}else if(Te<65536){if((ye-=3)<0)break;ft.push(Te>>12|224,Te>>6&63|128,Te&63|128)}else if(Te<1114112){if((ye-=4)<0)break;ft.push(Te>>18|240,Te>>12&63|128,Te>>6&63|128,Te&63|128)}else throw new Error("Invalid code point")}return ft}function Wa(ge){const ye=[];for(let Te=0;Te<ge.length;++Te)ye.push(ge.charCodeAt(Te)&255);return ye}function va(ge,ye){let Te,it,pt;const ft=[];for(let qn=0;qn<ge.length&&!((ye-=2)<0);++qn)Te=ge.charCodeAt(qn),it=Te>>8,pt=Te%256,ft.push(pt),ft.push(it);return ft}function qa(ge){return ie.toByteArray(Za(ge))}function Ha(ge,ye,Te,it){let pt;for(pt=0;pt<it&&!(pt+Te>=ye.length||pt>=ge.length);++pt)ye[pt+Te]=ge[pt];return pt}function ja(ge,ye){return ge instanceof ye||ge!=null&&ge.constructor!=null&&ge.constructor.name!=null&&ge.constructor.name===ye.name}function Ya(ge){return ge!==ge}const Ja=function(){const ge="0123456789abcdef",ye=new Array(256);for(let Te=0;Te<16;++Te){const it=Te*16;for(let pt=0;pt<16;++pt)ye[it+pt]=ge[Te]+ge[pt]}return ye}();function za(ge){return typeof BigInt>"u"?Xa:ge}function Xa(){throw new Error("BigInt not supported")}})(buffer);var browser$1={exports:{}},process=browser$1.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(te){if(cachedSetTimeout===setTimeout)return setTimeout(te,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(te,0);try{return cachedSetTimeout(te,0)}catch{try{return cachedSetTimeout.call(null,te,0)}catch{return cachedSetTimeout.call(this,te,0)}}}function runClearTimeout(te){if(cachedClearTimeout===clearTimeout)return clearTimeout(te);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(te);try{return cachedClearTimeout(te)}catch{try{return cachedClearTimeout.call(null,te)}catch{return cachedClearTimeout.call(this,te)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var te=runTimeout(cleanUpNextTick);draining=!0;for(var ie=queue.length;ie;){for(currentQueue=queue,queue=[];++queueIndex<ie;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,ie=queue.length}currentQueue=null,draining=!1,runClearTimeout(te)}}process.nextTick=function(te){var ie=new Array(arguments.length-1);if(arguments.length>1)for(var oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];queue.push(new Item(te,ie)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(te,ie){this.fun=te,this.array=ie}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=!0;process.env={};process.argv=[];process.version="";process.versions={};function noop$1(){}process.on=noop$1;process.addListener=noop$1;process.once=noop$1;process.off=noop$1;process.removeListener=noop$1;process.removeAllListeners=noop$1;process.emit=noop$1;process.prependListener=noop$1;process.prependOnceListener=noop$1;process.listeners=function(te){return[]};process.binding=function(te){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(te){throw new Error("process.chdir is not supported")};process.umask=function(){return 0};var browserExports=browser$1.exports;(function(te){Object.defineProperty(te,Symbol.toStringTag,{value:"Module"});const ie=buffer,oe=browserExports,le=fe=>fe&&fe.__esModule?fe:{default:fe},ce=le(oe),ue=globalThis||void 0||self;Object.defineProperty(te,"Buffer",{enumerable:!0,get:()=>ie.Buffer}),Object.defineProperty(te,"process",{enumerable:!0,get:()=>ce.default}),te.global=ue})(dist);function makeInt64Support(){const te=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof te.getBigInt64=="function"&&typeof te.getBigUint64=="function"&&typeof te.setBigInt64=="function"&&typeof te.setBigUint64=="function"&&(typeof dist.process!="object"||typeof dist.process.env!="object"||!1)){const ce=BigInt("-9223372036854775808"),ue=BigInt("9223372036854775807"),fe=BigInt("0"),he=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(ve){const Se=typeof ve=="bigint"?ve:BigInt(ve);if(Se>ue||Se<ce)throw new Error(`int64 invalid: ${ve}`);return Se},uParse(ve){const Se=typeof ve=="bigint"?ve:BigInt(ve);if(Se>he||Se<fe)throw new Error(`uint64 invalid: ${ve}`);return Se},enc(ve){return te.setBigInt64(0,this.parse(ve),!0),{lo:te.getInt32(0,!0),hi:te.getInt32(4,!0)}},uEnc(ve){return te.setBigInt64(0,this.uParse(ve),!0),{lo:te.getInt32(0,!0),hi:te.getInt32(4,!0)}},dec(ve,Se){return te.setInt32(0,ve,!0),te.setInt32(4,Se,!0),te.getBigInt64(0,!0)},uDec(ve,Se){return te.setInt32(0,ve,!0),te.setInt32(4,Se,!0),te.getBigUint64(0,!0)}}}const oe=ce=>assert(/^-?[0-9]+$/.test(ce),`int64 invalid: ${ce}`),le=ce=>assert(/^[0-9]+$/.test(ce),`uint64 invalid: ${ce}`);return{zero:"0",supported:!1,parse(ce){return typeof ce!="string"&&(ce=ce.toString()),oe(ce),ce},uParse(ce){return typeof ce!="string"&&(ce=ce.toString()),le(ce),ce},enc(ce){return typeof ce!="string"&&(ce=ce.toString()),oe(ce),int64FromString(ce)},uEnc(ce){return typeof ce!="string"&&(ce=ce.toString()),le(ce),int64FromString(ce)},dec(ce,ue){return int64ToString(ce,ue)},uDec(ce,ue){return uInt64ToString(ce,ue)}}}const protoInt64=makeInt64Support();var WireType;(function(te){te[te.Varint=0]="Varint",te[te.Bit64=1]="Bit64",te[te.LengthDelimited=2]="LengthDelimited",te[te.StartGroup=3]="StartGroup",te[te.EndGroup=4]="EndGroup",te[te.Bit32=5]="Bit32"})(WireType||(WireType={}));class BinaryWriter{constructor(ie){this.stack=[],this.textEncoder=ie??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let ie=0;for(let ce=0;ce<this.chunks.length;ce++)ie+=this.chunks[ce].length;let oe=new Uint8Array(ie),le=0;for(let ce=0;ce<this.chunks.length;ce++)oe.set(this.chunks[ce],le),le+=this.chunks[ce].length;return this.chunks=[],oe}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let ie=this.finish(),oe=this.stack.pop();if(!oe)throw new Error("invalid state, fork stack empty");return this.chunks=oe.chunks,this.buf=oe.buf,this.uint32(ie.byteLength),this.raw(ie)}tag(ie,oe){return this.uint32((ie<<3|oe)>>>0)}raw(ie){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(ie),this}uint32(ie){for(assertUInt32(ie);ie>127;)this.buf.push(ie&127|128),ie=ie>>>7;return this.buf.push(ie),this}int32(ie){return assertInt32(ie),varint32write(ie,this.buf),this}bool(ie){return this.buf.push(ie?1:0),this}bytes(ie){return this.uint32(ie.byteLength),this.raw(ie)}string(ie){let oe=this.textEncoder.encode(ie);return this.uint32(oe.byteLength),this.raw(oe)}float(ie){assertFloat32(ie);let oe=new Uint8Array(4);return new DataView(oe.buffer).setFloat32(0,ie,!0),this.raw(oe)}double(ie){let oe=new Uint8Array(8);return new DataView(oe.buffer).setFloat64(0,ie,!0),this.raw(oe)}fixed32(ie){assertUInt32(ie);let oe=new Uint8Array(4);return new DataView(oe.buffer).setUint32(0,ie,!0),this.raw(oe)}sfixed32(ie){assertInt32(ie);let oe=new Uint8Array(4);return new DataView(oe.buffer).setInt32(0,ie,!0),this.raw(oe)}sint32(ie){return assertInt32(ie),ie=(ie<<1^ie>>31)>>>0,varint32write(ie,this.buf),this}sfixed64(ie){let oe=new Uint8Array(8),le=new DataView(oe.buffer),ce=protoInt64.enc(ie);return le.setInt32(0,ce.lo,!0),le.setInt32(4,ce.hi,!0),this.raw(oe)}fixed64(ie){let oe=new Uint8Array(8),le=new DataView(oe.buffer),ce=protoInt64.uEnc(ie);return le.setInt32(0,ce.lo,!0),le.setInt32(4,ce.hi,!0),this.raw(oe)}int64(ie){let oe=protoInt64.enc(ie);return varint64write(oe.lo,oe.hi,this.buf),this}sint64(ie){let oe=protoInt64.enc(ie),le=oe.hi>>31,ce=oe.lo<<1^le,ue=(oe.hi<<1|oe.lo>>>31)^le;return varint64write(ce,ue,this.buf),this}uint64(ie){let oe=protoInt64.uEnc(ie);return varint64write(oe.lo,oe.hi,this.buf),this}}class BinaryReader{constructor(ie,oe){this.varint64=varint64read,this.uint32=varint32read,this.buf=ie,this.len=ie.length,this.pos=0,this.view=new DataView(ie.buffer,ie.byteOffset,ie.byteLength),this.textDecoder=oe??new TextDecoder}tag(){let ie=this.uint32(),oe=ie>>>3,le=ie&7;if(oe<=0||le<0||le>5)throw new Error("illegal tag: field no "+oe+" wire type "+le);return[oe,le]}skip(ie){let oe=this.pos;switch(ie){case WireType.Varint:for(;this.buf[this.pos++]&128;);break;case WireType.Bit64:this.pos+=4;case WireType.Bit32:this.pos+=4;break;case WireType.LengthDelimited:let le=this.uint32();this.pos+=le;break;case WireType.StartGroup:let ce;for(;(ce=this.tag()[1])!==WireType.EndGroup;)this.skip(ce);break;default:throw new Error("cant skip wire type "+ie)}return this.assertBounds(),this.buf.subarray(oe,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let ie=this.uint32();return ie>>>1^-(ie&1)}int64(){return protoInt64.dec(...this.varint64())}uint64(){return protoInt64.uDec(...this.varint64())}sint64(){let[ie,oe]=this.varint64(),le=-(ie&1);return ie=(ie>>>1|(oe&1)<<31)^le,oe=oe>>>1^le,protoInt64.dec(ie,oe)}bool(){let[ie,oe]=this.varint64();return ie!==0||oe!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return protoInt64.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return protoInt64.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let ie=this.uint32(),oe=this.pos;return this.pos+=ie,this.assertBounds(),this.buf.subarray(oe,oe+ie)}string(){return this.textDecoder.decode(this.bytes())}}function wrapField(te,ie){return ie instanceof Message||!te.fieldWrapper?ie:te.fieldWrapper.wrapField(ie)}ScalarType.DOUBLE,ScalarType.FLOAT,ScalarType.INT64,ScalarType.UINT64,ScalarType.INT32,ScalarType.UINT32,ScalarType.BOOL,ScalarType.STRING,ScalarType.BYTES;function scalarEquals(te,ie,oe){if(ie===oe)return!0;if(te==ScalarType.BYTES){if(!(ie instanceof Uint8Array)||!(oe instanceof Uint8Array)||ie.length!==oe.length)return!1;for(let le=0;le<ie.length;le++)if(ie[le]!==oe[le])return!1;return!0}switch(te){case ScalarType.UINT64:case ScalarType.FIXED64:case ScalarType.INT64:case ScalarType.SFIXED64:case ScalarType.SINT64:return ie==oe}return!1}function scalarDefaultValue(te,ie){switch(te){case ScalarType.BOOL:return!1;case ScalarType.UINT64:case ScalarType.FIXED64:case ScalarType.INT64:case ScalarType.SFIXED64:case ScalarType.SINT64:return ie==0?protoInt64.zero:"0";case ScalarType.DOUBLE:case ScalarType.FLOAT:return 0;case ScalarType.BYTES:return new Uint8Array(0);case ScalarType.STRING:return"";default:return 0}}function scalarTypeInfo(te,ie){const oe=ie===void 0;let le=WireType.Varint,ce=ie===0;switch(te){case ScalarType.STRING:ce=oe||!ie.length,le=WireType.LengthDelimited;break;case ScalarType.BOOL:ce=ie===!1;break;case ScalarType.DOUBLE:le=WireType.Bit64;break;case ScalarType.FLOAT:le=WireType.Bit32;break;case ScalarType.INT64:ce=oe||ie==0;break;case ScalarType.UINT64:ce=oe||ie==0;break;case ScalarType.FIXED64:ce=oe||ie==0,le=WireType.Bit64;break;case ScalarType.BYTES:ce=oe||!ie.byteLength,le=WireType.LengthDelimited;break;case ScalarType.FIXED32:le=WireType.Bit32;break;case ScalarType.SFIXED32:le=WireType.Bit32;break;case ScalarType.SFIXED64:ce=oe||ie==0,le=WireType.Bit64;break;case ScalarType.SINT64:ce=oe||ie==0;break}const ue=ScalarType[te].toLowerCase();return[le,ue,oe||ce]}const unknownFieldsSymbol=Symbol("@bufbuild/protobuf/unknown-fields"),readDefaults={readUnknownFields:!0,readerFactory:te=>new BinaryReader(te)},writeDefaults={writeUnknownFields:!0,writerFactory:()=>new BinaryWriter};function makeReadOptions$1(te){return te?Object.assign(Object.assign({},readDefaults),te):readDefaults}function makeWriteOptions$1(te){return te?Object.assign(Object.assign({},writeDefaults),te):writeDefaults}function makeBinaryFormatCommon(){return{makeReadOptions:makeReadOptions$1,makeWriteOptions:makeWriteOptions$1,listUnknownFields(te){var ie;return(ie=te[unknownFieldsSymbol])!==null&&ie!==void 0?ie:[]},discardUnknownFields(te){delete te[unknownFieldsSymbol]},writeUnknownFields(te,ie){const le=te[unknownFieldsSymbol];if(le)for(const ce of le)ie.tag(ce.no,ce.wireType).raw(ce.data)},onUnknownField(te,ie,oe,le){const ce=te;Array.isArray(ce[unknownFieldsSymbol])||(ce[unknownFieldsSymbol]=[]),ce[unknownFieldsSymbol].push({no:ie,wireType:oe,data:le})},readMessage(te,ie,oe,le){const ce=te.getType(),ue=oe===void 0?ie.len:ie.pos+oe;for(;ie.pos<ue;){const[fe,he]=ie.tag(),ve=ce.fields.find(fe);if(!ve){const Pe=ie.skip(he);le.readUnknownFields&&this.onUnknownField(te,fe,he,Pe);continue}let Se=te,ke=ve.repeated,Me=ve.localName;switch(ve.oneof&&(Se=Se[ve.oneof.localName],Se.case!=Me&&delete Se.value,Se.case=Me,Me="value"),ve.kind){case"scalar":case"enum":const Pe=ve.kind=="enum"?ScalarType.INT32:ve.T;let Re=readScalar$1;if(ve.kind=="scalar"&&ve.L>0&&(Re=readScalarLTString),ke){let nt=Se[Me];if(he==WireType.LengthDelimited&&Pe!=ScalarType.STRING&&Pe!=ScalarType.BYTES){let rt=ie.uint32()+ie.pos;for(;ie.pos<rt;)nt.push(Re(ie,Pe))}else nt.push(Re(ie,Pe))}else Se[Me]=Re(ie,Pe);break;case"message":const Oe=ve.T;ke?Se[Me].push(readMessageField(ie,new Oe,le)):Se[Me]instanceof Message?readMessageField(ie,Se[Me],le):(Se[Me]=readMessageField(ie,new Oe,le),Oe.fieldWrapper&&!ve.oneof&&!ve.repeated&&(Se[Me]=Oe.fieldWrapper.unwrapField(Se[Me])));break;case"map":let[Be,xe]=readMapEntry(ve,ie,le);Se[Me][Be]=xe;break}}}}}function readMessageField(te,ie,oe){return ie.getType().runtime.bin.readMessage(ie,te,te.uint32(),oe),ie}function readMapEntry(te,ie,oe){const le=ie.uint32(),ce=ie.pos+le;let ue,fe;for(;ie.pos<ce;){let[he]=ie.tag();switch(he){case 1:ue=readScalar$1(ie,te.K);break;case 2:switch(te.V.kind){case"scalar":fe=readScalar$1(ie,te.V.T);break;case"enum":fe=ie.int32();break;case"message":fe=readMessageField(ie,new te.V.T,oe);break}break}}if(ue===void 0){let he=scalarDefaultValue(te.K,LongType.BIGINT);ue=te.K==ScalarType.BOOL?he.toString():he}if(typeof ue!="string"&&typeof ue!="number"&&(ue=ue.toString()),fe===void 0)switch(te.V.kind){case"scalar":fe=scalarDefaultValue(te.V.T,LongType.BIGINT);break;case"enum":fe=0;break;case"message":fe=new te.V.T;break}return[ue,fe]}function readScalarLTString(te,ie){const oe=readScalar$1(te,ie);return typeof oe=="bigint"?oe.toString():oe}function readScalar$1(te,ie){switch(ie){case ScalarType.STRING:return te.string();case ScalarType.BOOL:return te.bool();case ScalarType.DOUBLE:return te.double();case ScalarType.FLOAT:return te.float();case ScalarType.INT32:return te.int32();case ScalarType.INT64:return te.int64();case ScalarType.UINT64:return te.uint64();case ScalarType.FIXED64:return te.fixed64();case ScalarType.BYTES:return te.bytes();case ScalarType.FIXED32:return te.fixed32();case ScalarType.SFIXED32:return te.sfixed32();case ScalarType.SFIXED64:return te.sfixed64();case ScalarType.SINT64:return te.sint64();case ScalarType.UINT32:return te.uint32();case ScalarType.SINT32:return te.sint32()}}function writeMapEntry(te,ie,oe,le,ce){te.tag(oe.no,WireType.LengthDelimited),te.fork();let ue=le;switch(oe.K){case ScalarType.INT32:case ScalarType.FIXED32:case ScalarType.UINT32:case ScalarType.SFIXED32:case ScalarType.SINT32:ue=Number.parseInt(le);break;case ScalarType.BOOL:assert(le=="true"||le=="false"),ue=le=="true";break}switch(writeScalar$1(te,oe.K,1,ue,!0),oe.V.kind){case"scalar":writeScalar$1(te,oe.V.T,2,ce,!0);break;case"enum":writeScalar$1(te,ScalarType.INT32,2,ce,!0);break;case"message":writeMessageField(te,ie,oe.V.T,2,ce);break}te.join()}function writeMessageField(te,ie,oe,le,ce){if(ce!==void 0){const ue=wrapField(oe,ce);te.tag(le,WireType.LengthDelimited).bytes(ue.toBinary(ie))}}function writeScalar$1(te,ie,oe,le,ce){let[ue,fe,he]=scalarTypeInfo(ie,le);(!he||ce)&&te.tag(oe,ue)[fe](le)}function writePacked(te,ie,oe,le){if(!le.length)return;te.tag(oe,WireType.LengthDelimited).fork();let[,ce]=scalarTypeInfo(ie);for(let ue=0;ue<le.length;ue++)te[ce](le[ue]);te.join()}function makeBinaryFormatProto3(){return Object.assign(Object.assign({},makeBinaryFormatCommon()),{writeMessage(te,ie,oe){const le=te.getType();for(const ce of le.fields.byNumber()){let ue,fe=ce.repeated,he=ce.localName;if(ce.oneof){const ve=te[ce.oneof.localName];if(ve.case!==he)continue;ue=ve.value}else ue=te[he];switch(ce.kind){case"scalar":case"enum":let ve=ce.kind=="enum"?ScalarType.INT32:ce.T;if(fe)if(ce.packed)writePacked(ie,ve,ce.no,ue);else for(const Se of ue)writeScalar$1(ie,ve,ce.no,Se,!0);else ue!==void 0&&writeScalar$1(ie,ve,ce.no,ue,!!ce.oneof||ce.opt);break;case"message":if(fe)for(const Se of ue)writeMessageField(ie,oe,ce.T,ce.no,Se);else writeMessageField(ie,oe,ce.T,ce.no,ue);break;case"map":for(const[Se,ke]of Object.entries(ue))writeMapEntry(ie,oe,ce,Se,ke);break}}return oe.writeUnknownFields&&this.writeUnknownFields(te,ie),ie}})}let encTable="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),decTable=[];for(let te=0;te<encTable.length;te++)decTable[encTable[te].charCodeAt(0)]=te;decTable["-".charCodeAt(0)]=encTable.indexOf("+");decTable["_".charCodeAt(0)]=encTable.indexOf("/");const protoBase64={dec(te){let ie=te.length*3/4;te[te.length-2]=="="?ie-=2:te[te.length-1]=="="&&(ie-=1);let oe=new Uint8Array(ie),le=0,ce=0,ue,fe=0;for(let he=0;he<te.length;he++){if(ue=decTable[te.charCodeAt(he)],ue===void 0)switch(te[he]){case"=":ce=0;case`
10
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(ce){case 0:fe=ue,ce=1;break;case 1:oe[le++]=fe<<2|(ue&48)>>4,fe=ue,ce=2;break;case 2:oe[le++]=(fe&15)<<4|(ue&60)>>2,fe=ue,ce=3;break;case 3:oe[le++]=(fe&3)<<6|ue,ce=0;break}}if(ce==1)throw Error("invalid base64 string.");return oe.subarray(0,le)},enc(te){let ie="",oe=0,le,ce=0;for(let ue=0;ue<te.length;ue++)switch(le=te[ue],oe){case 0:ie+=encTable[le>>2],ce=(le&3)<<4,oe=1;break;case 1:ie+=encTable[ce|le>>4],ce=(le&15)<<2,oe=2;break;case 2:ie+=encTable[ce|le>>6],ie+=encTable[le&63],oe=0;break}return oe&&(ie+=encTable[ce],ie+="=",oe==1&&(ie+="=")),ie}},jsonReadDefaults={ignoreUnknownFields:!1},jsonWriteDefaults={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function makeReadOptions(te){return te?Object.assign(Object.assign({},jsonReadDefaults),te):jsonReadDefaults}function makeWriteOptions(te){return te?Object.assign(Object.assign({},jsonWriteDefaults),te):jsonWriteDefaults}function makeJsonFormatCommon(te){const ie=te(writeEnum,writeScalar);return{makeReadOptions,makeWriteOptions,readMessage(oe,le,ce,ue){if(le==null||Array.isArray(le)||typeof le!="object")throw new Error(`cannot decode message ${oe.typeName} from JSON: ${this.debug(le)}`);ue=ue??new oe;const fe={};for(const[he,ve]of Object.entries(le)){const Se=oe.fields.findJsonName(he);if(!Se){if(!ce.ignoreUnknownFields)throw new Error(`cannot decode message ${oe.typeName} from JSON: key "${he}" is unknown`);continue}let ke=Se.localName,Me=ue;if(Se.oneof){if(ve===null&&Se.kind=="scalar")continue;const Pe=fe[Se.oneof.localName];if(Pe)throw new Error(`cannot decode message ${oe.typeName} from JSON: multiple keys for oneof "${Se.oneof.name}" present: "${Pe}", "${he}"`);fe[Se.oneof.localName]=he,Me=Me[Se.oneof.localName]={case:ke},ke="value"}if(Se.repeated){if(ve===null)continue;if(!Array.isArray(ve))throw new Error(`cannot decode field ${oe.typeName}.${Se.name} from JSON: ${this.debug(ve)}`);const Pe=Me[ke];for(const Re of ve){if(Re===null)throw new Error(`cannot decode field ${oe.typeName}.${Se.name} from JSON: ${this.debug(Re)}`);let Oe;switch(Se.kind){case"message":Oe=Se.T.fromJson(Re,ce);break;case"enum":if(Oe=readEnum(Se.T,Re,ce.ignoreUnknownFields),Oe===void 0)continue;break;case"scalar":try{Oe=readScalar(Se.T,Re,Se.L)}catch(Be){let xe=`cannot decode field ${oe.typeName}.${Se.name} from JSON: ${this.debug(Re)}`;throw Be instanceof Error&&Be.message.length>0&&(xe+=`: ${Be.message}`),new Error(xe)}break}Pe.push(Oe)}}else if(Se.kind=="map"){if(ve===null)continue;if(Array.isArray(ve)||typeof ve!="object")throw new Error(`cannot decode field ${oe.typeName}.${Se.name} from JSON: ${this.debug(ve)}`);const Pe=Me[ke];for(const[Re,Oe]of Object.entries(ve)){if(Oe===null)throw new Error(`cannot decode field ${oe.typeName}.${Se.name} from JSON: map value null`);let Be;switch(Se.V.kind){case"message":Be=Se.V.T.fromJson(Oe,ce);break;case"enum":if(Be=readEnum(Se.V.T,Oe,ce.ignoreUnknownFields),Be===void 0)continue;break;case"scalar":try{Be=readScalar(Se.V.T,Oe,LongType.BIGINT)}catch(xe){let nt=`cannot decode map value for field ${oe.typeName}.${Se.name} from JSON: ${this.debug(ve)}`;throw xe instanceof Error&&xe.message.length>0&&(nt+=`: ${xe.message}`),new Error(nt)}break}try{Pe[readScalar(Se.K,Se.K==ScalarType.BOOL?Re=="true"?!0:Re=="false"?!1:Re:Re,LongType.BIGINT).toString()]=Be}catch(xe){let nt=`cannot decode map key for field ${oe.typeName}.${Se.name} from JSON: ${this.debug(ve)}`;throw xe instanceof Error&&xe.message.length>0&&(nt+=`: ${xe.message}`),new Error(nt)}}}else switch(Se.kind){case"message":const Pe=Se.T;if(ve===null&&Pe.typeName!="google.protobuf.Value"){if(Se.oneof)throw new Error(`cannot decode field ${oe.typeName}.${Se.name} from JSON: null is invalid for oneof field "${he}"`);continue}Me[ke]instanceof Message?Me[ke].fromJson(ve,ce):(Me[ke]=Pe.fromJson(ve,ce),Pe.fieldWrapper&&!Se.oneof&&(Me[ke]=Pe.fieldWrapper.unwrapField(Me[ke])));break;case"enum":const Re=readEnum(Se.T,ve,ce.ignoreUnknownFields);Re!==void 0&&(Me[ke]=Re);break;case"scalar":try{Me[ke]=readScalar(Se.T,ve,Se.L)}catch(Oe){let Be=`cannot decode field ${oe.typeName}.${Se.name} from JSON: ${this.debug(ve)}`;throw Oe instanceof Error&&Oe.message.length>0&&(Be+=`: ${Oe.message}`),new Error(Be)}break}}return ue},writeMessage(oe,le){const ce=oe.getType(),ue={};let fe;try{for(const he of ce.fields.byMember()){let ve;if(he.kind=="oneof"){const Se=oe[he.localName];if(Se.value===void 0)continue;if(fe=he.findField(Se.case),!fe)throw"oneof case not found: "+Se.case;ve=ie(fe,Se.value,le)}else fe=he,ve=ie(fe,oe[fe.localName],le);ve!==void 0&&(ue[le.useProtoFieldName?fe.name:fe.jsonName]=ve)}}catch(he){const ve=fe?`cannot encode field ${ce.typeName}.${fe.name} to JSON`:`cannot encode message ${ce.typeName} to JSON`,Se=he instanceof Error?he.message:String(he);throw new Error(ve+(Se.length>0?`: ${Se}`:""))}return ue},readScalar,writeScalar,debug:debugJsonValue}}function debugJsonValue(te){if(te===null)return"null";switch(typeof te){case"object":return Array.isArray(te)?"array":"object";case"string":return te.length>100?"string":`"${te.split('"').join('\\"')}"`;default:return String(te)}}function readScalar(te,ie,oe){switch(te){case ScalarType.DOUBLE:case ScalarType.FLOAT:if(ie===null)return 0;if(ie==="NaN")return Number.NaN;if(ie==="Infinity")return Number.POSITIVE_INFINITY;if(ie==="-Infinity")return Number.NEGATIVE_INFINITY;if(ie===""||typeof ie=="string"&&ie.trim().length!==ie.length||typeof ie!="string"&&typeof ie!="number")break;const le=Number(ie);if(Number.isNaN(le)||!Number.isFinite(le))break;return te==ScalarType.FLOAT&&assertFloat32(le),le;case ScalarType.INT32:case ScalarType.FIXED32:case ScalarType.SFIXED32:case ScalarType.SINT32:case ScalarType.UINT32:if(ie===null)return 0;let ce;if(typeof ie=="number"?ce=ie:typeof ie=="string"&&ie.length>0&&ie.trim().length===ie.length&&(ce=Number(ie)),ce===void 0)break;return te==ScalarType.UINT32?assertUInt32(ce):assertInt32(ce),ce;case ScalarType.INT64:case ScalarType.SFIXED64:case ScalarType.SINT64:if(ie===null)return protoInt64.zero;if(typeof ie!="number"&&typeof ie!="string")break;const ue=protoInt64.parse(ie);return oe?ue.toString():ue;case ScalarType.FIXED64:case ScalarType.UINT64:if(ie===null)return protoInt64.zero;if(typeof ie!="number"&&typeof ie!="string")break;const fe=protoInt64.uParse(ie);return oe?fe.toString():fe;case ScalarType.BOOL:if(ie===null)return!1;if(typeof ie!="boolean")break;return ie;case ScalarType.STRING:if(ie===null)return"";if(typeof ie!="string")break;try{encodeURIComponent(ie)}catch{throw new Error("invalid UTF8")}return ie;case ScalarType.BYTES:if(ie===null||ie==="")return new Uint8Array(0);if(typeof ie!="string")break;return protoBase64.dec(ie)}throw new Error}function readEnum(te,ie,oe){if(ie===null)return 0;switch(typeof ie){case"number":if(Number.isInteger(ie))return ie;break;case"string":const le=te.findName(ie);if(le||oe)return le==null?void 0:le.no;break}throw new Error(`cannot decode enum ${te.typeName} from JSON: ${debugJsonValue(ie)}`)}function writeEnum(te,ie,oe,le){var ce;if(ie===void 0)return ie;if(ie===0&&!oe)return;if(le)return ie;if(te.typeName=="google.protobuf.NullValue")return null;const ue=te.findNumber(ie);return(ce=ue==null?void 0:ue.name)!==null&&ce!==void 0?ce:ie}function writeScalar(te,ie,oe){if(ie!==void 0)switch(te){case ScalarType.INT32:case ScalarType.SFIXED32:case ScalarType.SINT32:case ScalarType.FIXED32:case ScalarType.UINT32:return assert(typeof ie=="number"),ie!=0||oe?ie:void 0;case ScalarType.FLOAT:case ScalarType.DOUBLE:return assert(typeof ie=="number"),Number.isNaN(ie)?"NaN":ie===Number.POSITIVE_INFINITY?"Infinity":ie===Number.NEGATIVE_INFINITY?"-Infinity":ie!==0||oe?ie:void 0;case ScalarType.STRING:return assert(typeof ie=="string"),ie.length>0||oe?ie:void 0;case ScalarType.BOOL:return assert(typeof ie=="boolean"),ie||oe?ie:void 0;case ScalarType.UINT64:case ScalarType.FIXED64:case ScalarType.INT64:case ScalarType.SFIXED64:case ScalarType.SINT64:return assert(typeof ie=="bigint"||typeof ie=="string"||typeof ie=="number"),oe||ie!=0?ie.toString(10):void 0;case ScalarType.BYTES:return assert(ie instanceof Uint8Array),oe||ie.byteLength>0?protoBase64.enc(ie):void 0}}function makeJsonFormatProto3(){return makeJsonFormatCommon((te,ie)=>function(le,ce,ue){if(le.kind=="map"){const fe={};switch(le.V.kind){case"scalar":for(const[ve,Se]of Object.entries(ce)){const ke=ie(le.V.T,Se,!0);assert(ke!==void 0),fe[ve.toString()]=ke}break;case"message":for(const[ve,Se]of Object.entries(ce))fe[ve.toString()]=Se.toJson(ue);break;case"enum":const he=le.V.T;for(const[ve,Se]of Object.entries(ce)){assert(Se===void 0||typeof Se=="number");const ke=te(he,Se,!0,ue.enumAsInteger);assert(ke!==void 0),fe[ve.toString()]=ke}break}return ue.emitDefaultValues||Object.keys(fe).length>0?fe:void 0}else if(le.repeated){const fe=[];switch(le.kind){case"scalar":for(let he=0;he<ce.length;he++)fe.push(ie(le.T,ce[he],!0));break;case"enum":for(let he=0;he<ce.length;he++)fe.push(te(le.T,ce[he],!0,ue.enumAsInteger));break;case"message":for(let he=0;he<ce.length;he++)fe.push(wrapField(le.T,ce[he]).toJson(ue));break}return ue.emitDefaultValues||fe.length>0?fe:void 0}else switch(le.kind){case"scalar":return ie(le.T,ce,!!le.oneof||le.opt||ue.emitDefaultValues);case"enum":return te(le.T,ce,!!le.oneof||le.opt||ue.emitDefaultValues,ue.enumAsInteger);case"message":return ce!==void 0?wrapField(le.T,ce).toJson(ue):void 0}})}function makeUtilCommon(){return{setEnumType,initPartial(te,ie){if(te===void 0)return;const oe=ie.getType();for(const le of oe.fields.byMember()){const ce=le.localName,ue=ie,fe=te;if(fe[ce]!==void 0)switch(le.kind){case"oneof":const he=fe[ce].case;if(he===void 0)continue;const ve=le.findField(he);let Se=fe[ce].value;ve&&ve.kind=="message"&&!(Se instanceof ve.T)?Se=new ve.T(Se):ve&&ve.kind==="scalar"&&ve.T===ScalarType.BYTES&&(Se=toU8Arr(Se)),ue[ce]={case:he,value:Se};break;case"scalar":case"enum":let ke=fe[ce];le.T===ScalarType.BYTES&&(ke=le.repeated?ke.map(toU8Arr):toU8Arr(ke)),ue[ce]=ke;break;case"map":switch(le.V.kind){case"scalar":case"enum":if(le.V.T===ScalarType.BYTES)for(const[Re,Oe]of Object.entries(fe[ce]))ue[ce][Re]=toU8Arr(Oe);else Object.assign(ue[ce],fe[ce]);break;case"message":const Pe=le.V.T;for(const Re of Object.keys(fe[ce])){let Oe=fe[ce][Re];Pe.fieldWrapper||(Oe=new Pe(Oe)),ue[ce][Re]=Oe}break}break;case"message":const Me=le.T;if(le.repeated)ue[ce]=fe[ce].map(Pe=>Pe instanceof Me?Pe:new Me(Pe));else if(fe[ce]!==void 0){const Pe=fe[ce];Me.fieldWrapper?Me.typeName==="google.protobuf.BytesValue"?ue[ce]=toU8Arr(Pe):ue[ce]=Pe:ue[ce]=Pe instanceof Me?Pe:new Me(Pe)}break}}},equals(te,ie,oe){return ie===oe?!0:!ie||!oe?!1:te.fields.byMember().every(le=>{const ce=ie[le.localName],ue=oe[le.localName];if(le.repeated){if(ce.length!==ue.length)return!1;switch(le.kind){case"message":return ce.every((fe,he)=>le.T.equals(fe,ue[he]));case"scalar":return ce.every((fe,he)=>scalarEquals(le.T,fe,ue[he]));case"enum":return ce.every((fe,he)=>scalarEquals(ScalarType.INT32,fe,ue[he]))}throw new Error(`repeated cannot contain ${le.kind}`)}switch(le.kind){case"message":return le.T.equals(ce,ue);case"enum":return scalarEquals(ScalarType.INT32,ce,ue);case"scalar":return scalarEquals(le.T,ce,ue);case"oneof":if(ce.case!==ue.case)return!1;const fe=le.findField(ce.case);if(fe===void 0)return!0;switch(fe.kind){case"message":return fe.T.equals(ce.value,ue.value);case"enum":return scalarEquals(ScalarType.INT32,ce.value,ue.value);case"scalar":return scalarEquals(fe.T,ce.value,ue.value)}throw new Error(`oneof cannot contain ${fe.kind}`);case"map":const he=Object.keys(ce).concat(Object.keys(ue));switch(le.V.kind){case"message":const ve=le.V.T;return he.every(ke=>ve.equals(ce[ke],ue[ke]));case"enum":return he.every(ke=>scalarEquals(ScalarType.INT32,ce[ke],ue[ke]));case"scalar":const Se=le.V.T;return he.every(ke=>scalarEquals(Se,ce[ke],ue[ke]))}break}})},clone(te){const ie=te.getType(),oe=new ie,le=oe;for(const ce of ie.fields.byMember()){const ue=te[ce.localName];let fe;if(ce.repeated)fe=ue.map(cloneSingularField);else if(ce.kind=="map"){fe=le[ce.localName];for(const[he,ve]of Object.entries(ue))fe[he]=cloneSingularField(ve)}else ce.kind=="oneof"?fe=ce.findField(ue.case)?{case:ue.case,value:cloneSingularField(ue.value)}:{case:void 0}:fe=cloneSingularField(ue);le[ce.localName]=fe}return oe}}}function cloneSingularField(te){if(te===void 0)return te;if(te instanceof Message)return te.clone();if(te instanceof Uint8Array){const ie=new Uint8Array(te.byteLength);return ie.set(te),ie}return te}function toU8Arr(te){return te instanceof Uint8Array?te:new Uint8Array(te)}class InternalFieldList{constructor(ie,oe){this._fields=ie,this._normalizer=oe}findJsonName(ie){if(!this.jsonNames){const oe={};for(const le of this.list())oe[le.jsonName]=oe[le.name]=le;this.jsonNames=oe}return this.jsonNames[ie]}find(ie){if(!this.numbers){const oe={};for(const le of this.list())oe[le.no]=le;this.numbers=oe}return this.numbers[ie]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((ie,oe)=>ie.no-oe.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const ie=this.members;let oe;for(const le of this.list())le.oneof?le.oneof!==oe&&(oe=le.oneof,ie.push(oe)):ie.push(le)}return this.members}}function localFieldName(te,ie){const oe=protoCamelCase(te);return ie?oe:safeObjectProperty(safeMessageProperty(oe))}function localOneofName(te){return localFieldName(te,!1)}const fieldJsonName=protoCamelCase;function protoCamelCase(te){let ie=!1;const oe=[];for(let le=0;le<te.length;le++){let ce=te.charAt(le);switch(ce){case"_":ie=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":oe.push(ce),ie=!1;break;default:ie&&(ie=!1,ce=ce.toUpperCase()),oe.push(ce);break}}return oe.join("")}const reservedObjectProperties=new Set(["constructor","toString","toJSON","valueOf"]),reservedMessageProperties=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),fallback=te=>`${te}$`,safeMessageProperty=te=>reservedMessageProperties.has(te)?fallback(te):te,safeObjectProperty=te=>reservedObjectProperties.has(te)?fallback(te):te;class InternalOneofInfo{constructor(ie){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=ie,this.localName=localOneofName(ie)}addField(ie){assert(ie.oneof===this,`field ${ie.name} not one of ${this.name}`),this.fields.push(ie)}findField(ie){if(!this._lookup){this._lookup=Object.create(null);for(let oe=0;oe<this.fields.length;oe++)this._lookup[this.fields[oe].localName]=this.fields[oe]}return this._lookup[ie]}}const proto3=makeProtoRuntime("proto3",makeJsonFormatProto3(),makeBinaryFormatProto3(),Object.assign(Object.assign({},makeUtilCommon()),{newFieldList(te){return new InternalFieldList(te,normalizeFieldInfosProto3)},initFields(te){for(const ie of te.getType().fields.byMember()){if(ie.opt)continue;const oe=ie.localName,le=te;if(ie.repeated){le[oe]=[];continue}switch(ie.kind){case"oneof":le[oe]={case:void 0};break;case"enum":le[oe]=0;break;case"map":le[oe]={};break;case"scalar":le[oe]=scalarDefaultValue(ie.T,ie.L);break}}}}));function normalizeFieldInfosProto3(te){var ie,oe,le,ce;const ue=[];let fe;for(const he of typeof te=="function"?te():te){const ve=he;if(ve.localName=localFieldName(he.name,he.oneof!==void 0),ve.jsonName=(ie=he.jsonName)!==null&&ie!==void 0?ie:fieldJsonName(he.name),ve.repeated=(oe=he.repeated)!==null&&oe!==void 0?oe:!1,he.kind=="scalar"&&(ve.L=(le=he.L)!==null&&le!==void 0?le:LongType.BIGINT),ve.packed=(ce=he.packed)!==null&&ce!==void 0?ce:he.kind=="enum"||he.kind=="scalar"&&he.T!=ScalarType.BYTES&&he.T!=ScalarType.STRING,he.oneof!==void 0){const Se=typeof he.oneof=="string"?he.oneof:he.oneof.name;(!fe||fe.name!=Se)&&(fe=new InternalOneofInfo(Se)),ve.oneof=fe,fe.addField(ve)}ue.push(ve)}return ue}var MethodKind;(function(te){te[te.Unary=0]="Unary",te[te.ServerStreaming=1]="ServerStreaming",te[te.ClientStreaming=2]="ClientStreaming",te[te.BiDiStreaming=3]="BiDiStreaming"})(MethodKind||(MethodKind={}));var MethodIdempotency;(function(te){te[te.NoSideEffects=1]="NoSideEffects",te[te.Idempotent=2]="Idempotent"})(MethodIdempotency||(MethodIdempotency={}));class Timestamp extends Message{constructor(ie){super(),this.seconds=protoInt64.zero,this.nanos=0,proto3.util.initPartial(ie,this)}fromJson(ie,oe){if(typeof ie!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${proto3.json.debug(ie)}`);const le=ie.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const ce=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(ce))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(ce<Date.parse("0001-01-01T00:00:00Z")||ce>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=protoInt64.parse(ce/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(ie){const oe=Number(this.seconds)*1e3;if(oe<Date.parse("0001-01-01T00:00:00Z")||oe>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let le="Z";if(this.nanos>0){const ce=(this.nanos+1e9).toString().substring(1);ce.substring(3)==="000000"?le="."+ce.substring(0,3)+"Z":ce.substring(6)==="000"?le="."+ce.substring(0,6)+"Z":le="."+ce+"Z"}return new Date(oe).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return Timestamp.fromDate(new Date)}static fromDate(ie){const oe=ie.getTime();return new Timestamp({seconds:protoInt64.parse(Math.floor(oe/1e3)),nanos:oe%1e3*1e6})}static fromBinary(ie,oe){return new Timestamp().fromBinary(ie,oe)}static fromJson(ie,oe){return new Timestamp().fromJson(ie,oe)}static fromJsonString(ie,oe){return new Timestamp().fromJsonString(ie,oe)}static equals(ie,oe){return proto3.util.equals(Timestamp,ie,oe)}}Timestamp.runtime=proto3;Timestamp.typeName="google.protobuf.Timestamp";Timestamp.fields=proto3.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Any extends Message{constructor(ie){super(),this.typeUrl="",this.value=new Uint8Array(0),proto3.util.initPartial(ie,this)}toJson(ie){var oe;if(this.typeUrl==="")return{};const le=this.typeUrlToName(this.typeUrl),ce=(oe=ie==null?void 0:ie.typeRegistry)===null||oe===void 0?void 0:oe.findMessage(le);if(!ce)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let fe=ce.fromBinary(this.value).toJson(ie);return(le.startsWith("google.protobuf.")||fe===null||Array.isArray(fe)||typeof fe!="object")&&(fe={value:fe}),fe["@type"]=this.typeUrl,fe}fromJson(ie,oe){var le;if(ie===null||Array.isArray(ie)||typeof ie!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${ie===null?"null":Array.isArray(ie)?"array":typeof ie}`);if(Object.keys(ie).length==0)return this;const ce=ie["@type"];if(typeof ce!="string"||ce=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const ue=this.typeUrlToName(ce),fe=(le=oe==null?void 0:oe.typeRegistry)===null||le===void 0?void 0:le.findMessage(ue);if(!fe)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${ce} is not in the type registry`);let he;if(ue.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(ie,"value"))he=fe.fromJson(ie.value,oe);else{const ve=Object.assign({},ie);delete ve["@type"],he=fe.fromJson(ve,oe)}return this.packFrom(he),this}packFrom(ie){this.value=ie.toBinary(),this.typeUrl=this.typeNameToUrl(ie.getType().typeName)}unpackTo(ie){return this.is(ie.getType())?(ie.fromBinary(this.value),!0):!1}unpack(ie){if(this.typeUrl==="")return;const oe=ie.findMessage(this.typeUrlToName(this.typeUrl));if(oe)return oe.fromBinary(this.value)}is(ie){if(this.typeUrl==="")return!1;const oe=this.typeUrlToName(this.typeUrl);let le="";return typeof ie=="string"?le=ie:le=ie.typeName,oe===le}typeNameToUrl(ie){return`type.googleapis.com/${ie}`}typeUrlToName(ie){if(!ie.length)throw new Error(`invalid type url: ${ie}`);const oe=ie.lastIndexOf("/"),le=oe>0?ie.substring(oe+1):ie;if(!le.length)throw new Error(`invalid type url: ${ie}`);return le}static pack(ie){const oe=new Any;return oe.packFrom(ie),oe}static fromBinary(ie,oe){return new Any().fromBinary(ie,oe)}static fromJson(ie,oe){return new Any().fromJson(ie,oe)}static fromJsonString(ie,oe){return new Any().fromJsonString(ie,oe)}static equals(ie,oe){return proto3.util.equals(Any,ie,oe)}}Any.runtime=proto3;Any.typeName="google.protobuf.Any";Any.fields=proto3.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);const QuestionType=proto3.makeEnum("streamlayer.interactive.QuestionType",[{no:0,name:"QUESTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_TYPE_POLL",localName:"POLL"},{no:2,name:"QUESTION_TYPE_TRIVIA",localName:"TRIVIA"},{no:3,name:"QUESTION_TYPE_PREDICTION",localName:"PREDICTION"},{no:4,name:"QUESTION_TYPE_FACTOID",localName:"FACTOID"},{no:5,name:"QUESTION_TYPE_TWEET",localName:"TWEET"},{no:6,name:"QUESTION_TYPE_PROMOTION",localName:"PROMOTION"}]),QuestionSource=proto3.makeEnum("streamlayer.interactive.QuestionSource",[{no:0,name:"QUESTION_SOURCE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SOURCE_AI",localName:"AI"},{no:2,name:"QUESTION_SOURCE_CSV_IMPORT",localName:"CSV_IMPORT"}]),QuestionStatus=proto3.makeEnum("streamlayer.interactive.QuestionStatus",[{no:0,name:"QUESTION_STATUS_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_STATUS_NOT_SCHEDULED",localName:"NOT_SCHEDULED"},{no:2,name:"QUESTION_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:3,name:"QUESTION_STATUS_ACTIVE",localName:"ACTIVE"},{no:4,name:"QUESTION_STATUS_RESOLVED",localName:"RESOLVED"}]),QuestionPosition=proto3.makeEnum("streamlayer.interactive.QuestionPosition",[{no:0,name:"QUESTION_POSITION_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_POSITION_DEFAULT",localName:"DEFAULT"},{no:2,name:"QUESTION_POSITION_FIXED_BOTTOM",localName:"FIXED_BOTTOM"}]),QuestionLayout=proto3.makeEnum("streamlayer.interactive.QuestionLayout",[{no:0,name:"QUESTION_LAYOUT_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_LAYOUT_LIST_VIEW",localName:"LIST_VIEW"},{no:2,name:"QUESTION_LAYOUT_GRID_VIEW",localName:"GRID_VIEW"}]),QuestionImages=proto3.makeEnum("streamlayer.interactive.QuestionImages",[{no:0,name:"QUESTION_IMAGES_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_IMAGES_NONE",localName:"NONE"},{no:2,name:"QUESTION_IMAGES_ROUNDED",localName:"ROUNDED"},{no:3,name:"QUESTION_IMAGES_TRANSPARENT",localName:"TRANSPARENT"},{no:4,name:"QUESTION_IMAGES_CENTERED",localName:"CENTERED"}]),ImagePosition=proto3.makeEnum("streamlayer.interactive.ImagePosition",[{no:0,name:"IMAGE_POSITION_UNSET",localName:"UNSET"},{no:1,name:"IMAGE_POSITION_LEFT",localName:"LEFT"},{no:2,name:"IMAGE_POSITION_RIGHT",localName:"RIGHT"}]),PromotionType=proto3.makeEnum("streamlayer.interactive.PromotionType",[{no:0,name:"PROMOTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_TYPE_INGAME_IAB21",localName:"INGAME_IAB21"},{no:2,name:"PROMOTION_TYPE_INGAME_IAB11",localName:"INGAME_IAB11"},{no:3,name:"PROMOTION_TYPE_INGAME_IAB61",localName:"INGAME_IAB61"},{no:4,name:"PROMOTION_TYPE_INGAME_IAB11_LBAR",localName:"INGAME_IAB11_LBAR"},{no:5,name:"PROMOTION_TYPE_INGAME_IAB21_LBAR",localName:"INGAME_IAB21_LBAR"}]),PromotionWallet=proto3.makeEnum("streamlayer.interactive.PromotionWallet",[{no:0,name:"PROMOTION_WALLET_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_WALLET_ENABLED",localName:"ENABLED"},{no:2,name:"PROMOTION_WALLET_DISABLED",localName:"DISABLED"}]),QuestionAutoPostState=proto3.makeEnum("streamlayer.interactive.QuestionAutoPostState",[{no:0,name:"QUESTION_AUTO_POST_STATE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_STATE_ON",localName:"ON"},{no:2,name:"QUESTION_AUTO_POST_STATE_OFF",localName:"OFF"},{no:3,name:"QUESTION_AUTO_POST_STATE_PAUSED",localName:"PAUSED"},{no:4,name:"QUESTION_AUTO_POST_STATE_IDLE",localName:"IDLE"},{no:5,name:"QUESTION_AUTO_POST_STATE_RESET",localName:"RESET"}]),QuestionAutoPostStart=proto3.makeEnum("streamlayer.interactive.QuestionAutoPostStart",[{no:0,name:"QUESTION_AUTO_POST_START_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_START_SCHEDULE",localName:"SCHEDULE"},{no:2,name:"QUESTION_AUTO_POST_START_NOW",localName:"NOW"}]),QuestionSkipReason=proto3.makeEnum("streamlayer.interactive.QuestionSkipReason",[{no:0,name:"QUESTION_SKIP_REASON_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SKIP_REASON_OVERDUE",localName:"OVERDUE"}]),SilenceSetting=proto3.makeEnum("streamlayer.interactive.SilenceSetting",[{no:0,name:"SILENCE_SETTING_UNSET",localName:"UNSET"},{no:1,name:"SILENCE_SETTING_ON",localName:"ON"},{no:2,name:"SILENCE_SETTING_OFF",localName:"OFF"}]),ImportStatus=proto3.makeEnum("streamlayer.interactive.ImportStatus",[{no:0,name:"IMPORT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"IMPORT_STATUS_PLANNED",localName:"PLANNED"},{no:2,name:"IMPORT_STATUS_RUNNING",localName:"RUNNING"},{no:3,name:"IMPORT_STATUS_COMPLETED",localName:"COMPLETED"},{no:4,name:"IMPORT_STATUS_FAILED",localName:"FAILED"}]),QuestionAppearance=proto3.makeMessageType("streamlayer.interactive.QuestionAppearance",()=>[{no:1,name:"layout",kind:"enum",T:proto3.getEnumType(QuestionLayout)},{no:2,name:"images",kind:"enum",T:proto3.getEnumType(QuestionImages)},{no:3,name:"primary_color",kind:"scalar",T:9},{no:4,name:"position",kind:"enum",T:proto3.getEnumType(QuestionPosition)},{no:5,name:"auto_hide_interval",kind:"scalar",T:4}]),Sponsorship=proto3.makeMessageType("streamlayer.interactive.Sponsorship",()=>[{no:1,name:"logo",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),QuestionNotification=proto3.makeMessageType("streamlayer.interactive.QuestionNotification",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9},{no:3,name:"indicator_color",kind:"scalar",T:9},{no:4,name:"image_position",kind:"enum",T:proto3.getEnumType(ImagePosition)},{no:5,name:"body",kind:"scalar",T:9},{no:6,name:"image_mode",kind:"enum",T:proto3.getEnumType(QuestionImages)}]),QuestionAnswer=proto3.makeMessageType("streamlayer.interactive.QuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13}]),ExtendedQuestionAnswer=proto3.makeMessageType("streamlayer.interactive.ExtendedQuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13},{no:6,name:"percentage",kind:"scalar",T:13},{no:7,name:"you_voted",kind:"scalar",T:8},{no:8,name:"percentage_decimal",kind:"scalar",T:1}]),AnswerFeedback=proto3.makeMessageType("streamlayer.interactive.AnswerFeedback",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]),FileLink=proto3.makeMessageType("streamlayer.interactive.FileLink",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"thumbnail_url",kind:"scalar",T:9}]),WebLink=proto3.makeMessageType("streamlayer.interactive.WebLink",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]),CTAButton=proto3.makeMessageType("streamlayer.interactive.CTAButton",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"color",kind:"scalar",T:9}]),Banner=proto3.makeMessageType("streamlayer.interactive.Banner",()=>[{no:1,name:"image_url",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"cta_button",kind:"message",T:CTAButton},{no:4,name:"video",kind:"message",T:FileLink},{no:5,name:"body",kind:"scalar",T:9}]),QuestionOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions",()=>[{no:1,name:"poll",kind:"message",T:QuestionOptions_PollOptions,oneof:"options"},{no:2,name:"trivia",kind:"message",T:QuestionOptions_TriviaOptions,oneof:"options"},{no:3,name:"prediction",kind:"message",T:QuestionOptions_PredictionOptions,oneof:"options"},{no:4,name:"factoid",kind:"message",T:QuestionOptions_FactoidOptions,oneof:"options"},{no:5,name:"tweet",kind:"message",T:QuestionOptions_TweetOptions,oneof:"options"},{no:6,name:"promotion",kind:"message",T:QuestionOptions_PromotionOptions,oneof:"options"}]),QuestionOptions_PollOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.PollOptions",[],{localName:"QuestionOptions_PollOptions"}),QuestionOptions_TriviaOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.TriviaOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:AnswerFeedback},{no:2,name:"incorrect_feedback",kind:"message",T:AnswerFeedback},{no:3,name:"points",kind:"scalar",T:4}],{localName:"QuestionOptions_TriviaOptions"}),QuestionOptions_PredictionOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.PredictionOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:AnswerFeedback},{no:2,name:"incorrect_feedback",kind:"message",T:AnswerFeedback}],{localName:"QuestionOptions_PredictionOptions"}),QuestionOptions_FactoidOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.FactoidOptions",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"video",kind:"message",T:FileLink},{no:4,name:"web_link",kind:"message",T:WebLink}],{localName:"QuestionOptions_FactoidOptions"}),QuestionOptions_TweetOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions",()=>[{no:1,name:"tweet_url",kind:"scalar",T:9},{no:2,name:"tweet_id",kind:"scalar",T:9},{no:3,name:"tweet_meta",kind:"message",T:QuestionOptions_TweetOptions_TweetMetadata}],{localName:"QuestionOptions_TweetOptions"}),QuestionOptions_TweetOptions_TweetMetadata=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions.TweetMetadata",()=>[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"account_verified",kind:"scalar",T:8},{no:3,name:"has_media",kind:"scalar",T:8}],{localName:"QuestionOptions_TweetOptions_TweetMetadata"}),QuestionOptions_PromotionOptions=proto3.makeMessageType("streamlayer.interactive.QuestionOptions.PromotionOptions",()=>[{no:1,name:"type",kind:"enum",T:proto3.getEnumType(PromotionType)},{no:2,name:"sponsor",kind:"message",T:Sponsorship},{no:3,name:"banner",kind:"message",T:Banner},{no:4,name:"enable_wallet",kind:"enum",T:proto3.getEnumType(PromotionWallet)},{no:5,name:"additional_banner",kind:"message",T:Banner}],{localName:"QuestionOptions_PromotionOptions"}),Tag=proto3.makeMessageType("streamlayer.interactive.Tag",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"last_used_time",kind:"scalar",T:4}]),QuestionAi=proto3.makeMessageType("streamlayer.interactive.QuestionAi",()=>[{no:1,name:"verified",kind:"scalar",T:8}]),Question=proto3.makeMessageType("streamlayer.interactive.Question",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(QuestionType)},{no:3,name:"subject",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:QuestionOptions},{no:5,name:"appearance",kind:"message",T:QuestionAppearance},{no:6,name:"sponsorship",kind:"message",T:Sponsorship},{no:7,name:"notification",kind:"message",T:QuestionNotification},{no:8,name:"answers",kind:"message",T:QuestionAnswer,repeated:!0},{no:9,name:"status",kind:"enum",T:proto3.getEnumType(QuestionStatus)},{no:10,name:"position",kind:"scalar",T:13,opt:!0},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"overrides",kind:"map",K:9,V:{kind:"scalar",T:8}},{no:15,name:"event_id",kind:"scalar",T:9},{no:16,name:"stream_timestamp",kind:"message",T:Timestamp},{no:17,name:"tags",kind:"message",T:Tag,repeated:!0},{no:18,name:"bypass_notifications",kind:"message",T:BypassNotifications},{no:19,name:"import_id",kind:"scalar",T:9},{no:20,name:"activation_trigger_count",kind:"scalar",T:13,opt:!0},{no:21,name:"source",kind:"enum",T:proto3.getEnumType(QuestionSource)},{no:22,name:"ai",kind:"message",T:QuestionAi}]),ExtendedQuestion=proto3.makeMessageType("streamlayer.interactive.ExtendedQuestion",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(QuestionType)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"options",kind:"message",T:QuestionOptions},{no:5,name:"appearance",kind:"message",T:QuestionAppearance},{no:6,name:"sponsorship",kind:"message",T:Sponsorship},{no:7,name:"notification",kind:"message",T:QuestionNotification},{no:8,name:"answers",kind:"message",T:ExtendedQuestionAnswer,repeated:!0},{no:9,name:"status",kind:"enum",T:proto3.getEnumType(QuestionStatus)},{no:10,name:"position",kind:"scalar",T:13},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"event_id",kind:"scalar",T:9},{no:15,name:"bypass_notifications",kind:"message",T:BypassNotifications}]);proto3.makeMessageType("streamlayer.interactive.QuestionTimeline",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(QuestionType)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"activated_at",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:proto3.getEnumType(QuestionStatus)},{no:6,name:"options",kind:"message",T:QuestionOptions},{no:7,name:"notification",kind:"message",T:QuestionNotification}]);const EventModeration=proto3.makeMessageType("streamlayer.interactive.EventModeration",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"sponsorship",kind:"message",T:Sponsorship},{no:4,name:"onboarding_enabled",kind:"scalar",T:8},{no:5,name:"question",kind:"message",T:EventModeration_QuestionSettings},{no:6,name:"sponsors",kind:"message",T:EventModeration_SponsorshipSettings},{no:7,name:"notification",kind:"message",T:EventModeration_NotificationSettings},{no:8,name:"activated_at",kind:"message",T:Timestamp},{no:9,name:"deactivated_at",kind:"message",T:Timestamp},{no:10,name:"question_auto_post",kind:"message",T:QuestionAutoPost},{no:11,name:"bypass_notifications",kind:"message",T:BypassNotifications},{no:12,name:"importer_collaboration",kind:"message",T:ImporterCollaboration}]),EventModeration_QuestionSettings=proto3.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings",()=>[{no:1,name:"appearance",kind:"message",T:QuestionAppearance},{no:2,name:"trivia",kind:"message",T:EventModeration_QuestionSettings_TriviaCardSettings},{no:3,name:"prediction",kind:"message",T:EventModeration_QuestionSettings_PredictionCardSettings},{no:4,name:"correct_feedbacks",kind:"message",T:AnswerFeedback,repeated:!0},{no:5,name:"incorrect_feedbacks",kind:"message",T:AnswerFeedback,repeated:!0}],{localName:"EventModeration_QuestionSettings"}),EventModeration_QuestionSettings_TriviaCardSettings=proto3.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.TriviaCardSettings",()=>[{no:1,name:"points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_TriviaCardSettings"}),EventModeration_QuestionSettings_PredictionCardSettings=proto3.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.PredictionCardSettings",()=>[{no:1,name:"max_points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_PredictionCardSettings"}),EventModeration_SponsorshipSettings=proto3.makeMessageType("streamlayer.interactive.EventModeration.SponsorshipSettings",()=>[{no:1,name:"sponsors",kind:"message",T:Sponsorship,repeated:!0}],{localName:"EventModeration_SponsorshipSettings"}),EventModeration_NotificationSettings=proto3.makeMessageType("streamlayer.interactive.EventModeration.NotificationSettings",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"indicator_color",kind:"scalar",T:9},{no:3,name:"image_position",kind:"enum",T:proto3.getEnumType(ImagePosition)},{no:4,name:"image_mode",kind:"enum",T:proto3.getEnumType(QuestionImages)}],{localName:"EventModeration_NotificationSettings"}),QuestionAutoPost=proto3.makeMessageType("streamlayer.interactive.QuestionAutoPost",()=>[{no:1,name:"state",kind:"enum",T:proto3.getEnumType(QuestionAutoPostState)},{no:2,name:"interval",kind:"scalar",T:13},{no:3,name:"next_post_time",kind:"message",T:Timestamp},{no:4,name:"start_mode",kind:"enum",T:proto3.getEnumType(QuestionAutoPostStart)},{no:5,name:"start_options",kind:"message",T:QuestionAutoPostStartOptions}]),QuestionAutoPostStartOptions=proto3.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions",()=>[{no:1,name:"schedule",kind:"message",T:QuestionAutoPostStartOptions_ScheduleOptions,oneof:"options"}]),QuestionAutoPostStartOptions_ScheduleOptions=proto3.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions.ScheduleOptions",()=>[{no:1,name:"timestamp",kind:"scalar",T:4}],{localName:"QuestionAutoPostStartOptions_ScheduleOptions"});proto3.makeMessageType("streamlayer.interactive.AnswerData",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13}]);const Pagination$1=proto3.makeMessageType("streamlayer.interactive.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5},{no:3,name:"cursor",kind:"scalar",T:9}]),Sort$1=proto3.makeMessageType("streamlayer.interactive.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.interactive.QuestionStats",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"question",kind:"message",T:QuestionStats_QuestionData},{no:3,name:"statistics",kind:"message",T:AnswerVotesStats,repeated:!0}]);const QuestionStats_QuestionData=proto3.makeMessageType("streamlayer.interactive.QuestionStats.QuestionData",()=>[{no:1,name:"status",kind:"enum",T:proto3.getEnumType(QuestionStatus)}],{localName:"QuestionStats_QuestionData"}),AnswerVotesStats=proto3.makeMessageType("streamlayer.interactive.AnswerVotesStats",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"votes",kind:"message",T:AnswerVotesStats_AnswerVotesData}]),AnswerVotesStats_AnswerVotesData=proto3.makeMessageType("streamlayer.interactive.AnswerVotesStats.AnswerVotesData",()=>[{no:1,name:"count",kind:"scalar",T:13},{no:2,name:"percentage",kind:"scalar",T:13}],{localName:"AnswerVotesStats_AnswerVotesData"});proto3.makeMessageType("streamlayer.interactive.ServerNotificationOptions",()=>[{no:1,name:"silence",kind:"scalar",T:8},{no:2,name:"skip_update",kind:"scalar",T:8}]);const BypassNotifications=proto3.makeMessageType("streamlayer.interactive.BypassNotifications",()=>[{no:1,name:"in_app_silence",kind:"enum",T:proto3.getEnumType(SilenceSetting)}]),ImportError=proto3.makeMessageType("streamlayer.interactive.ImportError",()=>[{no:1,name:"row_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]),ImportProgress=proto3.makeMessageType("streamlayer.interactive.ImportProgress",()=>[{no:1,name:"import_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:proto3.getEnumType(ImportStatus)},{no:3,name:"errors",kind:"message",T:ImportError,repeated:!0},{no:4,name:"last_updated",kind:"message",T:Timestamp}]),ImporterCollaboration=proto3.makeMessageType("streamlayer.interactive.ImporterCollaboration",()=>[{no:1,name:"imports",kind:"map",K:9,V:{kind:"message",T:ImportProgress}}]),PickHistoryStatus=proto3.makeEnum("streamlayer.interactive.feed.PickHistoryStatus",[{no:0,name:"PICK_HISTORY_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PICK_HISTORY_STATUS_WON",localName:"WON"},{no:2,name:"PICK_HISTORY_STATUS_LOST",localName:"LOST"},{no:3,name:"PICK_HISTORY_STATUS_DNP",localName:"DNP"}]),FeedUpdateType=proto3.makeEnum("streamlayer.interactive.feed.FeedUpdateType",[{no:0,name:"UPDATE_TYPE_UNSET"},{no:1,name:"UPDATE_TYPE_QUESTION_ACTIVATE"},{no:2,name:"UPDATE_TYPE_QUESTION_SET_CORRECT_ANSWER"},{no:3,name:"UPDATE_TYPE_QUESTION_RESOLVE"}]),FeedQuestion=proto3.makeMessageType("streamlayer.interactive.feed.FeedQuestion",()=>[{no:1,name:"question",kind:"message",T:Question},{no:2,name:"notification",kind:"message",T:QuestionNotification},{no:3,name:"moderation",kind:"message",T:EventModeration}]),SubscriptionRequest=proto3.makeMessageType("streamlayer.interactive.feed.SubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"feed_id",kind:"scalar",T:9}]),SubscriptionResponse=proto3.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:SubscriptionResponse_SubscriptionResponseData}]),SubscriptionResponse_SubscriptionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse.SubscriptionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:FeedQuestion}],{localName:"SubscriptionResponse_SubscriptionResponseData"}),VotingSubscriptionRequest=proto3.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionRequest",()=>[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"question_id",kind:"scalar",T:9}]),VotingSubscriptionResponse=proto3.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:VotingSubscriptionResponse_VotingSubscriptionResponseData}]),VotingSubscriptionResponse_VotingSubscriptionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse.VotingSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:AnswerVoteResult,repeated:!0}],{localName:"VotingSubscriptionResponse_VotingSubscriptionResponseData"}),QuestionSubscription=proto3.makeMessageType("streamlayer.interactive.feed.QuestionSubscription",()=>[{no:1,name:"question",kind:"message",T:ExtendedQuestion}]),QuestionSubscriptionRequest=proto3.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),QuestionSubscriptionResponse=proto3.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:QuestionSubscriptionResponse_QuestionSubscriptionResponseData}]),QuestionSubscriptionResponse_QuestionSubscriptionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse.QuestionSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:QuestionSubscription}],{localName:"QuestionSubscriptionResponse_QuestionSubscriptionResponseData"}),QuestionByUser=proto3.makeMessageType("streamlayer.interactive.feed.QuestionByUser",()=>[{no:1,name:"question",kind:"message",T:ExtendedQuestion}]),QuestionByUserRequest=proto3.makeMessageType("streamlayer.interactive.feed.QuestionByUserRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),QuestionByUserResponse=proto3.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse",()=>[{no:1,name:"data",kind:"message",T:QuestionByUserResponse_QuestionByUserResponseData}]),QuestionByUserResponse_QuestionByUserResponseData=proto3.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse.QuestionByUserResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:QuestionByUser}],{localName:"QuestionByUserResponse_QuestionByUserResponseData"}),SyncQuestionRequest=proto3.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest",()=>[{no:1,name:"filter",kind:"message",T:SyncQuestionRequest_SyncQuestionRequestFilter}]),SyncQuestionRequest_SyncQuestionRequestFilter=proto3.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest.SyncQuestionRequestFilter",()=>[{no:1,name:"event_id",kind:"scalar",T:9}],{localName:"SyncQuestionRequest_SyncQuestionRequestFilter"}),SyncQuestionResponse=proto3.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:SyncQuestionResponse_SyncQuestionResponseData}]),SyncQuestionResponse_SyncQuestionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse.SyncQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:FeedQuestion}],{localName:"SyncQuestionResponse_SyncQuestionResponseData"}),GetQuestionRequest=proto3.makeMessageType("streamlayer.interactive.feed.GetQuestionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),GetQuestionResponse=proto3.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:GetQuestionResponse_GetQuestionResponseData}]),GetQuestionResponse_GetQuestionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse.GetQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Question}],{localName:"GetQuestionResponse_GetQuestionResponseData"}),QuestionDetailRequest=proto3.makeMessageType("streamlayer.interactive.feed.QuestionDetailRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),QuestionDetailResponse=proto3.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse",()=>[{no:1,name:"data",kind:"message",T:QuestionDetailResponse_QuestionDetailResponseData}]),QuestionDetailResponse_QuestionDetailResponseData=proto3.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse.QuestionDetailResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ExtendedQuestion}],{localName:"QuestionDetailResponse_QuestionDetailResponseData"}),AnswerVoteResult=proto3.makeMessageType("streamlayer.interactive.feed.AnswerVoteResult",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13},{no:3,name:"voted",kind:"scalar",T:8},{no:4,name:"correct",kind:"scalar",T:8}]),SubmitAnswerRequest=proto3.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest",()=>[{no:1,name:"data",kind:"message",T:SubmitAnswerRequest_SubmitRequestData}]),SubmitAnswerRequest_SubmitRequestData=proto3.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest.SubmitRequestData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9}],{localName:"SubmitAnswerRequest_SubmitRequestData"}),SubmitAnswerResponse=proto3.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse",()=>[{no:1,name:"data",kind:"message",T:SubmitAnswerResponse_SubmitAnswerResponseData}]),SubmitAnswerResponse_SubmitAnswerResponseData=proto3.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse.SubmitAnswerResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:AnswerVoteResult,repeated:!0}],{localName:"SubmitAnswerResponse_SubmitAnswerResponseData"}),SubmitInplayRequest=proto3.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest",()=>[{no:1,name:"data",kind:"message",T:SubmitInplayRequest_SubmitRequestData}]),SubmitInplayRequest_SubmitRequestData=proto3.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest.SubmitRequestData",()=>[{no:1,name:"event_id",kind:"scalar",T:13}],{localName:"SubmitInplayRequest_SubmitRequestData"}),SubmitInplayResponse=proto3.makeMessageType("streamlayer.interactive.feed.SubmitInplayResponse",[]),SkipQuestionRequest=proto3.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest",()=>[{no:1,name:"data",kind:"message",T:SkipQuestionRequest_SkipQuestionRequestData}]),SkipQuestionRequest_SkipQuestionRequestData=proto3.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest.SkipQuestionRequestData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"reason",kind:"enum",T:proto3.getEnumType(QuestionSkipReason)}],{localName:"SkipQuestionRequest_SkipQuestionRequestData"}),SkipQuestionResponse=proto3.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:SkipQuestionResponse_SkipQuestionResponseData}]),SkipQuestionResponse_SkipQuestionResponseData=proto3.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse.SkipQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:AnswerVoteResult,repeated:!0}],{localName:"SkipQuestionResponse_SkipQuestionResponseData"}),PickHistoryRequest=proto3.makeMessageType("streamlayer.interactive.feed.PickHistoryRequest",()=>[{no:1,name:"question_type",kind:"enum",T:proto3.getEnumType(QuestionType),repeated:!0},{no:3,name:"event_id",kind:"scalar",T:9},{no:2,name:"pagination",kind:"message",T:Pagination$1}]),PickHistory=proto3.makeMessageType("streamlayer.interactive.feed.PickHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:proto3.getEnumType(PickHistoryStatus)},{no:4,name:"question_type",kind:"enum",T:proto3.getEnumType(QuestionType)},{no:5,name:"subject",kind:"scalar",T:9},{no:6,name:"text",kind:"scalar",T:9},{no:7,name:"open_for_voting",kind:"scalar",T:8},{no:8,name:"question_status",kind:"enum",T:proto3.getEnumType(QuestionStatus)}]),PickHistoryResponse=proto3.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:PickHistoryResponse_PickHistoryResponseData,repeated:!0},{no:2,name:"meta",kind:"message",T:PickHistoryResponse_PickHistoryResponseMetadata}]),PickHistoryResponse_PickHistoryResponseData=proto3.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseData",()=>[{no:1,name:"attributes",kind:"message",T:PickHistory}],{localName:"PickHistoryResponse_PickHistoryResponseData"}),PickHistoryResponse_PickHistoryResponseMetadata=proto3.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"PickHistoryResponse_PickHistoryResponseMetadata"}),InsightHistoryRequest=proto3.makeMessageType("streamlayer.interactive.feed.InsightHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),InstantView=proto3.makeMessageType("streamlayer.interactive.feed.InstantView",()=>[{no:1,name:"heading",kind:"scalar",T:9,opt:!0},{no:2,name:"body",kind:"scalar",T:9,opt:!0},{no:3,name:"image",kind:"scalar",T:9,opt:!0},{no:4,name:"video",kind:"message",T:FileLink,opt:!0},{no:5,name:"web_link",kind:"message",T:WebLink,opt:!0}]),InsightHistory=proto3.makeMessageType("streamlayer.interactive.feed.InsightHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"image_mode",kind:"enum",T:proto3.getEnumType(QuestionImages)},{no:5,name:"instant_view",kind:"message",T:InstantView,opt:!0}]),InsightHistoryResponse=proto3.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:InsightHistoryResponse_InsightHistoryResponseData,repeated:!0}]),InsightHistoryResponse_InsightHistoryResponseData=proto3.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse.InsightHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:InsightHistory}],{localName:"InsightHistoryResponse_InsightHistoryResponseData"}),TweetHistoryRequest=proto3.makeMessageType("streamlayer.interactive.feed.TweetHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),TweetHistory=proto3.makeMessageType("streamlayer.interactive.feed.TweetHistory",()=>[{no:1,name:"tweet_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"body",kind:"scalar",T:9},{no:5,name:"account",kind:"scalar",T:9},{no:6,name:"account_verified",kind:"scalar",T:8}]),TweetHistoryResponse=proto3.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:TweetHistoryResponse_TweetHistoryResponseData,repeated:!0}]),TweetHistoryResponse_TweetHistoryResponseData=proto3.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse.TweetHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:TweetHistory}],{localName:"TweetHistoryResponse_TweetHistoryResponseData"}),InteractiveFeed=proto3.makeMessageType("streamlayer.interactive.feed.InteractiveFeed",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"options",kind:"message",T:FeedOptions},{no:3,name:"moderation",kind:"message",T:EventModeration}]),FeedOptions=proto3.makeMessageType("streamlayer.interactive.feed.FeedOptions",()=>[{no:1,name:"onboarding_enabled",kind:"scalar",T:8}]),GetRequest$1=proto3.makeMessageType("streamlayer.interactive.feed.GetRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),GetResponse$1=proto3.makeMessageType("streamlayer.interactive.feed.GetResponse",()=>[{no:1,name:"data",kind:"message",T:GetResponse_GetResponseData$1}]),GetResponse_GetResponseData$1=proto3.makeMessageType("streamlayer.interactive.feed.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:InteractiveFeed}],{localName:"GetResponse_GetResponseData"}),PromotionHistoryRequest=proto3.makeMessageType("streamlayer.interactive.feed.PromotionHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),PromotionHistory=proto3.makeMessageType("streamlayer.interactive.feed.PromotionHistory",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9}]),PromotionHistoryResponse=proto3.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:PromotionHistoryResponse_PromotionHistoryResponseData,repeated:!0}]),PromotionHistoryResponse_PromotionHistoryResponseData=proto3.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse.PromotionHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:PromotionHistory}],{localName:"PromotionHistoryResponse_PromotionHistoryResponseData"}),FeedItemAttributes=proto3.makeMessageType("streamlayer.interactive.feed.FeedItemAttributes",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(QuestionType)},{no:3,name:"status",kind:"enum",T:proto3.getEnumType(QuestionStatus)},{no:8,name:"created",kind:"scalar",T:9},{no:4,name:"question",kind:"message",T:PickHistory,oneof:"attributes"},{no:5,name:"tweet",kind:"message",T:TweetHistory,oneof:"attributes"},{no:6,name:"insight",kind:"message",T:InsightHistory,oneof:"attributes"},{no:7,name:"promotion",kind:"message",T:PromotionHistory,oneof:"attributes"}]),FeedItem=proto3.makeMessageType("streamlayer.interactive.feed.FeedItem",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:FeedItemAttributes}]),FeedListRequest=proto3.makeMessageType("streamlayer.interactive.feed.FeedListRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"filter",kind:"message",T:FeedListRequest_FeedListFilter},{no:3,name:"pagination",kind:"message",T:Pagination$1}]),FeedListRequest_FeedListFilter=proto3.makeMessageType("streamlayer.interactive.feed.FeedListRequest.FeedListFilter",()=>[{no:1,name:"types",kind:"enum",T:proto3.getEnumType(QuestionType),repeated:!0},{no:2,name:"statuses",kind:"enum",T:proto3.getEnumType(QuestionStatus),repeated:!0}],{localName:"FeedListRequest_FeedListFilter"}),FeedListResponse=proto3.makeMessageType("streamlayer.interactive.feed.FeedListResponse",()=>[{no:1,name:"data",kind:"message",T:FeedItem,repeated:!0},{no:2,name:"meta",kind:"message",T:FeedListResponse_FeedListResponseMetadata}]),FeedListResponse_FeedListResponseMetadata=proto3.makeMessageType("streamlayer.interactive.feed.FeedListResponse.FeedListResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"FeedListResponse_FeedListResponseMetadata"}),FeedSubscriptionRequest=proto3.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),FeedSubscriptionResponse=proto3.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:FeedItem},{no:2,name:"meta",kind:"message",T:FeedSubscriptionResponse_FeedSubscriptionMeta}]),FeedSubscriptionResponse_FeedSubscriptionMeta=proto3.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionResponse.FeedSubscriptionMeta",()=>[{no:1,name:"type",kind:"enum",T:proto3.getEnumType(FeedUpdateType)}],{localName:"FeedSubscriptionResponse_FeedSubscriptionMeta"}),GameAppearance=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameAppearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}]),GameMedia=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameMedia",()=>[{no:1,name:"game_icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),GamePrize=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GamePrize",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9}]),GameOverview=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameOverview",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"auto_activate",kind:"scalar",T:8},{no:4,name:"scoring",kind:"scalar",T:8},{no:5,name:"media",kind:"message",T:GameMedia},{no:6,name:"appearance",kind:"message",T:GameAppearance},{no:7,name:"prizes",kind:"message",T:GamePrize,repeated:!0},{no:8,name:"completed",kind:"scalar",T:8}]),TitleCardMedia=proto3.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardMedia",()=>[{no:1,name:"icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),TitleCardAppearance=proto3.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardAppearance",()=>[{no:1,name:"graphic",kind:"scalar",T:9}]),GameTitleCard=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameTitleCard",()=>[{no:1,name:"visible",kind:"scalar",T:8},{no:2,name:"opt_in",kind:"scalar",T:8},{no:3,name:"title",kind:"scalar",T:9},{no:4,name:"subtitle",kind:"scalar",T:9},{no:5,name:"header",kind:"scalar",T:9},{no:6,name:"media",kind:"message",T:TitleCardMedia},{no:7,name:"appearance",kind:"message",T:TitleCardAppearance},{no:8,name:"completed",kind:"scalar",T:8}]),OnboardingStep=proto3.makeMessageType("streamlayer.sdkSettings.game.common.OnboardingStep",()=>[{no:1,name:"headline",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"graphic",kind:"scalar",T:9}]),GameOnboarding=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameOnboarding",()=>[{no:1,name:"steps",kind:"message",T:OnboardingStep,repeated:!0},{no:2,name:"completed",kind:"scalar",T:8}]),GameRules=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameRules",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"numbers_color",kind:"scalar",T:9},{no:5,name:"rules",kind:"scalar",T:9,repeated:!0},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"terms",kind:"scalar",T:9},{no:8,name:"terms_url",kind:"scalar",T:9}]),GameInviteCard=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameInviteCard",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"subtext",kind:"scalar",T:9},{no:4,name:"button_label",kind:"scalar",T:9},{no:5,name:"icon_color",kind:"scalar",T:9},{no:6,name:"terms",kind:"scalar",T:9},{no:7,name:"completed",kind:"scalar",T:8}]),GameSettings=proto3.makeMessageType("streamlayer.sdkSettings.game.common.GameSettings",()=>[{no:1,name:"overview",kind:"message",T:GameOverview},{no:2,name:"title_card",kind:"message",T:GameTitleCard},{no:3,name:"onboarding",kind:"message",T:GameOnboarding},{no:4,name:"rules",kind:"message",T:GameRules},{no:5,name:"invite_card",kind:"message",T:GameInviteCard},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"enable",kind:"scalar",T:8}]),ModerationGeneral=proto3.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationGeneral",()=>[{no:1,name:"default_color",kind:"scalar",T:9},{no:2,name:"points",kind:"scalar",T:13},{no:3,name:"auto_hide_interval",kind:"scalar",T:4},{no:4,name:"insights_history_enabled",kind:"scalar",T:8},{no:5,name:"pick_history_enabled",kind:"scalar",T:8},{no:6,name:"correct_feedbacks",kind:"message",T:AnswerFeedback,repeated:!0},{no:7,name:"incorrect_feedbacks",kind:"message",T:AnswerFeedback,repeated:!0}]),ModerationNotifications=proto3.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationNotifications",()=>[{no:1,name:"default_image",kind:"scalar",T:9},{no:2,name:"image_mode",kind:"enum",T:proto3.getEnumType(QuestionImages)}]),ModerationSponsorships=proto3.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSponsorships",()=>[{no:1,name:"rotate",kind:"scalar",T:8},{no:2,name:"no_sponsor",kind:"scalar",T:8},{no:3,name:"sponsors",kind:"message",T:Sponsorship,repeated:!0}]),ModerationSettings=proto3.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSettings",()=>[{no:1,name:"general",kind:"message",T:ModerationGeneral},{no:2,name:"notifications",kind:"message",T:ModerationNotifications},{no:3,name:"sponsorships",kind:"message",T:ModerationSponsorships}]),SdkOverlayType=proto3.makeEnum("streamlayer.sdkSettings.SdkOverlayType",[{no:0,name:"SDK_OVERLAY_TYPE_UNSET",localName:"UNSET"},{no:1,name:"SDK_OVERLAY_TYPE_INPLAY",localName:"INPLAY"},{no:2,name:"SDK_OVERLAY_TYPE_MESSAGING",localName:"MESSAGING"},{no:3,name:"SDK_OVERLAY_TYPE_STATISTICS",localName:"STATISTICS"},{no:4,name:"SDK_OVERLAY_TYPE_BETTING",localName:"BETTING"},{no:5,name:"SDK_OVERLAY_TYPE_TWITTER",localName:"TWITTER"},{no:6,name:"SDK_OVERLAY_TYPE_MERCHANDISE",localName:"MERCHANDISE"},{no:7,name:"SDK_OVERLAY_TYPE_CONTESTS",localName:"CONTESTS"},{no:8,name:"SDK_OVERLAY_TYPE_VOICE_CHAT",localName:"VOICE_CHAT"},{no:9,name:"SDK_OVERLAY_TYPE_TICKETS",localName:"TICKETS"},{no:10,name:"SDK_OVERLAY_TYPE_WHOIS_WATCHING",localName:"WHOIS_WATCHING"},{no:11,name:"SDK_OVERLAY_TYPE_PROFILE",localName:"PROFILE"},{no:12,name:"SDK_OVERLAY_TYPE_GAMES",localName:"GAMES"},{no:13,name:"SDK_OVERLAY_TYPE_GOLF_STATISTICS",localName:"GOLF_STATISTICS"},{no:14,name:"SDK_OVERLAY_TYPE_HIGHLIGHTS",localName:"HIGHLIGHTS"},{no:15,name:"SDK_OVERLAY_TYPE_PUBLIC_CHAT",localName:"PUBLIC_CHAT"}]),BettingFavoriteType=proto3.makeEnum("streamlayer.sdkSettings.BettingFavoriteType",[{no:0,name:"BETTING_FAVORITE_TYPE_UNSET",localName:"UNSET"},{no:1,name:"BETTING_FAVORITE_TYPE_LEAGUE",localName:"LEAGUE"},{no:2,name:"BETTING_FAVORITE_TYPE_TEAM",localName:"TEAM"}]),BettingSettingsTextColor=proto3.makeEnum("streamlayer.sdkSettings.BettingSettingsTextColor",[{no:0,name:"BETTING_SETTINGS_TEXT_COLOR_UNSET",localName:"UNSET"},{no:1,name:"BETTING_SETTINGS_TEXT_COLOR_PRIMARY",localName:"PRIMARY"},{no:2,name:"BETTING_SETTINGS_TEXT_COLOR_GREY",localName:"GREY"},{no:3,name:"BETTING_SETTINGS_TEXT_COLOR_CUSTOM",localName:"CUSTOM"}]),GetStreamChannelType=proto3.makeEnum("streamlayer.sdkSettings.GetStreamChannelType",[{no:0,name:"GETSTREAM_CHANNEL_TYPE_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_TYPE_LIVESTREAM"},{no:2,name:"GETSTREAM_CHANNEL_TYPE_MESSAGING"},{no:3,name:"GETSTREAM_CHANNEL_TYPE_TEAM"},{no:4,name:"GETSTREAM_CHANNEL_TYPE_COMMERCE"},{no:5,name:"GETSTREAM_CHANNEL_TYPE_GAMING"},{no:6,name:"GETSTREAM_CHANNEL_TYPE_CUSTOM"}]),GetStreamChannelDefault=proto3.makeEnum("streamlayer.sdkSettings.GetStreamChannelDefault",[{no:0,name:"GETSTREAM_CHANNEL_DEFAULT_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_DEFAULT_TRUE"},{no:2,name:"GETSTREAM_CHANNEL_DEFAULT_FALSE"}]),GetStreamEnabled=proto3.makeEnum("streamlayer.sdkSettings.GetStreamEnabled",[{no:0,name:"GETSTREAM_ENABLED_UNSET"},{no:1,name:"GETSTREAM_ENABLED_TRUE"},{no:2,name:"GETSTREAM_ENABLED_FALSE"}]),LeaderboardKind=proto3.makeEnum("streamlayer.sdkSettings.LeaderboardKind",[{no:0,name:"LEADERBOARD_KIND_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_KIND_GLOBAL",localName:"GLOBAL"},{no:2,name:"LEADERBOARD_KIND_FRIENDS",localName:"FRIENDS"}]),PresetRuleKey=proto3.makeEnum("streamlayer.sdkSettings.PresetRuleKey",[{no:0,name:"PRESET_RULE_KEY_UNSET",localName:"UNSET"},{no:1,name:"PRESET_RULE_KEY_SPORT",localName:"SPORT"},{no:2,name:"PRESET_RULE_KEY_LEAGUE",localName:"LEAGUE"},{no:3,name:"PRESET_RULE_KEY_TEAMS",localName:"TEAMS"}]),AdvertisingPlacement=proto3.makeEnum("streamlayer.sdkSettings.AdvertisingPlacement",[{no:0,name:"ADVERTISING_PLACEMENT_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_PLACEMENT_DEFAULT",localName:"DEFAULT"},{no:2,name:"ADVERTISING_PLACEMENT_WATCHPARTY_FULLSIZE",localName:"WATCHPARTY_FULLSIZE"},{no:3,name:"ADVERTISING_PLACEMENT_WATCHPARTY_VIDEOPANEL",localName:"WATCHPARTY_VIDEOPANEL"},{no:4,name:"ADVERTISING_PLACEMENT_OVERLAY_NAVBAR",localName:"OVERLAY_NAVBAR"}]);proto3.makeEnum("streamlayer.sdkSettings.AdvertisingType",[{no:0,name:"ADVERTISING_TYPE_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_TYPE_SPONSORS",localName:"SPONSORS"},{no:2,name:"ADVERTISING_TYPE_INTERSTITIALS",localName:"INTERSTITIALS"},{no:3,name:"ADVERTISING_TYPE_BANNERS",localName:"BANNERS"}]);const TwitterOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.TwitterOverlaySettings",()=>[{no:1,name:"accounts",kind:"scalar",T:9,repeated:!0}]),BettingFavorite=proto3.makeMessageType("streamlayer.sdkSettings.BettingFavorite",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"icon",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"type",kind:"enum",T:proto3.getEnumType(BettingFavoriteType)}]),CtaImage=proto3.makeMessageType("streamlayer.sdkSettings.CtaImage",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),BrandDefaults=proto3.makeMessageType("streamlayer.sdkSettings.BrandDefaults",()=>[{no:1,name:"appearance",kind:"message",T:BrandDefaults_Appearance}]),BrandDefaults_Appearance=proto3.makeMessageType("streamlayer.sdkSettings.BrandDefaults.Appearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}],{localName:"BrandDefaults_Appearance"}),BettingOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.BettingOverlaySettings",()=>[{no:1,name:"favorites",kind:"message",T:BettingFavorite,repeated:!0},{no:2,name:"primary_color",kind:"scalar",T:9},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"text_color",kind:"enum",T:proto3.getEnumType(BettingSettingsTextColor)},{no:5,name:"app_installed_text",kind:"scalar",T:9},{no:6,name:"app_not_installed_text",kind:"scalar",T:9},{no:7,name:"text_color_custom",kind:"scalar",T:9},{no:8,name:"cta_image",kind:"message",T:CtaImage}]),GetStreamSettingsClient=proto3.makeMessageType("streamlayer.sdkSettings.GetStreamSettingsClient",()=>[{no:1,name:"enabled",kind:"enum",T:proto3.getEnumType(GetStreamEnabled)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:5,name:"default_channel_type",kind:"enum",T:proto3.getEnumType(GetStreamChannelType)}]),GetStreamChannel=proto3.makeMessageType("streamlayer.sdkSettings.GetStreamChannel",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"channel_id",kind:"scalar",T:9},{no:4,name:"channel_type",kind:"enum",T:proto3.getEnumType(GetStreamChannelType)},{no:5,name:"is_default",kind:"enum",T:proto3.getEnumType(GetStreamChannelDefault)}]),GetStreamChannels=proto3.makeMessageType("streamlayer.sdkSettings.GetStreamChannels",()=>[{no:1,name:"enabled",kind:"enum",T:proto3.getEnumType(GetStreamEnabled)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:4,name:"default_channel_type",kind:"enum",T:proto3.getEnumType(GetStreamChannelType)},{no:5,name:"default_channel",kind:"message",T:GetStreamChannel},{no:6,name:"channels",kind:"message",T:GetStreamChannel,repeated:!0}]),StreamSettings=proto3.makeMessageType("streamlayer.sdkSettings.StreamSettings",()=>[{no:1,name:"overlays",kind:"message",T:SdkOverlay,repeated:!0},{no:2,name:"custom",kind:"scalar",T:8},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"primary_color",kind:"scalar",T:9},{no:5,name:"secondary_color",kind:"scalar",T:9},{no:6,name:"moderation_primary_color",kind:"scalar",T:9},{no:7,name:"link_share_icon",kind:"scalar",T:9},{no:8,name:"link_share_text",kind:"scalar",T:9},{no:9,name:"brand_defaults",kind:"message",T:BrandDefaults},{no:10,name:"getstream",kind:"message",T:GetStreamChannels}]),JWK=proto3.makeMessageType("streamlayer.sdkSettings.JWK",()=>[{no:1,name:"alg",kind:"scalar",T:9,opt:!0},{no:2,name:"crv",kind:"scalar",T:9,opt:!0},{no:3,name:"d",kind:"scalar",T:9,opt:!0},{no:4,name:"dp",kind:"scalar",T:9,opt:!0},{no:5,name:"dq",kind:"scalar",T:9,opt:!0},{no:6,name:"e",kind:"scalar",T:9,opt:!0},{no:7,name:"ext",kind:"scalar",T:8,opt:!0},{no:8,name:"k",kind:"scalar",T:9,opt:!0},{no:9,name:"key_ops",kind:"scalar",T:9,repeated:!0},{no:10,name:"kid",kind:"scalar",T:9,opt:!0},{no:11,name:"kty",kind:"scalar",T:9,opt:!0},{no:12,name:"n",kind:"scalar",T:9,opt:!0},{no:13,name:"oth",kind:"message",T:JWK_OTH,repeated:!0},{no:14,name:"p",kind:"scalar",T:9,opt:!0},{no:15,name:"q",kind:"scalar",T:9,opt:!0},{no:16,name:"qi",kind:"scalar",T:9,opt:!0},{no:17,name:"use",kind:"scalar",T:9,opt:!0},{no:18,name:"x",kind:"scalar",T:9,opt:!0},{no:19,name:"y",kind:"scalar",T:9,opt:!0},{no:20,name:"x5c",kind:"scalar",T:9,repeated:!0},{no:21,name:"x5t",kind:"scalar",T:9,opt:!0},{no:22,name:"x5u",kind:"scalar",T:9,opt:!0}]),JWK_OTH=proto3.makeMessageType("streamlayer.sdkSettings.JWK.OTH",()=>[{no:1,name:"d",kind:"scalar",T:9,opt:!0},{no:2,name:"r",kind:"scalar",T:9,opt:!0},{no:3,name:"t",kind:"scalar",T:9,opt:!0}],{localName:"JWK_OTH"}),OrganizationSettings=proto3.makeMessageType("streamlayer.sdkSettings.OrganizationSettings",()=>[{no:1,name:"overlays",kind:"message",T:SdkOverlay,repeated:!0},{no:2,name:"button_icon",kind:"scalar",T:9},{no:3,name:"tinode_host",kind:"scalar",T:9},{no:4,name:"audience",kind:"scalar",T:9},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"provider",kind:"scalar",T:9},{no:7,name:"primary_color",kind:"scalar",T:9},{no:8,name:"secondary_color",kind:"scalar",T:9},{no:9,name:"moderation_primary_color",kind:"scalar",T:9},{no:10,name:"link_share_icon",kind:"scalar",T:9},{no:11,name:"link_share_text",kind:"scalar",T:9},{no:12,name:"brand_defaults",kind:"message",T:BrandDefaults},{no:13,name:"pub",kind:"message",T:JWK},{no:14,name:"getstream",kind:"message",T:GetStreamSettingsClient}]),GamesOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.GamesOverlaySettings",()=>[{no:1,name:"inplay_game",kind:"message",T:GameSettings},{no:2,name:"moderation",kind:"message",T:ModerationSettings},{no:3,name:"pinned_leaderboard_id",kind:"scalar",T:9},{no:4,name:"leaderboard_kind",kind:"enum",T:proto3.getEnumType(LeaderboardKind)}]),GetStreamOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.GetStreamOverlaySettings",()=>[{no:1,name:"default_channel",kind:"message",T:GetStreamChannel},{no:2,name:"channels",kind:"message",T:GetStreamChannel,repeated:!0}]),SdkOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.SdkOverlaySettings",()=>[{no:4,name:"twitter",kind:"message",T:TwitterOverlaySettings,oneof:"overlay_settings"},{no:5,name:"betting",kind:"message",T:BettingOverlaySettings,oneof:"overlay_settings"},{no:6,name:"inplay",kind:"message",T:BettingOverlaySettings,oneof:"overlay_settings"},{no:7,name:"games",kind:"message",T:GamesOverlaySettings,oneof:"overlay_settings"},{no:8,name:"getstream",kind:"message",T:GetStreamOverlaySettings,oneof:"overlay_settings"},{no:9,name:"public_chat",kind:"message",T:GetStreamOverlaySettings,oneof:"overlay_settings"}]),SdkOverlayMeta=proto3.makeMessageType("streamlayer.sdkSettings.SdkOverlayMeta",()=>[{no:1,name:"organization",kind:"message",T:SdkOverlaySettings},{no:2,name:"global_preset",kind:"message",T:SdkOverlaySettings},{no:3,name:"preset",kind:"message",T:SdkOverlaySettings},{no:4,name:"stream",kind:"message",T:SdkOverlaySettings}]),SdkOverlay=proto3.makeMessageType("streamlayer.sdkSettings.SdkOverlay",()=>[{no:1,name:"type",kind:"enum",T:proto3.getEnumType(SdkOverlayType)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:SdkOverlaySettings},{no:6,name:"meta",kind:"message",T:SdkOverlayMeta},{no:7,name:"enable",kind:"scalar",T:8},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:14,name:"enable_sdk_button",kind:"scalar",T:8}]);proto3.makeMessageType("streamlayer.sdkSettings.SdkOverlayUpdateData",()=>[{no:1,name:"type",kind:"enum",T:proto3.getEnumType(SdkOverlayType)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:SdkOverlaySettings},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);proto3.makeMessageType("streamlayer.sdkSettings.OverlaysListRequest",[]);proto3.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse",()=>[{no:1,name:"data",kind:"message",T:OverlaysListResponse_OverlaysListResponseData}]);const OverlaysListResponse_OverlaysListResponseData=proto3.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse.OverlaysListResponseData",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",T:SdkOverlay,repeated:!0}],{localName:"OverlaysListResponse_OverlaysListResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:GenerateSdkKeyResponse_GenerateSdkKeyResponseData}]);const GenerateSdkKeyResponse_GenerateSdkKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse.GenerateSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateSdkKeyResponse_GenerateSdkKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:RemoveSdkKeyResponse_RemoveSdkKeyResponseData}]);const RemoveSdkKeyResponse_RemoveSdkKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse.RemoveSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveSdkKeyResponse_RemoveSdkKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.ListSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:ListSdkKeyResponse_ListSdkKeyResponseData}]);const ListSdkKeyResponse_ListSdkKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse.ListSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"ListSdkKeyResponse_ListSdkKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.RegisterTwitterRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"stream_id",kind:"scalar",T:9},{no:3,name:"account",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.RegisterTwitterResponse",[]);proto3.makeMessageType("streamlayer.sdkSettings.Preset",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"rule",kind:"message",T:PresetRule},{no:3,name:"settings",kind:"message",T:PresetSettings}]);const PresetSettings=proto3.makeMessageType("streamlayer.sdkSettings.PresetSettings",()=>[{no:1,name:"overlays",kind:"message",T:SdkOverlay,repeated:!0},{no:2,name:"advertising",kind:"message",T:Advertising}]),PresetRule=proto3.makeMessageType("streamlayer.sdkSettings.PresetRule",()=>[{no:1,name:"key",kind:"enum",T:proto3.getEnumType(PresetRuleKey)},{no:2,name:"value",kind:"scalar",T:9}]),AdvertisingConstraints=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraints",()=>[{no:1,name:"images",kind:"message",T:AdvertisingConstraint},{no:2,name:"videos",kind:"message",T:AdvertisingConstraint}]),AdvertisingConstraint=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraint",()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5},{no:3,name:"max_file_size",kind:"scalar",T:1},{no:4,name:"mime",kind:"scalar",T:9}]),AdvertisingTemplate=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplate",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"constraints",kind:"map",K:9,V:{kind:"message",T:AdvertisingConstraints}}]);proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplates",()=>[{no:1,name:"templates",kind:"message",T:AdvertisingTemplate,repeated:!0}]);const AdvertisingImage=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingImage",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"placement",kind:"enum",T:proto3.getEnumType(AdvertisingPlacement)}]),AdvertisingVideo=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingVideo",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"background_color",kind:"scalar",T:9}]),AdvertisingSettings=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingSettings",()=>[{no:1,name:"frequency",kind:"scalar",T:5},{no:2,name:"images",kind:"message",T:AdvertisingImage,repeated:!0},{no:3,name:"videos",kind:"message",T:AdvertisingVideo,repeated:!0}]),AdvertisingOverlaySettings=proto3.makeMessageType("streamlayer.sdkSettings.AdvertisingOverlaySettings",()=>[{no:1,name:"overlay_type",kind:"enum",T:proto3.getEnumType(SdkOverlayType)},{no:2,name:"settings",kind:"map",K:9,V:{kind:"message",T:AdvertisingSettings}},{no:3,name:"enabled",kind:"scalar",T:8},{no:4,name:"overlay_name",kind:"scalar",T:9},{no:5,name:"use_custom",kind:"scalar",T:8,opt:!0}]),Advertising=proto3.makeMessageType("streamlayer.sdkSettings.Advertising",()=>[{no:1,name:"template_id",kind:"scalar",T:9},{no:2,name:"overlay_settings",kind:"map",K:9,V:{kind:"message",T:AdvertisingOverlaySettings}}]);proto3.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:GenerateApiKeyResponse_GenerateApiKeyResponseData}]);const GenerateApiKeyResponse_GenerateApiKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse.GenerateApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateApiKeyResponse_GenerateApiKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"token",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:RemoveApiKeyResponse_RemoveApiKeyResponseData}]);const RemoveApiKeyResponse_RemoveApiKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse.RemoveApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveApiKeyResponse_RemoveApiKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:GetApiKeyResponse_GetApiKeyResponseData}]);const GetApiKeyResponse_GetApiKeyResponseData=proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse.GetApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyResponse_GetApiKeyResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse",()=>[{no:1,name:"data",kind:"message",T:GetApiKeyStudioResponse_GetApiKeyStudioResponseData}]);const GetApiKeyStudioResponse_GetApiKeyStudioResponseData=proto3.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse.GetApiKeyStudioResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyStudioResponse_GetApiKeyStudioResponseData"});let tasks=0,resolves=[];function startTask(){return tasks+=1,()=>{if(tasks-=1,tasks===0){let te=resolves;resolves=[];for(let ie of te)ie()}}}let listenerQueue=[],atom=(te,ie)=>{let oe=[],le={get(){return le.lc||le.listen(()=>{})(),le.value},l:ie||0,lc:0,listen(ce,ue){return le.lc=oe.push(ce,ue||le.l)/2,()=>{let fe=oe.indexOf(ce);~fe&&(oe.splice(fe,2),--le.lc||le.off())}},notify(ce){let ue=!listenerQueue.length;for(let fe=0;fe<oe.length;fe+=2)listenerQueue.push(oe[fe],oe[fe+1],le.value,ce);if(ue){for(let fe=0;fe<listenerQueue.length;fe+=4){let he;for(let ve=fe+1;!he&&(ve+=4)<listenerQueue.length;)listenerQueue[ve]<listenerQueue[fe+1]&&(he=listenerQueue.push(listenerQueue[fe],listenerQueue[fe+1],listenerQueue[fe+2],listenerQueue[fe+3]));he||listenerQueue[fe](listenerQueue[fe+2],listenerQueue[fe+3])}listenerQueue.length=0}},off(){},set(ce){le.value!==ce&&(le.value=ce,le.notify())},subscribe(ce,ue){let fe=le.listen(ce,ue);return ce(le.value),fe},value:te};return le};const START=0,STOP=1,MOUNT=5,UNMOUNT=6,REVERT_MUTATION=10;let on$1=(te,ie,oe,le)=>(te.events=te.events||{},te.events[oe+REVERT_MUTATION]||(te.events[oe+REVERT_MUTATION]=le(ce=>{te.events[oe].reduceRight((ue,fe)=>(fe(ue),ue),{shared:{},...ce})})),te.events[oe]=te.events[oe]||[],te.events[oe].push(ie),()=>{let ce=te.events[oe],ue=ce.indexOf(ie);ce.splice(ue,1),ce.length||(delete te.events[oe],te.events[oe+REVERT_MUTATION](),delete te.events[oe+REVERT_MUTATION])}),onStart=(te,ie)=>on$1(te,ie,START,oe=>{let le=te.listen;return te.listen=ce=>(!te.lc&&!te.starting&&(te.starting=!0,oe(),delete te.starting),le(ce)),()=>{te.listen=le}}),onStop=(te,ie)=>on$1(te,ie,STOP,oe=>{let le=te.off;return te.off=()=>{oe(),le()},()=>{te.off=le}}),STORE_UNMOUNT_DELAY=1e3,onMount=(te,ie)=>on$1(te,le=>{let ce=ie(le);ce&&te.events[UNMOUNT].push(ce)},MOUNT,le=>{let ce=te.listen;te.listen=(...fe)=>(!te.lc&&!te.active&&(te.active=!0,le()),ce(...fe));let ue=te.off;return te.events[UNMOUNT]=[],te.off=()=>{ue(),setTimeout(()=>{if(te.active&&!te.lc){te.active=!1;for(let fe of te.events[UNMOUNT])fe();te.events[UNMOUNT]=[]}},STORE_UNMOUNT_DELAY)},()=>{te.listen=ce,te.off=ue}}),computed=(te,ie)=>{Array.isArray(te)||(te=[te]);let oe,le=()=>{let ue=te.map(fe=>fe.get());(oe===void 0||ue.some((fe,he)=>fe!==oe[he]))&&(oe=ue,ce.set(ie(...ue)))},ce=atom(void 0,Math.max(...te.map(ue=>ue.l))+1);return onMount(ce,()=>{let ue=te.map(fe=>fe.listen(le,ce.l));return le(),()=>{for(let fe of ue)fe()}}),ce};function listenKeys(te,ie,oe){let le=new Set([...ie,void 0]);return te.listen((ce,ue)=>{le.has(ue)&&oe(ce,ue)})}let map=(te={})=>{let ie=atom(te);return ie.setKey=function(oe,le){typeof le>"u"?oe in ie.value&&(ie.value={...ie.value},delete ie.value[oe],ie.notify(oe)):ie.value[oe]!==le&&(ie.value={...ie.value,[oe]:le},ie.notify(oe))},ie};function useStore(te,ie={}){let oe=e$9.useCallback(ce=>ie.keys?listenKeys(te,ie.keys,ce):te.listen(ce),[ie.keys,te]),le=te.get.bind(te);return e$9.useSyncExternalStore(oe,le,le)}window.slStore=Object.create(null);var FeatureSource;(function(te){te.ORGANIZATION="ORGANIZATION",te.STREAM="STREAM"})(FeatureSource||(FeatureSource={}));SdkOverlayType.BETTING+"",SdkOverlayType.GAMES+"",SdkOverlayType.PUBLIC_CHAT+"",SdkOverlayType.TWITTER+"";var FeatureStatus;(function(te){te.Ready="ready",te.Suspended="suspended"})(FeatureStatus||(FeatureStatus={}));const c$8=({feature:te,sdk:ie,children:oe,className:le})=>{const ce=useStore(te.status),ue=useStore(ie.sdkStore.slStreamId);return ue!=null&&ue.loading?jsxRuntime.jsx("div",{className:le,children:"event is loading..."}):ue!=null&&ue.data?ce!==FeatureStatus.Ready?jsxRuntime.jsx("div",{className:le,children:"wait feature..."}):oe:jsxRuntime.jsx("div",{className:le,children:"event is forbidden..."})},u$6=e$9.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),s$2=({sdk:te,feature:ie,className:oe})=>{const le=e$9.useMemo(()=>ie&&ie.featureConfig.get().type===SdkOverlayType.GAMES?jsxRuntime.jsx(c$8,{className:oe,sdk:te,feature:ie,children:jsxRuntime.jsx(u$6,{className:oe,gamification:ie,sdk:te})}):null,[te,ie,oe]);return jsxRuntime.jsx(e$9.Suspense,{fallback:jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:le})};function memoize(te){var ie=Object.create(null);return function(oe){return ie[oe]===void 0&&(ie[oe]=te(oe)),ie[oe]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize(function(te){return reactPropsRegex.test(te)||te.charCodeAt(0)===111&&te.charCodeAt(1)===110&&te.charCodeAt(2)<91}),cx=function(){const ie=Array.prototype.slice.call(arguments).filter(Boolean),oe={},le=[];ie.forEach(ue=>{(ue?ue.split(" "):[]).forEach(he=>{if(he.startsWith("atm_")){const[,ve]=he.split("_");oe[ve]=he}else le.push(he)})});const ce=[];for(const ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&ce.push(oe[ue]);return ce.push(...le),ce.join(" ")},cx_default=cx,isCapital=te=>te.toUpperCase()===te,filterKey=te=>ie=>te.indexOf(ie)===-1,omit=(te,ie)=>{const oe={};return Object.keys(te).filter(filterKey(ie)).forEach(le=>{oe[le]=te[le]}),oe};function filterProps(te,ie,oe){const le=omit(ie,oe);if(!te){const ce=typeof isPropValid=="function"?{default:isPropValid}:isPropValid;Object.keys(le).forEach(ue=>{ce.default(ue)||delete le[ue]})}return le}var warnIfInvalid=(te,ie)=>{};function styled(te){let ie="";return oe=>{const le=(ue,fe)=>{const{as:he=te,class:ve=ie}=ue,Se=oe.propsAsIs===void 0?!(typeof he=="string"&&he.indexOf("-")===-1&&!isCapital(he[0])):oe.propsAsIs,ke=filterProps(Se,ue,["as","class"]);ke.ref=fe,ke.className=oe.atomic?cx_default(oe.class,ke.className||ve):cx_default(ke.className||ve,oe.class);const{vars:Me}=oe;if(Me){const Pe={};for(const Be in Me){const xe=Me[Be],nt=xe[0],rt=xe[1]||"",ot=typeof nt=="function"?nt(ue):nt;warnIfInvalid(ot,oe.name),Pe[`--${Be}`]=`${ot}${rt}`}const Re=ke.style||{},Oe=Object.keys(Re);Oe.length>0&&Oe.forEach(Be=>{Pe[Be]=Re[Be]}),ke.style=Pe}return te.__linaria&&te!==he?(ke.as=he,e$9.createElement(te,ke)):e$9.createElement(he,ke)},ce=e$9.forwardRef?e$9.forwardRef(le):ue=>{const fe=omit(ue,["innerRef"]);return le(fe,ue.innerRef)};return ce.displayName=oe.name,ce.__linaria={className:oe.class||ie,extends:te},ce}}var styled_default=styled;const h$1=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M8 4L16 12L8 20",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),d$a=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"check"},e__namespace.createElement("path",{id:"Vector",d:"M4 13L9 18L20 6",stroke:"#107D57",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),a$f=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{width:16,height:16,rx:8,fill:"#CD2525"}),e__namespace.createElement("rect",{x:5.5,y:4.66669,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(45 5.5 4.66669)",fill:"white"}),e__namespace.createElement("rect",{x:4.66669,y:10.5,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(-45 4.66669 10.5)",fill:"white"})),w$2=te=>e__namespace.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Frame 3469478"},e__namespace.createElement("path",{id:"Vector 4",d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),e__namespace.createElement("path",{id:"Vector 5",d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}))),s$1=te=>e__namespace.createElement("svg",{width:64,height:65,viewBox:"0 0 64 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M43.852 8.90765C40.2818 7.13339 36.2575 6.13574 32.0002 6.13574C17.2726 6.13574 5.3335 18.0748 5.3335 32.8024C5.3335 47.53 17.2726 59.4691 32.0002 59.4691C46.7278 59.4691 58.6668 47.53 58.6668 32.8024C58.6668 31.8009 58.6116 30.8123 58.5041 29.8394M24.0002 30.1357L32.0002 38.1357L58.6668 11.4691",stroke:"#107D57",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})),g=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),v$6=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Checkmark"},e__namespace.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",fill:"#FFFFFF"}))),L$3=te=>e__namespace.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{id:"Icon / chevron.left",d:"M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",fill:"white",fillOpacity:.6})),m$b=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Chevron"},e__namespace.createElement("path",{id:"Chevron_2",d:"M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",fill:"white"}))),p$7=te=>e__namespace.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Chevron"},e__namespace.createElement("path",{id:"Chevron_2",d:"M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",fill:"#FFFFFF"}))),f$6=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 -2.43189e-06C18.6274 -2.72158e-06 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 8.1423e-07 18.6274 5.24537e-07 12C2.34843e-07 5.37258 5.37258 -2.14219e-06 12 -2.43189e-06ZM11.9999 22.5883C17.8476 22.5883 22.5881 17.8478 22.5881 12.0001C22.5881 6.15238 17.8476 1.41187 11.9999 1.41187C6.15217 1.41187 1.41166 6.15239 1.41166 12.0001C1.41166 17.8478 6.15217 22.5883 11.9999 22.5883Z",fill:"white"}),e__namespace.createElement("path",{d:"M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",fill:"white"})),E=te=>e__namespace.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),e__namespace.createElement("path",{d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"})),V=te=>e__namespace.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Group 465"},e__namespace.createElement("rect",{id:"Rectangle 368",x:1.25,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 1.25 0)",fill:"white"}),e__namespace.createElement("rect",{id:"Rectangle 369",y:8.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 0 8.75)",fill:"white"}))),M=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{y:.00195312,width:24,height:24,rx:12,fill:"#F80022"}),e__namespace.createElement("rect",{x:8.25,y:7.00195,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7.00195)",fill:"white"}),e__namespace.createElement("rect",{x:7,y:15.752,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.752)",fill:"white"})),x$3=te=>e__namespace.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M15.8 22.0002H6C4 22.0002 2.5 20.5002 2.5 18.5002V8.7002C2.5 6.8002 4 5.2002 6 5.2002H15.8C17.7 5.2002 19.3 6.7002 19.3 8.7002V18.5002C19.2 20.5002 17.7 22.0002 15.8 22.0002ZM6 7.3002C5.2 7.3002 4.5 7.9002 4.5 8.7002V18.5002C4.5 19.3002 5.2 20.0002 6 20.0002H15.8C16.6 20.0002 17.3 19.3002 17.3 18.5002V8.7002C17.3 7.9002 16.6 7.2002 15.8 7.2002H6V7.3002Z",fill:"#107D57"}),e__namespace.createElement("path",{d:"M21.5016 17.9C20.9016 17.9 20.5016 17.5 20.5016 16.9V6.3C20.5016 5 19.5016 4 18.2016 4H7.60157C7.00156 4 6.60156 3.6 6.60156 3C6.60156 2.4 7.00156 2 7.60157 2H18.2016C20.6016 2 22.5016 3.9 22.5016 6.3V16.9C22.5016 17.5 22.1016 17.9 21.5016 17.9Z",fill:"#107D57"})),Z$1=te=>e__namespace.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"CarbonUserAvatar 1"},e__namespace.createElement("g",{id:"Group 232"},e__namespace.createElement("path",{id:"Vector",d:"M19.9992 14.2861C19.2928 14.2861 18.6023 14.4956 18.015 14.888C17.4277 15.2805 16.9699 15.8382 16.6996 16.4908C16.4293 17.1434 16.3586 17.8615 16.4964 18.5543C16.6342 19.2471 16.9743 19.8835 17.4738 20.3829C17.9733 20.8824 18.6096 21.2226 19.3024 21.3604C19.9952 21.4982 20.7133 21.4274 21.3659 21.1571C22.0185 20.8868 22.5763 20.4291 22.9687 19.8417C23.3611 19.2544 23.5706 18.5639 23.5706 17.8576C23.5706 16.9104 23.1943 16.002 22.5245 15.3322C21.8548 14.6624 20.9464 14.2861 19.9992 14.2861ZM19.9992 20.0004C19.5753 20.0004 19.161 19.8747 18.8087 19.6393C18.4563 19.4038 18.1816 19.0692 18.0194 18.6776C17.8572 18.286 17.8148 17.8552 17.8975 17.4395C17.9802 17.0238 18.1843 16.642 18.4839 16.3423C18.7836 16.0426 19.1654 15.8386 19.5811 15.7559C19.9968 15.6732 20.4276 15.7156 20.8192 15.8778C21.2108 16.04 21.5454 16.3147 21.7809 16.6671C22.0163 17.0194 22.142 17.4337 22.142 17.8576C22.1415 18.4257 21.9155 18.9704 21.5138 19.3722C21.112 19.7739 20.5673 19.9999 19.9992 20.0004Z",fill:"white"}),e__namespace.createElement("path",{id:"Vector_2",d:"M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",fill:"white"})))),u$5=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{width:24,height:24,rx:12,fill:"white",fillOpacity:.1}),e__namespace.createElement("rect",{x:8.25,y:7,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7)",fill:"white"}),e__namespace.createElement("rect",{x:7,y:15.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.75)",fill:"white"})),H=te=>e__namespace.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M9.16683 2.66671H7.16683C5.29999 2.66671 4.36657 2.66671 3.65353 3.03002C3.02632 3.3496 2.51639 3.85953 2.19681 4.48674C1.8335 5.19978 1.8335 6.1332 1.8335 8.00004V9.33337C1.8335 11.2002 1.8335 12.1336 2.19681 12.8467C2.51639 13.4739 3.02632 13.9838 3.65353 14.3034C4.36657 14.6667 5.29999 14.6667 7.16683 14.6667H8.50016C10.367 14.6667 11.3004 14.6667 12.0135 14.3034C12.6407 13.9838 13.1506 13.4739 13.4702 12.8467C13.8335 12.1336 13.8335 11.2002 13.8335 9.33337V7.33337M8.50016 8.00004L15.1668 1.33337M15.1668 1.33337H11.8335M15.1668 1.33337V4.66671",stroke:"#107D57",strokeLinecap:"round",strokeLinejoin:"round"})),k$1=te=>e__namespace.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{x:.5,width:40,height:40,rx:8,fill:"#F2F2F1"}),e__namespace.createElement("path",{d:"M22.49 31.4288V21.0023H25.9898L26.5137 16.939H22.49V14.3446C22.49 13.1682 22.8167 12.3664 24.5039 12.3664L26.6556 12.3654V8.73123C26.2833 8.68189 25.0061 8.57129 23.5202 8.57129C20.4179 8.57129 18.294 10.4648 18.294 13.9424V16.9391H14.7852V21.0024H18.2939V31.4289L22.49 31.4288Z",fill:"#3C5A9A"})),B$2=te=>e__namespace.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{width:32,height:32,rx:16,fill:"white"}),e__namespace.createElement("path",{d:"M10.4615 12.6875C9.44231 12.6875 8.61538 13.4665 8.61538 14.4266C8.61538 15.3868 9.44231 16.1658 10.4615 16.1658C11.4808 16.1658 12.3077 15.3868 12.3077 14.4266C12.3077 13.4665 11.4808 12.6875 10.4615 12.6875ZM10.4615 16.1658C9.10817 16.1658 8 17.2097 8 18.4846V19.7527C8 19.7527 8.61538 20.2237 10.4615 20.2237C12.3077 20.2237 12.9231 19.7527 12.9231 19.7527V18.4846C12.9231 17.2097 11.8149 16.1658 10.4615 16.1658ZM21.5385 12.6875C20.5192 12.6875 19.6923 13.4665 19.6923 14.4266C19.6923 15.3868 20.5192 16.1658 21.5385 16.1658C22.5577 16.1658 23.3846 15.3868 23.3846 14.4266C23.3846 13.4665 22.5577 12.6875 21.5385 12.6875ZM21.5385 16.1658C20.1851 16.1658 19.0769 17.2097 19.0769 18.4846V19.7527C19.0769 19.7527 19.6923 20.2237 21.5385 20.2237C23.3846 20.2237 24 19.7527 24 19.7527V18.4846C24 17.2097 22.8918 16.1658 21.5385 16.1658ZM16 15.0063C14.9808 15.0063 14.1538 15.7853 14.1538 16.7455C14.1538 17.7056 14.9808 18.4846 16 18.4846C17.0192 18.4846 17.8462 17.7056 17.8462 16.7455C17.8462 15.7853 17.0192 15.0063 16 15.0063ZM16 18.4846C14.6466 18.4846 13.5385 19.5285 13.5385 20.8034V22.0715C13.5385 22.0715 14.1538 22.5425 16 22.5425C17.8462 22.5425 18.4615 22.0715 18.4615 22.0715V20.8034C18.4615 19.5285 17.3534 18.4846 16 18.4846Z",fill:"#107D57"}),e__namespace.createElement("path",{opacity:.5,d:"M13.3908 9C12.3103 9 11.4336 9.82584 11.4336 10.8437C11.4336 11.8616 12.3103 12.6875 13.3908 12.6875C14.4713 12.6875 15.348 11.8616 15.348 10.8437C15.348 9.82584 14.4713 9 13.3908 9ZM13.3908 12.6875C13.1946 12.6875 12.9958 12.6827 12.7996 12.7451C13.192 13.2372 13.3908 13.8542 13.3908 14.5312C13.3908 14.7761 13.3296 15.0161 13.3296 15.261C13.8521 14.524 14.6956 14.0391 15.6742 13.9166C15.218 13.1796 14.3694 12.6875 13.3908 12.6875ZM18.61 9C17.5295 9 16.6528 9.82584 16.6528 10.8437C16.6528 11.8616 17.5295 12.6875 18.61 12.6875C19.6905 12.6875 20.5672 11.8616 20.5672 10.8437C20.5672 9.82584 19.6905 9 18.61 9ZM18.61 12.6875C17.6314 12.6875 16.7828 13.1796 16.3266 13.9166C17.3052 14.0391 18.1487 14.524 18.6712 15.261C18.6712 15.0161 18.61 14.7761 18.61 14.5312C18.61 13.8542 18.8088 13.2372 19.2012 12.7451C19.005 12.6827 18.8062 12.6875 18.61 12.6875Z",fill:"#107D57"})),S$3=te=>e__namespace.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Share"},e__namespace.createElement("path",{id:"Vector",d:"M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",fill:"white"}))),R=te=>e__namespace.createElement("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"sc-ANdsN kTVWJE",...te},e__namespace.createElement("path",{d:"M6.6665 3.16669H4.99984C4.26346 3.16669 3.6665 3.76364 3.6665 4.50002V11.5C3.6665 12.2364 4.26346 12.8334 4.99984 12.8334H11.9998C12.7362 12.8334 13.3332 12.2364 13.3332 11.5V9.83335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e__namespace.createElement("path",{d:"M13.3335 6.16669V3.16669H10.3335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e__namespace.createElement("path",{d:"M13.1668 3.33331L8.3335 8.16665",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),I$7=te=>e__namespace.createElement("svg",{width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Group"},e__namespace.createElement("path",{id:"Vector",d:"M12.5396 12.431L15.8603 9.00169L12.5396 5.57239",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e__namespace.createElement("path",{id:"Vector_2",d:"M15.8602 9.00159H5.57227",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e__namespace.createElement("path",{id:"Vector_3",d:"M12.431 1L3.2862 1.00229C2.02422 1.00343 1 2.02651 1 3.28849V14.7138C1 15.3201 1.24087 15.9016 1.66961 16.3304C2.09836 16.7591 2.67987 17 3.2862 17H12.5396",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),F$1=te=>e__namespace.createElement("svg",{width:99,height:96,viewBox:"0 0 99 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Masters Logo Big"},e__namespace.createElement("path",{id:"Vector",d:"M67.4732 4.82378C66.1754 4.41151 64.8776 5.1433 63.5798 5.88539C63.117 6.15337 62.7951 6.60687 62.6844 7.13253L60.6421 16.9035C60.5616 17.2642 60.8836 17.594 61.2357 17.5116C63.3786 17.0065 65.4208 15.0894 67.5738 15.7594C69.9783 16.5118 72.3928 13.3888 74.7972 13.43V2.1543C72.3626 2.1646 69.8776 5.57618 67.4732 4.82378Z",fill:"white"}),e__namespace.createElement("path",{id:"Vector_2",d:"M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",fill:"white"}))),y$1=te=>e__namespace.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("circle",{opacity:.5,cx:24,cy:24.001,r:24,fill:"black"}),e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5432 24.7938C33.215 24.3331 33.2822 23.5173 32.5432 23.0567C23.7807 17.6245 19.6442 14.918 19.1356 14.5917C18.3486 14.083 17.6 14.6973 17.6 15.2059V32.7501C17.6 33.3259 18.5309 33.8442 19.1356 33.4795C20.2201 32.8172 31.8714 25.2641 32.5336 24.8034L32.5432 24.7938Z",fill:"white"})),D$1=te=>e__namespace.createElement("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{id:"Start - You",d:"M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",fill:"#F4D22A"})),W=te=>e__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,viewBox:"0 0 22 22",fill:"none",...te},e__namespace.createElement("path",{d:"M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",fill:"white"})),b$6=te=>e__namespace.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{d:"M17.4777 8.95762C17.4777 8.70612 17.4177 8.47012 17.3172 8.25562C16.6467 6.09262 13.5077 6.25062 9.04275 6.14512C8.29625 6.12762 8.72325 5.24612 8.98525 3.31112C9.15575 2.05262 8.34425 0.120117 6.98025 0.120117C4.73125 0.120117 6.89475 1.89412 4.90625 6.28112C3.84375 8.62512 1.46875 7.31212 1.46875 9.66662V15.0261C1.46875 15.9426 1.55875 16.8236 2.84775 16.9686C4.09725 17.1091 3.81625 17.9996 5.61875 17.9996H14.6407C15.5597 17.9996 16.3072 17.2516 16.3072 16.3326C16.3072 15.9516 16.1737 15.6046 15.9582 15.3236C16.4682 15.0381 16.8182 14.4991 16.8182 13.8741C16.8182 13.4941 16.6852 13.1471 16.4702 12.8666C16.9817 12.5816 17.3327 12.0421 17.3327 11.4161C17.3327 10.9616 17.1487 10.5496 16.8522 10.2481C17.2307 9.94262 17.4777 9.48062 17.4777 8.95762Z",fill:"white"}),e__namespace.createElement("path",{d:"M11.5088 10.625H15.8108C16.3958 10.625 16.9448 10.312 17.2438 9.80849C17.3668 9.60099 17.2983 9.33249 17.0903 9.20899C16.8828 9.08549 16.6143 9.15499 16.4908 9.36249C16.3493 9.60199 16.0878 9.74999 15.8103 9.74999H11.4053C10.9688 9.74999 10.6138 9.39499 10.6138 8.95849C10.6138 8.52199 10.9688 8.16699 11.4053 8.16699H14.3488C14.5903 8.16699 14.7863 7.97099 14.7863 7.72949C14.7863 7.48799 14.5903 7.29199 14.3488 7.29199H11.4048C10.4858 7.29199 9.73828 8.03949 9.73828 8.95849C9.73828 9.47099 9.97578 9.92449 10.3408 10.2305C10.0333 10.533 9.84178 10.953 9.84178 11.417C9.84178 11.931 10.0808 12.386 10.4478 12.6915C10.1423 12.9935 9.95278 13.412 9.95278 13.875C9.95278 14.435 10.2323 14.929 10.6573 15.2315C10.3953 15.526 10.2313 15.9095 10.2313 16.3335C10.2313 17.2525 10.9788 18 11.8978 18H14.6398C15.2248 18 15.7743 17.6875 16.0733 17.184C16.1968 16.9765 16.1283 16.708 15.9208 16.5845C15.7128 16.462 15.4443 16.5295 15.3213 16.737C15.1788 16.9765 14.9173 17.125 14.6398 17.125H11.8978C11.4613 17.125 11.1063 16.77 11.1063 16.3335C11.1063 15.897 11.4613 15.542 11.8978 15.542H15.1508C15.7358 15.542 16.2858 15.229 16.5843 14.7255C16.7078 14.5175 16.6393 14.249 16.4318 14.126C16.2223 14.0005 15.9548 14.071 15.8323 14.2785C15.6878 14.522 15.4328 14.667 15.1508 14.667H11.6193C11.1828 14.667 10.8278 14.3115 10.8278 13.875C10.8278 13.4385 11.1828 13.0835 11.6193 13.0835H15.6648C16.2498 13.0835 16.7993 12.771 17.0983 12.2675C17.2218 12.06 17.1533 11.7915 16.9458 11.668C16.7373 11.545 16.4693 11.613 16.3463 11.8205C16.2018 12.0635 15.9468 12.2085 15.6648 12.2085H11.5088C11.0723 12.2085 10.7173 11.8535 10.7173 11.417C10.7173 10.9805 11.0718 10.625 11.5088 10.625Z",fill:"#107D57"})),j$2=te=>e__namespace.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Trophy"},e__namespace.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",fill:"white"}))),G$2=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Trophy"},e__namespace.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M3.69197 4.66662C3.69197 5.99705 3.92914 7.17787 4.4035 8.20912C3.49966 8.02451 2.74487 7.66486 2.1391 7.13014C1.53333 6.59542 1.23046 6.0798 1.23046 5.58328V4.66662H3.69197ZM14.7686 4.66662V5.58328C14.7686 6.0798 14.4658 6.59542 13.86 7.13014C13.2542 7.66486 12.4994 8.02451 11.5956 8.20912C12.0699 7.17787 12.3071 5.99705 12.3071 4.66662H14.7686ZM15.9998 5.58329V4.36108C15.9998 4.10645 15.9101 3.89002 15.7306 3.71178C15.5511 3.53354 15.3332 3.44442 15.0768 3.44442H12.3076V2.52776C12.3076 2.10763 12.1569 1.74797 11.8556 1.44878C11.5544 1.14959 11.1922 1 10.7691 1H5.23072C4.80764 1 4.44547 1.14959 4.14419 1.44878C3.84291 1.74797 3.69227 2.10763 3.69227 2.52776V3.44442H0.923068C0.666659 3.44442 0.448714 3.53354 0.269228 3.71178C0.0897418 3.89002 0 4.10645 0 4.36108V5.58329C0 6.03525 0.13301 6.49039 0.399034 6.94872C0.665059 7.40705 1.02403 7.82082 1.47595 8.19003C1.92787 8.55924 2.48234 8.86957 3.13939 9.12101C3.79644 9.37246 4.48713 9.51409 5.21149 9.54592C5.48071 9.88967 5.7852 10.192 6.12494 10.453C6.36853 10.6695 6.53679 10.9002 6.62974 11.1453C6.72269 11.3904 6.76916 11.6752 6.76916 11.9999C6.76916 12.3436 6.67141 12.6333 6.4759 12.8688C6.28038 13.1043 5.96789 13.2221 5.53841 13.2221C5.05764 13.2221 4.62976 13.3669 4.25476 13.6566C3.87977 13.9462 3.69227 14.3106 3.69227 14.7499V15.361C3.69227 15.4501 3.72112 15.5233 3.77881 15.5806C3.8365 15.6379 3.91022 15.6665 3.99996 15.6665H11.9999C12.0896 15.6665 12.1633 15.6379 12.221 15.5806C12.2787 15.5233 12.3076 15.4501 12.3076 15.361V14.7499C12.3076 14.3106 12.1201 13.9462 11.7451 13.6566C11.3701 13.3669 10.9422 13.2221 10.4614 13.2221C10.0319 13.2221 9.71945 13.1043 9.52394 12.8688C9.32843 12.6333 9.23068 12.3436 9.23068 11.9999C9.23068 11.6752 9.27715 11.3904 9.3701 11.1453C9.46305 10.9002 9.63131 10.6695 9.8749 10.453C10.2146 10.192 10.5191 9.88967 10.7884 9.54592C11.5127 9.51409 12.2034 9.37246 12.8604 9.12101C13.5175 8.86957 14.072 8.55924 14.5239 8.19003C14.9758 7.82082 15.3348 7.40705 15.6008 6.94872C15.8668 6.49039 15.9998 6.03525 15.9998 5.58329ZM6.76047 7.1798L8.05109 6.49997L9.3417 7.1798L9.09521 5.73989L10.1393 4.72015L8.69639 4.51007L8.05109 3.2L7.40578 4.51007L5.96283 4.72015L7.00696 5.73989L6.76047 7.1798Z",fill:"#F2C94C"}))),T$1=te=>e__namespace.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9234 2.06117C12.6527 2.79041 12.797 3.88306 12.3564 4.75616L12.3698 4.78833C13.2984 5.09432 13.9688 5.96888 13.9688 7C13.9688 8.03112 13.2984 8.90568 12.3698 9.21167L12.3565 9.24364C12.7971 10.1167 12.6527 11.2094 11.9235 11.9386C11.1944 12.6678 10.1019 12.8122 9.22883 12.3718L9.19604 12.3854C8.89006 13.314 8.0155 13.9844 6.98438 13.9844C5.95325 13.9844 5.07869 13.314 4.77271 12.3854L4.74027 12.3719C3.8673 12.8121 2.77506 12.6676 2.04603 11.9386C1.31703 11.2096 1.17255 10.1174 1.61259 9.24445L1.59899 9.21167C0.670333 8.90568 0 8.03112 0 7C0 5.96888 0.670334 5.09432 1.59899 4.78833L1.61267 4.75535C1.17263 3.8824 1.31711 2.79023 2.04611 2.06123C2.77519 1.33215 3.86754 1.18772 4.74054 1.62795L4.77271 1.61461C5.07869 0.685958 5.95325 0.015625 6.98438 0.015625C8.0155 0.015625 8.89006 0.685958 9.19604 1.61461L9.22857 1.6281C10.1016 1.18761 11.1942 1.33196 11.9234 2.06117ZM9.80606 4.98029C9.97643 4.7077 9.89356 4.34862 9.62098 4.17825C9.34839 4.00788 8.98931 4.09075 8.81894 4.36333L6.29655 8.39915L5.06781 7.17041C4.84051 6.94311 4.47199 6.94311 4.24469 7.17041C4.01739 7.39771 4.01739 7.76623 4.24469 7.99353L5.99079 9.73962C6.11621 9.86504 6.29197 9.92642 6.4682 9.90635C6.64444 9.88628 6.8019 9.78695 6.89591 9.63654L9.80606 4.98029Z",fill:"#0092E9"})),A$6=te=>e__namespace.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("rect",{x:.5,width:40,height:40,rx:8,fill:"#F2F2F1"}),e__namespace.createElement("path",{d:"M11.0631 10.8037L18.5858 20.8464L11.0156 29.0115H12.7194L19.3471 21.8628L24.7021 29.0115H30.5L22.554 18.4039L29.6003 10.8037H27.8966L21.7928 17.3875L16.8611 10.8037H11.0631ZM13.5686 12.0567H16.2322L27.9941 27.7583H25.3305L13.5686 12.0567Z",fill:"black"})),_$1=te=>e__namespace.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"cross"},e__namespace.createElement("path",{id:"Vector",d:"M6 18L18 6M6 6L18 18",stroke:"#BA0C2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),N$1=te=>e__namespace.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Friends"},e__namespace.createElement("path",{id:"Vector",d:"M4.19231 7.03125C2.66346 7.03125 1.42308 8.19973 1.42308 9.63994C1.42308 11.0802 2.66346 12.2486 4.19231 12.2486C5.72115 12.2486 6.96154 11.0802 6.96154 9.63994C6.96154 8.19973 5.72115 7.03125 4.19231 7.03125ZM4.19231 12.2486C2.16226 12.2486 0.5 13.8145 0.5 15.7269V17.629C0.5 17.629 1.42308 18.3356 4.19231 18.3356C6.96154 18.3356 7.88461 17.629 7.88461 17.629V15.7269C7.88461 13.8145 6.22236 12.2486 4.19231 12.2486ZM20.8077 7.03125C19.2788 7.03125 18.0385 8.19973 18.0385 9.63994C18.0385 11.0802 19.2788 12.2486 20.8077 12.2486C22.3365 12.2486 23.5769 11.0802 23.5769 9.63994C23.5769 8.19973 22.3365 7.03125 20.8077 7.03125ZM20.8077 12.2486C18.7776 12.2486 17.1154 13.8145 17.1154 15.7269V17.629C17.1154 17.629 18.0385 18.3356 20.8077 18.3356C23.5769 18.3356 24.5 17.629 24.5 17.629V15.7269C24.5 13.8145 22.8377 12.2486 20.8077 12.2486ZM12.5 10.5095C10.9712 10.5095 9.73077 11.678 9.73077 13.1182C9.73077 14.5584 10.9712 15.7269 12.5 15.7269C14.0288 15.7269 15.2692 14.5584 15.2692 13.1182C15.2692 11.678 14.0288 10.5095 12.5 10.5095ZM12.5 15.7269C10.47 15.7269 8.80769 17.2928 8.80769 19.2051V21.1073C8.80769 21.1073 9.73077 21.8138 12.5 21.8138C15.2692 21.8138 16.1923 21.1073 16.1923 21.1073V19.2051C16.1923 17.2928 14.53 15.7269 12.5 15.7269Z",fill:"white"}),e__namespace.createElement("path",{id:"Vector_2",d:"M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",fill:"white",fillOpacity:.4}))),P$1=te=>e__namespace.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Group 483737"},e__namespace.createElement("g",{id:"Icon / Live"},e__namespace.createElement("path",{id:"circle-path",fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9C17 13.4183 13.4183 17 9 17Z",stroke:"#107D57"}),e__namespace.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",fill:"#107D57"})))),O$2=te=>e__namespace.createElement("svg",{width:14,height:17,viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Icon / Games"},e__namespace.createElement("path",{id:"Icon / Games_2",d:"M6.27412 2.68557L6.27411 2.68557C5.62309 2.63368 5.0525 3.12172 5.00064 3.7713L5.00064 3.77134L4.14164 14.5465C4.14163 14.5465 4.14163 14.5465 4.14163 14.5465C4.08978 15.1963 4.57588 15.7681 5.22739 15.82C5.22741 15.82 5.22742 15.82 5.22744 15.82L11.3107 16.3052L11.3108 16.3052C11.9618 16.3571 12.5324 15.869 12.5842 15.2194L12.5842 15.2194L13.4432 4.4443C13.4951 3.79528 13.0091 3.22266 12.3575 3.17076C12.3575 3.17076 12.3574 3.17076 12.3574 3.17076L6.27412 2.68557ZM8.15378 7.95339C8.06822 8.08171 8.00584 8.22011 7.96597 8.36701L7.39679 8.32084C7.47153 7.93067 7.63452 7.64794 7.86868 7.44845C8.15963 7.20058 8.54037 7.08303 9.04377 7.12388C9.36277 7.14976 9.62596 7.23281 9.84206 7.36455L9.84205 7.36458L9.84603 7.36693C10.0639 7.49535 10.2189 7.65832 10.3213 7.85605C10.4234 8.05317 10.4683 8.27793 10.4483 8.53948C10.4345 8.71901 10.392 8.86521 10.3278 8.98465L10.3277 8.98461L10.3242 8.99151C10.2546 9.12905 10.1759 9.23612 10.0908 9.31799L10.0907 9.31793L10.0855 9.32326C9.98974 9.41994 9.85909 9.53313 9.69013 9.66317C9.48159 9.8217 9.31317 9.96772 9.19518 10.0999L9.19509 10.0998L9.18961 10.1063C9.10272 10.2092 9.04052 10.3244 9.00219 10.449L8.46556 10.4054C8.49427 10.3132 8.5356 10.2357 8.58714 10.17C8.70826 10.0178 8.8862 9.84033 9.1277 9.63726C9.33755 9.46764 9.50811 9.30895 9.63088 9.16198L9.39343 8.96362L9.63088 9.16198C9.77451 8.99005 9.86011 8.79 9.87715 8.56784C9.89609 8.32086 9.82923 8.08941 9.6571 7.90614C9.48861 7.71582 9.25493 7.62752 9.00193 7.60699L8.97691 7.91539L9.00193 7.60699C8.67115 7.58016 8.35479 7.66584 8.15766 7.94771L8.1576 7.94766L8.15378 7.95339ZM8.84046 11.5393L8.84024 11.5394L8.84882 11.5493C8.9033 11.6122 8.9274 11.681 8.92009 11.7763C8.91337 11.8639 8.88049 11.9307 8.81121 11.9916L8.81117 11.9915L8.8063 11.996C8.74838 12.0491 8.68489 12.0727 8.59225 12.0652C8.49804 12.0575 8.43752 12.0248 8.38914 11.9687C8.34013 11.9019 8.31721 11.826 8.32494 11.7253L8.01644 11.7016L8.32494 11.7253C8.33288 11.6218 8.36807 11.5555 8.42399 11.5042L8.2147 11.2763L8.42377 11.5044C8.48168 11.4513 8.54518 11.4277 8.63782 11.4352C8.73051 11.4427 8.79051 11.4764 8.84046 11.5393Z",stroke:"#107D57",strokeWidth:.618817}),e__namespace.createElement("path",{id:"Icon / Games_3",d:"M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",fill:"#107D57"}))),U=te=>e__namespace.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Icon / LeaderBoard"},e__namespace.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",fill:"#107D57"}))),q$3=te=>e__namespace.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"check"},e__namespace.createElement("path",{id:"Vector",d:"M3.59985 10.8L7.59985 14.8L16.3999 5.20001",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),J$1=te=>e__namespace.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"cross"},e__namespace.createElement("path",{id:"Vector",d:"M5.19995 14.8L14.8 5.20001M5.19995 5.20001L14.8 14.8",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),Q$2=te=>e__namespace.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.46154C8.52291 2.46154 2.46154 8.52291 2.46154 16C2.46154 23.4771 8.52291 29.5385 16 29.5385C23.4771 29.5385 29.5385 23.4771 29.5385 16C29.5385 8.52291 23.4771 2.46154 16 2.46154ZM0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",fill:"#FFB600"}),e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8.20513C16.6797 8.20513 17.2308 8.75616 17.2308 9.4359V17.641C17.2308 18.3208 16.6797 18.8718 16 18.8718C15.3203 18.8718 14.7692 18.3208 14.7692 17.641V9.4359C14.7692 8.75616 15.3203 8.20513 16 8.20513Z",fill:"#FFB600"}),e__namespace.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7692 22.5641C14.7692 21.8844 15.3203 21.3333 16 21.3333H16.0164C16.6961 21.3333 17.2472 21.8844 17.2472 22.5641C17.2472 23.2438 16.6961 23.7949 16.0164 23.7949H16C15.3203 23.7949 14.7692 23.2438 14.7692 22.5641Z",fill:"#FFB600"})),Y$1=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Icon/Insight"},e__namespace.createElement("path",{id:"Fill-1",fillRule:"evenodd",clipRule:"evenodd",d:"M9.3336 9.33644C8.59749 10.0725 7.40264 10.0725 6.66652 9.33644C5.93041 8.60039 5.93041 7.40565 6.66652 6.6696C7.40264 5.93355 8.59749 5.93355 9.3336 6.6696C10.0697 7.40565 10.0697 8.60039 9.3336 9.33644Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-3",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 12.3306C11.7818 12.8833 10.8863 12.8827 10.3342 12.3306C9.78211 11.7786 9.78145 10.8832 10.3342 10.3305C10.8869 9.77781 11.7824 9.77847 12.3345 10.3305C12.8866 10.8825 12.8873 11.7779 12.3345 12.3306Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 5.66365C5.11311 6.21635 4.21831 6.21635 3.66556 5.66365C3.11281 5.11094 3.11281 4.21622 3.66556 3.66352C4.21831 3.11081 5.11311 3.11081 5.66586 3.66352C6.21861 4.21622 6.21861 5.11094 5.66586 5.66365Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 5.66365C11.7818 6.21635 10.8869 6.21635 10.3342 5.66365C9.78145 5.11094 9.78145 4.21622 10.3342 3.66352C10.8869 3.11081 11.7818 3.11081 12.3345 3.66352C12.8873 4.21622 12.8873 5.11094 12.3345 5.66365Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-9",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 12.3306C5.11378 12.8827 4.21831 12.8833 3.66556 12.3306C3.11281 11.7779 3.11347 10.8825 3.66556 10.3305C4.21764 9.77847 5.11311 9.77781 5.66586 10.3305C6.21861 10.8832 6.21795 11.7786 5.66586 12.3306Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-11",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 1.99964C8.29877 2.36766 7.70135 2.36766 7.33329 1.99964C6.96524 1.63162 6.96524 1.03425 7.33329 0.666221C7.70135 0.298198 8.29877 0.298198 8.66683 0.666221C9.03489 1.03425 9.03489 1.63162 8.66683 1.99964Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-13",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.66676C14.9652 9.03478 14.3684 9.03545 13.9997 8.66675C13.631 8.29806 13.6316 7.70136 13.9997 7.33334C14.3677 6.96531 14.9645 6.96464 15.3332 7.33334C15.7019 7.70203 15.7013 8.29873 15.3332 8.66676Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-15",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 15.3339C8.29811 15.7026 7.70202 15.7026 7.33329 15.3339C6.96457 14.9652 6.96457 14.3691 7.33329 14.0004C7.70202 13.6318 8.29811 13.6318 8.66683 14.0005C9.03555 14.3691 9.03555 14.9652 8.66683 15.3339Z",fill:"#107D57"}),e__namespace.createElement("path",{id:"Fill-17",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",fill:"#107D57"}))),z$1=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Poll"},e__namespace.createElement("path",{id:"Notification/Icon/Poll",fillRule:"evenodd",clipRule:"evenodd",d:"M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",fill:"white",fillOpacity:.5}))),K=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Icon/Notification/Prediciton"},e__namespace.createElement("path",{id:"Icon/Prediction",fillRule:"evenodd",clipRule:"evenodd",d:"M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",fill:"white",fillOpacity:.5}))),X$1=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("g",{id:"Icon/Notification/Trivia"},e__namespace.createElement("path",{id:"Notification/Icon/Trivia",fillRule:"evenodd",clipRule:"evenodd",d:"M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",fill:"white",fillOpacity:.5}))),$$1=te=>e__namespace.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...te},e__namespace.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),i$7={"invite-game-icon":N$1,"icon-trophy":G$2,"icon-trophy-green":j$2,"icon-trivia":X$1,"icon-thumb-down":W,"icon-thumb-up":b$6,"icon-star":D$1,"icon-prediction":K,"icon-insight":Y$1,"icon-poll":z$1,"icon-play":y$1,"icon-masters-logo":F$1,"icon-logout":I$7,"icon-link":R,"icon-external-link":H,"icon-invite-arrow":S$3,"icon-friends":B$2,"icon-exit":u$5,"icon-default-user-avatar":Z$1,"icon-copy":x$3,"icon-cross":w$2,"icon-close":M,"icon-close-btn-white":V,"icon-close-btn-gray":E,"icon-circle-arrow-right":f$6,"icon-chevron":p$7,"icon-chevron-white-left":m$b,"icon-chevron-left":L$3,"icon-check":d$a,"icon-check-white":v$6,"icon-check-green":g,"icon-check-circle":s$1,"icon-btn-channels":P$1,"icon-btn-feature-groups":O$2,"icon-btn-leaderboard":U,"icon-arrow":h$1,"icon-facebook":k$1,"icon-twitter":A$6,"icon-twitter-verified":T$1,correct:q$3,incorrect:J$1,questionExpired:Q$2,selected:$$1,circleClose:a$f,incorrectVoted:_$1},n1=({name:te,style:ie,className:oe,...le})=>{if(!i$7[te])return jsxRuntime.jsx("span",{children:te});const ce=i$7[te];return jsxRuntime.jsx(ce,{style:ie,className:oe,...le})},o$a=styled_default("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),n$e=styled_default("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),a$e=styled_default("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),p$6=({disabled:te,active:ie,onClick:oe,label:le,icon:ce})=>jsxRuntime.jsx(o$a,{onClick:oe,disabled:te,"data-selected":ie,children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ce&&jsxRuntime.jsx(n$e,{children:ce}),jsxRuntime.jsx(a$e,{children:le})]})}),a$d=()=>n1,l$9=styled_default(a$d())({name:"ButtonIcon",class:"b1whzxvd",propsAsIs:!0}),d$9="channels",x$2=te=>{var ie;return jsxRuntime.jsx(p$6,{...te,id:"channels",label:"Channels",icon:jsxRuntime.jsx(l$9,{name:"icon-btn-channels","data-selected":(ie=te.active)==null?void 0:ie.toString()})})},u$4=()=>n1,c$7=styled_default(u$4())({name:"ButtonIcon",class:"b11des7c",propsAsIs:!0}),G$1="featuredGroups",l$8=te=>{var ie;return jsxRuntime.jsx(p$6,{...te,label:"FG+",id:"featuredGroups",icon:jsxRuntime.jsx(c$7,{name:"icon-btn-feature-groups","data-selected":(ie=te.active)==null?void 0:ie.toString()})})},n$d=()=>n1,m$a=styled_default(n$d())({name:"ButtonIcon",class:"b180jd7l",propsAsIs:!0}),u$3="leaderboard",I$6=te=>{var ie;return jsxRuntime.jsx(p$6,{...te,label:"Leader Board",id:"leaderboard",icon:jsxRuntime.jsx(m$a,{name:"icon-btn-leaderboard","data-selected":(ie=te.active)==null?void 0:ie.toString()})})},n$c=styled_default("div")({name:"Buttons",class:"b6tbwuy",propsAsIs:!1}),a$c=({children:te,className:ie})=>jsxRuntime.jsx(n$c,{className:ie,children:te}),i$6=()=>a$c,n$b=styled_default(i$6())({name:"Navigation",class:"n19lpak2",propsAsIs:!0}),b$5=({activeOverlay:te,setActiveOverlay:ie,sdkReady:oe,className:le})=>jsxRuntime.jsxs(n$b,{className:le,children:[jsxRuntime.jsx(x$2,{active:te===d$9,onClick:()=>ie(d$9)}),jsxRuntime.jsx(l$8,{active:te===G$1,disabled:!oe,onClick:()=>{ie(G$1)}}),jsxRuntime.jsx(I$6,{active:te===u$3,onClick:()=>ie(u$3)})]});var browser={exports:{}};function tryStringify(te){try{return JSON.stringify(te)}catch{return'"[Circular]"'}}var quickFormatUnescaped=format$1;function format$1(te,ie,oe){var le=oe&&oe.stringify||tryStringify,ce=1;if(typeof te=="object"&&te!==null){var ue=ie.length+ce;if(ue===1)return te;var fe=new Array(ue);fe[0]=le(te);for(var he=1;he<ue;he++)fe[he]=le(ie[he]);return fe.join(" ")}if(typeof te!="string")return te;var ve=ie.length;if(ve===0)return te;for(var Se="",ke=1-ce,Me=-1,Pe=te&&te.length||0,Re=0;Re<Pe;){if(te.charCodeAt(Re)===37&&Re+1<Pe){switch(Me=Me>-1?Me:0,te.charCodeAt(Re+1)){case 100:case 102:if(ke>=ve||ie[ke]==null)break;Me<Re&&(Se+=te.slice(Me,Re)),Se+=Number(ie[ke]),Me=Re+2,Re++;break;case 105:if(ke>=ve||ie[ke]==null)break;Me<Re&&(Se+=te.slice(Me,Re)),Se+=Math.floor(Number(ie[ke])),Me=Re+2,Re++;break;case 79:case 111:case 106:if(ke>=ve||ie[ke]===void 0)break;Me<Re&&(Se+=te.slice(Me,Re));var Oe=typeof ie[ke];if(Oe==="string"){Se+="'"+ie[ke]+"'",Me=Re+2,Re++;break}if(Oe==="function"){Se+=ie[ke].name||"<anonymous>",Me=Re+2,Re++;break}Se+=le(ie[ke]),Me=Re+2,Re++;break;case 115:if(ke>=ve)break;Me<Re&&(Se+=te.slice(Me,Re)),Se+=String(ie[ke]),Me=Re+2,Re++;break;case 37:Me<Re&&(Se+=te.slice(Me,Re)),Se+="%",Me=Re+2,Re++,ke--;break}++ke}++Re}return Me===-1?te:(Me<Pe&&(Se+=te.slice(Me)),Se)}const format=quickFormatUnescaped;browser.exports=pino;const _console=pfGlobalThisOrFallback().console||{},stdSerializers={mapHttpRequest:mock,mapHttpResponse:mock,wrapRequestSerializer:passthrough,wrapResponseSerializer:passthrough,wrapErrorSerializer:passthrough,req:mock,res:mock,err:asErrValue,errWithCause:asErrValue};function levelToValue(te,ie){return te==="silent"?1/0:ie.levels.values[te]}const baseLogFunctionSymbol=Symbol("pino.logFuncs"),hierarchySymbol=Symbol("pino.hierarchy"),logFallbackMap={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function appendChildLogger(te,ie){const oe={logger:ie,parent:te[hierarchySymbol]};ie[hierarchySymbol]=oe}function setupBaseLogFunctions(te,ie,oe){const le={};ie.forEach(ce=>{le[ce]=oe[ce]?oe[ce]:_console[ce]||_console[logFallbackMap[ce]||"log"]||noop}),te[baseLogFunctionSymbol]=le}function shouldSerialize(te,ie){return Array.isArray(te)?te.filter(function(le){return le!=="!stdSerializers.err"}):te===!0?Object.keys(ie):!1}function pino(te){te=te||{},te.browser=te.browser||{};const ie=te.browser.transmit;if(ie&&typeof ie.send!="function")throw Error("pino: transmit option must have a send function");const oe=te.browser.write||_console;te.browser.write&&(te.browser.asObject=!0);const le=te.serializers||{},ce=shouldSerialize(te.browser.serialize,le);let ue=te.browser.serialize;Array.isArray(te.browser.serialize)&&te.browser.serialize.indexOf("!stdSerializers.err")>-1&&(ue=!1);const fe=Object.keys(te.customLevels||{}),he=["error","fatal","warn","info","debug","trace"].concat(fe);typeof oe=="function"&&he.forEach(function(Be){oe[Be]=oe}),(te.enabled===!1||te.browser.disabled)&&(te.level="silent");const ve=te.level||"info",Se=Object.create(oe);Se.log||(Se.log=noop),setupBaseLogFunctions(Se,he,oe),appendChildLogger({},Se),Object.defineProperty(Se,"levelVal",{get:Me}),Object.defineProperty(Se,"level",{get:Pe,set:Re});const ke={transmit:ie,serialize:ce,asObject:te.browser.asObject,levels:he,timestamp:getTimeFunction(te)};Se.levels=getLevels(te),Se.level=ve,Se.setMaxListeners=Se.getMaxListeners=Se.emit=Se.addListener=Se.on=Se.prependListener=Se.once=Se.prependOnceListener=Se.removeListener=Se.removeAllListeners=Se.listeners=Se.listenerCount=Se.eventNames=Se.write=Se.flush=noop,Se.serializers=le,Se._serialize=ce,Se._stdErrSerialize=ue,Se.child=Oe,ie&&(Se._logEvent=createLogEventShape());function Me(){return levelToValue(this.level,this)}function Pe(){return this._level}function Re(Be){if(Be!=="silent"&&!this.levels.values[Be])throw Error("unknown level "+Be);this._level=Be,set(this,ke,Se,"error"),set(this,ke,Se,"fatal"),set(this,ke,Se,"warn"),set(this,ke,Se,"info"),set(this,ke,Se,"debug"),set(this,ke,Se,"trace"),fe.forEach(xe=>{set(this,ke,Se,xe)})}function Oe(Be,xe){if(!Be)throw new Error("missing bindings for child Pino");xe=xe||{},ce&&Be.serializers&&(xe.serializers=Be.serializers);const nt=xe.serializers;if(ce&&nt){var rt=Object.assign({},le,nt),ot=te.browser.serialize===!0?Object.keys(rt):ce;delete Be.serializers,applySerializers([Be],ot,rt,this._stdErrSerialize)}function ht(Rt){this._childLevel=(Rt._childLevel|0)+1,this.bindings=Be,rt&&(this.serializers=rt,this._serialize=ot),ie&&(this._logEvent=createLogEventShape([].concat(Rt._logEvent.bindings,Be)))}ht.prototype=this;const dt=new ht(this);return appendChildLogger(this,dt),dt.level=this.level,dt}return Se}function getLevels(te){const ie=te.customLevels||{},oe=Object.assign({},pino.levels.values,ie),le=Object.assign({},pino.levels.labels,invertObject(ie));return{values:oe,labels:le}}function invertObject(te){const ie={};return Object.keys(te).forEach(function(oe){ie[te[oe]]=oe}),ie}pino.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};pino.stdSerializers=stdSerializers;pino.stdTimeFunctions=Object.assign({},{nullTime,epochTime,unixTime,isoTime});function getBindingChain(te){const ie=[];te.bindings&&ie.push(te.bindings);let oe=te[hierarchySymbol];for(;oe.parent;)oe=oe.parent,oe.logger.bindings&&ie.push(oe.logger.bindings);return ie.reverse()}function set(te,ie,oe,le){if(te[le]=levelToValue(te.level,oe)>levelToValue(le,oe)?noop:oe[baseLogFunctionSymbol][le],!ie.transmit&&te[le]===noop)return;te[le]=createWrap(te,ie,oe,le);const ce=getBindingChain(te);ce.length!==0&&(te[le]=prependBindingsInArguments(ce,te[le]))}function prependBindingsInArguments(te,ie){return function(){return ie.apply(this,[...te,...arguments])}}function createWrap(te,ie,oe,le){return function(ce){return function(){const fe=ie.timestamp(),he=new Array(arguments.length),ve=Object.getPrototypeOf&&Object.getPrototypeOf(this)===_console?_console:this;for(var Se=0;Se<he.length;Se++)he[Se]=arguments[Se];if(ie.serialize&&!ie.asObject&&applySerializers(he,this._serialize,this.serializers,this._stdErrSerialize),ie.asObject?ce.call(ve,asObject(this,le,he,fe)):ce.apply(ve,he),ie.transmit){const ke=ie.transmit.level||te._level,Me=oe.levels.values[ke],Pe=oe.levels.values[le];if(Pe<Me)return;transmit(this,{ts:fe,methodLevel:le,methodValue:Pe,transmitLevel:ke,transmitValue:oe.levels.values[ie.transmit.level||te._level],send:ie.transmit.send,val:levelToValue(te._level,oe)},he)}}}(te[baseLogFunctionSymbol][le])}function asObject(te,ie,oe,le){te._serialize&&applySerializers(oe,te._serialize,te.serializers,te._stdErrSerialize);const ce=oe.slice();let ue=ce[0];const fe={};le&&(fe.time=le),fe.level=te.levels.values[ie];let he=(te._childLevel|0)+1;if(he<1&&(he=1),ue!==null&&typeof ue=="object"){for(;he--&&typeof ce[0]=="object";)Object.assign(fe,ce.shift());ue=ce.length?format(ce.shift(),ce):void 0}else typeof ue=="string"&&(ue=format(ce.shift(),ce));return ue!==void 0&&(fe.msg=ue),fe}function applySerializers(te,ie,oe,le){for(const ce in te)if(le&&te[ce]instanceof Error)te[ce]=pino.stdSerializers.err(te[ce]);else if(typeof te[ce]=="object"&&!Array.isArray(te[ce]))for(const ue in te[ce])ie&&ie.indexOf(ue)>-1&&ue in oe&&(te[ce][ue]=oe[ue](te[ce][ue]))}function transmit(te,ie,oe){const le=ie.send,ce=ie.ts,ue=ie.methodLevel,fe=ie.methodValue,he=ie.val,ve=te._logEvent.bindings;applySerializers(oe,te._serialize||Object.keys(te.serializers),te.serializers,te._stdErrSerialize===void 0?!0:te._stdErrSerialize),te._logEvent.ts=ce,te._logEvent.messages=oe.filter(function(Se){return ve.indexOf(Se)===-1}),te._logEvent.level.label=ue,te._logEvent.level.value=fe,le(ue,te._logEvent,he),te._logEvent=createLogEventShape(ve)}function createLogEventShape(te){return{ts:0,messages:[],bindings:te||[],level:{label:"",value:0}}}function asErrValue(te){const ie={type:te.constructor.name,msg:te.message,stack:te.stack};for(const oe in te)ie[oe]===void 0&&(ie[oe]=te[oe]);return ie}function getTimeFunction(te){return typeof te.timestamp=="function"?te.timestamp:te.timestamp===!1?nullTime:epochTime}function mock(){return{}}function passthrough(te){return te}function noop(){}function nullTime(){return!1}function epochTime(){return Date.now()}function unixTime(){return Math.round(Date.now()/1e3)}function isoTime(){return new Date(Date.now()).toISOString()}function pfGlobalThisOrFallback(){function te(ie){return typeof ie<"u"&&ie}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return te(self)||te(window)||te(this)||{}}}browser.exports.default=pino;var pino_1=browser.exports.pino=pino;pino_1({level:"trace",enabled:!1,browser:{write:te=>{console.log(te)}}});var KEY_PREFIX;(function(te){te.OPENED="opened"})(KEY_PREFIX||(KEY_PREFIX={}));var NotificationType;(function(te){te[te.ONBOARDING=1]="ONBOARDING",te[te.QUESTION=2]="QUESTION",te[te.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(NotificationType||(NotificationType={}));const o$9={[QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[QuestionType.UNSET]:void 0,[QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},e$8=styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),a$b=styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),l$7=styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),n$a=styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),w$1=({poster:te,source:ie})=>{const oe=e$9.useRef(null),[le,ce]=e$9.useState(!1),[ue,fe]=e$9.useState(!0);return jsxRuntime.jsxs(e$8,{onClick:()=>{const he=oe==null?void 0:oe.current;he&&ce(ve=>ve?(he.pause(),!1):(he.play(),fe(!1),!0))},children:[jsxRuntime.jsx(a$b,{ref:oe,src:ie,onEnded:()=>{var he;(he=oe==null?void 0:oe.current)==null||he.load(),ce(!1),fe(!0)},style:{visibility:ue?"hidden":"visible"}}),jsxRuntime.jsx(l$7,{src:te,style:{visibility:ue?"visible":"hidden"}}),jsxRuntime.jsx(n$a,{children:!le&&jsxRuntime.jsx(n1,{name:"icon-play"})})]})},n$9=styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),e$7=styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),o$8=styled_default("div")({name:"InsightContent",class:"i1qne9g6",propsAsIs:!1}),a$a=styled_default("h3")({name:"Title",class:"ttpr98r",propsAsIs:!1}),i$5=styled_default("div")({name:"Description",class:"d17iaqp8",propsAsIs:!1}),p$5=styled_default("button")({name:"ActionBtn",class:"a16t3y7s",propsAsIs:!1}),b$4=({video:te,image:ie,heading:oe,body:le,action:ce})=>jsxRuntime.jsxs(n$9,{children:[(te==null?void 0:te.url)&&jsxRuntime.jsx(w$1,{source:te.url,poster:te.thumbnailUrl}),ie&&jsxRuntime.jsx(e$7,{src:ie}),jsxRuntime.jsxs(o$8,{children:[jsxRuntime.jsx(a$a,{children:oe}),jsxRuntime.jsx(i$5,{children:le}),ce&&jsxRuntime.jsx(p$5,{onClick:ce,children:"View Insight"})]})]}),b$3=styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),s=styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),n$8=()=>s,m$9=styled_default(n$8())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),o$7=()=>s,x$1=styled_default(o$7())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),r$7=()=>s,w=styled_default(r$7())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),p$4=()=>s,A$5=styled_default(p$4())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),t$7=()=>s,I$5=styled_default(t$7())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),c$6=()=>s,_=styled_default(c$6())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),a$9=()=>s,O$1=styled_default(a$9())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),i$4=()=>s,F=styled_default(i$4())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),B$1=()=>s,q$2=styled_default(B$1())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),G=()=>s,d$8=styled_default(G())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),L$2=()=>s,v$5=styled_default(L$2())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),T=()=>s,f$5=styled_default(T())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),u$2=()=>s,y=styled_default(u$2())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),h=()=>s,z=styled_default(h())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),x=({step:te,correct:ie})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(b$3,{"data-active":te===1,"data-first-screen":"true",children:[jsxRuntime.jsx(m$9,{}),jsxRuntime.jsx(x$1,{}),jsxRuntime.jsx(w,{})]}),jsxRuntime.jsxs(b$3,{"data-active":te===2,children:[jsxRuntime.jsx(A$5,{}),jsxRuntime.jsx(I$5,{}),jsxRuntime.jsx(_,{})]}),jsxRuntime.jsxs(b$3,{"data-active":te===3,children:[jsxRuntime.jsx(A$5,{}),jsxRuntime.jsx(I$5,{}),jsxRuntime.jsx(_,{})]}),ie?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(b$3,{"data-active":te===4,"data-correct":"false",children:[jsxRuntime.jsx(O$1,{}),jsxRuntime.jsx(F,{}),jsxRuntime.jsx(q$2,{}),jsxRuntime.jsx(d$8,{})]}),jsxRuntime.jsxs(b$3,{"data-active":te===5,"data-correct":"false","data-last-screen":"true",children:[jsxRuntime.jsx(O$1,{}),jsxRuntime.jsx(F,{}),jsxRuntime.jsx(q$2,{}),jsxRuntime.jsx(d$8,{})]})]}):jsxRuntime.jsxs(b$3,{"data-active":te===4,"data-correct":"false","data-last-screen":"true",children:[jsxRuntime.jsx(v$5,{}),jsxRuntime.jsx(f$5,{}),jsxRuntime.jsx(y,{}),jsxRuntime.jsx(z,{})]})]}),i$3=styled_default("div")({name:"Container",class:"c10131zw",propsAsIs:!1}),m$8=styled_default("div")({name:"AnimateContent",class:"ar6k2eo",propsAsIs:!1}),I$4=styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),A$4=styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),e$6=styled_default("div")({name:"Subtitle",class:"s1pjil1h",propsAsIs:!1}),o$6=()=>e$6,d$7=styled_default(o$6())({name:"SubtitleFG",class:"s1iorwr9",propsAsIs:!0}),u$1=styled_default("div")({name:"AnswerText",class:"a51sv9d",propsAsIs:!1}),n$7=()=>n1,f$4=styled_default(n$7())({name:"FeedbackIcon",class:"f1lbk2ye",propsAsIs:!0}),C$2=styled_default("button")({name:"CloseButton",class:"crcvk3t",propsAsIs:!1}),c$5=()=>n1,v$4=styled_default(c$5())({name:"CloseIcon",class:"c33p82r",propsAsIs:!0}),j$1=({close:te,votedAnswer:ie,correct:oe,correctAnswerTitle:le})=>{const[ce,ue]=e$9.useState(1);return e$9.useEffect(()=>{const fe=setInterval(()=>{ue(he=>oe&&he>4||!oe&&he>3?he:++he)},6e3);return()=>clearInterval(fe)},[oe]),jsxRuntime.jsxs(i$3,{"data-bg-color-white":ce>3,children:[jsxRuntime.jsx(x,{step:ce,correct:oe}),jsxRuntime.jsxs(m$8,{"data-active-number":ce,children:[jsxRuntime.jsxs(I$4,{children:[jsxRuntime.jsx(A$4,{children:"Master"}),jsxRuntime.jsx(d$7,{children:"FEATURED GROUPS +"})]}),jsxRuntime.jsxs(I$4,{children:[jsxRuntime.jsx(A$4,{children:"Prediction results are in!"}),jsxRuntime.jsx(d$7,{children:"FEATURED GROUPS +"})]}),jsxRuntime.jsxs(I$4,{children:[jsxRuntime.jsx(A$4,{children:"Who holds the most birdies in golf?"}),jsxRuntime.jsxs(e$6,{children:["Your Pick: ",jsxRuntime.jsx(u$1,{children:ie==null?void 0:ie.title})]})]}),oe?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(I$4,{"data-color-green":"true",children:[jsxRuntime.jsx(A$4,{children:"Congratulations! You answered correctly."}),jsxRuntime.jsxs(e$6,{children:[jsxRuntime.jsx(f$4,{name:"selected"}),"Your Pick: ",jsxRuntime.jsx(u$1,{children:ie==null?void 0:ie.title})]})]}),jsxRuntime.jsxs(I$4,{"data-color-green":"true",children:[jsxRuntime.jsx(C$2,{onClick:te,children:jsxRuntime.jsx(v$4,{name:"icon-cross"})}),jsxRuntime.jsxs(A$4,{children:["+",ie==null?void 0:ie.points," points"]}),jsxRuntime.jsxs(e$6,{children:[jsxRuntime.jsx(f$4,{name:"selected"}),"Your Pick: ",jsxRuntime.jsx(u$1,{children:ie==null?void 0:ie.title})]})]})]}):jsxRuntime.jsxs(I$4,{children:[jsxRuntime.jsx(C$2,{onClick:te,children:jsxRuntime.jsx(v$4,{name:"icon-cross"})}),jsxRuntime.jsxs(A$4,{"data-incorrect":"true",children:["Better luck next time! Correct: ",le,"."]}),jsxRuntime.jsxs(e$6,{"data-incorrect":"true",children:[jsxRuntime.jsx(f$4,{name:"circleClose"}),"Your Pick: ",jsxRuntime.jsx(u$1,{children:ie==null?void 0:ie.title})]})]})]})]})},r$6=styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),l$6=styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),e$5=()=>n1,m$7=styled_default(e$5())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),I$3=styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),n$6=()=>n1,i$2=styled_default(n$6())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),f$3=styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),A$3=styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),d$6=styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),e$4=styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),n$5=styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),o$5=styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),l$5=styled_default("div")({name:"Details",class:"d1c454nm",propsAsIs:!1}),m$6=styled_default("div")({name:"Name",class:"n11nigc3",propsAsIs:!1}),t$6=styled_default("div")({name:"UserName",class:"urxa4k8",propsAsIs:!1}),j=({image:te,name:ie,userName:oe,verified:le})=>jsxRuntime.jsxs(e$4,{children:[jsxRuntime.jsx(n$5,{children:jsxRuntime.jsx(o$5,{src:te})}),jsxRuntime.jsxs(l$5,{children:[jsxRuntime.jsxs(m$6,{children:[ie," ",le&&jsxRuntime.jsx(n1,{name:"icon-twitter-verified"})]}),jsxRuntime.jsx(t$6,{children:oe})]})]}),a$8=styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),e$3=styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),t$5=styled_default("div")({name:"Body",class:"b14u54rf",propsAsIs:!1}),n$4=styled_default("img")({name:"Image",class:"i1hxm6zo",propsAsIs:!1}),l$4=styled_default("div")({name:"Details",class:"d1s19yop",propsAsIs:!1}),c$4=styled_default("div")({name:"QuoteWrap",class:"q1qyx94r",propsAsIs:!1}),p$3=styled_default("blockquote")({name:"Quote",class:"qs97clu",propsAsIs:!1}),Q$1=({account:te,body:ie,image:oe,title:le,action:ce})=>jsxRuntime.jsxs(a$8,{children:[jsxRuntime.jsx(c$4,{children:jsxRuntime.jsx(p$3,{children:le})}),jsxRuntime.jsxs(l$4,{children:[jsxRuntime.jsx(j,{...te}),jsxRuntime.jsx(t$5,{children:ie}),oe&&jsxRuntime.jsx(n$4,{src:oe})]}),ce&&jsxRuntime.jsx(e$3,{onClick:ce,children:"View Tweet"})]}),J=({close:te,action:ie,data:{questionType:oe,question:le,insight:ce,tweet:ue}})=>{const fe=o$9[oe];return fe?le!=null&&le.predictionResult?jsxRuntime.jsx(j$1,{close:te,...le}):jsxRuntime.jsxs(r$6,{children:[jsxRuntime.jsx(l$6,{onClick:te,children:jsxRuntime.jsx(m$7,{name:"icon-cross"})}),oe!==QuestionType.TWEET&&jsxRuntime.jsxs(I$3,{children:[jsxRuntime.jsx(i$2,{"data-type-trivia":oe===QuestionType.TRIVIA,"data-type-poll":oe===QuestionType.POLL,name:fe.iconName}),jsxRuntime.jsx(f$3,{children:fe.label})]}),oe===QuestionType.FACTOID&&jsxRuntime.jsx(b$4,{...ce,action:ie}),oe===QuestionType.TWEET&&jsxRuntime.jsx(Q$1,{...ue,action:ie}),oe!==QuestionType.FACTOID&&oe!==QuestionType.TWEET&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(A$3,{children:le==null?void 0:le.title}),jsxRuntime.jsx(d$6,{onClick:ie,children:"Answer"})]})]}):null};let windowObject;typeof window<"u"?windowObject=window:typeof self<"u"?windowObject=self:windowObject=dist.global;let cancelFrame=null,requestFrame=null;const TIMEOUT_DURATION=20,clearTimeoutFn=windowObject.clearTimeout,setTimeoutFn=windowObject.setTimeout,cancelAnimationFrameFn=windowObject.cancelAnimationFrame||windowObject.mozCancelAnimationFrame||windowObject.webkitCancelAnimationFrame,requestAnimationFrameFn=windowObject.requestAnimationFrame||windowObject.mozRequestAnimationFrame||windowObject.webkitRequestAnimationFrame;cancelAnimationFrameFn==null||requestAnimationFrameFn==null?(cancelFrame=clearTimeoutFn,requestFrame=function(ie){return setTimeoutFn(ie,TIMEOUT_DURATION)}):(cancelFrame=function([ie,oe]){cancelAnimationFrameFn(ie),clearTimeoutFn(oe)},requestFrame=function(ie){const oe=requestAnimationFrameFn(function(){clearTimeoutFn(le),ie()}),le=setTimeoutFn(function(){cancelAnimationFrameFn(oe),ie()},TIMEOUT_DURATION);return[oe,le]});function createDetectElementResize(te){let ie,oe,le,ce,ue,fe,he;const ve=typeof document<"u"&&document.attachEvent;if(!ve){fe=function(nt){const rt=nt.__resizeTriggers__,ot=rt.firstElementChild,ht=rt.lastElementChild,dt=ot.firstElementChild;ht.scrollLeft=ht.scrollWidth,ht.scrollTop=ht.scrollHeight,dt.style.width=ot.offsetWidth+1+"px",dt.style.height=ot.offsetHeight+1+"px",ot.scrollLeft=ot.scrollWidth,ot.scrollTop=ot.scrollHeight},ue=function(nt){return nt.offsetWidth!==nt.__resizeLast__.width||nt.offsetHeight!==nt.__resizeLast__.height},he=function(nt){if(nt.target.className&&typeof nt.target.className.indexOf=="function"&&nt.target.className.indexOf("contract-trigger")<0&&nt.target.className.indexOf("expand-trigger")<0)return;const rt=this;fe(this),this.__resizeRAF__&&cancelFrame(this.__resizeRAF__),this.__resizeRAF__=requestFrame(function(){ue(rt)&&(rt.__resizeLast__.width=rt.offsetWidth,rt.__resizeLast__.height=rt.offsetHeight,rt.__resizeListeners__.forEach(function(dt){dt.call(rt,nt)}))})};let Pe=!1,Re="";le="animationstart";const Oe="Webkit Moz O ms".split(" ");let Be="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),xe="";{const nt=document.createElement("fakeelement");if(nt.style.animationName!==void 0&&(Pe=!0),Pe===!1){for(let rt=0;rt<Oe.length;rt++)if(nt.style[Oe[rt]+"AnimationName"]!==void 0){xe=Oe[rt],Re="-"+xe.toLowerCase()+"-",le=Be[rt],Pe=!0;break}}}oe="resizeanim",ie="@"+Re+"keyframes "+oe+" { from { opacity: 0; } to { opacity: 0; } } ",ce=Re+"animation: 1ms "+oe+"; "}const Se=function(Pe){if(!Pe.getElementById("detectElementResize")){const Re=(ie||"")+".resize-triggers { "+(ce||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',Oe=Pe.head||Pe.getElementsByTagName("head")[0],Be=Pe.createElement("style");Be.id="detectElementResize",Be.type="text/css",te!=null&&Be.setAttribute("nonce",te),Be.styleSheet?Be.styleSheet.cssText=Re:Be.appendChild(Pe.createTextNode(Re)),Oe.appendChild(Be)}};return{addResizeListener:function(Pe,Re){if(ve)Pe.attachEvent("onresize",Re);else{if(!Pe.__resizeTriggers__){const Oe=Pe.ownerDocument,Be=windowObject.getComputedStyle(Pe);Be&&Be.position==="static"&&(Pe.style.position="relative"),Se(Oe),Pe.__resizeLast__={},Pe.__resizeListeners__=[],(Pe.__resizeTriggers__=Oe.createElement("div")).className="resize-triggers";const xe=Oe.createElement("div");xe.className="expand-trigger",xe.appendChild(Oe.createElement("div"));const nt=Oe.createElement("div");nt.className="contract-trigger",Pe.__resizeTriggers__.appendChild(xe),Pe.__resizeTriggers__.appendChild(nt),Pe.appendChild(Pe.__resizeTriggers__),fe(Pe),Pe.addEventListener("scroll",he,!0),le&&(Pe.__resizeTriggers__.__animationListener__=function(ot){ot.animationName===oe&&fe(Pe)},Pe.__resizeTriggers__.addEventListener(le,Pe.__resizeTriggers__.__animationListener__))}Pe.__resizeListeners__.push(Re)}},removeResizeListener:function(Pe,Re){if(ve)Pe.detachEvent("onresize",Re);else if(Pe.__resizeListeners__.splice(Pe.__resizeListeners__.indexOf(Re),1),!Pe.__resizeListeners__.length){Pe.removeEventListener("scroll",he,!0),Pe.__resizeTriggers__.__animationListener__&&(Pe.__resizeTriggers__.removeEventListener(le,Pe.__resizeTriggers__.__animationListener__),Pe.__resizeTriggers__.__animationListener__=null);try{Pe.__resizeTriggers__=!Pe.removeChild(Pe.__resizeTriggers__)}catch{}}}}}class AutoSizer extends e$9.Component{constructor(...ie){super(...ie),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:oe,disableWidth:le,onResize:ce}=this.props;if(this._parentNode){var ue,fe,he,ve;const Se=window.getComputedStyle(this._parentNode)||{},ke=parseFloat((ue=Se.paddingLeft)!==null&&ue!==void 0?ue:"0"),Me=parseFloat((fe=Se.paddingRight)!==null&&fe!==void 0?fe:"0"),Pe=parseFloat((he=Se.paddingTop)!==null&&he!==void 0?he:"0"),Re=parseFloat((ve=Se.paddingBottom)!==null&&ve!==void 0?ve:"0"),Oe=this._parentNode.getBoundingClientRect(),Be=Oe.height-Pe-Re,xe=Oe.width-ke-Me,nt=this._parentNode.offsetHeight-Pe-Re,rt=this._parentNode.offsetWidth-ke-Me;(!oe&&(this.state.height!==nt||this.state.scaledHeight!==Be)||!le&&(this.state.width!==rt||this.state.scaledWidth!==xe))&&(this.setState({height:nt,width:rt,scaledHeight:Be,scaledWidth:xe}),typeof ce=="function"&&ce({height:nt,scaledHeight:Be,scaledWidth:xe,width:rt}))}},this._setRef=oe=>{this._autoSizer=oe}}componentDidMount(){const{nonce:ie}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=createDetectElementResize(ie),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:ie,defaultHeight:oe,defaultWidth:le,disableHeight:ce=!1,disableWidth:ue=!1,nonce:fe,onResize:he,style:ve={},tagName:Se="div",...ke}=this.props,{height:Me,scaledHeight:Pe,scaledWidth:Re,width:Oe}=this.state,Be={overflow:"visible"},xe={};let nt=!1;return ce||(Me===0&&(nt=!0),Be.height=0,xe.height=Me,xe.scaledHeight=Pe),ue||(Oe===0&&(nt=!0),Be.width=0,xe.width=Oe,xe.scaledWidth=Re),e$9.createElement(Se,{ref:this._setRef,style:{...Be,...ve},...ke},!nt&&ie(xe))}}/*! *****************************************************************************
11
- Copyright (c) Microsoft Corporation.
12
-
13
- Permission to use, copy, modify, and/or distribute this software for any
14
- purpose with or without fee is hereby granted.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
- PERFORMANCE OF THIS SOFTWARE.
23
- ***************************************************************************** */var extendStatics=function(te,ie){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,le){oe.__proto__=le}||function(oe,le){for(var ce in le)Object.prototype.hasOwnProperty.call(le,ce)&&(oe[ce]=le[ce])})(te,ie)};function __extends(te,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Class extends value "+String(ie)+" is not a constructor or null");function oe(){this.constructor=te}extendStatics(te,ie),te.prototype=ie===null?Object.create(ie):(oe.prototype=ie.prototype,new oe)}var __assign=function(){return(__assign=Object.assign||function(te){for(var ie,oe=1,le=arguments.length;oe<le;oe++)for(var ce in ie=arguments[oe])Object.prototype.hasOwnProperty.call(ie,ce)&&(te[ce]=ie[ce]);return te}).apply(this,arguments)};function __awaiter(te,ie,oe,le){return new(oe||(oe=Promise))(function(ce,ue){function fe(Se){try{ve(le.next(Se))}catch(ke){ue(ke)}}function he(Se){try{ve(le.throw(Se))}catch(ke){ue(ke)}}function ve(Se){var ke;Se.done?ce(Se.value):(ke=Se.value,ke instanceof oe?ke:new oe(function(Me){Me(ke)})).then(fe,he)}ve((le=le.apply(te,ie||[])).next())})}function __generator(te,ie){var oe,le,ce,ue,fe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return ue={next:he(0),throw:he(1),return:he(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function he(ve){return function(Se){return function(ke){if(oe)throw new TypeError("Generator is already executing.");for(;fe;)try{if(oe=1,le&&(ce=2&ke[0]?le.return:ke[0]?le.throw||((ce=le.return)&&ce.call(le),0):le.next)&&!(ce=ce.call(le,ke[1])).done)return ce;switch(le=0,ce&&(ke=[2&ke[0],ce.value]),ke[0]){case 0:case 1:ce=ke;break;case 4:return fe.label++,{value:ke[1],done:!1};case 5:fe.label++,le=ke[1],ke=[0];continue;case 7:ke=fe.ops.pop(),fe.trys.pop();continue;default:if(ce=fe.trys,!((ce=ce.length>0&&ce[ce.length-1])||ke[0]!==6&&ke[0]!==2)){fe=0;continue}if(ke[0]===3&&(!ce||ke[1]>ce[0]&&ke[1]<ce[3])){fe.label=ke[1];break}if(ke[0]===6&&fe.label<ce[1]){fe.label=ce[1],ce=ke;break}if(ce&&fe.label<ce[2]){fe.label=ce[2],fe.ops.push(ke);break}ce[2]&&fe.ops.pop(),fe.trys.pop();continue}ke=ie.call(te,fe)}catch(Me){ke=[6,Me],le=0}finally{oe=ce=0}if(5&ke[0])throw ke[1];return{value:ke[0]?ke[1]:void 0,done:!0}}([ve,Se])}}}function createCommonjsModule(te,ie){return te(ie={exports:{}},ie.exports),ie.exports}var lottie=createCommonjsModule(function(module,exports){typeof navigator<"u"&&function(te,ie){module.exports=ie()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(te){_useWebWorker=!!te},getWebWorker=function(){return _useWebWorker},setLocationHref=function(te){locationHref=te},getLocationHref=function(){return locationHref};function createTag(te){return document.createElement(te)}function extendPrototype(te,ie){var oe,le,ce=te.length;for(oe=0;oe<ce;oe+=1)for(var ue in le=te[oe].prototype)Object.prototype.hasOwnProperty.call(le,ue)&&(ie.prototype[ue]=le[ue])}function getDescriptor(te,ie){return Object.getOwnPropertyDescriptor(te,ie)}function createProxyFunction(te){function ie(){}return ie.prototype=te,ie}var audioControllerFactory=function(){function te(ie){this.audios=[],this.audioFactory=ie,this._volume=1,this._isMuted=!1}return te.prototype={addAudio:function(ie){this.audios.push(ie)},pause:function(){var ie,oe=this.audios.length;for(ie=0;ie<oe;ie+=1)this.audios[ie].pause()},resume:function(){var ie,oe=this.audios.length;for(ie=0;ie<oe;ie+=1)this.audios[ie].resume()},setRate:function(ie){var oe,le=this.audios.length;for(oe=0;oe<le;oe+=1)this.audios[oe].setRate(ie)},createAudio:function(ie){return this.audioFactory?this.audioFactory(ie):window.Howl?new window.Howl({src:[ie]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(ie){this.audioFactory=ie},setVolume:function(ie){this._volume=ie,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var ie,oe=this.audios.length;for(ie=0;ie<oe;ie+=1)this.audios[ie].volume(this._volume*(this._isMuted?0:1))}},function(){return new te}}(),createTypedArray=function(){function te(ie,oe){var le,ce=0,ue=[];switch(ie){case"int16":case"uint8c":le=1;break;default:le=1.1}for(ce=0;ce<oe;ce+=1)ue.push(le);return ue}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(ie,oe){return ie==="float32"?new Float32Array(oe):ie==="int16"?new Int16Array(oe):ie==="uint8c"?new Uint8ClampedArray(oe):te(ie,oe)}:te}();function createSizedArray(te){return Array.apply(null,{length:te})}function _typeof$6(te){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var te,ie=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],oe=ie.length;for(te=0;te<oe;te+=1)BMMath[ie[te]]=Math[ie[te]]})(),BMMath.random=Math.random,BMMath.abs=function(te){if(_typeof$6(te)==="object"&&te.length){var ie,oe=createSizedArray(te.length),le=te.length;for(ie=0;ie<le;ie+=1)oe[ie]=Math.abs(te[ie]);return oe}return Math.abs(te)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(te){te.style.position="absolute",te.style.top=0,te.style.left=0,te.style.display="block",te.style.transformOrigin="0 0",te.style.webkitTransformOrigin="0 0",te.style.backfaceVisibility="visible",te.style.webkitBackfaceVisibility="visible",te.style.transformStyle="preserve-3d",te.style.webkitTransformStyle="preserve-3d",te.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(te,ie,oe,le){this.type=te,this.currentTime=ie,this.totalTime=oe,this.direction=le<0?-1:1}function BMCompleteEvent(te,ie){this.type=te,this.direction=ie<0?-1:1}function BMCompleteLoopEvent(te,ie,oe,le){this.type=te,this.currentLoop=oe,this.totalLoops=ie,this.direction=le<0?-1:1}function BMSegmentStartEvent(te,ie,oe){this.type=te,this.firstFrame=ie,this.totalFrames=oe}function BMDestroyEvent(te,ie){this.type=te,this.target=ie}function BMRenderFrameErrorEvent(te,ie){this.type="renderFrameError",this.nativeError=te,this.currentTime=ie}function BMConfigErrorEvent(te){this.type="configError",this.nativeError=te}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(te,ie,oe){var le,ce,ue,fe,he,ve,Se,ke;switch(ve=oe*(1-ie),Se=oe*(1-(he=6*te-(fe=Math.floor(6*te)))*ie),ke=oe*(1-(1-he)*ie),fe%6){case 0:le=oe,ce=ke,ue=ve;break;case 1:le=Se,ce=oe,ue=ve;break;case 2:le=ve,ce=oe,ue=ke;break;case 3:le=ve,ce=Se,ue=oe;break;case 4:le=ke,ce=ve,ue=oe;break;case 5:le=oe,ce=ve,ue=Se}return[le,ce,ue]}function RGBtoHSV(te,ie,oe){var le,ce=Math.max(te,ie,oe),ue=Math.min(te,ie,oe),fe=ce-ue,he=ce===0?0:fe/ce,ve=ce/255;switch(ce){case ue:le=0;break;case te:le=ie-oe+fe*(ie<oe?6:0),le/=6*fe;break;case ie:le=oe-te+2*fe,le/=6*fe;break;case oe:le=te-ie+4*fe,le/=6*fe}return[le,he,ve]}function addSaturationToRGB(te,ie){var oe=RGBtoHSV(255*te[0],255*te[1],255*te[2]);return oe[1]+=ie,oe[1]>1?oe[1]=1:oe[1]<=0&&(oe[1]=0),HSVtoRGB(oe[0],oe[1],oe[2])}function addBrightnessToRGB(te,ie){var oe=RGBtoHSV(255*te[0],255*te[1],255*te[2]);return oe[2]+=ie,oe[2]>1?oe[2]=1:oe[2]<0&&(oe[2]=0),HSVtoRGB(oe[0],oe[1],oe[2])}function addHueToRGB(te,ie){var oe=RGBtoHSV(255*te[0],255*te[1],255*te[2]);return oe[0]+=ie/360,oe[0]>1?oe[0]-=1:oe[0]<0&&(oe[0]+=1),HSVtoRGB(oe[0],oe[1],oe[2])}var rgbToHex=function(){var te,ie,oe=[];for(te=0;te<256;te+=1)ie=te.toString(16),oe[te]=ie.length===1?"0"+ie:ie;return function(le,ce,ue){return le<0&&(le=0),ce<0&&(ce=0),ue<0&&(ue=0),"#"+oe[le]+oe[ce]+oe[ue]}}(),setSubframeEnabled=function(te){subframeEnabled=!!te},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(te){expressionsPlugin=te},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(te){expressionsInterfaces=te},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(te){defaultCurveSegments=te},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(te){idPrefix$1=te};function createNS(te){return document.createElementNS(svgNS,te)}function _typeof$5(te){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var dataManager=function(){var te,ie,oe=1,le=[],ce={onmessage:function(){},postMessage:function(ve){te({data:ve})}},ue={postMessage:function(ve){ce.onmessage({data:ve})}};function fe(){ie||((ie=function(ve){if(window.Worker&&window.Blob&&getWebWorker()){var Se=new Blob(["var _workerSelf = self; self.onmessage = ",ve.toString()],{type:"text/javascript"}),ke=URL.createObjectURL(Se);return new Worker(ke)}return te=ve,ce}(function(ve){if(ue.dataManager||(ue.dataManager=function(){function ke(Ct,Lt){var Qn,Mn,Gn,Sa,Ta,Kn,ka=Ct.length;for(Mn=0;Mn<ka;Mn+=1)if("ks"in(Qn=Ct[Mn])&&!Qn.completed){if(Qn.completed=!0,Qn.hasMask){var Ra=Qn.masksProperties;for(Sa=Ra.length,Gn=0;Gn<Sa;Gn+=1)if(Ra[Gn].pt.k.i)Re(Ra[Gn].pt.k);else for(Kn=Ra[Gn].pt.k.length,Ta=0;Ta<Kn;Ta+=1)Ra[Gn].pt.k[Ta].s&&Re(Ra[Gn].pt.k[Ta].s[0]),Ra[Gn].pt.k[Ta].e&&Re(Ra[Gn].pt.k[Ta].e[0])}Qn.ty===0?(Qn.layers=Me(Qn.refId,Lt),ke(Qn.layers,Lt)):Qn.ty===4?Pe(Qn.shapes):Qn.ty===5&&dt(Qn)}}function Me(Ct,Lt){var Qn=function(Mn,Gn){for(var Sa=0,Ta=Gn.length;Sa<Ta;){if(Gn[Sa].id===Mn)return Gn[Sa];Sa+=1}return null}(Ct,Lt);return Qn?Qn.layers.__used?JSON.parse(JSON.stringify(Qn.layers)):(Qn.layers.__used=!0,Qn.layers):null}function Pe(Ct){var Lt,Qn,Mn;for(Lt=Ct.length-1;Lt>=0;Lt-=1)if(Ct[Lt].ty==="sh")if(Ct[Lt].ks.k.i)Re(Ct[Lt].ks.k);else for(Mn=Ct[Lt].ks.k.length,Qn=0;Qn<Mn;Qn+=1)Ct[Lt].ks.k[Qn].s&&Re(Ct[Lt].ks.k[Qn].s[0]),Ct[Lt].ks.k[Qn].e&&Re(Ct[Lt].ks.k[Qn].e[0]);else Ct[Lt].ty==="gr"&&Pe(Ct[Lt].it)}function Re(Ct){var Lt,Qn=Ct.i.length;for(Lt=0;Lt<Qn;Lt+=1)Ct.i[Lt][0]+=Ct.v[Lt][0],Ct.i[Lt][1]+=Ct.v[Lt][1],Ct.o[Lt][0]+=Ct.v[Lt][0],Ct.o[Lt][1]+=Ct.v[Lt][1]}function Oe(Ct,Lt){var Qn=Lt?Lt.split("."):[100,100,100];return Ct[0]>Qn[0]||!(Qn[0]>Ct[0])&&(Ct[1]>Qn[1]||!(Qn[1]>Ct[1])&&(Ct[2]>Qn[2]||!(Qn[2]>Ct[2])&&null))}var Be,xe=function(){var Ct=[4,4,14];function Lt(Qn){var Mn,Gn,Sa,Ta=Qn.length;for(Mn=0;Mn<Ta;Mn+=1)Qn[Mn].ty===5&&(Gn=Qn[Mn],Sa=void 0,Sa=Gn.t.d,Gn.t.d={k:[{s:Sa,t:0}]})}return function(Qn){if(Oe(Ct,Qn.v)&&(Lt(Qn.layers),Qn.assets)){var Mn,Gn=Qn.assets.length;for(Mn=0;Mn<Gn;Mn+=1)Qn.assets[Mn].layers&&Lt(Qn.assets[Mn].layers)}}}(),nt=(Be=[4,7,99],function(Ct){if(Ct.chars&&!Oe(Be,Ct.v)){var Lt,Qn=Ct.chars.length;for(Lt=0;Lt<Qn;Lt+=1){var Mn=Ct.chars[Lt];Mn.data&&Mn.data.shapes&&(Pe(Mn.data.shapes),Mn.data.ip=0,Mn.data.op=99999,Mn.data.st=0,Mn.data.sr=1,Mn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Ct.chars[Lt].t||(Mn.data.shapes.push({ty:"no"}),Mn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),rt=function(){var Ct=[5,7,15];function Lt(Qn){var Mn,Gn,Sa,Ta=Qn.length;for(Mn=0;Mn<Ta;Mn+=1)Qn[Mn].ty===5&&(Gn=Qn[Mn],Sa=void 0,typeof(Sa=Gn.t.p).a=="number"&&(Sa.a={a:0,k:Sa.a}),typeof Sa.p=="number"&&(Sa.p={a:0,k:Sa.p}),typeof Sa.r=="number"&&(Sa.r={a:0,k:Sa.r}))}return function(Qn){if(Oe(Ct,Qn.v)&&(Lt(Qn.layers),Qn.assets)){var Mn,Gn=Qn.assets.length;for(Mn=0;Mn<Gn;Mn+=1)Qn.assets[Mn].layers&&Lt(Qn.assets[Mn].layers)}}}(),ot=function(){var Ct=[4,1,9];function Lt(Mn){var Gn,Sa,Ta,Kn=Mn.length;for(Gn=0;Gn<Kn;Gn+=1)if(Mn[Gn].ty==="gr")Lt(Mn[Gn].it);else if(Mn[Gn].ty==="fl"||Mn[Gn].ty==="st")if(Mn[Gn].c.k&&Mn[Gn].c.k[0].i)for(Ta=Mn[Gn].c.k.length,Sa=0;Sa<Ta;Sa+=1)Mn[Gn].c.k[Sa].s&&(Mn[Gn].c.k[Sa].s[0]/=255,Mn[Gn].c.k[Sa].s[1]/=255,Mn[Gn].c.k[Sa].s[2]/=255,Mn[Gn].c.k[Sa].s[3]/=255),Mn[Gn].c.k[Sa].e&&(Mn[Gn].c.k[Sa].e[0]/=255,Mn[Gn].c.k[Sa].e[1]/=255,Mn[Gn].c.k[Sa].e[2]/=255,Mn[Gn].c.k[Sa].e[3]/=255);else Mn[Gn].c.k[0]/=255,Mn[Gn].c.k[1]/=255,Mn[Gn].c.k[2]/=255,Mn[Gn].c.k[3]/=255}function Qn(Mn){var Gn,Sa=Mn.length;for(Gn=0;Gn<Sa;Gn+=1)Mn[Gn].ty===4&&Lt(Mn[Gn].shapes)}return function(Mn){if(Oe(Ct,Mn.v)&&(Qn(Mn.layers),Mn.assets)){var Gn,Sa=Mn.assets.length;for(Gn=0;Gn<Sa;Gn+=1)Mn.assets[Gn].layers&&Qn(Mn.assets[Gn].layers)}}}(),ht=function(){var Ct=[4,4,18];function Lt(Mn){var Gn,Sa,Ta;for(Gn=Mn.length-1;Gn>=0;Gn-=1)if(Mn[Gn].ty==="sh")if(Mn[Gn].ks.k.i)Mn[Gn].ks.k.c=Mn[Gn].closed;else for(Ta=Mn[Gn].ks.k.length,Sa=0;Sa<Ta;Sa+=1)Mn[Gn].ks.k[Sa].s&&(Mn[Gn].ks.k[Sa].s[0].c=Mn[Gn].closed),Mn[Gn].ks.k[Sa].e&&(Mn[Gn].ks.k[Sa].e[0].c=Mn[Gn].closed);else Mn[Gn].ty==="gr"&&Lt(Mn[Gn].it)}function Qn(Mn){var Gn,Sa,Ta,Kn,ka,Ra,Jn=Mn.length;for(Sa=0;Sa<Jn;Sa+=1){if((Gn=Mn[Sa]).hasMask){var zn=Gn.masksProperties;for(Kn=zn.length,Ta=0;Ta<Kn;Ta+=1)if(zn[Ta].pt.k.i)zn[Ta].pt.k.c=zn[Ta].cl;else for(Ra=zn[Ta].pt.k.length,ka=0;ka<Ra;ka+=1)zn[Ta].pt.k[ka].s&&(zn[Ta].pt.k[ka].s[0].c=zn[Ta].cl),zn[Ta].pt.k[ka].e&&(zn[Ta].pt.k[ka].e[0].c=zn[Ta].cl)}Gn.ty===4&&Lt(Gn.shapes)}}return function(Mn){if(Oe(Ct,Mn.v)&&(Qn(Mn.layers),Mn.assets)){var Gn,Sa=Mn.assets.length;for(Gn=0;Gn<Sa;Gn+=1)Mn.assets[Gn].layers&&Qn(Mn.assets[Gn].layers)}}}();function dt(Ct){Ct.t.a.length===0&&Ct.t.p}var Rt={completeData:function(Ct){Ct.__complete||(ot(Ct),xe(Ct),nt(Ct),rt(Ct),ht(Ct),ke(Ct.layers,Ct.assets),function(Lt,Qn){if(Lt){var Mn=0,Gn=Lt.length;for(Mn=0;Mn<Gn;Mn+=1)Lt[Mn].t===1&&(Lt[Mn].data.layers=Me(Lt[Mn].data.refId,Qn),ke(Lt[Mn].data.layers,Qn))}}(Ct.chars,Ct.assets),Ct.__complete=!0)}};return Rt.checkColors=ot,Rt.checkChars=nt,Rt.checkPathProperties=rt,Rt.checkShapes=ht,Rt.completeLayers=ke,Rt}()),ue.assetLoader||(ue.assetLoader=function(){function ke(Me){var Pe=Me.getResponseHeader("content-type");return Pe&&Me.responseType==="json"&&Pe.indexOf("json")!==-1||Me.response&&_typeof$5(Me.response)==="object"?Me.response:Me.response&&typeof Me.response=="string"?JSON.parse(Me.response):Me.responseText?JSON.parse(Me.responseText):null}return{load:function(Me,Pe,Re,Oe){var Be,xe=new XMLHttpRequest;try{xe.responseType="json"}catch{}xe.onreadystatechange=function(){if(xe.readyState===4)if(xe.status===200)Be=ke(xe),Re(Be);else try{Be=ke(xe),Re(Be)}catch(nt){Oe&&Oe(nt)}};try{xe.open(["G","E","T"].join(""),Me,!0)}catch{xe.open(["G","E","T"].join(""),Pe+"/"+Me,!0)}xe.send()}}}()),ve.data.type==="loadAnimation")ue.assetLoader.load(ve.data.path,ve.data.fullPath,function(ke){ue.dataManager.completeData(ke),ue.postMessage({id:ve.data.id,payload:ke,status:"success"})},function(){ue.postMessage({id:ve.data.id,status:"error"})});else if(ve.data.type==="complete"){var Se=ve.data.animation;ue.dataManager.completeData(Se),ue.postMessage({id:ve.data.id,payload:Se,status:"success"})}else ve.data.type==="loadData"&&ue.assetLoader.load(ve.data.path,ve.data.fullPath,function(ke){ue.postMessage({id:ve.data.id,payload:ke,status:"success"})},function(){ue.postMessage({id:ve.data.id,status:"error"})})})).onmessage=function(ve){var Se=ve.data,ke=Se.id,Me=le[ke];le[ke]=null,Se.status==="success"?Me.onComplete(Se.payload):Me.onError&&Me.onError()})}function he(ve,Se){var ke="processId_"+(oe+=1);return le[ke]={onComplete:ve,onError:Se},ke}return{loadAnimation:function(ve,Se,ke){fe();var Me=he(Se,ke);ie.postMessage({type:"loadAnimation",path:ve,fullPath:window.location.origin+window.location.pathname,id:Me})},loadData:function(ve,Se,ke){fe();var Me=he(Se,ke);ie.postMessage({type:"loadData",path:ve,fullPath:window.location.origin+window.location.pathname,id:Me})},completeAnimation:function(ve,Se,ke){fe();var Me=he(Se,ke);ie.postMessage({type:"complete",animation:ve,id:Me})}}}(),ImagePreloader=function(){var te=function(){var he=createTag("canvas");he.width=1,he.height=1;var ve=he.getContext("2d");return ve.fillStyle="rgba(0,0,0,0)",ve.fillRect(0,0,1,1),he}();function ie(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function oe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function le(he,ve,Se){var ke="";if(he.e)ke=he.p;else if(ve){var Me=he.p;Me.indexOf("images/")!==-1&&(Me=Me.split("/")[1]),ke=ve+Me}else ke=Se,ke+=he.u?he.u:"",ke+=he.p;return ke}function ce(he){var ve=0,Se=setInterval((function(){(he.getBBox().width||ve>500)&&(this._imageLoaded(),clearInterval(Se)),ve+=1}).bind(this),50)}function ue(he){var ve={assetData:he},Se=le(he,this.assetsPath,this.path);return dataManager.loadData(Se,(function(ke){ve.img=ke,this._footageLoaded()}).bind(this),(function(){ve.img={},this._footageLoaded()}).bind(this)),ve}function fe(){this._imageLoaded=ie.bind(this),this._footageLoaded=oe.bind(this),this.testImageLoaded=ce.bind(this),this.createFootageData=ue.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:function(he,ve){var Se;this.imagesLoadedCb=ve;var ke=he.length;for(Se=0;Se<ke;Se+=1)he[Se].layers||(he[Se].t&&he[Se].t!=="seq"?he[Se].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(he[Se]))):(this.totalImages+=1,this.images.push(this._createImageData(he[Se]))))},setAssetsPath:function(he){this.assetsPath=he||""},setPath:function(he){this.path=he||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(he){for(var ve=0,Se=this.images.length;ve<Se;){if(this.images[ve].assetData===he)return this.images[ve].img;ve+=1}return null},createImgData:function(he){var ve=le(he,this.assetsPath,this.path),Se=createTag("img");Se.crossOrigin="anonymous",Se.addEventListener("load",this._imageLoaded,!1),Se.addEventListener("error",(function(){ke.img=te,this._imageLoaded()}).bind(this),!1),Se.src=ve;var ke={img:Se,assetData:he};return ke},createImageData:function(he){var ve=le(he,this.assetsPath,this.path),Se=createNS("image");isSafari?this.testImageLoaded(Se):Se.addEventListener("load",this._imageLoaded,!1),Se.addEventListener("error",(function(){ke.img=te,this._imageLoaded()}).bind(this),!1),Se.setAttributeNS("http://www.w3.org/1999/xlink","href",ve),this._elementHelper.append?this._elementHelper.append(Se):this._elementHelper.appendChild(Se);var ke={img:Se,assetData:he};return ke},imageLoaded:ie,footageLoaded:oe,setCacheType:function(he,ve){he==="svg"?(this._elementHelper=ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},fe}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(te,ie){if(this._cbs[te])for(var oe=this._cbs[te],le=0;le<oe.length;le+=1)oe[le](ie)},addEventListener:function(te,ie){return this._cbs[te]||(this._cbs[te]=[]),this._cbs[te].push(ie),(function(){this.removeEventListener(te,ie)}).bind(this)},removeEventListener:function(te,ie){if(ie){if(this._cbs[te]){for(var oe=0,le=this._cbs[te].length;oe<le;)this._cbs[te][oe]===ie&&(this._cbs[te].splice(oe,1),oe-=1,le-=1),oe+=1;this._cbs[te].length||(this._cbs[te]=null)}}else this._cbs[te]=null}};var markerParser=function(){function te(ie){for(var oe,le=ie.split(`\r
24
- `),ce={},ue=0,fe=0;fe<le.length;fe+=1)(oe=le[fe].split(":")).length===2&&(ce[oe[0]]=oe[1].trim(),ue+=1);if(ue===0)throw new Error;return ce}return function(ie){for(var oe=[],le=0;le<ie.length;le+=1){var ce=ie[le],ue={time:ce.tm,duration:ce.dr};try{ue.payload=JSON.parse(ie[le].cm)}catch{try{ue.payload=te(ie[le].cm)}catch{ue.payload={name:ie[le].cm}}}oe.push(ue)}return oe}}(),ProjectInterface=function(){function te(ie){this.compositions.push(ie)}return function(){function ie(oe){for(var le=0,ce=this.compositions.length;le<ce;){if(this.compositions[le].data&&this.compositions[le].data.nm===oe)return this.compositions[le].prepareFrame&&this.compositions[le].data.xt&&this.compositions[le].prepareFrame(this.currentFrame),this.compositions[le].compInterface;le+=1}return null}return ie.compositions=[],ie.currentFrame=0,ie.registerComposition=te,ie}}(),renderers={},registerRenderer=function(te,ie){renderers[te]=ie};function getRenderer(te){return renderers[te]}function _typeof$4(te){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(te){(te.wrapper||te.container)&&(this.wrapper=te.wrapper||te.container);var ie="svg";te.animType?ie=te.animType:te.renderer&&(ie=te.renderer);var oe=getRenderer(ie);this.renderer=new oe(this,te.rendererSettings),this.imagePreloader.setCacheType(ie,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=ie,te.loop===""||te.loop===null||te.loop===void 0||te.loop===!0?this.loop=!0:te.loop===!1?this.loop=!1:this.loop=parseInt(te.loop,10),this.autoplay=!("autoplay"in te)||te.autoplay,this.name=te.name?te.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(te,"autoloadSegments")||te.autoloadSegments,this.assetsPath=te.assetsPath,this.initialSegment=te.initialSegment,te.audioFactory&&this.audioController.setAudioFactory(te.audioFactory),te.animationData?this.setupAnimation(te.animationData):te.path&&(te.path.lastIndexOf("\\")!==-1?this.path=te.path.substr(0,te.path.lastIndexOf("\\")+1):this.path=te.path.substr(0,te.path.lastIndexOf("/")+1),this.fileName=te.path.substr(te.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(te.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(te){dataManager.completeAnimation(te,this.configAnimation)},AnimationItem.prototype.setData=function(te,ie){ie&&_typeof$4(ie)!=="object"&&(ie=JSON.parse(ie));var oe={wrapper:te,animationData:ie},le=te.attributes;oe.path=le.getNamedItem("data-animation-path")?le.getNamedItem("data-animation-path").value:le.getNamedItem("data-bm-path")?le.getNamedItem("data-bm-path").value:le.getNamedItem("bm-path")?le.getNamedItem("bm-path").value:"",oe.animType=le.getNamedItem("data-anim-type")?le.getNamedItem("data-anim-type").value:le.getNamedItem("data-bm-type")?le.getNamedItem("data-bm-type").value:le.getNamedItem("bm-type")?le.getNamedItem("bm-type").value:le.getNamedItem("data-bm-renderer")?le.getNamedItem("data-bm-renderer").value:le.getNamedItem("bm-renderer")?le.getNamedItem("bm-renderer").value:"canvas";var ce=le.getNamedItem("data-anim-loop")?le.getNamedItem("data-anim-loop").value:le.getNamedItem("data-bm-loop")?le.getNamedItem("data-bm-loop").value:le.getNamedItem("bm-loop")?le.getNamedItem("bm-loop").value:"";ce==="false"?oe.loop=!1:ce==="true"?oe.loop=!0:ce!==""&&(oe.loop=parseInt(ce,10));var ue=le.getNamedItem("data-anim-autoplay")?le.getNamedItem("data-anim-autoplay").value:le.getNamedItem("data-bm-autoplay")?le.getNamedItem("data-bm-autoplay").value:!le.getNamedItem("bm-autoplay")||le.getNamedItem("bm-autoplay").value;oe.autoplay=ue!=="false",oe.name=le.getNamedItem("data-name")?le.getNamedItem("data-name").value:le.getNamedItem("data-bm-name")?le.getNamedItem("data-bm-name").value:le.getNamedItem("bm-name")?le.getNamedItem("bm-name").value:"",(le.getNamedItem("data-anim-prerender")?le.getNamedItem("data-anim-prerender").value:le.getNamedItem("data-bm-prerender")?le.getNamedItem("data-bm-prerender").value:le.getNamedItem("bm-prerender")?le.getNamedItem("bm-prerender").value:"")==="false"&&(oe.prerender=!1),this.setParams(oe)},AnimationItem.prototype.includeLayers=function(te){te.op>this.animationData.op&&(this.animationData.op=te.op,this.totalFrames=Math.floor(te.op-this.animationData.ip));var ie,oe,le=this.animationData.layers,ce=le.length,ue=te.layers,fe=ue.length;for(oe=0;oe<fe;oe+=1)for(ie=0;ie<ce;){if(le[ie].id===ue[oe].id){le[ie]=ue[oe];break}ie+=1}if((te.chars||te.fonts)&&(this.renderer.globalData.fontManager.addChars(te.chars),this.renderer.globalData.fontManager.addFonts(te.fonts,this.renderer.globalData.defs)),te.assets)for(ce=te.assets.length,ie=0;ie<ce;ie+=1)this.animationData.assets.push(te.assets[ie]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(te){this.animationData=te;var ie=getExpressionsPlugin();ie&&ie.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var te=this.animationData.segments;if(!te||te.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var ie=te.shift();this.timeCompleted=ie.time*this.frameRate;var oe=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(oe,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(te){if(this.renderer)try{this.animationData=te,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(te),te.assets||(te.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(te.assets),this.markers=markerParser(te.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(ie){this.triggerConfigError(ie)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var te=getExpressionsPlugin();te&&te.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(te,ie){var oe=typeof te=="number"?te:void 0,le=typeof ie=="number"?ie:void 0;this.renderer.updateContainerSize(oe,le)},AnimationItem.prototype.setSubframe=function(te){this.isSubframeEnabled=!!te},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(te){this.triggerRenderFrameError(te)}},AnimationItem.prototype.play=function(te){te&&this.name!==te||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(te){te&&this.name!==te||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(te){te&&this.name!==te||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(te){te&&this.name!==te||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(te){for(var ie,oe=0;oe<this.markers.length;oe+=1)if((ie=this.markers[oe]).payload&&ie.payload.name===te)return ie;return null},AnimationItem.prototype.goToAndStop=function(te,ie,oe){if(!oe||this.name===oe){var le=Number(te);if(isNaN(le)){var ce=this.getMarkerData(te);ce&&this.goToAndStop(ce.time,!0)}else ie?this.setCurrentRawFrameValue(te):this.setCurrentRawFrameValue(te*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(te,ie,oe){if(!oe||this.name===oe){var le=Number(te);if(isNaN(le)){var ce=this.getMarkerData(te);ce&&(ce.duration?this.playSegments([ce.time,ce.time+ce.duration],!0):this.goToAndStop(ce.time,!0))}else this.goToAndStop(le,ie,oe);this.play()}},AnimationItem.prototype.advanceTime=function(te){if(this.isPaused!==!0&&this.isLoaded!==!1){var ie=this.currentRawFrame+te*this.frameModifier,oe=!1;ie>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?ie>=this.totalFrames?(this.playCount+=1,this.checkSegments(ie%this.totalFrames)||(this.setCurrentRawFrameValue(ie%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(ie):this.checkSegments(ie>this.totalFrames?ie%this.totalFrames:0)||(oe=!0,ie=this.totalFrames-1):ie<0?this.checkSegments(ie%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(oe=!0,ie=0):(this.setCurrentRawFrameValue(this.totalFrames+ie%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(ie),oe&&(this.setCurrentRawFrameValue(ie),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(te,ie){this.playCount=0,te[1]<te[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=te[0]-te[1],this.timeCompleted=this.totalFrames,this.firstFrame=te[1],this.setCurrentRawFrameValue(this.totalFrames-.001-ie)):te[1]>te[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=te[1]-te[0],this.timeCompleted=this.totalFrames,this.firstFrame=te[0],this.setCurrentRawFrameValue(.001+ie)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(te,ie){var oe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<te?oe=te:this.currentRawFrame+this.firstFrame>ie&&(oe=ie-te)),this.firstFrame=te,this.totalFrames=ie-te,this.timeCompleted=this.totalFrames,oe!==-1&&this.goToAndStop(oe,!0)},AnimationItem.prototype.playSegments=function(te,ie){if(ie&&(this.segments.length=0),_typeof$4(te[0])==="object"){var oe,le=te.length;for(oe=0;oe<le;oe+=1)this.segments.push(te[oe])}else this.segments.push(te);this.segments.length&&ie&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(te){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),te&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(te){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),te),!0)},AnimationItem.prototype.destroy=function(te){te&&this.name!==te||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(te){this.currentRawFrame=te,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(te){this.playSpeed=te,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(te){this.playDirection=te<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(te){this.loop=te},AnimationItem.prototype.setVolume=function(te,ie){ie&&this.name!==ie||this.audioController.setVolume(te)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(te){te&&this.name!==te||this.audioController.mute()},AnimationItem.prototype.unmute=function(te){te&&this.name!==te||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(te){var ie="";if(te.e)ie=te.p;else if(this.assetsPath){var oe=te.p;oe.indexOf("images/")!==-1&&(oe=oe.split("/")[1]),ie=this.assetsPath+oe}else ie=this.path,ie+=te.u?te.u:"",ie+=te.p;return ie},AnimationItem.prototype.getAssetData=function(te){for(var ie=0,oe=this.assets.length;ie<oe;){if(te===this.assets[ie].id)return this.assets[ie];ie+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(te){return te?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(te,ie,oe){try{this.renderer.getElementByPath(te).updateDocumentData(ie,oe)}catch{}},AnimationItem.prototype.trigger=function(te){if(this._cbs&&this._cbs[te])switch(te){case"enterFrame":this.triggerEvent(te,new BMEnterFrameEvent(te,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(te,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(te,new BMCompleteLoopEvent(te,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(te,new BMCompleteEvent(te,this.frameMult));break;case"segmentStart":this.triggerEvent(te,new BMSegmentStartEvent(te,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(te,new BMDestroyEvent(te,this));break;default:this.triggerEvent(te)}te==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(te,this.currentFrame,this.totalFrames,this.frameMult)),te==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(te,this.loop,this.playCount,this.frameMult)),te==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(te,this.frameMult)),te==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(te,this.firstFrame,this.totalFrames)),te==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(te,this))},AnimationItem.prototype.triggerRenderFrameError=function(te){var ie=new BMRenderFrameErrorEvent(te,this.currentFrame);this.triggerEvent("error",ie),this.onError&&this.onError.call(this,ie)},AnimationItem.prototype.triggerConfigError=function(te){var ie=new BMConfigErrorEvent(te,this.currentFrame);this.triggerEvent("error",ie),this.onError&&this.onError.call(this,ie)};var animationManager=function(){var te={},ie=[],oe=0,le=0,ce=0,ue=!0,fe=!1;function he(Be){for(var xe=0,nt=Be.target;xe<le;)ie[xe].animation===nt&&(ie.splice(xe,1),xe-=1,le-=1,nt.isPaused||ke()),xe+=1}function ve(Be,xe){if(!Be)return null;for(var nt=0;nt<le;){if(ie[nt].elem===Be&&ie[nt].elem!==null)return ie[nt].animation;nt+=1}var rt=new AnimationItem;return Me(rt,Be),rt.setData(Be,xe),rt}function Se(){ce+=1,Oe()}function ke(){ce-=1}function Me(Be,xe){Be.addEventListener("destroy",he),Be.addEventListener("_active",Se),Be.addEventListener("_idle",ke),ie.push({elem:xe,animation:Be}),le+=1}function Pe(Be){var xe,nt=Be-oe;for(xe=0;xe<le;xe+=1)ie[xe].animation.advanceTime(nt);oe=Be,ce&&!fe?window.requestAnimationFrame(Pe):ue=!0}function Re(Be){oe=Be,window.requestAnimationFrame(Pe)}function Oe(){!fe&&ce&&ue&&(window.requestAnimationFrame(Re),ue=!1)}return te.registerAnimation=ve,te.loadAnimation=function(Be){var xe=new AnimationItem;return Me(xe,null),xe.setParams(Be),xe},te.setSpeed=function(Be,xe){var nt;for(nt=0;nt<le;nt+=1)ie[nt].animation.setSpeed(Be,xe)},te.setDirection=function(Be,xe){var nt;for(nt=0;nt<le;nt+=1)ie[nt].animation.setDirection(Be,xe)},te.play=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.play(Be)},te.pause=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.pause(Be)},te.stop=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.stop(Be)},te.togglePause=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.togglePause(Be)},te.searchAnimations=function(Be,xe,nt){var rt,ot=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ht=ot.length;for(rt=0;rt<ht;rt+=1)nt&&ot[rt].setAttribute("data-bm-type",nt),ve(ot[rt],Be);if(xe&&ht===0){nt||(nt="svg");var dt=document.getElementsByTagName("body")[0];dt.innerText="";var Rt=createTag("div");Rt.style.width="100%",Rt.style.height="100%",Rt.setAttribute("data-bm-type",nt),dt.appendChild(Rt),ve(Rt,Be)}},te.resize=function(){var Be;for(Be=0;Be<le;Be+=1)ie[Be].animation.resize()},te.goToAndStop=function(Be,xe,nt){var rt;for(rt=0;rt<le;rt+=1)ie[rt].animation.goToAndStop(Be,xe,nt)},te.destroy=function(Be){var xe;for(xe=le-1;xe>=0;xe-=1)ie[xe].animation.destroy(Be)},te.freeze=function(){fe=!0},te.unfreeze=function(){fe=!1,Oe()},te.setVolume=function(Be,xe){var nt;for(nt=0;nt<le;nt+=1)ie[nt].animation.setVolume(Be,xe)},te.mute=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.mute(Be)},te.unmute=function(Be){var xe;for(xe=0;xe<le;xe+=1)ie[xe].animation.unmute(Be)},te.getRegisteredAnimations=function(){var Be,xe=ie.length,nt=[];for(Be=0;Be<xe;Be+=1)nt.push(ie[Be].animation);return nt},te}(),BezierFactory=function(){var te={getBezierEasing:function(Se,ke,Me,Pe,Re){var Oe=Re||("bez_"+Se+"_"+ke+"_"+Me+"_"+Pe).replace(/\./g,"p");if(ie[Oe])return ie[Oe];var Be=new ve([Se,ke,Me,Pe]);return ie[Oe]=Be,Be}},ie={},oe=typeof Float32Array=="function";function le(Se,ke){return 1-3*ke+3*Se}function ce(Se,ke){return 3*ke-6*Se}function ue(Se){return 3*Se}function fe(Se,ke,Me){return((le(ke,Me)*Se+ce(ke,Me))*Se+ue(ke))*Se}function he(Se,ke,Me){return 3*le(ke,Me)*Se*Se+2*ce(ke,Me)*Se+ue(ke)}function ve(Se){this._p=Se,this._mSampleValues=oe?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return ve.prototype={get:function(Se){var ke=this._p[0],Me=this._p[1],Pe=this._p[2],Re=this._p[3];return this._precomputed||this._precompute(),ke===Me&&Pe===Re?Se:Se===0?0:Se===1?1:fe(this._getTForX(Se),Me,Re)},_precompute:function(){var Se=this._p[0],ke=this._p[1],Me=this._p[2],Pe=this._p[3];this._precomputed=!0,Se===ke&&Me===Pe||this._calcSampleValues()},_calcSampleValues:function(){for(var Se=this._p[0],ke=this._p[2],Me=0;Me<11;++Me)this._mSampleValues[Me]=fe(.1*Me,Se,ke)},_getTForX:function(Se){for(var ke=this._p[0],Me=this._p[2],Pe=this._mSampleValues,Re=0,Oe=1;Oe!==10&&Pe[Oe]<=Se;++Oe)Re+=.1;var Be=Re+.1*((Se-Pe[--Oe])/(Pe[Oe+1]-Pe[Oe])),xe=he(Be,ke,Me);return xe>=.001?function(nt,rt,ot,ht){for(var dt=0;dt<4;++dt){var Rt=he(rt,ot,ht);if(Rt===0)return rt;rt-=(fe(rt,ot,ht)-nt)/Rt}return rt}(Se,Be,ke,Me):xe===0?Be:function(nt,rt,ot,ht,dt){var Rt,Ct,Lt=0;do(Rt=fe(Ct=rt+(ot-rt)/2,ht,dt)-nt)>0?ot=Ct:rt=Ct;while(Math.abs(Rt)>1e-7&&++Lt<10);return Ct}(Se,Re,Re+.1,ke,Me)}},te}(),pooling={double:function(te){return te.concat(createSizedArray(te.length))}},poolFactory=function(te,ie,oe){var le=0,ce=te,ue=createSizedArray(ce);return{newElement:function(){return le?ue[le-=1]:ie()},release:function(fe){le===ce&&(ue=pooling.double(ue),ce*=2),oe&&oe(fe),ue[le]=fe,le+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(te){var ie,oe=te.lengths.length;for(ie=0;ie<oe;ie+=1)bezierLengthPool.release(te.lengths[ie]);te.lengths.length=0});function bezFunction(){var te=Math;function ie(Se,ke,Me,Pe,Re,Oe){var Be=Se*Pe+ke*Re+Me*Oe-Re*Pe-Oe*Se-Me*ke;return Be>-.001&&Be<.001}var oe=function(Se,ke,Me,Pe){var Re,Oe,Be,xe,nt,rt,ot=getDefaultCurveSegments(),ht=0,dt=[],Rt=[],Ct=bezierLengthPool.newElement();for(Be=Me.length,Re=0;Re<ot;Re+=1){for(nt=Re/(ot-1),rt=0,Oe=0;Oe<Be;Oe+=1)xe=bmPow(1-nt,3)*Se[Oe]+3*bmPow(1-nt,2)*nt*Me[Oe]+3*(1-nt)*bmPow(nt,2)*Pe[Oe]+bmPow(nt,3)*ke[Oe],dt[Oe]=xe,Rt[Oe]!==null&&(rt+=bmPow(dt[Oe]-Rt[Oe],2)),Rt[Oe]=dt[Oe];rt&&(ht+=rt=bmSqrt(rt)),Ct.percents[Re]=nt,Ct.lengths[Re]=ht}return Ct.addedLength=ht,Ct};function le(Se){this.segmentLength=0,this.points=new Array(Se)}function ce(Se,ke){this.partialLength=Se,this.point=ke}var ue,fe=(ue={},function(Se,ke,Me,Pe){var Re=(Se[0]+"_"+Se[1]+"_"+ke[0]+"_"+ke[1]+"_"+Me[0]+"_"+Me[1]+"_"+Pe[0]+"_"+Pe[1]).replace(/\./g,"p");if(!ue[Re]){var Oe,Be,xe,nt,rt,ot,ht,dt=getDefaultCurveSegments(),Rt=0,Ct=null;Se.length===2&&(Se[0]!==ke[0]||Se[1]!==ke[1])&&ie(Se[0],Se[1],ke[0],ke[1],Se[0]+Me[0],Se[1]+Me[1])&&ie(Se[0],Se[1],ke[0],ke[1],ke[0]+Pe[0],ke[1]+Pe[1])&&(dt=2);var Lt=new le(dt);for(xe=Me.length,Oe=0;Oe<dt;Oe+=1){for(ht=createSizedArray(xe),rt=Oe/(dt-1),ot=0,Be=0;Be<xe;Be+=1)nt=bmPow(1-rt,3)*Se[Be]+3*bmPow(1-rt,2)*rt*(Se[Be]+Me[Be])+3*(1-rt)*bmPow(rt,2)*(ke[Be]+Pe[Be])+bmPow(rt,3)*ke[Be],ht[Be]=nt,Ct!==null&&(ot+=bmPow(ht[Be]-Ct[Be],2));Rt+=ot=bmSqrt(ot),Lt.points[Oe]=new ce(ot,ht),Ct=ht}Lt.segmentLength=Rt,ue[Re]=Lt}return ue[Re]});function he(Se,ke){var Me=ke.percents,Pe=ke.lengths,Re=Me.length,Oe=bmFloor((Re-1)*Se),Be=Se*ke.addedLength,xe=0;if(Oe===Re-1||Oe===0||Be===Pe[Oe])return Me[Oe];for(var nt=Pe[Oe]>Be?-1:1,rt=!0;rt;)if(Pe[Oe]<=Be&&Pe[Oe+1]>Be?(xe=(Be-Pe[Oe])/(Pe[Oe+1]-Pe[Oe]),rt=!1):Oe+=nt,Oe<0||Oe>=Re-1){if(Oe===Re-1)return Me[Oe];rt=!1}return Me[Oe]+(Me[Oe+1]-Me[Oe])*xe}var ve=createTypedArray("float32",8);return{getSegmentsLength:function(Se){var ke,Me=segmentsLengthPool.newElement(),Pe=Se.c,Re=Se.v,Oe=Se.o,Be=Se.i,xe=Se._length,nt=Me.lengths,rt=0;for(ke=0;ke<xe-1;ke+=1)nt[ke]=oe(Re[ke],Re[ke+1],Oe[ke],Be[ke+1]),rt+=nt[ke].addedLength;return Pe&&xe&&(nt[ke]=oe(Re[ke],Re[0],Oe[ke],Be[0]),rt+=nt[ke].addedLength),Me.totalLength=rt,Me},getNewSegment:function(Se,ke,Me,Pe,Re,Oe,Be){Re<0?Re=0:Re>1&&(Re=1);var xe,nt=he(Re,Be),rt=he(Oe=Oe>1?1:Oe,Be),ot=Se.length,ht=1-nt,dt=1-rt,Rt=ht*ht*ht,Ct=nt*ht*ht*3,Lt=nt*nt*ht*3,Qn=nt*nt*nt,Mn=ht*ht*dt,Gn=nt*ht*dt+ht*nt*dt+ht*ht*rt,Sa=nt*nt*dt+ht*nt*rt+nt*ht*rt,Ta=nt*nt*rt,Kn=ht*dt*dt,ka=nt*dt*dt+ht*rt*dt+ht*dt*rt,Ra=nt*rt*dt+ht*rt*rt+nt*dt*rt,Jn=nt*rt*rt,zn=dt*dt*dt,_a=rt*dt*dt+dt*rt*dt+dt*dt*rt,Ia=rt*rt*dt+dt*rt*rt+rt*dt*rt,wa=rt*rt*rt;for(xe=0;xe<ot;xe+=1)ve[4*xe]=te.round(1e3*(Rt*Se[xe]+Ct*Me[xe]+Lt*Pe[xe]+Qn*ke[xe]))/1e3,ve[4*xe+1]=te.round(1e3*(Mn*Se[xe]+Gn*Me[xe]+Sa*Pe[xe]+Ta*ke[xe]))/1e3,ve[4*xe+2]=te.round(1e3*(Kn*Se[xe]+ka*Me[xe]+Ra*Pe[xe]+Jn*ke[xe]))/1e3,ve[4*xe+3]=te.round(1e3*(zn*Se[xe]+_a*Me[xe]+Ia*Pe[xe]+wa*ke[xe]))/1e3;return ve},getPointInSegment:function(Se,ke,Me,Pe,Re,Oe){var Be=he(Re,Oe),xe=1-Be;return[te.round(1e3*(xe*xe*xe*Se[0]+(Be*xe*xe+xe*Be*xe+xe*xe*Be)*Me[0]+(Be*Be*xe+xe*Be*Be+Be*xe*Be)*Pe[0]+Be*Be*Be*ke[0]))/1e3,te.round(1e3*(xe*xe*xe*Se[1]+(Be*xe*xe+xe*Be*xe+xe*xe*Be)*Me[1]+(Be*Be*xe+xe*Be*Be+Be*xe*Be)*Pe[1]+Be*Be*Be*ke[1]))/1e3]},buildBezierData:fe,pointOnLine2D:ie,pointOnLine3D:function(Se,ke,Me,Pe,Re,Oe,Be,xe,nt){if(Me===0&&Oe===0&&nt===0)return ie(Se,ke,Pe,Re,Be,xe);var rt,ot=te.sqrt(te.pow(Pe-Se,2)+te.pow(Re-ke,2)+te.pow(Oe-Me,2)),ht=te.sqrt(te.pow(Be-Se,2)+te.pow(xe-ke,2)+te.pow(nt-Me,2)),dt=te.sqrt(te.pow(Be-Pe,2)+te.pow(xe-Re,2)+te.pow(nt-Oe,2));return(rt=ot>ht?ot>dt?ot-ht-dt:dt-ht-ot:dt>ht?dt-ht-ot:ht-ot-dt)>-1e-4&&rt<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var te=initialDefaultFrame,ie=Math.abs;function oe(Pe,Re){var Oe,Be=this.offsetTime;this.propType==="multidimensional"&&(Oe=createTypedArray("float32",this.pv.length));for(var xe,nt,rt,ot,ht,dt,Rt,Ct,Lt,Qn=Re.lastIndex,Mn=Qn,Gn=this.keyframes.length-1,Sa=!0;Sa;){if(xe=this.keyframes[Mn],nt=this.keyframes[Mn+1],Mn===Gn-1&&Pe>=nt.t-Be){xe.h&&(xe=nt),Qn=0;break}if(nt.t-Be>Pe){Qn=Mn;break}Mn<Gn-1?Mn+=1:(Qn=0,Sa=!1)}rt=this.keyframesMetadata[Mn]||{};var Ta,Kn=nt.t-Be,ka=xe.t-Be;if(xe.to){rt.bezierData||(rt.bezierData=bez.buildBezierData(xe.s,nt.s||xe.e,xe.to,xe.ti));var Ra=rt.bezierData;if(Pe>=Kn||Pe<ka){var Jn=Pe>=Kn?Ra.points.length-1:0;for(ht=Ra.points[Jn].point.length,ot=0;ot<ht;ot+=1)Oe[ot]=Ra.points[Jn].point[ot]}else{rt.__fnct?Lt=rt.__fnct:(Lt=BezierFactory.getBezierEasing(xe.o.x,xe.o.y,xe.i.x,xe.i.y,xe.n).get,rt.__fnct=Lt),dt=Lt((Pe-ka)/(Kn-ka));var zn,_a=Ra.segmentLength*dt,Ia=Re.lastFrame<Pe&&Re._lastKeyframeIndex===Mn?Re._lastAddedLength:0;for(Ct=Re.lastFrame<Pe&&Re._lastKeyframeIndex===Mn?Re._lastPoint:0,Sa=!0,Rt=Ra.points.length;Sa;){if(Ia+=Ra.points[Ct].partialLength,_a===0||dt===0||Ct===Ra.points.length-1){for(ht=Ra.points[Ct].point.length,ot=0;ot<ht;ot+=1)Oe[ot]=Ra.points[Ct].point[ot];break}if(_a>=Ia&&_a<Ia+Ra.points[Ct+1].partialLength){for(zn=(_a-Ia)/Ra.points[Ct+1].partialLength,ht=Ra.points[Ct].point.length,ot=0;ot<ht;ot+=1)Oe[ot]=Ra.points[Ct].point[ot]+(Ra.points[Ct+1].point[ot]-Ra.points[Ct].point[ot])*zn;break}Ct<Rt-1?Ct+=1:Sa=!1}Re._lastPoint=Ct,Re._lastAddedLength=Ia-Ra.points[Ct].partialLength,Re._lastKeyframeIndex=Mn}}else{var wa,Vn,Wn,ba,Aa;if(Gn=xe.s.length,Ta=nt.s||xe.e,this.sh&&xe.h!==1)Pe>=Kn?(Oe[0]=Ta[0],Oe[1]=Ta[1],Oe[2]=Ta[2]):Pe<=ka?(Oe[0]=xe.s[0],Oe[1]=xe.s[1],Oe[2]=xe.s[2]):function(Da,xa){var Ea=xa[0],Ma=xa[1],La=xa[2],Ua=xa[3],Ga=Math.atan2(2*Ma*Ua-2*Ea*La,1-2*Ma*Ma-2*La*La),Ca=Math.asin(2*Ea*Ma+2*La*Ua),$a=Math.atan2(2*Ea*Ua-2*Ma*La,1-2*Ea*Ea-2*La*La);Da[0]=Ga/degToRads,Da[1]=Ca/degToRads,Da[2]=$a/degToRads}(Oe,function(Da,xa,Ea){var Ma,La,Ua,Ga,Ca,$a=[],Ka=Da[0],Za=Da[1],Qa=Da[2],Wa=Da[3],va=xa[0],qa=xa[1],Ha=xa[2],ja=xa[3];return(La=Ka*va+Za*qa+Qa*Ha+Wa*ja)<0&&(La=-La,va=-va,qa=-qa,Ha=-Ha,ja=-ja),1-La>1e-6?(Ma=Math.acos(La),Ua=Math.sin(Ma),Ga=Math.sin((1-Ea)*Ma)/Ua,Ca=Math.sin(Ea*Ma)/Ua):(Ga=1-Ea,Ca=Ea),$a[0]=Ga*Ka+Ca*va,$a[1]=Ga*Za+Ca*qa,$a[2]=Ga*Qa+Ca*Ha,$a[3]=Ga*Wa+Ca*ja,$a}(le(xe.s),le(Ta),(Pe-ka)/(Kn-ka)));else for(Mn=0;Mn<Gn;Mn+=1)xe.h!==1&&(Pe>=Kn?dt=1:Pe<ka?dt=0:(xe.o.x.constructor===Array?(rt.__fnct||(rt.__fnct=[]),rt.__fnct[Mn]?Lt=rt.__fnct[Mn]:(wa=xe.o.x[Mn]===void 0?xe.o.x[0]:xe.o.x[Mn],Vn=xe.o.y[Mn]===void 0?xe.o.y[0]:xe.o.y[Mn],Wn=xe.i.x[Mn]===void 0?xe.i.x[0]:xe.i.x[Mn],ba=xe.i.y[Mn]===void 0?xe.i.y[0]:xe.i.y[Mn],Lt=BezierFactory.getBezierEasing(wa,Vn,Wn,ba).get,rt.__fnct[Mn]=Lt)):rt.__fnct?Lt=rt.__fnct:(wa=xe.o.x,Vn=xe.o.y,Wn=xe.i.x,ba=xe.i.y,Lt=BezierFactory.getBezierEasing(wa,Vn,Wn,ba).get,xe.keyframeMetadata=Lt),dt=Lt((Pe-ka)/(Kn-ka)))),Ta=nt.s||xe.e,Aa=xe.h===1?xe.s[Mn]:xe.s[Mn]+(Ta[Mn]-xe.s[Mn])*dt,this.propType==="multidimensional"?Oe[Mn]=Aa:Oe=Aa}return Re.lastIndex=Qn,Oe}function le(Pe){var Re=Pe[0]*degToRads,Oe=Pe[1]*degToRads,Be=Pe[2]*degToRads,xe=Math.cos(Re/2),nt=Math.cos(Oe/2),rt=Math.cos(Be/2),ot=Math.sin(Re/2),ht=Math.sin(Oe/2),dt=Math.sin(Be/2);return[ot*ht*rt+xe*nt*dt,ot*nt*rt+xe*ht*dt,xe*ht*rt-ot*nt*dt,xe*nt*rt-ot*ht*dt]}function ce(){var Pe=this.comp.renderedFrame-this.offsetTime,Re=this.keyframes[0].t-this.offsetTime,Oe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(Pe===this._caching.lastFrame||this._caching.lastFrame!==te&&(this._caching.lastFrame>=Oe&&Pe>=Oe||this._caching.lastFrame<Re&&Pe<Re))){this._caching.lastFrame>=Pe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var Be=this.interpolateValue(Pe,this._caching);this.pv=Be}return this._caching.lastFrame=Pe,this.pv}function ue(Pe){var Re;if(this.propType==="unidimensional")Re=Pe*this.mult,ie(this.v-Re)>1e-5&&(this.v=Re,this._mdf=!0);else for(var Oe=0,Be=this.v.length;Oe<Be;)Re=Pe[Oe]*this.mult,ie(this.v[Oe]-Re)>1e-5&&(this.v[Oe]=Re,this._mdf=!0),Oe+=1}function fe(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var Pe;this.lock=!0,this._mdf=this._isFirstFrame;var Re=this.effectsSequence.length,Oe=this.kf?this.pv:this.data.k;for(Pe=0;Pe<Re;Pe+=1)Oe=this.effectsSequence[Pe](Oe);this.setVValue(Oe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function he(Pe){this.effectsSequence.push(Pe),this.container.addDynamicProperty(this)}function ve(Pe,Re,Oe,Be){this.propType="unidimensional",this.mult=Oe||1,this.data=Re,this.v=Oe?Re.k*Oe:Re.k,this.pv=Re.k,this._mdf=!1,this.elem=Pe,this.container=Be,this.comp=Pe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=fe,this.setVValue=ue,this.addEffect=he}function Se(Pe,Re,Oe,Be){var xe;this.propType="multidimensional",this.mult=Oe||1,this.data=Re,this._mdf=!1,this.elem=Pe,this.container=Be,this.comp=Pe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var nt=Re.k.length;for(this.v=createTypedArray("float32",nt),this.pv=createTypedArray("float32",nt),this.vel=createTypedArray("float32",nt),xe=0;xe<nt;xe+=1)this.v[xe]=Re.k[xe]*this.mult,this.pv[xe]=Re.k[xe];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=fe,this.setVValue=ue,this.addEffect=he}function ke(Pe,Re,Oe,Be){this.propType="unidimensional",this.keyframes=Re.k,this.keyframesMetadata=[],this.offsetTime=Pe.data.st,this.frameId=-1,this._caching={lastFrame:te,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=Re,this.mult=Oe||1,this.elem=Pe,this.container=Be,this.comp=Pe.comp,this.v=te,this.pv=te,this._isFirstFrame=!0,this.getValue=fe,this.setVValue=ue,this.interpolateValue=oe,this.effectsSequence=[ce.bind(this)],this.addEffect=he}function Me(Pe,Re,Oe,Be){var xe;this.propType="multidimensional";var nt,rt,ot,ht,dt=Re.k.length;for(xe=0;xe<dt-1;xe+=1)Re.k[xe].to&&Re.k[xe].s&&Re.k[xe+1]&&Re.k[xe+1].s&&(nt=Re.k[xe].s,rt=Re.k[xe+1].s,ot=Re.k[xe].to,ht=Re.k[xe].ti,(nt.length===2&&(nt[0]!==rt[0]||nt[1]!==rt[1])&&bez.pointOnLine2D(nt[0],nt[1],rt[0],rt[1],nt[0]+ot[0],nt[1]+ot[1])&&bez.pointOnLine2D(nt[0],nt[1],rt[0],rt[1],rt[0]+ht[0],rt[1]+ht[1])||nt.length===3&&(nt[0]!==rt[0]||nt[1]!==rt[1]||nt[2]!==rt[2])&&bez.pointOnLine3D(nt[0],nt[1],nt[2],rt[0],rt[1],rt[2],nt[0]+ot[0],nt[1]+ot[1],nt[2]+ot[2])&&bez.pointOnLine3D(nt[0],nt[1],nt[2],rt[0],rt[1],rt[2],rt[0]+ht[0],rt[1]+ht[1],rt[2]+ht[2]))&&(Re.k[xe].to=null,Re.k[xe].ti=null),nt[0]===rt[0]&&nt[1]===rt[1]&&ot[0]===0&&ot[1]===0&&ht[0]===0&&ht[1]===0&&(nt.length===2||nt[2]===rt[2]&&ot[2]===0&&ht[2]===0)&&(Re.k[xe].to=null,Re.k[xe].ti=null));this.effectsSequence=[ce.bind(this)],this.data=Re,this.keyframes=Re.k,this.keyframesMetadata=[],this.offsetTime=Pe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Oe||1,this.elem=Pe,this.container=Be,this.comp=Pe.comp,this.getValue=fe,this.setVValue=ue,this.interpolateValue=oe,this.frameId=-1;var Rt=Re.k[0].s.length;for(this.v=createTypedArray("float32",Rt),this.pv=createTypedArray("float32",Rt),xe=0;xe<Rt;xe+=1)this.v[xe]=te,this.pv[xe]=te;this._caching={lastFrame:te,lastIndex:0,value:createTypedArray("float32",Rt)},this.addEffect=he}return{getProp:function(Pe,Re,Oe,Be,xe){var nt;if(Re.k.length)if(typeof Re.k[0]=="number")nt=new Se(Pe,Re,Be,xe);else switch(Oe){case 0:nt=new ke(Pe,Re,Be,xe);break;case 1:nt=new Me(Pe,Re,Be,xe)}else nt=new ve(Pe,Re,Be,xe);return nt.effectsSequence.length&&xe.addDynamicProperty(nt),nt}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(te){this.dynamicProperties.indexOf(te)===-1&&(this.dynamicProperties.push(te),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var te;this._mdf=!1;var ie=this.dynamicProperties.length;for(te=0;te<ie;te+=1)this.dynamicProperties[te].getValue(),this.dynamicProperties[te]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(te){this.container=te,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(te,ie){this.c=te,this.setLength(ie);for(var oe=0;oe<ie;)this.v[oe]=pointPool.newElement(),this.o[oe]=pointPool.newElement(),this.i[oe]=pointPool.newElement(),oe+=1},ShapePath.prototype.setLength=function(te){for(;this._maxLength<te;)this.doubleArrayLength();this._length=te},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(te,ie,oe,le,ce){var ue;switch(this._length=Math.max(this._length,le+1),this._length>=this._maxLength&&this.doubleArrayLength(),oe){case"v":ue=this.v;break;case"i":ue=this.i;break;case"o":ue=this.o;break;default:ue=[]}(!ue[le]||ue[le]&&!ce)&&(ue[le]=pointPool.newElement()),ue[le][0]=te,ue[le][1]=ie},ShapePath.prototype.setTripleAt=function(te,ie,oe,le,ce,ue,fe,he){this.setXYAt(te,ie,"v",fe,he),this.setXYAt(oe,le,"o",fe,he),this.setXYAt(ce,ue,"i",fe,he)},ShapePath.prototype.reverse=function(){var te=new ShapePath;te.setPathData(this.c,this._length);var ie=this.v,oe=this.o,le=this.i,ce=0;this.c&&(te.setTripleAt(ie[0][0],ie[0][1],le[0][0],le[0][1],oe[0][0],oe[0][1],0,!1),ce=1);var ue,fe=this._length-1,he=this._length;for(ue=ce;ue<he;ue+=1)te.setTripleAt(ie[fe][0],ie[fe][1],le[fe][0],le[fe][1],oe[fe][0],oe[fe][1],ue,!1),fe-=1;return te},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(te){var ie,oe=te._length;for(ie=0;ie<oe;ie+=1)pointPool.release(te.v[ie]),pointPool.release(te.i[ie]),pointPool.release(te.o[ie]),te.v[ie]=null,te.i[ie]=null,te.o[ie]=null;te._length=0,te.c=!1}),factory.clone=function(te){var ie,oe=factory.newElement(),le=te._length===void 0?te.v.length:te._length;for(oe.setLength(le),oe.c=te.c,ie=0;ie<le;ie+=1)oe.setTripleAt(te.v[ie][0],te.v[ie][1],te.o[ie][0],te.o[ie][1],te.i[ie][0],te.i[ie][1],ie);return oe},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(te){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=te,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var te;for(te=0;te<this._length;te+=1)shapePool.release(this.shapes[te]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(te){var ie,oe=te._length;for(ie=0;ie<oe;ie+=1)shapePool.release(te.shapes[ie]);te._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=te,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function te(Pe,Re,Oe){var Be,xe,nt,rt,ot,ht,dt,Rt,Ct,Lt=Oe.lastIndex,Qn=this.keyframes;if(Pe<Qn[0].t-this.offsetTime)Be=Qn[0].s[0],nt=!0,Lt=0;else if(Pe>=Qn[Qn.length-1].t-this.offsetTime)Be=Qn[Qn.length-1].s?Qn[Qn.length-1].s[0]:Qn[Qn.length-2].e[0],nt=!0;else{for(var Mn,Gn,Sa,Ta=Lt,Kn=Qn.length-1,ka=!0;ka&&(Mn=Qn[Ta],!((Gn=Qn[Ta+1]).t-this.offsetTime>Pe));)Ta<Kn-1?Ta+=1:ka=!1;if(Sa=this.keyframesMetadata[Ta]||{},Lt=Ta,!(nt=Mn.h===1)){if(Pe>=Gn.t-this.offsetTime)Rt=1;else if(Pe<Mn.t-this.offsetTime)Rt=0;else{var Ra;Sa.__fnct?Ra=Sa.__fnct:(Ra=BezierFactory.getBezierEasing(Mn.o.x,Mn.o.y,Mn.i.x,Mn.i.y).get,Sa.__fnct=Ra),Rt=Ra((Pe-(Mn.t-this.offsetTime))/(Gn.t-this.offsetTime-(Mn.t-this.offsetTime)))}xe=Gn.s?Gn.s[0]:Mn.e[0]}Be=Mn.s[0]}for(ht=Re._length,dt=Be.i[0].length,Oe.lastIndex=Lt,rt=0;rt<ht;rt+=1)for(ot=0;ot<dt;ot+=1)Ct=nt?Be.i[rt][ot]:Be.i[rt][ot]+(xe.i[rt][ot]-Be.i[rt][ot])*Rt,Re.i[rt][ot]=Ct,Ct=nt?Be.o[rt][ot]:Be.o[rt][ot]+(xe.o[rt][ot]-Be.o[rt][ot])*Rt,Re.o[rt][ot]=Ct,Ct=nt?Be.v[rt][ot]:Be.v[rt][ot]+(xe.v[rt][ot]-Be.v[rt][ot])*Rt,Re.v[rt][ot]=Ct}function ie(){var Pe=this.comp.renderedFrame-this.offsetTime,Re=this.keyframes[0].t-this.offsetTime,Oe=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Be=this._caching.lastFrame;return Be!==-999999&&(Be<Re&&Pe<Re||Be>Oe&&Pe>Oe)||(this._caching.lastIndex=Be<Pe?this._caching.lastIndex:0,this.interpolateShape(Pe,this.pv,this._caching)),this._caching.lastFrame=Pe,this.pv}function oe(){this.paths=this.localShapeCollection}function le(Pe){(function(Re,Oe){if(Re._length!==Oe._length||Re.c!==Oe.c)return!1;var Be,xe=Re._length;for(Be=0;Be<xe;Be+=1)if(Re.v[Be][0]!==Oe.v[Be][0]||Re.v[Be][1]!==Oe.v[Be][1]||Re.o[Be][0]!==Oe.o[Be][0]||Re.o[Be][1]!==Oe.o[Be][1]||Re.i[Be][0]!==Oe.i[Be][0]||Re.i[Be][1]!==Oe.i[Be][1])return!1;return!0})(this.v,Pe)||(this.v=shapePool.clone(Pe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function ce(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var Pe,Re;this.lock=!0,this._mdf=!1,Pe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var Oe=this.effectsSequence.length;for(Re=0;Re<Oe;Re+=1)Pe=this.effectsSequence[Re](Pe);this.setVValue(Pe),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function ue(Pe,Re,Oe){this.propType="shape",this.comp=Pe.comp,this.container=Pe,this.elem=Pe,this.data=Re,this.k=!1,this.kf=!1,this._mdf=!1;var Be=Oe===3?Re.pt.k:Re.ks.k;this.v=shapePool.clone(Be),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=oe,this.effectsSequence=[]}function fe(Pe){this.effectsSequence.push(Pe),this.container.addDynamicProperty(this)}function he(Pe,Re,Oe){this.propType="shape",this.comp=Pe.comp,this.elem=Pe,this.container=Pe,this.offsetTime=Pe.data.st,this.keyframes=Oe===3?Re.pt.k:Re.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Be=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Be),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=oe,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[ie.bind(this)]}ue.prototype.interpolateShape=te,ue.prototype.getValue=ce,ue.prototype.setVValue=le,ue.prototype.addEffect=fe,he.prototype.getValue=ce,he.prototype.interpolateShape=te,he.prototype.setVValue=le,he.prototype.addEffect=fe;var ve=function(){var Pe=roundCorner;function Re(Oe,Be){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Be.d,this.elem=Oe,this.comp=Oe.comp,this.frameId=-1,this.initDynamicPropertyContainer(Oe),this.p=PropertyFactory.getProp(Oe,Be.p,1,0,this),this.s=PropertyFactory.getProp(Oe,Be.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Re.prototype={reset:oe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Oe=this.p.v[0],Be=this.p.v[1],xe=this.s.v[0]/2,nt=this.s.v[1]/2,rt=this.d!==3,ot=this.v;ot.v[0][0]=Oe,ot.v[0][1]=Be-nt,ot.v[1][0]=rt?Oe+xe:Oe-xe,ot.v[1][1]=Be,ot.v[2][0]=Oe,ot.v[2][1]=Be+nt,ot.v[3][0]=rt?Oe-xe:Oe+xe,ot.v[3][1]=Be,ot.i[0][0]=rt?Oe-xe*Pe:Oe+xe*Pe,ot.i[0][1]=Be-nt,ot.i[1][0]=rt?Oe+xe:Oe-xe,ot.i[1][1]=Be-nt*Pe,ot.i[2][0]=rt?Oe+xe*Pe:Oe-xe*Pe,ot.i[2][1]=Be+nt,ot.i[3][0]=rt?Oe-xe:Oe+xe,ot.i[3][1]=Be+nt*Pe,ot.o[0][0]=rt?Oe+xe*Pe:Oe-xe*Pe,ot.o[0][1]=Be-nt,ot.o[1][0]=rt?Oe+xe:Oe-xe,ot.o[1][1]=Be+nt*Pe,ot.o[2][0]=rt?Oe-xe*Pe:Oe+xe*Pe,ot.o[2][1]=Be+nt,ot.o[3][0]=rt?Oe-xe:Oe+xe,ot.o[3][1]=Be-nt*Pe}},extendPrototype([DynamicPropertyContainer],Re),Re}(),Se=function(){function Pe(Re,Oe){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Re,this.comp=Re.comp,this.data=Oe,this.frameId=-1,this.d=Oe.d,this.initDynamicPropertyContainer(Re),Oe.sy===1?(this.ir=PropertyFactory.getProp(Re,Oe.ir,0,0,this),this.is=PropertyFactory.getProp(Re,Oe.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Re,Oe.pt,0,0,this),this.p=PropertyFactory.getProp(Re,Oe.p,1,0,this),this.r=PropertyFactory.getProp(Re,Oe.r,0,degToRads,this),this.or=PropertyFactory.getProp(Re,Oe.or,0,0,this),this.os=PropertyFactory.getProp(Re,Oe.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Pe.prototype={reset:oe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Re,Oe,Be,xe,nt=2*Math.floor(this.pt.v),rt=2*Math.PI/nt,ot=!0,ht=this.or.v,dt=this.ir.v,Rt=this.os.v,Ct=this.is.v,Lt=2*Math.PI*ht/(2*nt),Qn=2*Math.PI*dt/(2*nt),Mn=-Math.PI/2;Mn+=this.r.v;var Gn=this.data.d===3?-1:1;for(this.v._length=0,Re=0;Re<nt;Re+=1){Be=ot?Rt:Ct,xe=ot?Lt:Qn;var Sa=(Oe=ot?ht:dt)*Math.cos(Mn),Ta=Oe*Math.sin(Mn),Kn=Sa===0&&Ta===0?0:Ta/Math.sqrt(Sa*Sa+Ta*Ta),ka=Sa===0&&Ta===0?0:-Sa/Math.sqrt(Sa*Sa+Ta*Ta);Sa+=+this.p.v[0],Ta+=+this.p.v[1],this.v.setTripleAt(Sa,Ta,Sa-Kn*xe*Be*Gn,Ta-ka*xe*Be*Gn,Sa+Kn*xe*Be*Gn,Ta+ka*xe*Be*Gn,Re,!0),ot=!ot,Mn+=rt*Gn}},convertPolygonToPath:function(){var Re,Oe=Math.floor(this.pt.v),Be=2*Math.PI/Oe,xe=this.or.v,nt=this.os.v,rt=2*Math.PI*xe/(4*Oe),ot=.5*-Math.PI,ht=this.data.d===3?-1:1;for(ot+=this.r.v,this.v._length=0,Re=0;Re<Oe;Re+=1){var dt=xe*Math.cos(ot),Rt=xe*Math.sin(ot),Ct=dt===0&&Rt===0?0:Rt/Math.sqrt(dt*dt+Rt*Rt),Lt=dt===0&&Rt===0?0:-dt/Math.sqrt(dt*dt+Rt*Rt);dt+=+this.p.v[0],Rt+=+this.p.v[1],this.v.setTripleAt(dt,Rt,dt-Ct*rt*nt*ht,Rt-Lt*rt*nt*ht,dt+Ct*rt*nt*ht,Rt+Lt*rt*nt*ht,Re,!0),ot+=Be*ht}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Pe),Pe}(),ke=function(){function Pe(Re,Oe){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Re,this.comp=Re.comp,this.frameId=-1,this.d=Oe.d,this.initDynamicPropertyContainer(Re),this.p=PropertyFactory.getProp(Re,Oe.p,1,0,this),this.s=PropertyFactory.getProp(Re,Oe.s,1,0,this),this.r=PropertyFactory.getProp(Re,Oe.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Pe.prototype={convertRectToPath:function(){var Re=this.p.v[0],Oe=this.p.v[1],Be=this.s.v[0]/2,xe=this.s.v[1]/2,nt=bmMin(Be,xe,this.r.v),rt=nt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Re+Be,Oe-xe+nt,Re+Be,Oe-xe+nt,Re+Be,Oe-xe+rt,0,!0),this.v.setTripleAt(Re+Be,Oe+xe-nt,Re+Be,Oe+xe-rt,Re+Be,Oe+xe-nt,1,!0),nt!==0?(this.v.setTripleAt(Re+Be-nt,Oe+xe,Re+Be-nt,Oe+xe,Re+Be-rt,Oe+xe,2,!0),this.v.setTripleAt(Re-Be+nt,Oe+xe,Re-Be+rt,Oe+xe,Re-Be+nt,Oe+xe,3,!0),this.v.setTripleAt(Re-Be,Oe+xe-nt,Re-Be,Oe+xe-nt,Re-Be,Oe+xe-rt,4,!0),this.v.setTripleAt(Re-Be,Oe-xe+nt,Re-Be,Oe-xe+rt,Re-Be,Oe-xe+nt,5,!0),this.v.setTripleAt(Re-Be+nt,Oe-xe,Re-Be+nt,Oe-xe,Re-Be+rt,Oe-xe,6,!0),this.v.setTripleAt(Re+Be-nt,Oe-xe,Re+Be-rt,Oe-xe,Re+Be-nt,Oe-xe,7,!0)):(this.v.setTripleAt(Re-Be,Oe+xe,Re-Be+rt,Oe+xe,Re-Be,Oe+xe,2),this.v.setTripleAt(Re-Be,Oe-xe,Re-Be,Oe-xe+rt,Re-Be,Oe-xe,3))):(this.v.setTripleAt(Re+Be,Oe-xe+nt,Re+Be,Oe-xe+rt,Re+Be,Oe-xe+nt,0,!0),nt!==0?(this.v.setTripleAt(Re+Be-nt,Oe-xe,Re+Be-nt,Oe-xe,Re+Be-rt,Oe-xe,1,!0),this.v.setTripleAt(Re-Be+nt,Oe-xe,Re-Be+rt,Oe-xe,Re-Be+nt,Oe-xe,2,!0),this.v.setTripleAt(Re-Be,Oe-xe+nt,Re-Be,Oe-xe+nt,Re-Be,Oe-xe+rt,3,!0),this.v.setTripleAt(Re-Be,Oe+xe-nt,Re-Be,Oe+xe-rt,Re-Be,Oe+xe-nt,4,!0),this.v.setTripleAt(Re-Be+nt,Oe+xe,Re-Be+nt,Oe+xe,Re-Be+rt,Oe+xe,5,!0),this.v.setTripleAt(Re+Be-nt,Oe+xe,Re+Be-rt,Oe+xe,Re+Be-nt,Oe+xe,6,!0),this.v.setTripleAt(Re+Be,Oe+xe-nt,Re+Be,Oe+xe-nt,Re+Be,Oe+xe-rt,7,!0)):(this.v.setTripleAt(Re-Be,Oe-xe,Re-Be+rt,Oe-xe,Re-Be,Oe-xe,1,!0),this.v.setTripleAt(Re-Be,Oe+xe,Re-Be,Oe+xe-rt,Re-Be,Oe+xe,2,!0),this.v.setTripleAt(Re+Be,Oe+xe,Re+Be-rt,Oe+xe,Re+Be,Oe+xe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:oe},extendPrototype([DynamicPropertyContainer],Pe),Pe}(),Me={getShapeProp:function(Pe,Re,Oe){var Be;return Oe===3||Oe===4?Be=(Oe===3?Re.pt:Re.ks).k.length?new he(Pe,Re,Oe):new ue(Pe,Re,Oe):Oe===5?Be=new ke(Pe,Re):Oe===6?Be=new ve(Pe,Re):Oe===7&&(Be=new Se(Pe,Re)),Be.k&&Pe.addDynamicProperty(Be),Be},getConstructorFunction:function(){return ue},getKeyframedConstructorFunction:function(){return he}};return Me}(),Matrix=function(){var te=Math.cos,ie=Math.sin,oe=Math.tan,le=Math.round;function ce(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function ue(Jn){if(Jn===0)return this;var zn=te(Jn),_a=ie(Jn);return this._t(zn,-_a,0,0,_a,zn,0,0,0,0,1,0,0,0,0,1)}function fe(Jn){if(Jn===0)return this;var zn=te(Jn),_a=ie(Jn);return this._t(1,0,0,0,0,zn,-_a,0,0,_a,zn,0,0,0,0,1)}function he(Jn){if(Jn===0)return this;var zn=te(Jn),_a=ie(Jn);return this._t(zn,0,_a,0,0,1,0,0,-_a,0,zn,0,0,0,0,1)}function ve(Jn){if(Jn===0)return this;var zn=te(Jn),_a=ie(Jn);return this._t(zn,-_a,0,0,_a,zn,0,0,0,0,1,0,0,0,0,1)}function Se(Jn,zn){return this._t(1,zn,Jn,1,0,0)}function ke(Jn,zn){return this.shear(oe(Jn),oe(zn))}function Me(Jn,zn){var _a=te(zn),Ia=ie(zn);return this._t(_a,Ia,0,0,-Ia,_a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,oe(Jn),1,0,0,0,0,1,0,0,0,0,1)._t(_a,-Ia,0,0,Ia,_a,0,0,0,0,1,0,0,0,0,1)}function Pe(Jn,zn,_a){return _a||_a===0||(_a=1),Jn===1&&zn===1&&_a===1?this:this._t(Jn,0,0,0,0,zn,0,0,0,0,_a,0,0,0,0,1)}function Re(Jn,zn,_a,Ia,wa,Vn,Wn,ba,Aa,Da,xa,Ea,Ma,La,Ua,Ga){return this.props[0]=Jn,this.props[1]=zn,this.props[2]=_a,this.props[3]=Ia,this.props[4]=wa,this.props[5]=Vn,this.props[6]=Wn,this.props[7]=ba,this.props[8]=Aa,this.props[9]=Da,this.props[10]=xa,this.props[11]=Ea,this.props[12]=Ma,this.props[13]=La,this.props[14]=Ua,this.props[15]=Ga,this}function Oe(Jn,zn,_a){return _a=_a||0,Jn!==0||zn!==0||_a!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Jn,zn,_a,1):this}function Be(Jn,zn,_a,Ia,wa,Vn,Wn,ba,Aa,Da,xa,Ea,Ma,La,Ua,Ga){var Ca=this.props;if(Jn===1&&zn===0&&_a===0&&Ia===0&&wa===0&&Vn===1&&Wn===0&&ba===0&&Aa===0&&Da===0&&xa===1&&Ea===0)return Ca[12]=Ca[12]*Jn+Ca[15]*Ma,Ca[13]=Ca[13]*Vn+Ca[15]*La,Ca[14]=Ca[14]*xa+Ca[15]*Ua,Ca[15]*=Ga,this._identityCalculated=!1,this;var $a=Ca[0],Ka=Ca[1],Za=Ca[2],Qa=Ca[3],Wa=Ca[4],va=Ca[5],qa=Ca[6],Ha=Ca[7],ja=Ca[8],Ya=Ca[9],Ja=Ca[10],za=Ca[11],Xa=Ca[12],ge=Ca[13],ye=Ca[14],Te=Ca[15];return Ca[0]=$a*Jn+Ka*wa+Za*Aa+Qa*Ma,Ca[1]=$a*zn+Ka*Vn+Za*Da+Qa*La,Ca[2]=$a*_a+Ka*Wn+Za*xa+Qa*Ua,Ca[3]=$a*Ia+Ka*ba+Za*Ea+Qa*Ga,Ca[4]=Wa*Jn+va*wa+qa*Aa+Ha*Ma,Ca[5]=Wa*zn+va*Vn+qa*Da+Ha*La,Ca[6]=Wa*_a+va*Wn+qa*xa+Ha*Ua,Ca[7]=Wa*Ia+va*ba+qa*Ea+Ha*Ga,Ca[8]=ja*Jn+Ya*wa+Ja*Aa+za*Ma,Ca[9]=ja*zn+Ya*Vn+Ja*Da+za*La,Ca[10]=ja*_a+Ya*Wn+Ja*xa+za*Ua,Ca[11]=ja*Ia+Ya*ba+Ja*Ea+za*Ga,Ca[12]=Xa*Jn+ge*wa+ye*Aa+Te*Ma,Ca[13]=Xa*zn+ge*Vn+ye*Da+Te*La,Ca[14]=Xa*_a+ge*Wn+ye*xa+Te*Ua,Ca[15]=Xa*Ia+ge*ba+ye*Ea+Te*Ga,this._identityCalculated=!1,this}function xe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function nt(Jn){for(var zn=0;zn<16;){if(Jn.props[zn]!==this.props[zn])return!1;zn+=1}return!0}function rt(Jn){var zn;for(zn=0;zn<16;zn+=1)Jn.props[zn]=this.props[zn];return Jn}function ot(Jn){var zn;for(zn=0;zn<16;zn+=1)this.props[zn]=Jn[zn]}function ht(Jn,zn,_a){return{x:Jn*this.props[0]+zn*this.props[4]+_a*this.props[8]+this.props[12],y:Jn*this.props[1]+zn*this.props[5]+_a*this.props[9]+this.props[13],z:Jn*this.props[2]+zn*this.props[6]+_a*this.props[10]+this.props[14]}}function dt(Jn,zn,_a){return Jn*this.props[0]+zn*this.props[4]+_a*this.props[8]+this.props[12]}function Rt(Jn,zn,_a){return Jn*this.props[1]+zn*this.props[5]+_a*this.props[9]+this.props[13]}function Ct(Jn,zn,_a){return Jn*this.props[2]+zn*this.props[6]+_a*this.props[10]+this.props[14]}function Lt(){var Jn=this.props[0]*this.props[5]-this.props[1]*this.props[4],zn=this.props[5]/Jn,_a=-this.props[1]/Jn,Ia=-this.props[4]/Jn,wa=this.props[0]/Jn,Vn=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Jn,Wn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Jn,ba=new Matrix;return ba.props[0]=zn,ba.props[1]=_a,ba.props[4]=Ia,ba.props[5]=wa,ba.props[12]=Vn,ba.props[13]=Wn,ba}function Qn(Jn){return this.getInverseMatrix().applyToPointArray(Jn[0],Jn[1],Jn[2]||0)}function Mn(Jn){var zn,_a=Jn.length,Ia=[];for(zn=0;zn<_a;zn+=1)Ia[zn]=Qn(Jn[zn]);return Ia}function Gn(Jn,zn,_a){var Ia=createTypedArray("float32",6);if(this.isIdentity())Ia[0]=Jn[0],Ia[1]=Jn[1],Ia[2]=zn[0],Ia[3]=zn[1],Ia[4]=_a[0],Ia[5]=_a[1];else{var wa=this.props[0],Vn=this.props[1],Wn=this.props[4],ba=this.props[5],Aa=this.props[12],Da=this.props[13];Ia[0]=Jn[0]*wa+Jn[1]*Wn+Aa,Ia[1]=Jn[0]*Vn+Jn[1]*ba+Da,Ia[2]=zn[0]*wa+zn[1]*Wn+Aa,Ia[3]=zn[0]*Vn+zn[1]*ba+Da,Ia[4]=_a[0]*wa+_a[1]*Wn+Aa,Ia[5]=_a[0]*Vn+_a[1]*ba+Da}return Ia}function Sa(Jn,zn,_a){return this.isIdentity()?[Jn,zn,_a]:[Jn*this.props[0]+zn*this.props[4]+_a*this.props[8]+this.props[12],Jn*this.props[1]+zn*this.props[5]+_a*this.props[9]+this.props[13],Jn*this.props[2]+zn*this.props[6]+_a*this.props[10]+this.props[14]]}function Ta(Jn,zn){if(this.isIdentity())return Jn+","+zn;var _a=this.props;return Math.round(100*(Jn*_a[0]+zn*_a[4]+_a[12]))/100+","+Math.round(100*(Jn*_a[1]+zn*_a[5]+_a[13]))/100}function Kn(){for(var Jn=0,zn=this.props,_a="matrix3d(";Jn<16;)_a+=le(1e4*zn[Jn])/1e4,_a+=Jn===15?")":",",Jn+=1;return _a}function ka(Jn){return Jn<1e-6&&Jn>0||Jn>-1e-6&&Jn<0?le(1e4*Jn)/1e4:Jn}function Ra(){var Jn=this.props;return"matrix("+ka(Jn[0])+","+ka(Jn[1])+","+ka(Jn[4])+","+ka(Jn[5])+","+ka(Jn[12])+","+ka(Jn[13])+")"}return function(){this.reset=ce,this.rotate=ue,this.rotateX=fe,this.rotateY=he,this.rotateZ=ve,this.skew=ke,this.skewFromAxis=Me,this.shear=Se,this.scale=Pe,this.setTransform=Re,this.translate=Oe,this.transform=Be,this.applyToPoint=ht,this.applyToX=dt,this.applyToY=Rt,this.applyToZ=Ct,this.applyToPointArray=Sa,this.applyToTriplePoints=Gn,this.applyToPointStringified=Ta,this.toCSS=Kn,this.to2dCSS=Ra,this.clone=rt,this.cloneFromProps=ot,this.equals=nt,this.inversePoints=Mn,this.inversePoint=Qn,this.getInverseMatrix=Lt,this._t=this.transform,this.isIdentity=xe,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(te){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var lottie={};function setLocation(te){setLocationHref(te)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(te){setSubframeEnabled(te)}function setPrefix(te){setIdPrefix(te)}function loadAnimation(te){return animationManager.loadAnimation(te)}function setQuality(te){if(typeof te=="string")switch(te){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(te)&&te>1&&setDefaultCurveSegments(te)}function inBrowser(){return typeof navigator<"u"}function installPlugin(te,ie){te==="expressions"&&setExpressionsPlugin(ie)}function getFactory(te){switch(te){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(te){for(var ie=queryString.split("&"),oe=0;oe<ie.length;oe+=1){var le=ie[oe].split("=");if(decodeURIComponent(le[0])==te)return decodeURIComponent(le[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.2";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(te){}var ShapeModifiers=function(){var te={},ie={};return te.registerModifier=function(oe,le){ie[oe]||(ie[oe]=le)},te.getModifier=function(oe,le,ce){return new ie[oe](le,ce)},te}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(te){if(!this.closed){te.sh.container.addDynamicProperty(te.sh);var ie={shape:te.sh,data:te,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(ie),this.addShapeToModifier(ie),this._isAnimated&&te.setAsAnimated()}},ShapeModifier.prototype.init=function(te,ie){this.shapes=[],this.elem=te,this.initDynamicPropertyContainer(te),this.initModifierProperties(te,ie),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(te,ie){this.s=PropertyFactory.getProp(te,ie.s,0,.01,this),this.e=PropertyFactory.getProp(te,ie.e,0,.01,this),this.o=PropertyFactory.getProp(te,ie.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=ie.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(te){te.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(te,ie,oe,le,ce){var ue=[];ie<=1?ue.push({s:te,e:ie}):te>=1?ue.push({s:te-1,e:ie-1}):(ue.push({s:te,e:1}),ue.push({s:0,e:ie-1}));var fe,he,ve=[],Se=ue.length;for(fe=0;fe<Se;fe+=1){var ke,Me;(he=ue[fe]).e*ce<le||he.s*ce>le+oe||(ke=he.s*ce<=le?0:(he.s*ce-le)/oe,Me=he.e*ce>=le+oe?1:(he.e*ce-le)/oe,ve.push([ke,Me]))}return ve.length||ve.push([0,0]),ve},TrimModifier.prototype.releasePathsData=function(te){var ie,oe=te.length;for(ie=0;ie<oe;ie+=1)segmentsLengthPool.release(te[ie]);return te.length=0,te},TrimModifier.prototype.processShapes=function(te){var ie,oe,le,ce;if(this._mdf||te){var ue=this.o.v%360/360;if(ue<0&&(ue+=1),(ie=this.s.v>1?1+ue:this.s.v<0?0+ue:this.s.v+ue)>(oe=this.e.v>1?1+ue:this.e.v<0?0+ue:this.e.v+ue)){var fe=ie;ie=oe,oe=fe}ie=1e-4*Math.round(1e4*ie),oe=1e-4*Math.round(1e4*oe),this.sValue=ie,this.eValue=oe}else ie=this.sValue,oe=this.eValue;var he,ve,Se,ke,Me,Pe=this.shapes.length,Re=0;if(oe===ie)for(ce=0;ce<Pe;ce+=1)this.shapes[ce].localShapeCollection.releaseShapes(),this.shapes[ce].shape._mdf=!0,this.shapes[ce].shape.paths=this.shapes[ce].localShapeCollection,this._mdf&&(this.shapes[ce].pathsData.length=0);else if(oe===1&&ie===0||oe===0&&ie===1){if(this._mdf)for(ce=0;ce<Pe;ce+=1)this.shapes[ce].pathsData.length=0,this.shapes[ce].shape._mdf=!0}else{var Oe,Be,xe=[];for(ce=0;ce<Pe;ce+=1)if((Oe=this.shapes[ce]).shape._mdf||this._mdf||te||this.m===2){if(ve=(le=Oe.shape.paths)._length,Me=0,!Oe.shape._mdf&&Oe.pathsData.length)Me=Oe.totalShapeLength;else{for(Se=this.releasePathsData(Oe.pathsData),he=0;he<ve;he+=1)ke=bez.getSegmentsLength(le.shapes[he]),Se.push(ke),Me+=ke.totalLength;Oe.totalShapeLength=Me,Oe.pathsData=Se}Re+=Me,Oe.shape._mdf=!0}else Oe.shape.paths=Oe.localShapeCollection;var nt,rt=ie,ot=oe,ht=0;for(ce=Pe-1;ce>=0;ce-=1)if((Oe=this.shapes[ce]).shape._mdf){for((Be=Oe.localShapeCollection).releaseShapes(),this.m===2&&Pe>1?(nt=this.calculateShapeEdges(ie,oe,Oe.totalShapeLength,ht,Re),ht+=Oe.totalShapeLength):nt=[[rt,ot]],ve=nt.length,he=0;he<ve;he+=1){rt=nt[he][0],ot=nt[he][1],xe.length=0,ot<=1?xe.push({s:Oe.totalShapeLength*rt,e:Oe.totalShapeLength*ot}):rt>=1?xe.push({s:Oe.totalShapeLength*(rt-1),e:Oe.totalShapeLength*(ot-1)}):(xe.push({s:Oe.totalShapeLength*rt,e:Oe.totalShapeLength}),xe.push({s:0,e:Oe.totalShapeLength*(ot-1)}));var dt=this.addShapes(Oe,xe[0]);if(xe[0].s!==xe[0].e){if(xe.length>1)if(Oe.shape.paths.shapes[Oe.shape.paths._length-1].c){var Rt=dt.pop();this.addPaths(dt,Be),dt=this.addShapes(Oe,xe[1],Rt)}else this.addPaths(dt,Be),dt=this.addShapes(Oe,xe[1]);this.addPaths(dt,Be)}}Oe.shape.paths=Be}}},TrimModifier.prototype.addPaths=function(te,ie){var oe,le=te.length;for(oe=0;oe<le;oe+=1)ie.addShape(te[oe])},TrimModifier.prototype.addSegment=function(te,ie,oe,le,ce,ue,fe){ce.setXYAt(ie[0],ie[1],"o",ue),ce.setXYAt(oe[0],oe[1],"i",ue+1),fe&&ce.setXYAt(te[0],te[1],"v",ue),ce.setXYAt(le[0],le[1],"v",ue+1)},TrimModifier.prototype.addSegmentFromArray=function(te,ie,oe,le){ie.setXYAt(te[1],te[5],"o",oe),ie.setXYAt(te[2],te[6],"i",oe+1),le&&ie.setXYAt(te[0],te[4],"v",oe),ie.setXYAt(te[3],te[7],"v",oe+1)},TrimModifier.prototype.addShapes=function(te,ie,oe){var le,ce,ue,fe,he,ve,Se,ke,Me=te.pathsData,Pe=te.shape.paths.shapes,Re=te.shape.paths._length,Oe=0,Be=[],xe=!0;for(oe?(he=oe._length,ke=oe._length):(oe=shapePool.newElement(),he=0,ke=0),Be.push(oe),le=0;le<Re;le+=1){for(ve=Me[le].lengths,oe.c=Pe[le].c,ue=Pe[le].c?ve.length:ve.length+1,ce=1;ce<ue;ce+=1)if(Oe+(fe=ve[ce-1]).addedLength<ie.s)Oe+=fe.addedLength,oe.c=!1;else{if(Oe>ie.e){oe.c=!1;break}ie.s<=Oe&&ie.e>=Oe+fe.addedLength?(this.addSegment(Pe[le].v[ce-1],Pe[le].o[ce-1],Pe[le].i[ce],Pe[le].v[ce],oe,he,xe),xe=!1):(Se=bez.getNewSegment(Pe[le].v[ce-1],Pe[le].v[ce],Pe[le].o[ce-1],Pe[le].i[ce],(ie.s-Oe)/fe.addedLength,(ie.e-Oe)/fe.addedLength,ve[ce-1]),this.addSegmentFromArray(Se,oe,he,xe),xe=!1,oe.c=!1),Oe+=fe.addedLength,he+=1}if(Pe[le].c&&ve.length){if(fe=ve[ce-1],Oe<=ie.e){var nt=ve[ce-1].addedLength;ie.s<=Oe&&ie.e>=Oe+nt?(this.addSegment(Pe[le].v[ce-1],Pe[le].o[ce-1],Pe[le].i[0],Pe[le].v[0],oe,he,xe),xe=!1):(Se=bez.getNewSegment(Pe[le].v[ce-1],Pe[le].v[0],Pe[le].o[ce-1],Pe[le].i[0],(ie.s-Oe)/nt,(ie.e-Oe)/nt,ve[ce-1]),this.addSegmentFromArray(Se,oe,he,xe),xe=!1,oe.c=!1)}else oe.c=!1;Oe+=fe.addedLength,he+=1}if(oe._length&&(oe.setXYAt(oe.v[ke][0],oe.v[ke][1],"i",ke),oe.setXYAt(oe.v[oe._length-1][0],oe.v[oe._length-1][1],"o",oe._length-1)),Oe>ie.e)break;le<Re-1&&(oe=shapePool.newElement(),xe=!0,Be.push(oe),he=0)}return Be},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(te,ie){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(te,ie.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(te,ie){var oe=ie/100,le=[0,0],ce=te._length,ue=0;for(ue=0;ue<ce;ue+=1)le[0]+=te.v[ue][0],le[1]+=te.v[ue][1];le[0]/=ce,le[1]/=ce;var fe,he,ve,Se,ke,Me,Pe=shapePool.newElement();for(Pe.c=te.c,ue=0;ue<ce;ue+=1)fe=te.v[ue][0]+(le[0]-te.v[ue][0])*oe,he=te.v[ue][1]+(le[1]-te.v[ue][1])*oe,ve=te.o[ue][0]+(le[0]-te.o[ue][0])*-oe,Se=te.o[ue][1]+(le[1]-te.o[ue][1])*-oe,ke=te.i[ue][0]+(le[0]-te.i[ue][0])*-oe,Me=te.i[ue][1]+(le[1]-te.i[ue][1])*-oe,Pe.setTripleAt(fe,he,ve,Se,ke,Me,ue);return Pe},PuckerAndBloatModifier.prototype.processShapes=function(te){var ie,oe,le,ce,ue,fe,he=this.shapes.length,ve=this.amount.v;if(ve!==0)for(oe=0;oe<he;oe+=1){if(fe=(ue=this.shapes[oe]).localShapeCollection,ue.shape._mdf||this._mdf||te)for(fe.releaseShapes(),ue.shape._mdf=!0,ie=ue.shape.paths.shapes,ce=ue.shape.paths._length,le=0;le<ce;le+=1)fe.addShape(this.processPath(ie[le],ve));ue.shape.paths=ue.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var te=[0,0];function ie(oe,le,ce){if(this.elem=oe,this.frameId=-1,this.propType="transform",this.data=le,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(ce||oe),le.p&&le.p.s?(this.px=PropertyFactory.getProp(oe,le.p.x,0,0,this),this.py=PropertyFactory.getProp(oe,le.p.y,0,0,this),le.p.z&&(this.pz=PropertyFactory.getProp(oe,le.p.z,0,0,this))):this.p=PropertyFactory.getProp(oe,le.p||{k:[0,0,0]},1,0,this),le.rx){if(this.rx=PropertyFactory.getProp(oe,le.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(oe,le.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(oe,le.rz,0,degToRads,this),le.or.k[0].ti){var ue,fe=le.or.k.length;for(ue=0;ue<fe;ue+=1)le.or.k[ue].to=null,le.or.k[ue].ti=null}this.or=PropertyFactory.getProp(oe,le.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(oe,le.r||{k:0},0,degToRads,this);le.sk&&(this.sk=PropertyFactory.getProp(oe,le.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(oe,le.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(oe,le.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(oe,le.s||{k:[100,100,100]},1,.01,this),le.o?this.o=PropertyFactory.getProp(oe,le.o,0,.01,oe):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return ie.prototype={applyToMatrix:function(oe){var le=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||le,this.a&&oe.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&oe.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&oe.skewFromAxis(-this.sk.v,this.sa.v),this.r?oe.rotate(-this.r.v):oe.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?oe.translate(this.px.v,this.py.v,-this.pz.v):oe.translate(this.px.v,this.py.v,0):oe.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(oe){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||oe){var le;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var ce,ue;if(le=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/le,0),ue=this.p.getValueAtTime(this.p.keyframes[0].t/le,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/le,0),ue=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/le,0)):(ce=this.p.pv,ue=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/le,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){ce=[],ue=[];var fe=this.px,he=this.py;fe._caching.lastFrame+fe.offsetTime<=fe.keyframes[0].t?(ce[0]=fe.getValueAtTime((fe.keyframes[0].t+.01)/le,0),ce[1]=he.getValueAtTime((he.keyframes[0].t+.01)/le,0),ue[0]=fe.getValueAtTime(fe.keyframes[0].t/le,0),ue[1]=he.getValueAtTime(he.keyframes[0].t/le,0)):fe._caching.lastFrame+fe.offsetTime>=fe.keyframes[fe.keyframes.length-1].t?(ce[0]=fe.getValueAtTime(fe.keyframes[fe.keyframes.length-1].t/le,0),ce[1]=he.getValueAtTime(he.keyframes[he.keyframes.length-1].t/le,0),ue[0]=fe.getValueAtTime((fe.keyframes[fe.keyframes.length-1].t-.01)/le,0),ue[1]=he.getValueAtTime((he.keyframes[he.keyframes.length-1].t-.01)/le,0)):(ce=[fe.pv,he.pv],ue[0]=fe.getValueAtTime((fe._caching.lastFrame+fe.offsetTime-.01)/le,fe.offsetTime),ue[1]=he.getValueAtTime((he._caching.lastFrame+he.offsetTime-.01)/le,he.offsetTime))}else ce=ue=te;this.v.rotate(-Math.atan2(ce[1]-ue[1],ce[0]-ue[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],ie),ie.prototype.addDynamicProperty=function(oe){this._addDynamicProperty(oe),this.elem.addDynamicProperty(oe),this._isDirty=!0},ie.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(oe,le,ce){return new ie(oe,le,ce)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(te,ie){return 1e5*Math.abs(te-ie)<=Math.min(Math.abs(te),Math.abs(ie))}function floatZero(te){return Math.abs(te)<=1e-5}function lerp(te,ie,oe){return te*(1-oe)+ie*oe}function lerpPoint(te,ie,oe){return[lerp(te[0],ie[0],oe),lerp(te[1],ie[1],oe)]}function quadRoots(te,ie,oe){if(te===0)return[];var le=ie*ie-4*te*oe;if(le<0)return[];var ce=-ie/(2*te);if(le===0)return[ce];var ue=Math.sqrt(le)/(2*te);return[ce-ue,ce+ue]}function polynomialCoefficients(te,ie,oe,le){return[3*ie-te-3*oe+le,3*te-6*ie+3*oe,-3*te+3*ie,te]}function singlePoint(te){return new PolynomialBezier(te,te,te,te,!1)}function PolynomialBezier(te,ie,oe,le,ce){ce&&pointEqual(te,ie)&&(ie=lerpPoint(te,le,1/3)),ce&&pointEqual(oe,le)&&(oe=lerpPoint(te,le,2/3));var ue=polynomialCoefficients(te[0],ie[0],oe[0],le[0]),fe=polynomialCoefficients(te[1],ie[1],oe[1],le[1]);this.a=[ue[0],fe[0]],this.b=[ue[1],fe[1]],this.c=[ue[2],fe[2]],this.d=[ue[3],fe[3]],this.points=[te,ie,oe,le]}function extrema(te,ie){var oe=te.points[0][ie],le=te.points[te.points.length-1][ie];if(oe>le){var ce=le;le=oe,oe=ce}for(var ue=quadRoots(3*te.a[ie],2*te.b[ie],te.c[ie]),fe=0;fe<ue.length;fe+=1)if(ue[fe]>0&&ue[fe]<1){var he=te.point(ue[fe])[ie];he<oe?oe=he:he>le&&(le=he)}return{min:oe,max:le}}function intersectData(te,ie,oe){var le=te.boundingBox();return{cx:le.cx,cy:le.cy,width:le.width,height:le.height,bez:te,t:(ie+oe)/2,t1:ie,t2:oe}}function splitData(te){var ie=te.bez.split(.5);return[intersectData(ie[0],te.t1,te.t),intersectData(ie[1],te.t,te.t2)]}function boxIntersect(te,ie){return 2*Math.abs(te.cx-ie.cx)<te.width+ie.width&&2*Math.abs(te.cy-ie.cy)<te.height+ie.height}function intersectsImpl(te,ie,oe,le,ce,ue){if(boxIntersect(te,ie))if(oe>=ue||te.width<=le&&te.height<=le&&ie.width<=le&&ie.height<=le)ce.push([te.t,ie.t]);else{var fe=splitData(te),he=splitData(ie);intersectsImpl(fe[0],he[0],oe+1,le,ce,ue),intersectsImpl(fe[0],he[1],oe+1,le,ce,ue),intersectsImpl(fe[1],he[0],oe+1,le,ce,ue),intersectsImpl(fe[1],he[1],oe+1,le,ce,ue)}}function crossProduct(te,ie){return[te[1]*ie[2]-te[2]*ie[1],te[2]*ie[0]-te[0]*ie[2],te[0]*ie[1]-te[1]*ie[0]]}function lineIntersection(te,ie,oe,le){var ce=[te[0],te[1],1],ue=[ie[0],ie[1],1],fe=[oe[0],oe[1],1],he=[le[0],le[1],1],ve=crossProduct(crossProduct(ce,ue),crossProduct(fe,he));return floatZero(ve[2])?null:[ve[0]/ve[2],ve[1]/ve[2]]}function polarOffset(te,ie,oe){return[te[0]+Math.cos(ie)*oe,te[1]-Math.sin(ie)*oe]}function pointDistance(te,ie){return Math.hypot(te[0]-ie[0],te[1]-ie[1])}function pointEqual(te,ie){return floatEqual(te[0],ie[0])&&floatEqual(te[1],ie[1])}function ZigZagModifier(){}function setPoint(te,ie,oe,le,ce,ue,fe){var he=oe-Math.PI/2,ve=oe+Math.PI/2,Se=ie[0]+Math.cos(oe)*le*ce,ke=ie[1]-Math.sin(oe)*le*ce;te.setTripleAt(Se,ke,Se+Math.cos(he)*ue,ke-Math.sin(he)*ue,Se+Math.cos(ve)*fe,ke-Math.sin(ve)*fe,te.length())}function getPerpendicularVector(te,ie){var oe=[ie[0]-te[0],ie[1]-te[1]],le=.5*-Math.PI;return[Math.cos(le)*oe[0]-Math.sin(le)*oe[1],Math.sin(le)*oe[0]+Math.cos(le)*oe[1]]}function getProjectingAngle(te,ie){var oe=ie===0?te.length()-1:ie-1,le=(ie+1)%te.length(),ce=getPerpendicularVector(te.v[oe],te.v[le]);return Math.atan2(0,1)-Math.atan2(ce[1],ce[0])}function zigZagCorner(te,ie,oe,le,ce,ue,fe){var he=getProjectingAngle(ie,oe),ve=ie.v[oe%ie._length],Se=ie.v[oe===0?ie._length-1:oe-1],ke=ie.v[(oe+1)%ie._length],Me=ue===2?Math.sqrt(Math.pow(ve[0]-Se[0],2)+Math.pow(ve[1]-Se[1],2)):0,Pe=ue===2?Math.sqrt(Math.pow(ve[0]-ke[0],2)+Math.pow(ve[1]-ke[1],2)):0;setPoint(te,ie.v[oe%ie._length],he,fe,le,Pe/(2*(ce+1)),Me/(2*(ce+1)))}function zigZagSegment(te,ie,oe,le,ce,ue){for(var fe=0;fe<le;fe+=1){var he=(fe+1)/(le+1),ve=ce===2?Math.sqrt(Math.pow(ie.points[3][0]-ie.points[0][0],2)+Math.pow(ie.points[3][1]-ie.points[0][1],2)):0,Se=ie.normalAngle(he);setPoint(te,ie.point(he),Se,ue,oe,ve/(2*(le+1)),ve/(2*(le+1))),ue=-ue}return ue}function linearOffset(te,ie,oe){var le=Math.atan2(ie[0]-te[0],ie[1]-te[1]);return[polarOffset(te,le,oe),polarOffset(ie,le,oe)]}function offsetSegment(te,ie){var oe,le,ce,ue,fe,he,ve;oe=(ve=linearOffset(te.points[0],te.points[1],ie))[0],le=ve[1],ce=(ve=linearOffset(te.points[1],te.points[2],ie))[0],ue=ve[1],fe=(ve=linearOffset(te.points[2],te.points[3],ie))[0],he=ve[1];var Se=lineIntersection(oe,le,ce,ue);Se===null&&(Se=le);var ke=lineIntersection(fe,he,ce,ue);return ke===null&&(ke=fe),new PolynomialBezier(oe,Se,ke,he)}function joinLines(te,ie,oe,le,ce){var ue=ie.points[3],fe=oe.points[0];if(le===3||pointEqual(ue,fe))return ue;if(le===2){var he=-ie.tangentAngle(1),ve=-oe.tangentAngle(0)+Math.PI,Se=lineIntersection(ue,polarOffset(ue,he+Math.PI/2,100),fe,polarOffset(fe,he+Math.PI/2,100)),ke=Se?pointDistance(Se,ue):pointDistance(ue,fe)/2,Me=polarOffset(ue,he,2*ke*roundCorner);return te.setXYAt(Me[0],Me[1],"o",te.length()-1),Me=polarOffset(fe,ve,2*ke*roundCorner),te.setTripleAt(fe[0],fe[1],fe[0],fe[1],Me[0],Me[1],te.length()),fe}var Pe=lineIntersection(pointEqual(ue,ie.points[2])?ie.points[0]:ie.points[2],ue,fe,pointEqual(fe,oe.points[1])?oe.points[3]:oe.points[1]);return Pe&&pointDistance(Pe,ue)<ce?(te.setTripleAt(Pe[0],Pe[1],Pe[0],Pe[1],Pe[0],Pe[1],te.length()),Pe):ue}function getIntersection(te,ie){var oe=te.intersections(ie);return oe.length&&floatEqual(oe[0][0],1)&&oe.shift(),oe.length?oe[0]:null}function pruneSegmentIntersection(te,ie){var oe=te.slice(),le=ie.slice(),ce=getIntersection(te[te.length-1],ie[0]);return ce&&(oe[te.length-1]=te[te.length-1].split(ce[0])[0],le[0]=ie[0].split(ce[1])[1]),te.length>1&&ie.length>1&&(ce=getIntersection(te[0],ie[ie.length-1]))?[[te[0].split(ce[0])[0]],[ie[ie.length-1].split(ce[1])[1]]]:[oe,le]}function pruneIntersections(te){for(var ie,oe=1;oe<te.length;oe+=1)ie=pruneSegmentIntersection(te[oe-1],te[oe]),te[oe-1]=ie[0],te[oe]=ie[1];return te.length>1&&(ie=pruneSegmentIntersection(te[te.length-1],te[0]),te[te.length-1]=ie[0],te[0]=ie[1]),te}function offsetSegmentSplit(te,ie){var oe,le,ce,ue,fe=te.inflectionPoints();if(fe.length===0)return[offsetSegment(te,ie)];if(fe.length===1||floatEqual(fe[1],1))return oe=(ce=te.split(fe[0]))[0],le=ce[1],[offsetSegment(oe,ie),offsetSegment(le,ie)];oe=(ce=te.split(fe[0]))[0];var he=(fe[1]-fe[0])/(1-fe[0]);return ue=(ce=ce[1].split(he))[0],le=ce[1],[offsetSegment(oe,ie),offsetSegment(ue,ie),offsetSegment(le,ie)]}function OffsetPathModifier(){}function getFontProperties(te){for(var ie=te.fStyle?te.fStyle.split(" "):[],oe="normal",le="normal",ce=ie.length,ue=0;ue<ce;ue+=1)switch(ie[ue].toLowerCase()){case"italic":le="italic";break;case"bold":oe="700";break;case"black":oe="900";break;case"medium":oe="500";break;case"regular":case"normal":oe="400";break;case"light":case"thin":oe="200"}return{style:le,weight:te.fWeight||oe}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(te,ie){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(te,ie.c,0,null,this),this.o=PropertyFactory.getProp(te,ie.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(te,ie.tr,this),this.so=PropertyFactory.getProp(te,ie.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(te,ie.tr.eo,0,.01,this),this.data=ie,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(te,ie,oe,le,ce,ue){var fe=ue?-1:1,he=le.s.v[0]+(1-le.s.v[0])*(1-ce),ve=le.s.v[1]+(1-le.s.v[1])*(1-ce);te.translate(le.p.v[0]*fe*ce,le.p.v[1]*fe*ce,le.p.v[2]),ie.translate(-le.a.v[0],-le.a.v[1],le.a.v[2]),ie.rotate(-le.r.v*fe*ce),ie.translate(le.a.v[0],le.a.v[1],le.a.v[2]),oe.translate(-le.a.v[0],-le.a.v[1],le.a.v[2]),oe.scale(ue?1/he:he,ue?1/ve:ve),oe.translate(le.a.v[0],le.a.v[1],le.a.v[2])},RepeaterModifier.prototype.init=function(te,ie,oe,le){for(this.elem=te,this.arr=ie,this.pos=oe,this.elemsData=le,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(te),this.initModifierProperties(te,ie[oe]);oe>0;)oe-=1,this._elements.unshift(ie[oe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(te){var ie,oe=te.length;for(ie=0;ie<oe;ie+=1)te[ie]._processed=!1,te[ie].ty==="gr"&&this.resetElements(te[ie].it)},RepeaterModifier.prototype.cloneElements=function(te){var ie=JSON.parse(JSON.stringify(te));return this.resetElements(ie),ie},RepeaterModifier.prototype.changeGroupRender=function(te,ie){var oe,le=te.length;for(oe=0;oe<le;oe+=1)te[oe]._render=ie,te[oe].ty==="gr"&&this.changeGroupRender(te[oe].it,ie)},RepeaterModifier.prototype.processShapes=function(te){var ie,oe,le,ce,ue,fe=!1;if(this._mdf||te){var he,ve=Math.ceil(this.c.v);if(this._groups.length<ve){for(;this._groups.length<ve;){var Se={it:this.cloneElements(this._elements),ty:"gr"};Se.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Se),this._groups.splice(0,0,Se),this._currentCopies+=1}this.elem.reloadShapes(),fe=!0}for(ue=0,le=0;le<=this._groups.length-1;le+=1){if(he=ue<ve,this._groups[le]._render=he,this.changeGroupRender(this._groups[le].it,he),!he){var ke=this.elemsData[le].it,Me=ke[ke.length-1];Me.transform.op.v!==0?(Me.transform.op._mdf=!0,Me.transform.op.v=0):Me.transform.op._mdf=!1}ue+=1}this._currentCopies=ve;var Pe=this.o.v,Re=Pe%1,Oe=Pe>0?Math.floor(Pe):Math.ceil(Pe),Be=this.pMatrix.props,xe=this.rMatrix.props,nt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var rt,ot,ht=0;if(Pe>0){for(;ht<Oe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ht+=1;Re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Re,!1),ht+=Re)}else if(Pe<0){for(;ht>Oe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ht-=1;Re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Re,!0),ht-=Re)}for(le=this.data.m===1?0:this._currentCopies-1,ce=this.data.m===1?1:-1,ue=this._currentCopies;ue;){if(ot=(oe=(ie=this.elemsData[le].it)[ie.length-1].transform.mProps.v.props).length,ie[ie.length-1].transform.mProps._mdf=!0,ie[ie.length-1].transform.op._mdf=!0,ie[ie.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(le/(this._currentCopies-1)),ht!==0){for((le!==0&&ce===1||le!==this._currentCopies-1&&ce===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(xe[0],xe[1],xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],xe[8],xe[9],xe[10],xe[11],xe[12],xe[13],xe[14],xe[15]),this.matrix.transform(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],nt[8],nt[9],nt[10],nt[11],nt[12],nt[13],nt[14],nt[15]),this.matrix.transform(Be[0],Be[1],Be[2],Be[3],Be[4],Be[5],Be[6],Be[7],Be[8],Be[9],Be[10],Be[11],Be[12],Be[13],Be[14],Be[15]),rt=0;rt<ot;rt+=1)oe[rt]=this.matrix.props[rt];this.matrix.reset()}else for(this.matrix.reset(),rt=0;rt<ot;rt+=1)oe[rt]=this.matrix.props[rt];ht+=1,ue-=1,le+=ce}}else for(ue=this._currentCopies,le=0,ce=1;ue;)oe=(ie=this.elemsData[le].it)[ie.length-1].transform.mProps.v.props,ie[ie.length-1].transform.mProps._mdf=!1,ie[ie.length-1].transform.op._mdf=!1,ue-=1,le+=ce;return fe},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(te,ie){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(te,ie.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(te,ie){var oe,le=shapePool.newElement();le.c=te.c;var ce,ue,fe,he,ve,Se,ke,Me,Pe,Re,Oe,Be,xe=te._length,nt=0;for(oe=0;oe<xe;oe+=1)ce=te.v[oe],fe=te.o[oe],ue=te.i[oe],ce[0]===fe[0]&&ce[1]===fe[1]&&ce[0]===ue[0]&&ce[1]===ue[1]?oe!==0&&oe!==xe-1||te.c?(he=oe===0?te.v[xe-1]:te.v[oe-1],Se=(ve=Math.sqrt(Math.pow(ce[0]-he[0],2)+Math.pow(ce[1]-he[1],2)))?Math.min(ve/2,ie)/ve:0,ke=Oe=ce[0]+(he[0]-ce[0])*Se,Me=Be=ce[1]-(ce[1]-he[1])*Se,Pe=ke-(ke-ce[0])*roundCorner,Re=Me-(Me-ce[1])*roundCorner,le.setTripleAt(ke,Me,Pe,Re,Oe,Be,nt),nt+=1,he=oe===xe-1?te.v[0]:te.v[oe+1],Se=(ve=Math.sqrt(Math.pow(ce[0]-he[0],2)+Math.pow(ce[1]-he[1],2)))?Math.min(ve/2,ie)/ve:0,ke=Pe=ce[0]+(he[0]-ce[0])*Se,Me=Re=ce[1]+(he[1]-ce[1])*Se,Oe=ke-(ke-ce[0])*roundCorner,Be=Me-(Me-ce[1])*roundCorner,le.setTripleAt(ke,Me,Pe,Re,Oe,Be,nt),nt+=1):(le.setTripleAt(ce[0],ce[1],fe[0],fe[1],ue[0],ue[1],nt),nt+=1):(le.setTripleAt(te.v[oe][0],te.v[oe][1],te.o[oe][0],te.o[oe][1],te.i[oe][0],te.i[oe][1],nt),nt+=1);return le},RoundCornersModifier.prototype.processShapes=function(te){var ie,oe,le,ce,ue,fe,he=this.shapes.length,ve=this.rd.v;if(ve!==0)for(oe=0;oe<he;oe+=1){if(fe=(ue=this.shapes[oe]).localShapeCollection,ue.shape._mdf||this._mdf||te)for(fe.releaseShapes(),ue.shape._mdf=!0,ie=ue.shape.paths.shapes,ce=ue.shape.paths._length,le=0;le<ce;le+=1)fe.addShape(this.processPath(ie[le],ve));ue.shape.paths=ue.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(te){return[((this.a[0]*te+this.b[0])*te+this.c[0])*te+this.d[0],((this.a[1]*te+this.b[1])*te+this.c[1])*te+this.d[1]]},PolynomialBezier.prototype.derivative=function(te){return[(3*te*this.a[0]+2*this.b[0])*te+this.c[0],(3*te*this.a[1]+2*this.b[1])*te+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(te){var ie=this.derivative(te);return Math.atan2(ie[1],ie[0])},PolynomialBezier.prototype.normalAngle=function(te){var ie=this.derivative(te);return Math.atan2(ie[0],ie[1])},PolynomialBezier.prototype.inflectionPoints=function(){var te=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(te))return[];var ie=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/te,oe=ie*ie-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/te;if(oe<0)return[];var le=Math.sqrt(oe);return floatZero(le)?le>0&&le<1?[ie]:[]:[ie-le,ie+le].filter(function(ce){return ce>0&&ce<1})},PolynomialBezier.prototype.split=function(te){if(te<=0)return[singlePoint(this.points[0]),this];if(te>=1)return[this,singlePoint(this.points[this.points.length-1])];var ie=lerpPoint(this.points[0],this.points[1],te),oe=lerpPoint(this.points[1],this.points[2],te),le=lerpPoint(this.points[2],this.points[3],te),ce=lerpPoint(ie,oe,te),ue=lerpPoint(oe,le,te),fe=lerpPoint(ce,ue,te);return[new PolynomialBezier(this.points[0],ie,ce,fe,!0),new PolynomialBezier(fe,ue,le,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var te=this.bounds();return{left:te.x.min,right:te.x.max,top:te.y.min,bottom:te.y.max,width:te.x.max-te.x.min,height:te.y.max-te.y.min,cx:(te.x.max+te.x.min)/2,cy:(te.y.max+te.y.min)/2}},PolynomialBezier.prototype.intersections=function(te,ie,oe){ie===void 0&&(ie=2),oe===void 0&&(oe=7);var le=[];return intersectsImpl(intersectData(this,0,1),intersectData(te,0,1),0,ie,le,oe),le},PolynomialBezier.shapeSegment=function(te,ie){var oe=(ie+1)%te.length();return new PolynomialBezier(te.v[ie],te.o[ie],te.i[oe],te.v[oe],!0)},PolynomialBezier.shapeSegmentInverted=function(te,ie){var oe=(ie+1)%te.length();return new PolynomialBezier(te.v[oe],te.i[oe],te.o[ie],te.v[ie],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(te,ie){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(te,ie.s,0,null,this),this.frequency=PropertyFactory.getProp(te,ie.r,0,null,this),this.pointsType=PropertyFactory.getProp(te,ie.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(te,ie,oe,le){var ce=te._length,ue=shapePool.newElement();if(ue.c=te.c,te.c||(ce-=1),ce===0)return ue;var fe=-1,he=PolynomialBezier.shapeSegment(te,0);zigZagCorner(ue,te,0,ie,oe,le,fe);for(var ve=0;ve<ce;ve+=1)fe=zigZagSegment(ue,he,ie,oe,le,-fe),he=ve!==ce-1||te.c?PolynomialBezier.shapeSegment(te,(ve+1)%ce):null,zigZagCorner(ue,te,ve+1,ie,oe,le,fe);return ue},ZigZagModifier.prototype.processShapes=function(te){var ie,oe,le,ce,ue,fe,he=this.shapes.length,ve=this.amplitude.v,Se=Math.max(0,Math.round(this.frequency.v)),ke=this.pointsType.v;if(ve!==0)for(oe=0;oe<he;oe+=1){if(fe=(ue=this.shapes[oe]).localShapeCollection,ue.shape._mdf||this._mdf||te)for(fe.releaseShapes(),ue.shape._mdf=!0,ie=ue.shape.paths.shapes,ce=ue.shape.paths._length,le=0;le<ce;le+=1)fe.addShape(this.processPath(ie[le],ve,Se,ke));ue.shape.paths=ue.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(te,ie){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(te,ie.a,0,null,this),this.miterLimit=PropertyFactory.getProp(te,ie.ml,0,null,this),this.lineJoin=ie.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(te,ie,oe,le){var ce=shapePool.newElement();ce.c=te.c;var ue,fe,he,ve=te.length();te.c||(ve-=1);var Se=[];for(ue=0;ue<ve;ue+=1)he=PolynomialBezier.shapeSegment(te,ue),Se.push(offsetSegmentSplit(he,ie));if(!te.c)for(ue=ve-1;ue>=0;ue-=1)he=PolynomialBezier.shapeSegmentInverted(te,ue),Se.push(offsetSegmentSplit(he,ie));Se=pruneIntersections(Se);var ke=null,Me=null;for(ue=0;ue<Se.length;ue+=1){var Pe=Se[ue];for(Me&&(ke=joinLines(ce,Me,Pe[0],oe,le)),Me=Pe[Pe.length-1],fe=0;fe<Pe.length;fe+=1)he=Pe[fe],ke&&pointEqual(he.points[0],ke)?ce.setXYAt(he.points[1][0],he.points[1][1],"o",ce.length()-1):ce.setTripleAt(he.points[0][0],he.points[0][1],he.points[1][0],he.points[1][1],he.points[0][0],he.points[0][1],ce.length()),ce.setTripleAt(he.points[3][0],he.points[3][1],he.points[3][0],he.points[3][1],he.points[2][0],he.points[2][1],ce.length()),ke=he.points[3]}return Se.length&&joinLines(ce,Me,Se[0][0],oe,le),ce},OffsetPathModifier.prototype.processShapes=function(te){var ie,oe,le,ce,ue,fe,he=this.shapes.length,ve=this.amount.v,Se=this.miterLimit.v,ke=this.lineJoin;if(ve!==0)for(oe=0;oe<he;oe+=1){if(fe=(ue=this.shapes[oe]).localShapeCollection,ue.shape._mdf||this._mdf||te)for(fe.releaseShapes(),ue.shape._mdf=!0,ie=ue.shape.paths.shapes,ce=ue.shape.paths._length,le=0;le<ce;le+=1)fe.addShape(this.processPath(ie[le],ve,ke,Se));ue.shape.paths=ue.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var te={w:0,size:0,shapes:[],data:{shapes:[]}},ie=[];ie=ie.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var oe=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],le=[65039,8205];function ce(he,ve){var Se=createTag("span");Se.setAttribute("aria-hidden",!0),Se.style.fontFamily=ve;var ke=createTag("span");ke.innerText="giItT1WQy@!-/#",Se.style.position="absolute",Se.style.left="-10000px",Se.style.top="-10000px",Se.style.fontSize="300px",Se.style.fontVariant="normal",Se.style.fontStyle="normal",Se.style.fontWeight="normal",Se.style.letterSpacing="0",Se.appendChild(ke),document.body.appendChild(Se);var Me=ke.offsetWidth;return ke.style.fontFamily=function(Pe){var Re,Oe=Pe.split(","),Be=Oe.length,xe=[];for(Re=0;Re<Be;Re+=1)Oe[Re]!=="sans-serif"&&Oe[Re]!=="monospace"&&xe.push(Oe[Re]);return xe.join(",")}(he)+", "+ve,{node:ke,w:Me,parent:Se}}function ue(he,ve){var Se,ke=document.body&&ve?"svg":"canvas",Me=getFontProperties(he);if(ke==="svg"){var Pe=createNS("text");Pe.style.fontSize="100px",Pe.setAttribute("font-family",he.fFamily),Pe.setAttribute("font-style",Me.style),Pe.setAttribute("font-weight",Me.weight),Pe.textContent="1",he.fClass?(Pe.style.fontFamily="inherit",Pe.setAttribute("class",he.fClass)):Pe.style.fontFamily=he.fFamily,ve.appendChild(Pe),Se=Pe}else{var Re=new OffscreenCanvas(500,500).getContext("2d");Re.font=Me.style+" "+Me.weight+" 100px "+he.fFamily,Se=Re}return{measureText:function(Oe){return ke==="svg"?(Se.textContent=Oe,Se.getComputedTextLength()):Se.measureText(Oe).width}}}var fe=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return fe.isModifier=function(he,ve){var Se=he.toString(16)+ve.toString(16);return oe.indexOf(Se)!==-1},fe.isZeroWidthJoiner=function(he,ve){return ve?he===le[0]&&ve===le[1]:he===le[1]},fe.isCombinedCharacter=function(he){return ie.indexOf(he)!==-1},fe.prototype={addChars:function(he){if(he){var ve;this.chars||(this.chars=[]);var Se,ke,Me=he.length,Pe=this.chars.length;for(ve=0;ve<Me;ve+=1){for(Se=0,ke=!1;Se<Pe;)this.chars[Se].style===he[ve].style&&this.chars[Se].fFamily===he[ve].fFamily&&this.chars[Se].ch===he[ve].ch&&(ke=!0),Se+=1;ke||(this.chars.push(he[ve]),Pe+=1)}}},addFonts:function(he,ve){if(he){if(this.chars)return this.isLoaded=!0,void(this.fonts=he.list);if(!document.body)return this.isLoaded=!0,he.list.forEach(function(ot){ot.helper=ue(ot),ot.cache={}}),void(this.fonts=he.list);var Se,ke=he.list,Me=ke.length,Pe=Me;for(Se=0;Se<Me;Se+=1){var Re,Oe,Be=!0;if(ke[Se].loaded=!1,ke[Se].monoCase=ce(ke[Se].fFamily,"monospace"),ke[Se].sansCase=ce(ke[Se].fFamily,"sans-serif"),ke[Se].fPath){if(ke[Se].fOrigin==="p"||ke[Se].origin===3){if((Re=document.querySelectorAll('style[f-forigin="p"][f-family="'+ke[Se].fFamily+'"], style[f-origin="3"][f-family="'+ke[Se].fFamily+'"]')).length>0&&(Be=!1),Be){var xe=createTag("style");xe.setAttribute("f-forigin",ke[Se].fOrigin),xe.setAttribute("f-origin",ke[Se].origin),xe.setAttribute("f-family",ke[Se].fFamily),xe.type="text/css",xe.innerText="@font-face {font-family: "+ke[Se].fFamily+"; font-style: normal; src: url('"+ke[Se].fPath+"');}",ve.appendChild(xe)}}else if(ke[Se].fOrigin==="g"||ke[Se].origin===1){for(Re=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Oe=0;Oe<Re.length;Oe+=1)Re[Oe].href.indexOf(ke[Se].fPath)!==-1&&(Be=!1);if(Be){var nt=createTag("link");nt.setAttribute("f-forigin",ke[Se].fOrigin),nt.setAttribute("f-origin",ke[Se].origin),nt.type="text/css",nt.rel="stylesheet",nt.href=ke[Se].fPath,document.body.appendChild(nt)}}else if(ke[Se].fOrigin==="t"||ke[Se].origin===2){for(Re=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Oe=0;Oe<Re.length;Oe+=1)ke[Se].fPath===Re[Oe].src&&(Be=!1);if(Be){var rt=createTag("link");rt.setAttribute("f-forigin",ke[Se].fOrigin),rt.setAttribute("f-origin",ke[Se].origin),rt.setAttribute("rel","stylesheet"),rt.setAttribute("href",ke[Se].fPath),ve.appendChild(rt)}}}else ke[Se].loaded=!0,Pe-=1;ke[Se].helper=ue(ke[Se],ve),ke[Se].cache={},this.fonts.push(ke[Se])}Pe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(he,ve,Se){for(var ke=0,Me=this.chars.length;ke<Me;){if(this.chars[ke].ch===he&&this.chars[ke].style===ve&&this.chars[ke].fFamily===Se)return this.chars[ke];ke+=1}return(typeof he=="string"&&he.charCodeAt(0)!==13||!he)&&console&&console.warn&&!this._warned&&(this._warned=!0),te},getFontByName:function(he){for(var ve=0,Se=this.fonts.length;ve<Se;){if(this.fonts[ve].fName===he)return this.fonts[ve];ve+=1}return this.fonts[0]},measureText:function(he,ve,Se){var ke=this.getFontByName(ve),Me=he.charCodeAt(0);if(!ke.cache[Me+1]){var Pe=ke.helper;if(he===" "){var Re=Pe.measureText("|"+he+"|"),Oe=Pe.measureText("||");ke.cache[Me+1]=(Re-Oe)/100}else ke.cache[Me+1]=Pe.measureText(he)/100}return ke.cache[Me+1]*Se},checkLoadedFonts:function(){var he,ve,Se,ke=this.fonts.length,Me=ke;for(he=0;he<ke;he+=1)this.fonts[he].loaded?Me-=1:this.fonts[he].fOrigin==="n"||this.fonts[he].origin===0?this.fonts[he].loaded=!0:(ve=this.fonts[he].monoCase.node,Se=this.fonts[he].monoCase.w,ve.offsetWidth!==Se?(Me-=1,this.fonts[he].loaded=!0):(ve=this.fonts[he].sansCase.node,Se=this.fonts[he].sansCase.w,ve.offsetWidth!==Se&&(Me-=1,this.fonts[he].loaded=!0)),this.fonts[he].loaded&&(this.fonts[he].sansCase.parent.parentNode.removeChild(this.fonts[he].sansCase.parent),this.fonts[he].monoCase.parent.parentNode.removeChild(this.fonts[he].monoCase.parent)));Me!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},fe}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(te){this.renderableComponents.indexOf(te)===-1&&this.renderableComponents.push(te)},removeRenderableComponent:function(te){this.renderableComponents.indexOf(te)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(te),1)},prepareRenderableFrame:function(te){this.checkLayerLimits(te)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(te){this.data.ip-this.data.st<=te&&this.data.op-this.data.st>te?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var te,ie=this.renderableComponents.length;for(te=0;te<ie;te+=1)this.renderableComponents[te].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(te){return blendModeEnums[te]||""}),blendModeEnums;function SliderEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,0,0,oe)}function AngleEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,0,0,oe)}function ColorEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,1,0,oe)}function PointEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,1,0,oe)}function LayerIndexEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,0,0,oe)}function MaskIndexEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,0,0,oe)}function CheckboxEffect(te,ie,oe){this.p=PropertyFactory.getProp(ie,te.v,0,0,oe)}function NoValueEffect(){this.p={}}function EffectsManager(te,ie){var oe,le=te.ef||[];this.effectElements=[];var ce,ue=le.length;for(oe=0;oe<ue;oe+=1)ce=new GroupEffect(le[oe],ie),this.effectElements.push(ce)}function GroupEffect(te,ie){this.init(te,ie)}function BaseElement(){}function FrameElement(){}function FootageElement(te,ie,oe){this.initFrame(),this.initRenderable(),this.assetData=ie.getAssetData(te.refId),this.footageData=ie.imageLoader.getAsset(this.assetData),this.initBaseData(te,ie,oe)}function AudioElement(te,ie,oe){this.initFrame(),this.initRenderable(),this.assetData=ie.getAssetData(te.refId),this.initBaseData(te,ie,oe),this._isPlaying=!1,this._canPlay=!1;var le=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(le),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=te.tm?PropertyFactory.getProp(this,te.tm,0,ie.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,te.au&&te.au.lv?te.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(te,ie,oe){this.data=te,this.element=ie,this.globalData=oe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var le,ce,ue=this.globalData.defs,fe=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(fe),this.solidPath="";var he,ve,Se,ke,Me,Pe,Re=this.masksProperties,Oe=0,Be=[],xe=createElementID(),nt="clipPath",rt="clip-path";for(le=0;le<fe;le+=1)if((Re[le].mode!=="a"&&Re[le].mode!=="n"||Re[le].inv||Re[le].o.k!==100||Re[le].o.x)&&(nt="mask",rt="mask"),Re[le].mode!=="s"&&Re[le].mode!=="i"||Oe!==0?Se=null:((Se=createNS("rect")).setAttribute("fill","#ffffff"),Se.setAttribute("width",this.element.comp.data.w||0),Se.setAttribute("height",this.element.comp.data.h||0),Be.push(Se)),ce=createNS("path"),Re[le].mode==="n")this.viewData[le]={op:PropertyFactory.getProp(this.element,Re[le].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Re[le],3),elem:ce,lastPath:""},ue.appendChild(ce);else{var ot;if(Oe+=1,ce.setAttribute("fill",Re[le].mode==="s"?"#000000":"#ffffff"),ce.setAttribute("clip-rule","nonzero"),Re[le].x.k!==0?(nt="mask",rt="mask",Pe=PropertyFactory.getProp(this.element,Re[le].x,0,null,this.element),ot=createElementID(),(ke=createNS("filter")).setAttribute("id",ot),(Me=createNS("feMorphology")).setAttribute("operator","erode"),Me.setAttribute("in","SourceGraphic"),Me.setAttribute("radius","0"),ke.appendChild(Me),ue.appendChild(ke),ce.setAttribute("stroke",Re[le].mode==="s"?"#000000":"#ffffff")):(Me=null,Pe=null),this.storedData[le]={elem:ce,x:Pe,expan:Me,lastPath:"",lastOperator:"",filterId:ot,lastRadius:0},Re[le].mode==="i"){ve=Be.length;var ht=createNS("g");for(he=0;he<ve;he+=1)ht.appendChild(Be[he]);var dt=createNS("mask");dt.setAttribute("mask-type","alpha"),dt.setAttribute("id",xe+"_"+Oe),dt.appendChild(ce),ue.appendChild(dt),ht.setAttribute("mask","url("+getLocationHref()+"#"+xe+"_"+Oe+")"),Be.length=0,Be.push(ht)}else Be.push(ce);Re[le].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[le]={elem:ce,lastPath:"",op:PropertyFactory.getProp(this.element,Re[le].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Re[le],3),invRect:Se},this.viewData[le].prop.k||this.drawPath(Re[le],this.viewData[le].prop.v,this.viewData[le])}for(this.maskElement=createNS(nt),fe=Be.length,le=0;le<fe;le+=1)this.maskElement.appendChild(Be[le]);Oe>0&&(this.maskElement.setAttribute("id",xe),this.element.maskedElement.setAttribute(rt,"url("+getLocationHref()+"#"+xe+")"),ue.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(te,ie){var oe;this.data=te,this.effectElements=[],this.initDynamicPropertyContainer(ie);var le,ce=this.data.ef.length,ue=this.data.ef;for(oe=0;oe<ce;oe+=1){switch(le=null,ue[oe].ty){case 0:le=new SliderEffect(ue[oe],ie,this);break;case 1:le=new AngleEffect(ue[oe],ie,this);break;case 2:le=new ColorEffect(ue[oe],ie,this);break;case 3:le=new PointEffect(ue[oe],ie,this);break;case 4:case 7:le=new CheckboxEffect(ue[oe],ie,this);break;case 10:le=new LayerIndexEffect(ue[oe],ie,this);break;case 11:le=new MaskIndexEffect(ue[oe],ie,this);break;case 5:le=new EffectsManager(ue[oe],ie);break;default:le=new NoValueEffect(ue[oe])}le&&this.effectElements.push(le)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var te=0,ie=this.data.masksProperties.length;te<ie;){if(this.data.masksProperties[te].mode!=="n"&&this.data.masksProperties[te].cl!==!1)return!0;te+=1}return!1},initExpressions:function(){var te=getExpressionInterfaces();if(te){var ie=te("layer"),oe=te("effects"),le=te("shape"),ce=te("text"),ue=te("comp");this.layerInterface=ie(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var fe=oe.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(fe),this.data.ty===0||this.data.xt?this.compInterface=ue(this):this.data.ty===4?(this.layerInterface.shapeInterface=le(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=ce(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var te=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=te},initBaseData:function(te,ie,oe){this.globalData=ie,this.comp=oe,this.data=te,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(te,ie){var oe,le=this.dynamicProperties.length;for(oe=0;oe<le;oe+=1)(ie||this._isParent&&this.dynamicProperties[oe].propType==="transform")&&(this.dynamicProperties[oe].getValue(),this.dynamicProperties[oe]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(te){this.dynamicProperties.indexOf(te)===-1&&this.dynamicProperties.push(te)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var te=getExpressionInterfaces();if(te){var ie=te("footage");this.layerInterface=ie(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(te){if(this.prepareRenderableFrame(te,!0),this.prepareProperties(te,!0),this.tm._placeholder)this._currentTime=te/this.data.sr;else{var ie=this.tm.v;this._currentTime=ie}this._volume=this.lv.v[0];var oe=this._volume*this._volumeMultiplier;this._previousVolume!==oe&&(this._previousVolume=oe,this.audio.volume(oe))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(te){this.audio.rate(te)},AudioElement.prototype.volume=function(te){this._volumeMultiplier=te,this._previousVolume=te*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(te){var ie,oe,le=this.layers.length;for(this.completeLayers=!0,ie=le-1;ie>=0;ie-=1)this.elements[ie]||(oe=this.layers[ie]).ip-oe.st<=te-this.layers[ie].st&&oe.op-oe.st>te-this.layers[ie].st&&this.buildItem(ie),this.completeLayers=!!this.elements[ie]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(te){switch(te.ty){case 2:return this.createImage(te);case 0:return this.createComp(te);case 1:return this.createSolid(te);case 3:return this.createNull(te);case 4:return this.createShape(te);case 5:return this.createText(te);case 6:return this.createAudio(te);case 13:return this.createCamera(te);case 15:return this.createFootage(te);default:return this.createNull(te)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(te){return new AudioElement(te,this.globalData,this)},BaseRenderer.prototype.createFootage=function(te){return new FootageElement(te,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var te,ie=this.layers.length;for(te=0;te<ie;te+=1)this.buildItem(te);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(te){var ie;this.completeLayers=!1;var oe,le=te.length,ce=this.layers.length;for(ie=0;ie<le;ie+=1)for(oe=0;oe<ce;){if(this.layers[oe].id===te[ie].id){this.layers[oe]=te[ie];break}oe+=1}},BaseRenderer.prototype.setProjectInterface=function(te){this.globalData.projectInterface=te},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(te,ie,oe){for(var le=this.elements,ce=this.layers,ue=0,fe=ce.length;ue<fe;)ce[ue].ind==ie&&(le[ue]&&le[ue]!==!0?(oe.push(le[ue]),le[ue].setAsParent(),ce[ue].parent!==void 0?this.buildElementParenting(te,ce[ue].parent,oe):te.setHierarchy(oe)):(this.buildItem(ue),this.addPendingElement(te))),ue+=1},BaseRenderer.prototype.addPendingElement=function(te){this.pendingElements.push(te)},BaseRenderer.prototype.searchExtraCompositions=function(te){var ie,oe=te.length;for(ie=0;ie<oe;ie+=1)if(te[ie].xt){var le=this.createComp(te[ie]);le.initExpressions(),this.globalData.projectInterface.registerComposition(le)}},BaseRenderer.prototype.getElementById=function(te){var ie,oe=this.elements.length;for(ie=0;ie<oe;ie+=1)if(this.elements[ie].data.ind===te)return this.elements[ie];return null},BaseRenderer.prototype.getElementByPath=function(te){var ie,oe=te.shift();if(typeof oe=="number")ie=this.elements[oe];else{var le,ce=this.elements.length;for(le=0;le<ce;le+=1)if(this.elements[le].data.nm===oe){ie=this.elements[le];break}}return te.length===0?ie:ie.getElementByPath(te)},BaseRenderer.prototype.setupGlobalData=function(te,ie){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(te.chars),this.globalData.fontManager.addFonts(te.fonts,ie),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=te.fr,this.globalData.nm=te.nm,this.globalData.compSize={w:te.w,h:te.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var te,ie=this.finalTransform.mat,oe=0,le=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;oe<le;){if(this.hierarchy[oe].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}oe+=1}if(this.finalTransform._matMdf)for(te=this.finalTransform.mProp.v.props,ie.cloneFromProps(te),oe=0;oe<le;oe+=1)te=this.hierarchy[oe].finalTransform.mProp.v.props,ie.transform(te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7],te[8],te[9],te[10],te[11],te[12],te[13],te[14],te[15])}},globalToLocal:function(te){var ie=[];ie.push(this.finalTransform);for(var oe,le=!0,ce=this.comp;le;)ce.finalTransform?(ce.data.hasMask&&ie.splice(0,0,ce.finalTransform),ce=ce.comp):le=!1;var ue,fe=ie.length;for(oe=0;oe<fe;oe+=1)ue=ie[oe].mat.applyToPointArray(0,0,0),te=[te[0]-ue[0],te[1]-ue[1],0];return te},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(te){return this.viewData[te].prop},MaskElement.prototype.renderFrame=function(te){var ie,oe=this.element.finalTransform.mat,le=this.masksProperties.length;for(ie=0;ie<le;ie+=1)if((this.viewData[ie].prop._mdf||te)&&this.drawPath(this.masksProperties[ie],this.viewData[ie].prop.v,this.viewData[ie]),(this.viewData[ie].op._mdf||te)&&this.viewData[ie].elem.setAttribute("fill-opacity",this.viewData[ie].op.v),this.masksProperties[ie].mode!=="n"&&(this.viewData[ie].invRect&&(this.element.finalTransform.mProp._mdf||te)&&this.viewData[ie].invRect.setAttribute("transform",oe.getInverseMatrix().to2dCSS()),this.storedData[ie].x&&(this.storedData[ie].x._mdf||te))){var ce=this.storedData[ie].expan;this.storedData[ie].x.v<0?(this.storedData[ie].lastOperator!=="erode"&&(this.storedData[ie].lastOperator="erode",this.storedData[ie].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[ie].filterId+")")),ce.setAttribute("radius",-this.storedData[ie].x.v)):(this.storedData[ie].lastOperator!=="dilate"&&(this.storedData[ie].lastOperator="dilate",this.storedData[ie].elem.setAttribute("filter",null)),this.storedData[ie].elem.setAttribute("stroke-width",2*this.storedData[ie].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var te="M0,0 ";return te+=" h"+this.globalData.compSize.w,te+=" v"+this.globalData.compSize.h,te+=" h-"+this.globalData.compSize.w,te+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(te,ie,oe){var le,ce,ue=" M"+ie.v[0][0]+","+ie.v[0][1];for(ce=ie._length,le=1;le<ce;le+=1)ue+=" C"+ie.o[le-1][0]+","+ie.o[le-1][1]+" "+ie.i[le][0]+","+ie.i[le][1]+" "+ie.v[le][0]+","+ie.v[le][1];if(ie.c&&ce>1&&(ue+=" C"+ie.o[le-1][0]+","+ie.o[le-1][1]+" "+ie.i[0][0]+","+ie.i[0][1]+" "+ie.v[0][0]+","+ie.v[0][1]),oe.lastPath!==ue){var fe="";oe.elem&&(ie.c&&(fe=te.inv?this.solidPath+ue:ue),oe.elem.setAttribute("d",fe)),oe.lastPath=ue}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var te={};return te.createFilter=function(ie,oe){var le=createNS("filter");return le.setAttribute("id",ie),oe!==!0&&(le.setAttribute("filterUnits","objectBoundingBox"),le.setAttribute("x","0%"),le.setAttribute("y","0%"),le.setAttribute("width","100%"),le.setAttribute("height","100%")),le},te.createAlphaToLuminanceFilter=function(){var ie=createNS("feColorMatrix");return ie.setAttribute("type","matrix"),ie.setAttribute("color-interpolation-filters","sRGB"),ie.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),ie},te}(),featureSupport=function(){var te={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(te.maskType=!1),/firefox/i.test(navigator.userAgent)&&(te.svgLumaHidden=!1),te}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(te){var ie,oe,le="SourceGraphic",ce=te.data.ef?te.data.ef.length:0,ue=createElementID(),fe=filtersFactory.createFilter(ue,!0),he=0;for(this.filters=[],ie=0;ie<ce;ie+=1){oe=null;var ve=te.data.ef[ie].ty;registeredEffects[ve]&&(oe=new registeredEffects[ve].effect(fe,te.effectsManager.effectElements[ie],te,idPrefix+he,le),le=idPrefix+he,registeredEffects[ve].countsAsEffect&&(he+=1)),oe&&this.filters.push(oe)}he&&(te.globalData.defs.appendChild(fe),te.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+ue+")")),this.filters.length&&te.addRenderableComponent(this)}function registerEffect(te,ie,oe){registeredEffects[te]={effect:ie,countsAsEffect:oe}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(te,ie,oe){this.assetData=ie.getAssetData(te.refId),this.initElement(te,ie,oe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(te,ie){this.elem=te,this.pos=ie}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(te){var ie,oe=this.filters.length;for(ie=0;ie<oe;ie+=1)this.filters[ie].renderFrame(te)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var te=null;if(this.data.td){this.matteMasks={};var ie=createNS("g");ie.setAttribute("id",this.layerId),ie.appendChild(this.layerElement),te=ie,this.globalData.defs.appendChild(ie)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),te=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var oe=createNS("clipPath"),le=createNS("path");le.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var ce=createElementID();if(oe.setAttribute("id",ce),oe.appendChild(le),this.globalData.defs.appendChild(oe),this.checkMasks()){var ue=createNS("g");ue.setAttribute("clip-path","url("+getLocationHref()+"#"+ce+")"),ue.appendChild(this.layerElement),this.transformedElement=ue,te?te.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+ce+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(te){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[te]){var ie,oe,le,ce,ue=this.layerId+"_"+te;if(te===1||te===3){var fe=createNS("mask");fe.setAttribute("id",ue),fe.setAttribute("mask-type",te===3?"luminance":"alpha"),(le=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),fe.appendChild(le),this.globalData.defs.appendChild(fe),featureSupport.maskType||te!==1||(fe.setAttribute("mask-type","luminance"),ie=createElementID(),oe=filtersFactory.createFilter(ie),this.globalData.defs.appendChild(oe),oe.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(ce=createNS("g")).appendChild(le),fe.appendChild(ce),ce.setAttribute("filter","url("+getLocationHref()+"#"+ie+")"))}else if(te===2){var he=createNS("mask");he.setAttribute("id",ue),he.setAttribute("mask-type","alpha");var ve=createNS("g");he.appendChild(ve),ie=createElementID(),oe=filtersFactory.createFilter(ie);var Se=createNS("feComponentTransfer");Se.setAttribute("in","SourceGraphic"),oe.appendChild(Se);var ke=createNS("feFuncA");ke.setAttribute("type","table"),ke.setAttribute("tableValues","1.0 0.0"),Se.appendChild(ke),this.globalData.defs.appendChild(oe);var Me=createNS("rect");Me.setAttribute("width",this.comp.data.w),Me.setAttribute("height",this.comp.data.h),Me.setAttribute("x","0"),Me.setAttribute("y","0"),Me.setAttribute("fill","#ffffff"),Me.setAttribute("opacity","0"),ve.setAttribute("filter","url("+getLocationHref()+"#"+ie+")"),ve.appendChild(Me),(le=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ve.appendChild(le),featureSupport.maskType||(he.setAttribute("mask-type","luminance"),oe.appendChild(filtersFactory.createAlphaToLuminanceFilter()),ce=createNS("g"),ve.appendChild(Me),ce.appendChild(this.layerElement),ve.appendChild(ce)),this.globalData.defs.appendChild(he)}this.matteMasks[te]=ue}return this.matteMasks[te]},setMatte:function(te){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+te+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(te){this.hierarchy=te},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(te,ie,oe){this.initFrame(),this.initBaseData(te,ie,oe),this.initTransform(te,ie,oe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(te){this._mdf=!1,this.prepareRenderableFrame(te),this.prepareProperties(te,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var te=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",te),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(te){var ie,oe=this.shapeModifiers.length;for(ie=0;ie<oe;ie+=1)this.shapeModifiers[ie].addShape(te)},isShapeInAnimatedModifiers:function(te){for(var ie=this.shapeModifiers.length;0<ie;)if(this.shapeModifiers[0].isAnimatedWithShape(te))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var te,ie=this.shapes.length;for(te=0;te<ie;te+=1)this.shapes[te].sh.reset();for(te=(ie=this.shapeModifiers.length)-1;te>=0&&!this.shapeModifiers[te].processShapes(this._isFirstFrame);te-=1);}},searchProcessedElement:function(te){for(var ie=this.processedElements,oe=0,le=ie.length;oe<le;){if(ie[oe].elem===te)return ie[oe].pos;oe+=1}return 0},addProcessedElement:function(te,ie){for(var oe=this.processedElements,le=oe.length;le;)if(oe[le-=1].elem===te)return void(oe[le].pos=ie);oe.push(new ProcessedElement(te,ie))},prepareFrame:function(te){this.prepareRenderableFrame(te),this.prepareProperties(te,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(te,ie,oe){this.caches=[],this.styles=[],this.transformers=te,this.lStr="",this.sh=oe,this.lvl=ie,this._isAnimated=!!oe.k;for(var le=0,ce=te.length;le<ce;){if(te[le].mProps.dynamicProperties.length){this._isAnimated=!0;break}le+=1}}function SVGStyleData(te,ie){this.data=te,this.type=te.ty,this.d="",this.lvl=ie,this._mdf=!1,this.closed=te.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(te,ie,oe,le){var ce;this.elem=te,this.frameId=-1,this.dataProps=createSizedArray(ie.length),this.renderer=oe,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",ie.length?ie.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(le);var ue,fe=ie.length||0;for(ce=0;ce<fe;ce+=1)ue=PropertyFactory.getProp(te,ie[ce].v,0,0,this),this.k=ue.k||this.k,this.dataProps[ce]={n:ie[ce].n,p:ue};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(te,ie,oe){this.initDynamicPropertyContainer(te),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(te,ie.o,0,.01,this),this.w=PropertyFactory.getProp(te,ie.w,0,null,this),this.d=new DashProperty(te,ie.d||{},"svg",this),this.c=PropertyFactory.getProp(te,ie.c,1,255,this),this.style=oe,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(te,ie,oe){this.initDynamicPropertyContainer(te),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(te,ie.o,0,.01,this),this.c=PropertyFactory.getProp(te,ie.c,1,255,this),this.style=oe}function SVGNoStyleData(te,ie,oe){this.initDynamicPropertyContainer(te),this.getValue=this.iterateDynamicProperties,this.style=oe}function GradientProperty(te,ie,oe){this.data=ie,this.c=createTypedArray("uint8c",4*ie.p);var le=ie.k.k[0].s?ie.k.k[0].s.length-4*ie.p:ie.k.k.length-4*ie.p;this.o=createTypedArray("float32",le),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=le,this.initDynamicPropertyContainer(oe),this.prop=PropertyFactory.getProp(te,ie.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(te,ie,oe){this.initDynamicPropertyContainer(te),this.getValue=this.iterateDynamicProperties,this.initGradientData(te,ie,oe)}function SVGGradientStrokeStyleData(te,ie,oe){this.initDynamicPropertyContainer(te),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(te,ie.w,0,null,this),this.d=new DashProperty(te,ie.d||{},"svg",this),this.initGradientData(te,ie,oe),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(te,ie,oe){this.transform={mProps:te,op:ie,container:oe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(te){if((this.elem.globalData.frameId!==this.frameId||te)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||te,this._mdf)){var ie=0,oe=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),ie=0;ie<oe;ie+=1)this.dataProps[ie].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[ie].p.v:this.dashArray[ie]=this.dataProps[ie].p.v:this.dashoffset[0]=this.dataProps[ie].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(te,ie){for(var oe=0,le=this.o.length/2;oe<le;){if(Math.abs(te[4*oe]-te[4*ie+2*oe])>.01)return!1;oe+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var te=0,ie=this.data.k.k.length;te<ie;){if(!this.comparePoints(this.data.k.k[te].s,this.data.p))return!1;te+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(te){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||te){var ie,oe,le,ce=4*this.data.p;for(ie=0;ie<ce;ie+=1)oe=ie%4==0?100:255,le=Math.round(this.prop.v[ie]*oe),this.c[ie]!==le&&(this.c[ie]=le,this._cmdf=!te);if(this.o.length)for(ce=this.prop.v.length,ie=4*this.data.p;ie<ce;ie+=1)oe=ie%2==0?100:1,le=ie%2==0?Math.round(100*this.prop.v[ie]):this.prop.v[ie],this.o[ie-4*this.data.p]!==le&&(this.o[ie-4*this.data.p]=le,this._omdf=!te);this._mdf=!te}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(te,ie,oe){this.o=PropertyFactory.getProp(te,ie.o,0,.01,this),this.s=PropertyFactory.getProp(te,ie.s,1,null,this),this.e=PropertyFactory.getProp(te,ie.e,1,null,this),this.h=PropertyFactory.getProp(te,ie.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(te,ie.a||{k:0},0,degToRads,this),this.g=new GradientProperty(te,ie.g,this),this.style=oe,this.stops=[],this.setGradientData(oe.pElem,ie),this.setGradientOpacity(ie,oe),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(te,ie){var oe=createElementID(),le=createNS(ie.t===1?"linearGradient":"radialGradient");le.setAttribute("id",oe),le.setAttribute("spreadMethod","pad"),le.setAttribute("gradientUnits","userSpaceOnUse");var ce,ue,fe,he=[];for(fe=4*ie.g.p,ue=0;ue<fe;ue+=4)ce=createNS("stop"),le.appendChild(ce),he.push(ce);te.setAttribute(ie.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+oe+")"),this.gf=le,this.cst=he},SVGGradientFillStyleData.prototype.setGradientOpacity=function(te,ie){if(this.g._hasOpacity&&!this.g._collapsable){var oe,le,ce,ue=createNS("mask"),fe=createNS("path");ue.appendChild(fe);var he=createElementID(),ve=createElementID();ue.setAttribute("id",ve);var Se=createNS(te.t===1?"linearGradient":"radialGradient");Se.setAttribute("id",he),Se.setAttribute("spreadMethod","pad"),Se.setAttribute("gradientUnits","userSpaceOnUse"),ce=te.g.k.k[0].s?te.g.k.k[0].s.length:te.g.k.k.length;var ke=this.stops;for(le=4*te.g.p;le<ce;le+=2)(oe=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),Se.appendChild(oe),ke.push(oe);fe.setAttribute(te.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+he+")"),te.ty==="gs"&&(fe.setAttribute("stroke-linecap",lineCapEnum[te.lc||2]),fe.setAttribute("stroke-linejoin",lineJoinEnum[te.lj||2]),te.lj===1&&fe.setAttribute("stroke-miterlimit",te.ml)),this.of=Se,this.ms=ue,this.ost=ke,this.maskId=ve,ie.msElem=fe}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(te,ie,oe,le){if(ie===0)return"";var ce,ue=te.o,fe=te.i,he=te.v,ve=" M"+le.applyToPointStringified(he[0][0],he[0][1]);for(ce=1;ce<ie;ce+=1)ve+=" C"+le.applyToPointStringified(ue[ce-1][0],ue[ce-1][1])+" "+le.applyToPointStringified(fe[ce][0],fe[ce][1])+" "+le.applyToPointStringified(he[ce][0],he[ce][1]);return oe&&ie&&(ve+=" C"+le.applyToPointStringified(ue[ce-1][0],ue[ce-1][1])+" "+le.applyToPointStringified(fe[0][0],fe[0][1])+" "+le.applyToPointStringified(he[0][0],he[0][1]),ve+="z"),ve},SVGElementsRenderer=function(){var te=new Matrix,ie=new Matrix;function oe(Se,ke,Me){(Me||ke.transform.op._mdf)&&ke.transform.container.setAttribute("opacity",ke.transform.op.v),(Me||ke.transform.mProps._mdf)&&ke.transform.container.setAttribute("transform",ke.transform.mProps.v.to2dCSS())}function le(){}function ce(Se,ke,Me){var Pe,Re,Oe,Be,xe,nt,rt,ot,ht,dt,Rt,Ct=ke.styles.length,Lt=ke.lvl;for(nt=0;nt<Ct;nt+=1){if(Be=ke.sh._mdf||Me,ke.styles[nt].lvl<Lt){for(ot=ie.reset(),dt=Lt-ke.styles[nt].lvl,Rt=ke.transformers.length-1;!Be&&dt>0;)Be=ke.transformers[Rt].mProps._mdf||Be,dt-=1,Rt-=1;if(Be)for(dt=Lt-ke.styles[nt].lvl,Rt=ke.transformers.length-1;dt>0;)ht=ke.transformers[Rt].mProps.v.props,ot.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15]),dt-=1,Rt-=1}else ot=te;if(Re=(rt=ke.sh.paths)._length,Be){for(Oe="",Pe=0;Pe<Re;Pe+=1)(xe=rt.shapes[Pe])&&xe._length&&(Oe+=buildShapeString(xe,xe._length,xe.c,ot));ke.caches[nt]=Oe}else Oe=ke.caches[nt];ke.styles[nt].d+=Se.hd===!0?"":Oe,ke.styles[nt]._mdf=Be||ke.styles[nt]._mdf}}function ue(Se,ke,Me){var Pe=ke.style;(ke.c._mdf||Me)&&Pe.pElem.setAttribute("fill","rgb("+bmFloor(ke.c.v[0])+","+bmFloor(ke.c.v[1])+","+bmFloor(ke.c.v[2])+")"),(ke.o._mdf||Me)&&Pe.pElem.setAttribute("fill-opacity",ke.o.v)}function fe(Se,ke,Me){he(Se,ke,Me),ve(Se,ke,Me)}function he(Se,ke,Me){var Pe,Re,Oe,Be,xe,nt=ke.gf,rt=ke.g._hasOpacity,ot=ke.s.v,ht=ke.e.v;if(ke.o._mdf||Me){var dt=Se.ty==="gf"?"fill-opacity":"stroke-opacity";ke.style.pElem.setAttribute(dt,ke.o.v)}if(ke.s._mdf||Me){var Rt=Se.t===1?"x1":"cx",Ct=Rt==="x1"?"y1":"cy";nt.setAttribute(Rt,ot[0]),nt.setAttribute(Ct,ot[1]),rt&&!ke.g._collapsable&&(ke.of.setAttribute(Rt,ot[0]),ke.of.setAttribute(Ct,ot[1]))}if(ke.g._cmdf||Me){Pe=ke.cst;var Lt=ke.g.c;for(Oe=Pe.length,Re=0;Re<Oe;Re+=1)(Be=Pe[Re]).setAttribute("offset",Lt[4*Re]+"%"),Be.setAttribute("stop-color","rgb("+Lt[4*Re+1]+","+Lt[4*Re+2]+","+Lt[4*Re+3]+")")}if(rt&&(ke.g._omdf||Me)){var Qn=ke.g.o;for(Oe=(Pe=ke.g._collapsable?ke.cst:ke.ost).length,Re=0;Re<Oe;Re+=1)Be=Pe[Re],ke.g._collapsable||Be.setAttribute("offset",Qn[2*Re]+"%"),Be.setAttribute("stop-opacity",Qn[2*Re+1])}if(Se.t===1)(ke.e._mdf||Me)&&(nt.setAttribute("x2",ht[0]),nt.setAttribute("y2",ht[1]),rt&&!ke.g._collapsable&&(ke.of.setAttribute("x2",ht[0]),ke.of.setAttribute("y2",ht[1])));else if((ke.s._mdf||ke.e._mdf||Me)&&(xe=Math.sqrt(Math.pow(ot[0]-ht[0],2)+Math.pow(ot[1]-ht[1],2)),nt.setAttribute("r",xe),rt&&!ke.g._collapsable&&ke.of.setAttribute("r",xe)),ke.e._mdf||ke.h._mdf||ke.a._mdf||Me){xe||(xe=Math.sqrt(Math.pow(ot[0]-ht[0],2)+Math.pow(ot[1]-ht[1],2)));var Mn=Math.atan2(ht[1]-ot[1],ht[0]-ot[0]),Gn=ke.h.v;Gn>=1?Gn=.99:Gn<=-1&&(Gn=-.99);var Sa=xe*Gn,Ta=Math.cos(Mn+ke.a.v)*Sa+ot[0],Kn=Math.sin(Mn+ke.a.v)*Sa+ot[1];nt.setAttribute("fx",Ta),nt.setAttribute("fy",Kn),rt&&!ke.g._collapsable&&(ke.of.setAttribute("fx",Ta),ke.of.setAttribute("fy",Kn))}}function ve(Se,ke,Me){var Pe=ke.style,Re=ke.d;Re&&(Re._mdf||Me)&&Re.dashStr&&(Pe.pElem.setAttribute("stroke-dasharray",Re.dashStr),Pe.pElem.setAttribute("stroke-dashoffset",Re.dashoffset[0])),ke.c&&(ke.c._mdf||Me)&&Pe.pElem.setAttribute("stroke","rgb("+bmFloor(ke.c.v[0])+","+bmFloor(ke.c.v[1])+","+bmFloor(ke.c.v[2])+")"),(ke.o._mdf||Me)&&Pe.pElem.setAttribute("stroke-opacity",ke.o.v),(ke.w._mdf||Me)&&(Pe.pElem.setAttribute("stroke-width",ke.w.v),Pe.msElem&&Pe.msElem.setAttribute("stroke-width",ke.w.v))}return{createRenderFunction:function(Se){switch(Se.ty){case"fl":return ue;case"gf":return he;case"gs":return fe;case"st":return ve;case"sh":case"el":case"rc":case"sr":return ce;case"tr":return oe;case"no":return le;default:return null}}}}();function SVGShapeElement(te,ie,oe){this.shapes=[],this.shapesData=te.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(te,ie,oe),this.prevViewData=[]}function LetterProps(te,ie,oe,le,ce,ue){this.o=te,this.sw=ie,this.sc=oe,this.fc=le,this.m=ce,this.p=ue,this._mdf={o:!0,sw:!!ie,sc:!!oe,fc:!!le,m:!0,p:!0}}function TextProperty(te,ie){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=ie,this.elem=te,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var te,ie,oe,le,ce=this.shapes.length,ue=this.stylesList.length,fe=[],he=!1;for(oe=0;oe<ue;oe+=1){for(le=this.stylesList[oe],he=!1,fe.length=0,te=0;te<ce;te+=1)(ie=this.shapes[te]).styles.indexOf(le)!==-1&&(fe.push(ie),he=ie._isAnimated||he);fe.length>1&&he&&this.setShapesAsAnimated(fe)}},SVGShapeElement.prototype.setShapesAsAnimated=function(te){var ie,oe=te.length;for(ie=0;ie<oe;ie+=1)te[ie].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(te,ie){var oe,le=new SVGStyleData(te,ie),ce=le.pElem;return te.ty==="st"?oe=new SVGStrokeStyleData(this,te,le):te.ty==="fl"?oe=new SVGFillStyleData(this,te,le):te.ty==="gf"||te.ty==="gs"?(oe=new(te.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,te,le),this.globalData.defs.appendChild(oe.gf),oe.maskId&&(this.globalData.defs.appendChild(oe.ms),this.globalData.defs.appendChild(oe.of),ce.setAttribute("mask","url("+getLocationHref()+"#"+oe.maskId+")"))):te.ty==="no"&&(oe=new SVGNoStyleData(this,te,le)),te.ty!=="st"&&te.ty!=="gs"||(ce.setAttribute("stroke-linecap",lineCapEnum[te.lc||2]),ce.setAttribute("stroke-linejoin",lineJoinEnum[te.lj||2]),ce.setAttribute("fill-opacity","0"),te.lj===1&&ce.setAttribute("stroke-miterlimit",te.ml)),te.r===2&&ce.setAttribute("fill-rule","evenodd"),te.ln&&ce.setAttribute("id",te.ln),te.cl&&ce.setAttribute("class",te.cl),te.bm&&(ce.style["mix-blend-mode"]=getBlendMode(te.bm)),this.stylesList.push(le),this.addToAnimatedContents(te,oe),oe},SVGShapeElement.prototype.createGroupElement=function(te){var ie=new ShapeGroupData;return te.ln&&ie.gr.setAttribute("id",te.ln),te.cl&&ie.gr.setAttribute("class",te.cl),te.bm&&(ie.gr.style["mix-blend-mode"]=getBlendMode(te.bm)),ie},SVGShapeElement.prototype.createTransformElement=function(te,ie){var oe=TransformPropertyFactory.getTransformProperty(this,te,this),le=new SVGTransformData(oe,oe.o,ie);return this.addToAnimatedContents(te,le),le},SVGShapeElement.prototype.createShapeElement=function(te,ie,oe){var le=4;te.ty==="rc"?le=5:te.ty==="el"?le=6:te.ty==="sr"&&(le=7);var ce=new SVGShapeData(ie,oe,ShapePropertyFactory.getShapeProp(this,te,le,this));return this.shapes.push(ce),this.addShapeToModifiers(ce),this.addToAnimatedContents(te,ce),ce},SVGShapeElement.prototype.addToAnimatedContents=function(te,ie){for(var oe=0,le=this.animatedContents.length;oe<le;){if(this.animatedContents[oe].element===ie)return;oe+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(te),element:ie,data:te})},SVGShapeElement.prototype.setElementStyles=function(te){var ie,oe=te.styles,le=this.stylesList.length;for(ie=0;ie<le;ie+=1)this.stylesList[ie].closed||oe.push(this.stylesList[ie])},SVGShapeElement.prototype.reloadShapes=function(){var te;this._isFirstFrame=!0;var ie=this.itemsData.length;for(te=0;te<ie;te+=1)this.prevViewData[te]=this.itemsData[te];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),ie=this.dynamicProperties.length,te=0;te<ie;te+=1)this.dynamicProperties[te].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(te,ie,oe,le,ce,ue,fe){var he,ve,Se,ke,Me,Pe,Re=[].concat(ue),Oe=te.length-1,Be=[],xe=[];for(he=Oe;he>=0;he-=1){if((Pe=this.searchProcessedElement(te[he]))?ie[he]=oe[Pe-1]:te[he]._render=fe,te[he].ty==="fl"||te[he].ty==="st"||te[he].ty==="gf"||te[he].ty==="gs"||te[he].ty==="no")Pe?ie[he].style.closed=!1:ie[he]=this.createStyleElement(te[he],ce),te[he]._render&&ie[he].style.pElem.parentNode!==le&&le.appendChild(ie[he].style.pElem),Be.push(ie[he].style);else if(te[he].ty==="gr"){if(Pe)for(Se=ie[he].it.length,ve=0;ve<Se;ve+=1)ie[he].prevViewData[ve]=ie[he].it[ve];else ie[he]=this.createGroupElement(te[he]);this.searchShapes(te[he].it,ie[he].it,ie[he].prevViewData,ie[he].gr,ce+1,Re,fe),te[he]._render&&ie[he].gr.parentNode!==le&&le.appendChild(ie[he].gr)}else te[he].ty==="tr"?(Pe||(ie[he]=this.createTransformElement(te[he],le)),ke=ie[he].transform,Re.push(ke)):te[he].ty==="sh"||te[he].ty==="rc"||te[he].ty==="el"||te[he].ty==="sr"?(Pe||(ie[he]=this.createShapeElement(te[he],Re,ce)),this.setElementStyles(ie[he])):te[he].ty==="tm"||te[he].ty==="rd"||te[he].ty==="ms"||te[he].ty==="pb"||te[he].ty==="zz"||te[he].ty==="op"?(Pe?(Me=ie[he]).closed=!1:((Me=ShapeModifiers.getModifier(te[he].ty)).init(this,te[he]),ie[he]=Me,this.shapeModifiers.push(Me)),xe.push(Me)):te[he].ty==="rp"&&(Pe?(Me=ie[he]).closed=!0:(Me=ShapeModifiers.getModifier(te[he].ty),ie[he]=Me,Me.init(this,te,he,ie),this.shapeModifiers.push(Me),fe=!1),xe.push(Me));this.addProcessedElement(te[he],he+1)}for(Oe=Be.length,he=0;he<Oe;he+=1)Be[he].closed=!0;for(Oe=xe.length,he=0;he<Oe;he+=1)xe[he].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var te;this.renderModifiers();var ie=this.stylesList.length;for(te=0;te<ie;te+=1)this.stylesList[te].reset();for(this.renderShape(),te=0;te<ie;te+=1)(this.stylesList[te]._mdf||this._isFirstFrame)&&(this.stylesList[te].msElem&&(this.stylesList[te].msElem.setAttribute("d",this.stylesList[te].d),this.stylesList[te].d="M0 0"+this.stylesList[te].d),this.stylesList[te].pElem.setAttribute("d",this.stylesList[te].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var te,ie,oe=this.animatedContents.length;for(te=0;te<oe;te+=1)ie=this.animatedContents[te],(this._isFirstFrame||ie.element._isAnimated)&&ie.data!==!0&&ie.fn(ie.data,ie.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(te,ie,oe,le,ce,ue){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var fe=!1;return this.o!==te&&(this.o=te,this._mdf.o=!0,fe=!0),this.sw!==ie&&(this.sw=ie,this._mdf.sw=!0,fe=!0),this.sc!==oe&&(this.sc=oe,this._mdf.sc=!0,fe=!0),this.fc!==le&&(this.fc=le,this._mdf.fc=!0,fe=!0),this.m!==ce&&(this.m=ce,this._mdf.m=!0,fe=!0),!ue.length||this.p[0]===ue[0]&&this.p[1]===ue[1]&&this.p[4]===ue[4]&&this.p[5]===ue[5]&&this.p[12]===ue[12]&&this.p[13]===ue[13]||(this.p=ue,this._mdf.p=!0,fe=!0),fe},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(te,ie){for(var oe in ie)Object.prototype.hasOwnProperty.call(ie,oe)&&(te[oe]=ie[oe]);return te},TextProperty.prototype.setCurrentData=function(te){te.__complete||this.completeTextData(te),this.currentData=te,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(te){this.effectsSequence.push(te),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(te){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||te){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var ie=this.currentData,oe=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var le;this.lock=!0,this._mdf=!1;var ce=this.effectsSequence.length,ue=te||this.data.d.k[this.keysIndex].s;for(le=0;le<ce;le+=1)ue=oe!==this.keysIndex?this.effectsSequence[le](ue,ue.t):this.effectsSequence[le](this.currentData,ue.t);ie!==ue&&this.setCurrentData(ue),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var te=this.data.d.k,ie=this.elem.comp.renderedFrame,oe=0,le=te.length;oe<=le-1&&!(oe===le-1||te[oe+1].t>ie);)oe+=1;return this.keysIndex!==oe&&(this.keysIndex=oe),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(te){for(var ie,oe,le=[],ce=0,ue=te.length,fe=!1;ce<ue;)ie=te.charCodeAt(ce),FontManager.isCombinedCharacter(ie)?le[le.length-1]+=te.charAt(ce):ie>=55296&&ie<=56319?(oe=te.charCodeAt(ce+1))>=56320&&oe<=57343?(fe||FontManager.isModifier(ie,oe)?(le[le.length-1]+=te.substr(ce,2),fe=!1):le.push(te.substr(ce,2)),ce+=1):le.push(te.charAt(ce)):ie>56319?(oe=te.charCodeAt(ce+1),FontManager.isZeroWidthJoiner(ie,oe)?(fe=!0,le[le.length-1]+=te.substr(ce,2),ce+=1):le.push(te.charAt(ce))):FontManager.isZeroWidthJoiner(ie)?(le[le.length-1]+=te.charAt(ce),fe=!0):le.push(te.charAt(ce)),ce+=1;return le},TextProperty.prototype.completeTextData=function(te){te.__complete=!0;var ie,oe,le,ce,ue,fe,he,ve=this.elem.globalData.fontManager,Se=this.data,ke=[],Me=0,Pe=Se.m.g,Re=0,Oe=0,Be=0,xe=[],nt=0,rt=0,ot=ve.getFontByName(te.f),ht=0,dt=getFontProperties(ot);te.fWeight=dt.weight,te.fStyle=dt.style,te.finalSize=te.s,te.finalText=this.buildFinalText(te.t),oe=te.finalText.length,te.finalLineHeight=te.lh;var Rt,Ct=te.tr/1e3*te.finalSize;if(te.sz)for(var Lt,Qn,Mn=!0,Gn=te.sz[0],Sa=te.sz[1];Mn;){Lt=0,nt=0,oe=(Qn=this.buildFinalText(te.t)).length,Ct=te.tr/1e3*te.finalSize;var Ta=-1;for(ie=0;ie<oe;ie+=1)Rt=Qn[ie].charCodeAt(0),le=!1,Qn[ie]===" "?Ta=ie:Rt!==13&&Rt!==3||(nt=0,le=!0,Lt+=te.finalLineHeight||1.2*te.finalSize),ve.chars?(he=ve.getCharData(Qn[ie],ot.fStyle,ot.fFamily),ht=le?0:he.w*te.finalSize/100):ht=ve.measureText(Qn[ie],te.f,te.finalSize),nt+ht>Gn&&Qn[ie]!==" "?(Ta===-1?oe+=1:ie=Ta,Lt+=te.finalLineHeight||1.2*te.finalSize,Qn.splice(ie,Ta===ie?1:0,"\r"),Ta=-1,nt=0):(nt+=ht,nt+=Ct);Lt+=ot.ascent*te.finalSize/100,this.canResize&&te.finalSize>this.minimumFontSize&&Sa<Lt?(te.finalSize-=1,te.finalLineHeight=te.finalSize*te.lh/te.s):(te.finalText=Qn,oe=te.finalText.length,Mn=!1)}nt=-Ct,ht=0;var Kn,ka=0;for(ie=0;ie<oe;ie+=1)if(le=!1,(Rt=(Kn=te.finalText[ie]).charCodeAt(0))===13||Rt===3?(ka=0,xe.push(nt),rt=nt>rt?nt:rt,nt=-2*Ct,ce="",le=!0,Be+=1):ce=Kn,ve.chars?(he=ve.getCharData(Kn,ot.fStyle,ve.getFontByName(te.f).fFamily),ht=le?0:he.w*te.finalSize/100):ht=ve.measureText(ce,te.f,te.finalSize),Kn===" "?ka+=ht+Ct:(nt+=ht+Ct+ka,ka=0),ke.push({l:ht,an:ht,add:Re,n:le,anIndexes:[],val:ce,line:Be,animatorJustifyOffset:0}),Pe==2){if(Re+=ht,ce===""||ce===" "||ie===oe-1){for(ce!==""&&ce!==" "||(Re-=ht);Oe<=ie;)ke[Oe].an=Re,ke[Oe].ind=Me,ke[Oe].extra=ht,Oe+=1;Me+=1,Re=0}}else if(Pe==3){if(Re+=ht,ce===""||ie===oe-1){for(ce===""&&(Re-=ht);Oe<=ie;)ke[Oe].an=Re,ke[Oe].ind=Me,ke[Oe].extra=ht,Oe+=1;Re=0,Me+=1}}else ke[Me].ind=Me,ke[Me].extra=0,Me+=1;if(te.l=ke,rt=nt>rt?nt:rt,xe.push(nt),te.sz)te.boxWidth=te.sz[0],te.justifyOffset=0;else switch(te.boxWidth=rt,te.j){case 1:te.justifyOffset=-te.boxWidth;break;case 2:te.justifyOffset=-te.boxWidth/2;break;default:te.justifyOffset=0}te.lineWidths=xe;var Ra,Jn,zn,_a,Ia=Se.a;fe=Ia.length;var wa=[];for(ue=0;ue<fe;ue+=1){for((Ra=Ia[ue]).a.sc&&(te.strokeColorAnim=!0),Ra.a.sw&&(te.strokeWidthAnim=!0),(Ra.a.fc||Ra.a.fh||Ra.a.fs||Ra.a.fb)&&(te.fillColorAnim=!0),_a=0,zn=Ra.s.b,ie=0;ie<oe;ie+=1)(Jn=ke[ie]).anIndexes[ue]=_a,(zn==1&&Jn.val!==""||zn==2&&Jn.val!==""&&Jn.val!==" "||zn==3&&(Jn.n||Jn.val==" "||ie==oe-1)||zn==4&&(Jn.n||ie==oe-1))&&(Ra.s.rn===1&&wa.push(_a),_a+=1);Se.a[ue].s.totalChars=_a;var Vn,Wn=-1;if(Ra.s.rn===1)for(ie=0;ie<oe;ie+=1)Wn!=(Jn=ke[ie]).anIndexes[ue]&&(Wn=Jn.anIndexes[ue],Vn=wa.splice(Math.floor(Math.random()*wa.length),1)[0]),Jn.anIndexes[ue]=Vn}te.yOffset=te.finalLineHeight||1.2*te.finalSize,te.ls=te.ls||0,te.ascent=ot.ascent*te.finalSize/100},TextProperty.prototype.updateDocumentData=function(te,ie){ie=ie===void 0?this.keysIndex:ie;var oe=this.copyData({},this.data.d.k[ie].s);oe=this.copyData(oe,te),this.data.d.k[ie].s=oe,this.recalculate(ie),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(te){var ie=this.data.d.k[te].s;ie.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(ie)},TextProperty.prototype.canResizeFont=function(te){this.canResize=te,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(te){this.minimumFontSize=Math.floor(te)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var te=Math.max,ie=Math.min,oe=Math.floor;function le(ce,ue){this._currentTextLength=-1,this.k=!1,this.data=ue,this.elem=ce,this.comp=ce.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(ce),this.s=PropertyFactory.getProp(ce,ue.s||{k:0},0,0,this),this.e="e"in ue?PropertyFactory.getProp(ce,ue.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(ce,ue.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(ce,ue.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(ce,ue.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(ce,ue.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(ce,ue.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return le.prototype={getMult:function(ce){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ue=0,fe=0,he=1,ve=1;this.ne.v>0?ue=this.ne.v/100:fe=-this.ne.v/100,this.xe.v>0?he=1-this.xe.v/100:ve=1+this.xe.v/100;var Se=BezierFactory.getBezierEasing(ue,fe,he,ve).get,ke=0,Me=this.finalS,Pe=this.finalE,Re=this.data.sh;if(Re===2)ke=Se(ke=Pe===Me?ce>=Pe?1:0:te(0,ie(.5/(Pe-Me)+(ce-Me)/(Pe-Me),1)));else if(Re===3)ke=Se(ke=Pe===Me?ce>=Pe?0:1:1-te(0,ie(.5/(Pe-Me)+(ce-Me)/(Pe-Me),1)));else if(Re===4)Pe===Me?ke=0:(ke=te(0,ie(.5/(Pe-Me)+(ce-Me)/(Pe-Me),1)))<.5?ke*=2:ke=1-2*(ke-.5),ke=Se(ke);else if(Re===5){if(Pe===Me)ke=0;else{var Oe=Pe-Me,Be=-Oe/2+(ce=ie(te(0,ce+.5-Me),Pe-Me)),xe=Oe/2;ke=Math.sqrt(1-Be*Be/(xe*xe))}ke=Se(ke)}else Re===6?(Pe===Me?ke=0:(ce=ie(te(0,ce+.5-Me),Pe-Me),ke=(1+Math.cos(Math.PI+2*Math.PI*ce/(Pe-Me)))/2),ke=Se(ke)):(ce>=oe(Me)&&(ke=te(0,ie(ce-Me<0?ie(Pe,1)-(Me-ce):Pe-ce,1))),ke=Se(ke));if(this.sm.v!==100){var nt=.01*this.sm.v;nt===0&&(nt=1e-8);var rt=.5-.5*nt;ke<rt?ke=0:(ke=(ke-rt)/nt)>1&&(ke=1)}return ke*this.a.v},getValue:function(ce){this.iterateDynamicProperties(),this._mdf=ce||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,ce&&this.data.r===2&&(this.e.v=this._currentTextLength);var ue=this.data.r===2?1:100/this.data.totalChars,fe=this.o.v/ue,he=this.s.v/ue+fe,ve=this.e.v/ue+fe;if(he>ve){var Se=he;he=ve,ve=Se}this.finalS=he,this.finalE=ve}},extendPrototype([DynamicPropertyContainer],le),{getTextSelectorProp:function(ce,ue,fe){return new le(ce,ue)}}}();function TextAnimatorDataProperty(te,ie,oe){var le={propType:!1},ce=PropertyFactory.getProp,ue=ie.a;this.a={r:ue.r?ce(te,ue.r,0,degToRads,oe):le,rx:ue.rx?ce(te,ue.rx,0,degToRads,oe):le,ry:ue.ry?ce(te,ue.ry,0,degToRads,oe):le,sk:ue.sk?ce(te,ue.sk,0,degToRads,oe):le,sa:ue.sa?ce(te,ue.sa,0,degToRads,oe):le,s:ue.s?ce(te,ue.s,1,.01,oe):le,a:ue.a?ce(te,ue.a,1,0,oe):le,o:ue.o?ce(te,ue.o,0,.01,oe):le,p:ue.p?ce(te,ue.p,1,0,oe):le,sw:ue.sw?ce(te,ue.sw,0,0,oe):le,sc:ue.sc?ce(te,ue.sc,1,0,oe):le,fc:ue.fc?ce(te,ue.fc,1,0,oe):le,fh:ue.fh?ce(te,ue.fh,0,0,oe):le,fs:ue.fs?ce(te,ue.fs,0,.01,oe):le,fb:ue.fb?ce(te,ue.fb,0,.01,oe):le,t:ue.t?ce(te,ue.t,0,0,oe):le},this.s=TextSelectorProp.getTextSelectorProp(te,ie.s,oe),this.s.t=ie.s.t}function TextAnimatorProperty(te,ie,oe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=te,this._renderType=ie,this._elem=oe,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(oe)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var te,ie,oe=this._textData.a.length,le=PropertyFactory.getProp;for(te=0;te<oe;te+=1)ie=this._textData.a[te],this._animatorsData[te]=new TextAnimatorDataProperty(this._elem,ie,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:le(this._elem,this._textData.p.a,0,0,this),f:le(this._elem,this._textData.p.f,0,0,this),l:le(this._elem,this._textData.p.l,0,0,this),r:le(this._elem,this._textData.p.r,0,0,this),p:le(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=le(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(te,ie){if(this.lettersChangedFlag=ie,this._mdf||this._isFirstFrame||ie||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var oe,le,ce,ue,fe,he,ve,Se,ke,Me,Pe,Re,Oe,Be,xe,nt,rt,ot,ht,dt=this._moreOptions.alignment.v,Rt=this._animatorsData,Ct=this._textData,Lt=this.mHelper,Qn=this._renderType,Mn=this.renderedLetters.length,Gn=te.l;if(this._hasMaskedPath){if(ht=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Sa,Ta=ht.v;for(this._pathData.r.v&&(Ta=Ta.reverse()),fe={tLength:0,segments:[]},ue=Ta._length-1,nt=0,ce=0;ce<ue;ce+=1)Sa=bez.buildBezierData(Ta.v[ce],Ta.v[ce+1],[Ta.o[ce][0]-Ta.v[ce][0],Ta.o[ce][1]-Ta.v[ce][1]],[Ta.i[ce+1][0]-Ta.v[ce+1][0],Ta.i[ce+1][1]-Ta.v[ce+1][1]]),fe.tLength+=Sa.segmentLength,fe.segments.push(Sa),nt+=Sa.segmentLength;ce=ue,ht.v.c&&(Sa=bez.buildBezierData(Ta.v[ce],Ta.v[0],[Ta.o[ce][0]-Ta.v[ce][0],Ta.o[ce][1]-Ta.v[ce][1]],[Ta.i[0][0]-Ta.v[0][0],Ta.i[0][1]-Ta.v[0][1]]),fe.tLength+=Sa.segmentLength,fe.segments.push(Sa),nt+=Sa.segmentLength),this._pathData.pi=fe}if(fe=this._pathData.pi,he=this._pathData.f.v,Pe=0,Me=1,Se=0,ke=!0,Be=fe.segments,he<0&&ht.v.c)for(fe.tLength<Math.abs(he)&&(he=-Math.abs(he)%fe.tLength),Me=(Oe=Be[Pe=Be.length-1].points).length-1;he<0;)he+=Oe[Me].partialLength,(Me-=1)<0&&(Me=(Oe=Be[Pe-=1].points).length-1);Re=(Oe=Be[Pe].points)[Me-1],xe=(ve=Oe[Me]).partialLength}ue=Gn.length,oe=0,le=0;var Kn,ka,Ra,Jn,zn,_a=1.2*te.finalSize*.714,Ia=!0;Ra=Rt.length;var wa,Vn,Wn,ba,Aa,Da,xa,Ea,Ma,La,Ua,Ga,Ca=-1,$a=he,Ka=Pe,Za=Me,Qa=-1,Wa="",va=this.defaultPropsArray;if(te.j===2||te.j===1){var qa=0,Ha=0,ja=te.j===2?-.5:-1,Ya=0,Ja=!0;for(ce=0;ce<ue;ce+=1)if(Gn[ce].n){for(qa&&(qa+=Ha);Ya<ce;)Gn[Ya].animatorJustifyOffset=qa,Ya+=1;qa=0,Ja=!0}else{for(ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).t.propType&&(Ja&&te.j===2&&(Ha+=Kn.t.v*ja),(zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars)).length?qa+=Kn.t.v*zn[0]*ja:qa+=Kn.t.v*zn*ja);Ja=!1}for(qa&&(qa+=Ha);Ya<ce;)Gn[Ya].animatorJustifyOffset=qa,Ya+=1}for(ce=0;ce<ue;ce+=1){if(Lt.reset(),ba=1,Gn[ce].n)oe=0,le+=te.yOffset,le+=Ia?1:0,he=$a,Ia=!1,this._hasMaskedPath&&(Me=Za,Re=(Oe=Be[Pe=Ka].points)[Me-1],xe=(ve=Oe[Me]).partialLength,Se=0),Wa="",Ua="",Ma="",Ga="",va=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qa!==Gn[ce].line){switch(te.j){case 1:he+=nt-te.lineWidths[Gn[ce].line];break;case 2:he+=(nt-te.lineWidths[Gn[ce].line])/2}Qa=Gn[ce].line}Ca!==Gn[ce].ind&&(Gn[Ca]&&(he+=Gn[Ca].extra),he+=Gn[ce].an/2,Ca=Gn[ce].ind),he+=dt[0]*Gn[ce].an*.005;var za=0;for(ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).p.propType&&((zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars)).length?za+=Kn.p.v[0]*zn[0]:za+=Kn.p.v[0]*zn),Kn.a.propType&&((zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars)).length?za+=Kn.a.v[0]*zn[0]:za+=Kn.a.v[0]*zn);for(ke=!0,this._pathData.a.v&&(he=.5*Gn[0].an+(nt-this._pathData.f.v-.5*Gn[0].an-.5*Gn[Gn.length-1].an)*Ca/(ue-1),he+=this._pathData.f.v);ke;)Se+xe>=he+za||!Oe?(rt=(he+za-Se)/ve.partialLength,Vn=Re.point[0]+(ve.point[0]-Re.point[0])*rt,Wn=Re.point[1]+(ve.point[1]-Re.point[1])*rt,Lt.translate(-dt[0]*Gn[ce].an*.005,-dt[1]*_a*.01),ke=!1):Oe&&(Se+=ve.partialLength,(Me+=1)>=Oe.length&&(Me=0,Be[Pe+=1]?Oe=Be[Pe].points:ht.v.c?(Me=0,Oe=Be[Pe=0].points):(Se-=ve.partialLength,Oe=null)),Oe&&(Re=ve,xe=(ve=Oe[Me]).partialLength));wa=Gn[ce].an/2-Gn[ce].add,Lt.translate(-wa,0,0)}else wa=Gn[ce].an/2-Gn[ce].add,Lt.translate(-wa,0,0),Lt.translate(-dt[0]*Gn[ce].an*.005,-dt[1]*_a*.01,0);for(ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).t.propType&&(zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars),oe===0&&te.j===0||(this._hasMaskedPath?zn.length?he+=Kn.t.v*zn[0]:he+=Kn.t.v*zn:zn.length?oe+=Kn.t.v*zn[0]:oe+=Kn.t.v*zn));for(te.strokeWidthAnim&&(Da=te.sw||0),te.strokeColorAnim&&(Aa=te.sc?[te.sc[0],te.sc[1],te.sc[2]]:[0,0,0]),te.fillColorAnim&&te.fc&&(xa=[te.fc[0],te.fc[1],te.fc[2]]),ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).a.propType&&((zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars)).length?Lt.translate(-Kn.a.v[0]*zn[0],-Kn.a.v[1]*zn[1],Kn.a.v[2]*zn[2]):Lt.translate(-Kn.a.v[0]*zn,-Kn.a.v[1]*zn,Kn.a.v[2]*zn));for(ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).s.propType&&((zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars)).length?Lt.scale(1+(Kn.s.v[0]-1)*zn[0],1+(Kn.s.v[1]-1)*zn[1],1):Lt.scale(1+(Kn.s.v[0]-1)*zn,1+(Kn.s.v[1]-1)*zn,1));for(ka=0;ka<Ra;ka+=1){if(Kn=Rt[ka].a,zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars),Kn.sk.propType&&(zn.length?Lt.skewFromAxis(-Kn.sk.v*zn[0],Kn.sa.v*zn[1]):Lt.skewFromAxis(-Kn.sk.v*zn,Kn.sa.v*zn)),Kn.r.propType&&(zn.length?Lt.rotateZ(-Kn.r.v*zn[2]):Lt.rotateZ(-Kn.r.v*zn)),Kn.ry.propType&&(zn.length?Lt.rotateY(Kn.ry.v*zn[1]):Lt.rotateY(Kn.ry.v*zn)),Kn.rx.propType&&(zn.length?Lt.rotateX(Kn.rx.v*zn[0]):Lt.rotateX(Kn.rx.v*zn)),Kn.o.propType&&(zn.length?ba+=(Kn.o.v*zn[0]-ba)*zn[0]:ba+=(Kn.o.v*zn-ba)*zn),te.strokeWidthAnim&&Kn.sw.propType&&(zn.length?Da+=Kn.sw.v*zn[0]:Da+=Kn.sw.v*zn),te.strokeColorAnim&&Kn.sc.propType)for(Ea=0;Ea<3;Ea+=1)zn.length?Aa[Ea]+=(Kn.sc.v[Ea]-Aa[Ea])*zn[0]:Aa[Ea]+=(Kn.sc.v[Ea]-Aa[Ea])*zn;if(te.fillColorAnim&&te.fc){if(Kn.fc.propType)for(Ea=0;Ea<3;Ea+=1)zn.length?xa[Ea]+=(Kn.fc.v[Ea]-xa[Ea])*zn[0]:xa[Ea]+=(Kn.fc.v[Ea]-xa[Ea])*zn;Kn.fh.propType&&(xa=zn.length?addHueToRGB(xa,Kn.fh.v*zn[0]):addHueToRGB(xa,Kn.fh.v*zn)),Kn.fs.propType&&(xa=zn.length?addSaturationToRGB(xa,Kn.fs.v*zn[0]):addSaturationToRGB(xa,Kn.fs.v*zn)),Kn.fb.propType&&(xa=zn.length?addBrightnessToRGB(xa,Kn.fb.v*zn[0]):addBrightnessToRGB(xa,Kn.fb.v*zn))}}for(ka=0;ka<Ra;ka+=1)(Kn=Rt[ka].a).p.propType&&(zn=Rt[ka].s.getMult(Gn[ce].anIndexes[ka],Ct.a[ka].s.totalChars),this._hasMaskedPath?zn.length?Lt.translate(0,Kn.p.v[1]*zn[0],-Kn.p.v[2]*zn[1]):Lt.translate(0,Kn.p.v[1]*zn,-Kn.p.v[2]*zn):zn.length?Lt.translate(Kn.p.v[0]*zn[0],Kn.p.v[1]*zn[1],-Kn.p.v[2]*zn[2]):Lt.translate(Kn.p.v[0]*zn,Kn.p.v[1]*zn,-Kn.p.v[2]*zn));if(te.strokeWidthAnim&&(Ma=Da<0?0:Da),te.strokeColorAnim&&(La="rgb("+Math.round(255*Aa[0])+","+Math.round(255*Aa[1])+","+Math.round(255*Aa[2])+")"),te.fillColorAnim&&te.fc&&(Ua="rgb("+Math.round(255*xa[0])+","+Math.round(255*xa[1])+","+Math.round(255*xa[2])+")"),this._hasMaskedPath){if(Lt.translate(0,-te.ls),Lt.translate(0,dt[1]*_a*.01+le,0),this._pathData.p.v){ot=(ve.point[1]-Re.point[1])/(ve.point[0]-Re.point[0]);var Xa=180*Math.atan(ot)/Math.PI;ve.point[0]<Re.point[0]&&(Xa+=180),Lt.rotate(-Xa*Math.PI/180)}Lt.translate(Vn,Wn,0),he-=dt[0]*Gn[ce].an*.005,Gn[ce+1]&&Ca!==Gn[ce+1].ind&&(he+=Gn[ce].an/2,he+=.001*te.tr*te.finalSize)}else{switch(Lt.translate(oe,le,0),te.ps&&Lt.translate(te.ps[0],te.ps[1]+te.ascent,0),te.j){case 1:Lt.translate(Gn[ce].animatorJustifyOffset+te.justifyOffset+(te.boxWidth-te.lineWidths[Gn[ce].line]),0,0);break;case 2:Lt.translate(Gn[ce].animatorJustifyOffset+te.justifyOffset+(te.boxWidth-te.lineWidths[Gn[ce].line])/2,0,0)}Lt.translate(0,-te.ls),Lt.translate(wa,0,0),Lt.translate(dt[0]*Gn[ce].an*.005,dt[1]*_a*.01,0),oe+=Gn[ce].l+.001*te.tr*te.finalSize}Qn==="html"?Wa=Lt.toCSS():Qn==="svg"?Wa=Lt.to2dCSS():va=[Lt.props[0],Lt.props[1],Lt.props[2],Lt.props[3],Lt.props[4],Lt.props[5],Lt.props[6],Lt.props[7],Lt.props[8],Lt.props[9],Lt.props[10],Lt.props[11],Lt.props[12],Lt.props[13],Lt.props[14],Lt.props[15]],Ga=ba}Mn<=ce?(Jn=new LetterProps(Ga,Ma,La,Ua,Wa,va),this.renderedLetters.push(Jn),Mn+=1,this.lettersChangedFlag=!0):(Jn=this.renderedLetters[ce],this.lettersChangedFlag=Jn.update(Ga,Ma,La,Ua,Wa,va)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(te,ie,oe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(te,ie,oe),this.textProperty=new TextProperty(this,te.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(te.t,this.renderType,this),this.initTransform(te,ie,oe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(te){this._mdf=!1,this.prepareRenderableFrame(te),this.prepareProperties(te,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(te,ie){var oe,le,ce=ie.length,ue="";for(oe=0;oe<ce;oe+=1)ie[oe].ty==="sh"&&(le=ie[oe].ks.k,ue+=buildShapeString(le,le.i.length,!0,te));return ue},ITextElement.prototype.updateDocumentData=function(te,ie){this.textProperty.updateDocumentData(te,ie)},ITextElement.prototype.canResizeFont=function(te){this.textProperty.canResizeFont(te)},ITextElement.prototype.setMinimumFontSize=function(te){this.textProperty.setMinimumFontSize(te)},ITextElement.prototype.applyTextPropertiesToMatrix=function(te,ie,oe,le,ce){switch(te.ps&&ie.translate(te.ps[0],te.ps[1]+te.ascent,0),ie.translate(0,-te.ls,0),te.j){case 1:ie.translate(te.justifyOffset+(te.boxWidth-te.lineWidths[oe]),0,0);break;case 2:ie.translate(te.justifyOffset+(te.boxWidth-te.lineWidths[oe])/2,0,0)}ie.translate(le,ce,0)},ITextElement.prototype.buildColor=function(te){return"rgb("+Math.round(255*te[0])+","+Math.round(255*te[1])+","+Math.round(255*te[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(te,ie,oe){this.textSpans=[],this.renderType="svg",this.initElement(te,ie,oe)}function ISolidElement(te,ie,oe){this.initElement(te,ie,oe)}function NullElement(te,ie,oe){this.initFrame(),this.initBaseData(te,ie,oe),this.initFrame(),this.initTransform(te,ie,oe),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(te,ie,oe){this.layers=te.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(te,ie,oe),this.tm=te.tm?PropertyFactory.getProp(this,te.tm,0,ie.frameRate,this):{_placeholder:!0}}function SVGRenderer(te,ie){this.animationItem=te,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var oe="";if(ie&&ie.title){var le=createNS("title"),ce=createElementID();le.setAttribute("id",ce),le.textContent=ie.title,this.svgElement.appendChild(le),oe+=ce}if(ie&&ie.description){var ue=createNS("desc"),fe=createElementID();ue.setAttribute("id",fe),ue.textContent=ie.description,this.svgElement.appendChild(ue),oe+=" "+fe}oe&&this.svgElement.setAttribute("aria-labelledby",oe);var he=createNS("defs");this.svgElement.appendChild(he);var ve=createNS("g");this.svgElement.appendChild(ve),this.layerElement=ve,this.renderConfig={preserveAspectRatio:ie&&ie.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:ie&&ie.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:ie&&ie.contentVisibility||"visible",progressiveLoad:ie&&ie.progressiveLoad||!1,hideOnTransparent:!(ie&&ie.hideOnTransparent===!1),viewBoxOnly:ie&&ie.viewBoxOnly||!1,viewBoxSize:ie&&ie.viewBoxSize||!1,className:ie&&ie.className||"",id:ie&&ie.id||"",focusable:ie&&ie.focusable,filterSize:{width:ie&&ie.filterSize&&ie.filterSize.width||"100%",height:ie&&ie.filterSize&&ie.filterSize.height||"100%",x:ie&&ie.filterSize&&ie.filterSize.x||"0%",y:ie&&ie.filterSize&&ie.filterSize.y||"0%"},width:ie&&ie.width,height:ie&&ie.height,runExpressions:!ie||ie.runExpressions===void 0||ie.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:he,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var te;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),te=0;te<15;te+=1)this.saved[te]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(te){for(var ie=0,oe=te.length,le=[],ce="";ie<oe;)te[ie]===String.fromCharCode(13)||te[ie]===String.fromCharCode(3)?(le.push(ce),ce=""):ce+=te[ie],ie+=1;return le.push(ce),le},SVGTextLottieElement.prototype.buildShapeData=function(te,ie){if(te.shapes&&te.shapes.length){var oe=te.shapes[0];if(oe.it){var le=oe.it[oe.it.length-1];le.s&&(le.s.k[0]=ie,le.s.k[1]=ie)}}return te},SVGTextLottieElement.prototype.buildNewText=function(){var te,ie;this.addDynamicProperty(this);var oe=this.textProperty.currentData;this.renderedLetters=createSizedArray(oe?oe.l.length:0),oe.fc?this.layerElement.setAttribute("fill",this.buildColor(oe.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),oe.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(oe.sc)),this.layerElement.setAttribute("stroke-width",oe.sw)),this.layerElement.setAttribute("font-size",oe.finalSize);var le=this.globalData.fontManager.getFontByName(oe.f);if(le.fClass)this.layerElement.setAttribute("class",le.fClass);else{this.layerElement.setAttribute("font-family",le.fFamily);var ce=oe.fWeight,ue=oe.fStyle;this.layerElement.setAttribute("font-style",ue),this.layerElement.setAttribute("font-weight",ce)}this.layerElement.setAttribute("aria-label",oe.t);var fe,he=oe.l||[],ve=!!this.globalData.fontManager.chars;ie=he.length;var Se=this.mHelper,ke=this.data.singleShape,Me=0,Pe=0,Re=!0,Oe=.001*oe.tr*oe.finalSize;if(!ke||ve||oe.sz){var Be,xe=this.textSpans.length;for(te=0;te<ie;te+=1){if(this.textSpans[te]||(this.textSpans[te]={span:null,childSpan:null,glyph:null}),!ve||!ke||te===0){if(fe=xe>te?this.textSpans[te].span:createNS(ve?"g":"text"),xe<=te){if(fe.setAttribute("stroke-linecap","butt"),fe.setAttribute("stroke-linejoin","round"),fe.setAttribute("stroke-miterlimit","4"),this.textSpans[te].span=fe,ve){var nt=createNS("g");fe.appendChild(nt),this.textSpans[te].childSpan=nt}this.textSpans[te].span=fe,this.layerElement.appendChild(fe)}fe.style.display="inherit"}if(Se.reset(),ke&&(he[te].n&&(Me=-Oe,Pe+=oe.yOffset,Pe+=Re?1:0,Re=!1),this.applyTextPropertiesToMatrix(oe,Se,he[te].line,Me,Pe),Me+=he[te].l||0,Me+=Oe),ve){var rt;if((Be=this.globalData.fontManager.getCharData(oe.finalText[te],le.fStyle,this.globalData.fontManager.getFontByName(oe.f).fFamily)).t===1)rt=new SVGCompElement(Be.data,this.globalData,this);else{var ot=emptyShapeData;Be.data&&Be.data.shapes&&(ot=this.buildShapeData(Be.data,oe.finalSize)),rt=new SVGShapeElement(ot,this.globalData,this)}if(this.textSpans[te].glyph){var ht=this.textSpans[te].glyph;this.textSpans[te].childSpan.removeChild(ht.layerElement),ht.destroy()}this.textSpans[te].glyph=rt,rt._debug=!0,rt.prepareFrame(0),rt.renderFrame(),this.textSpans[te].childSpan.appendChild(rt.layerElement),Be.t===1&&this.textSpans[te].childSpan.setAttribute("transform","scale("+oe.finalSize/100+","+oe.finalSize/100+")")}else ke&&fe.setAttribute("transform","translate("+Se.props[12]+","+Se.props[13]+")"),fe.textContent=he[te].val,fe.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ke&&fe&&fe.setAttribute("d","")}else{var dt=this.textContainer,Rt="start";switch(oe.j){case 1:Rt="end";break;case 2:Rt="middle";break;default:Rt="start"}dt.setAttribute("text-anchor",Rt),dt.setAttribute("letter-spacing",Oe);var Ct=this.buildTextContents(oe.finalText);for(ie=Ct.length,Pe=oe.ps?oe.ps[1]+oe.ascent:0,te=0;te<ie;te+=1)(fe=this.textSpans[te].span||createNS("tspan")).textContent=Ct[te],fe.setAttribute("x",0),fe.setAttribute("y",Pe),fe.style.display="inherit",dt.appendChild(fe),this.textSpans[te]||(this.textSpans[te]={span:null,glyph:null}),this.textSpans[te].span=fe,Pe+=oe.finalLineHeight;this.layerElement.appendChild(dt)}for(;te<this.textSpans.length;)this.textSpans[te].span.style.display="none",te+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var te=this.layerElement.getBBox();this.bbox={top:te.y,left:te.x,width:te.width,height:te.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var te,ie,oe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,te=0;te<oe;te+=1)(ie=this.textSpans[te].glyph)&&(ie.prepareFrame(this.comp.renderedFrame-this.data.st),ie._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var te,ie;this._sizeChanged=!0;var oe,le,ce,ue=this.textAnimator.renderedLetters,fe=this.textProperty.currentData.l;for(ie=fe.length,te=0;te<ie;te+=1)fe[te].n||(oe=ue[te],le=this.textSpans[te].span,(ce=this.textSpans[te].glyph)&&ce.renderFrame(),oe._mdf.m&&le.setAttribute("transform",oe.m),oe._mdf.o&&le.setAttribute("opacity",oe.o),oe._mdf.sw&&le.setAttribute("stroke-width",oe.sw),oe._mdf.sc&&le.setAttribute("stroke",oe.sc),oe._mdf.fc&&le.setAttribute("fill",oe.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var te=createNS("rect");te.setAttribute("width",this.data.sw),te.setAttribute("height",this.data.sh),te.setAttribute("fill",this.data.sc),this.layerElement.appendChild(te)},NullElement.prototype.prepareFrame=function(te){this.prepareProperties(te,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(te){return new NullElement(te,this.globalData,this)},SVGRendererBase.prototype.createShape=function(te){return new SVGShapeElement(te,this.globalData,this)},SVGRendererBase.prototype.createText=function(te){return new SVGTextLottieElement(te,this.globalData,this)},SVGRendererBase.prototype.createImage=function(te){return new IImageElement(te,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(te){return new ISolidElement(te,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(te){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+te.w+" "+te.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",te.w),this.svgElement.setAttribute("height",te.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var ie=this.globalData.defs;this.setupGlobalData(te,ie),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=te;var oe=createNS("clipPath"),le=createNS("rect");le.setAttribute("width",te.w),le.setAttribute("height",te.h),le.setAttribute("x",0),le.setAttribute("y",0);var ce=createElementID();oe.setAttribute("id",ce),oe.appendChild(le),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+ce+")"),ie.appendChild(oe),this.layers=te.layers,this.elements=createSizedArray(te.layers.length)},SVGRendererBase.prototype.destroy=function(){var te;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var ie=this.layers?this.layers.length:0;for(te=0;te<ie;te+=1)this.elements[te]&&this.elements[te].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(te){var ie=0,oe=this.layers.length;for(ie=0;ie<oe;ie+=1)if(this.layers[ie].ind===te)return ie;return-1},SVGRendererBase.prototype.buildItem=function(te){var ie=this.elements;if(!ie[te]&&this.layers[te].ty!==99){ie[te]=!0;var oe=this.createItem(this.layers[te]);if(ie[te]=oe,getExpressionsPlugin()&&(this.layers[te].ty===0&&this.globalData.projectInterface.registerComposition(oe),oe.initExpressions()),this.appendElementInPos(oe,te),this.layers[te].tt){var le="tp"in this.layers[te]?this.findIndexByInd(this.layers[te].tp):te-1;if(le===-1)return;if(this.elements[le]&&this.elements[le]!==!0){var ce=ie[le].getMatte(this.layers[te].tt);oe.setMatte(ce)}else this.buildItem(le),this.addPendingElement(oe)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var te=this.pendingElements.pop();if(te.checkParenting(),te.data.tt)for(var ie=0,oe=this.elements.length;ie<oe;){if(this.elements[ie]===te){var le="tp"in te.data?this.findIndexByInd(te.data.tp):ie-1,ce=this.elements[le].getMatte(this.layers[ie].tt);te.setMatte(ce);break}ie+=1}}},SVGRendererBase.prototype.renderFrame=function(te){if(this.renderedFrame!==te&&!this.destroyed){var ie;te===null?te=this.renderedFrame:this.renderedFrame=te,this.globalData.frameNum=te,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=te,this.globalData._mdf=!1;var oe=this.layers.length;for(this.completeLayers||this.checkLayers(te),ie=oe-1;ie>=0;ie-=1)(this.completeLayers||this.elements[ie])&&this.elements[ie].prepareFrame(te-this.layers[ie].st);if(this.globalData._mdf)for(ie=0;ie<oe;ie+=1)(this.completeLayers||this.elements[ie])&&this.elements[ie].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(te,ie){var oe=te.getBaseElement();if(oe){for(var le,ce=0;ce<ie;)this.elements[ce]&&this.elements[ce]!==!0&&this.elements[ce].getBaseElement()&&(le=this.elements[ce].getBaseElement()),ce+=1;le?this.layerElement.insertBefore(oe,le):this.layerElement.appendChild(oe)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(te,ie,oe){this.initFrame(),this.initBaseData(te,ie,oe),this.initTransform(te,ie,oe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&ie.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(te){if(this._mdf=!1,this.prepareRenderableFrame(te),this.prepareProperties(te,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=te/this.data.sr;else{var ie=this.tm.v;ie===this.data.op&&(ie=this.data.op-1),this.renderedFrame=ie}var oe,le=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),oe=le-1;oe>=0;oe-=1)(this.completeLayers||this.elements[oe])&&(this.elements[oe].prepareFrame(this.renderedFrame-this.layers[oe].st),this.elements[oe]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var te,ie=this.layers.length;for(te=0;te<ie;te+=1)(this.completeLayers||this.elements[te])&&this.elements[te].renderFrame()},ICompElement.prototype.setElements=function(te){this.elements=te},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var te,ie=this.layers.length;for(te=0;te<ie;te+=1)this.elements[te]&&this.elements[te].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(te){return new SVGCompElement(te,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(te){return new SVGCompElement(te,this.globalData,this)},CVContextData.prototype.duplicate=function(){var te=2*this._length,ie=this.savedOp;this.savedOp=createTypedArray("float32",te),this.savedOp.set(ie);var oe=0;for(oe=this._length;oe<te;oe+=1)this.saved[oe]=createTypedArray("float32",16);this._length=te},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var te,ie=this.saved[this.cArrPos],oe=this.cTr.props;for(te=0;te<16;te+=1)oe[te]=ie[te];return ie},CVContextData.prototype.popOpacity=function(){var te=this.savedOp[this.cArrPos];return this.cO=te,te},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var te,ie=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var oe=this.saved[this.cArrPos];for(te=0;te<16;te+=1)oe[te]=ie[te];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(te){this.cO=te},ShapeTransformManager.prototype={addTransformSequence:function(te){var ie,oe=te.length,le="_";for(ie=0;ie<oe;ie+=1)le+=te[ie].transform.key+"_";var ce=this.sequences[le];return ce||(ce={transforms:[].concat(te),finalTransform:new Matrix,_mdf:!1},this.sequences[le]=ce,this.sequenceList.push(ce)),ce},processSequence:function(te,ie){for(var oe,le=0,ce=te.transforms.length,ue=ie;le<ce&&!ie;){if(te.transforms[le].transform.mProps._mdf){ue=!0;break}le+=1}if(ue)for(te.finalTransform.reset(),le=ce-1;le>=0;le-=1)oe=te.transforms[le].transform.mProps.v.props,te.finalTransform.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],oe[8],oe[9],oe[10],oe[11],oe[12],oe[13],oe[14],oe[15]);te._mdf=ue},processSequences:function(te){var ie,oe=this.sequenceList.length;for(ie=0;ie<oe;ie+=1)this.processSequence(this.sequenceList[ie],te)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var te="__lottie_element_luma_buffer",ie=null,oe=null,le=null;function ce(){var ue,fe,he;ie||(ue=createNS("svg"),fe=createNS("filter"),he=createNS("feColorMatrix"),fe.setAttribute("id",te),he.setAttribute("type","matrix"),he.setAttribute("color-interpolation-filters","sRGB"),he.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),fe.appendChild(he),ue.appendChild(fe),ue.setAttribute("id",te+"_svg"),featureSupport.svgLumaHidden&&(ue.style.display="none"),le=ue,document.body.appendChild(le),ie=createTag("canvas"),(oe=ie.getContext("2d")).filter="url(#"+te+")",oe.fillStyle="rgba(0,0,0,0)",oe.fillRect(0,0,1,1))}return{load:ce,get:function(ue){return ie||ce(),ie.width=ue.width,ie.height=ue.height,oe.filter="url(#"+te+")",ie}}};function createCanvas(te,ie){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(te,ie);var oe=createTag("canvas");return oe.width=te,oe.height=ie,oe}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas};function CVEffects(){}function CVMaskElement(te,ie){var oe;this.data=te,this.element=ie,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var le=this.masksProperties.length,ce=!1;for(oe=0;oe<le;oe+=1)this.masksProperties[oe].mode!=="n"&&(ce=!0),this.viewData[oe]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[oe],3);this.hasMasks=ce,ce&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var te,ie,oe,le,ce=this.element.finalTransform.mat,ue=this.element.canvasContext,fe=this.masksProperties.length;for(ue.beginPath(),te=0;te<fe;te+=1)if(this.masksProperties[te].mode!=="n"){var he;this.masksProperties[te].inv&&(ue.moveTo(0,0),ue.lineTo(this.element.globalData.compSize.w,0),ue.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),ue.lineTo(0,this.element.globalData.compSize.h),ue.lineTo(0,0)),le=this.viewData[te].v,ie=ce.applyToPointArray(le.v[0][0],le.v[0][1],0),ue.moveTo(ie[0],ie[1]);var ve=le._length;for(he=1;he<ve;he+=1)oe=ce.applyToTriplePoints(le.o[he-1],le.i[he],le.v[he]),ue.bezierCurveTo(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]);oe=ce.applyToTriplePoints(le.o[he-1],le.i[0],le.v[0]),ue.bezierCurveTo(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5])}this.element.globalData.renderer.save(!0),ue.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(te,ie,oe,le){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var ce,ue=4;ie.ty==="rc"?ue=5:ie.ty==="el"?ue=6:ie.ty==="sr"&&(ue=7),this.sh=ShapePropertyFactory.getShapeProp(te,ie,ue,te);var fe,he=oe.length;for(ce=0;ce<he;ce+=1)oe[ce].closed||(fe={transforms:le.addTransformSequence(oe[ce].transforms),trNodes:[]},this.styledShapes.push(fe),oe[ce].elements.push(fe))}function CVShapeElement(te,ie,oe){this.shapes=[],this.shapesData=te.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(te,ie,oe)}function CVTextElement(te,ie,oe){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(te,ie,oe)}function CVImageElement(te,ie,oe){this.assetData=ie.getAssetData(te.refId),this.img=ie.imageLoader.getAsset(this.assetData),this.initElement(te,ie,oe)}function CVSolidElement(te,ie,oe){this.initElement(te,ie,oe)}function CanvasRendererBase(te,ie){this.animationItem=te,this.renderConfig={clearCanvas:!ie||ie.clearCanvas===void 0||ie.clearCanvas,context:ie&&ie.context||null,progressiveLoad:ie&&ie.progressiveLoad||!1,preserveAspectRatio:ie&&ie.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:ie&&ie.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:ie&&ie.contentVisibility||"visible",className:ie&&ie.className||"",id:ie&&ie.id||""},this.renderConfig.dpr=ie&&ie.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=ie&&ie.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(te,ie,oe){this.completeLayers=!1,this.layers=te.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(te,ie,oe),this.tm=te.tm?PropertyFactory.getProp(this,te.tm,0,ie.frameRate,this):{_placeholder:!0}}function CanvasRenderer(te,ie){this.animationItem=te,this.renderConfig={clearCanvas:!ie||ie.clearCanvas===void 0||ie.clearCanvas,context:ie&&ie.context||null,progressiveLoad:ie&&ie.progressiveLoad||!1,preserveAspectRatio:ie&&ie.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:ie&&ie.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:ie&&ie.contentVisibility||"visible",className:ie&&ie.className||"",id:ie&&ie.id||"",runExpressions:!ie||ie.runExpressions===void 0||ie.runExpressions},this.renderConfig.dpr=ie&&ie.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=ie&&ie.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(te,ie,oe){this.initElement(te,ie,oe)}function HShapeElement(te,ie,oe){this.shapes=[],this.shapesData=te.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(te,ie,oe),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(te,ie,oe){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(te,ie,oe)}function HCameraElement(te,ie,oe){this.initFrame(),this.initBaseData(te,ie,oe),this.initHierarchy();var le=PropertyFactory.getProp;if(this.pe=le(this,te.pe,0,0,this),te.ks.p.s?(this.px=le(this,te.ks.p.x,1,0,this),this.py=le(this,te.ks.p.y,1,0,this),this.pz=le(this,te.ks.p.z,1,0,this)):this.p=le(this,te.ks.p,1,0,this),te.ks.a&&(this.a=le(this,te.ks.a,1,0,this)),te.ks.or.k.length&&te.ks.or.k[0].to){var ce,ue=te.ks.or.k.length;for(ce=0;ce<ue;ce+=1)te.ks.or.k[ce].to=null,te.ks.or.k[ce].ti=null}this.or=le(this,te.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=le(this,te.ks.rx,0,degToRads,this),this.ry=le(this,te.ks.ry,0,degToRads,this),this.rz=le(this,te.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(te,ie,oe){this.assetData=ie.getAssetData(te.refId),this.initElement(te,ie,oe)}function HybridRendererBase(te,ie){this.animationItem=te,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:ie&&ie.className||"",imagePreserveAspectRatio:ie&&ie.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(ie&&ie.hideOnTransparent===!1),filterSize:{width:ie&&ie.filterSize&&ie.filterSize.width||"400%",height:ie&&ie.filterSize&&ie.filterSize.height||"400%",x:ie&&ie.filterSize&&ie.filterSize.x||"-100%",y:ie&&ie.filterSize&&ie.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(te,ie,oe){this.layers=te.layers,this.supports3d=!te.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(te,ie,oe),this.tm=te.tm?PropertyFactory.getProp(this,te.tm,0,ie.frameRate,this):{_placeholder:!0}}function HybridRenderer(te,ie){this.animationItem=te,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:ie&&ie.className||"",imagePreserveAspectRatio:ie&&ie.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(ie&&ie.hideOnTransparent===!1),filterSize:{width:ie&&ie.filterSize&&ie.filterSize.width||"400%",height:ie&&ie.filterSize&&ie.filterSize.height||"400%",x:ie&&ie.filterSize&&ie.filterSize.x||"-100%",y:ie&&ie.filterSize&&ie.filterSize.y||"-100%"},runExpressions:!ie||ie.runExpressions===void 0||ie.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var te=this.globalData.canvasContext,ie=assetLoader.createCanvas(te.canvas.width,te.canvas.height);this.buffers.push(ie);var oe=assetLoader.createCanvas(te.canvas.width,te.canvas.height);this.buffers.push(oe),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var te=this.globalData;if(te.blendMode!==this.data.bm){te.blendMode=this.data.bm;var ie=getBlendMode(this.data.bm);te.canvasContext.globalCompositeOperation=ie}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(te){te.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var te=this.buffers[0].getContext("2d");this.clearCanvas(te),te.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var te=this.buffers[1],ie=te.getContext("2d");if(this.clearCanvas(ie),ie.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var oe=assetLoader.getLumaCanvas(this.canvasContext.canvas);oe.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(oe,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(te,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(te){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||te)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var ie=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(ie),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(ie),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(te,ie){var oe={data:te,type:te.ty,preTransforms:this.transformsManager.addTransformSequence(ie),transforms:[],elements:[],closed:te.hd===!0},le={};if(te.ty==="fl"||te.ty==="st"?(le.c=PropertyFactory.getProp(this,te.c,1,255,this),le.c.k||(oe.co="rgb("+bmFloor(le.c.v[0])+","+bmFloor(le.c.v[1])+","+bmFloor(le.c.v[2])+")")):te.ty!=="gf"&&te.ty!=="gs"||(le.s=PropertyFactory.getProp(this,te.s,1,null,this),le.e=PropertyFactory.getProp(this,te.e,1,null,this),le.h=PropertyFactory.getProp(this,te.h||{k:0},0,.01,this),le.a=PropertyFactory.getProp(this,te.a||{k:0},0,degToRads,this),le.g=new GradientProperty(this,te.g,this)),le.o=PropertyFactory.getProp(this,te.o,0,.01,this),te.ty==="st"||te.ty==="gs"){if(oe.lc=lineCapEnum[te.lc||2],oe.lj=lineJoinEnum[te.lj||2],te.lj==1&&(oe.ml=te.ml),le.w=PropertyFactory.getProp(this,te.w,0,null,this),le.w.k||(oe.wi=le.w.v),te.d){var ce=new DashProperty(this,te.d,"canvas",this);le.d=ce,le.d.k||(oe.da=le.d.dashArray,oe.do=le.d.dashoffset[0])}}else oe.r=te.r===2?"evenodd":"nonzero";return this.stylesList.push(oe),le.style=oe,le},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(te){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,te.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,te,this)}}},CVShapeElement.prototype.createShapeElement=function(te){var ie=new CVShapeData(this,te,this.stylesList,this.transformsManager);return this.shapes.push(ie),this.addShapeToModifiers(ie),ie},CVShapeElement.prototype.reloadShapes=function(){var te;this._isFirstFrame=!0;var ie=this.itemsData.length;for(te=0;te<ie;te+=1)this.prevViewData[te]=this.itemsData[te];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),ie=this.dynamicProperties.length,te=0;te<ie;te+=1)this.dynamicProperties[te].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(te){var ie,oe=this.stylesList.length;for(ie=0;ie<oe;ie+=1)this.stylesList[ie].closed||this.stylesList[ie].transforms.push(te)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var te,ie=this.stylesList.length;for(te=0;te<ie;te+=1)this.stylesList[te].closed||this.stylesList[te].transforms.pop()},CVShapeElement.prototype.closeStyles=function(te){var ie,oe=te.length;for(ie=0;ie<oe;ie+=1)te[ie].closed=!0},CVShapeElement.prototype.searchShapes=function(te,ie,oe,le,ce){var ue,fe,he,ve,Se,ke,Me=te.length-1,Pe=[],Re=[],Oe=[].concat(ce);for(ue=Me;ue>=0;ue-=1){if((ve=this.searchProcessedElement(te[ue]))?ie[ue]=oe[ve-1]:te[ue]._shouldRender=le,te[ue].ty==="fl"||te[ue].ty==="st"||te[ue].ty==="gf"||te[ue].ty==="gs")ve?ie[ue].style.closed=!1:ie[ue]=this.createStyleElement(te[ue],Oe),Pe.push(ie[ue].style);else if(te[ue].ty==="gr"){if(ve)for(he=ie[ue].it.length,fe=0;fe<he;fe+=1)ie[ue].prevViewData[fe]=ie[ue].it[fe];else ie[ue]=this.createGroupElement(te[ue]);this.searchShapes(te[ue].it,ie[ue].it,ie[ue].prevViewData,le,Oe)}else te[ue].ty==="tr"?(ve||(ke=this.createTransformElement(te[ue]),ie[ue]=ke),Oe.push(ie[ue]),this.addTransformToStyleList(ie[ue])):te[ue].ty==="sh"||te[ue].ty==="rc"||te[ue].ty==="el"||te[ue].ty==="sr"?ve||(ie[ue]=this.createShapeElement(te[ue])):te[ue].ty==="tm"||te[ue].ty==="rd"||te[ue].ty==="pb"||te[ue].ty==="zz"||te[ue].ty==="op"?(ve?(Se=ie[ue]).closed=!1:((Se=ShapeModifiers.getModifier(te[ue].ty)).init(this,te[ue]),ie[ue]=Se,this.shapeModifiers.push(Se)),Re.push(Se)):te[ue].ty==="rp"&&(ve?(Se=ie[ue]).closed=!0:(Se=ShapeModifiers.getModifier(te[ue].ty),ie[ue]=Se,Se.init(this,te,ue,ie),this.shapeModifiers.push(Se),le=!1),Re.push(Se));this.addProcessedElement(te[ue],ue+1)}for(this.removeTransformFromStyleList(),this.closeStyles(Pe),Me=Re.length,ue=0;ue<Me;ue+=1)Re[ue].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(te,ie){(te._opMdf||ie.op._mdf||this._isFirstFrame)&&(ie.opacity=te.opacity,ie.opacity*=ie.op.v,ie._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var te,ie,oe,le,ce,ue,fe,he,ve,Se=this.stylesList.length,ke=this.globalData.renderer,Me=this.globalData.canvasContext;for(te=0;te<Se;te+=1)if(((he=(ve=this.stylesList[te]).type)!=="st"&&he!=="gs"||ve.wi!==0)&&ve.data._shouldRender&&ve.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(ke.save(),ue=ve.elements,he==="st"||he==="gs"?(Me.strokeStyle=he==="st"?ve.co:ve.grd,Me.lineWidth=ve.wi,Me.lineCap=ve.lc,Me.lineJoin=ve.lj,Me.miterLimit=ve.ml||0):Me.fillStyle=he==="fl"?ve.co:ve.grd,ke.ctxOpacity(ve.coOp),he!=="st"&&he!=="gs"&&Me.beginPath(),ke.ctxTransform(ve.preTransforms.finalTransform.props),oe=ue.length,ie=0;ie<oe;ie+=1){for(he!=="st"&&he!=="gs"||(Me.beginPath(),ve.da&&(Me.setLineDash(ve.da),Me.lineDashOffset=ve.do)),ce=(fe=ue[ie].trNodes).length,le=0;le<ce;le+=1)fe[le].t==="m"?Me.moveTo(fe[le].p[0],fe[le].p[1]):fe[le].t==="c"?Me.bezierCurveTo(fe[le].pts[0],fe[le].pts[1],fe[le].pts[2],fe[le].pts[3],fe[le].pts[4],fe[le].pts[5]):Me.closePath();he!=="st"&&he!=="gs"||(Me.stroke(),ve.da&&Me.setLineDash(this.dashResetter))}he!=="st"&&he!=="gs"&&Me.fill(ve.r),ke.restore()}},CVShapeElement.prototype.renderShape=function(te,ie,oe,le){var ce,ue;for(ue=te,ce=ie.length-1;ce>=0;ce-=1)ie[ce].ty==="tr"?(ue=oe[ce].transform,this.renderShapeTransform(te,ue)):ie[ce].ty==="sh"||ie[ce].ty==="el"||ie[ce].ty==="rc"||ie[ce].ty==="sr"?this.renderPath(ie[ce],oe[ce]):ie[ce].ty==="fl"?this.renderFill(ie[ce],oe[ce],ue):ie[ce].ty==="st"?this.renderStroke(ie[ce],oe[ce],ue):ie[ce].ty==="gf"||ie[ce].ty==="gs"?this.renderGradientFill(ie[ce],oe[ce],ue):ie[ce].ty==="gr"?this.renderShape(ue,ie[ce].it,oe[ce].it):ie[ce].ty;le&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(te,ie){if(this._isFirstFrame||ie._mdf||te.transforms._mdf){var oe,le,ce,ue=te.trNodes,fe=ie.paths,he=fe._length;ue.length=0;var ve=te.transforms.finalTransform;for(ce=0;ce<he;ce+=1){var Se=fe.shapes[ce];if(Se&&Se.v){for(le=Se._length,oe=1;oe<le;oe+=1)oe===1&&ue.push({t:"m",p:ve.applyToPointArray(Se.v[0][0],Se.v[0][1],0)}),ue.push({t:"c",pts:ve.applyToTriplePoints(Se.o[oe-1],Se.i[oe],Se.v[oe])});le===1&&ue.push({t:"m",p:ve.applyToPointArray(Se.v[0][0],Se.v[0][1],0)}),Se.c&&le&&(ue.push({t:"c",pts:ve.applyToTriplePoints(Se.o[oe-1],Se.i[0],Se.v[0])}),ue.push({t:"z"}))}}te.trNodes=ue}},CVShapeElement.prototype.renderPath=function(te,ie){if(te.hd!==!0&&te._shouldRender){var oe,le=ie.styledShapes.length;for(oe=0;oe<le;oe+=1)this.renderStyledShape(ie.styledShapes[oe],ie.sh)}},CVShapeElement.prototype.renderFill=function(te,ie,oe){var le=ie.style;(ie.c._mdf||this._isFirstFrame)&&(le.co="rgb("+bmFloor(ie.c.v[0])+","+bmFloor(ie.c.v[1])+","+bmFloor(ie.c.v[2])+")"),(ie.o._mdf||oe._opMdf||this._isFirstFrame)&&(le.coOp=ie.o.v*oe.opacity)},CVShapeElement.prototype.renderGradientFill=function(te,ie,oe){var le,ce=ie.style;if(!ce.grd||ie.g._mdf||ie.s._mdf||ie.e._mdf||te.t!==1&&(ie.h._mdf||ie.a._mdf)){var ue,fe=this.globalData.canvasContext,he=ie.s.v,ve=ie.e.v;if(te.t===1)le=fe.createLinearGradient(he[0],he[1],ve[0],ve[1]);else{var Se=Math.sqrt(Math.pow(he[0]-ve[0],2)+Math.pow(he[1]-ve[1],2)),ke=Math.atan2(ve[1]-he[1],ve[0]-he[0]),Me=ie.h.v;Me>=1?Me=.99:Me<=-1&&(Me=-.99);var Pe=Se*Me,Re=Math.cos(ke+ie.a.v)*Pe+he[0],Oe=Math.sin(ke+ie.a.v)*Pe+he[1];le=fe.createRadialGradient(Re,Oe,0,he[0],he[1],Se)}var Be=te.g.p,xe=ie.g.c,nt=1;for(ue=0;ue<Be;ue+=1)ie.g._hasOpacity&&ie.g._collapsable&&(nt=ie.g.o[2*ue+1]),le.addColorStop(xe[4*ue]/100,"rgba("+xe[4*ue+1]+","+xe[4*ue+2]+","+xe[4*ue+3]+","+nt+")");ce.grd=le}ce.coOp=ie.o.v*oe.opacity},CVShapeElement.prototype.renderStroke=function(te,ie,oe){var le=ie.style,ce=ie.d;ce&&(ce._mdf||this._isFirstFrame)&&(le.da=ce.dashArray,le.do=ce.dashoffset[0]),(ie.c._mdf||this._isFirstFrame)&&(le.co="rgb("+bmFloor(ie.c.v[0])+","+bmFloor(ie.c.v[1])+","+bmFloor(ie.c.v[2])+")"),(ie.o._mdf||oe._opMdf||this._isFirstFrame)&&(le.coOp=ie.o.v*oe.opacity),(ie.w._mdf||this._isFirstFrame)&&(le.wi=ie.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var te=this.textProperty.currentData;this.renderedLetters=createSizedArray(te.l?te.l.length:0);var ie=!1;te.fc?(ie=!0,this.values.fill=this.buildColor(te.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=ie;var oe=!1;te.sc&&(oe=!0,this.values.stroke=this.buildColor(te.sc),this.values.sWidth=te.sw);var le,ce,ue,fe,he,ve,Se,ke,Me,Pe,Re,Oe,Be=this.globalData.fontManager.getFontByName(te.f),xe=te.l,nt=this.mHelper;this.stroke=oe,this.values.fValue=te.finalSize+"px "+this.globalData.fontManager.getFontByName(te.f).fFamily,ce=te.finalText.length;var rt=this.data.singleShape,ot=.001*te.tr*te.finalSize,ht=0,dt=0,Rt=!0,Ct=0;for(le=0;le<ce;le+=1){fe=(ue=this.globalData.fontManager.getCharData(te.finalText[le],Be.fStyle,this.globalData.fontManager.getFontByName(te.f).fFamily))&&ue.data||{},nt.reset(),rt&&xe[le].n&&(ht=-ot,dt+=te.yOffset,dt+=Rt?1:0,Rt=!1),Me=(Se=fe.shapes?fe.shapes[0].it:[]).length,nt.scale(te.finalSize/100,te.finalSize/100),rt&&this.applyTextPropertiesToMatrix(te,nt,xe[le].line,ht,dt),Re=createSizedArray(Me-1);var Lt=0;for(ke=0;ke<Me;ke+=1)if(Se[ke].ty==="sh"){for(ve=Se[ke].ks.k.i.length,Pe=Se[ke].ks.k,Oe=[],he=1;he<ve;he+=1)he===1&&Oe.push(nt.applyToX(Pe.v[0][0],Pe.v[0][1],0),nt.applyToY(Pe.v[0][0],Pe.v[0][1],0)),Oe.push(nt.applyToX(Pe.o[he-1][0],Pe.o[he-1][1],0),nt.applyToY(Pe.o[he-1][0],Pe.o[he-1][1],0),nt.applyToX(Pe.i[he][0],Pe.i[he][1],0),nt.applyToY(Pe.i[he][0],Pe.i[he][1],0),nt.applyToX(Pe.v[he][0],Pe.v[he][1],0),nt.applyToY(Pe.v[he][0],Pe.v[he][1],0));Oe.push(nt.applyToX(Pe.o[he-1][0],Pe.o[he-1][1],0),nt.applyToY(Pe.o[he-1][0],Pe.o[he-1][1],0),nt.applyToX(Pe.i[0][0],Pe.i[0][1],0),nt.applyToY(Pe.i[0][0],Pe.i[0][1],0),nt.applyToX(Pe.v[0][0],Pe.v[0][1],0),nt.applyToY(Pe.v[0][0],Pe.v[0][1],0)),Re[Lt]=Oe,Lt+=1}rt&&(ht+=xe[le].l,ht+=ot),this.textSpans[Ct]?this.textSpans[Ct].elem=Re:this.textSpans[Ct]={elem:Re},Ct+=1}},CVTextElement.prototype.renderInnerContent=function(){var te,ie,oe,le,ce,ue,fe=this.canvasContext;fe.font=this.values.fValue,fe.lineCap="butt",fe.lineJoin="miter",fe.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var he,ve=this.textAnimator.renderedLetters,Se=this.textProperty.currentData.l;ie=Se.length;var ke,Me,Pe=null,Re=null,Oe=null;for(te=0;te<ie;te+=1)if(!Se[te].n){if((he=ve[te])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(he.p),this.globalData.renderer.ctxOpacity(he.o)),this.fill){for(he&&he.fc?Pe!==he.fc&&(Pe=he.fc,fe.fillStyle=he.fc):Pe!==this.values.fill&&(Pe=this.values.fill,fe.fillStyle=this.values.fill),le=(ke=this.textSpans[te].elem).length,this.globalData.canvasContext.beginPath(),oe=0;oe<le;oe+=1)for(ue=(Me=ke[oe]).length,this.globalData.canvasContext.moveTo(Me[0],Me[1]),ce=2;ce<ue;ce+=6)this.globalData.canvasContext.bezierCurveTo(Me[ce],Me[ce+1],Me[ce+2],Me[ce+3],Me[ce+4],Me[ce+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(he&&he.sw?Oe!==he.sw&&(Oe=he.sw,fe.lineWidth=he.sw):Oe!==this.values.sWidth&&(Oe=this.values.sWidth,fe.lineWidth=this.values.sWidth),he&&he.sc?Re!==he.sc&&(Re=he.sc,fe.strokeStyle=he.sc):Re!==this.values.stroke&&(Re=this.values.stroke,fe.strokeStyle=this.values.stroke),le=(ke=this.textSpans[te].elem).length,this.globalData.canvasContext.beginPath(),oe=0;oe<le;oe+=1)for(ue=(Me=ke[oe]).length,this.globalData.canvasContext.moveTo(Me[0],Me[1]),ce=2;ce<ue;ce+=6)this.globalData.canvasContext.bezierCurveTo(Me[ce],Me[ce+1],Me[ce+2],Me[ce+3],Me[ce+4],Me[ce+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}he&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var te=createTag("canvas");te.width=this.assetData.w,te.height=this.assetData.h;var ie,oe,le=te.getContext("2d"),ce=this.img.width,ue=this.img.height,fe=ce/ue,he=this.assetData.w/this.assetData.h,ve=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;fe>he&&ve==="xMidYMid slice"||fe<he&&ve!=="xMidYMid slice"?ie=(oe=ue)*he:oe=(ie=ce)/he,le.drawImage(this.img,(ce-ie)/2,(ue-oe)/2,ie,oe,0,0,this.assetData.w,this.assetData.h),this.img=te}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var te=this.canvasContext;te.fillStyle=this.data.sc,te.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(te){return new CVShapeElement(te,this.globalData,this)},CanvasRendererBase.prototype.createText=function(te){return new CVTextElement(te,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(te){return new CVImageElement(te,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(te){return new CVSolidElement(te,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(te){if(te[0]!==1||te[1]!==0||te[4]!==0||te[5]!==1||te[12]!==0||te[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(te);var ie=this.contextData.getTransform(),oe=ie.props;this.transformMat.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],oe[8],oe[9],oe[10],oe[11],oe[12],oe[13],oe[14],oe[15]),ie.cloneFromProps(this.transformMat.props);var le=ie.props;this.canvasContext.setTransform(le[0],le[1],le[4],le[5],le[12],le[13])}else this.canvasContext.transform(te[0],te[1],te[4],te[5],te[12],te[13])},CanvasRendererBase.prototype.ctxOpacity=function(te){var ie=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=te<0?0:te,void(this.globalData.currentGlobalAlpha=ie);ie*=te<0?0:te,this.contextData.setOpacity(ie),this.globalData.currentGlobalAlpha!==ie&&(this.canvasContext.globalAlpha=ie,this.globalData.currentGlobalAlpha=ie)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(te){this.renderConfig.clearCanvas?(te&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(te){if(this.renderConfig.clearCanvas){te&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var ie=this.contextData.pop(),oe=ie.transform,le=ie.opacity;this.canvasContext.setTransform(oe[0],oe[1],oe[4],oe[5],oe[12],oe[13]),this.globalData.currentGlobalAlpha!==le&&(this.canvasContext.globalAlpha=le,this.globalData.currentGlobalAlpha=le)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(te){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var ie=this.animationItem.container.style;ie.width="100%",ie.height="100%";var oe="0px 0px 0px";ie.transformOrigin=oe,ie.mozTransformOrigin=oe,ie.webkitTransformOrigin=oe,ie["-webkit-transform"]=oe,ie.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=te,this.layers=te.layers,this.transformCanvas={w:te.w,h:te.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(te,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(te.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(te,ie){var oe,le,ce,ue;if(this.reset(),te?(oe=te,le=ie,this.canvasContext.canvas.width=oe,this.canvasContext.canvas.height=le):(this.animationItem.wrapper&&this.animationItem.container?(oe=this.animationItem.wrapper.offsetWidth,le=this.animationItem.wrapper.offsetHeight):(oe=this.canvasContext.canvas.width,le=this.canvasContext.canvas.height),this.canvasContext.canvas.width=oe*this.renderConfig.dpr,this.canvasContext.canvas.height=le*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var fe=this.renderConfig.preserveAspectRatio.split(" "),he=fe[1]||"meet",ve=fe[0]||"xMidYMid",Se=ve.substr(0,4),ke=ve.substr(4);ce=oe/le,(ue=this.transformCanvas.w/this.transformCanvas.h)>ce&&he==="meet"||ue<ce&&he==="slice"?(this.transformCanvas.sx=oe/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=oe/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=le/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=le/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=Se==="xMid"&&(ue<ce&&he==="meet"||ue>ce&&he==="slice")?(oe-this.transformCanvas.w*(le/this.transformCanvas.h))/2*this.renderConfig.dpr:Se==="xMax"&&(ue<ce&&he==="meet"||ue>ce&&he==="slice")?(oe-this.transformCanvas.w*(le/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=ke==="YMid"&&(ue>ce&&he==="meet"||ue<ce&&he==="slice")?(le-this.transformCanvas.h*(oe/this.transformCanvas.w))/2*this.renderConfig.dpr:ke==="YMax"&&(ue>ce&&he==="meet"||ue<ce&&he==="slice")?(le-this.transformCanvas.h*(oe/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=oe/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=le/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var te;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),te=(this.layers?this.layers.length:0)-1;te>=0;te-=1)this.elements[te]&&this.elements[te].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(te,ie){if((this.renderedFrame!==te||this.renderConfig.clearCanvas!==!0||ie)&&!this.destroyed&&te!==-1){var oe;this.renderedFrame=te,this.globalData.frameNum=te-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||ie,this.globalData.projectInterface.currentFrame=te;var le=this.layers.length;for(this.completeLayers||this.checkLayers(te),oe=0;oe<le;oe+=1)(this.completeLayers||this.elements[oe])&&this.elements[oe].prepareFrame(te-this.layers[oe].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),oe=le-1;oe>=0;oe-=1)(this.completeLayers||this.elements[oe])&&this.elements[oe].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(te){var ie=this.elements;if(!ie[te]&&this.layers[te].ty!==99){var oe=this.createItem(this.layers[te],this,this.globalData);ie[te]=oe,oe.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var te,ie=this.canvasContext;for(ie.beginPath(),ie.moveTo(0,0),ie.lineTo(this.data.w,0),ie.lineTo(this.data.w,this.data.h),ie.lineTo(0,this.data.h),ie.lineTo(0,0),ie.clip(),te=this.layers.length-1;te>=0;te-=1)(this.completeLayers||this.elements[te])&&this.elements[te].renderFrame()},CVCompElement.prototype.destroy=function(){var te;for(te=this.layers.length-1;te>=0;te-=1)this.elements[te]&&this.elements[te].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(te){return new CVCompElement(te,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(te){return new CVCompElement(te,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var te=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var ie=this.finalTransform.mat.toCSS();te.transform=ie,te.webkitTransform=ie}this.finalTransform._opMdf&&(te.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var te;this.data.hasMask?((te=createNS("rect")).setAttribute("width",this.data.sw),te.setAttribute("height",this.data.sh),te.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((te=createTag("div")).style.width=this.data.sw+"px",te.style.height=this.data.sh+"px",te.style.backgroundColor=this.data.sc),this.layerElement.appendChild(te)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var te;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),te=this.svgElement;else{te=createNS("svg");var ie=this.comp.data?this.comp.data:this.globalData.compSize;te.setAttribute("width",ie.w),te.setAttribute("height",ie.h),te.appendChild(this.shapesContainer),this.layerElement.appendChild(te)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=te},HShapeElement.prototype.getTransformedPoint=function(te,ie){var oe,le=te.length;for(oe=0;oe<le;oe+=1)ie=te[oe].mProps.v.applyToPointArray(ie[0],ie[1],0);return ie},HShapeElement.prototype.calculateShapeBoundingBox=function(te,ie){var oe,le,ce,ue,fe,he=te.sh.v,ve=te.transformers,Se=he._length;if(!(Se<=1)){for(oe=0;oe<Se-1;oe+=1)le=this.getTransformedPoint(ve,he.v[oe]),ce=this.getTransformedPoint(ve,he.o[oe]),ue=this.getTransformedPoint(ve,he.i[oe+1]),fe=this.getTransformedPoint(ve,he.v[oe+1]),this.checkBounds(le,ce,ue,fe,ie);he.c&&(le=this.getTransformedPoint(ve,he.v[oe]),ce=this.getTransformedPoint(ve,he.o[oe]),ue=this.getTransformedPoint(ve,he.i[0]),fe=this.getTransformedPoint(ve,he.v[0]),this.checkBounds(le,ce,ue,fe,ie))}},HShapeElement.prototype.checkBounds=function(te,ie,oe,le,ce){this.getBoundsOfCurve(te,ie,oe,le);var ue=this.shapeBoundingBox;ce.x=bmMin(ue.left,ce.x),ce.xMax=bmMax(ue.right,ce.xMax),ce.y=bmMin(ue.top,ce.y),ce.yMax=bmMax(ue.bottom,ce.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(te,ie,oe,le){for(var ce,ue,fe,he,ve,Se,ke,Me=[[te[0],le[0]],[te[1],le[1]]],Pe=0;Pe<2;++Pe)ue=6*te[Pe]-12*ie[Pe]+6*oe[Pe],ce=-3*te[Pe]+9*ie[Pe]-9*oe[Pe]+3*le[Pe],fe=3*ie[Pe]-3*te[Pe],ue|=0,fe|=0,(ce|=0)===0&&ue===0||(ce===0?(he=-fe/ue)>0&&he<1&&Me[Pe].push(this.calculateF(he,te,ie,oe,le,Pe)):(ve=ue*ue-4*fe*ce)>=0&&((Se=(-ue+bmSqrt(ve))/(2*ce))>0&&Se<1&&Me[Pe].push(this.calculateF(Se,te,ie,oe,le,Pe)),(ke=(-ue-bmSqrt(ve))/(2*ce))>0&&ke<1&&Me[Pe].push(this.calculateF(ke,te,ie,oe,le,Pe))));this.shapeBoundingBox.left=bmMin.apply(null,Me[0]),this.shapeBoundingBox.top=bmMin.apply(null,Me[1]),this.shapeBoundingBox.right=bmMax.apply(null,Me[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,Me[1])},HShapeElement.prototype.calculateF=function(te,ie,oe,le,ce,ue){return bmPow(1-te,3)*ie[ue]+3*bmPow(1-te,2)*te*oe[ue]+3*(1-te)*bmPow(te,2)*le[ue]+bmPow(te,3)*ce[ue]},HShapeElement.prototype.calculateBoundingBox=function(te,ie){var oe,le=te.length;for(oe=0;oe<le;oe+=1)te[oe]&&te[oe].sh?this.calculateShapeBoundingBox(te[oe],ie):te[oe]&&te[oe].it?this.calculateBoundingBox(te[oe].it,ie):te[oe]&&te[oe].style&&te[oe].w&&this.expandStrokeBoundingBox(te[oe].w,ie)},HShapeElement.prototype.expandStrokeBoundingBox=function(te,ie){var oe=0;if(te.keyframes){for(var le=0;le<te.keyframes.length;le+=1){var ce=te.keyframes[le].s;ce>oe&&(oe=ce)}oe*=te.mult}else oe=te.v*te.mult;ie.x-=oe,ie.xMax+=oe,ie.y-=oe,ie.yMax+=oe},HShapeElement.prototype.currentBoxContains=function(te){return this.currentBBox.x<=te.x&&this.currentBBox.y<=te.y&&this.currentBBox.width+this.currentBBox.x>=te.x+te.width&&this.currentBBox.height+this.currentBBox.y>=te.y+te.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var te=this.tempBoundingBox,ie=999999;if(te.x=ie,te.xMax=-ie,te.y=ie,te.yMax=-ie,this.calculateBoundingBox(this.itemsData,te),te.width=te.xMax<te.x?0:te.xMax-te.x,te.height=te.yMax<te.y?0:te.yMax-te.y,this.currentBoxContains(te))return;var oe=!1;if(this.currentBBox.w!==te.width&&(this.currentBBox.w=te.width,this.shapeCont.setAttribute("width",te.width),oe=!0),this.currentBBox.h!==te.height&&(this.currentBBox.h=te.height,this.shapeCont.setAttribute("height",te.height),oe=!0),oe||this.currentBBox.x!==te.x||this.currentBBox.y!==te.y){this.currentBBox.w=te.width,this.currentBBox.h=te.height,this.currentBBox.x=te.x,this.currentBBox.y=te.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var le=this.shapeCont.style,ce="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";le.transform=ce,le.webkitTransform=ce}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var te=createNS("g");this.maskedElement.appendChild(te),this.innerElem=te}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var te=this.textProperty.currentData;this.renderedLetters=createSizedArray(te.l?te.l.length:0);var ie=this.innerElem.style,oe=te.fc?this.buildColor(te.fc):"rgba(0,0,0,0)";ie.fill=oe,ie.color=oe,te.sc&&(ie.stroke=this.buildColor(te.sc),ie.strokeWidth=te.sw+"px");var le,ce,ue=this.globalData.fontManager.getFontByName(te.f);if(!this.globalData.fontManager.chars)if(ie.fontSize=te.finalSize+"px",ie.lineHeight=te.finalSize+"px",ue.fClass)this.innerElem.className=ue.fClass;else{ie.fontFamily=ue.fFamily;var fe=te.fWeight,he=te.fStyle;ie.fontStyle=he,ie.fontWeight=fe}var ve,Se,ke,Me=te.l;ce=Me.length;var Pe,Re=this.mHelper,Oe="",Be=0;for(le=0;le<ce;le+=1){if(this.globalData.fontManager.chars?(this.textPaths[Be]?ve=this.textPaths[Be]:((ve=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),ve.setAttribute("stroke-linejoin",lineJoinEnum[2]),ve.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[Be]?ke=(Se=this.textSpans[Be]).children[0]:((Se=createTag("div")).style.lineHeight=0,(ke=createNS("svg")).appendChild(ve),styleDiv(Se)))):this.isMasked?ve=this.textPaths[Be]?this.textPaths[Be]:createNS("text"):this.textSpans[Be]?(Se=this.textSpans[Be],ve=this.textPaths[Be]):(styleDiv(Se=createTag("span")),styleDiv(ve=createTag("span")),Se.appendChild(ve)),this.globalData.fontManager.chars){var xe,nt=this.globalData.fontManager.getCharData(te.finalText[le],ue.fStyle,this.globalData.fontManager.getFontByName(te.f).fFamily);if(xe=nt?nt.data:null,Re.reset(),xe&&xe.shapes&&xe.shapes.length&&(Pe=xe.shapes[0].it,Re.scale(te.finalSize/100,te.finalSize/100),Oe=this.createPathShape(Re,Pe),ve.setAttribute("d",Oe)),this.isMasked)this.innerElem.appendChild(ve);else{if(this.innerElem.appendChild(Se),xe&&xe.shapes){document.body.appendChild(ke);var rt=ke.getBBox();ke.setAttribute("width",rt.width+2),ke.setAttribute("height",rt.height+2),ke.setAttribute("viewBox",rt.x-1+" "+(rt.y-1)+" "+(rt.width+2)+" "+(rt.height+2));var ot=ke.style,ht="translate("+(rt.x-1)+"px,"+(rt.y-1)+"px)";ot.transform=ht,ot.webkitTransform=ht,Me[le].yOffset=rt.y-1}else ke.setAttribute("width",1),ke.setAttribute("height",1);Se.appendChild(ke)}}else if(ve.textContent=Me[le].val,ve.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(ve);else{this.innerElem.appendChild(Se);var dt=ve.style,Rt="translate3d(0,"+-te.finalSize/1.2+"px,0)";dt.transform=Rt,dt.webkitTransform=Rt}this.isMasked?this.textSpans[Be]=ve:this.textSpans[Be]=Se,this.textSpans[Be].style.display="block",this.textPaths[Be]=ve,Be+=1}for(;Be<this.textSpans.length;)this.textSpans[Be].style.display="none",Be+=1},HTextElement.prototype.renderInnerContent=function(){var te;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),te=this.svgElement.style;var ie="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";te.transform=ie,te.webkitTransform=ie}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var oe,le,ce,ue,fe,he=0,ve=this.textAnimator.renderedLetters,Se=this.textProperty.currentData.l;for(le=Se.length,oe=0;oe<le;oe+=1)Se[oe].n?he+=1:(ue=this.textSpans[oe],fe=this.textPaths[oe],ce=ve[he],he+=1,ce._mdf.m&&(this.isMasked?ue.setAttribute("transform",ce.m):(ue.style.webkitTransform=ce.m,ue.style.transform=ce.m)),ue.style.opacity=ce.o,ce.sw&&ce._mdf.sw&&fe.setAttribute("stroke-width",ce.sw),ce.sc&&ce._mdf.sc&&fe.setAttribute("stroke",ce.sc),ce.fc&&ce._mdf.fc&&(fe.setAttribute("fill",ce.fc),fe.style.color=ce.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var ke=this.innerElem.getBBox();if(this.currentBBox.w!==ke.width&&(this.currentBBox.w=ke.width,this.svgElement.setAttribute("width",ke.width)),this.currentBBox.h!==ke.height&&(this.currentBBox.h=ke.height,this.svgElement.setAttribute("height",ke.height)),this.currentBBox.w!==ke.width+2||this.currentBBox.h!==ke.height+2||this.currentBBox.x!==ke.x-1||this.currentBBox.y!==ke.y-1){this.currentBBox.w=ke.width+2,this.currentBBox.h=ke.height+2,this.currentBBox.x=ke.x-1,this.currentBBox.y=ke.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),te=this.svgElement.style;var Me="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";te.transform=Me,te.webkitTransform=Me}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var te,ie,oe,le,ce=this.comp.threeDElements.length;for(te=0;te<ce;te+=1)if((ie=this.comp.threeDElements[te]).type==="3d"){oe=ie.perspectiveElem.style,le=ie.container.style;var ue=this.pe.v+"px",fe="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";oe.perspective=ue,oe.webkitPerspective=ue,le.transformOrigin="0px 0px 0px",le.mozTransformOrigin="0px 0px 0px",le.webkitTransformOrigin="0px 0px 0px",oe.transform=fe,oe.webkitTransform=fe}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var te,ie,oe=this._isFirstFrame;if(this.hierarchy)for(ie=this.hierarchy.length,te=0;te<ie;te+=1)oe=this.hierarchy[te].finalTransform.mProp._mdf||oe;if(oe||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(te=ie=this.hierarchy.length-1;te>=0;te-=1){var le=this.hierarchy[te].finalTransform.mProp;this.mat.translate(-le.p.v[0],-le.p.v[1],le.p.v[2]),this.mat.rotateX(-le.or.v[0]).rotateY(-le.or.v[1]).rotateZ(le.or.v[2]),this.mat.rotateX(-le.rx.v).rotateY(-le.ry.v).rotateZ(le.rz.v),this.mat.scale(1/le.s.v[0],1/le.s.v[1],1/le.s.v[2]),this.mat.translate(le.a.v[0],le.a.v[1],le.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var ce;ce=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var ue=Math.sqrt(Math.pow(ce[0],2)+Math.pow(ce[1],2)+Math.pow(ce[2],2)),fe=[ce[0]/ue,ce[1]/ue,ce[2]/ue],he=Math.sqrt(fe[2]*fe[2]+fe[0]*fe[0]),ve=Math.atan2(fe[1],he),Se=Math.atan2(fe[0],-fe[2]);this.mat.rotateY(Se).rotateX(-ve)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var ke=!this._prevMat.equals(this.mat);if((ke||this.pe._mdf)&&this.comp.threeDElements){var Me,Pe,Re;for(ie=this.comp.threeDElements.length,te=0;te<ie;te+=1)if((Me=this.comp.threeDElements[te]).type==="3d"){if(ke){var Oe=this.mat.toCSS();(Re=Me.container.style).transform=Oe,Re.webkitTransform=Oe}this.pe._mdf&&((Pe=Me.perspectiveElem.style).perspective=this.pe.v+"px",Pe.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(te){this.prepareProperties(te,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var te=this.globalData.getAssetsPath(this.assetData),ie=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",te),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(ie),ie.crossOrigin="anonymous",ie.src=te,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(te,ie){var oe=te.getBaseElement();if(oe){var le=this.layers[ie];if(le.ddd&&this.supports3d)this.addTo3dContainer(oe,ie);else if(this.threeDElements)this.addTo3dContainer(oe,ie);else{for(var ce,ue,fe=0;fe<ie;)this.elements[fe]&&this.elements[fe]!==!0&&this.elements[fe].getBaseElement&&(ue=this.elements[fe],ce=(this.layers[fe].ddd?this.getThreeDContainerByPos(fe):ue.getBaseElement())||ce),fe+=1;ce?le.ddd&&this.supports3d||this.layerElement.insertBefore(oe,ce):le.ddd&&this.supports3d||this.layerElement.appendChild(oe)}}},HybridRendererBase.prototype.createShape=function(te){return this.supports3d?new HShapeElement(te,this.globalData,this):new SVGShapeElement(te,this.globalData,this)},HybridRendererBase.prototype.createText=function(te){return this.supports3d?new HTextElement(te,this.globalData,this):new SVGTextLottieElement(te,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(te){return this.camera=new HCameraElement(te,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(te){return this.supports3d?new HImageElement(te,this.globalData,this):new IImageElement(te,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(te){return this.supports3d?new HSolidElement(te,this.globalData,this):new ISolidElement(te,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(te){for(var ie=0,oe=this.threeDElements.length;ie<oe;){if(this.threeDElements[ie].startPos<=te&&this.threeDElements[ie].endPos>=te)return this.threeDElements[ie].perspectiveElem;ie+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(te,ie){var oe,le,ce=createTag("div");styleDiv(ce);var ue=createTag("div");if(styleDiv(ue),ie==="3d"){(oe=ce.style).width=this.globalData.compSize.w+"px",oe.height=this.globalData.compSize.h+"px",oe.webkitTransformOrigin="50% 50%",oe.mozTransformOrigin="50% 50%",oe.transformOrigin="50% 50%";var fe="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(le=ue.style).transform=fe,le.webkitTransform=fe}ce.appendChild(ue);var he={container:ue,perspectiveElem:ce,startPos:te,endPos:te,type:ie};return this.threeDElements.push(he),he},HybridRendererBase.prototype.build3dContainers=function(){var te,ie,oe=this.layers.length,le="";for(te=0;te<oe;te+=1)this.layers[te].ddd&&this.layers[te].ty!==3?(le!=="3d"&&(le="3d",ie=this.createThreeDContainer(te,"3d")),ie.endPos=Math.max(ie.endPos,te)):(le!=="2d"&&(le="2d",ie=this.createThreeDContainer(te,"2d")),ie.endPos=Math.max(ie.endPos,te));for(te=(oe=this.threeDElements.length)-1;te>=0;te-=1)this.resizerElem.appendChild(this.threeDElements[te].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(te,ie){for(var oe=0,le=this.threeDElements.length;oe<le;){if(ie<=this.threeDElements[oe].endPos){for(var ce,ue=this.threeDElements[oe].startPos;ue<ie;)this.elements[ue]&&this.elements[ue].getBaseElement&&(ce=this.elements[ue].getBaseElement()),ue+=1;ce?this.threeDElements[oe].container.insertBefore(te,ce):this.threeDElements[oe].container.appendChild(te);break}oe+=1}},HybridRendererBase.prototype.configAnimation=function(te){var ie=createTag("div"),oe=this.animationItem.wrapper,le=ie.style;le.width=te.w+"px",le.height=te.h+"px",this.resizerElem=ie,styleDiv(ie),le.transformStyle="flat",le.mozTransformStyle="flat",le.webkitTransformStyle="flat",this.renderConfig.className&&ie.setAttribute("class",this.renderConfig.className),oe.appendChild(ie),le.overflow="hidden";var ce=createNS("svg");ce.setAttribute("width","1"),ce.setAttribute("height","1"),styleDiv(ce),this.resizerElem.appendChild(ce);var ue=createNS("defs");ce.appendChild(ue),this.data=te,this.setupGlobalData(te,ce),this.globalData.defs=ue,this.layers=te.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var te;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var ie=this.layers?this.layers.length:0;for(te=0;te<ie;te+=1)this.elements[te].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var te,ie,oe,le,ce=this.animationItem.wrapper.offsetWidth,ue=this.animationItem.wrapper.offsetHeight,fe=ce/ue;this.globalData.compSize.w/this.globalData.compSize.h>fe?(te=ce/this.globalData.compSize.w,ie=ce/this.globalData.compSize.w,oe=0,le=(ue-this.globalData.compSize.h*(ce/this.globalData.compSize.w))/2):(te=ue/this.globalData.compSize.h,ie=ue/this.globalData.compSize.h,oe=(ce-this.globalData.compSize.w*(ue/this.globalData.compSize.h))/2,le=0);var he=this.resizerElem.style;he.webkitTransform="matrix3d("+te+",0,0,0,0,"+ie+",0,0,0,0,1,0,"+oe+","+le+",0,1)",he.transform=he.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var te,ie=this.globalData.compSize.w,oe=this.globalData.compSize.h,le=this.threeDElements.length;for(te=0;te<le;te+=1){var ce=this.threeDElements[te].perspectiveElem.style;ce.webkitPerspective=Math.sqrt(Math.pow(ie,2)+Math.pow(oe,2))+"px",ce.perspective=ce.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(te){var ie,oe=te.length,le=createTag("div");for(ie=0;ie<oe;ie+=1)if(te[ie].xt){var ce=this.createComp(te[ie],le,this.globalData.comp,null);ce.initExpressions(),this.globalData.projectInterface.registerComposition(ce)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(te,ie){for(var oe,le=0;le<ie;)this.elements[le]&&this.elements[le].getBaseElement&&(oe=this.elements[le].getBaseElement()),le+=1;oe?this.layerElement.insertBefore(te,oe):this.layerElement.appendChild(te)},HCompElement.prototype.createComp=function(te){return this.supports3d?new HCompElement(te,this.globalData,this):new SVGCompElement(te,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(te){return this.supports3d?new HCompElement(te,this.globalData,this):new SVGCompElement(te,this.globalData,this)};var CompExpressionInterface=function(te){function ie(oe){for(var le=0,ce=te.layers.length;le<ce;){if(te.layers[le].nm===oe||te.layers[le].ind===oe)return te.elements[le].layerInterface;le+=1}return null}return Object.defineProperty(ie,"_name",{value:te.data.nm}),ie.layer=ie,ie.pixelAspect=1,ie.height=te.data.h||te.globalData.compSize.h,ie.width=te.data.w||te.globalData.compSize.w,ie.pixelAspect=1,ie.frameDuration=1/te.globalData.frameRate,ie.displayStartTime=0,ie.numLayers=te.layers.length,ie},Expressions=function(){var te={};return te.initExpressions=function(ie){var oe=0,le=[];ie.renderer.compInterface=CompExpressionInterface(ie.renderer),ie.renderer.globalData.projectInterface.registerComposition(ie.renderer),ie.renderer.globalData.pushExpression=function(){oe+=1},ie.renderer.globalData.popExpression=function(){(oe-=1)===0&&function(){var ce,ue=le.length;for(ce=0;ce<ue;ce+=1)le[ce].release();le.length=0}()},ie.renderer.globalData.registerExpressionProperty=function(ce){le.indexOf(ce)===-1&&le.push(ce)}},te}(),MaskManagerInterface=function(){function te(ie,oe){this._mask=ie,this._data=oe}return Object.defineProperty(te.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(te.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(ie){var oe,le=createSizedArray(ie.viewData.length),ce=ie.viewData.length;for(oe=0;oe<ce;oe+=1)le[oe]=new te(ie.viewData[oe],ie.masksProperties[oe]);return function(ue){for(oe=0;oe<ce;){if(ie.masksProperties[oe].nm===ue)return le[oe];oe+=1}return null}}}(),ExpressionPropertyInterface=function(){var te={pv:0,v:0,mult:1},ie={pv:[0,0,0],v:[0,0,0],mult:1};function oe(ce,ue,fe){Object.defineProperty(ce,"velocity",{get:function(){return ue.getVelocityAtTime(ue.comp.currentFrame)}}),ce.numKeys=ue.keyframes?ue.keyframes.length:0,ce.key=function(he){if(!ce.numKeys)return 0;var ve="";ve="s"in ue.keyframes[he-1]?ue.keyframes[he-1].s:"e"in ue.keyframes[he-2]?ue.keyframes[he-2].e:ue.keyframes[he-2].s;var Se=fe==="unidimensional"?new Number(ve):Object.assign({},ve);return Se.time=ue.keyframes[he-1].t/ue.elem.comp.globalData.frameRate,Se.value=fe==="unidimensional"?ve[0]:ve,Se},ce.valueAtTime=ue.getValueAtTime,ce.speedAtTime=ue.getSpeedAtTime,ce.velocityAtTime=ue.getVelocityAtTime,ce.propertyGroup=ue.propertyGroup}function le(){return te}return function(ce){return ce?ce.propType==="unidimensional"?function(ue){ue&&"pv"in ue||(ue=te);var fe=1/ue.mult,he=ue.pv*fe,ve=new Number(he);return ve.value=he,oe(ve,ue,"unidimensional"),function(){return ue.k&&ue.getValue(),he=ue.v*fe,ve.value!==he&&((ve=new Number(he)).value=he,oe(ve,ue,"unidimensional")),ve}}(ce):function(ue){ue&&"pv"in ue||(ue=ie);var fe=1/ue.mult,he=ue.data&&ue.data.l||ue.pv.length,ve=createTypedArray("float32",he),Se=createTypedArray("float32",he);return ve.value=Se,oe(ve,ue,"multidimensional"),function(){ue.k&&ue.getValue();for(var ke=0;ke<he;ke+=1)Se[ke]=ue.v[ke]*fe,ve[ke]=Se[ke];return ve}}(ce):le}}(),TransformExpressionInterface=function(te){function ie(fe){switch(fe){case"scale":case"Scale":case"ADBE Scale":case 6:return ie.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return ie.rotation;case"ADBE Rotate X":return ie.xRotation;case"ADBE Rotate Y":return ie.yRotation;case"position":case"Position":case"ADBE Position":case 2:return ie.position;case"ADBE Position_0":return ie.xPosition;case"ADBE Position_1":return ie.yPosition;case"ADBE Position_2":return ie.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return ie.anchorPoint;case"opacity":case"Opacity":case 11:return ie.opacity;default:return null}}var oe,le,ce,ue;return Object.defineProperty(ie,"rotation",{get:ExpressionPropertyInterface(te.r||te.rz)}),Object.defineProperty(ie,"zRotation",{get:ExpressionPropertyInterface(te.rz||te.r)}),Object.defineProperty(ie,"xRotation",{get:ExpressionPropertyInterface(te.rx)}),Object.defineProperty(ie,"yRotation",{get:ExpressionPropertyInterface(te.ry)}),Object.defineProperty(ie,"scale",{get:ExpressionPropertyInterface(te.s)}),te.p?ue=ExpressionPropertyInterface(te.p):(oe=ExpressionPropertyInterface(te.px),le=ExpressionPropertyInterface(te.py),te.pz&&(ce=ExpressionPropertyInterface(te.pz))),Object.defineProperty(ie,"position",{get:function(){return te.p?ue():[oe(),le(),ce?ce():0]}}),Object.defineProperty(ie,"xPosition",{get:ExpressionPropertyInterface(te.px)}),Object.defineProperty(ie,"yPosition",{get:ExpressionPropertyInterface(te.py)}),Object.defineProperty(ie,"zPosition",{get:ExpressionPropertyInterface(te.pz)}),Object.defineProperty(ie,"anchorPoint",{get:ExpressionPropertyInterface(te.a)}),Object.defineProperty(ie,"opacity",{get:ExpressionPropertyInterface(te.o)}),Object.defineProperty(ie,"skew",{get:ExpressionPropertyInterface(te.sk)}),Object.defineProperty(ie,"skewAxis",{get:ExpressionPropertyInterface(te.sa)}),Object.defineProperty(ie,"orientation",{get:ExpressionPropertyInterface(te.or)}),ie},LayerExpressionInterface=function(){function te(Se){var ke=new Matrix;return Se!==void 0?this._elem.finalTransform.mProp.getValueAtTime(Se).clone(ke):this._elem.finalTransform.mProp.applyToMatrix(ke),ke}function ie(Se,ke){var Me=this.getMatrix(ke);return Me.props[12]=0,Me.props[13]=0,Me.props[14]=0,this.applyPoint(Me,Se)}function oe(Se,ke){var Me=this.getMatrix(ke);return this.applyPoint(Me,Se)}function le(Se,ke){var Me=this.getMatrix(ke);return Me.props[12]=0,Me.props[13]=0,Me.props[14]=0,this.invertPoint(Me,Se)}function ce(Se,ke){var Me=this.getMatrix(ke);return this.invertPoint(Me,Se)}function ue(Se,ke){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Me,Pe=this._elem.hierarchy.length;for(Me=0;Me<Pe;Me+=1)this._elem.hierarchy[Me].finalTransform.mProp.applyToMatrix(Se)}return Se.applyToPointArray(ke[0],ke[1],ke[2]||0)}function fe(Se,ke){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Me,Pe=this._elem.hierarchy.length;for(Me=0;Me<Pe;Me+=1)this._elem.hierarchy[Me].finalTransform.mProp.applyToMatrix(Se)}return Se.inversePoint(ke)}function he(Se){var ke=new Matrix;if(ke.reset(),this._elem.finalTransform.mProp.applyToMatrix(ke),this._elem.hierarchy&&this._elem.hierarchy.length){var Me,Pe=this._elem.hierarchy.length;for(Me=0;Me<Pe;Me+=1)this._elem.hierarchy[Me].finalTransform.mProp.applyToMatrix(ke);return ke.inversePoint(Se)}return ke.inversePoint(Se)}function ve(){return[1,1,1,1]}return function(Se){var ke;function Me(Re){switch(Re){case"ADBE Root Vectors Group":case"Contents":case 2:return Me.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return ke;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Me.effect;case"ADBE Text Properties":return Me.textInterface;default:return null}}Me.getMatrix=te,Me.invertPoint=fe,Me.applyPoint=ue,Me.toWorld=oe,Me.toWorldVec=ie,Me.fromWorld=ce,Me.fromWorldVec=le,Me.toComp=oe,Me.fromComp=he,Me.sampleImage=ve,Me.sourceRectAtTime=Se.sourceRectAtTime.bind(Se),Me._elem=Se;var Pe=getDescriptor(ke=TransformExpressionInterface(Se.finalTransform.mProp),"anchorPoint");return Object.defineProperties(Me,{hasParent:{get:function(){return Se.hierarchy.length}},parent:{get:function(){return Se.hierarchy[0].layerInterface}},rotation:getDescriptor(ke,"rotation"),scale:getDescriptor(ke,"scale"),position:getDescriptor(ke,"position"),opacity:getDescriptor(ke,"opacity"),anchorPoint:Pe,anchor_point:Pe,transform:{get:function(){return ke}},active:{get:function(){return Se.isInRange}}}),Me.startTime=Se.data.st,Me.index=Se.data.ind,Me.source=Se.data.refId,Me.height=Se.data.ty===0?Se.data.h:100,Me.width=Se.data.ty===0?Se.data.w:100,Me.inPoint=Se.data.ip/Se.comp.globalData.frameRate,Me.outPoint=Se.data.op/Se.comp.globalData.frameRate,Me._name=Se.data.nm,Me.registerMaskInterface=function(Re){Me.mask=new MaskManagerInterface(Re,Se)},Me.registerEffectsInterface=function(Re){Me.effect=Re},Me}}(),propertyGroupFactory=function(te,ie){return function(oe){return(oe=oe===void 0?1:oe)<=0?te:ie(oe-1)}},PropertyInterface=function(te,ie){var oe={_name:te};return function(le){return(le=le===void 0?1:le)<=0?oe:ie(le-1)}},EffectsExpressionInterface=function(){function te(oe,le,ce,ue){function fe(Me){for(var Pe=oe.ef,Re=0,Oe=Pe.length;Re<Oe;){if(Me===Pe[Re].nm||Me===Pe[Re].mn||Me===Pe[Re].ix)return Pe[Re].ty===5?Se[Re]:Se[Re]();Re+=1}throw new Error}var he,ve=propertyGroupFactory(fe,ce),Se=[],ke=oe.ef.length;for(he=0;he<ke;he+=1)oe.ef[he].ty===5?Se.push(te(oe.ef[he],le.effectElements[he],le.effectElements[he].propertyGroup,ue)):Se.push(ie(le.effectElements[he],oe.ef[he].ty,ue,ve));return oe.mn==="ADBE Color Control"&&Object.defineProperty(fe,"color",{get:function(){return Se[0]()}}),Object.defineProperties(fe,{numProperties:{get:function(){return oe.np}},_name:{value:oe.nm},propertyGroup:{value:ve}}),fe.enabled=oe.en!==0,fe.active=fe.enabled,fe}function ie(oe,le,ce,ue){var fe=ExpressionPropertyInterface(oe.p);return oe.p.setGroupProperty&&oe.p.setGroupProperty(PropertyInterface("",ue)),function(){return le===10?ce.comp.compInterface(oe.p.v):fe()}}return{createEffectsInterface:function(oe,le){if(oe.effectsManager){var ce,ue=[],fe=oe.data.ef,he=oe.effectsManager.effectElements.length;for(ce=0;ce<he;ce+=1)ue.push(te(fe[ce],oe.effectsManager.effectElements[ce],le,oe));var ve=oe.data.ef||[],Se=function(ke){for(ce=0,he=ve.length;ce<he;){if(ke===ve[ce].nm||ke===ve[ce].mn||ke===ve[ce].ix)return ue[ce];ce+=1}return null};return Object.defineProperty(Se,"numProperties",{get:function(){return ve.length}}),Se}return null}}}(),ShapePathInterface=function(te,ie,oe){var le=ie.sh;function ce(fe){return fe==="Shape"||fe==="shape"||fe==="Path"||fe==="path"||fe==="ADBE Vector Shape"||fe===2?ce.path:null}var ue=propertyGroupFactory(ce,oe);return le.setGroupProperty(PropertyInterface("Path",ue)),Object.defineProperties(ce,{path:{get:function(){return le.k&&le.getValue(),le}},shape:{get:function(){return le.k&&le.getValue(),le}},_name:{value:te.nm},ix:{value:te.ix},propertyIndex:{value:te.ix},mn:{value:te.mn},propertyGroup:{value:oe}}),ce},ShapeExpressionInterface=function(){function te(Re,Oe,Be){var xe,nt=[],rt=Re?Re.length:0;for(xe=0;xe<rt;xe+=1)Re[xe].ty==="gr"?nt.push(ie(Re[xe],Oe[xe],Be)):Re[xe].ty==="fl"?nt.push(oe(Re[xe],Oe[xe],Be)):Re[xe].ty==="st"?nt.push(ue(Re[xe],Oe[xe],Be)):Re[xe].ty==="tm"?nt.push(fe(Re[xe],Oe[xe],Be)):Re[xe].ty==="tr"||(Re[xe].ty==="el"?nt.push(ve(Re[xe],Oe[xe],Be)):Re[xe].ty==="sr"?nt.push(Se(Re[xe],Oe[xe],Be)):Re[xe].ty==="sh"?nt.push(ShapePathInterface(Re[xe],Oe[xe],Be)):Re[xe].ty==="rc"?nt.push(ke(Re[xe],Oe[xe],Be)):Re[xe].ty==="rd"?nt.push(Me(Re[xe],Oe[xe],Be)):Re[xe].ty==="rp"?nt.push(Pe(Re[xe],Oe[xe],Be)):Re[xe].ty==="gf"?nt.push(le(Re[xe],Oe[xe],Be)):nt.push(ce(Re[xe],Oe[xe])));return nt}function ie(Re,Oe,Be){var xe=function(ot){switch(ot){case"ADBE Vectors Group":case"Contents":case 2:return xe.content;default:return xe.transform}};xe.propertyGroup=propertyGroupFactory(xe,Be);var nt=function(ot,ht,dt){var Rt,Ct=function(Qn){for(var Mn=0,Gn=Rt.length;Mn<Gn;){if(Rt[Mn]._name===Qn||Rt[Mn].mn===Qn||Rt[Mn].propertyIndex===Qn||Rt[Mn].ix===Qn||Rt[Mn].ind===Qn)return Rt[Mn];Mn+=1}return typeof Qn=="number"?Rt[Qn-1]:null};Ct.propertyGroup=propertyGroupFactory(Ct,dt),Rt=te(ot.it,ht.it,Ct.propertyGroup),Ct.numProperties=Rt.length;var Lt=he(ot.it[ot.it.length-1],ht.it[ht.it.length-1],Ct.propertyGroup);return Ct.transform=Lt,Ct.propertyIndex=ot.cix,Ct._name=ot.nm,Ct}(Re,Oe,xe.propertyGroup),rt=he(Re.it[Re.it.length-1],Oe.it[Oe.it.length-1],xe.propertyGroup);return xe.content=nt,xe.transform=rt,Object.defineProperty(xe,"_name",{get:function(){return Re.nm}}),xe.numProperties=Re.np,xe.propertyIndex=Re.ix,xe.nm=Re.nm,xe.mn=Re.mn,xe}function oe(Re,Oe,Be){function xe(nt){return nt==="Color"||nt==="color"?xe.color:nt==="Opacity"||nt==="opacity"?xe.opacity:null}return Object.defineProperties(xe,{color:{get:ExpressionPropertyInterface(Oe.c)},opacity:{get:ExpressionPropertyInterface(Oe.o)},_name:{value:Re.nm},mn:{value:Re.mn}}),Oe.c.setGroupProperty(PropertyInterface("Color",Be)),Oe.o.setGroupProperty(PropertyInterface("Opacity",Be)),xe}function le(Re,Oe,Be){function xe(nt){return nt==="Start Point"||nt==="start point"?xe.startPoint:nt==="End Point"||nt==="end point"?xe.endPoint:nt==="Opacity"||nt==="opacity"?xe.opacity:null}return Object.defineProperties(xe,{startPoint:{get:ExpressionPropertyInterface(Oe.s)},endPoint:{get:ExpressionPropertyInterface(Oe.e)},opacity:{get:ExpressionPropertyInterface(Oe.o)},type:{get:function(){return"a"}},_name:{value:Re.nm},mn:{value:Re.mn}}),Oe.s.setGroupProperty(PropertyInterface("Start Point",Be)),Oe.e.setGroupProperty(PropertyInterface("End Point",Be)),Oe.o.setGroupProperty(PropertyInterface("Opacity",Be)),xe}function ce(){return function(){return null}}function ue(Re,Oe,Be){var xe,nt=propertyGroupFactory(Rt,Be),rt=propertyGroupFactory(dt,nt);function ot(Ct){Object.defineProperty(dt,Re.d[Ct].nm,{get:ExpressionPropertyInterface(Oe.d.dataProps[Ct].p)})}var ht=Re.d?Re.d.length:0,dt={};for(xe=0;xe<ht;xe+=1)ot(xe),Oe.d.dataProps[xe].p.setGroupProperty(rt);function Rt(Ct){return Ct==="Color"||Ct==="color"?Rt.color:Ct==="Opacity"||Ct==="opacity"?Rt.opacity:Ct==="Stroke Width"||Ct==="stroke width"?Rt.strokeWidth:null}return Object.defineProperties(Rt,{color:{get:ExpressionPropertyInterface(Oe.c)},opacity:{get:ExpressionPropertyInterface(Oe.o)},strokeWidth:{get:ExpressionPropertyInterface(Oe.w)},dash:{get:function(){return dt}},_name:{value:Re.nm},mn:{value:Re.mn}}),Oe.c.setGroupProperty(PropertyInterface("Color",nt)),Oe.o.setGroupProperty(PropertyInterface("Opacity",nt)),Oe.w.setGroupProperty(PropertyInterface("Stroke Width",nt)),Rt}function fe(Re,Oe,Be){function xe(rt){return rt===Re.e.ix||rt==="End"||rt==="end"?xe.end:rt===Re.s.ix?xe.start:rt===Re.o.ix?xe.offset:null}var nt=propertyGroupFactory(xe,Be);return xe.propertyIndex=Re.ix,Oe.s.setGroupProperty(PropertyInterface("Start",nt)),Oe.e.setGroupProperty(PropertyInterface("End",nt)),Oe.o.setGroupProperty(PropertyInterface("Offset",nt)),xe.propertyIndex=Re.ix,xe.propertyGroup=Be,Object.defineProperties(xe,{start:{get:ExpressionPropertyInterface(Oe.s)},end:{get:ExpressionPropertyInterface(Oe.e)},offset:{get:ExpressionPropertyInterface(Oe.o)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}function he(Re,Oe,Be){function xe(rt){return Re.a.ix===rt||rt==="Anchor Point"?xe.anchorPoint:Re.o.ix===rt||rt==="Opacity"?xe.opacity:Re.p.ix===rt||rt==="Position"?xe.position:Re.r.ix===rt||rt==="Rotation"||rt==="ADBE Vector Rotation"?xe.rotation:Re.s.ix===rt||rt==="Scale"?xe.scale:Re.sk&&Re.sk.ix===rt||rt==="Skew"?xe.skew:Re.sa&&Re.sa.ix===rt||rt==="Skew Axis"?xe.skewAxis:null}var nt=propertyGroupFactory(xe,Be);return Oe.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",nt)),Oe.transform.mProps.p.setGroupProperty(PropertyInterface("Position",nt)),Oe.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",nt)),Oe.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",nt)),Oe.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",nt)),Oe.transform.mProps.sk&&(Oe.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",nt)),Oe.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",nt))),Oe.transform.op.setGroupProperty(PropertyInterface("Opacity",nt)),Object.defineProperties(xe,{opacity:{get:ExpressionPropertyInterface(Oe.transform.mProps.o)},position:{get:ExpressionPropertyInterface(Oe.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(Oe.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(Oe.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(Oe.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(Oe.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(Oe.transform.mProps.sa)},_name:{value:Re.nm}}),xe.ty="tr",xe.mn=Re.mn,xe.propertyGroup=Be,xe}function ve(Re,Oe,Be){function xe(ot){return Re.p.ix===ot?xe.position:Re.s.ix===ot?xe.size:null}var nt=propertyGroupFactory(xe,Be);xe.propertyIndex=Re.ix;var rt=Oe.sh.ty==="tm"?Oe.sh.prop:Oe.sh;return rt.s.setGroupProperty(PropertyInterface("Size",nt)),rt.p.setGroupProperty(PropertyInterface("Position",nt)),Object.defineProperties(xe,{size:{get:ExpressionPropertyInterface(rt.s)},position:{get:ExpressionPropertyInterface(rt.p)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}function Se(Re,Oe,Be){function xe(ot){return Re.p.ix===ot?xe.position:Re.r.ix===ot?xe.rotation:Re.pt.ix===ot?xe.points:Re.or.ix===ot||ot==="ADBE Vector Star Outer Radius"?xe.outerRadius:Re.os.ix===ot?xe.outerRoundness:!Re.ir||Re.ir.ix!==ot&&ot!=="ADBE Vector Star Inner Radius"?Re.is&&Re.is.ix===ot?xe.innerRoundness:null:xe.innerRadius}var nt=propertyGroupFactory(xe,Be),rt=Oe.sh.ty==="tm"?Oe.sh.prop:Oe.sh;return xe.propertyIndex=Re.ix,rt.or.setGroupProperty(PropertyInterface("Outer Radius",nt)),rt.os.setGroupProperty(PropertyInterface("Outer Roundness",nt)),rt.pt.setGroupProperty(PropertyInterface("Points",nt)),rt.p.setGroupProperty(PropertyInterface("Position",nt)),rt.r.setGroupProperty(PropertyInterface("Rotation",nt)),Re.ir&&(rt.ir.setGroupProperty(PropertyInterface("Inner Radius",nt)),rt.is.setGroupProperty(PropertyInterface("Inner Roundness",nt))),Object.defineProperties(xe,{position:{get:ExpressionPropertyInterface(rt.p)},rotation:{get:ExpressionPropertyInterface(rt.r)},points:{get:ExpressionPropertyInterface(rt.pt)},outerRadius:{get:ExpressionPropertyInterface(rt.or)},outerRoundness:{get:ExpressionPropertyInterface(rt.os)},innerRadius:{get:ExpressionPropertyInterface(rt.ir)},innerRoundness:{get:ExpressionPropertyInterface(rt.is)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}function ke(Re,Oe,Be){function xe(ot){return Re.p.ix===ot?xe.position:Re.r.ix===ot?xe.roundness:Re.s.ix===ot||ot==="Size"||ot==="ADBE Vector Rect Size"?xe.size:null}var nt=propertyGroupFactory(xe,Be),rt=Oe.sh.ty==="tm"?Oe.sh.prop:Oe.sh;return xe.propertyIndex=Re.ix,rt.p.setGroupProperty(PropertyInterface("Position",nt)),rt.s.setGroupProperty(PropertyInterface("Size",nt)),rt.r.setGroupProperty(PropertyInterface("Rotation",nt)),Object.defineProperties(xe,{position:{get:ExpressionPropertyInterface(rt.p)},roundness:{get:ExpressionPropertyInterface(rt.r)},size:{get:ExpressionPropertyInterface(rt.s)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}function Me(Re,Oe,Be){function xe(ot){return Re.r.ix===ot||ot==="Round Corners 1"?xe.radius:null}var nt=propertyGroupFactory(xe,Be),rt=Oe;return xe.propertyIndex=Re.ix,rt.rd.setGroupProperty(PropertyInterface("Radius",nt)),Object.defineProperties(xe,{radius:{get:ExpressionPropertyInterface(rt.rd)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}function Pe(Re,Oe,Be){function xe(ot){return Re.c.ix===ot||ot==="Copies"?xe.copies:Re.o.ix===ot||ot==="Offset"?xe.offset:null}var nt=propertyGroupFactory(xe,Be),rt=Oe;return xe.propertyIndex=Re.ix,rt.c.setGroupProperty(PropertyInterface("Copies",nt)),rt.o.setGroupProperty(PropertyInterface("Offset",nt)),Object.defineProperties(xe,{copies:{get:ExpressionPropertyInterface(rt.c)},offset:{get:ExpressionPropertyInterface(rt.o)},_name:{value:Re.nm}}),xe.mn=Re.mn,xe}return function(Re,Oe,Be){var xe;function nt(rt){if(typeof rt=="number")return(rt=rt===void 0?1:rt)===0?Be:xe[rt-1];for(var ot=0,ht=xe.length;ot<ht;){if(xe[ot]._name===rt)return xe[ot];ot+=1}return null}return nt.propertyGroup=propertyGroupFactory(nt,function(){return Be}),xe=te(Re,Oe,nt.propertyGroup),nt.numProperties=xe.length,nt._name="Contents",nt}}(),TextExpressionInterface=function(te){var ie,oe;function le(ce){switch(ce){case"ADBE Text Document":return le.sourceText;default:return null}}return Object.defineProperty(le,"sourceText",{get:function(){te.textProperty.getValue();var ce=te.textProperty.currentData.t;return ce!==ie&&(ie=te.textProperty.currentData.t,(oe=new String(ce)).value=ce||new String(ce),Object.defineProperty(oe,"style",{get:function(){return{fillColor:te.textProperty.currentData.fc}}})),oe}}),le};function _typeof$2(te){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var FootageInterface=(dataInterfaceFactory=function(te){function ie(oe){return oe==="Outline"?ie.outlineInterface():null}return ie._name="Outline",ie.outlineInterface=function(oe){var le="",ce=oe.getFootageData();function ue(fe){if(ce[fe])return le=fe,_typeof$2(ce=ce[fe])==="object"?ue:ce;var he=fe.indexOf(le);if(he!==-1){var ve=parseInt(fe.substr(he+le.length),10);return _typeof$2(ce=ce[ve])==="object"?ue:ce}return""}return function(){return le="",ce=oe.getFootageData(),ue}}(te),ie},function(te){function ie(oe){return oe==="Data"?ie.dataInterface:null}return ie._name="Data",ie.dataInterface=dataInterfaceFactory(te),ie}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(te){return interfaces[te]||null}function _typeof$1(te){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}function seedRandom(te,ie){var oe=this,le=ie.pow(256,6),ce=ie.pow(2,52),ue=2*ce;function fe(ke){var Me,Pe=ke.length,Re=this,Oe=0,Be=Re.i=Re.j=0,xe=Re.S=[];for(Pe||(ke=[Pe++]);Oe<256;)xe[Oe]=Oe++;for(Oe=0;Oe<256;Oe++)xe[Oe]=xe[Be=255&Be+ke[Oe%Pe]+(Me=xe[Oe])],xe[Be]=Me;Re.g=function(nt){for(var rt,ot=0,ht=Re.i,dt=Re.j,Rt=Re.S;nt--;)rt=Rt[ht=255&ht+1],ot=256*ot+Rt[255&(Rt[ht]=Rt[dt=255&dt+rt])+(Rt[dt]=rt)];return Re.i=ht,Re.j=dt,ot}}function he(ke,Me){return Me.i=ke.i,Me.j=ke.j,Me.S=ke.S.slice(),Me}function ve(ke,Me){for(var Pe,Re=ke+"",Oe=0;Oe<Re.length;)Me[255&Oe]=255&(Pe^=19*Me[255&Oe])+Re.charCodeAt(Oe++);return Se(Me)}function Se(ke){return String.fromCharCode.apply(0,ke)}ie.seedrandom=function(ke,Me,Pe){var Re=[],Oe=ve(function nt(rt,ot){var ht,dt=[],Rt=_typeof$1(rt);if(ot&&Rt=="object")for(ht in rt)try{dt.push(nt(rt[ht],ot-1))}catch{}return dt.length?dt:Rt=="string"?rt:rt+"\0"}((Me=Me===!0?{entropy:!0}:Me||{}).entropy?[ke,Se(te)]:ke===null?function(){try{var nt=new Uint8Array(256);return(oe.crypto||oe.msCrypto).getRandomValues(nt),Se(nt)}catch{var rt=oe.navigator,ot=rt&&rt.plugins;return[+new Date,oe,ot,oe.screen,Se(te)]}}():ke,3),Re),Be=new fe(Re),xe=function(){for(var nt=Be.g(6),rt=le,ot=0;nt<ce;)nt=256*(nt+ot),rt*=256,ot=Be.g(1);for(;nt>=ue;)nt/=2,rt/=2,ot>>>=1;return(nt+ot)/rt};return xe.int32=function(){return 0|Be.g(4)},xe.quick=function(){return Be.g(4)/4294967296},xe.double=xe,ve(Se(Be.S),te),(Me.pass||Pe||function(nt,rt,ot,ht){return ht&&(ht.S&&he(ht,Be),nt.state=function(){return he(Be,{})}),ot?(ie.random=nt,rt):nt})(xe,Oe,"global"in Me?Me.global:this==ie,Me.state)},ve(ie.random(),te)}function initialize$2(te){seedRandom([],te)}var propTypes={SHAPE:"shape"};function _typeof(te){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(te){return te.constructor===Array||te.constructor===Float32Array}function isNumerable(te,ie){return te==="number"||te==="boolean"||te==="string"||ie instanceof Number}function $bm_neg(te){var ie=_typeof(te);if(ie==="number"||ie==="boolean"||te instanceof Number)return-te;if($bm_isInstanceOfArray(te)){var oe,le=te.length,ce=[];for(oe=0;oe<le;oe+=1)ce[oe]=-te[oe];return ce}return te.propType?te.v:-te}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(te,ie){var oe=_typeof(te),le=_typeof(ie);if(oe==="string"||le==="string"||isNumerable(oe,te)&&isNumerable(le,ie))return te+ie;if($bm_isInstanceOfArray(te)&&isNumerable(le,ie))return(te=te.slice(0))[0]+=ie,te;if(isNumerable(oe,te)&&$bm_isInstanceOfArray(ie))return(ie=ie.slice(0))[0]=te+ie[0],ie;if($bm_isInstanceOfArray(te)&&$bm_isInstanceOfArray(ie)){for(var ce=0,ue=te.length,fe=ie.length,he=[];ce<ue||ce<fe;)(typeof te[ce]=="number"||te[ce]instanceof Number)&&(typeof ie[ce]=="number"||ie[ce]instanceof Number)?he[ce]=te[ce]+ie[ce]:he[ce]=ie[ce]===void 0?te[ce]:te[ce]||ie[ce],ce+=1;return he}return 0}var add=sum;function sub(te,ie){var oe=_typeof(te),le=_typeof(ie);if(isNumerable(oe,te)&&isNumerable(le,ie))return oe==="string"&&(te=parseInt(te,10)),le==="string"&&(ie=parseInt(ie,10)),te-ie;if($bm_isInstanceOfArray(te)&&isNumerable(le,ie))return(te=te.slice(0))[0]-=ie,te;if(isNumerable(oe,te)&&$bm_isInstanceOfArray(ie))return(ie=ie.slice(0))[0]=te-ie[0],ie;if($bm_isInstanceOfArray(te)&&$bm_isInstanceOfArray(ie)){for(var ce=0,ue=te.length,fe=ie.length,he=[];ce<ue||ce<fe;)(typeof te[ce]=="number"||te[ce]instanceof Number)&&(typeof ie[ce]=="number"||ie[ce]instanceof Number)?he[ce]=te[ce]-ie[ce]:he[ce]=ie[ce]===void 0?te[ce]:te[ce]||ie[ce],ce+=1;return he}return 0}function mul(te,ie){var oe,le,ce,ue=_typeof(te),fe=_typeof(ie);if(isNumerable(ue,te)&&isNumerable(fe,ie))return te*ie;if($bm_isInstanceOfArray(te)&&isNumerable(fe,ie)){for(ce=te.length,oe=createTypedArray("float32",ce),le=0;le<ce;le+=1)oe[le]=te[le]*ie;return oe}if(isNumerable(ue,te)&&$bm_isInstanceOfArray(ie)){for(ce=ie.length,oe=createTypedArray("float32",ce),le=0;le<ce;le+=1)oe[le]=te*ie[le];return oe}return 0}function div(te,ie){var oe,le,ce,ue=_typeof(te),fe=_typeof(ie);if(isNumerable(ue,te)&&isNumerable(fe,ie))return te/ie;if($bm_isInstanceOfArray(te)&&isNumerable(fe,ie)){for(ce=te.length,oe=createTypedArray("float32",ce),le=0;le<ce;le+=1)oe[le]=te[le]/ie;return oe}if(isNumerable(ue,te)&&$bm_isInstanceOfArray(ie)){for(ce=ie.length,oe=createTypedArray("float32",ce),le=0;le<ce;le+=1)oe[le]=te/ie[le];return oe}return 0}function mod(te,ie){return typeof te=="string"&&(te=parseInt(te,10)),typeof ie=="string"&&(ie=parseInt(ie,10)),te%ie}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(te,ie,oe){if(ie>oe){var le=oe;oe=ie,ie=le}return Math.min(Math.max(te,ie),oe)}function radiansToDegrees(te){return te/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(te){return te*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(te,ie){if(typeof te=="number"||te instanceof Number)return ie=ie||0,Math.abs(te-ie);var oe;ie||(ie=helperLengthArray);var le=Math.min(te.length,ie.length),ce=0;for(oe=0;oe<le;oe+=1)ce+=Math.pow(ie[oe]-te[oe],2);return Math.sqrt(ce)}function normalize(te){return div(te,length(te))}function rgbToHsl(te){var ie,oe,le=te[0],ce=te[1],ue=te[2],fe=Math.max(le,ce,ue),he=Math.min(le,ce,ue),ve=(fe+he)/2;if(fe===he)ie=0,oe=0;else{var Se=fe-he;switch(oe=ve>.5?Se/(2-fe-he):Se/(fe+he),fe){case le:ie=(ce-ue)/Se+(ce<ue?6:0);break;case ce:ie=(ue-le)/Se+2;break;case ue:ie=(le-ce)/Se+4}ie/=6}return[ie,oe,ve,te[3]]}function hue2rgb(te,ie,oe){return oe<0&&(oe+=1),oe>1&&(oe-=1),oe<1/6?te+6*(ie-te)*oe:oe<.5?ie:oe<2/3?te+(ie-te)*(2/3-oe)*6:te}function hslToRgb(te){var ie,oe,le,ce=te[0],ue=te[1],fe=te[2];if(ue===0)ie=fe,le=fe,oe=fe;else{var he=fe<.5?fe*(1+ue):fe+ue-fe*ue,ve=2*fe-he;ie=hue2rgb(ve,he,ce+1/3),oe=hue2rgb(ve,he,ce),le=hue2rgb(ve,he,ce-1/3)}return[ie,oe,le,te[3]]}function linear(te,ie,oe,le,ce){if(le!==void 0&&ce!==void 0||(le=ie,ce=oe,ie=0,oe=1),oe<ie){var ue=oe;oe=ie,ie=ue}if(te<=ie)return le;if(te>=oe)return ce;var fe,he=oe===ie?0:(te-ie)/(oe-ie);if(!le.length)return le+(ce-le)*he;var ve=le.length,Se=createTypedArray("float32",ve);for(fe=0;fe<ve;fe+=1)Se[fe]=le[fe]+(ce[fe]-le[fe])*he;return Se}function random(te,ie){if(ie===void 0&&(te===void 0?(te=0,ie=1):(ie=te,te=void 0)),ie.length){var oe,le=ie.length;te||(te=createTypedArray("float32",le));var ce=createTypedArray("float32",le),ue=BMMath.random();for(oe=0;oe<le;oe+=1)ce[oe]=te[oe]+ue*(ie[oe]-te[oe]);return ce}return te===void 0&&(te=0),te+BMMath.random()*(ie-te)}function createPath(te,ie,oe,le){var ce,ue=te.length,fe=shapePool.newElement();fe.setPathData(!!le,ue);var he,ve,Se=[0,0];for(ce=0;ce<ue;ce+=1)he=ie&&ie[ce]?ie[ce]:Se,ve=oe&&oe[ce]?oe[ce]:Se,fe.setTripleAt(te[ce][0],te[ce][1],ve[0]+te[ce][0],ve[1]+te[ce][1],he[0]+te[ce][0],he[1]+te[ce][1],ce,!0);return fe}function initiateExpression(elem,data,property){function noOp(te){return te}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function(te,ie){var oe,le,ce=this.pv.length?this.pv.length:1,ue=createTypedArray("float32",ce),fe=Math.floor(5*time);for(oe=0,le=0;oe<fe;){for(le=0;le<ce;le+=1)ue[le]+=-ie+2*ie*BMMath.random();oe+=1}var he=5*time,ve=he-Math.floor(he),Se=createTypedArray("float32",ce);if(ce>1){for(le=0;le<ce;le+=1)Se[le]=this.pv[le]+ue[le]+(-ie+2*ie*BMMath.random())*ve;return Se}return this.pv+ue[0]+(-ie+2*ie*BMMath.random())*ve}).bind(this);function loopInDuration(te,ie){return loopIn(te,ie,!0)}function loopOutDuration(te,ie){return loopOut(te,ie,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(te,ie){var oe=[ie[0]-te[0],ie[1]-te[1],ie[2]-te[2]],le=Math.atan2(oe[0],Math.sqrt(oe[1]*oe[1]+oe[2]*oe[2]))/degToRads;return[-Math.atan2(oe[1],oe[2])/degToRads,le,0]}function easeOut(te,ie,oe,le,ce){return applyEase(easeOutBez,te,ie,oe,le,ce)}function easeIn(te,ie,oe,le,ce){return applyEase(easeInBez,te,ie,oe,le,ce)}function ease(te,ie,oe,le,ce){return applyEase(easeInOutBez,te,ie,oe,le,ce)}function applyEase(te,ie,oe,le,ce,ue){ce===void 0?(ce=oe,ue=le):ie=(ie-oe)/(le-oe),ie>1?ie=1:ie<0&&(ie=0);var fe=te(ie);if($bm_isInstanceOfArray(ce)){var he,ve=ce.length,Se=createTypedArray("float32",ve);for(he=0;he<ve;he+=1)Se[he]=(ue[he]-ce[he])*fe+ce[he];return Se}return(ue-ce)*fe+ce}function nearestKey(te){var ie,oe,le,ce=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(oe=-1,(te*=elem.comp.globalData.frameRate)<data.k[0].t)oe=1,le=data.k[0].t;else{for(ie=0;ie<ce-1;ie+=1){if(te===data.k[ie].t){oe=ie+1,le=data.k[ie].t;break}if(te>data.k[ie].t&&te<data.k[ie+1].t){te-data.k[ie].t>data.k[ie+1].t-te?(oe=ie+2,le=data.k[ie+1].t):(oe=ie+1,le=data.k[ie].t);break}}oe===-1&&(oe=ie+1,le=data.k[ie].t)}else oe=0,le=0;var ue={};return ue.index=oe,ue.time=le/elem.comp.globalData.frameRate,ue}function key(te){var ie,oe,le;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+te);te-=1,ie={time:data.k[te].t/elem.comp.globalData.frameRate,value:[]};var ce=Object.prototype.hasOwnProperty.call(data.k[te],"s")?data.k[te].s:data.k[te-1].e;for(le=ce.length,oe=0;oe<le;oe+=1)ie[oe]=ce[oe],ie.value[oe]=ce[oe];return ie}function framesToTime(te,ie){return ie||(ie=elem.comp.globalData.frameRate),te/ie}function timeToFrames(te,ie){return te||te===0||(te=time),ie||(ie=elem.comp.globalData.frameRate),te*ie}function seedRandom(te){BMMath.seedrandom(randSeed+te)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(te,ie){return typeof value=="string"?ie===void 0?value.substring(te):value.substring(te,ie):""}function substr(te,ie){return typeof value=="string"?ie===void 0?value.substr(te):value.substr(te,ie):""}function posterizeTime(te){time=te===0?0:Math.floor(time*te)/te,value=valueAtTime(time)}var index=elem.data.ind;!elem.hierarchy||elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(te){return value=te,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!elem.hierarchy||!elem.hierarchy.length)&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(te,ie,oe){ie.x&&(oe.k=!0,oe.x=!0,oe.initiateExpression=ExpressionManager.initiateExpression,oe.effectsSequence.push(oe.initiateExpression(te,ie,oe).bind(oe)))},getSpeedAtTime:function(te){var ie=this.getValueAtTime(te),oe=this.getValueAtTime(te+-.01),le=0;if(ie.length){var ce;for(ce=0;ce<ie.length;ce+=1)le+=Math.pow(oe[ce]-ie[ce],2);le=100*Math.sqrt(le)}else le=0;return le},getVelocityAtTime:function(te){if(this.vel!==void 0)return this.vel;var ie,oe,le=this.getValueAtTime(te),ce=this.getValueAtTime(te+-.001);if(le.length)for(ie=createTypedArray("float32",le.length),oe=0;oe<le.length;oe+=1)ie[oe]=(ce[oe]-le[oe])/-.001;else ie=(ce-le)/-.001;return ie},getValueAtTime:function(te){return te*=this.elem.globalData.frameRate,(te-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<te?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(te,this._cachingAtTime),this._cachingAtTime.lastFrame=te),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(te){this.propertyGroup=te}};function addPropertyDecorator(){function te(Me,Pe,Re){if(!this.k||!this.keyframes)return this.pv;Me=Me?Me.toLowerCase():"";var Oe,Be,xe,nt,rt,ot=this.comp.renderedFrame,ht=this.keyframes,dt=ht[ht.length-1].t;if(ot<=dt)return this.pv;if(Re?Be=dt-(Oe=Pe?Math.abs(dt-this.elem.comp.globalData.frameRate*Pe):Math.max(0,dt-this.elem.data.ip)):((!Pe||Pe>ht.length-1)&&(Pe=ht.length-1),Oe=dt-(Be=ht[ht.length-1-Pe].t)),Me==="pingpong"){if(Math.floor((ot-Be)/Oe)%2!=0)return this.getValueAtTime((Oe-(ot-Be)%Oe+Be)/this.comp.globalData.frameRate,0)}else{if(Me==="offset"){var Rt=this.getValueAtTime(Be/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Lt=this.getValueAtTime(((ot-Be)%Oe+Be)/this.comp.globalData.frameRate,0),Qn=Math.floor((ot-Be)/Oe);if(this.pv.length){for(nt=(rt=new Array(Rt.length)).length,xe=0;xe<nt;xe+=1)rt[xe]=(Ct[xe]-Rt[xe])*Qn+Lt[xe];return rt}return(Ct-Rt)*Qn+Lt}if(Me==="continue"){var Mn=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Gn=this.getValueAtTime((dt-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(nt=(rt=new Array(Mn.length)).length,xe=0;xe<nt;xe+=1)rt[xe]=Mn[xe]+(Mn[xe]-Gn[xe])*((ot-dt)/this.comp.globalData.frameRate)/5e-4;return rt}return Mn+(ot-dt)/.001*(Mn-Gn)}}return this.getValueAtTime(((ot-Be)%Oe+Be)/this.comp.globalData.frameRate,0)}function ie(Me,Pe,Re){if(!this.k)return this.pv;Me=Me?Me.toLowerCase():"";var Oe,Be,xe,nt,rt,ot=this.comp.renderedFrame,ht=this.keyframes,dt=ht[0].t;if(ot>=dt)return this.pv;if(Re?Be=dt+(Oe=Pe?Math.abs(this.elem.comp.globalData.frameRate*Pe):Math.max(0,this.elem.data.op-dt)):((!Pe||Pe>ht.length-1)&&(Pe=ht.length-1),Oe=(Be=ht[Pe].t)-dt),Me==="pingpong"){if(Math.floor((dt-ot)/Oe)%2==0)return this.getValueAtTime(((dt-ot)%Oe+dt)/this.comp.globalData.frameRate,0)}else{if(Me==="offset"){var Rt=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Ct=this.getValueAtTime(Be/this.comp.globalData.frameRate,0),Lt=this.getValueAtTime((Oe-(dt-ot)%Oe+dt)/this.comp.globalData.frameRate,0),Qn=Math.floor((dt-ot)/Oe)+1;if(this.pv.length){for(nt=(rt=new Array(Rt.length)).length,xe=0;xe<nt;xe+=1)rt[xe]=Lt[xe]-(Ct[xe]-Rt[xe])*Qn;return rt}return Lt-(Ct-Rt)*Qn}if(Me==="continue"){var Mn=this.getValueAtTime(dt/this.comp.globalData.frameRate,0),Gn=this.getValueAtTime((dt+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(nt=(rt=new Array(Mn.length)).length,xe=0;xe<nt;xe+=1)rt[xe]=Mn[xe]+(Mn[xe]-Gn[xe])*(dt-ot)/.001;return rt}return Mn+(Mn-Gn)*(dt-ot)/.001}}return this.getValueAtTime((Oe-((dt-ot)%Oe+dt))/this.comp.globalData.frameRate,0)}function oe(Me,Pe){if(!this.k)return this.pv;if(Me=.5*(Me||.4),(Pe=Math.floor(Pe||5))<=1)return this.pv;var Re,Oe,Be=this.comp.renderedFrame/this.comp.globalData.frameRate,xe=Be-Me,nt=Pe>1?(Be+Me-xe)/(Pe-1):1,rt=0,ot=0;for(Re=this.pv.length?createTypedArray("float32",this.pv.length):0;rt<Pe;){if(Oe=this.getValueAtTime(xe+rt*nt),this.pv.length)for(ot=0;ot<this.pv.length;ot+=1)Re[ot]+=Oe[ot];else Re+=Oe;rt+=1}if(this.pv.length)for(ot=0;ot<this.pv.length;ot+=1)Re[ot]/=Pe;else Re/=Pe;return Re}function le(Me){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Pe=this._transformCachingAtTime.v;if(Pe.cloneFromProps(this.pre.props),this.appliedTransformations<1){var Re=this.a.getValueAtTime(Me);Pe.translate(-Re[0]*this.a.mult,-Re[1]*this.a.mult,Re[2]*this.a.mult)}if(this.appliedTransformations<2){var Oe=this.s.getValueAtTime(Me);Pe.scale(Oe[0]*this.s.mult,Oe[1]*this.s.mult,Oe[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Be=this.sk.getValueAtTime(Me),xe=this.sa.getValueAtTime(Me);Pe.skewFromAxis(-Be*this.sk.mult,xe*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var nt=this.r.getValueAtTime(Me);Pe.rotate(-nt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var rt=this.rz.getValueAtTime(Me),ot=this.ry.getValueAtTime(Me),ht=this.rx.getValueAtTime(Me),dt=this.or.getValueAtTime(Me);Pe.rotateZ(-rt*this.rz.mult).rotateY(ot*this.ry.mult).rotateX(ht*this.rx.mult).rotateZ(-dt[2]*this.or.mult).rotateY(dt[1]*this.or.mult).rotateX(dt[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Rt=this.px.getValueAtTime(Me),Ct=this.py.getValueAtTime(Me);if(this.data.p.z){var Lt=this.pz.getValueAtTime(Me);Pe.translate(Rt*this.px.mult,Ct*this.py.mult,-Lt*this.pz.mult)}else Pe.translate(Rt*this.px.mult,Ct*this.py.mult,0)}else{var Qn=this.p.getValueAtTime(Me);Pe.translate(Qn[0]*this.p.mult,Qn[1]*this.p.mult,-Qn[2]*this.p.mult)}return Pe}function ce(){return this.v.clone(new Matrix)}var ue=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(Me,Pe,Re){var Oe=ue(Me,Pe,Re);return Oe.dynamicProperties.length?Oe.getValueAtTime=le.bind(Oe):Oe.getValueAtTime=ce.bind(Oe),Oe.setGroupProperty=expressionHelpers.setGroupProperty,Oe};var fe=PropertyFactory.getProp;PropertyFactory.getProp=function(Me,Pe,Re,Oe,Be){var xe=fe(Me,Pe,Re,Oe,Be);xe.kf?xe.getValueAtTime=expressionHelpers.getValueAtTime.bind(xe):xe.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(xe),xe.setGroupProperty=expressionHelpers.setGroupProperty,xe.loopOut=te,xe.loopIn=ie,xe.smooth=oe,xe.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(xe),xe.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(xe),xe.numKeys=Pe.a===1?Pe.k.length:0,xe.propertyIndex=Pe.ix;var nt=0;return Re!==0&&(nt=createTypedArray("float32",Pe.a===1?Pe.k[0].s.length:Pe.k.length)),xe._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:nt},expressionHelpers.searchExpressions(Me,Pe,xe),xe.k&&Be.addDynamicProperty(xe),xe};var he=ShapePropertyFactory.getConstructorFunction(),ve=ShapePropertyFactory.getKeyframedConstructorFunction();function Se(){}Se.prototype={vertices:function(Me,Pe){this.k&&this.getValue();var Re,Oe=this.v;Pe!==void 0&&(Oe=this.getValueAtTime(Pe,0));var Be=Oe._length,xe=Oe[Me],nt=Oe.v,rt=createSizedArray(Be);for(Re=0;Re<Be;Re+=1)rt[Re]=Me==="i"||Me==="o"?[xe[Re][0]-nt[Re][0],xe[Re][1]-nt[Re][1]]:[xe[Re][0],xe[Re][1]];return rt},points:function(Me){return this.vertices("v",Me)},inTangents:function(Me){return this.vertices("i",Me)},outTangents:function(Me){return this.vertices("o",Me)},isClosed:function(){return this.v.c},pointOnPath:function(Me,Pe){var Re=this.v;Pe!==void 0&&(Re=this.getValueAtTime(Pe,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(Re));for(var Oe,Be=this._segmentsLength,xe=Be.lengths,nt=Be.totalLength*Me,rt=0,ot=xe.length,ht=0;rt<ot;){if(ht+xe[rt].addedLength>nt){var dt=rt,Rt=Re.c&&rt===ot-1?0:rt+1,Ct=(nt-ht)/xe[rt].addedLength;Oe=bez.getPointInSegment(Re.v[dt],Re.v[Rt],Re.o[dt],Re.i[Rt],Ct,xe[rt]);break}ht+=xe[rt].addedLength,rt+=1}return Oe||(Oe=Re.c?[Re.v[0][0],Re.v[0][1]]:[Re.v[Re._length-1][0],Re.v[Re._length-1][1]]),Oe},vectorOnPath:function(Me,Pe,Re){Me==1?Me=this.v.c:Me==0&&(Me=.999);var Oe=this.pointOnPath(Me,Pe),Be=this.pointOnPath(Me+.001,Pe),xe=Be[0]-Oe[0],nt=Be[1]-Oe[1],rt=Math.sqrt(Math.pow(xe,2)+Math.pow(nt,2));return rt===0?[0,0]:Re==="tangent"?[xe/rt,nt/rt]:[-nt/rt,xe/rt]},tangentOnPath:function(Me,Pe){return this.vectorOnPath(Me,Pe,"tangent")},normalOnPath:function(Me,Pe){return this.vectorOnPath(Me,Pe,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([Se],he),extendPrototype([Se],ve),ve.prototype.getValueAtTime=function(Me){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),Me*=this.elem.globalData.frameRate,(Me-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<Me?this._caching.lastIndex:0,this._cachingAtTime.lastTime=Me,this.interpolateShape(Me,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},ve.prototype.initiateExpression=ExpressionManager.initiateExpression;var ke=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(Me,Pe,Re,Oe,Be){var xe=ke(Me,Pe,Re,Oe,Be);return xe.propertyIndex=Pe.ix,xe.lock=!1,Re===3?expressionHelpers.searchExpressions(Me,Pe.pt,xe):Re===4&&expressionHelpers.searchExpressions(Me,Pe.ks,xe),xe.k&&Me.addDynamicProperty(xe),xe}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(te,ie){var oe=this.calculateExpression(ie);if(te.t!==oe){var le={};return this.copyData(le,te),le.t=oe.toString(),le.__complete=!1,le}return te},TextProperty.prototype.searchProperty=function(){var te=this.searchKeyframes(),ie=this.searchExpressions();return this.kf=te||ie,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(te,ie){var oe,le,ce=createNS("feMerge");for(ce.setAttribute("result",te),le=0;le<ie.length;le+=1)(oe=createNS("feMergeNode")).setAttribute("in",ie[le]),ce.appendChild(oe),ce.appendChild(oe);return ce}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(te,ie,oe,le,ce){this.filterManager=ie;var ue=createNS("feColorMatrix");ue.setAttribute("type","matrix"),ue.setAttribute("color-interpolation-filters","linearRGB"),ue.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=ue,ue.setAttribute("result",le+"_tint_1"),te.appendChild(ue),(ue=createNS("feColorMatrix")).setAttribute("type","matrix"),ue.setAttribute("color-interpolation-filters","sRGB"),ue.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),ue.setAttribute("result",le+"_tint_2"),te.appendChild(ue),this.matrixFilter=ue;var fe=this.createMergeNode(le,[ce,le+"_tint_1",le+"_tint_2"]);te.appendChild(fe)}function SVGFillFilter(te,ie,oe,le){this.filterManager=ie;var ce=createNS("feColorMatrix");ce.setAttribute("type","matrix"),ce.setAttribute("color-interpolation-filters","sRGB"),ce.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),ce.setAttribute("result",le),te.appendChild(ce),this.matrixFilter=ce}function SVGStrokeEffect(te,ie,oe){this.initialized=!1,this.filterManager=ie,this.elem=oe,this.paths=[]}function SVGTritoneFilter(te,ie,oe,le){this.filterManager=ie;var ce=createNS("feColorMatrix");ce.setAttribute("type","matrix"),ce.setAttribute("color-interpolation-filters","linearRGB"),ce.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),te.appendChild(ce);var ue=createNS("feComponentTransfer");ue.setAttribute("color-interpolation-filters","sRGB"),ue.setAttribute("result",le),this.matrixFilter=ue;var fe=createNS("feFuncR");fe.setAttribute("type","table"),ue.appendChild(fe),this.feFuncR=fe;var he=createNS("feFuncG");he.setAttribute("type","table"),ue.appendChild(he),this.feFuncG=he;var ve=createNS("feFuncB");ve.setAttribute("type","table"),ue.appendChild(ve),this.feFuncB=ve,te.appendChild(ue)}function SVGProLevelsFilter(te,ie,oe,le){this.filterManager=ie;var ce=this.filterManager.effectElements,ue=createNS("feComponentTransfer");(ce[10].p.k||ce[10].p.v!==0||ce[11].p.k||ce[11].p.v!==1||ce[12].p.k||ce[12].p.v!==1||ce[13].p.k||ce[13].p.v!==0||ce[14].p.k||ce[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",ue)),(ce[17].p.k||ce[17].p.v!==0||ce[18].p.k||ce[18].p.v!==1||ce[19].p.k||ce[19].p.v!==1||ce[20].p.k||ce[20].p.v!==0||ce[21].p.k||ce[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",ue)),(ce[24].p.k||ce[24].p.v!==0||ce[25].p.k||ce[25].p.v!==1||ce[26].p.k||ce[26].p.v!==1||ce[27].p.k||ce[27].p.v!==0||ce[28].p.k||ce[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",ue)),(ce[31].p.k||ce[31].p.v!==0||ce[32].p.k||ce[32].p.v!==1||ce[33].p.k||ce[33].p.v!==1||ce[34].p.k||ce[34].p.v!==0||ce[35].p.k||ce[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",ue)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(ue.setAttribute("color-interpolation-filters","sRGB"),te.appendChild(ue)),(ce[3].p.k||ce[3].p.v!==0||ce[4].p.k||ce[4].p.v!==1||ce[5].p.k||ce[5].p.v!==1||ce[6].p.k||ce[6].p.v!==0||ce[7].p.k||ce[7].p.v!==1)&&((ue=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),ue.setAttribute("result",le),te.appendChild(ue),this.feFuncRComposed=this.createFeFunc("feFuncR",ue),this.feFuncGComposed=this.createFeFunc("feFuncG",ue),this.feFuncBComposed=this.createFeFunc("feFuncB",ue))}function SVGDropShadowEffect(te,ie,oe,le,ce){var ue=ie.container.globalData.renderConfig.filterSize,fe=ie.data.fs||ue;te.setAttribute("x",fe.x||ue.x),te.setAttribute("y",fe.y||ue.y),te.setAttribute("width",fe.width||ue.width),te.setAttribute("height",fe.height||ue.height),this.filterManager=ie;var he=createNS("feGaussianBlur");he.setAttribute("in","SourceAlpha"),he.setAttribute("result",le+"_drop_shadow_1"),he.setAttribute("stdDeviation","0"),this.feGaussianBlur=he,te.appendChild(he);var ve=createNS("feOffset");ve.setAttribute("dx","25"),ve.setAttribute("dy","0"),ve.setAttribute("in",le+"_drop_shadow_1"),ve.setAttribute("result",le+"_drop_shadow_2"),this.feOffset=ve,te.appendChild(ve);var Se=createNS("feFlood");Se.setAttribute("flood-color","#00ff00"),Se.setAttribute("flood-opacity","1"),Se.setAttribute("result",le+"_drop_shadow_3"),this.feFlood=Se,te.appendChild(Se);var ke=createNS("feComposite");ke.setAttribute("in",le+"_drop_shadow_3"),ke.setAttribute("in2",le+"_drop_shadow_2"),ke.setAttribute("operator","in"),ke.setAttribute("result",le+"_drop_shadow_4"),te.appendChild(ke);var Me=this.createMergeNode(le,[le+"_drop_shadow_4",ce]);te.appendChild(Me)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){var ie=this.filterManager.effectElements[0].p.v,oe=this.filterManager.effectElements[1].p.v,le=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+le+" 0"),this.matrixFilter.setAttribute("values",oe[0]-ie[0]+" 0 0 0 "+ie[0]+" "+(oe[1]-ie[1])+" 0 0 0 "+ie[1]+" "+(oe[2]-ie[2])+" 0 0 0 "+ie[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){var ie=this.filterManager.effectElements[2].p.v,oe=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+ie[0]+" 0 0 0 0 "+ie[1]+" 0 0 0 0 "+ie[2]+" 0 0 0 "+oe+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var te,ie,oe,le,ce=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(le=this.elem.maskManager.masksProperties.length,oe=0):le=(oe=this.filterManager.effectElements[0].p.v-1)+1,(ie=createNS("g")).setAttribute("fill","none"),ie.setAttribute("stroke-linecap","round"),ie.setAttribute("stroke-dashoffset",1);oe<le;oe+=1)te=createNS("path"),ie.appendChild(te),this.paths.push({p:te,m:oe});if(this.filterManager.effectElements[10].p.v===3){var ue=createNS("mask"),fe=createElementID();ue.setAttribute("id",fe),ue.setAttribute("mask-type","alpha"),ue.appendChild(ie),this.elem.globalData.defs.appendChild(ue);var he=createNS("g");for(he.setAttribute("mask","url("+getLocationHref()+"#"+fe+")");ce[0];)he.appendChild(ce[0]);this.elem.layerElement.appendChild(he),this.masker=ue,ie.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(ce=this.elem.layerElement.children||this.elem.layerElement.childNodes;ce.length;)this.elem.layerElement.removeChild(ce[0]);this.elem.layerElement.appendChild(ie),this.elem.layerElement.removeAttribute("mask"),ie.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=ie},SVGStrokeEffect.prototype.renderFrame=function(te){var ie;this.initialized||this.initialize();var oe,le,ce=this.paths.length;for(ie=0;ie<ce;ie+=1)if(this.paths[ie].m!==-1&&(oe=this.elem.maskManager.viewData[this.paths[ie].m],le=this.paths[ie].p,(te||this.filterManager._mdf||oe.prop._mdf)&&le.setAttribute("d",oe.lastPath),te||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||oe.prop._mdf)){var ue;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var fe=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),he=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),ve=le.getTotalLength();ue="0 0 0 "+ve*fe+" ";var Se,ke=ve*(he-fe),Me=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,Pe=Math.floor(ke/Me);for(Se=0;Se<Pe;Se+=1)ue+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";ue+="0 "+10*ve+" 0 0"}else ue="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;le.setAttribute("stroke-dasharray",ue)}if((te||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(te||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(te||this.filterManager.effectElements[3].p._mdf)){var Re=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*Re[0])+","+bmFloor(255*Re[1])+","+bmFloor(255*Re[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){var ie=this.filterManager.effectElements[0].p.v,oe=this.filterManager.effectElements[1].p.v,le=this.filterManager.effectElements[2].p.v,ce=le[0]+" "+oe[0]+" "+ie[0],ue=le[1]+" "+oe[1]+" "+ie[1],fe=le[2]+" "+oe[2]+" "+ie[2];this.feFuncR.setAttribute("tableValues",ce),this.feFuncG.setAttribute("tableValues",ue),this.feFuncB.setAttribute("tableValues",fe)}},SVGProLevelsFilter.prototype.createFeFunc=function(te,ie){var oe=createNS(te);return oe.setAttribute("type","table"),ie.appendChild(oe),oe},SVGProLevelsFilter.prototype.getTableValue=function(te,ie,oe,le,ce){for(var ue,fe,he=0,ve=Math.min(te,ie),Se=Math.max(te,ie),ke=Array.call(null,{length:256}),Me=0,Pe=ce-le,Re=ie-te;he<=256;)fe=(ue=he/256)<=ve?Re<0?ce:le:ue>=Se?Re<0?le:ce:le+Pe*Math.pow((ue-te)/Re,1/oe),ke[Me]=fe,Me+=1,he+=256/255;return ke.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){var ie,oe=this.filterManager.effectElements;this.feFuncRComposed&&(te||oe[3].p._mdf||oe[4].p._mdf||oe[5].p._mdf||oe[6].p._mdf||oe[7].p._mdf)&&(ie=this.getTableValue(oe[3].p.v,oe[4].p.v,oe[5].p.v,oe[6].p.v,oe[7].p.v),this.feFuncRComposed.setAttribute("tableValues",ie),this.feFuncGComposed.setAttribute("tableValues",ie),this.feFuncBComposed.setAttribute("tableValues",ie)),this.feFuncR&&(te||oe[10].p._mdf||oe[11].p._mdf||oe[12].p._mdf||oe[13].p._mdf||oe[14].p._mdf)&&(ie=this.getTableValue(oe[10].p.v,oe[11].p.v,oe[12].p.v,oe[13].p.v,oe[14].p.v),this.feFuncR.setAttribute("tableValues",ie)),this.feFuncG&&(te||oe[17].p._mdf||oe[18].p._mdf||oe[19].p._mdf||oe[20].p._mdf||oe[21].p._mdf)&&(ie=this.getTableValue(oe[17].p.v,oe[18].p.v,oe[19].p.v,oe[20].p.v,oe[21].p.v),this.feFuncG.setAttribute("tableValues",ie)),this.feFuncB&&(te||oe[24].p._mdf||oe[25].p._mdf||oe[26].p._mdf||oe[27].p._mdf||oe[28].p._mdf)&&(ie=this.getTableValue(oe[24].p.v,oe[25].p.v,oe[26].p.v,oe[27].p.v,oe[28].p.v),this.feFuncB.setAttribute("tableValues",ie)),this.feFuncA&&(te||oe[31].p._mdf||oe[32].p._mdf||oe[33].p._mdf||oe[34].p._mdf||oe[35].p._mdf)&&(ie=this.getTableValue(oe[31].p.v,oe[32].p.v,oe[33].p.v,oe[34].p.v,oe[35].p.v),this.feFuncA.setAttribute("tableValues",ie))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){if((te||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),te||this.filterManager.effectElements[0].p._mdf){var ie=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*ie[0]),Math.round(255*ie[1]),Math.round(255*ie[2])))}if((te||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),te||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var oe=this.filterManager.effectElements[3].p.v,le=(this.filterManager.effectElements[2].p.v-90)*degToRads,ce=oe*Math.cos(le),ue=oe*Math.sin(le);this.feOffset.setAttribute("dx",ce),this.feOffset.setAttribute("dy",ue)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(te,ie,oe){this.initialized=!1,this.filterManager=ie,this.filterElem=te,this.elem=oe,oe.matteElement=createNS("g"),oe.matteElement.appendChild(oe.layerElement),oe.matteElement.appendChild(oe.transformedElement),oe.baseElement=oe.matteElement}function SVGGaussianBlurEffect(te,ie,oe,le){te.setAttribute("x","-100%"),te.setAttribute("y","-100%"),te.setAttribute("width","300%"),te.setAttribute("height","300%"),this.filterManager=ie;var ce=createNS("feGaussianBlur");ce.setAttribute("result",le),te.appendChild(ce),this.feGaussianBlur=ce}return SVGMatte3Effect.prototype.findSymbol=function(te){for(var ie=0,oe=_svgMatteSymbols.length;ie<oe;){if(_svgMatteSymbols[ie]===te)return _svgMatteSymbols[ie];ie+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(te,ie){var oe=te.layerElement.parentNode;if(oe){for(var le,ce=oe.children,ue=0,fe=ce.length;ue<fe&&ce[ue]!==te.layerElement;)ue+=1;ue<=fe-2&&(le=ce[ue+1]);var he=createNS("use");he.setAttribute("href","#"+ie),le?oe.insertBefore(he,le):oe.appendChild(he)}},SVGMatte3Effect.prototype.setElementAsMask=function(te,ie){if(!this.findSymbol(ie)){var oe=createElementID(),le=createNS("mask");le.setAttribute("id",ie.layerId),le.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(ie);var ce=te.globalData.defs;ce.appendChild(le);var ue=createNS("symbol");ue.setAttribute("id",oe),this.replaceInParent(ie,oe),ue.appendChild(ie.layerElement),ce.appendChild(ue);var fe=createNS("use");fe.setAttribute("href","#"+oe),le.appendChild(fe),ie.data.hd=!1,ie.show()}te.setMatte(ie.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var te=this.filterManager.effectElements[0].p.v,ie=this.elem.comp.elements,oe=0,le=ie.length;oe<le;)ie[oe]&&ie[oe].data.ind===te&&this.setElementAsMask(this.elem,ie[oe]),oe+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(te){if(te||this.filterManager._mdf){var ie=.3*this.filterManager.effectElements[0].p.v,oe=this.filterManager.effectElements[1].p.v,le=oe==3?0:ie,ce=oe==2?0:ie;this.feGaussianBlur.setAttribute("stdDeviation",le+" "+ce);var ue=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",ue)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),REACT_LOTTIE_PLAYER_VERSION="3.5.3",LOTTIE_WEB_VERSION="^5.10.2",PlayerState,PlayerEvent;function parseSrc(te){if(typeof te=="object")return te;try{return JSON.parse(te)}catch{}try{return new URL(te).toString()}catch{}return te}(function(te){te.Loading="loading",te.Playing="playing",te.Paused="paused",te.Stopped="stopped",te.Frozen="frozen",te.Error="error"})(PlayerState||(PlayerState={})),function(te){te.Load="load",te.InstanceSaved="instanceSaved",te.Error="error",te.Ready="ready",te.Play="play",te.Pause="pause",te.Stop="stop",te.Freeze="freeze",te.Loop="loop",te.Complete="complete",te.Frame="frame"}(PlayerEvent||(PlayerEvent={}));var defaultOptions={clearCanvas:!1,hideOnTransparent:!0,progressiveLoad:!0},Player=function(te){function ie(oe){var le=te.call(this,oe)||this;return le.container=null,le.unmounted=!1,le.handleBgChange=function(ce){le.setState({background:ce})},le.triggerDownload=function(ce,ue){var fe=document.createElement("a");fe.href=ce,fe.download=ue,document.body.appendChild(fe),fe.click(),document.body.removeChild(fe)},le.snapshot=function(ce){var ue;ce===void 0&&(ce=!0);var fe=le.props.id?le.props.id:"lottie",he=document.getElementById(fe);if(le.props.renderer==="svg"){if(he){var ve=he.querySelector("svg");if(ve){var Se=new XMLSerializer().serializeToString(ve);ue="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(Se)}}ce&&le.triggerDownload(ue,"snapshot.svg")}else if(le.props.renderer==="canvas"){if(he){var ke=he.querySelector("canvas");ke&&(ue=ke.toDataURL("image/png"))}ce&&le.triggerDownload(ue,"snapshot.png")}return ue},typeof window<"u"&&(window.lottie=lottie),le.state={animationData:null,background:"transparent",containerRef:e__namespace.createRef(),debug:!0,instance:null,playerState:PlayerState.Loading,seeker:0},le}return __extends(ie,te),ie.getDerivedStateFromProps=function(oe,le){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ce){return oe.background!==le.background?[2,{background:oe.background}]:[2,null]})})},ie.prototype.getVersions=function(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:REACT_LOTTIE_PLAYER_VERSION}},ie.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(oe){switch(oe.label){case 0:return this.unmounted?[3,2]:[4,this.createLottie()];case 1:oe.sent(),oe.label=2;case 2:return[2]}})})},ie.prototype.componentWillUnmount=function(){this.unmounted=!0,this.state.instance&&this.state.instance.destroy()},ie.prototype.componentDidUpdate=function(oe){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(le){switch(le.label){case 0:return this.props.src===oe.src?[3,2]:(this.state.instance&&this.state.instance.destroy(),[4,this.createLottie()]);case 1:le.sent(),le.label=2;case 2:return[2]}})})},ie.prototype.render=function(){var oe=this,le=this.props,ce=le.children,ue=le.loop,fe=le.style,he=le.onBackgroundChange,ve=le.className,Se=this.state,ke=Se.animationData,Me=Se.instance,Pe=Se.playerState,Re=Se.seeker,Oe=Se.debug,Be=Se.background;return e__namespace.createElement("div",{className:"lf-player-container"},this.state.playerState===PlayerState.Error?e__namespace.createElement("div",{className:"lf-error"},e__namespace.createElement("span",{"aria-label":"error-symbol",role:"img"},"⚠️")):e__namespace.createElement("div",{id:this.props.id?this.props.id:"lottie",ref:function(xe){return oe.container=xe},style:__assign({background:Be,margin:"0 auto",outline:"none",overflow:"hidden"},fe),className:ve}),e__namespace.Children.map(ce,function(xe){return e__namespace.isValidElement(xe)?e__namespace.cloneElement(xe,{animationData:ke,background:Be,debug:Oe,instance:Me,loop:ue,pause:function(){return oe.pause()},play:function(){return oe.play()},playerState:Pe,seeker:Re,setBackground:function(nt){oe.setState({background:nt}),typeof he=="function"&&he(nt)},setSeeker:function(nt,rt){return oe.setSeeker(nt,rt)},stop:function(){return oe.stop()},toggleDebug:function(){return oe.toggleDebug()},setLoop:function(nt){return oe.setLoop(nt)},colorChangedEvent:function(nt){oe.handleBgChange(nt)},snapshot:function(){oe.snapshot()}}):null}))},ie.prototype.toggleDebug=function(){this.setState({debug:!this.state.debug})},ie.prototype.createLottie=function(){return __awaiter(this,void 0,void 0,function(){var oe,le,ce,ue,fe,he,ve,Se,ke,Me,Pe,Re,Oe,Be,xe=this;return __generator(this,function(nt){switch(nt.label){case 0:if(oe=this.props,le=oe.autoplay,ce=oe.direction,ue=oe.loop,fe=oe.lottieRef,he=oe.renderer,ve=oe.speed,Se=oe.src,ke=oe.background,Me=oe.rendererSettings,Pe=oe.hover,Re=this.state.instance,!Se||!this.container)return[2];nt.label=1;case 1:return nt.trys.push([1,5,,6]),typeof(Oe=parseSrc(Se))!="string"?[3,4]:[4,fetch(Oe).catch(function(){throw xe.setState({playerState:PlayerState.Error}),xe.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 2:return[4,nt.sent().json().catch(function(){throw xe.setState({playerState:PlayerState.Error}),xe.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 3:Oe=nt.sent(),nt.label=4;case 4:return Re&&Re.destroy(),Be=lottie.loadAnimation({rendererSettings:Me||defaultOptions,animationData:Oe,autoplay:le||!1,container:this.container,loop:ue||!1,renderer:he}),ve&&Be.setSpeed(ve),this.setState({animationData:Oe}),this.setState({instance:Be},function(){xe.triggerEvent(PlayerEvent.InstanceSaved),typeof fe=="function"&&fe(Be),le&&xe.play()}),Be.addEventListener("enterFrame",function(){xe.triggerEvent(PlayerEvent.Frame),xe.setState({seeker:Math.floor(Be.currentFrame)})}),Be.addEventListener("DOMLoaded",function(){xe.triggerEvent(PlayerEvent.Load)}),Be.addEventListener("data_ready",function(){xe.triggerEvent(PlayerEvent.Ready)}),Be.addEventListener("data_failed",function(){xe.setState({playerState:PlayerState.Error}),xe.triggerEvent(PlayerEvent.Error)}),Be.addEventListener("loopComplete",function(){xe.triggerEvent(PlayerEvent.Loop)}),Be.addEventListener("complete",function(){xe.triggerEvent(PlayerEvent.Complete),xe.setState({playerState:PlayerState.Paused}),xe.props.keepLastFrame&&!xe.props.loop||xe.setSeeker(0)}),this.container&&(this.container.addEventListener("mouseenter",function(){Pe&&xe.state.playerState!==PlayerState.Playing&&(xe.props.keepLastFrame&&xe.stop(),xe.play())}),this.container.addEventListener("mouseleave",function(){Pe&&xe.state.playerState===PlayerState.Playing&&xe.stop()})),ve&&this.setPlayerSpeed(ve),ce&&this.setPlayerDirection(ce),ke&&this.setState({background:ke}),[3,6];case 5:return nt.sent(),this.setState({playerState:PlayerState.Error}),this.triggerEvent(PlayerEvent.Error),[3,6];case 6:return[2]}})})},ie.prototype.play=function(){var oe=this.state.instance;oe&&(this.triggerEvent(PlayerEvent.Play),oe.play(),this.setState({playerState:PlayerState.Playing}))},ie.prototype.pause=function(){var oe=this.state.instance;oe&&(this.triggerEvent(PlayerEvent.Pause),oe.pause(),this.setState({playerState:PlayerState.Paused}))},ie.prototype.stop=function(){var oe=this.state.instance;oe&&(this.triggerEvent(PlayerEvent.Stop),oe.stop(),this.setState({playerState:PlayerState.Stopped}))},ie.prototype.setPlayerSpeed=function(oe){var le=this.state.instance;le&&le.setSpeed(oe)},ie.prototype.setPlayerDirection=function(oe){var le=this.state.instance;le&&le.setDirection(oe)},ie.prototype.setSeeker=function(oe,le){le===void 0&&(le=!1);var ce=this.state,ue=ce.instance,fe=ce.playerState;ue&&(le&&fe===PlayerState.Playing?ue.goToAndPlay(oe,!0):(ue.goToAndStop(oe,!0),this.triggerEvent(PlayerEvent.Pause),this.setState({playerState:PlayerState.Paused})))},ie.prototype.setLoop=function(oe){var le=this.state.instance;le&&(le.loop=oe,this.setState({instance:le}))},ie.prototype.triggerEvent=function(oe){var le=this.props.onEvent;le&&le(oe)},ie.defaultProps={loop:!1},ie}(e__namespace.Component);function styleInject(te,ie){ie===void 0&&(ie={});var oe=ie.insertAt;if(te&&typeof document<"u"){var le=document.head||document.getElementsByTagName("head")[0],ce=document.createElement("style");ce.type="text/css",oe==="top"&&le.firstChild?le.insertBefore(ce,le.firstChild):le.appendChild(ce),ce.styleSheet?ce.styleSheet.cssText=te:ce.appendChild(document.createTextNode(te))}}var css_248z=`.lf-progress {
25
- -webkit-appearance: none;
26
- -moz-apperance: none;
27
- width: 100%;
28
- /* margin: 0 10px; */
29
- height: 4px;
30
- border-radius: 3px;
31
- cursor: pointer;
32
- }
33
- .lf-progress:focus {
34
- outline: none;
35
- border: none;
36
- }
37
- .lf-progress::-moz-range-track {
38
- cursor: pointer;
39
- background: none;
40
- border: none;
41
- outline: none;
42
- }
43
- .lf-progress::-webkit-slider-thumb {
44
- -webkit-appearance: none !important;
45
- height: 13px;
46
- width: 13px;
47
- border: 0;
48
- border-radius: 50%;
49
- background: #0fccce;
50
- cursor: pointer;
51
- }
52
- .lf-progress::-moz-range-thumb {
53
- -moz-appearance: none !important;
54
- height: 13px;
55
- width: 13px;
56
- border: 0;
57
- border-radius: 50%;
58
- background: #0fccce;
59
- cursor: pointer;
60
- }
61
- .lf-progress::-ms-track {
62
- width: 100%;
63
- height: 3px;
64
- cursor: pointer;
65
- background: transparent;
66
- border-color: transparent;
67
- color: transparent;
68
- }
69
- .lf-progress::-ms-fill-lower {
70
- background: #ccc;
71
- border-radius: 3px;
72
- }
73
- .lf-progress::-ms-fill-upper {
74
- background: #ccc;
75
- border-radius: 3px;
76
- }
77
- .lf-progress::-ms-thumb {
78
- border: 0;
79
- height: 15px;
80
- width: 15px;
81
- border-radius: 50%;
82
- background: #0fccce;
83
- cursor: pointer;
84
- }
85
- .lf-progress:focus::-ms-fill-lower {
86
- background: #ccc;
87
- }
88
- .lf-progress:focus::-ms-fill-upper {
89
- background: #ccc;
90
- }
91
- .lf-player-container :focus {
92
- outline: 0;
93
- }
94
- .lf-popover {
95
- position: relative;
96
- }
97
-
98
- .lf-popover-content {
99
- display: inline-block;
100
- position: absolute;
101
- opacity: 1;
102
- visibility: visible;
103
- transform: translate(0, -10px);
104
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
105
- transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
106
- }
107
-
108
- .lf-popover-content.hidden {
109
- opacity: 0;
110
- visibility: hidden;
111
- transform: translate(0, 0px);
112
- }
113
-
114
- .lf-player-btn-container {
115
- display: flex;
116
- align-items: center;
117
- }
118
- .lf-player-btn {
119
- cursor: pointer;
120
- fill: #999;
121
- width: 14px;
122
- }
123
-
124
- .lf-player-btn.active {
125
- fill: #555;
126
- }
127
-
128
- .lf-popover {
129
- position: relative;
130
- }
131
-
132
- .lf-popover-content {
133
- display: inline-block;
134
- position: absolute;
135
- background-color: #ffffff;
136
- opacity: 1;
137
-
138
- transform: translate(0, -10px);
139
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
140
- transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
141
- padding: 10px;
142
- }
143
-
144
- .lf-popover-content.hidden {
145
- opacity: 0;
146
- visibility: hidden;
147
- transform: translate(0, 0px);
148
- }
149
-
150
- .lf-arrow {
151
- position: absolute;
152
- z-index: -1;
153
- content: '';
154
- bottom: -9px;
155
- border-style: solid;
156
- border-width: 10px 10px 0px 10px;
157
- }
158
-
159
- .lf-left-align,
160
- .lf-left-align .lfarrow {
161
- left: 0;
162
- right: unset;
163
- }
164
-
165
- .lf-right-align,
166
- .lf-right-align .lf-arrow {
167
- right: 0;
168
- left: unset;
169
- }
170
-
171
- .lf-text-input {
172
- border: 1px #ccc solid;
173
- border-radius: 5px;
174
- padding: 3px;
175
- width: 60px;
176
- margin: 0;
177
- }
178
-
179
- .lf-color-picker {
180
- display: flex;
181
- flex-direction: row;
182
- justify-content: space-between;
183
- height: 90px;
184
- }
185
-
186
- .lf-color-selectors {
187
- display: flex;
188
- flex-direction: column;
189
- justify-content: space-between;
190
- }
191
-
192
- .lf-color-component {
193
- display: flex;
194
- flex-direction: row;
195
- font-size: 12px;
196
- align-items: center;
197
- justify-content: center;
198
- }
199
-
200
- .lf-color-component strong {
201
- width: 40px;
202
- }
203
-
204
- .lf-color-component input[type='range'] {
205
- margin: 0 0 0 10px;
206
- }
207
-
208
- .lf-color-component input[type='number'] {
209
- width: 50px;
210
- margin: 0 0 0 10px;
211
- }
212
-
213
- .lf-color-preview {
214
- font-size: 12px;
215
- display: flex;
216
- flex-direction: column;
217
- align-items: center;
218
- justify-content: space-between;
219
- padding-left: 5px;
220
- }
221
-
222
- .lf-preview {
223
- height: 60px;
224
- width: 60px;
225
- }
226
-
227
- .lf-popover-snapshot {
228
- width: 150px;
229
- }
230
- .lf-popover-snapshot h5 {
231
- margin: 5px 0 10px 0;
232
- font-size: 0.75rem;
233
- }
234
- .lf-popover-snapshot a {
235
- display: block;
236
- text-decoration: none;
237
- }
238
- .lf-popover-snapshot a:before {
239
- content: '⥼';
240
- margin-right: 5px;
241
- }
242
- .lf-popover-snapshot .lf-note {
243
- display: block;
244
- margin-top: 10px;
245
- color: #999;
246
- }
247
- .lf-player-controls > div {
248
- margin-right: 5px;
249
- margin-left: 5px;
250
- }
251
- .lf-player-controls > div:first-child {
252
- margin-left: 0px;
253
- }
254
- .lf-player-controls > div:last-child {
255
- margin-right: 0px;
256
- }
257
- `;styleInject(css_248z);var ColorPicker=function(te){function ie(){var oe=te!==null&&te.apply(this,arguments)||this;return oe.state={red:0,green:0,blue:0,rgba:null,hex:"#000000",colorComponents:[]},oe.handleChange=function(le,ce){if(le==="r"){var ue="#"+(256|ce).toString(16).slice(1)+(256|oe.state.green).toString(16).slice(1)+(256|oe.state.blue).toString(16).slice(1);oe.setState({hex:ue})}else le==="g"?(ue="#"+(256|oe.state.red).toString(16).slice(1)+(256|ce).toString(16).slice(1)+(256|oe.state.blue).toString(16).slice(1),oe.setState({hex:ue})):le==="b"&&(ue="#"+(256|oe.state.red).toString(16).slice(1)+(256|oe.state.green).toString(16).slice(1)+(256|ce).toString(16).slice(1),oe.setState({hex:ue}))},oe.parseColor=function(le){var ce;if(typeof le=="string"){if(le[0]==="#"){var ue=le.length===4?[le.slice(1,2),le.slice(2,3),le.slice(3,4)].map(function(fe){return parseInt(""+fe+fe,16)}):[le.slice(1,3),le.slice(3,5),le.slice(5,7)].map(function(fe){return parseInt(fe,16)});oe.setState({colorComponents:ue})}else le.startsWith("rgb")&&(ue=(ce=le.match(/\d+/g))===null||ce===void 0?void 0:ce.map(function(fe){return parseInt(fe)}))!==void 0&&oe.setState({colorComponents:ue});oe.state.colorComponents.length&&(oe.setState({red:oe.state.colorComponents[0]}),oe.setState({green:oe.state.colorComponents[1]}),oe.setState({blue:oe.state.colorComponents[2]}))}},oe}return __extends(ie,te),ie.prototype.componentDidUpdate=function(oe,le){return this.props.colorChangedEvent&&this.state.hex!==le.hex&&this.props.colorChangedEvent(this.state.hex),!0},ie.prototype.render=function(){var oe=this;return e__namespace.createElement("div",{className:"lf-color-picker"},e__namespace.createElement("div",{className:"lf-color-selectors"},e__namespace.createElement("div",{className:"lf-color-component"},e__namespace.createElement("strong",null,"Red"),e__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.red,onChange:function(le){oe.setState({red:le.target.value}),oe.handleChange("r",le.target.value)}}),e__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.red,onChange:function(le){oe.setState({red:le.target.value}),oe.handleChange("r",le.target.value)}})),e__namespace.createElement("div",{className:"lf-color-component"},e__namespace.createElement("strong",null,"Green"),e__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.green,onChange:function(le){oe.setState({green:le.target.value}),oe.handleChange("g",le.target.value)}}),e__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.green,onChange:function(le){oe.setState({green:le.target.value}),oe.handleChange("g",le.target.value)}})),e__namespace.createElement("div",{className:"lf-color-component"},e__namespace.createElement("strong",null,"Blue"),e__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.blue,onChange:function(le){oe.setState({blue:le.target.value}),oe.handleChange("b",le.target.value)}}),e__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.blue,onChange:function(le){oe.setState({blue:le.target.value}),oe.handleChange("b",le.target.value)}}))),e__namespace.createElement("div",{className:"lf-color-preview"},e__namespace.createElement("div",{className:"lf-preview",style:{background:"rgb("+this.state.red+", "+this.state.green+", "+this.state.blue+")"}}),e__namespace.createElement("div",null,e__namespace.createElement("input",{className:"lf-text-input",type:"text",value:this.state.hex,onChange:function(le){oe.setState({hex:le.target.value}),oe.parseColor(le.target.value)}}))))},ie}(e__namespace.Component),Popover=function(te){var ie=te.children,oe=te.icon,le=e$9.useState(null),ce=le[0],ue=le[1],fe=e$9.useState(null),he=fe[0],ve=fe[1],Se=e$9.useState(null),ke=Se[0],Me=Se[1],Pe=e$9.useState(!1),Re=Pe[0],Oe=Pe[1];return e$9.useEffect(function(){if(ce&&he){var Be=ce.getBoundingClientRect(),xe=he.getBoundingClientRect(),nt=Be.left+xe.width>window.innerWidth?-1:0;Me(nt)}},[ke,he,ce]),e__namespace.createElement("div",{className:"lf-popover",onMouseOver:function(){Oe(!0)},onMouseLeave:function(){Oe(!1)},ref:function(Be){ue(Be)}},e__namespace.createElement("div",{className:" lf-player-btn"},oe),e__namespace.createElement("div",{className:"lf-popover-content",ref:function(Be){ve(Be)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:Re?"visible":"hidden"}},ie))},Seeker=function(te){function ie(oe){var le=te.call(this,oe)||this;return le.inputRef=e__namespace.createRef(),le.handleChange=function(){return function(ce){var ue=ce.target.value,fe=Math.floor(ue/100*le.props.max);le.props.onChange(fe)}},le.state={value:0},le}return __extends(ie,te),ie.prototype.render=function(){var oe=this.props.value/this.props.max*100,le={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+oe+"%, rgba(15, 204, 206, 0.4)), color-stop("+oe+"%, #DAE1E7))"},ce={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},ue={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return e__namespace.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}},e__namespace.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:oe,onInput:this.handleChange(),onChange:this.handleChange(),style:le}),this.props.showLabels&&e__namespace.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},e__namespace.createElement("div",{style:ce},this.props.min),e__namespace.createElement("div",{style:ue},this.props.max)))},ie}(e__namespace.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"};(function(te){function ie(oe){var le=te.call(this,oe)||this;return le.state={activeFrame:0,mouseDown:!1},le}return __extends(ie,te),ie.prototype.render=function(){var oe=this,le=this.props,ce=le.instance,ue=le.playerState,fe=le.seeker,he=le.setLoop,ve=le.setSeeker,Se=le.play,ke=le.pause,Me=le.stop,Pe=le.visible,Re=le.buttons;if(!ce||!Pe)return null;var Oe=!Re||Re.includes("play"),Be=!Re||Re.includes("stop"),xe=!Re||Re.includes("repeat"),nt=!Re||Re.includes("frame"),rt=!Re||Re.includes("background"),ot=!Re||Re.includes("snapshot"),ht={width:14,height:14,viewBox:"0 0 24 24"},dt=Math.round(ce.currentFrame);return e__namespace.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},Oe&&e__namespace.createElement("div",{role:"button","aria-label":ue===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){ue===PlayerState.Playing?typeof ke=="function"&&ke():typeof Se=="function"&&Se()},onKeyDown:function(){ue===PlayerState.Playing?typeof ke=="function"&&ke():typeof Se=="function"&&Se()},className:"lf-player-btn",style:ControlButtonStyle},ue===PlayerState.Playing?e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),e__namespace.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),Be&&e__namespace.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return Me&&Me()},onKeyDown:function(){return Me&&Me()},className:ue===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("path",{d:`M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333
258
- 22H3.667A1.67 1.67 0 0 1 2 20.333z`}))),e__namespace.createElement(Seeker,{min:0,step:1,max:ce?ce.totalFrames:1,value:fe||0,onChange:function(Rt){ve&&oe.setState({activeFrame:Rt},function(){ve(Rt,!1)})},onChangeEnd:function(Rt){ve&&oe.setState({activeFrame:Rt},function(){ve(Rt,!1)})},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),nt&&e__namespace.createElement("div",{role:"button",className:"lf-player-btn-container"},e__namespace.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:dt,readOnly:!0})),xe&&e__namespace.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){ce&&he&&he(!ce.loop)},onKeyDown:function(){ce&&he&&he(!ce.loop)},className:ce.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("path",{d:`M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116
259
- 0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0
260
- 4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025
261
- 5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0
262
- .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115
263
- 2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z`,stroke:"#8795A1",strokeWidth:".26"}),e__namespace.createElement("path",{d:`M11.1482
264
- 2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.09898
265
- 1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347
266
- 1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014
267
- 3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453
268
- 21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368
269
- 2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671
270
- 0-.5329.114-.7202.3347h0l-.0011.0014-3.0442
271
- 3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z`,fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),rt&&e__namespace.createElement(Popover,{icon:e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("path",{d:`M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0
272
- 3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1
273
- 9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0
274
- 01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6
275
- 1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z`}))},e__namespace.createElement("div",{slot:"content",className:"lf-popover popover-background"},e__namespace.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),ot&&e__namespace.createElement(Popover,{icon:e__namespace.createElement("svg",__assign({},ht),e__namespace.createElement("path",{clipRule:"evenodd",d:`M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983
276
- 2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0
277
- .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z`,fillRule:"evenodd"}),e__namespace.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),e__namespace.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),e__namespace.createElement("path",{d:`M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0
278
- 01-.803.804H9.562a1.061 1.061 0 100 2.123z`,stroke:"#8795a1",strokeWidth:".215"}))},e__namespace.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(Rt){ve&&ve(dt+(Rt.deltaY>0?-1:1),!1)}},e__namespace.createElement("h5",null,"Frame ",dt),e__namespace.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),e__namespace.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),e__namespace.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},ie})(e__namespace.Component);const u=({src:te,className:ie,style:oe})=>jsxRuntime.jsx(AutoSizer,{className:ie,style:oe,children:({height:le,width:ce})=>jsxRuntime.jsx(Player,{autoplay:!0,loop:!1,controls:!1,src:`https://url-proxy.streamlayer.io?${te}`,style:{height:le,width:ce}})}),e$2=styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),a$7=styled_default("div")({name:"Content",class:"cjyzpp7",propsAsIs:!1}),t$4=styled_default("div")({name:"Graphic",class:"g16mldgz",propsAsIs:!1}),o$4=styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),p$2=styled_default("div")({name:"StepsContainer",class:"smm7qmo",propsAsIs:!1}),c$3=styled_default("span")({name:"StepIndicator",class:"s17knuw2",propsAsIs:!1}),S$2=({graphicSrc:te,headline:ie,stepsCount:oe,currentStep:le})=>jsxRuntime.jsxs(e$2,{children:[jsxRuntime.jsxs(a$7,{children:[jsxRuntime.jsx(t$4,{children:jsxRuntime.jsx(u,{src:te})}),ie&&jsxRuntime.jsx(o$4,{children:ie})]}),jsxRuntime.jsx(p$2,{children:Array.from({length:oe}).map((ce,ue)=>jsxRuntime.jsx(c$3,{"data-active":le===ue},ue))})]}),l$3=styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),p$1=styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),o$3=()=>n1,r$5=styled_default(o$3())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),m$5=styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),I$2=styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),k=styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),L$1=styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),d$5=styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),f$2=styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),A$2=styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),a$6=()=>n1,v$3=styled_default(a$6())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),C$1=styled_default("div")({name:"SocialLinksContainer",class:"s1n7kzeh",propsAsIs:!1}),S$1=styled_default("a")({name:"SocialLink",class:"s2m9o9y",propsAsIs:!1}),b$2=styled_default("span")({name:"SocialLinkLabel",class:"sewjbbn",propsAsIs:!1}),O=({inviteLink:te,socialLinks:ie,inviteCardTitle:oe,inviteCardSubtext:le,primaryColor:ce,className:ue})=>jsxRuntime.jsxs(l$3,{className:ue,children:[jsxRuntime.jsx(p$1,{style:{backgroundColor:ce},children:jsxRuntime.jsx(r$5,{name:"invite-game-icon"})}),jsxRuntime.jsxs(m$5,{children:[jsxRuntime.jsx(I$2,{children:oe||""}),jsxRuntime.jsx(k,{children:le||""})]}),te&&jsxRuntime.jsxs(L$1,{onClick:async()=>{if(te)try{await navigator.clipboard.writeText(te)}catch(fe){console.error("Unable to copy to clipboard",fe)}},children:[jsxRuntime.jsxs(d$5,{children:[jsxRuntime.jsx(f$2,{children:"Invite link"}),jsxRuntime.jsx(A$2,{children:te})]}),jsxRuntime.jsx(v$3,{name:"icon-copy"})]}),ie&&ie.length>0&&jsxRuntime.jsx(C$1,{children:ie.map(({icon:fe,link:he,label:ve})=>jsxRuntime.jsxs(S$1,{href:he,target:"_blank",children:[jsxRuntime.jsx(n1,{name:fe}),jsxRuntime.jsx(b$2,{children:ve})]},he))})]}),t$3=styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),l$2=styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),n$3=styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),o$2=styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),a$5=styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),c$2=styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),r$4=styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),p=styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),b$1=({rules:te,rulesTitle:ie,primaryColor:oe})=>jsxRuntime.jsxs(t$3,{children:[jsxRuntime.jsxs(l$2,{children:[jsxRuntime.jsx(n$3,{children:ie}),jsxRuntime.jsx(o$2,{children:te==null?void 0:te.map(({label:le,icon:ce},ue)=>jsxRuntime.jsxs(a$5,{children:[ce&&jsxRuntime.jsx(c$2,{style:{backgroundColor:oe},children:jsxRuntime.jsx(n1,{name:ce,"data-icon":ce})}),jsxRuntime.jsx(r$4,{children:le})]},ue))})]}),jsxRuntime.jsx(p,{children:"See Terms and Conditions"})]}),o$1=styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),n$2=styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),c$1=({disabled:te,variant:ie="primary",onClick:oe,children:le,...ce})=>jsxRuntime.jsx(o$1,{onClick:oe,disabled:te,"data-variant":ie,...ce,children:jsxRuntime.jsx(n$2,{children:le})}),m$4=styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),d$4=styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),f$1=styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),I$1=styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),t$2=()=>n1,A$1=styled_default(t$2())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),b=styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),e$1=()=>c$1,v$2=styled_default(e$1())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),a$4={steps:!1,rules:!1,inviteCard:!1},tn$1=({gamification:te,steps:ie,rules:oe,rulesBtnLabel:le,rulesTitle:ce,primaryColor:ue,inviteLink:fe,socialLinks:he,inviteCardTitle:ve,inviteCardSubtext:Se,inviteCardBtnLabel:ke,onClose:Me})=>{const[Pe,Re]=e$9.useState(0),[Oe,Be]=e$9.useState(a$4);e$9.useEffect(()=>{ie!=null&&ie.length?Be({...a$4,steps:!0}):oe!=null&&oe.length?Be({...a$4,rules:!0}):Be({...a$4,inviteCard:!0})},[]);const xe=e$9.useMemo(()=>Oe.steps&&Pe===0?"Continue":Oe.rules?le||"Got it":Oe.inviteCard?ke||"Play Now":"Next",[Oe,Pe,le,ke]),nt=e$9.useCallback(()=>{ie!=null&&ie.length&&Pe<ie.length-1?Re(ot=>++ot):oe!=null&&oe.length&&Oe.steps?Be({...a$4,rules:!0}):Oe.rules&&Be({...a$4,inviteCard:!0})},[Pe,ie==null?void 0:ie.length,oe==null?void 0:oe.length,Oe,Re,Be]),rt=async()=>{await te.onboardingStatus.submitInplay()};return jsxRuntime.jsx(AutoSizer,{children:({width:ot,height:ht})=>jsxRuntime.jsxs(m$4,{style:{width:ot,height:ht},children:[jsxRuntime.jsx(f$1,{children:jsxRuntime.jsx(I$1,{onClick:Me,children:jsxRuntime.jsx(A$1,{name:"icon-close-btn-gray"})})}),jsxRuntime.jsxs(d$4,{children:[Oe.steps&&(ie==null?void 0:ie.length)&&jsxRuntime.jsx(S$2,{stepsCount:ie.length,currentStep:Pe,...ie[Pe]}),Oe.rules&&jsxRuntime.jsx(b$1,{rules:oe,rulesTitle:ce,primaryColor:ue}),Oe.inviteCard&&jsxRuntime.jsx(O,{inviteLink:fe,inviteCardTitle:ve,inviteCardSubtext:Se,primaryColor:ue,socialLinks:he})]}),jsxRuntime.jsx(b,{children:jsxRuntime.jsx(v$2,{onClick:Oe.inviteCard?rt:nt,children:xe})})]})})},m$3=styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),a$3="hx17qu6",d$3=({children:te,style:ie,className:oe,hiding:le})=>jsxRuntime.jsx(m$3,{style:ie,className:cx_default(oe,le&&a$3),children:te}),a$2=styled_default("div")({name:"Container",class:"cocfo2g",propsAsIs:!1}),l$1=styled_default("div")({name:"CloseIconWrap",class:"c1pdhxdk",propsAsIs:!1}),t$1=()=>n1,r$3=styled_default(t$1())({name:"CloseIcon",class:"c1funj3r",propsAsIs:!0}),i$1=styled_default("div")({name:"Title",class:"t1okg06y",propsAsIs:!1}),m$2=styled_default("img")({name:"SponsorLogo",class:"sb1n923",propsAsIs:!1}),I=styled_default("div")({name:"PresentsTitle",class:"p1stllxd",propsAsIs:!1}),f=styled_default("div")({name:"Subtitle",class:"s13kvdzw",propsAsIs:!1}),d$2=styled_default("div")({name:"Description",class:"dfvmv3t",propsAsIs:!1}),A=styled_default("button")({name:"ActionButton",class:"ay8e3j9",propsAsIs:!1}),D=({close:te,action:ie,onboarding:oe})=>{var le,ce,ue,fe,he,ve,Se,ke;return jsxRuntime.jsxs(a$2,{children:[jsxRuntime.jsx(l$1,{onClick:te,children:jsxRuntime.jsx(r$3,{name:"icon-cross"})}),((ce=(le=oe==null?void 0:oe.titleCard)==null?void 0:le.media)==null?void 0:ce.sponsorLogo)&&jsxRuntime.jsxs(i$1,{children:[jsxRuntime.jsx(m$2,{alt:"sponsor-logo",src:(fe=(ue=oe==null?void 0:oe.titleCard)==null?void 0:ue.media)==null?void 0:fe.sponsorLogo}),jsxRuntime.jsx(I,{children:"PRESENTS"})]}),((he=oe==null?void 0:oe.titleCard)==null?void 0:he.title)&&jsxRuntime.jsx(f,{children:(ve=oe==null?void 0:oe.titleCard)==null?void 0:ve.title}),((Se=oe==null?void 0:oe.titleCard)==null?void 0:Se.subtitle)&&jsxRuntime.jsx(d$2,{children:(ke=oe==null?void 0:oe.titleCard)==null?void 0:ke.subtitle}),jsxRuntime.jsx(A,{onClick:ie,children:"Play Now"})]})},v$1=()=>d$3,S=styled_default(v$1())({name:"OnboardingContainer",class:"o9squag",propsAsIs:!0}),L=({hiding:te,deepLink:ie,onboardingOpts:oe,setOpened:le,notification:ce,gamification:ue})=>{var fe,he,ve,Se,ke,Me;const{data:Pe}=useStore(ie.$store);return jsxRuntime.jsx(S,{hiding:te,children:jsxRuntime.jsx(tn$1,{rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(fe=oe.rules)==null?void 0:fe.buttonLabel,rulesTitle:(he=oe.rules)==null?void 0:he.heading,steps:[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_01.json",headline:"Welcome to the Featured Groups +"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_02.json",headline:"Get real-time insights"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_03.json",headline:"Predictions, trivia & polls synced to match play"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_04.json",headline:"Win points for every answer you get right"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_05.json",headline:"Compete against friends on the leaderboard"}],primaryColor:(ve=oe.inviteCard)==null?void 0:ve.iconColor,inviteLink:Pe==null?void 0:Pe.url,inviteCardTitle:(Se=oe.inviteCard)==null?void 0:Se.heading,inviteCardSubtext:(ke=oe.inviteCard)==null?void 0:ke.subtext,inviteCardBtnLabel:(Me=oe.inviteCard)==null?void 0:Me.buttonLabel,onClose:()=>{var Re;le(!1),(Re=ce.close)==null||Re.call(ce)},socialLinks:[{icon:"icon-facebook",link:"https://www.facebook.com/TheMasters",label:"Facebook"},{icon:"icon-twitter",link:"https://twitter.com/@TheMasters",label:"X"}],gamification:ue})})},Q=({sdk:te,notification:ie})=>{const[oe,le]=e$9.useState(!1),ce=te.getFeature(SdkOverlayType.GAMES),ue=ie.data.onboarding;return oe&&ce&&ue?jsxRuntime.jsx(L,{notification:ie,setOpened:le,gamification:ce,onboardingOpts:ue,deepLink:ce.deepLink}):jsxRuntime.jsx("div",{children:jsxRuntime.jsx(D,{close:ie.close,action:()=>le(!0),onboarding:ue})})},r$2=()=>d$3,m$1=styled_default(r$2())({name:"Container",class:"ctckejh",propsAsIs:!0}),N=({sdk:te,notification:ie})=>ie.type===NotificationType.QUESTION?jsxRuntime.jsx("div",{children:jsxRuntime.jsx(J,{...ie})}):ie.type===NotificationType.QUESTION_RESOLVED?jsxRuntime.jsx("div",{children:jsxRuntime.jsx(J,{...ie})}):ie.type===NotificationType.ONBOARDING?jsxRuntime.jsx(Q,{sdk:te,notification:ie,hiding:ie.hiding}):null,ir$1=({sdk:te})=>{const[ie]=e$9.useState(te.getNotificationsStore()),oe=useStore(ie),le=e$9.useMemo(()=>{if(!(oe!=null&&oe.size))return null;for(const ce of oe.values())if(ce.type===NotificationType.ONBOARDING)return ce;return oe.values().next().value},[oe]);return le?jsxRuntime.jsx(m$1,{hiding:le.hiding,children:jsxRuntime.jsx(N,{sdk:te,notification:le})}):null},e=styled_default("div")({name:"SDKContainer",class:"stu11h7",propsAsIs:!1}),r$1=styled_default("div")({name:"SDKScrollContainer",class:"s1ucohr1",propsAsIs:!1}),n$1=styled_default("div")({name:"SDKContentContainer",class:"s1el4wvm",propsAsIs:!1}),o=()=>n$1,a$1=styled_default(o())({name:"SDKWhiteContainer",class:"s1oe3036",propsAsIs:!0}),q$1=te=>{const ie=e$9.useRef(""),[oe,le]=e$9.useState(!1),ce=useStore(te.status),ue=useStore(te.userId()),fe=ce==="ready",[he,ve]=e$9.useState(G$1),Se=e$9.useCallback((Pe,Re)=>{ve(Re),Re===G$1?(Pe&&te.createEventSession(Pe),te.openFeature(SdkOverlayType.GAMES)):te.closeFeature()},[te]);e$9.useEffect(()=>{!fe&&he===G$1&&(ve(d$9),te.closeFeature())},[fe,he,te]);const ke=Pe=>{ie.current=Pe,te.initializeApp().then(({enabled:Re,err:Oe})=>{if(le(!0),Oe){Se(Pe,d$9);return}if(Re){te.isUserAuthorized().then(Be=>{if(Be){Se(Pe,G$1);return}else te.disableApp()});return}})},Me=()=>{le(!1),te.disableApp()};return e$9.useEffect(()=>{if(!ue){fe&&(ve(d$9),te.disableApp());return}ue&&ie.current&&oe&&te.initializeApp().then(()=>{te.createEventSession(ie.current)})},[ue]),{sdkEnabled:oe,sdkReady:fe,activeOverlay:he,activateAndLoadOverlay:Se,enableSdk:ke,disableSdk:Me,isLogged:!!ue}},d$1=te=>{const ie=useStore(te.getActiveFeature()),oe=useStore(te.streamStore()),[le,ce]=e$9.useState(null);return e$9.useEffect(()=>{const ue=te.getFeatures();if(ie)for(const[fe,he]of ue)fe===ie?he.status.get()===FeatureStatus.Suspended&&(he.enable(),ce(he)):he.status.get()===FeatureStatus.Ready&&he.disable();else{for(const[,fe]of ue)fe.status.get()===FeatureStatus.Ready&&fe.disable();ce(null)}return()=>{for(const[,fe]of ue)fe.status.get()===FeatureStatus.Ready&&fe.disable()}},[ie,te,oe]),[ie,le]},B=({sdk:te,className:ie})=>{const[,oe]=d$1(te);return jsxRuntime.jsx(s$2,{className:ie,feature:oe,sdk:te})},Mt$1=({sdk:te,overlays:ie,children:oe})=>{const{sdkEnabled:le,sdkReady:ce,activeOverlay:ue,activateAndLoadOverlay:fe,enableSdk:he,disableSdk:ve,isLogged:Se}=q$1(te);return e$9.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),jsxRuntime.jsxs(e,{children:[le&&jsxRuntime.jsx(b$5,{sdkReady:ce,activeOverlay:ue,className:d$b,setActiveOverlay:ke=>fe("",ke)}),ce&&jsxRuntime.jsx(ir$1,{sdk:te}),jsxRuntime.jsx(r$1,{"data-nav":le.toString(),style:{display:!le||ue===d$9?"block":"none"},children:oe&&oe({enableSdk:he,disableSdk:ve})}),jsxRuntime.jsx(r$1,{"data-nav":le.toString(),style:{display:ue===u$3?"block":"none"},children:ie&&ue===u$3&&ie[ue]}),ce&&ue===G$1&&jsxRuntime.jsx(B,{className:d$b,sdk:te}),!Se&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})},style="";var Code;(function(te){te[te.Canceled=1]="Canceled",te[te.Unknown=2]="Unknown",te[te.InvalidArgument=3]="InvalidArgument",te[te.DeadlineExceeded=4]="DeadlineExceeded",te[te.NotFound=5]="NotFound",te[te.AlreadyExists=6]="AlreadyExists",te[te.PermissionDenied=7]="PermissionDenied",te[te.ResourceExhausted=8]="ResourceExhausted",te[te.FailedPrecondition=9]="FailedPrecondition",te[te.Aborted=10]="Aborted",te[te.OutOfRange=11]="OutOfRange",te[te.Unimplemented=12]="Unimplemented",te[te.Internal=13]="Internal",te[te.Unavailable=14]="Unavailable",te[te.DataLoss=15]="DataLoss",te[te.Unauthenticated=16]="Unauthenticated"})(Code||(Code={}));function codeToString(te){const ie=Code[te];return typeof ie!="string"?te.toString():ie[0].toLowerCase()+ie.substring(1).replace(/[A-Z]/g,oe=>"_"+oe.toLowerCase())}class ConnectError extends Error{constructor(ie,oe=Code.Unknown,le,ce,ue){super(createMessage(ie,oe)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=ie,this.code=oe,this.metadata=new Headers(le??{}),this.details=ce??[],this.cause=ue}static from(ie,oe=Code.Unknown){return ie instanceof ConnectError?ie:ie instanceof Error?ie.name=="AbortError"?new ConnectError(ie.message,Code.Canceled):new ConnectError(ie.message,oe,void 0,void 0,ie):new ConnectError(String(ie),oe,void 0,void 0,ie)}findDetails(ie){const oe="typeName"in ie?{findMessage:ce=>ce===ie.typeName?ie:void 0}:ie,le=[];for(const ce of this.details){if(ce instanceof Message){oe.findMessage(ce.getType().typeName)&&le.push(ce);continue}const ue=oe.findMessage(ce.type);if(ue)try{le.push(ue.fromBinary(ce.value))}catch{}}return le}}function createMessage(te,ie){return te.length?`[${codeToString(ie)}] ${te}`:`[${codeToString(ie)}]`}function decodeBinaryHeader(te,ie,oe){try{const le=protoBase64.dec(te);return ie?ie.fromBinary(le,oe):le}catch(le){throw ConnectError.from(le,Code.DataLoss)}}function makeAnyClient(te,ie){const oe={};for(const[le,ce]of Object.entries(te.methods)){const ue=ie(Object.assign(Object.assign({},ce),{localName:le,service:te}));ue!=null&&(oe[le]=ue)}return oe}function createEnvelopeReadableStream(te){let ie,oe=new Uint8Array(0);function le(ce){const ue=new Uint8Array(oe.length+ce.length);ue.set(oe),ue.set(ce,oe.length),oe=ue}return new ReadableStream({start(){ie=te.getReader()},async pull(ce){let ue;for(;;){if(ue===void 0&&oe.byteLength>=5){let ve=0;for(let Se=1;Se<5;Se++)ve=(ve<<8)+oe[Se];ue={flags:oe[0],length:ve}}if(ue!==void 0&&oe.byteLength>=ue.length+5)break;const he=await ie.read();if(he.done)break;le(he.value)}if(ue===void 0){if(oe.byteLength==0){ce.close();return}ce.error(new ConnectError("premature end of stream",Code.DataLoss));return}const fe=oe.subarray(5,5+ue.length);oe=oe.subarray(5+ue.length),ce.enqueue({flags:ue.flags,data:fe})}})}function encodeEnvelope(te,ie){const oe=new Uint8Array(ie.length+5);oe.set(ie,5);const le=new DataView(oe.buffer,oe.byteOffset,oe.byteLength);return le.setUint8(0,te),le.setUint32(1,ie.length),oe}var __asyncValues$2=globalThis&&globalThis.__asyncValues||function(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie=te[Symbol.asyncIterator],oe;return ie?ie.call(te):(te=typeof __values=="function"?__values(te):te[Symbol.iterator](),oe={},le("next"),le("throw"),le("return"),oe[Symbol.asyncIterator]=function(){return this},oe);function le(ue){oe[ue]=te[ue]&&function(fe){return new Promise(function(he,ve){fe=te[ue](fe),ce(he,ve,fe.done,fe.value)})}}function ce(ue,fe,he,ve){Promise.resolve(ve).then(function(Se){ue({value:Se,done:he})},fe)}},__await$2=globalThis&&globalThis.__await||function(te){return this instanceof __await$2?(this.v=te,this):new __await$2(te)},__asyncGenerator$2=globalThis&&globalThis.__asyncGenerator||function(te,ie,oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=oe.apply(te,ie||[]),ce,ue=[];return ce={},fe("next"),fe("throw"),fe("return"),ce[Symbol.asyncIterator]=function(){return this},ce;function fe(Pe){le[Pe]&&(ce[Pe]=function(Re){return new Promise(function(Oe,Be){ue.push([Pe,Re,Oe,Be])>1||he(Pe,Re)})})}function he(Pe,Re){try{ve(le[Pe](Re))}catch(Oe){Me(ue[0][3],Oe)}}function ve(Pe){Pe.value instanceof __await$2?Promise.resolve(Pe.value.v).then(Se,ke):Me(ue[0][2],Pe)}function Se(Pe){he("next",Pe)}function ke(Pe){he("throw",Pe)}function Me(Pe,Re){Pe(Re),ue.shift(),ue.length&&he(ue[0][0],ue[0][1])}},__asyncDelegator$1=globalThis&&globalThis.__asyncDelegator||function(te){var ie,oe;return ie={},le("next"),le("throw",function(ce){throw ce}),le("return"),ie[Symbol.iterator]=function(){return this},ie;function le(ce,ue){ie[ce]=te[ce]?function(fe){return(oe=!oe)?{value:__await$2(te[ce](fe)),done:!1}:ue?ue(fe):fe}:ue}};function createAsyncIterable(te){return __asyncGenerator$2(this,arguments,function*(){yield __await$2(yield*__asyncDelegator$1(__asyncValues$2(te)))})}var __asyncValues$1=globalThis&&globalThis.__asyncValues||function(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie=te[Symbol.asyncIterator],oe;return ie?ie.call(te):(te=typeof __values=="function"?__values(te):te[Symbol.iterator](),oe={},le("next"),le("throw"),le("return"),oe[Symbol.asyncIterator]=function(){return this},oe);function le(ue){oe[ue]=te[ue]&&function(fe){return new Promise(function(he,ve){fe=te[ue](fe),ce(he,ve,fe.done,fe.value)})}}function ce(ue,fe,he,ve){Promise.resolve(ve).then(function(Se){ue({value:Se,done:he})},fe)}};function createCallbackClient(te,ie){return makeAnyClient(te,oe=>{switch(oe.kind){case MethodKind.Unary:return createUnaryFn$1(ie,te,oe);case MethodKind.ServerStreaming:return createServerStreamingFn$1(ie,te,oe);default:return null}})}function createUnaryFn$1(te,ie,oe){return function(le,ce,ue){const fe=new AbortController;return ue=wrapSignal(fe,ue),te.unary(ie,oe,fe.signal,ue.timeoutMs,ue.headers,le,ue.contextValues).then(he=>{var ve,Se;(ve=ue==null?void 0:ue.onHeader)===null||ve===void 0||ve.call(ue,he.header),(Se=ue==null?void 0:ue.onTrailer)===null||Se===void 0||Se.call(ue,he.trailer),ce(void 0,he.message)},he=>{const ve=ConnectError.from(he,Code.Internal);ve.code===Code.Canceled&&fe.signal.aborted||ce(ve,new oe.O)}),()=>fe.abort()}}function createServerStreamingFn$1(te,ie,oe){return function(le,ce,ue,fe){const he=new AbortController;async function ve(){var Se,ke,Me,Pe,Re,Oe;fe=wrapSignal(he,fe);const Be=await te.stream(ie,oe,fe.signal,fe.timeoutMs,fe.headers,createAsyncIterable([le]),fe.contextValues);(Re=fe.onHeader)===null||Re===void 0||Re.call(fe,Be.header);try{for(var xe=!0,nt=__asyncValues$1(Be.message),rt;rt=await nt.next(),Se=rt.done,!Se;xe=!0)Pe=rt.value,xe=!1,ce(Pe)}catch(ot){ke={error:ot}}finally{try{!xe&&!Se&&(Me=nt.return)&&await Me.call(nt)}finally{if(ke)throw ke.error}}(Oe=fe.onTrailer)===null||Oe===void 0||Oe.call(fe,Be.trailer),ue(void 0)}return ve().catch(Se=>{const ke=ConnectError.from(Se,Code.Internal);ke.code===Code.Canceled&&he.signal.aborted?ue(void 0):ue(ke)}),()=>he.abort()}}function wrapSignal(te,ie){return ie!=null&&ie.signal&&(ie.signal.addEventListener("abort",()=>te.abort()),ie.signal.aborted&&te.abort()),Object.assign(Object.assign({},ie),{signal:te.signal})}var __asyncValues=globalThis&&globalThis.__asyncValues||function(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie=te[Symbol.asyncIterator],oe;return ie?ie.call(te):(te=typeof __values=="function"?__values(te):te[Symbol.iterator](),oe={},le("next"),le("throw"),le("return"),oe[Symbol.asyncIterator]=function(){return this},oe);function le(ue){oe[ue]=te[ue]&&function(fe){return new Promise(function(he,ve){fe=te[ue](fe),ce(he,ve,fe.done,fe.value)})}}function ce(ue,fe,he,ve){Promise.resolve(ve).then(function(Se){ue({value:Se,done:he})},fe)}},__await$1=globalThis&&globalThis.__await||function(te){return this instanceof __await$1?(this.v=te,this):new __await$1(te)},__asyncDelegator=globalThis&&globalThis.__asyncDelegator||function(te){var ie,oe;return ie={},le("next"),le("throw",function(ce){throw ce}),le("return"),ie[Symbol.iterator]=function(){return this},ie;function le(ce,ue){ie[ce]=te[ce]?function(fe){return(oe=!oe)?{value:__await$1(te[ce](fe)),done:!1}:ue?ue(fe):fe}:ue}},__asyncGenerator$1=globalThis&&globalThis.__asyncGenerator||function(te,ie,oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=oe.apply(te,ie||[]),ce,ue=[];return ce={},fe("next"),fe("throw"),fe("return"),ce[Symbol.asyncIterator]=function(){return this},ce;function fe(Pe){le[Pe]&&(ce[Pe]=function(Re){return new Promise(function(Oe,Be){ue.push([Pe,Re,Oe,Be])>1||he(Pe,Re)})})}function he(Pe,Re){try{ve(le[Pe](Re))}catch(Oe){Me(ue[0][3],Oe)}}function ve(Pe){Pe.value instanceof __await$1?Promise.resolve(Pe.value.v).then(Se,ke):Me(ue[0][2],Pe)}function Se(Pe){he("next",Pe)}function ke(Pe){he("throw",Pe)}function Me(Pe,Re){Pe(Re),ue.shift(),ue.length&&he(ue[0][0],ue[0][1])}};function createPromiseClient(te,ie){return makeAnyClient(te,oe=>{switch(oe.kind){case MethodKind.Unary:return createUnaryFn(ie,te,oe);case MethodKind.ServerStreaming:return createServerStreamingFn(ie,te,oe);case MethodKind.ClientStreaming:return createClientStreamingFn(ie,te,oe);case MethodKind.BiDiStreaming:return createBiDiStreamingFn(ie,te,oe);default:return null}})}function createUnaryFn(te,ie,oe){return async function(le,ce){var ue,fe;const he=await te.unary(ie,oe,ce==null?void 0:ce.signal,ce==null?void 0:ce.timeoutMs,ce==null?void 0:ce.headers,le,ce==null?void 0:ce.contextValues);return(ue=ce==null?void 0:ce.onHeader)===null||ue===void 0||ue.call(ce,he.header),(fe=ce==null?void 0:ce.onTrailer)===null||fe===void 0||fe.call(ce,he.trailer),he.message}}function createServerStreamingFn(te,ie,oe){return function(le,ce){return handleStreamResponse(te.stream(ie,oe,ce==null?void 0:ce.signal,ce==null?void 0:ce.timeoutMs,ce==null?void 0:ce.headers,createAsyncIterable([le]),ce==null?void 0:ce.contextValues),ce)}}function createClientStreamingFn(te,ie,oe){return async function(le,ce){var ue,fe,he,ve,Se,ke;const Me=await te.stream(ie,oe,ce==null?void 0:ce.signal,ce==null?void 0:ce.timeoutMs,ce==null?void 0:ce.headers,le,ce==null?void 0:ce.contextValues);(Se=ce==null?void 0:ce.onHeader)===null||Se===void 0||Se.call(ce,Me.header);let Pe;try{for(var Re=!0,Oe=__asyncValues(Me.message),Be;Be=await Oe.next(),ue=Be.done,!ue;Re=!0)ve=Be.value,Re=!1,Pe=ve}catch(xe){fe={error:xe}}finally{try{!Re&&!ue&&(he=Oe.return)&&await he.call(Oe)}finally{if(fe)throw fe.error}}if(!Pe)throw new ConnectError("protocol error: missing response message",Code.Internal);return(ke=ce==null?void 0:ce.onTrailer)===null||ke===void 0||ke.call(ce,Me.trailer),Pe}}function createBiDiStreamingFn(te,ie,oe){return function(le,ce){return handleStreamResponse(te.stream(ie,oe,ce==null?void 0:ce.signal,ce==null?void 0:ce.timeoutMs,ce==null?void 0:ce.headers,le,ce==null?void 0:ce.contextValues),ce)}}function handleStreamResponse(te,ie){const oe=function(){var le,ce;return __asyncGenerator$1(this,arguments,function*(){const ue=yield __await$1(te);(le=ie==null?void 0:ie.onHeader)===null||le===void 0||le.call(ie,ue.header),yield __await$1(yield*__asyncDelegator(__asyncValues(ue.message))),(ce=ie==null?void 0:ie.onTrailer)===null||ce===void 0||ce.call(ie,ue.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>oe.next()})}}function createLinkedAbortController(...te){const ie=new AbortController,oe=te.filter(ce=>ce!==void 0).concat(ie.signal);for(const ce of oe){if(ce.aborted){le.apply(ce);break}ce.addEventListener("abort",le)}function le(){ie.signal.aborted||ie.abort(getAbortSignalReason(this));for(const ce of oe)ce.removeEventListener("abort",le)}return ie}function createDeadlineSignal(te){const ie=new AbortController,oe=()=>{ie.abort(new ConnectError("the operation timed out",Code.DeadlineExceeded))};let le;return te!==void 0&&(te<=0?oe():le=setTimeout(oe,te)),{signal:ie.signal,cleanup:()=>clearTimeout(le)}}function getAbortSignalReason(te){if(!te.aborted)return;if(te.reason!==void 0)return te.reason;const ie=new Error("This operation was aborted");return ie.name="AbortError",ie}function createContextValues(){return{get(te){return te.id in this?this[te.id]:te.defaultValue},set(te,ie){return this[te.id]=ie,this},delete(te){return delete this[te.id],this}}}const trailerFlag=128;function trailerParse(te){const ie=new Headers,oe=new TextDecoder().decode(te).split(`\r
279
- `);for(const le of oe){if(le==="")continue;const ce=le.indexOf(":");if(ce>0){const ue=le.substring(0,ce).trim(),fe=le.substring(ce+1).trim();ie.append(ue,fe)}}return ie}const headerContentType="Content-Type",headerTimeout="Grpc-Timeout",headerGrpcStatus="Grpc-Status",headerGrpcMessage="Grpc-Message",headerStatusDetailsBin="Grpc-Status-Details-Bin",headerUserAgent="User-Agent",headerXUserAgent="X-User-Agent",headerXGrpcWeb="X-Grpc-Web",contentTypeProto="application/grpc-web+proto",contentTypeJson="application/grpc-web+json";class Status extends Message{constructor(ie){super(),this.code=0,this.message="",this.details=[],proto3.util.initPartial(ie,this)}static fromBinary(ie,oe){return new Status().fromBinary(ie,oe)}static fromJson(ie,oe){return new Status().fromJson(ie,oe)}static fromJsonString(ie,oe){return new Status().fromJsonString(ie,oe)}static equals(ie,oe){return proto3.util.equals(Status,ie,oe)}}Status.runtime=proto3;Status.typeName="google.rpc.Status";Status.fields=proto3.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Any,repeated:!0}]);const grpcStatusOk="0";function findTrailerError(te){var ie;const oe=te.get(headerStatusDetailsBin);if(oe!=null){const ce=decodeBinaryHeader(oe,Status);if(ce.code==0)return;const ue=new ConnectError(ce.message,ce.code,te);return ue.details=ce.details.map(fe=>({type:fe.typeUrl.substring(fe.typeUrl.lastIndexOf("/")+1),value:fe.value})),ue}const le=te.get(headerGrpcStatus);if(le!=null){if(le===grpcStatusOk)return;const ce=parseInt(le,10);return ce in Code?new ConnectError(decodeURIComponent((ie=te.get(headerGrpcMessage))!==null&&ie!==void 0?ie:""),ce,te):new ConnectError(`invalid grpc-status: ${le}`,Code.Internal,te)}}function createMethodUrl(te,ie,oe){const le=typeof ie=="string"?ie:ie.typeName,ce=typeof oe=="string"?oe:oe.name;return te.toString().replace(/\/?$/,`/${le}/${ce}`)}function normalize(te,ie){return ie instanceof Message?ie:new te(ie)}function normalizeIterable(te,ie){function oe(le){return le.done===!0?le:{done:le.done,value:normalize(te,le.value)}}return{[Symbol.asyncIterator](){const le=ie[Symbol.asyncIterator](),ce={next:()=>le.next().then(oe)};return le.throw!==void 0&&(ce.throw=ue=>le.throw(ue).then(oe)),le.return!==void 0&&(ce.return=ue=>le.return(ue).then(oe)),ce}}}function getJsonOptions(te){var ie;const oe=Object.assign({},te);return(ie=oe.ignoreUnknownFields)!==null&&ie!==void 0||(oe.ignoreUnknownFields=!0),oe}function createClientMethodSerializers(te,ie,oe,le){const ce=ie?createBinarySerialization(te.I,le):createJsonSerialization(te.I,oe);return{parse:(ie?createBinarySerialization(te.O,le):createJsonSerialization(te.O,oe)).parse,serialize:ce.serialize}}function createBinarySerialization(te,ie){return{parse(oe){try{return te.fromBinary(oe,ie)}catch(le){const ce=le instanceof Error?le.message:String(le);throw new ConnectError(`parse binary: ${ce}`,Code.InvalidArgument)}},serialize(oe){try{return oe.toBinary(ie)}catch(le){const ce=le instanceof Error?le.message:String(le);throw new ConnectError(`serialize binary: ${ce}`,Code.Internal)}}}}function createJsonSerialization(te,ie){var oe,le;const ce=(oe=ie==null?void 0:ie.textEncoder)!==null&&oe!==void 0?oe:new TextEncoder,ue=(le=ie==null?void 0:ie.textDecoder)!==null&&le!==void 0?le:new TextDecoder,fe=getJsonOptions(ie);return{parse(he){try{const ve=ue.decode(he);return te.fromJsonString(ve,fe)}catch(ve){throw ConnectError.from(ve,Code.InvalidArgument)}},serialize(he){try{const ve=he.toJsonString(fe);return ce.encode(ve)}catch(ve){throw ConnectError.from(ve,Code.Internal)}}}}function runUnaryCall(te){const ie=applyInterceptors(te.next,te.interceptors),[oe,le,ce]=setupSignal(te),ue=Object.assign(Object.assign({},te.req),{message:normalize(te.req.method.I,te.req.message),signal:oe});return ie(ue).then(fe=>(ce(),fe),le)}function runStreamingCall(te){const ie=applyInterceptors(te.next,te.interceptors),[oe,le,ce]=setupSignal(te),ue=Object.assign(Object.assign({},te.req),{message:normalizeIterable(te.req.method.I,te.req.message),signal:oe});let fe=!1;return oe.addEventListener("abort",function(){var he,ve;const Se=te.req.message[Symbol.asyncIterator]();fe||(he=Se.throw)===null||he===void 0||he.call(Se,this.reason).catch(()=>{}),(ve=Se.return)===null||ve===void 0||ve.call(Se).catch(()=>{})}),ie(ue).then(he=>Object.assign(Object.assign({},he),{message:{[Symbol.asyncIterator](){const ve=he.message[Symbol.asyncIterator]();return{next(){return ve.next().then(Se=>(Se.done==!0&&(fe=!0,ce()),Se),le)}}}}}),le)}function setupSignal(te){const{signal:ie,cleanup:oe}=createDeadlineSignal(te.timeoutMs),le=createLinkedAbortController(te.signal,ie);return[le.signal,function(ue){const fe=ConnectError.from(ie.aborted?getAbortSignalReason(ie):ue);return le.abort(fe),oe(),Promise.reject(fe)},function(){oe(),le.abort()}]}function applyInterceptors(te,ie){var oe;return(oe=ie==null?void 0:ie.concat().reverse().reduce((le,ce)=>ce(le),te))!==null&&oe!==void 0?oe:te}function assertFetchApi(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function validateTrailer(te){const ie=findTrailerError(te);if(ie)throw ie}function requestHeader(te,ie,oe){const le=new Headers(oe??{});return le.set(headerContentType,te?contentTypeProto:contentTypeJson),le.set(headerXGrpcWeb,"1"),le.set(headerXUserAgent,"connect-es/1.1.3"),le.set(headerUserAgent,"connect-es/1.1.3"),ie!==void 0&&le.set(headerTimeout,`${ie}m`),le}function codeFromHttpStatus(te){switch(te){case 400:return Code.Internal;case 401:return Code.Unauthenticated;case 403:return Code.PermissionDenied;case 404:return Code.Unimplemented;case 429:return Code.Unavailable;case 502:return Code.Unavailable;case 503:return Code.Unavailable;case 504:return Code.Unavailable;default:return Code.Unknown}}function validateResponse(te,ie){var oe;if(te>=200&&te<300){const le=findTrailerError(ie);if(le)throw le;return{foundStatus:ie.has(headerGrpcStatus)}}throw new ConnectError(decodeURIComponent((oe=ie.get(headerGrpcMessage))!==null&&oe!==void 0?oe:`HTTP ${te}`),codeFromHttpStatus(te),ie)}var __await=globalThis&&globalThis.__await||function(te){return this instanceof __await?(this.v=te,this):new __await(te)},__asyncGenerator=globalThis&&globalThis.__asyncGenerator||function(te,ie,oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=oe.apply(te,ie||[]),ce,ue=[];return ce={},fe("next"),fe("throw"),fe("return"),ce[Symbol.asyncIterator]=function(){return this},ce;function fe(Pe){le[Pe]&&(ce[Pe]=function(Re){return new Promise(function(Oe,Be){ue.push([Pe,Re,Oe,Be])>1||he(Pe,Re)})})}function he(Pe,Re){try{ve(le[Pe](Re))}catch(Oe){Me(ue[0][3],Oe)}}function ve(Pe){Pe.value instanceof __await?Promise.resolve(Pe.value.v).then(Se,ke):Me(ue[0][2],Pe)}function Se(Pe){he("next",Pe)}function ke(Pe){he("throw",Pe)}function Me(Pe,Re){Pe(Re),ue.shift(),ue.length&&he(ue[0][0],ue[0][1])}};function createGrpcWebTransport(te){var ie;assertFetchApi();const oe=(ie=te.useBinaryFormat)!==null&&ie!==void 0?ie:!0;return{async unary(le,ce,ue,fe,he,ve,Se){var ke;const{serialize:Me,parse:Pe}=createClientMethodSerializers(ce,oe,te.jsonOptions,te.binaryOptions);return fe=fe===void 0?te.defaultTimeoutMs:fe<=0?void 0:fe,await runUnaryCall({interceptors:te.interceptors,signal:ue,timeoutMs:fe,req:{stream:!1,service:le,method:ce,url:createMethodUrl(te.baseUrl,le,ce),init:{method:"POST",credentials:(ke=te.credentials)!==null&&ke!==void 0?ke:"same-origin",redirect:"error",mode:"cors"},header:requestHeader(oe,fe,he),contextValues:Se??createContextValues(),message:ve},next:async Re=>{var Oe;const xe=await((Oe=te.fetch)!==null&&Oe!==void 0?Oe:globalThis.fetch)(Re.url,Object.assign(Object.assign({},Re.init),{headers:Re.header,signal:Re.signal,body:encodeEnvelope(0,Me(Re.message))}));if(validateResponse(xe.status,xe.headers),!xe.body)throw"missing response body";const nt=createEnvelopeReadableStream(xe.body).getReader();let rt,ot;for(;;){const ht=await nt.read();if(ht.done)break;const{flags:dt,data:Rt}=ht.value;if(dt===trailerFlag){if(rt!==void 0)throw"extra trailer";rt=trailerParse(Rt);continue}if(ot!==void 0)throw"extra message";ot=Pe(Rt)}if(rt===void 0)throw"missing trailer";if(validateTrailer(rt),ot===void 0)throw"missing message";return{stream:!1,header:xe.headers,message:ot,trailer:rt}}})},async stream(le,ce,ue,fe,he,ve,Se){var ke;const{serialize:Me,parse:Pe}=createClientMethodSerializers(ce,oe,te.jsonOptions,te.binaryOptions);function Re(Be,xe,nt){return __asyncGenerator(this,arguments,function*(){const ot=createEnvelopeReadableStream(Be).getReader();if(xe){if(!(yield __await(ot.read())).done)throw"extra data for trailers-only";return yield __await(void 0)}let ht=!1;for(;;){const dt=yield __await(ot.read());if(dt.done)break;const{flags:Rt,data:Ct}=dt.value;if((Rt&trailerFlag)===trailerFlag){if(ht)throw"extra trailer";ht=!0;const Lt=trailerParse(Ct);validateTrailer(Lt),Lt.forEach((Qn,Mn)=>nt.set(Mn,Qn));continue}if(ht)throw"extra message";yield yield __await(Pe(Ct))}if(!ht)throw"missing trailer"})}async function Oe(Be){if(ce.kind!=MethodKind.ServerStreaming)throw"The fetch API does not support streaming request bodies";const xe=await Be[Symbol.asyncIterator]().next();if(xe.done==!0)throw"missing request message";return encodeEnvelope(0,Me(xe.value))}return fe=fe===void 0?te.defaultTimeoutMs:fe<=0?void 0:fe,runStreamingCall({interceptors:te.interceptors,signal:ue,timeoutMs:fe,req:{stream:!0,service:le,method:ce,url:createMethodUrl(te.baseUrl,le,ce),init:{method:"POST",credentials:(ke=te.credentials)!==null&&ke!==void 0?ke:"same-origin",redirect:"error",mode:"cors"},header:requestHeader(oe,fe,he),contextValues:Se??createContextValues(),message:ve},next:async Be=>{var xe;const rt=await((xe=te.fetch)!==null&&xe!==void 0?xe:globalThis.fetch)(Be.url,Object.assign(Object.assign({},Be.init),{headers:Be.header,signal:Be.signal,body:await Oe(Be.message)})),{foundStatus:ot}=validateResponse(rt.status,rt.headers);if(!rt.body)throw"missing response body";const ht=new Headers;return Object.assign(Object.assign({},Be),{header:rt.headers,trailer:ht,message:Re(rt.body,ot,ht)})}})}}}let createNanoEvents=()=>({emit(te,...ie){let oe=this.events[te]||[];for(let le=0,ce=oe.length;le<ce;le++)oe[le](...ie)},events:{},on(te,ie){var oe;return(oe=this.events[te])!=null&&oe.push(ie)||(this.events[te]=[ie]),()=>{var le;this.events[te]=(le=this.events[te])==null?void 0:le.filter(ce=>ie!==ce)}}});const nanoquery=({cache:te=new Map,fetcher:ie,...oe}={})=>{const le=createNanoEvents();let ce=!0;subscribe("visibilitychange",()=>{ce=!document.hidden,ce&&le.emit(FOCUS)}),subscribe("online",()=>le.emit(RECONNECT));const ue=new Map,fe=new Map,he=new Map;let ve={};const Se=async([nt,rt],ot,ht,dt)=>{var Rt;if(!ce)return;const Ct=Ta=>{ot.key===nt&&(ot.set(Ta),le.emit(SET_CACHE,nt,Ta,!0))},Lt=()=>{Ct({...ot.value,...loading,promise:he.get(nt)})},{dedupeTime:Qn=4e3,fetcher:Mn}={...ht,...ve},Gn=getNow();if(he.has(nt)){ot.value.loading||Lt();return}if(!dt){const Ta=te.get(nt);Ta&&ot.value.data!==Ta&&Ct({data:Ta,...notLoading});const Kn=fe.get(nt);if(Kn&&Kn+Qn>Gn)return}const Sa=startTask();try{const Ta=Mn(...rt);fe.set(nt,Gn),he.set(nt,Ta),Lt();const Kn=await Ta;te.set(nt,Kn),Ct({data:Kn,...notLoading}),fe.set(nt,getNow())}catch(Ta){(Rt=ht.onError)==null||Rt.call(ht,Ta),Ct({data:ot.value.data,error:Ta,...notLoading})}finally{Sa(),he.delete(nt)}},ke=(nt,{fetcher:rt=ie,...ot}={})=>{const ht=map({...notLoading}),dt={...oe,...ot,fetcher:rt};ht._=fetcherSymbol,ht.invalidate=()=>{const{key:Kn}=ht;Kn&&Re(Kn)},ht.mutate=Kn=>{const{key:ka}=ht;ka&&Oe(ka,Kn)};let Rt,Ct,Lt,Qn,Mn,Gn=[];onStart(ht,()=>{const Kn=!Rt;[Mn,Rt]=getKeyStore(nt),Qn=Mn.subscribe(Ia=>{if(Ia){const[wa,Vn]=Ia;ht.key=wa,Se([wa,Vn],ht,dt),Ct=wa,Lt=Vn}else ht.key=Ct=Lt=void 0,ht.set({...notLoading})});const ka=Mn.get();ka&&([Ct,Lt]=ka,Kn&&Sa());const{refetchInterval:Ra=0,refetchOnFocus:Jn,refetchOnReconnect:zn}=dt,_a=()=>{Ct&&Se([Ct,Lt],ht,dt)};Ra>0&&ue.set(nt,setInterval(_a,Ra)),Jn&&Gn.push(le.on(FOCUS,_a)),zn&&Gn.push(le.on(RECONNECT,_a)),Gn.push(le.on(INVALIDATE_KEYS,Ia=>{Ct&&testKeyAgainstSelector(Ct,Ia)&&Se([Ct,Lt],ht,dt,!0)}),le.on(SET_CACHE,(Ia,wa,Vn)=>{Ct&&testKeyAgainstSelector(Ct,Ia)&&ht.value!==wa&&ht.value.data!==wa&&ht.set(Vn?wa:{data:wa,...notLoading})}))});const Sa=()=>{Ct&&Lt&&Se([Ct,Lt],ht,dt)},Ta=ht.listen;return ht.listen=Kn=>{const ka=Ta(Kn);return Kn(ht.value),Sa(),ka},onStop(ht,()=>{ht.value={...notLoading},Rt==null||Rt(),Gn.forEach(ka=>ka()),Gn=[],Qn==null||Qn();const Kn=ue.get(nt);Kn&&clearInterval(Kn)}),ht},Me=nt=>{te.delete(nt),fe.delete(nt)},Pe=(nt,rt)=>{for(const ot of te.keys())testKeyAgainstSelector(ot,nt)&&rt(ot)},Re=nt=>{Pe(nt,Me),le.emit(INVALIDATE_KEYS,nt)},Oe=(nt,rt)=>{Pe(nt,ot=>{rt===void 0?Me(ot):te.set(ot,rt)}),le.emit(SET_CACHE,nt,rt)};function Be(nt){const rt=async ht=>{var dt;const Rt=ve.fetcher??nt,Ct=[];try{ot.set({error:void 0,data:void 0,mutate:rt,...loading});const Lt=await Rt({data:ht,invalidate:Qn=>{Ct.push(Qn)},getCacheUpdater:(Qn,Mn=!0)=>[Gn=>{Oe(Qn,Gn),Mn&&Ct.push(Qn)},te.get(Qn)]});return ot.setKey("data",Lt),Lt}catch(Lt){(dt=oe==null?void 0:oe.onError)==null||dt.call(oe,Lt),ot.setKey("error",Lt)}finally{ot.setKey("loading",!1),Ct.forEach(Re)}},ot=map({mutate:rt,...notLoading});return ot.mutate=rt,ot}return[ke,Be,{__unsafeOverruleSettings:nt=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),ve=nt},invalidateKeys:Re,mutateCache:Oe}]};function isSomeKey(te){return typeof te=="string"||typeof te=="number"||te===!0}const getKeyStore=te=>{if(isSomeKey(te))return[atom([""+te,[te]]),()=>{}];let ie=atom(null),oe=[];const le=()=>{oe.some(ue=>ue==null||ue===!1)?ie.set(null):ie.set([oe.join(""),oe])},ce=[];for(let ue=0;ue<te.length;ue++){const fe=te[ue];isSomeKey(fe)?oe.push(fe):ce.push(fe.subscribe(he=>{oe[ue]=isFetcherStore(fe)?fe.value&&"data"in fe.value?fe.key:null:he,le()}))}return le(),[ie,()=>ce.forEach(ue=>ue())]};function isFetcherStore(te){return te._===fetcherSymbol}const FOCUS=1,RECONNECT=2,INVALIDATE_KEYS=3,SET_CACHE=4,subscribe=(te,ie)=>{typeof window>"u"||addEventListener(te,ie)},testKeyAgainstSelector=(te,ie)=>Array.isArray(ie)?ie.includes(te):typeof ie=="function"?ie(te):te===ie,getNow=()=>new Date().getTime(),fetcherSymbol=Symbol(),loading={loading:!0},notLoading={loading:!1},LeagueSyncStatus=proto3.makeEnum("streamlayer.sports.LeagueSyncStatus",[{no:0,name:"LEAGUE_SYNC_STATUS_UNSET",localName:"UNSET"},{no:1,name:"LEAGUE_SYNC_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:2,name:"LEAGUE_SYNC_STATUS_IN_PROGRESS",localName:"IN_PROGRESS"},{no:3,name:"LEAGUE_SYNC_STATUS_SYNCED",localName:"SYNCED"},{no:4,name:"LEAGUE_SYNC_STATUS_ERROR",localName:"ERROR"}]),EventStatus=proto3.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),EventEndless=proto3.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),Pagination=proto3.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),Sort=proto3.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),Meta=proto3.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),Venue=proto3.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sports.Team",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"alias",kind:"scalar",T:9},{no:5,name:"venue",kind:"message",T:Venue}]);const EventTime=proto3.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),EventPeriod=proto3.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]);proto3.makeMessageType("streamlayer.sports.Event",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"league_id",kind:"scalar",T:4},{no:4,name:"season_id",kind:"scalar",T:4},{no:5,name:"home_team_id",kind:"scalar",T:4},{no:6,name:"away_team_id",kind:"scalar",T:4},{no:7,name:"winner_team_id",kind:"scalar",T:4},{no:8,name:"scheduled",kind:"scalar",T:9},{no:9,name:"score_home",kind:"scalar",T:5},{no:10,name:"score_away",kind:"scalar",T:5},{no:11,name:"venue",kind:"message",T:Venue},{no:12,name:"event_time",kind:"message",T:EventTime},{no:13,name:"status",kind:"enum",T:proto3.getEnumType(EventStatus)},{no:14,name:"periods",kind:"message",T:EventPeriod,repeated:!0},{no:15,name:"start_time",kind:"scalar",T:9},{no:16,name:"end_time",kind:"scalar",T:9},{no:17,name:"endless",kind:"enum",T:proto3.getEnumType(EventEndless)}]);const Country=proto3.makeMessageType("streamlayer.sports.Country",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"abbreviation",kind:"scalar",T:9}]),PlayerAttributes=proto3.makeMessageType("streamlayer.sports.PlayerAttributes",()=>[{no:1,name:"display_id",kind:"scalar",T:5},{no:3,name:"full_first",kind:"scalar",T:9},{no:4,name:"full_last",kind:"scalar",T:9},{no:5,name:"uniform",kind:"scalar",T:9},{no:6,name:"height",kind:"message",T:PlayerAttributes_Height},{no:7,name:"weight",kind:"message",T:PlayerAttributes_Weight},{no:8,name:"birth",kind:"message",T:PlayerAttributes_Birth}]),PlayerAttributes_Height=proto3.makeMessageType("streamlayer.sports.PlayerAttributes.Height",()=>[{no:1,name:"centimeters",kind:"scalar",T:5},{no:2,name:"inches",kind:"scalar",T:5}],{localName:"PlayerAttributes_Height"}),PlayerAttributes_Weight=proto3.makeMessageType("streamlayer.sports.PlayerAttributes.Weight",()=>[{no:1,name:"kilograms",kind:"scalar",T:5},{no:2,name:"pounds",kind:"scalar",T:5}],{localName:"PlayerAttributes_Weight"}),PlayerAttributes_Birth=proto3.makeMessageType("streamlayer.sports.PlayerAttributes.Birth",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"message",T:Country}],{localName:"PlayerAttributes_Birth"});proto3.makeMessageType("streamlayer.sports.PlayerAttributes.Birth.BirthDate",()=>[{no:1,name:"year",kind:"scalar",T:5},{no:2,name:"month",kind:"scalar",T:5},{no:3,name:"date",kind:"scalar",T:5},{no:4,name:"full",kind:"scalar",T:9}],{localName:"PlayerAttributes_Birth_BirthDate"});const PlayerTeam=proto3.makeMessageType("streamlayer.sports.PlayerTeam",()=>[{no:1,name:"team_id",kind:"scalar",T:4},{no:2,name:"position",kind:"scalar",T:9},{no:3,name:"jersey_number",kind:"scalar",T:5}]);proto3.makeMessageType("streamlayer.sports.Player",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"first_name",kind:"scalar",T:9},{no:10,name:"last_name",kind:"scalar",T:9},{no:14,name:"display_name",kind:"scalar",T:9},{no:11,name:"birth_date",kind:"scalar",T:9},{no:12,name:"nationality",kind:"message",T:Country},{no:13,name:"attributes",kind:"message",T:PlayerAttributes},{no:15,name:"teams",kind:"message",T:PlayerTeam,repeated:!0}]);const TeamRecord=proto3.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]);proto3.makeMessageType("streamlayer.sports.Season",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"type",kind:"scalar",T:9},{no:6,name:"year",kind:"scalar",T:5},{no:7,name:"league_id",kind:"scalar",T:4}]);const SyncStatusStage=proto3.makeMessageType("streamlayer.sports.SyncStatusStage",()=>[{no:1,name:"stage",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4},{no:3,name:"datetime",kind:"scalar",T:9},{no:4,name:"error",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:proto3.getEnumType(LeagueSyncStatus)}]),SyncStatus=proto3.makeMessageType("streamlayer.sports.SyncStatus",()=>[{no:1,name:"teams",kind:"message",T:SyncStatusStage},{no:2,name:"event",kind:"message",T:SyncStatusStage},{no:3,name:"events",kind:"message",T:SyncStatusStage},{no:4,name:"players",kind:"message",T:SyncStatusStage},{no:5,name:"leagues",kind:"message",T:SyncStatusStage}]),SyncStatusProvider=proto3.makeMessageType("streamlayer.sports.SyncStatusProvider",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"status",kind:"message",T:SyncStatus}]);proto3.makeMessageType("streamlayer.sports.League",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"country",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9},{no:13,name:"sync",kind:"scalar",T:8},{no:14,name:"sport_id",kind:"scalar",T:4},{no:12,name:"sync_status",kind:"message",T:SyncStatusProvider,repeated:!0}]);proto3.makeMessageType("streamlayer.sports.Sport",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"created",kind:"scalar",T:9},{no:3,name:"updated",kind:"scalar",T:9},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9}]);const NflEventStatistics=proto3.makeMessageType("streamlayer.sports.NflEventStatistics",()=>[{no:1,name:"passes",kind:"scalar",T:5},{no:2,name:"rushes",kind:"scalar",T:5},{no:3,name:"penalties",kind:"scalar",T:5},{no:4,name:"turnovers",kind:"scalar",T:5}]),SoccerEventStatistics=proto3.makeMessageType("streamlayer.sports.SoccerEventStatistics",()=>[{no:1,name:"ball_possession",kind:"scalar",T:5},{no:2,name:"throw_ins",kind:"scalar",T:5},{no:3,name:"fouls",kind:"scalar",T:5},{no:4,name:"goal_kicks",kind:"scalar",T:5},{no:5,name:"free_kicks",kind:"scalar",T:5},{no:6,name:"shots_on_target",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"shots_off_target",kind:"scalar",T:5},{no:9,name:"shots_saved",kind:"scalar",T:5},{no:10,name:"offsides",kind:"scalar",T:5},{no:11,name:"shots_blocked",kind:"scalar",T:5},{no:12,name:"yellow_cards",kind:"scalar",T:5}]);proto3.makeMessageType("streamlayer.sports.EventTeamStatistics",()=>[{no:1,name:"football",kind:"message",T:NflEventStatistics,oneof:"statistics"},{no:2,name:"soccer",kind:"message",T:SoccerEventStatistics,oneof:"statistics"}]);const EventTeam=proto3.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),EventCustomFields=proto3.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),EventProgram=proto3.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),EventData=proto3.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:EventTeam},{no:6,name:"away",kind:"message",T:EventTeam},{no:7,name:"status",kind:"enum",T:proto3.getEnumType(EventStatus)},{no:8,name:"custom_fields",kind:"message",T:EventCustomFields},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:Venue},{no:12,name:"schedule",kind:"message",T:EventProgram,repeated:!0},{no:13,name:"endless",kind:"enum",T:proto3.getEnumType(EventEndless)},{no:14,name:"provider_id",kind:"scalar",T:9}]),EventSummary$4=proto3.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:Venue},{no:6,name:"event_time",kind:"message",T:EventTime},{no:7,name:"home_team",kind:"message",T:EventTeam},{no:8,name:"away_team",kind:"message",T:EventTeam},{no:9,name:"status",kind:"enum",T:proto3.getEnumType(EventStatus)},{no:10,name:"periods",kind:"message",T:EventPeriod,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9},{no:16,name:"stream",kind:"scalar",T:9}]),QueryOption=proto3.makeMessageType("streamlayer.sports.QueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]),ArrayQueryOption=proto3.makeMessageType("streamlayer.sports.ArrayQueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9,repeated:!0}]);proto3.makeMessageType("streamlayer.sports.Query",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"match",kind:"message",T:QueryOption,repeated:!0},{no:3,name:"ne",kind:"message",T:QueryOption,repeated:!0},{no:4,name:"eq",kind:"message",T:QueryOption,repeated:!0},{no:5,name:"between",kind:"message",T:ArrayQueryOption,repeated:!0},{no:6,name:"includes",kind:"message",T:ArrayQueryOption,repeated:!0},{no:7,name:"is",kind:"message",T:QueryOption,repeated:!0}]);const PitcherStatus=proto3.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),BaseballBase=proto3.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),PitcherSummary=proto3.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:Pitching},{no:2,name:"status",kind:"enum",T:proto3.getEnumType(PitcherStatus)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),Runner=proto3.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),RunnerOnBase=proto3.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:proto3.getEnumType(BaseballBase)},{no:2,name:"player",kind:"message",T:Runner}]),Hitting=proto3.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),Batting=proto3.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),Pitching=proto3.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),BaseballTeamSummary=proto3.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:Hitting,repeated:!0},{no:2,name:"batting",kind:"message",T:Batting,repeated:!0},{no:3,name:"pitching",kind:"message",T:Pitching,repeated:!0}]),BaseballSummary=proto3.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:PitcherSummary},{no:2,name:"away_pitcher",kind:"message",T:PitcherSummary},{no:3,name:"home_statistics",kind:"message",T:BaseballTeamSummary},{no:4,name:"away_statistics",kind:"message",T:BaseballTeamSummary}]),BaseballPlayByPlayStatistics=proto3.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:EventTeam},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics=proto3.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),EventScore$3=proto3.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:RunnerOnBase,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:TeamRecord},{no:9,name:"away_team_record",kind:"message",T:TeamRecord}]),PlayByPlay$3=proto3.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:BaseballPlayByPlayStatistics,repeated:!0}]),EventSummary$3=proto3.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:BaseballSummary}]),TeamStanding$3=proto3.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:TeamStanding_Streak$2},{no:11,name:"rank",kind:"message",T:TeamStanding_Rank$2},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),TeamStanding_Streak$2=proto3.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),TeamStanding_Rank$2=proto3.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Standings$3=proto3.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:TeamStanding$3,repeated:!0}]),BasketballPerformerCategory=proto3.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),EventScore$2=proto3.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:TeamRecord},{no:9,name:"away_team_record",kind:"message",T:TeamRecord}]),BasketballTeamSummary=proto3.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),BasketballPerformer=proto3.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),BasketballPerformers=proto3.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:proto3.getEnumType(BasketballPerformerCategory)},{no:2,name:"home_player",kind:"message",T:BasketballPerformer},{no:3,name:"away_player",kind:"message",T:BasketballPerformer}]),BasketballSummary=proto3.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:BasketballTeamSummary},{no:2,name:"away_statistics",kind:"message",T:BasketballTeamSummary}]),EventSummary$2=proto3.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:BasketballSummary},{no:2,name:"top_performers",kind:"message",T:BasketballPerformers,repeated:!0},{no:3,name:"last_games",kind:"message",T:BasketballLastGames}]),BasketballPlayByPlayStatistics=proto3.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:EventTeam},{no:2,name:"event_time",kind:"message",T:EventTime},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),PlayByPlay$2=proto3.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:BasketballPlayByPlayStatistics,repeated:!0}]),PlayerScores$1=proto3.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),Boxscore$1=proto3.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:PlayerScores$1,repeated:!0},{no:2,name:"away_players",kind:"message",T:PlayerScores$1,repeated:!0}]),TeamStanding$2=proto3.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:TeamStanding_Streak$1},{no:11,name:"rank",kind:"message",T:TeamStanding_Rank$1},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),TeamStanding_Streak$1=proto3.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),TeamStanding_Rank$1=proto3.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Standings$2=proto3.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:TeamStanding$2,repeated:!0}]),BasketballMatchPlayer=proto3.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),BasketballMatchLineup=proto3.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:BasketballMatchPlayer,repeated:!0},{no:4,name:"substitutes",kind:"message",T:BasketballMatchPlayer,repeated:!0}]),BasketballMatchLineups=proto3.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:BasketballMatchLineup},{no:2,name:"away_team",kind:"message",T:BasketballMatchLineup}]),BasketballLastGame=proto3.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:BasketballLastGame_BasketballLastGameAttributes}]),BasketballLastGame_BasketballLastGameAttributes=proto3.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),BasketballLastGames=proto3.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:BasketballLastGame,repeated:!0},{no:2,name:"away",kind:"message",T:BasketballLastGame,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:BasketballLastGame,repeated:!0}]),HockeyPerformerCategory=proto3.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),HockeyPlayerPosition=proto3.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),EventScore$1=proto3.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:TeamRecord},{no:9,name:"away_team_record",kind:"message",T:TeamRecord}]),HockeyPerformer=proto3.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),HockeyPerformers=proto3.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:proto3.getEnumType(HockeyPerformerCategory)},{no:2,name:"home_player",kind:"message",T:HockeyPerformer,repeated:!0},{no:3,name:"away_player",kind:"message",T:HockeyPerformer,repeated:!0}]),HockeyTeamSummary=proto3.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),HockeySummary=proto3.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:HockeyTeamSummary},{no:2,name:"away_statistics",kind:"message",T:HockeyTeamSummary}]),EventSummary$1=proto3.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:HockeySummary},{no:2,name:"top_performers",kind:"message",T:HockeyPerformers,repeated:!0}]),HockeyPlayByPlayStatistics=proto3.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:EventTeam},{no:2,name:"event_time",kind:"message",T:EventTime},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),PlayByPlay$1=proto3.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:HockeyPlayByPlayStatistics,repeated:!0}]),PlayerScore=proto3.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:proto3.getEnumType(HockeyPlayerPosition)}]),GoaltenderScore=proto3.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:proto3.getEnumType(HockeyPlayerPosition)}]),PlayerScores=proto3.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:PlayerScore,repeated:!0},{no:2,name:"goaltender",kind:"message",T:GoaltenderScore},{no:3,name:"forwards",kind:"message",T:PlayerScore,repeated:!0},{no:4,name:"defensemen",kind:"message",T:PlayerScore,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:GoaltenderScore,repeated:!0}]),Boxscore=proto3.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:PlayerScores},{no:2,name:"away_players",kind:"message",T:PlayerScores}]),TeamStanding$1=proto3.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:TeamStanding_Streak},{no:11,name:"rank",kind:"message",T:TeamStanding_Rank},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),TeamStanding_Streak=proto3.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),TeamStanding_Rank=proto3.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Standings$1=proto3.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:TeamStanding$1,repeated:!0}]),SoccerPerformerCategory=proto3.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),SoccerMatchActivityType=proto3.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),EventScore=proto3.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:TeamRecord},{no:9,name:"away_team_record",kind:"message",T:TeamRecord}]),SoccerPerformer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),SoccerAttackPerfomer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:SoccerPerformer},{no:2,name:"attack_stats",kind:"message",T:SoccerPlayerAttackingStats}]),SoccerMidfieldPerformer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:SoccerPerformer},{no:2,name:"midfield_stats",kind:"message",T:SoccerPlayerMidfieldStats}]),SoccerDefensePerfomer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:SoccerPerformer},{no:2,name:"defense_stats",kind:"message",T:SoccerPlayerDefenseStats}]),SoccerPerformers=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:proto3.getEnumType(SoccerPerformerCategory)},{no:2,name:"attack_performer",kind:"message",T:SoccerAttackPerfomer},{no:3,name:"midfield_performer",kind:"message",T:SoccerMidfieldPerformer},{no:4,name:"defense_performer",kind:"message",T:SoccerDefensePerfomer}]),SoccerTeamTopMatchStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),SoccerTeamAttackingStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),SoccerTeamDefenseStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),SoccerTeamSummary=proto3.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:SoccerTeamTopMatchStats},{no:2,name:"attacking_stats",kind:"message",T:SoccerTeamAttackingStats},{no:3,name:"defense_stats",kind:"message",T:SoccerTeamDefenseStats}]),SoccerSummary=proto3.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:SoccerTeamSummary},{no:2,name:"away_statistics",kind:"message",T:SoccerTeamSummary},{no:3,name:"perfomers",kind:"message",T:SoccerPerformers}]),EventSummary=proto3.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:SoccerSummary},{no:2,name:"last_games",kind:"message",T:SoccerLastGames}]),SoccerPlayerAttackingStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),SoccerPlayerMidfieldStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),SoccerPlayerDefenseStats=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]);proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchOdds",()=>[{no:1,name:"home_team_win",kind:"scalar",T:1},{no:2,name:"draw",kind:"scalar",T:1},{no:3,name:"away_team_win",kind:"scalar",T:1}]);const SoccerMatchFormationMatrixPlayer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),SoccerMatchFormationMatrix=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:SoccerMatchFormationMatrixPlayer,repeated:!0}]),SoccerMatchPlayer=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),SoccerMatchLineup=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:SoccerMatchFormationMatrix,repeated:!0},{no:3,name:"start_players",kind:"message",T:SoccerMatchPlayer,repeated:!0},{no:4,name:"substitutes",kind:"message",T:SoccerMatchPlayer,repeated:!0}]),SoccerMatchLineups=proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:SoccerMatchLineup},{no:2,name:"away_team",kind:"message",T:SoccerMatchLineup}]);proto3.makeMessageType("streamlayer.sports.soccer.SoccerMatchScore",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"mil",kind:"scalar",T:1},{no:3,name:"round",kind:"scalar",T:9},{no:4,name:"live_url",kind:"scalar",T:9}]);const SoccerPlayByPlayStatistics=proto3.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:EventTeam},{no:2,name:"event_time",kind:"message",T:EventTime},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:proto3.getEnumType(SoccerMatchActivityType)}]),PlayByPlay=proto3.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:SoccerPlayByPlayStatistics,repeated:!0}]),TeamStanding=proto3.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),Standings=proto3.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:TeamStanding,repeated:!0}]),SoccerLastGame=proto3.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:SoccerLastGame_SoccerLastGameAttributes}]),SoccerLastGame_SoccerLastGameAttributes=proto3.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),SoccerLastGames=proto3.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:SoccerLastGame,repeated:!0},{no:2,name:"away",kind:"message",T:SoccerLastGame,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:SoccerLastGame,repeated:!0}]),EventType=proto3.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),ScheduleAttributes=proto3.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"baseball",kind:"message",T:EventScore$3,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:EventScore$2,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:EventScore$1,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:EventScore,oneof:"sport"}]),ScheduleResponseData=proto3.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:ScheduleAttributes}]),ListResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:EventData}]),ListResponseData=proto3.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:ListResponseAttributes}]),ListRequest$1=proto3.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:ListRequest_Filter},{no:2,name:"pagination",kind:"message",T:Pagination},{no:3,name:"sort",kind:"message",T:Sort},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),ListRequest_Filter=proto3.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:proto3.getEnumType(EventEndless)}],{localName:"ListRequest_Filter"}),DemoListRequest=proto3.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:DemoListRequest_Filter},{no:2,name:"pagination",kind:"message",T:Pagination},{no:3,name:"sort",kind:"message",T:Sort}]),DemoListRequest_Filter=proto3.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),DemoListResponse=proto3.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:Meta},{no:2,name:"data",kind:"message",T:ListResponseData,repeated:!0}]),ListResponse$1=proto3.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:Meta},{no:2,name:"data",kind:"message",T:ListResponseData,repeated:!0}]),SummaryRequest$1=proto3.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),SummaryResponse$1=proto3.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:SummaryResponse_ResponseData}]),SummaryResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:SummaryResponse_ResponseData_SummaryResponseAttributes}],{localName:"SummaryResponse_ResponseData"}),SummaryResponse_ResponseData_SummaryResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"baseball",kind:"message",T:EventSummary$3,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:EventSummary$2,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:EventSummary$1,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:EventSummary,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),AdminSummaryRequest=proto3.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),AdminSummaryResponse=proto3.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:AdminSummaryResponse_ResponseData}]),AdminSummaryResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:AdminSummaryResponse_ResponseData_SummaryResponseAttributes}],{localName:"AdminSummaryResponse_ResponseData"}),AdminSummaryResponse_ResponseData_SummaryResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"provider_id",kind:"scalar",T:9}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),PlayByPlayRequest=proto3.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:Pagination},{no:3,name:"order",kind:"scalar",T:9}]),PlayByPlayResponse=proto3.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:PlayByPlayResponse_ResponseData},{no:2,name:"meta",kind:"message",T:Meta}]),PlayByPlayResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes}],{localName:"PlayByPlayResponse_ResponseData"}),PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"baseball",kind:"message",T:PlayByPlay$3,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:PlayByPlay$2,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:PlayByPlay$1,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:PlayByPlay,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),ScheduleRequest=proto3.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:ScheduleRequest_Filter},{no:2,name:"pagination",kind:"message",T:Pagination}]),ScheduleRequest_Filter=proto3.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),ScheduleResponse=proto3.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:ScheduleResponseData,repeated:!0},{no:2,name:"meta",kind:"message",T:Meta}]),ScheduleDatesRequest=proto3.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:ScheduleDatesRequest_Filter}]),ScheduleDatesRequest_Filter=proto3.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),ScheduleDatesResponse=proto3.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),BoxscoreRequest=proto3.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),BoxscoreResponse=proto3.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:BoxscoreResponse_ResponseData}]),BoxscoreResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:BoxscoreResponse_ResponseData_BoxscoreResponseAttributes}],{localName:"BoxscoreResponse_ResponseData"}),BoxscoreResponse_ResponseData_BoxscoreResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"basketball",kind:"message",T:Boxscore$1,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Boxscore,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),StandingsRequest=proto3.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),StandingsResponse=proto3.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:StandingsResponse_ResponseData}]),StandingsResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:2,name:"attributes",kind:"message",T:StandingsResponse_ResponseData_StandingsResponseAttributes}],{localName:"StandingsResponse_ResponseData"}),StandingsResponse_ResponseData_StandingsResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:Standings$2,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Standings$1,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:Standings$3,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Standings,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),LineupRequest=proto3.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),LineupResponse=proto3.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:LineupResponse_ResponseData}]),LineupResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:LineupResponse_ResponseData_LineupResponseAttributes}],{localName:"LineupResponse_ResponseData"}),LineupResponse_ResponseData_LineupResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"soccer",kind:"message",T:SoccerMatchLineups,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:BasketballMatchLineups,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),LastGamesRequest=proto3.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),LastGamesResponse=proto3.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:LastGamesResponse_ResponseData}]),LastGamesResponse_ResponseData=proto3.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(EventType)},{no:3,name:"attributes",kind:"message",T:LastGamesResponse_ResponseData_LastGamesResponseAttributes}],{localName:"LastGamesResponse_ResponseData"}),LastGamesResponse_ResponseData_LastGamesResponseAttributes=proto3.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:EventSummary$4},{no:2,name:"soccer",kind:"message",T:SoccerLastGames,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:BasketballLastGames,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),RetrieveEventIdRequest=proto3.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),RetrieveEventIdResponse=proto3.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:RetrieveEventIdResponse_RetrieveEventIdResponseData}]),RetrieveEventIdResponse_RetrieveEventIdResponseData=proto3.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),Events={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:ListRequest$1,O:ListResponse$1,kind:MethodKind.Unary},demoList:{name:"DemoList",I:DemoListRequest,O:DemoListResponse,kind:MethodKind.Unary},summary:{name:"Summary",I:SummaryRequest$1,O:SummaryResponse$1,kind:MethodKind.Unary},adminSummary:{name:"AdminSummary",I:AdminSummaryRequest,O:AdminSummaryResponse,kind:MethodKind.Unary},boxscore:{name:"Boxscore",I:BoxscoreRequest,O:BoxscoreResponse,kind:MethodKind.Unary},standings:{name:"Standings",I:StandingsRequest,O:StandingsResponse,kind:MethodKind.Unary},playByPlay:{name:"PlayByPlay",I:PlayByPlayRequest,O:PlayByPlayResponse,kind:MethodKind.Unary},schedule:{name:"Schedule",I:ScheduleRequest,O:ScheduleResponse,kind:MethodKind.Unary},scheduleDates:{name:"ScheduleDates",I:ScheduleDatesRequest,O:ScheduleDatesResponse,kind:MethodKind.Unary},lineup:{name:"Lineup",I:LineupRequest,O:LineupResponse,kind:MethodKind.Unary},retrieveEventId:{name:"RetrieveEventId",I:RetrieveEventIdRequest,O:RetrieveEventIdResponse,kind:MethodKind.Unary},lastGames:{name:"LastGames",I:LastGamesRequest,O:LastGamesResponse,kind:MethodKind.Unary},summarySubscription:{name:"SummarySubscription",I:SummaryRequest$1,O:SummaryResponse$1,kind:MethodKind.ServerStreaming}}},VisibleStatus=proto3.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),MessagesNotify=proto3.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),FriendsNotify=proto3.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),TwitterNotify=proto3.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),CallsSound=proto3.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),MessagesSound=proto3.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),FriendsSound=proto3.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),TwitterSound=proto3.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),SettingsAllow=proto3.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),ManagedGroupType=proto3.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),GroupType=proto3.makeEnum("streamlayer.sdkSettings.client.GroupType",[{no:0,name:"GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"GROUP_TYPE_WP",localName:"WP"}]),NotifySettings=proto3.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:proto3.getEnumType(SettingsAllow)}]),SoundSettings=proto3.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:proto3.getEnumType(SettingsAllow)}]),ClientSettingsNotifications=proto3.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:NotifySettings},{no:2,name:"sound",kind:"message",T:SoundSettings}]),ClientSettings=proto3.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:proto3.getEnumType(VisibleStatus)},{no:2,name:"messages_notify",kind:"enum",T:proto3.getEnumType(MessagesNotify)},{no:3,name:"friends_notify",kind:"enum",T:proto3.getEnumType(FriendsNotify)},{no:4,name:"calls_sound",kind:"enum",T:proto3.getEnumType(CallsSound)},{no:5,name:"messages_sound",kind:"enum",T:proto3.getEnumType(MessagesSound)},{no:6,name:"friends_sound",kind:"enum",T:proto3.getEnumType(FriendsSound)},{no:7,name:"twitter_notify",kind:"enum",T:proto3.getEnumType(TwitterNotify)},{no:8,name:"twitter_sound",kind:"enum",T:proto3.getEnumType(TwitterSound)},{no:9,name:"gamification",kind:"message",T:ClientSettingsNotifications},{no:10,name:"watch_party_invitation",kind:"message",T:ClientSettingsNotifications},{no:11,name:"twitter_question",kind:"message",T:ClientSettingsNotifications}]),GetRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),GetResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:GetResponse_GetResponseData}]),GetResponse_GetResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ClientSettings}],{localName:"GetResponse_GetResponseData"}),UpdateRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:ClientSettings}]),UpdateResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:UpdateResponse_UpdateResponseData}]),UpdateResponse_UpdateResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ClientSettings}],{localName:"UpdateResponse_UpdateResponseData"}),GetStreamRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),GetStreamResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:GetStreamResponse_GetResponseData}]),GetStreamResponse_GetResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:StreamSettings}],{localName:"GetStreamResponse_GetResponseData"}),GetOrganizationRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),GetOrganizationResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:GetOrganizationResponse_GetResponseData}]),GetOrganizationResponse_GetResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:OrganizationSettings}],{localName:"GetOrganizationResponse_GetResponseData"}),GetOrganizationAdvertisingRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),GetOrganizationAdvertisingResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData}]),GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Advertising}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),ManagedGroup=proto3.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:proto3.getEnumType(ManagedGroupType)}]),DeepLinkData=proto3.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:ManagedGroup},{no:5,name:"external_event_id",kind:"scalar",T:9},{no:6,name:"external_group_id",kind:"scalar",T:9},{no:7,name:"group_type",kind:"enum",T:proto3.getEnumType(GroupType)}]),GenerateDeepLinkRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:DeepLinkData}]),DeepLink=proto3.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),GenerateDeepLinkResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:GenerateDeepLinkResponse_GenerateDeepLinkResponseData}]),GenerateDeepLinkResponse_GenerateDeepLinkResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:DeepLink}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"});proto3.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkRequest",()=>[{no:1,name:"url",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData}]);const RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse.RetreiveDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:DeepLinkData}],{localName:"RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData"}),StreamSubscriptionRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),OrganizationSubscriptionRequest=proto3.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),StreamSubscriptionResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:StreamSubscriptionResponse_ResponseData}]),StreamSubscriptionResponse_ResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:StreamSettings}],{localName:"StreamSubscriptionResponse_ResponseData"}),OrganizationSubscriptionResponse=proto3.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:OrganizationSubscriptionResponse_ResponseData}]),OrganizationSubscriptionResponse_ResponseData=proto3.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:OrganizationSettings}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),Client={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:GetRequest,O:GetResponse,kind:MethodKind.Unary},update:{name:"Update",I:UpdateRequest,O:UpdateResponse,kind:MethodKind.Unary},getStream:{name:"GetStream",I:GetStreamRequest,O:GetStreamResponse,kind:MethodKind.Unary},getOrganization:{name:"GetOrganization",I:GetOrganizationRequest,O:GetOrganizationResponse,kind:MethodKind.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:GetOrganizationAdvertisingRequest,O:GetOrganizationAdvertisingResponse,kind:MethodKind.Unary},generateDeepLink:{name:"GenerateDeepLink",I:GenerateDeepLinkRequest,O:GenerateDeepLinkResponse,kind:MethodKind.Unary},streamSubscription:{name:"StreamSubscription",I:StreamSubscriptionRequest,O:StreamSubscriptionResponse,kind:MethodKind.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:OrganizationSubscriptionRequest,O:OrganizationSubscriptionResponse,kind:MethodKind.ServerStreaming}}},UserNotificationPreference=proto3.makeEnum("streamlayer.users.UserNotificationPreference",[{no:0,name:"USER_NOTIFICATION_PREFERENCE_UNSET",localName:"UNSET"},{no:1,name:"USER_NOTIFICATION_PREFERENCE_ALL_EVENTS",localName:"ALL_EVENTS"},{no:2,name:"USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY",localName:"IMPORTANT_EVENTS_ONLY"},{no:3,name:"USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS",localName:"DAILY_SUMMARY_AND_MENTIONS"}]),PublicChatUser=proto3.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),UserAttributes=proto3.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:PublicChatUser},{no:7,name:"public_name",kind:"scalar",T:9}]);proto3.makeMessageType("streamlayer.users.UserOrganization",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"permissions",kind:"scalar",T:9,repeated:!0}]);const UserMetadata=proto3.makeMessageType("streamlayer.users.UserMetadata",()=>[{no:2,name:"avatar",kind:"scalar",T:9},{no:3,name:"avatar_background_colour",kind:"scalar",T:9},{no:4,name:"timezone",kind:"scalar",T:9},{no:5,name:"notification_preference",kind:"enum",T:proto3.getEnumType(UserNotificationPreference)},{no:6,name:"active",kind:"scalar",T:8},{no:7,name:"first_name",kind:"scalar",T:9},{no:8,name:"last_name",kind:"scalar",T:9},{no:9,name:"roles",kind:"scalar",T:9,repeated:!0}]),ExtendedUserAttributes=proto3.makeMessageType("streamlayer.users.ExtendedUserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"metadata",kind:"message",T:UserMetadata}]),User=proto3.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:UserAttributes}]);proto3.makeMessageType("streamlayer.users.ExtendedUser",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ExtendedUserAttributes}]);const LoginRequest=proto3.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),AuthResponse=proto3.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:AuthResponse_AuthResponseMetadata},{no:2,name:"data",kind:"message",T:User}]),AuthResponse_AuthResponseMetadata=proto3.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),RegisterRequest=proto3.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),Referral=proto3.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),RegisterResponse=proto3.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:Referral}]),RequestPasswordRequest=proto3.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),RequestPasswordResponse=proto3.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),MeRequest=proto3.makeMessageType("streamlayer.users.MeRequest",[]),MeResponse=proto3.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:User}]),UpdateMetadataRequest=proto3.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),UpdateAvatarRequest=proto3.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),UpdateAvatarResponse=proto3.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),UpdatePublicChatNameRequest=proto3.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),UpdatePublicChatNameResponse=proto3.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),UpdatePublicNameRequest=proto3.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),UpdatePublicNameResponse=proto3.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),UpdateMetadataResponse=proto3.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),InviteRequest=proto3.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:InviteRequest_InviteReferral}]),InviteRequest_InviteReferral=proto3.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),InviteResponse=proto3.makeMessageType("streamlayer.users.InviteResponse",[]),BypassAuthRequest=proto3.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8}]),BypassAuthResponse=proto3.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:BypassAuthResponse_AuthResponseMetadata},{no:2,name:"data",kind:"message",T:User,opt:!0}]),BypassAuthResponse_AuthResponseMetadata=proto3.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),Users={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:LoginRequest,O:AuthResponse,kind:MethodKind.Unary},register:{name:"Register",I:RegisterRequest,O:RegisterResponse,kind:MethodKind.Unary},requestPassword:{name:"RequestPassword",I:RequestPasswordRequest,O:RequestPasswordResponse,kind:MethodKind.Unary},me:{name:"Me",I:MeRequest,O:MeResponse,kind:MethodKind.Unary},invite:{name:"Invite",I:InviteRequest,O:InviteResponse,kind:MethodKind.Unary},bypassAuth:{name:"BypassAuth",I:BypassAuthRequest,O:BypassAuthResponse,kind:MethodKind.Unary},updateMetadata:{name:"UpdateMetadata",I:UpdateMetadataRequest,O:UpdateMetadataResponse,kind:MethodKind.Unary},updateAvatar:{name:"UpdateAvatar",I:UpdateAvatarRequest,O:UpdateAvatarResponse,kind:MethodKind.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:UpdatePublicChatNameRequest,O:UpdatePublicChatNameResponse,kind:MethodKind.Unary},updatePublicName:{name:"UpdatePublicName",I:UpdatePublicNameRequest,O:UpdatePublicNameResponse,kind:MethodKind.Unary}}},Feed={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:GetRequest$1,O:GetResponse$1,kind:MethodKind.Unary},subscription:{name:"Subscription",I:SubscriptionRequest,O:SubscriptionResponse,kind:MethodKind.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:VotingSubscriptionRequest,O:VotingSubscriptionResponse,kind:MethodKind.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:QuestionSubscriptionRequest,O:QuestionSubscriptionResponse,kind:MethodKind.ServerStreaming},questionByUser:{name:"QuestionByUser",I:QuestionByUserRequest,O:QuestionByUserResponse,kind:MethodKind.Unary},syncQuestion:{name:"SyncQuestion",I:SyncQuestionRequest,O:SyncQuestionResponse,kind:MethodKind.Unary},getQuestion:{name:"GetQuestion",I:GetQuestionRequest,O:GetQuestionResponse,kind:MethodKind.Unary},questionDetail:{name:"QuestionDetail",I:QuestionDetailRequest,O:QuestionDetailResponse,kind:MethodKind.Unary},submitAnswer:{name:"SubmitAnswer",I:SubmitAnswerRequest,O:SubmitAnswerResponse,kind:MethodKind.Unary},submitInplay:{name:"SubmitInplay",I:SubmitInplayRequest,O:SubmitInplayResponse,kind:MethodKind.Unary},skipQuestion:{name:"SkipQuestion",I:SkipQuestionRequest,O:SkipQuestionResponse,kind:MethodKind.Unary},pickHistory:{name:"PickHistory",I:PickHistoryRequest,O:PickHistoryResponse,kind:MethodKind.Unary},insightHistory:{name:"InsightHistory",I:InsightHistoryRequest,O:InsightHistoryResponse,kind:MethodKind.Unary},tweetHistory:{name:"TweetHistory",I:TweetHistoryRequest,O:TweetHistoryResponse,kind:MethodKind.Unary},promotionHistory:{name:"PromotionHistory",I:PromotionHistoryRequest,O:PromotionHistoryResponse,kind:MethodKind.Unary},list:{name:"List",I:FeedListRequest,O:FeedListResponse,kind:MethodKind.Unary},feedSubscription:{name:"FeedSubscription",I:FeedSubscriptionRequest,O:FeedSubscriptionResponse,kind:MethodKind.ServerStreaming}}},LeaderboardType=proto3.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),LeaderboardData=proto3.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:proto3.getEnumType(LeaderboardType)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:LeaderboardData,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),LeaderboardItem=proto3.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),LeaderboardSummaryItem=proto3.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:LeaderboardItem},{no:2,name:"percentage",kind:"message",T:LeaderboardSummaryItem_SummaryPercentage}]),LeaderboardSummaryItem_SummaryPercentage=proto3.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),ListRequest=proto3.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:Pagination$1},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),ListResponse=proto3.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:ListResponse_ListResponseData,repeated:!0},{no:2,name:"meta",kind:"message",T:ListResponse_ListResponseMeta}]),ListResponse_ListResponseData=proto3.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LeaderboardItem}],{localName:"ListResponse_ListResponseData"}),ListResponse_ListResponseMeta=proto3.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),SummaryRequest=proto3.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),SummaryResponse=proto3.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:SummaryResponse_SummaryResponseData}]),SummaryResponse_SummaryResponseData=proto3.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LeaderboardSummaryItem}],{localName:"SummaryResponse_SummaryResponseData"}),EventLeaderboardsRequest=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),EventLeaderboardsResponse=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:EventLeaderboardsResponse_EventLeaderboardsResponseData}]),EventLeaderboardsResponse_EventLeaderboardsResponseData=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LeaderboardData}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),EventLeaderboardRequest=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:Pagination$1},{no:4,name:"sort",kind:"message",T:Sort$1}]),EventLeaderboardResponse=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:EventLeaderboardResponse_ListResponseData,repeated:!0},{no:2,name:"meta",kind:"message",T:EventLeaderboardResponse_ListResponseMeta}]),EventLeaderboardResponse_ListResponseData=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LeaderboardItem}],{localName:"EventLeaderboardResponse_ListResponseData"}),EventLeaderboardResponse_ListResponseMeta=proto3.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),Leaderboard={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:ListRequest,O:ListResponse,kind:MethodKind.Unary},summary:{name:"Summary",I:SummaryRequest,O:SummaryResponse,kind:MethodKind.Unary},eventLeaderboards:{name:"EventLeaderboards",I:EventLeaderboardsRequest,O:EventLeaderboardsResponse,kind:MethodKind.Unary},eventLeaderboard:{name:"EventLeaderboard",I:EventLeaderboardRequest,O:EventLeaderboardResponse,kind:MethodKind.Unary}}};var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof dist.global<"u"?dist.global:typeof self<"u"?self:{};function Yn(te){return te&&te.__esModule&&Object.prototype.hasOwnProperty.call(te,"default")?te.default:te}var C={},Xr={},Ot={};Ot.byteLength=ei;Ot.toByteArray=ri;Ot.fromByteArray=oi;var we=[],se=[],Xn=typeof Uint8Array<"u"?Uint8Array:Array,Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var qe=0,Zn=Nt.length;qe<Zn;++qe)we[qe]=Nt[qe],se[Nt.charCodeAt(qe)]=qe;se["-".charCodeAt(0)]=62;se["_".charCodeAt(0)]=63;function Zr(te){var ie=te.length;if(ie%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var oe=te.indexOf("=");oe===-1&&(oe=ie);var le=oe===ie?0:4-oe%4;return[oe,le]}function ei(te){var ie=Zr(te),oe=ie[0],le=ie[1];return(oe+le)*3/4-le}function ti(te,ie,oe){return(ie+oe)*3/4-oe}function ri(te){var ie,oe=Zr(te),le=oe[0],ce=oe[1],ue=new Xn(ti(te,le,ce)),fe=0,he=ce>0?le-4:le,ve;for(ve=0;ve<he;ve+=4)ie=se[te.charCodeAt(ve)]<<18|se[te.charCodeAt(ve+1)]<<12|se[te.charCodeAt(ve+2)]<<6|se[te.charCodeAt(ve+3)],ue[fe++]=ie>>16&255,ue[fe++]=ie>>8&255,ue[fe++]=ie&255;return ce===2&&(ie=se[te.charCodeAt(ve)]<<2|se[te.charCodeAt(ve+1)]>>4,ue[fe++]=ie&255),ce===1&&(ie=se[te.charCodeAt(ve)]<<10|se[te.charCodeAt(ve+1)]<<4|se[te.charCodeAt(ve+2)]>>2,ue[fe++]=ie>>8&255,ue[fe++]=ie&255),ue}function ni(te){return we[te>>18&63]+we[te>>12&63]+we[te>>6&63]+we[te&63]}function ii(te,ie,oe){for(var le,ce=[],ue=ie;ue<oe;ue+=3)le=(te[ue]<<16&16711680)+(te[ue+1]<<8&65280)+(te[ue+2]&255),ce.push(ni(le));return ce.join("")}function oi(te){for(var ie,oe=te.length,le=oe%3,ce=[],ue=16383,fe=0,he=oe-le;fe<he;fe+=ue)ce.push(ii(te,fe,fe+ue>he?he:fe+ue));return le===1?(ie=te[oe-1],ce.push(we[ie>>2]+we[ie<<4&63]+"==")):le===2&&(ie=(te[oe-2]<<8)+te[oe-1],ce.push(we[ie>>10]+we[ie>>4&63]+we[ie<<2&63]+"=")),ce.join("")}var fr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */fr.read=function(te,ie,oe,le,ce){var ue,fe,he=ce*8-le-1,ve=(1<<he)-1,Se=ve>>1,ke=-7,Me=oe?ce-1:0,Pe=oe?-1:1,Re=te[ie+Me];for(Me+=Pe,ue=Re&(1<<-ke)-1,Re>>=-ke,ke+=he;ke>0;ue=ue*256+te[ie+Me],Me+=Pe,ke-=8);for(fe=ue&(1<<-ke)-1,ue>>=-ke,ke+=le;ke>0;fe=fe*256+te[ie+Me],Me+=Pe,ke-=8);if(ue===0)ue=1-Se;else{if(ue===ve)return fe?NaN:(Re?-1:1)*(1/0);fe=fe+Math.pow(2,le),ue=ue-Se}return(Re?-1:1)*fe*Math.pow(2,ue-le)};fr.write=function(te,ie,oe,le,ce,ue){var fe,he,ve,Se=ue*8-ce-1,ke=(1<<Se)-1,Me=ke>>1,Pe=ce===23?Math.pow(2,-24)-Math.pow(2,-77):0,Re=le?0:ue-1,Oe=le?1:-1,Be=ie<0||ie===0&&1/ie<0?1:0;for(ie=Math.abs(ie),isNaN(ie)||ie===1/0?(he=isNaN(ie)?1:0,fe=ke):(fe=Math.floor(Math.log(ie)/Math.LN2),ie*(ve=Math.pow(2,-fe))<1&&(fe--,ve*=2),fe+Me>=1?ie+=Pe/ve:ie+=Pe*Math.pow(2,1-Me),ie*ve>=2&&(fe++,ve/=2),fe+Me>=ke?(he=0,fe=ke):fe+Me>=1?(he=(ie*ve-1)*Math.pow(2,ce),fe=fe+Me):(he=ie*Math.pow(2,Me-1)*Math.pow(2,ce),fe=0));ce>=8;te[oe+Re]=he&255,Re+=Oe,he/=256,ce-=8);for(fe=fe<<ce|he,Se+=ce;Se>0;te[oe+Re]=fe&255,Re+=Oe,fe/=256,Se-=8);te[oe+Re-Oe]|=Be*128};/*!
9
+ */(function(e){const t=ua,n=xs,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=o(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(i){if(i>a)throw new RangeError('The value "'+i+'" is invalid for option "size"');const r=new Uint8Array(i);return Object.setPrototypeOf(r,c.prototype),r}function c(i,r,l){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(i)}return d(i,r,l)}c.poolSize=8192;function d(i,r,l){if(typeof i=="string")return y(i,r);if(ArrayBuffer.isView(i))return A(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return R(i,r,l);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const p=i.valueOf&&i.valueOf();if(p!=null&&p!==i)return c.from(p,r,l);const h=N(i);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return c.from(i[Symbol.toPrimitive]("string"),r,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}c.from=function(i,r,l){return d(i,r,l)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function f(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function g(i,r,l){return f(i),i<=0?u(i):r!==void 0?typeof l=="string"?u(i).fill(r,l):u(i).fill(r):u(i)}c.alloc=function(i,r,l){return g(i,r,l)};function T(i){return f(i),u(i<0?0:_(i)|0)}c.allocUnsafe=function(i){return T(i)},c.allocUnsafeSlow=function(i){return T(i)};function y(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const l=P(i,r)|0;let p=u(l);const h=p.write(i,r);return h!==l&&(p=p.slice(0,h)),p}function b(i){const r=i.length<0?0:_(i.length)|0,l=u(r);for(let p=0;p<r;p+=1)l[p]=i[p]&255;return l}function A(i){if(fe(i,Uint8Array)){const r=new Uint8Array(i);return R(r.buffer,r.byteOffset,r.byteLength)}return b(i)}function R(i,r,l){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(l||0))throw new RangeError('"length" is outside of buffer bounds');let p;return r===void 0&&l===void 0?p=new Uint8Array(i):l===void 0?p=new Uint8Array(i,r):p=new Uint8Array(i,r,l),Object.setPrototypeOf(p,c.prototype),p}function N(i){if(c.isBuffer(i)){const r=_(i.length)|0,l=u(r);return l.length===0||i.copy(l,0,0,r),l}if(i.length!==void 0)return typeof i.length!="number"||Ct(i.length)?u(0):b(i);if(i.type==="Buffer"&&Array.isArray(i.data))return b(i.data)}function _(i){if(i>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return i|0}function I(i){return+i!=i&&(i=0),c.alloc(+i)}c.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==c.prototype},c.compare=function(r,l){if(fe(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),fe(l,Uint8Array)&&(l=c.from(l,l.offset,l.byteLength)),!c.isBuffer(r)||!c.isBuffer(l))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===l)return 0;let p=r.length,h=l.length;for(let k=0,E=Math.min(p,h);k<E;++k)if(r[k]!==l[k]){p=r[k],h=l[k];break}return p<h?-1:h<p?1:0},c.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(r,l){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return c.alloc(0);let p;if(l===void 0)for(l=0,p=0;p<r.length;++p)l+=r[p].length;const h=c.allocUnsafe(l);let k=0;for(p=0;p<r.length;++p){let E=r[p];if(fe(E,Uint8Array))k+E.length>h.length?(c.isBuffer(E)||(E=c.from(E)),E.copy(h,k)):Uint8Array.prototype.set.call(h,E,k);else if(c.isBuffer(E))E.copy(h,k);else throw new TypeError('"list" argument must be an Array of Buffers');k+=E.length}return h};function P(i,r){if(c.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const l=i.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&l===0)return 0;let h=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return it(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l*2;case"hex":return l>>>1;case"base64":return Rt(i).length;default:if(h)return p?-1:it(i).length;r=(""+r).toLowerCase(),h=!0}}c.byteLength=P;function U(i,r,l){let p=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((l===void 0||l>this.length)&&(l=this.length),l<=0)||(l>>>=0,r>>>=0,l<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return Ae(this,r,l);case"utf8":case"utf-8":return se(this,r,l);case"ascii":return rt(this,r,l);case"latin1":case"binary":return je(this,r,l);case"base64":return de(this,r,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,r,l);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),p=!0}}c.prototype._isBuffer=!0;function B(i,r,l){const p=i[r];i[r]=i[l],i[l]=p}c.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let l=0;l<r;l+=2)B(this,l,l+1);return this},c.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let l=0;l<r;l+=4)B(this,l,l+3),B(this,l+1,l+2);return this},c.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let l=0;l<r;l+=8)B(this,l,l+7),B(this,l+1,l+6),B(this,l+2,l+5),B(this,l+3,l+4);return this},c.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?se(this,0,r):U.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(r){if(!c.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:c.compare(this,r)===0},c.prototype.inspect=function(){let r="";const l=e.INSPECT_MAX_BYTES;return r=this.toString("hex",0,l).replace(/(.{2})/g,"$1 ").trim(),this.length>l&&(r+=" ... "),"<Buffer "+r+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(r,l,p,h,k){if(fe(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(l===void 0&&(l=0),p===void 0&&(p=r?r.length:0),h===void 0&&(h=0),k===void 0&&(k=this.length),l<0||p>r.length||h<0||k>this.length)throw new RangeError("out of range index");if(h>=k&&l>=p)return 0;if(h>=k)return-1;if(l>=p)return 1;if(l>>>=0,p>>>=0,h>>>=0,k>>>=0,this===r)return 0;let E=k-h,j=p-l;const J=Math.min(E,j),Q=this.slice(h,k),Y=r.slice(l,p);for(let K=0;K<J;++K)if(Q[K]!==Y[K]){E=Q[K],j=Y[K];break}return E<j?-1:j<E?1:0};function V(i,r,l,p,h){if(i.length===0)return-1;if(typeof l=="string"?(p=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,Ct(l)&&(l=h?0:i.length-1),l<0&&(l=i.length+l),l>=i.length){if(h)return-1;l=i.length-1}else if(l<0)if(h)l=0;else return-1;if(typeof r=="string"&&(r=c.from(r,p)),c.isBuffer(r))return r.length===0?-1:D(i,r,l,p,h);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?h?Uint8Array.prototype.indexOf.call(i,r,l):Uint8Array.prototype.lastIndexOf.call(i,r,l):D(i,[r],l,p,h);throw new TypeError("val must be string, number or Buffer")}function D(i,r,l,p,h){let k=1,E=i.length,j=r.length;if(p!==void 0&&(p=String(p).toLowerCase(),p==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(i.length<2||r.length<2)return-1;k=2,E/=2,j/=2,l/=2}function J(Y,K){return k===1?Y[K]:Y.readUInt16BE(K*k)}let Q;if(h){let Y=-1;for(Q=l;Q<E;Q++)if(J(i,Q)===J(r,Y===-1?0:Q-Y)){if(Y===-1&&(Y=Q),Q-Y+1===j)return Y*k}else Y!==-1&&(Q-=Q-Y),Y=-1}else for(l+j>E&&(l=E-j),Q=l;Q>=0;Q--){let Y=!0;for(let K=0;K<j;K++)if(J(i,Q+K)!==J(r,K)){Y=!1;break}if(Y)return Q}return-1}c.prototype.includes=function(r,l,p){return this.indexOf(r,l,p)!==-1},c.prototype.indexOf=function(r,l,p){return V(this,r,l,p,!0)},c.prototype.lastIndexOf=function(r,l,p){return V(this,r,l,p,!1)};function $(i,r,l,p){l=Number(l)||0;const h=i.length-l;p?(p=Number(p),p>h&&(p=h)):p=h;const k=r.length;p>k/2&&(p=k/2);let E;for(E=0;E<p;++E){const j=parseInt(r.substr(E*2,2),16);if(Ct(j))return E;i[l+E]=j}return E}function ee(i,r,l,p){return ot(it(r,i.length-l),i,l,p)}function ue(i,r,l,p){return ot(kn(r),i,l,p)}function ce(i,r,l,p){return ot(Rt(r),i,l,p)}function ke(i,r,l,p){return ot(M(r,i.length-l),i,l,p)}c.prototype.write=function(r,l,p,h){if(l===void 0)h="utf8",p=this.length,l=0;else if(p===void 0&&typeof l=="string")h=l,p=this.length,l=0;else if(isFinite(l))l=l>>>0,isFinite(p)?(p=p>>>0,h===void 0&&(h="utf8")):(h=p,p=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const k=this.length-l;if((p===void 0||p>k)&&(p=k),r.length>0&&(p<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");let E=!1;for(;;)switch(h){case"hex":return $(this,r,l,p);case"utf8":case"utf-8":return ee(this,r,l,p);case"ascii":case"latin1":case"binary":return ue(this,r,l,p);case"base64":return ce(this,r,l,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,r,l,p);default:if(E)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase(),E=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(i,r,l){return r===0&&l===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(r,l))}function se(i,r,l){l=Math.min(i.length,l);const p=[];let h=r;for(;h<l;){const k=i[h];let E=null,j=k>239?4:k>223?3:k>191?2:1;if(h+j<=l){let J,Q,Y,K;switch(j){case 1:k<128&&(E=k);break;case 2:J=i[h+1],(J&192)===128&&(K=(k&31)<<6|J&63,K>127&&(E=K));break;case 3:J=i[h+1],Q=i[h+2],(J&192)===128&&(Q&192)===128&&(K=(k&15)<<12|(J&63)<<6|Q&63,K>2047&&(K<55296||K>57343)&&(E=K));break;case 4:J=i[h+1],Q=i[h+2],Y=i[h+3],(J&192)===128&&(Q&192)===128&&(Y&192)===128&&(K=(k&15)<<18|(J&63)<<12|(Q&63)<<6|Y&63,K>65535&&K<1114112&&(E=K))}}E===null?(E=65533,j=1):E>65535&&(E-=65536,p.push(E>>>10&1023|55296),E=56320|E&1023),p.push(E),h+=j}return De(p)}const pe=4096;function De(i){const r=i.length;if(r<=pe)return String.fromCharCode.apply(String,i);let l="",p=0;for(;p<r;)l+=String.fromCharCode.apply(String,i.slice(p,p+=pe));return l}function rt(i,r,l){let p="";l=Math.min(i.length,l);for(let h=r;h<l;++h)p+=String.fromCharCode(i[h]&127);return p}function je(i,r,l){let p="";l=Math.min(i.length,l);for(let h=r;h<l;++h)p+=String.fromCharCode(i[h]);return p}function Ae(i,r,l){const p=i.length;(!r||r<0)&&(r=0),(!l||l<0||l>p)&&(l=p);let h="";for(let k=r;k<l;++k)h+=_a[i[k]];return h}function Re(i,r,l){const p=i.slice(r,l);let h="";for(let k=0;k<p.length-1;k+=2)h+=String.fromCharCode(p[k]+p[k+1]*256);return h}c.prototype.slice=function(r,l){const p=this.length;r=~~r,l=l===void 0?p:~~l,r<0?(r+=p,r<0&&(r=0)):r>p&&(r=p),l<0?(l+=p,l<0&&(l=0)):l>p&&(l=p),l<r&&(l=r);const h=this.subarray(r,l);return Object.setPrototypeOf(h,c.prototype),h};function q(i,r,l){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>l)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(r,l,p){r=r>>>0,l=l>>>0,p||q(r,l,this.length);let h=this[r],k=1,E=0;for(;++E<l&&(k*=256);)h+=this[r+E]*k;return h},c.prototype.readUintBE=c.prototype.readUIntBE=function(r,l,p){r=r>>>0,l=l>>>0,p||q(r,l,this.length);let h=this[r+--l],k=1;for(;l>0&&(k*=256);)h+=this[r+--l]*k;return h},c.prototype.readUint8=c.prototype.readUInt8=function(r,l){return r=r>>>0,l||q(r,1,this.length),this[r]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(r,l){return r=r>>>0,l||q(r,2,this.length),this[r]|this[r+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(r,l){return r=r>>>0,l||q(r,2,this.length),this[r]<<8|this[r+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(r,l){return r=r>>>0,l||q(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(r,l){return r=r>>>0,l||q(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},c.prototype.readBigUInt64LE=Ce(function(r){r=r>>>0,be(r,"offset");const l=this[r],p=this[r+7];(l===void 0||p===void 0)&&Se(r,this.length-8);const h=l+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,k=this[++r]+this[++r]*2**8+this[++r]*2**16+p*2**24;return BigInt(h)+(BigInt(k)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ce(function(r){r=r>>>0,be(r,"offset");const l=this[r],p=this[r+7];(l===void 0||p===void 0)&&Se(r,this.length-8);const h=l*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],k=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+p;return(BigInt(h)<<BigInt(32))+BigInt(k)}),c.prototype.readIntLE=function(r,l,p){r=r>>>0,l=l>>>0,p||q(r,l,this.length);let h=this[r],k=1,E=0;for(;++E<l&&(k*=256);)h+=this[r+E]*k;return k*=128,h>=k&&(h-=Math.pow(2,8*l)),h},c.prototype.readIntBE=function(r,l,p){r=r>>>0,l=l>>>0,p||q(r,l,this.length);let h=l,k=1,E=this[r+--h];for(;h>0&&(k*=256);)E+=this[r+--h]*k;return k*=128,E>=k&&(E-=Math.pow(2,8*l)),E},c.prototype.readInt8=function(r,l){return r=r>>>0,l||q(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},c.prototype.readInt16LE=function(r,l){r=r>>>0,l||q(r,2,this.length);const p=this[r]|this[r+1]<<8;return p&32768?p|4294901760:p},c.prototype.readInt16BE=function(r,l){r=r>>>0,l||q(r,2,this.length);const p=this[r+1]|this[r]<<8;return p&32768?p|4294901760:p},c.prototype.readInt32LE=function(r,l){return r=r>>>0,l||q(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},c.prototype.readInt32BE=function(r,l){return r=r>>>0,l||q(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},c.prototype.readBigInt64LE=Ce(function(r){r=r>>>0,be(r,"offset");const l=this[r],p=this[r+7];(l===void 0||p===void 0)&&Se(r,this.length-8);const h=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(p<<24);return(BigInt(h)<<BigInt(32))+BigInt(l+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),c.prototype.readBigInt64BE=Ce(function(r){r=r>>>0,be(r,"offset");const l=this[r],p=this[r+7];(l===void 0||p===void 0)&&Se(r,this.length-8);const h=(l<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(h)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+p)}),c.prototype.readFloatLE=function(r,l){return r=r>>>0,l||q(r,4,this.length),n.read(this,r,!0,23,4)},c.prototype.readFloatBE=function(r,l){return r=r>>>0,l||q(r,4,this.length),n.read(this,r,!1,23,4)},c.prototype.readDoubleLE=function(r,l){return r=r>>>0,l||q(r,8,this.length),n.read(this,r,!0,52,8)},c.prototype.readDoubleBE=function(r,l){return r=r>>>0,l||q(r,8,this.length),n.read(this,r,!1,52,8)};function v(i,r,l,p,h,k){if(!c.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>h||r<k)throw new RangeError('"value" argument is out of bounds');if(l+p>i.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(r,l,p,h){if(r=+r,l=l>>>0,p=p>>>0,!h){const j=Math.pow(2,8*p)-1;v(this,r,l,p,j,0)}let k=1,E=0;for(this[l]=r&255;++E<p&&(k*=256);)this[l+E]=r/k&255;return l+p},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(r,l,p,h){if(r=+r,l=l>>>0,p=p>>>0,!h){const j=Math.pow(2,8*p)-1;v(this,r,l,p,j,0)}let k=p-1,E=1;for(this[l+k]=r&255;--k>=0&&(E*=256);)this[l+k]=r/E&255;return l+p},c.prototype.writeUint8=c.prototype.writeUInt8=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,1,255,0),this[l]=r&255,l+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,2,65535,0),this[l]=r&255,this[l+1]=r>>>8,l+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,2,65535,0),this[l]=r>>>8,this[l+1]=r&255,l+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,4,4294967295,0),this[l+3]=r>>>24,this[l+2]=r>>>16,this[l+1]=r>>>8,this[l]=r&255,l+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,4,4294967295,0),this[l]=r>>>24,this[l+1]=r>>>16,this[l+2]=r>>>8,this[l+3]=r&255,l+4};function L(i,r,l,p,h){Ve(r,p,h,i,l,7);let k=Number(r&BigInt(4294967295));i[l++]=k,k=k>>8,i[l++]=k,k=k>>8,i[l++]=k,k=k>>8,i[l++]=k;let E=Number(r>>BigInt(32)&BigInt(4294967295));return i[l++]=E,E=E>>8,i[l++]=E,E=E>>8,i[l++]=E,E=E>>8,i[l++]=E,l}function F(i,r,l,p,h){Ve(r,p,h,i,l,7);let k=Number(r&BigInt(4294967295));i[l+7]=k,k=k>>8,i[l+6]=k,k=k>>8,i[l+5]=k,k=k>>8,i[l+4]=k;let E=Number(r>>BigInt(32)&BigInt(4294967295));return i[l+3]=E,E=E>>8,i[l+2]=E,E=E>>8,i[l+1]=E,E=E>>8,i[l]=E,l+8}c.prototype.writeBigUInt64LE=Ce(function(r,l=0){return L(this,r,l,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ce(function(r,l=0){return F(this,r,l,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(r,l,p,h){if(r=+r,l=l>>>0,!h){const J=Math.pow(2,8*p-1);v(this,r,l,p,J-1,-J)}let k=0,E=1,j=0;for(this[l]=r&255;++k<p&&(E*=256);)r<0&&j===0&&this[l+k-1]!==0&&(j=1),this[l+k]=(r/E>>0)-j&255;return l+p},c.prototype.writeIntBE=function(r,l,p,h){if(r=+r,l=l>>>0,!h){const J=Math.pow(2,8*p-1);v(this,r,l,p,J-1,-J)}let k=p-1,E=1,j=0;for(this[l+k]=r&255;--k>=0&&(E*=256);)r<0&&j===0&&this[l+k+1]!==0&&(j=1),this[l+k]=(r/E>>0)-j&255;return l+p},c.prototype.writeInt8=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,1,127,-128),r<0&&(r=255+r+1),this[l]=r&255,l+1},c.prototype.writeInt16LE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,2,32767,-32768),this[l]=r&255,this[l+1]=r>>>8,l+2},c.prototype.writeInt16BE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,2,32767,-32768),this[l]=r>>>8,this[l+1]=r&255,l+2},c.prototype.writeInt32LE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,4,2147483647,-2147483648),this[l]=r&255,this[l+1]=r>>>8,this[l+2]=r>>>16,this[l+3]=r>>>24,l+4},c.prototype.writeInt32BE=function(r,l,p){return r=+r,l=l>>>0,p||v(this,r,l,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[l]=r>>>24,this[l+1]=r>>>16,this[l+2]=r>>>8,this[l+3]=r&255,l+4},c.prototype.writeBigInt64LE=Ce(function(r,l=0){return L(this,r,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ce(function(r,l=0){return F(this,r,l,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function H(i,r,l,p,h,k){if(l+p>i.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function ie(i,r,l,p,h){return r=+r,l=l>>>0,h||H(i,r,l,4),n.write(i,r,l,p,23,4),l+4}c.prototype.writeFloatLE=function(r,l,p){return ie(this,r,l,!0,p)},c.prototype.writeFloatBE=function(r,l,p){return ie(this,r,l,!1,p)};function te(i,r,l,p,h){return r=+r,l=l>>>0,h||H(i,r,l,8),n.write(i,r,l,p,52,8),l+8}c.prototype.writeDoubleLE=function(r,l,p){return te(this,r,l,!0,p)},c.prototype.writeDoubleBE=function(r,l,p){return te(this,r,l,!1,p)},c.prototype.copy=function(r,l,p,h){if(!c.isBuffer(r))throw new TypeError("argument should be a Buffer");if(p||(p=0),!h&&h!==0&&(h=this.length),l>=r.length&&(l=r.length),l||(l=0),h>0&&h<p&&(h=p),h===p||r.length===0||this.length===0)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(p<0||p>=this.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length),r.length-l<h-p&&(h=r.length-l+p);const k=h-p;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(l,p,h):Uint8Array.prototype.set.call(r,this.subarray(p,h),l),k},c.prototype.fill=function(r,l,p,h){if(typeof r=="string"){if(typeof l=="string"?(h=l,l=0,p=this.length):typeof p=="string"&&(h=p,p=this.length),h!==void 0&&typeof h!="string")throw new TypeError("encoding must be a string");if(typeof h=="string"&&!c.isEncoding(h))throw new TypeError("Unknown encoding: "+h);if(r.length===1){const E=r.charCodeAt(0);(h==="utf8"&&E<128||h==="latin1")&&(r=E)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(l<0||this.length<l||this.length<p)throw new RangeError("Out of range index");if(p<=l)return this;l=l>>>0,p=p===void 0?this.length:p>>>0,r||(r=0);let k;if(typeof r=="number")for(k=l;k<p;++k)this[k]=r;else{const E=c.isBuffer(r)?r:c.from(r,h),j=E.length;if(j===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(k=0;k<p-l;++k)this[k+l]=E[k%j]}return this};const z={};function X(i,r,l){z[i]=class extends l{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(h){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:h,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}X("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(i,r){return`The "${i}" argument must be of type number. Received type ${typeof r}`},TypeError),X("ERR_OUT_OF_RANGE",function(i,r,l){let p=`The value of "${i}" is out of range.`,h=l;return Number.isInteger(l)&&Math.abs(l)>2**32?h=ae(String(l)):typeof l=="bigint"&&(h=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(h=ae(h)),h+="n"),p+=` It must be ${r}. Received ${h}`,p},RangeError);function ae(i){let r="",l=i.length;const p=i[0]==="-"?1:0;for(;l>=p+4;l-=3)r=`_${i.slice(l-3,l)}${r}`;return`${i.slice(0,l)}${r}`}function Me(i,r,l){be(r,"offset"),(i[r]===void 0||i[r+l]===void 0)&&Se(r,i.length-(l+1))}function Ve(i,r,l,p,h,k){if(i>l||i<r){const E=typeof r=="bigint"?"n":"";let j;throw k>3?r===0||r===BigInt(0)?j=`>= 0${E} and < 2${E} ** ${(k+1)*8}${E}`:j=`>= -(2${E} ** ${(k+1)*8-1}${E}) and < 2 ** ${(k+1)*8-1}${E}`:j=`>= ${r}${E} and <= ${l}${E}`,new z.ERR_OUT_OF_RANGE("value",j,i)}Me(p,h,k)}function be(i,r){if(typeof i!="number")throw new z.ERR_INVALID_ARG_TYPE(r,"number",i)}function Se(i,r,l){throw Math.floor(i)!==i?(be(i,l),new z.ERR_OUT_OF_RANGE(l||"offset","an integer",i)):r<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(l||"offset",`>= ${l?1:0} and <= ${r}`,i)}const kt=/[^+/0-9A-Za-z-_]/g;function qt(i){if(i=i.split("=")[0],i=i.trim().replace(kt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function it(i,r){r=r||1/0;let l;const p=i.length;let h=null;const k=[];for(let E=0;E<p;++E){if(l=i.charCodeAt(E),l>55295&&l<57344){if(!h){if(l>56319){(r-=3)>-1&&k.push(239,191,189);continue}else if(E+1===p){(r-=3)>-1&&k.push(239,191,189);continue}h=l;continue}if(l<56320){(r-=3)>-1&&k.push(239,191,189),h=l;continue}l=(h-55296<<10|l-56320)+65536}else h&&(r-=3)>-1&&k.push(239,191,189);if(h=null,l<128){if((r-=1)<0)break;k.push(l)}else if(l<2048){if((r-=2)<0)break;k.push(l>>6|192,l&63|128)}else if(l<65536){if((r-=3)<0)break;k.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((r-=4)<0)break;k.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return k}function kn(i){const r=[];for(let l=0;l<i.length;++l)r.push(i.charCodeAt(l)&255);return r}function M(i,r){let l,p,h;const k=[];for(let E=0;E<i.length&&!((r-=2)<0);++E)l=i.charCodeAt(E),p=l>>8,h=l%256,k.push(h),k.push(p);return k}function Rt(i){return t.toByteArray(qt(i))}function ot(i,r,l,p){let h;for(h=0;h<p&&!(h+l>=r.length||h>=i.length);++h)r[h+l]=i[h];return h}function fe(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function Ct(i){return i!==i}const _a=function(){const i="0123456789abcdef",r=new Array(256);for(let l=0;l<16;++l){const p=l*16;for(let h=0;h<16;++h)r[p+h]=i[l]+i[h]}return r}();function Ce(i){return typeof BigInt>"u"?wa:i}function wa(){throw new Error("BigInt not supported")}})(mo);var fo={exports:{}},ge=fo.exports={},Ke,We;function os(){throw new Error("setTimeout has not been defined")}function ls(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ke=setTimeout:Ke=os}catch{Ke=os}try{typeof clearTimeout=="function"?We=clearTimeout:We=ls}catch{We=ls}})();function ho(e){if(Ke===setTimeout)return setTimeout(e,0);if((Ke===os||!Ke)&&setTimeout)return Ke=setTimeout,setTimeout(e,0);try{return Ke(e,0)}catch{try{return Ke.call(null,e,0)}catch{return Ke.call(this,e,0)}}}function Hc(e){if(We===clearTimeout)return clearTimeout(e);if((We===ls||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var pt=[],an=!1,Ot,qn=-1;function zc(){!an||!Ot||(an=!1,Ot.length?pt=Ot.concat(pt):qn=-1,pt.length&&go())}function go(){if(!an){var e=ho(zc);an=!0;for(var t=pt.length;t;){for(Ot=pt,pt=[];++qn<t;)Ot&&Ot[qn].run();qn=-1,t=pt.length}Ot=null,an=!1,Hc(e)}}ge.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];pt.push(new yo(e,t)),pt.length===1&&!an&&ho(go)};function yo(e,t){this.fun=e,this.array=t}yo.prototype.run=function(){this.fun.apply(null,this.array)};ge.title="browser";ge.browser=!0;ge.env={};ge.argv=[];ge.version="";ge.versions={};function yt(){}ge.on=yt;ge.addListener=yt;ge.once=yt;ge.off=yt;ge.removeListener=yt;ge.removeAllListeners=yt;ge.emit=yt;ge.prependListener=yt;ge.prependOnceListener=yt;ge.listeners=function(e){return[]};ge.binding=function(e){throw new Error("process.binding is not supported")};ge.cwd=function(){return"/"};ge.chdir=function(e){throw new Error("process.chdir is not supported")};ge.umask=function(){return 0};var Qc=fo.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mo,n=Qc,s=u=>u&&u.__esModule?u:{default:u},a=s(n),o=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>a.default}),e.global=o})(un);function Yc(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof un.process!="object"||typeof un.process.env!="object"||!1)){const a=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),u=BigInt("0"),c=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(d){const f=typeof d=="bigint"?d:BigInt(d);if(f>o||f<a)throw new Error(`int64 invalid: ${d}`);return f},uParse(d){const f=typeof d=="bigint"?d:BigInt(d);if(f>c||f<u)throw new Error(`uint64 invalid: ${d}`);return f},enc(d){return e.setBigInt64(0,this.parse(d),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(d){return e.setBigInt64(0,this.uParse(d),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(d,f){return e.setInt32(0,d,!0),e.setInt32(4,f,!0),e.getBigInt64(0,!0)},uDec(d,f){return e.setInt32(0,d,!0),e.setInt32(4,f,!0),e.getBigUint64(0,!0)}}}const n=a=>Be(/^-?[0-9]+$/.test(a),`int64 invalid: ${a}`),s=a=>Be(/^[0-9]+$/.test(a),`uint64 invalid: ${a}`);return{zero:"0",supported:!1,parse(a){return typeof a!="string"&&(a=a.toString()),n(a),a},uParse(a){return typeof a!="string"&&(a=a.toString()),s(a),a},enc(a){return typeof a!="string"&&(a=a.toString()),n(a),gr(a)},uEnc(a){return typeof a!="string"&&(a=a.toString()),s(a),gr(a)},dec(a,o){return xc(a,o)},uDec(a,o){return co(a,o)}}}const _e=Yc();var he;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(he||(he={}));class Kc{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let a=0;a<this.chunks.length;a++)t+=this.chunks[a].length;let n=new Uint8Array(t),s=0;for(let a=0;a<this.chunks.length;a++)n.set(this.chunks[a],s),s+=this.chunks[a].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(is(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return jn(t),Tr(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){so(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){is(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){jn(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return jn(t),t=(t<<1^t>>31)>>>0,Tr(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),s=new DataView(n.buffer),a=_e.enc(t);return s.setInt32(0,a.lo,!0),s.setInt32(4,a.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),s=new DataView(n.buffer),a=_e.uEnc(t);return s.setInt32(0,a.lo,!0),s.setInt32(4,a.hi,!0),this.raw(n)}int64(t){let n=_e.enc(t);return Aa(n.lo,n.hi,this.buf),this}sint64(t){let n=_e.enc(t),s=n.hi>>31,a=n.lo<<1^s,o=(n.hi<<1|n.lo>>>31)^s;return Aa(a,o,this.buf),this}uint64(t){let n=_e.uEnc(t);return Aa(n.lo,n.hi,this.buf),this}}class Wc{constructor(t,n){this.varint64=Lc,this.uint32=Bc,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n??new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,s=t&7;if(n<=0||s<0||s>5)throw new Error("illegal tag: field no "+n+" wire type "+s);return[n,s]}skip(t){let n=this.pos;switch(t){case he.Varint:for(;this.buf[this.pos++]&128;);break;case he.Bit64:this.pos+=4;case he.Bit32:this.pos+=4;break;case he.LengthDelimited:let s=this.uint32();this.pos+=s;break;case he.StartGroup:let a;for(;(a=this.tag()[1])!==he.EndGroup;)this.skip(a);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return _e.dec(...this.varint64())}uint64(){return _e.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),s=-(t&1);return t=(t>>>1|(n&1)<<31)^s,n=n>>>1^s,_e.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return _e.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return _e.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}}function cs(e,t){return t instanceof at||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}x.DOUBLE,x.FLOAT,x.INT64,x.UINT64,x.INT32,x.UINT32,x.BOOL,x.STRING,x.BYTES;function bt(e,t,n){if(t===n)return!0;if(e==x.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let s=0;s<t.length;s++)if(t[s]!==n[s])return!1;return!0}switch(e){case x.UINT64:case x.FIXED64:case x.INT64:case x.SFIXED64:case x.SINT64:return t==n}return!1}function us(e,t){switch(e){case x.BOOL:return!1;case x.UINT64:case x.FIXED64:case x.INT64:case x.SFIXED64:case x.SINT64:return t==0?_e.zero:"0";case x.DOUBLE:case x.FLOAT:return 0;case x.BYTES:return new Uint8Array(0);case x.STRING:return"";default:return 0}}function To(e,t){const n=t===void 0;let s=he.Varint,a=t===0;switch(e){case x.STRING:a=n||!t.length,s=he.LengthDelimited;break;case x.BOOL:a=t===!1;break;case x.DOUBLE:s=he.Bit64;break;case x.FLOAT:s=he.Bit32;break;case x.INT64:a=n||t==0;break;case x.UINT64:a=n||t==0;break;case x.FIXED64:a=n||t==0,s=he.Bit64;break;case x.BYTES:a=n||!t.byteLength,s=he.LengthDelimited;break;case x.FIXED32:s=he.Bit32;break;case x.SFIXED32:s=he.Bit32;break;case x.SFIXED64:a=n||t==0,s=he.Bit64;break;case x.SINT64:a=n||t==0;break}const o=x[e].toLowerCase();return[s,o,n||a]}const Ht=Symbol("@bufbuild/protobuf/unknown-fields"),kr={readUnknownFields:!0,readerFactory:e=>new Wc(e)},br={writeUnknownFields:!0,writerFactory:()=>new Kc};function Zc(e){return e?Object.assign(Object.assign({},kr),e):kr}function Jc(e){return e?Object.assign(Object.assign({},br),e):br}function Xc(){return{makeReadOptions:Zc,makeWriteOptions:Jc,listUnknownFields(e){var t;return(t=e[Ht])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Ht]},writeUnknownFields(e,t){const s=e[Ht];if(s)for(const a of s)t.tag(a.no,a.wireType).raw(a.data)},onUnknownField(e,t,n,s){const a=e;Array.isArray(a[Ht])||(a[Ht]=[]),a[Ht].push({no:t,wireType:n,data:s})},readMessage(e,t,n,s){const a=e.getType(),o=n===void 0?t.len:t.pos+n;for(;t.pos<o;){const[u,c]=t.tag(),d=a.fields.find(u);if(!d){const y=t.skip(c);s.readUnknownFields&&this.onUnknownField(e,u,c,y);continue}let f=e,g=d.repeated,T=d.localName;switch(d.oneof&&(f=f[d.oneof.localName],f.case!=T&&delete f.value,f.case=T,T="value"),d.kind){case"scalar":case"enum":const y=d.kind=="enum"?x.INT32:d.T;let b=Zn;if(d.kind=="scalar"&&d.L>0&&(b=tu),g){let _=f[T];if(c==he.LengthDelimited&&y!=x.STRING&&y!=x.BYTES){let I=t.uint32()+t.pos;for(;t.pos<I;)_.push(b(t,y))}else _.push(b(t,y))}else f[T]=b(t,y);break;case"message":const A=d.T;g?f[T].push($n(t,new A,s)):f[T]instanceof at?$n(t,f[T],s):(f[T]=$n(t,new A,s),A.fieldWrapper&&!d.oneof&&!d.repeated&&(f[T]=A.fieldWrapper.unwrapField(f[T])));break;case"map":let[R,N]=eu(d,t,s);f[T][R]=N;break}}}}}function $n(e,t,n){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),n),t}function eu(e,t,n){const s=t.uint32(),a=t.pos+s;let o,u;for(;t.pos<a;){let[c]=t.tag();switch(c){case 1:o=Zn(t,e.K);break;case 2:switch(e.V.kind){case"scalar":u=Zn(t,e.V.T);break;case"enum":u=t.int32();break;case"message":u=$n(t,new e.V.T,n);break}break}}if(o===void 0){let c=us(e.K,Vt.BIGINT);o=e.K==x.BOOL?c.toString():c}if(typeof o!="string"&&typeof o!="number"&&(o=o.toString()),u===void 0)switch(e.V.kind){case"scalar":u=us(e.V.T,Vt.BIGINT);break;case"enum":u=0;break;case"message":u=new e.V.T;break}return[o,u]}function tu(e,t){const n=Zn(e,t);return typeof n=="bigint"?n.toString():n}function Zn(e,t){switch(t){case x.STRING:return e.string();case x.BOOL:return e.bool();case x.DOUBLE:return e.double();case x.FLOAT:return e.float();case x.INT32:return e.int32();case x.INT64:return e.int64();case x.UINT64:return e.uint64();case x.FIXED64:return e.fixed64();case x.BYTES:return e.bytes();case x.FIXED32:return e.fixed32();case x.SFIXED32:return e.sfixed32();case x.SFIXED64:return e.sfixed64();case x.SINT64:return e.sint64();case x.UINT32:return e.uint32();case x.SINT32:return e.sint32()}}function nu(e,t,n,s,a){e.tag(n.no,he.LengthDelimited),e.fork();let o=s;switch(n.K){case x.INT32:case x.FIXED32:case x.UINT32:case x.SFIXED32:case x.SINT32:o=Number.parseInt(s);break;case x.BOOL:Be(s=="true"||s=="false"),o=s=="true";break}switch(wn(e,n.K,1,o,!0),n.V.kind){case"scalar":wn(e,n.V.T,2,a,!0);break;case"enum":wn(e,x.INT32,2,a,!0);break;case"message":ms(e,t,n.V.T,2,a);break}e.join()}function ms(e,t,n,s,a){if(a!==void 0){const o=cs(n,a);e.tag(s,he.LengthDelimited).bytes(o.toBinary(t))}}function wn(e,t,n,s,a){let[o,u,c]=To(t,s);(!c||a)&&e.tag(n,o)[u](s)}function au(e,t,n,s){if(!s.length)return;e.tag(n,he.LengthDelimited).fork();let[,a]=To(t);for(let o=0;o<s.length;o++)e[a](s[o]);e.join()}function su(){return Object.assign(Object.assign({},Xc()),{writeMessage(e,t,n){const s=e.getType();for(const a of s.fields.byNumber()){let o,u=a.repeated,c=a.localName;if(a.oneof){const d=e[a.oneof.localName];if(d.case!==c)continue;o=d.value}else o=e[c];switch(a.kind){case"scalar":case"enum":let d=a.kind=="enum"?x.INT32:a.T;if(u)if(a.packed)au(t,d,a.no,o);else for(const f of o)wn(t,d,a.no,f,!0);else o!==void 0&&wn(t,d,a.no,o,!!a.oneof||a.opt);break;case"message":if(u)for(const f of o)ms(t,n,a.T,a.no,f);else ms(t,n,a.T,a.no,o);break;case"map":for(const[f,g]of Object.entries(o))nu(t,n,a,f,g);break}}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ma=[];for(let e=0;e<ut.length;e++)ma[ut[e].charCodeAt(0)]=e;ma["-".charCodeAt(0)]=ut.indexOf("+");ma["_".charCodeAt(0)]=ut.indexOf("/");const Ms={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let n=new Uint8Array(t),s=0,a=0,o,u=0;for(let c=0;c<e.length;c++){if(o=ma[e.charCodeAt(c)],o===void 0)switch(e[c]){case"=":a=0;case`
10
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(a){case 0:u=o,a=1;break;case 1:n[s++]=u<<2|(o&48)>>4,u=o,a=2;break;case 2:n[s++]=(u&15)<<4|(o&60)>>2,u=o,a=3;break;case 3:n[s++]=(u&3)<<6|o,a=0;break}}if(a==1)throw Error("invalid base64 string.");return n.subarray(0,s)},enc(e){let t="",n=0,s,a=0;for(let o=0;o<e.length;o++)switch(s=e[o],n){case 0:t+=ut[s>>2],a=(s&3)<<4,n=1;break;case 1:t+=ut[a|s>>4],a=(s&15)<<2,n=2;break;case 2:t+=ut[a|s>>6],t+=ut[s&63],n=0;break}return n&&(t+=ut[a],t+="=",n==1&&(t+="=")),t}},Sr={ignoreUnknownFields:!1},Er={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function ru(e){return e?Object.assign(Object.assign({},Sr),e):Sr}function iu(e){return e?Object.assign(Object.assign({},Er),e):Er}function ou(e){const t=e(lu,vr);return{makeReadOptions:ru,makeWriteOptions:iu,readMessage(n,s,a,o){if(s==null||Array.isArray(s)||typeof s!="object")throw new Error(`cannot decode message ${n.typeName} from JSON: ${this.debug(s)}`);o=o??new n;const u={};for(const[c,d]of Object.entries(s)){const f=n.fields.findJsonName(c);if(!f){if(!a.ignoreUnknownFields)throw new Error(`cannot decode message ${n.typeName} from JSON: key "${c}" is unknown`);continue}let g=f.localName,T=o;if(f.oneof){if(d===null&&f.kind=="scalar")continue;const y=u[f.oneof.localName];if(y)throw new Error(`cannot decode message ${n.typeName} from JSON: multiple keys for oneof "${f.oneof.name}" present: "${y}", "${c}"`);u[f.oneof.localName]=c,T=T[f.oneof.localName]={case:g},g="value"}if(f.repeated){if(d===null)continue;if(!Array.isArray(d))throw new Error(`cannot decode field ${n.typeName}.${f.name} from JSON: ${this.debug(d)}`);const y=T[g];for(const b of d){if(b===null)throw new Error(`cannot decode field ${n.typeName}.${f.name} from JSON: ${this.debug(b)}`);let A;switch(f.kind){case"message":A=f.T.fromJson(b,a);break;case"enum":if(A=Ca(f.T,b,a.ignoreUnknownFields),A===void 0)continue;break;case"scalar":try{A=bn(f.T,b,f.L)}catch(R){let N=`cannot decode field ${n.typeName}.${f.name} from JSON: ${this.debug(b)}`;throw R instanceof Error&&R.message.length>0&&(N+=`: ${R.message}`),new Error(N)}break}y.push(A)}}else if(f.kind=="map"){if(d===null)continue;if(Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode field ${n.typeName}.${f.name} from JSON: ${this.debug(d)}`);const y=T[g];for(const[b,A]of Object.entries(d)){if(A===null)throw new Error(`cannot decode field ${n.typeName}.${f.name} from JSON: map value null`);let R;switch(f.V.kind){case"message":R=f.V.T.fromJson(A,a);break;case"enum":if(R=Ca(f.V.T,A,a.ignoreUnknownFields),R===void 0)continue;break;case"scalar":try{R=bn(f.V.T,A,Vt.BIGINT)}catch(N){let _=`cannot decode map value for field ${n.typeName}.${f.name} from JSON: ${this.debug(d)}`;throw N instanceof Error&&N.message.length>0&&(_+=`: ${N.message}`),new Error(_)}break}try{y[bn(f.K,f.K==x.BOOL?b=="true"?!0:b=="false"?!1:b:b,Vt.BIGINT).toString()]=R}catch(N){let _=`cannot decode map key for field ${n.typeName}.${f.name} from JSON: ${this.debug(d)}`;throw N instanceof Error&&N.message.length>0&&(_+=`: ${N.message}`),new Error(_)}}}else switch(f.kind){case"message":const y=f.T;if(d===null&&y.typeName!="google.protobuf.Value"){if(f.oneof)throw new Error(`cannot decode field ${n.typeName}.${f.name} from JSON: null is invalid for oneof field "${c}"`);continue}T[g]instanceof at?T[g].fromJson(d,a):(T[g]=y.fromJson(d,a),y.fieldWrapper&&!f.oneof&&(T[g]=y.fieldWrapper.unwrapField(T[g])));break;case"enum":const b=Ca(f.T,d,a.ignoreUnknownFields);b!==void 0&&(T[g]=b);break;case"scalar":try{T[g]=bn(f.T,d,f.L)}catch(A){let R=`cannot decode field ${n.typeName}.${f.name} from JSON: ${this.debug(d)}`;throw A instanceof Error&&A.message.length>0&&(R+=`: ${A.message}`),new Error(R)}break}}return o},writeMessage(n,s){const a=n.getType(),o={};let u;try{for(const c of a.fields.byMember()){let d;if(c.kind=="oneof"){const f=n[c.localName];if(f.value===void 0)continue;if(u=c.findField(f.case),!u)throw"oneof case not found: "+f.case;d=t(u,f.value,s)}else u=c,d=t(u,n[u.localName],s);d!==void 0&&(o[s.useProtoFieldName?u.name:u.jsonName]=d)}}catch(c){const d=u?`cannot encode field ${a.typeName}.${u.name} to JSON`:`cannot encode message ${a.typeName} to JSON`,f=c instanceof Error?c.message:String(c);throw new Error(d+(f.length>0?`: ${f}`:""))}return o},readScalar:bn,writeScalar:vr,debug:ko}}function ko(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function bn(e,t,n){switch(e){case x.DOUBLE:case x.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const s=Number(t);if(Number.isNaN(s)||!Number.isFinite(s))break;return e==x.FLOAT&&so(s),s;case x.INT32:case x.FIXED32:case x.SFIXED32:case x.SINT32:case x.UINT32:if(t===null)return 0;let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==x.UINT32?is(a):jn(a),a;case x.INT64:case x.SFIXED64:case x.SINT64:if(t===null)return _e.zero;if(typeof t!="number"&&typeof t!="string")break;const o=_e.parse(t);return n?o.toString():o;case x.FIXED64:case x.UINT64:if(t===null)return _e.zero;if(typeof t!="number"&&typeof t!="string")break;const u=_e.uParse(t);return n?u.toString():u;case x.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case x.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case x.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return Ms.dec(t)}throw new Error}function Ca(e,t,n){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const s=e.findName(t);if(s||n)return s==null?void 0:s.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ko(t)}`)}function lu(e,t,n,s){var a;if(t===void 0)return t;if(t===0&&!n)return;if(s)return t;if(e.typeName=="google.protobuf.NullValue")return null;const o=e.findNumber(t);return(a=o==null?void 0:o.name)!==null&&a!==void 0?a:t}function vr(e,t,n){if(t!==void 0)switch(e){case x.INT32:case x.SFIXED32:case x.SINT32:case x.FIXED32:case x.UINT32:return Be(typeof t=="number"),t!=0||n?t:void 0;case x.FLOAT:case x.DOUBLE:return Be(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||n?t:void 0;case x.STRING:return Be(typeof t=="string"),t.length>0||n?t:void 0;case x.BOOL:return Be(typeof t=="boolean"),t||n?t:void 0;case x.UINT64:case x.FIXED64:case x.INT64:case x.SFIXED64:case x.SINT64:return Be(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),n||t!=0?t.toString(10):void 0;case x.BYTES:return Be(t instanceof Uint8Array),n||t.byteLength>0?Ms.enc(t):void 0}}function cu(){return ou((e,t)=>function(s,a,o){if(s.kind=="map"){const u={};switch(s.V.kind){case"scalar":for(const[d,f]of Object.entries(a)){const g=t(s.V.T,f,!0);Be(g!==void 0),u[d.toString()]=g}break;case"message":for(const[d,f]of Object.entries(a))u[d.toString()]=f.toJson(o);break;case"enum":const c=s.V.T;for(const[d,f]of Object.entries(a)){Be(f===void 0||typeof f=="number");const g=e(c,f,!0,o.enumAsInteger);Be(g!==void 0),u[d.toString()]=g}break}return o.emitDefaultValues||Object.keys(u).length>0?u:void 0}else if(s.repeated){const u=[];switch(s.kind){case"scalar":for(let c=0;c<a.length;c++)u.push(t(s.T,a[c],!0));break;case"enum":for(let c=0;c<a.length;c++)u.push(e(s.T,a[c],!0,o.enumAsInteger));break;case"message":for(let c=0;c<a.length;c++)u.push(cs(s.T,a[c]).toJson(o));break}return o.emitDefaultValues||u.length>0?u:void 0}else switch(s.kind){case"scalar":return t(s.T,a,!!s.oneof||s.opt||o.emitDefaultValues);case"enum":return e(s.T,a,!!s.oneof||s.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return a!==void 0?cs(s.T,a).toJson(o):void 0}})}function uu(){return{setEnumType:io,initPartial(e,t){if(e===void 0)return;const n=t.getType();for(const s of n.fields.byMember()){const a=s.localName,o=t,u=e;if(u[a]!==void 0)switch(s.kind){case"oneof":const c=u[a].case;if(c===void 0)continue;const d=s.findField(c);let f=u[a].value;d&&d.kind=="message"&&!(f instanceof d.T)?f=new d.T(f):d&&d.kind==="scalar"&&d.T===x.BYTES&&(f=Sn(f)),o[a]={case:c,value:f};break;case"scalar":case"enum":let g=u[a];s.T===x.BYTES&&(g=s.repeated?g.map(Sn):Sn(g)),o[a]=g;break;case"map":switch(s.V.kind){case"scalar":case"enum":if(s.V.T===x.BYTES)for(const[b,A]of Object.entries(u[a]))o[a][b]=Sn(A);else Object.assign(o[a],u[a]);break;case"message":const y=s.V.T;for(const b of Object.keys(u[a])){let A=u[a][b];y.fieldWrapper||(A=new y(A)),o[a][b]=A}break}break;case"message":const T=s.T;if(s.repeated)o[a]=u[a].map(y=>y instanceof T?y:new T(y));else if(u[a]!==void 0){const y=u[a];T.fieldWrapper?T.typeName==="google.protobuf.BytesValue"?o[a]=Sn(y):o[a]=y:o[a]=y instanceof T?y:new T(y)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(s=>{const a=t[s.localName],o=n[s.localName];if(s.repeated){if(a.length!==o.length)return!1;switch(s.kind){case"message":return a.every((u,c)=>s.T.equals(u,o[c]));case"scalar":return a.every((u,c)=>bt(s.T,u,o[c]));case"enum":return a.every((u,c)=>bt(x.INT32,u,o[c]))}throw new Error(`repeated cannot contain ${s.kind}`)}switch(s.kind){case"message":return s.T.equals(a,o);case"enum":return bt(x.INT32,a,o);case"scalar":return bt(s.T,a,o);case"oneof":if(a.case!==o.case)return!1;const u=s.findField(a.case);if(u===void 0)return!0;switch(u.kind){case"message":return u.T.equals(a.value,o.value);case"enum":return bt(x.INT32,a.value,o.value);case"scalar":return bt(u.T,a.value,o.value)}throw new Error(`oneof cannot contain ${u.kind}`);case"map":const c=Object.keys(a).concat(Object.keys(o));switch(s.V.kind){case"message":const d=s.V.T;return c.every(g=>d.equals(a[g],o[g]));case"enum":return c.every(g=>bt(x.INT32,a[g],o[g]));case"scalar":const f=s.V.T;return c.every(g=>bt(f,a[g],o[g]))}break}})},clone(e){const t=e.getType(),n=new t,s=n;for(const a of t.fields.byMember()){const o=e[a.localName];let u;if(a.repeated)u=o.map(Bn);else if(a.kind=="map"){u=s[a.localName];for(const[c,d]of Object.entries(o))u[c]=Bn(d)}else a.kind=="oneof"?u=a.findField(o.case)?{case:o.case,value:Bn(o.value)}:{case:void 0}:u=Bn(o);s[a.localName]=u}return n}}}function Bn(e){if(e===void 0)return e;if(e instanceof at)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Sn(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class mu{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){const n={};for(const s of this.list())n[s.jsonName]=n[s.name]=s;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){const n={};for(const s of this.list())n[s.no]=s;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let n;for(const s of this.list())s.oneof?s.oneof!==n&&(n=s.oneof,t.push(n)):t.push(s)}return this.members}}function bo(e,t){const n=So(e);return t?n:yu(gu(n))}function du(e){return bo(e,!1)}const pu=So;function So(e){let t=!1;const n=[];for(let s=0;s<e.length;s++){let a=e.charAt(s);switch(a){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(a),t=!1;break;default:t&&(t=!1,a=a.toUpperCase()),n.push(a);break}}return n.join("")}const fu=new Set(["constructor","toString","toJSON","valueOf"]),hu=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),Eo=e=>`${e}$`,gu=e=>hu.has(e)?Eo(e):e,yu=e=>fu.has(e)?Eo(e):e;class Tu{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=du(t)}addField(t){Be(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n<this.fields.length;n++)this._lookup[this.fields[n].localName]=this.fields[n]}return this._lookup[t]}}const m=Oc("proto3",cu(),su(),Object.assign(Object.assign({},uu()),{newFieldList(e){return new mu(e,ku)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,s=e;if(t.repeated){s[n]=[];continue}switch(t.kind){case"oneof":s[n]={case:void 0};break;case"enum":s[n]=0;break;case"map":s[n]={};break;case"scalar":s[n]=us(t.T,t.L);break}}}}));function ku(e){var t,n,s,a;const o=[];let u;for(const c of typeof e=="function"?e():e){const d=c;if(d.localName=bo(c.name,c.oneof!==void 0),d.jsonName=(t=c.jsonName)!==null&&t!==void 0?t:pu(c.name),d.repeated=(n=c.repeated)!==null&&n!==void 0?n:!1,c.kind=="scalar"&&(d.L=(s=c.L)!==null&&s!==void 0?s:Vt.BIGINT),d.packed=(a=c.packed)!==null&&a!==void 0?a:c.kind=="enum"||c.kind=="scalar"&&c.T!=x.BYTES&&c.T!=x.STRING,c.oneof!==void 0){const f=typeof c.oneof=="string"?c.oneof:c.oneof.name;(!u||u.name!=f)&&(u=new Tu(f)),d.oneof=u,u.addField(d)}o.push(d)}return o}var G;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(G||(G={}));var _r;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(_r||(_r={}));class xe extends at{constructor(t){super(),this.seconds=_e.zero,this.nanos=0,m.util.initPartial(t,this)}fromJson(t,n){if(typeof t!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${m.json.debug(t)}`);const s=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const a=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(a))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(a<Date.parse("0001-01-01T00:00:00Z")||a>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=_e.parse(a/1e3),this.nanos=0,s[7]&&(this.nanos=parseInt("1"+s[7]+"0".repeat(9-s[7].length))-1e9),this}toJson(t){const n=Number(this.seconds)*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let s="Z";if(this.nanos>0){const a=(this.nanos+1e9).toString().substring(1);a.substring(3)==="000000"?s="."+a.substring(0,3)+"Z":a.substring(6)==="000"?s="."+a.substring(0,6)+"Z":s="."+a+"Z"}return new Date(n).toISOString().replace(".000Z",s)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return xe.fromDate(new Date)}static fromDate(t){const n=t.getTime();return new xe({seconds:_e.parse(Math.floor(n/1e3)),nanos:n%1e3*1e6})}static fromBinary(t,n){return new xe().fromBinary(t,n)}static fromJson(t,n){return new xe().fromJson(t,n)}static fromJsonString(t,n){return new xe().fromJsonString(t,n)}static equals(t,n){return m.util.equals(xe,t,n)}}xe.runtime=m;xe.typeName="google.protobuf.Timestamp";xe.fields=m.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class et extends at{constructor(t){super(),this.typeUrl="",this.value=new Uint8Array(0),m.util.initPartial(t,this)}toJson(t){var n;if(this.typeUrl==="")return{};const s=this.typeUrlToName(this.typeUrl),a=(n=t==null?void 0:t.typeRegistry)===null||n===void 0?void 0:n.findMessage(s);if(!a)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let u=a.fromBinary(this.value).toJson(t);return(s.startsWith("google.protobuf.")||u===null||Array.isArray(u)||typeof u!="object")&&(u={value:u}),u["@type"]=this.typeUrl,u}fromJson(t,n){var s;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${t===null?"null":Array.isArray(t)?"array":typeof t}`);if(Object.keys(t).length==0)return this;const a=t["@type"];if(typeof a!="string"||a=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const o=this.typeUrlToName(a),u=(s=n==null?void 0:n.typeRegistry)===null||s===void 0?void 0:s.findMessage(o);if(!u)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${a} is not in the type registry`);let c;if(o.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value"))c=u.fromJson(t.value,n);else{const d=Object.assign({},t);delete d["@type"],c=u.fromJson(d,n)}return this.packFrom(c),this}packFrom(t){this.value=t.toBinary(),this.typeUrl=this.typeNameToUrl(t.getType().typeName)}unpackTo(t){return this.is(t.getType())?(t.fromBinary(this.value),!0):!1}unpack(t){if(this.typeUrl==="")return;const n=t.findMessage(this.typeUrlToName(this.typeUrl));if(n)return n.fromBinary(this.value)}is(t){if(this.typeUrl==="")return!1;const n=this.typeUrlToName(this.typeUrl);let s="";return typeof t=="string"?s=t:s=t.typeName,n===s}typeNameToUrl(t){return`type.googleapis.com/${t}`}typeUrlToName(t){if(!t.length)throw new Error(`invalid type url: ${t}`);const n=t.lastIndexOf("/"),s=n>0?t.substring(n+1):t;if(!s.length)throw new Error(`invalid type url: ${t}`);return s}static pack(t){const n=new et;return n.packFrom(t),n}static fromBinary(t,n){return new et().fromBinary(t,n)}static fromJson(t,n){return new et().fromJson(t,n)}static fromJsonString(t,n){return new et().fromJsonString(t,n)}static equals(t,n){return m.util.equals(et,t,n)}}et.runtime=m;et.typeName="google.protobuf.Any";et.fields=m.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);const re=m.makeEnum("streamlayer.interactive.QuestionType",[{no:0,name:"QUESTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_TYPE_POLL",localName:"POLL"},{no:2,name:"QUESTION_TYPE_TRIVIA",localName:"TRIVIA"},{no:3,name:"QUESTION_TYPE_PREDICTION",localName:"PREDICTION"},{no:4,name:"QUESTION_TYPE_FACTOID",localName:"FACTOID"},{no:5,name:"QUESTION_TYPE_TWEET",localName:"TWEET"},{no:6,name:"QUESTION_TYPE_PROMOTION",localName:"PROMOTION"}]),bu=m.makeEnum("streamlayer.interactive.QuestionSource",[{no:0,name:"QUESTION_SOURCE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SOURCE_AI",localName:"AI"},{no:2,name:"QUESTION_SOURCE_CSV_IMPORT",localName:"CSV_IMPORT"}]),Pe=m.makeEnum("streamlayer.interactive.QuestionStatus",[{no:0,name:"QUESTION_STATUS_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_STATUS_NOT_SCHEDULED",localName:"NOT_SCHEDULED"},{no:2,name:"QUESTION_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:3,name:"QUESTION_STATUS_ACTIVE",localName:"ACTIVE"},{no:4,name:"QUESTION_STATUS_RESOLVED",localName:"RESOLVED"}]),Su=m.makeEnum("streamlayer.interactive.QuestionPosition",[{no:0,name:"QUESTION_POSITION_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_POSITION_DEFAULT",localName:"DEFAULT"},{no:2,name:"QUESTION_POSITION_FIXED_BOTTOM",localName:"FIXED_BOTTOM"}]),Eu=m.makeEnum("streamlayer.interactive.QuestionLayout",[{no:0,name:"QUESTION_LAYOUT_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_LAYOUT_LIST_VIEW",localName:"LIST_VIEW"},{no:2,name:"QUESTION_LAYOUT_GRID_VIEW",localName:"GRID_VIEW"}]),fn=m.makeEnum("streamlayer.interactive.QuestionImages",[{no:0,name:"QUESTION_IMAGES_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_IMAGES_NONE",localName:"NONE"},{no:2,name:"QUESTION_IMAGES_ROUNDED",localName:"ROUNDED"},{no:3,name:"QUESTION_IMAGES_TRANSPARENT",localName:"TRANSPARENT"},{no:4,name:"QUESTION_IMAGES_CENTERED",localName:"CENTERED"}]),vo=m.makeEnum("streamlayer.interactive.ImagePosition",[{no:0,name:"IMAGE_POSITION_UNSET",localName:"UNSET"},{no:1,name:"IMAGE_POSITION_LEFT",localName:"LEFT"},{no:2,name:"IMAGE_POSITION_RIGHT",localName:"RIGHT"}]),vu=m.makeEnum("streamlayer.interactive.PromotionType",[{no:0,name:"PROMOTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_TYPE_INGAME_IAB21",localName:"INGAME_IAB21"},{no:2,name:"PROMOTION_TYPE_INGAME_IAB11",localName:"INGAME_IAB11"},{no:3,name:"PROMOTION_TYPE_INGAME_IAB61",localName:"INGAME_IAB61"},{no:4,name:"PROMOTION_TYPE_INGAME_IAB11_LBAR",localName:"INGAME_IAB11_LBAR"},{no:5,name:"PROMOTION_TYPE_INGAME_IAB21_LBAR",localName:"INGAME_IAB21_LBAR"}]),_u=m.makeEnum("streamlayer.interactive.PromotionWallet",[{no:0,name:"PROMOTION_WALLET_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_WALLET_ENABLED",localName:"ENABLED"},{no:2,name:"PROMOTION_WALLET_DISABLED",localName:"DISABLED"}]),wu=m.makeEnum("streamlayer.interactive.QuestionAutoPostState",[{no:0,name:"QUESTION_AUTO_POST_STATE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_STATE_ON",localName:"ON"},{no:2,name:"QUESTION_AUTO_POST_STATE_OFF",localName:"OFF"},{no:3,name:"QUESTION_AUTO_POST_STATE_PAUSED",localName:"PAUSED"},{no:4,name:"QUESTION_AUTO_POST_STATE_IDLE",localName:"IDLE"},{no:5,name:"QUESTION_AUTO_POST_STATE_RESET",localName:"RESET"}]),Au=m.makeEnum("streamlayer.interactive.QuestionAutoPostStart",[{no:0,name:"QUESTION_AUTO_POST_START_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_START_SCHEDULE",localName:"SCHEDULE"},{no:2,name:"QUESTION_AUTO_POST_START_NOW",localName:"NOW"}]),Ru=m.makeEnum("streamlayer.interactive.QuestionSkipReason",[{no:0,name:"QUESTION_SKIP_REASON_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SKIP_REASON_OVERDUE",localName:"OVERDUE"}]),Bs=m.makeEnum("streamlayer.interactive.SilenceSetting",[{no:0,name:"SILENCE_SETTING_UNSET",localName:"UNSET"},{no:1,name:"SILENCE_SETTING_ON",localName:"ON"},{no:2,name:"SILENCE_SETTING_OFF",localName:"OFF"}]),Cu=m.makeEnum("streamlayer.interactive.ImportStatus",[{no:0,name:"IMPORT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"IMPORT_STATUS_PLANNED",localName:"PLANNED"},{no:2,name:"IMPORT_STATUS_RUNNING",localName:"RUNNING"},{no:3,name:"IMPORT_STATUS_COMPLETED",localName:"COMPLETED"},{no:4,name:"IMPORT_STATUS_FAILED",localName:"FAILED"}]),Ps=m.makeMessageType("streamlayer.interactive.QuestionAppearance",()=>[{no:1,name:"layout",kind:"enum",T:m.getEnumType(Eu)},{no:2,name:"images",kind:"enum",T:m.getEnumType(fn)},{no:3,name:"primary_color",kind:"scalar",T:9},{no:4,name:"position",kind:"enum",T:m.getEnumType(Su)},{no:5,name:"auto_hide_interval",kind:"scalar",T:4}]),hn=m.makeMessageType("streamlayer.interactive.Sponsorship",()=>[{no:1,name:"logo",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),da=m.makeMessageType("streamlayer.interactive.QuestionNotification",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9},{no:3,name:"indicator_color",kind:"scalar",T:9},{no:4,name:"image_position",kind:"enum",T:m.getEnumType(vo)},{no:5,name:"body",kind:"scalar",T:9},{no:6,name:"image_mode",kind:"enum",T:m.getEnumType(fn)}]),Iu=m.makeMessageType("streamlayer.interactive.QuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13}]),Nu=m.makeMessageType("streamlayer.interactive.ExtendedQuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13},{no:6,name:"percentage",kind:"scalar",T:13},{no:7,name:"you_voted",kind:"scalar",T:8},{no:8,name:"percentage_decimal",kind:"scalar",T:1}]),vt=m.makeMessageType("streamlayer.interactive.AnswerFeedback",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]),Us=m.makeMessageType("streamlayer.interactive.FileLink",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"thumbnail_url",kind:"scalar",T:9}]),_o=m.makeMessageType("streamlayer.interactive.WebLink",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]),Ou=m.makeMessageType("streamlayer.interactive.CTAButton",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"color",kind:"scalar",T:9}]),wr=m.makeMessageType("streamlayer.interactive.Banner",()=>[{no:1,name:"image_url",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"cta_button",kind:"message",T:Ou},{no:4,name:"video",kind:"message",T:Us},{no:5,name:"body",kind:"scalar",T:9}]),Fs=m.makeMessageType("streamlayer.interactive.QuestionOptions",()=>[{no:1,name:"poll",kind:"message",T:Lu,oneof:"options"},{no:2,name:"trivia",kind:"message",T:xu,oneof:"options"},{no:3,name:"prediction",kind:"message",T:Mu,oneof:"options"},{no:4,name:"factoid",kind:"message",T:Bu,oneof:"options"},{no:5,name:"tweet",kind:"message",T:Pu,oneof:"options"},{no:6,name:"promotion",kind:"message",T:Fu,oneof:"options"}]),Lu=m.makeMessageType("streamlayer.interactive.QuestionOptions.PollOptions",[],{localName:"QuestionOptions_PollOptions"}),xu=m.makeMessageType("streamlayer.interactive.QuestionOptions.TriviaOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:vt},{no:2,name:"incorrect_feedback",kind:"message",T:vt},{no:3,name:"points",kind:"scalar",T:4}],{localName:"QuestionOptions_TriviaOptions"}),Mu=m.makeMessageType("streamlayer.interactive.QuestionOptions.PredictionOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:vt},{no:2,name:"incorrect_feedback",kind:"message",T:vt}],{localName:"QuestionOptions_PredictionOptions"}),Bu=m.makeMessageType("streamlayer.interactive.QuestionOptions.FactoidOptions",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"video",kind:"message",T:Us},{no:4,name:"web_link",kind:"message",T:_o}],{localName:"QuestionOptions_FactoidOptions"}),Pu=m.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions",()=>[{no:1,name:"tweet_url",kind:"scalar",T:9},{no:2,name:"tweet_id",kind:"scalar",T:9},{no:3,name:"tweet_meta",kind:"message",T:Uu}],{localName:"QuestionOptions_TweetOptions"}),Uu=m.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions.TweetMetadata",()=>[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"account_verified",kind:"scalar",T:8},{no:3,name:"has_media",kind:"scalar",T:8}],{localName:"QuestionOptions_TweetOptions_TweetMetadata"}),Fu=m.makeMessageType("streamlayer.interactive.QuestionOptions.PromotionOptions",()=>[{no:1,name:"type",kind:"enum",T:m.getEnumType(vu)},{no:2,name:"sponsor",kind:"message",T:hn},{no:3,name:"banner",kind:"message",T:wr},{no:4,name:"enable_wallet",kind:"enum",T:m.getEnumType(_u)},{no:5,name:"additional_banner",kind:"message",T:wr}],{localName:"QuestionOptions_PromotionOptions"}),Du=m.makeMessageType("streamlayer.interactive.Tag",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"last_used_time",kind:"scalar",T:4}]),Vu=m.makeMessageType("streamlayer.interactive.QuestionAi",()=>[{no:1,name:"verified",kind:"scalar",T:8}]),wo=m.makeMessageType("streamlayer.interactive.Question",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:m.getEnumType(re)},{no:3,name:"subject",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:Fs},{no:5,name:"appearance",kind:"message",T:Ps},{no:6,name:"sponsorship",kind:"message",T:hn},{no:7,name:"notification",kind:"message",T:da},{no:8,name:"answers",kind:"message",T:Iu,repeated:!0},{no:9,name:"status",kind:"enum",T:m.getEnumType(Pe)},{no:10,name:"position",kind:"scalar",T:13,opt:!0},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"overrides",kind:"map",K:9,V:{kind:"scalar",T:8}},{no:15,name:"event_id",kind:"scalar",T:9},{no:16,name:"stream_timestamp",kind:"message",T:xe},{no:17,name:"tags",kind:"message",T:Du,repeated:!0},{no:18,name:"bypass_notifications",kind:"message",T:Vs},{no:19,name:"import_id",kind:"scalar",T:9},{no:20,name:"activation_trigger_count",kind:"scalar",T:13,opt:!0},{no:21,name:"source",kind:"enum",T:m.getEnumType(bu)},{no:22,name:"ai",kind:"message",T:Vu}]),Ds=m.makeMessageType("streamlayer.interactive.ExtendedQuestion",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:m.getEnumType(re)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"options",kind:"message",T:Fs},{no:5,name:"appearance",kind:"message",T:Ps},{no:6,name:"sponsorship",kind:"message",T:hn},{no:7,name:"notification",kind:"message",T:da},{no:8,name:"answers",kind:"message",T:Nu,repeated:!0},{no:9,name:"status",kind:"enum",T:m.getEnumType(Pe)},{no:10,name:"position",kind:"scalar",T:13},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"event_id",kind:"scalar",T:9},{no:15,name:"bypass_notifications",kind:"message",T:Vs}]);m.makeMessageType("streamlayer.interactive.QuestionTimeline",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:m.getEnumType(re)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"activated_at",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:m.getEnumType(Pe)},{no:6,name:"options",kind:"message",T:Fs},{no:7,name:"notification",kind:"message",T:da}]);const Ao=m.makeMessageType("streamlayer.interactive.EventModeration",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"sponsorship",kind:"message",T:hn},{no:4,name:"onboarding_enabled",kind:"scalar",T:8},{no:5,name:"question",kind:"message",T:ju},{no:6,name:"sponsors",kind:"message",T:$u},{no:7,name:"notification",kind:"message",T:Hu},{no:8,name:"activated_at",kind:"message",T:xe},{no:9,name:"deactivated_at",kind:"message",T:xe},{no:10,name:"question_auto_post",kind:"message",T:zu},{no:11,name:"bypass_notifications",kind:"message",T:Vs},{no:12,name:"importer_collaboration",kind:"message",T:tm}]),ju=m.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings",()=>[{no:1,name:"appearance",kind:"message",T:Ps},{no:2,name:"trivia",kind:"message",T:Gu},{no:3,name:"prediction",kind:"message",T:qu},{no:4,name:"correct_feedbacks",kind:"message",T:vt,repeated:!0},{no:5,name:"incorrect_feedbacks",kind:"message",T:vt,repeated:!0}],{localName:"EventModeration_QuestionSettings"}),Gu=m.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.TriviaCardSettings",()=>[{no:1,name:"points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_TriviaCardSettings"}),qu=m.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.PredictionCardSettings",()=>[{no:1,name:"max_points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_PredictionCardSettings"}),$u=m.makeMessageType("streamlayer.interactive.EventModeration.SponsorshipSettings",()=>[{no:1,name:"sponsors",kind:"message",T:hn,repeated:!0}],{localName:"EventModeration_SponsorshipSettings"}),Hu=m.makeMessageType("streamlayer.interactive.EventModeration.NotificationSettings",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"indicator_color",kind:"scalar",T:9},{no:3,name:"image_position",kind:"enum",T:m.getEnumType(vo)},{no:4,name:"image_mode",kind:"enum",T:m.getEnumType(fn)}],{localName:"EventModeration_NotificationSettings"}),zu=m.makeMessageType("streamlayer.interactive.QuestionAutoPost",()=>[{no:1,name:"state",kind:"enum",T:m.getEnumType(wu)},{no:2,name:"interval",kind:"scalar",T:13},{no:3,name:"next_post_time",kind:"message",T:xe},{no:4,name:"start_mode",kind:"enum",T:m.getEnumType(Au)},{no:5,name:"start_options",kind:"message",T:Qu}]),Qu=m.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions",()=>[{no:1,name:"schedule",kind:"message",T:Yu,oneof:"options"}]),Yu=m.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions.ScheduleOptions",()=>[{no:1,name:"timestamp",kind:"scalar",T:4}],{localName:"QuestionAutoPostStartOptions_ScheduleOptions"});m.makeMessageType("streamlayer.interactive.AnswerData",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13}]);const pa=m.makeMessageType("streamlayer.interactive.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5},{no:3,name:"cursor",kind:"scalar",T:9}]),Ku=m.makeMessageType("streamlayer.interactive.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.interactive.QuestionStats",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"question",kind:"message",T:Wu},{no:3,name:"statistics",kind:"message",T:Zu,repeated:!0}]);const Wu=m.makeMessageType("streamlayer.interactive.QuestionStats.QuestionData",()=>[{no:1,name:"status",kind:"enum",T:m.getEnumType(Pe)}],{localName:"QuestionStats_QuestionData"}),Zu=m.makeMessageType("streamlayer.interactive.AnswerVotesStats",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"votes",kind:"message",T:Ju}]),Ju=m.makeMessageType("streamlayer.interactive.AnswerVotesStats.AnswerVotesData",()=>[{no:1,name:"count",kind:"scalar",T:13},{no:2,name:"percentage",kind:"scalar",T:13}],{localName:"AnswerVotesStats_AnswerVotesData"});m.makeMessageType("streamlayer.interactive.ServerNotificationOptions",()=>[{no:1,name:"silence",kind:"scalar",T:8},{no:2,name:"skip_update",kind:"scalar",T:8}]);const Vs=m.makeMessageType("streamlayer.interactive.BypassNotifications",()=>[{no:1,name:"in_app_silence",kind:"enum",T:m.getEnumType(Bs)}]),Xu=m.makeMessageType("streamlayer.interactive.ImportError",()=>[{no:1,name:"row_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]),em=m.makeMessageType("streamlayer.interactive.ImportProgress",()=>[{no:1,name:"import_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:m.getEnumType(Cu)},{no:3,name:"errors",kind:"message",T:Xu,repeated:!0},{no:4,name:"last_updated",kind:"message",T:xe}]),tm=m.makeMessageType("streamlayer.interactive.ImporterCollaboration",()=>[{no:1,name:"imports",kind:"map",K:9,V:{kind:"message",T:em}}]),Ro=m.makeEnum("streamlayer.interactive.feed.PickHistoryStatus",[{no:0,name:"PICK_HISTORY_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PICK_HISTORY_STATUS_WON",localName:"WON"},{no:2,name:"PICK_HISTORY_STATUS_LOST",localName:"LOST"},{no:3,name:"PICK_HISTORY_STATUS_DNP",localName:"DNP"}]),nm=m.makeEnum("streamlayer.interactive.feed.FeedUpdateType",[{no:0,name:"UPDATE_TYPE_UNSET"},{no:1,name:"UPDATE_TYPE_QUESTION_ACTIVATE"},{no:2,name:"UPDATE_TYPE_QUESTION_SET_CORRECT_ANSWER"},{no:3,name:"UPDATE_TYPE_QUESTION_RESOLVE"}]),Co=m.makeMessageType("streamlayer.interactive.feed.FeedQuestion",()=>[{no:1,name:"question",kind:"message",T:wo},{no:2,name:"notification",kind:"message",T:da},{no:3,name:"moderation",kind:"message",T:Ao}]),am=m.makeMessageType("streamlayer.interactive.feed.SubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"feed_id",kind:"scalar",T:9}]),sm=m.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:rm}]),rm=m.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse.SubscriptionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Co}],{localName:"SubscriptionResponse_SubscriptionResponseData"}),im=m.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionRequest",()=>[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"question_id",kind:"scalar",T:9}]),om=m.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:lm}]),lm=m.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse.VotingSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:js,repeated:!0}],{localName:"VotingSubscriptionResponse_VotingSubscriptionResponseData"}),cm=m.makeMessageType("streamlayer.interactive.feed.QuestionSubscription",()=>[{no:1,name:"question",kind:"message",T:Ds}]),um=m.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),mm=m.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:dm}]),dm=m.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse.QuestionSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:cm}],{localName:"QuestionSubscriptionResponse_QuestionSubscriptionResponseData"}),pm=m.makeMessageType("streamlayer.interactive.feed.QuestionByUser",()=>[{no:1,name:"question",kind:"message",T:Ds}]),fm=m.makeMessageType("streamlayer.interactive.feed.QuestionByUserRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),hm=m.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse",()=>[{no:1,name:"data",kind:"message",T:gm}]),gm=m.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse.QuestionByUserResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pm}],{localName:"QuestionByUserResponse_QuestionByUserResponseData"}),ym=m.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest",()=>[{no:1,name:"filter",kind:"message",T:Tm}]),Tm=m.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest.SyncQuestionRequestFilter",()=>[{no:1,name:"event_id",kind:"scalar",T:9}],{localName:"SyncQuestionRequest_SyncQuestionRequestFilter"}),km=m.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:bm}]),bm=m.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse.SyncQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Co}],{localName:"SyncQuestionResponse_SyncQuestionResponseData"}),Sm=m.makeMessageType("streamlayer.interactive.feed.GetQuestionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),Em=m.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:vm}]),vm=m.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse.GetQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:wo}],{localName:"GetQuestionResponse_GetQuestionResponseData"}),_m=m.makeMessageType("streamlayer.interactive.feed.QuestionDetailRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),wm=m.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse",()=>[{no:1,name:"data",kind:"message",T:Am}]),Am=m.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse.QuestionDetailResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ds}],{localName:"QuestionDetailResponse_QuestionDetailResponseData"}),js=m.makeMessageType("streamlayer.interactive.feed.AnswerVoteResult",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13},{no:3,name:"voted",kind:"scalar",T:8},{no:4,name:"correct",kind:"scalar",T:8}]),Rm=m.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest",()=>[{no:1,name:"data",kind:"message",T:Cm}]),Cm=m.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest.SubmitRequestData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9}],{localName:"SubmitAnswerRequest_SubmitRequestData"}),Im=m.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse",()=>[{no:1,name:"data",kind:"message",T:Nm}]),Nm=m.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse.SubmitAnswerResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:js,repeated:!0}],{localName:"SubmitAnswerResponse_SubmitAnswerResponseData"}),Om=m.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest",()=>[{no:1,name:"data",kind:"message",T:Lm}]),Lm=m.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest.SubmitRequestData",()=>[{no:1,name:"event_id",kind:"scalar",T:13}],{localName:"SubmitInplayRequest_SubmitRequestData"}),xm=m.makeMessageType("streamlayer.interactive.feed.SubmitInplayResponse",[]),Mm=m.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest",()=>[{no:1,name:"data",kind:"message",T:Bm}]),Bm=m.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest.SkipQuestionRequestData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"reason",kind:"enum",T:m.getEnumType(Ru)}],{localName:"SkipQuestionRequest_SkipQuestionRequestData"}),Pm=m.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:Um}]),Um=m.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse.SkipQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:js,repeated:!0}],{localName:"SkipQuestionResponse_SkipQuestionResponseData"}),Fm=m.makeMessageType("streamlayer.interactive.feed.PickHistoryRequest",()=>[{no:1,name:"question_type",kind:"enum",T:m.getEnumType(re),repeated:!0},{no:3,name:"event_id",kind:"scalar",T:9},{no:2,name:"pagination",kind:"message",T:pa}]),Io=m.makeMessageType("streamlayer.interactive.feed.PickHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:m.getEnumType(Ro)},{no:4,name:"question_type",kind:"enum",T:m.getEnumType(re)},{no:5,name:"subject",kind:"scalar",T:9},{no:6,name:"text",kind:"scalar",T:9},{no:7,name:"open_for_voting",kind:"scalar",T:8},{no:8,name:"question_status",kind:"enum",T:m.getEnumType(Pe)}]),Dm=m.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:Vm,repeated:!0},{no:2,name:"meta",kind:"message",T:jm}]),Vm=m.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseData",()=>[{no:1,name:"attributes",kind:"message",T:Io}],{localName:"PickHistoryResponse_PickHistoryResponseData"}),jm=m.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"PickHistoryResponse_PickHistoryResponseMetadata"}),Gm=m.makeMessageType("streamlayer.interactive.feed.InsightHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),qm=m.makeMessageType("streamlayer.interactive.feed.InstantView",()=>[{no:1,name:"heading",kind:"scalar",T:9,opt:!0},{no:2,name:"body",kind:"scalar",T:9,opt:!0},{no:3,name:"image",kind:"scalar",T:9,opt:!0},{no:4,name:"video",kind:"message",T:Us,opt:!0},{no:5,name:"web_link",kind:"message",T:_o,opt:!0}]),No=m.makeMessageType("streamlayer.interactive.feed.InsightHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"image_mode",kind:"enum",T:m.getEnumType(fn)},{no:5,name:"instant_view",kind:"message",T:qm,opt:!0}]),$m=m.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:Hm,repeated:!0}]),Hm=m.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse.InsightHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:No}],{localName:"InsightHistoryResponse_InsightHistoryResponseData"}),zm=m.makeMessageType("streamlayer.interactive.feed.TweetHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),Oo=m.makeMessageType("streamlayer.interactive.feed.TweetHistory",()=>[{no:1,name:"tweet_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"body",kind:"scalar",T:9},{no:5,name:"account",kind:"scalar",T:9},{no:6,name:"account_verified",kind:"scalar",T:8}]),Qm=m.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:Ym,repeated:!0}]),Ym=m.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse.TweetHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Oo}],{localName:"TweetHistoryResponse_TweetHistoryResponseData"}),Km=m.makeMessageType("streamlayer.interactive.feed.InteractiveFeed",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"options",kind:"message",T:Wm},{no:3,name:"moderation",kind:"message",T:Ao}]),Wm=m.makeMessageType("streamlayer.interactive.feed.FeedOptions",()=>[{no:1,name:"onboarding_enabled",kind:"scalar",T:8}]),Zm=m.makeMessageType("streamlayer.interactive.feed.GetRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),Jm=m.makeMessageType("streamlayer.interactive.feed.GetResponse",()=>[{no:1,name:"data",kind:"message",T:Xm}]),Xm=m.makeMessageType("streamlayer.interactive.feed.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Km}],{localName:"GetResponse_GetResponseData"}),ed=m.makeMessageType("streamlayer.interactive.feed.PromotionHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),Lo=m.makeMessageType("streamlayer.interactive.feed.PromotionHistory",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9}]),td=m.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:nd,repeated:!0}]),nd=m.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse.PromotionHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Lo}],{localName:"PromotionHistoryResponse_PromotionHistoryResponseData"}),ad=m.makeMessageType("streamlayer.interactive.feed.FeedItemAttributes",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:m.getEnumType(re)},{no:3,name:"status",kind:"enum",T:m.getEnumType(Pe)},{no:8,name:"created",kind:"scalar",T:9},{no:4,name:"question",kind:"message",T:Io,oneof:"attributes"},{no:5,name:"tweet",kind:"message",T:Oo,oneof:"attributes"},{no:6,name:"insight",kind:"message",T:No,oneof:"attributes"},{no:7,name:"promotion",kind:"message",T:Lo,oneof:"attributes"}]),xo=m.makeMessageType("streamlayer.interactive.feed.FeedItem",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ad}]),sd=m.makeMessageType("streamlayer.interactive.feed.FeedListRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"filter",kind:"message",T:rd},{no:3,name:"pagination",kind:"message",T:pa}]),rd=m.makeMessageType("streamlayer.interactive.feed.FeedListRequest.FeedListFilter",()=>[{no:1,name:"types",kind:"enum",T:m.getEnumType(re),repeated:!0},{no:2,name:"statuses",kind:"enum",T:m.getEnumType(Pe),repeated:!0}],{localName:"FeedListRequest_FeedListFilter"}),id=m.makeMessageType("streamlayer.interactive.feed.FeedListResponse",()=>[{no:1,name:"data",kind:"message",T:xo,repeated:!0},{no:2,name:"meta",kind:"message",T:od}]),od=m.makeMessageType("streamlayer.interactive.feed.FeedListResponse.FeedListResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"FeedListResponse_FeedListResponseMetadata"}),ld=m.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),cd=m.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:xo},{no:2,name:"meta",kind:"message",T:ud}]),ud=m.makeMessageType("streamlayer.interactive.feed.FeedSubscriptionResponse.FeedSubscriptionMeta",()=>[{no:1,name:"type",kind:"enum",T:m.getEnumType(nm)}],{localName:"FeedSubscriptionResponse_FeedSubscriptionMeta"}),md=m.makeMessageType("streamlayer.sdkSettings.game.common.GameAppearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}]),dd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameMedia",()=>[{no:1,name:"game_icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),pd=m.makeMessageType("streamlayer.sdkSettings.game.common.GamePrize",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9}]),fd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameOverview",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"auto_activate",kind:"scalar",T:8},{no:4,name:"scoring",kind:"scalar",T:8},{no:5,name:"media",kind:"message",T:dd},{no:6,name:"appearance",kind:"message",T:md},{no:7,name:"prizes",kind:"message",T:pd,repeated:!0},{no:8,name:"completed",kind:"scalar",T:8}]),hd=m.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardMedia",()=>[{no:1,name:"icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),gd=m.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardAppearance",()=>[{no:1,name:"graphic",kind:"scalar",T:9}]),yd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameTitleCard",()=>[{no:1,name:"visible",kind:"scalar",T:8},{no:2,name:"opt_in",kind:"scalar",T:8},{no:3,name:"title",kind:"scalar",T:9},{no:4,name:"subtitle",kind:"scalar",T:9},{no:5,name:"header",kind:"scalar",T:9},{no:6,name:"media",kind:"message",T:hd},{no:7,name:"appearance",kind:"message",T:gd},{no:8,name:"completed",kind:"scalar",T:8}]),Td=m.makeMessageType("streamlayer.sdkSettings.game.common.OnboardingStep",()=>[{no:1,name:"headline",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"graphic",kind:"scalar",T:9}]),kd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameOnboarding",()=>[{no:1,name:"steps",kind:"message",T:Td,repeated:!0},{no:2,name:"completed",kind:"scalar",T:8}]),bd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameRules",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"numbers_color",kind:"scalar",T:9},{no:5,name:"rules",kind:"scalar",T:9,repeated:!0},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"terms",kind:"scalar",T:9},{no:8,name:"terms_url",kind:"scalar",T:9}]),Sd=m.makeMessageType("streamlayer.sdkSettings.game.common.GameInviteCard",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"subtext",kind:"scalar",T:9},{no:4,name:"button_label",kind:"scalar",T:9},{no:5,name:"icon_color",kind:"scalar",T:9},{no:6,name:"terms",kind:"scalar",T:9},{no:7,name:"completed",kind:"scalar",T:8}]),Ed=m.makeMessageType("streamlayer.sdkSettings.game.common.GameSettings",()=>[{no:1,name:"overview",kind:"message",T:fd},{no:2,name:"title_card",kind:"message",T:yd},{no:3,name:"onboarding",kind:"message",T:kd},{no:4,name:"rules",kind:"message",T:bd},{no:5,name:"invite_card",kind:"message",T:Sd},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"enable",kind:"scalar",T:8}]),vd=m.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationGeneral",()=>[{no:1,name:"default_color",kind:"scalar",T:9},{no:2,name:"points",kind:"scalar",T:13},{no:3,name:"auto_hide_interval",kind:"scalar",T:4},{no:4,name:"insights_history_enabled",kind:"scalar",T:8},{no:5,name:"pick_history_enabled",kind:"scalar",T:8},{no:6,name:"correct_feedbacks",kind:"message",T:vt,repeated:!0},{no:7,name:"incorrect_feedbacks",kind:"message",T:vt,repeated:!0}]),_d=m.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationNotifications",()=>[{no:1,name:"default_image",kind:"scalar",T:9},{no:2,name:"image_mode",kind:"enum",T:m.getEnumType(fn)}]),wd=m.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSponsorships",()=>[{no:1,name:"rotate",kind:"scalar",T:8},{no:2,name:"no_sponsor",kind:"scalar",T:8},{no:3,name:"sponsors",kind:"message",T:hn,repeated:!0}]),Ad=m.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSettings",()=>[{no:1,name:"general",kind:"message",T:vd},{no:2,name:"notifications",kind:"message",T:_d},{no:3,name:"sponsorships",kind:"message",T:wd}]),me=m.makeEnum("streamlayer.sdkSettings.SdkOverlayType",[{no:0,name:"SDK_OVERLAY_TYPE_UNSET",localName:"UNSET"},{no:1,name:"SDK_OVERLAY_TYPE_INPLAY",localName:"INPLAY"},{no:2,name:"SDK_OVERLAY_TYPE_MESSAGING",localName:"MESSAGING"},{no:3,name:"SDK_OVERLAY_TYPE_STATISTICS",localName:"STATISTICS"},{no:4,name:"SDK_OVERLAY_TYPE_BETTING",localName:"BETTING"},{no:5,name:"SDK_OVERLAY_TYPE_TWITTER",localName:"TWITTER"},{no:6,name:"SDK_OVERLAY_TYPE_MERCHANDISE",localName:"MERCHANDISE"},{no:7,name:"SDK_OVERLAY_TYPE_CONTESTS",localName:"CONTESTS"},{no:8,name:"SDK_OVERLAY_TYPE_VOICE_CHAT",localName:"VOICE_CHAT"},{no:9,name:"SDK_OVERLAY_TYPE_TICKETS",localName:"TICKETS"},{no:10,name:"SDK_OVERLAY_TYPE_WHOIS_WATCHING",localName:"WHOIS_WATCHING"},{no:11,name:"SDK_OVERLAY_TYPE_PROFILE",localName:"PROFILE"},{no:12,name:"SDK_OVERLAY_TYPE_GAMES",localName:"GAMES"},{no:13,name:"SDK_OVERLAY_TYPE_GOLF_STATISTICS",localName:"GOLF_STATISTICS"},{no:14,name:"SDK_OVERLAY_TYPE_HIGHLIGHTS",localName:"HIGHLIGHTS"},{no:15,name:"SDK_OVERLAY_TYPE_PUBLIC_CHAT",localName:"PUBLIC_CHAT"}]),Rd=m.makeEnum("streamlayer.sdkSettings.BettingFavoriteType",[{no:0,name:"BETTING_FAVORITE_TYPE_UNSET",localName:"UNSET"},{no:1,name:"BETTING_FAVORITE_TYPE_LEAGUE",localName:"LEAGUE"},{no:2,name:"BETTING_FAVORITE_TYPE_TEAM",localName:"TEAM"}]),Cd=m.makeEnum("streamlayer.sdkSettings.BettingSettingsTextColor",[{no:0,name:"BETTING_SETTINGS_TEXT_COLOR_UNSET",localName:"UNSET"},{no:1,name:"BETTING_SETTINGS_TEXT_COLOR_PRIMARY",localName:"PRIMARY"},{no:2,name:"BETTING_SETTINGS_TEXT_COLOR_GREY",localName:"GREY"},{no:3,name:"BETTING_SETTINGS_TEXT_COLOR_CUSTOM",localName:"CUSTOM"}]),Gs=m.makeEnum("streamlayer.sdkSettings.GetStreamChannelType",[{no:0,name:"GETSTREAM_CHANNEL_TYPE_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_TYPE_LIVESTREAM"},{no:2,name:"GETSTREAM_CHANNEL_TYPE_MESSAGING"},{no:3,name:"GETSTREAM_CHANNEL_TYPE_TEAM"},{no:4,name:"GETSTREAM_CHANNEL_TYPE_COMMERCE"},{no:5,name:"GETSTREAM_CHANNEL_TYPE_GAMING"},{no:6,name:"GETSTREAM_CHANNEL_TYPE_CUSTOM"}]),Id=m.makeEnum("streamlayer.sdkSettings.GetStreamChannelDefault",[{no:0,name:"GETSTREAM_CHANNEL_DEFAULT_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_DEFAULT_TRUE"},{no:2,name:"GETSTREAM_CHANNEL_DEFAULT_FALSE"}]),Mo=m.makeEnum("streamlayer.sdkSettings.GetStreamEnabled",[{no:0,name:"GETSTREAM_ENABLED_UNSET"},{no:1,name:"GETSTREAM_ENABLED_TRUE"},{no:2,name:"GETSTREAM_ENABLED_FALSE"}]),Nd=m.makeEnum("streamlayer.sdkSettings.LeaderboardKind",[{no:0,name:"LEADERBOARD_KIND_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_KIND_GLOBAL",localName:"GLOBAL"},{no:2,name:"LEADERBOARD_KIND_FRIENDS",localName:"FRIENDS"}]),Od=m.makeEnum("streamlayer.sdkSettings.PresetRuleKey",[{no:0,name:"PRESET_RULE_KEY_UNSET",localName:"UNSET"},{no:1,name:"PRESET_RULE_KEY_SPORT",localName:"SPORT"},{no:2,name:"PRESET_RULE_KEY_LEAGUE",localName:"LEAGUE"},{no:3,name:"PRESET_RULE_KEY_TEAMS",localName:"TEAMS"}]),Ld=m.makeEnum("streamlayer.sdkSettings.AdvertisingPlacement",[{no:0,name:"ADVERTISING_PLACEMENT_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_PLACEMENT_DEFAULT",localName:"DEFAULT"},{no:2,name:"ADVERTISING_PLACEMENT_WATCHPARTY_FULLSIZE",localName:"WATCHPARTY_FULLSIZE"},{no:3,name:"ADVERTISING_PLACEMENT_WATCHPARTY_VIDEOPANEL",localName:"WATCHPARTY_VIDEOPANEL"},{no:4,name:"ADVERTISING_PLACEMENT_OVERLAY_NAVBAR",localName:"OVERLAY_NAVBAR"}]);m.makeEnum("streamlayer.sdkSettings.AdvertisingType",[{no:0,name:"ADVERTISING_TYPE_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_TYPE_SPONSORS",localName:"SPONSORS"},{no:2,name:"ADVERTISING_TYPE_INTERSTITIALS",localName:"INTERSTITIALS"},{no:3,name:"ADVERTISING_TYPE_BANNERS",localName:"BANNERS"}]);const xd=m.makeMessageType("streamlayer.sdkSettings.TwitterOverlaySettings",()=>[{no:1,name:"accounts",kind:"scalar",T:9,repeated:!0}]),Md=m.makeMessageType("streamlayer.sdkSettings.BettingFavorite",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"icon",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"type",kind:"enum",T:m.getEnumType(Rd)}]),Bd=m.makeMessageType("streamlayer.sdkSettings.CtaImage",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),Bo=m.makeMessageType("streamlayer.sdkSettings.BrandDefaults",()=>[{no:1,name:"appearance",kind:"message",T:Pd}]),Pd=m.makeMessageType("streamlayer.sdkSettings.BrandDefaults.Appearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}],{localName:"BrandDefaults_Appearance"}),Ar=m.makeMessageType("streamlayer.sdkSettings.BettingOverlaySettings",()=>[{no:1,name:"favorites",kind:"message",T:Md,repeated:!0},{no:2,name:"primary_color",kind:"scalar",T:9},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"text_color",kind:"enum",T:m.getEnumType(Cd)},{no:5,name:"app_installed_text",kind:"scalar",T:9},{no:6,name:"app_not_installed_text",kind:"scalar",T:9},{no:7,name:"text_color_custom",kind:"scalar",T:9},{no:8,name:"cta_image",kind:"message",T:Bd}]),Ud=m.makeMessageType("streamlayer.sdkSettings.GetStreamSettingsClient",()=>[{no:1,name:"enabled",kind:"enum",T:m.getEnumType(Mo)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:5,name:"default_channel_type",kind:"enum",T:m.getEnumType(Gs)}]),Jn=m.makeMessageType("streamlayer.sdkSettings.GetStreamChannel",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"channel_id",kind:"scalar",T:9},{no:4,name:"channel_type",kind:"enum",T:m.getEnumType(Gs)},{no:5,name:"is_default",kind:"enum",T:m.getEnumType(Id)}]),Fd=m.makeMessageType("streamlayer.sdkSettings.GetStreamChannels",()=>[{no:1,name:"enabled",kind:"enum",T:m.getEnumType(Mo)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:4,name:"default_channel_type",kind:"enum",T:m.getEnumType(Gs)},{no:5,name:"default_channel",kind:"message",T:Jn},{no:6,name:"channels",kind:"message",T:Jn,repeated:!0}]),Po=m.makeMessageType("streamlayer.sdkSettings.StreamSettings",()=>[{no:1,name:"overlays",kind:"message",T:fa,repeated:!0},{no:2,name:"custom",kind:"scalar",T:8},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"primary_color",kind:"scalar",T:9},{no:5,name:"secondary_color",kind:"scalar",T:9},{no:6,name:"moderation_primary_color",kind:"scalar",T:9},{no:7,name:"link_share_icon",kind:"scalar",T:9},{no:8,name:"link_share_text",kind:"scalar",T:9},{no:9,name:"brand_defaults",kind:"message",T:Bo},{no:10,name:"getstream",kind:"message",T:Fd}]),Dd=m.makeMessageType("streamlayer.sdkSettings.JWK",()=>[{no:1,name:"alg",kind:"scalar",T:9,opt:!0},{no:2,name:"crv",kind:"scalar",T:9,opt:!0},{no:3,name:"d",kind:"scalar",T:9,opt:!0},{no:4,name:"dp",kind:"scalar",T:9,opt:!0},{no:5,name:"dq",kind:"scalar",T:9,opt:!0},{no:6,name:"e",kind:"scalar",T:9,opt:!0},{no:7,name:"ext",kind:"scalar",T:8,opt:!0},{no:8,name:"k",kind:"scalar",T:9,opt:!0},{no:9,name:"key_ops",kind:"scalar",T:9,repeated:!0},{no:10,name:"kid",kind:"scalar",T:9,opt:!0},{no:11,name:"kty",kind:"scalar",T:9,opt:!0},{no:12,name:"n",kind:"scalar",T:9,opt:!0},{no:13,name:"oth",kind:"message",T:Vd,repeated:!0},{no:14,name:"p",kind:"scalar",T:9,opt:!0},{no:15,name:"q",kind:"scalar",T:9,opt:!0},{no:16,name:"qi",kind:"scalar",T:9,opt:!0},{no:17,name:"use",kind:"scalar",T:9,opt:!0},{no:18,name:"x",kind:"scalar",T:9,opt:!0},{no:19,name:"y",kind:"scalar",T:9,opt:!0},{no:20,name:"x5c",kind:"scalar",T:9,repeated:!0},{no:21,name:"x5t",kind:"scalar",T:9,opt:!0},{no:22,name:"x5u",kind:"scalar",T:9,opt:!0}]),Vd=m.makeMessageType("streamlayer.sdkSettings.JWK.OTH",()=>[{no:1,name:"d",kind:"scalar",T:9,opt:!0},{no:2,name:"r",kind:"scalar",T:9,opt:!0},{no:3,name:"t",kind:"scalar",T:9,opt:!0}],{localName:"JWK_OTH"}),Uo=m.makeMessageType("streamlayer.sdkSettings.OrganizationSettings",()=>[{no:1,name:"overlays",kind:"message",T:fa,repeated:!0},{no:2,name:"button_icon",kind:"scalar",T:9},{no:3,name:"tinode_host",kind:"scalar",T:9},{no:4,name:"audience",kind:"scalar",T:9},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"provider",kind:"scalar",T:9},{no:7,name:"primary_color",kind:"scalar",T:9},{no:8,name:"secondary_color",kind:"scalar",T:9},{no:9,name:"moderation_primary_color",kind:"scalar",T:9},{no:10,name:"link_share_icon",kind:"scalar",T:9},{no:11,name:"link_share_text",kind:"scalar",T:9},{no:12,name:"brand_defaults",kind:"message",T:Bo},{no:13,name:"pub",kind:"message",T:Dd},{no:14,name:"getstream",kind:"message",T:Ud}]),jd=m.makeMessageType("streamlayer.sdkSettings.GamesOverlaySettings",()=>[{no:1,name:"inplay_game",kind:"message",T:Ed},{no:2,name:"moderation",kind:"message",T:Ad},{no:3,name:"pinned_leaderboard_id",kind:"scalar",T:9},{no:4,name:"leaderboard_kind",kind:"enum",T:m.getEnumType(Nd)}]),Rr=m.makeMessageType("streamlayer.sdkSettings.GetStreamOverlaySettings",()=>[{no:1,name:"default_channel",kind:"message",T:Jn},{no:2,name:"channels",kind:"message",T:Jn,repeated:!0}]),en=m.makeMessageType("streamlayer.sdkSettings.SdkOverlaySettings",()=>[{no:4,name:"twitter",kind:"message",T:xd,oneof:"overlay_settings"},{no:5,name:"betting",kind:"message",T:Ar,oneof:"overlay_settings"},{no:6,name:"inplay",kind:"message",T:Ar,oneof:"overlay_settings"},{no:7,name:"games",kind:"message",T:jd,oneof:"overlay_settings"},{no:8,name:"getstream",kind:"message",T:Rr,oneof:"overlay_settings"},{no:9,name:"public_chat",kind:"message",T:Rr,oneof:"overlay_settings"}]),Gd=m.makeMessageType("streamlayer.sdkSettings.SdkOverlayMeta",()=>[{no:1,name:"organization",kind:"message",T:en},{no:2,name:"global_preset",kind:"message",T:en},{no:3,name:"preset",kind:"message",T:en},{no:4,name:"stream",kind:"message",T:en}]),fa=m.makeMessageType("streamlayer.sdkSettings.SdkOverlay",()=>[{no:1,name:"type",kind:"enum",T:m.getEnumType(me)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:en},{no:6,name:"meta",kind:"message",T:Gd},{no:7,name:"enable",kind:"scalar",T:8},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:14,name:"enable_sdk_button",kind:"scalar",T:8}]);m.makeMessageType("streamlayer.sdkSettings.SdkOverlayUpdateData",()=>[{no:1,name:"type",kind:"enum",T:m.getEnumType(me)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:en},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);m.makeMessageType("streamlayer.sdkSettings.OverlaysListRequest",[]);m.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse",()=>[{no:1,name:"data",kind:"message",T:qd}]);const qd=m.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse.OverlaysListResponseData",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",T:fa,repeated:!0}],{localName:"OverlaysListResponse_OverlaysListResponseData"});m.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:$d}]);const $d=m.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse.GenerateSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateSdkKeyResponse_GenerateSdkKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:Hd}]);const Hd=m.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse.RemoveSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveSdkKeyResponse_RemoveSdkKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.ListSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:zd}]);const zd=m.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse.ListSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"ListSdkKeyResponse_ListSdkKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.RegisterTwitterRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"stream_id",kind:"scalar",T:9},{no:3,name:"account",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.RegisterTwitterResponse",[]);m.makeMessageType("streamlayer.sdkSettings.Preset",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"rule",kind:"message",T:Yd},{no:3,name:"settings",kind:"message",T:Qd}]);const Qd=m.makeMessageType("streamlayer.sdkSettings.PresetSettings",()=>[{no:1,name:"overlays",kind:"message",T:fa,repeated:!0},{no:2,name:"advertising",kind:"message",T:Fo}]),Yd=m.makeMessageType("streamlayer.sdkSettings.PresetRule",()=>[{no:1,name:"key",kind:"enum",T:m.getEnumType(Od)},{no:2,name:"value",kind:"scalar",T:9}]),Kd=m.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraints",()=>[{no:1,name:"images",kind:"message",T:Cr},{no:2,name:"videos",kind:"message",T:Cr}]),Cr=m.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraint",()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5},{no:3,name:"max_file_size",kind:"scalar",T:1},{no:4,name:"mime",kind:"scalar",T:9}]),Wd=m.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplate",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"constraints",kind:"map",K:9,V:{kind:"message",T:Kd}}]);m.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplates",()=>[{no:1,name:"templates",kind:"message",T:Wd,repeated:!0}]);const Zd=m.makeMessageType("streamlayer.sdkSettings.AdvertisingImage",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"placement",kind:"enum",T:m.getEnumType(Ld)}]),Jd=m.makeMessageType("streamlayer.sdkSettings.AdvertisingVideo",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"background_color",kind:"scalar",T:9}]),Xd=m.makeMessageType("streamlayer.sdkSettings.AdvertisingSettings",()=>[{no:1,name:"frequency",kind:"scalar",T:5},{no:2,name:"images",kind:"message",T:Zd,repeated:!0},{no:3,name:"videos",kind:"message",T:Jd,repeated:!0}]),e1=m.makeMessageType("streamlayer.sdkSettings.AdvertisingOverlaySettings",()=>[{no:1,name:"overlay_type",kind:"enum",T:m.getEnumType(me)},{no:2,name:"settings",kind:"map",K:9,V:{kind:"message",T:Xd}},{no:3,name:"enabled",kind:"scalar",T:8},{no:4,name:"overlay_name",kind:"scalar",T:9},{no:5,name:"use_custom",kind:"scalar",T:8,opt:!0}]),Fo=m.makeMessageType("streamlayer.sdkSettings.Advertising",()=>[{no:1,name:"template_id",kind:"scalar",T:9},{no:2,name:"overlay_settings",kind:"map",K:9,V:{kind:"message",T:e1}}]);m.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:t1}]);const t1=m.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse.GenerateApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateApiKeyResponse_GenerateApiKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"token",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:n1}]);const n1=m.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse.RemoveApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveApiKeyResponse_RemoveApiKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.GetApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:a1}]);const a1=m.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse.GetApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyResponse_GetApiKeyResponseData"});m.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse",()=>[{no:1,name:"data",kind:"message",T:s1}]);const s1=m.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse.GetApiKeyStudioResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyStudioResponse_GetApiKeyStudioResponseData"});let Ia=0,Ir=[];function r1(){return Ia+=1,()=>{if(Ia-=1,Ia===0){let e=Ir;Ir=[];for(let t of e)t()}}}let i1=Symbol(),o1=Symbol(),Le=[],_t=(e,t)=>{let n=[],s={get(){return s.lc||s.listen(()=>{})(),s.value},l:t||0,lc:0,listen(a,o){return s.lc=n.push(a,o||s.l)/2,()=>{let u=n.indexOf(a);~u&&(n.splice(u,2),--s.lc||s.off())}},notify(a){let o=!Le.length;for(let u=0;u<n.length;u+=2)Le.push(n[u],n[u+1],s.value,a);if(o){for(let u=0;u<Le.length;u+=4){let c;for(let d=u+1;!c&&(d+=4)<Le.length;)Le[d]<Le[u+1]&&(c=Le.push(Le[u],Le[u+1],Le[u+2],Le[u+3]));c||Le[u](Le[u+2],Le[u+3])}Le.length=0}},off(){},set(a){s.value!==a&&(s.value=a,s.notify())},subscribe(a,o){let u=s.listen(a,o);return a(s.value),u},value:e};return s};const l1=0,c1=1,u1=2,m1=3,d1=5,Pn=6,p1=7,Un=10;let gn=(e,t,n,s)=>(e.events=e.events||{},e.events[n+Un]||(e.events[n+Un]=s(a=>{e.events[n].reduceRight((o,u)=>(u(o),o),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],o=a.indexOf(t);a.splice(o,1),a.length||(delete e.events[n],e.events[n+Un](),delete e.events[n+Un])}),f1=(e,t)=>gn(e,t,l1,n=>{let s=e.listen;return e.listen=a=>(!e.lc&&!e.starting&&(e.starting=!0,n(),delete e.starting),s(a)),()=>{e.listen=s}}),h1=(e,t)=>gn(e,t,c1,n=>{let s=e.off;return e.off=()=>{n(),s()},()=>{e.off=s}}),g1=(e,t)=>gn(e,t,u1,n=>{let s=e.set,a=e.setKey;return e.setKey&&(e.setKey=(o,u)=>{let c;if(n({abort:()=>{c=!0},changed:o,newValue:{...e.value,[o]:u}}),!c)return a(o,u)}),e.set=o=>{let u;if(n({abort:()=>{u=!0},newValue:o}),!u)return s(o)},()=>{e.set=s,e.setKey=a}}),y1=(e,t)=>gn(e,t,m1,n=>{let s=e.notify;return e.notify=a=>{let o;if(n({abort:()=>{o=!0},changed:a}),!o)return s(a)},()=>{e.notify=s}}),T1=1e3,Do=(e,t)=>gn(e,s=>{let a=t(s);a&&e.events[Pn].push(a)},d1,s=>{let a=e.listen;e.listen=(...u)=>(!e.lc&&!e.active&&(e.active=!0,s()),a(...u));let o=e.off;return e.events[Pn]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let u of e.events[Pn])u();e.events[Pn]=[]}},T1)},()=>{e.listen=a,e.off=o}}),k1=(e,t)=>gn(e,t,p1,n=>{let s={},a={},o=e.action;return e.action=(u,c,d)=>(n({actionName:c,args:d,id:u,onEnd:f=>{(a[u]||(a[u]=[])).push(f)},onError:f=>{(s[u]||(s[u]=[])).push(f)}}),[f=>{if(s[u])for(let g of s[u])g({error:f})},()=>{if(a[u]){for(let f of a[u])f();delete s[u],delete a[u]}}]),()=>{e.action=o}}),Vo=(e,t)=>{Array.isArray(e)||(e=[e]);let n,s=()=>{let o=e.map(u=>u.get());(n===void 0||o.some((u,c)=>u!==n[c]))&&(n=o,a.set(t(...o)))},a=_t(void 0,Math.max(...e.map(o=>o.l))+1);return Do(a,()=>{let o=e.map(u=>u.listen(s,a.l));return s(),()=>{for(let u of o)u()}}),a};function b1(e,t,n){let s=new Set([...t,void 0]);return e.listen((a,o)=>{s.has(o)&&n(a,o)})}let ds=(e={})=>{let t=_t(e);return t.setKey=function(n,s){typeof s>"u"?n in t.value&&(t.value={...t.value},delete t.value[n],t.notify(n)):t.value[n]!==s&&(t.value={...t.value,[n]:s},t.notify(n))},t};function nt(e,t={}){let n=Z.useCallback(a=>t.keys?b1(e,t.keys,a):e.listen(a),[t.keys,e]),s=e.get.bind(e);return Z.useSyncExternalStore(n,s,s)}const S1=e=>e.setKey===void 0,Nr=e=>/.+(\..+|\[\d+\.*])/.test(e);function E1(e,t,n,s){return Do(e,()=>(n.mount!==!1&&s.mount({storeName:t}),()=>{n.unmount!==!1&&s.unmount({storeName:t})}))}function v1(e,t,n,s){return k1(e,({actionName:a,args:o,id:u,onEnd:c,onError:d})=>{n&&n.includes(a)||(s.action.start({actionId:u,actionName:a,args:o,storeName:t}),d(({error:f})=>{s.action.error({actionId:u,actionName:a,error:f,storeName:t})}),c(()=>{s.action.end({actionId:u,actionName:a,storeName:t})}))})}function _1(e,t,n,s,a){return g1(e,({changed:o})=>{let u=e[o1],c=e[i1];if(n.action===!1&&u||s&&s.includes(c))return;let d=S1(e)?e.value:{...e.value};d=Nr(o)?structuredClone(d):d;let f=y1(e,()=>{let g=e.value,T;o&&!Nr(o)&&(T=`${d[o]} → ${g[o]}`),a.change({actionId:u,actionName:c,changed:o,newValue:g,oldValue:d,storeName:t,valueMessage:T}),f()})})}function w1(e,t,n,s={}){let a=s.ignoreActions,o=s.messages||{},u=[];return(o.mount!==!1||o.unmount!==!1)&&u.push(E1(e,t,o,n)),o.action!==!1&&u.push(v1(e,t,a,n)),o.change!==!1&&u.push(_1(e,t,o,a,n)),()=>{for(let c of u)c()}}const A1={Date:!0,RegExp:!0,String:!0,Number:!0};function jo(e,t,n={cyclesFix:!0},s=[]){var c,d;let a=[];const o=Array.isArray(e);for(const f in e){const g=e[f],T=o?+f:f;if(!(f in t)){a.push({type:"REMOVE",path:[T],oldValue:e[f]});continue}const y=t[f],b=typeof g=="object"&&typeof y=="object";if(g&&y&&b&&!A1[(d=(c=Object.getPrototypeOf(g))==null?void 0:c.constructor)==null?void 0:d.name]&&(!n.cyclesFix||!s.includes(g))){const A=jo(g,y,n,n.cyclesFix?s.concat([g]):[]);a.push.apply(a,A.map(R=>(R.path.unshift(T),R)))}else g!==y&&!(b&&(isNaN(g)?g+""==y+"":+g==+y))&&a.push({path:[T],type:"CHANGE",value:y,oldValue:g})}const u=Array.isArray(t);for(const f in t)f in e||a.push({type:"CREATE",path:[u?+f:f],value:t[f]});return a}window.slStore=Object.create(null);var Or;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM"})(Or||(Or={}));me.BETTING+"",me.GAMES+"",me.PUBLIC_CHAT+"",me.TWITTER+"";var Lt;(function(e){e.Ready="ready",e.Suspended="suspended"})(Lt||(Lt={}));const R1=({feature:e,sdk:t,children:n,className:s})=>{const a=nt(e.status),o=nt(t.sdkStore.slStreamId);return o!=null&&o.loading?S.jsx("div",{className:s,children:"event is loading..."}):o!=null&&o.data?a!==Lt.Ready?S.jsx("div",{className:s,children:"wait feature..."}):n:S.jsx("div",{className:s,children:"event is forbidden..."})},C1=Z.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),I1=({sdk:e,feature:t,className:n})=>{const s=Z.useMemo(()=>t&&t.featureConfig.get().type===me.GAMES?S.jsx(R1,{className:n,sdk:e,feature:t,children:S.jsx(C1,{className:n,gamification:t,sdk:e})}):null,[e,t,n]);return S.jsx(Z.Suspense,{fallback:S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:s})};function N1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var O1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Na=N1(function(e){return O1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L1=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},s=[];t.forEach(o=>{(o?o.split(" "):[]).forEach(c=>{if(c.startsWith("atm_")){const[,d]=c.split("_");n[d]=c}else s.push(c)})});const a=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&a.push(n[o]);return a.push(...s),a.join(" ")},ps=L1,x1=e=>e.toUpperCase()===e,M1=e=>t=>e.indexOf(t)===-1,Go=(e,t)=>{const n={};return Object.keys(e).filter(M1(t)).forEach(s=>{n[s]=e[s]}),n};function B1(e,t,n){const s=Go(t,n);if(!e){const a=typeof Na=="function"?{default:Na}:Na;Object.keys(s).forEach(o=>{a.default(o)||delete s[o]})}return s}var P1=(e,t)=>{};function U1(e){let t="";return n=>{const s=(o,u)=>{const{as:c=e,class:d=t}=o,f=n.propsAsIs===void 0?!(typeof c=="string"&&c.indexOf("-")===-1&&!x1(c[0])):n.propsAsIs,g=B1(f,o,["as","class"]);g.ref=u,g.className=n.atomic?ps(n.class,g.className||d):ps(g.className||d,n.class);const{vars:T}=n;if(T){const y={};for(const R in T){const N=T[R],_=N[0],I=N[1]||"",P=typeof _=="function"?_(o):_;P1(P,n.name),y[`--${R}`]=`${P}${I}`}const b=g.style||{},A=Object.keys(b);A.length>0&&A.forEach(R=>{y[R]=b[R]}),g.style=y}return e.__linaria&&e!==c?(g.as=c,Z.createElement(e,g)):Z.createElement(c,g)},a=Z.forwardRef?Z.forwardRef(s):o=>{const u=Go(o,["innerRef"]);return s(u,o.innerRef)};return a.displayName=n.name,a.__linaria={className:n.class||t,extends:e},a}}var O=U1;const F1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8 4L16 12L8 20",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),D1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"check"},C.createElement("path",{id:"Vector",d:"M4 13L9 18L20 6",stroke:"#107D57",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),V1=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{width:16,height:16,rx:8,fill:"#CD2525"}),C.createElement("rect",{x:5.5,y:4.66669,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(45 5.5 4.66669)",fill:"white"}),C.createElement("rect",{x:4.66669,y:10.5,width:8.24958,height:1.17851,rx:.589256,transform:"rotate(-45 4.66669 10.5)",fill:"white"})),j1=e=>C.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Frame 3469478"},C.createElement("path",{id:"Vector 4",d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),C.createElement("path",{id:"Vector 5",d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}))),G1=e=>C.createElement("svg",{width:64,height:65,viewBox:"0 0 64 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M43.852 8.90765C40.2818 7.13339 36.2575 6.13574 32.0002 6.13574C17.2726 6.13574 5.3335 18.0748 5.3335 32.8024C5.3335 47.53 17.2726 59.4691 32.0002 59.4691C46.7278 59.4691 58.6668 47.53 58.6668 32.8024C58.6668 31.8009 58.6116 30.8123 58.5041 29.8394M24.0002 30.1357L32.0002 38.1357L58.6668 11.4691",stroke:"#107D57",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})),q1=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),$1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Checkmark"},C.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",fill:"#FFFFFF"}))),H1=e=>C.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{id:"Icon / chevron.left",d:"M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",fill:"white",fillOpacity:.6})),z1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Chevron"},C.createElement("path",{id:"Chevron_2",d:"M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",fill:"white"}))),Q1=e=>C.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Chevron"},C.createElement("path",{id:"Chevron_2",d:"M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",fill:"#FFFFFF"}))),Y1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 -2.43189e-06C18.6274 -2.72158e-06 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 8.1423e-07 18.6274 5.24537e-07 12C2.34843e-07 5.37258 5.37258 -2.14219e-06 12 -2.43189e-06ZM11.9999 22.5883C17.8476 22.5883 22.5881 17.8478 22.5881 12.0001C22.5881 6.15238 17.8476 1.41187 11.9999 1.41187C6.15217 1.41187 1.41166 6.15239 1.41166 12.0001C1.41166 17.8478 6.15217 22.5883 11.9999 22.5883Z",fill:"white"}),C.createElement("path",{d:"M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",fill:"white"})),K1=e=>C.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1.62695 1.62598L10.3742 10.3745",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"}),C.createElement("path",{d:"M1.62695 10.376L10.3742 1.62746",stroke:"#6B6F73",strokeWidth:1.5,strokeLinecap:"round"})),W1=e=>C.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Group 465"},C.createElement("rect",{id:"Rectangle 368",x:1.25,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 1.25 0)",fill:"white"}),C.createElement("rect",{id:"Rectangle 369",y:8.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 0 8.75)",fill:"white"}))),Z1=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{y:.00195312,width:24,height:24,rx:12,fill:"#F80022"}),C.createElement("rect",{x:8.25,y:7.00195,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7.00195)",fill:"white"}),C.createElement("rect",{x:7,y:15.752,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.752)",fill:"white"})),J1=e=>C.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15.8 22.0002H6C4 22.0002 2.5 20.5002 2.5 18.5002V8.7002C2.5 6.8002 4 5.2002 6 5.2002H15.8C17.7 5.2002 19.3 6.7002 19.3 8.7002V18.5002C19.2 20.5002 17.7 22.0002 15.8 22.0002ZM6 7.3002C5.2 7.3002 4.5 7.9002 4.5 8.7002V18.5002C4.5 19.3002 5.2 20.0002 6 20.0002H15.8C16.6 20.0002 17.3 19.3002 17.3 18.5002V8.7002C17.3 7.9002 16.6 7.2002 15.8 7.2002H6V7.3002Z",fill:"#107D57"}),C.createElement("path",{d:"M21.5016 17.9C20.9016 17.9 20.5016 17.5 20.5016 16.9V6.3C20.5016 5 19.5016 4 18.2016 4H7.60157C7.00156 4 6.60156 3.6 6.60156 3C6.60156 2.4 7.00156 2 7.60157 2H18.2016C20.6016 2 22.5016 3.9 22.5016 6.3V16.9C22.5016 17.5 22.1016 17.9 21.5016 17.9Z",fill:"#107D57"})),X1=e=>C.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"CarbonUserAvatar 1"},C.createElement("g",{id:"Group 232"},C.createElement("path",{id:"Vector",d:"M19.9992 14.2861C19.2928 14.2861 18.6023 14.4956 18.015 14.888C17.4277 15.2805 16.9699 15.8382 16.6996 16.4908C16.4293 17.1434 16.3586 17.8615 16.4964 18.5543C16.6342 19.2471 16.9743 19.8835 17.4738 20.3829C17.9733 20.8824 18.6096 21.2226 19.3024 21.3604C19.9952 21.4982 20.7133 21.4274 21.3659 21.1571C22.0185 20.8868 22.5763 20.4291 22.9687 19.8417C23.3611 19.2544 23.5706 18.5639 23.5706 17.8576C23.5706 16.9104 23.1943 16.002 22.5245 15.3322C21.8548 14.6624 20.9464 14.2861 19.9992 14.2861ZM19.9992 20.0004C19.5753 20.0004 19.161 19.8747 18.8087 19.6393C18.4563 19.4038 18.1816 19.0692 18.0194 18.6776C17.8572 18.286 17.8148 17.8552 17.8975 17.4395C17.9802 17.0238 18.1843 16.642 18.4839 16.3423C18.7836 16.0426 19.1654 15.8386 19.5811 15.7559C19.9968 15.6732 20.4276 15.7156 20.8192 15.8778C21.2108 16.04 21.5454 16.3147 21.7809 16.6671C22.0163 17.0194 22.142 17.4337 22.142 17.8576C22.1415 18.4257 21.9155 18.9704 21.5138 19.3722C21.112 19.7739 20.5673 19.9999 19.9992 20.0004Z",fill:"white"}),C.createElement("path",{id:"Vector_2",d:"M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",fill:"white"})))),ep=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{width:24,height:24,rx:12,fill:"white",fillOpacity:.1}),C.createElement("rect",{x:8.25,y:7,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(45 8.25 7)",fill:"white"}),C.createElement("rect",{x:7,y:15.75,width:12.3744,height:1.76777,rx:.883884,transform:"rotate(-45 7 15.75)",fill:"white"})),tp=e=>C.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M9.16683 2.66671H7.16683C5.29999 2.66671 4.36657 2.66671 3.65353 3.03002C3.02632 3.3496 2.51639 3.85953 2.19681 4.48674C1.8335 5.19978 1.8335 6.1332 1.8335 8.00004V9.33337C1.8335 11.2002 1.8335 12.1336 2.19681 12.8467C2.51639 13.4739 3.02632 13.9838 3.65353 14.3034C4.36657 14.6667 5.29999 14.6667 7.16683 14.6667H8.50016C10.367 14.6667 11.3004 14.6667 12.0135 14.3034C12.6407 13.9838 13.1506 13.4739 13.4702 12.8467C13.8335 12.1336 13.8335 11.2002 13.8335 9.33337V7.33337M8.50016 8.00004L15.1668 1.33337M15.1668 1.33337H11.8335M15.1668 1.33337V4.66671",stroke:"#107D57",strokeLinecap:"round",strokeLinejoin:"round"})),np=e=>C.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{x:.5,width:40,height:40,rx:8,fill:"#F2F2F1"}),C.createElement("path",{d:"M22.49 31.4288V21.0023H25.9898L26.5137 16.939H22.49V14.3446C22.49 13.1682 22.8167 12.3664 24.5039 12.3664L26.6556 12.3654V8.73123C26.2833 8.68189 25.0061 8.57129 23.5202 8.57129C20.4179 8.57129 18.294 10.4648 18.294 13.9424V16.9391H14.7852V21.0024H18.2939V31.4289L22.49 31.4288Z",fill:"#3C5A9A"})),ap=e=>C.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{width:32,height:32,rx:16,fill:"white"}),C.createElement("path",{d:"M10.4615 12.6875C9.44231 12.6875 8.61538 13.4665 8.61538 14.4266C8.61538 15.3868 9.44231 16.1658 10.4615 16.1658C11.4808 16.1658 12.3077 15.3868 12.3077 14.4266C12.3077 13.4665 11.4808 12.6875 10.4615 12.6875ZM10.4615 16.1658C9.10817 16.1658 8 17.2097 8 18.4846V19.7527C8 19.7527 8.61538 20.2237 10.4615 20.2237C12.3077 20.2237 12.9231 19.7527 12.9231 19.7527V18.4846C12.9231 17.2097 11.8149 16.1658 10.4615 16.1658ZM21.5385 12.6875C20.5192 12.6875 19.6923 13.4665 19.6923 14.4266C19.6923 15.3868 20.5192 16.1658 21.5385 16.1658C22.5577 16.1658 23.3846 15.3868 23.3846 14.4266C23.3846 13.4665 22.5577 12.6875 21.5385 12.6875ZM21.5385 16.1658C20.1851 16.1658 19.0769 17.2097 19.0769 18.4846V19.7527C19.0769 19.7527 19.6923 20.2237 21.5385 20.2237C23.3846 20.2237 24 19.7527 24 19.7527V18.4846C24 17.2097 22.8918 16.1658 21.5385 16.1658ZM16 15.0063C14.9808 15.0063 14.1538 15.7853 14.1538 16.7455C14.1538 17.7056 14.9808 18.4846 16 18.4846C17.0192 18.4846 17.8462 17.7056 17.8462 16.7455C17.8462 15.7853 17.0192 15.0063 16 15.0063ZM16 18.4846C14.6466 18.4846 13.5385 19.5285 13.5385 20.8034V22.0715C13.5385 22.0715 14.1538 22.5425 16 22.5425C17.8462 22.5425 18.4615 22.0715 18.4615 22.0715V20.8034C18.4615 19.5285 17.3534 18.4846 16 18.4846Z",fill:"#107D57"}),C.createElement("path",{opacity:.5,d:"M13.3908 9C12.3103 9 11.4336 9.82584 11.4336 10.8437C11.4336 11.8616 12.3103 12.6875 13.3908 12.6875C14.4713 12.6875 15.348 11.8616 15.348 10.8437C15.348 9.82584 14.4713 9 13.3908 9ZM13.3908 12.6875C13.1946 12.6875 12.9958 12.6827 12.7996 12.7451C13.192 13.2372 13.3908 13.8542 13.3908 14.5312C13.3908 14.7761 13.3296 15.0161 13.3296 15.261C13.8521 14.524 14.6956 14.0391 15.6742 13.9166C15.218 13.1796 14.3694 12.6875 13.3908 12.6875ZM18.61 9C17.5295 9 16.6528 9.82584 16.6528 10.8437C16.6528 11.8616 17.5295 12.6875 18.61 12.6875C19.6905 12.6875 20.5672 11.8616 20.5672 10.8437C20.5672 9.82584 19.6905 9 18.61 9ZM18.61 12.6875C17.6314 12.6875 16.7828 13.1796 16.3266 13.9166C17.3052 14.0391 18.1487 14.524 18.6712 15.261C18.6712 15.0161 18.61 14.7761 18.61 14.5312C18.61 13.8542 18.8088 13.2372 19.2012 12.7451C19.005 12.6827 18.8062 12.6875 18.61 12.6875Z",fill:"#107D57"})),sp=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Share"},C.createElement("path",{id:"Vector",d:"M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",fill:"white"}))),rp=e=>C.createElement("svg",{width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"sc-ANdsN kTVWJE",...e},C.createElement("path",{d:"M6.6665 3.16669H4.99984C4.26346 3.16669 3.6665 3.76364 3.6665 4.50002V11.5C3.6665 12.2364 4.26346 12.8334 4.99984 12.8334H11.9998C12.7362 12.8334 13.3332 12.2364 13.3332 11.5V9.83335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M13.3335 6.16669V3.16669H10.3335",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{d:"M13.1668 3.33331L8.3335 8.16665",stroke:"#ffffff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ip=e=>C.createElement("svg",{width:17,height:18,viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Group"},C.createElement("path",{id:"Vector",d:"M12.5396 12.431L15.8603 9.00169L12.5396 5.57239",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{id:"Vector_2",d:"M15.8602 9.00159H5.57227",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),C.createElement("path",{id:"Vector_3",d:"M12.431 1L3.2862 1.00229C2.02422 1.00343 1 2.02651 1 3.28849V14.7138C1 15.3201 1.24087 15.9016 1.66961 16.3304C2.09836 16.7591 2.67987 17 3.2862 17H12.5396",stroke:"#EB5757",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),op=e=>C.createElement("svg",{width:99,height:96,viewBox:"0 0 99 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Masters Logo Big"},C.createElement("path",{id:"Vector",d:"M67.4732 4.82378C66.1754 4.41151 64.8776 5.1433 63.5798 5.88539C63.117 6.15337 62.7951 6.60687 62.6844 7.13253L60.6421 16.9035C60.5616 17.2642 60.8836 17.594 61.2357 17.5116C63.3786 17.0065 65.4208 15.0894 67.5738 15.7594C69.9783 16.5118 72.3928 13.3888 74.7972 13.43V2.1543C72.3626 2.1646 69.8776 5.57618 67.4732 4.82378Z",fill:"white"}),C.createElement("path",{id:"Vector_2",d:"M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",fill:"white"}))),lp=e=>C.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("circle",{opacity:.5,cx:24,cy:24.001,r:24,fill:"black"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5432 24.7938C33.215 24.3331 33.2822 23.5173 32.5432 23.0567C23.7807 17.6245 19.6442 14.918 19.1356 14.5917C18.3486 14.083 17.6 14.6973 17.6 15.2059V32.7501C17.6 33.3259 18.5309 33.8442 19.1356 33.4795C20.2201 32.8172 31.8714 25.2641 32.5336 24.8034L32.5432 24.7938Z",fill:"white"})),cp=e=>C.createElement("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{id:"Start - You",d:"M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",fill:"#F4D22A"})),up=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,viewBox:"0 0 22 22",fill:"none",...e},C.createElement("path",{d:"M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",fill:"white"})),mp=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M17.4777 8.95762C17.4777 8.70612 17.4177 8.47012 17.3172 8.25562C16.6467 6.09262 13.5077 6.25062 9.04275 6.14512C8.29625 6.12762 8.72325 5.24612 8.98525 3.31112C9.15575 2.05262 8.34425 0.120117 6.98025 0.120117C4.73125 0.120117 6.89475 1.89412 4.90625 6.28112C3.84375 8.62512 1.46875 7.31212 1.46875 9.66662V15.0261C1.46875 15.9426 1.55875 16.8236 2.84775 16.9686C4.09725 17.1091 3.81625 17.9996 5.61875 17.9996H14.6407C15.5597 17.9996 16.3072 17.2516 16.3072 16.3326C16.3072 15.9516 16.1737 15.6046 15.9582 15.3236C16.4682 15.0381 16.8182 14.4991 16.8182 13.8741C16.8182 13.4941 16.6852 13.1471 16.4702 12.8666C16.9817 12.5816 17.3327 12.0421 17.3327 11.4161C17.3327 10.9616 17.1487 10.5496 16.8522 10.2481C17.2307 9.94262 17.4777 9.48062 17.4777 8.95762Z",fill:"white"}),C.createElement("path",{d:"M11.5088 10.625H15.8108C16.3958 10.625 16.9448 10.312 17.2438 9.80849C17.3668 9.60099 17.2983 9.33249 17.0903 9.20899C16.8828 9.08549 16.6143 9.15499 16.4908 9.36249C16.3493 9.60199 16.0878 9.74999 15.8103 9.74999H11.4053C10.9688 9.74999 10.6138 9.39499 10.6138 8.95849C10.6138 8.52199 10.9688 8.16699 11.4053 8.16699H14.3488C14.5903 8.16699 14.7863 7.97099 14.7863 7.72949C14.7863 7.48799 14.5903 7.29199 14.3488 7.29199H11.4048C10.4858 7.29199 9.73828 8.03949 9.73828 8.95849C9.73828 9.47099 9.97578 9.92449 10.3408 10.2305C10.0333 10.533 9.84178 10.953 9.84178 11.417C9.84178 11.931 10.0808 12.386 10.4478 12.6915C10.1423 12.9935 9.95278 13.412 9.95278 13.875C9.95278 14.435 10.2323 14.929 10.6573 15.2315C10.3953 15.526 10.2313 15.9095 10.2313 16.3335C10.2313 17.2525 10.9788 18 11.8978 18H14.6398C15.2248 18 15.7743 17.6875 16.0733 17.184C16.1968 16.9765 16.1283 16.708 15.9208 16.5845C15.7128 16.462 15.4443 16.5295 15.3213 16.737C15.1788 16.9765 14.9173 17.125 14.6398 17.125H11.8978C11.4613 17.125 11.1063 16.77 11.1063 16.3335C11.1063 15.897 11.4613 15.542 11.8978 15.542H15.1508C15.7358 15.542 16.2858 15.229 16.5843 14.7255C16.7078 14.5175 16.6393 14.249 16.4318 14.126C16.2223 14.0005 15.9548 14.071 15.8323 14.2785C15.6878 14.522 15.4328 14.667 15.1508 14.667H11.6193C11.1828 14.667 10.8278 14.3115 10.8278 13.875C10.8278 13.4385 11.1828 13.0835 11.6193 13.0835H15.6648C16.2498 13.0835 16.7993 12.771 17.0983 12.2675C17.2218 12.06 17.1533 11.7915 16.9458 11.668C16.7373 11.545 16.4693 11.613 16.3463 11.8205C16.2018 12.0635 15.9468 12.2085 15.6648 12.2085H11.5088C11.0723 12.2085 10.7173 11.8535 10.7173 11.417C10.7173 10.9805 11.0718 10.625 11.5088 10.625Z",fill:"#107D57"})),dp=e=>C.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Trophy"},C.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",fill:"white"}))),pp=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Trophy"},C.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M3.69197 4.66662C3.69197 5.99705 3.92914 7.17787 4.4035 8.20912C3.49966 8.02451 2.74487 7.66486 2.1391 7.13014C1.53333 6.59542 1.23046 6.0798 1.23046 5.58328V4.66662H3.69197ZM14.7686 4.66662V5.58328C14.7686 6.0798 14.4658 6.59542 13.86 7.13014C13.2542 7.66486 12.4994 8.02451 11.5956 8.20912C12.0699 7.17787 12.3071 5.99705 12.3071 4.66662H14.7686ZM15.9998 5.58329V4.36108C15.9998 4.10645 15.9101 3.89002 15.7306 3.71178C15.5511 3.53354 15.3332 3.44442 15.0768 3.44442H12.3076V2.52776C12.3076 2.10763 12.1569 1.74797 11.8556 1.44878C11.5544 1.14959 11.1922 1 10.7691 1H5.23072C4.80764 1 4.44547 1.14959 4.14419 1.44878C3.84291 1.74797 3.69227 2.10763 3.69227 2.52776V3.44442H0.923068C0.666659 3.44442 0.448714 3.53354 0.269228 3.71178C0.0897418 3.89002 0 4.10645 0 4.36108V5.58329C0 6.03525 0.13301 6.49039 0.399034 6.94872C0.665059 7.40705 1.02403 7.82082 1.47595 8.19003C1.92787 8.55924 2.48234 8.86957 3.13939 9.12101C3.79644 9.37246 4.48713 9.51409 5.21149 9.54592C5.48071 9.88967 5.7852 10.192 6.12494 10.453C6.36853 10.6695 6.53679 10.9002 6.62974 11.1453C6.72269 11.3904 6.76916 11.6752 6.76916 11.9999C6.76916 12.3436 6.67141 12.6333 6.4759 12.8688C6.28038 13.1043 5.96789 13.2221 5.53841 13.2221C5.05764 13.2221 4.62976 13.3669 4.25476 13.6566C3.87977 13.9462 3.69227 14.3106 3.69227 14.7499V15.361C3.69227 15.4501 3.72112 15.5233 3.77881 15.5806C3.8365 15.6379 3.91022 15.6665 3.99996 15.6665H11.9999C12.0896 15.6665 12.1633 15.6379 12.221 15.5806C12.2787 15.5233 12.3076 15.4501 12.3076 15.361V14.7499C12.3076 14.3106 12.1201 13.9462 11.7451 13.6566C11.3701 13.3669 10.9422 13.2221 10.4614 13.2221C10.0319 13.2221 9.71945 13.1043 9.52394 12.8688C9.32843 12.6333 9.23068 12.3436 9.23068 11.9999C9.23068 11.6752 9.27715 11.3904 9.3701 11.1453C9.46305 10.9002 9.63131 10.6695 9.8749 10.453C10.2146 10.192 10.5191 9.88967 10.7884 9.54592C11.5127 9.51409 12.2034 9.37246 12.8604 9.12101C13.5175 8.86957 14.072 8.55924 14.5239 8.19003C14.9758 7.82082 15.3348 7.40705 15.6008 6.94872C15.8668 6.49039 15.9998 6.03525 15.9998 5.58329ZM6.76047 7.1798L8.05109 6.49997L9.3417 7.1798L9.09521 5.73989L10.1393 4.72015L8.69639 4.51007L8.05109 3.2L7.40578 4.51007L5.96283 4.72015L7.00696 5.73989L6.76047 7.1798Z",fill:"#F2C94C"}))),fp=e=>C.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9234 2.06117C12.6527 2.79041 12.797 3.88306 12.3564 4.75616L12.3698 4.78833C13.2984 5.09432 13.9688 5.96888 13.9688 7C13.9688 8.03112 13.2984 8.90568 12.3698 9.21167L12.3565 9.24364C12.7971 10.1167 12.6527 11.2094 11.9235 11.9386C11.1944 12.6678 10.1019 12.8122 9.22883 12.3718L9.19604 12.3854C8.89006 13.314 8.0155 13.9844 6.98438 13.9844C5.95325 13.9844 5.07869 13.314 4.77271 12.3854L4.74027 12.3719C3.8673 12.8121 2.77506 12.6676 2.04603 11.9386C1.31703 11.2096 1.17255 10.1174 1.61259 9.24445L1.59899 9.21167C0.670333 8.90568 0 8.03112 0 7C0 5.96888 0.670334 5.09432 1.59899 4.78833L1.61267 4.75535C1.17263 3.8824 1.31711 2.79023 2.04611 2.06123C2.77519 1.33215 3.86754 1.18772 4.74054 1.62795L4.77271 1.61461C5.07869 0.685958 5.95325 0.015625 6.98438 0.015625C8.0155 0.015625 8.89006 0.685958 9.19604 1.61461L9.22857 1.6281C10.1016 1.18761 11.1942 1.33196 11.9234 2.06117ZM9.80606 4.98029C9.97643 4.7077 9.89356 4.34862 9.62098 4.17825C9.34839 4.00788 8.98931 4.09075 8.81894 4.36333L6.29655 8.39915L5.06781 7.17041C4.84051 6.94311 4.47199 6.94311 4.24469 7.17041C4.01739 7.39771 4.01739 7.76623 4.24469 7.99353L5.99079 9.73962C6.11621 9.86504 6.29197 9.92642 6.4682 9.90635C6.64444 9.88628 6.8019 9.78695 6.89591 9.63654L9.80606 4.98029Z",fill:"#0092E9"})),hp=e=>C.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("rect",{x:.5,width:40,height:40,rx:8,fill:"#F2F2F1"}),C.createElement("path",{d:"M11.0631 10.8037L18.5858 20.8464L11.0156 29.0115H12.7194L19.3471 21.8628L24.7021 29.0115H30.5L22.554 18.4039L29.6003 10.8037H27.8966L21.7928 17.3875L16.8611 10.8037H11.0631ZM13.5686 12.0567H16.2322L27.9941 27.7583H25.3305L13.5686 12.0567Z",fill:"black"})),gp=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"cross"},C.createElement("path",{id:"Vector",d:"M6 18L18 6M6 6L18 18",stroke:"#BA0C2F",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),yp=e=>C.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Friends"},C.createElement("path",{id:"Vector",d:"M4.19231 7.03125C2.66346 7.03125 1.42308 8.19973 1.42308 9.63994C1.42308 11.0802 2.66346 12.2486 4.19231 12.2486C5.72115 12.2486 6.96154 11.0802 6.96154 9.63994C6.96154 8.19973 5.72115 7.03125 4.19231 7.03125ZM4.19231 12.2486C2.16226 12.2486 0.5 13.8145 0.5 15.7269V17.629C0.5 17.629 1.42308 18.3356 4.19231 18.3356C6.96154 18.3356 7.88461 17.629 7.88461 17.629V15.7269C7.88461 13.8145 6.22236 12.2486 4.19231 12.2486ZM20.8077 7.03125C19.2788 7.03125 18.0385 8.19973 18.0385 9.63994C18.0385 11.0802 19.2788 12.2486 20.8077 12.2486C22.3365 12.2486 23.5769 11.0802 23.5769 9.63994C23.5769 8.19973 22.3365 7.03125 20.8077 7.03125ZM20.8077 12.2486C18.7776 12.2486 17.1154 13.8145 17.1154 15.7269V17.629C17.1154 17.629 18.0385 18.3356 20.8077 18.3356C23.5769 18.3356 24.5 17.629 24.5 17.629V15.7269C24.5 13.8145 22.8377 12.2486 20.8077 12.2486ZM12.5 10.5095C10.9712 10.5095 9.73077 11.678 9.73077 13.1182C9.73077 14.5584 10.9712 15.7269 12.5 15.7269C14.0288 15.7269 15.2692 14.5584 15.2692 13.1182C15.2692 11.678 14.0288 10.5095 12.5 10.5095ZM12.5 15.7269C10.47 15.7269 8.80769 17.2928 8.80769 19.2051V21.1073C8.80769 21.1073 9.73077 21.8138 12.5 21.8138C15.2692 21.8138 16.1923 21.1073 16.1923 21.1073V19.2051C16.1923 17.2928 14.53 15.7269 12.5 15.7269Z",fill:"white"}),C.createElement("path",{id:"Vector_2",d:"M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",fill:"white",fillOpacity:.4}))),Tp=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Group 483737"},C.createElement("g",{id:"Icon / Live"},C.createElement("path",{id:"circle-path",fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9C17 13.4183 13.4183 17 9 17Z",stroke:"#107D57"}),C.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",fill:"#107D57"})))),kp=e=>C.createElement("svg",{width:14,height:17,viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Icon / Games"},C.createElement("path",{id:"Icon / Games_2",d:"M6.27412 2.68557L6.27411 2.68557C5.62309 2.63368 5.0525 3.12172 5.00064 3.7713L5.00064 3.77134L4.14164 14.5465C4.14163 14.5465 4.14163 14.5465 4.14163 14.5465C4.08978 15.1963 4.57588 15.7681 5.22739 15.82C5.22741 15.82 5.22742 15.82 5.22744 15.82L11.3107 16.3052L11.3108 16.3052C11.9618 16.3571 12.5324 15.869 12.5842 15.2194L12.5842 15.2194L13.4432 4.4443C13.4951 3.79528 13.0091 3.22266 12.3575 3.17076C12.3575 3.17076 12.3574 3.17076 12.3574 3.17076L6.27412 2.68557ZM8.15378 7.95339C8.06822 8.08171 8.00584 8.22011 7.96597 8.36701L7.39679 8.32084C7.47153 7.93067 7.63452 7.64794 7.86868 7.44845C8.15963 7.20058 8.54037 7.08303 9.04377 7.12388C9.36277 7.14976 9.62596 7.23281 9.84206 7.36455L9.84205 7.36458L9.84603 7.36693C10.0639 7.49535 10.2189 7.65832 10.3213 7.85605C10.4234 8.05317 10.4683 8.27793 10.4483 8.53948C10.4345 8.71901 10.392 8.86521 10.3278 8.98465L10.3277 8.98461L10.3242 8.99151C10.2546 9.12905 10.1759 9.23612 10.0908 9.31799L10.0907 9.31793L10.0855 9.32326C9.98974 9.41994 9.85909 9.53313 9.69013 9.66317C9.48159 9.8217 9.31317 9.96772 9.19518 10.0999L9.19509 10.0998L9.18961 10.1063C9.10272 10.2092 9.04052 10.3244 9.00219 10.449L8.46556 10.4054C8.49427 10.3132 8.5356 10.2357 8.58714 10.17C8.70826 10.0178 8.8862 9.84033 9.1277 9.63726C9.33755 9.46764 9.50811 9.30895 9.63088 9.16198L9.39343 8.96362L9.63088 9.16198C9.77451 8.99005 9.86011 8.79 9.87715 8.56784C9.89609 8.32086 9.82923 8.08941 9.6571 7.90614C9.48861 7.71582 9.25493 7.62752 9.00193 7.60699L8.97691 7.91539L9.00193 7.60699C8.67115 7.58016 8.35479 7.66584 8.15766 7.94771L8.1576 7.94766L8.15378 7.95339ZM8.84046 11.5393L8.84024 11.5394L8.84882 11.5493C8.9033 11.6122 8.9274 11.681 8.92009 11.7763C8.91337 11.8639 8.88049 11.9307 8.81121 11.9916L8.81117 11.9915L8.8063 11.996C8.74838 12.0491 8.68489 12.0727 8.59225 12.0652C8.49804 12.0575 8.43752 12.0248 8.38914 11.9687C8.34013 11.9019 8.31721 11.826 8.32494 11.7253L8.01644 11.7016L8.32494 11.7253C8.33288 11.6218 8.36807 11.5555 8.42399 11.5042L8.2147 11.2763L8.42377 11.5044C8.48168 11.4513 8.54518 11.4277 8.63782 11.4352C8.73051 11.4427 8.79051 11.4764 8.84046 11.5393Z",stroke:"#107D57",strokeWidth:.618817}),C.createElement("path",{id:"Icon / Games_3",d:"M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",fill:"#107D57"}))),bp=e=>C.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Icon / LeaderBoard"},C.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",fill:"#107D57"}))),Sp=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"check"},C.createElement("path",{id:"Vector",d:"M3.59985 10.8L7.59985 14.8L16.3999 5.20001",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),Ep=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"cross"},C.createElement("path",{id:"Vector",d:"M5.19995 14.8L14.8 5.20001M5.19995 5.20001L14.8 14.8",stroke:"white",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}))),vp=e=>C.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2.46154C8.52291 2.46154 2.46154 8.52291 2.46154 16C2.46154 23.4771 8.52291 29.5385 16 29.5385C23.4771 29.5385 29.5385 23.4771 29.5385 16C29.5385 8.52291 23.4771 2.46154 16 2.46154ZM0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",fill:"#FFB600"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8.20513C16.6797 8.20513 17.2308 8.75616 17.2308 9.4359V17.641C17.2308 18.3208 16.6797 18.8718 16 18.8718C15.3203 18.8718 14.7692 18.3208 14.7692 17.641V9.4359C14.7692 8.75616 15.3203 8.20513 16 8.20513Z",fill:"#FFB600"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7692 22.5641C14.7692 21.8844 15.3203 21.3333 16 21.3333H16.0164C16.6961 21.3333 17.2472 21.8844 17.2472 22.5641C17.2472 23.2438 16.6961 23.7949 16.0164 23.7949H16C15.3203 23.7949 14.7692 23.2438 14.7692 22.5641Z",fill:"#FFB600"})),_p=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Icon/Insight"},C.createElement("path",{id:"Fill-1",fillRule:"evenodd",clipRule:"evenodd",d:"M9.3336 9.33644C8.59749 10.0725 7.40264 10.0725 6.66652 9.33644C5.93041 8.60039 5.93041 7.40565 6.66652 6.6696C7.40264 5.93355 8.59749 5.93355 9.3336 6.6696C10.0697 7.40565 10.0697 8.60039 9.3336 9.33644Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-3",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 12.3306C11.7818 12.8833 10.8863 12.8827 10.3342 12.3306C9.78211 11.7786 9.78145 10.8832 10.3342 10.3305C10.8869 9.77781 11.7824 9.77847 12.3345 10.3305C12.8866 10.8825 12.8873 11.7779 12.3345 12.3306Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 5.66365C5.11311 6.21635 4.21831 6.21635 3.66556 5.66365C3.11281 5.11094 3.11281 4.21622 3.66556 3.66352C4.21831 3.11081 5.11311 3.11081 5.66586 3.66352C6.21861 4.21622 6.21861 5.11094 5.66586 5.66365Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.3345 5.66365C11.7818 6.21635 10.8869 6.21635 10.3342 5.66365C9.78145 5.11094 9.78145 4.21622 10.3342 3.66352C10.8869 3.11081 11.7818 3.11081 12.3345 3.66352C12.8873 4.21622 12.8873 5.11094 12.3345 5.66365Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-9",fillRule:"evenodd",clipRule:"evenodd",d:"M5.66586 12.3306C5.11378 12.8827 4.21831 12.8833 3.66556 12.3306C3.11281 11.7779 3.11347 10.8825 3.66556 10.3305C4.21764 9.77847 5.11311 9.77781 5.66586 10.3305C6.21861 10.8832 6.21795 11.7786 5.66586 12.3306Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-11",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 1.99964C8.29877 2.36766 7.70135 2.36766 7.33329 1.99964C6.96524 1.63162 6.96524 1.03425 7.33329 0.666221C7.70135 0.298198 8.29877 0.298198 8.66683 0.666221C9.03489 1.03425 9.03489 1.63162 8.66683 1.99964Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-13",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.66676C14.9652 9.03478 14.3684 9.03545 13.9997 8.66675C13.631 8.29806 13.6316 7.70136 13.9997 7.33334C14.3677 6.96531 14.9645 6.96464 15.3332 7.33334C15.7019 7.70203 15.7013 8.29873 15.3332 8.66676Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-15",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M8.66683 15.3339C8.29811 15.7026 7.70202 15.7026 7.33329 15.3339C6.96457 14.9652 6.96457 14.3691 7.33329 14.0004C7.70202 13.6318 8.29811 13.6318 8.66683 14.0005C9.03555 14.3691 9.03555 14.9652 8.66683 15.3339Z",fill:"#107D57"}),C.createElement("path",{id:"Fill-17",opacity:.5,fillRule:"evenodd",clipRule:"evenodd",d:"M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",fill:"#107D57"}))),wp=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Poll"},C.createElement("path",{id:"Notification/Icon/Poll",fillRule:"evenodd",clipRule:"evenodd",d:"M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",fill:"white",fillOpacity:.5}))),Ap=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Icon/Notification/Prediciton"},C.createElement("path",{id:"Icon/Prediction",fillRule:"evenodd",clipRule:"evenodd",d:"M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",fill:"white",fillOpacity:.5}))),Rp=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("g",{id:"Icon/Notification/Trivia"},C.createElement("path",{id:"Notification/Icon/Trivia",fillRule:"evenodd",clipRule:"evenodd",d:"M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",fill:"white",fillOpacity:.5}))),Cp=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{id:"Selected",fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",fill:"#107D57"})),Lr={"invite-game-icon":yp,"icon-trophy":pp,"icon-trophy-green":dp,"icon-trivia":Rp,"icon-thumb-down":up,"icon-thumb-up":mp,"icon-star":cp,"icon-prediction":Ap,"icon-insight":_p,"icon-poll":wp,"icon-play":lp,"icon-masters-logo":op,"icon-logout":ip,"icon-link":rp,"icon-external-link":tp,"icon-invite-arrow":sp,"icon-friends":ap,"icon-exit":ep,"icon-default-user-avatar":X1,"icon-copy":J1,"icon-cross":j1,"icon-close":Z1,"icon-close-btn-white":W1,"icon-close-btn-gray":K1,"icon-circle-arrow-right":Y1,"icon-chevron":Q1,"icon-chevron-white-left":z1,"icon-chevron-left":H1,"icon-check":D1,"icon-check-white":$1,"icon-check-green":q1,"icon-check-circle":G1,"icon-btn-channels":Tp,"icon-btn-feature-groups":kp,"icon-btn-leaderboard":bp,"icon-arrow":F1,"icon-facebook":np,"icon-twitter":hp,"icon-twitter-verified":fp,correct:Sp,incorrect:Ep,questionExpired:vp,selected:Cp,circleClose:V1,incorrectVoted:gp},Ne=({name:e,style:t,className:n,...s})=>{if(!Lr[e])return S.jsx("span",{children:e});const a=Lr[e];return S.jsx(a,{style:t,className:n,...s})},Ip=O("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),Np=O("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),Op=O("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),qs=({disabled:e,active:t,onClick:n,label:s,icon:a})=>S.jsx(Ip,{onClick:n,disabled:e,"data-selected":t,children:S.jsxs(S.Fragment,{children:[a&&S.jsx(Np,{children:a}),S.jsx(Op,{children:s})]})}),Lp=()=>Ne,xp=O(Lp())({name:"ButtonIcon",class:"b1whzxvd",propsAsIs:!0}),sn="channels",Mp=e=>{var t;return S.jsx(qs,{...e,id:"channels",label:"Channels",icon:S.jsx(xp,{name:"icon-btn-channels","data-selected":(t=e.active)==null?void 0:t.toString()})})},Bp=()=>Ne,Pp=O(Bp())({name:"ButtonIcon",class:"b11des7c",propsAsIs:!0}),xt="featuredGroups",Up=e=>{var t;return S.jsx(qs,{...e,label:"FG+",id:"featuredGroups",icon:S.jsx(Pp,{name:"icon-btn-feature-groups","data-selected":(t=e.active)==null?void 0:t.toString()})})},Fp=()=>Ne,Dp=O(Fp())({name:"ButtonIcon",class:"b180jd7l",propsAsIs:!0}),Xn="leaderboard",Vp=e=>{var t;return S.jsx(qs,{...e,label:"Leader Board",id:"leaderboard",icon:S.jsx(Dp,{name:"icon-btn-leaderboard","data-selected":(t=e.active)==null?void 0:t.toString()})})},jp=O("div")({name:"Buttons",class:"b6tbwuy",propsAsIs:!1}),Gp=({children:e,className:t})=>S.jsx(jp,{className:t,children:e}),qp=()=>Gp,$p=O(qp())({name:"Navigation",class:"n19lpak2",propsAsIs:!0}),Hp=({activeOverlay:e,setActiveOverlay:t,sdkReady:n,className:s})=>S.jsxs($p,{className:s,children:[S.jsx(Mp,{active:e===sn,onClick:()=>t(sn)}),S.jsx(Up,{active:e===xt,disabled:!n,onClick:()=>{t(xt)}}),S.jsx(Vp,{active:e===Xn,onClick:()=>t(Xn)})]});var $s={exports:{}};function zp(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var Qp=Yp;function Yp(e,t,n){var s=n&&n.stringify||zp,a=1;if(typeof e=="object"&&e!==null){var o=t.length+a;if(o===1)return e;var u=new Array(o);u[0]=s(e);for(var c=1;c<o;c++)u[c]=s(t[c]);return u.join(" ")}if(typeof e!="string")return e;var d=t.length;if(d===0)return e;for(var f="",g=1-a,T=-1,y=e&&e.length||0,b=0;b<y;){if(e.charCodeAt(b)===37&&b+1<y){switch(T=T>-1?T:0,e.charCodeAt(b+1)){case 100:case 102:if(g>=d||t[g]==null)break;T<b&&(f+=e.slice(T,b)),f+=Number(t[g]),T=b+2,b++;break;case 105:if(g>=d||t[g]==null)break;T<b&&(f+=e.slice(T,b)),f+=Math.floor(Number(t[g])),T=b+2,b++;break;case 79:case 111:case 106:if(g>=d||t[g]===void 0)break;T<b&&(f+=e.slice(T,b));var A=typeof t[g];if(A==="string"){f+="'"+t[g]+"'",T=b+2,b++;break}if(A==="function"){f+=t[g].name||"<anonymous>",T=b+2,b++;break}f+=s(t[g]),T=b+2,b++;break;case 115:if(g>=d)break;T<b&&(f+=e.slice(T,b)),f+=String(t[g]),T=b+2,b++;break;case 37:T<b&&(f+=e.slice(T,b)),f+="%",T=b+2,b++,g--;break}++g}++b}return T===-1?e:(T<y&&(f+=e.slice(T)),f)}const xr=Qp;$s.exports=gt;const In=uf().console||{},Kp={mapHttpRequest:Fn,mapHttpResponse:Fn,wrapRequestSerializer:Oa,wrapResponseSerializer:Oa,wrapErrorSerializer:Oa,req:Fn,res:Fn,err:Br,errWithCause:Br};function ea(e,t){return e==="silent"?1/0:t.levels.values[e]}const Hs=Symbol("pino.logFuncs"),fs=Symbol("pino.hierarchy"),Wp={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function Mr(e,t){const n={logger:t,parent:e[fs]};t[fs]=n}function Zp(e,t,n){const s={};t.forEach(a=>{s[a]=n[a]?n[a]:In[a]||In[Wp[a]||"log"]||Nn}),e[Hs]=s}function Jp(e,t){return Array.isArray(e)?e.filter(function(s){return s!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function gt(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const n=e.browser.write||In;e.browser.write&&(e.browser.asObject=!0);const s=e.serializers||{},a=Jp(e.browser.serialize,s);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const u=Object.keys(e.customLevels||{}),c=["error","fatal","warn","info","debug","trace"].concat(u);typeof n=="function"&&c.forEach(function(R){n[R]=n}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");const d=e.level||"info",f=Object.create(n);f.log||(f.log=Nn),Zp(f,c,n),Mr({},f),Object.defineProperty(f,"levelVal",{get:T}),Object.defineProperty(f,"level",{get:y,set:b});const g={transmit:t,serialize:a,asObject:e.browser.asObject,levels:c,timestamp:of(e)};f.levels=Xp(e),f.level=d,f.setMaxListeners=f.getMaxListeners=f.emit=f.addListener=f.on=f.prependListener=f.once=f.prependOnceListener=f.removeListener=f.removeAllListeners=f.listeners=f.listenerCount=f.eventNames=f.write=f.flush=Nn,f.serializers=s,f._serialize=a,f._stdErrSerialize=o,f.child=A,t&&(f._logEvent=hs());function T(){return ea(this.level,this)}function y(){return this._level}function b(R){if(R!=="silent"&&!this.levels.values[R])throw Error("unknown level "+R);this._level=R,It(this,g,f,"error"),It(this,g,f,"fatal"),It(this,g,f,"warn"),It(this,g,f,"info"),It(this,g,f,"debug"),It(this,g,f,"trace"),u.forEach(N=>{It(this,g,f,N)})}function A(R,N){if(!R)throw new Error("missing bindings for child Pino");N=N||{},a&&R.serializers&&(N.serializers=R.serializers);const _=N.serializers;if(a&&_){var I=Object.assign({},s,_),P=e.browser.serialize===!0?Object.keys(I):a;delete R.serializers,ha([R],P,I,this._stdErrSerialize)}function U(V){this._childLevel=(V._childLevel|0)+1,this.bindings=R,I&&(this.serializers=I,this._serialize=P),t&&(this._logEvent=hs([].concat(V._logEvent.bindings,R)))}U.prototype=this;const B=new U(this);return Mr(this,B),B.level=this.level,B}return f}function Xp(e){const t=e.customLevels||{},n=Object.assign({},gt.levels.values,t),s=Object.assign({},gt.levels.labels,ef(t));return{values:n,labels:s}}function ef(e){const t={};return Object.keys(e).forEach(function(n){t[e[n]]=n}),t}gt.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};gt.stdSerializers=Kp;gt.stdTimeFunctions=Object.assign({},{nullTime:qo,epochTime:$o,unixTime:lf,isoTime:cf});function tf(e){const t=[];e.bindings&&t.push(e.bindings);let n=e[fs];for(;n.parent;)n=n.parent,n.logger.bindings&&t.push(n.logger.bindings);return t.reverse()}function It(e,t,n,s){if(e[s]=ea(e.level,n)>ea(s,n)?Nn:n[Hs][s],!t.transmit&&e[s]===Nn)return;e[s]=af(e,t,n,s);const a=tf(e);a.length!==0&&(e[s]=nf(a,e[s]))}function nf(e,t){return function(){return t.apply(this,[...e,...arguments])}}function af(e,t,n,s){return function(a){return function(){const u=t.timestamp(),c=new Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===In?In:this;for(var f=0;f<c.length;f++)c[f]=arguments[f];if(t.serialize&&!t.asObject&&ha(c,this._serialize,this.serializers,this._stdErrSerialize),t.asObject?a.call(d,sf(this,s,c,u)):a.apply(d,c),t.transmit){const g=t.transmit.level||e._level,T=n.levels.values[g],y=n.levels.values[s];if(y<T)return;rf(this,{ts:u,methodLevel:s,methodValue:y,transmitLevel:g,transmitValue:n.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:ea(e._level,n)},c)}}}(e[Hs][s])}function sf(e,t,n,s){e._serialize&&ha(n,e._serialize,e.serializers,e._stdErrSerialize);const a=n.slice();let o=a[0];const u={};s&&(u.time=s),u.level=e.levels.values[t];let c=(e._childLevel|0)+1;if(c<1&&(c=1),o!==null&&typeof o=="object"){for(;c--&&typeof a[0]=="object";)Object.assign(u,a.shift());o=a.length?xr(a.shift(),a):void 0}else typeof o=="string"&&(o=xr(a.shift(),a));return o!==void 0&&(u.msg=o),u}function ha(e,t,n,s){for(const a in e)if(s&&e[a]instanceof Error)e[a]=gt.stdSerializers.err(e[a]);else if(typeof e[a]=="object"&&!Array.isArray(e[a]))for(const o in e[a])t&&t.indexOf(o)>-1&&o in n&&(e[a][o]=n[o](e[a][o]))}function rf(e,t,n){const s=t.send,a=t.ts,o=t.methodLevel,u=t.methodValue,c=t.val,d=e._logEvent.bindings;ha(n,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=a,e._logEvent.messages=n.filter(function(f){return d.indexOf(f)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=u,s(o,e._logEvent,c),e._logEvent=hs(d)}function hs(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function Br(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)t[n]===void 0&&(t[n]=e[n]);return t}function of(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?qo:$o}function Fn(){return{}}function Oa(e){return e}function Nn(){}function qo(){return!1}function $o(){return Date.now()}function lf(){return Math.round(Date.now()/1e3)}function cf(){return new Date(Date.now()).toISOString()}function uf(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}$s.exports.default=gt;var Ho=$s.exports.pino=gt;Ho({level:"trace",enabled:!1,browser:{write:e=>{console.log(e)}}});var Pr;(function(e){e.OPENED="opened"})(Pr||(Pr={}));var rn;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(rn||(rn={}));const zo={[re.TWEET]:{label:"Insight",iconName:"icon-insight"},[re.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[re.UNSET]:void 0,[re.FACTOID]:{label:"Insight",iconName:"icon-insight"},[re.POLL]:{label:"Poll",iconName:"icon-poll"},[re.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[re.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},mf=O("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),df=O("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),pf=O("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),ff=O("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),Qo=({poster:e,source:t})=>{const n=Z.useRef(null),[s,a]=Z.useState(!1),[o,u]=Z.useState(!0);return S.jsxs(mf,{onClick:()=>{const c=n==null?void 0:n.current;c&&a(d=>d?(c.pause(),!1):(c.play(),u(!1),!0))},children:[S.jsx(df,{ref:n,src:t,onEnded:()=>{var c;(c=n==null?void 0:n.current)==null||c.load(),a(!1),u(!0)},style:{visibility:o?"hidden":"visible"}}),S.jsx(pf,{src:e,style:{visibility:o?"visible":"hidden"}}),S.jsx(ff,{children:!s&&S.jsx(Ne,{name:"icon-play"})})]})},hf=O("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),gf=O("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),yf=O("div")({name:"InsightContent",class:"i1qne9g6",propsAsIs:!1}),Tf=O("h3")({name:"Title",class:"ttpr98r",propsAsIs:!1}),kf=O("div")({name:"Description",class:"d17iaqp8",propsAsIs:!1}),bf=O("button")({name:"ActionBtn",class:"a16t3y7s",propsAsIs:!1}),Sf=({video:e,image:t,heading:n,body:s,action:a})=>S.jsxs(hf,{children:[(e==null?void 0:e.url)&&S.jsx(Qo,{source:e.url,poster:e.thumbnailUrl}),t&&S.jsx(gf,{src:t}),S.jsxs(yf,{children:[S.jsx(Tf,{children:n}),S.jsx(kf,{children:s}),a&&S.jsx(bf,{onClick:a,children:"View Insight"})]})]}),zt=O("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),Fe=O("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),Ef=()=>Fe,vf=O(Ef())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),_f=()=>Fe,wf=O(_f())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),Af=()=>Fe,Rf=O(Af())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),Cf=()=>Fe,Ur=O(Cf())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),If=()=>Fe,Fr=O(If())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),Nf=()=>Fe,Dr=O(Nf())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),Of=()=>Fe,Vr=O(Of())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),Lf=()=>Fe,jr=O(Lf())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),xf=()=>Fe,Gr=O(xf())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),Mf=()=>Fe,qr=O(Mf())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),Bf=()=>Fe,Pf=O(Bf())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),Uf=()=>Fe,Ff=O(Uf())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),Df=()=>Fe,Vf=O(Df())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),jf=()=>Fe,Gf=O(jf())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),qf=({step:e,correct:t})=>S.jsxs(S.Fragment,{children:[S.jsxs(zt,{"data-active":e===1,"data-first-screen":"true",children:[S.jsx(vf,{}),S.jsx(wf,{}),S.jsx(Rf,{})]}),S.jsxs(zt,{"data-active":e===2,children:[S.jsx(Ur,{}),S.jsx(Fr,{}),S.jsx(Dr,{})]}),S.jsxs(zt,{"data-active":e===3,children:[S.jsx(Ur,{}),S.jsx(Fr,{}),S.jsx(Dr,{})]}),t?S.jsxs(S.Fragment,{children:[S.jsxs(zt,{"data-active":e===4,"data-correct":"false",children:[S.jsx(Vr,{}),S.jsx(jr,{}),S.jsx(Gr,{}),S.jsx(qr,{})]}),S.jsxs(zt,{"data-active":e===5,"data-correct":"false","data-last-screen":"true",children:[S.jsx(Vr,{}),S.jsx(jr,{}),S.jsx(Gr,{}),S.jsx(qr,{})]})]}):S.jsxs(zt,{"data-active":e===4,"data-correct":"false","data-last-screen":"true",children:[S.jsx(Pf,{}),S.jsx(Ff,{}),S.jsx(Vf,{}),S.jsx(Gf,{})]})]}),$f=O("div")({name:"Container",class:"c10131zw",propsAsIs:!1}),Hf=O("div")({name:"AnimateContent",class:"ar6k2eo",propsAsIs:!1}),Qt=O("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),Yt=O("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),_n=O("div")({name:"Subtitle",class:"s1pjil1h",propsAsIs:!1}),zf=()=>_n,$r=O(zf())({name:"SubtitleFG",class:"s1iorwr9",propsAsIs:!0}),Dn=O("div")({name:"AnswerText",class:"a51sv9d",propsAsIs:!1}),Qf=()=>Ne,La=O(Qf())({name:"FeedbackIcon",class:"f1lbk2ye",propsAsIs:!0}),Hr=O("button")({name:"CloseButton",class:"crcvk3t",propsAsIs:!1}),Yf=()=>Ne,zr=O(Yf())({name:"CloseIcon",class:"c33p82r",propsAsIs:!0}),Kf=({close:e,votedAnswer:t,correct:n,correctAnswerTitle:s})=>{const[a,o]=Z.useState(1);return Z.useEffect(()=>{const u=setInterval(()=>{o(c=>n&&c>4||!n&&c>3?c:++c)},6e3);return()=>clearInterval(u)},[n]),S.jsxs($f,{"data-bg-color-white":a>3,children:[S.jsx(qf,{step:a,correct:n}),S.jsxs(Hf,{"data-active-number":a,children:[S.jsxs(Qt,{children:[S.jsx(Yt,{children:"Master"}),S.jsx($r,{children:"FEATURED GROUPS +"})]}),S.jsxs(Qt,{children:[S.jsx(Yt,{children:"Prediction results are in!"}),S.jsx($r,{children:"FEATURED GROUPS +"})]}),S.jsxs(Qt,{children:[S.jsx(Yt,{children:"Who holds the most birdies in golf?"}),S.jsxs(_n,{children:["Your Pick: ",S.jsx(Dn,{children:t==null?void 0:t.title})]})]}),n?S.jsxs(S.Fragment,{children:[S.jsxs(Qt,{"data-color-green":"true",children:[S.jsx(Yt,{children:"Congratulations! You answered correctly."}),S.jsxs(_n,{children:[S.jsx(La,{name:"selected"}),"Your Pick: ",S.jsx(Dn,{children:t==null?void 0:t.title})]})]}),S.jsxs(Qt,{"data-color-green":"true",children:[S.jsx(Hr,{onClick:e,children:S.jsx(zr,{name:"icon-cross"})}),S.jsxs(Yt,{children:["+",t==null?void 0:t.points," points"]}),S.jsxs(_n,{children:[S.jsx(La,{name:"selected"}),"Your Pick: ",S.jsx(Dn,{children:t==null?void 0:t.title})]})]})]}):S.jsxs(Qt,{children:[S.jsx(Hr,{onClick:e,children:S.jsx(zr,{name:"icon-cross"})}),S.jsxs(Yt,{"data-incorrect":"true",children:["Better luck next time! Correct: ",s,"."]}),S.jsxs(_n,{"data-incorrect":"true",children:[S.jsx(La,{name:"circleClose"}),"Your Pick: ",S.jsx(Dn,{children:t==null?void 0:t.title})]})]})]})]})},Wf=O("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),Zf=O("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Jf=()=>Ne,Xf=O(Jf())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),e0=O("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),t0=()=>Ne,n0=O(t0())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),a0=O("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),s0=O("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),r0=O("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),i0=O("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),o0=O("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),l0=O("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),c0=O("div")({name:"Details",class:"d1c454nm",propsAsIs:!1}),u0=O("div")({name:"Name",class:"n11nigc3",propsAsIs:!1}),m0=O("div")({name:"UserName",class:"urxa4k8",propsAsIs:!1}),d0=({image:e,name:t,userName:n,verified:s})=>S.jsxs(i0,{children:[S.jsx(o0,{children:S.jsx(l0,{src:e})}),S.jsxs(c0,{children:[S.jsxs(u0,{children:[t," ",s&&S.jsx(Ne,{name:"icon-twitter-verified"})]}),S.jsx(m0,{children:n})]})]}),p0=O("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),f0=O("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),h0=O("div")({name:"Body",class:"b14u54rf",propsAsIs:!1}),g0=O("img")({name:"Image",class:"i1hxm6zo",propsAsIs:!1}),y0=O("div")({name:"Details",class:"d1s19yop",propsAsIs:!1}),T0=O("div")({name:"QuoteWrap",class:"q1qyx94r",propsAsIs:!1}),k0=O("blockquote")({name:"Quote",class:"qs97clu",propsAsIs:!1}),b0=({account:e,body:t,image:n,title:s,action:a})=>S.jsxs(p0,{children:[S.jsx(T0,{children:S.jsx(k0,{children:s})}),S.jsxs(y0,{children:[S.jsx(d0,{...e}),S.jsx(h0,{children:t}),n&&S.jsx(g0,{src:n})]}),a&&S.jsx(f0,{onClick:a,children:"View Tweet"})]}),Qr=({close:e,action:t,data:{questionType:n,question:s,insight:a,tweet:o}})=>{const u=zo[n];return u?s!=null&&s.predictionResult?S.jsx(Kf,{close:e,...s}):S.jsxs(Wf,{children:[S.jsx(Zf,{onClick:e,children:S.jsx(Xf,{name:"icon-cross"})}),n!==re.TWEET&&S.jsxs(e0,{children:[S.jsx(n0,{"data-type-trivia":n===re.TRIVIA,"data-type-poll":n===re.POLL,name:u.iconName}),S.jsx(a0,{children:u.label})]}),n===re.FACTOID&&S.jsx(Sf,{...a,action:t}),n===re.TWEET&&S.jsx(b0,{...o,action:t}),n!==re.FACTOID&&n!==re.TWEET&&S.jsxs(S.Fragment,{children:[S.jsx(s0,{children:s==null?void 0:s.title}),S.jsx(r0,{onClick:t,children:"Answer"})]})]}):null};let He;typeof window<"u"?He=window:typeof self<"u"?He=self:He=un.global;let gs=null,ys=null;const Yr=20,xa=He.clearTimeout,Kr=He.setTimeout,Ma=He.cancelAnimationFrame||He.mozCancelAnimationFrame||He.webkitCancelAnimationFrame,Wr=He.requestAnimationFrame||He.mozRequestAnimationFrame||He.webkitRequestAnimationFrame;Ma==null||Wr==null?(gs=xa,ys=function(t){return Kr(t,Yr)}):(gs=function([t,n]){Ma(t),xa(n)},ys=function(t){const n=Wr(function(){xa(s),t()}),s=Kr(function(){Ma(n),t()},Yr);return[n,s]});function S0(e){let t,n,s,a,o,u,c;const d=typeof document<"u"&&document.attachEvent;if(!d){u=function(_){const I=_.__resizeTriggers__,P=I.firstElementChild,U=I.lastElementChild,B=P.firstElementChild;U.scrollLeft=U.scrollWidth,U.scrollTop=U.scrollHeight,B.style.width=P.offsetWidth+1+"px",B.style.height=P.offsetHeight+1+"px",P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight},o=function(_){return _.offsetWidth!==_.__resizeLast__.width||_.offsetHeight!==_.__resizeLast__.height},c=function(_){if(_.target.className&&typeof _.target.className.indexOf=="function"&&_.target.className.indexOf("contract-trigger")<0&&_.target.className.indexOf("expand-trigger")<0)return;const I=this;u(this),this.__resizeRAF__&&gs(this.__resizeRAF__),this.__resizeRAF__=ys(function(){o(I)&&(I.__resizeLast__.width=I.offsetWidth,I.__resizeLast__.height=I.offsetHeight,I.__resizeListeners__.forEach(function(B){B.call(I,_)}))})};let y=!1,b="";s="animationstart";const A="Webkit Moz O ms".split(" ");let R="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),N="";{const _=document.createElement("fakeelement");if(_.style.animationName!==void 0&&(y=!0),y===!1){for(let I=0;I<A.length;I++)if(_.style[A[I]+"AnimationName"]!==void 0){N=A[I],b="-"+N.toLowerCase()+"-",s=R[I],y=!0;break}}}n="resizeanim",t="@"+b+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",a=b+"animation: 1ms "+n+"; "}const f=function(y){if(!y.getElementById("detectElementResize")){const b=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',A=y.head||y.getElementsByTagName("head")[0],R=y.createElement("style");R.id="detectElementResize",R.type="text/css",e!=null&&R.setAttribute("nonce",e),R.styleSheet?R.styleSheet.cssText=b:R.appendChild(y.createTextNode(b)),A.appendChild(R)}};return{addResizeListener:function(y,b){if(d)y.attachEvent("onresize",b);else{if(!y.__resizeTriggers__){const A=y.ownerDocument,R=He.getComputedStyle(y);R&&R.position==="static"&&(y.style.position="relative"),f(A),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=A.createElement("div")).className="resize-triggers";const N=A.createElement("div");N.className="expand-trigger",N.appendChild(A.createElement("div"));const _=A.createElement("div");_.className="contract-trigger",y.__resizeTriggers__.appendChild(N),y.__resizeTriggers__.appendChild(_),y.appendChild(y.__resizeTriggers__),u(y),y.addEventListener("scroll",c,!0),s&&(y.__resizeTriggers__.__animationListener__=function(P){P.animationName===n&&u(y)},y.__resizeTriggers__.addEventListener(s,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(b)}},removeResizeListener:function(y,b){if(d)y.detachEvent("onresize",b);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(b),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",c,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(s,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch{}}}}}class Yo extends Z.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:s,onResize:a}=this.props;if(this._parentNode){var o,u,c,d;const f=window.getComputedStyle(this._parentNode)||{},g=parseFloat((o=f.paddingLeft)!==null&&o!==void 0?o:"0"),T=parseFloat((u=f.paddingRight)!==null&&u!==void 0?u:"0"),y=parseFloat((c=f.paddingTop)!==null&&c!==void 0?c:"0"),b=parseFloat((d=f.paddingBottom)!==null&&d!==void 0?d:"0"),A=this._parentNode.getBoundingClientRect(),R=A.height-y-b,N=A.width-g-T,_=this._parentNode.offsetHeight-y-b,I=this._parentNode.offsetWidth-g-T;(!n&&(this.state.height!==_||this.state.scaledHeight!==R)||!s&&(this.state.width!==I||this.state.scaledWidth!==N))&&(this.setState({height:_,width:I,scaledHeight:R,scaledWidth:N}),typeof a=="function"&&a({height:_,scaledHeight:R,scaledWidth:N,width:I}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=S0(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:s,disableHeight:a=!1,disableWidth:o=!1,nonce:u,onResize:c,style:d={},tagName:f="div",...g}=this.props,{height:T,scaledHeight:y,scaledWidth:b,width:A}=this.state,R={overflow:"visible"},N={};let _=!1;return a||(T===0&&(_=!0),R.height=0,N.height=T,N.scaledHeight=y),o||(A===0&&(_=!0),R.width=0,N.width=A,N.scaledWidth=b),Z.createElement(f,{ref:this._setRef,style:{...R,...d},...g},!_&&t(N))}}const E0=O("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),v0=O("div")({name:"Content",class:"cjyzpp7",propsAsIs:!1}),_0=O("div")({name:"Graphic",class:"g16mldgz",propsAsIs:!1}),w0=O("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),A0=O("div")({name:"StepsContainer",class:"smm7qmo",propsAsIs:!1}),R0=O("span")({name:"StepIndicator",class:"s17knuw2",propsAsIs:!1}),C0=({graphicSrc:e,headline:t,stepsCount:n,currentStep:s})=>S.jsxs(E0,{children:[S.jsxs(v0,{children:[S.jsx(_0,{children:S.jsx("img",{src:e,alt:t})}),t&&S.jsx(w0,{children:t})]}),S.jsx(A0,{children:Array.from({length:n}).map((a,o)=>S.jsx(R0,{"data-active":s===o},o))})]}),I0=O("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),N0=O("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),O0=()=>Ne,L0=O(O0())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),x0=O("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),M0=O("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),B0=O("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),P0=O("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),U0=O("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),F0=O("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),D0=O("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),V0=()=>Ne,j0=O(V0())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),G0=O("div")({name:"SocialLinksContainer",class:"s1n7kzeh",propsAsIs:!1}),q0=O("a")({name:"SocialLink",class:"s2m9o9y",propsAsIs:!1}),$0=O("span")({name:"SocialLinkLabel",class:"sewjbbn",propsAsIs:!1}),Ko=({inviteLink:e,socialLinks:t,inviteCardTitle:n,inviteCardSubtext:s,primaryColor:a,className:o})=>S.jsxs(I0,{className:o,children:[S.jsx(N0,{style:{backgroundColor:a},children:S.jsx(L0,{name:"invite-game-icon"})}),S.jsxs(x0,{children:[S.jsx(M0,{children:n||""}),S.jsx(B0,{children:s||""})]}),e&&S.jsxs(P0,{onClick:async()=>{if(e)try{await navigator.clipboard.writeText(e)}catch(u){console.error("Unable to copy to clipboard",u)}},children:[S.jsxs(U0,{children:[S.jsx(F0,{children:"Invite link"}),S.jsx(D0,{children:e})]}),S.jsx(j0,{name:"icon-copy"})]}),t&&t.length>0&&S.jsx(G0,{children:t.map(({icon:u,link:c,label:d})=>S.jsxs(q0,{href:c,target:"_blank",children:[S.jsx(Ne,{name:u}),S.jsx($0,{children:d})]},c))})]}),H0=O("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),z0=O("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),Q0=O("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),Y0=O("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),K0=O("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),W0=O("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),Z0=O("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),J0=O("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),X0=({rules:e,rulesTitle:t,primaryColor:n})=>S.jsxs(H0,{children:[S.jsxs(z0,{children:[S.jsx(Q0,{children:t}),S.jsx(Y0,{children:e==null?void 0:e.map(({label:s,icon:a},o)=>S.jsxs(K0,{children:[a&&S.jsx(W0,{style:{backgroundColor:n},children:S.jsx(Ne,{name:a,"data-icon":a})}),S.jsx(Z0,{children:s})]},o))})]}),S.jsx(J0,{children:"See Terms and Conditions"})]}),e2=O("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),t2=O("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),n2=({disabled:e,variant:t="primary",onClick:n,children:s,...a})=>S.jsx(e2,{onClick:n,disabled:e,"data-variant":t,...a,children:S.jsx(t2,{children:s})}),a2=O("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),s2=O("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),r2=O("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),i2=O("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),o2=()=>Ne,l2=O(o2())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),c2=O("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),u2=()=>n2,m2=O(u2())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),Kt={steps:!1,rules:!1,inviteCard:!1},d2=({gamification:e,steps:t,rules:n,rulesBtnLabel:s,rulesTitle:a,primaryColor:o,inviteLink:u,socialLinks:c,inviteCardTitle:d,inviteCardSubtext:f,inviteCardBtnLabel:g,onClose:T})=>{const[y,b]=Z.useState(0),[A,R]=Z.useState(Kt);Z.useEffect(()=>{t!=null&&t.length?R({...Kt,steps:!0}):n!=null&&n.length?R({...Kt,rules:!0}):R({...Kt,inviteCard:!0})},[]);const N=Z.useMemo(()=>A.steps&&y===0?"Continue":A.rules?s||"Got it":A.inviteCard?g||"Play Now":"Next",[A,y,s,g]),_=Z.useCallback(()=>{t!=null&&t.length&&y<t.length-1?b(P=>++P):n!=null&&n.length&&A.steps?R({...Kt,rules:!0}):A.rules&&R({...Kt,inviteCard:!0})},[y,t==null?void 0:t.length,n==null?void 0:n.length,A,b,R]),I=async()=>{await e.onboardingStatus.submitInplay()};return S.jsx(Yo,{children:({width:P,height:U})=>S.jsxs(a2,{style:{width:P,height:U},children:[S.jsx(r2,{children:S.jsx(i2,{onClick:T,children:S.jsx(l2,{name:"icon-close-btn-gray"})})}),S.jsxs(s2,{children:[A.steps&&(t==null?void 0:t.length)&&S.jsx(C0,{stepsCount:t.length,currentStep:y,...t[y]}),A.rules&&S.jsx(X0,{rules:n,rulesTitle:a,primaryColor:o}),A.inviteCard&&S.jsx(Ko,{inviteLink:u,inviteCardTitle:d,inviteCardSubtext:f,primaryColor:o,socialLinks:c})]}),S.jsx(c2,{children:S.jsx(m2,{onClick:A.inviteCard?I:_,children:N})})]})})},p2=O("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),f2="hx17qu6",zs=({children:e,style:t,className:n,hiding:s})=>S.jsx(p2,{style:t,className:ps(n,s&&f2),children:e}),h2=O("div")({name:"Container",class:"cocfo2g",propsAsIs:!1}),g2=O("div")({name:"CloseIconWrap",class:"c1pdhxdk",propsAsIs:!1}),y2=()=>Ne,T2=O(y2())({name:"CloseIcon",class:"c1funj3r",propsAsIs:!0}),k2=O("div")({name:"Title",class:"t1okg06y",propsAsIs:!1}),b2=O("img")({name:"SponsorLogo",class:"sb1n923",propsAsIs:!1}),S2=O("div")({name:"PresentsTitle",class:"p1stllxd",propsAsIs:!1}),E2=O("div")({name:"Subtitle",class:"s13kvdzw",propsAsIs:!1}),v2=O("div")({name:"Description",class:"dfvmv3t",propsAsIs:!1}),_2=O("button")({name:"ActionButton",class:"ay8e3j9",propsAsIs:!1}),w2=({close:e,action:t,onboarding:n})=>{var s,a,o,u,c,d,f,g;return S.jsxs(h2,{children:[S.jsx(g2,{onClick:e,children:S.jsx(T2,{name:"icon-cross"})}),((a=(s=n==null?void 0:n.titleCard)==null?void 0:s.media)==null?void 0:a.sponsorLogo)&&S.jsxs(k2,{children:[S.jsx(b2,{alt:"sponsor-logo",src:(u=(o=n==null?void 0:n.titleCard)==null?void 0:o.media)==null?void 0:u.sponsorLogo}),S.jsx(S2,{children:"PRESENTS"})]}),((c=n==null?void 0:n.titleCard)==null?void 0:c.title)&&S.jsx(E2,{children:(d=n==null?void 0:n.titleCard)==null?void 0:d.title}),((f=n==null?void 0:n.titleCard)==null?void 0:f.subtitle)&&S.jsx(v2,{children:(g=n==null?void 0:n.titleCard)==null?void 0:g.subtitle}),S.jsx(_2,{onClick:t,children:"Play Now"})]})},A2=()=>zs,R2=O(A2())({name:"OnboardingContainer",class:"o9squag",propsAsIs:!0}),C2=({hiding:e,deepLink:t,onboardingOpts:n,setOpened:s,notification:a,gamification:o})=>{var u,c,d,f,g,T;const{data:y}=nt(t.$store);return S.jsx(R2,{hiding:e,children:S.jsx(d2,{rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(u=n.rules)==null?void 0:u.buttonLabel,rulesTitle:(c=n.rules)==null?void 0:c.heading,steps:[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_1.png",headline:"Welcome to the Featured Groups +"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_2.png",headline:"Get real-time insights"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_3.png",headline:"Predictions, trivia & polls synced to match play"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_4.png",headline:"Win points for every answer you get right"},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/step_5.png",headline:"Compete against friends on the leaderboard"}],primaryColor:(d=n.inviteCard)==null?void 0:d.iconColor,inviteLink:y==null?void 0:y.url,inviteCardTitle:(f=n.inviteCard)==null?void 0:f.heading,inviteCardSubtext:(g=n.inviteCard)==null?void 0:g.subtext,inviteCardBtnLabel:(T=n.inviteCard)==null?void 0:T.buttonLabel,onClose:()=>{var b;s(!1),(b=a.close)==null||b.call(a)},socialLinks:[{icon:"icon-facebook",link:"https://www.facebook.com/TheMasters",label:"Facebook"},{icon:"icon-twitter",link:"https://twitter.com/@TheMasters",label:"X"}],gamification:o})})},I2=({sdk:e,notification:t})=>{const[n,s]=Z.useState(!1),a=e.getFeature(me.GAMES),o=t.data.onboarding;return n&&a&&o?S.jsx(C2,{notification:t,setOpened:s,gamification:a,onboardingOpts:o,deepLink:a.deepLink}):S.jsx("div",{children:S.jsx(w2,{close:t.close,action:()=>s(!0),onboarding:o})})},N2=()=>zs,O2=O(N2())({name:"Container",class:"ctckejh",propsAsIs:!0}),L2=({sdk:e,notification:t})=>t.type===rn.QUESTION?S.jsx("div",{children:S.jsx(Qr,{...t})}):t.type===rn.QUESTION_RESOLVED?S.jsx("div",{children:S.jsx(Qr,{...t})}):t.type===rn.ONBOARDING?S.jsx(I2,{sdk:e,notification:t,hiding:t.hiding}):null,x2=({sdk:e})=>{const[t]=Z.useState(e.getNotificationsStore()),n=nt(t),s=Z.useMemo(()=>{if(!(n!=null&&n.size))return null;for(const a of n.values())if(a.type===rn.ONBOARDING)return a;return n.values().next().value},[n]);return s?S.jsx(O2,{hiding:s.hiding,children:S.jsx(L2,{sdk:e,notification:s})}):null},M2=O("div")({name:"SDKContainer",class:"stu11h7",propsAsIs:!1}),Ts=O("div")({name:"SDKScrollContainer",class:"s1ucohr1",propsAsIs:!1}),Wo=O("div")({name:"SDKContentContainer",class:"s1el4wvm",propsAsIs:!1}),B2=()=>Wo,P2=O(B2())({name:"SDKWhiteContainer",class:"s1oe3036",propsAsIs:!0}),U2=e=>{const t=Z.useRef(""),[n,s]=Z.useState(!1),a=nt(e.status),o=nt(e.userId()),u=a==="ready",[c,d]=Z.useState(xt),f=Z.useCallback((y,b)=>{d(b),b===xt?(y&&e.createEventSession(y),e.openFeature(me.GAMES)):e.closeFeature()},[e]);Z.useEffect(()=>{!u&&c===xt&&(d(sn),e.closeFeature())},[u,c,e]);const g=y=>{t.current=y,e.initializeApp().then(({enabled:b,err:A})=>{if(s(!0),A){f(y,sn);return}if(b){e.isUserAuthorized().then(R=>{if(R){f(y,xt);return}else e.disableApp()});return}})},T=()=>{s(!1),e.disableApp()};return Z.useEffect(()=>{if(!o){u&&(d(sn),e.disableApp());return}o&&t.current&&n&&e.initializeApp().then(()=>{e.createEventSession(t.current)})},[o]),{sdkEnabled:n,sdkReady:u,activeOverlay:c,activateAndLoadOverlay:f,enableSdk:g,disableSdk:T,isLogged:!!o}},F2=e=>{const t=nt(e.getActiveFeature()),n=nt(e.streamStore()),[s,a]=Z.useState(null);return Z.useEffect(()=>{const o=e.getFeatures();if(t)for(const[u,c]of o)u===t?c.status.get()===Lt.Suspended&&(c.enable(),a(c)):c.status.get()===Lt.Ready&&c.disable();else{for(const[,u]of o)u.status.get()===Lt.Ready&&u.disable();a(null)}return()=>{for(const[,u]of o)u.status.get()===Lt.Ready&&u.disable()}},[t,e,n]),[t,s]},D2=({sdk:e,className:t})=>{const[,n]=F2(e);return S.jsx(I1,{className:t,feature:n,sdk:e})},V2=({sdk:e,overlays:t,children:n})=>{const{sdkEnabled:s,sdkReady:a,activeOverlay:o,activateAndLoadOverlay:u,enableSdk:c,disableSdk:d,isLogged:f}=U2(e);return Z.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),S.jsxs(M2,{children:[s&&S.jsx(Hp,{sdkReady:a,activeOverlay:o,className:rs,setActiveOverlay:g=>u("",g)}),a&&S.jsx(x2,{sdk:e}),S.jsx(Ts,{"data-nav":s.toString(),style:{display:!s||o===sn?"block":"none"},children:n&&n({enableSdk:c,disableSdk:d})}),S.jsx(Ts,{"data-nav":s.toString(),style:{display:o===Xn?"block":"none"},children:t&&o===Xn&&t[o]}),a&&o===xt&&S.jsx(D2,{className:rs,sdk:e}),!f&&S.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})};var oe;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(oe||(oe={}));function Zr(e){const t=oe[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}class Te extends Error{constructor(t,n=oe.Unknown,s,a,o){super(j2(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(s??{}),this.details=a??[],this.cause=o}static from(t,n=oe.Unknown){return t instanceof Te?t:t instanceof Error?t.name=="AbortError"?new Te(t.message,oe.Canceled):new Te(t.message,n,void 0,void 0,t):new Te(String(t),n,void 0,void 0,t)}findDetails(t){const n="typeName"in t?{findMessage:a=>a===t.typeName?t:void 0}:t,s=[];for(const a of this.details){if(a instanceof at){n.findMessage(a.getType().typeName)&&s.push(a);continue}const o=n.findMessage(a.type);if(o)try{s.push(o.fromBinary(a.value))}catch{}}return s}}function j2(e,t){return e.length?`[${Zr(t)}] ${e}`:`[${Zr(t)}]`}function G2(e,t,n){try{const s=Ms.dec(e);return t?t.fromBinary(s,n):s}catch(s){throw Te.from(s,oe.DataLoss)}}function Zo(e,t){const n={};for(const[s,a]of Object.entries(e.methods)){const o=t(Object.assign(Object.assign({},a),{localName:s,service:e}));o!=null&&(n[s]=o)}return n}function Jr(e){let t,n=new Uint8Array(0);function s(a){const o=new Uint8Array(n.length+a.length);o.set(n),o.set(a,n.length),n=o}return new ReadableStream({start(){t=e.getReader()},async pull(a){let o;for(;;){if(o===void 0&&n.byteLength>=5){let d=0;for(let f=1;f<5;f++)d=(d<<8)+n[f];o={flags:n[0],length:d}}if(o!==void 0&&n.byteLength>=o.length+5)break;const c=await t.read();if(c.done)break;s(c.value)}if(o===void 0){if(n.byteLength==0){a.close();return}a.error(new Te("premature end of stream",oe.DataLoss));return}const u=n.subarray(5,5+o.length);n=n.subarray(5+o.length),a.enqueue({flags:o.flags,data:u})}})}function Xr(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const s=new DataView(n.buffer,n.byteOffset,n.byteLength);return s.setUint8(0,e),s.setUint32(1,t.length),n}var q2=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n);function s(o){n[o]=e[o]&&function(u){return new Promise(function(c,d){u=e[o](u),a(c,d,u.done,u.value)})}}function a(o,u,c,d){Promise.resolve(d).then(function(f){o({value:f,done:c})},u)}},On=globalThis&&globalThis.__await||function(e){return this instanceof On?(this.v=e,this):new On(e)},$2=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n.apply(e,t||[]),a,o=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(y){s[y]&&(a[y]=function(b){return new Promise(function(A,R){o.push([y,b,A,R])>1||c(y,b)})})}function c(y,b){try{d(s[y](b))}catch(A){T(o[0][3],A)}}function d(y){y.value instanceof On?Promise.resolve(y.value.v).then(f,g):T(o[0][2],y)}function f(y){c("next",y)}function g(y){c("throw",y)}function T(y,b){y(b),o.shift(),o.length&&c(o[0][0],o[0][1])}},H2=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},s("next"),s("throw",function(a){throw a}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(a,o){t[a]=e[a]?function(u){return(n=!n)?{value:On(e[a](u)),done:!1}:o?o(u):u}:o}};function Jo(e){return $2(this,arguments,function*(){yield On(yield*H2(q2(e)))})}var z2=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n);function s(o){n[o]=e[o]&&function(u){return new Promise(function(c,d){u=e[o](u),a(c,d,u.done,u.value)})}}function a(o,u,c,d){Promise.resolve(d).then(function(f){o({value:f,done:c})},u)}};function Q2(e,t){return Zo(e,n=>{switch(n.kind){case G.Unary:return Y2(t,e,n);case G.ServerStreaming:return K2(t,e,n);default:return null}})}function Y2(e,t,n){return function(s,a,o){const u=new AbortController;return o=Xo(u,o),e.unary(t,n,u.signal,o.timeoutMs,o.headers,s,o.contextValues).then(c=>{var d,f;(d=o==null?void 0:o.onHeader)===null||d===void 0||d.call(o,c.header),(f=o==null?void 0:o.onTrailer)===null||f===void 0||f.call(o,c.trailer),a(void 0,c.message)},c=>{const d=Te.from(c,oe.Internal);d.code===oe.Canceled&&u.signal.aborted||a(d,new n.O)}),()=>u.abort()}}function K2(e,t,n){return function(s,a,o,u){const c=new AbortController;async function d(){var f,g,T,y,b,A;u=Xo(c,u);const R=await e.stream(t,n,u.signal,u.timeoutMs,u.headers,Jo([s]),u.contextValues);(b=u.onHeader)===null||b===void 0||b.call(u,R.header);try{for(var N=!0,_=z2(R.message),I;I=await _.next(),f=I.done,!f;N=!0)y=I.value,N=!1,a(y)}catch(P){g={error:P}}finally{try{!N&&!f&&(T=_.return)&&await T.call(_)}finally{if(g)throw g.error}}(A=u.onTrailer)===null||A===void 0||A.call(u,R.trailer),o(void 0)}return d().catch(f=>{const g=Te.from(f,oe.Internal);g.code===oe.Canceled&&c.signal.aborted?o(void 0):o(g)}),()=>c.abort()}}function Xo(e,t){return t!=null&&t.signal&&(t.signal.addEventListener("abort",()=>e.abort()),t.signal.aborted&&e.abort()),Object.assign(Object.assign({},t),{signal:e.signal})}var el=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n);function s(o){n[o]=e[o]&&function(u){return new Promise(function(c,d){u=e[o](u),a(c,d,u.done,u.value)})}}function a(o,u,c,d){Promise.resolve(d).then(function(f){o({value:f,done:c})},u)}},mn=globalThis&&globalThis.__await||function(e){return this instanceof mn?(this.v=e,this):new mn(e)},W2=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},s("next"),s("throw",function(a){throw a}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(a,o){t[a]=e[a]?function(u){return(n=!n)?{value:mn(e[a](u)),done:!1}:o?o(u):u}:o}},Z2=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n.apply(e,t||[]),a,o=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(y){s[y]&&(a[y]=function(b){return new Promise(function(A,R){o.push([y,b,A,R])>1||c(y,b)})})}function c(y,b){try{d(s[y](b))}catch(A){T(o[0][3],A)}}function d(y){y.value instanceof mn?Promise.resolve(y.value.v).then(f,g):T(o[0][2],y)}function f(y){c("next",y)}function g(y){c("throw",y)}function T(y,b){y(b),o.shift(),o.length&&c(o[0][0],o[0][1])}};function J2(e,t){return Zo(e,n=>{switch(n.kind){case G.Unary:return X2(t,e,n);case G.ServerStreaming:return eh(t,e,n);case G.ClientStreaming:return th(t,e,n);case G.BiDiStreaming:return nh(t,e,n);default:return null}})}function X2(e,t,n){return async function(s,a){var o,u;const c=await e.unary(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,s,a==null?void 0:a.contextValues);return(o=a==null?void 0:a.onHeader)===null||o===void 0||o.call(a,c.header),(u=a==null?void 0:a.onTrailer)===null||u===void 0||u.call(a,c.trailer),c.message}}function eh(e,t,n){return function(s,a){return tl(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,Jo([s]),a==null?void 0:a.contextValues),a)}}function th(e,t,n){return async function(s,a){var o,u,c,d,f,g;const T=await e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,s,a==null?void 0:a.contextValues);(f=a==null?void 0:a.onHeader)===null||f===void 0||f.call(a,T.header);let y;try{for(var b=!0,A=el(T.message),R;R=await A.next(),o=R.done,!o;b=!0)d=R.value,b=!1,y=d}catch(N){u={error:N}}finally{try{!b&&!o&&(c=A.return)&&await c.call(A)}finally{if(u)throw u.error}}if(!y)throw new Te("protocol error: missing response message",oe.Internal);return(g=a==null?void 0:a.onTrailer)===null||g===void 0||g.call(a,T.trailer),y}}function nh(e,t,n){return function(s,a){return tl(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,s,a==null?void 0:a.contextValues),a)}}function tl(e,t){const n=function(){var s,a;return Z2(this,arguments,function*(){const o=yield mn(e);(s=t==null?void 0:t.onHeader)===null||s===void 0||s.call(t,o.header),yield mn(yield*W2(el(o.message))),(a=t==null?void 0:t.onTrailer)===null||a===void 0||a.call(t,o.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function ah(...e){const t=new AbortController,n=e.filter(a=>a!==void 0).concat(t.signal);for(const a of n){if(a.aborted){s.apply(a);break}a.addEventListener("abort",s)}function s(){t.signal.aborted||t.abort(nl(this));for(const a of n)a.removeEventListener("abort",s)}return t}function sh(e){const t=new AbortController,n=()=>{t.abort(new Te("the operation timed out",oe.DeadlineExceeded))};let s;return e!==void 0&&(e<=0?n():s=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(s)}}function nl(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function ei(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}const Ba=128;function ti(e){const t=new Headers,n=new TextDecoder().decode(e).split(`\r
11
+ `);for(const s of n){if(s==="")continue;const a=s.indexOf(":");if(a>0){const o=s.substring(0,a).trim(),u=s.substring(a+1).trim();t.append(o,u)}}return t}const rh="Content-Type",ih="Grpc-Timeout",al="Grpc-Status",sl="Grpc-Message",oh="Grpc-Status-Details-Bin",lh="User-Agent",ch="X-User-Agent",uh="X-Grpc-Web",mh="application/grpc-web+proto",dh="application/grpc-web+json";class ft extends at{constructor(t){super(),this.code=0,this.message="",this.details=[],m.util.initPartial(t,this)}static fromBinary(t,n){return new ft().fromBinary(t,n)}static fromJson(t,n){return new ft().fromJson(t,n)}static fromJsonString(t,n){return new ft().fromJsonString(t,n)}static equals(t,n){return m.util.equals(ft,t,n)}}ft.runtime=m;ft.typeName="google.rpc.Status";ft.fields=m.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:et,repeated:!0}]);const ph="0";function rl(e){var t;const n=e.get(oh);if(n!=null){const a=G2(n,ft);if(a.code==0)return;const o=new Te(a.message,a.code,e);return o.details=a.details.map(u=>({type:u.typeUrl.substring(u.typeUrl.lastIndexOf("/")+1),value:u.value})),o}const s=e.get(al);if(s!=null){if(s===ph)return;const a=parseInt(s,10);return a in oe?new Te(decodeURIComponent((t=e.get(sl))!==null&&t!==void 0?t:""),a,e):new Te(`invalid grpc-status: ${s}`,oe.Internal,e)}}function ni(e,t,n){const s=typeof t=="string"?t:t.typeName,a=typeof n=="string"?n:n.name;return e.toString().replace(/\/?$/,`/${s}/${a}`)}function il(e,t){return t instanceof at?t:new e(t)}function fh(e,t){function n(s){return s.done===!0?s:{done:s.done,value:il(e,s.value)}}return{[Symbol.asyncIterator](){const s=t[Symbol.asyncIterator](),a={next:()=>s.next().then(n)};return s.throw!==void 0&&(a.throw=o=>s.throw(o).then(n)),s.return!==void 0&&(a.return=o=>s.return(o).then(n)),a}}}function hh(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function ai(e,t,n,s){const a=t?si(e.I,s):ri(e.I,n);return{parse:(t?si(e.O,s):ri(e.O,n)).parse,serialize:a.serialize}}function si(e,t){return{parse(n){try{return e.fromBinary(n,t)}catch(s){const a=s instanceof Error?s.message:String(s);throw new Te(`parse binary: ${a}`,oe.InvalidArgument)}},serialize(n){try{return n.toBinary(t)}catch(s){const a=s instanceof Error?s.message:String(s);throw new Te(`serialize binary: ${a}`,oe.Internal)}}}}function ri(e,t){var n,s;const a=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,o=(s=t==null?void 0:t.textDecoder)!==null&&s!==void 0?s:new TextDecoder,u=hh(t);return{parse(c){try{const d=o.decode(c);return e.fromJsonString(d,u)}catch(d){throw Te.from(d,oe.InvalidArgument)}},serialize(c){try{const d=c.toJsonString(u);return a.encode(d)}catch(d){throw Te.from(d,oe.Internal)}}}}function gh(e){const t=ll(e.next,e.interceptors),[n,s,a]=ol(e),o=Object.assign(Object.assign({},e.req),{message:il(e.req.method.I,e.req.message),signal:n});return t(o).then(u=>(a(),u),s)}function yh(e){const t=ll(e.next,e.interceptors),[n,s,a]=ol(e),o=Object.assign(Object.assign({},e.req),{message:fh(e.req.method.I,e.req.message),signal:n});let u=!1;return n.addEventListener("abort",function(){var c,d;const f=e.req.message[Symbol.asyncIterator]();u||(c=f.throw)===null||c===void 0||c.call(f,this.reason).catch(()=>{}),(d=f.return)===null||d===void 0||d.call(f).catch(()=>{})}),t(o).then(c=>Object.assign(Object.assign({},c),{message:{[Symbol.asyncIterator](){const d=c.message[Symbol.asyncIterator]();return{next(){return d.next().then(f=>(f.done==!0&&(u=!0,a()),f),s)}}}}}),s)}function ol(e){const{signal:t,cleanup:n}=sh(e.timeoutMs),s=ah(e.signal,t);return[s.signal,function(o){const u=Te.from(t.aborted?nl(t):o);return s.abort(u),n(),Promise.reject(u)},function(){n(),s.abort()}]}function ll(e,t){var n;return(n=t==null?void 0:t.concat().reverse().reduce((s,a)=>a(s),e))!==null&&n!==void 0?n:e}function Th(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function ii(e){const t=rl(e);if(t)throw t}function oi(e,t,n){const s=new Headers(n??{});return s.set(rh,e?mh:dh),s.set(uh,"1"),s.set(ch,"connect-es/1.1.3"),s.set(lh,"connect-es/1.1.3"),t!==void 0&&s.set(ih,`${t}m`),s}function kh(e){switch(e){case 400:return oe.Internal;case 401:return oe.Unauthenticated;case 403:return oe.PermissionDenied;case 404:return oe.Unimplemented;case 429:return oe.Unavailable;case 502:return oe.Unavailable;case 503:return oe.Unavailable;case 504:return oe.Unavailable;default:return oe.Unknown}}function li(e,t){var n;if(e>=200&&e<300){const s=rl(t);if(s)throw s;return{foundStatus:t.has(al)}}throw new Te(decodeURIComponent((n=t.get(sl))!==null&&n!==void 0?n:`HTTP ${e}`),kh(e),t)}var Mt=globalThis&&globalThis.__await||function(e){return this instanceof Mt?(this.v=e,this):new Mt(e)},bh=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=n.apply(e,t||[]),a,o=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(y){s[y]&&(a[y]=function(b){return new Promise(function(A,R){o.push([y,b,A,R])>1||c(y,b)})})}function c(y,b){try{d(s[y](b))}catch(A){T(o[0][3],A)}}function d(y){y.value instanceof Mt?Promise.resolve(y.value.v).then(f,g):T(o[0][2],y)}function f(y){c("next",y)}function g(y){c("throw",y)}function T(y,b){y(b),o.shift(),o.length&&c(o[0][0],o[0][1])}};function Sh(e){var t;Th();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!0;return{async unary(s,a,o,u,c,d,f){var g;const{serialize:T,parse:y}=ai(a,n,e.jsonOptions,e.binaryOptions);return u=u===void 0?e.defaultTimeoutMs:u<=0?void 0:u,await gh({interceptors:e.interceptors,signal:o,timeoutMs:u,req:{stream:!1,service:s,method:a,url:ni(e.baseUrl,s,a),init:{method:"POST",credentials:(g=e.credentials)!==null&&g!==void 0?g:"same-origin",redirect:"error",mode:"cors"},header:oi(n,u,c),contextValues:f??ei(),message:d},next:async b=>{var A;const N=await((A=e.fetch)!==null&&A!==void 0?A:globalThis.fetch)(b.url,Object.assign(Object.assign({},b.init),{headers:b.header,signal:b.signal,body:Xr(0,T(b.message))}));if(li(N.status,N.headers),!N.body)throw"missing response body";const _=Jr(N.body).getReader();let I,P;for(;;){const U=await _.read();if(U.done)break;const{flags:B,data:V}=U.value;if(B===Ba){if(I!==void 0)throw"extra trailer";I=ti(V);continue}if(P!==void 0)throw"extra message";P=y(V)}if(I===void 0)throw"missing trailer";if(ii(I),P===void 0)throw"missing message";return{stream:!1,header:N.headers,message:P,trailer:I}}})},async stream(s,a,o,u,c,d,f){var g;const{serialize:T,parse:y}=ai(a,n,e.jsonOptions,e.binaryOptions);function b(R,N,_){return bh(this,arguments,function*(){const P=Jr(R).getReader();if(N){if(!(yield Mt(P.read())).done)throw"extra data for trailers-only";return yield Mt(void 0)}let U=!1;for(;;){const B=yield Mt(P.read());if(B.done)break;const{flags:V,data:D}=B.value;if((V&Ba)===Ba){if(U)throw"extra trailer";U=!0;const $=ti(D);ii($),$.forEach((ee,ue)=>_.set(ue,ee));continue}if(U)throw"extra message";yield yield Mt(y(D))}if(!U)throw"missing trailer"})}async function A(R){if(a.kind!=G.ServerStreaming)throw"The fetch API does not support streaming request bodies";const N=await R[Symbol.asyncIterator]().next();if(N.done==!0)throw"missing request message";return Xr(0,T(N.value))}return u=u===void 0?e.defaultTimeoutMs:u<=0?void 0:u,yh({interceptors:e.interceptors,signal:o,timeoutMs:u,req:{stream:!0,service:s,method:a,url:ni(e.baseUrl,s,a),init:{method:"POST",credentials:(g=e.credentials)!==null&&g!==void 0?g:"same-origin",redirect:"error",mode:"cors"},header:oi(n,u,c),contextValues:f??ei(),message:d},next:async R=>{var N;const I=await((N=e.fetch)!==null&&N!==void 0?N:globalThis.fetch)(R.url,Object.assign(Object.assign({},R.init),{headers:R.header,signal:R.signal,body:await A(R.message)})),{foundStatus:P}=li(I.status,I.headers);if(!I.body)throw"missing response body";const U=new Headers;return Object.assign(Object.assign({},R),{header:I.headers,trailer:U,message:b(I.body,P,U)})}})}}}let Eh=()=>({emit(e,...t){let n=this.events[e]||[];for(let s=0,a=n.length;s<a;s++)n[s](...t)},events:{},on(e,t){var n;return(n=this.events[e])!=null&&n.push(t)||(this.events[e]=[t]),()=>{var s;this.events[e]=(s=this.events[e])==null?void 0:s.filter(a=>t!==a)}}});const vh=({cache:e=new Map,fetcher:t,...n}={})=>{const s=Eh();let a=!0;pi("visibilitychange",()=>{a=!document.hidden,a&&s.emit(ui)}),pi("online",()=>s.emit(mi));const o=new Map,u=new Map,c=new Map;let d={};const f=async([_,I],P,U,B)=>{var V;if(!a)return;const D=de=>{P.key===_&&(P.set(de),s.emit(Pa,_,de,!0))},$=()=>{D({...P.value,...hi,promise:c.get(_)})},{dedupeTime:ee=4e3,fetcher:ue}={...U,...d},ce=fi();if(c.has(_)){P.value.loading||$();return}if(!B){const de=e.get(_);de&&P.value.data!==de&&D({data:de,...St});const se=u.get(_);if(se&&se+ee>ce)return}const ke=r1();try{const de=ue(...I);u.set(_,ce),c.set(_,de),$();const se=await de;e.set(_,se),D({data:se,...St}),u.set(_,fi())}catch(de){(V=U.onError)==null||V.call(U,de),D({data:P.value.data,error:de,...St})}finally{ke(),c.delete(_)}},g=(_,{fetcher:I=t,...P}={})=>{const U=ds({...St}),B={...n,...P,fetcher:I};U._=cl,U.invalidate=()=>{const{key:se}=U;se&&b(se)},U.mutate=se=>{const{key:pe}=U;pe&&A(pe,se)};let V,D,$,ee,ue,ce=[];f1(U,()=>{const se=!V;[ue,V]=_h(_),ee=ue.subscribe(Re=>{if(Re){const[q,v]=Re;U.key=q,f([q,v],U,B),D=q,$=v}else U.key=D=$=void 0,U.set({...St})});const pe=ue.get();pe&&([D,$]=pe,se&&ke());const{refetchInterval:De=0,refetchOnFocus:rt,refetchOnReconnect:je}=B,Ae=()=>{D&&f([D,$],U,B)};De>0&&o.set(_,setInterval(Ae,De)),rt&&ce.push(s.on(ui,Ae)),je&&ce.push(s.on(mi,Ae)),ce.push(s.on(di,Re=>{D&&Ua(D,Re)&&f([D,$],U,B,!0)}),s.on(Pa,(Re,q,v)=>{D&&Ua(D,Re)&&U.value!==q&&U.value.data!==q&&U.set(v?q:{data:q,...St})}))});const ke=()=>{D&&$&&f([D,$],U,B)},de=U.listen;return U.listen=se=>{const pe=de(se);return se(U.value),ke(),pe},h1(U,()=>{U.value={...St},V==null||V(),ce.forEach(pe=>pe()),ce=[],ee==null||ee();const se=o.get(_);se&&clearInterval(se)}),U},T=_=>{e.delete(_),u.delete(_)},y=(_,I)=>{for(const P of e.keys())Ua(P,_)&&I(P)},b=_=>{y(_,T),s.emit(di,_)},A=(_,I)=>{y(_,P=>{I===void 0?T(P):e.set(P,I)}),s.emit(Pa,_,I)};function R(_){const I=async U=>{var B;const V=d.fetcher??_,D=[];try{P.set({error:void 0,data:void 0,mutate:I,...hi});const $=await V({data:U,invalidate:ee=>{D.push(ee)},getCacheUpdater:(ee,ue=!0)=>[ce=>{A(ee,ce),ue&&D.push(ee)},e.get(ee)]});return P.setKey("data",$),$}catch($){(B=n==null?void 0:n.onError)==null||B.call(n,$),P.setKey("error",$)}finally{P.setKey("loading",!1),D.forEach(b)}},P=ds({mutate:I,...St});return P.mutate=I,P}return[g,R,{__unsafeOverruleSettings:_=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),d=_},invalidateKeys:b,mutateCache:A}]};function ci(e){return typeof e=="string"||typeof e=="number"||e===!0}const _h=e=>{if(ci(e))return[_t([""+e,[e]]),()=>{}];let t=_t(null),n=[];const s=()=>{n.some(o=>o==null||o===!1)?t.set(null):t.set([n.join(""),n])},a=[];for(let o=0;o<e.length;o++){const u=e[o];ci(u)?n.push(u):a.push(u.subscribe(c=>{n[o]=wh(u)?u.value&&"data"in u.value?u.key:null:c,s()}))}return s(),[t,()=>a.forEach(o=>o())]};function wh(e){return e._===cl}const ui=1,mi=2,di=3,Pa=4,pi=(e,t)=>{typeof window>"u"||addEventListener(e,t)},Ua=(e,t)=>Array.isArray(t)?t.includes(e):typeof t=="function"?t(e):e===t,fi=()=>new Date().getTime(),cl=Symbol(),hi={loading:!0},St={loading:!1},Ah=m.makeEnum("streamlayer.sports.LeagueSyncStatus",[{no:0,name:"LEAGUE_SYNC_STATUS_UNSET",localName:"UNSET"},{no:1,name:"LEAGUE_SYNC_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:2,name:"LEAGUE_SYNC_STATUS_IN_PROGRESS",localName:"IN_PROGRESS"},{no:3,name:"LEAGUE_SYNC_STATUS_SYNCED",localName:"SYNCED"},{no:4,name:"LEAGUE_SYNC_STATUS_ERROR",localName:"ERROR"}]),Qs=m.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),Ys=m.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),ga=m.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),ul=m.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),ya=m.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),Ta=m.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sports.Team",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"alias",kind:"scalar",T:9},{no:5,name:"venue",kind:"message",T:Ta}]);const Ln=m.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),ml=m.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]);m.makeMessageType("streamlayer.sports.Event",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"league_id",kind:"scalar",T:4},{no:4,name:"season_id",kind:"scalar",T:4},{no:5,name:"home_team_id",kind:"scalar",T:4},{no:6,name:"away_team_id",kind:"scalar",T:4},{no:7,name:"winner_team_id",kind:"scalar",T:4},{no:8,name:"scheduled",kind:"scalar",T:9},{no:9,name:"score_home",kind:"scalar",T:5},{no:10,name:"score_away",kind:"scalar",T:5},{no:11,name:"venue",kind:"message",T:Ta},{no:12,name:"event_time",kind:"message",T:Ln},{no:13,name:"status",kind:"enum",T:m.getEnumType(Qs)},{no:14,name:"periods",kind:"message",T:ml,repeated:!0},{no:15,name:"start_time",kind:"scalar",T:9},{no:16,name:"end_time",kind:"scalar",T:9},{no:17,name:"endless",kind:"enum",T:m.getEnumType(Ys)}]);const dl=m.makeMessageType("streamlayer.sports.Country",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"abbreviation",kind:"scalar",T:9}]),Rh=m.makeMessageType("streamlayer.sports.PlayerAttributes",()=>[{no:1,name:"display_id",kind:"scalar",T:5},{no:3,name:"full_first",kind:"scalar",T:9},{no:4,name:"full_last",kind:"scalar",T:9},{no:5,name:"uniform",kind:"scalar",T:9},{no:6,name:"height",kind:"message",T:Ch},{no:7,name:"weight",kind:"message",T:Ih},{no:8,name:"birth",kind:"message",T:Nh}]),Ch=m.makeMessageType("streamlayer.sports.PlayerAttributes.Height",()=>[{no:1,name:"centimeters",kind:"scalar",T:5},{no:2,name:"inches",kind:"scalar",T:5}],{localName:"PlayerAttributes_Height"}),Ih=m.makeMessageType("streamlayer.sports.PlayerAttributes.Weight",()=>[{no:1,name:"kilograms",kind:"scalar",T:5},{no:2,name:"pounds",kind:"scalar",T:5}],{localName:"PlayerAttributes_Weight"}),Nh=m.makeMessageType("streamlayer.sports.PlayerAttributes.Birth",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"message",T:dl}],{localName:"PlayerAttributes_Birth"});m.makeMessageType("streamlayer.sports.PlayerAttributes.Birth.BirthDate",()=>[{no:1,name:"year",kind:"scalar",T:5},{no:2,name:"month",kind:"scalar",T:5},{no:3,name:"date",kind:"scalar",T:5},{no:4,name:"full",kind:"scalar",T:9}],{localName:"PlayerAttributes_Birth_BirthDate"});const Oh=m.makeMessageType("streamlayer.sports.PlayerTeam",()=>[{no:1,name:"team_id",kind:"scalar",T:4},{no:2,name:"position",kind:"scalar",T:9},{no:3,name:"jersey_number",kind:"scalar",T:5}]);m.makeMessageType("streamlayer.sports.Player",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"first_name",kind:"scalar",T:9},{no:10,name:"last_name",kind:"scalar",T:9},{no:14,name:"display_name",kind:"scalar",T:9},{no:11,name:"birth_date",kind:"scalar",T:9},{no:12,name:"nationality",kind:"message",T:dl},{no:13,name:"attributes",kind:"message",T:Rh},{no:15,name:"teams",kind:"message",T:Oh,repeated:!0}]);const wt=m.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]);m.makeMessageType("streamlayer.sports.Season",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"type",kind:"scalar",T:9},{no:6,name:"year",kind:"scalar",T:5},{no:7,name:"league_id",kind:"scalar",T:4}]);const En=m.makeMessageType("streamlayer.sports.SyncStatusStage",()=>[{no:1,name:"stage",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4},{no:3,name:"datetime",kind:"scalar",T:9},{no:4,name:"error",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:m.getEnumType(Ah)}]),Lh=m.makeMessageType("streamlayer.sports.SyncStatus",()=>[{no:1,name:"teams",kind:"message",T:En},{no:2,name:"event",kind:"message",T:En},{no:3,name:"events",kind:"message",T:En},{no:4,name:"players",kind:"message",T:En},{no:5,name:"leagues",kind:"message",T:En}]),xh=m.makeMessageType("streamlayer.sports.SyncStatusProvider",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"status",kind:"message",T:Lh}]);m.makeMessageType("streamlayer.sports.League",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"country",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9},{no:13,name:"sync",kind:"scalar",T:8},{no:14,name:"sport_id",kind:"scalar",T:4},{no:12,name:"sync_status",kind:"message",T:xh,repeated:!0}]);m.makeMessageType("streamlayer.sports.Sport",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"created",kind:"scalar",T:9},{no:3,name:"updated",kind:"scalar",T:9},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9}]);const Mh=m.makeMessageType("streamlayer.sports.NflEventStatistics",()=>[{no:1,name:"passes",kind:"scalar",T:5},{no:2,name:"rushes",kind:"scalar",T:5},{no:3,name:"penalties",kind:"scalar",T:5},{no:4,name:"turnovers",kind:"scalar",T:5}]),Bh=m.makeMessageType("streamlayer.sports.SoccerEventStatistics",()=>[{no:1,name:"ball_possession",kind:"scalar",T:5},{no:2,name:"throw_ins",kind:"scalar",T:5},{no:3,name:"fouls",kind:"scalar",T:5},{no:4,name:"goal_kicks",kind:"scalar",T:5},{no:5,name:"free_kicks",kind:"scalar",T:5},{no:6,name:"shots_on_target",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"shots_off_target",kind:"scalar",T:5},{no:9,name:"shots_saved",kind:"scalar",T:5},{no:10,name:"offsides",kind:"scalar",T:5},{no:11,name:"shots_blocked",kind:"scalar",T:5},{no:12,name:"yellow_cards",kind:"scalar",T:5}]);m.makeMessageType("streamlayer.sports.EventTeamStatistics",()=>[{no:1,name:"football",kind:"message",T:Mh,oneof:"statistics"},{no:2,name:"soccer",kind:"message",T:Bh,oneof:"statistics"}]);const At=m.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),Ph=m.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),Uh=m.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),Fh=m.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:At},{no:6,name:"away",kind:"message",T:At},{no:7,name:"status",kind:"enum",T:m.getEnumType(Qs)},{no:8,name:"custom_fields",kind:"message",T:Ph},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:Ta},{no:12,name:"schedule",kind:"message",T:Uh,repeated:!0},{no:13,name:"endless",kind:"enum",T:m.getEnumType(Ys)},{no:14,name:"provider_id",kind:"scalar",T:9}]),jt=m.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:Ta},{no:6,name:"event_time",kind:"message",T:Ln},{no:7,name:"home_team",kind:"message",T:At},{no:8,name:"away_team",kind:"message",T:At},{no:9,name:"status",kind:"enum",T:m.getEnumType(Qs)},{no:10,name:"periods",kind:"message",T:ml,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9},{no:16,name:"stream",kind:"scalar",T:9}]),Vn=m.makeMessageType("streamlayer.sports.QueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]),gi=m.makeMessageType("streamlayer.sports.ArrayQueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9,repeated:!0}]);m.makeMessageType("streamlayer.sports.Query",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"match",kind:"message",T:Vn,repeated:!0},{no:3,name:"ne",kind:"message",T:Vn,repeated:!0},{no:4,name:"eq",kind:"message",T:Vn,repeated:!0},{no:5,name:"between",kind:"message",T:gi,repeated:!0},{no:6,name:"includes",kind:"message",T:gi,repeated:!0},{no:7,name:"is",kind:"message",T:Vn,repeated:!0}]);const Dh=m.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),Vh=m.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),yi=m.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:pl},{no:2,name:"status",kind:"enum",T:m.getEnumType(Dh)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),jh=m.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),Gh=m.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:m.getEnumType(Vh)},{no:2,name:"player",kind:"message",T:jh}]),qh=m.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),$h=m.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),pl=m.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),Ti=m.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:qh,repeated:!0},{no:2,name:"batting",kind:"message",T:$h,repeated:!0},{no:3,name:"pitching",kind:"message",T:pl,repeated:!0}]),Hh=m.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:yi},{no:2,name:"away_pitcher",kind:"message",T:yi},{no:3,name:"home_statistics",kind:"message",T:Ti},{no:4,name:"away_statistics",kind:"message",T:Ti}]),zh=m.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:At},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:Qh,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),Qh=m.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),Yh=m.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:Gh,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:wt},{no:9,name:"away_team_record",kind:"message",T:wt}]),Kh=m.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:zh,repeated:!0}]),Wh=m.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:Hh}]),Zh=m.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:Jh},{no:11,name:"rank",kind:"message",T:Xh},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),Jh=m.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),Xh=m.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),eg=m.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:Zh,repeated:!0}]),tg=m.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),ng=m.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:wt},{no:9,name:"away_team_record",kind:"message",T:wt}]),ki=m.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),bi=m.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),ag=m.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:m.getEnumType(tg)},{no:2,name:"home_player",kind:"message",T:bi},{no:3,name:"away_player",kind:"message",T:bi}]),sg=m.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:ki},{no:2,name:"away_statistics",kind:"message",T:ki}]),rg=m.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:sg},{no:2,name:"top_performers",kind:"message",T:ag,repeated:!0},{no:3,name:"last_games",kind:"message",T:fl}]),ig=m.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:At},{no:2,name:"event_time",kind:"message",T:Ln},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),og=m.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:ig,repeated:!0}]),Si=m.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),lg=m.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:Si,repeated:!0},{no:2,name:"away_players",kind:"message",T:Si,repeated:!0}]),cg=m.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:ug},{no:11,name:"rank",kind:"message",T:mg},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),ug=m.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),mg=m.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),dg=m.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:cg,repeated:!0}]),Ei=m.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),vi=m.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:Ei,repeated:!0},{no:4,name:"substitutes",kind:"message",T:Ei,repeated:!0}]),pg=m.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:vi},{no:2,name:"away_team",kind:"message",T:vi}]),Fa=m.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:fg}]),fg=m.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),fl=m.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:Fa,repeated:!0},{no:2,name:"away",kind:"message",T:Fa,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:Fa,repeated:!0}]),hg=m.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),hl=m.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),gg=m.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:wt},{no:9,name:"away_team_record",kind:"message",T:wt}]),_i=m.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),yg=m.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:m.getEnumType(hg)},{no:2,name:"home_player",kind:"message",T:_i,repeated:!0},{no:3,name:"away_player",kind:"message",T:_i,repeated:!0}]),wi=m.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),Tg=m.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:wi},{no:2,name:"away_statistics",kind:"message",T:wi}]),kg=m.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:Tg},{no:2,name:"top_performers",kind:"message",T:yg,repeated:!0}]),bg=m.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:At},{no:2,name:"event_time",kind:"message",T:Ln},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),Sg=m.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:bg,repeated:!0}]),Da=m.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:m.getEnumType(hl)}]),Ai=m.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:m.getEnumType(hl)}]),Ri=m.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:Da,repeated:!0},{no:2,name:"goaltender",kind:"message",T:Ai},{no:3,name:"forwards",kind:"message",T:Da,repeated:!0},{no:4,name:"defensemen",kind:"message",T:Da,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:Ai,repeated:!0}]),Eg=m.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:Ri},{no:2,name:"away_players",kind:"message",T:Ri}]),vg=m.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:_g},{no:11,name:"rank",kind:"message",T:wg},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),_g=m.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),wg=m.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Ag=m.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:vg,repeated:!0}]),Rg=m.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),Cg=m.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),Ig=m.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:wt},{no:9,name:"away_team_record",kind:"message",T:wt}]),Ks=m.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),Ng=m.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:Ks},{no:2,name:"attack_stats",kind:"message",T:Dg}]),Og=m.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:Ks},{no:2,name:"midfield_stats",kind:"message",T:Vg}]),Lg=m.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:Ks},{no:2,name:"defense_stats",kind:"message",T:jg}]),xg=m.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:m.getEnumType(Rg)},{no:2,name:"attack_performer",kind:"message",T:Ng},{no:3,name:"midfield_performer",kind:"message",T:Og},{no:4,name:"defense_performer",kind:"message",T:Lg}]),Mg=m.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),Bg=m.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),Pg=m.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),Ci=m.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:Mg},{no:2,name:"attacking_stats",kind:"message",T:Bg},{no:3,name:"defense_stats",kind:"message",T:Pg}]),Ug=m.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:Ci},{no:2,name:"away_statistics",kind:"message",T:Ci},{no:3,name:"perfomers",kind:"message",T:xg}]),Fg=m.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:Ug},{no:2,name:"last_games",kind:"message",T:gl}]),Dg=m.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),Vg=m.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),jg=m.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]);m.makeMessageType("streamlayer.sports.soccer.SoccerMatchOdds",()=>[{no:1,name:"home_team_win",kind:"scalar",T:1},{no:2,name:"draw",kind:"scalar",T:1},{no:3,name:"away_team_win",kind:"scalar",T:1}]);const Gg=m.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),qg=m.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:Gg,repeated:!0}]),Ii=m.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),Ni=m.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:qg,repeated:!0},{no:3,name:"start_players",kind:"message",T:Ii,repeated:!0},{no:4,name:"substitutes",kind:"message",T:Ii,repeated:!0}]),$g=m.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:Ni},{no:2,name:"away_team",kind:"message",T:Ni}]);m.makeMessageType("streamlayer.sports.soccer.SoccerMatchScore",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"mil",kind:"scalar",T:1},{no:3,name:"round",kind:"scalar",T:9},{no:4,name:"live_url",kind:"scalar",T:9}]);const Hg=m.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:At},{no:2,name:"event_time",kind:"message",T:Ln},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:m.getEnumType(Cg)}]),zg=m.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:Hg,repeated:!0}]),Qg=m.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),Yg=m.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:Qg,repeated:!0}]),Va=m.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:Kg}]),Kg=m.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),gl=m.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:Va,repeated:!0},{no:2,name:"away",kind:"message",T:Va,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:Va,repeated:!0}]),Gt=m.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),Wg=m.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"baseball",kind:"message",T:Yh,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:ng,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:gg,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:Ig,oneof:"sport"}]),Zg=m.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:Wg}]),Jg=m.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:Fh}]),yl=m.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:Jg}]),Xg=m.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:ey},{no:2,name:"pagination",kind:"message",T:ga},{no:3,name:"sort",kind:"message",T:ul},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),ey=m.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:m.getEnumType(Ys)}],{localName:"ListRequest_Filter"}),ty=m.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:ny},{no:2,name:"pagination",kind:"message",T:ga},{no:3,name:"sort",kind:"message",T:ul}]),ny=m.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),ay=m.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:ya},{no:2,name:"data",kind:"message",T:yl,repeated:!0}]),sy=m.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:ya},{no:2,name:"data",kind:"message",T:yl,repeated:!0}]),Oi=m.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),Li=m.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:ry}]),ry=m.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:iy}],{localName:"SummaryResponse_ResponseData"}),iy=m.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"baseball",kind:"message",T:Wh,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:rg,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:kg,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Fg,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),oy=m.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),ly=m.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:cy}]),cy=m.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:uy}],{localName:"AdminSummaryResponse_ResponseData"}),uy=m.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"provider_id",kind:"scalar",T:9}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),my=m.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:ga},{no:3,name:"order",kind:"scalar",T:9}]),dy=m.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:py},{no:2,name:"meta",kind:"message",T:ya}]),py=m.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:fy}],{localName:"PlayByPlayResponse_ResponseData"}),fy=m.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"baseball",kind:"message",T:Kh,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:og,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:Sg,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:zg,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),hy=m.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:gy},{no:2,name:"pagination",kind:"message",T:ga}]),gy=m.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),yy=m.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:Zg,repeated:!0},{no:2,name:"meta",kind:"message",T:ya}]),Ty=m.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:ky}]),ky=m.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),by=m.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),Sy=m.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),Ey=m.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:vy}]),vy=m.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:_y}],{localName:"BoxscoreResponse_ResponseData"}),_y=m.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"basketball",kind:"message",T:lg,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Eg,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),wy=m.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),Ay=m.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:Ry}]),Ry=m.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:2,name:"attributes",kind:"message",T:Cy}],{localName:"StandingsResponse_ResponseData"}),Cy=m.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:dg,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Ag,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:eg,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Yg,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),Iy=m.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),Ny=m.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:Oy}]),Oy=m.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:Ly}],{localName:"LineupResponse_ResponseData"}),Ly=m.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"soccer",kind:"message",T:$g,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:pg,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),xy=m.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),My=m.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:By}]),By=m.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:m.getEnumType(Gt)},{no:3,name:"attributes",kind:"message",T:Py}],{localName:"LastGamesResponse_ResponseData"}),Py=m.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:jt},{no:2,name:"soccer",kind:"message",T:gl,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:fl,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),Uy=m.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),Fy=m.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:Dy}]),Dy=m.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),Vy={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:Xg,O:sy,kind:G.Unary},demoList:{name:"DemoList",I:ty,O:ay,kind:G.Unary},summary:{name:"Summary",I:Oi,O:Li,kind:G.Unary},adminSummary:{name:"AdminSummary",I:oy,O:ly,kind:G.Unary},boxscore:{name:"Boxscore",I:Sy,O:Ey,kind:G.Unary},standings:{name:"Standings",I:wy,O:Ay,kind:G.Unary},playByPlay:{name:"PlayByPlay",I:my,O:dy,kind:G.Unary},schedule:{name:"Schedule",I:hy,O:yy,kind:G.Unary},scheduleDates:{name:"ScheduleDates",I:Ty,O:by,kind:G.Unary},lineup:{name:"Lineup",I:Iy,O:Ny,kind:G.Unary},retrieveEventId:{name:"RetrieveEventId",I:Uy,O:Fy,kind:G.Unary},lastGames:{name:"LastGames",I:xy,O:My,kind:G.Unary},summarySubscription:{name:"SummarySubscription",I:Oi,O:Li,kind:G.ServerStreaming}}},jy=m.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),Gy=m.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),qy=m.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),$y=m.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),Hy=m.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),zy=m.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),Qy=m.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),Yy=m.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),Tl=m.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),Ky=m.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),Wy=m.makeEnum("streamlayer.sdkSettings.client.GroupType",[{no:0,name:"GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"GROUP_TYPE_WP",localName:"WP"}]),Zy=m.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:m.getEnumType(Tl)}]),Jy=m.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:m.getEnumType(Tl)}]),ja=m.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:Zy},{no:2,name:"sound",kind:"message",T:Jy}]),Ws=m.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:m.getEnumType(jy)},{no:2,name:"messages_notify",kind:"enum",T:m.getEnumType(Gy)},{no:3,name:"friends_notify",kind:"enum",T:m.getEnumType(qy)},{no:4,name:"calls_sound",kind:"enum",T:m.getEnumType(Hy)},{no:5,name:"messages_sound",kind:"enum",T:m.getEnumType(zy)},{no:6,name:"friends_sound",kind:"enum",T:m.getEnumType(Qy)},{no:7,name:"twitter_notify",kind:"enum",T:m.getEnumType($y)},{no:8,name:"twitter_sound",kind:"enum",T:m.getEnumType(Yy)},{no:9,name:"gamification",kind:"message",T:ja},{no:10,name:"watch_party_invitation",kind:"message",T:ja},{no:11,name:"twitter_question",kind:"message",T:ja}]),Xy=m.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),e3=m.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:t3}]),t3=m.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ws}],{localName:"GetResponse_GetResponseData"}),n3=m.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:Ws}]),a3=m.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:s3}]),s3=m.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ws}],{localName:"UpdateResponse_UpdateResponseData"}),r3=m.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),i3=m.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:o3}]),o3=m.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Po}],{localName:"GetStreamResponse_GetResponseData"}),l3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),c3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:u3}]),u3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Uo}],{localName:"GetOrganizationResponse_GetResponseData"}),m3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),d3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:p3}]),p3=m.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Fo}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),f3=m.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:m.getEnumType(Ky)}]),kl=m.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:f3},{no:5,name:"external_event_id",kind:"scalar",T:9},{no:6,name:"external_group_id",kind:"scalar",T:9},{no:7,name:"group_type",kind:"enum",T:m.getEnumType(Wy)}]),h3=m.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:kl}]),g3=m.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),y3=m.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:T3}]),T3=m.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:g3}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"});m.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkRequest",()=>[{no:1,name:"url",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:k3}]);const k3=m.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse.RetreiveDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:kl}],{localName:"RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData"}),b3=m.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),S3=m.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),E3=m.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:v3}]),v3=m.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Po}],{localName:"StreamSubscriptionResponse_ResponseData"}),_3=m.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:w3}]),w3=m.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Uo}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),xn={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:Xy,O:e3,kind:G.Unary},update:{name:"Update",I:n3,O:a3,kind:G.Unary},getStream:{name:"GetStream",I:r3,O:i3,kind:G.Unary},getOrganization:{name:"GetOrganization",I:l3,O:c3,kind:G.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:m3,O:d3,kind:G.Unary},generateDeepLink:{name:"GenerateDeepLink",I:h3,O:y3,kind:G.Unary},streamSubscription:{name:"StreamSubscription",I:b3,O:E3,kind:G.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:S3,O:_3,kind:G.ServerStreaming}}},A3=m.makeEnum("streamlayer.users.UserNotificationPreference",[{no:0,name:"USER_NOTIFICATION_PREFERENCE_UNSET",localName:"UNSET"},{no:1,name:"USER_NOTIFICATION_PREFERENCE_ALL_EVENTS",localName:"ALL_EVENTS"},{no:2,name:"USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY",localName:"IMPORTANT_EVENTS_ONLY"},{no:3,name:"USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS",localName:"DAILY_SUMMARY_AND_MENTIONS"}]),R3=m.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),C3=m.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:R3},{no:7,name:"public_name",kind:"scalar",T:9}]);m.makeMessageType("streamlayer.users.UserOrganization",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"permissions",kind:"scalar",T:9,repeated:!0}]);const I3=m.makeMessageType("streamlayer.users.UserMetadata",()=>[{no:2,name:"avatar",kind:"scalar",T:9},{no:3,name:"avatar_background_colour",kind:"scalar",T:9},{no:4,name:"timezone",kind:"scalar",T:9},{no:5,name:"notification_preference",kind:"enum",T:m.getEnumType(A3)},{no:6,name:"active",kind:"scalar",T:8},{no:7,name:"first_name",kind:"scalar",T:9},{no:8,name:"last_name",kind:"scalar",T:9},{no:9,name:"roles",kind:"scalar",T:9,repeated:!0}]),N3=m.makeMessageType("streamlayer.users.ExtendedUserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"metadata",kind:"message",T:I3}]),Zs=m.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:C3}]);m.makeMessageType("streamlayer.users.ExtendedUser",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:N3}]);const O3=m.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),L3=m.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:x3},{no:2,name:"data",kind:"message",T:Zs}]),x3=m.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),M3=m.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),B3=m.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),P3=m.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:B3}]),U3=m.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),F3=m.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),D3=m.makeMessageType("streamlayer.users.MeRequest",[]),V3=m.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:Zs}]),j3=m.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),G3=m.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),q3=m.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),$3=m.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),H3=m.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),z3=m.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),Q3=m.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),Y3=m.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),K3=m.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:W3}]),W3=m.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),Z3=m.makeMessageType("streamlayer.users.InviteResponse",[]),J3=m.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8}]),X3=m.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:e6},{no:2,name:"data",kind:"message",T:Zs,opt:!0}]),e6=m.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),bl={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:O3,O:L3,kind:G.Unary},register:{name:"Register",I:M3,O:P3,kind:G.Unary},requestPassword:{name:"RequestPassword",I:U3,O:F3,kind:G.Unary},me:{name:"Me",I:D3,O:V3,kind:G.Unary},invite:{name:"Invite",I:K3,O:Z3,kind:G.Unary},bypassAuth:{name:"BypassAuth",I:J3,O:X3,kind:G.Unary},updateMetadata:{name:"UpdateMetadata",I:j3,O:Y3,kind:G.Unary},updateAvatar:{name:"UpdateAvatar",I:G3,O:q3,kind:G.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:$3,O:H3,kind:G.Unary},updatePublicName:{name:"UpdatePublicName",I:z3,O:Q3,kind:G.Unary}}},st={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:Zm,O:Jm,kind:G.Unary},subscription:{name:"Subscription",I:am,O:sm,kind:G.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:im,O:om,kind:G.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:um,O:mm,kind:G.ServerStreaming},questionByUser:{name:"QuestionByUser",I:fm,O:hm,kind:G.Unary},syncQuestion:{name:"SyncQuestion",I:ym,O:km,kind:G.Unary},getQuestion:{name:"GetQuestion",I:Sm,O:Em,kind:G.Unary},questionDetail:{name:"QuestionDetail",I:_m,O:wm,kind:G.Unary},submitAnswer:{name:"SubmitAnswer",I:Rm,O:Im,kind:G.Unary},submitInplay:{name:"SubmitInplay",I:Om,O:xm,kind:G.Unary},skipQuestion:{name:"SkipQuestion",I:Mm,O:Pm,kind:G.Unary},pickHistory:{name:"PickHistory",I:Fm,O:Dm,kind:G.Unary},insightHistory:{name:"InsightHistory",I:Gm,O:$m,kind:G.Unary},tweetHistory:{name:"TweetHistory",I:zm,O:Qm,kind:G.Unary},promotionHistory:{name:"PromotionHistory",I:ed,O:td,kind:G.Unary},list:{name:"List",I:sd,O:id,kind:G.Unary},feedSubscription:{name:"FeedSubscription",I:ld,O:cd,kind:G.ServerStreaming}}},t6=m.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),Sl=m.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:m.getEnumType(t6)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:Sl,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),Js=m.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),n6=m.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:Js},{no:2,name:"percentage",kind:"message",T:a6}]),a6=m.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),s6=m.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:pa},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),r6=m.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:i6,repeated:!0},{no:2,name:"meta",kind:"message",T:o6}]),i6=m.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Js}],{localName:"ListResponse_ListResponseData"}),o6=m.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),l6=m.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),c6=m.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:u6}]),u6=m.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:n6}],{localName:"SummaryResponse_SummaryResponseData"}),m6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),d6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:p6}]),p6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Sl}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),f6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:pa},{no:4,name:"sort",kind:"message",T:Ku}]),h6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:g6,repeated:!0},{no:2,name:"meta",kind:"message",T:y6}]),g6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Js}],{localName:"EventLeaderboardResponse_ListResponseData"}),y6=m.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),El={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:s6,O:r6,kind:G.Unary},summary:{name:"Summary",I:l6,O:c6,kind:G.Unary},eventLeaderboards:{name:"EventLeaderboards",I:m6,O:d6,kind:G.Unary},eventLeaderboard:{name:"EventLeaderboard",I:f6,O:h6,kind:G.Unary}}};var vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof un.global<"u"?un.global:typeof self<"u"?self:{};function T6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W={},_l={},ka={};ka.byteLength=S6;ka.toByteArray=v6;ka.fromByteArray=A6;var tt=[],qe=[],k6=typeof Uint8Array<"u"?Uint8Array:Array,Ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Wt=0,b6=Ga.length;Wt<b6;++Wt)tt[Wt]=Ga[Wt],qe[Ga.charCodeAt(Wt)]=Wt;qe["-".charCodeAt(0)]=62;qe["_".charCodeAt(0)]=63;function wl(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var s=n===t?0:4-n%4;return[n,s]}function S6(e){var t=wl(e),n=t[0],s=t[1];return(n+s)*3/4-s}function E6(e,t,n){return(t+n)*3/4-n}function v6(e){var t,n=wl(e),s=n[0],a=n[1],o=new k6(E6(e,s,a)),u=0,c=a>0?s-4:s,d;for(d=0;d<c;d+=4)t=qe[e.charCodeAt(d)]<<18|qe[e.charCodeAt(d+1)]<<12|qe[e.charCodeAt(d+2)]<<6|qe[e.charCodeAt(d+3)],o[u++]=t>>16&255,o[u++]=t>>8&255,o[u++]=t&255;return a===2&&(t=qe[e.charCodeAt(d)]<<2|qe[e.charCodeAt(d+1)]>>4,o[u++]=t&255),a===1&&(t=qe[e.charCodeAt(d)]<<10|qe[e.charCodeAt(d+1)]<<4|qe[e.charCodeAt(d+2)]>>2,o[u++]=t>>8&255,o[u++]=t&255),o}function _6(e){return tt[e>>18&63]+tt[e>>12&63]+tt[e>>6&63]+tt[e&63]}function w6(e,t,n){for(var s,a=[],o=t;o<n;o+=3)s=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),a.push(_6(s));return a.join("")}function A6(e){for(var t,n=e.length,s=n%3,a=[],o=16383,u=0,c=n-s;u<c;u+=o)a.push(w6(e,u,u+o>c?c:u+o));return s===1?(t=e[n-1],a.push(tt[t>>2]+tt[t<<4&63]+"==")):s===2&&(t=(e[n-2]<<8)+e[n-1],a.push(tt[t>>10]+tt[t>>4&63]+tt[t<<2&63]+"=")),a.join("")}var Xs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Xs.read=function(e,t,n,s,a){var o,u,c=a*8-s-1,d=(1<<c)-1,f=d>>1,g=-7,T=n?a-1:0,y=n?-1:1,b=e[t+T];for(T+=y,o=b&(1<<-g)-1,b>>=-g,g+=c;g>0;o=o*256+e[t+T],T+=y,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=s;g>0;u=u*256+e[t+T],T+=y,g-=8);if(o===0)o=1-f;else{if(o===d)return u?NaN:(b?-1:1)*(1/0);u=u+Math.pow(2,s),o=o-f}return(b?-1:1)*u*Math.pow(2,o-s)};Xs.write=function(e,t,n,s,a,o){var u,c,d,f=o*8-a-1,g=(1<<f)-1,T=g>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=s?0:o-1,A=s?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=g):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+T>=1?t+=y/d:t+=y*Math.pow(2,1-T),t*d>=2&&(u++,d/=2),u+T>=g?(c=0,u=g):u+T>=1?(c=(t*d-1)*Math.pow(2,a),u=u+T):(c=t*Math.pow(2,T-1)*Math.pow(2,a),u=0));a>=8;e[n+b]=c&255,b+=A,c/=256,a-=8);for(u=u<<a|c,f+=a;f>0;e[n+b]=u&255,b+=A,u/=256,f-=8);e[n+b-A]|=R*128};/*!
280
12
  * The buffer module from node.js, for the browser.
281
13
  *
282
14
  * @author Feross Aboukhadijeh <https://feross.org>
283
15
  * @license MIT
284
- */(function(te){const ie=Ot,oe=fr,le=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;te.Buffer=he,te.SlowBuffer=rt,te.INSPECT_MAX_BYTES=50;const ce=2147483647;te.kMaxLength=ce,he.TYPED_ARRAY_SUPPORT=ue(),!he.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ue(){try{const ge=new Uint8Array(1),ye={foo:function(){return 42}};return Object.setPrototypeOf(ye,Uint8Array.prototype),Object.setPrototypeOf(ge,ye),ge.foo()===42}catch{return!1}}Object.defineProperty(he.prototype,"parent",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.buffer}}),Object.defineProperty(he.prototype,"offset",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.byteOffset}});function fe(ge){if(ge>ce)throw new RangeError('The value "'+ge+'" is invalid for option "size"');const ye=new Uint8Array(ge);return Object.setPrototypeOf(ye,he.prototype),ye}function he(ge,ye,Te){if(typeof ge=="number"){if(typeof ye=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Me(ge)}return ve(ge,ye,Te)}he.poolSize=8192;function ve(ge,ye,Te){if(typeof ge=="string")return Pe(ge,ye);if(ArrayBuffer.isView(ge))return Oe(ge);if(ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ge);if(ja(ge,ArrayBuffer)||ge&&ja(ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ja(ge,SharedArrayBuffer)||ge&&ja(ge.buffer,SharedArrayBuffer)))return Be(ge,ye,Te);if(typeof ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const it=ge.valueOf&&ge.valueOf();if(it!=null&&it!==ge)return he.from(it,ye,Te);const pt=xe(ge);if(pt)return pt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ge[Symbol.toPrimitive]=="function")return he.from(ge[Symbol.toPrimitive]("string"),ye,Te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ge)}he.from=function(ge,ye,Te){return ve(ge,ye,Te)},Object.setPrototypeOf(he.prototype,Uint8Array.prototype),Object.setPrototypeOf(he,Uint8Array);function Se(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be of type number');if(ge<0)throw new RangeError('The value "'+ge+'" is invalid for option "size"')}function ke(ge,ye,Te){return Se(ge),ge<=0?fe(ge):ye!==void 0?typeof Te=="string"?fe(ge).fill(ye,Te):fe(ge).fill(ye):fe(ge)}he.alloc=function(ge,ye,Te){return ke(ge,ye,Te)};function Me(ge){return Se(ge),fe(ge<0?0:nt(ge)|0)}he.allocUnsafe=function(ge){return Me(ge)},he.allocUnsafeSlow=function(ge){return Me(ge)};function Pe(ge,ye){if((typeof ye!="string"||ye==="")&&(ye="utf8"),!he.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);const Te=ot(ge,ye)|0;let it=fe(Te);const pt=it.write(ge,ye);return pt!==Te&&(it=it.slice(0,pt)),it}function Re(ge){const ye=ge.length<0?0:nt(ge.length)|0,Te=fe(ye);for(let it=0;it<ye;it+=1)Te[it]=ge[it]&255;return Te}function Oe(ge){if(ja(ge,Uint8Array)){const ye=new Uint8Array(ge);return Be(ye.buffer,ye.byteOffset,ye.byteLength)}return Re(ge)}function Be(ge,ye,Te){if(ye<0||ge.byteLength<ye)throw new RangeError('"offset" is outside of buffer bounds');if(ge.byteLength<ye+(Te||0))throw new RangeError('"length" is outside of buffer bounds');let it;return ye===void 0&&Te===void 0?it=new Uint8Array(ge):Te===void 0?it=new Uint8Array(ge,ye):it=new Uint8Array(ge,ye,Te),Object.setPrototypeOf(it,he.prototype),it}function xe(ge){if(he.isBuffer(ge)){const ye=nt(ge.length)|0,Te=fe(ye);return Te.length===0||ge.copy(Te,0,0,ye),Te}if(ge.length!==void 0)return typeof ge.length!="number"||Ya(ge.length)?fe(0):Re(ge);if(ge.type==="Buffer"&&Array.isArray(ge.data))return Re(ge.data)}function nt(ge){if(ge>=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return ge|0}function rt(ge){return+ge!=ge&&(ge=0),he.alloc(+ge)}he.isBuffer=function(ge){return ge!=null&&ge._isBuffer===!0&&ge!==he.prototype},he.compare=function(ge,ye){if(ja(ge,Uint8Array)&&(ge=he.from(ge,ge.offset,ge.byteLength)),ja(ye,Uint8Array)&&(ye=he.from(ye,ye.offset,ye.byteLength)),!he.isBuffer(ge)||!he.isBuffer(ye))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ge===ye)return 0;let Te=ge.length,it=ye.length;for(let pt=0,ft=Math.min(Te,it);pt<ft;++pt)if(ge[pt]!==ye[pt]){Te=ge[pt],it=ye[pt];break}return Te<it?-1:it<Te?1:0},he.isEncoding=function(ge){switch(String(ge).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},he.concat=function(ge,ye){if(!Array.isArray(ge))throw new TypeError('"list" argument must be an Array of Buffers');if(ge.length===0)return he.alloc(0);let Te;if(ye===void 0)for(ye=0,Te=0;Te<ge.length;++Te)ye+=ge[Te].length;const it=he.allocUnsafe(ye);let pt=0;for(Te=0;Te<ge.length;++Te){let ft=ge[Te];if(ja(ft,Uint8Array))pt+ft.length>it.length?(he.isBuffer(ft)||(ft=he.from(ft)),ft.copy(it,pt)):Uint8Array.prototype.set.call(it,ft,pt);else if(he.isBuffer(ft))ft.copy(it,pt);else throw new TypeError('"list" argument must be an Array of Buffers');pt+=ft.length}return it};function ot(ge,ye){if(he.isBuffer(ge))return ge.length;if(ArrayBuffer.isView(ge)||ja(ge,ArrayBuffer))return ge.byteLength;if(typeof ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ge);const Te=ge.length,it=arguments.length>2&&arguments[2]===!0;if(!it&&Te===0)return 0;let pt=!1;for(;;)switch(ye){case"ascii":case"latin1":case"binary":return Te;case"utf8":case"utf-8":return Qa(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te*2;case"hex":return Te>>>1;case"base64":return qa(ge).length;default:if(pt)return it?-1:Qa(ge).length;ye=(""+ye).toLowerCase(),pt=!0}}he.byteLength=ot;function ht(ge,ye,Te){let it=!1;if((ye===void 0||ye<0)&&(ye=0),ye>this.length||((Te===void 0||Te>this.length)&&(Te=this.length),Te<=0)||(Te>>>=0,ye>>>=0,Te<=ye))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return _a(this,ye,Te);case"utf8":case"utf-8":return Kn(this,ye,Te);case"ascii":return Jn(this,ye,Te);case"latin1":case"binary":return zn(this,ye,Te);case"base64":return Ta(this,ye,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ia(this,ye,Te);default:if(it)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),it=!0}}he.prototype._isBuffer=!0;function dt(ge,ye,Te){const it=ge[ye];ge[ye]=ge[Te],ge[Te]=it}he.prototype.swap16=function(){const ge=this.length;if(ge%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ye=0;ye<ge;ye+=2)dt(this,ye,ye+1);return this},he.prototype.swap32=function(){const ge=this.length;if(ge%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ye=0;ye<ge;ye+=4)dt(this,ye,ye+3),dt(this,ye+1,ye+2);return this},he.prototype.swap64=function(){const ge=this.length;if(ge%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ye=0;ye<ge;ye+=8)dt(this,ye,ye+7),dt(this,ye+1,ye+6),dt(this,ye+2,ye+5),dt(this,ye+3,ye+4);return this},he.prototype.toString=function(){const ge=this.length;return ge===0?"":arguments.length===0?Kn(this,0,ge):ht.apply(this,arguments)},he.prototype.toLocaleString=he.prototype.toString,he.prototype.equals=function(ge){if(!he.isBuffer(ge))throw new TypeError("Argument must be a Buffer");return this===ge?!0:he.compare(this,ge)===0},he.prototype.inspect=function(){let ge="";const ye=te.INSPECT_MAX_BYTES;return ge=this.toString("hex",0,ye).replace(/(.{2})/g,"$1 ").trim(),this.length>ye&&(ge+=" ... "),"<Buffer "+ge+">"},le&&(he.prototype[le]=he.prototype.inspect),he.prototype.compare=function(ge,ye,Te,it,pt){if(ja(ge,Uint8Array)&&(ge=he.from(ge,ge.offset,ge.byteLength)),!he.isBuffer(ge))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ge);if(ye===void 0&&(ye=0),Te===void 0&&(Te=ge?ge.length:0),it===void 0&&(it=0),pt===void 0&&(pt=this.length),ye<0||Te>ge.length||it<0||pt>this.length)throw new RangeError("out of range index");if(it>=pt&&ye>=Te)return 0;if(it>=pt)return-1;if(ye>=Te)return 1;if(ye>>>=0,Te>>>=0,it>>>=0,pt>>>=0,this===ge)return 0;let ft=pt-it,qn=Te-ye;const Pa=Math.min(ft,qn),Va=this.slice(it,pt),Fa=ge.slice(ye,Te);for(let Oa=0;Oa<Pa;++Oa)if(Va[Oa]!==Fa[Oa]){ft=Va[Oa],qn=Fa[Oa];break}return ft<qn?-1:qn<ft?1:0};function Rt(ge,ye,Te,it,pt){if(ge.length===0)return-1;if(typeof Te=="string"?(it=Te,Te=0):Te>2147483647?Te=2147483647:Te<-2147483648&&(Te=-2147483648),Te=+Te,Ya(Te)&&(Te=pt?0:ge.length-1),Te<0&&(Te=ge.length+Te),Te>=ge.length){if(pt)return-1;Te=ge.length-1}else if(Te<0)if(pt)Te=0;else return-1;if(typeof ye=="string"&&(ye=he.from(ye,it)),he.isBuffer(ye))return ye.length===0?-1:Ct(ge,ye,Te,it,pt);if(typeof ye=="number")return ye=ye&255,typeof Uint8Array.prototype.indexOf=="function"?pt?Uint8Array.prototype.indexOf.call(ge,ye,Te):Uint8Array.prototype.lastIndexOf.call(ge,ye,Te):Ct(ge,[ye],Te,it,pt);throw new TypeError("val must be string, number or Buffer")}function Ct(ge,ye,Te,it,pt){let ft=1,qn=ge.length,Pa=ye.length;if(it!==void 0&&(it=String(it).toLowerCase(),it==="ucs2"||it==="ucs-2"||it==="utf16le"||it==="utf-16le")){if(ge.length<2||ye.length<2)return-1;ft=2,qn/=2,Pa/=2,Te/=2}function Va(Oa,Ba){return ft===1?Oa[Ba]:Oa.readUInt16BE(Ba*ft)}let Fa;if(pt){let Oa=-1;for(Fa=Te;Fa<qn;Fa++)if(Va(ge,Fa)===Va(ye,Oa===-1?0:Fa-Oa)){if(Oa===-1&&(Oa=Fa),Fa-Oa+1===Pa)return Oa*ft}else Oa!==-1&&(Fa-=Fa-Oa),Oa=-1}else for(Te+Pa>qn&&(Te=qn-Pa),Fa=Te;Fa>=0;Fa--){let Oa=!0;for(let Ba=0;Ba<Pa;Ba++)if(Va(ge,Fa+Ba)!==Va(ye,Ba)){Oa=!1;break}if(Oa)return Fa}return-1}he.prototype.includes=function(ge,ye,Te){return this.indexOf(ge,ye,Te)!==-1},he.prototype.indexOf=function(ge,ye,Te){return Rt(this,ge,ye,Te,!0)},he.prototype.lastIndexOf=function(ge,ye,Te){return Rt(this,ge,ye,Te,!1)};function Lt(ge,ye,Te,it){Te=Number(Te)||0;const pt=ge.length-Te;it?(it=Number(it),it>pt&&(it=pt)):it=pt;const ft=ye.length;it>ft/2&&(it=ft/2);let qn;for(qn=0;qn<it;++qn){const Pa=parseInt(ye.substr(qn*2,2),16);if(Ya(Pa))return qn;ge[Te+qn]=Pa}return qn}function Qn(ge,ye,Te,it){return Ha(Qa(ye,ge.length-Te),ge,Te,it)}function Mn(ge,ye,Te,it){return Ha(Wa(ye),ge,Te,it)}function Gn(ge,ye,Te,it){return Ha(qa(ye),ge,Te,it)}function Sa(ge,ye,Te,it){return Ha(va(ye,ge.length-Te),ge,Te,it)}he.prototype.write=function(ge,ye,Te,it){if(ye===void 0)it="utf8",Te=this.length,ye=0;else if(Te===void 0&&typeof ye=="string")it=ye,Te=this.length,ye=0;else if(isFinite(ye))ye=ye>>>0,isFinite(Te)?(Te=Te>>>0,it===void 0&&(it="utf8")):(it=Te,Te=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const pt=this.length-ye;if((Te===void 0||Te>pt)&&(Te=pt),ge.length>0&&(Te<0||ye<0)||ye>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");let ft=!1;for(;;)switch(it){case"hex":return Lt(this,ge,ye,Te);case"utf8":case"utf-8":return Qn(this,ge,ye,Te);case"ascii":case"latin1":case"binary":return Mn(this,ge,ye,Te);case"base64":return Gn(this,ge,ye,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sa(this,ge,ye,Te);default:if(ft)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),ft=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ta(ge,ye,Te){return ye===0&&Te===ge.length?ie.fromByteArray(ge):ie.fromByteArray(ge.slice(ye,Te))}function Kn(ge,ye,Te){Te=Math.min(ge.length,Te);const it=[];let pt=ye;for(;pt<Te;){const ft=ge[pt];let qn=null,Pa=ft>239?4:ft>223?3:ft>191?2:1;if(pt+Pa<=Te){let Va,Fa,Oa,Ba;switch(Pa){case 1:ft<128&&(qn=ft);break;case 2:Va=ge[pt+1],(Va&192)===128&&(Ba=(ft&31)<<6|Va&63,Ba>127&&(qn=Ba));break;case 3:Va=ge[pt+1],Fa=ge[pt+2],(Va&192)===128&&(Fa&192)===128&&(Ba=(ft&15)<<12|(Va&63)<<6|Fa&63,Ba>2047&&(Ba<55296||Ba>57343)&&(qn=Ba));break;case 4:Va=ge[pt+1],Fa=ge[pt+2],Oa=ge[pt+3],(Va&192)===128&&(Fa&192)===128&&(Oa&192)===128&&(Ba=(ft&15)<<18|(Va&63)<<12|(Fa&63)<<6|Oa&63,Ba>65535&&Ba<1114112&&(qn=Ba))}}qn===null?(qn=65533,Pa=1):qn>65535&&(qn-=65536,it.push(qn>>>10&1023|55296),qn=56320|qn&1023),it.push(qn),pt+=Pa}return Ra(it)}const ka=4096;function Ra(ge){const ye=ge.length;if(ye<=ka)return String.fromCharCode.apply(String,ge);let Te="",it=0;for(;it<ye;)Te+=String.fromCharCode.apply(String,ge.slice(it,it+=ka));return Te}function Jn(ge,ye,Te){let it="";Te=Math.min(ge.length,Te);for(let pt=ye;pt<Te;++pt)it+=String.fromCharCode(ge[pt]&127);return it}function zn(ge,ye,Te){let it="";Te=Math.min(ge.length,Te);for(let pt=ye;pt<Te;++pt)it+=String.fromCharCode(ge[pt]);return it}function _a(ge,ye,Te){const it=ge.length;(!ye||ye<0)&&(ye=0),(!Te||Te<0||Te>it)&&(Te=it);let pt="";for(let ft=ye;ft<Te;++ft)pt+=Ja[ge[ft]];return pt}function Ia(ge,ye,Te){const it=ge.slice(ye,Te);let pt="";for(let ft=0;ft<it.length-1;ft+=2)pt+=String.fromCharCode(it[ft]+it[ft+1]*256);return pt}he.prototype.slice=function(ge,ye){const Te=this.length;ge=~~ge,ye=ye===void 0?Te:~~ye,ge<0?(ge+=Te,ge<0&&(ge=0)):ge>Te&&(ge=Te),ye<0?(ye+=Te,ye<0&&(ye=0)):ye>Te&&(ye=Te),ye<ge&&(ye=ge);const it=this.subarray(ge,ye);return Object.setPrototypeOf(it,he.prototype),it};function wa(ge,ye,Te){if(ge%1!==0||ge<0)throw new RangeError("offset is not uint");if(ge+ye>Te)throw new RangeError("Trying to access beyond buffer length")}he.prototype.readUintLE=he.prototype.readUIntLE=function(ge,ye,Te){ge=ge>>>0,ye=ye>>>0,Te||wa(ge,ye,this.length);let it=this[ge],pt=1,ft=0;for(;++ft<ye&&(pt*=256);)it+=this[ge+ft]*pt;return it},he.prototype.readUintBE=he.prototype.readUIntBE=function(ge,ye,Te){ge=ge>>>0,ye=ye>>>0,Te||wa(ge,ye,this.length);let it=this[ge+--ye],pt=1;for(;ye>0&&(pt*=256);)it+=this[ge+--ye]*pt;return it},he.prototype.readUint8=he.prototype.readUInt8=function(ge,ye){return ge=ge>>>0,ye||wa(ge,1,this.length),this[ge]},he.prototype.readUint16LE=he.prototype.readUInt16LE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,2,this.length),this[ge]|this[ge+1]<<8},he.prototype.readUint16BE=he.prototype.readUInt16BE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,2,this.length),this[ge]<<8|this[ge+1]},he.prototype.readUint32LE=he.prototype.readUInt32LE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),(this[ge]|this[ge+1]<<8|this[ge+2]<<16)+this[ge+3]*16777216},he.prototype.readUint32BE=he.prototype.readUInt32BE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),this[ge]*16777216+(this[ge+1]<<16|this[ge+2]<<8|this[ge+3])},he.prototype.readBigUInt64LE=za(function(ge){ge=ge>>>0,Ca(ge,"offset");const ye=this[ge],Te=this[ge+7];(ye===void 0||Te===void 0)&&$a(ge,this.length-8);const it=ye+this[++ge]*2**8+this[++ge]*2**16+this[++ge]*2**24,pt=this[++ge]+this[++ge]*2**8+this[++ge]*2**16+Te*2**24;return BigInt(it)+(BigInt(pt)<<BigInt(32))}),he.prototype.readBigUInt64BE=za(function(ge){ge=ge>>>0,Ca(ge,"offset");const ye=this[ge],Te=this[ge+7];(ye===void 0||Te===void 0)&&$a(ge,this.length-8);const it=ye*2**24+this[++ge]*2**16+this[++ge]*2**8+this[++ge],pt=this[++ge]*2**24+this[++ge]*2**16+this[++ge]*2**8+Te;return(BigInt(it)<<BigInt(32))+BigInt(pt)}),he.prototype.readIntLE=function(ge,ye,Te){ge=ge>>>0,ye=ye>>>0,Te||wa(ge,ye,this.length);let it=this[ge],pt=1,ft=0;for(;++ft<ye&&(pt*=256);)it+=this[ge+ft]*pt;return pt*=128,it>=pt&&(it-=Math.pow(2,8*ye)),it},he.prototype.readIntBE=function(ge,ye,Te){ge=ge>>>0,ye=ye>>>0,Te||wa(ge,ye,this.length);let it=ye,pt=1,ft=this[ge+--it];for(;it>0&&(pt*=256);)ft+=this[ge+--it]*pt;return pt*=128,ft>=pt&&(ft-=Math.pow(2,8*ye)),ft},he.prototype.readInt8=function(ge,ye){return ge=ge>>>0,ye||wa(ge,1,this.length),this[ge]&128?(255-this[ge]+1)*-1:this[ge]},he.prototype.readInt16LE=function(ge,ye){ge=ge>>>0,ye||wa(ge,2,this.length);const Te=this[ge]|this[ge+1]<<8;return Te&32768?Te|4294901760:Te},he.prototype.readInt16BE=function(ge,ye){ge=ge>>>0,ye||wa(ge,2,this.length);const Te=this[ge+1]|this[ge]<<8;return Te&32768?Te|4294901760:Te},he.prototype.readInt32LE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),this[ge]|this[ge+1]<<8|this[ge+2]<<16|this[ge+3]<<24},he.prototype.readInt32BE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),this[ge]<<24|this[ge+1]<<16|this[ge+2]<<8|this[ge+3]},he.prototype.readBigInt64LE=za(function(ge){ge=ge>>>0,Ca(ge,"offset");const ye=this[ge],Te=this[ge+7];(ye===void 0||Te===void 0)&&$a(ge,this.length-8);const it=this[ge+4]+this[ge+5]*2**8+this[ge+6]*2**16+(Te<<24);return(BigInt(it)<<BigInt(32))+BigInt(ye+this[++ge]*2**8+this[++ge]*2**16+this[++ge]*2**24)}),he.prototype.readBigInt64BE=za(function(ge){ge=ge>>>0,Ca(ge,"offset");const ye=this[ge],Te=this[ge+7];(ye===void 0||Te===void 0)&&$a(ge,this.length-8);const it=(ye<<24)+this[++ge]*2**16+this[++ge]*2**8+this[++ge];return(BigInt(it)<<BigInt(32))+BigInt(this[++ge]*2**24+this[++ge]*2**16+this[++ge]*2**8+Te)}),he.prototype.readFloatLE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),oe.read(this,ge,!0,23,4)},he.prototype.readFloatBE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,4,this.length),oe.read(this,ge,!1,23,4)},he.prototype.readDoubleLE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,8,this.length),oe.read(this,ge,!0,52,8)},he.prototype.readDoubleBE=function(ge,ye){return ge=ge>>>0,ye||wa(ge,8,this.length),oe.read(this,ge,!1,52,8)};function Vn(ge,ye,Te,it,pt,ft){if(!he.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(ye>pt||ye<ft)throw new RangeError('"value" argument is out of bounds');if(Te+it>ge.length)throw new RangeError("Index out of range")}he.prototype.writeUintLE=he.prototype.writeUIntLE=function(ge,ye,Te,it){if(ge=+ge,ye=ye>>>0,Te=Te>>>0,!it){const qn=Math.pow(2,8*Te)-1;Vn(this,ge,ye,Te,qn,0)}let pt=1,ft=0;for(this[ye]=ge&255;++ft<Te&&(pt*=256);)this[ye+ft]=ge/pt&255;return ye+Te},he.prototype.writeUintBE=he.prototype.writeUIntBE=function(ge,ye,Te,it){if(ge=+ge,ye=ye>>>0,Te=Te>>>0,!it){const qn=Math.pow(2,8*Te)-1;Vn(this,ge,ye,Te,qn,0)}let pt=Te-1,ft=1;for(this[ye+pt]=ge&255;--pt>=0&&(ft*=256);)this[ye+pt]=ge/ft&255;return ye+Te},he.prototype.writeUint8=he.prototype.writeUInt8=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,1,255,0),this[ye]=ge&255,ye+1},he.prototype.writeUint16LE=he.prototype.writeUInt16LE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,2,65535,0),this[ye]=ge&255,this[ye+1]=ge>>>8,ye+2},he.prototype.writeUint16BE=he.prototype.writeUInt16BE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,2,65535,0),this[ye]=ge>>>8,this[ye+1]=ge&255,ye+2},he.prototype.writeUint32LE=he.prototype.writeUInt32LE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,4,4294967295,0),this[ye+3]=ge>>>24,this[ye+2]=ge>>>16,this[ye+1]=ge>>>8,this[ye]=ge&255,ye+4},he.prototype.writeUint32BE=he.prototype.writeUInt32BE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,4,4294967295,0),this[ye]=ge>>>24,this[ye+1]=ge>>>16,this[ye+2]=ge>>>8,this[ye+3]=ge&255,ye+4};function Wn(ge,ye,Te,it,pt){Ga(ye,it,pt,ge,Te,7);let ft=Number(ye&BigInt(4294967295));ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft,ft=ft>>8,ge[Te++]=ft;let qn=Number(ye>>BigInt(32)&BigInt(4294967295));return ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,qn=qn>>8,ge[Te++]=qn,Te}function ba(ge,ye,Te,it,pt){Ga(ye,it,pt,ge,Te,7);let ft=Number(ye&BigInt(4294967295));ge[Te+7]=ft,ft=ft>>8,ge[Te+6]=ft,ft=ft>>8,ge[Te+5]=ft,ft=ft>>8,ge[Te+4]=ft;let qn=Number(ye>>BigInt(32)&BigInt(4294967295));return ge[Te+3]=qn,qn=qn>>8,ge[Te+2]=qn,qn=qn>>8,ge[Te+1]=qn,qn=qn>>8,ge[Te]=qn,Te+8}he.prototype.writeBigUInt64LE=za(function(ge,ye=0){return Wn(this,ge,ye,BigInt(0),BigInt("0xffffffffffffffff"))}),he.prototype.writeBigUInt64BE=za(function(ge,ye=0){return ba(this,ge,ye,BigInt(0),BigInt("0xffffffffffffffff"))}),he.prototype.writeIntLE=function(ge,ye,Te,it){if(ge=+ge,ye=ye>>>0,!it){const Pa=Math.pow(2,8*Te-1);Vn(this,ge,ye,Te,Pa-1,-Pa)}let pt=0,ft=1,qn=0;for(this[ye]=ge&255;++pt<Te&&(ft*=256);)ge<0&&qn===0&&this[ye+pt-1]!==0&&(qn=1),this[ye+pt]=(ge/ft>>0)-qn&255;return ye+Te},he.prototype.writeIntBE=function(ge,ye,Te,it){if(ge=+ge,ye=ye>>>0,!it){const Pa=Math.pow(2,8*Te-1);Vn(this,ge,ye,Te,Pa-1,-Pa)}let pt=Te-1,ft=1,qn=0;for(this[ye+pt]=ge&255;--pt>=0&&(ft*=256);)ge<0&&qn===0&&this[ye+pt+1]!==0&&(qn=1),this[ye+pt]=(ge/ft>>0)-qn&255;return ye+Te},he.prototype.writeInt8=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,1,127,-128),ge<0&&(ge=255+ge+1),this[ye]=ge&255,ye+1},he.prototype.writeInt16LE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,2,32767,-32768),this[ye]=ge&255,this[ye+1]=ge>>>8,ye+2},he.prototype.writeInt16BE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,2,32767,-32768),this[ye]=ge>>>8,this[ye+1]=ge&255,ye+2},he.prototype.writeInt32LE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,4,2147483647,-2147483648),this[ye]=ge&255,this[ye+1]=ge>>>8,this[ye+2]=ge>>>16,this[ye+3]=ge>>>24,ye+4},he.prototype.writeInt32BE=function(ge,ye,Te){return ge=+ge,ye=ye>>>0,Te||Vn(this,ge,ye,4,2147483647,-2147483648),ge<0&&(ge=4294967295+ge+1),this[ye]=ge>>>24,this[ye+1]=ge>>>16,this[ye+2]=ge>>>8,this[ye+3]=ge&255,ye+4},he.prototype.writeBigInt64LE=za(function(ge,ye=0){return Wn(this,ge,ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),he.prototype.writeBigInt64BE=za(function(ge,ye=0){return ba(this,ge,ye,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Aa(ge,ye,Te,it,pt,ft){if(Te+it>ge.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("Index out of range")}function Da(ge,ye,Te,it,pt){return ye=+ye,Te=Te>>>0,pt||Aa(ge,ye,Te,4),oe.write(ge,ye,Te,it,23,4),Te+4}he.prototype.writeFloatLE=function(ge,ye,Te){return Da(this,ge,ye,!0,Te)},he.prototype.writeFloatBE=function(ge,ye,Te){return Da(this,ge,ye,!1,Te)};function xa(ge,ye,Te,it,pt){return ye=+ye,Te=Te>>>0,pt||Aa(ge,ye,Te,8),oe.write(ge,ye,Te,it,52,8),Te+8}he.prototype.writeDoubleLE=function(ge,ye,Te){return xa(this,ge,ye,!0,Te)},he.prototype.writeDoubleBE=function(ge,ye,Te){return xa(this,ge,ye,!1,Te)},he.prototype.copy=function(ge,ye,Te,it){if(!he.isBuffer(ge))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!it&&it!==0&&(it=this.length),ye>=ge.length&&(ye=ge.length),ye||(ye=0),it>0&&it<Te&&(it=Te),it===Te||ge.length===0||this.length===0)return 0;if(ye<0)throw new RangeError("targetStart out of bounds");if(Te<0||Te>=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),ge.length-ye<it-Te&&(it=ge.length-ye+Te);const pt=it-Te;return this===ge&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ye,Te,it):Uint8Array.prototype.set.call(ge,this.subarray(Te,it),ye),pt},he.prototype.fill=function(ge,ye,Te,it){if(typeof ge=="string"){if(typeof ye=="string"?(it=ye,ye=0,Te=this.length):typeof Te=="string"&&(it=Te,Te=this.length),it!==void 0&&typeof it!="string")throw new TypeError("encoding must be a string");if(typeof it=="string"&&!he.isEncoding(it))throw new TypeError("Unknown encoding: "+it);if(ge.length===1){const ft=ge.charCodeAt(0);(it==="utf8"&&ft<128||it==="latin1")&&(ge=ft)}}else typeof ge=="number"?ge=ge&255:typeof ge=="boolean"&&(ge=Number(ge));if(ye<0||this.length<ye||this.length<Te)throw new RangeError("Out of range index");if(Te<=ye)return this;ye=ye>>>0,Te=Te===void 0?this.length:Te>>>0,ge||(ge=0);let pt;if(typeof ge=="number")for(pt=ye;pt<Te;++pt)this[pt]=ge;else{const ft=he.isBuffer(ge)?ge:he.from(ge,it),qn=ft.length;if(qn===0)throw new TypeError('The value "'+ge+'" is invalid for argument "value"');for(pt=0;pt<Te-ye;++pt)this[pt+ye]=ft[pt%qn]}return this};const Ea={};function Ma(ge,ye,Te){Ea[ge]=class extends Te{constructor(){super(),Object.defineProperty(this,"message",{value:ye.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ge}]`,this.stack,delete this.name}get code(){return ge}set code(it){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:it,writable:!0})}toString(){return`${this.name} [${ge}]: ${this.message}`}}}Ma("ERR_BUFFER_OUT_OF_BOUNDS",function(ge){return ge?`${ge} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ma("ERR_INVALID_ARG_TYPE",function(ge,ye){return`The "${ge}" argument must be of type number. Received type ${typeof ye}`},TypeError),Ma("ERR_OUT_OF_RANGE",function(ge,ye,Te){let it=`The value of "${ge}" is out of range.`,pt=Te;return Number.isInteger(Te)&&Math.abs(Te)>2**32?pt=La(String(Te)):typeof Te=="bigint"&&(pt=String(Te),(Te>BigInt(2)**BigInt(32)||Te<-(BigInt(2)**BigInt(32)))&&(pt=La(pt)),pt+="n"),it+=` It must be ${ye}. Received ${pt}`,it},RangeError);function La(ge){let ye="",Te=ge.length;const it=ge[0]==="-"?1:0;for(;Te>=it+4;Te-=3)ye=`_${ge.slice(Te-3,Te)}${ye}`;return`${ge.slice(0,Te)}${ye}`}function Ua(ge,ye,Te){Ca(ye,"offset"),(ge[ye]===void 0||ge[ye+Te]===void 0)&&$a(ye,ge.length-(Te+1))}function Ga(ge,ye,Te,it,pt,ft){if(ge>Te||ge<ye){const qn=typeof ye=="bigint"?"n":"";let Pa;throw ft>3?ye===0||ye===BigInt(0)?Pa=`>= 0${qn} and < 2${qn} ** ${(ft+1)*8}${qn}`:Pa=`>= -(2${qn} ** ${(ft+1)*8-1}${qn}) and < 2 ** ${(ft+1)*8-1}${qn}`:Pa=`>= ${ye}${qn} and <= ${Te}${qn}`,new Ea.ERR_OUT_OF_RANGE("value",Pa,ge)}Ua(it,pt,ft)}function Ca(ge,ye){if(typeof ge!="number")throw new Ea.ERR_INVALID_ARG_TYPE(ye,"number",ge)}function $a(ge,ye,Te){throw Math.floor(ge)!==ge?(Ca(ge,Te),new Ea.ERR_OUT_OF_RANGE(Te||"offset","an integer",ge)):ye<0?new Ea.ERR_BUFFER_OUT_OF_BOUNDS:new Ea.ERR_OUT_OF_RANGE(Te||"offset",`>= ${Te?1:0} and <= ${ye}`,ge)}const Ka=/[^+/0-9A-Za-z-_]/g;function Za(ge){if(ge=ge.split("=")[0],ge=ge.trim().replace(Ka,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function Qa(ge,ye){ye=ye||1/0;let Te;const it=ge.length;let pt=null;const ft=[];for(let qn=0;qn<it;++qn){if(Te=ge.charCodeAt(qn),Te>55295&&Te<57344){if(!pt){if(Te>56319){(ye-=3)>-1&&ft.push(239,191,189);continue}else if(qn+1===it){(ye-=3)>-1&&ft.push(239,191,189);continue}pt=Te;continue}if(Te<56320){(ye-=3)>-1&&ft.push(239,191,189),pt=Te;continue}Te=(pt-55296<<10|Te-56320)+65536}else pt&&(ye-=3)>-1&&ft.push(239,191,189);if(pt=null,Te<128){if((ye-=1)<0)break;ft.push(Te)}else if(Te<2048){if((ye-=2)<0)break;ft.push(Te>>6|192,Te&63|128)}else if(Te<65536){if((ye-=3)<0)break;ft.push(Te>>12|224,Te>>6&63|128,Te&63|128)}else if(Te<1114112){if((ye-=4)<0)break;ft.push(Te>>18|240,Te>>12&63|128,Te>>6&63|128,Te&63|128)}else throw new Error("Invalid code point")}return ft}function Wa(ge){const ye=[];for(let Te=0;Te<ge.length;++Te)ye.push(ge.charCodeAt(Te)&255);return ye}function va(ge,ye){let Te,it,pt;const ft=[];for(let qn=0;qn<ge.length&&!((ye-=2)<0);++qn)Te=ge.charCodeAt(qn),it=Te>>8,pt=Te%256,ft.push(pt),ft.push(it);return ft}function qa(ge){return ie.toByteArray(Za(ge))}function Ha(ge,ye,Te,it){let pt;for(pt=0;pt<it&&!(pt+Te>=ye.length||pt>=ge.length);++pt)ye[pt+Te]=ge[pt];return pt}function ja(ge,ye){return ge instanceof ye||ge!=null&&ge.constructor!=null&&ge.constructor.name!=null&&ge.constructor.name===ye.name}function Ya(ge){return ge!==ge}const Ja=function(){const ge="0123456789abcdef",ye=new Array(256);for(let Te=0;Te<16;++Te){const it=Te*16;for(let pt=0;pt<16;++pt)ye[it+pt]=ge[Te]+ge[pt]}return ye}();function za(ge){return typeof BigInt>"u"?Xa:ge}function Xa(){throw new Error("BigInt not supported")}})(Xr);var en={exports:{}},Y=en.exports={},me,be;function Xt(){throw new Error("setTimeout has not been defined")}function Zt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?me=setTimeout:me=Xt}catch{me=Xt}try{typeof clearTimeout=="function"?be=clearTimeout:be=Zt}catch{be=Zt}})();function tn(te){if(me===setTimeout)return setTimeout(te,0);if((me===Xt||!me)&&setTimeout)return me=setTimeout,setTimeout(te,0);try{return me(te,0)}catch{try{return me.call(null,te,0)}catch{return me.call(this,te,0)}}}function si(te){if(be===clearTimeout)return clearTimeout(te);if((be===Zt||!be)&&clearTimeout)return be=clearTimeout,clearTimeout(te);try{return be(te)}catch{try{return be.call(null,te)}catch{return be.call(this,te)}}}var _e=[],We=!1,Ue,yt=-1;function ai(){!We||!Ue||(We=!1,Ue.length?_e=Ue.concat(_e):yt=-1,_e.length&&rn())}function rn(){if(!We){var te=tn(ai);We=!0;for(var ie=_e.length;ie;){for(Ue=_e,_e=[];++yt<ie;)Ue&&Ue[yt].run();yt=-1,ie=_e.length}Ue=null,We=!1,si(te)}}Y.nextTick=function(te){var ie=new Array(arguments.length-1);if(arguments.length>1)for(var oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];_e.push(new nn(te,ie)),_e.length===1&&!We&&tn(rn)};function nn(te,ie){this.fun=te,this.array=ie}nn.prototype.run=function(){this.fun.apply(null,this.array)};Y.title="browser";Y.browser=!0;Y.env={};Y.argv=[];Y.version="";Y.versions={};function Ce(){}Y.on=Ce;Y.addListener=Ce;Y.once=Ce;Y.off=Ce;Y.removeListener=Ce;Y.removeAllListeners=Ce;Y.emit=Ce;Y.prependListener=Ce;Y.prependOnceListener=Ce;Y.listeners=function(te){return[]};Y.binding=function(te){throw new Error("process.binding is not supported")};Y.cwd=function(){return"/"};Y.chdir=function(te){throw new Error("process.chdir is not supported")};Y.umask=function(){return 0};var ui=en.exports;(function(te){Object.defineProperty(te,Symbol.toStringTag,{value:"Module"});const ie=Xr,oe=ui,le=fe=>fe&&fe.__esModule?fe:{default:fe},ce=le(oe),ue=globalThis||void 0||self;Object.defineProperty(te,"Buffer",{enumerable:!0,get:()=>ie.Buffer}),Object.defineProperty(te,"process",{enumerable:!0,get:()=>ce.default}),te.global=ue})(C);class ci{}window.slStore=Object.create(null);class xt{constructor(ie,oe){Hn(this,"store");Hn(this,"name");this.store=ie,this.name=oe}getStore(){return this.store}}const fi=te=>{const ie=Object.keys(te);return computed(ie.map(oe=>te[oe].getStore()),(...oe)=>Object.fromEntries(ie.map((le,ce)=>[le,oe[ce]])))};class at extends xt{constructor(){super(...arguments);Hn(this,"getValues",()=>this.getStore().get());Hn(this,"getValue",oe=>this.getStore().get()[oe]);Hn(this,"setValue",(oe,le)=>this.getStore().setKey(oe,le));Hn(this,"subscribe",(...oe)=>this.getStore().subscribe(...oe));Hn(this,"unsubscribe",()=>this.getStore().off())}}const $e=te=>map(te);var Ie;(function(te){te.ORGANIZATION="ORGANIZATION",te.STREAM="STREAM"})(Ie||(Ie={}));const li={[SdkOverlayType.BETTING]:"betting",[SdkOverlayType.GAMES]:"games",[SdkOverlayType.PUBLIC_CHAT]:"publicChat",[SdkOverlayType.TWITTER]:"twitter"};var De;(function(te){te.Ready="ready",te.Suspended="suspended"})(De||(De={}));class lr{constructor({settings:ie,...oe},le){Hn(this,"status");Hn(this,"source");Hn(this,"config");Hn(this,"settings");Hn(this,"listeners",new Set);Hn(this,"settingsKey");Hn(this,"enable",()=>{this.status.set(De.Ready)});Hn(this,"disable",()=>{this.status.set(De.Suspended)});Hn(this,"setFeatureConfig",({settings:ie,...oe})=>{var ce;let le;for(le in oe)this.config.setValue(le,oe[le]);if(((ce=ie==null?void 0:ie.overlaySettings)==null?void 0:ce.case)!==void 0&&(ie==null?void 0:ie.overlaySettings.case)===this.settingsKey){const ue=ie.overlaySettings.value;if(ue!==void 0){let fe;for(fe in ue)console.log(fe,ue[fe]),ue[fe]!==0&&ue[fe]!==""&&this.settings.setValue(fe,ue[fe])}}});Hn(this,"update",(ie,oe)=>{this.source===Ie.STREAM&&oe===Ie.ORGANIZATION||(this.setFeatureConfig(ie),this.source=oe)});this.settingsKey=li[oe.type],this.status=atom(De.Suspended),this.config=new at($e(oe),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(ie==null?void 0:ie.overlaySettings.case)===this.settingsKey?this.settings=new at($e(ie.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new at($e({}),`feature:settings:${this.settingsKey}`),this.source=le}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(ie){this.listeners.add(ie)}fireEvent(ie){for(const oe of this.listeners.values())try{oe.onEvent(ie)}catch(le){console.error(le)}}}class de extends xt{constructor(){super(...arguments);Hn(this,"getValue",()=>this.getStore().get());Hn(this,"setValue",oe=>this.getStore().set(oe));Hn(this,"subscribe",oe=>this.getStore().subscribe(oe));Hn(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(oe){return this.getStore().listen(oe)}get(){return this.getStore().get()}}const ne=te=>atom(te);class pe extends xt{constructor(oe,le,ce){super(oe,`api:${le}`);Hn(this,"atomStore");Hn(this,"getAtomStore",()=>this.atomStore);Hn(this,"getValue",async()=>{const oe=this.getStore();if(oe.value===void 0)throw new Error("no store");return await oe.value.promise,oe.get().data});Hn(this,"getValues",()=>{throw new Error("not implemented")});Hn(this,"setValue",oe=>this.getStore().set({loading:!1,data:oe==null?void 0:oe.data}));Hn(this,"subscribe",oe=>this.getStore().subscribe(oe));Hn(this,"unsubscribe",()=>{throw new Error("not implemented")});Hn(this,"invalidate",()=>{this.store.invalidate()});Hn(this,"listen",oe=>this.getStore().listen(oe));Hn(this,"key",()=>this.getStore().key);Hn(this,"off",()=>this.getStore().off());this.atomStore=atom(),ce&&oe.subscribe(ue=>{const fe=this.atomStore.get(),he=ce(ue,fe);fe!==he&&this.atomStore.set(he)})}get(){throw new Error("not implemented")}}async function*hi(te,ie){for await(const oe of ie){te.response.message=oe,te.received_at=Date.now();const le={type:"__GRPC_DEVTOOLS_EXTENSION__",data:te};window.postMessage(le),yield oe}}const pi=()=>te=>async ie=>{const oe={name:ie.url,request:{},response:{}};oe.request.header=Object.fromEntries(ie.header.entries()),oe.sent_at=Date.now();try{const le=await te(ie);if(oe.received_at=Date.now(),oe.stream=le.stream,oe.response.header=Object.fromEntries(le.header.entries()),oe.response.trailer=Object.fromEntries(le.trailer.entries()),le.stream)return{...le,message:hi(oe,le.message)};{oe.request.message=ie.message,oe.response.message=le.message,oe.latency=oe.received_at-oe.sent_at;const ce={type:"__GRPC_DEVTOOLS_EXTENSION__",data:oe};window.postMessage(ce)}return le}catch(le){oe.received_at=Date.now(),oe.request.message=ie.message,oe.response.trailer={"grpc-status":le.code,"grpc-message":le.rawMessage},oe.response.message=le.rawMessage,oe.latency=oe.received_at-oe.sent_at;const ce={type:"__GRPC_DEVTOOLS_EXTENSION__",data:oe};throw window.postMessage(ce),le}};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));var Ae;(function(te){te.Init="init",te.Ready="ready",te.Connecting="connecting",te.Connected="connected",te.Disconnected="disconnected",te.Failed="failed",te.Reconnecting="reconnecting"})(Ae||(Ae={}));class di{constructor(ie,oe,le,ce){Hn(this,"params");Hn(this,"stream");Hn(this,"method");Hn(this,"name");Hn(this,"headers");Hn(this,"listeners");Hn(this,"state");Hn(this,"store");Hn(this,"updateState",ie=>{this.state.setValue("status",ie),this.state.setValue("ts",new Date),this.addStateLog(`status => ${ie}`)});Hn(this,"addStateLog",ie=>{const oe=this.state.getStore().get().log;this.state.setValue("log",[...oe,`${new Date().toLocaleString()}: ${ie}`])});Hn(this,"addListener",(ie,oe)=>this.listeners.has(ie)?(this.addStateLog(`listener '${ie}' not added`),!1):(this.listeners.set(ie,oe),this.addStateLog(`listener '${ie}' added`),!0));Hn(this,"removeListener",ie=>{this.listeners.delete(ie),this.addStateLog(`listener '${ie}' removed`)});Hn(this,"connect",()=>{this.updateState(Ae.Connecting),this.stream&&(this.addStateLog("disconnect prev connection"),this.stream());const ie="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;this.stream=this.method(ie,this.onData,this.onStreamError,{headers:this.headers.getValues()}),this.updateState(Ae.Connected)});Hn(this,"disconnect",()=>{this.stream&&this.stream(),this.listeners.clear(),this.updateState(Ae.Disconnected)});Hn(this,"reconnect",()=>{this.updateState(Ae.Reconnecting),this.connect()});Hn(this,"getStore",()=>{var ie;return(ie=this.store)==null?void 0:ie.getStore()});Hn(this,"onData",ie=>{this.addStateLog(`received data => ${JSON.stringify(ie)}`),this.store&&this.store.setValue(ie);for(const[,oe]of this.listeners)oe(ie);this.addStateLog(`data routed to ${this.listeners.size} listeners`)});Hn(this,"onStreamError",ie=>{ie!==void 0&&(ie.code!==Code.Canceled&&ie.rawMessage!=="[canceled] BodyStreamBuffer was aborted"?(this.updateState(Ae.Failed),this.state.setValue("error",ie)):this.disconnect())});const ue={status:Ae.Init,ts:new Date,log:[]};this.state=new at($e(ue),`subscription:${ce.name}:state`),this.name=ce.name,this.headers=ie,this.listeners=new Map,this.params=le,this.method=oe,ce.withStore&&(this.store=new de(ne(null),`subscription:${ce.name}:store`)),"subscribe"in le&&typeof le.subscribe=="function"&&le.subscribe(()=>{this.reconnect()}),this.updateState(Ae.Ready)}}class yi{constructor(ie){Hn(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});Hn(this,"transport");Hn(this,"nanoquery");Hn(this,"host");Hn(this,"interceptors",[]);Hn(this,"$headers");Hn(this,"clients");Hn(this,"callbackClients");Hn(this,"subscriptions");Hn(this,"addSubscription",(ie,oe,le)=>{const ce=this.subscriptions.get(oe);if(ce)return ce;const ue=new di(this.$headers,ie,oe,le);return this.subscriptions.set(oe,ue),ue});Hn(this,"removeSubscription",ie=>{ie.disconnect(),this.subscriptions.delete(ie.params)});Hn(this,"disconnect",()=>{for(const[ie,oe]of this.subscriptions)oe.disconnect(),this.subscriptions.delete(ie)});Hn(this,"registerInterceptor",ie=>{this.interceptors.push(ie)});Hn(this,"removeInterceptor",ie=>{this.interceptors=this.interceptors.filter(oe=>oe!==ie)});Hn(this,"getClient",ie=>{const oe=ie.typeName;if(this.clients.has(oe))return this.clients.get(oe);const le=createPromiseClient(ie,this.transport);return this.clients.set(oe,le),le});Hn(this,"getCallbackClient",ie=>{const oe=ie.typeName;if(this.callbackClients.has(oe))return this.callbackClients.get(oe);const le=createCallbackClient(ie,this.transport);return this.callbackClients.set(oe,le),le});Hn(this,"createPromiseClient",(ie,{params:oe=[],method:le})=>{const ce=this.getClient(ie),ue=ie.methods[le].name,fe=[ie.typeName,ue.charAt(0).toLowerCase()+ue.slice(1),...Array.isArray(oe)?oe:[oe]],he=[ie.typeName,ue.charAt(0).toLowerCase()+ue.slice(1)];return{client:ce,queryKey:fe,queryKeyStr:he.join("")}});Hn(this,"createCallbackClient",ie=>({client:this.getCallbackClient(ie)}));Hn(this,"setSdkKey",ie=>{this.$headers.setValue("sdk",ie)});Hn(this,"setAuth",(ie,oe)=>{this.$headers.setValue("authorization",ie),this.$headers.setValue("sl-user-id",oe)});Hn(this,"setHeader",(ie,oe)=>this.$headers.setValue(ie,oe));Hn(this,"getHeader",ie=>this.$headers.getValue(ie));Hn(this,"getHeaders",()=>this.$headers.getValues());Hn(this,"initInterceptors",()=>{if(this.interceptors.length!==0)return;const ie=oe=>le=>{const ce=this.$headers.getValues();for(const ue in ce)le.header.set(ue,ce[ue]);return oe(le)};this.interceptors.push(ie),this.interceptors.push(pi())});var ue,fe;this.host=ie,this.$headers=new at($e({"sl-device-id":((fe=(ue=C.process)==null?void 0:ue.env)==null?void 0:fe.NX_DEVICE_ID)||"sdk-web-dev"}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.callbackClients=new Map,this.subscriptions=new Map;const[oe,le,ce]=nanoquery();this.nanoquery={createFetcherStore:oe,createMutatorStore:le,utils:ce},this.transport=createGrpcWebTransport({baseUrl:ie,interceptors:this.interceptors,useBinaryFormat:!0})}}const gi=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Events,{method:"retrieveEventId",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;if(!fe||typeof fe!="string")return"";try{return((he=(await oe.retrieveEventId({id:fe})).data)==null?void 0:he.id)||""}catch{return""}}})},mi=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Client,{method:"getStream",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;return fe?(he=(await oe.getStream({id:fe})).data)==null?void 0:he.attributes:void 0}})},bi=(te,ie)=>{const{queryKey:oe,client:le}=ie.createPromiseClient(Users,{method:"me",params:[te]});return ie.nanoquery.createFetcherStore(oe,{fetcher:()=>le.me({})})},wi=te=>{const{client:ie}=te.createPromiseClient(Users,{method:"bypassAuth"});return({userKey:oe,schema:le,init:ce})=>ie.bypassAuth({userKey:oe,schema:le,init:ce})},vi=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Client,{method:"get",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async()=>{var ce;return(ce=(await oe.get({})).data)==null?void 0:ce.attributes}})},Si=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Client,{method:"getOrganization",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async()=>{const ce=await oe.getOrganization({});return ce.data?{...ce.data.attributes,id:ce.data.id}:void 0}})},Ai=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Client,{method:"getOrganizationAdvertising",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async()=>{var ce;return(ce=(await oe.getOrganizationAdvertising({})).data)==null?void 0:ce.attributes}})},Ei=(te,ie,oe)=>{te.transport=new yi(ie.host),te.sdk.host=te.transport.host,te.transport.setSdkKey(ie.sdkKey),oe()};class hr{constructor(ie="main"){Hn(this,"delimiter",":");Hn(this,"prefix");Hn(this,"clear",()=>{for(const ie in window.localStorage)ie.startsWith(this.prefix)&&window.localStorage.removeItem(ie)});Hn(this,"generateKey",ie=>`${this.prefix}${this.delimiter}${ie.join(this.delimiter)}`);Hn(this,"write",(...ie)=>{const oe=ie.pop()||"";window.localStorage.setItem(this.generateKey(ie),oe)});Hn(this,"read",(...ie)=>{const oe=window.localStorage.getItem(this.generateKey(ie));return oe===null?void 0:oe});Hn(this,"remove",(...ie)=>{window.localStorage.removeItem(this.generateKey(ie))});this.prefix=`sl-sdk${this.delimiter}${ie}`}}var Ee;(function(te){te.SCHEMA="schema",te.EXTERNAL_TOKEN="eToken",te.TOKEN="token"})(Ee||(Ee={}));class Ke extends hr{constructor(){super("user");Hn(this,"setSchema",oe=>{this.write(Ee.SCHEMA,oe)});Hn(this,"getSchema",()=>this.read(Ee.SCHEMA));Hn(this,"setToken",oe=>{this.write(Ee.TOKEN,oe)});Hn(this,"getToken",()=>this.read(Ee.TOKEN));Hn(this,"setExternalToken",oe=>{this.write(Ee.EXTERNAL_TOKEN,oe)});Hn(this,"getExternalToken",()=>this.read(Ee.EXTERNAL_TOKEN));Hn(this,"removeToken",()=>{this.remove(Ee.TOKEN)})}}var Fe;(function(te){te.DISABLED="disabled",te.INITIALIZATION="initialization",te.READY="ready",te.FAILED="failed",te.SUSPENDED="suspended"})(Fe||(Fe={}));const Ii=te=>{const ie=new Ke,oe=new de(ne(ie.getExternalToken()),"userKey"),le=new de(ne(ie.getToken()),"userToken"),ce=new pe(bi(le.getStore(),te),"user",({data:fe,error:he,loading:ve},Se)=>{var ke;if(!he)return(ke=fe==null?void 0:fe.data)!=null&&ke.id?fe.data.id:ve===!1?void 0:Se}),ue=new pe(vi(le.getStore(),te),"userSettings");return{userKey:oe,userToken:le,user:ce,userSettings:ue}},Fi=te=>{const ie=new de(ne(void 0),"providerStreamId"),oe=new pe(gi(ie.getStore(),te),"slStreamId",ce=>ce==null?void 0:ce.data),le=new pe(mi(oe.getAtomStore(),te),"streamSettings");return oe.getAtomStore().listen(ce=>{(ce===""||ce===void 0)&&le.getStore().mutate(void 0)}),{providerStreamId:ie,slStreamId:oe,streamSettings:le}},Ti=te=>{const ie=new de(ne(void 0),"enabled"),oe=new de(ne(Fe.DISABLED),"status"),le=new pe(Si(ie.getStore(),te),"organizationSettings",he=>{var ve;return(ve=he==null?void 0:he.data)==null?void 0:ve.id}),ce=new pe(Ai(le.getAtomStore(),te),"organizationAdvertising"),ue=Ii(te),fe=Fi(te);return{enabled:ie,status:oe,providerStreamId:fe.providerStreamId,slStreamId:fe.slStreamId,streamSettings:fe.streamSettings,user:ue.user,userKey:ue.userKey,userToken:ue.userToken,userSettings:ue.userSettings,organizationSettings:le,organizationAdvertising:ce}};class _i extends xt{constructor(oe){const le=Ti(oe),ce=fi(le);super(ce,"core");Hn(this,"stores");Hn(this,"subscribe",oe=>{let le;for(le in this.stores){const ce=oe[le];le in oe&&ce!==void 0&&this.stores[le].subscribe(oe[le])}});Hn(this,"unsubscribe",()=>this.getStore().off());this.stores=le}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}class Ci extends ci{constructor(oe,le){super();Hn(this,"$coreStore");Hn(this,"transport");Hn(this,"bypassLogin");Hn(this,"me",async()=>{var oe;return this.$coreStore.getValues().user.invalidate(),(oe=await this.$coreStore.getValues().user.getValue())==null?void 0:oe.data});Hn(this,"login",async(oe,le)=>{var he,ve;this.$coreStore.getValues().userKey.setValue(le);const ce=await this.bypassLogin({schema:oe,userKey:le,init:!1}),ue=(he=ce.meta)==null?void 0:he.jwt,fe=(ve=ce.data)==null?void 0:ve.id;if(!ue||!fe)throw new Error("internal: token missing");return this.$coreStore.getValues().user.getStore().mutate(ce),this.saveUser(ue,fe),ue});Hn(this,"isAuthenticated",()=>this.me());Hn(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("",""),new Ke().clear()});Hn(this,"softLogout",()=>{const oe=new Ke;this.transport.setAuth("",""),oe.setToken(""),this.reLogin()});Hn(this,"reLogin",()=>{const oe=new Ke,le=oe.getToken(),ce=oe.getExternalToken();if(this.$coreStore.getValues().userKey.setValue(ce),le)return this.saveUser(le,""),this.me().then(ue=>{if(ue!=null&&ue.id){const fe=ue.id;this.saveUser(le,fe)}});if(ce&&!le){const ue=oe.getSchema();ue&&ce&&this.login(ue,ce).catch(()=>{this.logout()})}});Hn(this,"saveUser",(oe,le)=>{this.transport.setAuth(oe,le),this.$coreStore.getValues().userToken.setValue(oe),new Ke().setToken(oe)});Hn(this,"connect",()=>{this.transport.registerInterceptor(oe=>async le=>{try{return await oe(le)}catch(ce){throw ce.code&&(ce.code===7||ce.code===16)&&this.transport.getHeader("authorization")&&this.softLogout(),ce}})});this.$coreStore=oe,this.transport=le,this.bypassLogin=wi(this.transport),this.connect()}}const st=new Ke,Oi=(te,ie,oe)=>{te.auth=new Ci(te.store,te.transport),te.stores.status.listen(le=>{le===Fe.READY&&te.auth.reLogin()}),te.sdk.userId=te.stores.user.getAtomStore,te.sdk.authorizationBypass=async(le,ce)=>{if(!(st.getSchema()===le&&st.getExternalToken()===ce&&te.transport.getHeader("authorization")))try{await te.auth.login(le,ce),st.setSchema(le),st.setExternalToken(ce)}catch{te.sdk.logout()}},te.sdk.logout=()=>{te.auth.logout(),st.clear()},te.sdk.getUserStore=()=>te.stores.user.getStore(),te.sdk.isUserAuthorized=()=>te.auth.isAuthenticated(),oe()},xi=(te,ie,oe)=>{te.store=new _i(te.transport),te.stores=te.store.getValues(),te.sdk.enabled=te.stores.enabled.getStore(),te.sdk.status=te.stores.status.getStore(),te.sdk.sdkStore=Object.fromEntries(Object.entries(te.stores).map(([le,ce])=>[le,ce.getStore()])),te.sdk.organizationStore=()=>te.stores.organizationSettings.getStore(),te.sdk.streamStore=()=>te.stores.streamSettings.getStore(),te.storeUnsubscribe=()=>{te.store.unsubscribe()},oe()},Bi=(te,ie,oe)=>{te.sdk=Object.create(null),te.sdk.initializeApp=async()=>{if(te.stores.enabled.get()==="on")return{enabled:!0};te.storeSubscribe(),te.stores.enabled.setValue("on"),te.stores.status.setValue(Fe.INITIALIZATION);try{const le=await te.stores.organizationSettings.getValue();return le?(te.stores.status.setValue(Fe.READY),{enabled:!!le}):(te.stores.status.setValue(Fe.FAILED),{err:"failed"})}catch(le){return te.stores.enabled.setValue(),te.stores.status.setValue(Fe.FAILED),{err:`${le}`}}},te.sdk.disableApp=()=>{te.stores.enabled.get()==="on"&&(te.stores.enabled.setValue(),te.stores.status.setValue(Fe.DISABLED),te.sdk.closeFeature(),te.storeUnsubscribe())},te.sdk.createEventSession=le=>{te.stores.providerStreamId.setValue(le)},oe()},ki=pino_1({level:"trace",enabled:C.process.env.DEBUG==='"SL"',browser:{write:te=>{console.log(te)}}}),on=(te,ie)=>ki.child({name:te},ie),Pi=(te,ie,oe)=>{const{client:le,queryKey:ce}=oe.createPromiseClient(Leaderboard,{method:"summary",params:[te,ie]});return oe.nanoquery.createFetcherStore(ce,{fetcher:async(ue,fe,he,ve)=>{var Se;return(Se=(await le.summary({eventId:he,userId:ve})).data)==null?void 0:Se.attributes}})},Ri=te=>{const{client:ie}=te.createPromiseClient(Leaderboard,{method:"list"});return oe=>ie.list(oe)},Li=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Feed,{method:"get",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;return(he=(await oe.get({eventId:fe})).data)==null?void 0:he.attributes}})},Ni=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Feed,{method:"syncQuestion",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;return fe?(he=(await oe.syncQuestion({filter:{eventId:fe}})).data)==null?void 0:he.attributes:void 0}})},Ui=(te,ie)=>{const{client:oe}=ie.createCallbackClient(Feed),le=atom({eventId:te.get()||"",feedId:""});return te.subscribe((ce="")=>{le.set({eventId:ce,feedId:""})}),ie.addSubscription(oe.subscription,le,{name:"feedSubscription"})},$i=(te,ie)=>{const{client:oe}=ie.createCallbackClient(Feed);return ie.addSubscription(oe.questionSubscription,{questionId:te},{name:"questionSubscription"})},sn=async(te,ie)=>{var le,ce;const{client:oe}=ie.createPromiseClient(Feed,{method:"questionByUser",params:[te]});return(ce=(le=(await oe.questionByUser({questionId:te})).data)==null?void 0:le.attributes)==null?void 0:ce.question},Di=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Feed,{method:"list",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>fe?(await oe.list({eventId:fe})).data:[]})},ji=(te,ie)=>{const{client:oe,queryKey:le}=ie.createPromiseClient(Feed,{method:"insightHistory",params:[te]});return ie.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;return fe?(he=(await oe.insightHistory({eventId:fe})).data)==null?void 0:he.map(({attributes:ve})=>ve):void 0}})};var pr={exports:{}};const Vi=Object.getPrototypeOf({});function dr(te){function ie(nt){return nt!=="constructor"&&nt!=="prototype"&&nt!=="__proto__"}function oe(nt){let rt=0;const ot=nt.length,ht=new Array(ot);for(rt=0;rt<ot;++rt)ht[rt]=Re(nt[rt]);return ht}function le(nt){const rt={};if(ve&&Object.getPrototypeOf(nt)!==Vi)return ve(nt);const ot=he(nt);let ht,dt,Rt;for(ht=0,dt=ot.length;ht<dt;++ht)ie(Rt=ot[ht])&&(rt[Rt]=Re(nt[Rt]));return rt}function ce(nt,rt){const ot=nt.length,ht=rt.length;let dt=0;const Rt=new Array(ot+ht);for(dt=0;dt<ot;++dt)Rt[dt]=Re(nt[dt]);for(dt=0;dt<ht;++dt)Rt[dt+ot]=Re(rt[dt]);return Rt}const ue=Object.prototype.propertyIsEnumerable;function fe(nt){const rt=Object.keys(nt),ot=Object.getOwnPropertySymbols(nt);for(let ht=0,dt=ot.length;ht<dt;++ht)ue.call(nt,ot[ht])&&rt.push(ot[ht]);return rt}const he=te&&te.symbols?fe:Object.keys,ve=typeof(te==null?void 0:te.cloneProtoObject)=="function"?te.cloneProtoObject:void 0;function Se(nt){return typeof nt=="object"&&nt!==null&&!(nt instanceof RegExp)&&!(nt instanceof Date)}function ke(nt){return typeof nt!="object"||nt===null}const Me=typeof C.Buffer<"u"?nt=>typeof nt!="object"||nt===null||nt instanceof RegExp||nt instanceof Date||nt instanceof C.Buffer:nt=>typeof nt!="object"||nt===null||nt instanceof RegExp||nt instanceof Date,Pe=te&&typeof te.mergeArray=="function"?te.mergeArray({clone:Re,deepmerge:Be,getKeys:he,isMergeableObject:Se}):ce;function Re(nt){return Se(nt)?Array.isArray(nt)?oe(nt):le(nt):nt}function Oe(nt,rt){const ot={},ht=he(nt),dt=he(rt);let Rt,Ct,Lt;for(Rt=0,Ct=ht.length;Rt<Ct;++Rt)ie(Lt=ht[Rt])&&dt.indexOf(Lt)===-1&&(ot[Lt]=Re(nt[Lt]));for(Rt=0,Ct=dt.length;Rt<Ct;++Rt)ie(Lt=dt[Rt])&&(Lt in nt&&(ht.indexOf(Lt)!==-1&&(ot[Lt]=Be(nt[Lt],rt[Lt])),!0)||(ot[Lt]=Re(rt[Lt])));return ot}function Be(nt,rt){const ot=Array.isArray(rt),ht=Array.isArray(nt);return ke(rt)?rt:Me(nt)?Re(rt):ot&&ht?Pe(nt,rt):ot!==ht?Re(rt):Oe(nt,rt)}function xe(){switch(arguments.length){case 0:return{};case 1:return Re(arguments[0]);case 2:return Be(arguments[0],arguments[1])}let nt;for(let rt=0,ot=arguments.length;rt<ot;++rt)nt=Be(nt,arguments[rt]);return nt}return te&&te.all?xe:Be}pr.exports=dr;pr.exports.default=dr;var Mi=pr.exports.deepmerge=dr;const qi=te=>(ie,oe)=>{let le=0;const ce=ie.length,ue=oe.length,fe=Math.max(ce,ue),he=new Array(fe);for(le=0;le<fe;++le)le<ue?he[le]=te.deepmerge(ie[le],oe[le]):he[le]=te.clone(ie[le]);return he},Qi=Mi({mergeArray:qi}),Gi=(te,ie,oe)=>{const le=computed([ie,oe],(ue,fe)=>{if(ue&&fe.data)return fe.data.find(he=>he.id===ue)}),ce=$e({data:void 0,loading:void 0,error:void 0});return le.subscribe(async ue=>{if(ue&&ue.type==="question"){ce.setKey("loading",!0);const fe=await sn(ue.id,te);ce.set({data:fe,loading:!1});return}ce.set({data:void 0,loading:!1})}),{$store:le,$extendedStore:ce,updateExtendedQuestion:ue=>{const fe=ce.get().data;if(fe)for(const he of(ue==null?void 0:ue.answers)||[])he.youVoted!==!0&&delete he.youVoted;ce.set({data:Qi(fe,ue)})}}},an=te=>(te.gamification||(te.gamification=new zi(te)),te.gamification);class zi{constructor(ie){Hn(this,"slStreamId");Hn(this,"organizationId");Hn(this,"userId");Hn(this,"openedQuestionId");Hn(this,"openedQuestion");Hn(this,"activeQuestionId");Hn(this,"feedList");Hn(this,"moderationId");Hn(this,"moderation");Hn(this,"feedSubscription");Hn(this,"questionSubscription");Hn(this,"notifications");Hn(this,"log");Hn(this,"getCurrentSessionId",ie=>{const oe=ie.eventId||this.slStreamId.get()||"",le=ie.userId||this.userId.get()||"",ce=ie.organizationId||this.organizationId.get()||"",ue=ie.entity||"",fe=ie.prefix||"";return[ce,oe,le,fe,ue].join(":")});Hn(this,"disconnect",()=>{var ie;(ie=this.feedSubscription)==null||ie.disconnect()});Hn(this,"openQuestion",ie=>{this.openedQuestionId.set(ie),this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:ie}))});Hn(this,"closeQuestion",ie=>{this.openedQuestionId.set(void 0),ie&&this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:ie}))});if(ie.gamification)throw new Error("GamificationBackground Singleton error");this.log=on("gamification-background"),this.slStreamId=ie.stores.slStreamId.getAtomStore(),this.organizationId=ie.stores.organizationSettings.getAtomStore(),this.userId=ie.stores.user.getAtomStore(),this.moderationId=new de(ne(void 0),"moderationId").getStore(),this.openedQuestionId=new de(ne(void 0),"openedQuestionId").getStore(),this.notifications=ie.notifications,this.moderation=new pe(Li(this.slStreamId,ie.transport),"gamification:moderation"),this.feedList=new pe(Di(this.slStreamId,ie.transport),"gamification:feedList"),this.activeQuestionId=new pe(Ni(this.slStreamId,ie.transport),"gamification:activeQuestionId"),this.openedQuestion=Gi(ie.transport,this.openedQuestionId,this.feedList.getStore()),this.openedQuestionId.listen(oe=>{this.log.debug({questionId:oe},"received question"),oe?(this.questionSubscription=$i(oe,ie.transport),this.questionSubscription.addListener("feed-subscription-opened-question",le=>{window.requestAnimationFrame(()=>{var ce,ue;this.openedQuestion.updateExtendedQuestion((ue=(ce=le.data)==null?void 0:ce.attributes)==null?void 0:ue.question)})}),this.questionSubscription.connect()):(this.log.info("cleanup on close question"),this.questionSubscription!==void 0&&(ie.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0))}),this.feedSubscription=Ui(this.slStreamId,ie.transport),this.feedSubscription.addListener("feed-subscription-active-question",oe=>{window.requestAnimationFrame(()=>{var ce;const le=this.activeQuestionId.getStore();le&&le.mutate((ce=oe.data)==null?void 0:ce.attributes)})})}}class Ki{constructor(ie){Hn(this,"notificationsList");Hn(this,"notifications");Hn(this,"store");Hn(this,"timeouts");Hn(this,"waitingQueue");Hn(this,"activeQueue");Hn(this,"options");Hn(this,"logger");Hn(this,"addToQueue",ie=>{if(this.store.has(ie.id)){this.logger.debug({notification:ie},"skip existed notification: %o");return}const oe=ie.close,le=ie.action;this.store.set(ie.id,{...ie,close:(...ce)=>{oe&&oe(...ce),this.closeNotification(ie.id)},action:(...ce)=>{le&&le(...ce),this.closeNotification(ie.id)}}),this.waitingQueue.add(ie.id),this.logger.debug({notification:ie},"notification added to waiting queue"),this.tickWaitingQueue()});Hn(this,"tickWaitingQueue",()=>{if(this.activeQueue.size<this.options.concurrency){const[ie]=this.waitingQueue;if(!ie)return;this.activeQueue.add(ie),this.waitingQueue.delete(ie),this.logger.debug({job:ie},"waiting queue tick"),this.tickActiveQueue(ie)}else this.logger.debug({queueSize:this.activeQueue.size,concurrency:this.options.concurrency},"waiting queue tick skipped")});Hn(this,"tickActiveQueue",ie=>{if(!ie)return;const oe=this.store.get(ie);if(!oe){this.logger.debug({notificationId:ie},"active queue tick skipped, notification not exist");return}const le=setTimeout(()=>{const ce=ie,ue=new Map(this.notifications.getValue());ue.set(oe.id,oe),this.notifications.setValue(ue);const fe=setTimeout(()=>{this.logger.debug({notificationId:ce,delay:oe.autoHideDuration||5e3},"notification hiding by autoHideDuration"),this.closeNotification(ce)},oe.autoHideDuration||5e3);this.timeouts.set(ce,fe),this.logger.debug({notificationId:ce,queue:[...ue.values()]},"notification displayed")},oe.delay||0);this.timeouts.set(ie,le),this.logger.debug({notificationId:ie},"active queue tick completed"),this.tickWaitingQueue()});Hn(this,"closeNotification",ie=>{const oe=new Map(this.notifications.getValue()),le=oe.get(ie);if(le){le.hiding=!(this.waitingQueue.size>=this.options.concurrency),this.notifications.setValue(oe);const ce=setTimeout(()=>{const ue=new Map(this.notifications.getValue());ue.delete(ie),this.notifications.setValue(ue);const fe=this.timeouts.get(ie);fe!==void 0&&(clearTimeout(fe),this.timeouts.delete(ie)),this.logger.debug({notificationId:ie},"notification hidden")},this.options.animationDelay||0);this.timeouts.set(ie,ce)}this.store.delete(ie),this.activeQueue.delete(ie),this.waitingQueue.delete(ie),this.tickWaitingQueue(),this.logger.debug({notificationId:ie},"notification hiding")});this.options=ie,this.logger=on("notifications"),this.store=new Map,this.timeouts=new Map,this.waitingQueue=new Set,this.activeQueue=new Set,this.notifications=new de(ne(new Map),"notifications-queue"),this.notificationsList=this.notifications.getStore()}}var St;(function(te){te.OPENED="opened"})(St||(St={}));class Hi extends hr{constructor(){super("notification");Hn(this,"setOpened",oe=>{this.write(St.OPENED,oe,"true")});Hn(this,"isOpened",oe=>this.read(St.OPENED,oe));Hn(this,"clearNotification",()=>{this.clear()})}}var Le;(function(te){te[te.ONBOARDING=1]="ONBOARDING",te[te.QUESTION=2]="QUESTION",te[te.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(Le||(Le={}));class Wi{constructor(ie={}){Hn(this,"queue");Hn(this,"storage");Hn(this,"add",ie=>{this.storage.isOpened(ie.id)||this.queue.addToQueue(ie)});Hn(this,"close",ie=>{this.queue.closeNotification(ie),this.markAsViewed(ie)});Hn(this,"getQueueStore",()=>this.queue.notificationsList);Hn(this,"markAsViewed",ie=>{this.storage.setOpened(ie)});this.storage=new Hi,this.queue=new Ki({concurrency:1,animationDelay:1600,...ie})}}const Ji=(te,ie,oe)=>{te.notifications=new Wi,te.addNotification=te.notifications.add,te.sdk.getNotificationsStore=()=>te.notifications.getQueueStore(),oe()},Yi=(te,ie)=>{const{client:oe}=te.createPromiseClient(Feed,{method:"submitAnswer"});return oe.submitAnswer({data:ie})},Xi=(te,ie)=>{const{client:oe}=te.createPromiseClient(Feed,{method:"submitInplay"});return oe.submitInplay({data:{eventId:+ie}})},Zi=(te,ie)=>{const{client:oe}=te.createPromiseClient(Feed,{method:"skipQuestion"});return oe.skipQuestion({data:{id:ie}})};var At;(function(te){te.ONBOARDING="onboarding"})(At||(At={}));class un extends hr{constructor(){super("gamification");Hn(this,"saveOnboardingStatus",({userId:oe,eventId:le,organizationId:ce},ue)=>{this.write(At.ONBOARDING,ce,oe,le,ue)});Hn(this,"getOnboardingStatus",({userId:oe,eventId:le,organizationId:ce})=>this.read(At.ONBOARDING,ce,oe,le))}}const Fr={pageSize:10},eo=(te,ie,oe)=>{const le=ne({pageSize:(oe==null?void 0:oe.pageSize)||Fr.pageSize,page:0}),ce=$e({data:[],loading:void 0,error:void 0}),ue=Ri(te),fe=async ve=>{if(ve){ce.setKey("loading",!0);const Se={eventId:ve,pagination:{page:0,pageSize:(oe==null?void 0:oe.pageSize)||Fr.pageSize}},ke=await ue(Se);ce.set({data:ke.data.map(Me=>Me.attributes),loading:!1}),le.set(Se.pagination)}};ie.listen(fe);const he=()=>{fe(ie.get())};return le.listen(async ve=>{var Me;const Se=ie.get(),ke=((Me=ce.get().data)==null?void 0:Me.length)||0;if(ve.page>0&&Se&&ke>=ve.page*ve.pageSize){ce.setKey("loading",!0);const Pe=await ue({eventId:Se,pagination:ve}),Re=ce.get().data||[];ce.set({data:[...Re,...Pe.data.map(Oe=>Oe.attributes)],loading:!1})}}),{$store:ce,fetchMore:()=>{const ve=le.get();le.set({...ve,page:ve.page+1})},invalidate:he}},to=(te,ie)=>{const{client:oe,queryKey:le}=te.createPromiseClient(Client,{method:"generateDeepLink",params:ie});return te.nanoquery.createFetcherStore(le,{fetcher:async(ce,ue,fe)=>{var he;return fe?(he=(await oe.generateDeepLink({data:{eventId:fe}})).data)==null?void 0:he.attributes:{}}})},ro=(te,ie)=>({$store:to(te,[ie]),fetch});var re;(function(te){te.Unset="unset",te.Required="required",te.Optional="optional",te.Completed="completed",te.Disabled="disabled",te.Unavailable="unavailable"})(re||(re={}));const no=(te,ie,oe,le)=>{const ce=new un,ue=ne(re.Unset),fe=()=>{const{inplayGame:ve}=te.featureSettings.get(),Se=ie.getCurrentSessionId({prefix:"onboarding"});ve&&le.add({type:Le.ONBOARDING,id:Se,action:te.openFeature,close:()=>{le.markAsViewed(Se)},autoHideDuration:1e6,data:{questionType:QuestionType.UNSET,onboarding:{...ve}}})};ue.subscribe(ve=>{(ve===re.Optional||re.Required)&&fe(),ve===re.Completed&&ie.activeQuestionId.invalidate()});const he=async()=>{var Pe,Re,Oe,Be,xe;const ve=ie.userId.get();if(!ve){ue.set(re.Unset);return}ce.getOnboardingStatus({userId:ve,organizationId:ie.organizationId.get()||"",eventId:ie.slStreamId.get()||""})===re.Completed&&ue.set(re.Completed);const Se=await ie.moderation.getValue();if(ue.get()===re.Completed)return;const ke=!!((Pe=Se==null?void 0:Se.options)!=null&&Pe.onboardingEnabled&&((Oe=(Re=te.featureSettings.get().inplayGame)==null?void 0:Re.onboarding)!=null&&Oe.completed)),Me=!!((xe=(Be=te.featureSettings.get().inplayGame)==null?void 0:Be.titleCard)!=null&&xe.optIn);ke?Me?ue.set(re.Required):ue.set(re.Optional):Me?ue.set(re.Unavailable):ue.set(re.Disabled)};return he(),ie.userId.subscribe(ve=>{ve&&he()}),ie.moderation.subscribe(ve=>{ve.data&&he()}),{$store:ue,submitInplay:async()=>{const ve=ie.slStreamId.get();ve&&(await Xi(oe,ve),ue.set(re.Completed),ce.saveOnboardingStatus({organizationId:ie.organizationId.get()||"",userId:ie.userId.get()||"",eventId:ve},re.Completed))}}},io=new Set([QuestionType.POLL,QuestionType.PREDICTION,QuestionType.TRIVIA]);class oo extends lr{constructor(oe,le,ce){super(oe,le);Hn(this,"userSummary");Hn(this,"feedList");Hn(this,"leaderboardId");Hn(this,"leaderboardList");Hn(this,"deepLink");Hn(this,"onboardingStatus");Hn(this,"openedQuestion");Hn(this,"currentUserId");Hn(this,"openedUser");Hn(this,"closeFeature");Hn(this,"openFeature");Hn(this,"notifications");Hn(this,"transport");Hn(this,"background");Hn(this,"storage");Hn(this,"connect",oe=>{this.userSummary.invalidate(),this.leaderboardList.invalidate(),this.feedList.invalidate(),this.background.feedSubscription.addListener("feed-subscription-prediction-close",le=>{window.requestAnimationFrame(async()=>{var ve,Se;const ce=(Se=(ve=le.data)==null?void 0:ve.attributes)==null?void 0:Se.question;if(!ce)return;const{status:ue,type:fe,id:he}=ce;if(ue===QuestionStatus.RESOLVED&&fe===QuestionType.PREDICTION){const ke=this.background.getCurrentSessionId({prefix:`notification-id:${he}`}),Me=await sn(he,oe),Pe=Me==null?void 0:Me.answers.find(({correct:Oe})=>Oe),Re=Me==null?void 0:Me.answers.find(({youVoted:Oe})=>Oe);if(!Re)return;this.notifications.add({type:Le.QUESTION_RESOLVED,action:()=>this.openQuestion(he),close:()=>this.closeQuestion(he),autoHideDuration:35e3,id:ke,data:{questionType:QuestionType.PREDICTION,question:{title:Pe!=null&&Pe.youVoted?`Congratulations! You answered correctly! You won ${Pe.points} pts!`:`Better luck next time! Correct: ${Pe==null?void 0:Pe.text}!`,votedAnswer:{title:Re==null?void 0:Re.text,points:Re==null?void 0:Re.points},correctAnswerTitle:Pe==null?void 0:Pe.text,correct:Pe==null?void 0:Pe.youVoted,predictionResult:ue===QuestionStatus.RESOLVED}}})}})}),this.background.feedSubscription.addListener("feed-subscription-questions-list",()=>{window.requestAnimationFrame(()=>{var le;(le=this.feedList)==null||le.invalidate()})})});Hn(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-questions-list")});Hn(this,"submitAnswer",async(oe,le)=>{var ce;await Yi(this.transport,{questionId:oe,answerId:le}),(ce=this.feedList)==null||ce.invalidate()});Hn(this,"skipQuestion",async oe=>{var le;await Zi(this.transport,oe),(le=this.feedList)==null||le.invalidate()});Hn(this,"openQuestion",oe=>(this.openFeature(),this.background.openQuestion(oe)));Hn(this,"closeQuestion",oe=>this.background.closeQuestion(oe));Hn(this,"openUser",oe=>{var ce;const le=(ce=this.leaderboardList.$store.get().data)==null?void 0:ce.find(ue=>ue.userId===oe);this.openedUser.set(le)});Hn(this,"closeUser",()=>{this.openedUser.set(void 0)});this.background=an(ce),this.storage=new un,this.userSummary=new pe(Pi(this.background.slStreamId,this.background.userId,ce.transport),"gamification:userSummary"),this.feedList=this.background.feedList,this.currentUserId=this.background.userId,this.openedUser=ne(void 0),this.leaderboardId=new de(ne(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.onboardingStatus=no(this,this.background,ce.transport,ce.notifications),this.notifications=ce.notifications,this.transport=ce.transport,this.closeFeature=ce.sdk.closeFeature,this.openFeature=()=>ce.sdk.openFeature(SdkOverlayType.GAMES),this.openedQuestion=this.background.openedQuestion,this.deepLink=ro(this.transport,this.background.slStreamId),this.leaderboardList=eo(this.transport,this.background.slStreamId),this.status.subscribe(ue=>{ue===De.Ready?this.connect(ce.transport):this.disconnect()}),this.background.activeQuestionId.listen(ue=>{var fe,he,ve,Se,ke,Me,Pe,Re,Oe,Be;if(ue&&ue.data&&this.onboardingStatus.$store.get()&&((fe=ue.data.question)==null?void 0:fe.id)!==void 0&&ue.data.question.notification!==void 0&&((ve=(he=ue.data.moderation)==null?void 0:he.bypassNotifications)==null?void 0:ve.inAppSilence)!==SilenceSetting.ON&&ue.data.question.status===QuestionStatus.ACTIVE){if(io.has(ue.data.question.type))this.notifications.add({type:Le.QUESTION,action:()=>{var xe;return((xe=ue.data)==null?void 0:xe.question)&&this.openQuestion(ue.data.question.id)},close:()=>{var xe;return((xe=ue.data)==null?void 0:xe.question)&&this.closeQuestion(ue.data.question.id)},autoHideDuration:1e3*60,id:this.background.getCurrentSessionId({prefix:"notification",entity:ue.data.question.id}),data:{questionType:ue.data.question.type,question:{title:ue.data.question.notification.title}}});else if(ue.data.question.type===QuestionType.FACTOID){const xe=(Se=ue.data.question.options)==null?void 0:Se.options.value,nt={heading:ue.data.question.notification.title,body:ue.data.question.notification.body,image:ue.data.question.notification.image,video:{id:((ke=xe==null?void 0:xe.video)==null?void 0:ke.id)||"",url:((Me=xe==null?void 0:xe.video)==null?void 0:Me.url)||"",thumbnailUrl:((Pe=xe==null?void 0:xe.video)==null?void 0:Pe.thumbnailUrl)||""},webLink:{label:"",url:""}};this.notifications.add({type:Le.QUESTION,action:()=>{var rt;return((rt=ue.data)==null?void 0:rt.question)&&this.openQuestion(ue.data.question.id)},close:()=>{var rt;return((rt=ue.data)==null?void 0:rt.question)&&this.closeQuestion(ue.data.question.id)},autoHideDuration:1e3*120,id:this.background.getCurrentSessionId({prefix:"notification",entity:ue.data.question.id}),data:{questionType:ue.data.question.type,insight:nt}})}else if(ue.data.question.type===QuestionType.TWEET){const xe=(Re=ue.data.question.options)==null?void 0:Re.options.value,nt={title:ue.data.question.notification.title,body:ue.data.question.notification.body,image:ue.data.question.notification.image,account:{image:"",name:((Oe=xe==null?void 0:xe.tweetMeta)==null?void 0:Oe.account)||"",userName:"",verified:!!((Be=xe==null?void 0:xe.tweetMeta)!=null&&Be.accountVerified)}};this.notifications.add({type:Le.QUESTION,action:()=>{var rt;return((rt=ue.data)==null?void 0:rt.question)&&this.openQuestion(ue.data.question.id)},close:()=>{var rt;return((rt=ue.data)==null?void 0:rt.question)&&this.closeQuestion(ue.data.question.id)},autoHideDuration:1e3*120,id:this.background.getCurrentSessionId({prefix:"notification",entity:ue.data.question.id}),data:{questionType:ue.data.question.type,tweet:nt}})}}})}}class so extends lr{constructor(oe,le,ce){super(oe,le);Hn(this,"insights");Hn(this,"closeFeature");Hn(this,"openFeature");Hn(this,"openedInsight");Hn(this,"notifications");Hn(this,"transport");Hn(this,"background");Hn(this,"connect",()=>{this.insights?this.insights.invalidate():this.insights=new pe(ji(this.background.slStreamId,this.transport),"gamification:insights"),this.background.feedSubscription.addListener("feed-subscription-insights-list",()=>{window.requestAnimationFrame(()=>{var oe;(oe=this.insights)==null||oe.invalidate()})})});Hn(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-insights-list")});Hn(this,"openHighlight",oe=>(this.openFeature(),this.background.openQuestion(oe)));Hn(this,"closeHighlight",oe=>this.background.closeQuestion(oe));this.background=an(ce),this.notifications=ce.notifications,this.transport=ce.transport,this.closeFeature=ce.sdk.closeFeature,this.openFeature=()=>ce.sdk.openFeature(SdkOverlayType.HIGHLIGHTS),this.status.subscribe(ue=>{ue===De.Ready?this.connect():this.disconnect()}),this.background.activeQuestionId.listen(ue=>{var fe,he,ve,Se,ke,Me,Pe,Re;(he=(fe=ue==null?void 0:ue.data)==null?void 0:fe.question)!=null&&he.id&&((Se=(ve=ue==null?void 0:ue.data)==null?void 0:ve.question)!=null&&Se.notification)&&((Me=(ke=ue.data.moderation)==null?void 0:ke.bypassNotifications)==null?void 0:Me.inAppSilence)!==SilenceSetting.ON&&ue.data.question.type===QuestionType.FACTOID&&ue.data.question.status===QuestionStatus.ACTIVE&&this.notifications.add({type:Le.QUESTION,action:()=>{var Oe;return((Oe=ue.data)==null?void 0:Oe.question)&&this.openHighlight(ue.data.question.id)},close:()=>{var Oe;return((Oe=ue.data)==null?void 0:Oe.question)&&this.closeHighlight(ue.data.question.id)},autoHideDuration:1e3*+(((Re=(Pe=ue.data.question)==null?void 0:Pe.appearance)==null?void 0:Re.autoHideInterval)||"5"),id:this.background.getCurrentSessionId({prefix:"notification",entity:ue.data.question.id}),data:{questionType:ue.data.question.type,question:{title:ue.data.question.notification.title}}})}),this.openedInsight=this.background.openedQuestion}}SdkOverlayType.GAMES+"",SdkOverlayType.HIGHLIGHTS+"";class ao extends lr{constructor(ie,oe){super(ie,oe)}}const uo=(te,ie,oe)=>te.type===SdkOverlayType.GAMES?new oo(te,ie,oe):te.type===SdkOverlayType.HIGHLIGHTS?new so(te,ie,oe):new ao(te,ie),co=(te,ie,oe)=>{te.features=new Map,te.activeFeature=new de(ne(SdkOverlayType.UNSET),"activeFeature"),te.sdk.getFeatures=()=>te.features,te.sdk.getFeature=le=>te.features.get(le),te.sdk.getActiveFeature=()=>te.activeFeature.getStore(),te.sdk.openFeature=le=>{te.activeFeature.setValue(le)},te.sdk.closeFeature=()=>{te.activeFeature.setValue(SdkOverlayType.UNSET)},te.initFeature=(le,ce=Ie.ORGANIZATION)=>{const ue=uo(le,ce,te);te.features.set(le.type,ue)},te.updateFeature=(le,ce)=>{var ue;(ue=te.features.get(le.type))==null||ue.update(le,ce)},te.destroyFeature=le=>{te.features.delete(le.type)},te.reinitializeFeatures=async()=>{const le=await te.stores.organizationSettings.getValue();te.features.clear();for(const ce of(le==null?void 0:le.overlays)||[])te.initFeature(ce,Ie.ORGANIZATION)},te.stores.providerStreamId.listen(le=>{le||te.reinitializeFeatures()}),te.storeSubscribe=()=>{const le=(ue,fe)=>{if(fe!=null&&fe.overlays){ue===Ie.STREAM&&te.features.clear();for(const he of fe.overlays)he.sdkEnable===!0&&(te.features.has(he.type)?te.updateFeature(he,ue):te.initFeature(he,ue))}},ce={organizationSettings:ue=>{if(ue.data)try{le(Ie.ORGANIZATION,ue.data)}catch(fe){console.log(fe)}},streamSettings:ue=>{if(ue.data)try{le(Ie.STREAM,ue.data)}catch(fe){console.log(fe)}}};te.store.subscribe(ce)},oe()};var yr={exports:{}},gr={exports:{}};function fo(te){var ie=new te,oe=ie;function le(){var ue=ie;return ue.next?ie=ue.next:(ie=new te,oe=ie),ue.next=null,ue}function ce(ue){oe.next=ue,oe=ue}return{get:le,release:ce}}var lo=fo,ho=lo;function cn(te,ie,oe){if(typeof te=="function"&&(oe=ie,ie=te,te=null),oe<1)throw new Error("fastqueue concurrency must be greater than 1");var le=ho(po),ce=null,ue=null,fe=0,he=null,ve={push:Be,drain:ae,saturated:ae,pause:ke,paused:!1,concurrency:oe,running:Se,resume:Re,idle:Oe,length:Me,getQueue:Pe,unshift:xe,empty:ae,kill:rt,killAndDrain:ot,error:ht};return ve;function Se(){return fe}function ke(){ve.paused=!0}function Me(){for(var dt=ce,Rt=0;dt;)dt=dt.next,Rt++;return Rt}function Pe(){for(var dt=ce,Rt=[];dt;)Rt.push(dt.value),dt=dt.next;return Rt}function Re(){if(ve.paused){ve.paused=!1;for(var dt=0;dt<ve.concurrency;dt++)fe++,nt()}}function Oe(){return fe===0&&ve.length()===0}function Be(dt,Rt){var Ct=le.get();Ct.context=te,Ct.release=nt,Ct.value=dt,Ct.callback=Rt||ae,Ct.errorHandler=he,fe===ve.concurrency||ve.paused?ue?(ue.next=Ct,ue=Ct):(ce=Ct,ue=Ct,ve.saturated()):(fe++,ie.call(te,Ct.value,Ct.worked))}function xe(dt,Rt){var Ct=le.get();Ct.context=te,Ct.release=nt,Ct.value=dt,Ct.callback=Rt||ae,fe===ve.concurrency||ve.paused?ce?(Ct.next=ce,ce=Ct):(ce=Ct,ue=Ct,ve.saturated()):(fe++,ie.call(te,Ct.value,Ct.worked))}function nt(dt){dt&&le.release(dt);var Rt=ce;Rt?ve.paused?fe--:(ue===ce&&(ue=null),ce=Rt.next,Rt.next=null,ie.call(te,Rt.value,Rt.worked),ue===null&&ve.empty()):--fe===0&&ve.drain()}function rt(){ce=null,ue=null,ve.drain=ae}function ot(){ce=null,ue=null,ve.drain(),ve.drain=ae}function ht(dt){he=dt}}function ae(){}function po(){this.value=null,this.callback=ae,this.next=null,this.release=ae,this.context=null,this.errorHandler=null;var te=this;this.worked=function(ie,oe){var le=te.callback,ce=te.errorHandler,ue=te.value;te.value=null,te.callback=ae,te.errorHandler&&ce(ie,ue),le.call(te.context,ie,oe),te.release(te)}}function yo(te,ie,oe){typeof te=="function"&&(oe=ie,ie=te,te=null);function le(ke,Me){ie.call(this,ke).then(function(Pe){Me(null,Pe)},Me)}var ce=cn(te,le,oe),ue=ce.push,fe=ce.unshift;return ce.push=he,ce.unshift=ve,ce.drained=Se,ce;function he(ke){var Me=new Promise(function(Pe,Re){ue(ke,function(Oe,Be){if(Oe){Re(Oe);return}Pe(Be)})});return Me.catch(ae),Me}function ve(ke){var Me=new Promise(function(Pe,Re){fe(ke,function(Oe,Be){if(Oe){Re(Oe);return}Pe(Be)})});return Me.catch(ae),Me}function Se(){if(ce.idle())return new Promise(function(Pe){Pe()});var ke=ce.drain,Me=new Promise(function(Pe){ce.drain=function(){ke(),Pe()}});return Me}}gr.exports=cn;gr.exports.promise=yo;var fn=gr.exports,mr={exports:{}},Je=typeof Reflect=="object"?Reflect:null,Tr=Je&&typeof Je.apply=="function"?Je.apply:function(te,ie,oe){return Function.prototype.apply.call(te,ie,oe)},gt;Je&&typeof Je.ownKeys=="function"?gt=Je.ownKeys:Object.getOwnPropertySymbols?gt=function(te){return Object.getOwnPropertyNames(te).concat(Object.getOwnPropertySymbols(te))}:gt=function(te){return Object.getOwnPropertyNames(te)};function go(te){console&&console.warn&&console.warn(te)}var ln=Number.isNaN||function(te){return te!==te};function q(){q.init.call(this)}mr.exports=q;mr.exports.once=vo;q.EventEmitter=q;q.prototype._events=void 0;q.prototype._eventsCount=0;q.prototype._maxListeners=void 0;var _r=10;function Bt(te){if(typeof te!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof te)}Object.defineProperty(q,"defaultMaxListeners",{enumerable:!0,get:function(){return _r},set:function(te){if(typeof te!="number"||te<0||ln(te))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+te+".");_r=te}});q.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};q.prototype.setMaxListeners=function(te){if(typeof te!="number"||te<0||ln(te))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+te+".");return this._maxListeners=te,this};function hn(te){return te._maxListeners===void 0?q.defaultMaxListeners:te._maxListeners}q.prototype.getMaxListeners=function(){return hn(this)};q.prototype.emit=function(te){for(var ie=[],oe=1;oe<arguments.length;oe++)ie.push(arguments[oe]);var le=te==="error",ce=this._events;if(ce!==void 0)le=le&&ce.error===void 0;else if(!le)return!1;if(le){var ue;if(ie.length>0&&(ue=ie[0]),ue instanceof Error)throw ue;var fe=new Error("Unhandled error."+(ue?" ("+ue.message+")":""));throw fe.context=ue,fe}var he=ce[te];if(he===void 0)return!1;if(typeof he=="function")Tr(he,this,ie);else for(var ve=he.length,Se=mn(he,ve),oe=0;oe<ve;++oe)Tr(Se[oe],this,ie);return!0};function pn(te,ie,oe,le){var ce,ue,fe;if(Bt(oe),ue=te._events,ue===void 0?(ue=te._events=Object.create(null),te._eventsCount=0):(ue.newListener!==void 0&&(te.emit("newListener",ie,oe.listener?oe.listener:oe),ue=te._events),fe=ue[ie]),fe===void 0)fe=ue[ie]=oe,++te._eventsCount;else if(typeof fe=="function"?fe=ue[ie]=le?[oe,fe]:[fe,oe]:le?fe.unshift(oe):fe.push(oe),ce=hn(te),ce>0&&fe.length>ce&&!fe.warned){fe.warned=!0;var he=new Error("Possible EventEmitter memory leak detected. "+fe.length+" "+String(ie)+" listeners added. Use emitter.setMaxListeners() to increase limit");he.name="MaxListenersExceededWarning",he.emitter=te,he.type=ie,he.count=fe.length,go(he)}return te}q.prototype.addListener=function(te,ie){return pn(this,te,ie,!1)};q.prototype.on=q.prototype.addListener;q.prototype.prependListener=function(te,ie){return pn(this,te,ie,!0)};function mo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function dn(te,ie,oe){var le={fired:!1,wrapFn:void 0,target:te,type:ie,listener:oe},ce=mo.bind(le);return ce.listener=oe,le.wrapFn=ce,ce}q.prototype.once=function(te,ie){return Bt(ie),this.on(te,dn(this,te,ie)),this};q.prototype.prependOnceListener=function(te,ie){return Bt(ie),this.prependListener(te,dn(this,te,ie)),this};q.prototype.removeListener=function(te,ie){var oe,le,ce,ue,fe;if(Bt(ie),le=this._events,le===void 0)return this;if(oe=le[te],oe===void 0)return this;if(oe===ie||oe.listener===ie)--this._eventsCount===0?this._events=Object.create(null):(delete le[te],le.removeListener&&this.emit("removeListener",te,oe.listener||ie));else if(typeof oe!="function"){for(ce=-1,ue=oe.length-1;ue>=0;ue--)if(oe[ue]===ie||oe[ue].listener===ie){fe=oe[ue].listener,ce=ue;break}if(ce<0)return this;ce===0?oe.shift():bo(oe,ce),oe.length===1&&(le[te]=oe[0]),le.removeListener!==void 0&&this.emit("removeListener",te,fe||ie)}return this};q.prototype.off=q.prototype.removeListener;q.prototype.removeAllListeners=function(te){var ie,oe,le;if(oe=this._events,oe===void 0)return this;if(oe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):oe[te]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete oe[te]),this;if(arguments.length===0){var ce=Object.keys(oe),ue;for(le=0;le<ce.length;++le)ue=ce[le],ue!=="removeListener"&&this.removeAllListeners(ue);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(ie=oe[te],typeof ie=="function")this.removeListener(te,ie);else if(ie!==void 0)for(le=ie.length-1;le>=0;le--)this.removeListener(te,ie[le]);return this};function yn(te,ie,oe){var le=te._events;if(le===void 0)return[];var ce=le[ie];return ce===void 0?[]:typeof ce=="function"?oe?[ce.listener||ce]:[ce]:oe?wo(ce):mn(ce,ce.length)}q.prototype.listeners=function(te){return yn(this,te,!0)};q.prototype.rawListeners=function(te){return yn(this,te,!1)};q.listenerCount=function(te,ie){return typeof te.listenerCount=="function"?te.listenerCount(ie):gn.call(te,ie)};q.prototype.listenerCount=gn;function gn(te){var ie=this._events;if(ie!==void 0){var oe=ie[te];if(typeof oe=="function")return 1;if(oe!==void 0)return oe.length}return 0}q.prototype.eventNames=function(){return this._eventsCount>0?gt(this._events):[]};function mn(te,ie){for(var oe=new Array(ie),le=0;le<ie;++le)oe[le]=te[le];return oe}function bo(te,ie){for(;ie+1<te.length;ie++)te[ie]=te[ie+1];te.pop()}function wo(te){for(var ie=new Array(te.length),oe=0;oe<ie.length;++oe)ie[oe]=te[oe].listener||te[oe];return ie}function vo(te,ie){return new Promise(function(oe,le){function ce(fe){te.removeListener(ie,ue),le(fe)}function ue(){typeof te.removeListener=="function"&&te.removeListener("error",ce),oe([].slice.call(arguments))}bn(te,ie,ue,{once:!0}),ie!=="error"&&So(te,ce,{once:!0})})}function So(te,ie,oe){typeof te.on=="function"&&bn(te,"error",ie,oe)}function bn(te,ie,oe,le){if(typeof te.on=="function")le.once?te.once(ie,oe):te.on(ie,oe);else if(typeof te.addEventListener=="function")te.addEventListener(ie,function ce(ue){le.once&&te.removeEventListener(ie,ce),oe(ue)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof te)}var wn=mr.exports,kt={},vn={},Sn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var te={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var le=42;te[ie]=le;for(ie in te)return!1;if(typeof Object.keys=="function"&&Object.keys(te).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(te).length!==0)return!1;var ce=Object.getOwnPropertySymbols(te);if(ce.length!==1||ce[0]!==ie||!Object.prototype.propertyIsEnumerable.call(te,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ue=Object.getOwnPropertyDescriptor(te,ie);if(ue.value!==le||ue.enumerable!==!0)return!1}return!0},Ao=Sn,br=function(){return Ao()&&!!Symbol.toStringTag},Cr=typeof Symbol<"u"&&Symbol,Eo=Sn,Io=function(){return typeof Cr!="function"||typeof Symbol!="function"||typeof Cr("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Eo()},Or={foo:{}},Fo=Object,To=function(){return{__proto__:Or}.foo===Or.foo&&!({__proto__:null}instanceof Fo)},_o="Function.prototype.bind called on incompatible ",Co=Object.prototype.toString,Oo=Math.max,xo="[object Function]",xr=function(te,ie){for(var oe=[],le=0;le<te.length;le+=1)oe[le]=te[le];for(var ce=0;ce<ie.length;ce+=1)oe[ce+te.length]=ie[ce];return oe},Bo=function(te,ie){for(var oe=[],le=ie||0,ce=0;le<te.length;le+=1,ce+=1)oe[ce]=te[le];return oe},ko=function(te,ie){for(var oe="",le=0;le<te.length;le+=1)oe+=te[le],le+1<te.length&&(oe+=ie);return oe},Po=function(te){var ie=this;if(typeof ie!="function"||Co.apply(ie)!==xo)throw new TypeError(_o+ie);for(var oe=Bo(arguments,1),le,ce=function(){if(this instanceof le){var Se=ie.apply(this,xr(oe,arguments));return Object(Se)===Se?Se:this}return ie.apply(te,xr(oe,arguments))},ue=Oo(0,ie.length-oe.length),fe=[],he=0;he<ue;he++)fe[he]="$"+he;if(le=Function("binder","return function ("+ko(fe,",")+"){ return binder.apply(this,arguments); }")(ce),ie.prototype){var ve=function(){};ve.prototype=ie.prototype,le.prototype=new ve,ve.prototype=null}return le},Ro=Po,An=Function.prototype.bind||Ro,Br={}.hasOwnProperty,Ut=Function.prototype.call,Lo=Ut.bind?Ut.bind(Br):function(te,ie){return Ut.call(Br,te,ie)},$,Xe=SyntaxError,En=Function,Ye=TypeError,$t=function(te){try{return En('"use strict"; return ('+te+").constructor;")()}catch{}},je=Object.getOwnPropertyDescriptor;if(je)try{je({},"")}catch{je=null}var Dt=function(){throw new Ye},No=je?function(){try{return arguments.callee,Dt}catch{try{return je(arguments,"callee").get}catch{return Dt}}}():Dt,Qe=Io(),Uo=To(),X=Object.getPrototypeOf||(Uo?function(te){return te.__proto__}:null),ze={},$o=typeof Uint8Array>"u"||!X?$:X(Uint8Array),Ve={"%AggregateError%":typeof AggregateError>"u"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$:ArrayBuffer,"%ArrayIteratorPrototype%":Qe&&X?X([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":ze,"%AsyncGenerator%":ze,"%AsyncGeneratorFunction%":ze,"%AsyncIteratorPrototype%":ze,"%Atomics%":typeof Atomics>"u"?$:Atomics,"%BigInt%":typeof BigInt>"u"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$:FinalizationRegistry,"%Function%":En,"%GeneratorFunction%":ze,"%Int8Array%":typeof Int8Array>"u"?$:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Qe&&X?X(X([][Symbol.iterator]())):$,"%JSON%":typeof JSON=="object"?JSON:$,"%Map%":typeof Map>"u"?$:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Qe||!X?$:X(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$:Promise,"%Proxy%":typeof Proxy>"u"?$:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Qe||!X?$:X(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Qe&&X?X(""[Symbol.iterator]()):$,"%Symbol%":Qe?Symbol:$,"%SyntaxError%":Xe,"%ThrowTypeError%":No,"%TypedArray%":$o,"%TypeError%":Ye,"%Uint8Array%":typeof Uint8Array>"u"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$:WeakSet};if(X)try{null.error}catch(te){var Do=X(X(te));Ve["%Error.prototype%"]=Do}var jo=function te(ie){var oe;if(ie==="%AsyncFunction%")oe=$t("async function () {}");else if(ie==="%GeneratorFunction%")oe=$t("function* () {}");else if(ie==="%AsyncGeneratorFunction%")oe=$t("async function* () {}");else if(ie==="%AsyncGenerator%"){var le=te("%AsyncGeneratorFunction%");le&&(oe=le.prototype)}else if(ie==="%AsyncIteratorPrototype%"){var ce=te("%AsyncGenerator%");ce&&X&&(oe=X(ce.prototype))}return Ve[ie]=oe,oe},kr={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},lt=An,Et=Lo,Vo=lt.call(Function.call,Array.prototype.concat),Mo=lt.call(Function.apply,Array.prototype.splice),Pr=lt.call(Function.call,String.prototype.replace),It=lt.call(Function.call,String.prototype.slice),qo=lt.call(Function.call,RegExp.prototype.exec),Qo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Go=/\\(\\)?/g,zo=function(te){var ie=It(te,0,1),oe=It(te,-1);if(ie==="%"&&oe!=="%")throw new Xe("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&ie!=="%")throw new Xe("invalid intrinsic syntax, expected opening `%`");var le=[];return Pr(te,Qo,function(ce,ue,fe,he){le[le.length]=fe?Pr(he,Go,"$1"):ue||ce}),le},Ko=function(te,ie){var oe=te,le;if(Et(kr,oe)&&(le=kr[oe],oe="%"+le[0]+"%"),Et(Ve,oe)){var ce=Ve[oe];if(ce===ze&&(ce=jo(oe)),typeof ce>"u"&&!ie)throw new Ye("intrinsic "+te+" exists, but is not available. Please file an issue!");return{alias:le,name:oe,value:ce}}throw new Xe("intrinsic "+te+" does not exist!")},et=function(te,ie){if(typeof te!="string"||te.length===0)throw new Ye("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ie!="boolean")throw new Ye('"allowMissing" argument must be a boolean');if(qo(/^%?[^%]*%?$/,te)===null)throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=zo(te),le=oe.length>0?oe[0]:"",ce=Ko("%"+le+"%",ie),ue=ce.name,fe=ce.value,he=!1,ve=ce.alias;ve&&(le=ve[0],Mo(oe,Vo([0,1],ve)));for(var Se=1,ke=!0;Se<oe.length;Se+=1){var Me=oe[Se],Pe=It(Me,0,1),Re=It(Me,-1);if((Pe==='"'||Pe==="'"||Pe==="`"||Re==='"'||Re==="'"||Re==="`")&&Pe!==Re)throw new Xe("property names with quotes must have matching quotes");if((Me==="constructor"||!ke)&&(he=!0),le+="."+Me,ue="%"+le+"%",Et(Ve,ue))fe=Ve[ue];else if(fe!=null){if(!(Me in fe)){if(!ie)throw new Ye("base intrinsic for "+te+" exists, but the property is not available.");return}if(je&&Se+1>=oe.length){var Oe=je(fe,Me);ke=!!Oe,ke&&"get"in Oe&&!("originalValue"in Oe.get)?fe=Oe.get:fe=fe[Me]}else ke=Et(fe,Me),fe=fe[Me];ke&&!he&&(Ve[ue]=fe)}}return fe},In={exports:{}},Ho=et,er=Ho("%Object.defineProperty%",!0),tr=function(){if(er)try{return er({},"a",{value:1}),!0}catch{return!1}return!1};tr.hasArrayLengthDefineBug=function(){if(!tr())return null;try{return er([],"length",{value:1}).length!==1}catch{return!0}};var Fn=tr,Wo=et,mt=Wo("%Object.getOwnPropertyDescriptor%",!0);if(mt)try{mt([],"length")}catch{mt=null}var wr=mt,Jo=Fn(),vr=et,ut=Jo&&vr("%Object.defineProperty%",!0);if(ut)try{ut({},"a",{value:1})}catch{ut=!1}var Yo=vr("%SyntaxError%"),Ge=vr("%TypeError%"),Rr=wr,Xo=function(te,ie,oe){if(!te||typeof te!="object"&&typeof te!="function")throw new Ge("`obj` must be an object or a function`");if(typeof ie!="string"&&typeof ie!="symbol")throw new Ge("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ge("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ge("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ge("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ge("`loose`, if provided, must be a boolean");var le=arguments.length>3?arguments[3]:null,ce=arguments.length>4?arguments[4]:null,ue=arguments.length>5?arguments[5]:null,fe=arguments.length>6?arguments[6]:!1,he=!!Rr&&Rr(te,ie);if(ut)ut(te,ie,{configurable:ue===null&&he?he.configurable:!ue,enumerable:le===null&&he?he.enumerable:!le,value:oe,writable:ce===null&&he?he.writable:!ce});else if(fe||!le&&!ce&&!ue)te[ie]=oe;else throw new Yo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Tn=et,Lr=Xo,Zo=Fn(),Nr=wr,Ur=Tn("%TypeError%"),es=Tn("%Math.floor%"),ts=function(te,ie){if(typeof te!="function")throw new Ur("`fn` is not a function");if(typeof ie!="number"||ie<0||ie>4294967295||es(ie)!==ie)throw new Ur("`length` must be a positive 32-bit integer");var oe=arguments.length>2&&!!arguments[2],le=!0,ce=!0;if("length"in te&&Nr){var ue=Nr(te,"length");ue&&!ue.configurable&&(le=!1),ue&&!ue.writable&&(ce=!1)}return(le||ce||!oe)&&(Zo?Lr(te,"length",ie,!0,!0):Lr(te,"length",ie)),te};(function(te){var ie=An,oe=et,le=ts,ce=oe("%TypeError%"),ue=oe("%Function.prototype.apply%"),fe=oe("%Function.prototype.call%"),he=oe("%Reflect.apply%",!0)||ie.call(fe,ue),ve=oe("%Object.defineProperty%",!0),Se=oe("%Math.max%");if(ve)try{ve({},"a",{value:1})}catch{ve=null}te.exports=function(Me){if(typeof Me!="function")throw new ce("a function is required");var Pe=he(ie,fe,arguments);return le(Pe,1+Se(0,Me.length-(arguments.length-1)),!0)};var ke=function(){return he(ie,ue,arguments)};ve?ve(te.exports,"apply",{value:ke}):te.exports.apply=ke})(In);var _n=In.exports,Cn=et,On=_n,rs=On(Cn("String.prototype.indexOf")),xn=function(te,ie){var oe=Cn(te,!!ie);return typeof oe=="function"&&rs(te,".prototype.")>-1?On(oe):oe},ns=br(),is=xn,rr=is("Object.prototype.toString"),Pt=function(te){return ns&&te&&typeof te=="object"&&Symbol.toStringTag in te?!1:rr(te)==="[object Arguments]"},Bn=function(te){return Pt(te)?!0:te!==null&&typeof te=="object"&&typeof te.length=="number"&&te.length>=0&&rr(te)!=="[object Array]"&&rr(te.callee)==="[object Function]"},os=function(){return Pt(arguments)}();Pt.isLegacyArguments=Bn;var ss=os?Pt:Bn,as=Object.prototype.toString,us=Function.prototype.toString,cs=/^\s*(?:function)?\*/,kn=br(),jt=Object.getPrototypeOf,fs=function(){if(!kn)return!1;try{return Function("return function*() {}")()}catch{}},Vt,ls=function(te){if(typeof te!="function")return!1;if(cs.test(us.call(te)))return!0;if(!kn){var ie=as.call(te);return ie==="[object GeneratorFunction]"}if(!jt)return!1;if(typeof Vt>"u"){var oe=fs();Vt=oe?jt(oe):!1}return jt(te)===Vt},Pn=Function.prototype.toString,He=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,nr,bt;if(typeof He=="function"&&typeof Object.defineProperty=="function")try{nr=Object.defineProperty({},"length",{get:function(){throw bt}}),bt={},He(function(){throw 42},null,nr)}catch(te){te!==bt&&(He=null)}else He=null;var hs=/^\s*class\b/,ir=function(te){try{var ie=Pn.call(te);return hs.test(ie)}catch{return!1}},Mt=function(te){try{return ir(te)?!1:(Pn.call(te),!0)}catch{return!1}},wt=Object.prototype.toString,ps="[object Object]",ds="[object Function]",ys="[object GeneratorFunction]",gs="[object HTMLAllCollection]",ms="[object HTML document.all class]",bs="[object HTMLCollection]",ws=typeof Symbol=="function"&&!!Symbol.toStringTag,vs=!(0 in[,]),or=function(){return!1};if(typeof document=="object"){var Ss=document.all;wt.call(Ss)===wt.call(document.all)&&(or=function(te){if((vs||!te)&&(typeof te>"u"||typeof te=="object"))try{var ie=wt.call(te);return(ie===gs||ie===ms||ie===bs||ie===ps)&&te("")==null}catch{}return!1})}var As=He?function(te){if(or(te))return!0;if(!te||typeof te!="function"&&typeof te!="object")return!1;try{He(te,null,nr)}catch(ie){if(ie!==bt)return!1}return!ir(te)&&Mt(te)}:function(te){if(or(te))return!0;if(!te||typeof te!="function"&&typeof te!="object")return!1;if(ws)return Mt(te);if(ir(te))return!1;var ie=wt.call(te);return ie!==ds&&ie!==ys&&!/^\[object HTML/.test(ie)?!1:Mt(te)},Es=As,Is=Object.prototype.toString,Rn=Object.prototype.hasOwnProperty,Fs=function(te,ie,oe){for(var le=0,ce=te.length;le<ce;le++)Rn.call(te,le)&&(oe==null?ie(te[le],le,te):ie.call(oe,te[le],le,te))},Ts=function(te,ie,oe){for(var le=0,ce=te.length;le<ce;le++)oe==null?ie(te.charAt(le),le,te):ie.call(oe,te.charAt(le),le,te)},_s=function(te,ie,oe){for(var le in te)Rn.call(te,le)&&(oe==null?ie(te[le],le,te):ie.call(oe,te[le],le,te))},Cs=function(te,ie,oe){if(!Es(ie))throw new TypeError("iterator must be a function");var le;arguments.length>=3&&(le=oe),Is.call(te)==="[object Array]"?Fs(te,ie,le):typeof te=="string"?Ts(te,ie,le):_s(te,ie,le)},Os=Cs,qt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],xs=typeof globalThis>"u"?Yr:globalThis,Bs=function(){for(var te=[],ie=0;ie<qt.length;ie++)typeof xs[qt[ie]]=="function"&&(te[te.length]=qt[ie]);return te},Ft=Os,ks=Bs,$r=_n,Sr=xn,vt=wr,Ps=Sr("Object.prototype.toString"),Ln=br(),Dr=typeof globalThis>"u"?Yr:globalThis,sr=ks(),Ar=Sr("String.prototype.slice"),Qt=Object.getPrototypeOf,Rs=Sr("Array.prototype.indexOf",!0)||function(te,ie){for(var oe=0;oe<te.length;oe+=1)if(te[oe]===ie)return oe;return-1},Tt={__proto__:null};Ln&&vt&&Qt?Ft(sr,function(te){var ie=new Dr[te];if(Symbol.toStringTag in ie){var oe=Qt(ie),le=vt(oe,Symbol.toStringTag);if(!le){var ce=Qt(oe);le=vt(ce,Symbol.toStringTag)}Tt["$"+te]=$r(le.get)}}):Ft(sr,function(te){var ie=new Dr[te],oe=ie.slice||ie.set;oe&&(Tt["$"+te]=$r(oe))});var Ls=function(te){var ie=!1;return Ft(Tt,function(oe,le){if(!ie)try{"$"+oe(te)===le&&(ie=Ar(le,1))}catch{}}),ie},Ns=function(te){var ie=!1;return Ft(Tt,function(oe,le){if(!ie)try{oe(te),ie=Ar(le,1)}catch{}}),ie},Nn=function(te){if(!te||typeof te!="object")return!1;if(!Ln){var ie=Ar(Ps(te),8,-1);return Rs(sr,ie)>-1?ie:ie!=="Object"?!1:Ns(te)}return vt?Ls(te):null},Us=Nn,$s=function(te){return!!Us(te)};(function(te){var ie=ss,oe=ls,le=Nn,ce=$s;function ue(va){return va.call.bind(va)}var fe=typeof BigInt<"u",he=typeof Symbol<"u",ve=ue(Object.prototype.toString),Se=ue(Number.prototype.valueOf),ke=ue(String.prototype.valueOf),Me=ue(Boolean.prototype.valueOf);if(fe)var Pe=ue(BigInt.prototype.valueOf);if(he)var Re=ue(Symbol.prototype.valueOf);function Oe(va,qa){if(typeof va!="object")return!1;try{return qa(va),!0}catch{return!1}}te.isArgumentsObject=ie,te.isGeneratorFunction=oe,te.isTypedArray=ce;function Be(va){return typeof Promise<"u"&&va instanceof Promise||va!==null&&typeof va=="object"&&typeof va.then=="function"&&typeof va.catch=="function"}te.isPromise=Be;function xe(va){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(va):ce(va)||Wn(va)}te.isArrayBufferView=xe;function nt(va){return le(va)==="Uint8Array"}te.isUint8Array=nt;function rt(va){return le(va)==="Uint8ClampedArray"}te.isUint8ClampedArray=rt;function ot(va){return le(va)==="Uint16Array"}te.isUint16Array=ot;function ht(va){return le(va)==="Uint32Array"}te.isUint32Array=ht;function dt(va){return le(va)==="Int8Array"}te.isInt8Array=dt;function Rt(va){return le(va)==="Int16Array"}te.isInt16Array=Rt;function Ct(va){return le(va)==="Int32Array"}te.isInt32Array=Ct;function Lt(va){return le(va)==="Float32Array"}te.isFloat32Array=Lt;function Qn(va){return le(va)==="Float64Array"}te.isFloat64Array=Qn;function Mn(va){return le(va)==="BigInt64Array"}te.isBigInt64Array=Mn;function Gn(va){return le(va)==="BigUint64Array"}te.isBigUint64Array=Gn;function Sa(va){return ve(va)==="[object Map]"}Sa.working=typeof Map<"u"&&Sa(new Map);function Ta(va){return typeof Map>"u"?!1:Sa.working?Sa(va):va instanceof Map}te.isMap=Ta;function Kn(va){return ve(va)==="[object Set]"}Kn.working=typeof Set<"u"&&Kn(new Set);function ka(va){return typeof Set>"u"?!1:Kn.working?Kn(va):va instanceof Set}te.isSet=ka;function Ra(va){return ve(va)==="[object WeakMap]"}Ra.working=typeof WeakMap<"u"&&Ra(new WeakMap);function Jn(va){return typeof WeakMap>"u"?!1:Ra.working?Ra(va):va instanceof WeakMap}te.isWeakMap=Jn;function zn(va){return ve(va)==="[object WeakSet]"}zn.working=typeof WeakSet<"u"&&zn(new WeakSet);function _a(va){return zn(va)}te.isWeakSet=_a;function Ia(va){return ve(va)==="[object ArrayBuffer]"}Ia.working=typeof ArrayBuffer<"u"&&Ia(new ArrayBuffer);function wa(va){return typeof ArrayBuffer>"u"?!1:Ia.working?Ia(va):va instanceof ArrayBuffer}te.isArrayBuffer=wa;function Vn(va){return ve(va)==="[object DataView]"}Vn.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Vn(new DataView(new ArrayBuffer(1),0,1));function Wn(va){return typeof DataView>"u"?!1:Vn.working?Vn(va):va instanceof DataView}te.isDataView=Wn;var ba=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Aa(va){return ve(va)==="[object SharedArrayBuffer]"}function Da(va){return typeof ba>"u"?!1:(typeof Aa.working>"u"&&(Aa.working=Aa(new ba)),Aa.working?Aa(va):va instanceof ba)}te.isSharedArrayBuffer=Da;function xa(va){return ve(va)==="[object AsyncFunction]"}te.isAsyncFunction=xa;function Ea(va){return ve(va)==="[object Map Iterator]"}te.isMapIterator=Ea;function Ma(va){return ve(va)==="[object Set Iterator]"}te.isSetIterator=Ma;function La(va){return ve(va)==="[object Generator]"}te.isGeneratorObject=La;function Ua(va){return ve(va)==="[object WebAssembly.Module]"}te.isWebAssemblyCompiledModule=Ua;function Ga(va){return Oe(va,Se)}te.isNumberObject=Ga;function Ca(va){return Oe(va,ke)}te.isStringObject=Ca;function $a(va){return Oe(va,Me)}te.isBooleanObject=$a;function Ka(va){return fe&&Oe(va,Pe)}te.isBigIntObject=Ka;function Za(va){return he&&Oe(va,Re)}te.isSymbolObject=Za;function Qa(va){return Ga(va)||Ca(va)||$a(va)||Ka(va)||Za(va)}te.isBoxedPrimitive=Qa;function Wa(va){return typeof Uint8Array<"u"&&(wa(va)||Da(va))}te.isAnyArrayBuffer=Wa,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(va){Object.defineProperty(te,va,{enumerable:!1,value:function(){throw new Error(va+" is not supported in userland")}})})})(vn);var Ds=function(te){return te&&typeof te=="object"&&typeof te.copy=="function"&&typeof te.fill=="function"&&typeof te.readUInt8=="function"},ar={exports:{}};typeof Object.create=="function"?ar.exports=function(te,ie){ie&&(te.super_=ie,te.prototype=Object.create(ie.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}))}:ar.exports=function(te,ie){if(ie){te.super_=ie;var oe=function(){};oe.prototype=ie.prototype,te.prototype=new oe,te.prototype.constructor=te}};var js=ar.exports;(function(te){var ie=Object.getOwnPropertyDescriptors||function(Vn){for(var Wn=Object.keys(Vn),ba={},Aa=0;Aa<Wn.length;Aa++)ba[Wn[Aa]]=Object.getOwnPropertyDescriptor(Vn,Wn[Aa]);return ba},oe=/%[sdj%]/g;te.format=function(Vn){if(!dt(Vn)){for(var Wn=[],ba=0;ba<arguments.length;ba++)Wn.push(fe(arguments[ba]));return Wn.join(" ")}for(var ba=1,Aa=arguments,Da=Aa.length,xa=String(Vn).replace(oe,function(La){if(La==="%%")return"%";if(ba>=Da)return La;switch(La){case"%s":return String(Aa[ba++]);case"%d":return Number(Aa[ba++]);case"%j":try{return JSON.stringify(Aa[ba++])}catch{return"[Circular]"}default:return La}}),Ea=Aa[ba];ba<Da;Ea=Aa[++ba])rt(Ea)||!Qn(Ea)?xa+=" "+Ea:xa+=" "+fe(Ea);return xa},te.deprecate=function(Vn,Wn){if(typeof C.process<"u"&&C.process.noDeprecation===!0)return Vn;if(typeof C.process>"u")return function(){return te.deprecate(Vn,Wn).apply(this,arguments)};var ba=!1;function Aa(){if(!ba){if(C.process.throwDeprecation)throw new Error(Wn);C.process.traceDeprecation?console.trace(Wn):console.error(Wn),ba=!0}return Vn.apply(this,arguments)}return Aa};var le={},ce=/^$/;if(C.process.env.NODE_DEBUG){var ue=C.process.env.NODE_DEBUG;ue=ue.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ce=new RegExp("^"+ue+"$","i")}te.debuglog=function(Vn){if(Vn=Vn.toUpperCase(),!le[Vn])if(ce.test(Vn)){var Wn=C.process.pid;le[Vn]=function(){var ba=te.format.apply(te,arguments);console.error("%s %d: %s",Vn,Wn,ba)}}else le[Vn]=function(){};return le[Vn]};function fe(Vn,Wn){var ba={seen:[],stylize:ve};return arguments.length>=3&&(ba.depth=arguments[2]),arguments.length>=4&&(ba.colors=arguments[3]),nt(Wn)?ba.showHidden=Wn:Wn&&te._extend(ba,Wn),Ct(ba.showHidden)&&(ba.showHidden=!1),Ct(ba.depth)&&(ba.depth=2),Ct(ba.colors)&&(ba.colors=!1),Ct(ba.customInspect)&&(ba.customInspect=!0),ba.colors&&(ba.stylize=he),ke(ba,Vn,ba.depth)}te.inspect=fe,fe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},fe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function he(Vn,Wn){var ba=fe.styles[Wn];return ba?"\x1B["+fe.colors[ba][0]+"m"+Vn+"\x1B["+fe.colors[ba][1]+"m":Vn}function ve(Vn,Wn){return Vn}function Se(Vn){var Wn={};return Vn.forEach(function(ba,Aa){Wn[ba]=!0}),Wn}function ke(Vn,Wn,ba){if(Vn.customInspect&&Wn&&Sa(Wn.inspect)&&Wn.inspect!==te.inspect&&!(Wn.constructor&&Wn.constructor.prototype===Wn)){var Aa=Wn.inspect(ba,Vn);return dt(Aa)||(Aa=ke(Vn,Aa,ba)),Aa}var Da=Me(Vn,Wn);if(Da)return Da;var xa=Object.keys(Wn),Ea=Se(xa);if(Vn.showHidden&&(xa=Object.getOwnPropertyNames(Wn)),Gn(Wn)&&(xa.indexOf("message")>=0||xa.indexOf("description")>=0))return Pe(Wn);if(xa.length===0){if(Sa(Wn)){var Ma=Wn.name?": "+Wn.name:"";return Vn.stylize("[Function"+Ma+"]","special")}if(Lt(Wn))return Vn.stylize(RegExp.prototype.toString.call(Wn),"regexp");if(Mn(Wn))return Vn.stylize(Date.prototype.toString.call(Wn),"date");if(Gn(Wn))return Pe(Wn)}var La="",Ua=!1,Ga=["{","}"];if(xe(Wn)&&(Ua=!0,Ga=["[","]"]),Sa(Wn)){var Ca=Wn.name?": "+Wn.name:"";La=" [Function"+Ca+"]"}if(Lt(Wn)&&(La=" "+RegExp.prototype.toString.call(Wn)),Mn(Wn)&&(La=" "+Date.prototype.toUTCString.call(Wn)),Gn(Wn)&&(La=" "+Pe(Wn)),xa.length===0&&(!Ua||Wn.length==0))return Ga[0]+La+Ga[1];if(ba<0)return Lt(Wn)?Vn.stylize(RegExp.prototype.toString.call(Wn),"regexp"):Vn.stylize("[Object]","special");Vn.seen.push(Wn);var $a;return Ua?$a=Re(Vn,Wn,ba,Ea,xa):$a=xa.map(function(Ka){return Oe(Vn,Wn,ba,Ea,Ka,Ua)}),Vn.seen.pop(),Be($a,La,Ga)}function Me(Vn,Wn){if(Ct(Wn))return Vn.stylize("undefined","undefined");if(dt(Wn)){var ba="'"+JSON.stringify(Wn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Vn.stylize(ba,"string")}if(ht(Wn))return Vn.stylize(""+Wn,"number");if(nt(Wn))return Vn.stylize(""+Wn,"boolean");if(rt(Wn))return Vn.stylize("null","null")}function Pe(Vn){return"["+Error.prototype.toString.call(Vn)+"]"}function Re(Vn,Wn,ba,Aa,Da){for(var xa=[],Ea=0,Ma=Wn.length;Ea<Ma;++Ea)zn(Wn,String(Ea))?xa.push(Oe(Vn,Wn,ba,Aa,String(Ea),!0)):xa.push("");return Da.forEach(function(La){La.match(/^\d+$/)||xa.push(Oe(Vn,Wn,ba,Aa,La,!0))}),xa}function Oe(Vn,Wn,ba,Aa,Da,xa){var Ea,Ma,La;if(La=Object.getOwnPropertyDescriptor(Wn,Da)||{value:Wn[Da]},La.get?La.set?Ma=Vn.stylize("[Getter/Setter]","special"):Ma=Vn.stylize("[Getter]","special"):La.set&&(Ma=Vn.stylize("[Setter]","special")),zn(Aa,Da)||(Ea="["+Da+"]"),Ma||(Vn.seen.indexOf(La.value)<0?(rt(ba)?Ma=ke(Vn,La.value,null):Ma=ke(Vn,La.value,ba-1),Ma.indexOf(`
285
- `)>-1&&(xa?Ma=Ma.split(`
286
- `).map(function(Ua){return" "+Ua}).join(`
287
- `).slice(2):Ma=`
288
- `+Ma.split(`
289
- `).map(function(Ua){return" "+Ua}).join(`
290
- `))):Ma=Vn.stylize("[Circular]","special")),Ct(Ea)){if(xa&&Da.match(/^\d+$/))return Ma;Ea=JSON.stringify(""+Da),Ea.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ea=Ea.slice(1,-1),Ea=Vn.stylize(Ea,"name")):(Ea=Ea.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ea=Vn.stylize(Ea,"string"))}return Ea+": "+Ma}function Be(Vn,Wn,ba){var Aa=Vn.reduce(function(Da,xa){return xa.indexOf(`
291
- `)>=0,Da+xa.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Aa>60?ba[0]+(Wn===""?"":Wn+`
292
- `)+" "+Vn.join(`,
293
- `)+" "+ba[1]:ba[0]+Wn+" "+Vn.join(", ")+" "+ba[1]}te.types=vn;function xe(Vn){return Array.isArray(Vn)}te.isArray=xe;function nt(Vn){return typeof Vn=="boolean"}te.isBoolean=nt;function rt(Vn){return Vn===null}te.isNull=rt;function ot(Vn){return Vn==null}te.isNullOrUndefined=ot;function ht(Vn){return typeof Vn=="number"}te.isNumber=ht;function dt(Vn){return typeof Vn=="string"}te.isString=dt;function Rt(Vn){return typeof Vn=="symbol"}te.isSymbol=Rt;function Ct(Vn){return Vn===void 0}te.isUndefined=Ct;function Lt(Vn){return Qn(Vn)&&Kn(Vn)==="[object RegExp]"}te.isRegExp=Lt,te.types.isRegExp=Lt;function Qn(Vn){return typeof Vn=="object"&&Vn!==null}te.isObject=Qn;function Mn(Vn){return Qn(Vn)&&Kn(Vn)==="[object Date]"}te.isDate=Mn,te.types.isDate=Mn;function Gn(Vn){return Qn(Vn)&&(Kn(Vn)==="[object Error]"||Vn instanceof Error)}te.isError=Gn,te.types.isNativeError=Gn;function Sa(Vn){return typeof Vn=="function"}te.isFunction=Sa;function Ta(Vn){return Vn===null||typeof Vn=="boolean"||typeof Vn=="number"||typeof Vn=="string"||typeof Vn=="symbol"||typeof Vn>"u"}te.isPrimitive=Ta,te.isBuffer=Ds;function Kn(Vn){return Object.prototype.toString.call(Vn)}function ka(Vn){return Vn<10?"0"+Vn.toString(10):Vn.toString(10)}var Ra=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Jn(){var Vn=new Date,Wn=[ka(Vn.getHours()),ka(Vn.getMinutes()),ka(Vn.getSeconds())].join(":");return[Vn.getDate(),Ra[Vn.getMonth()],Wn].join(" ")}te.log=function(){console.log("%s - %s",Jn(),te.format.apply(te,arguments))},te.inherits=js,te._extend=function(Vn,Wn){if(!Wn||!Qn(Wn))return Vn;for(var ba=Object.keys(Wn),Aa=ba.length;Aa--;)Vn[ba[Aa]]=Wn[ba[Aa]];return Vn};function zn(Vn,Wn){return Object.prototype.hasOwnProperty.call(Vn,Wn)}var _a=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;te.promisify=function(Vn){if(typeof Vn!="function")throw new TypeError('The "original" argument must be of type Function');if(_a&&Vn[_a]){var Wn=Vn[_a];if(typeof Wn!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Wn,_a,{value:Wn,enumerable:!1,writable:!1,configurable:!0}),Wn}function Wn(){for(var ba,Aa,Da=new Promise(function(Ma,La){ba=Ma,Aa=La}),xa=[],Ea=0;Ea<arguments.length;Ea++)xa.push(arguments[Ea]);xa.push(function(Ma,La){Ma?Aa(Ma):ba(La)});try{Vn.apply(this,xa)}catch(Ma){Aa(Ma)}return Da}return Object.setPrototypeOf(Wn,Object.getPrototypeOf(Vn)),_a&&Object.defineProperty(Wn,_a,{value:Wn,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Wn,ie(Vn))},te.promisify.custom=_a;function Ia(Vn,Wn){if(!Vn){var ba=new Error("Promise was rejected with a falsy value");ba.reason=Vn,Vn=ba}return Wn(Vn)}function wa(Vn){if(typeof Vn!="function")throw new TypeError('The "original" argument must be of type Function');function Wn(){for(var ba=[],Aa=0;Aa<arguments.length;Aa++)ba.push(arguments[Aa]);var Da=ba.pop();if(typeof Da!="function")throw new TypeError("The last argument must be of type Function");var xa=this,Ea=function(){return Da.apply(xa,arguments)};Vn.apply(this,ba).then(function(Ma){C.process.nextTick(Ea.bind(null,null,Ma))},function(Ma){C.process.nextTick(Ia.bind(null,Ma,Ea))})}return Object.setPrototypeOf(Wn,Object.getPrototypeOf(Vn)),Object.defineProperties(Wn,ie(Vn)),Wn}te.callbackify=wa})(kt);const{inherits:Vs,format:Gt}=kt;function Ne(te,ie,oe=Error){if(!te)throw new Error("Avvio error code must not be empty");if(!ie)throw new Error("Avvio base error message must not be empty");function le(ce,ue,fe){if(!new.target)return new le(ce,ue,fe);Error.captureStackTrace(this,le),this.code=te,this.message=ie,this.name="AvvioError",ce&&ue&&fe?this.message=Gt(ie,ce,ue,fe):ce&&ue?this.message=Gt(ie,ce,ue):ce?this.message=Gt(ie,ce):this.message=ie}return le.prototype[Symbol.toStringTag]="Error",le.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Vs(le,oe),le}var Un={createError:Ne,AVV_ERR_EXPOSE_ALREADY_DEFINED:Ne("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:Ne("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Ne("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Ne("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Ne("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Ne("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")},Ms=function te(ie,oe,le){oe===void 0&&(oe=""),le||(le={});var ce=function(ve){var Se={"│":"|","└":"`","├":"+","─":"-","┬":"-"};return le.unicode===!1?Se[ve]:ve};typeof ie=="string"&&(ie={label:ie});var ue=ie.nodes||[],fe=(ie.label||"").split(`
294
- `),he=`
295
- `+oe+(ue.length?ce("│"):" ")+" ";return oe+fe.join(he)+`
296
- `+ue.map(function(ve,Se){var ke=Se===ue.length-1,Me=ve.nodes&&ve.nodes.length,Pe=oe+(ke?" ":ce("│"))+" ";return oe+ce(ke?"└":"├")+ce("─")+ce(Me?"┬":"─")+" "+te(ve,Pe,le).slice(oe.length+2)}).join("")};const qs=Ms,jr=Symbol("avvio.TimeTree.untrackNode"),zt=Symbol("avvio.TimeTree.trackNode"),Vr=Symbol("avvio.TimeTree.getParent"),Mr=Symbol("avvio.TimeTree.getNode"),qr=Symbol("avvio.TimeTree.addNode");let Qs=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[zt](te){this.tableId.set(te.id,te),this.tableLabel.has(te.label)?this.tableLabel.get(te.label).push(te):this.tableLabel.set(te.label,[te])}[jr](te){this.tableId.delete(te.id);const ie=this.tableLabel.get(te.label);if(ie.id){this.tableLabel.delete(te.label);return}ie.pop(),ie.length===0&&this.tableLabel.delete(te.label)}[Vr](te){if(te===null)return this.root;const ie=this.tableLabel.get(te);return ie.id?ie:ie[ie.length-1]}[Mr](te){return this.tableId.get(te)}[qr](te,ie,oe){if(te===null)return this.root={id:"root",label:ie,start:oe,nodes:[]},this[zt](this.root),this.root.id;const le=this[Vr](te),ce=`${ie}-${Math.random()}`,ue={id:ce,parent:te,start:oe,label:ie,nodes:[]};return le.nodes.push(ue),this[zt](ue),ce}start(te,ie,oe=Date.now()){return this[qr](te,ie,oe)}stop(te,ie=Date.now()){const oe=this[Mr](te);oe&&(oe.stop=ie,oe.diff=oe.stop-oe.start||0,this[jr](oe))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const te=oe=>(oe.label=`${oe.label} ${oe.diff} ms`,oe.nodes.length>0&&(oe.nodes=oe.nodes.map(le=>te(le))),oe),ie=te(this.toJSON());return qs(ie)}};var Gs=Qs,Er={exports:{}},ur={exports:{}},Kt,Qr;function zs(){if(Qr)return Kt;Qr=1;var te=1e3,ie=te*60,oe=ie*60,le=oe*24,ce=le*7,ue=le*365.25;Kt=function(ke,Me){Me=Me||{};var Pe=typeof ke;if(Pe==="string"&&ke.length>0)return fe(ke);if(Pe==="number"&&isFinite(ke))return Me.long?ve(ke):he(ke);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ke))};function fe(ke){if(ke=String(ke),!(ke.length>100)){var Me=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ke);if(Me){var Pe=parseFloat(Me[1]),Re=(Me[2]||"ms").toLowerCase();switch(Re){case"years":case"year":case"yrs":case"yr":case"y":return Pe*ue;case"weeks":case"week":case"w":return Pe*ce;case"days":case"day":case"d":return Pe*le;case"hours":case"hour":case"hrs":case"hr":case"h":return Pe*oe;case"minutes":case"minute":case"mins":case"min":case"m":return Pe*ie;case"seconds":case"second":case"secs":case"sec":case"s":return Pe*te;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Pe;default:return}}}}function he(ke){var Me=Math.abs(ke);return Me>=le?Math.round(ke/le)+"d":Me>=oe?Math.round(ke/oe)+"h":Me>=ie?Math.round(ke/ie)+"m":Me>=te?Math.round(ke/te)+"s":ke+"ms"}function ve(ke){var Me=Math.abs(ke);return Me>=le?Se(ke,Me,le,"day"):Me>=oe?Se(ke,Me,oe,"hour"):Me>=ie?Se(ke,Me,ie,"minute"):Me>=te?Se(ke,Me,te,"second"):ke+" ms"}function Se(ke,Me,Pe,Re){var Oe=Me>=Pe*1.5;return Math.round(ke/Pe)+" "+Re+(Oe?"s":"")}return Kt}function Ks(te){oe.debug=oe,oe.default=oe,oe.coerce=ve,oe.disable=ue,oe.enable=ce,oe.enabled=fe,oe.humanize=zs(),oe.destroy=Se,Object.keys(te).forEach(ke=>{oe[ke]=te[ke]}),oe.names=[],oe.skips=[],oe.formatters={};function ie(ke){let Me=0;for(let Pe=0;Pe<ke.length;Pe++)Me=(Me<<5)-Me+ke.charCodeAt(Pe),Me|=0;return oe.colors[Math.abs(Me)%oe.colors.length]}oe.selectColor=ie;function oe(ke){let Me,Pe=null,Re,Oe;function Be(...xe){if(!Be.enabled)return;const nt=Be,rt=Number(new Date),ot=rt-(Me||rt);nt.diff=ot,nt.prev=Me,nt.curr=rt,Me=rt,xe[0]=oe.coerce(xe[0]),typeof xe[0]!="string"&&xe.unshift("%O");let ht=0;xe[0]=xe[0].replace(/%([a-zA-Z%])/g,(dt,Rt)=>{if(dt==="%%")return"%";ht++;const Ct=oe.formatters[Rt];if(typeof Ct=="function"){const Lt=xe[ht];dt=Ct.call(nt,Lt),xe.splice(ht,1),ht--}return dt}),oe.formatArgs.call(nt,xe),(nt.log||oe.log).apply(nt,xe)}return Be.namespace=ke,Be.useColors=oe.useColors(),Be.color=oe.selectColor(ke),Be.extend=le,Be.destroy=oe.destroy,Object.defineProperty(Be,"enabled",{enumerable:!0,configurable:!1,get:()=>Pe!==null?Pe:(Re!==oe.namespaces&&(Re=oe.namespaces,Oe=oe.enabled(ke)),Oe),set:xe=>{Pe=xe}}),typeof oe.init=="function"&&oe.init(Be),Be}function le(ke,Me){const Pe=oe(this.namespace+(typeof Me>"u"?":":Me)+ke);return Pe.log=this.log,Pe}function ce(ke){oe.save(ke),oe.namespaces=ke,oe.names=[],oe.skips=[];let Me;const Pe=(typeof ke=="string"?ke:"").split(/[\s,]+/),Re=Pe.length;for(Me=0;Me<Re;Me++)Pe[Me]&&(ke=Pe[Me].replace(/\*/g,".*?"),ke[0]==="-"?oe.skips.push(new RegExp("^"+ke.slice(1)+"$")):oe.names.push(new RegExp("^"+ke+"$")))}function ue(){const ke=[...oe.names.map(he),...oe.skips.map(he).map(Me=>"-"+Me)].join(",");return oe.enable(""),ke}function fe(ke){if(ke[ke.length-1]==="*")return!0;let Me,Pe;for(Me=0,Pe=oe.skips.length;Me<Pe;Me++)if(oe.skips[Me].test(ke))return!1;for(Me=0,Pe=oe.names.length;Me<Pe;Me++)if(oe.names[Me].test(ke))return!0;return!1}function he(ke){return ke.toString().substring(2,ke.toString().length-2).replace(/\.\*\?$/,"*")}function ve(ke){return ke instanceof Error?ke.stack||ke.message:ke}function Se(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return oe.enable(oe.load()),oe}var Hs=Ks;(function(te,ie){ie.formatArgs=le,ie.save=ce,ie.load=ue,ie.useColors=oe,ie.storage=fe(),ie.destroy=(()=>{let ve=!1;return()=>{ve||(ve=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),ie.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function oe(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function le(ve){if(ve[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+ve[0]+(this.useColors?"%c ":" ")+"+"+te.exports.humanize(this.diff),!this.useColors)return;const Se="color: "+this.color;ve.splice(1,0,Se,"color: inherit");let ke=0,Me=0;ve[0].replace(/%[a-zA-Z%]/g,Pe=>{Pe!=="%%"&&(ke++,Pe==="%c"&&(Me=ke))}),ve.splice(Me,0,Se)}ie.log=console.debug||console.log||(()=>{});function ce(ve){try{ve?ie.storage.setItem("debug",ve):ie.storage.removeItem("debug")}catch{}}function ue(){let ve;try{ve=ie.storage.getItem("debug")}catch{}return!ve&&typeof C.process<"u"&&"env"in C.process&&(ve=C.process.env.DEBUG),ve}function fe(){try{return localStorage}catch{}}te.exports=Hs(ie);const{formatters:he}=te.exports;he.j=function(ve){try{return JSON.stringify(ve)}catch(Se){return"[UnexpectedJSONParseError]: "+Se.message}}})(ur,ur.exports);var $n=ur.exports;const Ws=fn,Js=wn.EventEmitter,Ys=kt.inherits,Z=$n("avvio"),{AVV_ERR_READY_TIMEOUT:Xs}=Un,Ht=Symbol.for("plugin-meta");function Zs(te,ie){return te[Ht]&&te[Ht].name?te[Ht].name:typeof ie<"u"&&typeof ie!="function"&&ie.name?ie.name:te.name?te.name:te.toString().split(`
297
- `).slice(0,2).map(oe=>oe.trim()).join(" -- ")}function ea(){const te={};return te.promise=new Promise((ie,oe)=>{te.resolve=ie,te.reject=oe}),te}function tt(te,ie,oe,le,ce){this.started=!1,this.func=ie,this.opts=oe,this.onFinish=null,this.parent=te,this.timeout=ce===void 0?te._timeout:ce,this.name=Zs(ie,oe),this.isAfter=le,this.q=Ws(te,ta,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}Ys(tt,Js);tt.prototype.exec=function(te,ie){const oe=this.func;let le=!1;const ce=this.name;if(this.parent._error&&!this.isAfter){Z("skipping loading of plugin as parent errored and it is not an after",ce),C.process.nextTick(ie);return}if(this.isAfter)this.server=te;else try{this.server=this.parent.override(te,oe,this.opts)}catch(ve){return Z("override errored",ce),ie(ve)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Z("exec",ce);let ue;const fe=ve=>{if(le){Z("loading complete",ce);return}this._error=ve,Z(ve?"exec errored":"exec completed",ce),le=!0,ue&&clearTimeout(ue),ie(ve)};this.timeout>0&&(Z("setting up timeout",ce,this.timeout),ue=setTimeout(function(){Z("timed out",ce),ue=null;const ve=new Xs(ce);ve.fn=oe,fe(ve)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const he=oe(this.server,this.opts,fe);he&&typeof he.then=="function"&&(Z("exec: resolving promise",ce),he.then(()=>C.process.nextTick(fe),ve=>C.process.nextTick(fe,ve)))};tt.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const te=()=>{this.server.after((oe,le)=>{this._error=oe,this.q.pause(),oe?(Z("rejecting promise",this.name,oe),this._promise.reject(oe)):(Z("resolving promise",this.name),this._promise.resolve()),this._promise=null,C.process.nextTick(le,oe)}),this.q.resume()};let ie;return this._promise?ie=Promise.resolve():(this._promise=ea(),ie=this._promise.promise,this.server?te():this.on("start",te)),ie};tt.prototype.enqueue=function(te,ie){Z("enqueue",this.name,te.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(te,ie)};tt.prototype.finish=function(te,ie){Z("finish",this.name,te);const oe=()=>{this.loaded||(Z("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,ie(te))};if(te){this._promise&&(this._promise.reject(te),this._promise=null),oe();return}const le=()=>{if(Z("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const ce=()=>{Z("wrap"),queueMicrotask(le)};this._promise.resolve(),this._promise.promise.then(ce,ce),this._promise=null}else oe();else Z("delayed",this.name),this.q.drain=()=>{Z("drain",this.name),this.q.drain=ra,queueMicrotask(le)}};queueMicrotask(le),this.q.resume()};function ta(te,ie){const oe=this;C.process.nextTick(Ir.bind(oe),te,ie)}function Ir(te,ie){if(typeof te.func.then=="function"){te.func.then(le=>{typeof le.default=="function"&&(le=le.default),te.func=le,Ir.call(this,te,ie)},ie);return}const oe=this._current[0];this._current.unshift(te),te.exec(oe&&oe.server||this._server,le=>{te.finish(le,ce=>{this._current.shift(),ie(ce)})})}function ra(){}Er.exports=tt;Er.exports.loadPlugin=Ir;var na=Er.exports;const Gr=fn,ia=wn.EventEmitter,oa=kt.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Wt,AVV_ERR_CALLBACK_NOT_FN:ct,AVV_ERR_PLUGIN_NOT_VALID:sa,AVV_ERR_ROOT_PLG_BOOTED:aa,AVV_ERR_READY_TIMEOUT:ua}=Un,ca=Gs,cr=na,Ze=$n("avvio"),_t=Symbol("kAvvio"),Jt=Symbol("kThenifyDoNotWrap");function fa(te,ie,oe){const le=ie.expose||{},ce=le.use||"use",ue=le.after||"after",fe=le.ready||"ready",he=le.onClose||"onClose",ve=le.close||"close";if(te[ce])throw new Wt(ce);if(te[ue])throw new Wt(ue);if(te[fe])throw new Wt(fe);te[ce]=function(Se,ke){return oe.use(Se,ke),this},Object.defineProperty(te,"then",{get:Dn.bind(oe)}),te[_t]=!0,te[ue]=function(Se){return typeof Se!="function"?oe._loadRegistered():(oe.after(Yt(Se,this)),this)},te[fe]=function(Se){if(Se&&typeof Se!="function")throw new ct(fe,typeof Se);return oe.ready(Se?Yt(Se,this):void 0)},te[he]=function(Se){if(typeof Se!="function")throw new ct(he,typeof Se);return oe.onClose(ya(Se,this)),this},te[ve]=function(Se){if(Se&&typeof Se!="function")throw new ct(ve,typeof Se);return Se?(oe.close(Yt(Se,this)),this):oe.close()}}function ee(te,ie,oe){if(typeof te=="function"&&arguments.length===1&&(oe=te,ie={},te=null),typeof ie=="function"&&(oe=ie,ie={}),ie=ie||{},!(this instanceof ee)){const le=new ee(te,ie,oe);return te&&fa(te,ie,le),le}ie.autostart!==!1&&(ie.autostart=!0),te=te||this,this._timeout=Number(ie.timeout)||0,this._server=te,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),oe&&this.once("start",oe),this.started=!1,this.booted=!1,this.pluginTree=new ca,this._readyQ=Gr(this,jn,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=zr},this._closeQ=Gr(this,da,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=zr},this._doStart=null,this._root=new cr(this,la.bind(this),ie,!1,0),this._root.once("start",(le,ce,ue)=>{const fe=this.pluginTree.start(null,ce,ue);this._root.once("loaded",(he,ve,Se)=>{this.pluginTree.stop(fe,Se)})}),cr.loadPlugin.call(this,this._root,le=>{Ze("root plugin ready");try{this.emit("preReady"),this._root=null}catch(ce){le=le||this._error||ce}if(le){if(this._error=le,this._readyQ.length()===0)throw le}else this.booted=!0;this._readyQ.resume()})}function la(te,ie,oe){this._doStart=oe,ie.autostart&&this.start()}oa(ee,ia);ee.prototype.start=function(){return this.started=!0,C.process.nextTick(this._doStart),this};ee.prototype.override=function(te,ie,oe){return te};function ha(te){if(te&&typeof te=="object"&&typeof te.default=="function"&&(te=te.default),!(te&&(typeof te=="function"||typeof te.then=="function")))throw new sa(typeof te);return te}ee.prototype[_t]=!0;ee.prototype.use=function(te,ie){return this._lastUsed=this._addPlugin(te,ie,!1),this};ee.prototype._loadRegistered=function(){const te=this._current[0];return!this.started&&!this.booted&&C.process.nextTick(()=>this._root.q.resume()),te?te.loadedSoFar():Promise.resolve()};Object.defineProperty(ee.prototype,"then",{get:Dn});ee.prototype._addPlugin=function(te,ie,oe){if(te=ha(te),ie=ie||{},this.booted)throw new aa;const le=this._current[0],ce=new cr(this,te,ie,oe);if(ce.once("start",(ue,fe,he)=>{const ve=this.pluginTree.start(le.name,fe,he);ce.once("loaded",(Se,ke,Me)=>{this.pluginTree.stop(ve,Me)})}),le.loaded)throw new Error(ce.name,le.name);return le.enqueue(ce,ue=>{ue&&(this._error=ue)}),ce};ee.prototype.after=function(te){if(!te)return this._loadRegistered();this._addPlugin(ie.bind(this),{},!0);function ie(oe,le,ce){jn.call(this,te,ce)}return this};ee.prototype.onClose=function(te){if(typeof te!="function")throw new Error("not a function");te[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(te,ie.bind(this));function ie(oe){oe&&(this._error=oe)}return this};ee.prototype.close=function(te){let ie;if(te){if(typeof te!="function")throw new ct("close",typeof te)}else ie=new Promise(function(oe,le){te=function(ce){if(ce)return le(ce);oe()}});return this.ready(()=>{this._error=null,this._closeQ.push(te),C.process.nextTick(this._closeQ.resume.bind(this._closeQ))}),ie};ee.prototype.ready=function(te){if(te){if(typeof te!="function")throw new ct("ready",typeof te);this._readyQ.push(te),queueMicrotask(this.start.bind(this));return}return new Promise((ie,oe)=>{this._readyQ.push(ce),this.start();const le=this._current[0].server;function ce(ue,fe,he){ue?oe(ue):ie(le),C.process.nextTick(he)}})};ee.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};ee.prototype.toJSON=function(){return this.pluginTree.toJSON()};function zr(){}function Dn(){if(this.booted){Ze("thenify returning null because we are already booted");return}if(this[Jt]){this[Jt]=!1;return}return Ze("thenify"),(te,ie)=>this._loadRegistered().then(()=>(this[Jt]=!0,te(this._server)),ie)}function jn(te,ie){const oe=this._server,le=this._error;let ce;if(this._error=null,te.length===0)this._error=le,ce=te(),ce&&!ce[_t]&&typeof ce.then=="function"?ce.then(()=>C.process.nextTick(ie),ue=>C.process.nextTick(ie,ue)):C.process.nextTick(ie);else if(te.length===1)ce=te(le),ce&&!ce[_t]&&typeof ce.then=="function"?ce.then(()=>C.process.nextTick(ie),ue=>C.process.nextTick(ie,ue)):C.process.nextTick(ie);else if(this._timeout===0){const ue=fe=>{this._error=fe,ie(this._error)};te.length===2?te(le,ue):te(le,oe,ue)}else pa.call(this,te,le,oe,ie)}function pa(te,ie,oe,le){const ce=te.name;Ze("setting up ready timeout",ce,this._timeout);let ue=setTimeout(()=>{Ze("timed out",ce),ue=null;const he=new ua(ce);he.fn=te,this._error=he,le(he)},this._timeout);te.length===2?te(ie,fe.bind(this)):te(ie,oe,fe.bind(this));function fe(he){ue&&(clearTimeout(ue),this._error=he,le(this._error))}}function da(te,ie){const oe=this._server,le=te[this._isOnCloseHandlerKey];if(te.length===0||te.length===1){let ce;le?ce=te(oe):ce=te(this._error),ce&&typeof ce.then=="function"?(Ze("resolving close/onClose promise"),ce.then(()=>C.process.nextTick(ie),ue=>C.process.nextTick(ie,ue))):C.process.nextTick(ie)}else te.length===2?te(le?oe:this._error,ie):le?te(oe,ie):te(this._error,oe,ie)}function ya(te,ie){return oe.bind(ie);function oe(le,ce){let ue;te.length===0?(ue=te(),ue&&ue.then?ue.then(function(){C.process.nextTick(ce)},ce):C.process.nextTick(ce)):te.length===1?(ue=te(this),ue&&ue.then?ue.then(function(){C.process.nextTick(ce)},ce):C.process.nextTick(ce)):te(this,ce)}}function Yt(te,ie){return oe.bind(ie);function oe(le,ce){let ue;te?te.length===0?(ue=te(),ue&&ue.then?ue.then(function(){C.process.nextTick(ce,le)},ce):C.process.nextTick(ce,le)):te.length===1?(ue=te(le),ue&&ue.then?ue.then(function(){C.process.nextTick(ce)},ce):C.process.nextTick(ce)):te.length===2?te(le,ce):te(le,this,ce):C.process.nextTick(ce)}}yr.exports=ee;yr.exports.express=function(te){return ee(te,{expose:{use:"load"}})};var ga=yr.exports;const ma=Yn(ga);function Na(te,ie=!0,oe=!0){const le=ie?"https://grpc-web.streamlayer.io:443":"https://grpc-web.next.streamlayer.io:443",ce=ma(Object.create({}),{autostart:!1});return ce.use(Bi),ce.use(Ei,{sdkKey:te,host:le}),ce.use(xi),ce.use(Oi),ce.use(co),ce.use(Ji),oe&&ce.after(async(ue,fe,he)=>{if(ue)throw ue;await fe.sdk.initializeApp(),he()}),ce.onClose(()=>{console.log("close")}),ce}const useStreamLayerApp=(te,ie,oe,le)=>{const[ce,ue]=e$9.useState(null);return e$9.useEffect(()=>{let fe=!1;if(!te)return console.error("streamlayer sdk key should be provided"),ue(ve=>(ve!==null&&typeof ve.disableApp=="function"&&ve.disableApp(),null)),()=>{fe=!0};const he=Na(te,oe,le);if(ie)for(const ve of ie)he.use(ve);return he.ready().then(ve=>{fe||ue(ve.sdk)}).catch(ve=>console.log(ve)),()=>{fe=!0,he.close(function(ve){if(ve)throw ve})}},[te,oe]),ce};var StreamLayerStatus=(te=>(te[te.UNSET=0]="UNSET",te[te.CONNECTED=1]="CONNECTED",te[te.READY=2]="READY",te))(StreamLayerStatus||{});const StreamLayerContext=e$9.createContext({status:0,sdk:null}),StreamLayerProvider=({sdkKey:te,plugins:ie,children:oe,production:le=!0,autoEnable:ce=!0})=>{const ue=useStreamLayerApp(te,ie,le,ce),fe=e$9.useMemo(()=>ue?{sdk:ue,status:2}:{status:1,sdk:null},[ue]);return jsxRuntime.jsx(StreamLayerContext.Provider,{value:fe,children:oe})},MastersStreamLayerProvider=({sdkKey:te,plugins:ie,children:oe,production:le=!0})=>jsxRuntime.jsx(StreamLayerProvider,{sdkKey:te,plugins:ie,production:le,autoEnable:!1,children:oe}),MastersStreamLayerSDKReact=({children:te,overlays:ie})=>{const{sdk:oe,status:le}=e$9.useContext(StreamLayerContext);if(le===StreamLayerStatus.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return oe?jsxRuntime.jsx("div",{className:"StreamLayerSDK",children:jsxRuntime.jsx(s$3,{style:{height:"100%"},children:jsxRuntime.jsx(Mt$1,{sdk:oe,overlays:ie,children:te})})}):te({})},useStreamLayer=()=>{const{sdk:te}=e$9.useContext(StreamLayerContext);return te},StreamLayerLogin=({token:te,schema:ie})=>{const oe=useStreamLayer();return e$9.useEffect(()=>{te&&ie&&oe&&oe.authorizationBypass(ie,te)},[te,ie,oe]),null};var build={},t=function(){return t=Object.assign||function(te){for(var ie,oe=1,le=arguments.length;oe<le;oe++)for(var ce in ie=arguments[oe])Object.prototype.hasOwnProperty.call(ie,ce)&&(te[ce]=ie[ce]);return te},t.apply(this,arguments)},i=function(){function te(ie,oe,le){var ce=this;this.endVal=oe,this.options=le,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(ue){ce.startTime||(ce.startTime=ue);var fe=ue-ce.startTime;ce.remaining=ce.duration-fe,ce.useEasing?ce.countDown?ce.frameVal=ce.startVal-ce.easingFn(fe,0,ce.startVal-ce.endVal,ce.duration):ce.frameVal=ce.easingFn(fe,ce.startVal,ce.endVal-ce.startVal,ce.duration):ce.frameVal=ce.startVal+(ce.endVal-ce.startVal)*(fe/ce.duration);var he=ce.countDown?ce.frameVal<ce.endVal:ce.frameVal>ce.endVal;ce.frameVal=he?ce.endVal:ce.frameVal,ce.frameVal=Number(ce.frameVal.toFixed(ce.options.decimalPlaces)),ce.printValue(ce.frameVal),fe<ce.duration?ce.rAF=requestAnimationFrame(ce.count):ce.finalEndVal!==null?ce.update(ce.finalEndVal):ce.options.onCompleteCallback&&ce.options.onCompleteCallback()},this.formatNumber=function(ue){var fe,he,ve,Se,ke=ue<0?"-":"";fe=Math.abs(ue).toFixed(ce.options.decimalPlaces);var Me=(fe+="").split(".");if(he=Me[0],ve=Me.length>1?ce.options.decimal+Me[1]:"",ce.options.useGrouping){Se="";for(var Pe=3,Re=0,Oe=0,Be=he.length;Oe<Be;++Oe)ce.options.useIndianSeparators&&Oe===4&&(Pe=2,Re=1),Oe!==0&&Re%Pe==0&&(Se=ce.options.separator+Se),Re++,Se=he[Be-Oe-1]+Se;he=Se}return ce.options.numerals&&ce.options.numerals.length&&(he=he.replace(/[0-9]/g,function(xe){return ce.options.numerals[+xe]}),ve=ve.replace(/[0-9]/g,function(xe){return ce.options.numerals[+xe]})),ke+ce.options.prefix+he+ve+ce.options.suffix},this.easeOutExpo=function(ue,fe,he,ve){return he*(1-Math.pow(2,-10*ue/ve))*1024/1023+fe},this.options=t(t({},this.defaults),le),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(oe),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof ie=="string"?document.getElementById(ie):ie,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,ie):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return ce.handleScroll(ce)}),window.onscroll=function(){window.onScrollFns.forEach(function(ue){return ue()})},this.handleScroll(this)))}return te.prototype.handleScroll=function(ie){if(ie&&window&&!ie.once){var oe=window.innerHeight+window.scrollY,le=ie.el.getBoundingClientRect(),ce=le.top+window.pageYOffset,ue=le.top+le.height+window.pageYOffset;ue<oe&&ue>window.scrollY&&ie.paused?(ie.paused=!1,setTimeout(function(){return ie.start()},ie.options.scrollSpyDelay),ie.options.scrollSpyOnce&&(ie.once=!0)):(window.scrollY>ue||ce>oe)&&!ie.paused&&ie.reset()}},te.prototype.determineDirectionAndSmartEasing=function(){var ie=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>ie;var oe=ie-this.startVal;if(Math.abs(oe)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=ie;var le=this.countDown?1:-1;this.endVal=ie+le*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=ie,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},te.prototype.start=function(ie){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),ie&&(this.options.onCompleteCallback=ie),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},te.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},te.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},te.prototype.update=function(ie){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(ie),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},te.prototype.printValue=function(ie){var oe;if(this.el){var le=this.formattingFn(ie);!((oe=this.options.plugin)===null||oe===void 0)&&oe.render?this.options.plugin.render(this.el,le):this.el.tagName==="INPUT"?this.el.value=le:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=le:this.el.innerHTML=le}},te.prototype.ensureNumber=function(ie){return typeof ie=="number"&&!isNaN(ie)},te.prototype.validateValue=function(ie){var oe=Number(ie);return this.ensureNumber(oe)?oe:(this.error="[CountUp] invalid start or end value: ".concat(ie),null)},te.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},te}();const countUp_min=Object.freeze(Object.defineProperty({__proto__:null,CountUp:i},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(countUp_min);Object.defineProperty(build,"__esModule",{value:!0});var React=e$9,countup_js=require$$1;function _iterableToArrayLimit(te,ie){var oe=te==null?null:typeof Symbol<"u"&&te[Symbol.iterator]||te["@@iterator"];if(oe!=null){var le,ce,ue,fe,he=[],ve=!0,Se=!1;try{if(ue=(oe=oe.call(te)).next,ie===0){if(Object(oe)!==oe)return;ve=!1}else for(;!(ve=(le=ue.call(oe)).done)&&(he.push(le.value),he.length!==ie);ve=!0);}catch(ke){Se=!0,ce=ke}finally{try{if(!ve&&oe.return!=null&&(fe=oe.return(),Object(fe)!==fe))return}finally{if(Se)throw ce}}return he}}function ownKeys(te,ie){var oe=Object.keys(te);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(te);ie&&(le=le.filter(function(ce){return Object.getOwnPropertyDescriptor(te,ce).enumerable})),oe.push.apply(oe,le)}return oe}function _objectSpread2(te){for(var ie=1;ie<arguments.length;ie++){var oe=arguments[ie]!=null?arguments[ie]:{};ie%2?ownKeys(Object(oe),!0).forEach(function(le){_defineProperty(te,le,oe[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(oe)):ownKeys(Object(oe)).forEach(function(le){Object.defineProperty(te,le,Object.getOwnPropertyDescriptor(oe,le))})}return te}function _defineProperty(te,ie,oe){return ie=_toPropertyKey(ie),ie in te?Object.defineProperty(te,ie,{value:oe,enumerable:!0,configurable:!0,writable:!0}):te[ie]=oe,te}function _extends(){return _extends=Object.assign?Object.assign.bind():function(te){for(var ie=1;ie<arguments.length;ie++){var oe=arguments[ie];for(var le in oe)Object.prototype.hasOwnProperty.call(oe,le)&&(te[le]=oe[le])}return te},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(te,ie){if(te==null)return{};var oe={},le=Object.keys(te),ce,ue;for(ue=0;ue<le.length;ue++)ce=le[ue],!(ie.indexOf(ce)>=0)&&(oe[ce]=te[ce]);return oe}function _objectWithoutProperties(te,ie){if(te==null)return{};var oe=_objectWithoutPropertiesLoose(te,ie),le,ce;if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(te);for(ce=0;ce<ue.length;ce++)le=ue[ce],!(ie.indexOf(le)>=0)&&Object.prototype.propertyIsEnumerable.call(te,le)&&(oe[le]=te[le])}return oe}function _slicedToArray(te,ie){return _arrayWithHoles(te)||_iterableToArrayLimit(te,ie)||_unsupportedIterableToArray(te,ie)||_nonIterableRest()}function _arrayWithHoles(te){if(Array.isArray(te))return te}function _unsupportedIterableToArray(te,ie){if(te){if(typeof te=="string")return _arrayLikeToArray(te,ie);var oe=Object.prototype.toString.call(te).slice(8,-1);if(oe==="Object"&&te.constructor&&(oe=te.constructor.name),oe==="Map"||oe==="Set")return Array.from(te);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return _arrayLikeToArray(te,ie)}}function _arrayLikeToArray(te,ie){(ie==null||ie>te.length)&&(ie=te.length);for(var oe=0,le=new Array(ie);oe<ie;oe++)le[oe]=te[oe];return le}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
298
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toPrimitive(te,ie){if(typeof te!="object"||te===null)return te;var oe=te[Symbol.toPrimitive];if(oe!==void 0){var le=oe.call(te,ie||"default");if(typeof le!="object")return le;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(te)}function _toPropertyKey(te){var ie=_toPrimitive(te,"string");return typeof ie=="symbol"?ie:String(ie)}var useIsomorphicLayoutEffect=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?React.useLayoutEffect:React.useEffect;function useEventCallback(te){var ie=React.useRef(te);return useIsomorphicLayoutEffect(function(){ie.current=te}),React.useCallback(function(){for(var oe=arguments.length,le=new Array(oe),ce=0;ce<oe;ce++)le[ce]=arguments[ce];return ie.current.apply(void 0,le)},[])}var createCountUpInstance=function te(ie,oe){var le=oe.decimal,ce=oe.decimals,ue=oe.duration,fe=oe.easingFn,he=oe.end,ve=oe.formattingFn,Se=oe.numerals,ke=oe.prefix,Me=oe.separator,Pe=oe.start,Re=oe.suffix,Oe=oe.useEasing,Be=oe.useGrouping,xe=oe.useIndianSeparators,nt=oe.enableScrollSpy,rt=oe.scrollSpyDelay,ot=oe.scrollSpyOnce,ht=oe.plugin;return new countup_js.CountUp(ie,he,{startVal:Pe,duration:ue,decimal:le,decimalPlaces:ce,easingFn:fe,formattingFn:ve,numerals:Se,separator:Me,prefix:ke,suffix:Re,plugin:ht,useEasing:Oe,useIndianSeparators:xe,useGrouping:Be,enableScrollSpy:nt,scrollSpyDelay:rt,scrollSpyOnce:ot})},_excluded$1=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],DEFAULTS={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},useCountUp=function te(ie){var oe=Object.fromEntries(Object.entries(ie).filter(function(Qn){var Mn=_slicedToArray(Qn,2),Gn=Mn[1];return Gn!==void 0})),le=React.useMemo(function(){return _objectSpread2(_objectSpread2({},DEFAULTS),oe)},[ie]),ce=le.ref,ue=le.startOnMount,fe=le.enableReinitialize,he=le.delay,ve=le.onEnd,Se=le.onStart,ke=le.onPauseResume,Me=le.onReset,Pe=le.onUpdate,Re=_objectWithoutProperties(le,_excluded$1),Oe=React.useRef(),Be=React.useRef(),xe=React.useRef(!1),nt=useEventCallback(function(){return createCountUpInstance(typeof ce=="string"?ce:ce.current,Re)}),rt=useEventCallback(function(Qn){var Mn=Oe.current;if(Mn&&!Qn)return Mn;var Gn=nt();return Oe.current=Gn,Gn}),ot=useEventCallback(function(){var Qn=function(){return rt(!0).start(function(){ve==null||ve({pauseResume:ht,reset:dt,start:Ct,update:Rt})})};he&&he>0?Be.current=setTimeout(Qn,he*1e3):Qn(),Se==null||Se({pauseResume:ht,reset:dt,update:Rt})}),ht=useEventCallback(function(){rt().pauseResume(),ke==null||ke({reset:dt,start:Ct,update:Rt})}),dt=useEventCallback(function(){rt().el&&(Be.current&&clearTimeout(Be.current),rt().reset(),Me==null||Me({pauseResume:ht,start:Ct,update:Rt}))}),Rt=useEventCallback(function(Qn){rt().update(Qn),Pe==null||Pe({pauseResume:ht,reset:dt,start:Ct})}),Ct=useEventCallback(function(){dt(),ot()}),Lt=useEventCallback(function(Qn){ue&&(Qn&&dt(),ot())});return React.useEffect(function(){xe.current?fe&&Lt(!0):(xe.current=!0,Lt())},[fe,xe,Lt,he,ie.start,ie.suffix,ie.prefix,ie.duration,ie.separator,ie.decimals,ie.decimal,ie.formattingFn]),React.useEffect(function(){return function(){dt()}},[dt]),{start:Ct,pauseResume:ht,reset:dt,update:Rt,getCountUp:rt}},_excluded=["className","redraw","containerProps","children","style"],CountUp=function te(ie){var oe=ie.className,le=ie.redraw,ce=ie.containerProps,ue=ie.children,fe=ie.style,he=_objectWithoutProperties(ie,_excluded),ve=React.useRef(null),Se=React.useRef(!1),ke=useCountUp(_objectSpread2(_objectSpread2({},he),{},{ref:ve,startOnMount:typeof ue!="function"||ie.delay===0,enableReinitialize:!1})),Me=ke.start,Pe=ke.reset,Re=ke.update,Oe=ke.pauseResume,Be=ke.getCountUp,xe=useEventCallback(function(){Me()}),nt=useEventCallback(function(ht){ie.preserveValue||Pe(),Re(ht)}),rt=useEventCallback(function(){if(typeof ie.children=="function"&&!(ve.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}Be()});React.useEffect(function(){rt()},[rt]),React.useEffect(function(){Se.current&&nt(ie.end)},[ie.end,nt]);var ot=le&&ie;return React.useEffect(function(){le&&Se.current&&xe()},[xe,le,ot]),React.useEffect(function(){!le&&Se.current&&xe()},[xe,le,ie.start,ie.suffix,ie.prefix,ie.duration,ie.separator,ie.decimals,ie.decimal,ie.className,ie.formattingFn]),React.useEffect(function(){Se.current=!0},[]),typeof ue=="function"?ue({countUpRef:ve,start:Me,reset:Pe,update:Re,pauseResume:Oe,getCountUp:Be}):React.createElement("span",_extends({className:oe,ref:ve,style:fe},ce),typeof ie.start<"u"?Be().formattingFn(ie.start):"")},_default=build.default=CountUp;build.useCountUp=useCountUp;const d=({value:te=0,decimals:ie,duration:oe=1,preserveValue:le=!0,...ce})=>{const[,ue]=te.toString().split("."),fe=ie??((ue==null?void 0:ue.length)||0);return jsxRuntime.jsx(_default,{end:te,...ce,duration:oe,decimals:fe,enableScrollSpy:!1,preserveValue:le})},a=styled_default("div")({name:"PointsContainer",class:"psiob9b",propsAsIs:!1}),l=styled_default("div")({name:"PointsIcon",class:"p1gqe4lh",propsAsIs:!1}),n=()=>n1,c=styled_default(n())({name:"PointsSvg",class:"p15syg2y",propsAsIs:!0}),r=styled_default("div")({name:"PointsBody",class:"p12n4f2h",propsAsIs:!1}),m=styled_default("div")({name:"PointsTitle",class:"poqmx89",propsAsIs:!1}),P=styled_default("div")({name:"PointsValue",class:"prj9b3v",propsAsIs:!1}),v=({points:te})=>jsxRuntime.jsxs(a,{className:d$b,children:[jsxRuntime.jsx(l,{children:jsxRuntime.jsx(c,{name:"icon-trophy"})}),jsxRuntime.jsxs(r,{children:[jsxRuntime.jsx(m,{children:"Total points"}),jsxRuntime.jsx(P,{children:jsxRuntime.jsx(d,{value:te})})]})]}),StreamLayerSDKPointsProvider=({userSummary:te})=>{const[ie,oe]=e$9.useState(0);return e$9.useEffect(()=>{const le=te.subscribe(ce=>{var ue,fe;(fe=(ue=ce.data)==null?void 0:ue.summary)!=null&&fe.points&&oe(ce.data.summary.points)});return()=>{le()}},[te]),jsxRuntime.jsx("div",{className:"StreamLayerSDK",children:jsxRuntime.jsx(s$3,{children:jsxRuntime.jsx(v,{points:ie})})})},GamificationProvider=({sdk:te})=>{if(useStore(te.sdkStore.status)!=="ready")return null;const oe=te.getFeature(SdkOverlayType.GAMES);return oe?jsxRuntime.jsx(StreamLayerSDKPointsProvider,{userSummary:oe.userSummary.getStore()}):null},StreamLayerSDKPoints=()=>{const te=useStreamLayer();return te?jsxRuntime.jsx(GamificationProvider,{sdk:te}):null};exports.AutoSizer=AutoSizer;exports.E=E$1;exports.MastersStreamLayerProvider=MastersStreamLayerProvider;exports.MastersStreamLayerSDKReact=MastersStreamLayerSDKReact;exports.O=O;exports.PickHistoryStatus=PickHistoryStatus;exports.QuestionImages=QuestionImages;exports.QuestionStatus=QuestionStatus;exports.QuestionType=QuestionType;exports.StreamLayerLogin=StreamLayerLogin;exports.StreamLayerSDKPoints=StreamLayerSDKPoints;exports.a=a$1;exports.d=d;exports.d$1=d$3;exports.n=n$1;exports.n1=n1;exports.o=o$9;exports.r=r$1;exports.styled_default=styled_default;exports.useStore=useStore;exports.w=w$1;
16
+ */(function(e){const t=ka,n=Xs,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=I,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=o(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(i){if(i>a)throw new RangeError('The value "'+i+'" is invalid for option "size"');const r=new Uint8Array(i);return Object.setPrototypeOf(r,c.prototype),r}function c(i,r,l){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return T(i)}return d(i,r,l)}c.poolSize=8192;function d(i,r,l){if(typeof i=="string")return y(i,r);if(ArrayBuffer.isView(i))return A(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(fe(i,ArrayBuffer)||i&&fe(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(i,SharedArrayBuffer)||i&&fe(i.buffer,SharedArrayBuffer)))return R(i,r,l);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const p=i.valueOf&&i.valueOf();if(p!=null&&p!==i)return c.from(p,r,l);const h=N(i);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return c.from(i[Symbol.toPrimitive]("string"),r,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}c.from=function(i,r,l){return d(i,r,l)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function f(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function g(i,r,l){return f(i),i<=0?u(i):r!==void 0?typeof l=="string"?u(i).fill(r,l):u(i).fill(r):u(i)}c.alloc=function(i,r,l){return g(i,r,l)};function T(i){return f(i),u(i<0?0:_(i)|0)}c.allocUnsafe=function(i){return T(i)},c.allocUnsafeSlow=function(i){return T(i)};function y(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const l=P(i,r)|0;let p=u(l);const h=p.write(i,r);return h!==l&&(p=p.slice(0,h)),p}function b(i){const r=i.length<0?0:_(i.length)|0,l=u(r);for(let p=0;p<r;p+=1)l[p]=i[p]&255;return l}function A(i){if(fe(i,Uint8Array)){const r=new Uint8Array(i);return R(r.buffer,r.byteOffset,r.byteLength)}return b(i)}function R(i,r,l){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(l||0))throw new RangeError('"length" is outside of buffer bounds');let p;return r===void 0&&l===void 0?p=new Uint8Array(i):l===void 0?p=new Uint8Array(i,r):p=new Uint8Array(i,r,l),Object.setPrototypeOf(p,c.prototype),p}function N(i){if(c.isBuffer(i)){const r=_(i.length)|0,l=u(r);return l.length===0||i.copy(l,0,0,r),l}if(i.length!==void 0)return typeof i.length!="number"||Ct(i.length)?u(0):b(i);if(i.type==="Buffer"&&Array.isArray(i.data))return b(i.data)}function _(i){if(i>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return i|0}function I(i){return+i!=i&&(i=0),c.alloc(+i)}c.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==c.prototype},c.compare=function(i,r){if(fe(i,Uint8Array)&&(i=c.from(i,i.offset,i.byteLength)),fe(r,Uint8Array)&&(r=c.from(r,r.offset,r.byteLength)),!c.isBuffer(i)||!c.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===r)return 0;let l=i.length,p=r.length;for(let h=0,k=Math.min(l,p);h<k;++h)if(i[h]!==r[h]){l=i[h],p=r[h];break}return l<p?-1:p<l?1:0},c.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(i,r){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return c.alloc(0);let l;if(r===void 0)for(r=0,l=0;l<i.length;++l)r+=i[l].length;const p=c.allocUnsafe(r);let h=0;for(l=0;l<i.length;++l){let k=i[l];if(fe(k,Uint8Array))h+k.length>p.length?(c.isBuffer(k)||(k=c.from(k)),k.copy(p,h)):Uint8Array.prototype.set.call(p,k,h);else if(c.isBuffer(k))k.copy(p,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=k.length}return p};function P(i,r){if(c.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||fe(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const l=i.length,p=arguments.length>2&&arguments[2]===!0;if(!p&&l===0)return 0;let h=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return it(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l*2;case"hex":return l>>>1;case"base64":return Rt(i).length;default:if(h)return p?-1:it(i).length;r=(""+r).toLowerCase(),h=!0}}c.byteLength=P;function U(i,r,l){let p=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((l===void 0||l>this.length)&&(l=this.length),l<=0)||(l>>>=0,r>>>=0,l<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return Ae(this,r,l);case"utf8":case"utf-8":return se(this,r,l);case"ascii":return rt(this,r,l);case"latin1":case"binary":return je(this,r,l);case"base64":return de(this,r,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,r,l);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),p=!0}}c.prototype._isBuffer=!0;function B(i,r,l){const p=i[r];i[r]=i[l],i[l]=p}c.prototype.swap16=function(){const i=this.length;if(i%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<i;r+=2)B(this,r,r+1);return this},c.prototype.swap32=function(){const i=this.length;if(i%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<i;r+=4)B(this,r,r+3),B(this,r+1,r+2);return this},c.prototype.swap64=function(){const i=this.length;if(i%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<i;r+=8)B(this,r,r+7),B(this,r+1,r+6),B(this,r+2,r+5),B(this,r+3,r+4);return this},c.prototype.toString=function(){const i=this.length;return i===0?"":arguments.length===0?se(this,0,i):U.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(i){if(!c.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i?!0:c.compare(this,i)===0},c.prototype.inspect=function(){let i="";const r=e.INSPECT_MAX_BYTES;return i=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(i+=" ... "),"<Buffer "+i+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(i,r,l,p,h){if(fe(i,Uint8Array)&&(i=c.from(i,i.offset,i.byteLength)),!c.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(r===void 0&&(r=0),l===void 0&&(l=i?i.length:0),p===void 0&&(p=0),h===void 0&&(h=this.length),r<0||l>i.length||p<0||h>this.length)throw new RangeError("out of range index");if(p>=h&&r>=l)return 0;if(p>=h)return-1;if(r>=l)return 1;if(r>>>=0,l>>>=0,p>>>=0,h>>>=0,this===i)return 0;let k=h-p,E=l-r;const j=Math.min(k,E),J=this.slice(p,h),Q=i.slice(r,l);for(let Y=0;Y<j;++Y)if(J[Y]!==Q[Y]){k=J[Y],E=Q[Y];break}return k<E?-1:E<k?1:0};function V(i,r,l,p,h){if(i.length===0)return-1;if(typeof l=="string"?(p=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),l=+l,Ct(l)&&(l=h?0:i.length-1),l<0&&(l=i.length+l),l>=i.length){if(h)return-1;l=i.length-1}else if(l<0)if(h)l=0;else return-1;if(typeof r=="string"&&(r=c.from(r,p)),c.isBuffer(r))return r.length===0?-1:D(i,r,l,p,h);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?h?Uint8Array.prototype.indexOf.call(i,r,l):Uint8Array.prototype.lastIndexOf.call(i,r,l):D(i,[r],l,p,h);throw new TypeError("val must be string, number or Buffer")}function D(i,r,l,p,h){let k=1,E=i.length,j=r.length;if(p!==void 0&&(p=String(p).toLowerCase(),p==="ucs2"||p==="ucs-2"||p==="utf16le"||p==="utf-16le")){if(i.length<2||r.length<2)return-1;k=2,E/=2,j/=2,l/=2}function J(Y,K){return k===1?Y[K]:Y.readUInt16BE(K*k)}let Q;if(h){let Y=-1;for(Q=l;Q<E;Q++)if(J(i,Q)===J(r,Y===-1?0:Q-Y)){if(Y===-1&&(Y=Q),Q-Y+1===j)return Y*k}else Y!==-1&&(Q-=Q-Y),Y=-1}else for(l+j>E&&(l=E-j),Q=l;Q>=0;Q--){let Y=!0;for(let K=0;K<j;K++)if(J(i,Q+K)!==J(r,K)){Y=!1;break}if(Y)return Q}return-1}c.prototype.includes=function(i,r,l){return this.indexOf(i,r,l)!==-1},c.prototype.indexOf=function(i,r,l){return V(this,i,r,l,!0)},c.prototype.lastIndexOf=function(i,r,l){return V(this,i,r,l,!1)};function $(i,r,l,p){l=Number(l)||0;const h=i.length-l;p?(p=Number(p),p>h&&(p=h)):p=h;const k=r.length;p>k/2&&(p=k/2);let E;for(E=0;E<p;++E){const j=parseInt(r.substr(E*2,2),16);if(Ct(j))return E;i[l+E]=j}return E}function ee(i,r,l,p){return ot(it(r,i.length-l),i,l,p)}function ue(i,r,l,p){return ot(kn(r),i,l,p)}function ce(i,r,l,p){return ot(Rt(r),i,l,p)}function ke(i,r,l,p){return ot(M(r,i.length-l),i,l,p)}c.prototype.write=function(i,r,l,p){if(r===void 0)p="utf8",l=this.length,r=0;else if(l===void 0&&typeof r=="string")p=r,l=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(l)?(l=l>>>0,p===void 0&&(p="utf8")):(p=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const h=this.length-r;if((l===void 0||l>h)&&(l=h),i.length>0&&(l<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let k=!1;for(;;)switch(p){case"hex":return $(this,i,r,l);case"utf8":case"utf-8":return ee(this,i,r,l);case"ascii":case"latin1":case"binary":return ue(this,i,r,l);case"base64":return ce(this,i,r,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,i,r,l);default:if(k)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),k=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(i,r,l){return r===0&&l===i.length?t.fromByteArray(i):t.fromByteArray(i.slice(r,l))}function se(i,r,l){l=Math.min(i.length,l);const p=[];let h=r;for(;h<l;){const k=i[h];let E=null,j=k>239?4:k>223?3:k>191?2:1;if(h+j<=l){let J,Q,Y,K;switch(j){case 1:k<128&&(E=k);break;case 2:J=i[h+1],(J&192)===128&&(K=(k&31)<<6|J&63,K>127&&(E=K));break;case 3:J=i[h+1],Q=i[h+2],(J&192)===128&&(Q&192)===128&&(K=(k&15)<<12|(J&63)<<6|Q&63,K>2047&&(K<55296||K>57343)&&(E=K));break;case 4:J=i[h+1],Q=i[h+2],Y=i[h+3],(J&192)===128&&(Q&192)===128&&(Y&192)===128&&(K=(k&15)<<18|(J&63)<<12|(Q&63)<<6|Y&63,K>65535&&K<1114112&&(E=K))}}E===null?(E=65533,j=1):E>65535&&(E-=65536,p.push(E>>>10&1023|55296),E=56320|E&1023),p.push(E),h+=j}return De(p)}const pe=4096;function De(i){const r=i.length;if(r<=pe)return String.fromCharCode.apply(String,i);let l="",p=0;for(;p<r;)l+=String.fromCharCode.apply(String,i.slice(p,p+=pe));return l}function rt(i,r,l){let p="";l=Math.min(i.length,l);for(let h=r;h<l;++h)p+=String.fromCharCode(i[h]&127);return p}function je(i,r,l){let p="";l=Math.min(i.length,l);for(let h=r;h<l;++h)p+=String.fromCharCode(i[h]);return p}function Ae(i,r,l){const p=i.length;(!r||r<0)&&(r=0),(!l||l<0||l>p)&&(l=p);let h="";for(let k=r;k<l;++k)h+=_a[i[k]];return h}function Re(i,r,l){const p=i.slice(r,l);let h="";for(let k=0;k<p.length-1;k+=2)h+=String.fromCharCode(p[k]+p[k+1]*256);return h}c.prototype.slice=function(i,r){const l=this.length;i=~~i,r=r===void 0?l:~~r,i<0?(i+=l,i<0&&(i=0)):i>l&&(i=l),r<0?(r+=l,r<0&&(r=0)):r>l&&(r=l),r<i&&(r=i);const p=this.subarray(i,r);return Object.setPrototypeOf(p,c.prototype),p};function q(i,r,l){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>l)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(i,r,l){i=i>>>0,r=r>>>0,l||q(i,r,this.length);let p=this[i],h=1,k=0;for(;++k<r&&(h*=256);)p+=this[i+k]*h;return p},c.prototype.readUintBE=c.prototype.readUIntBE=function(i,r,l){i=i>>>0,r=r>>>0,l||q(i,r,this.length);let p=this[i+--r],h=1;for(;r>0&&(h*=256);)p+=this[i+--r]*h;return p},c.prototype.readUint8=c.prototype.readUInt8=function(i,r){return i=i>>>0,r||q(i,1,this.length),this[i]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(i,r){return i=i>>>0,r||q(i,2,this.length),this[i]|this[i+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(i,r){return i=i>>>0,r||q(i,2,this.length),this[i]<<8|this[i+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(i,r){return i=i>>>0,r||q(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+this[i+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(i,r){return i=i>>>0,r||q(i,4,this.length),this[i]*16777216+(this[i+1]<<16|this[i+2]<<8|this[i+3])},c.prototype.readBigUInt64LE=Ce(function(i){i=i>>>0,be(i,"offset");const r=this[i],l=this[i+7];(r===void 0||l===void 0)&&Se(i,this.length-8);const p=r+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24,h=this[++i]+this[++i]*2**8+this[++i]*2**16+l*2**24;return BigInt(p)+(BigInt(h)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ce(function(i){i=i>>>0,be(i,"offset");const r=this[i],l=this[i+7];(r===void 0||l===void 0)&&Se(i,this.length-8);const p=r*2**24+this[++i]*2**16+this[++i]*2**8+this[++i],h=this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+l;return(BigInt(p)<<BigInt(32))+BigInt(h)}),c.prototype.readIntLE=function(i,r,l){i=i>>>0,r=r>>>0,l||q(i,r,this.length);let p=this[i],h=1,k=0;for(;++k<r&&(h*=256);)p+=this[i+k]*h;return h*=128,p>=h&&(p-=Math.pow(2,8*r)),p},c.prototype.readIntBE=function(i,r,l){i=i>>>0,r=r>>>0,l||q(i,r,this.length);let p=r,h=1,k=this[i+--p];for(;p>0&&(h*=256);)k+=this[i+--p]*h;return h*=128,k>=h&&(k-=Math.pow(2,8*r)),k},c.prototype.readInt8=function(i,r){return i=i>>>0,r||q(i,1,this.length),this[i]&128?(255-this[i]+1)*-1:this[i]},c.prototype.readInt16LE=function(i,r){i=i>>>0,r||q(i,2,this.length);const l=this[i]|this[i+1]<<8;return l&32768?l|4294901760:l},c.prototype.readInt16BE=function(i,r){i=i>>>0,r||q(i,2,this.length);const l=this[i+1]|this[i]<<8;return l&32768?l|4294901760:l},c.prototype.readInt32LE=function(i,r){return i=i>>>0,r||q(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},c.prototype.readInt32BE=function(i,r){return i=i>>>0,r||q(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},c.prototype.readBigInt64LE=Ce(function(i){i=i>>>0,be(i,"offset");const r=this[i],l=this[i+7];(r===void 0||l===void 0)&&Se(i,this.length-8);const p=this[i+4]+this[i+5]*2**8+this[i+6]*2**16+(l<<24);return(BigInt(p)<<BigInt(32))+BigInt(r+this[++i]*2**8+this[++i]*2**16+this[++i]*2**24)}),c.prototype.readBigInt64BE=Ce(function(i){i=i>>>0,be(i,"offset");const r=this[i],l=this[i+7];(r===void 0||l===void 0)&&Se(i,this.length-8);const p=(r<<24)+this[++i]*2**16+this[++i]*2**8+this[++i];return(BigInt(p)<<BigInt(32))+BigInt(this[++i]*2**24+this[++i]*2**16+this[++i]*2**8+l)}),c.prototype.readFloatLE=function(i,r){return i=i>>>0,r||q(i,4,this.length),n.read(this,i,!0,23,4)},c.prototype.readFloatBE=function(i,r){return i=i>>>0,r||q(i,4,this.length),n.read(this,i,!1,23,4)},c.prototype.readDoubleLE=function(i,r){return i=i>>>0,r||q(i,8,this.length),n.read(this,i,!0,52,8)},c.prototype.readDoubleBE=function(i,r){return i=i>>>0,r||q(i,8,this.length),n.read(this,i,!1,52,8)};function v(i,r,l,p,h,k){if(!c.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>h||r<k)throw new RangeError('"value" argument is out of bounds');if(l+p>i.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(i,r,l,p){if(i=+i,r=r>>>0,l=l>>>0,!p){const E=Math.pow(2,8*l)-1;v(this,i,r,l,E,0)}let h=1,k=0;for(this[r]=i&255;++k<l&&(h*=256);)this[r+k]=i/h&255;return r+l},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(i,r,l,p){if(i=+i,r=r>>>0,l=l>>>0,!p){const E=Math.pow(2,8*l)-1;v(this,i,r,l,E,0)}let h=l-1,k=1;for(this[r+h]=i&255;--h>=0&&(k*=256);)this[r+h]=i/k&255;return r+l},c.prototype.writeUint8=c.prototype.writeUInt8=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,1,255,0),this[r]=i&255,r+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,2,65535,0),this[r]=i&255,this[r+1]=i>>>8,r+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,2,65535,0),this[r]=i>>>8,this[r+1]=i&255,r+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,4,4294967295,0),this[r+3]=i>>>24,this[r+2]=i>>>16,this[r+1]=i>>>8,this[r]=i&255,r+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,4,4294967295,0),this[r]=i>>>24,this[r+1]=i>>>16,this[r+2]=i>>>8,this[r+3]=i&255,r+4};function L(i,r,l,p,h){Ve(r,p,h,i,l,7);let k=Number(r&BigInt(4294967295));i[l++]=k,k=k>>8,i[l++]=k,k=k>>8,i[l++]=k,k=k>>8,i[l++]=k;let E=Number(r>>BigInt(32)&BigInt(4294967295));return i[l++]=E,E=E>>8,i[l++]=E,E=E>>8,i[l++]=E,E=E>>8,i[l++]=E,l}function F(i,r,l,p,h){Ve(r,p,h,i,l,7);let k=Number(r&BigInt(4294967295));i[l+7]=k,k=k>>8,i[l+6]=k,k=k>>8,i[l+5]=k,k=k>>8,i[l+4]=k;let E=Number(r>>BigInt(32)&BigInt(4294967295));return i[l+3]=E,E=E>>8,i[l+2]=E,E=E>>8,i[l+1]=E,E=E>>8,i[l]=E,l+8}c.prototype.writeBigUInt64LE=Ce(function(i,r=0){return L(this,i,r,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ce(function(i,r=0){return F(this,i,r,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(i,r,l,p){if(i=+i,r=r>>>0,!p){const j=Math.pow(2,8*l-1);v(this,i,r,l,j-1,-j)}let h=0,k=1,E=0;for(this[r]=i&255;++h<l&&(k*=256);)i<0&&E===0&&this[r+h-1]!==0&&(E=1),this[r+h]=(i/k>>0)-E&255;return r+l},c.prototype.writeIntBE=function(i,r,l,p){if(i=+i,r=r>>>0,!p){const j=Math.pow(2,8*l-1);v(this,i,r,l,j-1,-j)}let h=l-1,k=1,E=0;for(this[r+h]=i&255;--h>=0&&(k*=256);)i<0&&E===0&&this[r+h+1]!==0&&(E=1),this[r+h]=(i/k>>0)-E&255;return r+l},c.prototype.writeInt8=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,1,127,-128),i<0&&(i=255+i+1),this[r]=i&255,r+1},c.prototype.writeInt16LE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,2,32767,-32768),this[r]=i&255,this[r+1]=i>>>8,r+2},c.prototype.writeInt16BE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,2,32767,-32768),this[r]=i>>>8,this[r+1]=i&255,r+2},c.prototype.writeInt32LE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,4,2147483647,-2147483648),this[r]=i&255,this[r+1]=i>>>8,this[r+2]=i>>>16,this[r+3]=i>>>24,r+4},c.prototype.writeInt32BE=function(i,r,l){return i=+i,r=r>>>0,l||v(this,i,r,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[r]=i>>>24,this[r+1]=i>>>16,this[r+2]=i>>>8,this[r+3]=i&255,r+4},c.prototype.writeBigInt64LE=Ce(function(i,r=0){return L(this,i,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ce(function(i,r=0){return F(this,i,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function H(i,r,l,p,h,k){if(l+p>i.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function ie(i,r,l,p,h){return r=+r,l=l>>>0,h||H(i,r,l,4),n.write(i,r,l,p,23,4),l+4}c.prototype.writeFloatLE=function(i,r,l){return ie(this,i,r,!0,l)},c.prototype.writeFloatBE=function(i,r,l){return ie(this,i,r,!1,l)};function te(i,r,l,p,h){return r=+r,l=l>>>0,h||H(i,r,l,8),n.write(i,r,l,p,52,8),l+8}c.prototype.writeDoubleLE=function(i,r,l){return te(this,i,r,!0,l)},c.prototype.writeDoubleBE=function(i,r,l){return te(this,i,r,!1,l)},c.prototype.copy=function(i,r,l,p){if(!c.isBuffer(i))throw new TypeError("argument should be a Buffer");if(l||(l=0),!p&&p!==0&&(p=this.length),r>=i.length&&(r=i.length),r||(r=0),p>0&&p<l&&(p=l),p===l||i.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(l<0||l>=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),i.length-r<p-l&&(p=i.length-r+l);const h=p-l;return this===i&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,l,p):Uint8Array.prototype.set.call(i,this.subarray(l,p),r),h},c.prototype.fill=function(i,r,l,p){if(typeof i=="string"){if(typeof r=="string"?(p=r,r=0,l=this.length):typeof l=="string"&&(p=l,l=this.length),p!==void 0&&typeof p!="string")throw new TypeError("encoding must be a string");if(typeof p=="string"&&!c.isEncoding(p))throw new TypeError("Unknown encoding: "+p);if(i.length===1){const k=i.charCodeAt(0);(p==="utf8"&&k<128||p==="latin1")&&(i=k)}}else typeof i=="number"?i=i&255:typeof i=="boolean"&&(i=Number(i));if(r<0||this.length<r||this.length<l)throw new RangeError("Out of range index");if(l<=r)return this;r=r>>>0,l=l===void 0?this.length:l>>>0,i||(i=0);let h;if(typeof i=="number")for(h=r;h<l;++h)this[h]=i;else{const k=c.isBuffer(i)?i:c.from(i,p),E=k.length;if(E===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(h=0;h<l-r;++h)this[h+r]=k[h%E]}return this};const z={};function X(i,r,l){z[i]=class extends l{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${i}]`,this.stack,delete this.name}get code(){return i}set code(p){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:p,writable:!0})}toString(){return`${this.name} [${i}]: ${this.message}`}}}X("ERR_BUFFER_OUT_OF_BOUNDS",function(i){return i?`${i} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(i,r){return`The "${i}" argument must be of type number. Received type ${typeof r}`},TypeError),X("ERR_OUT_OF_RANGE",function(i,r,l){let p=`The value of "${i}" is out of range.`,h=l;return Number.isInteger(l)&&Math.abs(l)>2**32?h=ae(String(l)):typeof l=="bigint"&&(h=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(h=ae(h)),h+="n"),p+=` It must be ${r}. Received ${h}`,p},RangeError);function ae(i){let r="",l=i.length;const p=i[0]==="-"?1:0;for(;l>=p+4;l-=3)r=`_${i.slice(l-3,l)}${r}`;return`${i.slice(0,l)}${r}`}function Me(i,r,l){be(r,"offset"),(i[r]===void 0||i[r+l]===void 0)&&Se(r,i.length-(l+1))}function Ve(i,r,l,p,h,k){if(i>l||i<r){const E=typeof r=="bigint"?"n":"";let j;throw k>3?r===0||r===BigInt(0)?j=`>= 0${E} and < 2${E} ** ${(k+1)*8}${E}`:j=`>= -(2${E} ** ${(k+1)*8-1}${E}) and < 2 ** ${(k+1)*8-1}${E}`:j=`>= ${r}${E} and <= ${l}${E}`,new z.ERR_OUT_OF_RANGE("value",j,i)}Me(p,h,k)}function be(i,r){if(typeof i!="number")throw new z.ERR_INVALID_ARG_TYPE(r,"number",i)}function Se(i,r,l){throw Math.floor(i)!==i?(be(i,l),new z.ERR_OUT_OF_RANGE(l||"offset","an integer",i)):r<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(l||"offset",`>= ${l?1:0} and <= ${r}`,i)}const kt=/[^+/0-9A-Za-z-_]/g;function qt(i){if(i=i.split("=")[0],i=i.trim().replace(kt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function it(i,r){r=r||1/0;let l;const p=i.length;let h=null;const k=[];for(let E=0;E<p;++E){if(l=i.charCodeAt(E),l>55295&&l<57344){if(!h){if(l>56319){(r-=3)>-1&&k.push(239,191,189);continue}else if(E+1===p){(r-=3)>-1&&k.push(239,191,189);continue}h=l;continue}if(l<56320){(r-=3)>-1&&k.push(239,191,189),h=l;continue}l=(h-55296<<10|l-56320)+65536}else h&&(r-=3)>-1&&k.push(239,191,189);if(h=null,l<128){if((r-=1)<0)break;k.push(l)}else if(l<2048){if((r-=2)<0)break;k.push(l>>6|192,l&63|128)}else if(l<65536){if((r-=3)<0)break;k.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((r-=4)<0)break;k.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return k}function kn(i){const r=[];for(let l=0;l<i.length;++l)r.push(i.charCodeAt(l)&255);return r}function M(i,r){let l,p,h;const k=[];for(let E=0;E<i.length&&!((r-=2)<0);++E)l=i.charCodeAt(E),p=l>>8,h=l%256,k.push(h),k.push(p);return k}function Rt(i){return t.toByteArray(qt(i))}function ot(i,r,l,p){let h;for(h=0;h<p&&!(h+l>=r.length||h>=i.length);++h)r[h+l]=i[h];return h}function fe(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function Ct(i){return i!==i}const _a=function(){const i="0123456789abcdef",r=new Array(256);for(let l=0;l<16;++l){const p=l*16;for(let h=0;h<16;++h)r[p+h]=i[l]+i[h]}return r}();function Ce(i){return typeof BigInt>"u"?wa:i}function wa(){throw new Error("BigInt not supported")}})(_l);var Al={exports:{}},ye=Al.exports={},Ze,Je;function ks(){throw new Error("setTimeout has not been defined")}function bs(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ze=setTimeout:Ze=ks}catch{Ze=ks}try{typeof clearTimeout=="function"?Je=clearTimeout:Je=bs}catch{Je=bs}})();function Rl(e){if(Ze===setTimeout)return setTimeout(e,0);if((Ze===ks||!Ze)&&setTimeout)return Ze=setTimeout,setTimeout(e,0);try{return Ze(e,0)}catch{try{return Ze.call(null,e,0)}catch{return Ze.call(this,e,0)}}}function R6(e){if(Je===clearTimeout)return clearTimeout(e);if((Je===bs||!Je)&&clearTimeout)return Je=clearTimeout,clearTimeout(e);try{return Je(e)}catch{try{return Je.call(null,e)}catch{return Je.call(this,e)}}}var ht=[],on=!1,Bt,Hn=-1;function C6(){!on||!Bt||(on=!1,Bt.length?ht=Bt.concat(ht):Hn=-1,ht.length&&Cl())}function Cl(){if(!on){var e=Rl(C6);on=!0;for(var t=ht.length;t;){for(Bt=ht,ht=[];++Hn<t;)Bt&&Bt[Hn].run();Hn=-1,t=ht.length}Bt=null,on=!1,R6(e)}}ye.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];ht.push(new Il(e,t)),ht.length===1&&!on&&Rl(Cl)};function Il(e,t){this.fun=e,this.array=t}Il.prototype.run=function(){this.fun.apply(null,this.array)};ye.title="browser";ye.browser=!0;ye.env={};ye.argv=[];ye.version="";ye.versions={};function Tt(){}ye.on=Tt;ye.addListener=Tt;ye.once=Tt;ye.off=Tt;ye.removeListener=Tt;ye.removeAllListeners=Tt;ye.emit=Tt;ye.prependListener=Tt;ye.prependOnceListener=Tt;ye.listeners=function(e){return[]};ye.binding=function(e){throw new Error("process.binding is not supported")};ye.cwd=function(){return"/"};ye.chdir=function(e){throw new Error("process.chdir is not supported")};ye.umask=function(){return 0};var I6=Al.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_l,n=I6,s=u=>u&&u.__esModule?u:{default:u},a=s(n),o=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>a.default}),e.global=o})(W);class N6{}window.slStore=Object.create(null);const O6=(e,t)=>w1(e,t,{mount:({storeName:n})=>{window.slStore[n]||(window.slStore[n]={mounted:!0,history:[{type:"mount"}]}),window.slStore[n].store=e},unmount:({storeName:n})=>{var s;window.slStore[n].mounted=!1,(s=window.slStore[n])==null||s.history.push({type:"unmount"})},change:({actionName:n,storeName:s,changed:a,newValue:o,oldValue:u,valueMessage:c})=>{var d;(d=window.slStore[s])==null||d.history.push({type:"change",changed:a,newValue:o,oldValue:u,diff:jo({...u},{...o},{cyclesFix:!1}),actionName:n,valueMessage:c})},action:{start:({actionName:n,args:s,storeName:a})=>{var o;(o=window.slStore[a])==null||o.history.push({type:"action:start",actionName:n,args:s,storeName:a})},error:({actionName:n,error:s,storeName:a})=>{var o;(o=window.slStore[a])==null||o.history.push({type:"action:error",actionName:n,error:s})},end:({actionName:n,storeName:s})=>{var a;(a=window.slStore[s])==null||a.history.push({type:"action:end",actionName:n})}}});class ba{constructor(t,n){w(this,"store");w(this,"name");this.store=t,this.name=n,O6(this.store,this.name)}getStore(){return this.store}}const L6=e=>{const t=Object.keys(e);return Vo(t.map(n=>e[n].getStore()),(...n)=>Object.fromEntries(t.map((s,a)=>[s,n[a]])))};class An extends ba{constructor(){super(...arguments);w(this,"getValues",()=>this.getStore().get());w(this,"getValue",n=>this.getStore().get()[n]);w(this,"setValue",(n,s)=>this.getStore().setKey(n,s));w(this,"subscribe",(...n)=>this.getStore().subscribe(...n));w(this,"unsubscribe",()=>this.getStore().off())}}const Pt=e=>ds(e);var mt;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM"})(mt||(mt={}));const x6={[me.BETTING]:"betting",[me.GAMES]:"games",[me.PUBLIC_CHAT]:"publicChat",[me.TWITTER]:"twitter"};var Ut;(function(e){e.Ready="ready",e.Suspended="suspended"})(Ut||(Ut={}));class er{constructor({settings:t,...n},s){w(this,"status");w(this,"source");w(this,"config");w(this,"settings");w(this,"listeners",new Set);w(this,"settingsKey");w(this,"enable",()=>{this.status.set(Ut.Ready)});w(this,"disable",()=>{this.status.set(Ut.Suspended)});w(this,"setFeatureConfig",({settings:t,...n})=>{var a;let s;for(s in n)this.config.setValue(s,n[s]);if(((a=t==null?void 0:t.overlaySettings)==null?void 0:a.case)!==void 0&&(t==null?void 0:t.overlaySettings.case)===this.settingsKey){const o=t.overlaySettings.value;if(o!==void 0){let u;for(u in o)console.log(u,o[u]),o[u]!==0&&o[u]!==""&&this.settings.setValue(u,o[u])}}});w(this,"update",(t,n)=>{this.source===mt.STREAM&&n===mt.ORGANIZATION||(this.setFeatureConfig(t),this.source=n)});this.settingsKey=x6[n.type],this.status=_t(Ut.Suspended),this.config=new An(Pt(n),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(t==null?void 0:t.overlaySettings.case)===this.settingsKey?this.settings=new An(Pt(t.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new An(Pt({}),`feature:settings:${this.settingsKey}`),this.source=s}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(t){this.listeners.add(t)}fireEvent(t){for(const n of this.listeners.values())try{n.onEvent(t)}catch(s){console.error(s)}}}class Ye extends ba{constructor(){super(...arguments);w(this,"getValue",()=>this.getStore().get());w(this,"setValue",n=>this.getStore().set(n));w(this,"subscribe",n=>this.getStore().subscribe(n));w(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(n){return this.getStore().listen(n)}get(){return this.getStore().get()}}const Ue=e=>_t(e);class Qe extends ba{constructor(n,s,a){super(n,`api:${s}`);w(this,"atomStore");w(this,"getAtomStore",()=>this.atomStore);w(this,"getValue",async()=>{const n=this.getStore();if(n.value===void 0)throw new Error("no store");return await n.value.promise,n.get().data});w(this,"getValues",()=>{throw new Error("not implemented")});w(this,"setValue",n=>this.getStore().set({loading:!1,data:n==null?void 0:n.data}));w(this,"subscribe",n=>this.getStore().subscribe(n));w(this,"unsubscribe",()=>{throw new Error("not implemented")});w(this,"invalidate",()=>{this.store.invalidate()});w(this,"listen",n=>this.getStore().listen(n));w(this,"key",()=>this.getStore().key);w(this,"off",()=>this.getStore().off());this.atomStore=_t(),a&&n.subscribe(o=>{const u=this.atomStore.get(),c=a(o,u);u!==c&&this.atomStore.set(c)})}get(){throw new Error("not implemented")}}async function*M6(e,t){for await(const n of t){e.response.message=n,e.received_at=Date.now();const s={type:"__GRPC_DEVTOOLS_EXTENSION__",data:e};window.postMessage(s),yield n}}const B6=()=>e=>async t=>{const n={name:t.url,request:{},response:{}};n.request.header=Object.fromEntries(t.header.entries()),n.sent_at=Date.now();try{const s=await e(t);if(n.received_at=Date.now(),n.stream=s.stream,n.response.header=Object.fromEntries(s.header.entries()),n.response.trailer=Object.fromEntries(s.trailer.entries()),s.stream)return{...s,message:M6(n,s.message)};{n.request.message=t.message,n.response.message=s.message,n.latency=n.received_at-n.sent_at;const a={type:"__GRPC_DEVTOOLS_EXTENSION__",data:n};window.postMessage(a)}return s}catch(s){n.received_at=Date.now(),n.request.message=t.message,n.response.trailer={"grpc-status":s.code,"grpc-message":s.rawMessage},n.response.message=s.rawMessage,n.latency=n.received_at-n.sent_at;const a={type:"__GRPC_DEVTOOLS_EXTENSION__",data:n};throw window.postMessage(a),s}};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));var lt;(function(e){e.Init="init",e.Ready="ready",e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Failed="failed",e.Reconnecting="reconnecting"})(lt||(lt={}));class P6{constructor(t,n,s,a){w(this,"params");w(this,"stream");w(this,"method");w(this,"name");w(this,"headers");w(this,"listeners");w(this,"state");w(this,"store");w(this,"updateState",t=>{this.state.setValue("status",t),this.state.setValue("ts",new Date),this.addStateLog(`status => ${t}`)});w(this,"addStateLog",t=>{const n=this.state.getStore().get().log;this.state.setValue("log",[...n,`${new Date().toLocaleString()}: ${t}`])});w(this,"addListener",(t,n)=>this.listeners.has(t)?(this.addStateLog(`listener '${t}' not added`),!1):(this.listeners.set(t,n),this.addStateLog(`listener '${t}' added`),!0));w(this,"removeListener",t=>{this.listeners.delete(t),this.addStateLog(`listener '${t}' removed`)});w(this,"connect",()=>{this.updateState(lt.Connecting),this.stream&&(this.addStateLog("disconnect prev connection"),this.stream());const t="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;this.stream=this.method(t,this.onData,this.onStreamError,{headers:this.headers.getValues()}),this.updateState(lt.Connected)});w(this,"disconnect",()=>{this.stream&&this.stream(),this.listeners.clear(),this.updateState(lt.Disconnected)});w(this,"reconnect",()=>{this.updateState(lt.Reconnecting),this.connect()});w(this,"getStore",()=>{var t;return(t=this.store)==null?void 0:t.getStore()});w(this,"onData",t=>{this.addStateLog(`received data => ${JSON.stringify(t)}`),this.store&&this.store.setValue(t);for(const[,n]of this.listeners)n(t);this.addStateLog(`data routed to ${this.listeners.size} listeners`)});w(this,"onStreamError",t=>{t!==void 0&&(t.code!==oe.Canceled&&t.rawMessage!=="[canceled] BodyStreamBuffer was aborted"?(this.updateState(lt.Failed),this.state.setValue("error",t)):this.disconnect())});const o={status:lt.Init,ts:new Date,log:[]};this.state=new An(Pt(o),`subscription:${a.name}:state`),this.name=a.name,this.headers=t,this.listeners=new Map,this.params=s,this.method=n,a.withStore&&(this.store=new Ye(Ue(null),`subscription:${a.name}:store`)),"subscribe"in s&&typeof s.subscribe=="function"&&s.subscribe(()=>{this.reconnect()}),this.updateState(lt.Ready)}}class U6{constructor(t){w(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});w(this,"transport");w(this,"nanoquery");w(this,"host");w(this,"interceptors",[]);w(this,"$headers");w(this,"clients");w(this,"callbackClients");w(this,"subscriptions");w(this,"addSubscription",(t,n,s)=>{const a=this.subscriptions.get(n);if(a)return a;const o=new P6(this.$headers,t,n,s);return this.subscriptions.set(n,o),o});w(this,"removeSubscription",t=>{t.disconnect(),this.subscriptions.delete(t.params)});w(this,"disconnect",()=>{for(const[t,n]of this.subscriptions)n.disconnect(),this.subscriptions.delete(t)});w(this,"registerInterceptor",t=>{this.interceptors.push(t)});w(this,"removeInterceptor",t=>{this.interceptors=this.interceptors.filter(n=>n!==t)});w(this,"getClient",t=>{const n=t.typeName;if(this.clients.has(n))return this.clients.get(n);const s=J2(t,this.transport);return this.clients.set(n,s),s});w(this,"getCallbackClient",t=>{const n=t.typeName;if(this.callbackClients.has(n))return this.callbackClients.get(n);const s=Q2(t,this.transport);return this.callbackClients.set(n,s),s});w(this,"createPromiseClient",(t,{params:n=[],method:s})=>{const a=this.getClient(t),o=t.methods[s].name,u=[t.typeName,o.charAt(0).toLowerCase()+o.slice(1),...Array.isArray(n)?n:[n]],c=[t.typeName,o.charAt(0).toLowerCase()+o.slice(1)];return{client:a,queryKey:u,queryKeyStr:c.join("")}});w(this,"createCallbackClient",t=>({client:this.getCallbackClient(t)}));w(this,"setSdkKey",t=>{this.$headers.setValue("sdk",t)});w(this,"setAuth",(t,n)=>{this.$headers.setValue("authorization",t),this.$headers.setValue("sl-user-id",n)});w(this,"setHeader",(t,n)=>this.$headers.setValue(t,n));w(this,"getHeader",t=>this.$headers.getValue(t));w(this,"getHeaders",()=>this.$headers.getValues());w(this,"initInterceptors",()=>{if(this.interceptors.length!==0)return;const t=n=>s=>{const a=this.$headers.getValues();for(const o in a)s.header.set(o,a[o]);return n(s)};this.interceptors.push(t),this.interceptors.push(B6())});var o,u;this.host=t,this.$headers=new An(Pt({"sl-device-id":((u=(o=W.process)==null?void 0:o.env)==null?void 0:u.NX_DEVICE_ID)||"sdk-web-dev"}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.callbackClients=new Map,this.subscriptions=new Map;const[n,s,a]=vh();this.nanoquery={createFetcherStore:n,createMutatorStore:s,utils:a},this.transport=Sh({baseUrl:t,interceptors:this.interceptors,useBinaryFormat:!0})}}const F6=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(Vy,{method:"retrieveEventId",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;if(!u||typeof u!="string")return"";try{return((c=(await n.retrieveEventId({id:u})).data)==null?void 0:c.id)||""}catch{return""}}})},D6=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(xn,{method:"getStream",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;return u?(c=(await n.getStream({id:u})).data)==null?void 0:c.attributes:void 0}})},V6=(e,t)=>{const{queryKey:n,client:s}=t.createPromiseClient(bl,{method:"me",params:[e]});return t.nanoquery.createFetcherStore(n,{fetcher:()=>s.me({})})},j6=e=>{const{client:t}=e.createPromiseClient(bl,{method:"bypassAuth"});return({userKey:n,schema:s,init:a})=>t.bypassAuth({userKey:n,schema:s,init:a})},G6=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(xn,{method:"get",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async()=>{var a;return(a=(await n.get({})).data)==null?void 0:a.attributes}})},q6=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(xn,{method:"getOrganization",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async()=>{const a=await n.getOrganization({});return a.data?{...a.data.attributes,id:a.data.id}:void 0}})},$6=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(xn,{method:"getOrganizationAdvertising",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async()=>{var a;return(a=(await n.getOrganizationAdvertising({})).data)==null?void 0:a.attributes}})},H6=(e,t,n)=>{e.transport=new U6(t.host),e.sdk.host=e.transport.host,e.transport.setSdkKey(t.sdkKey),n()};class tr{constructor(t="main"){w(this,"delimiter",":");w(this,"prefix");w(this,"clear",()=>{for(const t in window.localStorage)t.startsWith(this.prefix)&&window.localStorage.removeItem(t)});w(this,"generateKey",t=>`${this.prefix}${this.delimiter}${t.join(this.delimiter)}`);w(this,"write",(...t)=>{const n=t.pop()||"";window.localStorage.setItem(this.generateKey(t),n)});w(this,"read",(...t)=>{const n=window.localStorage.getItem(this.generateKey(t));return n===null?void 0:n});w(this,"remove",(...t)=>{window.localStorage.removeItem(this.generateKey(t))});this.prefix=`sl-sdk${this.delimiter}${t}`}}var ct;(function(e){e.SCHEMA="schema",e.EXTERNAL_TOKEN="eToken",e.TOKEN="token"})(ct||(ct={}));class tn extends tr{constructor(){super("user");w(this,"setSchema",n=>{this.write(ct.SCHEMA,n)});w(this,"getSchema",()=>this.read(ct.SCHEMA));w(this,"setToken",n=>{this.write(ct.TOKEN,n)});w(this,"getToken",()=>this.read(ct.TOKEN));w(this,"setExternalToken",n=>{this.write(ct.EXTERNAL_TOKEN,n)});w(this,"getExternalToken",()=>this.read(ct.EXTERNAL_TOKEN));w(this,"removeToken",()=>{this.remove(ct.TOKEN)})}}var dt;(function(e){e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended"})(dt||(dt={}));const z6=e=>{const t=new tn,n=new Ye(Ue(t.getExternalToken()),"userKey"),s=new Ye(Ue(t.getToken()),"userToken"),a=new Qe(V6(s.getStore(),e),"user",({data:u,error:c,loading:d},f)=>{var g;if(!c)return(g=u==null?void 0:u.data)!=null&&g.id?u.data.id:d===!1?void 0:f}),o=new Qe(G6(s.getStore(),e),"userSettings");return{userKey:n,userToken:s,user:a,userSettings:o}},Q6=e=>{const t=new Ye(Ue(void 0),"providerStreamId"),n=new Qe(F6(t.getStore(),e),"slStreamId",a=>a==null?void 0:a.data),s=new Qe(D6(n.getAtomStore(),e),"streamSettings");return n.getAtomStore().listen(a=>{(a===""||a===void 0)&&s.getStore().mutate(void 0)}),{providerStreamId:t,slStreamId:n,streamSettings:s}},Y6=e=>{const t=new Ye(Ue(void 0),"enabled"),n=new Ye(Ue(dt.DISABLED),"status"),s=new Qe(q6(t.getStore(),e),"organizationSettings",c=>{var d;return(d=c==null?void 0:c.data)==null?void 0:d.id}),a=new Qe($6(s.getAtomStore(),e),"organizationAdvertising"),o=z6(e),u=Q6(e);return{enabled:t,status:n,providerStreamId:u.providerStreamId,slStreamId:u.slStreamId,streamSettings:u.streamSettings,user:o.user,userKey:o.userKey,userToken:o.userToken,userSettings:o.userSettings,organizationSettings:s,organizationAdvertising:a}};class K6 extends ba{constructor(n){const s=Y6(n),a=L6(s);super(a,"core");w(this,"stores");w(this,"subscribe",n=>{let s;for(s in this.stores){const a=n[s];s in n&&a!==void 0&&this.stores[s].subscribe(n[s])}});w(this,"unsubscribe",()=>this.getStore().off());this.stores=s}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}class W6 extends N6{constructor(n,s){super();w(this,"$coreStore");w(this,"transport");w(this,"bypassLogin");w(this,"me",async()=>{var n;return this.$coreStore.getValues().user.invalidate(),(n=await this.$coreStore.getValues().user.getValue())==null?void 0:n.data});w(this,"login",async(n,s)=>{var c,d;this.$coreStore.getValues().userKey.setValue(s);const a=await this.bypassLogin({schema:n,userKey:s,init:!1}),o=(c=a.meta)==null?void 0:c.jwt,u=(d=a.data)==null?void 0:d.id;if(!o||!u)throw new Error("internal: token missing");return this.$coreStore.getValues().user.getStore().mutate(a),this.saveUser(o,u),o});w(this,"isAuthenticated",()=>this.me());w(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("",""),new tn().clear()});w(this,"softLogout",()=>{const n=new tn;this.transport.setAuth("",""),n.setToken(""),this.reLogin()});w(this,"reLogin",()=>{const n=new tn,s=n.getToken(),a=n.getExternalToken();if(this.$coreStore.getValues().userKey.setValue(a),s)return this.saveUser(s,""),this.me().then(o=>{if(o!=null&&o.id){const u=o.id;this.saveUser(s,u)}});if(a&&!s){const o=n.getSchema();o&&a&&this.login(o,a).catch(()=>{this.logout()})}});w(this,"saveUser",(n,s)=>{this.transport.setAuth(n,s),this.$coreStore.getValues().userToken.setValue(n),new tn().setToken(n)});w(this,"connect",()=>{this.transport.registerInterceptor(n=>async s=>{try{return await n(s)}catch(a){throw a.code&&(a.code===7||a.code===16)&&this.transport.getHeader("authorization")&&this.softLogout(),a}})});this.$coreStore=n,this.transport=s,this.bypassLogin=j6(this.transport),this.connect()}}const vn=new tn,Z6=(e,t,n)=>{e.auth=new W6(e.store,e.transport),e.stores.status.listen(s=>{s===dt.READY&&e.auth.reLogin()}),e.sdk.userId=e.stores.user.getAtomStore,e.sdk.authorizationBypass=async(s,a)=>{if(!(vn.getSchema()===s&&vn.getExternalToken()===a&&e.transport.getHeader("authorization")))try{await e.auth.login(s,a),vn.setSchema(s),vn.setExternalToken(a)}catch{e.sdk.logout()}},e.sdk.logout=()=>{e.auth.logout(),vn.clear()},e.sdk.getUserStore=()=>e.stores.user.getStore(),e.sdk.isUserAuthorized=()=>e.auth.isAuthenticated(),n()},J6=(e,t,n)=>{e.store=new K6(e.transport),e.stores=e.store.getValues(),e.sdk.enabled=e.stores.enabled.getStore(),e.sdk.status=e.stores.status.getStore(),e.sdk.sdkStore=Object.fromEntries(Object.entries(e.stores).map(([s,a])=>[s,a.getStore()])),e.sdk.organizationStore=()=>e.stores.organizationSettings.getStore(),e.sdk.streamStore=()=>e.stores.streamSettings.getStore(),e.storeUnsubscribe=()=>{e.store.unsubscribe()},n()},X6=(e,t,n)=>{e.sdk=Object.create(null),e.sdk.initializeApp=async()=>{if(e.stores.enabled.get()==="on")return{enabled:!0};e.storeSubscribe(),e.stores.enabled.setValue("on"),e.stores.status.setValue(dt.INITIALIZATION);try{const s=await e.stores.organizationSettings.getValue();return s?(e.stores.status.setValue(dt.READY),{enabled:!!s}):(e.stores.status.setValue(dt.FAILED),{err:"failed"})}catch(s){return e.stores.enabled.setValue(),e.stores.status.setValue(dt.FAILED),{err:`${s}`}}},e.sdk.disableApp=()=>{e.stores.enabled.get()==="on"&&(e.stores.enabled.setValue(),e.stores.status.setValue(dt.DISABLED),e.sdk.closeFeature(),e.storeUnsubscribe())},e.sdk.createEventSession=s=>{e.stores.providerStreamId.setValue(s)},n()},eT=Ho({level:"trace",enabled:!1,browser:{write:e=>{console.log(e)}}}),Nl=(e,t)=>eT.child({name:e},t),tT=(e,t,n)=>{const{client:s,queryKey:a}=n.createPromiseClient(El,{method:"summary",params:[e,t]});return n.nanoquery.createFetcherStore(a,{fetcher:async(o,u,c,d)=>{var f;return(f=(await s.summary({eventId:c,userId:d})).data)==null?void 0:f.attributes}})},nT=e=>{const{client:t}=e.createPromiseClient(El,{method:"list"});return n=>t.list(n)},aT=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(st,{method:"get",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;return(c=(await n.get({eventId:u})).data)==null?void 0:c.attributes}})},sT=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(st,{method:"syncQuestion",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;return u?(c=(await n.syncQuestion({filter:{eventId:u}})).data)==null?void 0:c.attributes:void 0}})},rT=(e,t)=>{const{client:n}=t.createCallbackClient(st),s=_t({eventId:e.get()||"",feedId:""});return e.subscribe((a="")=>{s.set({eventId:a,feedId:""})}),t.addSubscription(n.subscription,s,{name:"feedSubscription"})},iT=(e,t)=>{const{client:n}=t.createCallbackClient(st);return t.addSubscription(n.questionSubscription,{questionId:e},{name:"questionSubscription"})},Ol=async(e,t)=>{var s,a;const{client:n}=t.createPromiseClient(st,{method:"questionByUser",params:[e]});return(a=(s=(await n.questionByUser({questionId:e})).data)==null?void 0:s.attributes)==null?void 0:a.question},oT=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(st,{method:"list",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>u?(await n.list({eventId:u,filter:{statuses:[Pe.ACTIVE,Pe.RESOLVED]}})).data:[]})},lT=(e,t)=>{const{client:n,queryKey:s}=t.createPromiseClient(st,{method:"insightHistory",params:[e]});return t.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;return u?(c=(await n.insightHistory({eventId:u})).data)==null?void 0:c.map(({attributes:d})=>d):void 0}})};var nr={exports:{}};const cT=Object.getPrototypeOf({});function ar(e){function t(_){return _!=="constructor"&&_!=="prototype"&&_!=="__proto__"}function n(_){let I=0;const P=_.length,U=new Array(P);for(I=0;I<P;++I)U[I]=b(_[I]);return U}function s(_){const I={};if(d&&Object.getPrototypeOf(_)!==cT)return d(_);const P=c(_);let U,B,V;for(U=0,B=P.length;U<B;++U)t(V=P[U])&&(I[V]=b(_[V]));return I}function a(_,I){const P=_.length,U=I.length;let B=0;const V=new Array(P+U);for(B=0;B<P;++B)V[B]=b(_[B]);for(B=0;B<U;++B)V[B+P]=b(I[B]);return V}const o=Object.prototype.propertyIsEnumerable;function u(_){const I=Object.keys(_),P=Object.getOwnPropertySymbols(_);for(let U=0,B=P.length;U<B;++U)o.call(_,P[U])&&I.push(P[U]);return I}const c=e&&e.symbols?u:Object.keys,d=typeof(e==null?void 0:e.cloneProtoObject)=="function"?e.cloneProtoObject:void 0;function f(_){return typeof _=="object"&&_!==null&&!(_ instanceof RegExp)&&!(_ instanceof Date)}function g(_){return typeof _!="object"||_===null}const T=typeof W.Buffer<"u"?_=>typeof _!="object"||_===null||_ instanceof RegExp||_ instanceof Date||_ instanceof W.Buffer:_=>typeof _!="object"||_===null||_ instanceof RegExp||_ instanceof Date,y=e&&typeof e.mergeArray=="function"?e.mergeArray({clone:b,deepmerge:R,getKeys:c,isMergeableObject:f}):a;function b(_){return f(_)?Array.isArray(_)?n(_):s(_):_}function A(_,I){const P={},U=c(_),B=c(I);let V,D,$;for(V=0,D=U.length;V<D;++V)t($=U[V])&&B.indexOf($)===-1&&(P[$]=b(_[$]));for(V=0,D=B.length;V<D;++V)t($=B[V])&&($ in _&&(U.indexOf($)!==-1&&(P[$]=R(_[$],I[$])),!0)||(P[$]=b(I[$])));return P}function R(_,I){const P=Array.isArray(I),U=Array.isArray(_);return g(I)?I:T(_)?b(I):P&&U?y(_,I):P!==U?b(I):A(_,I)}function N(){switch(arguments.length){case 0:return{};case 1:return b(arguments[0]);case 2:return R(arguments[0],arguments[1])}let _;for(let I=0,P=arguments.length;I<P;++I)_=R(_,arguments[I]);return _}return e&&e.all?N:R}nr.exports=ar;nr.exports.default=ar;var uT=nr.exports.deepmerge=ar;const mT=e=>(t,n)=>{let s=0;const a=t.length,o=n.length,u=Math.max(a,o),c=new Array(u);for(s=0;s<u;++s)s<o?c[s]=e.deepmerge(t[s],n[s]):c[s]=e.clone(t[s]);return c},dT=uT({mergeArray:mT}),pT=(e,t,n)=>{const s=Vo([t,n],(o,u)=>{if(o&&u.data)return u.data.find(c=>c.id===o)}),a=Pt({data:void 0,loading:void 0,error:void 0});return s.subscribe(async o=>{if(o&&o.type==="question"){a.setKey("loading",!0);const u=await Ol(o.id,e);a.set({data:u,loading:!1});return}a.set({data:void 0,loading:!1})}),{$store:s,$extendedStore:a,updateExtendedQuestion:o=>{const u=a.get().data;if(u)for(const c of(o==null?void 0:o.answers)||[])c.youVoted!==!0&&delete c.youVoted;a.set({data:dT(u,o)})}}},Ll=e=>(e.gamification||(e.gamification=new fT(e)),e.gamification);class fT{constructor(t){w(this,"slStreamId");w(this,"organizationId");w(this,"userId");w(this,"openedQuestionId");w(this,"openedQuestion");w(this,"activeQuestionId");w(this,"feedList");w(this,"moderationId");w(this,"moderation");w(this,"feedSubscription");w(this,"questionSubscription");w(this,"notifications");w(this,"log");w(this,"getCurrentSessionId",t=>{const n=t.eventId||this.slStreamId.get()||"",s=t.userId||this.userId.get()||"",a=t.organizationId||this.organizationId.get()||"",o=t.entity||"",u=t.prefix||"";return[a,n,s,u,o].join(":")});w(this,"disconnect",()=>{var t;(t=this.feedSubscription)==null||t.disconnect()});w(this,"openQuestion",t=>{this.openedQuestionId.set(t),this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:t}))});w(this,"closeQuestion",t=>{this.openedQuestionId.set(void 0),t&&this.notifications.markAsViewed(this.getCurrentSessionId({prefix:"notification",entity:t}))});if(t.gamification)throw new Error("GamificationBackground Singleton error");this.log=Nl("gamification-background"),this.slStreamId=t.stores.slStreamId.getAtomStore(),this.organizationId=t.stores.organizationSettings.getAtomStore(),this.userId=t.stores.user.getAtomStore(),this.moderationId=new Ye(Ue(void 0),"moderationId").getStore(),this.openedQuestionId=new Ye(Ue(void 0),"openedQuestionId").getStore(),this.notifications=t.notifications,this.moderation=new Qe(aT(this.slStreamId,t.transport),"gamification:moderation"),this.feedList=new Qe(oT(this.slStreamId,t.transport),"gamification:feedList"),this.activeQuestionId=new Qe(sT(this.slStreamId,t.transport),"gamification:activeQuestionId"),this.openedQuestion=pT(t.transport,this.openedQuestionId,this.feedList.getStore()),this.openedQuestionId.listen(n=>{this.log.debug({questionId:n},"received question"),n?(this.questionSubscription=iT(n,t.transport),this.questionSubscription.addListener("feed-subscription-opened-question",s=>{window.requestAnimationFrame(()=>{var a,o;this.openedQuestion.updateExtendedQuestion((o=(a=s.data)==null?void 0:a.attributes)==null?void 0:o.question)})}),this.questionSubscription.connect()):(this.log.info("cleanup on close question"),this.questionSubscription!==void 0&&(t.transport.removeSubscription(this.questionSubscription),this.questionSubscription=void 0))}),this.feedSubscription=rT(this.slStreamId,t.transport),this.feedSubscription.addListener("feed-subscription-active-question",n=>{window.requestAnimationFrame(()=>{var a;const s=this.activeQuestionId.getStore();s&&s.mutate((a=n.data)==null?void 0:a.attributes)})})}}class hT{constructor(t){w(this,"notificationsList");w(this,"notifications");w(this,"store");w(this,"timeouts");w(this,"waitingQueue");w(this,"activeQueue");w(this,"options");w(this,"logger");w(this,"addToQueue",t=>{if(this.store.has(t.id)){this.logger.debug({notification:t},"skip existed notification: %o");return}const n=t.close,s=t.action;if(this.store.set(t.id,{...t,close:(...a)=>{n&&n(...a),this.closeNotification(t.id)},action:(...a)=>{s&&s(...a),this.closeNotification(t.id)}}),this.waitingQueue.add(t.id),this.activeQueue.size===this.options.concurrency){const[a]=this.activeQueue;this.closeNotification(a)}else this.tickWaitingQueue()});w(this,"tickWaitingQueue",()=>{if(this.activeQueue.size<this.options.concurrency){const[t]=this.waitingQueue;if(!t)return;this.activeQueue.add(t),this.waitingQueue.delete(t),this.logger.debug({job:t},"waiting queue tick"),this.tickActiveQueue(t)}else this.logger.debug({queueSize:this.activeQueue.size,concurrency:this.options.concurrency},"waiting queue tick skipped")});w(this,"tickActiveQueue",t=>{if(!t)return;const n=this.store.get(t);if(!n){this.logger.debug({notificationId:t},"active queue tick skipped, notification not exist");return}const s=setTimeout(()=>{const a=t,o=new Map(this.notifications.getValue());o.set(n.id,n),this.notifications.setValue(o);const u=setTimeout(()=>{this.logger.debug({notificationId:a,delay:n.autoHideDuration||5e3},"notification hiding by autoHideDuration"),this.closeNotification(a)},n.autoHideDuration||5e3);this.timeouts.set(a,u),this.logger.debug({notificationId:a,queue:[...o.values()]},"notification displayed")},n.delay||0);this.timeouts.set(t,s),this.logger.debug({notificationId:t},"active queue tick completed"),this.tickWaitingQueue()});w(this,"closeNotification",t=>{const n=new Map(this.notifications.getValue()),s=n.get(t);if(s){s.hiding=!(this.waitingQueue.size>=this.options.concurrency),this.notifications.setValue(n);const a=setTimeout(()=>{const o=new Map(this.notifications.getValue());o.delete(t),this.notifications.setValue(o);const u=this.timeouts.get(t);u!==void 0&&(clearTimeout(u),this.timeouts.delete(t)),this.logger.debug({notificationId:t},"notification hidden")},this.options.animationDelay||0);this.timeouts.set(t,a)}this.store.delete(t),this.activeQueue.delete(t),this.waitingQueue.delete(t),this.tickWaitingQueue(),this.logger.debug({notificationId:t},"notification hiding")});this.options=t,this.logger=Nl("notifications"),this.store=new Map,this.timeouts=new Map,this.waitingQueue=new Set,this.activeQueue=new Set,this.notifications=new Ye(Ue(new Map),"notifications-queue"),this.notificationsList=this.notifications.getStore()}}var ta;(function(e){e.OPENED="opened"})(ta||(ta={}));class gT extends tr{constructor(){super("notification");w(this,"setOpened",n=>{this.write(ta.OPENED,n,"true")});w(this,"isOpened",n=>this.read(ta.OPENED,n));w(this,"clearNotification",()=>{this.clear()})}}var Et;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(Et||(Et={}));class yT{constructor(t={}){w(this,"queue");w(this,"storage");w(this,"add",t=>{this.storage.isOpened(t.id)||this.queue.addToQueue(t)});w(this,"close",t=>{this.queue.closeNotification(t),this.markAsViewed(t)});w(this,"getQueueStore",()=>this.queue.notificationsList);w(this,"markAsViewed",t=>{this.storage.setOpened(t)});this.storage=new gT,this.queue=new hT({concurrency:1,animationDelay:1600,...t})}}const TT=(e,t,n)=>{e.notifications=new yT,e.addNotification=e.notifications.add,e.sdk.getNotificationsStore=()=>e.notifications.getQueueStore(),n()},kT=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"submitAnswer"});return n.submitAnswer({data:t})},bT=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"submitInplay"});return n.submitInplay({data:{eventId:+t}})},ST=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"skipQuestion"});return n.skipQuestion({data:{id:t}})};var na;(function(e){e.ONBOARDING="onboarding"})(na||(na={}));class xl extends tr{constructor(){super("gamification");w(this,"saveOnboardingStatus",({userId:n,eventId:s,organizationId:a},o)=>{this.write(na.ONBOARDING,a,n,s,o)});w(this,"getOnboardingStatus",({userId:n,eventId:s,organizationId:a})=>this.read(na.ONBOARDING,a,n,s))}}const xi={pageSize:10},ET=(e,t,n)=>{const s=Ue({pageSize:(n==null?void 0:n.pageSize)||xi.pageSize,page:0}),a=Pt({data:[],loading:void 0,error:void 0}),o=nT(e),u=async d=>{if(d){a.setKey("loading",!0);const f={eventId:d,pagination:{page:0,pageSize:(n==null?void 0:n.pageSize)||xi.pageSize}},g=await o(f);a.set({data:g.data.map(T=>T.attributes),loading:!1}),s.set(f.pagination)}};t.listen(u);const c=()=>{u(t.get())};return s.listen(async d=>{var T;const f=t.get(),g=((T=a.get().data)==null?void 0:T.length)||0;if(d.page>0&&f&&g>=d.page*d.pageSize){a.setKey("loading",!0);const y=await o({eventId:f,pagination:d}),b=a.get().data||[];a.set({data:[...b,...y.data.map(A=>A.attributes)],loading:!1})}}),{$store:a,fetchMore:()=>{const d=s.get();s.set({...d,page:d.page+1})},invalidate:c}},vT=(e,t)=>{const{client:n,queryKey:s}=e.createPromiseClient(xn,{method:"generateDeepLink",params:t});return e.nanoquery.createFetcherStore(s,{fetcher:async(a,o,u)=>{var c;return u?(c=(await n.generateDeepLink({data:{eventId:u}})).data)==null?void 0:c.attributes:{}}})},_T=(e,t)=>({$store:vT(e,[t]),fetch});var Oe;(function(e){e.Unset="unset",e.Required="required",e.Optional="optional",e.Completed="completed",e.Disabled="disabled",e.Unavailable="unavailable"})(Oe||(Oe={}));const wT=(e,t,n,s)=>{const a=new xl,o=Ue(Oe.Unset),u=()=>{const{inplayGame:d}=e.featureSettings.get(),f=t.getCurrentSessionId({prefix:"onboarding"});d&&s.add({type:Et.ONBOARDING,id:f,action:e.openFeature,close:()=>{s.markAsViewed(f)},autoHideDuration:1e6,data:{questionType:re.UNSET,onboarding:{...d}}})};o.subscribe(d=>{(d===Oe.Optional||Oe.Required)&&u(),d===Oe.Completed&&t.activeQuestionId.invalidate()});const c=async()=>{var y,b,A,R,N;const d=t.userId.get();if(!d){o.set(Oe.Unset);return}a.getOnboardingStatus({userId:d,organizationId:t.organizationId.get()||"",eventId:t.slStreamId.get()||""})===Oe.Completed&&o.set(Oe.Completed);const f=await t.moderation.getValue();if(o.get()===Oe.Completed)return;const g=!!((y=f==null?void 0:f.options)!=null&&y.onboardingEnabled&&((A=(b=e.featureSettings.get().inplayGame)==null?void 0:b.onboarding)!=null&&A.completed)),T=!!((N=(R=e.featureSettings.get().inplayGame)==null?void 0:R.titleCard)!=null&&N.optIn);g?T?o.set(Oe.Required):o.set(Oe.Optional):T?o.set(Oe.Unavailable):o.set(Oe.Disabled)};return c(),t.userId.subscribe(d=>{d&&c()}),t.moderation.subscribe(d=>{d.data&&c()}),{$store:o,submitInplay:async()=>{const d=t.slStreamId.get();d&&(await bT(n,d),o.set(Oe.Completed),a.saveOnboardingStatus({organizationId:t.organizationId.get()||"",userId:t.userId.get()||"",eventId:d},Oe.Completed))}}},AT=new Set([re.POLL,re.PREDICTION,re.TRIVIA]);class RT extends er{constructor(n,s,a){super(n,s);w(this,"userSummary");w(this,"feedList");w(this,"leaderboardId");w(this,"leaderboardList");w(this,"deepLink");w(this,"onboardingStatus");w(this,"openedQuestion");w(this,"currentUserId");w(this,"openedUser");w(this,"closeFeature");w(this,"openFeature");w(this,"notifications");w(this,"transport");w(this,"background");w(this,"storage");w(this,"connect",n=>{this.userSummary.invalidate(),this.leaderboardList.invalidate(),this.feedList.invalidate(),this.background.feedSubscription.addListener("feed-subscription-prediction-close",s=>{window.requestAnimationFrame(async()=>{var d,f;const a=(f=(d=s.data)==null?void 0:d.attributes)==null?void 0:f.question;if(!a)return;const{status:o,type:u,id:c}=a;if(o===Pe.RESOLVED&&u===re.PREDICTION){const g=this.background.getCurrentSessionId({prefix:`notification-id:${c}`}),T=await Ol(c,n),y=T==null?void 0:T.answers.find(({correct:A})=>A),b=T==null?void 0:T.answers.find(({youVoted:A})=>A);if(!b)return;this.notifications.add({type:Et.QUESTION_RESOLVED,action:()=>this.openQuestion(c),close:()=>this.closeQuestion(c),autoHideDuration:35e3,id:g,data:{questionType:re.PREDICTION,question:{title:y!=null&&y.youVoted?`Congratulations! You answered correctly! You won ${y.points} pts!`:`Better luck next time! Correct: ${y==null?void 0:y.text}!`,votedAnswer:{title:b==null?void 0:b.text,points:b==null?void 0:b.points},correctAnswerTitle:y==null?void 0:y.text,correct:y==null?void 0:y.youVoted,predictionResult:o===Pe.RESOLVED}}})}})}),this.background.feedSubscription.addListener("feed-subscription-questions-list",()=>{window.requestAnimationFrame(()=>{var s;(s=this.feedList)==null||s.invalidate()})})});w(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-questions-list")});w(this,"submitAnswer",async(n,s)=>{await kT(this.transport,{questionId:n,answerId:s}),this.feedList.invalidate(),this.userSummary.invalidate()});w(this,"skipQuestion",async n=>{await ST(this.transport,n),this.feedList.invalidate(),this.userSummary.invalidate()});w(this,"openQuestion",n=>(this.openFeature(),this.background.openQuestion(n)));w(this,"closeQuestion",n=>this.background.closeQuestion(n));w(this,"openUser",n=>{var a;const s=(a=this.leaderboardList.$store.get().data)==null?void 0:a.find(o=>o.userId===n);this.openedUser.set(s)});w(this,"closeUser",()=>{this.openedUser.set(void 0)});this.background=Ll(a),this.storage=new xl,this.userSummary=new Qe(tT(this.background.slStreamId,this.background.userId,a.transport),"gamification:userSummary"),this.feedList=this.background.feedList,this.currentUserId=this.background.userId,this.openedUser=Ue(void 0),this.leaderboardId=new Ye(Ue(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.onboardingStatus=wT(this,this.background,a.transport,a.notifications),this.notifications=a.notifications,this.transport=a.transport,this.closeFeature=a.sdk.closeFeature,this.openFeature=()=>a.sdk.openFeature(me.GAMES),this.openedQuestion=this.background.openedQuestion,this.deepLink=_T(this.transport,this.background.slStreamId),this.leaderboardList=ET(this.transport,this.background.slStreamId),this.status.subscribe(o=>{o===Ut.Ready?this.connect(a.transport):this.disconnect()}),this.background.activeQuestionId.listen(o=>{var u,c,d,f,g,T,y,b,A,R;if(o&&o.data&&this.onboardingStatus.$store.get()&&((u=o.data.question)==null?void 0:u.id)!==void 0&&o.data.question.notification!==void 0&&((d=(c=o.data.moderation)==null?void 0:c.bypassNotifications)==null?void 0:d.inAppSilence)!==Bs.ON&&o.data.question.status===Pe.ACTIVE){if(AT.has(o.data.question.type))this.notifications.add({type:Et.QUESTION,action:()=>{var N;return((N=o.data)==null?void 0:N.question)&&this.openQuestion(o.data.question.id)},close:()=>{var N;return((N=o.data)==null?void 0:N.question)&&this.closeQuestion(o.data.question.id)},autoHideDuration:1e3*60,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionType:o.data.question.type,question:{title:o.data.question.notification.title}}});else if(o.data.question.type===re.FACTOID){const N=(f=o.data.question.options)==null?void 0:f.options.value,_={heading:o.data.question.notification.title,body:o.data.question.notification.body,image:o.data.question.notification.image,video:{id:((g=N==null?void 0:N.video)==null?void 0:g.id)||"",url:((T=N==null?void 0:N.video)==null?void 0:T.url)||"",thumbnailUrl:((y=N==null?void 0:N.video)==null?void 0:y.thumbnailUrl)||""},webLink:{label:"",url:""}};this.notifications.add({type:Et.QUESTION,action:()=>{var I;return((I=o.data)==null?void 0:I.question)&&this.openQuestion(o.data.question.id)},close:()=>{var I;return((I=o.data)==null?void 0:I.question)&&this.closeQuestion(o.data.question.id)},autoHideDuration:1e3*120,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionType:o.data.question.type,insight:_}})}else if(o.data.question.type===re.TWEET){const N=(b=o.data.question.options)==null?void 0:b.options.value,_={title:o.data.question.notification.title,body:o.data.question.notification.body,image:o.data.question.notification.image,account:{image:"",name:((A=N==null?void 0:N.tweetMeta)==null?void 0:A.account)||"",userName:"",verified:!!((R=N==null?void 0:N.tweetMeta)!=null&&R.accountVerified)}};this.notifications.add({type:Et.QUESTION,action:()=>{var I;return((I=o.data)==null?void 0:I.question)&&this.openQuestion(o.data.question.id)},close:()=>{var I;return((I=o.data)==null?void 0:I.question)&&this.closeQuestion(o.data.question.id)},autoHideDuration:1e3*120,id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionType:o.data.question.type,tweet:_}})}}})}}class CT extends er{constructor(n,s,a){super(n,s);w(this,"insights");w(this,"closeFeature");w(this,"openFeature");w(this,"openedInsight");w(this,"notifications");w(this,"transport");w(this,"background");w(this,"connect",()=>{this.insights?this.insights.invalidate():this.insights=new Qe(lT(this.background.slStreamId,this.transport),"gamification:insights"),this.background.feedSubscription.addListener("feed-subscription-insights-list",()=>{window.requestAnimationFrame(()=>{var n;(n=this.insights)==null||n.invalidate()})})});w(this,"disconnect",()=>{this.background.feedSubscription.removeListener("feed-subscription-insights-list")});w(this,"openHighlight",n=>(this.openFeature(),this.background.openQuestion(n)));w(this,"closeHighlight",n=>this.background.closeQuestion(n));this.background=Ll(a),this.notifications=a.notifications,this.transport=a.transport,this.closeFeature=a.sdk.closeFeature,this.openFeature=()=>a.sdk.openFeature(me.HIGHLIGHTS),this.status.subscribe(o=>{o===Ut.Ready?this.connect():this.disconnect()}),this.background.activeQuestionId.listen(o=>{var u,c,d,f,g,T,y,b;(c=(u=o==null?void 0:o.data)==null?void 0:u.question)!=null&&c.id&&((f=(d=o==null?void 0:o.data)==null?void 0:d.question)!=null&&f.notification)&&((T=(g=o.data.moderation)==null?void 0:g.bypassNotifications)==null?void 0:T.inAppSilence)!==Bs.ON&&o.data.question.type===re.FACTOID&&o.data.question.status===Pe.ACTIVE&&this.notifications.add({type:Et.QUESTION,action:()=>{var A;return((A=o.data)==null?void 0:A.question)&&this.openHighlight(o.data.question.id)},close:()=>{var A;return((A=o.data)==null?void 0:A.question)&&this.closeHighlight(o.data.question.id)},autoHideDuration:1e3*+(((b=(y=o.data.question)==null?void 0:y.appearance)==null?void 0:b.autoHideInterval)||"5"),id:this.background.getCurrentSessionId({prefix:"notification",entity:o.data.question.id}),data:{questionType:o.data.question.type,question:{title:o.data.question.notification.title}}})}),this.openedInsight=this.background.openedQuestion}}me.GAMES+"",me.HIGHLIGHTS+"";class IT extends er{constructor(t,n){super(t,n)}}const NT=(e,t,n)=>e.type===me.GAMES?new RT(e,t,n):e.type===me.HIGHLIGHTS?new CT(e,t,n):new IT(e,t),OT=(e,t,n)=>{e.features=new Map,e.activeFeature=new Ye(Ue(me.UNSET),"activeFeature"),e.sdk.getFeatures=()=>e.features,e.sdk.getFeature=s=>e.features.get(s),e.sdk.getActiveFeature=()=>e.activeFeature.getStore(),e.sdk.openFeature=s=>{e.activeFeature.setValue(s)},e.sdk.closeFeature=()=>{e.activeFeature.setValue(me.UNSET)},e.initFeature=(s,a=mt.ORGANIZATION)=>{const o=NT(s,a,e);e.features.set(s.type,o)},e.updateFeature=(s,a)=>{var o;(o=e.features.get(s.type))==null||o.update(s,a)},e.destroyFeature=s=>{e.features.delete(s.type)},e.reinitializeFeatures=async()=>{const s=await e.stores.organizationSettings.getValue();e.features.clear();for(const a of(s==null?void 0:s.overlays)||[])e.initFeature(a,mt.ORGANIZATION)},e.stores.providerStreamId.listen(s=>{s||e.reinitializeFeatures()}),e.storeSubscribe=()=>{const s=(o,u)=>{if(u!=null&&u.overlays){o===mt.STREAM&&e.features.clear();for(const c of u.overlays)c.sdkEnable===!0&&(e.features.has(c.type)?e.updateFeature(c,o):e.initFeature(c,o))}},a={organizationSettings:o=>{if(o.data)try{s(mt.ORGANIZATION,o.data)}catch(u){console.log(u)}},streamSettings:o=>{if(o.data)try{s(mt.STREAM,o.data)}catch(u){console.log(u)}}};e.store.subscribe(a)},n()};var sr={exports:{}},rr={exports:{}};function LT(e){var t=new e,n=t;function s(){var o=t;return o.next?t=o.next:(t=new e,n=t),o.next=null,o}function a(o){n.next=o,n=o}return{get:s,release:a}}var xT=LT,MT=xT;function Ml(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var s=MT(BT),a=null,o=null,u=0,c=null,d={push:R,drain:$e,saturated:$e,pause:g,paused:!1,concurrency:n,running:f,resume:b,idle:A,length:T,getQueue:y,unshift:N,empty:$e,kill:I,killAndDrain:P,error:U};return d;function f(){return u}function g(){d.paused=!0}function T(){for(var B=a,V=0;B;)B=B.next,V++;return V}function y(){for(var B=a,V=[];B;)V.push(B.value),B=B.next;return V}function b(){if(d.paused){d.paused=!1;for(var B=0;B<d.concurrency;B++)u++,_()}}function A(){return u===0&&d.length()===0}function R(B,V){var D=s.get();D.context=e,D.release=_,D.value=B,D.callback=V||$e,D.errorHandler=c,u===d.concurrency||d.paused?o?(o.next=D,o=D):(a=D,o=D,d.saturated()):(u++,t.call(e,D.value,D.worked))}function N(B,V){var D=s.get();D.context=e,D.release=_,D.value=B,D.callback=V||$e,u===d.concurrency||d.paused?a?(D.next=a,a=D):(a=D,o=D,d.saturated()):(u++,t.call(e,D.value,D.worked))}function _(B){B&&s.release(B);var V=a;V?d.paused?u--:(o===a&&(o=null),a=V.next,V.next=null,t.call(e,V.value,V.worked),o===null&&d.empty()):--u===0&&d.drain()}function I(){a=null,o=null,d.drain=$e}function P(){a=null,o=null,d.drain(),d.drain=$e}function U(B){c=B}}function $e(){}function BT(){this.value=null,this.callback=$e,this.next=null,this.release=$e,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var s=e.callback,a=e.errorHandler,o=e.value;e.value=null,e.callback=$e,e.errorHandler&&a(t,o),s.call(e.context,t,n),e.release(e)}}function PT(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function s(g,T){t.call(this,g).then(function(y){T(null,y)},T)}var a=Ml(e,s,n),o=a.push,u=a.unshift;return a.push=c,a.unshift=d,a.drained=f,a;function c(g){var T=new Promise(function(y,b){o(g,function(A,R){if(A){b(A);return}y(R)})});return T.catch($e),T}function d(g){var T=new Promise(function(y,b){u(g,function(A,R){if(A){b(A);return}y(R)})});return T.catch($e),T}function f(){if(a.idle())return new Promise(function(y){y()});var g=a.drain,T=new Promise(function(y){a.drain=function(){g(),y()}});return T}}rr.exports=Ml;rr.exports.promise=PT;var Bl=rr.exports,ir={exports:{}},ln=typeof Reflect=="object"?Reflect:null,Mi=ln&&typeof ln.apply=="function"?ln.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},zn;ln&&typeof ln.ownKeys=="function"?zn=ln.ownKeys:Object.getOwnPropertySymbols?zn=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:zn=function(e){return Object.getOwnPropertyNames(e)};function UT(e){console&&console.warn&&console.warn(e)}var Pl=Number.isNaN||function(e){return e!==e};function le(){le.init.call(this)}ir.exports=le;ir.exports.once=jT;le.EventEmitter=le;le.prototype._events=void 0;le.prototype._eventsCount=0;le.prototype._maxListeners=void 0;var Bi=10;function Sa(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(le,"defaultMaxListeners",{enumerable:!0,get:function(){return Bi},set:function(e){if(typeof e!="number"||e<0||Pl(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Bi=e}});le.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};le.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Pl(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Ul(e){return e._maxListeners===void 0?le.defaultMaxListeners:e._maxListeners}le.prototype.getMaxListeners=function(){return Ul(this)};le.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s=e==="error",a=this._events;if(a!==void 0)s=s&&a.error===void 0;else if(!s)return!1;if(s){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var c=a[e];if(c===void 0)return!1;if(typeof c=="function")Mi(c,this,t);else for(var d=c.length,f=Gl(c,d),n=0;n<d;++n)Mi(f[n],this,t);return!0};function Fl(e,t,n,s){var a,o,u;if(Sa(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),u=o[t]),u===void 0)u=o[t]=n,++e._eventsCount;else if(typeof u=="function"?u=o[t]=s?[n,u]:[u,n]:s?u.unshift(n):u.push(n),a=Ul(e),a>0&&u.length>a&&!u.warned){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,UT(c)}return e}le.prototype.addListener=function(e,t){return Fl(this,e,t,!1)};le.prototype.on=le.prototype.addListener;le.prototype.prependListener=function(e,t){return Fl(this,e,t,!0)};function FT(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Dl(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=FT.bind(s);return a.listener=n,s.wrapFn=a,a}le.prototype.once=function(e,t){return Sa(t),this.on(e,Dl(this,e,t)),this};le.prototype.prependOnceListener=function(e,t){return Sa(t),this.prependListener(e,Dl(this,e,t)),this};le.prototype.removeListener=function(e,t){var n,s,a,o,u;if(Sa(t),s=this._events,s===void 0)return this;if(n=s[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){u=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():DT(n,a),n.length===1&&(s[e]=n[0]),s.removeListener!==void 0&&this.emit("removeListener",e,u||t)}return this};le.prototype.off=le.prototype.removeListener;le.prototype.removeAllListeners=function(e){var t,n,s;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var a=Object.keys(n),o;for(s=0;s<a.length;++s)o=a[s],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this};function Vl(e,t,n){var s=e._events;if(s===void 0)return[];var a=s[t];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?VT(a):Gl(a,a.length)}le.prototype.listeners=function(e){return Vl(this,e,!0)};le.prototype.rawListeners=function(e){return Vl(this,e,!1)};le.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):jl.call(e,t)};le.prototype.listenerCount=jl;function jl(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}le.prototype.eventNames=function(){return this._eventsCount>0?zn(this._events):[]};function Gl(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function DT(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function VT(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function jT(e,t){return new Promise(function(n,s){function a(u){e.removeListener(t,o),s(u)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",a),n([].slice.call(arguments))}ql(e,t,o,{once:!0}),t!=="error"&&GT(e,a,{once:!0})})}function GT(e,t,n){typeof e.on=="function"&&ql(e,"error",t,n)}function ql(e,t,n,s){if(typeof e.on=="function")s.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(o){s.once&&e.removeEventListener(t,a),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var $l=ir.exports,Ea={},Hl={},zl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==s||o.enumerable!==!0)return!1}return!0},qT=zl,or=function(){return qT()&&!!Symbol.toStringTag},Pi=typeof Symbol<"u"&&Symbol,$T=zl,HT=function(){return typeof Pi!="function"||typeof Symbol!="function"||typeof Pi("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$T()},Ui={foo:{}},zT=Object,QT=function(){return{__proto__:Ui}.foo===Ui.foo&&!({__proto__:null}instanceof zT)},YT="Function.prototype.bind called on incompatible ",KT=Object.prototype.toString,WT=Math.max,ZT="[object Function]",Fi=function(e,t){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},JT=function(e,t){for(var n=[],s=t||0,a=0;s<e.length;s+=1,a+=1)n[a]=e[s];return n},XT=function(e,t){for(var n="",s=0;s<e.length;s+=1)n+=e[s],s+1<e.length&&(n+=t);return n},e8=function(e){var t=this;if(typeof t!="function"||KT.apply(t)!==ZT)throw new TypeError(YT+t);for(var n=JT(arguments,1),s,a=function(){if(this instanceof s){var f=t.apply(this,Fi(n,arguments));return Object(f)===f?f:this}return t.apply(e,Fi(n,arguments))},o=WT(0,t.length-n.length),u=[],c=0;c<o;c++)u[c]="$"+c;if(s=Function("binder","return function ("+XT(u,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var d=function(){};d.prototype=t.prototype,s.prototype=new d,d.prototype=null}return s},t8=e8,Ql=Function.prototype.bind||t8,Di={}.hasOwnProperty,qa=Function.prototype.call,n8=qa.bind?qa.bind(Di):function(e,t){return qa.call(Di,e,t)},ne,dn=SyntaxError,Yl=Function,cn=TypeError,$a=function(e){try{return Yl('"use strict"; return ('+e+").constructor;")()}catch{}},Ft=Object.getOwnPropertyDescriptor;if(Ft)try{Ft({},"")}catch{Ft=null}var Ha=function(){throw new cn},a8=Ft?function(){try{return arguments.callee,Ha}catch{try{return Ft(arguments,"callee").get}catch{return Ha}}}():Ha,Zt=HT(),s8=QT(),Ee=Object.getPrototypeOf||(s8?function(e){return e.__proto__}:null),Xt={},r8=typeof Uint8Array>"u"||!Ee?ne:Ee(Uint8Array),Dt={"%AggregateError%":typeof AggregateError>"u"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":Zt&&Ee?Ee([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":Xt,"%AsyncGenerator%":Xt,"%AsyncGeneratorFunction%":Xt,"%AsyncIteratorPrototype%":Xt,"%Atomics%":typeof Atomics>"u"?ne:Atomics,"%BigInt%":typeof BigInt>"u"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ne:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ne:FinalizationRegistry,"%Function%":Yl,"%GeneratorFunction%":Xt,"%Int8Array%":typeof Int8Array>"u"?ne:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ne:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Zt&&Ee?Ee(Ee([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map>"u"?ne:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Zt||!Ee?ne:Ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ne:Promise,"%Proxy%":typeof Proxy>"u"?ne:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ne:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Zt||!Ee?ne:Ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Zt&&Ee?Ee(""[Symbol.iterator]()):ne,"%Symbol%":Zt?Symbol:ne,"%SyntaxError%":dn,"%ThrowTypeError%":a8,"%TypedArray%":r8,"%TypeError%":cn,"%Uint8Array%":typeof Uint8Array>"u"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ne:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ne:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ne:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ne:WeakSet};if(Ee)try{null.error}catch(e){var i8=Ee(Ee(e));Dt["%Error.prototype%"]=i8}var o8=function e(t){var n;if(t==="%AsyncFunction%")n=$a("async function () {}");else if(t==="%GeneratorFunction%")n=$a("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=$a("async function* () {}");else if(t==="%AsyncGenerator%"){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ee&&(n=Ee(a.prototype))}return Dt[t]=n,n},Vi={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Mn=Ql,aa=n8,l8=Mn.call(Function.call,Array.prototype.concat),c8=Mn.call(Function.apply,Array.prototype.splice),ji=Mn.call(Function.call,String.prototype.replace),sa=Mn.call(Function.call,String.prototype.slice),u8=Mn.call(Function.call,RegExp.prototype.exec),m8=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d8=/\\(\\)?/g,p8=function(e){var t=sa(e,0,1),n=sa(e,-1);if(t==="%"&&n!=="%")throw new dn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new dn("invalid intrinsic syntax, expected opening `%`");var s=[];return ji(e,m8,function(a,o,u,c){s[s.length]=u?ji(c,d8,"$1"):o||a}),s},f8=function(e,t){var n=e,s;if(aa(Vi,n)&&(s=Vi[n],n="%"+s[0]+"%"),aa(Dt,n)){var a=Dt[n];if(a===Xt&&(a=o8(n)),typeof a>"u"&&!t)throw new cn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:a}}throw new dn("intrinsic "+e+" does not exist!")},yn=function(e,t){if(typeof e!="string"||e.length===0)throw new cn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new cn('"allowMissing" argument must be a boolean');if(u8(/^%?[^%]*%?$/,e)===null)throw new dn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=p8(e),s=n.length>0?n[0]:"",a=f8("%"+s+"%",t),o=a.name,u=a.value,c=!1,d=a.alias;d&&(s=d[0],c8(n,l8([0,1],d)));for(var f=1,g=!0;f<n.length;f+=1){var T=n[f],y=sa(T,0,1),b=sa(T,-1);if((y==='"'||y==="'"||y==="`"||b==='"'||b==="'"||b==="`")&&y!==b)throw new dn("property names with quotes must have matching quotes");if((T==="constructor"||!g)&&(c=!0),s+="."+T,o="%"+s+"%",aa(Dt,o))u=Dt[o];else if(u!=null){if(!(T in u)){if(!t)throw new cn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ft&&f+1>=n.length){var A=Ft(u,T);g=!!A,g&&"get"in A&&!("originalValue"in A.get)?u=A.get:u=u[T]}else g=aa(u,T),u=u[T];g&&!c&&(Dt[o]=u)}}return u},Kl={exports:{}},h8=yn,Ss=h8("%Object.defineProperty%",!0),Es=function(){if(Ss)try{return Ss({},"a",{value:1}),!0}catch{return!1}return!1};Es.hasArrayLengthDefineBug=function(){if(!Es())return null;try{return Ss([],"length",{value:1}).length!==1}catch{return!0}};var Wl=Es,g8=yn,Qn=g8("%Object.getOwnPropertyDescriptor%",!0);if(Qn)try{Qn([],"length")}catch{Qn=null}var lr=Qn,y8=Wl(),cr=yn,Rn=y8&&cr("%Object.defineProperty%",!0);if(Rn)try{Rn({},"a",{value:1})}catch{Rn=!1}var T8=cr("%SyntaxError%"),Jt=cr("%TypeError%"),Gi=lr,k8=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Jt("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Jt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Jt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Jt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Jt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Jt("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,c=!!Gi&&Gi(e,t);if(Rn)Rn(e,t,{configurable:o===null&&c?c.configurable:!o,enumerable:s===null&&c?c.enumerable:!s,value:n,writable:a===null&&c?c.writable:!a});else if(u||!s&&!a&&!o)e[t]=n;else throw new T8("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zl=yn,qi=k8,b8=Wl(),$i=lr,Hi=Zl("%TypeError%"),S8=Zl("%Math.floor%"),E8=function(e,t){if(typeof e!="function")throw new Hi("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||S8(t)!==t)throw new Hi("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],s=!0,a=!0;if("length"in e&&$i){var o=$i(e,"length");o&&!o.configurable&&(s=!1),o&&!o.writable&&(a=!1)}return(s||a||!n)&&(b8?qi(e,"length",t,!0,!0):qi(e,"length",t)),e};(function(e){var t=Ql,n=yn,s=E8,a=n("%TypeError%"),o=n("%Function.prototype.apply%"),u=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||t.call(u,o),d=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(d)try{d({},"a",{value:1})}catch{d=null}e.exports=function(T){if(typeof T!="function")throw new a("a function is required");var y=c(t,u,arguments);return s(y,1+f(0,T.length-(arguments.length-1)),!0)};var g=function(){return c(t,o,arguments)};d?d(e.exports,"apply",{value:g}):e.exports.apply=g})(Kl);var Jl=Kl.exports,Xl=yn,ec=Jl,v8=ec(Xl("String.prototype.indexOf")),tc=function(e,t){var n=Xl(e,!!t);return typeof n=="function"&&v8(e,".prototype.")>-1?ec(n):n},_8=or(),w8=tc,vs=w8("Object.prototype.toString"),va=function(e){return _8&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:vs(e)==="[object Arguments]"},nc=function(e){return va(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&vs(e)!=="[object Array]"&&vs(e.callee)==="[object Function]"},A8=function(){return va(arguments)}();va.isLegacyArguments=nc;var R8=A8?va:nc,C8=Object.prototype.toString,I8=Function.prototype.toString,N8=/^\s*(?:function)?\*/,ac=or(),za=Object.getPrototypeOf,O8=function(){if(!ac)return!1;try{return Function("return function*() {}")()}catch{}},Qa,L8=function(e){if(typeof e!="function")return!1;if(N8.test(I8.call(e)))return!0;if(!ac){var t=C8.call(e);return t==="[object GeneratorFunction]"}if(!za)return!1;if(typeof Qa>"u"){var n=O8();Qa=n?za(n):!1}return za(e)===Qa},sc=Function.prototype.toString,nn=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,_s,Yn;if(typeof nn=="function"&&typeof Object.defineProperty=="function")try{_s=Object.defineProperty({},"length",{get:function(){throw Yn}}),Yn={},nn(function(){throw 42},null,_s)}catch(e){e!==Yn&&(nn=null)}else nn=null;var x8=/^\s*class\b/,ws=function(e){try{var t=sc.call(e);return x8.test(t)}catch{return!1}},Ya=function(e){try{return ws(e)?!1:(sc.call(e),!0)}catch{return!1}},Kn=Object.prototype.toString,M8="[object Object]",B8="[object Function]",P8="[object GeneratorFunction]",U8="[object HTMLAllCollection]",F8="[object HTML document.all class]",D8="[object HTMLCollection]",V8=typeof Symbol=="function"&&!!Symbol.toStringTag,j8=!(0 in[,]),As=function(){return!1};if(typeof document=="object"){var G8=document.all;Kn.call(G8)===Kn.call(document.all)&&(As=function(e){if((j8||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=Kn.call(e);return(t===U8||t===F8||t===D8||t===M8)&&e("")==null}catch{}return!1})}var q8=nn?function(e){if(As(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{nn(e,null,_s)}catch(t){if(t!==Yn)return!1}return!ws(e)&&Ya(e)}:function(e){if(As(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(V8)return Ya(e);if(ws(e))return!1;var t=Kn.call(e);return t!==B8&&t!==P8&&!/^\[object HTML/.test(t)?!1:Ya(e)},$8=q8,H8=Object.prototype.toString,rc=Object.prototype.hasOwnProperty,z8=function(e,t,n){for(var s=0,a=e.length;s<a;s++)rc.call(e,s)&&(n==null?t(e[s],s,e):t.call(n,e[s],s,e))},Q8=function(e,t,n){for(var s=0,a=e.length;s<a;s++)n==null?t(e.charAt(s),s,e):t.call(n,e.charAt(s),s,e)},Y8=function(e,t,n){for(var s in e)rc.call(e,s)&&(n==null?t(e[s],s,e):t.call(n,e[s],s,e))},K8=function(e,t,n){if(!$8(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),H8.call(e)==="[object Array]"?z8(e,t,s):typeof e=="string"?Q8(e,t,s):Y8(e,t,s)},W8=K8,Ka=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Z8=typeof globalThis>"u"?vl:globalThis,J8=function(){for(var e=[],t=0;t<Ka.length;t++)typeof Z8[Ka[t]]=="function"&&(e[e.length]=Ka[t]);return e},ra=W8,X8=J8,zi=Jl,ur=tc,Wn=lr,e9=ur("Object.prototype.toString"),ic=or(),Qi=typeof globalThis>"u"?vl:globalThis,Rs=X8(),mr=ur("String.prototype.slice"),Wa=Object.getPrototypeOf,t9=ur("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},ia={__proto__:null};ic&&Wn&&Wa?ra(Rs,function(e){var t=new Qi[e];if(Symbol.toStringTag in t){var n=Wa(t),s=Wn(n,Symbol.toStringTag);if(!s){var a=Wa(n);s=Wn(a,Symbol.toStringTag)}ia["$"+e]=zi(s.get)}}):ra(Rs,function(e){var t=new Qi[e],n=t.slice||t.set;n&&(ia["$"+e]=zi(n))});var n9=function(e){var t=!1;return ra(ia,function(n,s){if(!t)try{"$"+n(e)===s&&(t=mr(s,1))}catch{}}),t},a9=function(e){var t=!1;return ra(ia,function(n,s){if(!t)try{n(e),t=mr(s,1)}catch{}}),t},oc=function(e){if(!e||typeof e!="object")return!1;if(!ic){var t=mr(e9(e),8,-1);return t9(Rs,t)>-1?t:t!=="Object"?!1:a9(e)}return Wn?n9(e):null},s9=oc,r9=function(e){return!!s9(e)};(function(e){var t=R8,n=L8,s=oc,a=r9;function o(M){return M.call.bind(M)}var u=typeof BigInt<"u",c=typeof Symbol<"u",d=o(Object.prototype.toString),f=o(Number.prototype.valueOf),g=o(String.prototype.valueOf),T=o(Boolean.prototype.valueOf);if(u)var y=o(BigInt.prototype.valueOf);if(c)var b=o(Symbol.prototype.valueOf);function A(M,Rt){if(typeof M!="object")return!1;try{return Rt(M),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=a;function R(M){return typeof Promise<"u"&&M instanceof Promise||M!==null&&typeof M=="object"&&typeof M.then=="function"&&typeof M.catch=="function"}e.isPromise=R;function N(M){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(M):a(M)||L(M)}e.isArrayBufferView=N;function _(M){return s(M)==="Uint8Array"}e.isUint8Array=_;function I(M){return s(M)==="Uint8ClampedArray"}e.isUint8ClampedArray=I;function P(M){return s(M)==="Uint16Array"}e.isUint16Array=P;function U(M){return s(M)==="Uint32Array"}e.isUint32Array=U;function B(M){return s(M)==="Int8Array"}e.isInt8Array=B;function V(M){return s(M)==="Int16Array"}e.isInt16Array=V;function D(M){return s(M)==="Int32Array"}e.isInt32Array=D;function $(M){return s(M)==="Float32Array"}e.isFloat32Array=$;function ee(M){return s(M)==="Float64Array"}e.isFloat64Array=ee;function ue(M){return s(M)==="BigInt64Array"}e.isBigInt64Array=ue;function ce(M){return s(M)==="BigUint64Array"}e.isBigUint64Array=ce;function ke(M){return d(M)==="[object Map]"}ke.working=typeof Map<"u"&&ke(new Map);function de(M){return typeof Map>"u"?!1:ke.working?ke(M):M instanceof Map}e.isMap=de;function se(M){return d(M)==="[object Set]"}se.working=typeof Set<"u"&&se(new Set);function pe(M){return typeof Set>"u"?!1:se.working?se(M):M instanceof Set}e.isSet=pe;function De(M){return d(M)==="[object WeakMap]"}De.working=typeof WeakMap<"u"&&De(new WeakMap);function rt(M){return typeof WeakMap>"u"?!1:De.working?De(M):M instanceof WeakMap}e.isWeakMap=rt;function je(M){return d(M)==="[object WeakSet]"}je.working=typeof WeakSet<"u"&&je(new WeakSet);function Ae(M){return je(M)}e.isWeakSet=Ae;function Re(M){return d(M)==="[object ArrayBuffer]"}Re.working=typeof ArrayBuffer<"u"&&Re(new ArrayBuffer);function q(M){return typeof ArrayBuffer>"u"?!1:Re.working?Re(M):M instanceof ArrayBuffer}e.isArrayBuffer=q;function v(M){return d(M)==="[object DataView]"}v.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&v(new DataView(new ArrayBuffer(1),0,1));function L(M){return typeof DataView>"u"?!1:v.working?v(M):M instanceof DataView}e.isDataView=L;var F=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function H(M){return d(M)==="[object SharedArrayBuffer]"}function ie(M){return typeof F>"u"?!1:(typeof H.working>"u"&&(H.working=H(new F)),H.working?H(M):M instanceof F)}e.isSharedArrayBuffer=ie;function te(M){return d(M)==="[object AsyncFunction]"}e.isAsyncFunction=te;function z(M){return d(M)==="[object Map Iterator]"}e.isMapIterator=z;function X(M){return d(M)==="[object Set Iterator]"}e.isSetIterator=X;function ae(M){return d(M)==="[object Generator]"}e.isGeneratorObject=ae;function Me(M){return d(M)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Me;function Ve(M){return A(M,f)}e.isNumberObject=Ve;function be(M){return A(M,g)}e.isStringObject=be;function Se(M){return A(M,T)}e.isBooleanObject=Se;function kt(M){return u&&A(M,y)}e.isBigIntObject=kt;function qt(M){return c&&A(M,b)}e.isSymbolObject=qt;function it(M){return Ve(M)||be(M)||Se(M)||kt(M)||qt(M)}e.isBoxedPrimitive=it;function kn(M){return typeof Uint8Array<"u"&&(q(M)||ie(M))}e.isAnyArrayBuffer=kn,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(M){Object.defineProperty(e,M,{enumerable:!1,value:function(){throw new Error(M+" is not supported in userland")}})})})(Hl);var i9=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Cs={exports:{}};typeof Object.create=="function"?Cs.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Cs.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var o9=Cs.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function(v){for(var L=Object.keys(v),F={},H=0;H<L.length;H++)F[L[H]]=Object.getOwnPropertyDescriptor(v,L[H]);return F},n=/%[sdj%]/g;e.format=function(v){if(!B(v)){for(var L=[],F=0;F<arguments.length;F++)L.push(u(arguments[F]));return L.join(" ")}for(var F=1,H=arguments,ie=H.length,te=String(v).replace(n,function(ae){if(ae==="%%")return"%";if(F>=ie)return ae;switch(ae){case"%s":return String(H[F++]);case"%d":return Number(H[F++]);case"%j":try{return JSON.stringify(H[F++])}catch{return"[Circular]"}default:return ae}}),z=H[F];F<ie;z=H[++F])I(z)||!ee(z)?te+=" "+z:te+=" "+u(z);return te},e.deprecate=function(v,L){if(typeof W.process<"u"&&W.process.noDeprecation===!0)return v;if(typeof W.process>"u")return function(){return e.deprecate(v,L).apply(this,arguments)};var F=!1;function H(){if(!F){if(W.process.throwDeprecation)throw new Error(L);W.process.traceDeprecation?console.trace(L):console.error(L),F=!0}return v.apply(this,arguments)}return H};var s={},a=/^$/;if(W.process.env.NODE_DEBUG){var o=W.process.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+o+"$","i")}e.debuglog=function(v){if(v=v.toUpperCase(),!s[v])if(a.test(v)){var L=W.process.pid;s[v]=function(){var F=e.format.apply(e,arguments);console.error("%s %d: %s",v,L,F)}}else s[v]=function(){};return s[v]};function u(v,L){var F={seen:[],stylize:d};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),_(L)?F.showHidden=L:L&&e._extend(F,L),D(F.showHidden)&&(F.showHidden=!1),D(F.depth)&&(F.depth=2),D(F.colors)&&(F.colors=!1),D(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=c),g(F,v,F.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(v,L){var F=u.styles[L];return F?"\x1B["+u.colors[F][0]+"m"+v+"\x1B["+u.colors[F][1]+"m":v}function d(v,L){return v}function f(v){var L={};return v.forEach(function(F,H){L[F]=!0}),L}function g(v,L,F){if(v.customInspect&&L&&ke(L.inspect)&&L.inspect!==e.inspect&&!(L.constructor&&L.constructor.prototype===L)){var H=L.inspect(F,v);return B(H)||(H=g(v,H,F)),H}var ie=T(v,L);if(ie)return ie;var te=Object.keys(L),z=f(te);if(v.showHidden&&(te=Object.getOwnPropertyNames(L)),ce(L)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return y(L);if(te.length===0){if(ke(L)){var X=L.name?": "+L.name:"";return v.stylize("[Function"+X+"]","special")}if($(L))return v.stylize(RegExp.prototype.toString.call(L),"regexp");if(ue(L))return v.stylize(Date.prototype.toString.call(L),"date");if(ce(L))return y(L)}var ae="",Me=!1,Ve=["{","}"];if(N(L)&&(Me=!0,Ve=["[","]"]),ke(L)){var be=L.name?": "+L.name:"";ae=" [Function"+be+"]"}if($(L)&&(ae=" "+RegExp.prototype.toString.call(L)),ue(L)&&(ae=" "+Date.prototype.toUTCString.call(L)),ce(L)&&(ae=" "+y(L)),te.length===0&&(!Me||L.length==0))return Ve[0]+ae+Ve[1];if(F<0)return $(L)?v.stylize(RegExp.prototype.toString.call(L),"regexp"):v.stylize("[Object]","special");v.seen.push(L);var Se;return Me?Se=b(v,L,F,z,te):Se=te.map(function(kt){return A(v,L,F,z,kt,Me)}),v.seen.pop(),R(Se,ae,Ve)}function T(v,L){if(D(L))return v.stylize("undefined","undefined");if(B(L)){var F="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(F,"string")}if(U(L))return v.stylize(""+L,"number");if(_(L))return v.stylize(""+L,"boolean");if(I(L))return v.stylize("null","null")}function y(v){return"["+Error.prototype.toString.call(v)+"]"}function b(v,L,F,H,ie){for(var te=[],z=0,X=L.length;z<X;++z)je(L,String(z))?te.push(A(v,L,F,H,String(z),!0)):te.push("");return ie.forEach(function(ae){ae.match(/^\d+$/)||te.push(A(v,L,F,H,ae,!0))}),te}function A(v,L,F,H,ie,te){var z,X,ae;if(ae=Object.getOwnPropertyDescriptor(L,ie)||{value:L[ie]},ae.get?ae.set?X=v.stylize("[Getter/Setter]","special"):X=v.stylize("[Getter]","special"):ae.set&&(X=v.stylize("[Setter]","special")),je(H,ie)||(z="["+ie+"]"),X||(v.seen.indexOf(ae.value)<0?(I(F)?X=g(v,ae.value,null):X=g(v,ae.value,F-1),X.indexOf(`
17
+ `)>-1&&(te?X=X.split(`
18
+ `).map(function(Me){return" "+Me}).join(`
19
+ `).slice(2):X=`
20
+ `+X.split(`
21
+ `).map(function(Me){return" "+Me}).join(`
22
+ `))):X=v.stylize("[Circular]","special")),D(z)){if(te&&ie.match(/^\d+$/))return X;z=JSON.stringify(""+ie),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.slice(1,-1),z=v.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=v.stylize(z,"string"))}return z+": "+X}function R(v,L,F){var H=v.reduce(function(ie,te){return te.indexOf(`
23
+ `)>=0,ie+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return H>60?F[0]+(L===""?"":L+`
24
+ `)+" "+v.join(`,
25
+ `)+" "+F[1]:F[0]+L+" "+v.join(", ")+" "+F[1]}e.types=Hl;function N(v){return Array.isArray(v)}e.isArray=N;function _(v){return typeof v=="boolean"}e.isBoolean=_;function I(v){return v===null}e.isNull=I;function P(v){return v==null}e.isNullOrUndefined=P;function U(v){return typeof v=="number"}e.isNumber=U;function B(v){return typeof v=="string"}e.isString=B;function V(v){return typeof v=="symbol"}e.isSymbol=V;function D(v){return v===void 0}e.isUndefined=D;function $(v){return ee(v)&&se(v)==="[object RegExp]"}e.isRegExp=$,e.types.isRegExp=$;function ee(v){return typeof v=="object"&&v!==null}e.isObject=ee;function ue(v){return ee(v)&&se(v)==="[object Date]"}e.isDate=ue,e.types.isDate=ue;function ce(v){return ee(v)&&(se(v)==="[object Error]"||v instanceof Error)}e.isError=ce,e.types.isNativeError=ce;function ke(v){return typeof v=="function"}e.isFunction=ke;function de(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||typeof v=="symbol"||typeof v>"u"}e.isPrimitive=de,e.isBuffer=i9;function se(v){return Object.prototype.toString.call(v)}function pe(v){return v<10?"0"+v.toString(10):v.toString(10)}var De=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rt(){var v=new Date,L=[pe(v.getHours()),pe(v.getMinutes()),pe(v.getSeconds())].join(":");return[v.getDate(),De[v.getMonth()],L].join(" ")}e.log=function(){console.log("%s - %s",rt(),e.format.apply(e,arguments))},e.inherits=o9,e._extend=function(v,L){if(!L||!ee(L))return v;for(var F=Object.keys(L),H=F.length;H--;)v[F[H]]=L[F[H]];return v};function je(v,L){return Object.prototype.hasOwnProperty.call(v,L)}var Ae=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(v){if(typeof v!="function")throw new TypeError('The "original" argument must be of type Function');if(Ae&&v[Ae]){var L=v[Ae];if(typeof L!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(L,Ae,{value:L,enumerable:!1,writable:!1,configurable:!0}),L}function L(){for(var F,H,ie=new Promise(function(X,ae){F=X,H=ae}),te=[],z=0;z<arguments.length;z++)te.push(arguments[z]);te.push(function(X,ae){X?H(X):F(ae)});try{v.apply(this,te)}catch(X){H(X)}return ie}return Object.setPrototypeOf(L,Object.getPrototypeOf(v)),Ae&&Object.defineProperty(L,Ae,{value:L,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(L,t(v))},e.promisify.custom=Ae;function Re(v,L){if(!v){var F=new Error("Promise was rejected with a falsy value");F.reason=v,v=F}return L(v)}function q(v){if(typeof v!="function")throw new TypeError('The "original" argument must be of type Function');function L(){for(var F=[],H=0;H<arguments.length;H++)F.push(arguments[H]);var ie=F.pop();if(typeof ie!="function")throw new TypeError("The last argument must be of type Function");var te=this,z=function(){return ie.apply(te,arguments)};v.apply(this,F).then(function(X){W.process.nextTick(z.bind(null,null,X))},function(X){W.process.nextTick(Re.bind(null,X,z))})}return Object.setPrototypeOf(L,Object.getPrototypeOf(v)),Object.defineProperties(L,t(v)),L}e.callbackify=q})(Ea);const{inherits:l9,format:Za}=Ea;function Nt(e,t,n=Error){if(!e)throw new Error("Avvio error code must not be empty");if(!t)throw new Error("Avvio base error message must not be empty");function s(a,o,u){if(!new.target)return new s(a,o,u);Error.captureStackTrace(this,s),this.code=e,this.message=t,this.name="AvvioError",a&&o&&u?this.message=Za(t,a,o,u):a&&o?this.message=Za(t,a,o):a?this.message=Za(t,a):this.message=t}return s.prototype[Symbol.toStringTag]="Error",s.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},l9(s,n),s}var lc={createError:Nt,AVV_ERR_EXPOSE_ALREADY_DEFINED:Nt("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:Nt("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Nt("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Nt("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Nt("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Nt("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")},c9=function e(t,n,s){n===void 0&&(n=""),s||(s={});var a=function(d){var f={"│":"|","└":"`","├":"+","─":"-","┬":"-"};return s.unicode===!1?f[d]:d};typeof t=="string"&&(t={label:t});var o=t.nodes||[],u=(t.label||"").split(`
26
+ `),c=`
27
+ `+n+(o.length?a("│"):" ")+" ";return n+u.join(c)+`
28
+ `+o.map(function(d,f){var g=f===o.length-1,T=d.nodes&&d.nodes.length,y=n+(g?" ":a("│"))+" ";return n+a(g?"└":"├")+a("─")+a(T?"┬":"─")+" "+e(d,y,s).slice(n.length+2)}).join("")};const u9=c9,Yi=Symbol("avvio.TimeTree.untrackNode"),Ja=Symbol("avvio.TimeTree.trackNode"),Ki=Symbol("avvio.TimeTree.getParent"),Wi=Symbol("avvio.TimeTree.getNode"),Zi=Symbol("avvio.TimeTree.addNode");let m9=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Ja](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[Yi](e){this.tableId.delete(e.id);const t=this.tableLabel.get(e.label);if(t.id){this.tableLabel.delete(e.label);return}t.pop(),t.length===0&&this.tableLabel.delete(e.label)}[Ki](e){if(e===null)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]}[Wi](e){return this.tableId.get(e)}[Zi](e,t,n){if(e===null)return this.root={id:"root",label:t,start:n,nodes:[]},this[Ja](this.root),this.root.id;const s=this[Ki](e),a=`${t}-${Math.random()}`,o={id:a,parent:e,start:n,label:t,nodes:[]};return s.nodes.push(o),this[Ja](o),a}start(e,t,n=Date.now()){return this[Zi](e,t,n)}stop(e,t=Date.now()){const n=this[Wi](e);n&&(n.stop=t,n.diff=n.stop-n.start||0,this[Yi](n))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const e=n=>(n.label=`${n.label} ${n.diff} ms`,n.nodes.length>0&&(n.nodes=n.nodes.map(s=>e(s))),n),t=e(this.toJSON());return u9(t)}};var d9=m9,dr={exports:{}},Is={exports:{}},Xa,Ji;function p9(){if(Ji)return Xa;Ji=1;var e=1e3,t=e*60,n=t*60,s=n*24,a=s*7,o=s*365.25;Xa=function(g,T){T=T||{};var y=typeof g;if(y==="string"&&g.length>0)return u(g);if(y==="number"&&isFinite(g))return T.long?d(g):c(g);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(g))};function u(g){if(g=String(g),!(g.length>100)){var T=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(T){var y=parseFloat(T[1]),b=(T[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return y*o;case"weeks":case"week":case"w":return y*a;case"days":case"day":case"d":return y*s;case"hours":case"hour":case"hrs":case"hr":case"h":return y*n;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function c(g){var T=Math.abs(g);return T>=s?Math.round(g/s)+"d":T>=n?Math.round(g/n)+"h":T>=t?Math.round(g/t)+"m":T>=e?Math.round(g/e)+"s":g+"ms"}function d(g){var T=Math.abs(g);return T>=s?f(g,T,s,"day"):T>=n?f(g,T,n,"hour"):T>=t?f(g,T,t,"minute"):T>=e?f(g,T,e,"second"):g+" ms"}function f(g,T,y,b){var A=T>=y*1.5;return Math.round(g/y)+" "+b+(A?"s":"")}return Xa}function f9(e){n.debug=n,n.default=n,n.coerce=d,n.disable=o,n.enable=a,n.enabled=u,n.humanize=p9(),n.destroy=f,Object.keys(e).forEach(g=>{n[g]=e[g]}),n.names=[],n.skips=[],n.formatters={};function t(g){let T=0;for(let y=0;y<g.length;y++)T=(T<<5)-T+g.charCodeAt(y),T|=0;return n.colors[Math.abs(T)%n.colors.length]}n.selectColor=t;function n(g){let T,y=null,b,A;function R(...N){if(!R.enabled)return;const _=R,I=Number(new Date),P=I-(T||I);_.diff=P,_.prev=T,_.curr=I,T=I,N[0]=n.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let U=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(B,V)=>{if(B==="%%")return"%";U++;const D=n.formatters[V];if(typeof D=="function"){const $=N[U];B=D.call(_,$),N.splice(U,1),U--}return B}),n.formatArgs.call(_,N),(_.log||n.log).apply(_,N)}return R.namespace=g,R.useColors=n.useColors(),R.color=n.selectColor(g),R.extend=s,R.destroy=n.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(b!==n.namespaces&&(b=n.namespaces,A=n.enabled(g)),A),set:N=>{y=N}}),typeof n.init=="function"&&n.init(R),R}function s(g,T){const y=n(this.namespace+(typeof T>"u"?":":T)+g);return y.log=this.log,y}function a(g){n.save(g),n.namespaces=g,n.names=[],n.skips=[];let T;const y=(typeof g=="string"?g:"").split(/[\s,]+/),b=y.length;for(T=0;T<b;T++)y[T]&&(g=y[T].replace(/\*/g,".*?"),g[0]==="-"?n.skips.push(new RegExp("^"+g.slice(1)+"$")):n.names.push(new RegExp("^"+g+"$")))}function o(){const g=[...n.names.map(c),...n.skips.map(c).map(T=>"-"+T)].join(",");return n.enable(""),g}function u(g){if(g[g.length-1]==="*")return!0;let T,y;for(T=0,y=n.skips.length;T<y;T++)if(n.skips[T].test(g))return!1;for(T=0,y=n.names.length;T<y;T++)if(n.names[T].test(g))return!0;return!1}function c(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}function d(g){return g instanceof Error?g.stack||g.message:g}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var h9=f9;(function(e,t){t.formatArgs=s,t.save=a,t.load=o,t.useColors=n,t.storage=u(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;d.splice(1,0,f,"color: inherit");let g=0,T=0;d[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(g++,y==="%c"&&(T=g))}),d.splice(T,0,f)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function o(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof W.process<"u"&&"env"in W.process&&(d=W.process.env.DEBUG),d}function u(){try{return localStorage}catch{}}e.exports=h9(t);const{formatters:c}=e.exports;c.j=function(d){try{return JSON.stringify(d)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}})(Is,Is.exports);var cc=Is.exports;const g9=Bl,y9=$l.EventEmitter,T9=Ea.inherits,Ie=cc("avvio"),{AVV_ERR_READY_TIMEOUT:k9}=lc,es=Symbol.for("plugin-meta");function b9(e,t){return e[es]&&e[es].name?e[es].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
29
+ `).slice(0,2).map(n=>n.trim()).join(" -- ")}function S9(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function Tn(e,t,n,s,a){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=a===void 0?e._timeout:a,this.name=b9(t,n),this.isAfter=s,this.q=g9(e,E9,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}T9(Tn,y9);Tn.prototype.exec=function(e,t){const n=this.func;let s=!1;const a=this.name;if(this.parent._error&&!this.isAfter){Ie("skipping loading of plugin as parent errored and it is not an after",a),W.process.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(d){return Ie("override errored",a),t(d)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Ie("exec",a);let o;const u=d=>{if(s){Ie("loading complete",a);return}this._error=d,Ie(d?"exec errored":"exec completed",a),s=!0,o&&clearTimeout(o),t(d)};this.timeout>0&&(Ie("setting up timeout",a,this.timeout),o=setTimeout(function(){Ie("timed out",a),o=null;const d=new k9(a);d.fn=n,u(d)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const c=n(this.server,this.opts,u);c&&typeof c.then=="function"&&(Ie("exec: resolving promise",a),c.then(()=>W.process.nextTick(u),d=>W.process.nextTick(u,d)))};Tn.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,s)=>{this._error=n,this.q.pause(),n?(Ie("rejecting promise",this.name,n),this._promise.reject(n)):(Ie("resolving promise",this.name),this._promise.resolve()),this._promise=null,W.process.nextTick(s,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=S9(),t=this._promise.promise,this.server?e():this.on("start",e)),t};Tn.prototype.enqueue=function(e,t){Ie("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};Tn.prototype.finish=function(e,t){Ie("finish",this.name,e);const n=()=>{this.loaded||(Ie("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const s=()=>{if(Ie("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const a=()=>{Ie("wrap"),queueMicrotask(s)};this._promise.resolve(),this._promise.promise.then(a,a),this._promise=null}else n();else Ie("delayed",this.name),this.q.drain=()=>{Ie("drain",this.name),this.q.drain=v9,queueMicrotask(s)}};queueMicrotask(s),this.q.resume()};function E9(e,t){const n=this;W.process.nextTick(pr.bind(n),e,t)}function pr(e,t){if(typeof e.func.then=="function"){e.func.then(s=>{typeof s.default=="function"&&(s=s.default),e.func=s,pr.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,s=>{e.finish(s,a=>{this._current.shift(),t(a)})})}function v9(){}dr.exports=Tn;dr.exports.loadPlugin=pr;var _9=dr.exports;const Xi=Bl,w9=$l.EventEmitter,A9=Ea.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:ts,AVV_ERR_CALLBACK_NOT_FN:Cn,AVV_ERR_PLUGIN_NOT_VALID:R9,AVV_ERR_ROOT_PLG_BOOTED:C9,AVV_ERR_READY_TIMEOUT:I9}=lc,N9=d9,Ns=_9,pn=cc("avvio"),oa=Symbol("kAvvio"),ns=Symbol("kThenifyDoNotWrap");function O9(e,t,n){const s=t.expose||{},a=s.use||"use",o=s.after||"after",u=s.ready||"ready",c=s.onClose||"onClose",d=s.close||"close";if(e[a])throw new ts(a);if(e[o])throw new ts(o);if(e[u])throw new ts(u);e[a]=function(f,g){return n.use(f,g),this},Object.defineProperty(e,"then",{get:uc.bind(n)}),e[oa]=!0,e[o]=function(f){return typeof f!="function"?n._loadRegistered():(n.after(as(f,this)),this)},e[u]=function(f){if(f&&typeof f!="function")throw new Cn(u,typeof f);return n.ready(f?as(f,this):void 0)},e[c]=function(f){if(typeof f!="function")throw new Cn(c,typeof f);return n.onClose(P9(f,this)),this},e[d]=function(f){if(f&&typeof f!="function")throw new Cn(d,typeof f);return f?(n.close(as(f,this)),this):n.close()}}function we(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof we)){const s=new we(e,t,n);return e&&O9(e,t,s),s}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new N9,this._readyQ=Xi(this,mc,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=eo},this._closeQ=Xi(this,B9,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=eo},this._doStart=null,this._root=new Ns(this,L9.bind(this),t,!1,0),this._root.once("start",(s,a,o)=>{const u=this.pluginTree.start(null,a,o);this._root.once("loaded",(c,d,f)=>{this.pluginTree.stop(u,f)})}),Ns.loadPlugin.call(this,this._root,s=>{pn("root plugin ready");try{this.emit("preReady"),this._root=null}catch(a){s=s||this._error||a}if(s){if(this._error=s,this._readyQ.length()===0)throw s}else this.booted=!0;this._readyQ.resume()})}function L9(e,t,n){this._doStart=n,t.autostart&&this.start()}A9(we,w9);we.prototype.start=function(){return this.started=!0,W.process.nextTick(this._doStart),this};we.prototype.override=function(e,t,n){return e};function x9(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new R9(typeof e);return e}we.prototype[oa]=!0;we.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};we.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&W.process.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(we.prototype,"then",{get:uc});we.prototype._addPlugin=function(e,t,n){if(e=x9(e),t=t||{},this.booted)throw new C9;const s=this._current[0],a=new Ns(this,e,t,n);if(a.once("start",(o,u,c)=>{const d=this.pluginTree.start(s.name,u,c);a.once("loaded",(f,g,T)=>{this.pluginTree.stop(d,T)})}),s.loaded)throw new Error(a.name,s.name);return s.enqueue(a,o=>{o&&(this._error=o)}),a};we.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,s,a){mc.call(this,e,a)}return this};we.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};we.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new Cn("close",typeof e)}else t=new Promise(function(n,s){e=function(a){if(a)return s(a);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),W.process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};we.prototype.ready=function(e){if(e){if(typeof e!="function")throw new Cn("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(a),this.start();const s=this._current[0].server;function a(o,u,c){o?n(o):t(s),W.process.nextTick(c)}})};we.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};we.prototype.toJSON=function(){return this.pluginTree.toJSON()};function eo(){}function uc(){if(this.booted){pn("thenify returning null because we are already booted");return}if(this[ns]){this[ns]=!1;return}return pn("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[ns]=!0,e(this._server)),t)}function mc(e,t){const n=this._server,s=this._error;let a;if(this._error=null,e.length===0)this._error=s,a=e(),a&&!a[oa]&&typeof a.then=="function"?a.then(()=>W.process.nextTick(t),o=>W.process.nextTick(t,o)):W.process.nextTick(t);else if(e.length===1)a=e(s),a&&!a[oa]&&typeof a.then=="function"?a.then(()=>W.process.nextTick(t),o=>W.process.nextTick(t,o)):W.process.nextTick(t);else if(this._timeout===0){const o=u=>{this._error=u,t(this._error)};e.length===2?e(s,o):e(s,n,o)}else M9.call(this,e,s,n,t)}function M9(e,t,n,s){const a=e.name;pn("setting up ready timeout",a,this._timeout);let o=setTimeout(()=>{pn("timed out",a),o=null;const c=new I9(a);c.fn=e,this._error=c,s(c)},this._timeout);e.length===2?e(t,u.bind(this)):e(t,n,u.bind(this));function u(c){o&&(clearTimeout(o),this._error=c,s(this._error))}}function B9(e,t){const n=this._server,s=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let a;s?a=e(n):a=e(this._error),a&&typeof a.then=="function"?(pn("resolving close/onClose promise"),a.then(()=>W.process.nextTick(t),o=>W.process.nextTick(t,o))):W.process.nextTick(t)}else e.length===2?e(s?n:this._error,t):s?e(n,t):e(this._error,n,t)}function P9(e,t){return n.bind(t);function n(s,a){let o;e.length===0?(o=e(),o&&o.then?o.then(function(){W.process.nextTick(a)},a):W.process.nextTick(a)):e.length===1?(o=e(this),o&&o.then?o.then(function(){W.process.nextTick(a)},a):W.process.nextTick(a)):e(this,a)}}function as(e,t){return n.bind(t);function n(s,a){let o;e?e.length===0?(o=e(),o&&o.then?o.then(function(){W.process.nextTick(a,s)},a):W.process.nextTick(a,s)):e.length===1?(o=e(s),o&&o.then?o.then(function(){W.process.nextTick(a)},a):W.process.nextTick(a)):e.length===2?e(s,a):e(s,this,a):W.process.nextTick(a)}}sr.exports=we;sr.exports.express=function(e){return we(e,{expose:{use:"load"}})};var U9=sr.exports;const F9=T6(U9);function D9(e,t=!0,n=!0){const s=t?"https://grpc-web.streamlayer.io:443":"https://grpc-web.next.streamlayer.io:443",a=F9(Object.create({}),{autostart:!1});return a.use(X6),a.use(H6,{sdkKey:e,host:s}),a.use(J6),a.use(Z6),a.use(OT),a.use(TT),n&&a.after(async(o,u,c)=>{if(o)throw o;await u.sdk.initializeApp(),c()}),a.onClose(()=>{console.log("close")}),a}const V9=(e,t,n,s)=>{const[a,o]=Z.useState(null);return Z.useEffect(()=>{let u=!1;if(!e)return console.error("streamlayer sdk key should be provided"),o(d=>(d!==null&&typeof d.disableApp=="function"&&d.disableApp(),null)),()=>{u=!0};const c=D9(e,n,s);if(t)for(const d of t)c.use(d);return c.ready().then(d=>{u||o(d.sdk)}).catch(d=>console.log(d)),()=>{u=!0,c.close(function(d){if(d)throw d})}},[e,n]),a};var dc=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(dc||{});const fr=Z.createContext({status:0,sdk:null}),j9=({sdkKey:e,plugins:t,children:n,production:s=!0,autoEnable:a=!0})=>{const o=V9(e,t,s,a),u=Z.useMemo(()=>o?{sdk:o,status:2}:{status:1,sdk:null},[o]);return S.jsx(fr.Provider,{value:u,children:n})};const G9=({sdkKey:e,plugins:t,children:n,production:s=!0})=>S.jsx(j9,{sdkKey:e,plugins:t,production:s,autoEnable:!1,children:n}),q9=({children:e,overlays:t})=>{const{sdk:n,status:s}=Z.useContext(fr);if(s===dc.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return n?S.jsx("div",{className:"StreamLayerSDK",children:S.jsx(ao,{style:{height:"100%"},children:S.jsx(V2,{sdk:n,overlays:t,children:e})})}):e({})},pc=()=>{const{sdk:e}=Z.useContext(fr);return e},$9=({token:e,schema:t})=>{const n=pc();return Z.useEffect(()=>{e&&t&&n&&n.authorizationBypass(t,e)},[e,t,n]),null};var hr={},la=function(){return la=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},la.apply(this,arguments)},H9=function(){function e(t,n,s){var a=this;this.endVal=n,this.options=s,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){a.startTime||(a.startTime=o);var u=o-a.startTime;a.remaining=a.duration-u,a.useEasing?a.countDown?a.frameVal=a.startVal-a.easingFn(u,0,a.startVal-a.endVal,a.duration):a.frameVal=a.easingFn(u,a.startVal,a.endVal-a.startVal,a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(u/a.duration);var c=a.countDown?a.frameVal<a.endVal:a.frameVal>a.endVal;a.frameVal=c?a.endVal:a.frameVal,a.frameVal=Number(a.frameVal.toFixed(a.options.decimalPlaces)),a.printValue(a.frameVal),u<a.duration?a.rAF=requestAnimationFrame(a.count):a.finalEndVal!==null?a.update(a.finalEndVal):a.options.onCompleteCallback&&a.options.onCompleteCallback()},this.formatNumber=function(o){var u,c,d,f,g=o<0?"-":"";u=Math.abs(o).toFixed(a.options.decimalPlaces);var T=(u+="").split(".");if(c=T[0],d=T.length>1?a.options.decimal+T[1]:"",a.options.useGrouping){f="";for(var y=3,b=0,A=0,R=c.length;A<R;++A)a.options.useIndianSeparators&&A===4&&(y=2,b=1),A!==0&&b%y==0&&(f=a.options.separator+f),b++,f=c[R-A-1]+f;c=f}return a.options.numerals&&a.options.numerals.length&&(c=c.replace(/[0-9]/g,function(N){return a.options.numerals[+N]}),d=d.replace(/[0-9]/g,function(N){return a.options.numerals[+N]})),g+a.options.prefix+c+d+a.options.suffix},this.easeOutExpo=function(o,u,c,d){return c*(1-Math.pow(2,-10*o/d))*1024/1023+u},this.options=la(la({},this.defaults),s),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return a.handleScroll(a)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,s=t.el.getBoundingClientRect(),a=s.top+window.pageYOffset,o=s.top+s.height+window.pageYOffset;o<n&&o>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||a>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var s=this.countDown?1:-1;this.endVal=t+s*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var s=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,s):this.el.tagName==="INPUT"?this.el.value=s:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=s:this.el.innerHTML=s}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const z9=Object.freeze(Object.defineProperty({__proto__:null,CountUp:H9},Symbol.toStringTag,{value:"Module"})),Q9=Pc(z9);Object.defineProperty(hr,"__esModule",{value:!0});var ve=Z,Y9=Q9;function K9(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,a,o,u,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(s=o.call(n)).done)&&(c.push(s.value),c.length!==t);d=!0);}catch(g){f=!0,a=g}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw a}}return c}}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(s){W9(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function W9(e,t,n){return t=a4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Os.apply(this,arguments)}function Z9(e,t){if(e==null)return{};var n={},s=Object.keys(e),a,o;for(o=0;o<s.length;o++)a=s[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function fc(e,t){if(e==null)return{};var n=Z9(e,t),s,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}function J9(e,t){return X9(e)||K9(e,t)||e4(e,t)||t4()}function X9(e){if(Array.isArray(e))return e}function e4(e,t){if(e){if(typeof e=="string")return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}}function no(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function t4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a4(e){var t=n4(e,"string");return typeof t=="symbol"?t:String(t)}var s4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ve.useLayoutEffect:ve.useEffect;function ze(e){var t=ve.useRef(e);return s4(function(){t.current=e}),ve.useCallback(function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return t.current.apply(void 0,s)},[])}var r4=function(t,n){var s=n.decimal,a=n.decimals,o=n.duration,u=n.easingFn,c=n.end,d=n.formattingFn,f=n.numerals,g=n.prefix,T=n.separator,y=n.start,b=n.suffix,A=n.useEasing,R=n.useGrouping,N=n.useIndianSeparators,_=n.enableScrollSpy,I=n.scrollSpyDelay,P=n.scrollSpyOnce,U=n.plugin;return new Y9.CountUp(t,c,{startVal:y,duration:o,decimal:s,decimalPlaces:a,easingFn:u,formattingFn:d,numerals:f,separator:T,prefix:g,suffix:b,plugin:U,useEasing:A,useIndianSeparators:N,useGrouping:R,enableScrollSpy:_,scrollSpyDelay:I,scrollSpyOnce:P})},i4=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],o4={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},hc=function(t){var n=Object.fromEntries(Object.entries(t).filter(function(ee){var ue=J9(ee,2),ce=ue[1];return ce!==void 0})),s=ve.useMemo(function(){return ca(ca({},o4),n)},[t]),a=s.ref,o=s.startOnMount,u=s.enableReinitialize,c=s.delay,d=s.onEnd,f=s.onStart,g=s.onPauseResume,T=s.onReset,y=s.onUpdate,b=fc(s,i4),A=ve.useRef(),R=ve.useRef(),N=ve.useRef(!1),_=ze(function(){return r4(typeof a=="string"?a:a.current,b)}),I=ze(function(ee){var ue=A.current;if(ue&&!ee)return ue;var ce=_();return A.current=ce,ce}),P=ze(function(){var ee=function(){return I(!0).start(function(){d==null||d({pauseResume:U,reset:B,start:D,update:V})})};c&&c>0?R.current=setTimeout(ee,c*1e3):ee(),f==null||f({pauseResume:U,reset:B,update:V})}),U=ze(function(){I().pauseResume(),g==null||g({reset:B,start:D,update:V})}),B=ze(function(){I().el&&(R.current&&clearTimeout(R.current),I().reset(),T==null||T({pauseResume:U,start:D,update:V}))}),V=ze(function(ee){I().update(ee),y==null||y({pauseResume:U,reset:B,start:D})}),D=ze(function(){B(),P()}),$=ze(function(ee){o&&(ee&&B(),P())});return ve.useEffect(function(){N.current?u&&$(!0):(N.current=!0,$())},[u,N,$,c,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),ve.useEffect(function(){return function(){B()}},[B]),{start:D,pauseResume:U,reset:B,update:V,getCountUp:I}},l4=["className","redraw","containerProps","children","style"],c4=function(t){var n=t.className,s=t.redraw,a=t.containerProps,o=t.children,u=t.style,c=fc(t,l4),d=ve.useRef(null),f=ve.useRef(!1),g=hc(ca(ca({},c),{},{ref:d,startOnMount:typeof o!="function"||t.delay===0,enableReinitialize:!1})),T=g.start,y=g.reset,b=g.update,A=g.pauseResume,R=g.getCountUp,N=ze(function(){T()}),_=ze(function(U){t.preserveValue||y(),b(U)}),I=ze(function(){if(typeof t.children=="function"&&!(d.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}R()});ve.useEffect(function(){I()},[I]),ve.useEffect(function(){f.current&&_(t.end)},[t.end,_]);var P=s&&t;return ve.useEffect(function(){s&&f.current&&N()},[N,s,P]),ve.useEffect(function(){!s&&f.current&&N()},[N,s,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),ve.useEffect(function(){f.current=!0},[]),typeof o=="function"?o({countUpRef:d,start:T,reset:y,update:b,pauseResume:A,getCountUp:R}):ve.createElement("span",Os({className:n,ref:d,style:u},a),typeof t.start<"u"?R().formattingFn(t.start):"")},u4=hr.default=c4;hr.useCountUp=hc;const gc=({value:e=0,decimals:t,duration:n=1,preserveValue:s=!0,...a})=>{const[,o]=e.toString().split("."),u=t??((o==null?void 0:o.length)||0);return S.jsx(u4,{end:e,...a,duration:n,decimals:u,enableScrollSpy:!1,preserveValue:s})},m4=O("div")({name:"PointsContainer",class:"psiob9b",propsAsIs:!1}),d4=O("div")({name:"PointsIcon",class:"p1gqe4lh",propsAsIs:!1}),p4=()=>Ne,f4=O(p4())({name:"PointsSvg",class:"p15syg2y",propsAsIs:!0}),h4=O("div")({name:"PointsBody",class:"p12n4f2h",propsAsIs:!1}),g4=O("div")({name:"PointsTitle",class:"poqmx89",propsAsIs:!1}),y4=O("div")({name:"PointsValue",class:"prj9b3v",propsAsIs:!1}),T4=({points:e})=>S.jsxs(m4,{className:rs,children:[S.jsx(d4,{children:S.jsx(f4,{name:"icon-trophy"})}),S.jsxs(h4,{children:[S.jsx(g4,{children:"Total points"}),S.jsx(y4,{children:S.jsx(gc,{value:e})})]})]}),k4=({userSummary:e})=>{const[t,n]=Z.useState(0);return Z.useEffect(()=>{const s=e.subscribe(a=>{var o,u;(u=(o=a.data)==null?void 0:o.summary)!=null&&u.points&&n(a.data.summary.points)});return()=>{s()}},[e]),S.jsx(T4,{points:t})},b4=({sdk:e})=>{if(nt(e.sdkStore.status)!=="ready")return null;const t=e.getFeature(me.GAMES);return t?S.jsx(k4,{userSummary:t.userSummary.getStore()}):null},S4=()=>{const e=pc();return e?S.jsx("div",{className:"StreamLayerSDK",children:S.jsx(ao,{children:S.jsx(b4,{sdk:e})})}):null};exports.AutoSizer=Yo;exports.E=ss;exports.MastersStreamLayerProvider=G9;exports.MastersStreamLayerSDKReact=q9;exports.O=Ko;exports.PickHistoryStatus=Ro;exports.QuestionImages=fn;exports.QuestionStatus=Pe;exports.QuestionType=re;exports.StreamLayerLogin=$9;exports.StreamLayerSDKPoints=S4;exports.a=P2;exports.d=gc;exports.d$1=zs;exports.n=Wo;exports.n1=Ne;exports.o=zo;exports.r=Ts;exports.styled_default=O;exports.useStore=nt;exports.w=Qo;