@squadx_dev/brix-client-library 1.51.3 → 1.51.4
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.
- package/dist/chunk/{BRBbmrI4.es.js → BOY213m5.es.js} +12 -5
- package/dist/chunk/{BRBbmrI4.es.js.map → BOY213m5.es.js.map} +1 -1
- package/dist/chunk/{DbftcV35.cjs.js → Cdqd-vpy.cjs.js} +5 -4
- package/dist/chunk/{DbftcV35.cjs.js.map → Cdqd-vpy.cjs.js.map} +1 -1
- package/dist/chunk/{bG3R7ikc.es.js → CyI1rJfJ.es.js} +3 -3
- package/dist/chunk/{bG3R7ikc.es.js.map → CyI1rJfJ.es.js.map} +1 -1
- package/dist/chunk/{BQOwHozi.cjs.js → DkZ1BWlw.cjs.js} +2 -2
- package/dist/chunk/{BQOwHozi.cjs.js.map → DkZ1BWlw.cjs.js.map} +1 -1
- package/dist/component/PlayerUser/PlayerUser.d.ts +1 -1
- package/dist/component/index.cjs.js +1 -1
- package/dist/component/index.es.js +1 -1
- package/dist/umd/index.umd.js +4 -3
- package/package.json +1 -1
|
@@ -42,9 +42,10 @@ ${hs(n)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const
|
|
|
42
42
|
* https://github.com/lancedikson/bowser
|
|
43
43
|
* MIT License | (c) Dustin Diaz 2012-2015
|
|
44
44
|
* MIT License | (c) Denis Demchenko 2015-2019
|
|
45
|
-
*/class op{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Hu(e,t)}static parse(e){return new Hu(e).getResult()}static get BROWSER_MAP(){return ap}static get ENGINE_MAP(){return Mi}static get OS_MAP(){return Xt}static get PLATFORMS_MAP(){return At}}const lp=({serviceId:i,clientVersion:e})=>async()=>{var r,n,a,o,l;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?op.parse(window.navigator.userAgent):void 0,s=[["aws-sdk-js",e],["ua","2.0"],[`os/${((n=t==null?void 0:t.os)==null?void 0:n.name)||"other"}`,(a=t==null?void 0:t.os)==null?void 0:a.version],["lang/js"],["md/browser",`${((o=t==null?void 0:t.browser)==null?void 0:o.name)??"unknown"}_${((l=t==null?void 0:t.browser)==null?void 0:l.version)??"unknown"}`]];return i&&s.push([`api/${i}`,e]),s};var cp=function(){function i(){this.checksum=4294967295}return i.prototype.update=function(e){var t,s;try{for(var r=sx(e),n=r.next();!n.done;n=r.next()){var a=n.value;this.checksum=this.checksum>>>8^xx[(this.checksum^a)&255]}}catch(o){t={error:o}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(t)throw t.error}}return this},i.prototype.digest=function(){return(this.checksum^4294967295)>>>0},i}(),yx=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],xx=Xy(yx);class mn{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let s=7,r=Math.abs(Math.round(e));s>-1&&r>0;s--,r/=256)t[s]=r;return e<0&&ju(t),new mn(t)}valueOf(){const e=this.bytes.slice(0),t=e[0]&128;return t&&ju(e),parseInt(hs(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function ju(i){for(let e=0;e<8;e++)i[e]^=255;for(let e=7;e>-1&&(i[e]++,i[e]===0);e--);}class Sx{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const a=this.fromUtf8(n);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[n]))}const s=new Uint8Array(t.reduce((n,a)=>n+a.byteLength,0));let r=0;for(const n of t)s.set(n,r),r+=n.byteLength;return s}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const n=new DataView(new ArrayBuffer(3+e.value.byteLength));n.setUint8(0,6),n.setUint16(1,e.value.byteLength,!1);const a=new Uint8Array(n.buffer);return a.set(e.value,3),a;case"string":const o=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+o.byteLength));l.setUint8(0,7),l.setUint16(1,o.byteLength,!1);const u=new Uint8Array(l.buffer);return u.set(o,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(mn.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!_x.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(Mf(e.value.replace(/\-/g,"")),1),f}}parse(e){const t={};let s=0;for(;s<e.byteLength;){const r=e.getUint8(s++),n=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+s,r));switch(s+=r,e.getUint8(s++)){case 0:t[n]={type:zu,value:!0};break;case 1:t[n]={type:zu,value:!1};break;case 2:t[n]={type:Ex,value:e.getInt8(s++)};break;case 3:t[n]={type:bx,value:e.getInt16(s,!1)},s+=2;break;case 4:t[n]={type:Tx,value:e.getInt32(s,!1)},s+=4;break;case 5:t[n]={type:wx,value:new mn(new Uint8Array(e.buffer,e.byteOffset+s,8))},s+=8;break;case 6:const a=e.getUint16(s,!1);s+=2,t[n]={type:Ax,value:new Uint8Array(e.buffer,e.byteOffset+s,a)},s+=a;break;case 7:const o=e.getUint16(s,!1);s+=2,t[n]={type:Lx,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+s,o))},s+=o;break;case 8:t[n]={type:Cx,value:new Date(new mn(new Uint8Array(e.buffer,e.byteOffset+s,8)).valueOf())},s+=8;break;case 9:const l=new Uint8Array(e.buffer,e.byteOffset+s,16);s+=16,t[n]={type:Rx,value:`${hs(l.subarray(0,4))}-${hs(l.subarray(4,6))}-${hs(l.subarray(6,8))}-${hs(l.subarray(8,10))}-${hs(l.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var Ku;(function(i){i[i.boolTrue=0]="boolTrue",i[i.boolFalse=1]="boolFalse",i[i.byte=2]="byte",i[i.short=3]="short",i[i.integer=4]="integer",i[i.long=5]="long",i[i.byteArray=6]="byteArray",i[i.string=7]="string",i[i.timestamp=8]="timestamp",i[i.uuid=9]="uuid"})(Ku||(Ku={}));const zu="boolean",Ex="byte",bx="short",Tx="integer",wx="long",Ax="binary",Lx="string",Cx="timestamp",Rx="uuid",_x=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,up=4,Fi=up*2,Xi=4,Ix=Fi+Xi*2;function kx({byteLength:i,byteOffset:e,buffer:t}){if(i<Ix)throw new Error("Provided message too short to accommodate event stream message overhead");const s=new DataView(t,e,i),r=s.getUint32(0,!1);if(i!==r)throw new Error("Reported message length does not match received message length");const n=s.getUint32(up,!1),a=s.getUint32(Fi,!1),o=s.getUint32(i-Xi,!1),l=new cp().update(new Uint8Array(t,e,Fi));if(a!==l.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(t,e+Fi,i-(Fi+Xi))),o!==l.digest())throw new Error(`The message checksum (${l.digest()}) did not match the expected value of ${o}`);return{headers:new DataView(t,e+Fi+Xi,n),body:new Uint8Array(t,e+Fi+Xi+n,r-n-(Fi+Xi+Xi))}}class Px{constructor(e,t){this.headerMarshaller=new Sx(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){const s=this.headerMarshaller.format(e),r=s.byteLength+t.byteLength+16,n=new Uint8Array(r),a=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new cp;return a.setUint32(0,r,!1),a.setUint32(4,s.byteLength,!1),a.setUint32(8,o.update(n.subarray(0,8)).digest(),!1),n.set(s,12),n.set(t,s.byteLength+12),a.setUint32(r-4,o.update(n.subarray(8,r-4)).digest(),!1),n}decode(e){const{headers:t,body:s}=kx(e);return{headers:this.headerMarshaller.parse(t),body:s}}formatHeaders(e){return this.headerMarshaller.format(e)}}class Dx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream)yield this.options.decoder.decode(e)}}class Mx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Fx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);t!==void 0&&(yield t)}}}class Ox{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream)yield this.options.serializer(e)}}function Nx(i){let e=0,t=0,s=null,r=null;const n=o=>{if(typeof o!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+o);e=o,t=4,s=new Uint8Array(o),new DataView(s.buffer).setUint32(0,o,!1)},a=async function*(){const o=i[Symbol.asyncIterator]();for(;;){const{value:l,done:u}=await o.next();if(u){if(e)if(e===t)yield s;else throw new Error("Truncated event message received.");else return;return}const d=l.length;let f=0;for(;f<d;){if(!s){const v=d-f;r||(r=new Uint8Array(4));const y=Math.min(4-t,v);if(r.set(l.slice(f,f+y),t),t+=y,f+=y,t<4)break;n(new DataView(r.buffer).getUint32(0,!1)),r=null}const g=Math.min(e-t,d-f);s.set(l.slice(f,f+g),t),t+=g,f+=g,e&&e===t&&(yield s,s=null,e=0,t=0)}}};return{[Symbol.asyncIterator]:a}}function Bx(i,e){return async function(t){const{value:s}=t.headers[":message-type"];if(s==="error"){const r=new Error(t.headers[":error-message"].value||"UnknownError");throw r.name=t.headers[":error-code"].value,r}else if(s==="exception"){const r=t.headers[":exception-type"].value,n={[r]:t},a=await i(n);if(a.$unknown){const o=new Error(e(t.body));throw o.name=r,o}throw a[r]}else if(s==="event"){const r={[t.headers[":event-type"].value]:t},n=await i(r);return n.$unknown?void 0:n}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)}}let $x=class{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new Px(e,t),this.utfEncoder=e}deserialize(e,t){const s=Nx(e);return new Fx({messageStream:new Dx({inputStream:s,decoder:this.eventStreamCodec}),deserializer:Bx(t,this.utfEncoder)})}serialize(e,t){return new Mx({messageStream:new Ox({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};const Ux=i=>({[Symbol.asyncIterator]:async function*(){const e=i.getReader();try{for(;;){const{done:t,value:s}=await e.read();if(t)return;yield s}}finally{e.releaseLock()}}}),Gx=i=>{const e=i[Symbol.asyncIterator]();return new ReadableStream({async pull(t){const{done:s,value:r}=await e.next();if(s)return t.close();t.enqueue(r)}})};class Vx{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new $x({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const s=Hx(e)?Ux(e):e;return this.universalMarshaller.deserialize(s,t)}serialize(e,t){const s=this.universalMarshaller.serialize(e,t);return typeof ReadableStream=="function"?Gx(s):s}}const Hx=i=>typeof ReadableStream=="function"&&i instanceof ReadableStream,jx=i=>new Vx(i),hp=i=>()=>Promise.reject(i),Wu=typeof TextEncoder=="function"?new TextEncoder:null,dp=i=>{if(typeof i=="string"){if(Wu)return Wu.encode(i).byteLength;let e=i.length;for(let t=e-1;t>=0;t--){const s=i.charCodeAt(t);s>127&&s<=2047?e++:s>2047&&s<=65535&&(e+=2),s>=56320&&s<=57343&&t--}return e}else{if(typeof i.byteLength=="number")return i.byteLength;if(typeof i.size=="number")return i.size}throw new Error(`Body Length computation failed for ${i}`)},fp="required",Oe="type",ct="rules",ot="conditions",We="fn",qe="argv",gt="ref",vn="assign",Ks="url",zs="properties",Ws="headers",Kx=!0,sr="isSet",Ji="stringEquals",ko="aws.parseArn",Zi="arn",Qt="booleanEquals",is="endpoint",ut="tree",pt="error",Tr={[fp]:!1,[Oe]:"String"},qu={[fp]:!0,default:!1,[Oe]:"Boolean"},Po={[We]:"not",[qe]:[{[We]:sr,[qe]:[{[gt]:"Endpoint"}]}]},pp={[gt]:"Endpoint"},Jn={[We]:sr,[qe]:[{[gt]:"Region"}]},Zn={[We]:"aws.partition",[qe]:[{[gt]:"Region"}],[vn]:"PartitionResult"},Do={[We]:"not",[qe]:[{[We]:Ji,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"name"]},"aws-iso"]}]},ec={[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"name"]},Mo={[We]:"not",[qe]:[{[We]:Ji,[qe]:[ec,"aws-iso-b"]}]},Pa={[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsFIPS"]},ys={},gp={[pt]:"FIPS is enabled but this partition does not support FIPS",[Oe]:pt},mp={[pt]:"DualStack is enabled but this partition does not support DualStack",[Oe]:pt},Fo={[pt]:"Invalid ARN: Failed to parse ARN.",[Oe]:pt},Yu={[We]:Qt,[qe]:[!0,{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]}]},Xu=[{[gt]:"StreamARN"}],zx=[{[We]:sr,[qe]:[pp]}],Oo=[{[ot]:[{[We]:"isValidHostLabel",[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"accountId"]},!1]}],[ct]:[{[ot]:[{[We]:"isValidHostLabel",[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"region"]},!1]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"service"]},"kinesis"]}],[ct]:[{[ot]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"resourceId[0]"],[vn]:"arnType"},{[We]:"not",[qe]:[{[We]:Ji,[qe]:[{[gt]:"arnType"},""]}]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[{[gt]:"arnType"},"stream"]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[ec,"{arn#partition}"]}],[ct]:[{[ot]:[{[We]:sr,[qe]:[{[gt]:"OperationType"}]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]},{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[Pa,!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]},!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},{[pt]:"DualStack is enabled, but this partition does not support DualStack.",[Oe]:pt}],[Oe]:ut},{[pt]:"FIPS is enabled, but this partition does not support FIPS.",[Oe]:pt}],[Oe]:ut},{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[Pa,!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},gp],[Oe]:ut},{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]},!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},mp],[Oe]:ut},{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},{[pt]:"Operation Type is not set. Please contact service team for resolution.",[Oe]:pt}],[Oe]:ut},{[pt]:"Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: No ARN type specified",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Invalid region.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Invalid account id.",[Oe]:pt}],Wx=[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]},{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],qx=[{[We]:Qt,[qe]:[Pa,!0]}],Qu=[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]}],Ju=[{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],Zu=[{[gt]:"ConsumerARN"}],eh=[{[gt]:"ResourceARN"}],Yx={version:"1.0",parameters:{Region:Tr,UseDualStack:qu,UseFIPS:qu,Endpoint:Tr,StreamARN:Tr,OperationType:Tr,ConsumerARN:Tr,ResourceARN:Tr},[ct]:[{[ot]:[{[We]:sr,[qe]:Xu},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:Xu,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:[{[We]:sr,[qe]:Zu},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:Zu,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:[{[We]:sr,[qe]:eh},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:eh,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:zx,[ct]:[{[ot]:Qu,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[Oe]:pt},{[ot]:Ju,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[Oe]:pt},{endpoint:{[Ks]:pp,[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},{[ot]:[Jn],[ct]:[{[ot]:[Zn],[ct]:[{[ot]:Wx,[ct]:[{[ot]:[{[We]:Qt,[qe]:[Kx,Pa]},Yu],[ct]:[{endpoint:{[Ks]:"https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[Oe]:pt}],[Oe]:ut},{[ot]:Qu,[ct]:[{[ot]:qx,[ct]:[{[ot]:[{[We]:Ji,[qe]:[ec,"aws-us-gov"]}],endpoint:{[Ks]:"https://kinesis.{Region}.amazonaws.com",[zs]:ys,[Ws]:ys},[Oe]:is},{endpoint:{[Ks]:"https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},gp],[Oe]:ut},{[ot]:Ju,[ct]:[{[ot]:[Yu],[ct]:[{endpoint:{[Ks]:"https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},mp],[Oe]:ut},{endpoint:{[Ks]:"https://kinesis.{Region}.{PartitionResult#dnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut}],[Oe]:ut},{error:"Invalid Configuration: Missing Region",[Oe]:pt}]},Xx=Yx,Qx=(i,e={})=>df(Xx,{endpointParams:i,logger:e.logger});bn.aws=zl;const Jx=i=>({apiVersion:"2013-12-02",base64Decoder:(i==null?void 0:i.base64Decoder)??Za,base64Encoder:(i==null?void 0:i.base64Encoder)??Xl,disableHostPrefix:(i==null?void 0:i.disableHostPrefix)??!1,endpointProvider:(i==null?void 0:i.endpointProvider)??Qx,extensions:(i==null?void 0:i.extensions)??[],httpAuthSchemeProvider:(i==null?void 0:i.httpAuthSchemeProvider)??Ay,httpAuthSchemes:(i==null?void 0:i.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wf}],logger:(i==null?void 0:i.logger)??new ql,serviceId:(i==null?void 0:i.serviceId)??"Kinesis",urlParser:(i==null?void 0:i.urlParser)??wn,utf8Decoder:(i==null?void 0:i.utf8Decoder)??nr,utf8Encoder:(i==null?void 0:i.utf8Encoder)??Yl}),Zx=["in-region","cross-region","mobile","standard","legacy"],vp=({defaultsMode:i}={})=>Xv(async()=>{const e=typeof i=="function"?await i():i;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(eS()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Zx.join(", ")}, got ${e}`)}}),eS=()=>{var t,s;const i=typeof window<"u"&&((t=window==null?void 0:window.navigator)!=null&&t.userAgent)?op.parse(window.navigator.userAgent):void 0,e=(s=i==null?void 0:i.platform)==null?void 0:s.type;return e==="tablet"||e==="mobile"},tS=i=>{const e=vp(i),t=()=>e().then(Of),s=Jx(i);return{...s,...i,runtime:"browser",defaultsMode:e,bodyLengthChecker:(i==null?void 0:i.bodyLengthChecker)??dp,credentialDefaultProvider:(i==null?void 0:i.credentialDefaultProvider)??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(i==null?void 0:i.defaultUserAgentProvider)??lp({serviceId:s.serviceId,clientVersion:Wy.version}),eventStreamSerdeProvider:(i==null?void 0:i.eventStreamSerdeProvider)??jx,maxAttempts:(i==null?void 0:i.maxAttempts)??An,region:(i==null?void 0:i.region)??hp("Region is missing"),requestHandler:eo.create((i==null?void 0:i.requestHandler)??t),retryMode:(i==null?void 0:i.retryMode)??(async()=>(await t()).retryMode||Af),sha256:(i==null?void 0:i.sha256)??np,streamCollector:(i==null?void 0:i.streamCollector)??Pf,useDualstackEndpoint:(i==null?void 0:i.useDualstackEndpoint)??(()=>Promise.resolve(gf)),useFipsEndpoint:(i==null?void 0:i.useFipsEndpoint)??(()=>Promise.resolve(mf))}},yp=i=>{let e=async()=>{if(i.region===void 0)throw new Error("Region is missing from runtimeConfig");const t=i.region;return typeof t=="string"?t:t()};return{setRegion(t){e=t},region(){return e}}},xp=i=>({region:i.region()}),sS=i=>{const e=i.httpAuthSchemes;let t=i.httpAuthSchemeProvider,s=i.credentials;return{setHttpAuthScheme(r){const n=e.findIndex(a=>a.schemeId===r.schemeId);n===-1?e.push(r):e.splice(n,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){s=r},credentials(){return s}}},iS=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),ea=i=>i,rS=(i,e)=>{const t={...ea(yp(i)),...ea(Nf(i)),...ea(Jd(i)),...ea(sS(i))};return e.forEach(s=>s.configure(t)),{...i,...xp(t),...Bf(t),...Zd(t),...iS(t)}};class nS extends kf{constructor(...[e]){const t=tS(e||{}),s=Cy(t),r=rf(s),n=If(r),a=yf(n),o=a,l=Tf(o),u=Kv(l),d=Ly(u),f=rS(d,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(pf(this.config)),this.middlewareStack.use(Gf(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(tf(this.config)),this.middlewareStack.use(sf(this.config)),this.middlewareStack.use(wf(this.config,{httpAuthSchemeParametersProvider:Ty,identityProviderConfigProvider:async g=>new Hf({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(Vf(this.config))}destroy(){super.destroy()}}class Bt extends to{constructor(e){super(e),Object.setPrototypeOf(this,Bt.prototype)}}class tc extends Bt{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,tc.prototype)}}class sc extends Bt{constructor(e){super({name:"InvalidArgumentException",$fault:"client",...e}),this.name="InvalidArgumentException",this.$fault="client",Object.setPrototypeOf(this,sc.prototype)}}class ic extends Bt{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,ic.prototype)}}class rc extends Bt{constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,rc.prototype)}}class nc extends Bt{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,nc.prototype)}}class ac extends Bt{constructor(e){super({name:"ExpiredIteratorException",$fault:"client",...e}),this.name="ExpiredIteratorException",this.$fault="client",Object.setPrototypeOf(this,ac.prototype)}}class oc extends Bt{constructor(e){super({name:"ExpiredNextTokenException",$fault:"client",...e}),this.name="ExpiredNextTokenException",this.$fault="client",Object.setPrototypeOf(this,oc.prototype)}}class lc extends Bt{constructor(e){super({name:"KMSAccessDeniedException",$fault:"client",...e}),this.name="KMSAccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,lc.prototype)}}class cc extends Bt{constructor(e){super({name:"KMSDisabledException",$fault:"client",...e}),this.name="KMSDisabledException",this.$fault="client",Object.setPrototypeOf(this,cc.prototype)}}class uc extends Bt{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,uc.prototype)}}class hc extends Bt{constructor(e){super({name:"KMSNotFoundException",$fault:"client",...e}),this.name="KMSNotFoundException",this.$fault="client",Object.setPrototypeOf(this,hc.prototype)}}class dc extends Bt{constructor(e){super({name:"KMSOptInRequired",$fault:"client",...e}),this.name="KMSOptInRequired",this.$fault="client",Object.setPrototypeOf(this,dc.prototype)}}class fc extends Bt{constructor(e){super({name:"KMSThrottlingException",$fault:"client",...e}),this.name="KMSThrottlingException",this.$fault="client",Object.setPrototypeOf(this,fc.prototype)}}class pc extends Bt{constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,pc.prototype)}}class gc extends Bt{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,gc.prototype)}}var th;(function(i){i.visit=(e,t)=>e.SubscribeToShardEvent!==void 0?t.SubscribeToShardEvent(e.SubscribeToShardEvent):e.ResourceNotFoundException!==void 0?t.ResourceNotFoundException(e.ResourceNotFoundException):e.ResourceInUseException!==void 0?t.ResourceInUseException(e.ResourceInUseException):e.KMSDisabledException!==void 0?t.KMSDisabledException(e.KMSDisabledException):e.KMSInvalidStateException!==void 0?t.KMSInvalidStateException(e.KMSInvalidStateException):e.KMSAccessDeniedException!==void 0?t.KMSAccessDeniedException(e.KMSAccessDeniedException):e.KMSNotFoundException!==void 0?t.KMSNotFoundException(e.KMSNotFoundException):e.KMSOptInRequired!==void 0?t.KMSOptInRequired(e.KMSOptInRequired):e.KMSThrottlingException!==void 0?t.KMSThrottlingException(e.KMSThrottlingException):e.InternalFailureException!==void 0?t.InternalFailureException(e.InternalFailureException):t._(e.$unknown[0],e.$unknown[1])})(th||(th={}));const aS=async(i,e)=>{const t=CS("PutRecord");let s;return s=JSON.stringify(wS(i,e)),LS(e,t,"/",void 0,s)},oS=async(i,e)=>{if(i.statusCode>=300)return lS(i,e);const t=await Zl(i.body,e);let s={};return s=Pt(t),{$metadata:qt(i),...s}},lS=async(i,e)=>{const t={...i,body:await sp(i.body,e)},s=ip(i,t.body);switch(s){case"AccessDeniedException":case"com.amazonaws.kinesis#AccessDeniedException":throw await cS(t);case"InvalidArgumentException":case"com.amazonaws.kinesis#InvalidArgumentException":throw await dS(t);case"LimitExceededException":case"com.amazonaws.kinesis#LimitExceededException":throw await xS(t);case"ResourceInUseException":case"com.amazonaws.kinesis#ResourceInUseException":throw await ES(t);case"ResourceNotFoundException":case"com.amazonaws.kinesis#ResourceNotFoundException":throw await bS(t);case"ExpiredIteratorException":case"com.amazonaws.kinesis#ExpiredIteratorException":throw await uS(t);case"KMSAccessDeniedException":case"com.amazonaws.kinesis#KMSAccessDeniedException":throw await fS(t);case"KMSDisabledException":case"com.amazonaws.kinesis#KMSDisabledException":throw await pS(t);case"KMSInvalidStateException":case"com.amazonaws.kinesis#KMSInvalidStateException":throw await gS(t);case"KMSNotFoundException":case"com.amazonaws.kinesis#KMSNotFoundException":throw await mS(t);case"KMSOptInRequired":case"com.amazonaws.kinesis#KMSOptInRequired":throw await vS(t);case"KMSThrottlingException":case"com.amazonaws.kinesis#KMSThrottlingException":throw await yS(t);case"ProvisionedThroughputExceededException":case"com.amazonaws.kinesis#ProvisionedThroughputExceededException":throw await SS(t);case"ExpiredNextTokenException":case"com.amazonaws.kinesis#ExpiredNextTokenException":throw await hS(t);case"ValidationException":case"com.amazonaws.kinesis#ValidationException":throw await TS(t);default:const r=t.body;return AS({output:i,parsedBody:r,errorCode:s})}},cS=async(i,e)=>{const t=i.body,s=Pt(t),r=new tc({$metadata:qt(i),...s});return jt(r,t)},uS=async(i,e)=>{const t=i.body,s=Pt(t),r=new ac({$metadata:qt(i),...s});return jt(r,t)},hS=async(i,e)=>{const t=i.body,s=Pt(t),r=new oc({$metadata:qt(i),...s});return jt(r,t)},dS=async(i,e)=>{const t=i.body,s=Pt(t),r=new sc({$metadata:qt(i),...s});return jt(r,t)},fS=async(i,e)=>{const t=i.body,s=Pt(t),r=new lc({$metadata:qt(i),...s});return jt(r,t)},pS=async(i,e)=>{const t=i.body,s=Pt(t),r=new cc({$metadata:qt(i),...s});return jt(r,t)},gS=async(i,e)=>{const t=i.body,s=Pt(t),r=new uc({$metadata:qt(i),...s});return jt(r,t)},mS=async(i,e)=>{const t=i.body,s=Pt(t),r=new hc({$metadata:qt(i),...s});return jt(r,t)},vS=async(i,e)=>{const t=i.body,s=Pt(t),r=new dc({$metadata:qt(i),...s});return jt(r,t)},yS=async(i,e)=>{const t=i.body,s=Pt(t),r=new fc({$metadata:qt(i),...s});return jt(r,t)},xS=async(i,e)=>{const t=i.body,s=Pt(t),r=new ic({$metadata:qt(i),...s});return jt(r,t)},SS=async(i,e)=>{const t=i.body,s=Pt(t),r=new pc({$metadata:qt(i),...s});return jt(r,t)},ES=async(i,e)=>{const t=i.body,s=Pt(t),r=new rc({$metadata:qt(i),...s});return jt(r,t)},bS=async(i,e)=>{const t=i.body,s=Pt(t),r=new nc({$metadata:qt(i),...s});return jt(r,t)},TS=async(i,e)=>{const t=i.body,s=Pt(t),r=new gc({$metadata:qt(i),...s});return jt(r,t)},wS=(i,e)=>$f(i,{Data:e.base64Encoder,ExplicitHashKey:[],PartitionKey:[],SequenceNumberForOrdering:[],StreamARN:[],StreamName:[]}),qt=i=>({httpStatusCode:i.statusCode,requestId:i.headers["x-amzn-requestid"]??i.headers["x-amzn-request-id"]??i.headers["x-amz-request-id"],extendedRequestId:i.headers["x-amz-id-2"],cfId:i.headers["x-amz-cf-id"]}),AS=Ff(Bt),LS=async(i,e,t,s,r)=>{const{hostname:n,protocol:a="https",port:o,path:l}=await i.endpoint(),u={protocol:a,hostname:n,port:o,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+t:l+t,headers:e};return r!==void 0&&(u.body=r),new ns(u)};function CS(i){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Kinesis_20131202.${i}`}}class RS extends Ql.classBuilder().ep({...Ry,OperationType:{type:"staticContextParams",value:"data"},StreamARN:{type:"contextParams",name:"StreamARN"}}).m(function(e,t,s,r){return[Sf(s,this.serialize,this.deserialize),bf(s,e.getEndpointParameterInstructions())]}).s("Kinesis_20131202","PutRecord",{}).n("KinesisClient","PutRecordCommand").f(void 0,void 0).ser(aS).de(oS).build(){}function Sp(i){return Promise.all(Object.keys(i).reduce((e,t)=>{const s=i[t];return typeof s=="string"?e.push([t,s]):e.push(s().then(r=>[t,r])),e},[])).then(e=>e.reduce((t,[s,r])=>(t[s]=r,t),{}))}function _S(i){return async()=>{var o,l,u;(o=i.logger)==null||o.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:e,CognitoIdentityClient:t}=await Promise.resolve().then(()=>require("./BQOwHozi.cjs.js")),{Credentials:{AccessKeyId:s=IS(i.logger),Expiration:r,SecretKey:n=PS(i.logger),SessionToken:a}=kS(i.logger)}=await(i.client??new t(Object.assign({},i.clientConfig??{},{region:((l=i.clientConfig)==null?void 0:l.region)??((u=i.parentClientConfig)==null?void 0:u.region)}))).send(new e({CustomRoleArn:i.customRoleArn,IdentityId:i.identityId,Logins:i.logins?await Sp(i.logins):void 0}));return{identityId:i.identityId,accessKeyId:s,secretAccessKey:n,sessionToken:a,expiration:r}}}function IS(i){throw new Hr("Response from Amazon Cognito contained no access key ID",{logger:i})}function kS(i){throw new Hr("Response from Amazon Cognito contained no credentials",{logger:i})}function PS(i){throw new Hr("Response from Amazon Cognito contained no secret key",{logger:i})}const No="IdentityIds";class DS{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",t=>{const s=t.get(e);return new Promise(r=>{s.onerror=()=>r(null),s.onsuccess=()=>r(s.result?s.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",t=>{const s=t.delete(e);return new Promise((r,n)=>{s.onerror=()=>n(s.error),s.onsuccess=()=>r()})})}setItem(e,t){return this.withObjectStore("readwrite",s=>{const r=s.put({id:e,value:t});return new Promise((n,a)=>{r.onerror=()=>a(r.error),r.onsuccess=()=>n()})})}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise((t,s)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{s(e.error)},e.onblocked=()=>{s(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const r=e.result;r.onerror=()=>{s(new Error("Failed to create object store"))},r.createObjectStore(No,{keyPath:"id"})}})}withObjectStore(e,t){return this.getDb().then(s=>{const r=s.transaction(No,e);return r.oncomplete=()=>s.close(),new Promise((n,a)=>{r.onerror=()=>a(r.error),n(t(r.objectStore(No)))}).catch(n=>{throw s.close(),n})})}}class MS{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}}const FS=new MS;function OS(){return typeof self=="object"&&self.indexedDB?new DS:typeof window=="object"&&window.localStorage?window.localStorage:FS}function NS({accountId:i,cache:e=OS(),client:t,clientConfig:s,customRoleArn:r,identityPoolId:n,logins:a,userIdentifier:o=!a||Object.keys(a).length===0?"ANONYMOUS":void 0,logger:l,parentClientConfig:u}){l==null||l.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const d=o?`aws:cognito-identity-credentials:${n}:${o}`:void 0;let f=async()=>{const{GetIdCommand:g,CognitoIdentityClient:v}=await Promise.resolve().then(()=>require("./BQOwHozi.cjs.js")),y=t??new v(Object.assign({},s??{},{region:(s==null?void 0:s.region)??(u==null?void 0:u.region)}));let E=d&&await e.getItem(d);if(!E){const{IdentityId:b=BS(l)}=await y.send(new g({AccountId:i,IdentityPoolId:n,Logins:a?await Sp(a):void 0}));E=b,d&&Promise.resolve(e.setItem(d,E)).catch(()=>{})}return f=_S({client:y,customRoleArn:r,logins:a,identityId:E}),f()};return()=>f().catch(async g=>{throw d&&Promise.resolve(e.removeItem(d)).catch(()=>{}),g})}function BS(i){throw new Hr("Response from Amazon Cognito contained no identity ID",{logger:i})}const $S=async(i,e,t)=>({operation:Dn(e).operation,region:await yi(i.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function US(i){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:i.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ta(i){return{schemeId:"smithy.api#noAuth"}}const GS=i=>{const e=[];switch(i.operation){case"GetCredentialsForIdentity":{e.push(ta());break}case"GetId":{e.push(ta());break}case"GetOpenIdToken":{e.push(ta());break}case"UnlinkIdentity":{e.push(ta());break}default:e.push(US(i))}return e},VS=i=>({...tp(i)}),HS=i=>({...i,useDualstackEndpoint:i.useDualstackEndpoint??!1,useFipsEndpoint:i.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),jS={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},KS="@aws-sdk/client-cognito-identity",zS="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",WS="3.637.0",qS={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},YS="./dist-cjs/index.js",XS="./dist-types/index.d.ts",QS="./dist-es/index.js",JS=!1,ZS={"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},e1={"@aws-sdk/client-iam":"3.637.0","@tsconfig/node16":"16.1.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},t1={node:">=16.0.0"},s1={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},i1=["dist-*/**"],r1={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},n1="Apache-2.0",a1={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},o1="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",l1={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},c1={name:KS,description:zS,version:WS,scripts:qS,main:YS,types:XS,module:QS,sideEffects:JS,dependencies:ZS,devDependencies:e1,engines:t1,typesVersions:s1,files:i1,author:r1,license:n1,browser:a1,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:o1,repository:l1},Ep="required",Ys="fn",Xs="argv",jr="ref",sh=!0,ih="isSet",Cn="booleanEquals",wr="error",on="endpoint",hi="tree",mc="PartitionResult",rh={[Ep]:!1,type:"String"},nh={[Ep]:!0,default:!1,type:"Boolean"},ah={[jr]:"Endpoint"},bp={[Ys]:Cn,[Xs]:[{[jr]:"UseFIPS"},!0]},Tp={[Ys]:Cn,[Xs]:[{[jr]:"UseDualStack"},!0]},Gs={},oh={[Ys]:"getAttr",[Xs]:[{[jr]:mc},"supportsFIPS"]},lh={[Ys]:Cn,[Xs]:[!0,{[Ys]:"getAttr",[Xs]:[{[jr]:mc},"supportsDualStack"]}]},ch=[bp],uh=[Tp],hh=[{[jr]:"Region"}],u1={version:"1.0",parameters:{Region:rh,UseDualStack:nh,UseFIPS:nh,Endpoint:rh},rules:[{conditions:[{[Ys]:ih,[Xs]:[ah]}],rules:[{conditions:ch,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wr},{conditions:uh,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wr},{endpoint:{url:ah,properties:Gs,headers:Gs},type:on}],type:hi},{conditions:[{[Ys]:ih,[Xs]:hh}],rules:[{conditions:[{[Ys]:"aws.partition",[Xs]:hh,assign:mc}],rules:[{conditions:[bp,Tp],rules:[{conditions:[{[Ys]:Cn,[Xs]:[sh,oh]},lh],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wr}],type:hi},{conditions:ch,rules:[{conditions:[{[Ys]:Cn,[Xs]:[oh,sh]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"FIPS is enabled but this partition does not support FIPS",type:wr}],type:hi},{conditions:uh,rules:[{conditions:[lh],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"DualStack is enabled but this partition does not support DualStack",type:wr}],type:hi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi}],type:hi},{error:"Invalid Configuration: Missing Region",type:wr}]},h1=u1,d1=(i,e={})=>df(h1,{endpointParams:i,logger:e.logger});bn.aws=zl;const f1=i=>({apiVersion:"2014-06-30",base64Decoder:(i==null?void 0:i.base64Decoder)??Za,base64Encoder:(i==null?void 0:i.base64Encoder)??Xl,disableHostPrefix:(i==null?void 0:i.disableHostPrefix)??!1,endpointProvider:(i==null?void 0:i.endpointProvider)??d1,extensions:(i==null?void 0:i.extensions)??[],httpAuthSchemeProvider:(i==null?void 0:i.httpAuthSchemeProvider)??GS,httpAuthSchemes:(i==null?void 0:i.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wf},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Uv}],logger:(i==null?void 0:i.logger)??new ql,serviceId:(i==null?void 0:i.serviceId)??"Cognito Identity",urlParser:(i==null?void 0:i.urlParser)??wn,utf8Decoder:(i==null?void 0:i.utf8Decoder)??nr,utf8Encoder:(i==null?void 0:i.utf8Encoder)??Yl}),p1=i=>{const e=vp(i),t=()=>e().then(Of),s=f1(i);return{...s,...i,runtime:"browser",defaultsMode:e,bodyLengthChecker:(i==null?void 0:i.bodyLengthChecker)??dp,credentialDefaultProvider:(i==null?void 0:i.credentialDefaultProvider)??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(i==null?void 0:i.defaultUserAgentProvider)??lp({serviceId:s.serviceId,clientVersion:c1.version}),maxAttempts:(i==null?void 0:i.maxAttempts)??An,region:(i==null?void 0:i.region)??hp("Region is missing"),requestHandler:eo.create((i==null?void 0:i.requestHandler)??t),retryMode:(i==null?void 0:i.retryMode)??(async()=>(await t()).retryMode||Af),sha256:(i==null?void 0:i.sha256)??np,streamCollector:(i==null?void 0:i.streamCollector)??Pf,useDualstackEndpoint:(i==null?void 0:i.useDualstackEndpoint)??(()=>Promise.resolve(gf)),useFipsEndpoint:(i==null?void 0:i.useFipsEndpoint)??(()=>Promise.resolve(mf))}},g1=i=>{const e=i.httpAuthSchemes;let t=i.httpAuthSchemeProvider,s=i.credentials;return{setHttpAuthScheme(r){const n=e.findIndex(a=>a.schemeId===r.schemeId);n===-1?e.push(r):e.splice(n,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){s=r},credentials(){return s}}},m1=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),sa=i=>i,v1=(i,e)=>{const t={...sa(yp(i)),...sa(Nf(i)),...sa(Jd(i)),...sa(g1(i))};return e.forEach(s=>s.configure(t)),{...i,...xp(t),...Bf(t),...Zd(t),...m1(t)}};class wp extends kf{constructor(...[e]){const t=p1(e||{}),s=HS(t),r=rf(s),n=If(r),a=yf(n),o=a,l=Tf(o),u=VS(l),d=v1(u,(e==null?void 0:e.extensions)||[]);super(d),this.config=d,this.middlewareStack.use(pf(this.config)),this.middlewareStack.use(Gf(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(tf(this.config)),this.middlewareStack.use(sf(this.config)),this.middlewareStack.use(wf(this.config,{httpAuthSchemeParametersProvider:$S,identityProviderConfigProvider:async f=>new Hf({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(Vf(this.config))}destroy(){super.destroy()}}const dh={prod:{identityPoolId:"ap-northeast-2:719e14e9-badd-4b73-9496-39303c66cd62",streamName:"brixCloud_analysis_prod"},stage:{identityPoolId:"ap-northeast-2:1df47bbd-2ed8-4edd-9e1d-0474bc52f0af",streamName:"brixCloud_analysis_stage"},dev:{identityPoolId:"ap-northeast-2:1df47bbd-2ed8-4edd-9e1d-0474bc52f0af",streamName:"brixCloud_analysis_dev"}};class y1{constructor({identityPoolId:e,streamName:t}){this.data={ua:{s:17,a:6,g:2,o:this.getOS(),b:this.getBrowser()},ts:{tt:0,wt:0,ws:0},di:{},ii:{p:1}},this.loopId=null;const s=new URLSearchParams(window.location.search);this.client=new nS({region:"ap-northeast-2",credentials:NS({client:new wp({region:"ap-northeast-2"}),identityPoolId:e})}),this.streamName=t,this.data.um={s:s.get("utm_source")??void 0}}send(e){const t=JSON.stringify(e??this.data),s=new RS({Data:new TextEncoder().encode(t),PartitionKey:"partitionKey-"+Math.random(),StreamName:this.streamName});this.client.send(s)}sleep(e){return new Promise(t=>setTimeout(t,e))}interval(e,t){return new Promise(s=>{this.loopId=setInterval(()=>{t(e),s()},e)})}timeout(e,t){return new Promise(s=>{this.loopId=setTimeout(()=>{t(e),s()},e)})}getOS(){const e=window.navigator.userAgent.toLowerCase();let t="기타";return e.indexOf("windows")>=0?t="Windows":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0||e.indexOf("ipod")>=0?t="iOS":e.indexOf("mac")>=0?t="macOS":e.indexOf("android")>=0?t="Android":e.indexOf("linux")>=0&&(t="Linux"),["Windows","macOS","iOS","Android","Linux","기타"].indexOf(t)}getBrowser(){const e=window.navigator.userAgent.toLowerCase();let t="기타";return e.indexOf("edg")>=0?t="Edge":e.indexOf("chrome")>=0?t="Chrome":e.indexOf("safari")>=0?t="Safari":e.indexOf("firefox")>=0?t="Firefox":e.indexOf("trident")>=0&&(t="Internet Explorer"),["Chrome","Safari","Firefox","Internet Explorer","Edge","기타"].indexOf(t)}init(){this.data.ii.p=1}async start(){var t;if(!this.data.ty)return;if(this.loopId&&(clearTimeout(this.loopId),clearInterval(this.loopId)),this.data.ts.wt=new Date().getTime(),this.data.ty==="c"&&!this.data.di.iv){await this.sleep(500),this.stop(),this.init(),this.start();return}(t=window==null?void 0:window.__brix_console)==null||t.call(window,"entryTime",new Date(this.data.ts.wt).toLocaleString());const e=s=>{var n,a;s>1e3&&(this.data.ii.p=0),this.data.ii.i=s;const r=new Date().getTime();this.data.ts.tt=r,this.data.ts.ws=+((r-this.data.ts.wt)/1e3).toFixed(0),(n=window==null?void 0:window.__brix_console)==null||n.call(window,"watchingTime",this.data.ts.ws),(a=window==null?void 0:window.__brix_console)==null||a.call(window,"viewCount",{current:this.data.ii.p}),this.send()};await this.timeout(1e3,e),await this.timeout(3e3,e),await this.timeout(6e3,e),await this.interval(1e4,e)}stop(){this.loopId&&(clearTimeout(this.loopId),clearInterval(this.loopId))}sendAnalyze({like:e,comment:t,product:s,share:r,banner:n}){var o,l,u,d,f;const a={...this.data};e&&(a.cc={lk:e},(o=window==null?void 0:window.__brix_console)==null||o.call(window,"likeCount",{current:e})),t&&(a.cc={c:1},(l=window==null?void 0:window.__brix_console)==null||l.call(window,"commentCount",1)),r&&(a.cc={s:1},(u=window==null?void 0:window.__brix_console)==null||u.call(window,"shareCount",1)),s&&(a.pc={ip:s,tp:this.data.ts.wt},(d=window==null?void 0:window.__brix_console)==null||d.call(window,"productCount",1)),n&&(a.bc={ib:n,tb:this.data.ts.wt},(f=window==null?void 0:window.__brix_console)==null||f.call(window,"bannerCount",1)),this.send(a)}setUser(e,t){var s,r;this.data.di.iu=e,this.data.di.tu=t===0?"g":"m",(s=window==null?void 0:window.__brix_console)==null||s.call(window,"userId",e),(r=window==null?void 0:window.__brix_console)==null||r.call(window,"authType",t===0?"비회원":"회원"),this.stop(),this.init(),this.start()}setId(e){var t,s;this.data.ty&&(this.data.ty==="b"?(this.data.di.ib=e,delete this.data.di.is,delete this.data.di.icc,delete this.data.di.iugc):this.data.ty==="s"?(this.data.di.is=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.icc,delete this.data.di.iugc):this.data.ty==="c"?(this.data.di.icc=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.is,delete this.data.di.iugc):this.data.ty==="u"?(this.data.di.iugc=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.is,delete this.data.di.icc):this.data.ty==="l"&&(this.data.di.il=e,this.data.ii.s="vod"),(t=window==null?void 0:window.__brix_console)==null||t.call(window,"id",e),(s=this.data.di)!=null&&s.iu&&(this.stop(),this.init(),this.start()))}setClientId(e){var t;this.data.di.ic=e,(t=window==null?void 0:window.__brix_console)==null||t.call(window,"clientId",e)}setStatus(e){this.data.ii.s=e,e==="cancel"&&this.stop()}setType(e){e==="broadcast"?this.data.ty="b":e==="shorts"?this.data.ty="s":e==="channel"?this.data.ty="c":e==="library"?this.data.ty="l":e==="ugc"&&(this.data.ty="u")}setChannelVodId(e){this.data.di.iv=e,this.init()}setChannelScheduleId(e){this.data.di.ics=e}getAPIQuery(){const e=new Date().getTime(),t=+((e-this.data.ts.wt)/1e3).toFixed(0),s={tt:e,ws:t,wt:this.data.ts.wt,p:this.data.ii.p,s:this.data.ii.s};return this.data.ty==="c"?{...s,vodId:this.data.di.iv,ics:this.data.di.ics}:s}}const x1=fe.createContext(null);function S1({kinesis:i,children:e}){return Ne.jsx(x1.Provider,{value:i??null,children:e})}function E1({element:i,eventName:e,handler:t}){const s=fe.useRef();fe.useEffect(()=>{s.current=t},[t]),fe.useEffect(()=>{if(!(i&&i.addEventListener))return;const r=n=>{s.current&&s.current(n)};return i.addEventListener(e,r),()=>{i.removeEventListener(e,r)}},[e,i])}function fh(i=!1){const[e,t]=fe.useState(i);return[e,()=>t(r=>!r)]}function b1({onClick:i,onDoubleClick:e,time:t=250}){const s=fe.useRef(),r=fe.useRef(0),n=()=>{s.current&&(clearTimeout(s.current),s.current=void 0)};return fe.useCallback(o=>{r.current+=1,n(),s.current=setTimeout(()=>{r.current===1?i==null||i(o):r.current===2&&(e==null||e(o)),r.current=0},t)},[i,e,t])}function T1(i,e=500){const[t,s]=fe.useState(i);return fe.useEffect(()=>{let r;const n=()=>{s(i)};return(()=>{clearTimeout(r),r=setTimeout(n,e)})(),()=>clearTimeout(r)},[t,i,e]),[t,s]}function w1({ref:i,...e}){const[t,s]=fe.useState(!1);return fe.useEffect(()=>{const r=i==null?void 0:i.current;if(!r||!window.IntersectionObserver)return;const n=new IntersectionObserver(a=>{if(a.length>0){const o=a[0];s(o.isIntersecting)}},e);return n.observe(r),()=>{n.unobserve(r),n.disconnect()}},[]),t}fe.createContext(null);fe.forwardRef(function({overlayElement:e,onExit:t},s){const[r,n]=fe.useState(!1),a=fe.useCallback(()=>n(!1),[]);return fe.useImperativeHandle(s,()=>({close:a}),[a]),fe.useEffect(()=>{requestAnimationFrame(()=>{n(!0)})},[]),Ne.jsx(e,{isOpen:r,close:a,exit:t})});const A1={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){console&&console[i]&&console[i].apply(console,e)}};class Da{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||A1,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Da(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Da(this.logger,e)}}var Qs=new Da;let so=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const r=this.observers[s].get(t)||0;this.observers[s].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o.apply(o,[e,...s])})}};const ln=()=>{let i,e;const t=new Promise((s,r)=>{i=s,e=r});return t.resolve=i,t.reject=e,t},ph=i=>i==null?"":""+i,L1=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},C1=/###/g,gh=i=>i&&i.indexOf("###")>-1?i.replace(C1,"."):i,mh=i=>!i||typeof i=="string",yn=(i,e,t)=>{const s=typeof e!="string"?e:e.split(".");let r=0;for(;r<s.length-1;){if(mh(i))return{};const n=gh(s[r]);!i[n]&&t&&(i[n]=new t),Object.prototype.hasOwnProperty.call(i,n)?i=i[n]:i={},++r}return mh(i)?{}:{obj:i,k:gh(s[r])}},vh=(i,e,t)=>{const{obj:s,k:r}=yn(i,e,Object);if(s!==void 0||e.length===1){s[r]=t;return}let n=e[e.length-1],a=e.slice(0,e.length-1),o=yn(i,a,Object);for(;o.obj===void 0&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),o=yn(i,a,Object),o&&o.obj&&typeof o.obj[`${o.k}.${n}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${n}`]=t},R1=(i,e,t,s)=>{const{obj:r,k:n}=yn(i,e,Object);r[n]=r[n]||[],r[n].push(t)},Ma=(i,e)=>{const{obj:t,k:s}=yn(i,e);if(t)return t[s]},_1=(i,e,t)=>{const s=Ma(i,t);return s!==void 0?s:Ma(e,t)},Ap=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?typeof i[s]=="string"||i[s]instanceof String||typeof e[s]=="string"||e[s]instanceof String?t&&(i[s]=e[s]):Ap(i[s],e[s],t):i[s]=e[s]);return i},Ar=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var I1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const k1=i=>typeof i=="string"?i.replace(/[&<>"'\/]/g,e=>I1[e]):i;class P1{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const D1=[" ",",","?","!",";"],M1=new P1(20),F1=(i,e,t)=>{e=e||"",t=t||"";const s=D1.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(s.length===0)return!0;const r=M1.getRegExp(`(${s.map(a=>a==="?"?"\\?":a).join("|")})`);let n=!r.test(i);if(!n){const a=i.indexOf(t);a>0&&!r.test(i.substring(0,a))&&(n=!0)}return n},Tl=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return i[e];const s=e.split(t);let r=i;for(let n=0;n<s.length;){if(!r||typeof r!="object")return;let a,o="";for(let l=n;l<s.length;++l)if(l!==n&&(o+=t),o+=s[l],a=r[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<s.length-1)continue;n+=l-n+1;break}r=a}return r},Fa=i=>i&&i.indexOf("_")>0?i.replace("_","-"):i;class yh extends so{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],s&&(Array.isArray(s)?o.push(...s):typeof s=="string"&&n?o.push(...s.split(n)):o.push(s)));const l=Ma(this.data,o);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=o[0],t=o[1],s=o.slice(2).join(".")),l||!a||typeof s!="string"?l:Tl(this.data&&this.data[e]&&this.data[e][t],s,n)}addResource(e,t,s,r){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=[e,t];s&&(o=o.concat(a?s.split(a):s)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),vh(this.data,o,r),n.silent||this.emit("added",e,t,s,r)}addResources(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in s)(typeof s[n]=="string"||Array.isArray(s[n]))&&this.addResource(e,t,n,s[n],{silent:!0});r.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,r,n){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=s,s=t,t=o[1]),this.addNamespaces(t);let l=Ma(this.data,o)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?Ap(l,s,n):l={...l,...s},vh(this.data,o,l),a.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var Lp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,r){return i.forEach(n=>{this.processors[n]&&(e=this.processors[n].process(e,t,s,r))}),e}};const xh={};class Oa extends so{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),L1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qs.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return s&&s.res!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let n=t.ns||this.options.defaultNS||[];const a=s&&e.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!F1(e,s,r);if(a&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:n};const u=e.split(s);(s!==r||s===r&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),e=u.join(r)}return typeof n=="string"&&(n=[n]),{key:e,namespaces:n}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const U=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${U}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${U}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}const f=this.resolve(e,t);let g=f&&f.res;const v=f&&f.usedKey||a,y=f&&f.exactUsedKey||a,E=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject;if(F&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&b.indexOf(E)<0&&!(typeof w=="string"&&Array.isArray(g))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(f.res=U,f.usedParams=this.getUsedParamsDetails(t),f):U}if(n){const U=Array.isArray(g),N=U?[]:{},te=U?y:v;for(const j in g)if(Object.prototype.hasOwnProperty.call(g,j)){const re=`${te}${n}${j}`;N[j]=this.translate(re,{...t,joinArrays:!1,ns:o}),N[j]===re&&(N[j]=g[j])}g=N}}else if(F&&typeof w=="string"&&Array.isArray(g))g=g.join(w),g&&(g=this.extendTranslation(g,e,t,s));else{let U=!1,N=!1;const te=t.count!==void 0&&typeof t.count!="string",j=Oa.hasDefaultValue(t),re=te?this.pluralResolver.getSuffix(u,t.count,t):"",Q=t.ordinal&&te?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",le=te&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),se=le&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${re}`]||t[`defaultValue${Q}`]||t.defaultValue;!this.isValidLookup(g)&&j&&(U=!0,g=se),this.isValidLookup(g)||(N=!0,g=a);const de=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:g,be=j&&se!==g&&this.options.updateMissing;if(N||U||be){if(this.logger.log(be?"updateKey":"missingKey",u,l,a,be?se:g),n){const we=this.resolve(a,{...t,keySeparator:!1});we&&we.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Le=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let we=0;we<ue.length;we++)Le.push(ue[we]);else this.options.saveMissingTo==="all"?Le=this.languageUtils.toResolveHierarchy(t.lng||this.language):Le.push(t.lng||this.language);const he=(we,me,ye)=>{const Ve=j&&ye!==g?ye:de;this.options.missingKeyHandler?this.options.missingKeyHandler(we,l,me,Ve,be,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(we,l,me,Ve,be,t),this.emit("missingKey",we,l,me,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&te?Le.forEach(we=>{const me=this.pluralResolver.getSuffixes(we,t);le&&t[`defaultValue${this.options.pluralSeparator}zero`]&&me.indexOf(`${this.options.pluralSeparator}zero`)<0&&me.push(`${this.options.pluralSeparator}zero`),me.forEach(ye=>{he([we],a+ye,t[`defaultValue${ye}`]||se)})}):he(Le,a,se))}g=this.extendTranslation(g,e,t,f,s),N&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${l}:${a}`),(N||U)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,U?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(f.res=g,f.usedParams=this.getUsedParamsDetails(t),f):g}extendTranslation(e,t,s,r,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const u=typeof e=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const g=e.match(this.interpolator.nestingRegexp);d=g&&g.length}let f=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||r.usedLng,s),u){const g=e.match(this.interpolator.nestingRegexp),v=g&&g.length;d<v&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(s.lng=this.language||r.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return n&&n[0]===v[0]&&!s.context?(a.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):a.translate(...v,t)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,l=typeof o=="string"?[o]:o;return e!=null&&l&&l.length&&s.applyPostProcessor!==!1&&(e=Lp.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r,n,a,o;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),d=u.key;r=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const g=t.count!==void 0&&typeof t.count!="string",v=g&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),y=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",E=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(b=>{this.isValidLookup(s)||(o=b,!xh[`${E[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(xh[`${E[0]}-${b}`]=!0,this.logger.warn(`key "${r}" for languages "${E.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(w=>{if(this.isValidLookup(s))return;a=w;const F=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(F,d,w,b,t);else{let U;g&&(U=this.pluralResolver.getSuffix(w,t.count,t));const N=`${this.options.pluralSeparator}zero`,te=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(F.push(d+U),t.ordinal&&U.indexOf(te)===0&&F.push(d+U.replace(te,this.options.pluralSeparator)),v&&F.push(d+N)),y){const j=`${d}${this.options.contextSeparator}${t.context}`;F.push(j),g&&(F.push(j+U),t.ordinal&&U.indexOf(te)===0&&F.push(j+U.replace(te,this.options.pluralSeparator)),v&&F.push(j+N))}}let k;for(;k=F.pop();)this.isValidLookup(s)||(n=k,s=this.getResource(w,b,k,t))}))})}),{res:s,usedKey:r,exactUsedKey:n,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,s,r):this.resourceStore.getResource(e,t,s,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&typeof e.replace!="string";let r=s?e.replace:e;if(s&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!s){r={...r};for(const n of t)delete r[n]}return r}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}const Bo=i=>i.charAt(0).toUpperCase()+i.slice(1);class Sh{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qs.create("languageUtils")}getScriptPartFromCode(e){if(e=Fa(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Fa(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let s=e.split("-");return this.options.lowerCaseLng?s=s.map(r=>r.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=Bo(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=Bo(s[1].toLowerCase())),t.indexOf(s[2].toLowerCase())>-1&&(s[2]=Bo(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const r=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const r=this.getLanguagePartFromCode(s);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(n=>{if(n===r)return n;if(!(n.indexOf("-")<0&&r.indexOf("-")<0)&&(n.indexOf("-")>0&&r.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===r||n.indexOf(r)===0&&r.length>1))return n})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],n=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(e))):typeof e=="string"&&n(this.formatLanguageCode(e)),s.forEach(a=>{r.indexOf(a)<0&&n(this.formatLanguageCode(a))}),r}}let O1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N1={1:i=>+(i>1),2:i=>+(i!=1),3:i=>0,4:i=>i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2,5:i=>i==0?0:i==1?1:i==2?2:i%100>=3&&i%100<=10?3:i%100>=11?4:5,6:i=>i==1?0:i>=2&&i<=4?1:2,7:i=>i==1?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2,8:i=>i==1?0:i==2?1:i!=8&&i!=11?2:3,9:i=>+(i>=2),10:i=>i==1?0:i==2?1:i<7?2:i<11?3:4,11:i=>i==1||i==11?0:i==2||i==12?1:i>2&&i<20?2:3,12:i=>+(i%10!=1||i%100==11),13:i=>+(i!==0),14:i=>i==1?0:i==2?1:i==3?2:3,15:i=>i%10==1&&i%100!=11?0:i%10>=2&&(i%100<10||i%100>=20)?1:2,16:i=>i%10==1&&i%100!=11?0:i!==0?1:2,17:i=>i==1||i%10==1&&i%100!=11?0:1,18:i=>i==0?0:i==1?1:2,19:i=>i==1?0:i==0||i%100>1&&i%100<11?1:i%100>10&&i%100<20?2:3,20:i=>i==1?0:i==0||i%100>0&&i%100<20?1:2,21:i=>i%100==1?1:i%100==2?2:i%100==3||i%100==4?3:0,22:i=>i==1?0:i==2?1:(i<0||i>10)&&i%10==0?2:3};const B1=["v1","v2","v3"],$1=["v4"],Eh={zero:0,one:1,two:2,few:3,many:4,other:5},U1=()=>{const i={};return O1.forEach(e=>{e.lngs.forEach(t=>{i[t]={numbers:e.nr,plurals:N1[e.fc]}})}),i};class G1{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Qs.create("pluralResolver"),(!this.options.compatibilityJSON||$1.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=U1(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const s=Fa(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:s,type:r});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];const a=new Intl.PluralRules(s,{type:r});return this.pluralRulesCache[n]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(r=>`${t}${r}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((r,n)=>Eh[r]-Eh[n]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):s.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,s);return r?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const s=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[s];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const n=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?n():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!B1.includes(this.options.compatibilityJSON)}}const bh=function(i,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=_1(i,e,t);return!n&&r&&typeof t=="string"&&(n=Tl(i,t,s),n===void 0&&(n=Tl(e,t,s))),n},$o=i=>i.replace(/\$/g,"$$$$");class V1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:r,prefix:n,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:g,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:E,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:F}=e.interpolation;this.escape=t!==void 0?t:k1,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=n?Ar(n):a||"{{",this.suffix=o?Ar(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=g?Ar(g):v||Ar("$t("),this.nestingSuffix=y?Ar(y):E||Ar(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>t&&t.source===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,r){let n,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const w=bh(t,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,s,{...r,...t,interpolationkey:v}):w}const y=v.split(this.formatSeparator),E=y.shift().trim(),b=y.join(this.formatSeparator).trim();return this.format(bh(t,l,E,this.options.keySeparator,this.options.ignoreJSONStructure),b,s,{...r,...t,interpolationkey:E})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>$o(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?$o(this.escape(v)):$o(v)}].forEach(v=>{for(o=0;n=v.regex.exec(e);){const y=n[1].trim();if(a=u(y),a===void 0)if(typeof d=="function"){const b=d(e,n,r);a=typeof b=="string"?b:""}else if(r&&Object.prototype.hasOwnProperty.call(r,y))a="";else if(f){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=ph(a));const E=v.safeValue(a);if(e=e.replace(n[0],E),f?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=n[0].length):v.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,n,a;const o=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let g=`{${f[1]}`;l=f[0],g=this.interpolate(g,a);const v=g.match(/'/g),y=g.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(g=g.replace(/'/g,'"'));try{a=JSON.parse(g),u&&(a={...u,...a})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,E),`${l}${d}${g}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...s},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(f=>f.trim());r[1]=d.shift(),l=d,u=!0}if(n=t(o.call(this,r[1].trim(),a),a),n&&r[0]===e&&typeof n!="string")return n;typeof n!="string"&&(n=ph(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u&&(n=l.reduce((d,f)=>this.format(d,f,s.lng,{...s,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const H1=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const s=i.split("(");e=s[0].toLowerCase().trim();const r=s[1].substring(0,s[1].length-1);e==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},Lr=i=>{const e={};return(t,s,r)=>{let n=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(n={...n,[r.interpolationkey]:void 0});const a=s+JSON.stringify(n);let o=e[a];return o||(o=i(Fa(s),r),e[a]=o),o(t)}};class j1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qs.create("formatter"),this.options=e,this.formats={number:Lr((t,s)=>{const r=new Intl.NumberFormat(t,{...s});return n=>r.format(n)}),currency:Lr((t,s)=>{const r=new Intl.NumberFormat(t,{...s,style:"currency"});return n=>r.format(n)}),datetime:Lr((t,s)=>{const r=new Intl.DateTimeFormat(t,{...s});return n=>r.format(n)}),relativetime:Lr((t,s)=>{const r=new Intl.RelativeTimeFormat(t,{...s});return n=>r.format(n,s.range||"day")}),list:Lr((t,s)=>{const r=new Intl.ListFormat(t,{...s});return n=>r.format(n)})},this.init(e)}init(e){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Lr(t)}format(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(o=>o.indexOf(")")>-1)){const o=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,o)].join(this.formatSeparator)}return n.reduce((o,l)=>{const{formatName:u,formatOptions:d}=H1(l);if(this.formats[u]){let f=o;try{const g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},v=g.locale||g.lng||r.locale||r.lng||s;f=this.formats[u](o,v,{...d,...r,...g})}catch(g){this.logger.warn(g)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const K1=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class z1 extends so{constructor(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=Qs.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,r.backend,r)}queueLoad(e,t,s,r){const n={},a={},o={},l={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const g=`${u}|${f}`;!s.reload&&this.store.hasResourceBundle(u,f)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?a[g]===void 0&&(a[g]=!0):(this.state[g]=1,d=!1,a[g]===void 0&&(a[g]=!0),n[g]===void 0&&(n[g]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[u]=!0)}),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const r=e.split("|"),n=r[0],a=r[1];t&&this.emit("failedLoading",n,a,t),!t&&s&&this.store.addResourceBundle(n,a,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const o={};this.queue.forEach(l=>{R1(l.loaded,[n],a),K1(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:r,wait:n,callback:a});return}this.readingCalls++;const o=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,s,r+1,n*2,a)},n);return}a(u,d)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,t,o)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const n=this.queueLoad(e,t,s,r);if(!n.toLoad.length)return n.pending.length||r(),null;n.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),r=s[0],n=s[1];this.read(r,n,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${n} for language ${r} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${n} for language ${r}`,o),this.loaded(e,a,o)})}saveMissing(e,t,s,r,n){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,t,s,r,l):d=u(e,t,s,r),d&&typeof d.then=="function"?d.then(f=>o(null,f)).catch(o):o(null,d)}catch(d){o(d)}else u(e,t,s,r,o,l)}!e||!e[0]||this.store.addResource(e[0],t,s,r)}}}const Th=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),typeof i[1]=="string"&&(e.defaultValue=i[1]),typeof i[2]=="string"&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),wh=i=>(typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i),ia=()=>{},W1=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class Rn extends so{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=wh(e),this.services={},this.logger=Qs,this.modules={external:[]},W1(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Th();this.options={...r,...this.options,...wh(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const n=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Qs.init(n(this.modules.logger),this.options):Qs.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=j1);const f=new Sh(this.options);this.store=new yh(this.options.resources,this.options);const g=this.services;g.logger=Qs,g.resourceStore=this.store,g.languageUtils=f,g.pluralResolver=new G1(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=n(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new V1(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new z1(n(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(v){for(var y=arguments.length,E=new Array(y>1?y-1:0),b=1;b<y;b++)E[b-1]=arguments[b];e.emit(v,...E)}),this.modules.languageDetector&&(g.languageDetector=n(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=n(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Oa(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,E=new Array(y>1?y-1:0),b=1;b<y;b++)E[b-1]=arguments[b];e.emit(v,...E)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ia),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const l=ln(),u=()=>{const d=(f,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(g),s(f,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const n=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(n,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(o)})}else s(null)}reloadResources(e,t,s){const r=ln();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ia),this.services.backendConnector.reload(e,t,n=>{r.resolve(),s(n)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Lp.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const r=ln();this.emit("languageChanging",e);const n=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(n(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,s){var r=this;const n=function(a,o){let l;if(typeof o!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];l=r.options.overloadTranslationOptionHandler([a,o].concat(d))}else l={...o};l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||s||n.keyPrefix);const g=r.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(a)?v=a.map(y=>`${l.keyPrefix}${g}${y}`):v=l.keyPrefix?`${l.keyPrefix}${g}${a}`:a,r.t(v,l)};return typeof e=="string"?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=s,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,e)&&(!r||a(n,e)))}loadNamespaces(e,t){const s=ln();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{s.resolve(),t&&t(r)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ln();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],n=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return n.length?(this.options.preload=r.concat(n),this.loadResources(a=>{s.resolve(),t&&t(a)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new Sh(Th());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Rn(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},n=new Rn(r);return(e.debug!==void 0||e.prefix!==void 0)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(o=>{n[o]=this[o]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},s&&(n.store=new yh(this.store.data,r),n.services.resourceStore=n.store),n.translator=new Oa(n.services,r),n.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];n.emit(o,...u)}),n.init(r,t),n.translator.options=r,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Kt=Rn.createInstance();Kt.createInstance=Rn.createInstance;Kt.createInstance;Kt.dir;Kt.init;Kt.loadResources;Kt.reloadResources;Kt.use;Kt.changeLanguage;Kt.getFixedT;Kt.t;Kt.exists;Kt.setDefaultNamespace;Kt.hasLoadedNamespace;Kt.loadNamespaces;Kt.loadLanguages;function q1(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function _n(i){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(i)}function Y1(i,e){if(_n(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var s=t.call(i,e);if(_n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}function X1(i){var e=Y1(i,"string");return _n(e)=="symbol"?e:e+""}function Q1(i,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,X1(s.key),s)}}function J1(i,e,t){return e&&Q1(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var Cp=[],Z1=Cp.forEach,eE=Cp.slice;function tE(i){return Z1.call(eE.call(arguments,1),function(e){if(e)for(var t in e)i[t]===void 0&&(i[t]=e[t])}),i}var Ah=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,sE=function(e,t,s){var r=s||{};r.path=r.path||"/";var n=encodeURIComponent(t),a="".concat(e,"=").concat(n);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!Ah.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!Ah.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},Lh={create:function(e,t,s,r){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+s*60*1e3)),r&&(n.domain=r),document.cookie=sE(e,encodeURIComponent(t),n)},read:function(e){for(var t="".concat(e,"="),s=document.cookie.split(";"),r=0;r<s.length;r++){for(var n=s[r];n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return n.substring(t.length,n.length)}return null},remove:function(e){this.create(e,"",-1)}},iE={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var s=Lh.read(e.lookupCookie);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&Lh.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},rE={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var s=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=s.substring(1),n=r.split("&"),a=0;a<n.length;a++){var o=n[a].indexOf("=");if(o>0){var l=n[a].substring(0,o);l===e.lookupQuerystring&&(t=n[a].substring(o+1))}}}return t}},cn=null,Ch=function(){if(cn!==null)return cn;try{cn=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{cn=!1}return cn},nE={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Ch()){var s=window.localStorage.getItem(e.lookupLocalStorage);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Ch()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},un=null,Rh=function(){if(un!==null)return un;try{un=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{un=!1}return un},aE={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Rh()){var s=window.sessionStorage.getItem(e.lookupSessionStorage);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Rh()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},oE={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var s=0;s<navigator.languages.length;s++)t.push(navigator.languages[s]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},lE={name:"htmlTag",lookup:function(e){var t,s=e.htmlTag||(typeof document<"u"?document.documentElement:null);return s&&typeof s.getAttribute=="function"&&(t=s.getAttribute("lang")),t}},cE={name:"path",lookup:function(e){var t;if(typeof window<"u"){var s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(s instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof s[e.lookupFromPathIndex]!="string")return;t=s[e.lookupFromPathIndex].replace("/","")}else t=s[0].replace("/","")}return t}},uE={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,s=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(s)return s[t]}};function hE(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var Rp=function(){function i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q1(this,i),this.type="languageDetector",this.detectors={},this.init(e,t)}return J1(i,[{key:"init",value:function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=tE(s,this.options||{},hE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(n){return n.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(iE),this.addDetector(rE),this.addDetector(nE),this.addDetector(aE),this.addDetector(oE),this.addDetector(lE),this.addDetector(cE),this.addDetector(uE)}},{key:"addDetector",value:function(t){return this.detectors[t.name]=t,this}},{key:"detect",value:function(t){var s=this;t||(t=this.options.order);var r=[];return t.forEach(function(n){if(s.detectors[n]){var a=s.detectors[n].lookup(s.options);a&&typeof a=="string"&&(a=[a]),a&&(r=r.concat(a))}}),r=r.map(function(n){return s.options.convertDetectedLanguage(n)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,s){var r=this;s||(s=this.options.caches),s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||s.forEach(function(n){r.detectors[n]&&r.detectors[n].cacheUserLanguage(t,r.options)}))}}]),i}();Rp.type="languageDetector";const dE={en:{translation:{chapter:"chapter",close:"close",soldout:"soldeout",currency:"USD",more:"more",entrace:"entrance",comments:"comments",reply:"reply",send:"send",cancel1:"cancel",participate:"participate",participated:"participated",announcement:"announcement",login:"login",notice:"notice",report:"report",edit:"edit",benefit:"benefit",notification:"notification",setting:"setting",event:"event",term:"term",back:"back",quiz:"quiz",answer:"answer",confirm:"confirm",recent:"recent",small:"small",medium:"medium",large:"large",chat:"chat",background:"background",bold:"bold",share:"share",video:"video",fullscreen:"full screen",quality:"quality",auto:"auto",size:"size",delete:"delete",rehearsal:"rehearsal",live:"live",relive:"relive",converting:"converting",cancel:"cancel",ready:"ready",purchase_verification:"Purchase verification",live_comments:"Live comments",adult_verification:"Adult verification",change_view_mode:"Change view mode",enter_broadcast:"Enter broadcast",featured_products:"Featured products",view_reply:"View {{count}} replies",sentence:{"No Results Found":"No Results Found","people has joined":" and {{count}} people has joined","has joined":"has joined","Chat is paused":"Chat is paused","Chat is available":"Chat is available","Chat is unavailable":"Chat is unavailable","Chat messages cannot be sent":"Chat messages cannot be sent","Please enter number":"Please enter number","Please enter answer":"Please enter answer","Participation completed":"Participation completed","Stream Starting Soon":"Stream Starting Soon","Please enter your name":"Please enter your name","Please enter your nickname":"Please enter your nickname","Please enter your phonenumber":"Please enter your phonenumber","Consent for Personal Information":"Consent for Personal Information (Required)","Please enter the information":"To participate, please enter the information below","Reply has been raised":`Reply has been raised.
|
|
45
|
+
*/class op{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Hu(e,t)}static parse(e){return new Hu(e).getResult()}static get BROWSER_MAP(){return ap}static get ENGINE_MAP(){return Mi}static get OS_MAP(){return Xt}static get PLATFORMS_MAP(){return At}}const lp=({serviceId:i,clientVersion:e})=>async()=>{var r,n,a,o,l;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?op.parse(window.navigator.userAgent):void 0,s=[["aws-sdk-js",e],["ua","2.0"],[`os/${((n=t==null?void 0:t.os)==null?void 0:n.name)||"other"}`,(a=t==null?void 0:t.os)==null?void 0:a.version],["lang/js"],["md/browser",`${((o=t==null?void 0:t.browser)==null?void 0:o.name)??"unknown"}_${((l=t==null?void 0:t.browser)==null?void 0:l.version)??"unknown"}`]];return i&&s.push([`api/${i}`,e]),s};var cp=function(){function i(){this.checksum=4294967295}return i.prototype.update=function(e){var t,s;try{for(var r=sx(e),n=r.next();!n.done;n=r.next()){var a=n.value;this.checksum=this.checksum>>>8^xx[(this.checksum^a)&255]}}catch(o){t={error:o}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(t)throw t.error}}return this},i.prototype.digest=function(){return(this.checksum^4294967295)>>>0},i}(),yx=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],xx=Xy(yx);class mn{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let s=7,r=Math.abs(Math.round(e));s>-1&&r>0;s--,r/=256)t[s]=r;return e<0&&ju(t),new mn(t)}valueOf(){const e=this.bytes.slice(0),t=e[0]&128;return t&&ju(e),parseInt(hs(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function ju(i){for(let e=0;e<8;e++)i[e]^=255;for(let e=7;e>-1&&(i[e]++,i[e]===0);e--);}class Sx{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const a=this.fromUtf8(n);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[n]))}const s=new Uint8Array(t.reduce((n,a)=>n+a.byteLength,0));let r=0;for(const n of t)s.set(n,r),r+=n.byteLength;return s}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const n=new DataView(new ArrayBuffer(3+e.value.byteLength));n.setUint8(0,6),n.setUint16(1,e.value.byteLength,!1);const a=new Uint8Array(n.buffer);return a.set(e.value,3),a;case"string":const o=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+o.byteLength));l.setUint8(0,7),l.setUint16(1,o.byteLength,!1);const u=new Uint8Array(l.buffer);return u.set(o,3),u;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(mn.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!_x.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(Mf(e.value.replace(/\-/g,"")),1),f}}parse(e){const t={};let s=0;for(;s<e.byteLength;){const r=e.getUint8(s++),n=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+s,r));switch(s+=r,e.getUint8(s++)){case 0:t[n]={type:zu,value:!0};break;case 1:t[n]={type:zu,value:!1};break;case 2:t[n]={type:Ex,value:e.getInt8(s++)};break;case 3:t[n]={type:bx,value:e.getInt16(s,!1)},s+=2;break;case 4:t[n]={type:Tx,value:e.getInt32(s,!1)},s+=4;break;case 5:t[n]={type:wx,value:new mn(new Uint8Array(e.buffer,e.byteOffset+s,8))},s+=8;break;case 6:const a=e.getUint16(s,!1);s+=2,t[n]={type:Ax,value:new Uint8Array(e.buffer,e.byteOffset+s,a)},s+=a;break;case 7:const o=e.getUint16(s,!1);s+=2,t[n]={type:Lx,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+s,o))},s+=o;break;case 8:t[n]={type:Cx,value:new Date(new mn(new Uint8Array(e.buffer,e.byteOffset+s,8)).valueOf())},s+=8;break;case 9:const l=new Uint8Array(e.buffer,e.byteOffset+s,16);s+=16,t[n]={type:Rx,value:`${hs(l.subarray(0,4))}-${hs(l.subarray(4,6))}-${hs(l.subarray(6,8))}-${hs(l.subarray(8,10))}-${hs(l.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var Ku;(function(i){i[i.boolTrue=0]="boolTrue",i[i.boolFalse=1]="boolFalse",i[i.byte=2]="byte",i[i.short=3]="short",i[i.integer=4]="integer",i[i.long=5]="long",i[i.byteArray=6]="byteArray",i[i.string=7]="string",i[i.timestamp=8]="timestamp",i[i.uuid=9]="uuid"})(Ku||(Ku={}));const zu="boolean",Ex="byte",bx="short",Tx="integer",wx="long",Ax="binary",Lx="string",Cx="timestamp",Rx="uuid",_x=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,up=4,Fi=up*2,Xi=4,Ix=Fi+Xi*2;function kx({byteLength:i,byteOffset:e,buffer:t}){if(i<Ix)throw new Error("Provided message too short to accommodate event stream message overhead");const s=new DataView(t,e,i),r=s.getUint32(0,!1);if(i!==r)throw new Error("Reported message length does not match received message length");const n=s.getUint32(up,!1),a=s.getUint32(Fi,!1),o=s.getUint32(i-Xi,!1),l=new cp().update(new Uint8Array(t,e,Fi));if(a!==l.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(t,e+Fi,i-(Fi+Xi))),o!==l.digest())throw new Error(`The message checksum (${l.digest()}) did not match the expected value of ${o}`);return{headers:new DataView(t,e+Fi+Xi,n),body:new Uint8Array(t,e+Fi+Xi+n,r-n-(Fi+Xi+Xi))}}class Px{constructor(e,t){this.headerMarshaller=new Sx(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){const s=this.headerMarshaller.format(e),r=s.byteLength+t.byteLength+16,n=new Uint8Array(r),a=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new cp;return a.setUint32(0,r,!1),a.setUint32(4,s.byteLength,!1),a.setUint32(8,o.update(n.subarray(0,8)).digest(),!1),n.set(s,12),n.set(t,s.byteLength+12),a.setUint32(r-4,o.update(n.subarray(8,r-4)).digest(),!1),n}decode(e){const{headers:t,body:s}=kx(e);return{headers:this.headerMarshaller.parse(t),body:s}}formatHeaders(e){return this.headerMarshaller.format(e)}}class Dx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream)yield this.options.decoder.decode(e)}}class Mx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Fx{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);t!==void 0&&(yield t)}}}class Ox{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream)yield this.options.serializer(e)}}function Nx(i){let e=0,t=0,s=null,r=null;const n=o=>{if(typeof o!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+o);e=o,t=4,s=new Uint8Array(o),new DataView(s.buffer).setUint32(0,o,!1)},a=async function*(){const o=i[Symbol.asyncIterator]();for(;;){const{value:l,done:u}=await o.next();if(u){if(e)if(e===t)yield s;else throw new Error("Truncated event message received.");else return;return}const d=l.length;let f=0;for(;f<d;){if(!s){const v=d-f;r||(r=new Uint8Array(4));const y=Math.min(4-t,v);if(r.set(l.slice(f,f+y),t),t+=y,f+=y,t<4)break;n(new DataView(r.buffer).getUint32(0,!1)),r=null}const g=Math.min(e-t,d-f);s.set(l.slice(f,f+g),t),t+=g,f+=g,e&&e===t&&(yield s,s=null,e=0,t=0)}}};return{[Symbol.asyncIterator]:a}}function Bx(i,e){return async function(t){const{value:s}=t.headers[":message-type"];if(s==="error"){const r=new Error(t.headers[":error-message"].value||"UnknownError");throw r.name=t.headers[":error-code"].value,r}else if(s==="exception"){const r=t.headers[":exception-type"].value,n={[r]:t},a=await i(n);if(a.$unknown){const o=new Error(e(t.body));throw o.name=r,o}throw a[r]}else if(s==="event"){const r={[t.headers[":event-type"].value]:t},n=await i(r);return n.$unknown?void 0:n}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)}}let $x=class{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new Px(e,t),this.utfEncoder=e}deserialize(e,t){const s=Nx(e);return new Fx({messageStream:new Dx({inputStream:s,decoder:this.eventStreamCodec}),deserializer:Bx(t,this.utfEncoder)})}serialize(e,t){return new Mx({messageStream:new Ox({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};const Ux=i=>({[Symbol.asyncIterator]:async function*(){const e=i.getReader();try{for(;;){const{done:t,value:s}=await e.read();if(t)return;yield s}}finally{e.releaseLock()}}}),Gx=i=>{const e=i[Symbol.asyncIterator]();return new ReadableStream({async pull(t){const{done:s,value:r}=await e.next();if(s)return t.close();t.enqueue(r)}})};class Vx{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new $x({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const s=Hx(e)?Ux(e):e;return this.universalMarshaller.deserialize(s,t)}serialize(e,t){const s=this.universalMarshaller.serialize(e,t);return typeof ReadableStream=="function"?Gx(s):s}}const Hx=i=>typeof ReadableStream=="function"&&i instanceof ReadableStream,jx=i=>new Vx(i),hp=i=>()=>Promise.reject(i),Wu=typeof TextEncoder=="function"?new TextEncoder:null,dp=i=>{if(typeof i=="string"){if(Wu)return Wu.encode(i).byteLength;let e=i.length;for(let t=e-1;t>=0;t--){const s=i.charCodeAt(t);s>127&&s<=2047?e++:s>2047&&s<=65535&&(e+=2),s>=56320&&s<=57343&&t--}return e}else{if(typeof i.byteLength=="number")return i.byteLength;if(typeof i.size=="number")return i.size}throw new Error(`Body Length computation failed for ${i}`)},fp="required",Oe="type",ct="rules",ot="conditions",We="fn",qe="argv",gt="ref",vn="assign",Ks="url",zs="properties",Ws="headers",Kx=!0,sr="isSet",Ji="stringEquals",ko="aws.parseArn",Zi="arn",Qt="booleanEquals",is="endpoint",ut="tree",pt="error",Tr={[fp]:!1,[Oe]:"String"},qu={[fp]:!0,default:!1,[Oe]:"Boolean"},Po={[We]:"not",[qe]:[{[We]:sr,[qe]:[{[gt]:"Endpoint"}]}]},pp={[gt]:"Endpoint"},Jn={[We]:sr,[qe]:[{[gt]:"Region"}]},Zn={[We]:"aws.partition",[qe]:[{[gt]:"Region"}],[vn]:"PartitionResult"},Do={[We]:"not",[qe]:[{[We]:Ji,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"name"]},"aws-iso"]}]},ec={[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"name"]},Mo={[We]:"not",[qe]:[{[We]:Ji,[qe]:[ec,"aws-iso-b"]}]},Pa={[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsFIPS"]},ys={},gp={[pt]:"FIPS is enabled but this partition does not support FIPS",[Oe]:pt},mp={[pt]:"DualStack is enabled but this partition does not support DualStack",[Oe]:pt},Fo={[pt]:"Invalid ARN: Failed to parse ARN.",[Oe]:pt},Yu={[We]:Qt,[qe]:[!0,{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]}]},Xu=[{[gt]:"StreamARN"}],zx=[{[We]:sr,[qe]:[pp]}],Oo=[{[ot]:[{[We]:"isValidHostLabel",[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"accountId"]},!1]}],[ct]:[{[ot]:[{[We]:"isValidHostLabel",[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"region"]},!1]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"service"]},"kinesis"]}],[ct]:[{[ot]:[{[We]:"getAttr",[qe]:[{[gt]:Zi},"resourceId[0]"],[vn]:"arnType"},{[We]:"not",[qe]:[{[We]:Ji,[qe]:[{[gt]:"arnType"},""]}]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[{[gt]:"arnType"},"stream"]}],[ct]:[{[ot]:[{[We]:Ji,[qe]:[ec,"{arn#partition}"]}],[ct]:[{[ot]:[{[We]:sr,[qe]:[{[gt]:"OperationType"}]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]},{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[Pa,!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]},!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},{[pt]:"DualStack is enabled, but this partition does not support DualStack.",[Oe]:pt}],[Oe]:ut},{[pt]:"FIPS is enabled, but this partition does not support FIPS.",[Oe]:pt}],[Oe]:ut},{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[Pa,!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},gp],[Oe]:ut},{[ot]:[{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],[ct]:[{[ot]:[{[We]:Qt,[qe]:[{[We]:"getAttr",[qe]:[{[gt]:"PartitionResult"},"supportsDualStack"]},!0]}],[ct]:[{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},mp],[Oe]:ut},{[is]:{[Ks]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",[zs]:{},[Ws]:{}},[Oe]:is}],[Oe]:ut},{[pt]:"Operation Type is not set. Please contact service team for resolution.",[Oe]:pt}],[Oe]:ut},{[pt]:"Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: No ARN type specified",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Invalid region.",[Oe]:pt}],[Oe]:ut},{[pt]:"Invalid ARN: Invalid account id.",[Oe]:pt}],Wx=[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]},{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],qx=[{[We]:Qt,[qe]:[Pa,!0]}],Qu=[{[We]:Qt,[qe]:[{[gt]:"UseFIPS"},!0]}],Ju=[{[We]:Qt,[qe]:[{[gt]:"UseDualStack"},!0]}],Zu=[{[gt]:"ConsumerARN"}],eh=[{[gt]:"ResourceARN"}],Yx={version:"1.0",parameters:{Region:Tr,UseDualStack:qu,UseFIPS:qu,Endpoint:Tr,StreamARN:Tr,OperationType:Tr,ConsumerARN:Tr,ResourceARN:Tr},[ct]:[{[ot]:[{[We]:sr,[qe]:Xu},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:Xu,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:[{[We]:sr,[qe]:Zu},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:Zu,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:[{[We]:sr,[qe]:eh},Po,Jn,Zn,Do,Mo],[ct]:[{[ot]:[{[We]:ko,[qe]:eh,[vn]:Zi}],[ct]:Oo,[Oe]:ut},Fo],[Oe]:ut},{[ot]:zx,[ct]:[{[ot]:Qu,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[Oe]:pt},{[ot]:Ju,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[Oe]:pt},{endpoint:{[Ks]:pp,[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},{[ot]:[Jn],[ct]:[{[ot]:[Zn],[ct]:[{[ot]:Wx,[ct]:[{[ot]:[{[We]:Qt,[qe]:[Kx,Pa]},Yu],[ct]:[{endpoint:{[Ks]:"https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[Oe]:pt}],[Oe]:ut},{[ot]:Qu,[ct]:[{[ot]:qx,[ct]:[{[ot]:[{[We]:Ji,[qe]:[ec,"aws-us-gov"]}],endpoint:{[Ks]:"https://kinesis.{Region}.amazonaws.com",[zs]:ys,[Ws]:ys},[Oe]:is},{endpoint:{[Ks]:"https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},gp],[Oe]:ut},{[ot]:Ju,[ct]:[{[ot]:[Yu],[ct]:[{endpoint:{[Ks]:"https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut},mp],[Oe]:ut},{endpoint:{[Ks]:"https://kinesis.{Region}.{PartitionResult#dnsSuffix}",[zs]:ys,[Ws]:ys},[Oe]:is}],[Oe]:ut}],[Oe]:ut},{error:"Invalid Configuration: Missing Region",[Oe]:pt}]},Xx=Yx,Qx=(i,e={})=>df(Xx,{endpointParams:i,logger:e.logger});bn.aws=zl;const Jx=i=>({apiVersion:"2013-12-02",base64Decoder:(i==null?void 0:i.base64Decoder)??Za,base64Encoder:(i==null?void 0:i.base64Encoder)??Xl,disableHostPrefix:(i==null?void 0:i.disableHostPrefix)??!1,endpointProvider:(i==null?void 0:i.endpointProvider)??Qx,extensions:(i==null?void 0:i.extensions)??[],httpAuthSchemeProvider:(i==null?void 0:i.httpAuthSchemeProvider)??Ay,httpAuthSchemes:(i==null?void 0:i.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wf}],logger:(i==null?void 0:i.logger)??new ql,serviceId:(i==null?void 0:i.serviceId)??"Kinesis",urlParser:(i==null?void 0:i.urlParser)??wn,utf8Decoder:(i==null?void 0:i.utf8Decoder)??nr,utf8Encoder:(i==null?void 0:i.utf8Encoder)??Yl}),Zx=["in-region","cross-region","mobile","standard","legacy"],vp=({defaultsMode:i}={})=>Xv(async()=>{const e=typeof i=="function"?await i():i;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(eS()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Zx.join(", ")}, got ${e}`)}}),eS=()=>{var t,s;const i=typeof window<"u"&&((t=window==null?void 0:window.navigator)!=null&&t.userAgent)?op.parse(window.navigator.userAgent):void 0,e=(s=i==null?void 0:i.platform)==null?void 0:s.type;return e==="tablet"||e==="mobile"},tS=i=>{const e=vp(i),t=()=>e().then(Of),s=Jx(i);return{...s,...i,runtime:"browser",defaultsMode:e,bodyLengthChecker:(i==null?void 0:i.bodyLengthChecker)??dp,credentialDefaultProvider:(i==null?void 0:i.credentialDefaultProvider)??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(i==null?void 0:i.defaultUserAgentProvider)??lp({serviceId:s.serviceId,clientVersion:Wy.version}),eventStreamSerdeProvider:(i==null?void 0:i.eventStreamSerdeProvider)??jx,maxAttempts:(i==null?void 0:i.maxAttempts)??An,region:(i==null?void 0:i.region)??hp("Region is missing"),requestHandler:eo.create((i==null?void 0:i.requestHandler)??t),retryMode:(i==null?void 0:i.retryMode)??(async()=>(await t()).retryMode||Af),sha256:(i==null?void 0:i.sha256)??np,streamCollector:(i==null?void 0:i.streamCollector)??Pf,useDualstackEndpoint:(i==null?void 0:i.useDualstackEndpoint)??(()=>Promise.resolve(gf)),useFipsEndpoint:(i==null?void 0:i.useFipsEndpoint)??(()=>Promise.resolve(mf))}},yp=i=>{let e=async()=>{if(i.region===void 0)throw new Error("Region is missing from runtimeConfig");const t=i.region;return typeof t=="string"?t:t()};return{setRegion(t){e=t},region(){return e}}},xp=i=>({region:i.region()}),sS=i=>{const e=i.httpAuthSchemes;let t=i.httpAuthSchemeProvider,s=i.credentials;return{setHttpAuthScheme(r){const n=e.findIndex(a=>a.schemeId===r.schemeId);n===-1?e.push(r):e.splice(n,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){s=r},credentials(){return s}}},iS=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),ea=i=>i,rS=(i,e)=>{const t={...ea(yp(i)),...ea(Nf(i)),...ea(Jd(i)),...ea(sS(i))};return e.forEach(s=>s.configure(t)),{...i,...xp(t),...Bf(t),...Zd(t),...iS(t)}};class nS extends kf{constructor(...[e]){const t=tS(e||{}),s=Cy(t),r=rf(s),n=If(r),a=yf(n),o=a,l=Tf(o),u=Kv(l),d=Ly(u),f=rS(d,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(pf(this.config)),this.middlewareStack.use(Gf(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(tf(this.config)),this.middlewareStack.use(sf(this.config)),this.middlewareStack.use(wf(this.config,{httpAuthSchemeParametersProvider:Ty,identityProviderConfigProvider:async g=>new Hf({"aws.auth#sigv4":g.credentials})})),this.middlewareStack.use(Vf(this.config))}destroy(){super.destroy()}}class Bt extends to{constructor(e){super(e),Object.setPrototypeOf(this,Bt.prototype)}}class tc extends Bt{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,tc.prototype)}}class sc extends Bt{constructor(e){super({name:"InvalidArgumentException",$fault:"client",...e}),this.name="InvalidArgumentException",this.$fault="client",Object.setPrototypeOf(this,sc.prototype)}}class ic extends Bt{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,ic.prototype)}}class rc extends Bt{constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,rc.prototype)}}class nc extends Bt{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,nc.prototype)}}class ac extends Bt{constructor(e){super({name:"ExpiredIteratorException",$fault:"client",...e}),this.name="ExpiredIteratorException",this.$fault="client",Object.setPrototypeOf(this,ac.prototype)}}class oc extends Bt{constructor(e){super({name:"ExpiredNextTokenException",$fault:"client",...e}),this.name="ExpiredNextTokenException",this.$fault="client",Object.setPrototypeOf(this,oc.prototype)}}class lc extends Bt{constructor(e){super({name:"KMSAccessDeniedException",$fault:"client",...e}),this.name="KMSAccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,lc.prototype)}}class cc extends Bt{constructor(e){super({name:"KMSDisabledException",$fault:"client",...e}),this.name="KMSDisabledException",this.$fault="client",Object.setPrototypeOf(this,cc.prototype)}}class uc extends Bt{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,uc.prototype)}}class hc extends Bt{constructor(e){super({name:"KMSNotFoundException",$fault:"client",...e}),this.name="KMSNotFoundException",this.$fault="client",Object.setPrototypeOf(this,hc.prototype)}}class dc extends Bt{constructor(e){super({name:"KMSOptInRequired",$fault:"client",...e}),this.name="KMSOptInRequired",this.$fault="client",Object.setPrototypeOf(this,dc.prototype)}}class fc extends Bt{constructor(e){super({name:"KMSThrottlingException",$fault:"client",...e}),this.name="KMSThrottlingException",this.$fault="client",Object.setPrototypeOf(this,fc.prototype)}}class pc extends Bt{constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,pc.prototype)}}class gc extends Bt{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,gc.prototype)}}var th;(function(i){i.visit=(e,t)=>e.SubscribeToShardEvent!==void 0?t.SubscribeToShardEvent(e.SubscribeToShardEvent):e.ResourceNotFoundException!==void 0?t.ResourceNotFoundException(e.ResourceNotFoundException):e.ResourceInUseException!==void 0?t.ResourceInUseException(e.ResourceInUseException):e.KMSDisabledException!==void 0?t.KMSDisabledException(e.KMSDisabledException):e.KMSInvalidStateException!==void 0?t.KMSInvalidStateException(e.KMSInvalidStateException):e.KMSAccessDeniedException!==void 0?t.KMSAccessDeniedException(e.KMSAccessDeniedException):e.KMSNotFoundException!==void 0?t.KMSNotFoundException(e.KMSNotFoundException):e.KMSOptInRequired!==void 0?t.KMSOptInRequired(e.KMSOptInRequired):e.KMSThrottlingException!==void 0?t.KMSThrottlingException(e.KMSThrottlingException):e.InternalFailureException!==void 0?t.InternalFailureException(e.InternalFailureException):t._(e.$unknown[0],e.$unknown[1])})(th||(th={}));const aS=async(i,e)=>{const t=CS("PutRecord");let s;return s=JSON.stringify(wS(i,e)),LS(e,t,"/",void 0,s)},oS=async(i,e)=>{if(i.statusCode>=300)return lS(i,e);const t=await Zl(i.body,e);let s={};return s=Pt(t),{$metadata:qt(i),...s}},lS=async(i,e)=>{const t={...i,body:await sp(i.body,e)},s=ip(i,t.body);switch(s){case"AccessDeniedException":case"com.amazonaws.kinesis#AccessDeniedException":throw await cS(t);case"InvalidArgumentException":case"com.amazonaws.kinesis#InvalidArgumentException":throw await dS(t);case"LimitExceededException":case"com.amazonaws.kinesis#LimitExceededException":throw await xS(t);case"ResourceInUseException":case"com.amazonaws.kinesis#ResourceInUseException":throw await ES(t);case"ResourceNotFoundException":case"com.amazonaws.kinesis#ResourceNotFoundException":throw await bS(t);case"ExpiredIteratorException":case"com.amazonaws.kinesis#ExpiredIteratorException":throw await uS(t);case"KMSAccessDeniedException":case"com.amazonaws.kinesis#KMSAccessDeniedException":throw await fS(t);case"KMSDisabledException":case"com.amazonaws.kinesis#KMSDisabledException":throw await pS(t);case"KMSInvalidStateException":case"com.amazonaws.kinesis#KMSInvalidStateException":throw await gS(t);case"KMSNotFoundException":case"com.amazonaws.kinesis#KMSNotFoundException":throw await mS(t);case"KMSOptInRequired":case"com.amazonaws.kinesis#KMSOptInRequired":throw await vS(t);case"KMSThrottlingException":case"com.amazonaws.kinesis#KMSThrottlingException":throw await yS(t);case"ProvisionedThroughputExceededException":case"com.amazonaws.kinesis#ProvisionedThroughputExceededException":throw await SS(t);case"ExpiredNextTokenException":case"com.amazonaws.kinesis#ExpiredNextTokenException":throw await hS(t);case"ValidationException":case"com.amazonaws.kinesis#ValidationException":throw await TS(t);default:const r=t.body;return AS({output:i,parsedBody:r,errorCode:s})}},cS=async(i,e)=>{const t=i.body,s=Pt(t),r=new tc({$metadata:qt(i),...s});return jt(r,t)},uS=async(i,e)=>{const t=i.body,s=Pt(t),r=new ac({$metadata:qt(i),...s});return jt(r,t)},hS=async(i,e)=>{const t=i.body,s=Pt(t),r=new oc({$metadata:qt(i),...s});return jt(r,t)},dS=async(i,e)=>{const t=i.body,s=Pt(t),r=new sc({$metadata:qt(i),...s});return jt(r,t)},fS=async(i,e)=>{const t=i.body,s=Pt(t),r=new lc({$metadata:qt(i),...s});return jt(r,t)},pS=async(i,e)=>{const t=i.body,s=Pt(t),r=new cc({$metadata:qt(i),...s});return jt(r,t)},gS=async(i,e)=>{const t=i.body,s=Pt(t),r=new uc({$metadata:qt(i),...s});return jt(r,t)},mS=async(i,e)=>{const t=i.body,s=Pt(t),r=new hc({$metadata:qt(i),...s});return jt(r,t)},vS=async(i,e)=>{const t=i.body,s=Pt(t),r=new dc({$metadata:qt(i),...s});return jt(r,t)},yS=async(i,e)=>{const t=i.body,s=Pt(t),r=new fc({$metadata:qt(i),...s});return jt(r,t)},xS=async(i,e)=>{const t=i.body,s=Pt(t),r=new ic({$metadata:qt(i),...s});return jt(r,t)},SS=async(i,e)=>{const t=i.body,s=Pt(t),r=new pc({$metadata:qt(i),...s});return jt(r,t)},ES=async(i,e)=>{const t=i.body,s=Pt(t),r=new rc({$metadata:qt(i),...s});return jt(r,t)},bS=async(i,e)=>{const t=i.body,s=Pt(t),r=new nc({$metadata:qt(i),...s});return jt(r,t)},TS=async(i,e)=>{const t=i.body,s=Pt(t),r=new gc({$metadata:qt(i),...s});return jt(r,t)},wS=(i,e)=>$f(i,{Data:e.base64Encoder,ExplicitHashKey:[],PartitionKey:[],SequenceNumberForOrdering:[],StreamARN:[],StreamName:[]}),qt=i=>({httpStatusCode:i.statusCode,requestId:i.headers["x-amzn-requestid"]??i.headers["x-amzn-request-id"]??i.headers["x-amz-request-id"],extendedRequestId:i.headers["x-amz-id-2"],cfId:i.headers["x-amz-cf-id"]}),AS=Ff(Bt),LS=async(i,e,t,s,r)=>{const{hostname:n,protocol:a="https",port:o,path:l}=await i.endpoint(),u={protocol:a,hostname:n,port:o,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+t:l+t,headers:e};return r!==void 0&&(u.body=r),new ns(u)};function CS(i){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Kinesis_20131202.${i}`}}class RS extends Ql.classBuilder().ep({...Ry,OperationType:{type:"staticContextParams",value:"data"},StreamARN:{type:"contextParams",name:"StreamARN"}}).m(function(e,t,s,r){return[Sf(s,this.serialize,this.deserialize),bf(s,e.getEndpointParameterInstructions())]}).s("Kinesis_20131202","PutRecord",{}).n("KinesisClient","PutRecordCommand").f(void 0,void 0).ser(aS).de(oS).build(){}function Sp(i){return Promise.all(Object.keys(i).reduce((e,t)=>{const s=i[t];return typeof s=="string"?e.push([t,s]):e.push(s().then(r=>[t,r])),e},[])).then(e=>e.reduce((t,[s,r])=>(t[s]=r,t),{}))}function _S(i){return async()=>{var o,l,u;(o=i.logger)==null||o.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:e,CognitoIdentityClient:t}=await Promise.resolve().then(()=>require("./DkZ1BWlw.cjs.js")),{Credentials:{AccessKeyId:s=IS(i.logger),Expiration:r,SecretKey:n=PS(i.logger),SessionToken:a}=kS(i.logger)}=await(i.client??new t(Object.assign({},i.clientConfig??{},{region:((l=i.clientConfig)==null?void 0:l.region)??((u=i.parentClientConfig)==null?void 0:u.region)}))).send(new e({CustomRoleArn:i.customRoleArn,IdentityId:i.identityId,Logins:i.logins?await Sp(i.logins):void 0}));return{identityId:i.identityId,accessKeyId:s,secretAccessKey:n,sessionToken:a,expiration:r}}}function IS(i){throw new Hr("Response from Amazon Cognito contained no access key ID",{logger:i})}function kS(i){throw new Hr("Response from Amazon Cognito contained no credentials",{logger:i})}function PS(i){throw new Hr("Response from Amazon Cognito contained no secret key",{logger:i})}const No="IdentityIds";class DS{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",t=>{const s=t.get(e);return new Promise(r=>{s.onerror=()=>r(null),s.onsuccess=()=>r(s.result?s.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",t=>{const s=t.delete(e);return new Promise((r,n)=>{s.onerror=()=>n(s.error),s.onsuccess=()=>r()})})}setItem(e,t){return this.withObjectStore("readwrite",s=>{const r=s.put({id:e,value:t});return new Promise((n,a)=>{r.onerror=()=>a(r.error),r.onsuccess=()=>n()})})}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise((t,s)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{s(e.error)},e.onblocked=()=>{s(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const r=e.result;r.onerror=()=>{s(new Error("Failed to create object store"))},r.createObjectStore(No,{keyPath:"id"})}})}withObjectStore(e,t){return this.getDb().then(s=>{const r=s.transaction(No,e);return r.oncomplete=()=>s.close(),new Promise((n,a)=>{r.onerror=()=>a(r.error),n(t(r.objectStore(No)))}).catch(n=>{throw s.close(),n})})}}class MS{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}}const FS=new MS;function OS(){return typeof self=="object"&&self.indexedDB?new DS:typeof window=="object"&&window.localStorage?window.localStorage:FS}function NS({accountId:i,cache:e=OS(),client:t,clientConfig:s,customRoleArn:r,identityPoolId:n,logins:a,userIdentifier:o=!a||Object.keys(a).length===0?"ANONYMOUS":void 0,logger:l,parentClientConfig:u}){l==null||l.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const d=o?`aws:cognito-identity-credentials:${n}:${o}`:void 0;let f=async()=>{const{GetIdCommand:g,CognitoIdentityClient:v}=await Promise.resolve().then(()=>require("./DkZ1BWlw.cjs.js")),y=t??new v(Object.assign({},s??{},{region:(s==null?void 0:s.region)??(u==null?void 0:u.region)}));let E=d&&await e.getItem(d);if(!E){const{IdentityId:b=BS(l)}=await y.send(new g({AccountId:i,IdentityPoolId:n,Logins:a?await Sp(a):void 0}));E=b,d&&Promise.resolve(e.setItem(d,E)).catch(()=>{})}return f=_S({client:y,customRoleArn:r,logins:a,identityId:E}),f()};return()=>f().catch(async g=>{throw d&&Promise.resolve(e.removeItem(d)).catch(()=>{}),g})}function BS(i){throw new Hr("Response from Amazon Cognito contained no identity ID",{logger:i})}const $S=async(i,e,t)=>({operation:Dn(e).operation,region:await yi(i.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function US(i){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:i.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function ta(i){return{schemeId:"smithy.api#noAuth"}}const GS=i=>{const e=[];switch(i.operation){case"GetCredentialsForIdentity":{e.push(ta());break}case"GetId":{e.push(ta());break}case"GetOpenIdToken":{e.push(ta());break}case"UnlinkIdentity":{e.push(ta());break}default:e.push(US(i))}return e},VS=i=>({...tp(i)}),HS=i=>({...i,useDualstackEndpoint:i.useDualstackEndpoint??!1,useFipsEndpoint:i.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),jS={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},KS="@aws-sdk/client-cognito-identity",zS="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",WS="3.637.0",qS={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},YS="./dist-cjs/index.js",XS="./dist-types/index.d.ts",QS="./dist-es/index.js",JS=!1,ZS={"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},e1={"@aws-sdk/client-iam":"3.637.0","@tsconfig/node16":"16.1.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},t1={node:">=16.0.0"},s1={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},i1=["dist-*/**"],r1={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},n1="Apache-2.0",a1={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},o1="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",l1={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},c1={name:KS,description:zS,version:WS,scripts:qS,main:YS,types:XS,module:QS,sideEffects:JS,dependencies:ZS,devDependencies:e1,engines:t1,typesVersions:s1,files:i1,author:r1,license:n1,browser:a1,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:o1,repository:l1},Ep="required",Ys="fn",Xs="argv",jr="ref",sh=!0,ih="isSet",Cn="booleanEquals",wr="error",on="endpoint",hi="tree",mc="PartitionResult",rh={[Ep]:!1,type:"String"},nh={[Ep]:!0,default:!1,type:"Boolean"},ah={[jr]:"Endpoint"},bp={[Ys]:Cn,[Xs]:[{[jr]:"UseFIPS"},!0]},Tp={[Ys]:Cn,[Xs]:[{[jr]:"UseDualStack"},!0]},Gs={},oh={[Ys]:"getAttr",[Xs]:[{[jr]:mc},"supportsFIPS"]},lh={[Ys]:Cn,[Xs]:[!0,{[Ys]:"getAttr",[Xs]:[{[jr]:mc},"supportsDualStack"]}]},ch=[bp],uh=[Tp],hh=[{[jr]:"Region"}],u1={version:"1.0",parameters:{Region:rh,UseDualStack:nh,UseFIPS:nh,Endpoint:rh},rules:[{conditions:[{[Ys]:ih,[Xs]:[ah]}],rules:[{conditions:ch,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wr},{conditions:uh,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wr},{endpoint:{url:ah,properties:Gs,headers:Gs},type:on}],type:hi},{conditions:[{[Ys]:ih,[Xs]:hh}],rules:[{conditions:[{[Ys]:"aws.partition",[Xs]:hh,assign:mc}],rules:[{conditions:[bp,Tp],rules:[{conditions:[{[Ys]:Cn,[Xs]:[sh,oh]},lh],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wr}],type:hi},{conditions:ch,rules:[{conditions:[{[Ys]:Cn,[Xs]:[oh,sh]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"FIPS is enabled but this partition does not support FIPS",type:wr}],type:hi},{conditions:uh,rules:[{conditions:[lh],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi},{error:"DualStack is enabled but this partition does not support DualStack",type:wr}],type:hi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:Gs,headers:Gs},type:on}],type:hi}],type:hi},{error:"Invalid Configuration: Missing Region",type:wr}]},h1=u1,d1=(i,e={})=>df(h1,{endpointParams:i,logger:e.logger});bn.aws=zl;const f1=i=>({apiVersion:"2014-06-30",base64Decoder:(i==null?void 0:i.base64Decoder)??Za,base64Encoder:(i==null?void 0:i.base64Encoder)??Xl,disableHostPrefix:(i==null?void 0:i.disableHostPrefix)??!1,endpointProvider:(i==null?void 0:i.endpointProvider)??d1,extensions:(i==null?void 0:i.extensions)??[],httpAuthSchemeProvider:(i==null?void 0:i.httpAuthSchemeProvider)??GS,httpAuthSchemes:(i==null?void 0:i.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wf},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Uv}],logger:(i==null?void 0:i.logger)??new ql,serviceId:(i==null?void 0:i.serviceId)??"Cognito Identity",urlParser:(i==null?void 0:i.urlParser)??wn,utf8Decoder:(i==null?void 0:i.utf8Decoder)??nr,utf8Encoder:(i==null?void 0:i.utf8Encoder)??Yl}),p1=i=>{const e=vp(i),t=()=>e().then(Of),s=f1(i);return{...s,...i,runtime:"browser",defaultsMode:e,bodyLengthChecker:(i==null?void 0:i.bodyLengthChecker)??dp,credentialDefaultProvider:(i==null?void 0:i.credentialDefaultProvider)??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(i==null?void 0:i.defaultUserAgentProvider)??lp({serviceId:s.serviceId,clientVersion:c1.version}),maxAttempts:(i==null?void 0:i.maxAttempts)??An,region:(i==null?void 0:i.region)??hp("Region is missing"),requestHandler:eo.create((i==null?void 0:i.requestHandler)??t),retryMode:(i==null?void 0:i.retryMode)??(async()=>(await t()).retryMode||Af),sha256:(i==null?void 0:i.sha256)??np,streamCollector:(i==null?void 0:i.streamCollector)??Pf,useDualstackEndpoint:(i==null?void 0:i.useDualstackEndpoint)??(()=>Promise.resolve(gf)),useFipsEndpoint:(i==null?void 0:i.useFipsEndpoint)??(()=>Promise.resolve(mf))}},g1=i=>{const e=i.httpAuthSchemes;let t=i.httpAuthSchemeProvider,s=i.credentials;return{setHttpAuthScheme(r){const n=e.findIndex(a=>a.schemeId===r.schemeId);n===-1?e.push(r):e.splice(n,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){s=r},credentials(){return s}}},m1=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),sa=i=>i,v1=(i,e)=>{const t={...sa(yp(i)),...sa(Nf(i)),...sa(Jd(i)),...sa(g1(i))};return e.forEach(s=>s.configure(t)),{...i,...xp(t),...Bf(t),...Zd(t),...m1(t)}};class wp extends kf{constructor(...[e]){const t=p1(e||{}),s=HS(t),r=rf(s),n=If(r),a=yf(n),o=a,l=Tf(o),u=VS(l),d=v1(u,(e==null?void 0:e.extensions)||[]);super(d),this.config=d,this.middlewareStack.use(pf(this.config)),this.middlewareStack.use(Gf(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(tf(this.config)),this.middlewareStack.use(sf(this.config)),this.middlewareStack.use(wf(this.config,{httpAuthSchemeParametersProvider:$S,identityProviderConfigProvider:async f=>new Hf({"aws.auth#sigv4":f.credentials})})),this.middlewareStack.use(Vf(this.config))}destroy(){super.destroy()}}const dh={prod:{identityPoolId:"ap-northeast-2:719e14e9-badd-4b73-9496-39303c66cd62",streamName:"brixCloud_analysis_prod"},stage:{identityPoolId:"ap-northeast-2:1df47bbd-2ed8-4edd-9e1d-0474bc52f0af",streamName:"brixCloud_analysis_stage"},dev:{identityPoolId:"ap-northeast-2:1df47bbd-2ed8-4edd-9e1d-0474bc52f0af",streamName:"brixCloud_analysis_dev"}};class y1{constructor({identityPoolId:e,streamName:t}){this.data={ua:{s:17,a:6,g:2,o:this.getOS(),b:this.getBrowser()},ts:{tt:0,wt:0,ws:0},di:{},ii:{p:1}},this.loopId=null;const s=new URLSearchParams(window.location.search);this.client=new nS({region:"ap-northeast-2",credentials:NS({client:new wp({region:"ap-northeast-2"}),identityPoolId:e})}),this.streamName=t,this.data.um={s:s.get("utm_source")??void 0}}send(e){const t=JSON.stringify(e??this.data),s=new RS({Data:new TextEncoder().encode(t),PartitionKey:"partitionKey-"+Math.random(),StreamName:this.streamName});this.client.send(s)}sleep(e){return new Promise(t=>setTimeout(t,e))}interval(e,t){return new Promise(s=>{this.loopId=setInterval(()=>{t(e),s()},e)})}timeout(e,t){return new Promise(s=>{this.loopId=setTimeout(()=>{t(e),s()},e)})}getOS(){const e=window.navigator.userAgent.toLowerCase();let t="기타";return e.indexOf("windows")>=0?t="Windows":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0||e.indexOf("ipod")>=0?t="iOS":e.indexOf("mac")>=0?t="macOS":e.indexOf("android")>=0?t="Android":e.indexOf("linux")>=0&&(t="Linux"),["Windows","macOS","iOS","Android","Linux","기타"].indexOf(t)}getBrowser(){const e=window.navigator.userAgent.toLowerCase();let t="기타";return e.indexOf("edg")>=0?t="Edge":e.indexOf("chrome")>=0?t="Chrome":e.indexOf("safari")>=0?t="Safari":e.indexOf("firefox")>=0?t="Firefox":e.indexOf("trident")>=0&&(t="Internet Explorer"),["Chrome","Safari","Firefox","Internet Explorer","Edge","기타"].indexOf(t)}init(){this.data.ii.p=1}async start(){var t;if(!this.data.ty)return;if(this.loopId&&(clearTimeout(this.loopId),clearInterval(this.loopId)),this.data.ts.wt=new Date().getTime(),this.data.ty==="c"&&!this.data.di.iv){await this.sleep(500),this.stop(),this.init(),this.start();return}(t=window==null?void 0:window.__brix_console)==null||t.call(window,"entryTime",new Date(this.data.ts.wt).toLocaleString());const e=s=>{var n,a;s>1e3&&(this.data.ii.p=0),this.data.ii.i=s;const r=new Date().getTime();this.data.ts.tt=r,this.data.ts.ws=+((r-this.data.ts.wt)/1e3).toFixed(0),(n=window==null?void 0:window.__brix_console)==null||n.call(window,"watchingTime",this.data.ts.ws),(a=window==null?void 0:window.__brix_console)==null||a.call(window,"viewCount",{current:this.data.ii.p}),this.send()};await this.timeout(1e3,e),await this.timeout(3e3,e),await this.timeout(6e3,e),await this.interval(1e4,e)}stop(){this.loopId&&(clearTimeout(this.loopId),clearInterval(this.loopId))}sendAnalyze({like:e,comment:t,product:s,share:r,banner:n}){var o,l,u,d,f;const a={...this.data};e&&(a.cc={lk:e},(o=window==null?void 0:window.__brix_console)==null||o.call(window,"likeCount",{current:e})),t&&(a.cc={c:1},(l=window==null?void 0:window.__brix_console)==null||l.call(window,"commentCount",1)),r&&(a.cc={s:1},(u=window==null?void 0:window.__brix_console)==null||u.call(window,"shareCount",1)),s&&(a.pc={ip:s,tp:this.data.ts.wt},(d=window==null?void 0:window.__brix_console)==null||d.call(window,"productCount",1)),n&&(a.bc={ib:n,tb:this.data.ts.wt},(f=window==null?void 0:window.__brix_console)==null||f.call(window,"bannerCount",1)),this.send(a)}setUser(e,t){var s,r;this.data.di.iu=e,this.data.di.tu=t===0?"g":"m",(s=window==null?void 0:window.__brix_console)==null||s.call(window,"userId",e),(r=window==null?void 0:window.__brix_console)==null||r.call(window,"authType",t===0?"비회원":"회원"),this.stop(),this.init(),this.start()}setId(e){var t,s;this.data.ty&&(this.data.ty==="b"?(this.data.di.ib=e,delete this.data.di.is,delete this.data.di.icc,delete this.data.di.iugc):this.data.ty==="s"?(this.data.di.is=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.icc,delete this.data.di.iugc):this.data.ty==="c"?(this.data.di.icc=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.is,delete this.data.di.iugc):this.data.ty==="u"?(this.data.di.iugc=e,this.data.ii.s="vod",delete this.data.di.ib,delete this.data.di.is,delete this.data.di.icc):this.data.ty==="l"&&(this.data.di.il=e,this.data.ii.s="vod"),(t=window==null?void 0:window.__brix_console)==null||t.call(window,"id",e),(s=this.data.di)!=null&&s.iu&&(this.stop(),this.init(),this.start()))}setClientId(e){var t;this.data.di.ic=e,(t=window==null?void 0:window.__brix_console)==null||t.call(window,"clientId",e)}setStatus(e){this.data.ii.s=e,e==="cancel"&&this.stop()}setType(e){e==="broadcast"?this.data.ty="b":e==="shorts"?this.data.ty="s":e==="channel"?this.data.ty="c":e==="library"?this.data.ty="l":e==="ugc"&&(this.data.ty="u")}setChannelVodId(e){this.data.di.iv=e,this.init()}setChannelScheduleId(e){this.data.di.ics=e}getAPIQuery(){const e=new Date().getTime(),t=+((e-this.data.ts.wt)/1e3).toFixed(0),s={tt:e,ws:t,wt:this.data.ts.wt,p:this.data.ii.p,s:this.data.ii.s};return this.data.ty==="c"?{...s,vodId:this.data.di.iv,ics:this.data.di.ics}:s}}const x1=fe.createContext(null);function S1({kinesis:i,children:e}){return Ne.jsx(x1.Provider,{value:i??null,children:e})}function E1({element:i,eventName:e,handler:t}){const s=fe.useRef();fe.useEffect(()=>{s.current=t},[t]),fe.useEffect(()=>{if(!(i&&i.addEventListener))return;const r=n=>{s.current&&s.current(n)};return i.addEventListener(e,r),()=>{i.removeEventListener(e,r)}},[e,i])}function fh(i=!1){const[e,t]=fe.useState(i);return[e,()=>t(r=>!r)]}function b1({onClick:i,onDoubleClick:e,time:t=250}){const s=fe.useRef(),r=fe.useRef(0),n=()=>{s.current&&(clearTimeout(s.current),s.current=void 0)};return fe.useCallback(o=>{r.current+=1,n(),s.current=setTimeout(()=>{r.current===1?i==null||i(o):r.current===2&&(e==null||e(o)),r.current=0},t)},[i,e,t])}function T1(i,e=500){const[t,s]=fe.useState(i);return fe.useEffect(()=>{let r;const n=()=>{s(i)};return(()=>{clearTimeout(r),r=setTimeout(n,e)})(),()=>clearTimeout(r)},[t,i,e]),[t,s]}function w1({ref:i,...e}){const[t,s]=fe.useState(!1);return fe.useEffect(()=>{const r=i==null?void 0:i.current;if(!r||!window.IntersectionObserver)return;const n=new IntersectionObserver(a=>{if(a.length>0){const o=a[0];s(o.isIntersecting)}},e);return n.observe(r),()=>{n.unobserve(r),n.disconnect()}},[]),t}fe.createContext(null);fe.forwardRef(function({overlayElement:e,onExit:t},s){const[r,n]=fe.useState(!1),a=fe.useCallback(()=>n(!1),[]);return fe.useImperativeHandle(s,()=>({close:a}),[a]),fe.useEffect(()=>{requestAnimationFrame(()=>{n(!0)})},[]),Ne.jsx(e,{isOpen:r,close:a,exit:t})});const A1={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){console&&console[i]&&console[i].apply(console,e)}};class Da{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||A1,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,r){return r&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Da(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Da(this.logger,e)}}var Qs=new Da;let so=class{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const r=this.observers[s].get(t)||0;this.observers[s].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,l]=a;for(let u=0;u<l;u++)o.apply(o,[e,...s])})}};const ln=()=>{let i,e;const t=new Promise((s,r)=>{i=s,e=r});return t.resolve=i,t.reject=e,t},ph=i=>i==null?"":""+i,L1=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},C1=/###/g,gh=i=>i&&i.indexOf("###")>-1?i.replace(C1,"."):i,mh=i=>!i||typeof i=="string",yn=(i,e,t)=>{const s=typeof e!="string"?e:e.split(".");let r=0;for(;r<s.length-1;){if(mh(i))return{};const n=gh(s[r]);!i[n]&&t&&(i[n]=new t),Object.prototype.hasOwnProperty.call(i,n)?i=i[n]:i={},++r}return mh(i)?{}:{obj:i,k:gh(s[r])}},vh=(i,e,t)=>{const{obj:s,k:r}=yn(i,e,Object);if(s!==void 0||e.length===1){s[r]=t;return}let n=e[e.length-1],a=e.slice(0,e.length-1),o=yn(i,a,Object);for(;o.obj===void 0&&a.length;)n=`${a[a.length-1]}.${n}`,a=a.slice(0,a.length-1),o=yn(i,a,Object),o&&o.obj&&typeof o.obj[`${o.k}.${n}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${n}`]=t},R1=(i,e,t,s)=>{const{obj:r,k:n}=yn(i,e,Object);r[n]=r[n]||[],r[n].push(t)},Ma=(i,e)=>{const{obj:t,k:s}=yn(i,e);if(t)return t[s]},_1=(i,e,t)=>{const s=Ma(i,t);return s!==void 0?s:Ma(e,t)},Ap=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?typeof i[s]=="string"||i[s]instanceof String||typeof e[s]=="string"||e[s]instanceof String?t&&(i[s]=e[s]):Ap(i[s],e[s],t):i[s]=e[s]);return i},Ar=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var I1={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const k1=i=>typeof i=="string"?i.replace(/[&<>"'\/]/g,e=>I1[e]):i;class P1{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const D1=[" ",",","?","!",";"],M1=new P1(20),F1=(i,e,t)=>{e=e||"",t=t||"";const s=D1.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(s.length===0)return!0;const r=M1.getRegExp(`(${s.map(a=>a==="?"?"\\?":a).join("|")})`);let n=!r.test(i);if(!n){const a=i.indexOf(t);a>0&&!r.test(i.substring(0,a))&&(n=!0)}return n},Tl=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return i[e];const s=e.split(t);let r=i;for(let n=0;n<s.length;){if(!r||typeof r!="object")return;let a,o="";for(let l=n;l<s.length;++l)if(l!==n&&(o+=t),o+=s[l],a=r[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<s.length-1)continue;n+=l-n+1;break}r=a}return r},Fa=i=>i&&i.indexOf("_")>0?i.replace("_","-"):i;class yh extends so{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],s&&(Array.isArray(s)?o.push(...s):typeof s=="string"&&n?o.push(...s.split(n)):o.push(s)));const l=Ma(this.data,o);return!l&&!t&&!s&&e.indexOf(".")>-1&&(e=o[0],t=o[1],s=o.slice(2).join(".")),l||!a||typeof s!="string"?l:Tl(this.data&&this.data[e]&&this.data[e][t],s,n)}addResource(e,t,s,r){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=[e,t];s&&(o=o.concat(a?s.split(a):s)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),vh(this.data,o,r),n.silent||this.emit("added",e,t,s,r)}addResources(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in s)(typeof s[n]=="string"||Array.isArray(s[n]))&&this.addResource(e,t,n,s[n],{silent:!0});r.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,r,n){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=s,s=t,t=o[1]),this.addNamespaces(t);let l=Ma(this.data,o)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?Ap(l,s,n):l={...l,...s},vh(this.data,o,l),a.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var Lp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,r){return i.forEach(n=>{this.processors[n]&&(e=this.processors[n].process(e,t,s,r))}),e}};const xh={};class Oa extends so{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),L1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qs.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return s&&s.res!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let n=t.ns||this.options.defaultNS||[];const a=s&&e.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!F1(e,s,r);if(a&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:n};const u=e.split(s);(s!==r||s===r&&this.options.ns.indexOf(u[0])>-1)&&(n=u.shift()),e=u.join(r)}return typeof n=="string"&&(n=[n]),{key:e,namespaces:n}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const U=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${U}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${U}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}const f=this.resolve(e,t);let g=f&&f.res;const v=f&&f.usedKey||a,y=f&&f.exactUsedKey||a,E=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject;if(F&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&b.indexOf(E)<0&&!(typeof w=="string"&&Array.isArray(g))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(f.res=U,f.usedParams=this.getUsedParamsDetails(t),f):U}if(n){const U=Array.isArray(g),N=U?[]:{},te=U?y:v;for(const j in g)if(Object.prototype.hasOwnProperty.call(g,j)){const re=`${te}${n}${j}`;N[j]=this.translate(re,{...t,joinArrays:!1,ns:o}),N[j]===re&&(N[j]=g[j])}g=N}}else if(F&&typeof w=="string"&&Array.isArray(g))g=g.join(w),g&&(g=this.extendTranslation(g,e,t,s));else{let U=!1,N=!1;const te=t.count!==void 0&&typeof t.count!="string",j=Oa.hasDefaultValue(t),re=te?this.pluralResolver.getSuffix(u,t.count,t):"",Q=t.ordinal&&te?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",le=te&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),se=le&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${re}`]||t[`defaultValue${Q}`]||t.defaultValue;!this.isValidLookup(g)&&j&&(U=!0,g=se),this.isValidLookup(g)||(N=!0,g=a);const de=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:g,be=j&&se!==g&&this.options.updateMissing;if(N||U||be){if(this.logger.log(be?"updateKey":"missingKey",u,l,a,be?se:g),n){const we=this.resolve(a,{...t,keySeparator:!1});we&&we.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Le=[];const ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ue&&ue[0])for(let we=0;we<ue.length;we++)Le.push(ue[we]);else this.options.saveMissingTo==="all"?Le=this.languageUtils.toResolveHierarchy(t.lng||this.language):Le.push(t.lng||this.language);const he=(we,me,ye)=>{const Ve=j&&ye!==g?ye:de;this.options.missingKeyHandler?this.options.missingKeyHandler(we,l,me,Ve,be,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(we,l,me,Ve,be,t),this.emit("missingKey",we,l,me,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&te?Le.forEach(we=>{const me=this.pluralResolver.getSuffixes(we,t);le&&t[`defaultValue${this.options.pluralSeparator}zero`]&&me.indexOf(`${this.options.pluralSeparator}zero`)<0&&me.push(`${this.options.pluralSeparator}zero`),me.forEach(ye=>{he([we],a+ye,t[`defaultValue${ye}`]||se)})}):he(Le,a,se))}g=this.extendTranslation(g,e,t,f,s),N&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${l}:${a}`),(N||U)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,U?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(f.res=g,f.usedParams=this.getUsedParamsDetails(t),f):g}extendTranslation(e,t,s,r,n){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const u=typeof e=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const g=e.match(this.interpolator.nestingRegexp);d=g&&g.length}let f=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,s.lng||this.language||r.usedLng,s),u){const g=e.match(this.interpolator.nestingRegexp),v=g&&g.length;d<v&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(s.lng=this.language||r.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return n&&n[0]===v[0]&&!s.context?(a.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`),null):a.translate(...v,t)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,l=typeof o=="string"?[o]:o;return e!=null&&l&&l.length&&s.applyPostProcessor!==!1&&(e=Lp.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r,n,a,o;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),d=u.key;r=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const g=t.count!==void 0&&typeof t.count!="string",v=g&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),y=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",E=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(b=>{this.isValidLookup(s)||(o=b,!xh[`${E[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(xh[`${E[0]}-${b}`]=!0,this.logger.warn(`key "${r}" for languages "${E.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(w=>{if(this.isValidLookup(s))return;a=w;const F=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(F,d,w,b,t);else{let U;g&&(U=this.pluralResolver.getSuffix(w,t.count,t));const N=`${this.options.pluralSeparator}zero`,te=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(F.push(d+U),t.ordinal&&U.indexOf(te)===0&&F.push(d+U.replace(te,this.options.pluralSeparator)),v&&F.push(d+N)),y){const j=`${d}${this.options.contextSeparator}${t.context}`;F.push(j),g&&(F.push(j+U),t.ordinal&&U.indexOf(te)===0&&F.push(j+U.replace(te,this.options.pluralSeparator)),v&&F.push(j+N))}}let k;for(;k=F.pop();)this.isValidLookup(s)||(n=k,s=this.getResource(w,b,k,t))}))})}),{res:s,usedKey:r,exactUsedKey:n,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,s,r):this.resourceStore.getResource(e,t,s,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&typeof e.replace!="string";let r=s?e.replace:e;if(s&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!s){r={...r};for(const n of t)delete r[n]}return r}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}const Bo=i=>i.charAt(0).toUpperCase()+i.slice(1);class Sh{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qs.create("languageUtils")}getScriptPartFromCode(e){if(e=Fa(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Fa(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let s=e.split("-");return this.options.lowerCaseLng?s=s.map(r=>r.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=Bo(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=Bo(s[1].toLowerCase())),t.indexOf(s[2].toLowerCase())>-1&&(s[2]=Bo(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const r=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const r=this.getLanguagePartFromCode(s);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(n=>{if(n===r)return n;if(!(n.indexOf("-")<0&&r.indexOf("-")<0)&&(n.indexOf("-")>0&&r.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===r||n.indexOf(r)===0&&r.length>1))return n})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],n=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(e))):typeof e=="string"&&n(this.formatLanguageCode(e)),s.forEach(a=>{r.indexOf(a)<0&&n(this.formatLanguageCode(a))}),r}}let O1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N1={1:i=>+(i>1),2:i=>+(i!=1),3:i=>0,4:i=>i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2,5:i=>i==0?0:i==1?1:i==2?2:i%100>=3&&i%100<=10?3:i%100>=11?4:5,6:i=>i==1?0:i>=2&&i<=4?1:2,7:i=>i==1?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2,8:i=>i==1?0:i==2?1:i!=8&&i!=11?2:3,9:i=>+(i>=2),10:i=>i==1?0:i==2?1:i<7?2:i<11?3:4,11:i=>i==1||i==11?0:i==2||i==12?1:i>2&&i<20?2:3,12:i=>+(i%10!=1||i%100==11),13:i=>+(i!==0),14:i=>i==1?0:i==2?1:i==3?2:3,15:i=>i%10==1&&i%100!=11?0:i%10>=2&&(i%100<10||i%100>=20)?1:2,16:i=>i%10==1&&i%100!=11?0:i!==0?1:2,17:i=>i==1||i%10==1&&i%100!=11?0:1,18:i=>i==0?0:i==1?1:2,19:i=>i==1?0:i==0||i%100>1&&i%100<11?1:i%100>10&&i%100<20?2:3,20:i=>i==1?0:i==0||i%100>0&&i%100<20?1:2,21:i=>i%100==1?1:i%100==2?2:i%100==3||i%100==4?3:0,22:i=>i==1?0:i==2?1:(i<0||i>10)&&i%10==0?2:3};const B1=["v1","v2","v3"],$1=["v4"],Eh={zero:0,one:1,two:2,few:3,many:4,other:5},U1=()=>{const i={};return O1.forEach(e=>{e.lngs.forEach(t=>{i[t]={numbers:e.nr,plurals:N1[e.fc]}})}),i};class G1{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Qs.create("pluralResolver"),(!this.options.compatibilityJSON||$1.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=U1(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const s=Fa(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:s,type:r});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];const a=new Intl.PluralRules(s,{type:r});return this.pluralRulesCache[n]=a,a}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(r=>`${t}${r}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((r,n)=>Eh[r]-Eh[n]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):s.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,s);return r?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const s=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[s];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const n=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?n():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!B1.includes(this.options.compatibilityJSON)}}const bh=function(i,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=_1(i,e,t);return!n&&r&&typeof t=="string"&&(n=Tl(i,t,s),n===void 0&&(n=Tl(e,t,s))),n},$o=i=>i.replace(/\$/g,"$$$$");class V1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:r,prefix:n,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:g,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:E,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:F}=e.interpolation;this.escape=t!==void 0?t:k1,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=n?Ar(n):a||"{{",this.suffix=o?Ar(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=g?Ar(g):v||Ar("$t("),this.nestingSuffix=y?Ar(y):E||Ar(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>t&&t.source===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,s,r){let n,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const w=bh(t,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,s,{...r,...t,interpolationkey:v}):w}const y=v.split(this.formatSeparator),E=y.shift().trim(),b=y.join(this.formatSeparator).trim();return this.format(bh(t,l,E,this.options.keySeparator,this.options.ignoreJSONStructure),b,s,{...r,...t,interpolationkey:E})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>$o(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?$o(this.escape(v)):$o(v)}].forEach(v=>{for(o=0;n=v.regex.exec(e);){const y=n[1].trim();if(a=u(y),a===void 0)if(typeof d=="function"){const b=d(e,n,r);a=typeof b=="string"?b:""}else if(r&&Object.prototype.hasOwnProperty.call(r,y))a="";else if(f){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=ph(a));const E=v.safeValue(a);if(e=e.replace(n[0],E),f?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=n[0].length):v.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,n,a;const o=(l,u)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let g=`{${f[1]}`;l=f[0],g=this.interpolate(g,a);const v=g.match(/'/g),y=g.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(g=g.replace(/'/g,'"'));try{a=JSON.parse(g),u&&(a={...u,...a})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,E),`${l}${d}${g}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];a={...s},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(f=>f.trim());r[1]=d.shift(),l=d,u=!0}if(n=t(o.call(this,r[1].trim(),a),a),n&&r[0]===e&&typeof n!="string")return n;typeof n!="string"&&(n=ph(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u&&(n=l.reduce((d,f)=>this.format(d,f,s.lng,{...s,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const H1=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const s=i.split("(");e=s[0].toLowerCase().trim();const r=s[1].substring(0,s[1].length-1);e==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},Lr=i=>{const e={};return(t,s,r)=>{let n=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(n={...n,[r.interpolationkey]:void 0});const a=s+JSON.stringify(n);let o=e[a];return o||(o=i(Fa(s),r),e[a]=o),o(t)}};class j1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qs.create("formatter"),this.options=e,this.formats={number:Lr((t,s)=>{const r=new Intl.NumberFormat(t,{...s});return n=>r.format(n)}),currency:Lr((t,s)=>{const r=new Intl.NumberFormat(t,{...s,style:"currency"});return n=>r.format(n)}),datetime:Lr((t,s)=>{const r=new Intl.DateTimeFormat(t,{...s});return n=>r.format(n)}),relativetime:Lr((t,s)=>{const r=new Intl.RelativeTimeFormat(t,{...s});return n=>r.format(n,s.range||"day")}),list:Lr((t,s)=>{const r=new Intl.ListFormat(t,{...s});return n=>r.format(n)})},this.init(e)}init(e){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Lr(t)}format(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(o=>o.indexOf(")")>-1)){const o=n.findIndex(l=>l.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,o)].join(this.formatSeparator)}return n.reduce((o,l)=>{const{formatName:u,formatOptions:d}=H1(l);if(this.formats[u]){let f=o;try{const g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},v=g.locale||g.lng||r.locale||r.lng||s;f=this.formats[u](o,v,{...d,...r,...g})}catch(g){this.logger.warn(g)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const K1=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class z1 extends so{constructor(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=Qs.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,r.backend,r)}queueLoad(e,t,s,r){const n={},a={},o={},l={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const g=`${u}|${f}`;!s.reload&&this.store.hasResourceBundle(u,f)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?a[g]===void 0&&(a[g]=!0):(this.state[g]=1,d=!1,a[g]===void 0&&(a[g]=!0),n[g]===void 0&&(n[g]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[u]=!0)}),(Object.keys(n).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(n),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const r=e.split("|"),n=r[0],a=r[1];t&&this.emit("failedLoading",n,a,t),!t&&s&&this.store.addResourceBundle(n,a,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const o={};this.queue.forEach(l=>{R1(l.loaded,[n],a),K1(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:r,wait:n,callback:a});return}this.readingCalls++;const o=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,s,r+1,n*2,a)},n);return}a(u,d)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,t,o)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const n=this.queueLoad(e,t,s,r);if(!n.toLoad.length)return n.pending.length||r(),null;n.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),r=s[0],n=s[1];this.read(r,n,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${n} for language ${r} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${n} for language ${r}`,o),this.loaded(e,a,o)})}saveMissing(e,t,s,r,n){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:n},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,t,s,r,l):d=u(e,t,s,r),d&&typeof d.then=="function"?d.then(f=>o(null,f)).catch(o):o(null,d)}catch(d){o(d)}else u(e,t,s,r,o,l)}!e||!e[0]||this.store.addResource(e[0],t,s,r)}}}const Th=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),typeof i[1]=="string"&&(e.defaultValue=i[1]),typeof i[2]=="string"&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),wh=i=>(typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i),ia=()=>{},W1=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class Rn extends so{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=wh(e),this.services={},this.logger=Qs,this.modules={external:[]},W1(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(s=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Th();this.options={...r,...this.options,...wh(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const n=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Qs.init(n(this.modules.logger),this.options):Qs.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=j1);const f=new Sh(this.options);this.store=new yh(this.options.resources,this.options);const g=this.services;g.logger=Qs,g.resourceStore=this.store,g.languageUtils=f,g.pluralResolver=new G1(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=n(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new V1(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new z1(n(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(v){for(var y=arguments.length,E=new Array(y>1?y-1:0),b=1;b<y;b++)E[b-1]=arguments[b];e.emit(v,...E)}),this.modules.languageDetector&&(g.languageDetector=n(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=n(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Oa(this.services,this.options),this.translator.on("*",function(v){for(var y=arguments.length,E=new Array(y>1?y-1:0),b=1;b<y;b++)E[b-1]=arguments[b];e.emit(v,...E)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ia),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const l=ln(),u=()=>{const d=(f,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(g),s(f,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const n=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&n.indexOf(u)<0&&n.push(u)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(o=>a(o)),this.services.backendConnector.load(n,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(o)})}else s(null)}reloadResources(e,t,s){const r=ln();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ia),this.services.backendConnector.reload(e,t,n=>{r.resolve(),s(n)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Lp.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const r=ln();this.emit("languageChanging",e);const n=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,u)=>{u?(n(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,s){var r=this;const n=function(a,o){let l;if(typeof o!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];l=r.options.overloadTranslationOptionHandler([a,o].concat(d))}else l={...o};l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||s||n.keyPrefix);const g=r.options.keySeparator||".";let v;return l.keyPrefix&&Array.isArray(a)?v=a.map(y=>`${l.keyPrefix}${g}${y}`):v=l.keyPrefix?`${l.keyPrefix}${g}${a}`:a,r.t(v,l)};return typeof e=="string"?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=s,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,e)&&(!r||a(n,e)))}loadNamespaces(e,t){const s=ln();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{s.resolve(),t&&t(r)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ln();typeof e=="string"&&(e=[e]);const r=this.options.preload||[],n=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return n.length?(this.options.preload=r.concat(n),this.loadResources(a=>{s.resolve(),t&&t(a)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new Sh(Th());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Rn(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},n=new Rn(r);return(e.debug!==void 0||e.prefix!==void 0)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(o=>{n[o]=this[o]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},s&&(n.store=new yh(this.store.data,r),n.services.resourceStore=n.store),n.translator=new Oa(n.services,r),n.translator.on("*",function(o){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];n.emit(o,...u)}),n.init(r,t),n.translator.options=r,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Kt=Rn.createInstance();Kt.createInstance=Rn.createInstance;Kt.createInstance;Kt.dir;Kt.init;Kt.loadResources;Kt.reloadResources;Kt.use;Kt.changeLanguage;Kt.getFixedT;Kt.t;Kt.exists;Kt.setDefaultNamespace;Kt.hasLoadedNamespace;Kt.loadNamespaces;Kt.loadLanguages;function q1(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function _n(i){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(i)}function Y1(i,e){if(_n(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var s=t.call(i,e);if(_n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}function X1(i){var e=Y1(i,"string");return _n(e)=="symbol"?e:e+""}function Q1(i,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,X1(s.key),s)}}function J1(i,e,t){return e&&Q1(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var Cp=[],Z1=Cp.forEach,eE=Cp.slice;function tE(i){return Z1.call(eE.call(arguments,1),function(e){if(e)for(var t in e)i[t]===void 0&&(i[t]=e[t])}),i}var Ah=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,sE=function(e,t,s){var r=s||{};r.path=r.path||"/";var n=encodeURIComponent(t),a="".concat(e,"=").concat(n);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!Ah.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!Ah.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},Lh={create:function(e,t,s,r){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+s*60*1e3)),r&&(n.domain=r),document.cookie=sE(e,encodeURIComponent(t),n)},read:function(e){for(var t="".concat(e,"="),s=document.cookie.split(";"),r=0;r<s.length;r++){for(var n=s[r];n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return n.substring(t.length,n.length)}return null},remove:function(e){this.create(e,"",-1)}},iE={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document<"u"){var s=Lh.read(e.lookupCookie);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document<"u"&&Lh.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},rE={name:"querystring",lookup:function(e){var t;if(typeof window<"u"){var s=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(s=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=s.substring(1),n=r.split("&"),a=0;a<n.length;a++){var o=n[a].indexOf("=");if(o>0){var l=n[a].substring(0,o);l===e.lookupQuerystring&&(t=n[a].substring(o+1))}}}return t}},cn=null,Ch=function(){if(cn!==null)return cn;try{cn=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{cn=!1}return cn},nE={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Ch()){var s=window.localStorage.getItem(e.lookupLocalStorage);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Ch()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},un=null,Rh=function(){if(un!==null)return un;try{un=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{un=!1}return un},aE={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Rh()){var s=window.sessionStorage.getItem(e.lookupSessionStorage);s&&(t=s)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Rh()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},oE={name:"navigator",lookup:function(e){var t=[];if(typeof navigator<"u"){if(navigator.languages)for(var s=0;s<navigator.languages.length;s++)t.push(navigator.languages[s]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},lE={name:"htmlTag",lookup:function(e){var t,s=e.htmlTag||(typeof document<"u"?document.documentElement:null);return s&&typeof s.getAttribute=="function"&&(t=s.getAttribute("lang")),t}},cE={name:"path",lookup:function(e){var t;if(typeof window<"u"){var s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(s instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof s[e.lookupFromPathIndex]!="string")return;t=s[e.lookupFromPathIndex].replace("/","")}else t=s[0].replace("/","")}return t}},uE={name:"subdomain",lookup:function(e){var t=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,s=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(s)return s[t]}};function hE(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var Rp=function(){function i(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q1(this,i),this.type="languageDetector",this.detectors={},this.init(e,t)}return J1(i,[{key:"init",value:function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=tE(s,this.options||{},hE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(n){return n.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(iE),this.addDetector(rE),this.addDetector(nE),this.addDetector(aE),this.addDetector(oE),this.addDetector(lE),this.addDetector(cE),this.addDetector(uE)}},{key:"addDetector",value:function(t){return this.detectors[t.name]=t,this}},{key:"detect",value:function(t){var s=this;t||(t=this.options.order);var r=[];return t.forEach(function(n){if(s.detectors[n]){var a=s.detectors[n].lookup(s.options);a&&typeof a=="string"&&(a=[a]),a&&(r=r.concat(a))}}),r=r.map(function(n){return s.options.convertDetectedLanguage(n)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,s){var r=this;s||(s=this.options.caches),s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||s.forEach(function(n){r.detectors[n]&&r.detectors[n].cacheUserLanguage(t,r.options)}))}}]),i}();Rp.type="languageDetector";const dE={en:{translation:{chapter:"chapter",close:"close",soldout:"soldeout",currency:"USD",more:"more",entrace:"entrance",comments:"comments",reply:"reply",send:"send",cancel1:"cancel",participate:"participate",participated:"participated",announcement:"announcement",login:"login",notice:"notice",report:"report",edit:"edit",benefit:"benefit",notification:"notification",setting:"setting",event:"event",term:"term",back:"back",quiz:"quiz",answer:"answer",confirm:"confirm",recent:"recent",small:"small",medium:"medium",large:"large",chat:"chat",background:"background",bold:"bold",share:"share",video:"video",fullscreen:"full screen",quality:"quality",auto:"auto",size:"size",delete:"delete",rehearsal:"rehearsal",live:"live",relive:"relive",converting:"converting",cancel:"cancel",ready:"ready",purchase_verification:"Purchase verification",live_comments:"Live comments",adult_verification:"Adult verification",change_view_mode:"Change view mode",enter_broadcast:"Enter broadcast",featured_products:"Featured products",view_reply:"View {{count}} replies",sentence:{"No Results Found":"No Results Found","people has joined":" and {{count}} people has joined","has joined":"has joined","Chat is paused":"Chat is paused","Chat is available":"Chat is available","Chat is unavailable":"Chat is unavailable","Chat messages cannot be sent":"Chat messages cannot be sent","Please enter number":"Please enter number","Please enter answer":"Please enter answer","Participation completed":"Participation completed","Stream Starting Soon":"Stream Starting Soon","It will be temporarily restricted for smooth chat":"It will be temporarily restricted for smooth chat","The video cannot be played.":"The video cannot be played.","This content requires a login. Please try again.":"This content requires a login. Please try again.","Please enter your name":"Please enter your name","Please enter your nickname":"Please enter your nickname","Please enter your phonenumber":"Please enter your phonenumber","Consent for Personal Information":"Consent for Personal Information (Required)","Please enter the information":"To participate, please enter the information below","Reply has been raised":`Reply has been raised.
|
|
46
46
|
You can check again through the menu at the bottom right`,"Please press unmute button":"Please press unmute button","The broadcast cannot be found":"The broadcast cannot be found","Enter your four-digit entry code":"Enter your four-digit entry code","The entry code does not match":"The entry code does not match","adult verification are required":"This broadcast is not available for viewers under the age of 19. Login and adult verification are required","Data charges may apply":"Data charges may apply in 3G/5G/LTE environments","Link has been copied":"Link has been copied","The report has been completed":"The report has been completed","No permission to report":"No permission to report. please sign up","Are you sure you want to submit":"Are you sure you want to submit?","We announce the results":"We announce the results of {{event}}","Enter your purchase number or order number":`Enter your purchase number or order number
|
|
47
|
-
Please look forward to the announcement of the winners!`}}},ko:{translation:{chapter:"챕터",close:"닫기",soldout:"품절",currency:"원",more:"더보기",entrace:"입장",comments:"댓글",reply:"답글",send:"전송",cancel1:"취소",participate:"참여하기",participated:"참여완료",announcement:"결과발표",login:"로그인",notice:"안내",report:"신고",edit:"수정",benefit:"방송 혜택",notification:"알림",setting:"설정",event:"이벤트",term:"약관",back:"뒤로가기",quiz:"퀴즈",answer:"정답",confirm:"확인",recent:"최신",small:"작게",medium:"보통",large:"크게",chat:"채팅",background:"배경",bold:"볼드",share:"공유",video:"영상",fullscreen:"전체화면",quality:"화질",auto:"자동",size:"크기",delete:"삭제",rehearsal:"리허설",live:"live",relive:"재방송",converting:"변환중",cancel:"방송취소",ready:"방송예정",purchase_verification:"구매인증",live_comments:"라이브 답글",adult_verification:"성인인증",change_view_mode:"시청모드 변경",enter_broadcast:"방송 입장",featured_products:"개의 상품",view_reply:"답글보기 {{count}}개",sentence:{"No Results Found":"내용이 없습니다.","people has joined":"님외 {{count}}명이 입장하였습니다.","has joined":"님이 입장하였습니다.","Chat is pause":"채팅이 일시 정지되었습니다.","Chat is available":"채팅 이용이 가능합니다.","Chat is unavailable":"채팅 이용이 어렵습니다.","Chat messages cannot be sent":"채팅을 전송할 수 없습니다.","Please enter number":"번호를 입력하세요.","Please enter answer":"답안을 입력하세요.","Participation completed":"참여완료 되었습니다.","Stream Starting Soon":"곧 라이브가 시작됩니다.","Please enter your name":"이름을 입력해주세요.","Please enter your nickname":"닉네임을 입력해주세요.","Please enter your phonenumber":"전화번호를 입력해주세요.","Consent for Personal Information":"개인정보 수집및 이용동의(필수)","Please enter the information"
|
|
47
|
+
Please look forward to the announcement of the winners!`}}},ko:{translation:{chapter:"챕터",close:"닫기",soldout:"품절",currency:"원",more:"더보기",entrace:"입장",comments:"댓글",reply:"답글",send:"전송",cancel1:"취소",participate:"참여하기",participated:"참여완료",announcement:"결과발표",login:"로그인",notice:"안내",report:"신고",edit:"수정",benefit:"방송 혜택",notification:"알림",setting:"설정",event:"이벤트",term:"약관",back:"뒤로가기",quiz:"퀴즈",answer:"정답",confirm:"확인",recent:"최신",small:"작게",medium:"보통",large:"크게",chat:"채팅",background:"배경",bold:"볼드",share:"공유",video:"영상",fullscreen:"전체화면",quality:"화질",auto:"자동",size:"크기",delete:"삭제",rehearsal:"리허설",live:"live",relive:"재방송",converting:"변환중",cancel:"방송취소",ready:"방송예정",purchase_verification:"구매인증",live_comments:"라이브 답글",adult_verification:"성인인증",change_view_mode:"시청모드 변경",enter_broadcast:"방송 입장",featured_products:"개의 상품",view_reply:"답글보기 {{count}}개",sentence:{"No Results Found":"내용이 없습니다.","people has joined":"님외 {{count}}명이 입장하였습니다.","has joined":"님이 입장하였습니다.","Chat is pause":"채팅이 일시 정지되었습니다.","Chat is available":"채팅 이용이 가능합니다.","Chat is unavailable":"채팅 이용이 어렵습니다.","Chat messages cannot be sent":"채팅을 전송할 수 없습니다.","Please enter number":"번호를 입력하세요.","Please enter answer":"답안을 입력하세요.","Participation completed":"참여완료 되었습니다.","Stream Starting Soon":"곧 라이브가 시작됩니다.","It will be temporarily restricted for smooth chat":"원활한 채팅을 위해 잠시 제한됩니다.","The video cannot be played":"동영상을 재생할 수 없습니다.","This content requires a login. Please try again":"이 콘텐츠는 로그인이 필요합니다. 다시 시도해 주세요.","Please enter your name":"이름을 입력해주세요.","Please enter your nickname":"닉네임을 입력해주세요.","Please enter your phonenumber":"전화번호를 입력해주세요.","Consent for Personal Information":"개인정보 수집및 이용동의(필수)","Please enter the information":`원활한 소통과 서비스 제공을 위해 아래 정보를 입력해주세요.
|
|
48
|
+
입력하신 개인정보는 서비스 운영 및 원활한 소통을 위해서만 사용되며 안전하게 보호됩니다.`,"Reply has been raised":`라이브 답글이 달렸어요.
|
|
48
49
|
우측 하단 메뉴를 통해 다시 확인할 수 있습니다.`,"Please press unmute button":"소리를 켜려면 누르세요.","The broadcast cannot be found":"방송을 찾을수 없습니다.","Enter your four-digit entry code":"입장코드 네 자리를 입력하세요.","The entry code does not match":"입장코드가 일치하지 않습니다.","adult verification are required":`만 19세 미만 시청불가 방송입니다.
|
|
49
50
|
로그인 및 성인인증이 필요합니다.`,"Data charges may apply":"3G/5G/LTE 환경에서는 데이터 요금이 발생할 수 있습니다.","Link has been copied":"링크가 복사 되었습니다.","The report has been completed":"신고가 완료되었습니다.","No permission to report":"신고 권한이 없습니다. 로그인 하세요.","Are you sure you want to submit":"위의 내용을 신고하시겠습니까?","We announce the results":`"{{event}}"의
|
|
50
51
|
결과를 발표합니다.`,"Enter your purchase number or order number":`구매번호 혹은 주문번호를 입력하세요.
|
|
@@ -81,6 +82,6 @@ Please look forward to the announcement of the winners!`}}},ko:{translation:{cha
|
|
|
81
82
|
By Ken Fyrstenberg
|
|
82
83
|
Contributions by leeoniya.
|
|
83
84
|
License: MIT, header required.
|
|
84
|
-
*/var Ie=function(){var c=Math.cos,h=Math.sin,p=Math.tan,m=Math.round;function S(){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 x(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,-ne,0,0,ne,R,0,0,0,0,1,0,0,0,0,1)}function A(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(1,0,0,0,0,R,-ne,0,0,ne,R,0,0,0,0,1)}function D(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,0,ne,0,0,1,0,0,-ne,0,R,0,0,0,0,1)}function L(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,-ne,0,0,ne,R,0,0,0,0,1,0,0,0,0,1)}function B(T,R){return this._t(1,R,T,1,0,0)}function V(T,R){return this.shear(p(T),p(R))}function ee(T,R){var ne=c(R),X=h(R);return this._t(ne,X,0,0,-X,ne,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,p(T),1,0,0,0,0,1,0,0,0,0,1)._t(ne,-X,0,0,X,ne,0,0,0,0,1,0,0,0,0,1)}function I(T,R,ne){return!ne&&ne!==0&&(ne=1),T===1&&R===1&&ne===1?this:this._t(T,0,0,0,0,R,0,0,0,0,ne,0,0,0,0,1)}function H(T,R,ne,X,Re,Ue,ze,nt,at,It,Zt,Bs,es,Ut,cs,ft){return this.props[0]=T,this.props[1]=R,this.props[2]=ne,this.props[3]=X,this.props[4]=Re,this.props[5]=Ue,this.props[6]=ze,this.props[7]=nt,this.props[8]=at,this.props[9]=It,this.props[10]=Zt,this.props[11]=Bs,this.props[12]=es,this.props[13]=Ut,this.props[14]=cs,this.props[15]=ft,this}function q(T,R,ne){return ne=ne||0,T!==0||R!==0||ne!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,T,R,ne,1):this}function K(T,R,ne,X,Re,Ue,ze,nt,at,It,Zt,Bs,es,Ut,cs,ft){var Pe=this.props;if(T===1&&R===0&&ne===0&&X===0&&Re===0&&Ue===1&&ze===0&&nt===0&&at===0&&It===0&&Zt===1&&Bs===0)return Pe[12]=Pe[12]*T+Pe[15]*es,Pe[13]=Pe[13]*Ue+Pe[15]*Ut,Pe[14]=Pe[14]*Zt+Pe[15]*cs,Pe[15]*=ft,this._identityCalculated=!1,this;var oi=Pe[0],Ri=Pe[1],li=Pe[2],$s=Pe[3],ci=Pe[4],ui=Pe[5],ts=Pe[6],_i=Pe[7],Ii=Pe[8],Cs=Pe[9],ki=Pe[10],Rs=Pe[11],Wi=Pe[12],Kn=Pe[13],zn=Pe[14],Wn=Pe[15];return Pe[0]=oi*T+Ri*Re+li*at+$s*es,Pe[1]=oi*R+Ri*Ue+li*It+$s*Ut,Pe[2]=oi*ne+Ri*ze+li*Zt+$s*cs,Pe[3]=oi*X+Ri*nt+li*Bs+$s*ft,Pe[4]=ci*T+ui*Re+ts*at+_i*es,Pe[5]=ci*R+ui*Ue+ts*It+_i*Ut,Pe[6]=ci*ne+ui*ze+ts*Zt+_i*cs,Pe[7]=ci*X+ui*nt+ts*Bs+_i*ft,Pe[8]=Ii*T+Cs*Re+ki*at+Rs*es,Pe[9]=Ii*R+Cs*Ue+ki*It+Rs*Ut,Pe[10]=Ii*ne+Cs*ze+ki*Zt+Rs*cs,Pe[11]=Ii*X+Cs*nt+ki*Bs+Rs*ft,Pe[12]=Wi*T+Kn*Re+zn*at+Wn*es,Pe[13]=Wi*R+Kn*Ue+zn*It+Wn*Ut,Pe[14]=Wi*ne+Kn*ze+zn*Zt+Wn*cs,Pe[15]=Wi*X+Kn*nt+zn*Bs+Wn*ft,this._identityCalculated=!1,this}function J(T){var R=T.props;return this.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15])}function G(){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 O(T){for(var R=0;R<16;){if(T.props[R]!==this.props[R])return!1;R+=1}return!0}function _(T){var R;for(R=0;R<16;R+=1)T.props[R]=this.props[R];return T}function P(T){var R;for(R=0;R<16;R+=1)this.props[R]=T[R]}function $(T,R,ne){return{x:T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12],y:T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13],z:T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]}}function Y(T,R,ne){return T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12]}function Z(T,R,ne){return T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13]}function ae(T,R,ne){return T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]}function Se(){var T=this.props[0]*this.props[5]-this.props[1]*this.props[4],R=this.props[5]/T,ne=-this.props[1]/T,X=-this.props[4]/T,Re=this.props[0]/T,Ue=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/T,ze=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/T,nt=new Ie;return nt.props[0]=R,nt.props[1]=ne,nt.props[4]=X,nt.props[5]=Re,nt.props[12]=Ue,nt.props[13]=ze,nt}function Ke(T){var R=this.getInverseMatrix();return R.applyToPointArray(T[0],T[1],T[2]||0)}function De(T){var R,ne=T.length,X=[];for(R=0;R<ne;R+=1)X[R]=Ke(T[R]);return X}function Te(T,R,ne){var X=y("float32",6);if(this.isIdentity())X[0]=T[0],X[1]=T[1],X[2]=R[0],X[3]=R[1],X[4]=ne[0],X[5]=ne[1];else{var Re=this.props[0],Ue=this.props[1],ze=this.props[4],nt=this.props[5],at=this.props[12],It=this.props[13];X[0]=T[0]*Re+T[1]*ze+at,X[1]=T[0]*Ue+T[1]*nt+It,X[2]=R[0]*Re+R[1]*ze+at,X[3]=R[0]*Ue+R[1]*nt+It,X[4]=ne[0]*Re+ne[1]*ze+at,X[5]=ne[0]*Ue+ne[1]*nt+It}return X}function Ye(T,R,ne){var X;return this.isIdentity()?X=[T,R,ne]:X=[T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12],T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13],T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]],X}function ke(T,R){if(this.isIdentity())return T+","+R;var ne=this.props;return Math.round((T*ne[0]+R*ne[4]+ne[12])*100)/100+","+Math.round((T*ne[1]+R*ne[5]+ne[13])*100)/100}function xe(){for(var T=0,R=this.props,ne="matrix3d(",X=1e4;T<16;)ne+=m(R[T]*X)/X,ne+=T===15?")":",",T+=1;return ne}function M(T){var R=1e4;return T<1e-6&&T>0||T>-1e-6&&T<0?m(T*R)/R:T}function z(){var T=this.props,R=M(T[0]),ne=M(T[1]),X=M(T[4]),Re=M(T[5]),Ue=M(T[12]),ze=M(T[13]);return"matrix("+R+","+ne+","+X+","+Re+","+Ue+","+ze+")"}return function(){this.reset=S,this.rotate=x,this.rotateX=A,this.rotateY=D,this.rotateZ=L,this.skew=V,this.skewFromAxis=ee,this.shear=B,this.scale=I,this.setTransform=H,this.translate=q,this.transform=K,this.multiply=J,this.applyToPoint=$,this.applyToX=Y,this.applyToY=Z,this.applyToZ=ae,this.applyToPointArray=Ye,this.applyToTriplePoints=Te,this.applyToPointStringified=ke,this.toCSS=xe,this.to2dCSS=z,this.clone=_,this.cloneFromProps=P,this.equals=O,this.inversePoints=De,this.inversePoint=Ke,this.getInverseMatrix=Se,this._t=this.transform,this.isIdentity=G,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}}();function lt(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(p){return typeof p}:lt=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},lt(c)}var Fe={};function tt(c){l(c)}function et(){Tt.searchAnimations()}function $t(c){st(c)}function xt(c){ps(c)}function Et(c){return Tt.loadAnimation(c)}function ws(c){if(typeof c=="string")switch(c){case"high":dt(200);break;default:case"medium":dt(50);break;case"low":dt(10);break}else!isNaN(c)&&c>1&&dt(c)}function Ei(){return typeof navigator<"u"}function $n(c,h){c==="expressions"&&Ze(h)}function As(c){switch(c){case"propertyFactory":return Ae;case"shapePropertyFactory":return Ce;case"matrix":return Ie;default:return null}}Fe.play=Tt.play,Fe.pause=Tt.pause,Fe.setLocationHref=tt,Fe.togglePause=Tt.togglePause,Fe.setSpeed=Tt.setSpeed,Fe.setDirection=Tt.setDirection,Fe.stop=Tt.stop,Fe.searchAnimations=et,Fe.registerAnimation=Tt.registerAnimation,Fe.loadAnimation=Et,Fe.setSubframeRendering=$t,Fe.resize=Tt.resize,Fe.goToAndStop=Tt.goToAndStop,Fe.destroy=Tt.destroy,Fe.setQuality=ws,Fe.inBrowser=Ei,Fe.installPlugin=$n,Fe.freeze=Tt.freeze,Fe.unfreeze=Tt.unfreeze,Fe.setVolume=Tt.setVolume,Fe.mute=Tt.mute,Fe.unmute=Tt.unmute,Fe.getRegisteredAnimations=Tt.getRegisteredAnimations,Fe.useWebWorker=a,Fe.setIDPrefix=xt,Fe.__getFactory=As,Fe.version="5.12.2";function em(){document.readyState==="complete"&&(clearInterval(im),et())}function tm(c){for(var h=Nc.split("&"),p=0;p<h.length;p+=1){var m=h[p].split("=");if(decodeURIComponent(m[0])==c)return decodeURIComponent(m[1])}return null}var Nc="";{var Bc=document.getElementsByTagName("script"),sm=Bc.length-1,$c=Bc[sm]||{src:""};Nc=$c.src?$c.src.replace(/^[^\?]+\??/,""):"",tm("renderer")}var im=setInterval(em,100);try{lt(e)!=="object"&&(window.bodymovin=Fe)}catch{}var bi=function(){var c={},h={};c.registerModifier=p,c.getModifier=m;function p(S,x){h[S]||(h[S]=x)}function m(S,x,A){return new h[S](x,A)}return c}();function ms(){}ms.prototype.initModifierProperties=function(){},ms.prototype.addShapeToModifier=function(){},ms.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var h={shape:c.sh,data:c,localShapeCollection:Ee.newShapeCollection()};this.shapes.push(h),this.addShapeToModifier(h),this._isAnimated&&c.setAsAnimated()}},ms.prototype.init=function(c,h){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,h),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ms.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},f([_t],ms);function Ls(){}f([ms],Ls),Ls.prototype.initModifierProperties=function(c,h){this.s=Ae.getProp(c,h.s,0,.01,this),this.e=Ae.getProp(c,h.e,0,.01,this),this.o=Ae.getProp(c,h.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=h.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ls.prototype.addShapeToModifier=function(c){c.pathsData=[]},Ls.prototype.calculateShapeEdges=function(c,h,p,m,S){var x=[];h<=1?x.push({s:c,e:h}):c>=1?x.push({s:c-1,e:h-1}):(x.push({s:c,e:1}),x.push({s:0,e:h-1}));var A=[],D,L=x.length,B;for(D=0;D<L;D+=1)if(B=x[D],!(B.e*S<m||B.s*S>m+p)){var V,ee;B.s*S<=m?V=0:V=(B.s*S-m)/p,B.e*S>=m+p?ee=1:ee=(B.e*S-m)/p,A.push([V,ee])}return A.length||A.push([0,0]),A},Ls.prototype.releasePathsData=function(c){var h,p=c.length;for(h=0;h<p;h+=1)On.release(c[h]);return c.length=0,c},Ls.prototype.processShapes=function(c){var h,p;if(this._mdf||c){var m=this.o.v%360/360;if(m<0&&(m+=1),this.s.v>1?h=1+m:this.s.v<0?h=0+m:h=this.s.v+m,this.e.v>1?p=1+m:this.e.v<0?p=0+m:p=this.e.v+m,h>p){var S=h;h=p,p=S}h=Math.round(h*1e4)*1e-4,p=Math.round(p*1e4)*1e-4,this.sValue=h,this.eValue=p}else h=this.sValue,p=this.eValue;var x,A,D=this.shapes.length,L,B,V,ee,I,H=0;if(p===h)for(A=0;A<D;A+=1)this.shapes[A].localShapeCollection.releaseShapes(),this.shapes[A].shape._mdf=!0,this.shapes[A].shape.paths=this.shapes[A].localShapeCollection,this._mdf&&(this.shapes[A].pathsData.length=0);else if(p===1&&h===0||p===0&&h===1){if(this._mdf)for(A=0;A<D;A+=1)this.shapes[A].pathsData.length=0,this.shapes[A].shape._mdf=!0}else{var q=[],K,J;for(A=0;A<D;A+=1)if(K=this.shapes[A],!K.shape._mdf&&!this._mdf&&!c&&this.m!==2)K.shape.paths=K.localShapeCollection;else{if(x=K.shape.paths,B=x._length,I=0,!K.shape._mdf&&K.pathsData.length)I=K.totalShapeLength;else{for(V=this.releasePathsData(K.pathsData),L=0;L<B;L+=1)ee=gs.getSegmentsLength(x.shapes[L]),V.push(ee),I+=ee.totalLength;K.totalShapeLength=I,K.pathsData=V}H+=I,K.shape._mdf=!0}var G=h,O=p,_=0,P;for(A=D-1;A>=0;A-=1)if(K=this.shapes[A],K.shape._mdf){for(J=K.localShapeCollection,J.releaseShapes(),this.m===2&&D>1?(P=this.calculateShapeEdges(h,p,K.totalShapeLength,_,H),_+=K.totalShapeLength):P=[[G,O]],B=P.length,L=0;L<B;L+=1){G=P[L][0],O=P[L][1],q.length=0,O<=1?q.push({s:K.totalShapeLength*G,e:K.totalShapeLength*O}):G>=1?q.push({s:K.totalShapeLength*(G-1),e:K.totalShapeLength*(O-1)}):(q.push({s:K.totalShapeLength*G,e:K.totalShapeLength}),q.push({s:0,e:K.totalShapeLength*(O-1)}));var $=this.addShapes(K,q[0]);if(q[0].s!==q[0].e){if(q.length>1){var Y=K.shape.paths.shapes[K.shape.paths._length-1];if(Y.c){var Z=$.pop();this.addPaths($,J),$=this.addShapes(K,q[1],Z)}else this.addPaths($,J),$=this.addShapes(K,q[1])}this.addPaths($,J)}}K.shape.paths=J}}},Ls.prototype.addPaths=function(c,h){var p,m=c.length;for(p=0;p<m;p+=1)h.addShape(c[p])},Ls.prototype.addSegment=function(c,h,p,m,S,x,A){S.setXYAt(h[0],h[1],"o",x),S.setXYAt(p[0],p[1],"i",x+1),A&&S.setXYAt(c[0],c[1],"v",x),S.setXYAt(m[0],m[1],"v",x+1)},Ls.prototype.addSegmentFromArray=function(c,h,p,m){h.setXYAt(c[1],c[5],"o",p),h.setXYAt(c[2],c[6],"i",p+1),m&&h.setXYAt(c[0],c[4],"v",p),h.setXYAt(c[3],c[7],"v",p+1)},Ls.prototype.addShapes=function(c,h,p){var m=c.pathsData,S=c.shape.paths.shapes,x,A=c.shape.paths._length,D,L,B=0,V,ee,I,H,q=[],K,J=!0;for(p?(ee=p._length,K=p._length):(p=Dt.newElement(),ee=0,K=0),q.push(p),x=0;x<A;x+=1){for(I=m[x].lengths,p.c=S[x].c,L=S[x].c?I.length:I.length+1,D=1;D<L;D+=1)if(V=I[D-1],B+V.addedLength<h.s)B+=V.addedLength,p.c=!1;else if(B>h.e){p.c=!1;break}else h.s<=B&&h.e>=B+V.addedLength?(this.addSegment(S[x].v[D-1],S[x].o[D-1],S[x].i[D],S[x].v[D],p,ee,J),J=!1):(H=gs.getNewSegment(S[x].v[D-1],S[x].v[D],S[x].o[D-1],S[x].i[D],(h.s-B)/V.addedLength,(h.e-B)/V.addedLength,I[D-1]),this.addSegmentFromArray(H,p,ee,J),J=!1,p.c=!1),B+=V.addedLength,ee+=1;if(S[x].c&&I.length){if(V=I[D-1],B<=h.e){var G=I[D-1].addedLength;h.s<=B&&h.e>=B+G?(this.addSegment(S[x].v[D-1],S[x].o[D-1],S[x].i[0],S[x].v[0],p,ee,J),J=!1):(H=gs.getNewSegment(S[x].v[D-1],S[x].v[0],S[x].o[D-1],S[x].i[0],(h.s-B)/G,(h.e-B)/G,I[D-1]),this.addSegmentFromArray(H,p,ee,J),J=!1,p.c=!1)}else p.c=!1;B+=V.addedLength,ee+=1}if(p._length&&(p.setXYAt(p.v[K][0],p.v[K][1],"i",K),p.setXYAt(p.v[p._length-1][0],p.v[p._length-1][1],"o",p._length-1)),B>h.e)break;x<A-1&&(p=Dt.newElement(),J=!0,q.push(p),ee=0)}return q};function qr(){}f([ms],qr),qr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amount=Ae.getProp(c,h.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qr.prototype.processPath=function(c,h){var p=h/100,m=[0,0],S=c._length,x=0;for(x=0;x<S;x+=1)m[0]+=c.v[x][0],m[1]+=c.v[x][1];m[0]/=S,m[1]/=S;var A=Dt.newElement();A.c=c.c;var D,L,B,V,ee,I;for(x=0;x<S;x+=1)D=c.v[x][0]+(m[0]-c.v[x][0])*p,L=c.v[x][1]+(m[1]-c.v[x][1])*p,B=c.o[x][0]+(m[0]-c.o[x][0])*-p,V=c.o[x][1]+(m[1]-c.o[x][1])*-p,ee=c.i[x][0]+(m[0]-c.i[x][0])*-p,I=c.i[x][1]+(m[1]-c.i[x][1])*-p,A.setTripleAt(D,L,B,V,ee,I,x);return A},qr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amount.v;if(A!==0){var D,L;for(p=0;p<m;p+=1){if(D=this.shapes[p],L=D.localShapeCollection,!(!D.shape._mdf&&!this._mdf&&!c))for(L.releaseShapes(),D.shape._mdf=!0,h=D.shape.paths.shapes,x=D.shape.paths._length,S=0;S<x;S+=1)L.addShape(this.processPath(h[S],A));D.shape.paths=D.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var lo=function(){var c=[0,0];function h(L){var B=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||B,this.a&&L.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&L.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&L.skewFromAxis(-this.sk.v,this.sa.v),this.r?L.rotate(-this.r.v):L.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?L.translate(this.px.v,this.py.v,-this.pz.v):L.translate(this.px.v,this.py.v,0):L.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function p(L){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||L){var B;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 V,ee;if(B=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(V=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/B,0),ee=this.p.getValueAtTime(this.p.keyframes[0].t/B,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(V=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/B,0),ee=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/B,0)):(V=this.p.pv,ee=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/B,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){V=[],ee=[];var I=this.px,H=this.py;I._caching.lastFrame+I.offsetTime<=I.keyframes[0].t?(V[0]=I.getValueAtTime((I.keyframes[0].t+.01)/B,0),V[1]=H.getValueAtTime((H.keyframes[0].t+.01)/B,0),ee[0]=I.getValueAtTime(I.keyframes[0].t/B,0),ee[1]=H.getValueAtTime(H.keyframes[0].t/B,0)):I._caching.lastFrame+I.offsetTime>=I.keyframes[I.keyframes.length-1].t?(V[0]=I.getValueAtTime(I.keyframes[I.keyframes.length-1].t/B,0),V[1]=H.getValueAtTime(H.keyframes[H.keyframes.length-1].t/B,0),ee[0]=I.getValueAtTime((I.keyframes[I.keyframes.length-1].t-.01)/B,0),ee[1]=H.getValueAtTime((H.keyframes[H.keyframes.length-1].t-.01)/B,0)):(V=[I.pv,H.pv],ee[0]=I.getValueAtTime((I._caching.lastFrame+I.offsetTime-.01)/B,I.offsetTime),ee[1]=H.getValueAtTime((H._caching.lastFrame+H.offsetTime-.01)/B,H.offsetTime))}else ee=c,V=ee;this.v.rotate(-Math.atan2(V[1]-ee[1],V[0]-ee[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}}function m(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function S(){}function x(L){this._addDynamicProperty(L),this.elem.addDynamicProperty(L),this._isDirty=!0}function A(L,B,V){if(this.elem=L,this.frameId=-1,this.propType="transform",this.data=B,this.v=new Ie,this.pre=new Ie,this.appliedTransformations=0,this.initDynamicPropertyContainer(V||L),B.p&&B.p.s?(this.px=Ae.getProp(L,B.p.x,0,0,this),this.py=Ae.getProp(L,B.p.y,0,0,this),B.p.z&&(this.pz=Ae.getProp(L,B.p.z,0,0,this))):this.p=Ae.getProp(L,B.p||{k:[0,0,0]},1,0,this),B.rx){if(this.rx=Ae.getProp(L,B.rx,0,Q,this),this.ry=Ae.getProp(L,B.ry,0,Q,this),this.rz=Ae.getProp(L,B.rz,0,Q,this),B.or.k[0].ti){var ee,I=B.or.k.length;for(ee=0;ee<I;ee+=1)B.or.k[ee].to=null,B.or.k[ee].ti=null}this.or=Ae.getProp(L,B.or,1,Q,this),this.or.sh=!0}else this.r=Ae.getProp(L,B.r||{k:0},0,Q,this);B.sk&&(this.sk=Ae.getProp(L,B.sk,0,Q,this),this.sa=Ae.getProp(L,B.sa,0,Q,this)),this.a=Ae.getProp(L,B.a||{k:[0,0,0]},1,0,this),this.s=Ae.getProp(L,B.s||{k:[100,100,100]},1,.01,this),B.o?this.o=Ae.getProp(L,B.o,0,.01,L):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}A.prototype={applyToMatrix:h,getValue:p,precalculateMatrix:m,autoOrient:S},f([_t],A),A.prototype.addDynamicProperty=x,A.prototype._addDynamicProperty=_t.prototype.addDynamicProperty;function D(L,B,V){return new A(L,B,V)}return{getTransformProperty:D}}();function Ns(){}f([ms],Ns),Ns.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.c=Ae.getProp(c,h.c,0,null,this),this.o=Ae.getProp(c,h.o,0,null,this),this.tr=lo.getTransformProperty(c,h.tr,this),this.so=Ae.getProp(c,h.tr.so,0,.01,this),this.eo=Ae.getProp(c,h.tr.eo,0,.01,this),this.data=h,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ie,this.rMatrix=new Ie,this.sMatrix=new Ie,this.tMatrix=new Ie,this.matrix=new Ie},Ns.prototype.applyTransforms=function(c,h,p,m,S,x){var A=x?-1:1,D=m.s.v[0]+(1-m.s.v[0])*(1-S),L=m.s.v[1]+(1-m.s.v[1])*(1-S);c.translate(m.p.v[0]*A*S,m.p.v[1]*A*S,m.p.v[2]),h.translate(-m.a.v[0],-m.a.v[1],m.a.v[2]),h.rotate(-m.r.v*A*S),h.translate(m.a.v[0],m.a.v[1],m.a.v[2]),p.translate(-m.a.v[0],-m.a.v[1],m.a.v[2]),p.scale(x?1/D:D,x?1/L:L),p.translate(m.a.v[0],m.a.v[1],m.a.v[2])},Ns.prototype.init=function(c,h,p,m){for(this.elem=c,this.arr=h,this.pos=p,this.elemsData=m,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,h[p]);p>0;)p-=1,this._elements.unshift(h[p]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ns.prototype.resetElements=function(c){var h,p=c.length;for(h=0;h<p;h+=1)c[h]._processed=!1,c[h].ty==="gr"&&this.resetElements(c[h].it)},Ns.prototype.cloneElements=function(c){var h=JSON.parse(JSON.stringify(c));return this.resetElements(h),h},Ns.prototype.changeGroupRender=function(c,h){var p,m=c.length;for(p=0;p<m;p+=1)c[p]._render=h,c[p].ty==="gr"&&this.changeGroupRender(c[p].it,h)},Ns.prototype.processShapes=function(c){var h,p,m,S,x,A=!1;if(this._mdf||c){var D=Math.ceil(this.c.v);if(this._groups.length<D){for(;this._groups.length<D;){var L={it:this.cloneElements(this._elements),ty:"gr"};L.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,L),this._groups.splice(0,0,L),this._currentCopies+=1}this.elem.reloadShapes(),A=!0}x=0;var B;for(m=0;m<=this._groups.length-1;m+=1){if(B=x<D,this._groups[m]._render=B,this.changeGroupRender(this._groups[m].it,B),!B){var V=this.elemsData[m].it,ee=V[V.length-1];ee.transform.op.v!==0?(ee.transform.op._mdf=!0,ee.transform.op.v=0):ee.transform.op._mdf=!1}x+=1}this._currentCopies=D;var I=this.o.v,H=I%1,q=I>0?Math.floor(I):Math.ceil(I),K=this.pMatrix.props,J=this.rMatrix.props,G=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var O=0;if(I>0){for(;O<q;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),O+=1;H&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,H,!1),O+=H)}else if(I<0){for(;O>q;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),O-=1;H&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-H,!0),O-=H)}m=this.data.m===1?0:this._currentCopies-1,S=this.data.m===1?1:-1,x=this._currentCopies;for(var _,P;x;){if(h=this.elemsData[m].it,p=h[h.length-1].transform.mProps.v.props,P=p.length,h[h.length-1].transform.mProps._mdf=!0,h[h.length-1].transform.op._mdf=!0,h[h.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(m/(this._currentCopies-1)),O!==0){for((m!==0&&S===1||m!==this._currentCopies-1&&S===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7],J[8],J[9],J[10],J[11],J[12],J[13],J[14],J[15]),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15]),_=0;_<P;_+=1)p[_]=this.matrix.props[_];this.matrix.reset()}else for(this.matrix.reset(),_=0;_<P;_+=1)p[_]=this.matrix.props[_];O+=1,x-=1,m+=S}}else for(x=this._currentCopies,m=0,S=1;x;)h=this.elemsData[m].it,p=h[h.length-1].transform.mProps.v.props,h[h.length-1].transform.mProps._mdf=!1,h[h.length-1].transform.op._mdf=!1,x-=1,m+=S;return A},Ns.prototype.addShape=function(){};function Yr(){}f([ms],Yr),Yr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.rd=Ae.getProp(c,h.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Yr.prototype.processPath=function(c,h){var p=Dt.newElement();p.c=c.c;var m,S=c._length,x,A,D,L,B,V,ee=0,I,H,q,K,J,G;for(m=0;m<S;m+=1)x=c.v[m],D=c.o[m],A=c.i[m],x[0]===D[0]&&x[1]===D[1]&&x[0]===A[0]&&x[1]===A[1]?(m===0||m===S-1)&&!c.c?(p.setTripleAt(x[0],x[1],D[0],D[1],A[0],A[1],ee),ee+=1):(m===0?L=c.v[S-1]:L=c.v[m-1],B=Math.sqrt(Math.pow(x[0]-L[0],2)+Math.pow(x[1]-L[1],2)),V=B?Math.min(B/2,h)/B:0,J=x[0]+(L[0]-x[0])*V,I=J,G=x[1]-(x[1]-L[1])*V,H=G,q=I-(I-x[0])*le,K=H-(H-x[1])*le,p.setTripleAt(I,H,q,K,J,G,ee),ee+=1,m===S-1?L=c.v[0]:L=c.v[m+1],B=Math.sqrt(Math.pow(x[0]-L[0],2)+Math.pow(x[1]-L[1],2)),V=B?Math.min(B/2,h)/B:0,q=x[0]+(L[0]-x[0])*V,I=q,K=x[1]+(L[1]-x[1])*V,H=K,J=I-(I-x[0])*le,G=H-(H-x[1])*le,p.setTripleAt(I,H,q,K,J,G,ee),ee+=1):(p.setTripleAt(c.v[m][0],c.v[m][1],c.o[m][0],c.o[m][1],c.i[m][0],c.i[m][1],ee),ee+=1);return p},Yr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.rd.v;if(A!==0){var D,L;for(p=0;p<m;p+=1){if(D=this.shapes[p],L=D.localShapeCollection,!(!D.shape._mdf&&!this._mdf&&!c))for(L.releaseShapes(),D.shape._mdf=!0,h=D.shape.paths.shapes,x=D.shape.paths._length,S=0;S<x;S+=1)L.addShape(this.processPath(h[S],A));D.shape.paths=D.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Un(c,h){return Math.abs(c-h)*1e5<=Math.min(Math.abs(c),Math.abs(h))}function co(c){return Math.abs(c)<=1e-5}function Uc(c,h,p){return c*(1-p)+h*p}function Ti(c,h,p){return[Uc(c[0],h[0],p),Uc(c[1],h[1],p)]}function rm(c,h,p){if(c===0)return[];var m=h*h-4*c*p;if(m<0)return[];var S=-h/(2*c);if(m===0)return[S];var x=Math.sqrt(m)/(2*c);return[S-x,S+x]}function Gc(c,h,p,m){return[-c+3*h-3*p+m,3*c-6*h+3*p,-3*c+3*h,c]}function Vc(c){return new wt(c,c,c,c,!1)}function wt(c,h,p,m,S){S&&vr(c,h)&&(h=Ti(c,m,1/3)),S&&vr(p,m)&&(p=Ti(c,m,2/3));var x=Gc(c[0],h[0],p[0],m[0]),A=Gc(c[1],h[1],p[1],m[1]);this.a=[x[0],A[0]],this.b=[x[1],A[1]],this.c=[x[2],A[2]],this.d=[x[3],A[3]],this.points=[c,h,p,m]}wt.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},wt.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},wt.prototype.tangentAngle=function(c){var h=this.derivative(c);return Math.atan2(h[1],h[0])},wt.prototype.normalAngle=function(c){var h=this.derivative(c);return Math.atan2(h[0],h[1])},wt.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(co(c))return[];var h=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,p=h*h-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(p<0)return[];var m=Math.sqrt(p);return co(m)?m>0&&m<1?[h]:[]:[h-m,h+m].filter(function(S){return S>0&&S<1})},wt.prototype.split=function(c){if(c<=0)return[Vc(this.points[0]),this];if(c>=1)return[this,Vc(this.points[this.points.length-1])];var h=Ti(this.points[0],this.points[1],c),p=Ti(this.points[1],this.points[2],c),m=Ti(this.points[2],this.points[3],c),S=Ti(h,p,c),x=Ti(p,m,c),A=Ti(S,x,c);return[new wt(this.points[0],h,S,A,!0),new wt(A,x,m,this.points[3],!0)]};function Hc(c,h){var p=c.points[0][h],m=c.points[c.points.length-1][h];if(p>m){var S=m;m=p,p=S}for(var x=rm(3*c.a[h],2*c.b[h],c.c[h]),A=0;A<x.length;A+=1)if(x[A]>0&&x[A]<1){var D=c.point(x[A])[h];D<p?p=D:D>m&&(m=D)}return{min:p,max:m}}wt.prototype.bounds=function(){return{x:Hc(this,0),y:Hc(this,1)}},wt.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function Gn(c,h,p){var m=c.boundingBox();return{cx:m.cx,cy:m.cy,width:m.width,height:m.height,bez:c,t:(h+p)/2,t1:h,t2:p}}function jc(c){var h=c.bez.split(.5);return[Gn(h[0],c.t1,c.t),Gn(h[1],c.t,c.t2)]}function nm(c,h){return Math.abs(c.cx-h.cx)*2<c.width+h.width&&Math.abs(c.cy-h.cy)*2<c.height+h.height}function Xr(c,h,p,m,S,x){if(nm(c,h)){if(p>=x||c.width<=m&&c.height<=m&&h.width<=m&&h.height<=m){S.push([c.t,h.t]);return}var A=jc(c),D=jc(h);Xr(A[0],D[0],p+1,m,S,x),Xr(A[0],D[1],p+1,m,S,x),Xr(A[1],D[0],p+1,m,S,x),Xr(A[1],D[1],p+1,m,S,x)}}wt.prototype.intersections=function(c,h,p){h===void 0&&(h=2),p===void 0&&(p=7);var m=[];return Xr(Gn(this,0,1),Gn(c,0,1),0,h,m,p),m},wt.shapeSegment=function(c,h){var p=(h+1)%c.length();return new wt(c.v[h],c.o[h],c.i[p],c.v[p],!0)},wt.shapeSegmentInverted=function(c,h){var p=(h+1)%c.length();return new wt(c.v[p],c.i[p],c.o[h],c.v[h],!0)};function uo(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function Vn(c,h,p,m){var S=[c[0],c[1],1],x=[h[0],h[1],1],A=[p[0],p[1],1],D=[m[0],m[1],1],L=uo(uo(S,x),uo(A,D));return co(L[2])?null:[L[0]/L[2],L[1]/L[2]]}function mr(c,h,p){return[c[0]+Math.cos(h)*p,c[1]-Math.sin(h)*p]}function ho(c,h){return Math.hypot(c[0]-h[0],c[1]-h[1])}function vr(c,h){return Un(c[0],h[0])&&Un(c[1],h[1])}function Qr(){}f([ms],Qr),Qr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amplitude=Ae.getProp(c,h.s,0,null,this),this.frequency=Ae.getProp(c,h.r,0,null,this),this.pointsType=Ae.getProp(c,h.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Kc(c,h,p,m,S,x,A){var D=p-Math.PI/2,L=p+Math.PI/2,B=h[0]+Math.cos(p)*m*S,V=h[1]-Math.sin(p)*m*S;c.setTripleAt(B,V,B+Math.cos(D)*x,V-Math.sin(D)*x,B+Math.cos(L)*A,V-Math.sin(L)*A,c.length())}function am(c,h){var p=[h[0]-c[0],h[1]-c[1]],m=-Math.PI*.5,S=[Math.cos(m)*p[0]-Math.sin(m)*p[1],Math.sin(m)*p[0]+Math.cos(m)*p[1]];return S}function om(c,h){var p=h===0?c.length()-1:h-1,m=(h+1)%c.length(),S=c.v[p],x=c.v[m],A=am(S,x);return Math.atan2(0,1)-Math.atan2(A[1],A[0])}function zc(c,h,p,m,S,x,A){var D=om(h,p),L=h.v[p%h._length],B=h.v[p===0?h._length-1:p-1],V=h.v[(p+1)%h._length],ee=x===2?Math.sqrt(Math.pow(L[0]-B[0],2)+Math.pow(L[1]-B[1],2)):0,I=x===2?Math.sqrt(Math.pow(L[0]-V[0],2)+Math.pow(L[1]-V[1],2)):0;Kc(c,h.v[p%h._length],D,A,m,I/((S+1)*2),ee/((S+1)*2))}function lm(c,h,p,m,S,x){for(var A=0;A<m;A+=1){var D=(A+1)/(m+1),L=S===2?Math.sqrt(Math.pow(h.points[3][0]-h.points[0][0],2)+Math.pow(h.points[3][1]-h.points[0][1],2)):0,B=h.normalAngle(D),V=h.point(D);Kc(c,V,B,x,p,L/((m+1)*2),L/((m+1)*2)),x=-x}return x}Qr.prototype.processPath=function(c,h,p,m){var S=c._length,x=Dt.newElement();if(x.c=c.c,c.c||(S-=1),S===0)return x;var A=-1,D=wt.shapeSegment(c,0);zc(x,c,0,h,p,m,A);for(var L=0;L<S;L+=1)A=lm(x,D,h,p,m,-A),L===S-1&&!c.c?D=null:D=wt.shapeSegment(c,(L+1)%S),zc(x,c,L+1,h,p,m,A);return x},Qr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amplitude.v,D=Math.max(0,Math.round(this.frequency.v)),L=this.pointsType.v;if(A!==0){var B,V;for(p=0;p<m;p+=1){if(B=this.shapes[p],V=B.localShapeCollection,!(!B.shape._mdf&&!this._mdf&&!c))for(V.releaseShapes(),B.shape._mdf=!0,h=B.shape.paths.shapes,x=B.shape.paths._length,S=0;S<x;S+=1)V.addShape(this.processPath(h[S],A,D,L));B.shape.paths=B.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function fo(c,h,p){var m=Math.atan2(h[0]-c[0],h[1]-c[1]);return[mr(c,m,p),mr(h,m,p)]}function yr(c,h){var p,m,S,x,A,D,L;L=fo(c.points[0],c.points[1],h),p=L[0],m=L[1],L=fo(c.points[1],c.points[2],h),S=L[0],x=L[1],L=fo(c.points[2],c.points[3],h),A=L[0],D=L[1];var B=Vn(p,m,S,x);B===null&&(B=m);var V=Vn(A,D,S,x);return V===null&&(V=A),new wt(p,B,V,D)}function Wc(c,h,p,m,S){var x=h.points[3],A=p.points[0];if(m===3||vr(x,A))return x;if(m===2){var D=-h.tangentAngle(1),L=-p.tangentAngle(0)+Math.PI,B=Vn(x,mr(x,D+Math.PI/2,100),A,mr(A,D+Math.PI/2,100)),V=B?ho(B,x):ho(x,A)/2,ee=mr(x,D,2*V*le);return c.setXYAt(ee[0],ee[1],"o",c.length()-1),ee=mr(A,L,2*V*le),c.setTripleAt(A[0],A[1],A[0],A[1],ee[0],ee[1],c.length()),A}var I=vr(x,h.points[2])?h.points[0]:h.points[2],H=vr(A,p.points[1])?p.points[3]:p.points[1],q=Vn(I,x,A,H);return q&&ho(q,x)<S?(c.setTripleAt(q[0],q[1],q[0],q[1],q[0],q[1],c.length()),q):x}function qc(c,h){var p=c.intersections(h);return p.length&&Un(p[0][0],1)&&p.shift(),p.length?p[0]:null}function Yc(c,h){var p=c.slice(),m=h.slice(),S=qc(c[c.length-1],h[0]);return S&&(p[c.length-1]=c[c.length-1].split(S[0])[0],m[0]=h[0].split(S[1])[1]),c.length>1&&h.length>1&&(S=qc(c[0],h[h.length-1]),S)?[[c[0].split(S[0])[0]],[h[h.length-1].split(S[1])[1]]]:[p,m]}function cm(c){for(var h,p=1;p<c.length;p+=1)h=Yc(c[p-1],c[p]),c[p-1]=h[0],c[p]=h[1];return c.length>1&&(h=Yc(c[c.length-1],c[0]),c[c.length-1]=h[0],c[0]=h[1]),c}function Xc(c,h){var p=c.inflectionPoints(),m,S,x,A;if(p.length===0)return[yr(c,h)];if(p.length===1||Un(p[1],1))return x=c.split(p[0]),m=x[0],S=x[1],[yr(m,h),yr(S,h)];x=c.split(p[0]),m=x[0];var D=(p[1]-p[0])/(1-p[0]);return x=x[1].split(D),A=x[0],S=x[1],[yr(m,h),yr(A,h),yr(S,h)]}function Jr(){}f([ms],Jr),Jr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amount=Ae.getProp(c,h.a,0,null,this),this.miterLimit=Ae.getProp(c,h.ml,0,null,this),this.lineJoin=h.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Jr.prototype.processPath=function(c,h,p,m){var S=Dt.newElement();S.c=c.c;var x=c.length();c.c||(x-=1);var A,D,L,B=[];for(A=0;A<x;A+=1)L=wt.shapeSegment(c,A),B.push(Xc(L,h));if(!c.c)for(A=x-1;A>=0;A-=1)L=wt.shapeSegmentInverted(c,A),B.push(Xc(L,h));B=cm(B);var V=null,ee=null;for(A=0;A<B.length;A+=1){var I=B[A];for(ee&&(V=Wc(S,ee,I[0],p,m)),ee=I[I.length-1],D=0;D<I.length;D+=1)L=I[D],V&&vr(L.points[0],V)?S.setXYAt(L.points[1][0],L.points[1][1],"o",S.length()-1):S.setTripleAt(L.points[0][0],L.points[0][1],L.points[1][0],L.points[1][1],L.points[0][0],L.points[0][1],S.length()),S.setTripleAt(L.points[3][0],L.points[3][1],L.points[3][0],L.points[3][1],L.points[2][0],L.points[2][1],S.length()),V=L.points[3]}return B.length&&Wc(S,ee,B[0][0],p,m),S},Jr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amount.v,D=this.miterLimit.v,L=this.lineJoin;if(A!==0){var B,V;for(p=0;p<m;p+=1){if(B=this.shapes[p],V=B.localShapeCollection,!(!B.shape._mdf&&!this._mdf&&!c))for(V.releaseShapes(),B.shape._mdf=!0,h=B.shape.paths.shapes,x=B.shape.paths._length,S=0;S<x;S+=1)V.addShape(this.processPath(h[S],A,L,D));B.shape.paths=B.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Qc(c){for(var h=c.fStyle?c.fStyle.split(" "):[],p="normal",m="normal",S=h.length,x,A=0;A<S;A+=1)switch(x=h[A].toLowerCase(),x){case"italic":m="italic";break;case"bold":p="700";break;case"black":p="900";break;case"medium":p="500";break;case"regular":case"normal":p="400";break;case"light":case"thin":p="200";break}return{style:m,weight:c.fWeight||p}}var ji=function(){var c=5e3,h={w:0,size:0,shapes:[],data:{shapes:[]}},p=[];p=p.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 m=127988,S=917631,x=917601,A=917626,D=65039,L=8205,B=127462,V=127487,ee=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function I(M){var z=M.split(","),T,R=z.length,ne=[];for(T=0;T<R;T+=1)z[T]!=="sans-serif"&&z[T]!=="monospace"&&ne.push(z[T]);return ne.join(",")}function H(M,z){var T=d("span");T.setAttribute("aria-hidden",!0),T.style.fontFamily=z;var R=d("span");R.innerText="giItT1WQy@!-/#",T.style.position="absolute",T.style.left="-10000px",T.style.top="-10000px",T.style.fontSize="300px",T.style.fontVariant="normal",T.style.fontStyle="normal",T.style.fontWeight="normal",T.style.letterSpacing="0",T.appendChild(R),document.body.appendChild(T);var ne=R.offsetWidth;return R.style.fontFamily=I(M)+", "+z,{node:R,w:ne,parent:T}}function q(){var M,z=this.fonts.length,T,R,ne=z;for(M=0;M<z;M+=1)this.fonts[M].loaded?ne-=1:this.fonts[M].fOrigin==="n"||this.fonts[M].origin===0?this.fonts[M].loaded=!0:(T=this.fonts[M].monoCase.node,R=this.fonts[M].monoCase.w,T.offsetWidth!==R?(ne-=1,this.fonts[M].loaded=!0):(T=this.fonts[M].sansCase.node,R=this.fonts[M].sansCase.w,T.offsetWidth!==R&&(ne-=1,this.fonts[M].loaded=!0)),this.fonts[M].loaded&&(this.fonts[M].sansCase.parent.parentNode.removeChild(this.fonts[M].sansCase.parent),this.fonts[M].monoCase.parent.parentNode.removeChild(this.fonts[M].monoCase.parent)));ne!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function K(M,z){var T=document.body&&z?"svg":"canvas",R,ne=Qc(M);if(T==="svg"){var X=Be("text");X.style.fontSize="100px",X.setAttribute("font-family",M.fFamily),X.setAttribute("font-style",ne.style),X.setAttribute("font-weight",ne.weight),X.textContent="1",M.fClass?(X.style.fontFamily="inherit",X.setAttribute("class",M.fClass)):X.style.fontFamily=M.fFamily,z.appendChild(X),R=X}else{var Re=new OffscreenCanvas(500,500).getContext("2d");Re.font=ne.style+" "+ne.weight+" 100px "+M.fFamily,R=Re}function Ue(ze){return T==="svg"?(R.textContent=ze,R.getComputedTextLength()):R.measureText(ze).width}return{measureText:Ue}}function J(M,z){if(!M){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=M.list;return}if(!document.body){this.isLoaded=!0,M.list.forEach(function(Zt){Zt.helper=K(Zt),Zt.cache={}}),this.fonts=M.list;return}var T=M.list,R,ne=T.length,X=ne;for(R=0;R<ne;R+=1){var Re=!0,Ue,ze;if(T[R].loaded=!1,T[R].monoCase=H(T[R].fFamily,"monospace"),T[R].sansCase=H(T[R].fFamily,"sans-serif"),!T[R].fPath)T[R].loaded=!0,X-=1;else if(T[R].fOrigin==="p"||T[R].origin===3){if(Ue=document.querySelectorAll('style[f-forigin="p"][f-family="'+T[R].fFamily+'"], style[f-origin="3"][f-family="'+T[R].fFamily+'"]'),Ue.length>0&&(Re=!1),Re){var nt=d("style");nt.setAttribute("f-forigin",T[R].fOrigin),nt.setAttribute("f-origin",T[R].origin),nt.setAttribute("f-family",T[R].fFamily),nt.type="text/css",nt.innerText="@font-face {font-family: "+T[R].fFamily+"; font-style: normal; src: url('"+T[R].fPath+"');}",z.appendChild(nt)}}else if(T[R].fOrigin==="g"||T[R].origin===1){for(Ue=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ze=0;ze<Ue.length;ze+=1)Ue[ze].href.indexOf(T[R].fPath)!==-1&&(Re=!1);if(Re){var at=d("link");at.setAttribute("f-forigin",T[R].fOrigin),at.setAttribute("f-origin",T[R].origin),at.type="text/css",at.rel="stylesheet",at.href=T[R].fPath,document.body.appendChild(at)}}else if(T[R].fOrigin==="t"||T[R].origin===2){for(Ue=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ze=0;ze<Ue.length;ze+=1)T[R].fPath===Ue[ze].src&&(Re=!1);if(Re){var It=d("link");It.setAttribute("f-forigin",T[R].fOrigin),It.setAttribute("f-origin",T[R].origin),It.setAttribute("rel","stylesheet"),It.setAttribute("href",T[R].fPath),z.appendChild(It)}}T[R].helper=K(T[R],z),T[R].cache={},this.fonts.push(T[R])}X===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function G(M){if(M){this.chars||(this.chars=[]);var z,T=M.length,R,ne=this.chars.length,X;for(z=0;z<T;z+=1){for(R=0,X=!1;R<ne;)this.chars[R].style===M[z].style&&this.chars[R].fFamily===M[z].fFamily&&this.chars[R].ch===M[z].ch&&(X=!0),R+=1;X||(this.chars.push(M[z]),ne+=1)}}}function O(M,z,T){for(var R=0,ne=this.chars.length;R<ne;){if(this.chars[R].ch===M&&this.chars[R].style===z&&this.chars[R].fFamily===T)return this.chars[R];R+=1}return(typeof M=="string"&&M.charCodeAt(0)!==13||!M)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",M,z,T)),h}function _(M,z,T){var R=this.getFontByName(z),ne=M;if(!R.cache[ne]){var X=R.helper;if(M===" "){var Re=X.measureText("|"+M+"|"),Ue=X.measureText("||");R.cache[ne]=(Re-Ue)/100}else R.cache[ne]=X.measureText(M)/100}return R.cache[ne]*T}function P(M){for(var z=0,T=this.fonts.length;z<T;){if(this.fonts[z].fName===M)return this.fonts[z];z+=1}return this.fonts[0]}function $(M){var z=0,T=M.charCodeAt(0);if(T>=55296&&T<=56319){var R=M.charCodeAt(1);R>=56320&&R<=57343&&(z=(T-55296)*1024+R-56320+65536)}return z}function Y(M,z){var T=M.toString(16)+z.toString(16);return ee.indexOf(T)!==-1}function Z(M){return M===L}function ae(M){return M===D}function Se(M){var z=$(M);return z>=B&&z<=V}function Ke(M){return Se(M.substr(0,2))&&Se(M.substr(2,2))}function De(M){return p.indexOf(M)!==-1}function Te(M,z){var T=$(M.substr(z,2));if(T!==m)return!1;var R=0;for(z+=2;R<5;){if(T=$(M.substr(z,2)),T<x||T>A)return!1;R+=1,z+=2}return $(M.substr(z,2))===S}function Ye(){this.isLoaded=!0}var ke=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)};ke.isModifier=Y,ke.isZeroWidthJoiner=Z,ke.isFlagEmoji=Ke,ke.isRegionalCode=Se,ke.isCombinedCharacter=De,ke.isRegionalFlag=Te,ke.isVariationSelector=ae,ke.BLACK_FLAG_CODE_POINT=m;var xe={addChars:G,addFonts:J,getCharData:O,getFontByName:P,measureText:_,checkLoadedFonts:q,setIsLoaded:Ye};return ke.prototype=xe,ke}();function Jc(c){this.animationData=c}Jc.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function um(c){return new Jc(c)}function Hn(){}Hn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(h){this.renderableComponents.indexOf(h)===-1&&this.renderableComponents.push(h)},removeRenderableComponent:function(h){this.renderableComponents.indexOf(h)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(h),1)},prepareRenderableFrame:function(h){this.checkLayerLimits(h)},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(h){this.data.ip-this.data.st<=h&&this.data.op-this.data.st>h?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 h,p=this.renderableComponents.length;for(h=0;h<p;h+=1)this.renderableComponents[h].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 po=function(){var c={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"};return function(h){return c[h]||""}}();function hm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function dm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function fm(c,h,p){this.p=Ae.getProp(h,c.v,1,0,p)}function pm(c,h,p){this.p=Ae.getProp(h,c.v,1,0,p)}function gm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function mm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function vm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function ym(){this.p={}}function Zc(c,h){var p=c.ef||[];this.effectElements=[];var m,S=p.length,x;for(m=0;m<S;m+=1)x=new Zr(p[m],h),this.effectElements.push(x)}function Zr(c,h){this.init(c,h)}f([_t],Zr),Zr.prototype.getValue=Zr.prototype.iterateDynamicProperties,Zr.prototype.init=function(c,h){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(h);var p,m=this.data.ef.length,S,x=this.data.ef;for(p=0;p<m;p+=1){switch(S=null,x[p].ty){case 0:S=new hm(x[p],h,this);break;case 1:S=new dm(x[p],h,this);break;case 2:S=new fm(x[p],h,this);break;case 3:S=new pm(x[p],h,this);break;case 4:case 7:S=new vm(x[p],h,this);break;case 10:S=new gm(x[p],h,this);break;case 11:S=new mm(x[p],h,this);break;case 5:S=new Zc(x[p],h);break;default:S=new ym(x[p]);break}S&&this.effectElements.push(S)}};function wi(){}wi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var h=0,p=this.data.masksProperties.length;h<p;){if(this.data.masksProperties[h].mode!=="n"&&this.data.masksProperties[h].cl!==!1)return!0;h+=1}return!1},initExpressions:function(){},setBlendMode:function(){var h=po(this.data.bm),p=this.baseElement||this.layerElement;p.style["mix-blend-mode"]=h},initBaseData:function(h,p,m){this.globalData=p,this.comp=m,this.data=h,this.layerId=we(),this.data.sr||(this.data.sr=1),this.effectsManager=new Zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ai(){}Ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(h,p){var m,S=this.dynamicProperties.length;for(m=0;m<S;m+=1)(p||this._isParent&&this.dynamicProperties[m].propType==="transform")&&(this.dynamicProperties[m].getValue(),this.dynamicProperties[m]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(h){this.dynamicProperties.indexOf(h)===-1&&this.dynamicProperties.push(h)}};function Li(c,h,p){this.initFrame(),this.initRenderable(),this.assetData=h.getAssetData(c.refId),this.footageData=h.imageLoader.getAsset(this.assetData),this.initBaseData(c,h,p)}Li.prototype.prepareFrame=function(){},f([Hn,wi,Ai],Li),Li.prototype.getBaseElement=function(){return null},Li.prototype.renderFrame=function(){},Li.prototype.destroy=function(){},Li.prototype.initExpressions=function(){},Li.prototype.getFootageData=function(){return this.footageData};function Jt(c,h,p){this.initFrame(),this.initRenderable(),this.assetData=h.getAssetData(c.refId),this.initBaseData(c,h,p),this._isPlaying=!1,this._canPlay=!1;var m=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(m),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?Ae.getProp(this,c.tm,0,h.frameRate,this):{_placeholder:!0},this.lv=Ae.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}Jt.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var h=this.tm.v;this._currentTime=h}this._volume=this.lv.v[0];var p=this._volume*this._volumeMultiplier;this._previousVolume!==p&&(this._previousVolume=p,this.audio.volume(p))},f([Hn,wi,Ai],Jt),Jt.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))},Jt.prototype.show=function(){},Jt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Jt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Jt.prototype.resume=function(){this._canPlay=!0},Jt.prototype.setRate=function(c){this.audio.rate(c)},Jt.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},Jt.prototype.getBaseElement=function(){return null},Jt.prototype.destroy=function(){},Jt.prototype.sourceRectAtTime=function(){},Jt.prototype.initExpressions=function(){};function zt(){}zt.prototype.checkLayers=function(c){var h,p=this.layers.length,m;for(this.completeLayers=!0,h=p-1;h>=0;h-=1)this.elements[h]||(m=this.layers[h],m.ip-m.st<=c-this.layers[h].st&&m.op-m.st>c-this.layers[h].st&&this.buildItem(h)),this.completeLayers=this.elements[h]?this.completeLayers:!1;this.checkPendingElements()},zt.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},zt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},zt.prototype.createAudio=function(c){return new Jt(c,this.globalData,this)},zt.prototype.createFootage=function(c){return new Li(c,this.globalData,this)},zt.prototype.buildAllItems=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)this.buildItem(c);this.checkPendingElements()},zt.prototype.includeLayers=function(c){this.completeLayers=!1;var h,p=c.length,m,S=this.layers.length;for(h=0;h<p;h+=1)for(m=0;m<S;){if(this.layers[m].id===c[h].id){this.layers[m]=c[h];break}m+=1}},zt.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},zt.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},zt.prototype.buildElementParenting=function(c,h,p){for(var m=this.elements,S=this.layers,x=0,A=S.length;x<A;)S[x].ind==h&&(!m[x]||m[x]===!0?(this.buildItem(x),this.addPendingElement(c)):(p.push(m[x]),m[x].setAsParent(),S[x].parent!==void 0?this.buildElementParenting(c,S[x].parent,p):c.setHierarchy(p))),x+=1},zt.prototype.addPendingElement=function(c){this.pendingElements.push(c)},zt.prototype.searchExtraCompositions=function(c){var h,p=c.length;for(h=0;h<p;h+=1)if(c[h].xt){var m=this.createComp(c[h]);m.initExpressions(),this.globalData.projectInterface.registerComposition(m)}},zt.prototype.getElementById=function(c){var h,p=this.elements.length;for(h=0;h<p;h+=1)if(this.elements[h].data.ind===c)return this.elements[h];return null},zt.prototype.getElementByPath=function(c){var h=c.shift(),p;if(typeof h=="number")p=this.elements[h];else{var m,S=this.elements.length;for(m=0;m<S;m+=1)if(this.elements[m].data.nm===h){p=this.elements[m];break}}return c.length===0?p:p.getElementByPath(c)},zt.prototype.setupGlobalData=function(c,h){this.globalData.fontManager=new ji,this.globalData.slotManager=um(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,h),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=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var xm={TRANSFORM_EFFECT:"transformEFfect"};function xr(){}xr.prototype={initTransform:function(){var h=new Ie;this.finalTransform={mProp:this.data.ks?lo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:h,localMat:h,localOpacity:1},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 h,p=this.finalTransform.mat,m=0,S=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;m<S;){if(this.hierarchy[m].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}m+=1}if(this.finalTransform._matMdf)for(h=this.finalTransform.mProp.v.props,p.cloneFromProps(h),m=0;m<S;m+=1)p.multiply(this.hierarchy[m].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var h=0,p=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;h<p;)this.localTransforms[h]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[h]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),h+=1;if(this.finalTransform._localMatMdf){var m=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(m),h=1;h<p;h+=1){var S=this.localTransforms[h].matrix;m.multiply(S)}m.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var x=this.finalTransform.localOpacity;for(h=0;h<p;h+=1)x*=this.localTransforms[h].opacity*.01;this.finalTransform.localOpacity=x}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var h=this.renderableEffectsManager.getEffects(xm.TRANSFORM_EFFECT);if(h.length){this.localTransforms=[],this.finalTransform.localMat=new Ie;var p=0,m=h.length;for(p=0;p<m;p+=1)this.localTransforms.push(h[p])}}},globalToLocal:function(h){var p=[];p.push(this.finalTransform);for(var m=!0,S=this.comp;m;)S.finalTransform?(S.data.hasMask&&p.splice(0,0,S.finalTransform),S=S.comp):m=!1;var x,A=p.length,D;for(x=0;x<A;x+=1)D=p[x].mat.applyToPointArray(0,0,0),h=[h[0]-D[0],h[1]-D[1],0];return h},mHelper:new Ie};function Ki(c,h,p){this.data=c,this.element=h,this.globalData=p,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var m=this.globalData.defs,S,x=this.masksProperties?this.masksProperties.length:0;this.viewData=E(x),this.solidPath="";var A,D=this.masksProperties,L=0,B=[],V,ee,I=we(),H,q,K,J,G="clipPath",O="clip-path";for(S=0;S<x;S+=1)if((D[S].mode!=="a"&&D[S].mode!=="n"||D[S].inv||D[S].o.k!==100||D[S].o.x)&&(G="mask",O="mask"),(D[S].mode==="s"||D[S].mode==="i")&&L===0?(H=Be("rect"),H.setAttribute("fill","#ffffff"),H.setAttribute("width",this.element.comp.data.w||0),H.setAttribute("height",this.element.comp.data.h||0),B.push(H)):H=null,A=Be("path"),D[S].mode==="n")this.viewData[S]={op:Ae.getProp(this.element,D[S].o,0,.01,this.element),prop:Ce.getShapeProp(this.element,D[S],3),elem:A,lastPath:""},m.appendChild(A);else{L+=1,A.setAttribute("fill",D[S].mode==="s"?"#000000":"#ffffff"),A.setAttribute("clip-rule","nonzero");var _;if(D[S].x.k!==0?(G="mask",O="mask",J=Ae.getProp(this.element,D[S].x,0,null,this.element),_=we(),q=Be("filter"),q.setAttribute("id",_),K=Be("feMorphology"),K.setAttribute("operator","erode"),K.setAttribute("in","SourceGraphic"),K.setAttribute("radius","0"),q.appendChild(K),m.appendChild(q),A.setAttribute("stroke",D[S].mode==="s"?"#000000":"#ffffff")):(K=null,J=null),this.storedData[S]={elem:A,x:J,expan:K,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},D[S].mode==="i"){ee=B.length;var P=Be("g");for(V=0;V<ee;V+=1)P.appendChild(B[V]);var $=Be("mask");$.setAttribute("mask-type","alpha"),$.setAttribute("id",I+"_"+L),$.appendChild(A),m.appendChild($),P.setAttribute("mask","url("+u()+"#"+I+"_"+L+")"),B.length=0,B.push(P)}else B.push(A);D[S].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[S]={elem:A,lastPath:"",op:Ae.getProp(this.element,D[S].o,0,.01,this.element),prop:Ce.getShapeProp(this.element,D[S],3),invRect:H},this.viewData[S].prop.k||this.drawPath(D[S],this.viewData[S].prop.v,this.viewData[S])}for(this.maskElement=Be(G),x=B.length,S=0;S<x;S+=1)this.maskElement.appendChild(B[S]);L>0&&(this.maskElement.setAttribute("id",I),this.element.maskedElement.setAttribute(O,"url("+u()+"#"+I+")"),m.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ki.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Ki.prototype.renderFrame=function(c){var h=this.element.finalTransform.mat,p,m=this.masksProperties.length;for(p=0;p<m;p+=1)if((this.viewData[p].prop._mdf||c)&&this.drawPath(this.masksProperties[p],this.viewData[p].prop.v,this.viewData[p]),(this.viewData[p].op._mdf||c)&&this.viewData[p].elem.setAttribute("fill-opacity",this.viewData[p].op.v),this.masksProperties[p].mode!=="n"&&(this.viewData[p].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[p].invRect.setAttribute("transform",h.getInverseMatrix().to2dCSS()),this.storedData[p].x&&(this.storedData[p].x._mdf||c))){var S=this.storedData[p].expan;this.storedData[p].x.v<0?(this.storedData[p].lastOperator!=="erode"&&(this.storedData[p].lastOperator="erode",this.storedData[p].elem.setAttribute("filter","url("+u()+"#"+this.storedData[p].filterId+")")),S.setAttribute("radius",-this.storedData[p].x.v)):(this.storedData[p].lastOperator!=="dilate"&&(this.storedData[p].lastOperator="dilate",this.storedData[p].elem.setAttribute("filter",null)),this.storedData[p].elem.setAttribute("stroke-width",this.storedData[p].x.v*2))}},Ki.prototype.getMaskelement=function(){return this.maskElement},Ki.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Ki.prototype.drawPath=function(c,h,p){var m=" M"+h.v[0][0]+","+h.v[0][1],S,x;for(x=h._length,S=1;S<x;S+=1)m+=" C"+h.o[S-1][0]+","+h.o[S-1][1]+" "+h.i[S][0]+","+h.i[S][1]+" "+h.v[S][0]+","+h.v[S][1];if(h.c&&x>1&&(m+=" C"+h.o[S-1][0]+","+h.o[S-1][1]+" "+h.i[0][0]+","+h.i[0][1]+" "+h.v[0][0]+","+h.v[0][1]),p.lastPath!==m){var A="";p.elem&&(h.c&&(A=c.inv?this.solidPath+m:m),p.elem.setAttribute("d",A)),p.lastPath=m}},Ki.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var en=function(){var c={};c.createFilter=h,c.createAlphaToLuminanceFilter=p;function h(m,S){var x=Be("filter");return x.setAttribute("id",m),S!==!0&&(x.setAttribute("filterUnits","objectBoundingBox"),x.setAttribute("x","0%"),x.setAttribute("y","0%"),x.setAttribute("width","100%"),x.setAttribute("height","100%")),x}function p(){var m=Be("feColorMatrix");return m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),m}return c}(),eu=function(){var c={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))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),go={},tu="filter_result_";function mo(c){var h,p="SourceGraphic",m=c.data.ef?c.data.ef.length:0,S=we(),x=en.createFilter(S,!0),A=0;this.filters=[];var D;for(h=0;h<m;h+=1){D=null;var L=c.data.ef[h].ty;if(go[L]){var B=go[L].effect;D=new B(x,c.effectsManager.effectElements[h],c,tu+A,p),p=tu+A,go[L].countsAsEffect&&(A+=1)}D&&this.filters.push(D)}A&&(c.globalData.defs.appendChild(x),c.layerElement.setAttribute("filter","url("+u()+"#"+S+")")),this.filters.length&&c.addRenderableComponent(this)}mo.prototype.renderFrame=function(c){var h,p=this.filters.length;for(h=0;h<p;h+=1)this.filters[h].renderFrame(c)},mo.prototype.getEffects=function(c){var h,p=this.filters.length,m=[];for(h=0;h<p;h+=1)this.filters[h].type===c&&m.push(this.filters[h]);return m};function tn(){}tn.prototype={initRendererElement:function(){this.layerElement=Be("g")},createContainerElements:function(){this.matteElement=Be("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var h=null;if(this.data.td){this.matteMasks={};var p=Be("g");p.setAttribute("id",this.layerId),p.appendChild(this.layerElement),h=p,this.globalData.defs.appendChild(p)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),h=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 m=Be("clipPath"),S=Be("path");S.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var x=we();if(m.setAttribute("id",x),m.appendChild(S),this.globalData.defs.appendChild(m),this.checkMasks()){var A=Be("g");A.setAttribute("clip-path","url("+u()+"#"+x+")"),A.appendChild(this.layerElement),this.transformedElement=A,h?h.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+u()+"#"+x+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},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 Ki(this.data,this,this.globalData),this.renderableEffectsManager=new mo(this),this.searchEffectTransforms()},getMatte:function(h){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[h]){var p=this.layerId+"_"+h,m,S,x,A;if(h===1||h===3){var D=Be("mask");D.setAttribute("id",p),D.setAttribute("mask-type",h===3?"luminance":"alpha"),x=Be("use"),x.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),D.appendChild(x),this.globalData.defs.appendChild(D),!eu.maskType&&h===1&&(D.setAttribute("mask-type","luminance"),m=we(),S=en.createFilter(m),this.globalData.defs.appendChild(S),S.appendChild(en.createAlphaToLuminanceFilter()),A=Be("g"),A.appendChild(x),D.appendChild(A),A.setAttribute("filter","url("+u()+"#"+m+")"))}else if(h===2){var L=Be("mask");L.setAttribute("id",p),L.setAttribute("mask-type","alpha");var B=Be("g");L.appendChild(B),m=we(),S=en.createFilter(m);var V=Be("feComponentTransfer");V.setAttribute("in","SourceGraphic"),S.appendChild(V);var ee=Be("feFuncA");ee.setAttribute("type","table"),ee.setAttribute("tableValues","1.0 0.0"),V.appendChild(ee),this.globalData.defs.appendChild(S);var I=Be("rect");I.setAttribute("width",this.comp.data.w),I.setAttribute("height",this.comp.data.h),I.setAttribute("x","0"),I.setAttribute("y","0"),I.setAttribute("fill","#ffffff"),I.setAttribute("opacity","0"),B.setAttribute("filter","url("+u()+"#"+m+")"),B.appendChild(I),x=Be("use"),x.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),B.appendChild(x),eu.maskType||(L.setAttribute("mask-type","luminance"),S.appendChild(en.createAlphaToLuminanceFilter()),A=Be("g"),B.appendChild(I),A.appendChild(this.layerElement),B.appendChild(A)),this.globalData.defs.appendChild(L)}this.matteMasks[h]=p}return this.matteMasks[h]},setMatte:function(h){this.matteElement&&this.matteElement.setAttribute("mask","url("+u()+"#"+h+")")}};function Sr(){}Sr.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(h){this.hierarchy=h},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function sn(){}(function(){var c={initElement:function(p,m,S){this.initFrame(),this.initBaseData(p,m,S),this.initTransform(p,m,S),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var p=this.baseElement||this.layerElement;p.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var p=this.baseElement||this.layerElement;p.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(p){this._mdf=!1,this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};f([Hn,g(c)],sn)})();function rn(c,h,p){this.assetData=h.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=h.slotManager.getProp(this.assetData)),this.initElement(c,h,p),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}f([wi,xr,tn,Sr,Ai,sn],rn),rn.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=Be("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",c),this.layerElement.appendChild(this.innerElem)},rn.prototype.sourceRectAtTime=function(){return this.sourceRect};function Sm(c,h){this.elem=c,this.pos=h}function su(){}su.prototype={addShapeToModifiers:function(h){var p,m=this.shapeModifiers.length;for(p=0;p<m;p+=1)this.shapeModifiers[p].addShape(h)},isShapeInAnimatedModifiers:function(h){for(var p=0,m=this.shapeModifiers.length;p<m;)if(this.shapeModifiers[p].isAnimatedWithShape(h))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var h,p=this.shapes.length;for(h=0;h<p;h+=1)this.shapes[h].sh.reset();p=this.shapeModifiers.length;var m;for(h=p-1;h>=0&&(m=this.shapeModifiers[h].processShapes(this._isFirstFrame),!m);h-=1);}},searchProcessedElement:function(h){for(var p=this.processedElements,m=0,S=p.length;m<S;){if(p[m].elem===h)return p[m].pos;m+=1}return 0},addProcessedElement:function(h,p){for(var m=this.processedElements,S=m.length;S;)if(S-=1,m[S].elem===h){m[S].pos=p;return}m.push(new Sm(h,p))},prepareFrame:function(h){this.prepareRenderableFrame(h),this.prepareProperties(h,this.isInRange)}};var iu={1:"butt",2:"round",3:"square"},ru={1:"miter",2:"round",3:"bevel"};function nu(c,h,p){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=p,this.lvl=h,this._isAnimated=!!p.k;for(var m=0,S=c.length;m<S;){if(c[m].mProps.dynamicProperties.length){this._isAnimated=!0;break}m+=1}}nu.prototype.setAsAnimated=function(){this._isAnimated=!0};function au(c,h){this.data=c,this.type=c.ty,this.d="",this.lvl=h,this._mdf=!1,this.closed=c.hd===!0,this.pElem=Be("path"),this.msElem=null}au.prototype.reset=function(){this.d="",this._mdf=!1};function jn(c,h,p,m){this.elem=c,this.frameId=-1,this.dataProps=E(h.length),this.renderer=p,this.k=!1,this.dashStr="",this.dashArray=y("float32",h.length?h.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(m);var S,x=h.length||0,A;for(S=0;S<x;S+=1)A=Ae.getProp(c,h[S].v,0,0,this),this.k=A.k||this.k,this.dataProps[S]={n:h[S].n,p:A};this.k||this.getValue(!0),this._isAnimated=this.k}jn.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var h=0,p=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),h=0;h<p;h+=1)this.dataProps[h].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[h].p.v:this.dashArray[h]=this.dataProps[h].p.v:this.dashoffset[0]=this.dataProps[h].p.v}},f([_t],jn);function ou(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(c,h.o,0,.01,this),this.w=Ae.getProp(c,h.w,0,null,this),this.d=new jn(c,h.d||{},"svg",this),this.c=Ae.getProp(c,h.c,1,255,this),this.style=p,this._isAnimated=!!this._isAnimated}f([_t],ou);function lu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(c,h.o,0,.01,this),this.c=Ae.getProp(c,h.c,1,255,this),this.style=p}f([_t],lu);function cu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=p}f([_t],cu);function nn(c,h,p){this.data=h,this.c=y("uint8c",h.p*4);var m=h.k.k[0].s?h.k.k[0].s.length-h.p*4:h.k.k.length-h.p*4;this.o=y("float32",m),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=m,this.initDynamicPropertyContainer(p),this.prop=Ae.getProp(c,h.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}nn.prototype.comparePoints=function(c,h){for(var p=0,m=this.o.length/2,S;p<m;){if(S=Math.abs(c[p*4]-c[h*4+p*2]),S>.01)return!1;p+=1}return!0},nn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,h=this.data.k.k.length;c<h;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},nn.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var h,p=this.data.p*4,m,S;for(h=0;h<p;h+=1)m=h%4===0?100:255,S=Math.round(this.prop.v[h]*m),this.c[h]!==S&&(this.c[h]=S,this._cmdf=!c);if(this.o.length)for(p=this.prop.v.length,h=this.data.p*4;h<p;h+=1)m=h%2===0?100:1,S=h%2===0?Math.round(this.prop.v[h]*100):this.prop.v[h],this.o[h-this.data.p*4]!==S&&(this.o[h-this.data.p*4]=S,this._omdf=!c);this._mdf=!c}},f([_t],nn);function Er(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,h,p)}Er.prototype.initGradientData=function(c,h,p){this.o=Ae.getProp(c,h.o,0,.01,this),this.s=Ae.getProp(c,h.s,1,null,this),this.e=Ae.getProp(c,h.e,1,null,this),this.h=Ae.getProp(c,h.h||{k:0},0,.01,this),this.a=Ae.getProp(c,h.a||{k:0},0,Q,this),this.g=new nn(c,h.g,this),this.style=p,this.stops=[],this.setGradientData(p.pElem,h),this.setGradientOpacity(h,p),this._isAnimated=!!this._isAnimated},Er.prototype.setGradientData=function(c,h){var p=we(),m=Be(h.t===1?"linearGradient":"radialGradient");m.setAttribute("id",p),m.setAttribute("spreadMethod","pad"),m.setAttribute("gradientUnits","userSpaceOnUse");var S=[],x,A,D;for(D=h.g.p*4,A=0;A<D;A+=4)x=Be("stop"),m.appendChild(x),S.push(x);c.setAttribute(h.ty==="gf"?"fill":"stroke","url("+u()+"#"+p+")"),this.gf=m,this.cst=S},Er.prototype.setGradientOpacity=function(c,h){if(this.g._hasOpacity&&!this.g._collapsable){var p,m,S,x=Be("mask"),A=Be("path");x.appendChild(A);var D=we(),L=we();x.setAttribute("id",L);var B=Be(c.t===1?"linearGradient":"radialGradient");B.setAttribute("id",D),B.setAttribute("spreadMethod","pad"),B.setAttribute("gradientUnits","userSpaceOnUse"),S=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var V=this.stops;for(m=c.g.p*4;m<S;m+=2)p=Be("stop"),p.setAttribute("stop-color","rgb(255,255,255)"),B.appendChild(p),V.push(p);A.setAttribute(c.ty==="gf"?"fill":"stroke","url("+u()+"#"+D+")"),c.ty==="gs"&&(A.setAttribute("stroke-linecap",iu[c.lc||2]),A.setAttribute("stroke-linejoin",ru[c.lj||2]),c.lj===1&&A.setAttribute("stroke-miterlimit",c.ml)),this.of=B,this.ms=x,this.ost=V,this.maskId=L,h.msElem=A}},f([_t],Er);function uu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=Ae.getProp(c,h.w,0,null,this),this.d=new jn(c,h.d||{},"svg",this),this.initGradientData(c,h,p),this._isAnimated=!!this._isAnimated}f([Er,_t],uu);function Em(){this.it=[],this.prevViewData=[],this.gr=Be("g")}function bm(c,h,p){this.transform={mProps:c,op:h,container:p},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hu=function(h,p,m,S){if(p===0)return"";var x=h.o,A=h.i,D=h.v,L,B=" M"+S.applyToPointStringified(D[0][0],D[0][1]);for(L=1;L<p;L+=1)B+=" C"+S.applyToPointStringified(x[L-1][0],x[L-1][1])+" "+S.applyToPointStringified(A[L][0],A[L][1])+" "+S.applyToPointStringified(D[L][0],D[L][1]);return m&&p&&(B+=" C"+S.applyToPointStringified(x[L-1][0],x[L-1][1])+" "+S.applyToPointStringified(A[0][0],A[0][1])+" "+S.applyToPointStringified(D[0][0],D[0][1]),B+="z"),B},Tm=function(){var c=new Ie,h=new Ie,p={createRenderFunction:m};function m(ee){switch(ee.ty){case"fl":return D;case"gf":return B;case"gs":return L;case"st":return V;case"sh":case"el":case"rc":case"sr":return A;case"tr":return S;case"no":return x;default:return null}}function S(ee,I,H){(H||I.transform.op._mdf)&&I.transform.container.setAttribute("opacity",I.transform.op.v),(H||I.transform.mProps._mdf)&&I.transform.container.setAttribute("transform",I.transform.mProps.v.to2dCSS())}function x(){}function A(ee,I,H){var q,K,J,G,O,_,P=I.styles.length,$=I.lvl,Y,Z,ae,Se;for(_=0;_<P;_+=1){if(G=I.sh._mdf||H,I.styles[_].lvl<$){for(Z=h.reset(),ae=$-I.styles[_].lvl,Se=I.transformers.length-1;!G&&ae>0;)G=I.transformers[Se].mProps._mdf||G,ae-=1,Se-=1;if(G)for(ae=$-I.styles[_].lvl,Se=I.transformers.length-1;ae>0;)Z.multiply(I.transformers[Se].mProps.v),ae-=1,Se-=1}else Z=c;if(Y=I.sh.paths,K=Y._length,G){for(J="",q=0;q<K;q+=1)O=Y.shapes[q],O&&O._length&&(J+=hu(O,O._length,O.c,Z));I.caches[_]=J}else J=I.caches[_];I.styles[_].d+=ee.hd===!0?"":J,I.styles[_]._mdf=G||I.styles[_]._mdf}}function D(ee,I,H){var q=I.style;(I.c._mdf||H)&&q.pElem.setAttribute("fill","rgb("+te(I.c.v[0])+","+te(I.c.v[1])+","+te(I.c.v[2])+")"),(I.o._mdf||H)&&q.pElem.setAttribute("fill-opacity",I.o.v)}function L(ee,I,H){B(ee,I,H),V(ee,I,H)}function B(ee,I,H){var q=I.gf,K=I.g._hasOpacity,J=I.s.v,G=I.e.v;if(I.o._mdf||H){var O=ee.ty==="gf"?"fill-opacity":"stroke-opacity";I.style.pElem.setAttribute(O,I.o.v)}if(I.s._mdf||H){var _=ee.t===1?"x1":"cx",P=_==="x1"?"y1":"cy";q.setAttribute(_,J[0]),q.setAttribute(P,J[1]),K&&!I.g._collapsable&&(I.of.setAttribute(_,J[0]),I.of.setAttribute(P,J[1]))}var $,Y,Z,ae;if(I.g._cmdf||H){$=I.cst;var Se=I.g.c;for(Z=$.length,Y=0;Y<Z;Y+=1)ae=$[Y],ae.setAttribute("offset",Se[Y*4]+"%"),ae.setAttribute("stop-color","rgb("+Se[Y*4+1]+","+Se[Y*4+2]+","+Se[Y*4+3]+")")}if(K&&(I.g._omdf||H)){var Ke=I.g.o;for(I.g._collapsable?$=I.cst:$=I.ost,Z=$.length,Y=0;Y<Z;Y+=1)ae=$[Y],I.g._collapsable||ae.setAttribute("offset",Ke[Y*2]+"%"),ae.setAttribute("stop-opacity",Ke[Y*2+1])}if(ee.t===1)(I.e._mdf||H)&&(q.setAttribute("x2",G[0]),q.setAttribute("y2",G[1]),K&&!I.g._collapsable&&(I.of.setAttribute("x2",G[0]),I.of.setAttribute("y2",G[1])));else{var De;if((I.s._mdf||I.e._mdf||H)&&(De=Math.sqrt(Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)),q.setAttribute("r",De),K&&!I.g._collapsable&&I.of.setAttribute("r",De)),I.e._mdf||I.h._mdf||I.a._mdf||H){De||(De=Math.sqrt(Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)));var Te=Math.atan2(G[1]-J[1],G[0]-J[0]),Ye=I.h.v;Ye>=1?Ye=.99:Ye<=-1&&(Ye=-.99);var ke=De*Ye,xe=Math.cos(Te+I.a.v)*ke+J[0],M=Math.sin(Te+I.a.v)*ke+J[1];q.setAttribute("fx",xe),q.setAttribute("fy",M),K&&!I.g._collapsable&&(I.of.setAttribute("fx",xe),I.of.setAttribute("fy",M))}}}function V(ee,I,H){var q=I.style,K=I.d;K&&(K._mdf||H)&&K.dashStr&&(q.pElem.setAttribute("stroke-dasharray",K.dashStr),q.pElem.setAttribute("stroke-dashoffset",K.dashoffset[0])),I.c&&(I.c._mdf||H)&&q.pElem.setAttribute("stroke","rgb("+te(I.c.v[0])+","+te(I.c.v[1])+","+te(I.c.v[2])+")"),(I.o._mdf||H)&&q.pElem.setAttribute("stroke-opacity",I.o.v),(I.w._mdf||H)&&(q.pElem.setAttribute("stroke-width",I.w.v),q.msElem&&q.msElem.setAttribute("stroke-width",I.w.v))}return p}();function Lt(c,h,p){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,h,p),this.prevViewData=[]}f([wi,xr,tn,su,Sr,Ai,sn],Lt),Lt.prototype.initSecondaryElement=function(){},Lt.prototype.identityMatrix=new Ie,Lt.prototype.buildExpressionInterface=function(){},Lt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Lt.prototype.filterUniqueShapes=function(){var c,h=this.shapes.length,p,m,S=this.stylesList.length,x,A=[],D=!1;for(m=0;m<S;m+=1){for(x=this.stylesList[m],D=!1,A.length=0,c=0;c<h;c+=1)p=this.shapes[c],p.styles.indexOf(x)!==-1&&(A.push(p),D=p._isAnimated||D);A.length>1&&D&&this.setShapesAsAnimated(A)}},Lt.prototype.setShapesAsAnimated=function(c){var h,p=c.length;for(h=0;h<p;h+=1)c[h].setAsAnimated()},Lt.prototype.createStyleElement=function(c,h){var p,m=new au(c,h),S=m.pElem;if(c.ty==="st")p=new ou(this,c,m);else if(c.ty==="fl")p=new lu(this,c,m);else if(c.ty==="gf"||c.ty==="gs"){var x=c.ty==="gf"?Er:uu;p=new x(this,c,m),this.globalData.defs.appendChild(p.gf),p.maskId&&(this.globalData.defs.appendChild(p.ms),this.globalData.defs.appendChild(p.of),S.setAttribute("mask","url("+u()+"#"+p.maskId+")"))}else c.ty==="no"&&(p=new cu(this,c,m));return(c.ty==="st"||c.ty==="gs")&&(S.setAttribute("stroke-linecap",iu[c.lc||2]),S.setAttribute("stroke-linejoin",ru[c.lj||2]),S.setAttribute("fill-opacity","0"),c.lj===1&&S.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&S.setAttribute("fill-rule","evenodd"),c.ln&&S.setAttribute("id",c.ln),c.cl&&S.setAttribute("class",c.cl),c.bm&&(S.style["mix-blend-mode"]=po(c.bm)),this.stylesList.push(m),this.addToAnimatedContents(c,p),p},Lt.prototype.createGroupElement=function(c){var h=new Em;return c.ln&&h.gr.setAttribute("id",c.ln),c.cl&&h.gr.setAttribute("class",c.cl),c.bm&&(h.gr.style["mix-blend-mode"]=po(c.bm)),h},Lt.prototype.createTransformElement=function(c,h){var p=lo.getTransformProperty(this,c,this),m=new bm(p,p.o,h);return this.addToAnimatedContents(c,m),m},Lt.prototype.createShapeElement=function(c,h,p){var m=4;c.ty==="rc"?m=5:c.ty==="el"?m=6:c.ty==="sr"&&(m=7);var S=Ce.getShapeProp(this,c,m,this),x=new nu(h,p,S);return this.shapes.push(x),this.addShapeToModifiers(x),this.addToAnimatedContents(c,x),x},Lt.prototype.addToAnimatedContents=function(c,h){for(var p=0,m=this.animatedContents.length;p<m;){if(this.animatedContents[p].element===h)return;p+=1}this.animatedContents.push({fn:Tm.createRenderFunction(c),element:h,data:c})},Lt.prototype.setElementStyles=function(c){var h=c.styles,p,m=this.stylesList.length;for(p=0;p<m;p+=1)this.stylesList[p].closed||h.push(this.stylesList[p])},Lt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,h=this.itemsData.length;for(c=0;c<h;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),h=this.dynamicProperties.length,c=0;c<h;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},Lt.prototype.searchShapes=function(c,h,p,m,S,x,A){var D=[].concat(x),L,B=c.length-1,V,ee,I=[],H=[],q,K,J;for(L=B;L>=0;L-=1){if(J=this.searchProcessedElement(c[L]),J?h[L]=p[J-1]:c[L]._render=A,c[L].ty==="fl"||c[L].ty==="st"||c[L].ty==="gf"||c[L].ty==="gs"||c[L].ty==="no")J?h[L].style.closed=!1:h[L]=this.createStyleElement(c[L],S),c[L]._render&&h[L].style.pElem.parentNode!==m&&m.appendChild(h[L].style.pElem),I.push(h[L].style);else if(c[L].ty==="gr"){if(!J)h[L]=this.createGroupElement(c[L]);else for(ee=h[L].it.length,V=0;V<ee;V+=1)h[L].prevViewData[V]=h[L].it[V];this.searchShapes(c[L].it,h[L].it,h[L].prevViewData,h[L].gr,S+1,D,A),c[L]._render&&h[L].gr.parentNode!==m&&m.appendChild(h[L].gr)}else c[L].ty==="tr"?(J||(h[L]=this.createTransformElement(c[L],m)),q=h[L].transform,D.push(q)):c[L].ty==="sh"||c[L].ty==="rc"||c[L].ty==="el"||c[L].ty==="sr"?(J||(h[L]=this.createShapeElement(c[L],D,S)),this.setElementStyles(h[L])):c[L].ty==="tm"||c[L].ty==="rd"||c[L].ty==="ms"||c[L].ty==="pb"||c[L].ty==="zz"||c[L].ty==="op"?(J?(K=h[L],K.closed=!1):(K=bi.getModifier(c[L].ty),K.init(this,c[L]),h[L]=K,this.shapeModifiers.push(K)),H.push(K)):c[L].ty==="rp"&&(J?(K=h[L],K.closed=!0):(K=bi.getModifier(c[L].ty),h[L]=K,K.init(this,c,L,h),this.shapeModifiers.push(K),A=!1),H.push(K));this.addProcessedElement(c[L],L+1)}for(B=I.length,L=0;L<B;L+=1)I[L].closed=!0;for(B=H.length,L=0;L<B;L+=1)H[L].closed=!0},Lt.prototype.renderInnerContent=function(){this.renderModifiers();var c,h=this.stylesList.length;for(c=0;c<h;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<h;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},Lt.prototype.renderShape=function(){var c,h=this.animatedContents.length,p;for(c=0;c<h;c+=1)p=this.animatedContents[c],(this._isFirstFrame||p.element._isAnimated)&&p.data!==!0&&p.fn(p.data,p.element,this._isFirstFrame)},Lt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function vo(c,h,p,m,S,x){this.o=c,this.sw=h,this.sc=p,this.fc=m,this.m=S,this.p=x,this._mdf={o:!0,sw:!!h,sc:!!p,fc:!!m,m:!0,p:!0}}vo.prototype.update=function(c,h,p,m,S,x){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 A=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,A=!0),this.sw!==h&&(this.sw=h,this._mdf.sw=!0,A=!0),this.sc!==p&&(this.sc=p,this._mdf.sc=!0,A=!0),this.fc!==m&&(this.fc=m,this._mdf.fc=!0,A=!0),this.m!==S&&(this.m=S,this._mdf.m=!0,A=!0),x.length&&(this.p[0]!==x[0]||this.p[1]!==x[1]||this.p[4]!==x[4]||this.p[5]!==x[5]||this.p[12]!==x[12]||this.p[13]!==x[13])&&(this.p=x,this._mdf.p=!0,A=!0),A};function Yt(c,h){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,h.d&&h.d.sid&&(h.d=c.globalData.slotManager.getProp(h.d)),this.data=h,this.elem=c,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)}Yt.prototype.defaultBoxWidth=[0,0],Yt.prototype.copyData=function(c,h){for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(c[p]=h[p]);return c},Yt.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Yt.prototype.searchProperty=function(){return this.searchKeyframes()},Yt.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Yt.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},Yt.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var h=this.currentData,p=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var m,S=this.effectsSequence.length,x=c||this.data.d.k[this.keysIndex].s;for(m=0;m<S;m+=1)p!==this.keysIndex?x=this.effectsSequence[m](x,x.t):x=this.effectsSequence[m](this.currentData,x.t);h!==x&&this.setCurrentData(x),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Yt.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,h=this.elem.comp.renderedFrame,p=0,m=c.length;p<=m-1&&!(p===m-1||c[p+1].t>h);)p+=1;return this.keysIndex!==p&&(this.keysIndex=p),this.data.d.k[this.keysIndex].s},Yt.prototype.buildFinalText=function(c){for(var h=[],p=0,m=c.length,S,x,A=!1,D=!1,L="";p<m;)A=D,D=!1,S=c.charCodeAt(p),L=c.charAt(p),ji.isCombinedCharacter(S)?A=!0:S>=55296&&S<=56319?ji.isRegionalFlag(c,p)?L=c.substr(p,14):(x=c.charCodeAt(p+1),x>=56320&&x<=57343&&(ji.isModifier(S,x)?(L=c.substr(p,2),A=!0):ji.isFlagEmoji(c.substr(p,4))?L=c.substr(p,4):L=c.substr(p,2))):S>56319?(x=c.charCodeAt(p+1),ji.isVariationSelector(S)&&(A=!0)):ji.isZeroWidthJoiner(S)&&(A=!0,D=!0),A?(h[h.length-1]+=L,A=!1):h.push(L),p+=L.length;return h},Yt.prototype.completeTextData=function(c){c.__complete=!0;var h=this.elem.globalData.fontManager,p=this.data,m=[],S,x,A,D=0,L,B=p.m.g,V=0,ee=0,I=0,H=[],q=0,K=0,J,G,O=h.getFontByName(c.f),_,P=0,$=Qc(O);c.fWeight=$.weight,c.fStyle=$.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),x=c.finalText.length,c.finalLineHeight=c.lh;var Y=c.tr/1e3*c.finalSize,Z;if(c.sz)for(var ae=!0,Se=c.sz[0],Ke=c.sz[1],De,Te;ae;){Te=this.buildFinalText(c.t),De=0,q=0,x=Te.length,Y=c.tr/1e3*c.finalSize;var Ye=-1;for(S=0;S<x;S+=1)Z=Te[S].charCodeAt(0),A=!1,Te[S]===" "?Ye=S:(Z===13||Z===3)&&(q=0,A=!0,De+=c.finalLineHeight||c.finalSize*1.2),h.chars?(_=h.getCharData(Te[S],O.fStyle,O.fFamily),P=A?0:_.w*c.finalSize/100):P=h.measureText(Te[S],c.f,c.finalSize),q+P>Se&&Te[S]!==" "?(Ye===-1?x+=1:S=Ye,De+=c.finalLineHeight||c.finalSize*1.2,Te.splice(S,Ye===S?1:0,"\r"),Ye=-1,q=0):(q+=P,q+=Y);De+=O.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Ke<De?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Te,x=c.finalText.length,ae=!1)}q=-Y,P=0;var ke=0,xe;for(S=0;S<x;S+=1)if(A=!1,xe=c.finalText[S],Z=xe.charCodeAt(0),Z===13||Z===3?(ke=0,H.push(q),K=q>K?q:K,q=-2*Y,L="",A=!0,I+=1):L=xe,h.chars?(_=h.getCharData(xe,O.fStyle,h.getFontByName(c.f).fFamily),P=A?0:_.w*c.finalSize/100):P=h.measureText(L,c.f,c.finalSize),xe===" "?ke+=P+Y:(q+=P+Y+ke,ke=0),m.push({l:P,an:P,add:V,n:A,anIndexes:[],val:L,line:I,animatorJustifyOffset:0}),B==2){if(V+=P,L===""||L===" "||S===x-1){for((L===""||L===" ")&&(V-=P);ee<=S;)m[ee].an=V,m[ee].ind=D,m[ee].extra=P,ee+=1;D+=1,V=0}}else if(B==3){if(V+=P,L===""||S===x-1){for(L===""&&(V-=P);ee<=S;)m[ee].an=V,m[ee].ind=D,m[ee].extra=P,ee+=1;V=0,D+=1}}else m[D].ind=D,m[D].extra=0,D+=1;if(c.l=m,K=q>K?q:K,H.push(q),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=K,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=H;var M=p.a,z,T;G=M.length;var R,ne,X=[];for(J=0;J<G;J+=1){for(z=M[J],z.a.sc&&(c.strokeColorAnim=!0),z.a.sw&&(c.strokeWidthAnim=!0),(z.a.fc||z.a.fh||z.a.fs||z.a.fb)&&(c.fillColorAnim=!0),ne=0,R=z.s.b,S=0;S<x;S+=1)T=m[S],T.anIndexes[J]=ne,(R==1&&T.val!==""||R==2&&T.val!==""&&T.val!==" "||R==3&&(T.n||T.val==" "||S==x-1)||R==4&&(T.n||S==x-1))&&(z.s.rn===1&&X.push(ne),ne+=1);p.a[J].s.totalChars=ne;var Re=-1,Ue;if(z.s.rn===1)for(S=0;S<x;S+=1)T=m[S],Re!=T.anIndexes[J]&&(Re=T.anIndexes[J],Ue=X.splice(Math.floor(Math.random()*X.length),1)[0]),T.anIndexes[J]=Ue}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=O.ascent*c.finalSize/100},Yt.prototype.updateDocumentData=function(c,h){h=h===void 0?this.keysIndex:h;var p=this.copyData({},this.data.d.k[h].s);p=this.copyData(p,c),this.data.d.k[h].s=p,this.recalculate(h),this.setCurrentData(p),this.elem.addDynamicProperty(this)},Yt.prototype.recalculate=function(c){var h=this.data.d.k[c].s;h.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(h)},Yt.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Yt.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var wm=function(){var c=Math.max,h=Math.min,p=Math.floor;function m(x,A){this._currentTextLength=-1,this.k=!1,this.data=A,this.elem=x,this.comp=x.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(x),this.s=Ae.getProp(x,A.s||{k:0},0,0,this),"e"in A?this.e=Ae.getProp(x,A.e,0,0,this):this.e={v:100},this.o=Ae.getProp(x,A.o||{k:0},0,0,this),this.xe=Ae.getProp(x,A.xe||{k:0},0,0,this),this.ne=Ae.getProp(x,A.ne||{k:0},0,0,this),this.sm=Ae.getProp(x,A.sm||{k:100},0,0,this),this.a=Ae.getProp(x,A.a,0,.01,this),this.dynamicProperties.length||this.getValue()}m.prototype={getMult:function(A){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var D=0,L=0,B=1,V=1;this.ne.v>0?D=this.ne.v/100:L=-this.ne.v/100,this.xe.v>0?B=1-this.xe.v/100:V=1+this.xe.v/100;var ee=si.getBezierEasing(D,L,B,V).get,I=0,H=this.finalS,q=this.finalE,K=this.data.sh;if(K===2)q===H?I=A>=q?1:0:I=c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I=ee(I);else if(K===3)q===H?I=A>=q?0:1:I=1-c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I=ee(I);else if(K===4)q===H?I=0:(I=c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I<.5?I*=2:I=1-2*(I-.5)),I=ee(I);else if(K===5){if(q===H)I=0;else{var J=q-H;A=h(c(0,A+.5-H),q-H);var G=-J/2+A,O=J/2;I=Math.sqrt(1-G*G/(O*O))}I=ee(I)}else K===6?(q===H?I=0:(A=h(c(0,A+.5-H),q-H),I=(1+Math.cos(Math.PI+Math.PI*2*A/(q-H)))/2),I=ee(I)):(A>=p(H)&&(A-H<0?I=c(0,h(h(q,1)-(H-A),1)):I=c(0,h(q-A,1))),I=ee(I));if(this.sm.v!==100){var _=this.sm.v*.01;_===0&&(_=1e-8);var P=.5-_*.5;I<P?I=0:(I=(I-P)/_,I>1&&(I=1))}return I*this.a.v},getValue:function(A){this.iterateDynamicProperties(),this._mdf=A||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,A&&this.data.r===2&&(this.e.v=this._currentTextLength);var D=this.data.r===2?1:100/this.data.totalChars,L=this.o.v/D,B=this.s.v/D+L,V=this.e.v/D+L;if(B>V){var ee=B;B=V,V=ee}this.finalS=B,this.finalE=V}},f([_t],m);function S(x,A,D){return new m(x,A)}return{getTextSelectorProp:S}}();function Am(c,h,p){var m={propType:!1},S=Ae.getProp,x=h.a;this.a={r:x.r?S(c,x.r,0,Q,p):m,rx:x.rx?S(c,x.rx,0,Q,p):m,ry:x.ry?S(c,x.ry,0,Q,p):m,sk:x.sk?S(c,x.sk,0,Q,p):m,sa:x.sa?S(c,x.sa,0,Q,p):m,s:x.s?S(c,x.s,1,.01,p):m,a:x.a?S(c,x.a,1,0,p):m,o:x.o?S(c,x.o,0,.01,p):m,p:x.p?S(c,x.p,1,0,p):m,sw:x.sw?S(c,x.sw,0,0,p):m,sc:x.sc?S(c,x.sc,1,0,p):m,fc:x.fc?S(c,x.fc,1,0,p):m,fh:x.fh?S(c,x.fh,0,0,p):m,fs:x.fs?S(c,x.fs,0,.01,p):m,fb:x.fb?S(c,x.fb,0,.01,p):m,t:x.t?S(c,x.t,0,0,p):m},this.s=wm.getTextSelectorProp(c,h.s,p),this.s.t=h.s.t}function zi(c,h,p){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=h,this._elem=p,this._animatorsData=E(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(p)}zi.prototype.searchProperties=function(){var c,h=this._textData.a.length,p,m=Ae.getProp;for(c=0;c<h;c+=1)p=this._textData.a[c],this._animatorsData[c]=new Am(this._elem,p,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:m(this._elem,this._textData.p.a,0,0,this),f:m(this._elem,this._textData.p.f,0,0,this),l:m(this._elem,this._textData.p.l,0,0,this),r:m(this._elem,this._textData.p.r,0,0,this),p:m(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=m(this._elem,this._textData.m.a,1,0,this)},zi.prototype.getMeasures=function(c,h){if(this.lettersChangedFlag=h,!(!this._mdf&&!this._isFirstFrame&&!h&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var p=this._moreOptions.alignment.v,m=this._animatorsData,S=this._textData,x=this.mHelper,A=this._renderType,D=this.renderedLetters.length,L,B,V,ee,I=c.l,H,q,K,J,G,O,_,P,$,Y,Z,ae,Se,Ke,De;if(this._hasMaskedPath){if(De=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Te=De.v;this._pathData.r.v&&(Te=Te.reverse()),H={tLength:0,segments:[]},ee=Te._length-1;var Ye;for(ae=0,V=0;V<ee;V+=1)Ye=gs.buildBezierData(Te.v[V],Te.v[V+1],[Te.o[V][0]-Te.v[V][0],Te.o[V][1]-Te.v[V][1]],[Te.i[V+1][0]-Te.v[V+1][0],Te.i[V+1][1]-Te.v[V+1][1]]),H.tLength+=Ye.segmentLength,H.segments.push(Ye),ae+=Ye.segmentLength;V=ee,De.v.c&&(Ye=gs.buildBezierData(Te.v[V],Te.v[0],[Te.o[V][0]-Te.v[V][0],Te.o[V][1]-Te.v[V][1]],[Te.i[0][0]-Te.v[0][0],Te.i[0][1]-Te.v[0][1]]),H.tLength+=Ye.segmentLength,H.segments.push(Ye),ae+=Ye.segmentLength),this._pathData.pi=H}if(H=this._pathData.pi,q=this._pathData.f.v,_=0,O=1,J=0,G=!0,Y=H.segments,q<0&&De.v.c)for(H.tLength<Math.abs(q)&&(q=-Math.abs(q)%H.tLength),_=Y.length-1,$=Y[_].points,O=$.length-1;q<0;)q+=$[O].partialLength,O-=1,O<0&&(_-=1,$=Y[_].points,O=$.length-1);$=Y[_].points,P=$[O-1],K=$[O],Z=K.partialLength}ee=I.length,L=0,B=0;var ke=c.finalSize*1.2*.714,xe=!0,M,z,T,R,ne;R=m.length;var X,Re=-1,Ue,ze,nt,at=q,It=_,Zt=O,Bs=-1,es,Ut,cs,ft,Pe,oi,Ri,li,$s="",ci=this.defaultPropsArray,ui;if(c.j===2||c.j===1){var ts=0,_i=0,Ii=c.j===2?-.5:-1,Cs=0,ki=!0;for(V=0;V<ee;V+=1)if(I[V].n){for(ts&&(ts+=_i);Cs<V;)I[Cs].animatorJustifyOffset=ts,Cs+=1;ts=0,ki=!0}else{for(T=0;T<R;T+=1)M=m[T].a,M.t.propType&&(ki&&c.j===2&&(_i+=M.t.v*Ii),z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?ts+=M.t.v*X[0]*Ii:ts+=M.t.v*X*Ii);ki=!1}for(ts&&(ts+=_i);Cs<V;)I[Cs].animatorJustifyOffset=ts,Cs+=1}for(V=0;V<ee;V+=1){if(x.reset(),es=1,I[V].n)L=0,B+=c.yOffset,B+=xe?1:0,q=at,xe=!1,this._hasMaskedPath&&(_=It,O=Zt,$=Y[_].points,P=$[O-1],K=$[O],Z=K.partialLength,J=0),$s="",li="",oi="",ui="",ci=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Bs!==I[V].line){switch(c.j){case 1:q+=ae-c.lineWidths[I[V].line];break;case 2:q+=(ae-c.lineWidths[I[V].line])/2;break}Bs=I[V].line}Re!==I[V].ind&&(I[Re]&&(q+=I[Re].extra),q+=I[V].an/2,Re=I[V].ind),q+=p[0]*I[V].an*.005;var Rs=0;for(T=0;T<R;T+=1)M=m[T].a,M.p.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?Rs+=M.p.v[0]*X[0]:Rs+=M.p.v[0]*X),M.a.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?Rs+=M.a.v[0]*X[0]:Rs+=M.a.v[0]*X);for(G=!0,this._pathData.a.v&&(q=I[0].an*.5+(ae-this._pathData.f.v-I[0].an*.5-I[I.length-1].an*.5)*Re/(ee-1),q+=this._pathData.f.v);G;)J+Z>=q+Rs||!$?(Se=(q+Rs-J)/K.partialLength,ze=P.point[0]+(K.point[0]-P.point[0])*Se,nt=P.point[1]+(K.point[1]-P.point[1])*Se,x.translate(-p[0]*I[V].an*.005,-(p[1]*ke)*.01),G=!1):$&&(J+=K.partialLength,O+=1,O>=$.length&&(O=0,_+=1,Y[_]?$=Y[_].points:De.v.c?(O=0,_=0,$=Y[_].points):(J-=K.partialLength,$=null)),$&&(P=K,K=$[O],Z=K.partialLength));Ue=I[V].an/2-I[V].add,x.translate(-Ue,0,0)}else Ue=I[V].an/2-I[V].add,x.translate(-Ue,0,0),x.translate(-p[0]*I[V].an*.005,-p[1]*ke*.01,0);for(T=0;T<R;T+=1)M=m[T].a,M.t.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),(L!==0||c.j!==0)&&(this._hasMaskedPath?X.length?q+=M.t.v*X[0]:q+=M.t.v*X:X.length?L+=M.t.v*X[0]:L+=M.t.v*X));for(c.strokeWidthAnim&&(cs=c.sw||0),c.strokeColorAnim&&(c.sc?Ut=[c.sc[0],c.sc[1],c.sc[2]]:Ut=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),T=0;T<R;T+=1)M=m[T].a,M.a.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?x.translate(-M.a.v[0]*X[0],-M.a.v[1]*X[1],M.a.v[2]*X[2]):x.translate(-M.a.v[0]*X,-M.a.v[1]*X,M.a.v[2]*X));for(T=0;T<R;T+=1)M=m[T].a,M.s.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?x.scale(1+(M.s.v[0]-1)*X[0],1+(M.s.v[1]-1)*X[1],1):x.scale(1+(M.s.v[0]-1)*X,1+(M.s.v[1]-1)*X,1));for(T=0;T<R;T+=1){if(M=m[T].a,z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),M.sk.propType&&(X.length?x.skewFromAxis(-M.sk.v*X[0],M.sa.v*X[1]):x.skewFromAxis(-M.sk.v*X,M.sa.v*X)),M.r.propType&&(X.length?x.rotateZ(-M.r.v*X[2]):x.rotateZ(-M.r.v*X)),M.ry.propType&&(X.length?x.rotateY(M.ry.v*X[1]):x.rotateY(M.ry.v*X)),M.rx.propType&&(X.length?x.rotateX(M.rx.v*X[0]):x.rotateX(M.rx.v*X)),M.o.propType&&(X.length?es+=(M.o.v*X[0]-es)*X[0]:es+=(M.o.v*X-es)*X),c.strokeWidthAnim&&M.sw.propType&&(X.length?cs+=M.sw.v*X[0]:cs+=M.sw.v*X),c.strokeColorAnim&&M.sc.propType)for(Pe=0;Pe<3;Pe+=1)X.length?Ut[Pe]+=(M.sc.v[Pe]-Ut[Pe])*X[0]:Ut[Pe]+=(M.sc.v[Pe]-Ut[Pe])*X;if(c.fillColorAnim&&c.fc){if(M.fc.propType)for(Pe=0;Pe<3;Pe+=1)X.length?ft[Pe]+=(M.fc.v[Pe]-ft[Pe])*X[0]:ft[Pe]+=(M.fc.v[Pe]-ft[Pe])*X;M.fh.propType&&(X.length?ft=Je(ft,M.fh.v*X[0]):ft=Je(ft,M.fh.v*X)),M.fs.propType&&(X.length?ft=Ve(ft,M.fs.v*X[0]):ft=Ve(ft,M.fs.v*X)),M.fb.propType&&(X.length?ft=$e(ft,M.fb.v*X[0]):ft=$e(ft,M.fb.v*X))}}for(T=0;T<R;T+=1)M=m[T].a,M.p.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),this._hasMaskedPath?X.length?x.translate(0,M.p.v[1]*X[0],-M.p.v[2]*X[1]):x.translate(0,M.p.v[1]*X,-M.p.v[2]*X):X.length?x.translate(M.p.v[0]*X[0],M.p.v[1]*X[1],-M.p.v[2]*X[2]):x.translate(M.p.v[0]*X,M.p.v[1]*X,-M.p.v[2]*X));if(c.strokeWidthAnim&&(oi=cs<0?0:cs),c.strokeColorAnim&&(Ri="rgb("+Math.round(Ut[0]*255)+","+Math.round(Ut[1]*255)+","+Math.round(Ut[2]*255)+")"),c.fillColorAnim&&c.fc&&(li="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(x.translate(0,-c.ls),x.translate(0,p[1]*ke*.01+B,0),this._pathData.p.v){Ke=(K.point[1]-P.point[1])/(K.point[0]-P.point[0]);var Wi=Math.atan(Ke)*180/Math.PI;K.point[0]<P.point[0]&&(Wi+=180),x.rotate(-Wi*Math.PI/180)}x.translate(ze,nt,0),q-=p[0]*I[V].an*.005,I[V+1]&&Re!==I[V+1].ind&&(q+=I[V].an/2,q+=c.tr*.001*c.finalSize)}else{switch(x.translate(L,B,0),c.ps&&x.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:x.translate(I[V].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[I[V].line]),0,0);break;case 2:x.translate(I[V].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[I[V].line])/2,0,0);break}x.translate(0,-c.ls),x.translate(Ue,0,0),x.translate(p[0]*I[V].an*.005,p[1]*ke*.01,0),L+=I[V].l+c.tr*.001*c.finalSize}A==="html"?$s=x.toCSS():A==="svg"?$s=x.to2dCSS():ci=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],ui=es}D<=V?(ne=new vo(ui,oi,Ri,li,$s,ci),this.renderedLetters.push(ne),D+=1,this.lettersChangedFlag=!0):(ne=this.renderedLetters[V],this.lettersChangedFlag=ne.update(ui,oi,Ri,li,$s,ci)||this.lettersChangedFlag)}}},zi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zi.prototype.mHelper=new Ie,zi.prototype.defaultPropsArray=[],f([_t],zi);function vs(){}vs.prototype.initElement=function(c,h,p){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,h,p),this.textProperty=new Yt(this,c.t,this.dynamicProperties),this.textAnimator=new zi(c.t,this.renderType,this),this.initTransform(c,h,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},vs.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},vs.prototype.createPathShape=function(c,h){var p,m=h.length,S,x="";for(p=0;p<m;p+=1)h[p].ty==="sh"&&(S=h[p].ks.k,x+=hu(S,S.i.length,!0,c));return x},vs.prototype.updateDocumentData=function(c,h){this.textProperty.updateDocumentData(c,h)},vs.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},vs.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},vs.prototype.applyTextPropertiesToMatrix=function(c,h,p,m,S){switch(c.ps&&h.translate(c.ps[0],c.ps[1]+c.ascent,0),h.translate(0,-c.ls,0),c.j){case 1:h.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[p]),0,0);break;case 2:h.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[p])/2,0,0);break}h.translate(m,S,0)},vs.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},vs.prototype.emptyProp=new vo,vs.prototype.destroy=function(){},vs.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Lm={shapes:[]};function ni(c,h,p){this.textSpans=[],this.renderType="svg",this.initElement(c,h,p)}f([wi,xr,tn,Sr,Ai,sn,vs],ni),ni.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Be("text"))},ni.prototype.buildTextContents=function(c){for(var h=0,p=c.length,m=[],S="";h<p;)c[h]==="\r"||c[h]===""?(m.push(S),S=""):S+=c[h],h+=1;return m.push(S),m},ni.prototype.buildShapeData=function(c,h){if(c.shapes&&c.shapes.length){var p=c.shapes[0];if(p.it){var m=p.it[p.it.length-1];m.s&&(m.s.k[0]=h,m.s.k[1]=h)}}return c},ni.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,h,p=this.textProperty.currentData;this.renderedLetters=E(p?p.l.length:0),p.fc?this.layerElement.setAttribute("fill",this.buildColor(p.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),p.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(p.sc)),this.layerElement.setAttribute("stroke-width",p.sw)),this.layerElement.setAttribute("font-size",p.finalSize);var m=this.globalData.fontManager.getFontByName(p.f);if(m.fClass)this.layerElement.setAttribute("class",m.fClass);else{this.layerElement.setAttribute("font-family",m.fFamily);var S=p.fWeight,x=p.fStyle;this.layerElement.setAttribute("font-style",x),this.layerElement.setAttribute("font-weight",S)}this.layerElement.setAttribute("aria-label",p.t);var A=p.l||[],D=!!this.globalData.fontManager.chars;h=A.length;var L,B=this.mHelper,V="",ee=this.data.singleShape,I=0,H=0,q=!0,K=p.tr*.001*p.finalSize;if(ee&&!D&&!p.sz){var J=this.textContainer,G="start";switch(p.j){case 1:G="end";break;case 2:G="middle";break;default:G="start";break}J.setAttribute("text-anchor",G),J.setAttribute("letter-spacing",K);var O=this.buildTextContents(p.finalText);for(h=O.length,H=p.ps?p.ps[1]+p.ascent:0,c=0;c<h;c+=1)L=this.textSpans[c].span||Be("tspan"),L.textContent=O[c],L.setAttribute("x",0),L.setAttribute("y",H),L.style.display="inherit",J.appendChild(L),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=L,H+=p.finalLineHeight;this.layerElement.appendChild(J)}else{var _=this.textSpans.length,P;for(c=0;c<h;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!D||!ee||c===0){if(L=_>c?this.textSpans[c].span:Be(D?"g":"text"),_<=c){if(L.setAttribute("stroke-linecap","butt"),L.setAttribute("stroke-linejoin","round"),L.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=L,D){var $=Be("g");L.appendChild($),this.textSpans[c].childSpan=$}this.textSpans[c].span=L,this.layerElement.appendChild(L)}L.style.display="inherit"}if(B.reset(),ee&&(A[c].n&&(I=-K,H+=p.yOffset,H+=q?1:0,q=!1),this.applyTextPropertiesToMatrix(p,B,A[c].line,I,H),I+=A[c].l||0,I+=K),D){P=this.globalData.fontManager.getCharData(p.finalText[c],m.fStyle,this.globalData.fontManager.getFontByName(p.f).fFamily);var Y;if(P.t===1)Y=new an(P.data,this.globalData,this);else{var Z=Lm;P.data&&P.data.shapes&&(Z=this.buildShapeData(P.data,p.finalSize)),Y=new Lt(Z,this.globalData,this)}if(this.textSpans[c].glyph){var ae=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(ae.layerElement),ae.destroy()}this.textSpans[c].glyph=Y,Y._debug=!0,Y.prepareFrame(0),Y.renderFrame(),this.textSpans[c].childSpan.appendChild(Y.layerElement),P.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+p.finalSize/100+","+p.finalSize/100+")")}else ee&&L.setAttribute("transform","translate("+B.props[12]+","+B.props[13]+")"),L.textContent=A[c].val,L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ee&&L&&L.setAttribute("d",V)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},ni.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},ni.prototype.getValue=function(){var c,h=this.textSpans.length,p;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<h;c+=1)p=this.textSpans[c].glyph,p&&(p.prepareFrame(this.comp.renderedFrame-this.data.st),p._mdf&&(this._mdf=!0))},ni.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,h,p=this.textAnimator.renderedLetters,m=this.textProperty.currentData.l;h=m.length;var S,x,A;for(c=0;c<h;c+=1)m[c].n||(S=p[c],x=this.textSpans[c].span,A=this.textSpans[c].glyph,A&&A.renderFrame(),S._mdf.m&&x.setAttribute("transform",S.m),S._mdf.o&&x.setAttribute("opacity",S.o),S._mdf.sw&&x.setAttribute("stroke-width",S.sw),S._mdf.sc&&x.setAttribute("stroke",S.sc),S._mdf.fc&&x.setAttribute("fill",S.fc))}};function yo(c,h,p){this.initElement(c,h,p)}f([rn],yo),yo.prototype.createContent=function(){var c=Be("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Ci(c,h,p){this.initFrame(),this.initBaseData(c,h,p),this.initFrame(),this.initTransform(c,h,p),this.initHierarchy()}Ci.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Ci.prototype.renderFrame=function(){},Ci.prototype.getBaseElement=function(){return null},Ci.prototype.destroy=function(){},Ci.prototype.sourceRectAtTime=function(){},Ci.prototype.hide=function(){},f([wi,xr,Sr,Ai],Ci);function Mt(){}f([zt],Mt),Mt.prototype.createNull=function(c){return new Ci(c,this.globalData,this)},Mt.prototype.createShape=function(c){return new Lt(c,this.globalData,this)},Mt.prototype.createText=function(c){return new ni(c,this.globalData,this)},Mt.prototype.createImage=function(c){return new rn(c,this.globalData,this)},Mt.prototype.createSolid=function(c){return new yo(c,this.globalData,this)},Mt.prototype.configAnimation=function(c){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 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.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 h=this.globalData.defs;this.setupGlobalData(c,h),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var p=Be("clipPath"),m=Be("rect");m.setAttribute("width",c.w),m.setAttribute("height",c.h),m.setAttribute("x",0),m.setAttribute("y",0);var S=we();p.setAttribute("id",S),p.appendChild(m),this.layerElement.setAttribute("clip-path","url("+u()+"#"+S+")"),h.appendChild(p),this.layers=c.layers,this.elements=E(c.layers.length)},Mt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,h=this.layers?this.layers.length:0;for(c=0;c<h;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Mt.prototype.updateContainerSize=function(){},Mt.prototype.findIndexByInd=function(c){var h=0,p=this.layers.length;for(h=0;h<p;h+=1)if(this.layers[h].ind===c)return h;return-1},Mt.prototype.buildItem=function(c){var h=this.elements;if(!(h[c]||this.layers[c].ty===99)){h[c]=!0;var p=this.createItem(this.layers[c]);if(h[c]=p,Xe()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(p),p.initExpressions()),this.appendElementInPos(p,c),this.layers[c].tt){var m="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(m===-1)return;if(!this.elements[m]||this.elements[m]===!0)this.buildItem(m),this.addPendingElement(p);else{var S=h[m],x=S.getMatte(this.layers[c].tt);p.setMatte(x)}}}},Mt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var h=0,p=this.elements.length;h<p;){if(this.elements[h]===c){var m="tp"in c.data?this.findIndexByInd(c.data.tp):h-1,S=this.elements[m],x=S.getMatte(this.layers[h].tt);c.setMatte(x);break}h+=1}}},Mt.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var h,p=this.layers.length;for(this.completeLayers||this.checkLayers(c),h=p-1;h>=0;h-=1)(this.completeLayers||this.elements[h])&&this.elements[h].prepareFrame(c-this.layers[h].st);if(this.globalData._mdf)for(h=0;h<p;h+=1)(this.completeLayers||this.elements[h])&&this.elements[h].renderFrame()}},Mt.prototype.appendElementInPos=function(c,h){var p=c.getBaseElement();if(p){for(var m=0,S;m<h;)this.elements[m]&&this.elements[m]!==!0&&this.elements[m].getBaseElement()&&(S=this.elements[m].getBaseElement()),m+=1;S?this.layerElement.insertBefore(p,S):this.layerElement.appendChild(p)}},Mt.prototype.hide=function(){this.layerElement.style.display="none"},Mt.prototype.show=function(){this.layerElement.style.display="block"};function ai(){}f([wi,xr,Sr,Ai,sn],ai),ai.prototype.initElement=function(c,h,p){this.initFrame(),this.initBaseData(c,h,p),this.initTransform(c,h,p),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!h.progressiveLoad)&&this.buildAllItems(),this.hide()},ai.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var h=this.tm.v;h===this.data.op&&(h=this.data.op-1),this.renderedFrame=h}var p,m=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),p=m-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&(this.elements[p].prepareFrame(this.renderedFrame-this.layers[p].st),this.elements[p]._mdf&&(this._mdf=!0))}},ai.prototype.renderInnerContent=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ai.prototype.setElements=function(c){this.elements=c},ai.prototype.getElements=function(){return this.elements},ai.prototype.destroyElements=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)this.elements[c]&&this.elements[c].destroy()},ai.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function an(c,h,p){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?E(this.layers.length):[],this.initElement(c,h,p),this.tm=c.tm?Ae.getProp(this,c.tm,0,h.frameRate,this):{_placeholder:!0}}f([Mt,ai,tn],an),an.prototype.createComp=function(c){return new an(c,this.globalData,this)};function xo(c,h){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=Be("svg");var p="";if(h&&h.title){var m=Be("title"),S=we();m.setAttribute("id",S),m.textContent=h.title,this.svgElement.appendChild(m),p+=S}if(h&&h.description){var x=Be("desc"),A=we();x.setAttribute("id",A),x.textContent=h.description,this.svgElement.appendChild(x),p+=" "+A}p&&this.svgElement.setAttribute("aria-labelledby",p);var D=Be("defs");this.svgElement.appendChild(D);var L=Be("g");this.svgElement.appendChild(L),this.layerElement=L,this.renderConfig={preserveAspectRatio:h&&h.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:h&&h.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:h&&h.contentVisibility||"visible",progressiveLoad:h&&h.progressiveLoad||!1,hideOnTransparent:!(h&&h.hideOnTransparent===!1),viewBoxOnly:h&&h.viewBoxOnly||!1,viewBoxSize:h&&h.viewBoxSize||!1,className:h&&h.className||"",id:h&&h.id||"",focusable:h&&h.focusable,filterSize:{width:h&&h.filterSize&&h.filterSize.width||"100%",height:h&&h.filterSize&&h.filterSize.height||"100%",x:h&&h.filterSize&&h.filterSize.x||"0%",y:h&&h.filterSize&&h.filterSize.y||"0%"},width:h&&h.width,height:h&&h.height,runExpressions:!h||h.runExpressions===void 0||h.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:D,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return f([Mt],xo),xo.prototype.createComp=function(c){return new an(c,this.globalData,this)},ur("svg",xo),bi.registerModifier("tm",Ls),bi.registerModifier("pb",qr),bi.registerModifier("rp",Ns),bi.registerModifier("rd",Yr),bi.registerModifier("zz",Qr),bi.registerModifier("op",Jr),Fe})})($l,$l.exports);var vC=$l.exports;const yC=Rm(vC);function xC({loop:i=!1,path:e,animationData:t,className:s,onComplete:r,onError:n}){const a=fe.useRef(null),[o,l]=fe.useState(!1);return fe.useEffect(()=>{if(!a.current)return;l(!1);const u=yC.loadAnimation({container:a.current,renderer:"svg",autoplay:!0,loop:i,path:e,animationData:t}),d=()=>{l(!0),n==null||n()},f=()=>{r==null||r()};return u.addEventListener("data_failed",d),u.addEventListener("complete",f),()=>{u.removeEventListener("data_failed",d),u.removeEventListener("complete",f),u.destroy()}},[i,e,t]),o?null:Ne.jsx("div",{ref:a,className:s})}const SC="5.5.7",EC=30,bC=0,TC=31,wC=360,AC=360,LC="forward right",CC=0,RC=[],_C=[{ddd:0,ind:1,ty:4,nm:"Layer 2",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[100]},{t:20,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[161.086,180,0],ix:2},a:{a:0,k:[-18.914,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[-26.586,8.363],[-26.586,-8.363],[-24.788,-9.344],[-11.779,-.981],[-11.779,.981],[-24.788,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:5,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:15,s:[100]},{t:25,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[179.914,180,0],ix:2},a:{a:0,k:[-.086,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[-7.757,8.363],[-7.757,-8.363],[-5.959,-9.344],[7.05,-.981],[7.05,.981],[-5.959,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Layer 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[100]},{t:30,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[198.914,180,0],ix:2},a:{a:0,k:[18.914,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[11.243,8.363],[11.243,-8.363],[13.041,-9.344],[26.05,-.981],[26.05,.981],[13.041,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0}],IC=[],kC={v:SC,fr:EC,ip:bC,op:TC,w:wC,h:AC,nm:LC,ddd:CC,assets:RC,layers:_C,markers:IC},PC="_root_1v1it_1",DC="_chapter_img_1v1it_20",MC="_name_1v1it_26",FC="_time_1v1it_37",pa={root:PC,chapter_img:DC,name:MC,time:FC};function OC({width:i,height:e,src:t,alt:s,draggable:r=!1,className:n}){return Ne.jsxs("picture",{children:[Ne.jsx("source",{type:"image/webp",srcSet:`${$d({f:"webp",h:e?e*2:void 0,w:i?i*2:void 0},t)}`,height:e}),Ne.jsx("img",{src:`${$d({h:e?e*2:void 0,w:i?i*2:void 0},t)}`,alt:s,draggable:r,width:i,height:e,className:n})]})}function NC({name:i,time:e,imageUrl:t,className:s,onClick:r}){return Ne.jsxs("div",{className:`${pa.root} ${s||""}`,onClick:r,children:[Ne.jsx(OC,{className:pa.chapter_img,src:t,width:90,height:130,alt:"챕터 이미지"}),Ne.jsx("div",{className:pa.name,children:i}),Ne.jsx("div",{className:pa.time,children:e})]})}const BC=fe.forwardRef(({src:i,ratio:e=!1,shadow:t=!0,controls:s=!0,posterSrc:r,initialTime:n,timeOffsetStart:a,timeOffsetEnd:o,quality:l,chapter:u,debug:d,loop:f,live:g,renderControls:v,onClick:y,onInit:E,onDestroy:b,onSync:w,className:F},k)=>{const[U,N]=fh(!1),[te,j]=fh(!1),[re,Q]=T1("",650),{ref:le,live:se,time:pe,play:de,playbackRate:be,handleSeektime:Le,handleBackward:ue,handleForward:he,handlePlayToggle:we,handlePlaybackRate:me}=oC({src:i,timeUpdateEvent:U,initialTime:n,timeOffsetStart:a,timeOffsetEnd:o,quality:l,debug:d,onSync:w,onInit:E,onDestroy:b}),ye=b1({onClick:N,onDoubleClick:Ze=>{if(g||se)return;const Xe=Ze.target.getBoundingClientRect(),dt=Xe.left+Xe.width/2;Ze.clientX<dt?(ue(),Q("left")):(he(),Q("right"))}}),Ve=(Ze,Xe)=>{if(Ze.stopPropagation(),!le.current)return;const dt=Xe*((o??le.current.duration)-(a??0))/100;Le(dt)},$e=()=>{j()},Je=Ze=>{Ze.key==="Enter"&&ye()},st=Ze=>Xe=>{Xe.stopPropagation(),Ze()};fe.useEffect(()=>{y==null||y(U)},[U,y]);const rt=!(g||se);return Ne.jsxs("div",{ref:k,className:`${bt.root} ${F||""}`,children:[Ne.jsx("video",{className:`${bt.video} ${e?bt.origin_ratio:""}`,ref:le,muted:!0,playsInline:!0,loop:f}),r&&Ne.jsx("div",{className:`${bt.poster} ${e?bt.origin_ratio:""}`,style:{backgroundImage:`url("${r}?h=1600&f=webp")`}}),Ne.jsxs("div",{className:`${bt.layer} ${t?bt.shadow:""}`,onClick:ye,onKeyDown:Je,tabIndex:0,"aria-label":"비디오 플레이어 컨트롤","aria-pressed":U,children:[re&&Ne.jsx("div",{className:`${bt.indicator} ${bt[`indicator_${re}`]}`,children:Ne.jsx(xC,{animationData:kC,loop:!0})}),s&&U&&Ne.jsxs(Ne.Fragment,{children:[rt&&Ne.jsx(Ug,{handle:!0,className:bt.progress,progress:pe.progress,onChangeProgress:Ve}),rt&&Ne.jsx(mC,{className:bt.time,currentTime:pe.currentTime,durationTime:pe.durationTime}),rt&&Ne.jsxs("button",{className:`${bt.button} ${bt.playbackrate}`,onClick:st(me),"aria-label":"비디오 배속",children:[be,"x"]}),Ne.jsx("button",{className:`${bt.button} ${bt.play_toggle}`,onClick:st(we),"aria-label":"비디오 재생","aria-pressed":de,children:Ne.jsx(Go,{name:de?"pause":"play"})}),rt&&Ne.jsx("button",{className:`${bt.button} ${bt.backward}`,onClick:st(ue),"aria-label":"비디오 10초 뒤로",children:Ne.jsx(Go,{name:"backward"})}),rt&&Ne.jsx("button",{className:`${bt.button} ${bt.forward}`,onClick:st(he),"aria-label":"비디오 10초 앞으로",children:Ne.jsx(Go,{name:"forward"})}),!!u&&rt&&Ne.jsx("button",{className:`${bt.button} ${bt.chapter_toggle}`,"aria-label":"비디오 챕터",onClick:st($e),children:Kt.t("chapter")}),!!u&&te&&Ne.jsx("div",{className:bt.chapter_wrap,children:u==null?void 0:u.map(Ze=>Ne.jsx(NC,{...Ze,onClick:st(()=>Le(gC(Ze.time)))},Ze.id))})]}),U&&(v==null?void 0:v({time:pe,play:de,handlePlayToggle:we,handleChangeProgress:Ve}))]})]})});function Ud(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function Fc(i,e){i===void 0&&(i={}),e===void 0&&(e={}),Object.keys(e).forEach(t=>{typeof i[t]>"u"?i[t]=e[t]:Ud(e[t])&&Ud(i[t])&&Object.keys(e[t]).length>0&&Fc(i[t],e[t])})}const Gg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function lr(){const i=typeof document<"u"?document:{};return Fc(i,Gg),i}const $C={document:Gg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function fs(){const i=typeof window<"u"?window:{};return Fc(i,$C),i}function UC(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Ul(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function Ya(){return Date.now()}function GC(i){const e=fs();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function VC(i,e){e===void 0&&(e="x");const t=fs();let s,r,n;const a=GC(i);return t.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new t.WebKitCSSMatrix(r==="none"?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(t.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function ga(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function HC(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function us(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const s=t<0||arguments.length<=t?void 0:arguments[t];if(s!=null&&!HC(s)){const r=Object.keys(Object(s)).filter(n=>e.indexOf(n)<0);for(let n=0,a=r.length;n<a;n+=1){const o=r[n],l=Object.getOwnPropertyDescriptor(s,o);l!==void 0&&l.enumerable&&(ga(i[o])&&ga(s[o])?s[o].__swiper__?i[o]=s[o]:us(i[o],s[o]):!ga(i[o])&&ga(s[o])?(i[o]={},s[o].__swiper__?i[o]=s[o]:us(i[o],s[o])):i[o]=s[o])}}}return i}function ma(i,e,t){i.style.setProperty(e,t)}function Vg(i){let{swiper:e,targetPosition:t,side:s}=i;const r=fs(),n=-e.translate;let a=null,o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>n?"next":"prev",d=(g,v)=>u==="next"&&g>=v||u==="prev"&&g<=v,f=()=>{o=new Date().getTime(),a===null&&(a=o);const g=Math.max(Math.min((o-a)/l,1),0),v=.5-Math.cos(g*Math.PI)/2;let y=n+v*(t-n);if(d(y,t)&&(y=t),e.wrapperEl.scrollTo({[s]:y}),d(y,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:y})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(f)};f()}function vi(i,e){return e===void 0&&(e=""),[...i.children].filter(t=>t.matches(e))}function jC(i,e){e===void 0&&(e=[]);const t=document.createElement(i);return t.classList.add(...Array.isArray(e)?e:[e]),t}function KC(i,e){const t=[];for(;i.previousElementSibling;){const s=i.previousElementSibling;e?s.matches(e)&&t.push(s):t.push(s),i=s}return t}function zC(i,e){const t=[];for(;i.nextElementSibling;){const s=i.nextElementSibling;e?s.matches(e)&&t.push(s):t.push(s),i=s}return t}function Bi(i,e){return fs().getComputedStyle(i,null).getPropertyValue(e)}function Gd(i){let e=i,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function WC(i,e){const t=[];let s=i.parentElement;for(;s;)t.push(s),s=s.parentElement;return t}function Vd(i,e,t){const s=fs();return i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let cl;function qC(){const i=fs(),e=lr();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function Hg(){return cl||(cl=qC()),cl}let ul;function YC(i){let{userAgent:e}=i===void 0?{}:i;const t=Hg(),s=fs(),r=s.navigator.platform,n=e||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,l=s.screen.height,u=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const f=n.match(/(iPod)(.*OS\s([\d_]+))?/),g=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let y=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&t.touch&&E.indexOf(`${o}x${l}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!v&&(a.os="android",a.android=!0),(d||g||f)&&(a.os="ios",a.ios=!0),a}function XC(i){return i===void 0&&(i={}),ul||(ul=YC(i)),ul}let hl;function QC(){const i=fs();let e=!1;function t(){const s=i.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(t()){const s=String(i.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));e=r<16||r===16&&n<2}}return{isSafari:e||t(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function JC(){return hl||(hl=QC()),hl}function ZC(i){let{swiper:e,on:t,emit:s}=i;const r=fs();let n=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(f=>{a=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let y=g,E=v;f.forEach(b=>{let{contentBoxSize:w,contentRect:F,target:k}=b;k&&k!==e.el||(y=F?F.width:(w[0]||w).inlineSize,E=F?F.height:(w[0]||w).blockSize)}),(y!==g||E!==v)&&o()})}),n.observe(e.el))},u=()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),t("destroy",()=>{u(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function eR(i){let{swiper:e,extendParams:t,on:s,emit:r}=i;const n=[],a=fs(),o=function(d,f){f===void 0&&(f={});const g=a.MutationObserver||a.WebkitMutationObserver,v=new g(y=>{if(e.__preventObserver__)return;if(y.length===1){r("observerUpdate",y[0]);return}const E=function(){r("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(E):a.setTimeout(E,0)});v.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),n.push(v)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=WC(e.hostEl);for(let f=0;f<d.length;f+=1)o(d[f])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},u=()=>{n.forEach(d=>{d.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",u)}var tR={on(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=t?"unshift":"push";return i.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](e)}),s},once(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function r(){s.off(i,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];e.apply(s,a)}return r.__emitterProxy=e,s.on(i,r,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const s=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[s](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(s=>{typeof e>"u"?t.eventsListeners[s]=[]:t.eventsListeners[s]&&t.eventsListeners[s].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[s].splice(n,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,s;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),s=i):(e=n[0].events,t=n[0].data,s=n[0].context||i),t.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(u=>{u.apply(s,[l,...t])}),i.eventsListeners&&i.eventsListeners[l]&&i.eventsListeners[l].forEach(u=>{u.apply(s,t)})}),i}};function sR(){const i=this;let e,t;const s=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=s.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=s.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(Bi(s,"padding-left")||0,10)-parseInt(Bi(s,"padding-right")||0,10),t=t-parseInt(Bi(s,"padding-top")||0,10)-parseInt(Bi(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function iR(){const i=this;function e(se){return i.isHorizontal()?se:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[se]}function t(se,pe){return parseFloat(se.getPropertyValue(e(pe))||0)}const s=i.params,{wrapperEl:r,slidesEl:n,size:a,rtlTranslate:o,wrongRTL:l}=i,u=i.virtual&&s.virtual.enabled,d=u?i.virtual.slides.length:i.slides.length,f=vi(n,`.${i.params.slideClass}, swiper-slide`),g=u?i.virtual.slides.length:f.length;let v=[];const y=[],E=[];let b=s.slidesOffsetBefore;typeof b=="function"&&(b=s.slidesOffsetBefore.call(i));let w=s.slidesOffsetAfter;typeof w=="function"&&(w=s.slidesOffsetAfter.call(i));const F=i.snapGrid.length,k=i.slidesGrid.length;let U=s.spaceBetween,N=-b,te=0,j=0;if(typeof a>"u")return;typeof U=="string"&&U.indexOf("%")>=0?U=parseFloat(U.replace("%",""))/100*a:typeof U=="string"&&(U=parseFloat(U)),i.virtualSize=-U,f.forEach(se=>{o?se.style.marginLeft="":se.style.marginRight="",se.style.marginBottom="",se.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(ma(r,"--swiper-centered-offset-before",""),ma(r,"--swiper-centered-offset-after",""));const re=s.grid&&s.grid.rows>1&&i.grid;re&&i.grid.initSlides(g);let Q;const le=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(se=>typeof s.breakpoints[se].slidesPerView<"u").length>0;for(let se=0;se<g;se+=1){Q=0;let pe;if(f[se]&&(pe=f[se]),re&&i.grid.updateSlide(se,pe,g,e),!(f[se]&&Bi(pe,"display")==="none")){if(s.slidesPerView==="auto"){le&&(f[se].style[e("width")]="");const de=getComputedStyle(pe),be=pe.style.transform,Le=pe.style.webkitTransform;if(be&&(pe.style.transform="none"),Le&&(pe.style.webkitTransform="none"),s.roundLengths)Q=i.isHorizontal()?Vd(pe,"width"):Vd(pe,"height");else{const ue=t(de,"width"),he=t(de,"padding-left"),we=t(de,"padding-right"),me=t(de,"margin-left"),ye=t(de,"margin-right"),Ve=de.getPropertyValue("box-sizing");if(Ve&&Ve==="border-box")Q=ue+me+ye;else{const{clientWidth:$e,offsetWidth:Je}=pe;Q=ue+he+we+me+ye+(Je-$e)}}be&&(pe.style.transform=be),Le&&(pe.style.webkitTransform=Le),s.roundLengths&&(Q=Math.floor(Q))}else Q=(a-(s.slidesPerView-1)*U)/s.slidesPerView,s.roundLengths&&(Q=Math.floor(Q)),f[se]&&(f[se].style[e("width")]=`${Q}px`);f[se]&&(f[se].swiperSlideSize=Q),E.push(Q),s.centeredSlides?(N=N+Q/2+te/2+U,te===0&&se!==0&&(N=N-a/2-U),se===0&&(N=N-a/2-U),Math.abs(N)<1/1e3&&(N=0),s.roundLengths&&(N=Math.floor(N)),j%s.slidesPerGroup===0&&v.push(N),y.push(N)):(s.roundLengths&&(N=Math.floor(N)),(j-Math.min(i.params.slidesPerGroupSkip,j))%i.params.slidesPerGroup===0&&v.push(N),y.push(N),N=N+Q+U),i.virtualSize+=Q+U,te=Q,j+=1}}if(i.virtualSize=Math.max(i.virtualSize,a)+w,o&&l&&(s.effect==="slide"||s.effect==="coverflow")&&(r.style.width=`${i.virtualSize+U}px`),s.setWrapperSize&&(r.style[e("width")]=`${i.virtualSize+U}px`),re&&i.grid.updateWrapperSize(Q,v,e),!s.centeredSlides){const se=[];for(let pe=0;pe<v.length;pe+=1){let de=v[pe];s.roundLengths&&(de=Math.floor(de)),v[pe]<=i.virtualSize-a&&se.push(de)}v=se,Math.floor(i.virtualSize-a)-Math.floor(v[v.length-1])>1&&v.push(i.virtualSize-a)}if(u&&s.loop){const se=E[0]+U;if(s.slidesPerGroup>1){const pe=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/s.slidesPerGroup),de=se*s.slidesPerGroup;for(let be=0;be<pe;be+=1)v.push(v[v.length-1]+de)}for(let pe=0;pe<i.virtual.slidesBefore+i.virtual.slidesAfter;pe+=1)s.slidesPerGroup===1&&v.push(v[v.length-1]+se),y.push(y[y.length-1]+se),i.virtualSize+=se}if(v.length===0&&(v=[0]),U!==0){const se=i.isHorizontal()&&o?"marginLeft":e("marginRight");f.filter((pe,de)=>!s.cssMode||s.loop?!0:de!==f.length-1).forEach(pe=>{pe.style[se]=`${U}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let se=0;E.forEach(de=>{se+=de+(U||0)}),se-=U;const pe=se-a;v=v.map(de=>de<=0?-b:de>pe?pe+w:de)}if(s.centerInsufficientSlides){let se=0;if(E.forEach(pe=>{se+=pe+(U||0)}),se-=U,se<a){const pe=(a-se)/2;v.forEach((de,be)=>{v[be]=de-pe}),y.forEach((de,be)=>{y[be]=de+pe})}}if(Object.assign(i,{slides:f,snapGrid:v,slidesGrid:y,slidesSizesGrid:E}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){ma(r,"--swiper-centered-offset-before",`${-v[0]}px`),ma(r,"--swiper-centered-offset-after",`${i.size/2-E[E.length-1]/2}px`);const se=-i.snapGrid[0],pe=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(de=>de+se),i.slidesGrid=i.slidesGrid.map(de=>de+pe)}if(g!==d&&i.emit("slidesLengthChange"),v.length!==F&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),y.length!==k&&i.emit("slidesGridLengthChange"),s.watchSlidesProgress&&i.updateSlidesOffset(),!u&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const se=`${s.containerModifierClass}backface-hidden`,pe=i.el.classList.contains(se);g<=s.maxBackfaceHiddenSlides?pe||i.el.classList.add(se):pe&&i.el.classList.remove(se)}}function rR(i){const e=this,t=[],s=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const a=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{t.push(o)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const o=e.activeIndex+n;if(o>e.slides.length&&!s)break;t.push(a(o))}else t.push(a(e.activeIndex));for(n=0;n<t.length;n+=1)if(typeof t[n]<"u"){const o=t[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function nR(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(i.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-t-i.cssOverflowAdjustment()}function aR(i){i===void 0&&(i=this&&this.translate||0);const e=this,t=e.params,{slides:s,rtlTranslate:r,snapGrid:n}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-i;r&&(a=i),s.forEach(l=>{l.classList.remove(t.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=t.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<s.length;l+=1){const u=s[l];let d=u.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(d-=s[0].swiperSlideOffset);const f=(a+(t.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),g=(a-n[0]+(t.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),v=-(a-d),y=v+e.slidesSizesGrid[l];(v>=0&&v<e.size-1||y>1&&y<=e.size||v<=0&&y>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l),s[l].classList.add(t.slideVisibleClass)),u.progress=r?-f:f,u.originalProgress=r?-g:g}}function oR(i){const e=this;if(typeof i>"u"){const d=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*d||0}const t=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:o}=e;const l=n,u=a;if(s===0)r=0,n=!0,a=!0;else{r=(i-e.minTranslate())/s;const d=Math.abs(i-e.minTranslate())<1,f=Math.abs(i-e.maxTranslate())<1;n=d||r<=0,a=f||r>=1,d&&(r=0),f&&(r=1)}if(t.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),g=e.slidesGrid[d],v=e.slidesGrid[f],y=e.slidesGrid[e.slidesGrid.length-1],E=Math.abs(i);E>=g?o=(E-g)/y:o=(E+y-v)/y,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:n,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),n&&!l&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(l&&!n||u&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}function lR(){const i=this,{slides:e,params:t,slidesEl:s,activeIndex:r}=i,n=i.virtual&&t.virtual.enabled,a=l=>vi(s,`.${t.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(t.slideActiveClass,t.slideNextClass,t.slidePrevClass)});let o;if(n)if(t.loop){let l=r-i.virtual.slidesBefore;l<0&&(l=i.virtual.slides.length+l),l>=i.virtual.slides.length&&(l-=i.virtual.slides.length),o=a(`[data-swiper-slide-index="${l}"]`)}else o=a(`[data-swiper-slide-index="${r}"]`);else o=e[r];if(o){o.classList.add(t.slideActiveClass);let l=zC(o,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!l&&(l=e[0]),l&&l.classList.add(t.slideNextClass);let u=KC(o,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(t.slidePrevClass)}i.emitSlidesClasses()}const Ra=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,s=e.closest(t());if(s){let r=s.querySelector(`.${i.params.lazyPreloaderClass}`);!r&&i.isElement&&(s.shadowRoot?r=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(r=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},dl=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},Gl=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const s=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),r=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const a=r,o=[a-e];o.push(...Array.from({length:e}).map((l,u)=>a+s+u)),i.slides.forEach((l,u)=>{o.includes(l.column)&&dl(i,u)});return}const n=r+s-1;if(i.params.rewind||i.params.loop)for(let a=r-e;a<=n+e;a+=1){const o=(a%t+t)%t;(o<r||o>n)&&dl(i,o)}else for(let a=Math.max(r-e,0);a<=Math.min(n+e,t-1);a+=1)a!==r&&(a>n||a<r)&&dl(i,a)};function cR(i){const{slidesGrid:e,params:t}=i,s=i.rtlTranslate?i.translate:-i.translate;let r;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?s>=e[n]&&s<e[n+1]-(e[n+1]-e[n])/2?r=n:s>=e[n]&&s<e[n+1]&&(r=n+1):s>=e[n]&&(r=n);return t.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function uR(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:a,snapIndex:o}=e;let l=i,u;const d=g=>{let v=g-e.virtual.slidesBefore;return v<0&&(v=e.virtual.slides.length+v),v>=e.virtual.slides.length&&(v-=e.virtual.slides.length),v};if(typeof l>"u"&&(l=cR(e)),s.indexOf(t)>=0)u=s.indexOf(t);else{const g=Math.min(r.slidesPerGroupSkip,l);u=g+Math.floor((l-g)/r.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),l===n){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=d(l));return}let f;e.virtual&&r.virtual.enabled&&r.loop?f=d(l):e.slides[l]?f=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:a,realIndex:f,previousIndex:n,activeIndex:l}),e.initialized&&Gl(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function hR(i,e){const t=this,s=t.params;let r=i.closest(`.${s.slideClass}, swiper-slide`);!r&&t.isElement&&e&&e.length>1&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(r=o)});let n=!1,a;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){n=!0,a=o;break}}if(r&&n)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=a;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}s.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var dR={updateSize:sR,updateSlides:iR,updateAutoHeight:rR,updateSlidesOffset:nR,updateSlidesProgress:aR,updateProgress:oR,updateSlidesClasses:lR,updateActiveIndex:uR,updateClickedSlide:hR};function fR(i){i===void 0&&(i=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:s,translate:r,wrapperEl:n}=e;if(t.virtualTranslate)return s?-r:r;if(t.cssMode)return r;let a=VC(n,i);return a+=e.cssOverflowAdjustment(),s&&(a=-a),a||0}function pR(i,e){const t=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:a}=t;let o=0,l=0;const u=0;t.isHorizontal()?o=s?-i:i:l=i,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?o:l,r.cssMode?n[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-o:-l:r.virtualTranslate||(t.isHorizontal()?o-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${l}px, ${u}px)`);let d;const f=t.maxTranslate()-t.minTranslate();f===0?d=0:d=(i-t.minTranslate())/f,d!==a&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function gR(){return-this.snapGrid[0]}function mR(){return-this.snapGrid[this.snapGrid.length-1]}function vR(i,e,t,s,r){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),s===void 0&&(s=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),u=n.maxTranslate();let d;if(s&&i>l?d=l:s&&i<u?d=u:d=i,n.updateProgress(d),a.cssMode){const f=n.isHorizontal();if(e===0)o[f?"scrollLeft":"scrollTop"]=-d;else{if(!n.support.smoothScroll)return Vg({swiper:n,targetPosition:-d,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(d),t&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(d),t&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(g){!n||n.destroyed||g.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,t&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var yR={getTranslate:fR,setTranslate:pR,minTranslate:gR,maxTranslate:mR,translateTo:vR};function xR(i,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${i}ms`,t.wrapperEl.style.transitionDelay=i===0?"0ms":""),t.emit("setTransition",i,e)}function jg(i){let{swiper:e,runCallbacks:t,direction:s,step:r}=i;const{activeIndex:n,previousIndex:a}=e;let o=s;if(o||(n>a?o="next":n<a?o="prev":o="reset"),e.emit(`transition${r}`),t&&n!==a){if(o==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function SR(i,e){i===void 0&&(i=!0);const t=this,{params:s}=t;s.cssMode||(s.autoHeight&&t.updateAutoHeight(),jg({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function ER(i,e){i===void 0&&(i=!0);const t=this,{params:s}=t;t.animating=!1,!s.cssMode&&(t.setTransition(0),jg({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var bR={setTransition:xR,transitionStart:SR,transitionEnd:ER};function TR(i,e,t,s,r){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const n=this;let a=i;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:g,wrapperEl:v,enabled:y}=n;if(n.animating&&o.preventInteractionOnTransition||!y&&!s&&!r)return!1;const E=Math.min(n.params.slidesPerGroupSkip,a);let b=E+Math.floor((a-E)/n.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const w=-l[b];if(o.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const U=-Math.floor(w*100),N=Math.floor(u[k]*100),te=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?U>=N&&U<te-(te-N)/2?a=k:U>=N&&U<te&&(a=k+1):U>=N&&(a=k)}if(n.initialized&&a!==f&&(!n.allowSlideNext&&(g?w>n.translate&&w>n.minTranslate():w<n.translate&&w<n.minTranslate())||!n.allowSlidePrev&&w>n.translate&&w>n.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&t&&n.emit("beforeSlideChangeStart"),n.updateProgress(w);let F;if(a>f?F="next":a<f?F="prev":F="reset",g&&-w===n.translate||!g&&w===n.translate)return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(w),F!=="reset"&&(n.transitionStart(t,F),n.transitionEnd(t,F)),!1;if(o.cssMode){const k=n.isHorizontal(),U=g?w:-w;if(e===0){const N=n.virtual&&n.params.virtual.enabled;N&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),N&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[k?"scrollLeft":"scrollTop"]=U})):v[k?"scrollLeft":"scrollTop"]=U,N&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Vg({swiper:n,targetPosition:U,side:k?"left":"top"}),!0;v.scrollTo({[k?"left":"top"]:U,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(w),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(t,F),e===0?n.transitionEnd(t,F):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(U){!n||n.destroyed||U.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(t,F))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function wR(i,e,t,s){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const r=this;let n=i;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,e,t,s)}function AR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:n,animating:a}=s;if(!r)return s;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<n.slidesPerGroupSkip?1:o,u=s.virtual&&n.virtual.enabled;if(n.loop){if(a&&!u&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,i,e,t)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,i,e,t):s.slideTo(s.activeIndex+l,i,e,t)}function LR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=s;if(!l)return s;const d=s.virtual&&r.virtual.enabled;if(r.loop){if(u&&!d&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=o?s.translate:-s.translate;function g(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const v=g(f),y=n.map(w=>g(w));let E=n[y.indexOf(v)-1];if(typeof E>"u"&&r.cssMode){let w;n.forEach((F,k)=>{v>=F&&(w=k)}),typeof w<"u"&&(E=n[w>0?w-1:w])}let b=0;if(typeof E<"u"&&(b=a.indexOf(E),b<0&&(b=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(b=b-s.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),r.rewind&&s.isBeginning){const w=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(w,i,e,t)}else if(r.loop&&s.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(b,i,e,t)}),!0;return s.slideTo(b,i,e,t)}function CR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,i,e,t)}function RR(i,e,t,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const u=r.snapGrid[o],d=r.snapGrid[o+1];l-u>(d-u)*s&&(n+=r.params.slidesPerGroup)}else{const u=r.snapGrid[o-1],d=r.snapGrid[o];l-u<=(d-u)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,i,e,t)}function _R(){const i=this,{params:e,slidesEl:t}=i,s=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let r=i.clickedIndex,n;const a=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;n=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<i.loopedSlides-s/2||r>i.slides.length-i.loopedSlides+s/2?(i.loopFix(),r=i.getSlideIndex(vi(t,`${a}[data-swiper-slide-index="${n}"]`)[0]),Ul(()=>{i.slideTo(r)})):i.slideTo(r):r>i.slides.length-s?(i.loopFix(),r=i.getSlideIndex(vi(t,`${a}[data-swiper-slide-index="${n}"]`)[0]),Ul(()=>{i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}var IR={slideTo:TR,slideToLoop:wR,slideNext:AR,slidePrev:LR,slideReset:CR,slideToClosest:RR,slideToClickedSlide:_R};function kR(i){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;vi(s,`.${t.slideClass}, swiper-slide`).forEach((n,a)=>{n.setAttribute("data-swiper-slide-index",a)}),e.loopFix({slideRealIndex:i,direction:t.centeredSlides?void 0:"next"})}function PR(i){let{slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:r,activeSlideIndex:n,byController:a,byMousewheel:o}=i===void 0?{}:i;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:g,params:v}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):v.centeredSlides&&l.snapIndex<v.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=f,l.emit("loopFix");return}const y=v.slidesPerView==="auto"?l.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let E=v.loopedSlides||y;E%v.slidesPerGroup!==0&&(E+=v.slidesPerGroup-E%v.slidesPerGroup),l.loopedSlides=E;const b=[],w=[];let F=l.activeIndex;typeof n>"u"?n=l.getSlideIndex(l.slides.filter(j=>j.classList.contains(v.slideActiveClass))[0]):F=n;const k=s==="next"||!s,U=s==="prev"||!s;let N=0,te=0;if(n<E){N=Math.max(E-n,v.slidesPerGroup);for(let j=0;j<E-n;j+=1){const re=j-Math.floor(j/u.length)*u.length;b.push(u.length-re-1)}}else if(n>l.slides.length-E*2){te=Math.max(n-(l.slides.length-E*2),v.slidesPerGroup);for(let j=0;j<te;j+=1){const re=j-Math.floor(j/u.length)*u.length;w.push(re)}}if(U&&b.forEach(j=>{l.slides[j].swiperLoopMoveDOM=!0,g.prepend(l.slides[j]),l.slides[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{l.slides[j].swiperLoopMoveDOM=!0,g.append(l.slides[j]),l.slides[j].swiperLoopMoveDOM=!1}),l.recalcSlides(),v.slidesPerView==="auto"&&l.updateSlides(),v.watchSlidesProgress&&l.updateSlidesOffset(),t){if(b.length>0&&U)if(typeof e>"u"){const j=l.slidesGrid[F],Q=l.slidesGrid[F+N]-j;o?l.setTranslate(l.translate-Q):(l.slideTo(F+N,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=Q,l.touchEventsData.currentTranslate=l.translate))}else r&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(w.length>0&&k)if(typeof e>"u"){const j=l.slidesGrid[F],Q=l.slidesGrid[F-te]-j;o?l.setTranslate(l.translate-Q):(l.slideTo(F-te,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=Q,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const j={slideRealIndex:e,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(re=>{!re.destroyed&&re.params.loop&&re.loopFix({...j,slideTo:re.params.slidesPerView===v.slidesPerView?t:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...j,slideTo:l.controller.control.params.slidesPerView===v.slidesPerView?t:!1})}l.emit("loopFix")}function DR(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const s=[];i.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),i.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{t.append(r)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var MR={loopCreate:kR,loopFix:PR,loopDestroy:DR};function FR(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function OR(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var NR={setGrabCursor:FR,unsetGrabCursor:OR};function BR(i,e){e===void 0&&(e=this);function t(s){if(!s||s===lr()||s===fs())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(i);return!r&&!s.getRootNode?null:r||t(s.getRootNode().host)}return t(e)}function $R(i){const e=this,t=lr(),s=fs(),r=e.touchEventsData;r.evCache.push(i);const{params:n,touches:a,enabled:o}=e;if(!o||!n.simulateTouch&&i.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let l=i;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const d=!!n.noSwipingClass&&n.noSwipingClass!=="",f=i.composedPath?i.composedPath():i.path;d&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const g=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,v=!!(l.target&&l.target.shadowRoot);if(n.noSwiping&&(v?BR(g,u):u.closest(g))){e.allowClick=!0;return}if(n.swipeHandler&&!u.closest(n.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const y=a.currentX,E=a.currentY,b=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,w=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(b&&(y<=w||y>=s.innerWidth-w))if(b==="prevent")i.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=y,a.startY=E,r.touchStartTime=Ya(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let F=!0;u.matches(r.focusableElements)&&(F=!1,u.nodeName==="SELECT"&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u&&t.activeElement.blur();const k=F&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||k)&&!u.isContentEditable&&l.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function UR(i){const e=lr(),t=this,s=t.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=t;if(!o||!r.simulateTouch&&i.pointerType==="mouse")return;let l=i;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l);return}const u=s.evCache.findIndex(j=>j.pointerId===l.pointerId);u>=0&&(s.evCache[u]=l);const d=s.evCache.length>1?s.evCache[0]:l,f=d.pageX,g=d.pageY;if(l.preventedByNestedSwiper){n.startX=f,n.startY=g;return}if(!t.allowTouchMove){l.target.matches(s.focusableElements)||(t.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:f,startY:g,prevX:t.touches.currentX,prevY:t.touches.currentY,currentX:f,currentY:g}),s.touchStartTime=Ya());return}if(r.touchReleaseOnEdges&&!r.loop){if(t.isVertical()){if(g<n.startY&&t.translate<=t.maxTranslate()||g>n.startY&&t.translate>=t.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(f<n.startX&&t.translate<=t.maxTranslate()||f>n.startX&&t.translate>=t.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,t.allowClick=!1;return}if(s.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;n.currentX=f,n.currentY=g;const v=n.currentX-n.startX,y=n.currentY-n.startY;if(t.params.threshold&&Math.sqrt(v**2+y**2)<t.params.threshold)return;if(typeof s.isScrolling>"u"){let j;t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:v*v+y*y>=25&&(j=Math.atan2(Math.abs(y),Math.abs(v))*180/Math.PI,s.isScrolling=t.isHorizontal()?j>r.touchAngle:90-j>r.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||t.zoom&&t.params.zoom&&t.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let E=t.isHorizontal()?v:y,b=t.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(E=Math.abs(E)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),n.diff=E,E*=r.touchRatio,a&&(E=-E,b=-b);const w=t.touchesDirection;t.swipeDirection=E>0?"prev":"next",t.touchesDirection=b>0?"prev":"next";const F=t.params.loop&&!r.cssMode,k=t.swipeDirection==="next"&&t.allowSlideNext||t.swipeDirection==="prev"&&t.allowSlidePrev;if(!s.isMoved){if(F&&k&&t.loopFix({direction:t.swipeDirection}),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const j=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(j)}s.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}let U;s.isMoved&&w!==t.touchesDirection&&F&&k&&Math.abs(E)>=1&&(t.loopFix({direction:t.swipeDirection,setTranslate:!0}),U=!0),t.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=E+s.startTranslate;let N=!0,te=r.resistanceRatio;if(r.touchReleaseOnEdges&&(te=0),E>0?(F&&k&&!U&&s.currentTranslate>(r.centeredSlides?t.minTranslate()-t.size/2:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>t.minTranslate()&&(N=!1,r.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+E)**te))):E<0&&(F&&k&&!U&&s.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.size/2:t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<t.maxTranslate()&&(N=!1,r.resistance&&(s.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-s.startTranslate-E)**te))),N&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(E)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function GR(i){const e=this,t=e.touchEventsData,s=t.evCache.findIndex(k=>k.pointerId===i.pointerId);if(s>=0&&t.evCache.splice(s,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:a,slidesGrid:o,enabled:l}=e;if(!l||!r.simulateTouch&&i.pointerType==="mouse")return;let u=i;if(u.originalEvent&&(u=u.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",u),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=Ya(),f=d-t.touchStartTime;if(e.allowClick){const k=u.path||u.composedPath&&u.composedPath();e.updateClickedSlide(k&&k[0]||u.target,k),e.emit("tap click",u),f<300&&d-t.lastClickTime<300&&e.emit("doubleTap doubleClick",u)}if(t.lastClickTime=Ya(),Ul(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||n.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let g;if(r.followFinger?g=a?e.translate:-e.translate:g=-t.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:g});return}let v=0,y=e.slidesSizesGrid[0];for(let k=0;k<o.length;k+=k<r.slidesPerGroupSkip?1:r.slidesPerGroup){const U=k<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[k+U]<"u"?g>=o[k]&&g<o[k+U]&&(v=k,y=o[k+U]-o[k]):g>=o[k]&&(v=k,y=o[o.length-1]-o[o.length-2])}let E=null,b=null;r.rewind&&(e.isBeginning?b=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(E=0));const w=(g-o[v])/y,F=v<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?E:v+F):e.slideTo(v)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(v+F):b!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(b):e.slideTo(v))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(u.target===e.navigation.nextEl||u.target===e.navigation.prevEl)?u.target===e.navigation.nextEl?e.slideTo(v+F):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(E!==null?E:v+F),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:v))}}function Hd(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=i,a=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!o?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!a?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=r,i.allowSlideNext=s,i.params.watchOverflow&&n!==i.snapGrid&&i.checkOverflow()}function VR(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function HR(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:s}=i;if(!s)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let r;const n=i.maxTranslate()-i.minTranslate();n===0?r=0:r=(i.translate-i.minTranslate())/n,r!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function jR(i){const e=this;Ra(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let jd=!1;function KR(){}const Kg=(i,e)=>{const t=lr(),{params:s,el:r,wrapperEl:n,device:a}=i,o=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;r[l]("pointerdown",i.onTouchStart,{passive:!1}),t[l]("pointermove",i.onTouchMove,{passive:!1,capture:o}),t[l]("pointerup",i.onTouchEnd,{passive:!0}),t[l]("pointercancel",i.onTouchEnd,{passive:!0}),t[l]("pointerout",i.onTouchEnd,{passive:!0}),t[l]("pointerleave",i.onTouchEnd,{passive:!0}),t[l]("contextmenu",i.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",i.onClick,!0),s.cssMode&&n[l]("scroll",i.onScroll),s.updateOnWindowResize?i[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hd,!0):i[u]("observerUpdate",Hd,!0),r[l]("load",i.onLoad,{capture:!0})};function zR(){const i=this,e=lr(),{params:t}=i;i.onTouchStart=$R.bind(i),i.onTouchMove=UR.bind(i),i.onTouchEnd=GR.bind(i),t.cssMode&&(i.onScroll=HR.bind(i)),i.onClick=VR.bind(i),i.onLoad=jR.bind(i),jd||(e.addEventListener("touchstart",KR),jd=!0),Kg(i,"on")}function WR(){Kg(this,"off")}var qR={attachEvents:zR,detachEvents:WR};const Kd=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function YR(){const i=this,{realIndex:e,initialized:t,params:s,el:r}=i,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=i.getBreakpoint(n,i.params.breakpointsBase,i.el);if(!a||i.currentBreakpoint===a)return;const l=(a in n?n[a]:void 0)||i.originalParams,u=Kd(i,s),d=Kd(i,l),f=s.enabled;u&&!d?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),i.emitContainerClasses()):!u&&d&&(r.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof l[w]>"u")return;const F=s[w]&&s[w].enabled,k=l[w]&&l[w].enabled;F&&!k&&i[w].disable(),!F&&k&&i[w].enable()});const g=l.direction&&l.direction!==s.direction,v=s.loop&&(l.slidesPerView!==s.slidesPerView||g),y=s.loop;g&&t&&i.changeDirection(),us(i.params,l);const E=i.params.enabled,b=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),f&&!E?i.disable():!f&&E&&i.enable(),i.currentBreakpoint=a,i.emit("_beforeBreakpoint",l),t&&(v?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!y&&b?(i.loopCreate(e),i.updateSlides()):y&&!b&&i.loopDestroy()),i.emit("breakpoint",l)}function XR(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let s=!1;const r=fs(),n=e==="window"?r.innerHeight:t.clientHeight,a=Object.keys(i).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:n*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:u}=a[o];e==="window"?r.matchMedia(`(min-width: ${u}px)`).matches&&(s=l):u<=t.clientWidth&&(s=l)}return s||"max"}var QR={setBreakpoint:YR,getBreakpoint:XR};function JR(i,e){const t=[];return i.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&t.push(e+r)}):typeof s=="string"&&t.push(e+s)}),t}function ZR(){const i=this,{classNames:e,params:t,rtl:s,el:r,device:n}=i,a=JR(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:s},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),r.classList.add(...e),i.emitContainerClasses()}function e_(){const i=this,{el:e,classNames:t}=i;e.classList.remove(...t),i.emitContainerClasses()}var t_={addClasses:ZR,removeClasses:e_};function s_(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:s}=t;if(s){const r=i.slides.length-1,n=i.slidesGrid[r]+i.slidesSizesGrid[r]+s*2;i.isLocked=i.size>n}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var i_={checkOverflow:s_},Vl={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function r_(i,e){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){us(e,s);return}if(i[r]===!0&&(i[r]={enabled:!0}),r==="navigation"&&i[r]&&i[r].enabled&&!i[r].prevEl&&!i[r].nextEl&&(i[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&i[r]&&i[r].enabled&&!i[r].el&&(i[r].auto=!0),!(r in i&&"enabled"in n)){us(e,s);return}typeof i[r]=="object"&&!("enabled"in i[r])&&(i[r].enabled=!0),i[r]||(i[r]={enabled:!1}),us(e,s)}}const fl={eventsEmitter:tR,update:dR,translate:yR,transition:bR,slide:IR,loop:MR,grabCursor:NR,events:qR,breakpoints:QR,checkOverflow:i_,classes:t_},pl={};let Oc=class pi{constructor(){let e,t;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?t=r[0]:[e,t]=r,t||(t={}),t=us({},t),e&&!t.el&&(t.el=e);const a=lr();if(t.el&&typeof t.el=="string"&&a.querySelectorAll(t.el).length>1){const d=[];return a.querySelectorAll(t.el).forEach(f=>{const g=us({},t,{el:f});d.push(new pi(g))}),d}const o=this;o.__swiper__=!0,o.support=Hg(),o.device=XC({userAgent:t.userAgent}),o.browser=JC(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const l={};o.modules.forEach(d=>{d({params:t,swiper:o,extendParams:r_(t,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const u=us({},Vl,l);return o.params=us({},u,pl,t),o.originalParams=us({},o.params),o.passedParams=us({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){const{slidesEl:t,params:s}=this,r=vi(t,`.${s.slideClass}, swiper-slide`),n=Gd(r[0]);return Gd(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>t.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:t,params:s}=e;e.slides=vi(t,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const r=s.minTranslate(),a=(s.maxTranslate()-r)*e+r;s.translateTo(a,typeof t>"u"?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(s=>{const r=e.getSlideClasses(s);t.push({slideEl:s,classNames:r}),e.emit("_slideClass",s,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const s=this,{params:r,slides:n,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=s;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let f=n[u]?n[u].swiperSlideSize:0,g;for(let v=u+1;v<n.length;v+=1)n[v]&&!g&&(f+=n[v].swiperSlideSize,d+=1,f>l&&(g=!0));for(let v=u-1;v>=0;v-=1)n[v]&&!g&&(f+=n[v].swiperSlideSize,d+=1,f>l&&(g=!0))}else if(e==="current")for(let f=u+1;f<n.length;f+=1)(t?a[f]+o[f]-a[u]<l:a[f]-a[u]<l)&&(d+=1);else for(let f=u-1;f>=0;f-=1)a[u]-a[f]<l&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Ra(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const a=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const s=this,r=s.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):vi(s,r())[0];return!a&&t.params.createElements&&(a=jC("div",t.params.wrapperClass),s.append(a),vi(s,`.${t.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(t,{el:s,wrapperEl:a,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:a,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||Bi(s,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||Bi(s,"direction")==="rtl"),wrongRTL:Bi(a,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?Ra(t,n):n.addEventListener("load",a=>{Ra(t,a.target)})}),Gl(t),t.initialized=!0,Gl(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const s=this,{params:r,el:n,wrapperEl:a,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),t&&(s.removeClasses(),n.removeAttribute("style"),a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,UC(s)),s.destroyed=!0),null}static extendDefaults(e){us(pl,e)}static get extendedDefaults(){return pl}static get defaults(){return Vl}static installModule(e){pi.prototype.__modules__||(pi.prototype.__modules__=[]);const t=pi.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>pi.installModule(t)),pi):(pi.installModule(e),pi)}};Object.keys(fl).forEach(i=>{Object.keys(fl[i]).forEach(e=>{Oc.prototype[e]=fl[i][e]})});Oc.use([ZC,eR]);const zg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function or(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"&&!i.__swiper__}function rr(i,e){const t=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>t.indexOf(s)<0).forEach(s=>{typeof i[s]>"u"?i[s]=e[s]:or(e[s])&&or(i[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?i[s]=e[s]:rr(i[s],e[s]):i[s]=e[s]})}function Wg(i){return i===void 0&&(i={}),i.navigation&&typeof i.navigation.nextEl>"u"&&typeof i.navigation.prevEl>"u"}function qg(i){return i===void 0&&(i={}),i.pagination&&typeof i.pagination.el>"u"}function Yg(i){return i===void 0&&(i={}),i.scrollbar&&typeof i.scrollbar.el>"u"}function Xg(i){i===void 0&&(i="");const e=i.split(" ").map(s=>s.trim()).filter(s=>!!s),t=[];return e.forEach(s=>{t.indexOf(s)<0&&t.push(s)}),t.join(" ")}function n_(i){return i===void 0&&(i=""),i?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper"}function a_(i){let{swiper:e,slides:t,passedParams:s,changedParams:r,nextEl:n,prevEl:a,scrollbarEl:o,paginationEl:l}=i;const u=r.filter(Q=>Q!=="children"&&Q!=="direction"&&Q!=="wrapperClass"),{params:d,pagination:f,navigation:g,scrollbar:v,virtual:y,thumbs:E}=e;let b,w,F,k,U,N,te,j;r.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(b=!0),r.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(w=!0),r.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(F=!0),r.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&v&&!v.el&&(k=!0),r.includes("navigation")&&s.navigation&&(s.navigation.prevEl||a)&&(s.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(U=!0);const re=Q=>{e[Q]&&(e[Q].destroy(),Q==="navigation"?(e.isElement&&(e[Q].prevEl.remove(),e[Q].nextEl.remove()),d[Q].prevEl=void 0,d[Q].nextEl=void 0,e[Q].prevEl=void 0,e[Q].nextEl=void 0):(e.isElement&&e[Q].el.remove(),d[Q].el=void 0,e[Q].el=void 0))};r.includes("loop")&&e.isElement&&(d.loop&&!s.loop?N=!0:!d.loop&&s.loop?te=!0:j=!0),u.forEach(Q=>{if(or(d[Q])&&or(s[Q]))rr(d[Q],s[Q]),(Q==="navigation"||Q==="pagination"||Q==="scrollbar")&&"enabled"in s[Q]&&!s[Q].enabled&&re(Q);else{const le=s[Q];(le===!0||le===!1)&&(Q==="navigation"||Q==="pagination"||Q==="scrollbar")?le===!1&&re(Q):d[Q]=s[Q]}}),u.includes("controller")&&!w&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),r.includes("children")&&t&&y&&d.virtual.enabled&&(y.slides=t,y.update(!0)),r.includes("children")&&t&&d.loop&&(j=!0),b&&E.init()&&E.update(!0),w&&(e.controller.control=d.controller.control),F&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),k&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),v.init(),v.updateSize(),v.setTranslate()),U&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.constructor.nextButtonSvg,n.part.add("button-next"),e.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),n&&(d.navigation.nextEl=n),a&&(d.navigation.prevEl=a),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),r.includes("direction")&&e.changeDirection(s.direction,!1),(N||j)&&e.loopDestroy(),(te||j)&&e.loopCreate(),e.update()}function o_(i,e){i===void 0&&(i={}),e===void 0&&(e=!0);const t={on:{}},s={},r={};rr(t,Vl),t._emitClasses=!0,t.init=!1;const n={},a=zg.map(l=>l.replace(/_/,"")),o=Object.assign({},i);return Object.keys(o).forEach(l=>{typeof i[l]>"u"||(a.indexOf(l)>=0?or(i[l])?(t[l]={},r[l]={},rr(t[l],i[l]),rr(r[l],i[l])):(t[l]=i[l],r[l]=i[l]):l.search(/on[A-Z]/)===0&&typeof i[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:t.on[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:n[l]=i[l])}),["navigation","pagination","scrollbar"].forEach(l=>{t[l]===!0&&(t[l]={}),t[l]===!1&&delete t[l]}),{params:t,passedParams:r,rest:n,events:s}}function l_(i,e){let{el:t,nextEl:s,prevEl:r,paginationEl:n,scrollbarEl:a,swiper:o}=i;Wg(e)&&s&&r&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),qg(e)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),Yg(e)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(t)}function c_(i,e,t,s,r){const n=[];if(!e)return n;const a=l=>{n.indexOf(l)<0&&n.push(l)};if(t&&s){const l=s.map(r),u=t.map(r);l.join("")!==u.join("")&&a("children"),s.length!==t.length&&a("children")}return zg.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in i&&l in e)if(or(i[l])&&or(e[l])){const u=Object.keys(i[l]),d=Object.keys(e[l]);u.length!==d.length?a(l):(u.forEach(f=>{i[l][f]!==e[l][f]&&a(l)}),d.forEach(f=>{i[l][f]!==e[l][f]&&a(l)}))}else i[l]!==e[l]&&a(l)}),n}const u_=i=>{!i||i.destroyed||!i.params.virtual||i.params.virtual&&!i.params.virtual.enabled||(i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.parallax&&i.params.parallax&&i.params.parallax.enabled&&i.parallax.setTranslate())};function Xa(){return Xa=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=t[s])}return i},Xa.apply(this,arguments)}function Qg(i){return i.type&&i.type.displayName&&i.type.displayName.includes("SwiperSlide")}function Jg(i){const e=[];return fe.Children.toArray(i).forEach(t=>{Qg(t)?e.push(t):t.props&&t.props.children&&Jg(t.props.children).forEach(s=>e.push(s))}),e}function h_(i){const e=[],t={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return fe.Children.toArray(i).forEach(s=>{if(Qg(s))e.push(s);else if(s.props&&s.props.slot&&t[s.props.slot])t[s.props.slot].push(s);else if(s.props&&s.props.children){const r=Jg(s.props.children);r.length>0?r.forEach(n=>e.push(n)):t["container-end"].push(s)}else t["container-end"].push(s)}),{slides:e,slots:t}}function d_(i,e,t){if(!t)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},r=i.isHorizontal()?{[i.rtlTranslate?"right":"left"]:`${t.offset}px`}:{top:`${t.offset}px`},{from:n,to:a}=t,o=i.params.loop?-e.length:0,l=i.params.loop?e.length*2:e.length,u=[];for(let d=o;d<l;d+=1)d>=n&&d<=a&&u.push(e[s(d)]);return u.map((d,f)=>fe.cloneElement(d,{swiper:i,style:r,key:`slide-${f}`}))}function Sn(i,e){return typeof window>"u"?fe.useEffect(i,e):fe.useLayoutEffect(i,e)}const zd=fe.createContext(null),f_=fe.createContext(null),p_=fe.forwardRef(function(i,e){let{className:t,tag:s="div",wrapperTag:r="div",children:n,onSwiper:a,...o}=i===void 0?{}:i,l=!1;const[u,d]=fe.useState("swiper"),[f,g]=fe.useState(null),[v,y]=fe.useState(!1),E=fe.useRef(!1),b=fe.useRef(null),w=fe.useRef(null),F=fe.useRef(null),k=fe.useRef(null),U=fe.useRef(null),N=fe.useRef(null),te=fe.useRef(null),j=fe.useRef(null),{params:re,passedParams:Q,rest:le,events:se}=o_(o),{slides:pe,slots:de}=h_(n),be=()=>{y(!v)};Object.assign(re.on,{_containerClasses(me,ye){d(ye)}});const Le=()=>{Object.assign(re.on,se),l=!0;const me={...re};if(delete me.wrapperClass,w.current=new Oc(me),w.current.virtual&&w.current.params.virtual.enabled){w.current.virtual.slides=pe;const ye={cache:!1,slides:pe,renderExternal:g,renderExternalUpdate:!1};rr(w.current.params.virtual,ye),rr(w.current.originalParams.virtual,ye)}};b.current||Le(),w.current&&w.current.on("_beforeBreakpoint",be);const ue=()=>{l||!se||!w.current||Object.keys(se).forEach(me=>{w.current.on(me,se[me])})},he=()=>{!se||!w.current||Object.keys(se).forEach(me=>{w.current.off(me,se[me])})};fe.useEffect(()=>()=>{w.current&&w.current.off("_beforeBreakpoint",be)}),fe.useEffect(()=>{!E.current&&w.current&&(w.current.emitSlidesClasses(),E.current=!0)}),Sn(()=>{if(e&&(e.current=b.current),!!b.current)return w.current.destroyed&&Le(),l_({el:b.current,nextEl:U.current,prevEl:N.current,paginationEl:te.current,scrollbarEl:j.current,swiper:w.current},re),a&&a(w.current),()=>{w.current&&!w.current.destroyed&&w.current.destroy(!0,!1)}},[]),Sn(()=>{ue();const me=c_(Q,F.current,pe,k.current,ye=>ye.key);return F.current=Q,k.current=pe,me.length&&w.current&&!w.current.destroyed&&a_({swiper:w.current,slides:pe,passedParams:Q,changedParams:me,nextEl:U.current,prevEl:N.current,scrollbarEl:j.current,paginationEl:te.current}),()=>{he()}}),Sn(()=>{u_(w.current)},[f]);function we(){return re.virtual?d_(w.current,pe,f):pe.map((me,ye)=>fe.cloneElement(me,{swiper:w.current,swiperSlideIndex:ye}))}return fe.createElement(s,Xa({ref:b,className:Xg(`${u}${t?` ${t}`:""}`)},le),fe.createElement(f_.Provider,{value:w.current},de["container-start"],fe.createElement(r,{className:n_(re.wrapperClass)},de["wrapper-start"],we(),de["wrapper-end"]),Wg(re)&&fe.createElement(fe.Fragment,null,fe.createElement("div",{ref:N,className:"swiper-button-prev"}),fe.createElement("div",{ref:U,className:"swiper-button-next"})),Yg(re)&&fe.createElement("div",{ref:j,className:"swiper-scrollbar"}),qg(re)&&fe.createElement("div",{ref:te,className:"swiper-pagination"}),de["container-end"]))});p_.displayName="Swiper";const g_=fe.forwardRef(function(i,e){let{tag:t="div",children:s,className:r="",swiper:n,zoom:a,lazy:o,virtualIndex:l,swiperSlideIndex:u,...d}=i===void 0?{}:i;const f=fe.useRef(null),[g,v]=fe.useState("swiper-slide"),[y,E]=fe.useState(!1);function b(U,N,te){N===f.current&&v(te)}Sn(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!n)){if(n.destroyed){g!=="swiper-slide"&&v("swiper-slide");return}return n.on("_slideClass",b),()=>{n&&n.off("_slideClass",b)}}}),Sn(()=>{n&&f.current&&!n.destroyed&&v(n.getSlideClasses(f.current))},[n]);const w={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},F=()=>typeof s=="function"?s(w):s,k=()=>{E(!0)};return fe.createElement(t,Xa({ref:f,className:Xg(`${g}${r?` ${r}`:""}`),"data-swiper-slide-index":l,onLoad:k},d),a&&fe.createElement(zd.Provider,{value:w},fe.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},F(),o&&!y&&fe.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&fe.createElement(zd.Provider,{value:w},F(),o&&!y&&fe.createElement("div",{className:"swiper-lazy-preloader"})))});g_.displayName="SwiperSlide";const m_=[{key:"entryTime",title:"진입 시간",value:"",accumulate:!1},{key:"lastUpdated",title:"데이터 업데이트 시간",value:"",accumulate:!1},{key:"clientId",title:"클라이언트 ID",value:"",accumulate:!1},{key:"id",title:"ID",value:"",accumulate:!1},{key:"likeCount",title:"좋아요수",value:[0,0],accumulate:!0},{key:"commentCount",title:"댓글수",value:0,accumulate:!0},{key:"viewCount",title:"조회수",value:[0,0],accumulate:!0},{key:"watchingTime",title:"누적 WT(초)",value:0,accumulate:!1},{key:"shareCount",title:"공유수",value:0,accumulate:!0},{key:"chattingCount",title:"채팅수",value:0,accumulate:!0},{key:"productCount",title:"상품 클릭수",value:0,accumulate:!0},{key:"bannerCount",title:"배너 클릭수",value:0,type:!0},{key:"userId",title:"유저 ID",value:"",accumulate:!1},{key:"authType",title:"회원 타입",value:"",accumulate:!1},{key:"expireTime",title:"회원 만료 시간",value:"",accumulate:!1},{key:"info",title:"OS / 브라우저 정보",value:"",accumulate:!1},{key:"version",title:"플레이어 버전",value:"",accumulate:!1}];m_.findIndex(i=>i.key==="lastUpdated");var Vt=[];for(var gl=0;gl<256;++gl)Vt.push((gl+256).toString(16).slice(1));function v_(i,e=0){return(Vt[i[e+0]]+Vt[i[e+1]]+Vt[i[e+2]]+Vt[i[e+3]]+"-"+Vt[i[e+4]]+Vt[i[e+5]]+"-"+Vt[i[e+6]]+Vt[i[e+7]]+"-"+Vt[i[e+8]]+Vt[i[e+9]]+"-"+Vt[i[e+10]]+Vt[i[e+11]]+Vt[i[e+12]]+Vt[i[e+13]]+Vt[i[e+14]]+Vt[i[e+15]]).toLowerCase()}var va,y_=new Uint8Array(16);function x_(){if(!va&&(va=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!va))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return va(y_)}var S_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Wd={randomUUID:S_};function E_(i,e,t){if(Wd.randomUUID&&!e&&!i)return Wd.randomUUID();i=i||{};var s=i.random||(i.rng||x_)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,v_(s)}const b_="_root_1y479_2",T_="_checkbox_1y479_22",w_="_checkbox_input_1y479_31",A_="_checkbox_label_1y479_35",L_="_toggle_1y479_57",C_="_toggle_input_1y479_66",R_="_toggle_label_1y479_71",Hs={root:b_,checkbox:T_,checkbox_input:w_,checkbox_label:A_,toggle:L_,toggle_input:C_,toggle_label:R_};fe.forwardRef(({id:i,type:e="text",autoComplete:t="off",className:s,...r},n)=>{const o=fe.useRef(i||E_()).current;return e==="toggle"?Ne.jsxs("div",{className:`${Hs.root} ${Hs.toggle} ${s||""}`,children:[Ne.jsx("input",{ref:n,className:Hs.toggle_input,type:"checkbox",id:o,...r}),Ne.jsx("label",{className:Hs.toggle_label,htmlFor:o,children:Ne.jsx("span",{className:Hs.cursor})})]}):e==="checkbox"?Ne.jsxs("div",{className:`${Hs.root} ${Hs.checkbox} ${s||""}`,children:[Ne.jsx("input",{ref:n,className:Hs.checkbox_input,type:"checkbox",id:o,...r}),Ne.jsx("label",{className:Hs.checkbox_label,htmlFor:o})]}):Ne.jsx("input",{ref:n,id:o,type:e,autoComplete:t,className:`${Hs.root} ${s||""}`,...r})});function Hl(i){this.message=i}Hl.prototype=new Error,Hl.prototype.name="InvalidCharacterError";var qd=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(i){var e=String(i).replace(/=+$/,"");if(e.length%4==1)throw new Hl("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,s,r=0,n=0,a="";s=e.charAt(n++);~s&&(t=r%4?64*t+s:s,r++%4)?a+=String.fromCharCode(255&t>>(-2*r&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return a};function __(i){var e=i.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(qd(t).replace(/(.)/g,function(s,r){var n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch{return qd(e)}}function Qa(i){this.message=i}function Yd(i,e){if(typeof i!="string")throw new Qa("Invalid token specified");var t=(e=e||{}).header===!0?0:1;try{return JSON.parse(__(i.split(".")[t]))}catch(s){throw new Qa("Invalid token specified: "+s.message)}}Qa.prototype=new Error,Qa.prototype.name="InvalidTokenError";const Zg={dev:"https://dev.api.brixcloud.io/v1",stage:"https://stage.api.brixcloud.io/v1",prod:"https://api.brixcloud.io/v1"},I_={dev:"https://dev.auth.brixcloud.io/v1",stage:"https://stage.auth.brixcloud.io/v1",prod:"https://auth.brixcloud.io/v1"},k_=async({id:i,env:e})=>{const t=await fetch(Zg[e]+`/public/ugc/${i}`),s=await t.json();if(!t.ok)throw s;return s},P_=async({id:i,env:e})=>{function t(n){return{statusCode:n.statusCode,success:n.success,timestamp:n.timestamp,userId:n.shortform.clientId,nickName:void 0,title:n.shortform.title,content:void 0,images:n.shortform.images,tags:n.shortform.tags,enableComment:n.shortform.enableComment,metaData:void 0,id:n.shortform.id,client:{id:n.shortform.clientId,name:void 0},products:void 0,counter:n.shortform.counter,playUrl:n.shortform.playUrl}}const s=await fetch(Zg[e]+`/public/shortform/${i}?onlyOne=true`),r=await s.json();if(!s.ok)throw r;return t(r)},D_=async({clientId:i,token:e,env:t})=>{const s=`__brix_session_token_${i}`,r="__brix_session_api_status";let n=e??localStorage.getItem(s);if(n)try{Yd(n).exp*1e3-Date.now()<0&&(n=null)}catch{n=null}if(!n)if(sessionStorage.getItem(r)==="pending")for(;sessionStorage.getItem(r)==="pending";)await new Promise(o=>setTimeout(o,100)),n=localStorage.getItem(s);else try{sessionStorage.setItem(s,"pending"),n=(await(await fetch(I_[t]+"/auth/token/guest",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({partner:i})})).json()).accessToken}finally{sessionStorage.setItem(s,"success")}return localStorage.setItem(s,n),Yd(n)},Xd=(i,e=!1)=>{const[t,s]=fe.useState(null),[r,n]=fe.useState(null);return fe.useEffect(()=>{if(e)return;let a=!0;return(async()=>{try{const l=await i();a&&(s(l),n(null))}catch(l){a&&(s(null),n(l.message))}})(),()=>{a=!1}},[i,e]),{data:t,error:r}};function M_({id:i,type:e,env:t,shadow:s,token:r,style:n,ratio:a,loop:o,autoplay:l=!0,restartFromBeginning:u=!0,className:d}){var Le,ue;if(!i||!e||!t)throw new Error("id, type, env는 필수값입니다.");const[f,g]=fe.useState(),[v,y]=fe.useState(0),[E,b]=fe.useState(!0),[w,F]=fe.useState(!1),{data:k}=Xd(fe.useCallback(()=>e==="ugc"?k_({id:i,env:t}):P_({id:i,env:t}),[i,t]),!i),U=fe.useRef(),{data:N}=Xd(fe.useCallback(()=>{var he;return D_({clientId:(he=k==null?void 0:k.client)==null?void 0:he.id,env:t,token:r})},[(Le=k==null?void 0:k.client)==null?void 0:Le.id,t,r]),!((ue=k==null?void 0:k.client)!=null&&ue.id)),te=fe.useRef(null),j=w1({ref:te,threshold:.1}),re=fe.useCallback(he=>{g(he),he.loop=!!o},[]),Q=fe.useCallback(()=>{g(void 0)},[]),le=()=>{f&&f.play()},se=()=>{f&&f.pause()},pe=(he,we)=>{if(he.stopPropagation(),!f)return;const me=we*f.duration/100;f.currentTime=me},de=he=>{he.stopPropagation(),f&&(f.muted=!f.muted,b(f.muted))},be=fe.useMemo(()=>{var he,we;return t?new y1({identityPoolId:(he=dh[t])==null?void 0:he.identityPoolId,streamName:(we=dh[t])==null?void 0:we.streamName}):void 0},[t]);return fe.useEffect(()=>{if(!f||!be)return;const he=Ve=>{const $e=Ve.target;y($e.currentTime/$e.duration*100)},we=()=>{F(!0),u&&(f.currentTime=0),be.start()},me=()=>{F(!1),be.stop()},ye=()=>{l?f.play():f.pause()};return f.addEventListener("loadedmetadata",ye),f.addEventListener("timeupdate",he),f.addEventListener("play",we),f.addEventListener("pause",me),()=>{f.removeEventListener("loadedmetadata",ye),f.removeEventListener("timeupdate",he),f.removeEventListener("play",we),f.removeEventListener("pause",me)}},[f,be]),fe.useEffect(()=>{if(!f)return;let he=!0;return U.current&&clearTimeout(U.current),j&&l&&(U.current=setTimeout(()=>{he&&f.play()},300)),j||(U.current=setTimeout(()=>{he&&f.pause()},700)),()=>{he=!1,U.current&&clearTimeout(U.current)}},[j,f,l]),fe.useEffect(()=>{!t||!N||!i||!be||(be.setType(e),be.setId(i),be.setUser(N.userId,N.role),be.stop())},[be]),(k==null?void 0:k.status)==="standby"||(k==null?void 0:k.status)==="converting"?Ne.jsx("div",{className:Us.root,children:Ne.jsx("div",{className:Us.error,children:`업로드된 영상이 처리중 입니다.
|
|
85
|
+
*/var Ie=function(){var c=Math.cos,h=Math.sin,p=Math.tan,m=Math.round;function S(){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 x(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,-ne,0,0,ne,R,0,0,0,0,1,0,0,0,0,1)}function A(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(1,0,0,0,0,R,-ne,0,0,ne,R,0,0,0,0,1)}function D(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,0,ne,0,0,1,0,0,-ne,0,R,0,0,0,0,1)}function L(T){if(T===0)return this;var R=c(T),ne=h(T);return this._t(R,-ne,0,0,ne,R,0,0,0,0,1,0,0,0,0,1)}function B(T,R){return this._t(1,R,T,1,0,0)}function V(T,R){return this.shear(p(T),p(R))}function ee(T,R){var ne=c(R),X=h(R);return this._t(ne,X,0,0,-X,ne,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,p(T),1,0,0,0,0,1,0,0,0,0,1)._t(ne,-X,0,0,X,ne,0,0,0,0,1,0,0,0,0,1)}function I(T,R,ne){return!ne&&ne!==0&&(ne=1),T===1&&R===1&&ne===1?this:this._t(T,0,0,0,0,R,0,0,0,0,ne,0,0,0,0,1)}function H(T,R,ne,X,Re,Ue,ze,nt,at,It,Zt,Bs,es,Ut,cs,ft){return this.props[0]=T,this.props[1]=R,this.props[2]=ne,this.props[3]=X,this.props[4]=Re,this.props[5]=Ue,this.props[6]=ze,this.props[7]=nt,this.props[8]=at,this.props[9]=It,this.props[10]=Zt,this.props[11]=Bs,this.props[12]=es,this.props[13]=Ut,this.props[14]=cs,this.props[15]=ft,this}function q(T,R,ne){return ne=ne||0,T!==0||R!==0||ne!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,T,R,ne,1):this}function K(T,R,ne,X,Re,Ue,ze,nt,at,It,Zt,Bs,es,Ut,cs,ft){var Pe=this.props;if(T===1&&R===0&&ne===0&&X===0&&Re===0&&Ue===1&&ze===0&&nt===0&&at===0&&It===0&&Zt===1&&Bs===0)return Pe[12]=Pe[12]*T+Pe[15]*es,Pe[13]=Pe[13]*Ue+Pe[15]*Ut,Pe[14]=Pe[14]*Zt+Pe[15]*cs,Pe[15]*=ft,this._identityCalculated=!1,this;var oi=Pe[0],Ri=Pe[1],li=Pe[2],$s=Pe[3],ci=Pe[4],ui=Pe[5],ts=Pe[6],_i=Pe[7],Ii=Pe[8],Cs=Pe[9],ki=Pe[10],Rs=Pe[11],Wi=Pe[12],Kn=Pe[13],zn=Pe[14],Wn=Pe[15];return Pe[0]=oi*T+Ri*Re+li*at+$s*es,Pe[1]=oi*R+Ri*Ue+li*It+$s*Ut,Pe[2]=oi*ne+Ri*ze+li*Zt+$s*cs,Pe[3]=oi*X+Ri*nt+li*Bs+$s*ft,Pe[4]=ci*T+ui*Re+ts*at+_i*es,Pe[5]=ci*R+ui*Ue+ts*It+_i*Ut,Pe[6]=ci*ne+ui*ze+ts*Zt+_i*cs,Pe[7]=ci*X+ui*nt+ts*Bs+_i*ft,Pe[8]=Ii*T+Cs*Re+ki*at+Rs*es,Pe[9]=Ii*R+Cs*Ue+ki*It+Rs*Ut,Pe[10]=Ii*ne+Cs*ze+ki*Zt+Rs*cs,Pe[11]=Ii*X+Cs*nt+ki*Bs+Rs*ft,Pe[12]=Wi*T+Kn*Re+zn*at+Wn*es,Pe[13]=Wi*R+Kn*Ue+zn*It+Wn*Ut,Pe[14]=Wi*ne+Kn*ze+zn*Zt+Wn*cs,Pe[15]=Wi*X+Kn*nt+zn*Bs+Wn*ft,this._identityCalculated=!1,this}function J(T){var R=T.props;return this.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15])}function G(){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 O(T){for(var R=0;R<16;){if(T.props[R]!==this.props[R])return!1;R+=1}return!0}function _(T){var R;for(R=0;R<16;R+=1)T.props[R]=this.props[R];return T}function P(T){var R;for(R=0;R<16;R+=1)this.props[R]=T[R]}function $(T,R,ne){return{x:T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12],y:T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13],z:T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]}}function Y(T,R,ne){return T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12]}function Z(T,R,ne){return T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13]}function ae(T,R,ne){return T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]}function Se(){var T=this.props[0]*this.props[5]-this.props[1]*this.props[4],R=this.props[5]/T,ne=-this.props[1]/T,X=-this.props[4]/T,Re=this.props[0]/T,Ue=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/T,ze=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/T,nt=new Ie;return nt.props[0]=R,nt.props[1]=ne,nt.props[4]=X,nt.props[5]=Re,nt.props[12]=Ue,nt.props[13]=ze,nt}function Ke(T){var R=this.getInverseMatrix();return R.applyToPointArray(T[0],T[1],T[2]||0)}function De(T){var R,ne=T.length,X=[];for(R=0;R<ne;R+=1)X[R]=Ke(T[R]);return X}function Te(T,R,ne){var X=y("float32",6);if(this.isIdentity())X[0]=T[0],X[1]=T[1],X[2]=R[0],X[3]=R[1],X[4]=ne[0],X[5]=ne[1];else{var Re=this.props[0],Ue=this.props[1],ze=this.props[4],nt=this.props[5],at=this.props[12],It=this.props[13];X[0]=T[0]*Re+T[1]*ze+at,X[1]=T[0]*Ue+T[1]*nt+It,X[2]=R[0]*Re+R[1]*ze+at,X[3]=R[0]*Ue+R[1]*nt+It,X[4]=ne[0]*Re+ne[1]*ze+at,X[5]=ne[0]*Ue+ne[1]*nt+It}return X}function Ye(T,R,ne){var X;return this.isIdentity()?X=[T,R,ne]:X=[T*this.props[0]+R*this.props[4]+ne*this.props[8]+this.props[12],T*this.props[1]+R*this.props[5]+ne*this.props[9]+this.props[13],T*this.props[2]+R*this.props[6]+ne*this.props[10]+this.props[14]],X}function ke(T,R){if(this.isIdentity())return T+","+R;var ne=this.props;return Math.round((T*ne[0]+R*ne[4]+ne[12])*100)/100+","+Math.round((T*ne[1]+R*ne[5]+ne[13])*100)/100}function xe(){for(var T=0,R=this.props,ne="matrix3d(",X=1e4;T<16;)ne+=m(R[T]*X)/X,ne+=T===15?")":",",T+=1;return ne}function M(T){var R=1e4;return T<1e-6&&T>0||T>-1e-6&&T<0?m(T*R)/R:T}function z(){var T=this.props,R=M(T[0]),ne=M(T[1]),X=M(T[4]),Re=M(T[5]),Ue=M(T[12]),ze=M(T[13]);return"matrix("+R+","+ne+","+X+","+Re+","+Ue+","+ze+")"}return function(){this.reset=S,this.rotate=x,this.rotateX=A,this.rotateY=D,this.rotateZ=L,this.skew=V,this.skewFromAxis=ee,this.shear=B,this.scale=I,this.setTransform=H,this.translate=q,this.transform=K,this.multiply=J,this.applyToPoint=$,this.applyToX=Y,this.applyToY=Z,this.applyToZ=ae,this.applyToPointArray=Ye,this.applyToTriplePoints=Te,this.applyToPointStringified=ke,this.toCSS=xe,this.to2dCSS=z,this.clone=_,this.cloneFromProps=P,this.equals=O,this.inversePoints=De,this.inversePoint=Ke,this.getInverseMatrix=Se,this._t=this.transform,this.isIdentity=G,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}}();function lt(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(p){return typeof p}:lt=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},lt(c)}var Fe={};function tt(c){l(c)}function et(){Tt.searchAnimations()}function $t(c){st(c)}function xt(c){ps(c)}function Et(c){return Tt.loadAnimation(c)}function ws(c){if(typeof c=="string")switch(c){case"high":dt(200);break;default:case"medium":dt(50);break;case"low":dt(10);break}else!isNaN(c)&&c>1&&dt(c)}function Ei(){return typeof navigator<"u"}function $n(c,h){c==="expressions"&&Ze(h)}function As(c){switch(c){case"propertyFactory":return Ae;case"shapePropertyFactory":return Ce;case"matrix":return Ie;default:return null}}Fe.play=Tt.play,Fe.pause=Tt.pause,Fe.setLocationHref=tt,Fe.togglePause=Tt.togglePause,Fe.setSpeed=Tt.setSpeed,Fe.setDirection=Tt.setDirection,Fe.stop=Tt.stop,Fe.searchAnimations=et,Fe.registerAnimation=Tt.registerAnimation,Fe.loadAnimation=Et,Fe.setSubframeRendering=$t,Fe.resize=Tt.resize,Fe.goToAndStop=Tt.goToAndStop,Fe.destroy=Tt.destroy,Fe.setQuality=ws,Fe.inBrowser=Ei,Fe.installPlugin=$n,Fe.freeze=Tt.freeze,Fe.unfreeze=Tt.unfreeze,Fe.setVolume=Tt.setVolume,Fe.mute=Tt.mute,Fe.unmute=Tt.unmute,Fe.getRegisteredAnimations=Tt.getRegisteredAnimations,Fe.useWebWorker=a,Fe.setIDPrefix=xt,Fe.__getFactory=As,Fe.version="5.12.2";function em(){document.readyState==="complete"&&(clearInterval(im),et())}function tm(c){for(var h=Nc.split("&"),p=0;p<h.length;p+=1){var m=h[p].split("=");if(decodeURIComponent(m[0])==c)return decodeURIComponent(m[1])}return null}var Nc="";{var Bc=document.getElementsByTagName("script"),sm=Bc.length-1,$c=Bc[sm]||{src:""};Nc=$c.src?$c.src.replace(/^[^\?]+\??/,""):"",tm("renderer")}var im=setInterval(em,100);try{lt(e)!=="object"&&(window.bodymovin=Fe)}catch{}var bi=function(){var c={},h={};c.registerModifier=p,c.getModifier=m;function p(S,x){h[S]||(h[S]=x)}function m(S,x,A){return new h[S](x,A)}return c}();function ms(){}ms.prototype.initModifierProperties=function(){},ms.prototype.addShapeToModifier=function(){},ms.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var h={shape:c.sh,data:c,localShapeCollection:Ee.newShapeCollection()};this.shapes.push(h),this.addShapeToModifier(h),this._isAnimated&&c.setAsAnimated()}},ms.prototype.init=function(c,h){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,h),this.frameId=n,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ms.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},f([_t],ms);function Ls(){}f([ms],Ls),Ls.prototype.initModifierProperties=function(c,h){this.s=Ae.getProp(c,h.s,0,.01,this),this.e=Ae.getProp(c,h.e,0,.01,this),this.o=Ae.getProp(c,h.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=h.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ls.prototype.addShapeToModifier=function(c){c.pathsData=[]},Ls.prototype.calculateShapeEdges=function(c,h,p,m,S){var x=[];h<=1?x.push({s:c,e:h}):c>=1?x.push({s:c-1,e:h-1}):(x.push({s:c,e:1}),x.push({s:0,e:h-1}));var A=[],D,L=x.length,B;for(D=0;D<L;D+=1)if(B=x[D],!(B.e*S<m||B.s*S>m+p)){var V,ee;B.s*S<=m?V=0:V=(B.s*S-m)/p,B.e*S>=m+p?ee=1:ee=(B.e*S-m)/p,A.push([V,ee])}return A.length||A.push([0,0]),A},Ls.prototype.releasePathsData=function(c){var h,p=c.length;for(h=0;h<p;h+=1)On.release(c[h]);return c.length=0,c},Ls.prototype.processShapes=function(c){var h,p;if(this._mdf||c){var m=this.o.v%360/360;if(m<0&&(m+=1),this.s.v>1?h=1+m:this.s.v<0?h=0+m:h=this.s.v+m,this.e.v>1?p=1+m:this.e.v<0?p=0+m:p=this.e.v+m,h>p){var S=h;h=p,p=S}h=Math.round(h*1e4)*1e-4,p=Math.round(p*1e4)*1e-4,this.sValue=h,this.eValue=p}else h=this.sValue,p=this.eValue;var x,A,D=this.shapes.length,L,B,V,ee,I,H=0;if(p===h)for(A=0;A<D;A+=1)this.shapes[A].localShapeCollection.releaseShapes(),this.shapes[A].shape._mdf=!0,this.shapes[A].shape.paths=this.shapes[A].localShapeCollection,this._mdf&&(this.shapes[A].pathsData.length=0);else if(p===1&&h===0||p===0&&h===1){if(this._mdf)for(A=0;A<D;A+=1)this.shapes[A].pathsData.length=0,this.shapes[A].shape._mdf=!0}else{var q=[],K,J;for(A=0;A<D;A+=1)if(K=this.shapes[A],!K.shape._mdf&&!this._mdf&&!c&&this.m!==2)K.shape.paths=K.localShapeCollection;else{if(x=K.shape.paths,B=x._length,I=0,!K.shape._mdf&&K.pathsData.length)I=K.totalShapeLength;else{for(V=this.releasePathsData(K.pathsData),L=0;L<B;L+=1)ee=gs.getSegmentsLength(x.shapes[L]),V.push(ee),I+=ee.totalLength;K.totalShapeLength=I,K.pathsData=V}H+=I,K.shape._mdf=!0}var G=h,O=p,_=0,P;for(A=D-1;A>=0;A-=1)if(K=this.shapes[A],K.shape._mdf){for(J=K.localShapeCollection,J.releaseShapes(),this.m===2&&D>1?(P=this.calculateShapeEdges(h,p,K.totalShapeLength,_,H),_+=K.totalShapeLength):P=[[G,O]],B=P.length,L=0;L<B;L+=1){G=P[L][0],O=P[L][1],q.length=0,O<=1?q.push({s:K.totalShapeLength*G,e:K.totalShapeLength*O}):G>=1?q.push({s:K.totalShapeLength*(G-1),e:K.totalShapeLength*(O-1)}):(q.push({s:K.totalShapeLength*G,e:K.totalShapeLength}),q.push({s:0,e:K.totalShapeLength*(O-1)}));var $=this.addShapes(K,q[0]);if(q[0].s!==q[0].e){if(q.length>1){var Y=K.shape.paths.shapes[K.shape.paths._length-1];if(Y.c){var Z=$.pop();this.addPaths($,J),$=this.addShapes(K,q[1],Z)}else this.addPaths($,J),$=this.addShapes(K,q[1])}this.addPaths($,J)}}K.shape.paths=J}}},Ls.prototype.addPaths=function(c,h){var p,m=c.length;for(p=0;p<m;p+=1)h.addShape(c[p])},Ls.prototype.addSegment=function(c,h,p,m,S,x,A){S.setXYAt(h[0],h[1],"o",x),S.setXYAt(p[0],p[1],"i",x+1),A&&S.setXYAt(c[0],c[1],"v",x),S.setXYAt(m[0],m[1],"v",x+1)},Ls.prototype.addSegmentFromArray=function(c,h,p,m){h.setXYAt(c[1],c[5],"o",p),h.setXYAt(c[2],c[6],"i",p+1),m&&h.setXYAt(c[0],c[4],"v",p),h.setXYAt(c[3],c[7],"v",p+1)},Ls.prototype.addShapes=function(c,h,p){var m=c.pathsData,S=c.shape.paths.shapes,x,A=c.shape.paths._length,D,L,B=0,V,ee,I,H,q=[],K,J=!0;for(p?(ee=p._length,K=p._length):(p=Dt.newElement(),ee=0,K=0),q.push(p),x=0;x<A;x+=1){for(I=m[x].lengths,p.c=S[x].c,L=S[x].c?I.length:I.length+1,D=1;D<L;D+=1)if(V=I[D-1],B+V.addedLength<h.s)B+=V.addedLength,p.c=!1;else if(B>h.e){p.c=!1;break}else h.s<=B&&h.e>=B+V.addedLength?(this.addSegment(S[x].v[D-1],S[x].o[D-1],S[x].i[D],S[x].v[D],p,ee,J),J=!1):(H=gs.getNewSegment(S[x].v[D-1],S[x].v[D],S[x].o[D-1],S[x].i[D],(h.s-B)/V.addedLength,(h.e-B)/V.addedLength,I[D-1]),this.addSegmentFromArray(H,p,ee,J),J=!1,p.c=!1),B+=V.addedLength,ee+=1;if(S[x].c&&I.length){if(V=I[D-1],B<=h.e){var G=I[D-1].addedLength;h.s<=B&&h.e>=B+G?(this.addSegment(S[x].v[D-1],S[x].o[D-1],S[x].i[0],S[x].v[0],p,ee,J),J=!1):(H=gs.getNewSegment(S[x].v[D-1],S[x].v[0],S[x].o[D-1],S[x].i[0],(h.s-B)/G,(h.e-B)/G,I[D-1]),this.addSegmentFromArray(H,p,ee,J),J=!1,p.c=!1)}else p.c=!1;B+=V.addedLength,ee+=1}if(p._length&&(p.setXYAt(p.v[K][0],p.v[K][1],"i",K),p.setXYAt(p.v[p._length-1][0],p.v[p._length-1][1],"o",p._length-1)),B>h.e)break;x<A-1&&(p=Dt.newElement(),J=!0,q.push(p),ee=0)}return q};function qr(){}f([ms],qr),qr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amount=Ae.getProp(c,h.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qr.prototype.processPath=function(c,h){var p=h/100,m=[0,0],S=c._length,x=0;for(x=0;x<S;x+=1)m[0]+=c.v[x][0],m[1]+=c.v[x][1];m[0]/=S,m[1]/=S;var A=Dt.newElement();A.c=c.c;var D,L,B,V,ee,I;for(x=0;x<S;x+=1)D=c.v[x][0]+(m[0]-c.v[x][0])*p,L=c.v[x][1]+(m[1]-c.v[x][1])*p,B=c.o[x][0]+(m[0]-c.o[x][0])*-p,V=c.o[x][1]+(m[1]-c.o[x][1])*-p,ee=c.i[x][0]+(m[0]-c.i[x][0])*-p,I=c.i[x][1]+(m[1]-c.i[x][1])*-p,A.setTripleAt(D,L,B,V,ee,I,x);return A},qr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amount.v;if(A!==0){var D,L;for(p=0;p<m;p+=1){if(D=this.shapes[p],L=D.localShapeCollection,!(!D.shape._mdf&&!this._mdf&&!c))for(L.releaseShapes(),D.shape._mdf=!0,h=D.shape.paths.shapes,x=D.shape.paths._length,S=0;S<x;S+=1)L.addShape(this.processPath(h[S],A));D.shape.paths=D.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var lo=function(){var c=[0,0];function h(L){var B=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||B,this.a&&L.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&L.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&L.skewFromAxis(-this.sk.v,this.sa.v),this.r?L.rotate(-this.r.v):L.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?L.translate(this.px.v,this.py.v,-this.pz.v):L.translate(this.px.v,this.py.v,0):L.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function p(L){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||L){var B;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 V,ee;if(B=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(V=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/B,0),ee=this.p.getValueAtTime(this.p.keyframes[0].t/B,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(V=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/B,0),ee=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/B,0)):(V=this.p.pv,ee=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/B,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){V=[],ee=[];var I=this.px,H=this.py;I._caching.lastFrame+I.offsetTime<=I.keyframes[0].t?(V[0]=I.getValueAtTime((I.keyframes[0].t+.01)/B,0),V[1]=H.getValueAtTime((H.keyframes[0].t+.01)/B,0),ee[0]=I.getValueAtTime(I.keyframes[0].t/B,0),ee[1]=H.getValueAtTime(H.keyframes[0].t/B,0)):I._caching.lastFrame+I.offsetTime>=I.keyframes[I.keyframes.length-1].t?(V[0]=I.getValueAtTime(I.keyframes[I.keyframes.length-1].t/B,0),V[1]=H.getValueAtTime(H.keyframes[H.keyframes.length-1].t/B,0),ee[0]=I.getValueAtTime((I.keyframes[I.keyframes.length-1].t-.01)/B,0),ee[1]=H.getValueAtTime((H.keyframes[H.keyframes.length-1].t-.01)/B,0)):(V=[I.pv,H.pv],ee[0]=I.getValueAtTime((I._caching.lastFrame+I.offsetTime-.01)/B,I.offsetTime),ee[1]=H.getValueAtTime((H._caching.lastFrame+H.offsetTime-.01)/B,H.offsetTime))}else ee=c,V=ee;this.v.rotate(-Math.atan2(V[1]-ee[1],V[0]-ee[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}}function m(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function S(){}function x(L){this._addDynamicProperty(L),this.elem.addDynamicProperty(L),this._isDirty=!0}function A(L,B,V){if(this.elem=L,this.frameId=-1,this.propType="transform",this.data=B,this.v=new Ie,this.pre=new Ie,this.appliedTransformations=0,this.initDynamicPropertyContainer(V||L),B.p&&B.p.s?(this.px=Ae.getProp(L,B.p.x,0,0,this),this.py=Ae.getProp(L,B.p.y,0,0,this),B.p.z&&(this.pz=Ae.getProp(L,B.p.z,0,0,this))):this.p=Ae.getProp(L,B.p||{k:[0,0,0]},1,0,this),B.rx){if(this.rx=Ae.getProp(L,B.rx,0,Q,this),this.ry=Ae.getProp(L,B.ry,0,Q,this),this.rz=Ae.getProp(L,B.rz,0,Q,this),B.or.k[0].ti){var ee,I=B.or.k.length;for(ee=0;ee<I;ee+=1)B.or.k[ee].to=null,B.or.k[ee].ti=null}this.or=Ae.getProp(L,B.or,1,Q,this),this.or.sh=!0}else this.r=Ae.getProp(L,B.r||{k:0},0,Q,this);B.sk&&(this.sk=Ae.getProp(L,B.sk,0,Q,this),this.sa=Ae.getProp(L,B.sa,0,Q,this)),this.a=Ae.getProp(L,B.a||{k:[0,0,0]},1,0,this),this.s=Ae.getProp(L,B.s||{k:[100,100,100]},1,.01,this),B.o?this.o=Ae.getProp(L,B.o,0,.01,L):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}A.prototype={applyToMatrix:h,getValue:p,precalculateMatrix:m,autoOrient:S},f([_t],A),A.prototype.addDynamicProperty=x,A.prototype._addDynamicProperty=_t.prototype.addDynamicProperty;function D(L,B,V){return new A(L,B,V)}return{getTransformProperty:D}}();function Ns(){}f([ms],Ns),Ns.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.c=Ae.getProp(c,h.c,0,null,this),this.o=Ae.getProp(c,h.o,0,null,this),this.tr=lo.getTransformProperty(c,h.tr,this),this.so=Ae.getProp(c,h.tr.so,0,.01,this),this.eo=Ae.getProp(c,h.tr.eo,0,.01,this),this.data=h,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ie,this.rMatrix=new Ie,this.sMatrix=new Ie,this.tMatrix=new Ie,this.matrix=new Ie},Ns.prototype.applyTransforms=function(c,h,p,m,S,x){var A=x?-1:1,D=m.s.v[0]+(1-m.s.v[0])*(1-S),L=m.s.v[1]+(1-m.s.v[1])*(1-S);c.translate(m.p.v[0]*A*S,m.p.v[1]*A*S,m.p.v[2]),h.translate(-m.a.v[0],-m.a.v[1],m.a.v[2]),h.rotate(-m.r.v*A*S),h.translate(m.a.v[0],m.a.v[1],m.a.v[2]),p.translate(-m.a.v[0],-m.a.v[1],m.a.v[2]),p.scale(x?1/D:D,x?1/L:L),p.translate(m.a.v[0],m.a.v[1],m.a.v[2])},Ns.prototype.init=function(c,h,p,m){for(this.elem=c,this.arr=h,this.pos=p,this.elemsData=m,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,h[p]);p>0;)p-=1,this._elements.unshift(h[p]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ns.prototype.resetElements=function(c){var h,p=c.length;for(h=0;h<p;h+=1)c[h]._processed=!1,c[h].ty==="gr"&&this.resetElements(c[h].it)},Ns.prototype.cloneElements=function(c){var h=JSON.parse(JSON.stringify(c));return this.resetElements(h),h},Ns.prototype.changeGroupRender=function(c,h){var p,m=c.length;for(p=0;p<m;p+=1)c[p]._render=h,c[p].ty==="gr"&&this.changeGroupRender(c[p].it,h)},Ns.prototype.processShapes=function(c){var h,p,m,S,x,A=!1;if(this._mdf||c){var D=Math.ceil(this.c.v);if(this._groups.length<D){for(;this._groups.length<D;){var L={it:this.cloneElements(this._elements),ty:"gr"};L.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,L),this._groups.splice(0,0,L),this._currentCopies+=1}this.elem.reloadShapes(),A=!0}x=0;var B;for(m=0;m<=this._groups.length-1;m+=1){if(B=x<D,this._groups[m]._render=B,this.changeGroupRender(this._groups[m].it,B),!B){var V=this.elemsData[m].it,ee=V[V.length-1];ee.transform.op.v!==0?(ee.transform.op._mdf=!0,ee.transform.op.v=0):ee.transform.op._mdf=!1}x+=1}this._currentCopies=D;var I=this.o.v,H=I%1,q=I>0?Math.floor(I):Math.ceil(I),K=this.pMatrix.props,J=this.rMatrix.props,G=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var O=0;if(I>0){for(;O<q;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),O+=1;H&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,H,!1),O+=H)}else if(I<0){for(;O>q;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),O-=1;H&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-H,!0),O-=H)}m=this.data.m===1?0:this._currentCopies-1,S=this.data.m===1?1:-1,x=this._currentCopies;for(var _,P;x;){if(h=this.elemsData[m].it,p=h[h.length-1].transform.mProps.v.props,P=p.length,h[h.length-1].transform.mProps._mdf=!0,h[h.length-1].transform.op._mdf=!0,h[h.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(m/(this._currentCopies-1)),O!==0){for((m!==0&&S===1||m!==this._currentCopies-1&&S===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7],J[8],J[9],J[10],J[11],J[12],J[13],J[14],J[15]),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15]),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15]),_=0;_<P;_+=1)p[_]=this.matrix.props[_];this.matrix.reset()}else for(this.matrix.reset(),_=0;_<P;_+=1)p[_]=this.matrix.props[_];O+=1,x-=1,m+=S}}else for(x=this._currentCopies,m=0,S=1;x;)h=this.elemsData[m].it,p=h[h.length-1].transform.mProps.v.props,h[h.length-1].transform.mProps._mdf=!1,h[h.length-1].transform.op._mdf=!1,x-=1,m+=S;return A},Ns.prototype.addShape=function(){};function Yr(){}f([ms],Yr),Yr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.rd=Ae.getProp(c,h.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Yr.prototype.processPath=function(c,h){var p=Dt.newElement();p.c=c.c;var m,S=c._length,x,A,D,L,B,V,ee=0,I,H,q,K,J,G;for(m=0;m<S;m+=1)x=c.v[m],D=c.o[m],A=c.i[m],x[0]===D[0]&&x[1]===D[1]&&x[0]===A[0]&&x[1]===A[1]?(m===0||m===S-1)&&!c.c?(p.setTripleAt(x[0],x[1],D[0],D[1],A[0],A[1],ee),ee+=1):(m===0?L=c.v[S-1]:L=c.v[m-1],B=Math.sqrt(Math.pow(x[0]-L[0],2)+Math.pow(x[1]-L[1],2)),V=B?Math.min(B/2,h)/B:0,J=x[0]+(L[0]-x[0])*V,I=J,G=x[1]-(x[1]-L[1])*V,H=G,q=I-(I-x[0])*le,K=H-(H-x[1])*le,p.setTripleAt(I,H,q,K,J,G,ee),ee+=1,m===S-1?L=c.v[0]:L=c.v[m+1],B=Math.sqrt(Math.pow(x[0]-L[0],2)+Math.pow(x[1]-L[1],2)),V=B?Math.min(B/2,h)/B:0,q=x[0]+(L[0]-x[0])*V,I=q,K=x[1]+(L[1]-x[1])*V,H=K,J=I-(I-x[0])*le,G=H-(H-x[1])*le,p.setTripleAt(I,H,q,K,J,G,ee),ee+=1):(p.setTripleAt(c.v[m][0],c.v[m][1],c.o[m][0],c.o[m][1],c.i[m][0],c.i[m][1],ee),ee+=1);return p},Yr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.rd.v;if(A!==0){var D,L;for(p=0;p<m;p+=1){if(D=this.shapes[p],L=D.localShapeCollection,!(!D.shape._mdf&&!this._mdf&&!c))for(L.releaseShapes(),D.shape._mdf=!0,h=D.shape.paths.shapes,x=D.shape.paths._length,S=0;S<x;S+=1)L.addShape(this.processPath(h[S],A));D.shape.paths=D.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Un(c,h){return Math.abs(c-h)*1e5<=Math.min(Math.abs(c),Math.abs(h))}function co(c){return Math.abs(c)<=1e-5}function Uc(c,h,p){return c*(1-p)+h*p}function Ti(c,h,p){return[Uc(c[0],h[0],p),Uc(c[1],h[1],p)]}function rm(c,h,p){if(c===0)return[];var m=h*h-4*c*p;if(m<0)return[];var S=-h/(2*c);if(m===0)return[S];var x=Math.sqrt(m)/(2*c);return[S-x,S+x]}function Gc(c,h,p,m){return[-c+3*h-3*p+m,3*c-6*h+3*p,-3*c+3*h,c]}function Vc(c){return new wt(c,c,c,c,!1)}function wt(c,h,p,m,S){S&&vr(c,h)&&(h=Ti(c,m,1/3)),S&&vr(p,m)&&(p=Ti(c,m,2/3));var x=Gc(c[0],h[0],p[0],m[0]),A=Gc(c[1],h[1],p[1],m[1]);this.a=[x[0],A[0]],this.b=[x[1],A[1]],this.c=[x[2],A[2]],this.d=[x[3],A[3]],this.points=[c,h,p,m]}wt.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},wt.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},wt.prototype.tangentAngle=function(c){var h=this.derivative(c);return Math.atan2(h[1],h[0])},wt.prototype.normalAngle=function(c){var h=this.derivative(c);return Math.atan2(h[0],h[1])},wt.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(co(c))return[];var h=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,p=h*h-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(p<0)return[];var m=Math.sqrt(p);return co(m)?m>0&&m<1?[h]:[]:[h-m,h+m].filter(function(S){return S>0&&S<1})},wt.prototype.split=function(c){if(c<=0)return[Vc(this.points[0]),this];if(c>=1)return[this,Vc(this.points[this.points.length-1])];var h=Ti(this.points[0],this.points[1],c),p=Ti(this.points[1],this.points[2],c),m=Ti(this.points[2],this.points[3],c),S=Ti(h,p,c),x=Ti(p,m,c),A=Ti(S,x,c);return[new wt(this.points[0],h,S,A,!0),new wt(A,x,m,this.points[3],!0)]};function Hc(c,h){var p=c.points[0][h],m=c.points[c.points.length-1][h];if(p>m){var S=m;m=p,p=S}for(var x=rm(3*c.a[h],2*c.b[h],c.c[h]),A=0;A<x.length;A+=1)if(x[A]>0&&x[A]<1){var D=c.point(x[A])[h];D<p?p=D:D>m&&(m=D)}return{min:p,max:m}}wt.prototype.bounds=function(){return{x:Hc(this,0),y:Hc(this,1)}},wt.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function Gn(c,h,p){var m=c.boundingBox();return{cx:m.cx,cy:m.cy,width:m.width,height:m.height,bez:c,t:(h+p)/2,t1:h,t2:p}}function jc(c){var h=c.bez.split(.5);return[Gn(h[0],c.t1,c.t),Gn(h[1],c.t,c.t2)]}function nm(c,h){return Math.abs(c.cx-h.cx)*2<c.width+h.width&&Math.abs(c.cy-h.cy)*2<c.height+h.height}function Xr(c,h,p,m,S,x){if(nm(c,h)){if(p>=x||c.width<=m&&c.height<=m&&h.width<=m&&h.height<=m){S.push([c.t,h.t]);return}var A=jc(c),D=jc(h);Xr(A[0],D[0],p+1,m,S,x),Xr(A[0],D[1],p+1,m,S,x),Xr(A[1],D[0],p+1,m,S,x),Xr(A[1],D[1],p+1,m,S,x)}}wt.prototype.intersections=function(c,h,p){h===void 0&&(h=2),p===void 0&&(p=7);var m=[];return Xr(Gn(this,0,1),Gn(c,0,1),0,h,m,p),m},wt.shapeSegment=function(c,h){var p=(h+1)%c.length();return new wt(c.v[h],c.o[h],c.i[p],c.v[p],!0)},wt.shapeSegmentInverted=function(c,h){var p=(h+1)%c.length();return new wt(c.v[p],c.i[p],c.o[h],c.v[h],!0)};function uo(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function Vn(c,h,p,m){var S=[c[0],c[1],1],x=[h[0],h[1],1],A=[p[0],p[1],1],D=[m[0],m[1],1],L=uo(uo(S,x),uo(A,D));return co(L[2])?null:[L[0]/L[2],L[1]/L[2]]}function mr(c,h,p){return[c[0]+Math.cos(h)*p,c[1]-Math.sin(h)*p]}function ho(c,h){return Math.hypot(c[0]-h[0],c[1]-h[1])}function vr(c,h){return Un(c[0],h[0])&&Un(c[1],h[1])}function Qr(){}f([ms],Qr),Qr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amplitude=Ae.getProp(c,h.s,0,null,this),this.frequency=Ae.getProp(c,h.r,0,null,this),this.pointsType=Ae.getProp(c,h.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Kc(c,h,p,m,S,x,A){var D=p-Math.PI/2,L=p+Math.PI/2,B=h[0]+Math.cos(p)*m*S,V=h[1]-Math.sin(p)*m*S;c.setTripleAt(B,V,B+Math.cos(D)*x,V-Math.sin(D)*x,B+Math.cos(L)*A,V-Math.sin(L)*A,c.length())}function am(c,h){var p=[h[0]-c[0],h[1]-c[1]],m=-Math.PI*.5,S=[Math.cos(m)*p[0]-Math.sin(m)*p[1],Math.sin(m)*p[0]+Math.cos(m)*p[1]];return S}function om(c,h){var p=h===0?c.length()-1:h-1,m=(h+1)%c.length(),S=c.v[p],x=c.v[m],A=am(S,x);return Math.atan2(0,1)-Math.atan2(A[1],A[0])}function zc(c,h,p,m,S,x,A){var D=om(h,p),L=h.v[p%h._length],B=h.v[p===0?h._length-1:p-1],V=h.v[(p+1)%h._length],ee=x===2?Math.sqrt(Math.pow(L[0]-B[0],2)+Math.pow(L[1]-B[1],2)):0,I=x===2?Math.sqrt(Math.pow(L[0]-V[0],2)+Math.pow(L[1]-V[1],2)):0;Kc(c,h.v[p%h._length],D,A,m,I/((S+1)*2),ee/((S+1)*2))}function lm(c,h,p,m,S,x){for(var A=0;A<m;A+=1){var D=(A+1)/(m+1),L=S===2?Math.sqrt(Math.pow(h.points[3][0]-h.points[0][0],2)+Math.pow(h.points[3][1]-h.points[0][1],2)):0,B=h.normalAngle(D),V=h.point(D);Kc(c,V,B,x,p,L/((m+1)*2),L/((m+1)*2)),x=-x}return x}Qr.prototype.processPath=function(c,h,p,m){var S=c._length,x=Dt.newElement();if(x.c=c.c,c.c||(S-=1),S===0)return x;var A=-1,D=wt.shapeSegment(c,0);zc(x,c,0,h,p,m,A);for(var L=0;L<S;L+=1)A=lm(x,D,h,p,m,-A),L===S-1&&!c.c?D=null:D=wt.shapeSegment(c,(L+1)%S),zc(x,c,L+1,h,p,m,A);return x},Qr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amplitude.v,D=Math.max(0,Math.round(this.frequency.v)),L=this.pointsType.v;if(A!==0){var B,V;for(p=0;p<m;p+=1){if(B=this.shapes[p],V=B.localShapeCollection,!(!B.shape._mdf&&!this._mdf&&!c))for(V.releaseShapes(),B.shape._mdf=!0,h=B.shape.paths.shapes,x=B.shape.paths._length,S=0;S<x;S+=1)V.addShape(this.processPath(h[S],A,D,L));B.shape.paths=B.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function fo(c,h,p){var m=Math.atan2(h[0]-c[0],h[1]-c[1]);return[mr(c,m,p),mr(h,m,p)]}function yr(c,h){var p,m,S,x,A,D,L;L=fo(c.points[0],c.points[1],h),p=L[0],m=L[1],L=fo(c.points[1],c.points[2],h),S=L[0],x=L[1],L=fo(c.points[2],c.points[3],h),A=L[0],D=L[1];var B=Vn(p,m,S,x);B===null&&(B=m);var V=Vn(A,D,S,x);return V===null&&(V=A),new wt(p,B,V,D)}function Wc(c,h,p,m,S){var x=h.points[3],A=p.points[0];if(m===3||vr(x,A))return x;if(m===2){var D=-h.tangentAngle(1),L=-p.tangentAngle(0)+Math.PI,B=Vn(x,mr(x,D+Math.PI/2,100),A,mr(A,D+Math.PI/2,100)),V=B?ho(B,x):ho(x,A)/2,ee=mr(x,D,2*V*le);return c.setXYAt(ee[0],ee[1],"o",c.length()-1),ee=mr(A,L,2*V*le),c.setTripleAt(A[0],A[1],A[0],A[1],ee[0],ee[1],c.length()),A}var I=vr(x,h.points[2])?h.points[0]:h.points[2],H=vr(A,p.points[1])?p.points[3]:p.points[1],q=Vn(I,x,A,H);return q&&ho(q,x)<S?(c.setTripleAt(q[0],q[1],q[0],q[1],q[0],q[1],c.length()),q):x}function qc(c,h){var p=c.intersections(h);return p.length&&Un(p[0][0],1)&&p.shift(),p.length?p[0]:null}function Yc(c,h){var p=c.slice(),m=h.slice(),S=qc(c[c.length-1],h[0]);return S&&(p[c.length-1]=c[c.length-1].split(S[0])[0],m[0]=h[0].split(S[1])[1]),c.length>1&&h.length>1&&(S=qc(c[0],h[h.length-1]),S)?[[c[0].split(S[0])[0]],[h[h.length-1].split(S[1])[1]]]:[p,m]}function cm(c){for(var h,p=1;p<c.length;p+=1)h=Yc(c[p-1],c[p]),c[p-1]=h[0],c[p]=h[1];return c.length>1&&(h=Yc(c[c.length-1],c[0]),c[c.length-1]=h[0],c[0]=h[1]),c}function Xc(c,h){var p=c.inflectionPoints(),m,S,x,A;if(p.length===0)return[yr(c,h)];if(p.length===1||Un(p[1],1))return x=c.split(p[0]),m=x[0],S=x[1],[yr(m,h),yr(S,h)];x=c.split(p[0]),m=x[0];var D=(p[1]-p[0])/(1-p[0]);return x=x[1].split(D),A=x[0],S=x[1],[yr(m,h),yr(A,h),yr(S,h)]}function Jr(){}f([ms],Jr),Jr.prototype.initModifierProperties=function(c,h){this.getValue=this.processKeys,this.amount=Ae.getProp(c,h.a,0,null,this),this.miterLimit=Ae.getProp(c,h.ml,0,null,this),this.lineJoin=h.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Jr.prototype.processPath=function(c,h,p,m){var S=Dt.newElement();S.c=c.c;var x=c.length();c.c||(x-=1);var A,D,L,B=[];for(A=0;A<x;A+=1)L=wt.shapeSegment(c,A),B.push(Xc(L,h));if(!c.c)for(A=x-1;A>=0;A-=1)L=wt.shapeSegmentInverted(c,A),B.push(Xc(L,h));B=cm(B);var V=null,ee=null;for(A=0;A<B.length;A+=1){var I=B[A];for(ee&&(V=Wc(S,ee,I[0],p,m)),ee=I[I.length-1],D=0;D<I.length;D+=1)L=I[D],V&&vr(L.points[0],V)?S.setXYAt(L.points[1][0],L.points[1][1],"o",S.length()-1):S.setTripleAt(L.points[0][0],L.points[0][1],L.points[1][0],L.points[1][1],L.points[0][0],L.points[0][1],S.length()),S.setTripleAt(L.points[3][0],L.points[3][1],L.points[3][0],L.points[3][1],L.points[2][0],L.points[2][1],S.length()),V=L.points[3]}return B.length&&Wc(S,ee,B[0][0],p,m),S},Jr.prototype.processShapes=function(c){var h,p,m=this.shapes.length,S,x,A=this.amount.v,D=this.miterLimit.v,L=this.lineJoin;if(A!==0){var B,V;for(p=0;p<m;p+=1){if(B=this.shapes[p],V=B.localShapeCollection,!(!B.shape._mdf&&!this._mdf&&!c))for(V.releaseShapes(),B.shape._mdf=!0,h=B.shape.paths.shapes,x=B.shape.paths._length,S=0;S<x;S+=1)V.addShape(this.processPath(h[S],A,L,D));B.shape.paths=B.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Qc(c){for(var h=c.fStyle?c.fStyle.split(" "):[],p="normal",m="normal",S=h.length,x,A=0;A<S;A+=1)switch(x=h[A].toLowerCase(),x){case"italic":m="italic";break;case"bold":p="700";break;case"black":p="900";break;case"medium":p="500";break;case"regular":case"normal":p="400";break;case"light":case"thin":p="200";break}return{style:m,weight:c.fWeight||p}}var ji=function(){var c=5e3,h={w:0,size:0,shapes:[],data:{shapes:[]}},p=[];p=p.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 m=127988,S=917631,x=917601,A=917626,D=65039,L=8205,B=127462,V=127487,ee=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function I(M){var z=M.split(","),T,R=z.length,ne=[];for(T=0;T<R;T+=1)z[T]!=="sans-serif"&&z[T]!=="monospace"&&ne.push(z[T]);return ne.join(",")}function H(M,z){var T=d("span");T.setAttribute("aria-hidden",!0),T.style.fontFamily=z;var R=d("span");R.innerText="giItT1WQy@!-/#",T.style.position="absolute",T.style.left="-10000px",T.style.top="-10000px",T.style.fontSize="300px",T.style.fontVariant="normal",T.style.fontStyle="normal",T.style.fontWeight="normal",T.style.letterSpacing="0",T.appendChild(R),document.body.appendChild(T);var ne=R.offsetWidth;return R.style.fontFamily=I(M)+", "+z,{node:R,w:ne,parent:T}}function q(){var M,z=this.fonts.length,T,R,ne=z;for(M=0;M<z;M+=1)this.fonts[M].loaded?ne-=1:this.fonts[M].fOrigin==="n"||this.fonts[M].origin===0?this.fonts[M].loaded=!0:(T=this.fonts[M].monoCase.node,R=this.fonts[M].monoCase.w,T.offsetWidth!==R?(ne-=1,this.fonts[M].loaded=!0):(T=this.fonts[M].sansCase.node,R=this.fonts[M].sansCase.w,T.offsetWidth!==R&&(ne-=1,this.fonts[M].loaded=!0)),this.fonts[M].loaded&&(this.fonts[M].sansCase.parent.parentNode.removeChild(this.fonts[M].sansCase.parent),this.fonts[M].monoCase.parent.parentNode.removeChild(this.fonts[M].monoCase.parent)));ne!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function K(M,z){var T=document.body&&z?"svg":"canvas",R,ne=Qc(M);if(T==="svg"){var X=Be("text");X.style.fontSize="100px",X.setAttribute("font-family",M.fFamily),X.setAttribute("font-style",ne.style),X.setAttribute("font-weight",ne.weight),X.textContent="1",M.fClass?(X.style.fontFamily="inherit",X.setAttribute("class",M.fClass)):X.style.fontFamily=M.fFamily,z.appendChild(X),R=X}else{var Re=new OffscreenCanvas(500,500).getContext("2d");Re.font=ne.style+" "+ne.weight+" 100px "+M.fFamily,R=Re}function Ue(ze){return T==="svg"?(R.textContent=ze,R.getComputedTextLength()):R.measureText(ze).width}return{measureText:Ue}}function J(M,z){if(!M){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=M.list;return}if(!document.body){this.isLoaded=!0,M.list.forEach(function(Zt){Zt.helper=K(Zt),Zt.cache={}}),this.fonts=M.list;return}var T=M.list,R,ne=T.length,X=ne;for(R=0;R<ne;R+=1){var Re=!0,Ue,ze;if(T[R].loaded=!1,T[R].monoCase=H(T[R].fFamily,"monospace"),T[R].sansCase=H(T[R].fFamily,"sans-serif"),!T[R].fPath)T[R].loaded=!0,X-=1;else if(T[R].fOrigin==="p"||T[R].origin===3){if(Ue=document.querySelectorAll('style[f-forigin="p"][f-family="'+T[R].fFamily+'"], style[f-origin="3"][f-family="'+T[R].fFamily+'"]'),Ue.length>0&&(Re=!1),Re){var nt=d("style");nt.setAttribute("f-forigin",T[R].fOrigin),nt.setAttribute("f-origin",T[R].origin),nt.setAttribute("f-family",T[R].fFamily),nt.type="text/css",nt.innerText="@font-face {font-family: "+T[R].fFamily+"; font-style: normal; src: url('"+T[R].fPath+"');}",z.appendChild(nt)}}else if(T[R].fOrigin==="g"||T[R].origin===1){for(Ue=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ze=0;ze<Ue.length;ze+=1)Ue[ze].href.indexOf(T[R].fPath)!==-1&&(Re=!1);if(Re){var at=d("link");at.setAttribute("f-forigin",T[R].fOrigin),at.setAttribute("f-origin",T[R].origin),at.type="text/css",at.rel="stylesheet",at.href=T[R].fPath,document.body.appendChild(at)}}else if(T[R].fOrigin==="t"||T[R].origin===2){for(Ue=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ze=0;ze<Ue.length;ze+=1)T[R].fPath===Ue[ze].src&&(Re=!1);if(Re){var It=d("link");It.setAttribute("f-forigin",T[R].fOrigin),It.setAttribute("f-origin",T[R].origin),It.setAttribute("rel","stylesheet"),It.setAttribute("href",T[R].fPath),z.appendChild(It)}}T[R].helper=K(T[R],z),T[R].cache={},this.fonts.push(T[R])}X===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function G(M){if(M){this.chars||(this.chars=[]);var z,T=M.length,R,ne=this.chars.length,X;for(z=0;z<T;z+=1){for(R=0,X=!1;R<ne;)this.chars[R].style===M[z].style&&this.chars[R].fFamily===M[z].fFamily&&this.chars[R].ch===M[z].ch&&(X=!0),R+=1;X||(this.chars.push(M[z]),ne+=1)}}}function O(M,z,T){for(var R=0,ne=this.chars.length;R<ne;){if(this.chars[R].ch===M&&this.chars[R].style===z&&this.chars[R].fFamily===T)return this.chars[R];R+=1}return(typeof M=="string"&&M.charCodeAt(0)!==13||!M)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",M,z,T)),h}function _(M,z,T){var R=this.getFontByName(z),ne=M;if(!R.cache[ne]){var X=R.helper;if(M===" "){var Re=X.measureText("|"+M+"|"),Ue=X.measureText("||");R.cache[ne]=(Re-Ue)/100}else R.cache[ne]=X.measureText(M)/100}return R.cache[ne]*T}function P(M){for(var z=0,T=this.fonts.length;z<T;){if(this.fonts[z].fName===M)return this.fonts[z];z+=1}return this.fonts[0]}function $(M){var z=0,T=M.charCodeAt(0);if(T>=55296&&T<=56319){var R=M.charCodeAt(1);R>=56320&&R<=57343&&(z=(T-55296)*1024+R-56320+65536)}return z}function Y(M,z){var T=M.toString(16)+z.toString(16);return ee.indexOf(T)!==-1}function Z(M){return M===L}function ae(M){return M===D}function Se(M){var z=$(M);return z>=B&&z<=V}function Ke(M){return Se(M.substr(0,2))&&Se(M.substr(2,2))}function De(M){return p.indexOf(M)!==-1}function Te(M,z){var T=$(M.substr(z,2));if(T!==m)return!1;var R=0;for(z+=2;R<5;){if(T=$(M.substr(z,2)),T<x||T>A)return!1;R+=1,z+=2}return $(M.substr(z,2))===S}function Ye(){this.isLoaded=!0}var ke=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)};ke.isModifier=Y,ke.isZeroWidthJoiner=Z,ke.isFlagEmoji=Ke,ke.isRegionalCode=Se,ke.isCombinedCharacter=De,ke.isRegionalFlag=Te,ke.isVariationSelector=ae,ke.BLACK_FLAG_CODE_POINT=m;var xe={addChars:G,addFonts:J,getCharData:O,getFontByName:P,measureText:_,checkLoadedFonts:q,setIsLoaded:Ye};return ke.prototype=xe,ke}();function Jc(c){this.animationData=c}Jc.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function um(c){return new Jc(c)}function Hn(){}Hn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(h){this.renderableComponents.indexOf(h)===-1&&this.renderableComponents.push(h)},removeRenderableComponent:function(h){this.renderableComponents.indexOf(h)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(h),1)},prepareRenderableFrame:function(h){this.checkLayerLimits(h)},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(h){this.data.ip-this.data.st<=h&&this.data.op-this.data.st>h?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 h,p=this.renderableComponents.length;for(h=0;h<p;h+=1)this.renderableComponents[h].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 po=function(){var c={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"};return function(h){return c[h]||""}}();function hm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function dm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function fm(c,h,p){this.p=Ae.getProp(h,c.v,1,0,p)}function pm(c,h,p){this.p=Ae.getProp(h,c.v,1,0,p)}function gm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function mm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function vm(c,h,p){this.p=Ae.getProp(h,c.v,0,0,p)}function ym(){this.p={}}function Zc(c,h){var p=c.ef||[];this.effectElements=[];var m,S=p.length,x;for(m=0;m<S;m+=1)x=new Zr(p[m],h),this.effectElements.push(x)}function Zr(c,h){this.init(c,h)}f([_t],Zr),Zr.prototype.getValue=Zr.prototype.iterateDynamicProperties,Zr.prototype.init=function(c,h){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(h);var p,m=this.data.ef.length,S,x=this.data.ef;for(p=0;p<m;p+=1){switch(S=null,x[p].ty){case 0:S=new hm(x[p],h,this);break;case 1:S=new dm(x[p],h,this);break;case 2:S=new fm(x[p],h,this);break;case 3:S=new pm(x[p],h,this);break;case 4:case 7:S=new vm(x[p],h,this);break;case 10:S=new gm(x[p],h,this);break;case 11:S=new mm(x[p],h,this);break;case 5:S=new Zc(x[p],h);break;default:S=new ym(x[p]);break}S&&this.effectElements.push(S)}};function wi(){}wi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var h=0,p=this.data.masksProperties.length;h<p;){if(this.data.masksProperties[h].mode!=="n"&&this.data.masksProperties[h].cl!==!1)return!0;h+=1}return!1},initExpressions:function(){},setBlendMode:function(){var h=po(this.data.bm),p=this.baseElement||this.layerElement;p.style["mix-blend-mode"]=h},initBaseData:function(h,p,m){this.globalData=p,this.comp=m,this.data=h,this.layerId=we(),this.data.sr||(this.data.sr=1),this.effectsManager=new Zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ai(){}Ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(h,p){var m,S=this.dynamicProperties.length;for(m=0;m<S;m+=1)(p||this._isParent&&this.dynamicProperties[m].propType==="transform")&&(this.dynamicProperties[m].getValue(),this.dynamicProperties[m]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(h){this.dynamicProperties.indexOf(h)===-1&&this.dynamicProperties.push(h)}};function Li(c,h,p){this.initFrame(),this.initRenderable(),this.assetData=h.getAssetData(c.refId),this.footageData=h.imageLoader.getAsset(this.assetData),this.initBaseData(c,h,p)}Li.prototype.prepareFrame=function(){},f([Hn,wi,Ai],Li),Li.prototype.getBaseElement=function(){return null},Li.prototype.renderFrame=function(){},Li.prototype.destroy=function(){},Li.prototype.initExpressions=function(){},Li.prototype.getFootageData=function(){return this.footageData};function Jt(c,h,p){this.initFrame(),this.initRenderable(),this.assetData=h.getAssetData(c.refId),this.initBaseData(c,h,p),this._isPlaying=!1,this._canPlay=!1;var m=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(m),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?Ae.getProp(this,c.tm,0,h.frameRate,this):{_placeholder:!0},this.lv=Ae.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}Jt.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var h=this.tm.v;this._currentTime=h}this._volume=this.lv.v[0];var p=this._volume*this._volumeMultiplier;this._previousVolume!==p&&(this._previousVolume=p,this.audio.volume(p))},f([Hn,wi,Ai],Jt),Jt.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))},Jt.prototype.show=function(){},Jt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Jt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Jt.prototype.resume=function(){this._canPlay=!0},Jt.prototype.setRate=function(c){this.audio.rate(c)},Jt.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},Jt.prototype.getBaseElement=function(){return null},Jt.prototype.destroy=function(){},Jt.prototype.sourceRectAtTime=function(){},Jt.prototype.initExpressions=function(){};function zt(){}zt.prototype.checkLayers=function(c){var h,p=this.layers.length,m;for(this.completeLayers=!0,h=p-1;h>=0;h-=1)this.elements[h]||(m=this.layers[h],m.ip-m.st<=c-this.layers[h].st&&m.op-m.st>c-this.layers[h].st&&this.buildItem(h)),this.completeLayers=this.elements[h]?this.completeLayers:!1;this.checkPendingElements()},zt.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},zt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},zt.prototype.createAudio=function(c){return new Jt(c,this.globalData,this)},zt.prototype.createFootage=function(c){return new Li(c,this.globalData,this)},zt.prototype.buildAllItems=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)this.buildItem(c);this.checkPendingElements()},zt.prototype.includeLayers=function(c){this.completeLayers=!1;var h,p=c.length,m,S=this.layers.length;for(h=0;h<p;h+=1)for(m=0;m<S;){if(this.layers[m].id===c[h].id){this.layers[m]=c[h];break}m+=1}},zt.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},zt.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},zt.prototype.buildElementParenting=function(c,h,p){for(var m=this.elements,S=this.layers,x=0,A=S.length;x<A;)S[x].ind==h&&(!m[x]||m[x]===!0?(this.buildItem(x),this.addPendingElement(c)):(p.push(m[x]),m[x].setAsParent(),S[x].parent!==void 0?this.buildElementParenting(c,S[x].parent,p):c.setHierarchy(p))),x+=1},zt.prototype.addPendingElement=function(c){this.pendingElements.push(c)},zt.prototype.searchExtraCompositions=function(c){var h,p=c.length;for(h=0;h<p;h+=1)if(c[h].xt){var m=this.createComp(c[h]);m.initExpressions(),this.globalData.projectInterface.registerComposition(m)}},zt.prototype.getElementById=function(c){var h,p=this.elements.length;for(h=0;h<p;h+=1)if(this.elements[h].data.ind===c)return this.elements[h];return null},zt.prototype.getElementByPath=function(c){var h=c.shift(),p;if(typeof h=="number")p=this.elements[h];else{var m,S=this.elements.length;for(m=0;m<S;m+=1)if(this.elements[m].data.nm===h){p=this.elements[m];break}}return c.length===0?p:p.getElementByPath(c)},zt.prototype.setupGlobalData=function(c,h){this.globalData.fontManager=new ji,this.globalData.slotManager=um(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,h),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=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var xm={TRANSFORM_EFFECT:"transformEFfect"};function xr(){}xr.prototype={initTransform:function(){var h=new Ie;this.finalTransform={mProp:this.data.ks?lo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:h,localMat:h,localOpacity:1},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 h,p=this.finalTransform.mat,m=0,S=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;m<S;){if(this.hierarchy[m].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}m+=1}if(this.finalTransform._matMdf)for(h=this.finalTransform.mProp.v.props,p.cloneFromProps(h),m=0;m<S;m+=1)p.multiply(this.hierarchy[m].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var h=0,p=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;h<p;)this.localTransforms[h]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[h]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),h+=1;if(this.finalTransform._localMatMdf){var m=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(m),h=1;h<p;h+=1){var S=this.localTransforms[h].matrix;m.multiply(S)}m.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var x=this.finalTransform.localOpacity;for(h=0;h<p;h+=1)x*=this.localTransforms[h].opacity*.01;this.finalTransform.localOpacity=x}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var h=this.renderableEffectsManager.getEffects(xm.TRANSFORM_EFFECT);if(h.length){this.localTransforms=[],this.finalTransform.localMat=new Ie;var p=0,m=h.length;for(p=0;p<m;p+=1)this.localTransforms.push(h[p])}}},globalToLocal:function(h){var p=[];p.push(this.finalTransform);for(var m=!0,S=this.comp;m;)S.finalTransform?(S.data.hasMask&&p.splice(0,0,S.finalTransform),S=S.comp):m=!1;var x,A=p.length,D;for(x=0;x<A;x+=1)D=p[x].mat.applyToPointArray(0,0,0),h=[h[0]-D[0],h[1]-D[1],0];return h},mHelper:new Ie};function Ki(c,h,p){this.data=c,this.element=h,this.globalData=p,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var m=this.globalData.defs,S,x=this.masksProperties?this.masksProperties.length:0;this.viewData=E(x),this.solidPath="";var A,D=this.masksProperties,L=0,B=[],V,ee,I=we(),H,q,K,J,G="clipPath",O="clip-path";for(S=0;S<x;S+=1)if((D[S].mode!=="a"&&D[S].mode!=="n"||D[S].inv||D[S].o.k!==100||D[S].o.x)&&(G="mask",O="mask"),(D[S].mode==="s"||D[S].mode==="i")&&L===0?(H=Be("rect"),H.setAttribute("fill","#ffffff"),H.setAttribute("width",this.element.comp.data.w||0),H.setAttribute("height",this.element.comp.data.h||0),B.push(H)):H=null,A=Be("path"),D[S].mode==="n")this.viewData[S]={op:Ae.getProp(this.element,D[S].o,0,.01,this.element),prop:Ce.getShapeProp(this.element,D[S],3),elem:A,lastPath:""},m.appendChild(A);else{L+=1,A.setAttribute("fill",D[S].mode==="s"?"#000000":"#ffffff"),A.setAttribute("clip-rule","nonzero");var _;if(D[S].x.k!==0?(G="mask",O="mask",J=Ae.getProp(this.element,D[S].x,0,null,this.element),_=we(),q=Be("filter"),q.setAttribute("id",_),K=Be("feMorphology"),K.setAttribute("operator","erode"),K.setAttribute("in","SourceGraphic"),K.setAttribute("radius","0"),q.appendChild(K),m.appendChild(q),A.setAttribute("stroke",D[S].mode==="s"?"#000000":"#ffffff")):(K=null,J=null),this.storedData[S]={elem:A,x:J,expan:K,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},D[S].mode==="i"){ee=B.length;var P=Be("g");for(V=0;V<ee;V+=1)P.appendChild(B[V]);var $=Be("mask");$.setAttribute("mask-type","alpha"),$.setAttribute("id",I+"_"+L),$.appendChild(A),m.appendChild($),P.setAttribute("mask","url("+u()+"#"+I+"_"+L+")"),B.length=0,B.push(P)}else B.push(A);D[S].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[S]={elem:A,lastPath:"",op:Ae.getProp(this.element,D[S].o,0,.01,this.element),prop:Ce.getShapeProp(this.element,D[S],3),invRect:H},this.viewData[S].prop.k||this.drawPath(D[S],this.viewData[S].prop.v,this.viewData[S])}for(this.maskElement=Be(G),x=B.length,S=0;S<x;S+=1)this.maskElement.appendChild(B[S]);L>0&&(this.maskElement.setAttribute("id",I),this.element.maskedElement.setAttribute(O,"url("+u()+"#"+I+")"),m.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ki.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Ki.prototype.renderFrame=function(c){var h=this.element.finalTransform.mat,p,m=this.masksProperties.length;for(p=0;p<m;p+=1)if((this.viewData[p].prop._mdf||c)&&this.drawPath(this.masksProperties[p],this.viewData[p].prop.v,this.viewData[p]),(this.viewData[p].op._mdf||c)&&this.viewData[p].elem.setAttribute("fill-opacity",this.viewData[p].op.v),this.masksProperties[p].mode!=="n"&&(this.viewData[p].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[p].invRect.setAttribute("transform",h.getInverseMatrix().to2dCSS()),this.storedData[p].x&&(this.storedData[p].x._mdf||c))){var S=this.storedData[p].expan;this.storedData[p].x.v<0?(this.storedData[p].lastOperator!=="erode"&&(this.storedData[p].lastOperator="erode",this.storedData[p].elem.setAttribute("filter","url("+u()+"#"+this.storedData[p].filterId+")")),S.setAttribute("radius",-this.storedData[p].x.v)):(this.storedData[p].lastOperator!=="dilate"&&(this.storedData[p].lastOperator="dilate",this.storedData[p].elem.setAttribute("filter",null)),this.storedData[p].elem.setAttribute("stroke-width",this.storedData[p].x.v*2))}},Ki.prototype.getMaskelement=function(){return this.maskElement},Ki.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Ki.prototype.drawPath=function(c,h,p){var m=" M"+h.v[0][0]+","+h.v[0][1],S,x;for(x=h._length,S=1;S<x;S+=1)m+=" C"+h.o[S-1][0]+","+h.o[S-1][1]+" "+h.i[S][0]+","+h.i[S][1]+" "+h.v[S][0]+","+h.v[S][1];if(h.c&&x>1&&(m+=" C"+h.o[S-1][0]+","+h.o[S-1][1]+" "+h.i[0][0]+","+h.i[0][1]+" "+h.v[0][0]+","+h.v[0][1]),p.lastPath!==m){var A="";p.elem&&(h.c&&(A=c.inv?this.solidPath+m:m),p.elem.setAttribute("d",A)),p.lastPath=m}},Ki.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var en=function(){var c={};c.createFilter=h,c.createAlphaToLuminanceFilter=p;function h(m,S){var x=Be("filter");return x.setAttribute("id",m),S!==!0&&(x.setAttribute("filterUnits","objectBoundingBox"),x.setAttribute("x","0%"),x.setAttribute("y","0%"),x.setAttribute("width","100%"),x.setAttribute("height","100%")),x}function p(){var m=Be("feColorMatrix");return m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),m}return c}(),eu=function(){var c={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))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),go={},tu="filter_result_";function mo(c){var h,p="SourceGraphic",m=c.data.ef?c.data.ef.length:0,S=we(),x=en.createFilter(S,!0),A=0;this.filters=[];var D;for(h=0;h<m;h+=1){D=null;var L=c.data.ef[h].ty;if(go[L]){var B=go[L].effect;D=new B(x,c.effectsManager.effectElements[h],c,tu+A,p),p=tu+A,go[L].countsAsEffect&&(A+=1)}D&&this.filters.push(D)}A&&(c.globalData.defs.appendChild(x),c.layerElement.setAttribute("filter","url("+u()+"#"+S+")")),this.filters.length&&c.addRenderableComponent(this)}mo.prototype.renderFrame=function(c){var h,p=this.filters.length;for(h=0;h<p;h+=1)this.filters[h].renderFrame(c)},mo.prototype.getEffects=function(c){var h,p=this.filters.length,m=[];for(h=0;h<p;h+=1)this.filters[h].type===c&&m.push(this.filters[h]);return m};function tn(){}tn.prototype={initRendererElement:function(){this.layerElement=Be("g")},createContainerElements:function(){this.matteElement=Be("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var h=null;if(this.data.td){this.matteMasks={};var p=Be("g");p.setAttribute("id",this.layerId),p.appendChild(this.layerElement),h=p,this.globalData.defs.appendChild(p)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),h=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 m=Be("clipPath"),S=Be("path");S.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var x=we();if(m.setAttribute("id",x),m.appendChild(S),this.globalData.defs.appendChild(m),this.checkMasks()){var A=Be("g");A.setAttribute("clip-path","url("+u()+"#"+x+")"),A.appendChild(this.layerElement),this.transformedElement=A,h?h.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+u()+"#"+x+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},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 Ki(this.data,this,this.globalData),this.renderableEffectsManager=new mo(this),this.searchEffectTransforms()},getMatte:function(h){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[h]){var p=this.layerId+"_"+h,m,S,x,A;if(h===1||h===3){var D=Be("mask");D.setAttribute("id",p),D.setAttribute("mask-type",h===3?"luminance":"alpha"),x=Be("use"),x.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),D.appendChild(x),this.globalData.defs.appendChild(D),!eu.maskType&&h===1&&(D.setAttribute("mask-type","luminance"),m=we(),S=en.createFilter(m),this.globalData.defs.appendChild(S),S.appendChild(en.createAlphaToLuminanceFilter()),A=Be("g"),A.appendChild(x),D.appendChild(A),A.setAttribute("filter","url("+u()+"#"+m+")"))}else if(h===2){var L=Be("mask");L.setAttribute("id",p),L.setAttribute("mask-type","alpha");var B=Be("g");L.appendChild(B),m=we(),S=en.createFilter(m);var V=Be("feComponentTransfer");V.setAttribute("in","SourceGraphic"),S.appendChild(V);var ee=Be("feFuncA");ee.setAttribute("type","table"),ee.setAttribute("tableValues","1.0 0.0"),V.appendChild(ee),this.globalData.defs.appendChild(S);var I=Be("rect");I.setAttribute("width",this.comp.data.w),I.setAttribute("height",this.comp.data.h),I.setAttribute("x","0"),I.setAttribute("y","0"),I.setAttribute("fill","#ffffff"),I.setAttribute("opacity","0"),B.setAttribute("filter","url("+u()+"#"+m+")"),B.appendChild(I),x=Be("use"),x.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),B.appendChild(x),eu.maskType||(L.setAttribute("mask-type","luminance"),S.appendChild(en.createAlphaToLuminanceFilter()),A=Be("g"),B.appendChild(I),A.appendChild(this.layerElement),B.appendChild(A)),this.globalData.defs.appendChild(L)}this.matteMasks[h]=p}return this.matteMasks[h]},setMatte:function(h){this.matteElement&&this.matteElement.setAttribute("mask","url("+u()+"#"+h+")")}};function Sr(){}Sr.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(h){this.hierarchy=h},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function sn(){}(function(){var c={initElement:function(p,m,S){this.initFrame(),this.initBaseData(p,m,S),this.initTransform(p,m,S),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var p=this.baseElement||this.layerElement;p.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var p=this.baseElement||this.layerElement;p.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(p){this._mdf=!1,this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};f([Hn,g(c)],sn)})();function rn(c,h,p){this.assetData=h.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=h.slotManager.getProp(this.assetData)),this.initElement(c,h,p),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}f([wi,xr,tn,Sr,Ai,sn],rn),rn.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=Be("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",c),this.layerElement.appendChild(this.innerElem)},rn.prototype.sourceRectAtTime=function(){return this.sourceRect};function Sm(c,h){this.elem=c,this.pos=h}function su(){}su.prototype={addShapeToModifiers:function(h){var p,m=this.shapeModifiers.length;for(p=0;p<m;p+=1)this.shapeModifiers[p].addShape(h)},isShapeInAnimatedModifiers:function(h){for(var p=0,m=this.shapeModifiers.length;p<m;)if(this.shapeModifiers[p].isAnimatedWithShape(h))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var h,p=this.shapes.length;for(h=0;h<p;h+=1)this.shapes[h].sh.reset();p=this.shapeModifiers.length;var m;for(h=p-1;h>=0&&(m=this.shapeModifiers[h].processShapes(this._isFirstFrame),!m);h-=1);}},searchProcessedElement:function(h){for(var p=this.processedElements,m=0,S=p.length;m<S;){if(p[m].elem===h)return p[m].pos;m+=1}return 0},addProcessedElement:function(h,p){for(var m=this.processedElements,S=m.length;S;)if(S-=1,m[S].elem===h){m[S].pos=p;return}m.push(new Sm(h,p))},prepareFrame:function(h){this.prepareRenderableFrame(h),this.prepareProperties(h,this.isInRange)}};var iu={1:"butt",2:"round",3:"square"},ru={1:"miter",2:"round",3:"bevel"};function nu(c,h,p){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=p,this.lvl=h,this._isAnimated=!!p.k;for(var m=0,S=c.length;m<S;){if(c[m].mProps.dynamicProperties.length){this._isAnimated=!0;break}m+=1}}nu.prototype.setAsAnimated=function(){this._isAnimated=!0};function au(c,h){this.data=c,this.type=c.ty,this.d="",this.lvl=h,this._mdf=!1,this.closed=c.hd===!0,this.pElem=Be("path"),this.msElem=null}au.prototype.reset=function(){this.d="",this._mdf=!1};function jn(c,h,p,m){this.elem=c,this.frameId=-1,this.dataProps=E(h.length),this.renderer=p,this.k=!1,this.dashStr="",this.dashArray=y("float32",h.length?h.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(m);var S,x=h.length||0,A;for(S=0;S<x;S+=1)A=Ae.getProp(c,h[S].v,0,0,this),this.k=A.k||this.k,this.dataProps[S]={n:h[S].n,p:A};this.k||this.getValue(!0),this._isAnimated=this.k}jn.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var h=0,p=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),h=0;h<p;h+=1)this.dataProps[h].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[h].p.v:this.dashArray[h]=this.dataProps[h].p.v:this.dashoffset[0]=this.dataProps[h].p.v}},f([_t],jn);function ou(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(c,h.o,0,.01,this),this.w=Ae.getProp(c,h.w,0,null,this),this.d=new jn(c,h.d||{},"svg",this),this.c=Ae.getProp(c,h.c,1,255,this),this.style=p,this._isAnimated=!!this._isAnimated}f([_t],ou);function lu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(c,h.o,0,.01,this),this.c=Ae.getProp(c,h.c,1,255,this),this.style=p}f([_t],lu);function cu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=p}f([_t],cu);function nn(c,h,p){this.data=h,this.c=y("uint8c",h.p*4);var m=h.k.k[0].s?h.k.k[0].s.length-h.p*4:h.k.k.length-h.p*4;this.o=y("float32",m),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=m,this.initDynamicPropertyContainer(p),this.prop=Ae.getProp(c,h.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}nn.prototype.comparePoints=function(c,h){for(var p=0,m=this.o.length/2,S;p<m;){if(S=Math.abs(c[p*4]-c[h*4+p*2]),S>.01)return!1;p+=1}return!0},nn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,h=this.data.k.k.length;c<h;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},nn.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var h,p=this.data.p*4,m,S;for(h=0;h<p;h+=1)m=h%4===0?100:255,S=Math.round(this.prop.v[h]*m),this.c[h]!==S&&(this.c[h]=S,this._cmdf=!c);if(this.o.length)for(p=this.prop.v.length,h=this.data.p*4;h<p;h+=1)m=h%2===0?100:1,S=h%2===0?Math.round(this.prop.v[h]*100):this.prop.v[h],this.o[h-this.data.p*4]!==S&&(this.o[h-this.data.p*4]=S,this._omdf=!c);this._mdf=!c}},f([_t],nn);function Er(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,h,p)}Er.prototype.initGradientData=function(c,h,p){this.o=Ae.getProp(c,h.o,0,.01,this),this.s=Ae.getProp(c,h.s,1,null,this),this.e=Ae.getProp(c,h.e,1,null,this),this.h=Ae.getProp(c,h.h||{k:0},0,.01,this),this.a=Ae.getProp(c,h.a||{k:0},0,Q,this),this.g=new nn(c,h.g,this),this.style=p,this.stops=[],this.setGradientData(p.pElem,h),this.setGradientOpacity(h,p),this._isAnimated=!!this._isAnimated},Er.prototype.setGradientData=function(c,h){var p=we(),m=Be(h.t===1?"linearGradient":"radialGradient");m.setAttribute("id",p),m.setAttribute("spreadMethod","pad"),m.setAttribute("gradientUnits","userSpaceOnUse");var S=[],x,A,D;for(D=h.g.p*4,A=0;A<D;A+=4)x=Be("stop"),m.appendChild(x),S.push(x);c.setAttribute(h.ty==="gf"?"fill":"stroke","url("+u()+"#"+p+")"),this.gf=m,this.cst=S},Er.prototype.setGradientOpacity=function(c,h){if(this.g._hasOpacity&&!this.g._collapsable){var p,m,S,x=Be("mask"),A=Be("path");x.appendChild(A);var D=we(),L=we();x.setAttribute("id",L);var B=Be(c.t===1?"linearGradient":"radialGradient");B.setAttribute("id",D),B.setAttribute("spreadMethod","pad"),B.setAttribute("gradientUnits","userSpaceOnUse"),S=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var V=this.stops;for(m=c.g.p*4;m<S;m+=2)p=Be("stop"),p.setAttribute("stop-color","rgb(255,255,255)"),B.appendChild(p),V.push(p);A.setAttribute(c.ty==="gf"?"fill":"stroke","url("+u()+"#"+D+")"),c.ty==="gs"&&(A.setAttribute("stroke-linecap",iu[c.lc||2]),A.setAttribute("stroke-linejoin",ru[c.lj||2]),c.lj===1&&A.setAttribute("stroke-miterlimit",c.ml)),this.of=B,this.ms=x,this.ost=V,this.maskId=L,h.msElem=A}},f([_t],Er);function uu(c,h,p){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=Ae.getProp(c,h.w,0,null,this),this.d=new jn(c,h.d||{},"svg",this),this.initGradientData(c,h,p),this._isAnimated=!!this._isAnimated}f([Er,_t],uu);function Em(){this.it=[],this.prevViewData=[],this.gr=Be("g")}function bm(c,h,p){this.transform={mProps:c,op:h,container:p},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hu=function(h,p,m,S){if(p===0)return"";var x=h.o,A=h.i,D=h.v,L,B=" M"+S.applyToPointStringified(D[0][0],D[0][1]);for(L=1;L<p;L+=1)B+=" C"+S.applyToPointStringified(x[L-1][0],x[L-1][1])+" "+S.applyToPointStringified(A[L][0],A[L][1])+" "+S.applyToPointStringified(D[L][0],D[L][1]);return m&&p&&(B+=" C"+S.applyToPointStringified(x[L-1][0],x[L-1][1])+" "+S.applyToPointStringified(A[0][0],A[0][1])+" "+S.applyToPointStringified(D[0][0],D[0][1]),B+="z"),B},Tm=function(){var c=new Ie,h=new Ie,p={createRenderFunction:m};function m(ee){switch(ee.ty){case"fl":return D;case"gf":return B;case"gs":return L;case"st":return V;case"sh":case"el":case"rc":case"sr":return A;case"tr":return S;case"no":return x;default:return null}}function S(ee,I,H){(H||I.transform.op._mdf)&&I.transform.container.setAttribute("opacity",I.transform.op.v),(H||I.transform.mProps._mdf)&&I.transform.container.setAttribute("transform",I.transform.mProps.v.to2dCSS())}function x(){}function A(ee,I,H){var q,K,J,G,O,_,P=I.styles.length,$=I.lvl,Y,Z,ae,Se;for(_=0;_<P;_+=1){if(G=I.sh._mdf||H,I.styles[_].lvl<$){for(Z=h.reset(),ae=$-I.styles[_].lvl,Se=I.transformers.length-1;!G&&ae>0;)G=I.transformers[Se].mProps._mdf||G,ae-=1,Se-=1;if(G)for(ae=$-I.styles[_].lvl,Se=I.transformers.length-1;ae>0;)Z.multiply(I.transformers[Se].mProps.v),ae-=1,Se-=1}else Z=c;if(Y=I.sh.paths,K=Y._length,G){for(J="",q=0;q<K;q+=1)O=Y.shapes[q],O&&O._length&&(J+=hu(O,O._length,O.c,Z));I.caches[_]=J}else J=I.caches[_];I.styles[_].d+=ee.hd===!0?"":J,I.styles[_]._mdf=G||I.styles[_]._mdf}}function D(ee,I,H){var q=I.style;(I.c._mdf||H)&&q.pElem.setAttribute("fill","rgb("+te(I.c.v[0])+","+te(I.c.v[1])+","+te(I.c.v[2])+")"),(I.o._mdf||H)&&q.pElem.setAttribute("fill-opacity",I.o.v)}function L(ee,I,H){B(ee,I,H),V(ee,I,H)}function B(ee,I,H){var q=I.gf,K=I.g._hasOpacity,J=I.s.v,G=I.e.v;if(I.o._mdf||H){var O=ee.ty==="gf"?"fill-opacity":"stroke-opacity";I.style.pElem.setAttribute(O,I.o.v)}if(I.s._mdf||H){var _=ee.t===1?"x1":"cx",P=_==="x1"?"y1":"cy";q.setAttribute(_,J[0]),q.setAttribute(P,J[1]),K&&!I.g._collapsable&&(I.of.setAttribute(_,J[0]),I.of.setAttribute(P,J[1]))}var $,Y,Z,ae;if(I.g._cmdf||H){$=I.cst;var Se=I.g.c;for(Z=$.length,Y=0;Y<Z;Y+=1)ae=$[Y],ae.setAttribute("offset",Se[Y*4]+"%"),ae.setAttribute("stop-color","rgb("+Se[Y*4+1]+","+Se[Y*4+2]+","+Se[Y*4+3]+")")}if(K&&(I.g._omdf||H)){var Ke=I.g.o;for(I.g._collapsable?$=I.cst:$=I.ost,Z=$.length,Y=0;Y<Z;Y+=1)ae=$[Y],I.g._collapsable||ae.setAttribute("offset",Ke[Y*2]+"%"),ae.setAttribute("stop-opacity",Ke[Y*2+1])}if(ee.t===1)(I.e._mdf||H)&&(q.setAttribute("x2",G[0]),q.setAttribute("y2",G[1]),K&&!I.g._collapsable&&(I.of.setAttribute("x2",G[0]),I.of.setAttribute("y2",G[1])));else{var De;if((I.s._mdf||I.e._mdf||H)&&(De=Math.sqrt(Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)),q.setAttribute("r",De),K&&!I.g._collapsable&&I.of.setAttribute("r",De)),I.e._mdf||I.h._mdf||I.a._mdf||H){De||(De=Math.sqrt(Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)));var Te=Math.atan2(G[1]-J[1],G[0]-J[0]),Ye=I.h.v;Ye>=1?Ye=.99:Ye<=-1&&(Ye=-.99);var ke=De*Ye,xe=Math.cos(Te+I.a.v)*ke+J[0],M=Math.sin(Te+I.a.v)*ke+J[1];q.setAttribute("fx",xe),q.setAttribute("fy",M),K&&!I.g._collapsable&&(I.of.setAttribute("fx",xe),I.of.setAttribute("fy",M))}}}function V(ee,I,H){var q=I.style,K=I.d;K&&(K._mdf||H)&&K.dashStr&&(q.pElem.setAttribute("stroke-dasharray",K.dashStr),q.pElem.setAttribute("stroke-dashoffset",K.dashoffset[0])),I.c&&(I.c._mdf||H)&&q.pElem.setAttribute("stroke","rgb("+te(I.c.v[0])+","+te(I.c.v[1])+","+te(I.c.v[2])+")"),(I.o._mdf||H)&&q.pElem.setAttribute("stroke-opacity",I.o.v),(I.w._mdf||H)&&(q.pElem.setAttribute("stroke-width",I.w.v),q.msElem&&q.msElem.setAttribute("stroke-width",I.w.v))}return p}();function Lt(c,h,p){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,h,p),this.prevViewData=[]}f([wi,xr,tn,su,Sr,Ai,sn],Lt),Lt.prototype.initSecondaryElement=function(){},Lt.prototype.identityMatrix=new Ie,Lt.prototype.buildExpressionInterface=function(){},Lt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Lt.prototype.filterUniqueShapes=function(){var c,h=this.shapes.length,p,m,S=this.stylesList.length,x,A=[],D=!1;for(m=0;m<S;m+=1){for(x=this.stylesList[m],D=!1,A.length=0,c=0;c<h;c+=1)p=this.shapes[c],p.styles.indexOf(x)!==-1&&(A.push(p),D=p._isAnimated||D);A.length>1&&D&&this.setShapesAsAnimated(A)}},Lt.prototype.setShapesAsAnimated=function(c){var h,p=c.length;for(h=0;h<p;h+=1)c[h].setAsAnimated()},Lt.prototype.createStyleElement=function(c,h){var p,m=new au(c,h),S=m.pElem;if(c.ty==="st")p=new ou(this,c,m);else if(c.ty==="fl")p=new lu(this,c,m);else if(c.ty==="gf"||c.ty==="gs"){var x=c.ty==="gf"?Er:uu;p=new x(this,c,m),this.globalData.defs.appendChild(p.gf),p.maskId&&(this.globalData.defs.appendChild(p.ms),this.globalData.defs.appendChild(p.of),S.setAttribute("mask","url("+u()+"#"+p.maskId+")"))}else c.ty==="no"&&(p=new cu(this,c,m));return(c.ty==="st"||c.ty==="gs")&&(S.setAttribute("stroke-linecap",iu[c.lc||2]),S.setAttribute("stroke-linejoin",ru[c.lj||2]),S.setAttribute("fill-opacity","0"),c.lj===1&&S.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&S.setAttribute("fill-rule","evenodd"),c.ln&&S.setAttribute("id",c.ln),c.cl&&S.setAttribute("class",c.cl),c.bm&&(S.style["mix-blend-mode"]=po(c.bm)),this.stylesList.push(m),this.addToAnimatedContents(c,p),p},Lt.prototype.createGroupElement=function(c){var h=new Em;return c.ln&&h.gr.setAttribute("id",c.ln),c.cl&&h.gr.setAttribute("class",c.cl),c.bm&&(h.gr.style["mix-blend-mode"]=po(c.bm)),h},Lt.prototype.createTransformElement=function(c,h){var p=lo.getTransformProperty(this,c,this),m=new bm(p,p.o,h);return this.addToAnimatedContents(c,m),m},Lt.prototype.createShapeElement=function(c,h,p){var m=4;c.ty==="rc"?m=5:c.ty==="el"?m=6:c.ty==="sr"&&(m=7);var S=Ce.getShapeProp(this,c,m,this),x=new nu(h,p,S);return this.shapes.push(x),this.addShapeToModifiers(x),this.addToAnimatedContents(c,x),x},Lt.prototype.addToAnimatedContents=function(c,h){for(var p=0,m=this.animatedContents.length;p<m;){if(this.animatedContents[p].element===h)return;p+=1}this.animatedContents.push({fn:Tm.createRenderFunction(c),element:h,data:c})},Lt.prototype.setElementStyles=function(c){var h=c.styles,p,m=this.stylesList.length;for(p=0;p<m;p+=1)this.stylesList[p].closed||h.push(this.stylesList[p])},Lt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,h=this.itemsData.length;for(c=0;c<h;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),h=this.dynamicProperties.length,c=0;c<h;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},Lt.prototype.searchShapes=function(c,h,p,m,S,x,A){var D=[].concat(x),L,B=c.length-1,V,ee,I=[],H=[],q,K,J;for(L=B;L>=0;L-=1){if(J=this.searchProcessedElement(c[L]),J?h[L]=p[J-1]:c[L]._render=A,c[L].ty==="fl"||c[L].ty==="st"||c[L].ty==="gf"||c[L].ty==="gs"||c[L].ty==="no")J?h[L].style.closed=!1:h[L]=this.createStyleElement(c[L],S),c[L]._render&&h[L].style.pElem.parentNode!==m&&m.appendChild(h[L].style.pElem),I.push(h[L].style);else if(c[L].ty==="gr"){if(!J)h[L]=this.createGroupElement(c[L]);else for(ee=h[L].it.length,V=0;V<ee;V+=1)h[L].prevViewData[V]=h[L].it[V];this.searchShapes(c[L].it,h[L].it,h[L].prevViewData,h[L].gr,S+1,D,A),c[L]._render&&h[L].gr.parentNode!==m&&m.appendChild(h[L].gr)}else c[L].ty==="tr"?(J||(h[L]=this.createTransformElement(c[L],m)),q=h[L].transform,D.push(q)):c[L].ty==="sh"||c[L].ty==="rc"||c[L].ty==="el"||c[L].ty==="sr"?(J||(h[L]=this.createShapeElement(c[L],D,S)),this.setElementStyles(h[L])):c[L].ty==="tm"||c[L].ty==="rd"||c[L].ty==="ms"||c[L].ty==="pb"||c[L].ty==="zz"||c[L].ty==="op"?(J?(K=h[L],K.closed=!1):(K=bi.getModifier(c[L].ty),K.init(this,c[L]),h[L]=K,this.shapeModifiers.push(K)),H.push(K)):c[L].ty==="rp"&&(J?(K=h[L],K.closed=!0):(K=bi.getModifier(c[L].ty),h[L]=K,K.init(this,c,L,h),this.shapeModifiers.push(K),A=!1),H.push(K));this.addProcessedElement(c[L],L+1)}for(B=I.length,L=0;L<B;L+=1)I[L].closed=!0;for(B=H.length,L=0;L<B;L+=1)H[L].closed=!0},Lt.prototype.renderInnerContent=function(){this.renderModifiers();var c,h=this.stylesList.length;for(c=0;c<h;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<h;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},Lt.prototype.renderShape=function(){var c,h=this.animatedContents.length,p;for(c=0;c<h;c+=1)p=this.animatedContents[c],(this._isFirstFrame||p.element._isAnimated)&&p.data!==!0&&p.fn(p.data,p.element,this._isFirstFrame)},Lt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function vo(c,h,p,m,S,x){this.o=c,this.sw=h,this.sc=p,this.fc=m,this.m=S,this.p=x,this._mdf={o:!0,sw:!!h,sc:!!p,fc:!!m,m:!0,p:!0}}vo.prototype.update=function(c,h,p,m,S,x){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 A=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,A=!0),this.sw!==h&&(this.sw=h,this._mdf.sw=!0,A=!0),this.sc!==p&&(this.sc=p,this._mdf.sc=!0,A=!0),this.fc!==m&&(this.fc=m,this._mdf.fc=!0,A=!0),this.m!==S&&(this.m=S,this._mdf.m=!0,A=!0),x.length&&(this.p[0]!==x[0]||this.p[1]!==x[1]||this.p[4]!==x[4]||this.p[5]!==x[5]||this.p[12]!==x[12]||this.p[13]!==x[13])&&(this.p=x,this._mdf.p=!0,A=!0),A};function Yt(c,h){this._frameId=n,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,h.d&&h.d.sid&&(h.d=c.globalData.slotManager.getProp(h.d)),this.data=h,this.elem=c,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)}Yt.prototype.defaultBoxWidth=[0,0],Yt.prototype.copyData=function(c,h){for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(c[p]=h[p]);return c},Yt.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Yt.prototype.searchProperty=function(){return this.searchKeyframes()},Yt.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Yt.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},Yt.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var h=this.currentData,p=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var m,S=this.effectsSequence.length,x=c||this.data.d.k[this.keysIndex].s;for(m=0;m<S;m+=1)p!==this.keysIndex?x=this.effectsSequence[m](x,x.t):x=this.effectsSequence[m](this.currentData,x.t);h!==x&&this.setCurrentData(x),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Yt.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,h=this.elem.comp.renderedFrame,p=0,m=c.length;p<=m-1&&!(p===m-1||c[p+1].t>h);)p+=1;return this.keysIndex!==p&&(this.keysIndex=p),this.data.d.k[this.keysIndex].s},Yt.prototype.buildFinalText=function(c){for(var h=[],p=0,m=c.length,S,x,A=!1,D=!1,L="";p<m;)A=D,D=!1,S=c.charCodeAt(p),L=c.charAt(p),ji.isCombinedCharacter(S)?A=!0:S>=55296&&S<=56319?ji.isRegionalFlag(c,p)?L=c.substr(p,14):(x=c.charCodeAt(p+1),x>=56320&&x<=57343&&(ji.isModifier(S,x)?(L=c.substr(p,2),A=!0):ji.isFlagEmoji(c.substr(p,4))?L=c.substr(p,4):L=c.substr(p,2))):S>56319?(x=c.charCodeAt(p+1),ji.isVariationSelector(S)&&(A=!0)):ji.isZeroWidthJoiner(S)&&(A=!0,D=!0),A?(h[h.length-1]+=L,A=!1):h.push(L),p+=L.length;return h},Yt.prototype.completeTextData=function(c){c.__complete=!0;var h=this.elem.globalData.fontManager,p=this.data,m=[],S,x,A,D=0,L,B=p.m.g,V=0,ee=0,I=0,H=[],q=0,K=0,J,G,O=h.getFontByName(c.f),_,P=0,$=Qc(O);c.fWeight=$.weight,c.fStyle=$.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),x=c.finalText.length,c.finalLineHeight=c.lh;var Y=c.tr/1e3*c.finalSize,Z;if(c.sz)for(var ae=!0,Se=c.sz[0],Ke=c.sz[1],De,Te;ae;){Te=this.buildFinalText(c.t),De=0,q=0,x=Te.length,Y=c.tr/1e3*c.finalSize;var Ye=-1;for(S=0;S<x;S+=1)Z=Te[S].charCodeAt(0),A=!1,Te[S]===" "?Ye=S:(Z===13||Z===3)&&(q=0,A=!0,De+=c.finalLineHeight||c.finalSize*1.2),h.chars?(_=h.getCharData(Te[S],O.fStyle,O.fFamily),P=A?0:_.w*c.finalSize/100):P=h.measureText(Te[S],c.f,c.finalSize),q+P>Se&&Te[S]!==" "?(Ye===-1?x+=1:S=Ye,De+=c.finalLineHeight||c.finalSize*1.2,Te.splice(S,Ye===S?1:0,"\r"),Ye=-1,q=0):(q+=P,q+=Y);De+=O.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Ke<De?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Te,x=c.finalText.length,ae=!1)}q=-Y,P=0;var ke=0,xe;for(S=0;S<x;S+=1)if(A=!1,xe=c.finalText[S],Z=xe.charCodeAt(0),Z===13||Z===3?(ke=0,H.push(q),K=q>K?q:K,q=-2*Y,L="",A=!0,I+=1):L=xe,h.chars?(_=h.getCharData(xe,O.fStyle,h.getFontByName(c.f).fFamily),P=A?0:_.w*c.finalSize/100):P=h.measureText(L,c.f,c.finalSize),xe===" "?ke+=P+Y:(q+=P+Y+ke,ke=0),m.push({l:P,an:P,add:V,n:A,anIndexes:[],val:L,line:I,animatorJustifyOffset:0}),B==2){if(V+=P,L===""||L===" "||S===x-1){for((L===""||L===" ")&&(V-=P);ee<=S;)m[ee].an=V,m[ee].ind=D,m[ee].extra=P,ee+=1;D+=1,V=0}}else if(B==3){if(V+=P,L===""||S===x-1){for(L===""&&(V-=P);ee<=S;)m[ee].an=V,m[ee].ind=D,m[ee].extra=P,ee+=1;V=0,D+=1}}else m[D].ind=D,m[D].extra=0,D+=1;if(c.l=m,K=q>K?q:K,H.push(q),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=K,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=H;var M=p.a,z,T;G=M.length;var R,ne,X=[];for(J=0;J<G;J+=1){for(z=M[J],z.a.sc&&(c.strokeColorAnim=!0),z.a.sw&&(c.strokeWidthAnim=!0),(z.a.fc||z.a.fh||z.a.fs||z.a.fb)&&(c.fillColorAnim=!0),ne=0,R=z.s.b,S=0;S<x;S+=1)T=m[S],T.anIndexes[J]=ne,(R==1&&T.val!==""||R==2&&T.val!==""&&T.val!==" "||R==3&&(T.n||T.val==" "||S==x-1)||R==4&&(T.n||S==x-1))&&(z.s.rn===1&&X.push(ne),ne+=1);p.a[J].s.totalChars=ne;var Re=-1,Ue;if(z.s.rn===1)for(S=0;S<x;S+=1)T=m[S],Re!=T.anIndexes[J]&&(Re=T.anIndexes[J],Ue=X.splice(Math.floor(Math.random()*X.length),1)[0]),T.anIndexes[J]=Ue}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=O.ascent*c.finalSize/100},Yt.prototype.updateDocumentData=function(c,h){h=h===void 0?this.keysIndex:h;var p=this.copyData({},this.data.d.k[h].s);p=this.copyData(p,c),this.data.d.k[h].s=p,this.recalculate(h),this.setCurrentData(p),this.elem.addDynamicProperty(this)},Yt.prototype.recalculate=function(c){var h=this.data.d.k[c].s;h.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(h)},Yt.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Yt.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var wm=function(){var c=Math.max,h=Math.min,p=Math.floor;function m(x,A){this._currentTextLength=-1,this.k=!1,this.data=A,this.elem=x,this.comp=x.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(x),this.s=Ae.getProp(x,A.s||{k:0},0,0,this),"e"in A?this.e=Ae.getProp(x,A.e,0,0,this):this.e={v:100},this.o=Ae.getProp(x,A.o||{k:0},0,0,this),this.xe=Ae.getProp(x,A.xe||{k:0},0,0,this),this.ne=Ae.getProp(x,A.ne||{k:0},0,0,this),this.sm=Ae.getProp(x,A.sm||{k:100},0,0,this),this.a=Ae.getProp(x,A.a,0,.01,this),this.dynamicProperties.length||this.getValue()}m.prototype={getMult:function(A){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var D=0,L=0,B=1,V=1;this.ne.v>0?D=this.ne.v/100:L=-this.ne.v/100,this.xe.v>0?B=1-this.xe.v/100:V=1+this.xe.v/100;var ee=si.getBezierEasing(D,L,B,V).get,I=0,H=this.finalS,q=this.finalE,K=this.data.sh;if(K===2)q===H?I=A>=q?1:0:I=c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I=ee(I);else if(K===3)q===H?I=A>=q?0:1:I=1-c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I=ee(I);else if(K===4)q===H?I=0:(I=c(0,h(.5/(q-H)+(A-H)/(q-H),1)),I<.5?I*=2:I=1-2*(I-.5)),I=ee(I);else if(K===5){if(q===H)I=0;else{var J=q-H;A=h(c(0,A+.5-H),q-H);var G=-J/2+A,O=J/2;I=Math.sqrt(1-G*G/(O*O))}I=ee(I)}else K===6?(q===H?I=0:(A=h(c(0,A+.5-H),q-H),I=(1+Math.cos(Math.PI+Math.PI*2*A/(q-H)))/2),I=ee(I)):(A>=p(H)&&(A-H<0?I=c(0,h(h(q,1)-(H-A),1)):I=c(0,h(q-A,1))),I=ee(I));if(this.sm.v!==100){var _=this.sm.v*.01;_===0&&(_=1e-8);var P=.5-_*.5;I<P?I=0:(I=(I-P)/_,I>1&&(I=1))}return I*this.a.v},getValue:function(A){this.iterateDynamicProperties(),this._mdf=A||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,A&&this.data.r===2&&(this.e.v=this._currentTextLength);var D=this.data.r===2?1:100/this.data.totalChars,L=this.o.v/D,B=this.s.v/D+L,V=this.e.v/D+L;if(B>V){var ee=B;B=V,V=ee}this.finalS=B,this.finalE=V}},f([_t],m);function S(x,A,D){return new m(x,A)}return{getTextSelectorProp:S}}();function Am(c,h,p){var m={propType:!1},S=Ae.getProp,x=h.a;this.a={r:x.r?S(c,x.r,0,Q,p):m,rx:x.rx?S(c,x.rx,0,Q,p):m,ry:x.ry?S(c,x.ry,0,Q,p):m,sk:x.sk?S(c,x.sk,0,Q,p):m,sa:x.sa?S(c,x.sa,0,Q,p):m,s:x.s?S(c,x.s,1,.01,p):m,a:x.a?S(c,x.a,1,0,p):m,o:x.o?S(c,x.o,0,.01,p):m,p:x.p?S(c,x.p,1,0,p):m,sw:x.sw?S(c,x.sw,0,0,p):m,sc:x.sc?S(c,x.sc,1,0,p):m,fc:x.fc?S(c,x.fc,1,0,p):m,fh:x.fh?S(c,x.fh,0,0,p):m,fs:x.fs?S(c,x.fs,0,.01,p):m,fb:x.fb?S(c,x.fb,0,.01,p):m,t:x.t?S(c,x.t,0,0,p):m},this.s=wm.getTextSelectorProp(c,h.s,p),this.s.t=h.s.t}function zi(c,h,p){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=h,this._elem=p,this._animatorsData=E(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(p)}zi.prototype.searchProperties=function(){var c,h=this._textData.a.length,p,m=Ae.getProp;for(c=0;c<h;c+=1)p=this._textData.a[c],this._animatorsData[c]=new Am(this._elem,p,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:m(this._elem,this._textData.p.a,0,0,this),f:m(this._elem,this._textData.p.f,0,0,this),l:m(this._elem,this._textData.p.l,0,0,this),r:m(this._elem,this._textData.p.r,0,0,this),p:m(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=m(this._elem,this._textData.m.a,1,0,this)},zi.prototype.getMeasures=function(c,h){if(this.lettersChangedFlag=h,!(!this._mdf&&!this._isFirstFrame&&!h&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var p=this._moreOptions.alignment.v,m=this._animatorsData,S=this._textData,x=this.mHelper,A=this._renderType,D=this.renderedLetters.length,L,B,V,ee,I=c.l,H,q,K,J,G,O,_,P,$,Y,Z,ae,Se,Ke,De;if(this._hasMaskedPath){if(De=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Te=De.v;this._pathData.r.v&&(Te=Te.reverse()),H={tLength:0,segments:[]},ee=Te._length-1;var Ye;for(ae=0,V=0;V<ee;V+=1)Ye=gs.buildBezierData(Te.v[V],Te.v[V+1],[Te.o[V][0]-Te.v[V][0],Te.o[V][1]-Te.v[V][1]],[Te.i[V+1][0]-Te.v[V+1][0],Te.i[V+1][1]-Te.v[V+1][1]]),H.tLength+=Ye.segmentLength,H.segments.push(Ye),ae+=Ye.segmentLength;V=ee,De.v.c&&(Ye=gs.buildBezierData(Te.v[V],Te.v[0],[Te.o[V][0]-Te.v[V][0],Te.o[V][1]-Te.v[V][1]],[Te.i[0][0]-Te.v[0][0],Te.i[0][1]-Te.v[0][1]]),H.tLength+=Ye.segmentLength,H.segments.push(Ye),ae+=Ye.segmentLength),this._pathData.pi=H}if(H=this._pathData.pi,q=this._pathData.f.v,_=0,O=1,J=0,G=!0,Y=H.segments,q<0&&De.v.c)for(H.tLength<Math.abs(q)&&(q=-Math.abs(q)%H.tLength),_=Y.length-1,$=Y[_].points,O=$.length-1;q<0;)q+=$[O].partialLength,O-=1,O<0&&(_-=1,$=Y[_].points,O=$.length-1);$=Y[_].points,P=$[O-1],K=$[O],Z=K.partialLength}ee=I.length,L=0,B=0;var ke=c.finalSize*1.2*.714,xe=!0,M,z,T,R,ne;R=m.length;var X,Re=-1,Ue,ze,nt,at=q,It=_,Zt=O,Bs=-1,es,Ut,cs,ft,Pe,oi,Ri,li,$s="",ci=this.defaultPropsArray,ui;if(c.j===2||c.j===1){var ts=0,_i=0,Ii=c.j===2?-.5:-1,Cs=0,ki=!0;for(V=0;V<ee;V+=1)if(I[V].n){for(ts&&(ts+=_i);Cs<V;)I[Cs].animatorJustifyOffset=ts,Cs+=1;ts=0,ki=!0}else{for(T=0;T<R;T+=1)M=m[T].a,M.t.propType&&(ki&&c.j===2&&(_i+=M.t.v*Ii),z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?ts+=M.t.v*X[0]*Ii:ts+=M.t.v*X*Ii);ki=!1}for(ts&&(ts+=_i);Cs<V;)I[Cs].animatorJustifyOffset=ts,Cs+=1}for(V=0;V<ee;V+=1){if(x.reset(),es=1,I[V].n)L=0,B+=c.yOffset,B+=xe?1:0,q=at,xe=!1,this._hasMaskedPath&&(_=It,O=Zt,$=Y[_].points,P=$[O-1],K=$[O],Z=K.partialLength,J=0),$s="",li="",oi="",ui="",ci=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Bs!==I[V].line){switch(c.j){case 1:q+=ae-c.lineWidths[I[V].line];break;case 2:q+=(ae-c.lineWidths[I[V].line])/2;break}Bs=I[V].line}Re!==I[V].ind&&(I[Re]&&(q+=I[Re].extra),q+=I[V].an/2,Re=I[V].ind),q+=p[0]*I[V].an*.005;var Rs=0;for(T=0;T<R;T+=1)M=m[T].a,M.p.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?Rs+=M.p.v[0]*X[0]:Rs+=M.p.v[0]*X),M.a.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?Rs+=M.a.v[0]*X[0]:Rs+=M.a.v[0]*X);for(G=!0,this._pathData.a.v&&(q=I[0].an*.5+(ae-this._pathData.f.v-I[0].an*.5-I[I.length-1].an*.5)*Re/(ee-1),q+=this._pathData.f.v);G;)J+Z>=q+Rs||!$?(Se=(q+Rs-J)/K.partialLength,ze=P.point[0]+(K.point[0]-P.point[0])*Se,nt=P.point[1]+(K.point[1]-P.point[1])*Se,x.translate(-p[0]*I[V].an*.005,-(p[1]*ke)*.01),G=!1):$&&(J+=K.partialLength,O+=1,O>=$.length&&(O=0,_+=1,Y[_]?$=Y[_].points:De.v.c?(O=0,_=0,$=Y[_].points):(J-=K.partialLength,$=null)),$&&(P=K,K=$[O],Z=K.partialLength));Ue=I[V].an/2-I[V].add,x.translate(-Ue,0,0)}else Ue=I[V].an/2-I[V].add,x.translate(-Ue,0,0),x.translate(-p[0]*I[V].an*.005,-p[1]*ke*.01,0);for(T=0;T<R;T+=1)M=m[T].a,M.t.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),(L!==0||c.j!==0)&&(this._hasMaskedPath?X.length?q+=M.t.v*X[0]:q+=M.t.v*X:X.length?L+=M.t.v*X[0]:L+=M.t.v*X));for(c.strokeWidthAnim&&(cs=c.sw||0),c.strokeColorAnim&&(c.sc?Ut=[c.sc[0],c.sc[1],c.sc[2]]:Ut=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),T=0;T<R;T+=1)M=m[T].a,M.a.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?x.translate(-M.a.v[0]*X[0],-M.a.v[1]*X[1],M.a.v[2]*X[2]):x.translate(-M.a.v[0]*X,-M.a.v[1]*X,M.a.v[2]*X));for(T=0;T<R;T+=1)M=m[T].a,M.s.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),X.length?x.scale(1+(M.s.v[0]-1)*X[0],1+(M.s.v[1]-1)*X[1],1):x.scale(1+(M.s.v[0]-1)*X,1+(M.s.v[1]-1)*X,1));for(T=0;T<R;T+=1){if(M=m[T].a,z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),M.sk.propType&&(X.length?x.skewFromAxis(-M.sk.v*X[0],M.sa.v*X[1]):x.skewFromAxis(-M.sk.v*X,M.sa.v*X)),M.r.propType&&(X.length?x.rotateZ(-M.r.v*X[2]):x.rotateZ(-M.r.v*X)),M.ry.propType&&(X.length?x.rotateY(M.ry.v*X[1]):x.rotateY(M.ry.v*X)),M.rx.propType&&(X.length?x.rotateX(M.rx.v*X[0]):x.rotateX(M.rx.v*X)),M.o.propType&&(X.length?es+=(M.o.v*X[0]-es)*X[0]:es+=(M.o.v*X-es)*X),c.strokeWidthAnim&&M.sw.propType&&(X.length?cs+=M.sw.v*X[0]:cs+=M.sw.v*X),c.strokeColorAnim&&M.sc.propType)for(Pe=0;Pe<3;Pe+=1)X.length?Ut[Pe]+=(M.sc.v[Pe]-Ut[Pe])*X[0]:Ut[Pe]+=(M.sc.v[Pe]-Ut[Pe])*X;if(c.fillColorAnim&&c.fc){if(M.fc.propType)for(Pe=0;Pe<3;Pe+=1)X.length?ft[Pe]+=(M.fc.v[Pe]-ft[Pe])*X[0]:ft[Pe]+=(M.fc.v[Pe]-ft[Pe])*X;M.fh.propType&&(X.length?ft=Je(ft,M.fh.v*X[0]):ft=Je(ft,M.fh.v*X)),M.fs.propType&&(X.length?ft=Ve(ft,M.fs.v*X[0]):ft=Ve(ft,M.fs.v*X)),M.fb.propType&&(X.length?ft=$e(ft,M.fb.v*X[0]):ft=$e(ft,M.fb.v*X))}}for(T=0;T<R;T+=1)M=m[T].a,M.p.propType&&(z=m[T].s,X=z.getMult(I[V].anIndexes[T],S.a[T].s.totalChars),this._hasMaskedPath?X.length?x.translate(0,M.p.v[1]*X[0],-M.p.v[2]*X[1]):x.translate(0,M.p.v[1]*X,-M.p.v[2]*X):X.length?x.translate(M.p.v[0]*X[0],M.p.v[1]*X[1],-M.p.v[2]*X[2]):x.translate(M.p.v[0]*X,M.p.v[1]*X,-M.p.v[2]*X));if(c.strokeWidthAnim&&(oi=cs<0?0:cs),c.strokeColorAnim&&(Ri="rgb("+Math.round(Ut[0]*255)+","+Math.round(Ut[1]*255)+","+Math.round(Ut[2]*255)+")"),c.fillColorAnim&&c.fc&&(li="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(x.translate(0,-c.ls),x.translate(0,p[1]*ke*.01+B,0),this._pathData.p.v){Ke=(K.point[1]-P.point[1])/(K.point[0]-P.point[0]);var Wi=Math.atan(Ke)*180/Math.PI;K.point[0]<P.point[0]&&(Wi+=180),x.rotate(-Wi*Math.PI/180)}x.translate(ze,nt,0),q-=p[0]*I[V].an*.005,I[V+1]&&Re!==I[V+1].ind&&(q+=I[V].an/2,q+=c.tr*.001*c.finalSize)}else{switch(x.translate(L,B,0),c.ps&&x.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:x.translate(I[V].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[I[V].line]),0,0);break;case 2:x.translate(I[V].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[I[V].line])/2,0,0);break}x.translate(0,-c.ls),x.translate(Ue,0,0),x.translate(p[0]*I[V].an*.005,p[1]*ke*.01,0),L+=I[V].l+c.tr*.001*c.finalSize}A==="html"?$s=x.toCSS():A==="svg"?$s=x.to2dCSS():ci=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],ui=es}D<=V?(ne=new vo(ui,oi,Ri,li,$s,ci),this.renderedLetters.push(ne),D+=1,this.lettersChangedFlag=!0):(ne=this.renderedLetters[V],this.lettersChangedFlag=ne.update(ui,oi,Ri,li,$s,ci)||this.lettersChangedFlag)}}},zi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zi.prototype.mHelper=new Ie,zi.prototype.defaultPropsArray=[],f([_t],zi);function vs(){}vs.prototype.initElement=function(c,h,p){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,h,p),this.textProperty=new Yt(this,c.t,this.dynamicProperties),this.textAnimator=new zi(c.t,this.renderType,this),this.initTransform(c,h,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},vs.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},vs.prototype.createPathShape=function(c,h){var p,m=h.length,S,x="";for(p=0;p<m;p+=1)h[p].ty==="sh"&&(S=h[p].ks.k,x+=hu(S,S.i.length,!0,c));return x},vs.prototype.updateDocumentData=function(c,h){this.textProperty.updateDocumentData(c,h)},vs.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},vs.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},vs.prototype.applyTextPropertiesToMatrix=function(c,h,p,m,S){switch(c.ps&&h.translate(c.ps[0],c.ps[1]+c.ascent,0),h.translate(0,-c.ls,0),c.j){case 1:h.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[p]),0,0);break;case 2:h.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[p])/2,0,0);break}h.translate(m,S,0)},vs.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},vs.prototype.emptyProp=new vo,vs.prototype.destroy=function(){},vs.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Lm={shapes:[]};function ni(c,h,p){this.textSpans=[],this.renderType="svg",this.initElement(c,h,p)}f([wi,xr,tn,Sr,Ai,sn,vs],ni),ni.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Be("text"))},ni.prototype.buildTextContents=function(c){for(var h=0,p=c.length,m=[],S="";h<p;)c[h]==="\r"||c[h]===""?(m.push(S),S=""):S+=c[h],h+=1;return m.push(S),m},ni.prototype.buildShapeData=function(c,h){if(c.shapes&&c.shapes.length){var p=c.shapes[0];if(p.it){var m=p.it[p.it.length-1];m.s&&(m.s.k[0]=h,m.s.k[1]=h)}}return c},ni.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,h,p=this.textProperty.currentData;this.renderedLetters=E(p?p.l.length:0),p.fc?this.layerElement.setAttribute("fill",this.buildColor(p.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),p.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(p.sc)),this.layerElement.setAttribute("stroke-width",p.sw)),this.layerElement.setAttribute("font-size",p.finalSize);var m=this.globalData.fontManager.getFontByName(p.f);if(m.fClass)this.layerElement.setAttribute("class",m.fClass);else{this.layerElement.setAttribute("font-family",m.fFamily);var S=p.fWeight,x=p.fStyle;this.layerElement.setAttribute("font-style",x),this.layerElement.setAttribute("font-weight",S)}this.layerElement.setAttribute("aria-label",p.t);var A=p.l||[],D=!!this.globalData.fontManager.chars;h=A.length;var L,B=this.mHelper,V="",ee=this.data.singleShape,I=0,H=0,q=!0,K=p.tr*.001*p.finalSize;if(ee&&!D&&!p.sz){var J=this.textContainer,G="start";switch(p.j){case 1:G="end";break;case 2:G="middle";break;default:G="start";break}J.setAttribute("text-anchor",G),J.setAttribute("letter-spacing",K);var O=this.buildTextContents(p.finalText);for(h=O.length,H=p.ps?p.ps[1]+p.ascent:0,c=0;c<h;c+=1)L=this.textSpans[c].span||Be("tspan"),L.textContent=O[c],L.setAttribute("x",0),L.setAttribute("y",H),L.style.display="inherit",J.appendChild(L),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=L,H+=p.finalLineHeight;this.layerElement.appendChild(J)}else{var _=this.textSpans.length,P;for(c=0;c<h;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!D||!ee||c===0){if(L=_>c?this.textSpans[c].span:Be(D?"g":"text"),_<=c){if(L.setAttribute("stroke-linecap","butt"),L.setAttribute("stroke-linejoin","round"),L.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=L,D){var $=Be("g");L.appendChild($),this.textSpans[c].childSpan=$}this.textSpans[c].span=L,this.layerElement.appendChild(L)}L.style.display="inherit"}if(B.reset(),ee&&(A[c].n&&(I=-K,H+=p.yOffset,H+=q?1:0,q=!1),this.applyTextPropertiesToMatrix(p,B,A[c].line,I,H),I+=A[c].l||0,I+=K),D){P=this.globalData.fontManager.getCharData(p.finalText[c],m.fStyle,this.globalData.fontManager.getFontByName(p.f).fFamily);var Y;if(P.t===1)Y=new an(P.data,this.globalData,this);else{var Z=Lm;P.data&&P.data.shapes&&(Z=this.buildShapeData(P.data,p.finalSize)),Y=new Lt(Z,this.globalData,this)}if(this.textSpans[c].glyph){var ae=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(ae.layerElement),ae.destroy()}this.textSpans[c].glyph=Y,Y._debug=!0,Y.prepareFrame(0),Y.renderFrame(),this.textSpans[c].childSpan.appendChild(Y.layerElement),P.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+p.finalSize/100+","+p.finalSize/100+")")}else ee&&L.setAttribute("transform","translate("+B.props[12]+","+B.props[13]+")"),L.textContent=A[c].val,L.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ee&&L&&L.setAttribute("d",V)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},ni.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},ni.prototype.getValue=function(){var c,h=this.textSpans.length,p;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<h;c+=1)p=this.textSpans[c].glyph,p&&(p.prepareFrame(this.comp.renderedFrame-this.data.st),p._mdf&&(this._mdf=!0))},ni.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,h,p=this.textAnimator.renderedLetters,m=this.textProperty.currentData.l;h=m.length;var S,x,A;for(c=0;c<h;c+=1)m[c].n||(S=p[c],x=this.textSpans[c].span,A=this.textSpans[c].glyph,A&&A.renderFrame(),S._mdf.m&&x.setAttribute("transform",S.m),S._mdf.o&&x.setAttribute("opacity",S.o),S._mdf.sw&&x.setAttribute("stroke-width",S.sw),S._mdf.sc&&x.setAttribute("stroke",S.sc),S._mdf.fc&&x.setAttribute("fill",S.fc))}};function yo(c,h,p){this.initElement(c,h,p)}f([rn],yo),yo.prototype.createContent=function(){var c=Be("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Ci(c,h,p){this.initFrame(),this.initBaseData(c,h,p),this.initFrame(),this.initTransform(c,h,p),this.initHierarchy()}Ci.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Ci.prototype.renderFrame=function(){},Ci.prototype.getBaseElement=function(){return null},Ci.prototype.destroy=function(){},Ci.prototype.sourceRectAtTime=function(){},Ci.prototype.hide=function(){},f([wi,xr,Sr,Ai],Ci);function Mt(){}f([zt],Mt),Mt.prototype.createNull=function(c){return new Ci(c,this.globalData,this)},Mt.prototype.createShape=function(c){return new Lt(c,this.globalData,this)},Mt.prototype.createText=function(c){return new ni(c,this.globalData,this)},Mt.prototype.createImage=function(c){return new rn(c,this.globalData,this)},Mt.prototype.createSolid=function(c){return new yo(c,this.globalData,this)},Mt.prototype.configAnimation=function(c){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 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.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 h=this.globalData.defs;this.setupGlobalData(c,h),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var p=Be("clipPath"),m=Be("rect");m.setAttribute("width",c.w),m.setAttribute("height",c.h),m.setAttribute("x",0),m.setAttribute("y",0);var S=we();p.setAttribute("id",S),p.appendChild(m),this.layerElement.setAttribute("clip-path","url("+u()+"#"+S+")"),h.appendChild(p),this.layers=c.layers,this.elements=E(c.layers.length)},Mt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,h=this.layers?this.layers.length:0;for(c=0;c<h;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Mt.prototype.updateContainerSize=function(){},Mt.prototype.findIndexByInd=function(c){var h=0,p=this.layers.length;for(h=0;h<p;h+=1)if(this.layers[h].ind===c)return h;return-1},Mt.prototype.buildItem=function(c){var h=this.elements;if(!(h[c]||this.layers[c].ty===99)){h[c]=!0;var p=this.createItem(this.layers[c]);if(h[c]=p,Xe()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(p),p.initExpressions()),this.appendElementInPos(p,c),this.layers[c].tt){var m="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(m===-1)return;if(!this.elements[m]||this.elements[m]===!0)this.buildItem(m),this.addPendingElement(p);else{var S=h[m],x=S.getMatte(this.layers[c].tt);p.setMatte(x)}}}},Mt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var h=0,p=this.elements.length;h<p;){if(this.elements[h]===c){var m="tp"in c.data?this.findIndexByInd(c.data.tp):h-1,S=this.elements[m],x=S.getMatte(this.layers[h].tt);c.setMatte(x);break}h+=1}}},Mt.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var h,p=this.layers.length;for(this.completeLayers||this.checkLayers(c),h=p-1;h>=0;h-=1)(this.completeLayers||this.elements[h])&&this.elements[h].prepareFrame(c-this.layers[h].st);if(this.globalData._mdf)for(h=0;h<p;h+=1)(this.completeLayers||this.elements[h])&&this.elements[h].renderFrame()}},Mt.prototype.appendElementInPos=function(c,h){var p=c.getBaseElement();if(p){for(var m=0,S;m<h;)this.elements[m]&&this.elements[m]!==!0&&this.elements[m].getBaseElement()&&(S=this.elements[m].getBaseElement()),m+=1;S?this.layerElement.insertBefore(p,S):this.layerElement.appendChild(p)}},Mt.prototype.hide=function(){this.layerElement.style.display="none"},Mt.prototype.show=function(){this.layerElement.style.display="block"};function ai(){}f([wi,xr,Sr,Ai,sn],ai),ai.prototype.initElement=function(c,h,p){this.initFrame(),this.initBaseData(c,h,p),this.initTransform(c,h,p),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!h.progressiveLoad)&&this.buildAllItems(),this.hide()},ai.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var h=this.tm.v;h===this.data.op&&(h=this.data.op-1),this.renderedFrame=h}var p,m=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),p=m-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&(this.elements[p].prepareFrame(this.renderedFrame-this.layers[p].st),this.elements[p]._mdf&&(this._mdf=!0))}},ai.prototype.renderInnerContent=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ai.prototype.setElements=function(c){this.elements=c},ai.prototype.getElements=function(){return this.elements},ai.prototype.destroyElements=function(){var c,h=this.layers.length;for(c=0;c<h;c+=1)this.elements[c]&&this.elements[c].destroy()},ai.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function an(c,h,p){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?E(this.layers.length):[],this.initElement(c,h,p),this.tm=c.tm?Ae.getProp(this,c.tm,0,h.frameRate,this):{_placeholder:!0}}f([Mt,ai,tn],an),an.prototype.createComp=function(c){return new an(c,this.globalData,this)};function xo(c,h){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=Be("svg");var p="";if(h&&h.title){var m=Be("title"),S=we();m.setAttribute("id",S),m.textContent=h.title,this.svgElement.appendChild(m),p+=S}if(h&&h.description){var x=Be("desc"),A=we();x.setAttribute("id",A),x.textContent=h.description,this.svgElement.appendChild(x),p+=" "+A}p&&this.svgElement.setAttribute("aria-labelledby",p);var D=Be("defs");this.svgElement.appendChild(D);var L=Be("g");this.svgElement.appendChild(L),this.layerElement=L,this.renderConfig={preserveAspectRatio:h&&h.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:h&&h.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:h&&h.contentVisibility||"visible",progressiveLoad:h&&h.progressiveLoad||!1,hideOnTransparent:!(h&&h.hideOnTransparent===!1),viewBoxOnly:h&&h.viewBoxOnly||!1,viewBoxSize:h&&h.viewBoxSize||!1,className:h&&h.className||"",id:h&&h.id||"",focusable:h&&h.focusable,filterSize:{width:h&&h.filterSize&&h.filterSize.width||"100%",height:h&&h.filterSize&&h.filterSize.height||"100%",x:h&&h.filterSize&&h.filterSize.x||"0%",y:h&&h.filterSize&&h.filterSize.y||"0%"},width:h&&h.width,height:h&&h.height,runExpressions:!h||h.runExpressions===void 0||h.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:D,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return f([Mt],xo),xo.prototype.createComp=function(c){return new an(c,this.globalData,this)},ur("svg",xo),bi.registerModifier("tm",Ls),bi.registerModifier("pb",qr),bi.registerModifier("rp",Ns),bi.registerModifier("rd",Yr),bi.registerModifier("zz",Qr),bi.registerModifier("op",Jr),Fe})})($l,$l.exports);var vC=$l.exports;const yC=Rm(vC);function xC({loop:i=!1,path:e,animationData:t,className:s,onComplete:r,onError:n}){const a=fe.useRef(null),[o,l]=fe.useState(!1);return fe.useEffect(()=>{if(!a.current)return;l(!1);const u=yC.loadAnimation({container:a.current,renderer:"svg",autoplay:!0,loop:i,path:e,animationData:t}),d=()=>{l(!0),n==null||n()},f=()=>{r==null||r()};return u.addEventListener("data_failed",d),u.addEventListener("complete",f),()=>{u.removeEventListener("data_failed",d),u.removeEventListener("complete",f),u.destroy()}},[i,e,t]),o?null:Ne.jsx("div",{ref:a,className:s})}const SC="5.5.7",EC=30,bC=0,TC=31,wC=360,AC=360,LC="forward right",CC=0,RC=[],_C=[{ddd:0,ind:1,ty:4,nm:"Layer 2",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[100]},{t:20,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[161.086,180,0],ix:2},a:{a:0,k:[-18.914,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[-26.586,8.363],[-26.586,-8.363],[-24.788,-9.344],[-11.779,-.981],[-11.779,.981],[-24.788,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:5,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:15,s:[100]},{t:25,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[179.914,180,0],ix:2},a:{a:0,k:[-.086,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[-7.757,8.363],[-7.757,-8.363],[-5.959,-9.344],[7.05,-.981],[7.05,.981],[-5.959,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Layer 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[100]},{t:30,s:[0]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[198.914,180,0],ix:2},a:{a:0,k:[18.914,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,.923],[0,0],[-.777,-.499],[0,0],[.714,-.459],[0,0]],o:[[0,0],[0,-.923],[0,0],[.714,.459],[0,0],[-.777,.499]],v:[[11.243,8.363],[11.243,-8.363],[13.041,-9.344],[26.05,-.981],[26.05,.981],[13.041,9.344]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,bm:0}],IC=[],kC={v:SC,fr:EC,ip:bC,op:TC,w:wC,h:AC,nm:LC,ddd:CC,assets:RC,layers:_C,markers:IC},PC="_root_1v1it_1",DC="_chapter_img_1v1it_20",MC="_name_1v1it_26",FC="_time_1v1it_37",pa={root:PC,chapter_img:DC,name:MC,time:FC};function OC({width:i,height:e,src:t,alt:s,draggable:r=!1,className:n}){return Ne.jsxs("picture",{children:[Ne.jsx("source",{type:"image/webp",srcSet:`${$d({f:"webp",h:e?e*2:void 0,w:i?i*2:void 0},t)}`,height:e}),Ne.jsx("img",{src:`${$d({h:e?e*2:void 0,w:i?i*2:void 0},t)}`,alt:s,draggable:r,width:i,height:e,className:n})]})}function NC({name:i,time:e,imageUrl:t,className:s,onClick:r}){return Ne.jsxs("div",{className:`${pa.root} ${s||""}`,onClick:r,children:[Ne.jsx(OC,{className:pa.chapter_img,src:t,width:90,height:130,alt:"챕터 이미지"}),Ne.jsx("div",{className:pa.name,children:i}),Ne.jsx("div",{className:pa.time,children:e})]})}const BC=fe.forwardRef(({src:i,ratio:e=!1,shadow:t=!0,controls:s=!0,posterSrc:r,initialTime:n,timeOffsetStart:a,timeOffsetEnd:o,quality:l,chapter:u,debug:d,loop:f,live:g,renderControls:v,onClick:y,onInit:E,onDestroy:b,onSync:w,className:F},k)=>{const[U,N]=fh(!1),[te,j]=fh(!1),[re,Q]=T1("",650),{ref:le,live:se,time:pe,play:de,playbackRate:be,handleSeektime:Le,handleBackward:ue,handleForward:he,handlePlayToggle:we,handlePlaybackRate:me}=oC({src:i,timeUpdateEvent:U,initialTime:n,timeOffsetStart:a,timeOffsetEnd:o,quality:l,debug:d,onSync:w,onInit:E,onDestroy:b}),ye=b1({onClick:N,onDoubleClick:Ze=>{if(g||se)return;const Xe=Ze.target.getBoundingClientRect(),dt=Xe.left+Xe.width/2;Ze.clientX<dt?(ue(),Q("left")):(he(),Q("right"))}}),Ve=(Ze,Xe)=>{if(Ze.stopPropagation(),!le.current)return;const dt=Xe*((o??le.current.duration)-(a??0))/100;Le(dt)},$e=()=>{j()},Je=Ze=>{Ze.key==="Enter"&&ye()},st=Ze=>Xe=>{Xe.stopPropagation(),Ze()};fe.useEffect(()=>{y==null||y(U)},[U,y]);const rt=!(g||se);return Ne.jsxs("div",{ref:k,className:`${bt.root} ${F||""}`,children:[Ne.jsx("video",{className:`${bt.video} ${e?bt.origin_ratio:""}`,ref:le,muted:!0,playsInline:!0,loop:f}),r&&Ne.jsx("div",{className:`${bt.poster} ${e?bt.origin_ratio:""}`,style:{backgroundImage:`url("${r}?h=1600&f=webp")`}}),Ne.jsxs("div",{className:`${bt.layer} ${t?bt.shadow:""}`,onClick:ye,onKeyDown:Je,tabIndex:0,"aria-label":"비디오 플레이어 컨트롤","aria-pressed":U,children:[re&&Ne.jsx("div",{className:`${bt.indicator} ${bt[`indicator_${re}`]}`,children:Ne.jsx(xC,{animationData:kC,loop:!0})}),s&&U&&Ne.jsxs(Ne.Fragment,{children:[rt&&Ne.jsx(Ug,{handle:!0,className:bt.progress,progress:pe.progress,onChangeProgress:Ve}),rt&&Ne.jsx(mC,{className:bt.time,currentTime:pe.currentTime,durationTime:pe.durationTime}),rt&&Ne.jsxs("button",{className:`${bt.button} ${bt.playbackrate}`,onClick:st(me),"aria-label":"비디오 배속",children:[be,"x"]}),Ne.jsx("button",{className:`${bt.button} ${bt.play_toggle}`,onClick:st(we),"aria-label":"비디오 재생","aria-pressed":de,children:Ne.jsx(Go,{name:de?"pause":"play"})}),rt&&Ne.jsx("button",{className:`${bt.button} ${bt.backward}`,onClick:st(ue),"aria-label":"비디오 10초 뒤로",children:Ne.jsx(Go,{name:"backward"})}),rt&&Ne.jsx("button",{className:`${bt.button} ${bt.forward}`,onClick:st(he),"aria-label":"비디오 10초 앞으로",children:Ne.jsx(Go,{name:"forward"})}),!!u&&rt&&Ne.jsx("button",{className:`${bt.button} ${bt.chapter_toggle}`,"aria-label":"비디오 챕터",onClick:st($e),children:Kt.t("chapter")}),!!u&&te&&Ne.jsx("div",{className:bt.chapter_wrap,children:u==null?void 0:u.map(Ze=>Ne.jsx(NC,{...Ze,onClick:st(()=>Le(gC(Ze.time)))},Ze.id))})]}),U&&(v==null?void 0:v({time:pe,play:de,handlePlayToggle:we,handleChangeProgress:Ve}))]})]})});function Ud(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function Fc(i,e){i===void 0&&(i={}),e===void 0&&(e={}),Object.keys(e).forEach(t=>{typeof i[t]>"u"?i[t]=e[t]:Ud(e[t])&&Ud(i[t])&&Object.keys(e[t]).length>0&&Fc(i[t],e[t])})}const Gg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function lr(){const i=typeof document<"u"?document:{};return Fc(i,Gg),i}const $C={document:Gg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function fs(){const i=typeof window<"u"?window:{};return Fc(i,$C),i}function UC(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Ul(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function Ya(){return Date.now()}function GC(i){const e=fs();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function VC(i,e){e===void 0&&(e="x");const t=fs();let s,r,n;const a=GC(i);return t.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new t.WebKitCSSMatrix(r==="none"?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(t.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function ga(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function HC(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function us(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const s=t<0||arguments.length<=t?void 0:arguments[t];if(s!=null&&!HC(s)){const r=Object.keys(Object(s)).filter(n=>e.indexOf(n)<0);for(let n=0,a=r.length;n<a;n+=1){const o=r[n],l=Object.getOwnPropertyDescriptor(s,o);l!==void 0&&l.enumerable&&(ga(i[o])&&ga(s[o])?s[o].__swiper__?i[o]=s[o]:us(i[o],s[o]):!ga(i[o])&&ga(s[o])?(i[o]={},s[o].__swiper__?i[o]=s[o]:us(i[o],s[o])):i[o]=s[o])}}}return i}function ma(i,e,t){i.style.setProperty(e,t)}function Vg(i){let{swiper:e,targetPosition:t,side:s}=i;const r=fs(),n=-e.translate;let a=null,o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=t>n?"next":"prev",d=(g,v)=>u==="next"&&g>=v||u==="prev"&&g<=v,f=()=>{o=new Date().getTime(),a===null&&(a=o);const g=Math.max(Math.min((o-a)/l,1),0),v=.5-Math.cos(g*Math.PI)/2;let y=n+v*(t-n);if(d(y,t)&&(y=t),e.wrapperEl.scrollTo({[s]:y}),d(y,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:y})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(f)};f()}function vi(i,e){return e===void 0&&(e=""),[...i.children].filter(t=>t.matches(e))}function jC(i,e){e===void 0&&(e=[]);const t=document.createElement(i);return t.classList.add(...Array.isArray(e)?e:[e]),t}function KC(i,e){const t=[];for(;i.previousElementSibling;){const s=i.previousElementSibling;e?s.matches(e)&&t.push(s):t.push(s),i=s}return t}function zC(i,e){const t=[];for(;i.nextElementSibling;){const s=i.nextElementSibling;e?s.matches(e)&&t.push(s):t.push(s),i=s}return t}function Bi(i,e){return fs().getComputedStyle(i,null).getPropertyValue(e)}function Gd(i){let e=i,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function WC(i,e){const t=[];let s=i.parentElement;for(;s;)t.push(s),s=s.parentElement;return t}function Vd(i,e,t){const s=fs();return i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}let cl;function qC(){const i=fs(),e=lr();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function Hg(){return cl||(cl=qC()),cl}let ul;function YC(i){let{userAgent:e}=i===void 0?{}:i;const t=Hg(),s=fs(),r=s.navigator.platform,n=e||s.navigator.userAgent,a={ios:!1,android:!1},o=s.screen.width,l=s.screen.height,u=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const f=n.match(/(iPod)(.*OS\s([\d_]+))?/),g=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let y=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&y&&t.touch&&E.indexOf(`${o}x${l}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),y=!1),u&&!v&&(a.os="android",a.android=!0),(d||g||f)&&(a.os="ios",a.ios=!0),a}function XC(i){return i===void 0&&(i={}),ul||(ul=YC(i)),ul}let hl;function QC(){const i=fs();let e=!1;function t(){const s=i.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(t()){const s=String(i.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));e=r<16||r===16&&n<2}}return{isSafari:e||t(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function JC(){return hl||(hl=QC()),hl}function ZC(i){let{swiper:e,on:t,emit:s}=i;const r=fs();let n=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(f=>{a=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let y=g,E=v;f.forEach(b=>{let{contentBoxSize:w,contentRect:F,target:k}=b;k&&k!==e.el||(y=F?F.width:(w[0]||w).inlineSize,E=F?F.height:(w[0]||w).blockSize)}),(y!==g||E!==v)&&o()})}),n.observe(e.el))},u=()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),t("destroy",()=>{u(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function eR(i){let{swiper:e,extendParams:t,on:s,emit:r}=i;const n=[],a=fs(),o=function(d,f){f===void 0&&(f={});const g=a.MutationObserver||a.WebkitMutationObserver,v=new g(y=>{if(e.__preventObserver__)return;if(y.length===1){r("observerUpdate",y[0]);return}const E=function(){r("observerUpdate",y[0])};a.requestAnimationFrame?a.requestAnimationFrame(E):a.setTimeout(E,0)});v.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),n.push(v)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=WC(e.hostEl);for(let f=0;f<d.length;f+=1)o(d[f])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},u=()=>{n.forEach(d=>{d.disconnect()}),n.splice(0,n.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",l),s("destroy",u)}var tR={on(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=t?"unshift":"push";return i.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](e)}),s},once(i,e,t){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function r(){s.off(i,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];e.apply(s,a)}return r.__emitterProxy=e,s.on(i,r,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const s=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[s](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(s=>{typeof e>"u"?t.eventsListeners[s]=[]:t.eventsListeners[s]&&t.eventsListeners[s].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[s].splice(n,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,s;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),s=i):(e=n[0].events,t=n[0].data,s=n[0].context||i),t.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(u=>{u.apply(s,[l,...t])}),i.eventsListeners&&i.eventsListeners[l]&&i.eventsListeners[l].forEach(u=>{u.apply(s,t)})}),i}};function sR(){const i=this;let e,t;const s=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=s.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=s.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(Bi(s,"padding-left")||0,10)-parseInt(Bi(s,"padding-right")||0,10),t=t-parseInt(Bi(s,"padding-top")||0,10)-parseInt(Bi(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function iR(){const i=this;function e(se){return i.isHorizontal()?se:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[se]}function t(se,pe){return parseFloat(se.getPropertyValue(e(pe))||0)}const s=i.params,{wrapperEl:r,slidesEl:n,size:a,rtlTranslate:o,wrongRTL:l}=i,u=i.virtual&&s.virtual.enabled,d=u?i.virtual.slides.length:i.slides.length,f=vi(n,`.${i.params.slideClass}, swiper-slide`),g=u?i.virtual.slides.length:f.length;let v=[];const y=[],E=[];let b=s.slidesOffsetBefore;typeof b=="function"&&(b=s.slidesOffsetBefore.call(i));let w=s.slidesOffsetAfter;typeof w=="function"&&(w=s.slidesOffsetAfter.call(i));const F=i.snapGrid.length,k=i.slidesGrid.length;let U=s.spaceBetween,N=-b,te=0,j=0;if(typeof a>"u")return;typeof U=="string"&&U.indexOf("%")>=0?U=parseFloat(U.replace("%",""))/100*a:typeof U=="string"&&(U=parseFloat(U)),i.virtualSize=-U,f.forEach(se=>{o?se.style.marginLeft="":se.style.marginRight="",se.style.marginBottom="",se.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(ma(r,"--swiper-centered-offset-before",""),ma(r,"--swiper-centered-offset-after",""));const re=s.grid&&s.grid.rows>1&&i.grid;re&&i.grid.initSlides(g);let Q;const le=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(se=>typeof s.breakpoints[se].slidesPerView<"u").length>0;for(let se=0;se<g;se+=1){Q=0;let pe;if(f[se]&&(pe=f[se]),re&&i.grid.updateSlide(se,pe,g,e),!(f[se]&&Bi(pe,"display")==="none")){if(s.slidesPerView==="auto"){le&&(f[se].style[e("width")]="");const de=getComputedStyle(pe),be=pe.style.transform,Le=pe.style.webkitTransform;if(be&&(pe.style.transform="none"),Le&&(pe.style.webkitTransform="none"),s.roundLengths)Q=i.isHorizontal()?Vd(pe,"width"):Vd(pe,"height");else{const ue=t(de,"width"),he=t(de,"padding-left"),we=t(de,"padding-right"),me=t(de,"margin-left"),ye=t(de,"margin-right"),Ve=de.getPropertyValue("box-sizing");if(Ve&&Ve==="border-box")Q=ue+me+ye;else{const{clientWidth:$e,offsetWidth:Je}=pe;Q=ue+he+we+me+ye+(Je-$e)}}be&&(pe.style.transform=be),Le&&(pe.style.webkitTransform=Le),s.roundLengths&&(Q=Math.floor(Q))}else Q=(a-(s.slidesPerView-1)*U)/s.slidesPerView,s.roundLengths&&(Q=Math.floor(Q)),f[se]&&(f[se].style[e("width")]=`${Q}px`);f[se]&&(f[se].swiperSlideSize=Q),E.push(Q),s.centeredSlides?(N=N+Q/2+te/2+U,te===0&&se!==0&&(N=N-a/2-U),se===0&&(N=N-a/2-U),Math.abs(N)<1/1e3&&(N=0),s.roundLengths&&(N=Math.floor(N)),j%s.slidesPerGroup===0&&v.push(N),y.push(N)):(s.roundLengths&&(N=Math.floor(N)),(j-Math.min(i.params.slidesPerGroupSkip,j))%i.params.slidesPerGroup===0&&v.push(N),y.push(N),N=N+Q+U),i.virtualSize+=Q+U,te=Q,j+=1}}if(i.virtualSize=Math.max(i.virtualSize,a)+w,o&&l&&(s.effect==="slide"||s.effect==="coverflow")&&(r.style.width=`${i.virtualSize+U}px`),s.setWrapperSize&&(r.style[e("width")]=`${i.virtualSize+U}px`),re&&i.grid.updateWrapperSize(Q,v,e),!s.centeredSlides){const se=[];for(let pe=0;pe<v.length;pe+=1){let de=v[pe];s.roundLengths&&(de=Math.floor(de)),v[pe]<=i.virtualSize-a&&se.push(de)}v=se,Math.floor(i.virtualSize-a)-Math.floor(v[v.length-1])>1&&v.push(i.virtualSize-a)}if(u&&s.loop){const se=E[0]+U;if(s.slidesPerGroup>1){const pe=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/s.slidesPerGroup),de=se*s.slidesPerGroup;for(let be=0;be<pe;be+=1)v.push(v[v.length-1]+de)}for(let pe=0;pe<i.virtual.slidesBefore+i.virtual.slidesAfter;pe+=1)s.slidesPerGroup===1&&v.push(v[v.length-1]+se),y.push(y[y.length-1]+se),i.virtualSize+=se}if(v.length===0&&(v=[0]),U!==0){const se=i.isHorizontal()&&o?"marginLeft":e("marginRight");f.filter((pe,de)=>!s.cssMode||s.loop?!0:de!==f.length-1).forEach(pe=>{pe.style[se]=`${U}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let se=0;E.forEach(de=>{se+=de+(U||0)}),se-=U;const pe=se-a;v=v.map(de=>de<=0?-b:de>pe?pe+w:de)}if(s.centerInsufficientSlides){let se=0;if(E.forEach(pe=>{se+=pe+(U||0)}),se-=U,se<a){const pe=(a-se)/2;v.forEach((de,be)=>{v[be]=de-pe}),y.forEach((de,be)=>{y[be]=de+pe})}}if(Object.assign(i,{slides:f,snapGrid:v,slidesGrid:y,slidesSizesGrid:E}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){ma(r,"--swiper-centered-offset-before",`${-v[0]}px`),ma(r,"--swiper-centered-offset-after",`${i.size/2-E[E.length-1]/2}px`);const se=-i.snapGrid[0],pe=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(de=>de+se),i.slidesGrid=i.slidesGrid.map(de=>de+pe)}if(g!==d&&i.emit("slidesLengthChange"),v.length!==F&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),y.length!==k&&i.emit("slidesGridLengthChange"),s.watchSlidesProgress&&i.updateSlidesOffset(),!u&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const se=`${s.containerModifierClass}backface-hidden`,pe=i.el.classList.contains(se);g<=s.maxBackfaceHiddenSlides?pe||i.el.classList.add(se):pe&&i.el.classList.remove(se)}}function rR(i){const e=this,t=[],s=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const a=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{t.push(o)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const o=e.activeIndex+n;if(o>e.slides.length&&!s)break;t.push(a(o))}else t.push(a(e.activeIndex));for(n=0;n<t.length;n+=1)if(typeof t[n]<"u"){const o=t[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function nR(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(i.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-t-i.cssOverflowAdjustment()}function aR(i){i===void 0&&(i=this&&this.translate||0);const e=this,t=e.params,{slides:s,rtlTranslate:r,snapGrid:n}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-i;r&&(a=i),s.forEach(l=>{l.classList.remove(t.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=t.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<s.length;l+=1){const u=s[l];let d=u.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(d-=s[0].swiperSlideOffset);const f=(a+(t.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),g=(a-n[0]+(t.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),v=-(a-d),y=v+e.slidesSizesGrid[l];(v>=0&&v<e.size-1||y>1&&y<=e.size||v<=0&&y>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l),s[l].classList.add(t.slideVisibleClass)),u.progress=r?-f:f,u.originalProgress=r?-g:g}}function oR(i){const e=this;if(typeof i>"u"){const d=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*d||0}const t=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:o}=e;const l=n,u=a;if(s===0)r=0,n=!0,a=!0;else{r=(i-e.minTranslate())/s;const d=Math.abs(i-e.minTranslate())<1,f=Math.abs(i-e.maxTranslate())<1;n=d||r<=0,a=f||r>=1,d&&(r=0),f&&(r=1)}if(t.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),g=e.slidesGrid[d],v=e.slidesGrid[f],y=e.slidesGrid[e.slidesGrid.length-1],E=Math.abs(i);E>=g?o=(E-g)/y:o=(E+y-v)/y,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:n,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),n&&!l&&e.emit("reachBeginning toEdge"),a&&!u&&e.emit("reachEnd toEdge"),(l&&!n||u&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}function lR(){const i=this,{slides:e,params:t,slidesEl:s,activeIndex:r}=i,n=i.virtual&&t.virtual.enabled,a=l=>vi(s,`.${t.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(t.slideActiveClass,t.slideNextClass,t.slidePrevClass)});let o;if(n)if(t.loop){let l=r-i.virtual.slidesBefore;l<0&&(l=i.virtual.slides.length+l),l>=i.virtual.slides.length&&(l-=i.virtual.slides.length),o=a(`[data-swiper-slide-index="${l}"]`)}else o=a(`[data-swiper-slide-index="${r}"]`);else o=e[r];if(o){o.classList.add(t.slideActiveClass);let l=zC(o,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!l&&(l=e[0]),l&&l.classList.add(t.slideNextClass);let u=KC(o,`.${t.slideClass}, swiper-slide`)[0];t.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(t.slidePrevClass)}i.emitSlidesClasses()}const Ra=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,s=e.closest(t());if(s){let r=s.querySelector(`.${i.params.lazyPreloaderClass}`);!r&&i.isElement&&(s.shadowRoot?r=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(r=s.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},dl=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},Gl=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const s=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),r=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const a=r,o=[a-e];o.push(...Array.from({length:e}).map((l,u)=>a+s+u)),i.slides.forEach((l,u)=>{o.includes(l.column)&&dl(i,u)});return}const n=r+s-1;if(i.params.rewind||i.params.loop)for(let a=r-e;a<=n+e;a+=1){const o=(a%t+t)%t;(o<r||o>n)&&dl(i,o)}else for(let a=Math.max(r-e,0);a<=Math.min(n+e,t-1);a+=1)a!==r&&(a>n||a<r)&&dl(i,a)};function cR(i){const{slidesGrid:e,params:t}=i,s=i.rtlTranslate?i.translate:-i.translate;let r;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?s>=e[n]&&s<e[n+1]-(e[n+1]-e[n])/2?r=n:s>=e[n]&&s<e[n+1]&&(r=n+1):s>=e[n]&&(r=n);return t.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function uR(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:a,snapIndex:o}=e;let l=i,u;const d=g=>{let v=g-e.virtual.slidesBefore;return v<0&&(v=e.virtual.slides.length+v),v>=e.virtual.slides.length&&(v-=e.virtual.slides.length),v};if(typeof l>"u"&&(l=cR(e)),s.indexOf(t)>=0)u=s.indexOf(t);else{const g=Math.min(r.slidesPerGroupSkip,l);u=g+Math.floor((l-g)/r.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),l===n){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=d(l));return}let f;e.virtual&&r.virtual.enabled&&r.loop?f=d(l):e.slides[l]?f=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:a,realIndex:f,previousIndex:n,activeIndex:l}),e.initialized&&Gl(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function hR(i,e){const t=this,s=t.params;let r=i.closest(`.${s.slideClass}, swiper-slide`);!r&&t.isElement&&e&&e.length>1&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(r=o)});let n=!1,a;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){n=!0,a=o;break}}if(r&&n)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=a;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}s.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var dR={updateSize:sR,updateSlides:iR,updateAutoHeight:rR,updateSlidesOffset:nR,updateSlidesProgress:aR,updateProgress:oR,updateSlidesClasses:lR,updateActiveIndex:uR,updateClickedSlide:hR};function fR(i){i===void 0&&(i=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:s,translate:r,wrapperEl:n}=e;if(t.virtualTranslate)return s?-r:r;if(t.cssMode)return r;let a=VC(n,i);return a+=e.cssOverflowAdjustment(),s&&(a=-a),a||0}function pR(i,e){const t=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:a}=t;let o=0,l=0;const u=0;t.isHorizontal()?o=s?-i:i:l=i,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?o:l,r.cssMode?n[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-o:-l:r.virtualTranslate||(t.isHorizontal()?o-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${l}px, ${u}px)`);let d;const f=t.maxTranslate()-t.minTranslate();f===0?d=0:d=(i-t.minTranslate())/f,d!==a&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function gR(){return-this.snapGrid[0]}function mR(){return-this.snapGrid[this.snapGrid.length-1]}function vR(i,e,t,s,r){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),s===void 0&&(s=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),u=n.maxTranslate();let d;if(s&&i>l?d=l:s&&i<u?d=u:d=i,n.updateProgress(d),a.cssMode){const f=n.isHorizontal();if(e===0)o[f?"scrollLeft":"scrollTop"]=-d;else{if(!n.support.smoothScroll)return Vg({swiper:n,targetPosition:-d,side:f?"left":"top"}),!0;o.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(d),t&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(d),t&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(g){!n||n.destroyed||g.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,t&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var yR={getTranslate:fR,setTranslate:pR,minTranslate:gR,maxTranslate:mR,translateTo:vR};function xR(i,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${i}ms`,t.wrapperEl.style.transitionDelay=i===0?"0ms":""),t.emit("setTransition",i,e)}function jg(i){let{swiper:e,runCallbacks:t,direction:s,step:r}=i;const{activeIndex:n,previousIndex:a}=e;let o=s;if(o||(n>a?o="next":n<a?o="prev":o="reset"),e.emit(`transition${r}`),t&&n!==a){if(o==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function SR(i,e){i===void 0&&(i=!0);const t=this,{params:s}=t;s.cssMode||(s.autoHeight&&t.updateAutoHeight(),jg({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function ER(i,e){i===void 0&&(i=!0);const t=this,{params:s}=t;t.animating=!1,!s.cssMode&&(t.setTransition(0),jg({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var bR={setTransition:xR,transitionStart:SR,transitionEnd:ER};function TR(i,e,t,s,r){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const n=this;let a=i;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:g,wrapperEl:v,enabled:y}=n;if(n.animating&&o.preventInteractionOnTransition||!y&&!s&&!r)return!1;const E=Math.min(n.params.slidesPerGroupSkip,a);let b=E+Math.floor((a-E)/n.params.slidesPerGroup);b>=l.length&&(b=l.length-1);const w=-l[b];if(o.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const U=-Math.floor(w*100),N=Math.floor(u[k]*100),te=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?U>=N&&U<te-(te-N)/2?a=k:U>=N&&U<te&&(a=k+1):U>=N&&(a=k)}if(n.initialized&&a!==f&&(!n.allowSlideNext&&(g?w>n.translate&&w>n.minTranslate():w<n.translate&&w<n.minTranslate())||!n.allowSlidePrev&&w>n.translate&&w>n.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&t&&n.emit("beforeSlideChangeStart"),n.updateProgress(w);let F;if(a>f?F="next":a<f?F="prev":F="reset",g&&-w===n.translate||!g&&w===n.translate)return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(w),F!=="reset"&&(n.transitionStart(t,F),n.transitionEnd(t,F)),!1;if(o.cssMode){const k=n.isHorizontal(),U=g?w:-w;if(e===0){const N=n.virtual&&n.params.virtual.enabled;N&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),N&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[k?"scrollLeft":"scrollTop"]=U})):v[k?"scrollLeft":"scrollTop"]=U,N&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Vg({swiper:n,targetPosition:U,side:k?"left":"top"}),!0;v.scrollTo({[k?"left":"top"]:U,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(w),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(t,F),e===0?n.transitionEnd(t,F):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(U){!n||n.destroyed||U.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(t,F))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function wR(i,e,t,s){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const r=this;let n=i;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,e,t,s)}function AR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:n,animating:a}=s;if(!r)return s;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<n.slidesPerGroupSkip?1:o,u=s.virtual&&n.virtual.enabled;if(n.loop){if(a&&!u&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,i,e,t)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,i,e,t):s.slideTo(s.activeIndex+l,i,e,t)}function LR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:u}=s;if(!l)return s;const d=s.virtual&&r.virtual.enabled;if(r.loop){if(u&&!d&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const f=o?s.translate:-s.translate;function g(w){return w<0?-Math.floor(Math.abs(w)):Math.floor(w)}const v=g(f),y=n.map(w=>g(w));let E=n[y.indexOf(v)-1];if(typeof E>"u"&&r.cssMode){let w;n.forEach((F,k)=>{v>=F&&(w=k)}),typeof w<"u"&&(E=n[w>0?w-1:w])}let b=0;if(typeof E<"u"&&(b=a.indexOf(E),b<0&&(b=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(b=b-s.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),r.rewind&&s.isBeginning){const w=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(w,i,e,t)}else if(r.loop&&s.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(b,i,e,t)}),!0;return s.slideTo(b,i,e,t)}function CR(i,e,t){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,i,e,t)}function RR(i,e,t,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const u=r.snapGrid[o],d=r.snapGrid[o+1];l-u>(d-u)*s&&(n+=r.params.slidesPerGroup)}else{const u=r.snapGrid[o-1],d=r.snapGrid[o];l-u<=(d-u)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,i,e,t)}function _R(){const i=this,{params:e,slidesEl:t}=i,s=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let r=i.clickedIndex,n;const a=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;n=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<i.loopedSlides-s/2||r>i.slides.length-i.loopedSlides+s/2?(i.loopFix(),r=i.getSlideIndex(vi(t,`${a}[data-swiper-slide-index="${n}"]`)[0]),Ul(()=>{i.slideTo(r)})):i.slideTo(r):r>i.slides.length-s?(i.loopFix(),r=i.getSlideIndex(vi(t,`${a}[data-swiper-slide-index="${n}"]`)[0]),Ul(()=>{i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}var IR={slideTo:TR,slideToLoop:wR,slideNext:AR,slidePrev:LR,slideReset:CR,slideToClosest:RR,slideToClickedSlide:_R};function kR(i){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;vi(s,`.${t.slideClass}, swiper-slide`).forEach((n,a)=>{n.setAttribute("data-swiper-slide-index",a)}),e.loopFix({slideRealIndex:i,direction:t.centeredSlides?void 0:"next"})}function PR(i){let{slideRealIndex:e,slideTo:t=!0,direction:s,setTranslate:r,activeSlideIndex:n,byController:a,byMousewheel:o}=i===void 0?{}:i;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:g,params:v}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):v.centeredSlides&&l.snapIndex<v.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=f,l.emit("loopFix");return}const y=v.slidesPerView==="auto"?l.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let E=v.loopedSlides||y;E%v.slidesPerGroup!==0&&(E+=v.slidesPerGroup-E%v.slidesPerGroup),l.loopedSlides=E;const b=[],w=[];let F=l.activeIndex;typeof n>"u"?n=l.getSlideIndex(l.slides.filter(j=>j.classList.contains(v.slideActiveClass))[0]):F=n;const k=s==="next"||!s,U=s==="prev"||!s;let N=0,te=0;if(n<E){N=Math.max(E-n,v.slidesPerGroup);for(let j=0;j<E-n;j+=1){const re=j-Math.floor(j/u.length)*u.length;b.push(u.length-re-1)}}else if(n>l.slides.length-E*2){te=Math.max(n-(l.slides.length-E*2),v.slidesPerGroup);for(let j=0;j<te;j+=1){const re=j-Math.floor(j/u.length)*u.length;w.push(re)}}if(U&&b.forEach(j=>{l.slides[j].swiperLoopMoveDOM=!0,g.prepend(l.slides[j]),l.slides[j].swiperLoopMoveDOM=!1}),k&&w.forEach(j=>{l.slides[j].swiperLoopMoveDOM=!0,g.append(l.slides[j]),l.slides[j].swiperLoopMoveDOM=!1}),l.recalcSlides(),v.slidesPerView==="auto"&&l.updateSlides(),v.watchSlidesProgress&&l.updateSlidesOffset(),t){if(b.length>0&&U)if(typeof e>"u"){const j=l.slidesGrid[F],Q=l.slidesGrid[F+N]-j;o?l.setTranslate(l.translate-Q):(l.slideTo(F+N,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=Q,l.touchEventsData.currentTranslate=l.translate))}else r&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(w.length>0&&k)if(typeof e>"u"){const j=l.slidesGrid[F],Q=l.slidesGrid[F-te]-j;o?l.setTranslate(l.translate-Q):(l.slideTo(F-te,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=Q,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const j={slideRealIndex:e,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(re=>{!re.destroyed&&re.params.loop&&re.loopFix({...j,slideTo:re.params.slidesPerView===v.slidesPerView?t:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...j,slideTo:l.controller.control.params.slidesPerView===v.slidesPerView?t:!1})}l.emit("loopFix")}function DR(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const s=[];i.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),i.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{t.append(r)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var MR={loopCreate:kR,loopFix:PR,loopDestroy:DR};function FR(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function OR(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var NR={setGrabCursor:FR,unsetGrabCursor:OR};function BR(i,e){e===void 0&&(e=this);function t(s){if(!s||s===lr()||s===fs())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(i);return!r&&!s.getRootNode?null:r||t(s.getRootNode().host)}return t(e)}function $R(i){const e=this,t=lr(),s=fs(),r=e.touchEventsData;r.evCache.push(i);const{params:n,touches:a,enabled:o}=e;if(!o||!n.simulateTouch&&i.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let l=i;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const d=!!n.noSwipingClass&&n.noSwipingClass!=="",f=i.composedPath?i.composedPath():i.path;d&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const g=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,v=!!(l.target&&l.target.shadowRoot);if(n.noSwiping&&(v?BR(g,u):u.closest(g))){e.allowClick=!0;return}if(n.swipeHandler&&!u.closest(n.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const y=a.currentX,E=a.currentY,b=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,w=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(b&&(y<=w||y>=s.innerWidth-w))if(b==="prevent")i.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=y,a.startY=E,r.touchStartTime=Ya(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let F=!0;u.matches(r.focusableElements)&&(F=!1,u.nodeName==="SELECT"&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==u&&t.activeElement.blur();const k=F&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||k)&&!u.isContentEditable&&l.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function UR(i){const e=lr(),t=this,s=t.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=t;if(!o||!r.simulateTouch&&i.pointerType==="mouse")return;let l=i;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l);return}const u=s.evCache.findIndex(j=>j.pointerId===l.pointerId);u>=0&&(s.evCache[u]=l);const d=s.evCache.length>1?s.evCache[0]:l,f=d.pageX,g=d.pageY;if(l.preventedByNestedSwiper){n.startX=f,n.startY=g;return}if(!t.allowTouchMove){l.target.matches(s.focusableElements)||(t.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:f,startY:g,prevX:t.touches.currentX,prevY:t.touches.currentY,currentX:f,currentY:g}),s.touchStartTime=Ya());return}if(r.touchReleaseOnEdges&&!r.loop){if(t.isVertical()){if(g<n.startY&&t.translate<=t.maxTranslate()||g>n.startY&&t.translate>=t.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(f<n.startX&&t.translate<=t.maxTranslate()||f>n.startX&&t.translate>=t.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(s.focusableElements)){s.isMoved=!0,t.allowClick=!1;return}if(s.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;n.currentX=f,n.currentY=g;const v=n.currentX-n.startX,y=n.currentY-n.startY;if(t.params.threshold&&Math.sqrt(v**2+y**2)<t.params.threshold)return;if(typeof s.isScrolling>"u"){let j;t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:v*v+y*y>=25&&(j=Math.atan2(Math.abs(y),Math.abs(v))*180/Math.PI,s.isScrolling=t.isHorizontal()?j>r.touchAngle:90-j>r.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",l),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||t.zoom&&t.params.zoom&&t.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let E=t.isHorizontal()?v:y,b=t.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(E=Math.abs(E)*(a?1:-1),b=Math.abs(b)*(a?1:-1)),n.diff=E,E*=r.touchRatio,a&&(E=-E,b=-b);const w=t.touchesDirection;t.swipeDirection=E>0?"prev":"next",t.touchesDirection=b>0?"prev":"next";const F=t.params.loop&&!r.cssMode,k=t.swipeDirection==="next"&&t.allowSlideNext||t.swipeDirection==="prev"&&t.allowSlidePrev;if(!s.isMoved){if(F&&k&&t.loopFix({direction:t.swipeDirection}),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const j=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(j)}s.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}let U;s.isMoved&&w!==t.touchesDirection&&F&&k&&Math.abs(E)>=1&&(t.loopFix({direction:t.swipeDirection,setTranslate:!0}),U=!0),t.emit("sliderMove",l),s.isMoved=!0,s.currentTranslate=E+s.startTranslate;let N=!0,te=r.resistanceRatio;if(r.touchReleaseOnEdges&&(te=0),E>0?(F&&k&&!U&&s.currentTranslate>(r.centeredSlides?t.minTranslate()-t.size/2:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>t.minTranslate()&&(N=!1,r.resistance&&(s.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+s.startTranslate+E)**te))):E<0&&(F&&k&&!U&&s.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.size/2:t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<t.maxTranslate()&&(N=!1,r.resistance&&(s.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-s.startTranslate-E)**te))),N&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(E)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function GR(i){const e=this,t=e.touchEventsData,s=t.evCache.findIndex(k=>k.pointerId===i.pointerId);if(s>=0&&t.evCache.splice(s,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:a,slidesGrid:o,enabled:l}=e;if(!l||!r.simulateTouch&&i.pointerType==="mouse")return;let u=i;if(u.originalEvent&&(u=u.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",u),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=Ya(),f=d-t.touchStartTime;if(e.allowClick){const k=u.path||u.composedPath&&u.composedPath();e.updateClickedSlide(k&&k[0]||u.target,k),e.emit("tap click",u),f<300&&d-t.lastClickTime<300&&e.emit("doubleTap doubleClick",u)}if(t.lastClickTime=Ya(),Ul(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||n.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let g;if(r.followFinger?g=a?e.translate:-e.translate:g=-t.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:g});return}let v=0,y=e.slidesSizesGrid[0];for(let k=0;k<o.length;k+=k<r.slidesPerGroupSkip?1:r.slidesPerGroup){const U=k<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof o[k+U]<"u"?g>=o[k]&&g<o[k+U]&&(v=k,y=o[k+U]-o[k]):g>=o[k]&&(v=k,y=o[o.length-1]-o[o.length-2])}let E=null,b=null;r.rewind&&(e.isBeginning?b=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(E=0));const w=(g-o[v])/y,F=v<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?E:v+F):e.slideTo(v)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(v+F):b!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(b):e.slideTo(v))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(u.target===e.navigation.nextEl||u.target===e.navigation.prevEl)?u.target===e.navigation.nextEl?e.slideTo(v+F):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(E!==null?E:v+F),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:v))}}function Hd(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=i,a=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!o?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!a?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=r,i.allowSlideNext=s,i.params.watchOverflow&&n!==i.snapGrid&&i.checkOverflow()}function VR(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function HR(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:s}=i;if(!s)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let r;const n=i.maxTranslate()-i.minTranslate();n===0?r=0:r=(i.translate-i.minTranslate())/n,r!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function jR(i){const e=this;Ra(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let jd=!1;function KR(){}const Kg=(i,e)=>{const t=lr(),{params:s,el:r,wrapperEl:n,device:a}=i,o=!!s.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;r[l]("pointerdown",i.onTouchStart,{passive:!1}),t[l]("pointermove",i.onTouchMove,{passive:!1,capture:o}),t[l]("pointerup",i.onTouchEnd,{passive:!0}),t[l]("pointercancel",i.onTouchEnd,{passive:!0}),t[l]("pointerout",i.onTouchEnd,{passive:!0}),t[l]("pointerleave",i.onTouchEnd,{passive:!0}),t[l]("contextmenu",i.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",i.onClick,!0),s.cssMode&&n[l]("scroll",i.onScroll),s.updateOnWindowResize?i[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hd,!0):i[u]("observerUpdate",Hd,!0),r[l]("load",i.onLoad,{capture:!0})};function zR(){const i=this,e=lr(),{params:t}=i;i.onTouchStart=$R.bind(i),i.onTouchMove=UR.bind(i),i.onTouchEnd=GR.bind(i),t.cssMode&&(i.onScroll=HR.bind(i)),i.onClick=VR.bind(i),i.onLoad=jR.bind(i),jd||(e.addEventListener("touchstart",KR),jd=!0),Kg(i,"on")}function WR(){Kg(this,"off")}var qR={attachEvents:zR,detachEvents:WR};const Kd=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function YR(){const i=this,{realIndex:e,initialized:t,params:s,el:r}=i,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=i.getBreakpoint(n,i.params.breakpointsBase,i.el);if(!a||i.currentBreakpoint===a)return;const l=(a in n?n[a]:void 0)||i.originalParams,u=Kd(i,s),d=Kd(i,l),f=s.enabled;u&&!d?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),i.emitContainerClasses()):!u&&d&&(r.classList.add(`${s.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof l[w]>"u")return;const F=s[w]&&s[w].enabled,k=l[w]&&l[w].enabled;F&&!k&&i[w].disable(),!F&&k&&i[w].enable()});const g=l.direction&&l.direction!==s.direction,v=s.loop&&(l.slidesPerView!==s.slidesPerView||g),y=s.loop;g&&t&&i.changeDirection(),us(i.params,l);const E=i.params.enabled,b=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),f&&!E?i.disable():!f&&E&&i.enable(),i.currentBreakpoint=a,i.emit("_beforeBreakpoint",l),t&&(v?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!y&&b?(i.loopCreate(e),i.updateSlides()):y&&!b&&i.loopDestroy()),i.emit("breakpoint",l)}function XR(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let s=!1;const r=fs(),n=e==="window"?r.innerHeight:t.clientHeight,a=Object.keys(i).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:n*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:u}=a[o];e==="window"?r.matchMedia(`(min-width: ${u}px)`).matches&&(s=l):u<=t.clientWidth&&(s=l)}return s||"max"}var QR={setBreakpoint:YR,getBreakpoint:XR};function JR(i,e){const t=[];return i.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&t.push(e+r)}):typeof s=="string"&&t.push(e+s)}),t}function ZR(){const i=this,{classNames:e,params:t,rtl:s,el:r,device:n}=i,a=JR(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:s},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),r.classList.add(...e),i.emitContainerClasses()}function e_(){const i=this,{el:e,classNames:t}=i;e.classList.remove(...t),i.emitContainerClasses()}var t_={addClasses:ZR,removeClasses:e_};function s_(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:s}=t;if(s){const r=i.slides.length-1,n=i.slidesGrid[r]+i.slidesSizesGrid[r]+s*2;i.isLocked=i.size>n}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var i_={checkOverflow:s_},Vl={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function r_(i,e){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){us(e,s);return}if(i[r]===!0&&(i[r]={enabled:!0}),r==="navigation"&&i[r]&&i[r].enabled&&!i[r].prevEl&&!i[r].nextEl&&(i[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&i[r]&&i[r].enabled&&!i[r].el&&(i[r].auto=!0),!(r in i&&"enabled"in n)){us(e,s);return}typeof i[r]=="object"&&!("enabled"in i[r])&&(i[r].enabled=!0),i[r]||(i[r]={enabled:!1}),us(e,s)}}const fl={eventsEmitter:tR,update:dR,translate:yR,transition:bR,slide:IR,loop:MR,grabCursor:NR,events:qR,breakpoints:QR,checkOverflow:i_,classes:t_},pl={};let Oc=class pi{constructor(){let e,t;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?t=r[0]:[e,t]=r,t||(t={}),t=us({},t),e&&!t.el&&(t.el=e);const a=lr();if(t.el&&typeof t.el=="string"&&a.querySelectorAll(t.el).length>1){const d=[];return a.querySelectorAll(t.el).forEach(f=>{const g=us({},t,{el:f});d.push(new pi(g))}),d}const o=this;o.__swiper__=!0,o.support=Hg(),o.device=XC({userAgent:t.userAgent}),o.browser=JC(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const l={};o.modules.forEach(d=>{d({params:t,swiper:o,extendParams:r_(t,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const u=us({},Vl,l);return o.params=us({},u,pl,t),o.originalParams=us({},o.params),o.passedParams=us({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){const{slidesEl:t,params:s}=this,r=vi(t,`.${s.slideClass}, swiper-slide`),n=Gd(r[0]);return Gd(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>t.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:t,params:s}=e;e.slides=vi(t,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const r=s.minTranslate(),a=(s.maxTranslate()-r)*e+r;s.translateTo(a,typeof t>"u"?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(s=>{const r=e.getSlideClasses(s);t.push({slideEl:s,classNames:r}),e.emit("_slideClass",s,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const s=this,{params:r,slides:n,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:u}=s;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let f=n[u]?n[u].swiperSlideSize:0,g;for(let v=u+1;v<n.length;v+=1)n[v]&&!g&&(f+=n[v].swiperSlideSize,d+=1,f>l&&(g=!0));for(let v=u-1;v>=0;v-=1)n[v]&&!g&&(f+=n[v].swiperSlideSize,d+=1,f>l&&(g=!0))}else if(e==="current")for(let f=u+1;f<n.length;f+=1)(t?a[f]+o[f]-a[u]<l:a[f]-a[u]<l)&&(d+=1);else for(let f=u-1;f>=0;f-=1)a[u]-a[f]<l&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Ra(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const a=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const s=this,r=s.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):vi(s,r())[0];return!a&&t.params.createElements&&(a=jC("div",t.params.wrapperClass),s.append(a),vi(s,`.${t.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(t,{el:s,wrapperEl:a,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:a,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||Bi(s,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||Bi(s,"direction")==="rtl"),wrongRTL:Bi(a,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?Ra(t,n):n.addEventListener("load",a=>{Ra(t,a.target)})}),Gl(t),t.initialized=!0,Gl(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const s=this,{params:r,el:n,wrapperEl:a,slides:o}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),t&&(s.removeClasses(),n.removeAttribute("style"),a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el.swiper=null,UC(s)),s.destroyed=!0),null}static extendDefaults(e){us(pl,e)}static get extendedDefaults(){return pl}static get defaults(){return Vl}static installModule(e){pi.prototype.__modules__||(pi.prototype.__modules__=[]);const t=pi.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>pi.installModule(t)),pi):(pi.installModule(e),pi)}};Object.keys(fl).forEach(i=>{Object.keys(fl[i]).forEach(e=>{Oc.prototype[e]=fl[i][e]})});Oc.use([ZC,eR]);const zg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function or(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"&&!i.__swiper__}function rr(i,e){const t=["__proto__","constructor","prototype"];Object.keys(e).filter(s=>t.indexOf(s)<0).forEach(s=>{typeof i[s]>"u"?i[s]=e[s]:or(e[s])&&or(i[s])&&Object.keys(e[s]).length>0?e[s].__swiper__?i[s]=e[s]:rr(i[s],e[s]):i[s]=e[s]})}function Wg(i){return i===void 0&&(i={}),i.navigation&&typeof i.navigation.nextEl>"u"&&typeof i.navigation.prevEl>"u"}function qg(i){return i===void 0&&(i={}),i.pagination&&typeof i.pagination.el>"u"}function Yg(i){return i===void 0&&(i={}),i.scrollbar&&typeof i.scrollbar.el>"u"}function Xg(i){i===void 0&&(i="");const e=i.split(" ").map(s=>s.trim()).filter(s=>!!s),t=[];return e.forEach(s=>{t.indexOf(s)<0&&t.push(s)}),t.join(" ")}function n_(i){return i===void 0&&(i=""),i?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper"}function a_(i){let{swiper:e,slides:t,passedParams:s,changedParams:r,nextEl:n,prevEl:a,scrollbarEl:o,paginationEl:l}=i;const u=r.filter(Q=>Q!=="children"&&Q!=="direction"&&Q!=="wrapperClass"),{params:d,pagination:f,navigation:g,scrollbar:v,virtual:y,thumbs:E}=e;let b,w,F,k,U,N,te,j;r.includes("thumbs")&&s.thumbs&&s.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(b=!0),r.includes("controller")&&s.controller&&s.controller.control&&d.controller&&!d.controller.control&&(w=!0),r.includes("pagination")&&s.pagination&&(s.pagination.el||l)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(F=!0),r.includes("scrollbar")&&s.scrollbar&&(s.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&v&&!v.el&&(k=!0),r.includes("navigation")&&s.navigation&&(s.navigation.prevEl||a)&&(s.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(U=!0);const re=Q=>{e[Q]&&(e[Q].destroy(),Q==="navigation"?(e.isElement&&(e[Q].prevEl.remove(),e[Q].nextEl.remove()),d[Q].prevEl=void 0,d[Q].nextEl=void 0,e[Q].prevEl=void 0,e[Q].nextEl=void 0):(e.isElement&&e[Q].el.remove(),d[Q].el=void 0,e[Q].el=void 0))};r.includes("loop")&&e.isElement&&(d.loop&&!s.loop?N=!0:!d.loop&&s.loop?te=!0:j=!0),u.forEach(Q=>{if(or(d[Q])&&or(s[Q]))rr(d[Q],s[Q]),(Q==="navigation"||Q==="pagination"||Q==="scrollbar")&&"enabled"in s[Q]&&!s[Q].enabled&&re(Q);else{const le=s[Q];(le===!0||le===!1)&&(Q==="navigation"||Q==="pagination"||Q==="scrollbar")?le===!1&&re(Q):d[Q]=s[Q]}}),u.includes("controller")&&!w&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),r.includes("children")&&t&&y&&d.virtual.enabled&&(y.slides=t,y.update(!0)),r.includes("children")&&t&&d.loop&&(j=!0),b&&E.init()&&E.update(!0),w&&(e.controller.control=d.controller.control),F&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),f.init(),f.render(),f.update()),k&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),v.init(),v.updateSize(),v.setTranslate()),U&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.constructor.nextButtonSvg,n.part.add("button-next"),e.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),n&&(d.navigation.nextEl=n),a&&(d.navigation.prevEl=a),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=s.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=s.allowSlidePrev),r.includes("direction")&&e.changeDirection(s.direction,!1),(N||j)&&e.loopDestroy(),(te||j)&&e.loopCreate(),e.update()}function o_(i,e){i===void 0&&(i={}),e===void 0&&(e=!0);const t={on:{}},s={},r={};rr(t,Vl),t._emitClasses=!0,t.init=!1;const n={},a=zg.map(l=>l.replace(/_/,"")),o=Object.assign({},i);return Object.keys(o).forEach(l=>{typeof i[l]>"u"||(a.indexOf(l)>=0?or(i[l])?(t[l]={},r[l]={},rr(t[l],i[l]),rr(r[l],i[l])):(t[l]=i[l],r[l]=i[l]):l.search(/on[A-Z]/)===0&&typeof i[l]=="function"?e?s[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:t.on[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:n[l]=i[l])}),["navigation","pagination","scrollbar"].forEach(l=>{t[l]===!0&&(t[l]={}),t[l]===!1&&delete t[l]}),{params:t,passedParams:r,rest:n,events:s}}function l_(i,e){let{el:t,nextEl:s,prevEl:r,paginationEl:n,scrollbarEl:a,swiper:o}=i;Wg(e)&&s&&r&&(o.params.navigation.nextEl=s,o.originalParams.navigation.nextEl=s,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),qg(e)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),Yg(e)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(t)}function c_(i,e,t,s,r){const n=[];if(!e)return n;const a=l=>{n.indexOf(l)<0&&n.push(l)};if(t&&s){const l=s.map(r),u=t.map(r);l.join("")!==u.join("")&&a("children"),s.length!==t.length&&a("children")}return zg.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in i&&l in e)if(or(i[l])&&or(e[l])){const u=Object.keys(i[l]),d=Object.keys(e[l]);u.length!==d.length?a(l):(u.forEach(f=>{i[l][f]!==e[l][f]&&a(l)}),d.forEach(f=>{i[l][f]!==e[l][f]&&a(l)}))}else i[l]!==e[l]&&a(l)}),n}const u_=i=>{!i||i.destroyed||!i.params.virtual||i.params.virtual&&!i.params.virtual.enabled||(i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.parallax&&i.params.parallax&&i.params.parallax.enabled&&i.parallax.setTranslate())};function Xa(){return Xa=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=t[s])}return i},Xa.apply(this,arguments)}function Qg(i){return i.type&&i.type.displayName&&i.type.displayName.includes("SwiperSlide")}function Jg(i){const e=[];return fe.Children.toArray(i).forEach(t=>{Qg(t)?e.push(t):t.props&&t.props.children&&Jg(t.props.children).forEach(s=>e.push(s))}),e}function h_(i){const e=[],t={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return fe.Children.toArray(i).forEach(s=>{if(Qg(s))e.push(s);else if(s.props&&s.props.slot&&t[s.props.slot])t[s.props.slot].push(s);else if(s.props&&s.props.children){const r=Jg(s.props.children);r.length>0?r.forEach(n=>e.push(n)):t["container-end"].push(s)}else t["container-end"].push(s)}),{slides:e,slots:t}}function d_(i,e,t){if(!t)return null;const s=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},r=i.isHorizontal()?{[i.rtlTranslate?"right":"left"]:`${t.offset}px`}:{top:`${t.offset}px`},{from:n,to:a}=t,o=i.params.loop?-e.length:0,l=i.params.loop?e.length*2:e.length,u=[];for(let d=o;d<l;d+=1)d>=n&&d<=a&&u.push(e[s(d)]);return u.map((d,f)=>fe.cloneElement(d,{swiper:i,style:r,key:`slide-${f}`}))}function Sn(i,e){return typeof window>"u"?fe.useEffect(i,e):fe.useLayoutEffect(i,e)}const zd=fe.createContext(null),f_=fe.createContext(null),p_=fe.forwardRef(function(i,e){let{className:t,tag:s="div",wrapperTag:r="div",children:n,onSwiper:a,...o}=i===void 0?{}:i,l=!1;const[u,d]=fe.useState("swiper"),[f,g]=fe.useState(null),[v,y]=fe.useState(!1),E=fe.useRef(!1),b=fe.useRef(null),w=fe.useRef(null),F=fe.useRef(null),k=fe.useRef(null),U=fe.useRef(null),N=fe.useRef(null),te=fe.useRef(null),j=fe.useRef(null),{params:re,passedParams:Q,rest:le,events:se}=o_(o),{slides:pe,slots:de}=h_(n),be=()=>{y(!v)};Object.assign(re.on,{_containerClasses(me,ye){d(ye)}});const Le=()=>{Object.assign(re.on,se),l=!0;const me={...re};if(delete me.wrapperClass,w.current=new Oc(me),w.current.virtual&&w.current.params.virtual.enabled){w.current.virtual.slides=pe;const ye={cache:!1,slides:pe,renderExternal:g,renderExternalUpdate:!1};rr(w.current.params.virtual,ye),rr(w.current.originalParams.virtual,ye)}};b.current||Le(),w.current&&w.current.on("_beforeBreakpoint",be);const ue=()=>{l||!se||!w.current||Object.keys(se).forEach(me=>{w.current.on(me,se[me])})},he=()=>{!se||!w.current||Object.keys(se).forEach(me=>{w.current.off(me,se[me])})};fe.useEffect(()=>()=>{w.current&&w.current.off("_beforeBreakpoint",be)}),fe.useEffect(()=>{!E.current&&w.current&&(w.current.emitSlidesClasses(),E.current=!0)}),Sn(()=>{if(e&&(e.current=b.current),!!b.current)return w.current.destroyed&&Le(),l_({el:b.current,nextEl:U.current,prevEl:N.current,paginationEl:te.current,scrollbarEl:j.current,swiper:w.current},re),a&&a(w.current),()=>{w.current&&!w.current.destroyed&&w.current.destroy(!0,!1)}},[]),Sn(()=>{ue();const me=c_(Q,F.current,pe,k.current,ye=>ye.key);return F.current=Q,k.current=pe,me.length&&w.current&&!w.current.destroyed&&a_({swiper:w.current,slides:pe,passedParams:Q,changedParams:me,nextEl:U.current,prevEl:N.current,scrollbarEl:j.current,paginationEl:te.current}),()=>{he()}}),Sn(()=>{u_(w.current)},[f]);function we(){return re.virtual?d_(w.current,pe,f):pe.map((me,ye)=>fe.cloneElement(me,{swiper:w.current,swiperSlideIndex:ye}))}return fe.createElement(s,Xa({ref:b,className:Xg(`${u}${t?` ${t}`:""}`)},le),fe.createElement(f_.Provider,{value:w.current},de["container-start"],fe.createElement(r,{className:n_(re.wrapperClass)},de["wrapper-start"],we(),de["wrapper-end"]),Wg(re)&&fe.createElement(fe.Fragment,null,fe.createElement("div",{ref:N,className:"swiper-button-prev"}),fe.createElement("div",{ref:U,className:"swiper-button-next"})),Yg(re)&&fe.createElement("div",{ref:j,className:"swiper-scrollbar"}),qg(re)&&fe.createElement("div",{ref:te,className:"swiper-pagination"}),de["container-end"]))});p_.displayName="Swiper";const g_=fe.forwardRef(function(i,e){let{tag:t="div",children:s,className:r="",swiper:n,zoom:a,lazy:o,virtualIndex:l,swiperSlideIndex:u,...d}=i===void 0?{}:i;const f=fe.useRef(null),[g,v]=fe.useState("swiper-slide"),[y,E]=fe.useState(!1);function b(U,N,te){N===f.current&&v(te)}Sn(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),e&&(e.current=f.current),!(!f.current||!n)){if(n.destroyed){g!=="swiper-slide"&&v("swiper-slide");return}return n.on("_slideClass",b),()=>{n&&n.off("_slideClass",b)}}}),Sn(()=>{n&&f.current&&!n.destroyed&&v(n.getSlideClasses(f.current))},[n]);const w={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},F=()=>typeof s=="function"?s(w):s,k=()=>{E(!0)};return fe.createElement(t,Xa({ref:f,className:Xg(`${g}${r?` ${r}`:""}`),"data-swiper-slide-index":l,onLoad:k},d),a&&fe.createElement(zd.Provider,{value:w},fe.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},F(),o&&!y&&fe.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&fe.createElement(zd.Provider,{value:w},F(),o&&!y&&fe.createElement("div",{className:"swiper-lazy-preloader"})))});g_.displayName="SwiperSlide";const m_=[{key:"entryTime",title:"진입 시간",value:"",accumulate:!1},{key:"lastUpdated",title:"데이터 업데이트 시간",value:"",accumulate:!1},{key:"clientId",title:"클라이언트 ID",value:"",accumulate:!1},{key:"id",title:"ID",value:"",accumulate:!1},{key:"likeCount",title:"좋아요수",value:[0,0],accumulate:!0},{key:"commentCount",title:"댓글수",value:0,accumulate:!0},{key:"viewCount",title:"조회수",value:[0,0],accumulate:!0},{key:"watchingTime",title:"누적 WT(초)",value:0,accumulate:!1},{key:"shareCount",title:"공유수",value:0,accumulate:!0},{key:"chattingCount",title:"채팅수",value:0,accumulate:!0},{key:"productCount",title:"상품 클릭수",value:0,accumulate:!0},{key:"bannerCount",title:"배너 클릭수",value:0,type:!0},{key:"userId",title:"유저 ID",value:"",accumulate:!1},{key:"authType",title:"회원 타입",value:"",accumulate:!1},{key:"expireTime",title:"회원 만료 시간",value:"",accumulate:!1},{key:"info",title:"OS / 브라우저 정보",value:"",accumulate:!1},{key:"version",title:"플레이어 버전",value:"",accumulate:!1}];m_.findIndex(i=>i.key==="lastUpdated");var Vt=[];for(var gl=0;gl<256;++gl)Vt.push((gl+256).toString(16).slice(1));function v_(i,e=0){return(Vt[i[e+0]]+Vt[i[e+1]]+Vt[i[e+2]]+Vt[i[e+3]]+"-"+Vt[i[e+4]]+Vt[i[e+5]]+"-"+Vt[i[e+6]]+Vt[i[e+7]]+"-"+Vt[i[e+8]]+Vt[i[e+9]]+"-"+Vt[i[e+10]]+Vt[i[e+11]]+Vt[i[e+12]]+Vt[i[e+13]]+Vt[i[e+14]]+Vt[i[e+15]]).toLowerCase()}var va,y_=new Uint8Array(16);function x_(){if(!va&&(va=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!va))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return va(y_)}var S_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Wd={randomUUID:S_};function E_(i,e,t){if(Wd.randomUUID&&!e&&!i)return Wd.randomUUID();i=i||{};var s=i.random||(i.rng||x_)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,v_(s)}const b_="_root_1y479_2",T_="_checkbox_1y479_22",w_="_checkbox_input_1y479_31",A_="_checkbox_label_1y479_35",L_="_toggle_1y479_57",C_="_toggle_input_1y479_66",R_="_toggle_label_1y479_71",Hs={root:b_,checkbox:T_,checkbox_input:w_,checkbox_label:A_,toggle:L_,toggle_input:C_,toggle_label:R_};fe.forwardRef(({id:i,type:e="text",autoComplete:t="off",className:s,...r},n)=>{const o=fe.useRef(i||E_()).current;return e==="toggle"?Ne.jsxs("div",{className:`${Hs.root} ${Hs.toggle} ${s||""}`,children:[Ne.jsx("input",{ref:n,className:Hs.toggle_input,type:"checkbox",id:o,...r}),Ne.jsx("label",{className:Hs.toggle_label,htmlFor:o,children:Ne.jsx("span",{className:Hs.cursor})})]}):e==="checkbox"?Ne.jsxs("div",{className:`${Hs.root} ${Hs.checkbox} ${s||""}`,children:[Ne.jsx("input",{ref:n,className:Hs.checkbox_input,type:"checkbox",id:o,...r}),Ne.jsx("label",{className:Hs.checkbox_label,htmlFor:o})]}):Ne.jsx("input",{ref:n,id:o,type:e,autoComplete:t,className:`${Hs.root} ${s||""}`,...r})});function Hl(i){this.message=i}Hl.prototype=new Error,Hl.prototype.name="InvalidCharacterError";var qd=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(i){var e=String(i).replace(/=+$/,"");if(e.length%4==1)throw new Hl("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,s,r=0,n=0,a="";s=e.charAt(n++);~s&&(t=r%4?64*t+s:s,r++%4)?a+=String.fromCharCode(255&t>>(-2*r&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return a};function __(i){var e=i.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(qd(t).replace(/(.)/g,function(s,r){var n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch{return qd(e)}}function Qa(i){this.message=i}function Yd(i,e){if(typeof i!="string")throw new Qa("Invalid token specified");var t=(e=e||{}).header===!0?0:1;try{return JSON.parse(__(i.split(".")[t]))}catch(s){throw new Qa("Invalid token specified: "+s.message)}}Qa.prototype=new Error,Qa.prototype.name="InvalidTokenError";const Zg={dev:"https://dev.api.brixcloud.io/v1",stage:"https://stage.api.brixcloud.io/v1",prod:"https://api.brixcloud.io/v1"},I_={dev:"https://dev.auth.brixcloud.io/v1",stage:"https://stage.auth.brixcloud.io/v1",prod:"https://auth.brixcloud.io/v1"},k_=async({id:i,env:e})=>{const t=await fetch(Zg[e]+`/public/ugc/${i}`),s=await t.json();if(!t.ok)throw s;return s},P_=async({id:i,env:e})=>{function t(n){return{statusCode:n.statusCode,success:n.success,timestamp:n.timestamp,userId:n.shortform.clientId,nickName:void 0,title:n.shortform.title,content:void 0,images:n.shortform.images,tags:n.shortform.tags,enableComment:n.shortform.enableComment,metaData:void 0,id:n.shortform.id,client:{id:n.shortform.clientId,name:void 0},products:void 0,counter:n.shortform.counter,playUrl:n.shortform.playUrl}}const s=await fetch(Zg[e]+`/public/shortform/${i}?onlyOne=true`),r=await s.json();if(!s.ok)throw r;return t(r)},D_=async({clientId:i,token:e,env:t})=>{const s=`__brix_session_token_${i}`,r="__brix_session_api_status";let n=e??localStorage.getItem(s);if(n)try{Yd(n).exp*1e3-Date.now()<0&&(n=null)}catch{n=null}if(!n)if(sessionStorage.getItem(r)==="pending")for(;sessionStorage.getItem(r)==="pending";)await new Promise(o=>setTimeout(o,100)),n=localStorage.getItem(s);else try{sessionStorage.setItem(s,"pending"),n=(await(await fetch(I_[t]+"/auth/token/guest",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({partner:i})})).json()).accessToken}finally{sessionStorage.setItem(s,"success")}return localStorage.setItem(s,n),Yd(n)},Xd=(i,e=!1)=>{const[t,s]=fe.useState(null),[r,n]=fe.useState(null);return fe.useEffect(()=>{if(e)return;let a=!0;return(async()=>{try{const l=await i();a&&(s(l),n(null))}catch(l){a&&(s(null),n(l.message))}})(),()=>{a=!1}},[i,e]),{data:t,error:r}};function M_({id:i,type:e,env:t,shadow:s,token:r,style:n,ratio:a,loop:o,autoplay:l=!0,restartFromBeginning:u=!0,className:d}){var Le,ue;if(!i||!e||!t)return null;const[f,g]=fe.useState(),[v,y]=fe.useState(0),[E,b]=fe.useState(!0),[w,F]=fe.useState(!1),{data:k}=Xd(fe.useCallback(()=>e==="ugc"?k_({id:i,env:t}):P_({id:i,env:t}),[i,t]),!i),U=fe.useRef(),{data:N}=Xd(fe.useCallback(()=>{var he;return D_({clientId:(he=k==null?void 0:k.client)==null?void 0:he.id,env:t,token:r})},[(Le=k==null?void 0:k.client)==null?void 0:Le.id,t,r]),!((ue=k==null?void 0:k.client)!=null&&ue.id)),te=fe.useRef(null),j=w1({ref:te,threshold:.1}),re=fe.useCallback(he=>{g(he),he.loop=!!o},[]),Q=fe.useCallback(()=>{g(void 0)},[]),le=()=>{f&&f.play()},se=()=>{f&&f.pause()},pe=(he,we)=>{if(he.stopPropagation(),!f)return;const me=we*f.duration/100;f.currentTime=me},de=he=>{he.stopPropagation(),f&&(f.muted=!f.muted,b(f.muted))},be=fe.useMemo(()=>{var he,we;return t?new y1({identityPoolId:(he=dh[t])==null?void 0:he.identityPoolId,streamName:(we=dh[t])==null?void 0:we.streamName}):void 0},[t]);return fe.useEffect(()=>{if(!f||!be)return;const he=Ve=>{const $e=Ve.target;y($e.currentTime/$e.duration*100)},we=()=>{F(!0),u&&(f.currentTime=0),be.start()},me=()=>{F(!1),be.stop()},ye=()=>{l?f.play():f.pause()};return f.addEventListener("loadedmetadata",ye),f.addEventListener("timeupdate",he),f.addEventListener("play",we),f.addEventListener("pause",me),()=>{f.removeEventListener("loadedmetadata",ye),f.removeEventListener("timeupdate",he),f.removeEventListener("play",we),f.removeEventListener("pause",me)}},[f,be]),fe.useEffect(()=>{if(!f)return;let he=!0;return U.current&&clearTimeout(U.current),j&&l&&(U.current=setTimeout(()=>{he&&f.play()},300)),j||(U.current=setTimeout(()=>{he&&f.pause()},700)),()=>{he=!1,U.current&&clearTimeout(U.current)}},[j,f,l]),fe.useEffect(()=>{!t||!N||!i||!be||(be.setType(e),be.setId(i),be.setUser(N.userId,N.role),be.stop())},[be]),(k==null?void 0:k.status)==="standby"||(k==null?void 0:k.status)==="converting"?Ne.jsx("div",{className:Us.root,children:Ne.jsx("div",{className:Us.error,children:`업로드된 영상이 처리중 입니다.
|
|
85
86
|
잠시 후 확인해 주세요.`})}):Ne.jsx(S1,{kinesis:be,children:Ne.jsxs("div",{ref:te,className:[Us.root,d??""].join(" "),style:n,children:[Ne.jsx(BC,{ratio:a,className:Us.player,controls:!1,shadow:s,src:k==null?void 0:k.playUrl,onInit:re,onDestroy:Q}),!w&&Ne.jsx("div",{className:Us.play_button,onClick:le}),w&&Ne.jsx("div",{className:Us.pause_button,onClick:se}),Ne.jsx("div",{className:[Us.mute_button,E?Us.sound_off_icon:Us.sound_on_icon].join(" "),onClick:de}),Ne.jsx(Ug,{className:Us.progress,progress:v,onChangeProgress:pe})]})})}exports.CognitoIdentityClient=wp;exports.Command=Ql;exports.HttpRequest=ns;exports.PlayerUser=M_;exports.ServiceException=to;exports._json=Pt;exports.commonParams=jS;exports.decorateServiceException=jt;exports.getEndpointPlugin=bf;exports.getSerdePlugin=Sf;exports.loadRestJsonErrorCode=ip;exports.parseJsonBody=Zl;exports.parseJsonErrorBody=sp;exports.take=$f;exports.withBaseException=Ff;
|
|
86
|
-
//# sourceMappingURL=
|
|
87
|
+
//# sourceMappingURL=Cdqd-vpy.cjs.js.map
|