1import{a as __commonJSMin,c as __toCommonJS,i as process$1,l as __toESM,n as init_dist$1,o as __esmMin,r as init_dist,s as __exportAll,t as global}from"./dist-Bzii4Kq5.js";import{n as init_dist$2,t as Buffer}from"./dist-BCsaVUwX.js";var require__global$1=__commonJSMin(((e,t)=>{var $=t.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=$)})),require__has$1=__commonJSMin(((e,t)=>{var $={}.hasOwnProperty;t.exports=function(e,t){return $.call(e,t)}})),require__fails$1=__commonJSMin(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),require__descriptors$1=__commonJSMin(((e,t)=>{t.exports=!require__fails$1()(function(){return Object.defineProperty({},`a`,{get:function(){return 7}}).a!=7})})),require__core$1=__commonJSMin(((e,t)=>{var $=t.exports={version:`2.6.12`};typeof __e==`number`&&(__e=$)})),require__is_object$1=__commonJSMin(((e,t)=>{t.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}})),require__an_object$1=__commonJSMin(((e,t)=>{var $=require__is_object$1();t.exports=function(e){if(!$(e))throw TypeError(e+` is not an object!`);return e}})),require__dom_create$1=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=require__global$1().document,td=$(ed)&&$(ed.createElement);t.exports=function(e){return td?ed.createElement(e):{}}})),require__ie8_dom_define$1=__commonJSMin(((e,t)=>{t.exports=!require__descriptors$1()&&!require__fails$1()(function(){return Object.defineProperty(require__dom_create$1()(`div`),`a`,{get:function(){return 7}}).a!=7})})),require__to_primitive$1=__commonJSMin(((e,t)=>{var $=require__is_object$1();t.exports=function(e,t){if(!$(e))return e;var ed,td;if(t&&typeof(ed=e.toString)==`function`&&!$(td=ed.call(e))||typeof(ed=e.valueOf)==`function`&&!$(td=ed.call(e))||!t&&typeof(ed=e.toString)==`function`&&!$(td=ed.call(e)))return td;throw TypeError(`Can't convert object to primitive value`)}})),require__object_dp$1=__commonJSMin((e=>{var t=require__an_object$1(),$=require__ie8_dom_define$1(),ed=require__to_primitive$1(),td=Object.defineProperty;e.f=require__descriptors$1()?Object.defineProperty:function(e,nd,rd){if(t(e),nd=ed(nd,!0),t(rd),$)try{return td(e,nd,rd)}catch{}if(`get`in rd||`set`in rd)throw TypeError(`Accessors not supported!`);return`value`in rd&&(e[nd]=rd.value),e}})),require__property_desc$1=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),require__hide$1=__commonJSMin(((e,t)=>{var $=require__object_dp$1(),ed=require__property_desc$1();t.exports=require__descriptors$1()?function(e,t,td){return $.f(e,t,ed(1,td))}:function(e,t,$){return e[t]=$,e}})),require__uid$1=__commonJSMin(((e,t)=>{var $=0,ed=Math.random();t.exports=function(e){return`Symbol(${e===void 0?``:e})_${(++$+ed).toString(36)}`}})),require__library$1=__commonJSMin(((e,t)=>{t.exports=!1})),require__shared$1=__commonJSMin(((e,t)=>{var $=require__core$1(),ed=require__global$1(),td=`__core-js_shared__`,nd=ed[td]||(ed[td]={});(t.exports=function(e,t){return nd[e]||(nd[e]=t===void 0?{}:t)})(`versions`,[]).push({version:$.version,mode:require__library$1()?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})})),require__function_to_string=__commonJSMin(((e,t)=>{t.exports=require__shared$1()(`native-function-to-string`,Function.toString)})),require__redefine$1=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__hide$1(),td=require__has$1(),nd=require__uid$1()(`src`),rd=require__function_to_string(),id=`toString`,ad=(``+rd).split(id);require__core$1().inspectSource=function(e){return rd.call(e)},(t.exports=function(e,t,rd,id){var od=typeof rd==`function`;od&&(td(rd,`name`)||ed(rd,`name`,t)),e[t]!==rd&&(od&&(td(rd,nd)||ed(rd,nd,e[t]?``+e[t]:ad.join(String(t)))),e===$?e[t]=rd:id?e[t]?e[t]=rd:ed(e,t,rd):(delete e[t],ed(e,t,rd)))})(Function.prototype,id,function(){return typeof this==`function`&&this[nd]||rd.call(this)})})),require__a_function$1=__commonJSMin(((e,t)=>{t.exports=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e}})),require__ctx$1=__commonJSMin(((e,t)=>{var $=require__a_function$1();t.exports=function(e,t,ed){if($(e),t===void 0)return e;switch(ed){case 1:return function($){return e.call(t,$)};case 2:return function($,ed){return e.call(t,$,ed)};case 3:return function($,ed,td){return e.call(t,$,ed,td)}}return function(){return e.apply(t,arguments)}}})),require__export$1=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__core$1(),td=require__hide$1(),nd=require__redefine$1(),rd=require__ctx$1(),id=`prototype`,ad=function(e,t,od){var sd=e&ad.F,cd=e&ad.G,ld=e&ad.S,ud=e&ad.P,dd=e&ad.B,fd=cd?$:ld?$[t]||($[t]={}):($[t]||{})[id],pd=cd?ed:ed[t]||(ed[t]={}),md=pd[id]||(pd[id]={}),hd,gd,_d,vd;for(hd in cd&&(od=t),od)gd=!sd&&fd&&fd[hd]!==void 0,_d=(gd?fd:od)[hd],vd=dd&&gd?rd(_d,$):ud&&typeof _d==`function`?rd(Function.call,_d):_d,fd&&nd(fd,hd,_d,e&ad.U),pd[hd]!=_d&&td(pd,hd,vd),ud&&md[hd]!=_d&&(md[hd]=_d)};$.core=ed,ad.F=1,ad.G=2,ad.S=4,ad.P=8,ad.B=16,ad.W=32,ad.U=64,ad.R=128,t.exports=ad})),require__meta$1=__commonJSMin(((e,t)=>{var $=require__uid$1()(`meta`),ed=require__is_object$1(),td=require__has$1(),nd=require__object_dp$1().f,rd=0,id=Object.isExtensible||function(){return!0},ad=!require__fails$1()(function(){return id(Object.preventExtensions({}))}),od=function(e){nd(e,$,{value:{i:`O`+ ++rd,w:{}}})},sd=t.exports={KEY:$,NEED:!1,fastKey:function(e,t){if(!ed(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!td(e,$)){if(!id(e))return`F`;if(!t)return`E`;od(e)}return e[$].i},getWeak:function(e,t){if(!td(e,$)){if(!id(e))return!0;
1if(!t)return!1;od(e)}return e[$].w},onFreeze:function(e){return ad&&sd.NEED&&id(e)&&!td(e,$)&&od(e),e}}})),require__wks$1=__commonJSMin(((e,t)=>{var $=require__shared$1()(`wks`),ed=require__uid$1(),td=require__global$1().Symbol,nd=typeof td==`function`,rd=t.exports=function(e){return $[e]||($[e]=nd&&td[e]||(nd?td:ed)(`Symbol.`+e))};rd.store=$})),require__set_to_string_tag$1=__commonJSMin(((e,t)=>{var $=require__object_dp$1().f,ed=require__has$1(),td=require__wks$1()(`toStringTag`);t.exports=function(e,t,nd){e&&!ed(e=nd?e:e.prototype,td)&&$(e,td,{configurable:!0,value:t})}})),require__wks_ext$1=__commonJSMin((e=>{e.f=require__wks$1()})),require__wks_define$1=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__core$1(),td=require__library$1(),nd=require__wks_ext$1(),rd=require__object_dp$1().f;t.exports=function(e){var t=ed.Symbol||=td?{}:$.Symbol||{};e.charAt(0)!=`_`&&!(e in t)&&rd(t,e,{value:nd.f(e)})}})),require__cof$1=__commonJSMin(((e,t)=>{var $={}.toString;t.exports=function(e){return $.call(e).slice(8,-1)}})),require__iobject$1=__commonJSMin(((e,t)=>{var $=require__cof$1();t.exports=Object(`z`).propertyIsEnumerable(0)?Object:function(e){return $(e)==`String`?e.split(``):Object(e)}})),require__defined$1=__commonJSMin(((e,t)=>{t.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}})),require__to_iobject$1=__commonJSMin(((e,t)=>{var $=require__iobject$1(),ed=require__defined$1();t.exports=function(e){return $(ed(e))}})),require__to_integer$1=__commonJSMin(((e,t)=>{var $=Math.ceil,ed=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?ed:$)(e)}})),require__to_length$1=__commonJSMin(((e,t)=>{var $=require__to_integer$1(),ed=Math.min;t.exports=function(e){return e>0?ed($(e),9007199254740991):0}})),require__to_absolute_index$1=__commonJSMin(((e,t)=>{var $=require__to_integer$1(),ed=Math.max,td=Math.min;t.exports=function(e,t){return e=$(e),e<0?ed(e+t,0):td(e,t)}})),require__array_includes$1=__commonJSMin(((e,t)=>{var $=require__to_iobject$1(),ed=require__to_length$1(),td=require__to_absolute_index$1();t.exports=function(e){return function(t,nd,rd){var id=$(t),ad=ed(id.length),od=td(rd,ad),sd;if(e&&nd!=nd){for(;ad>od;)if(sd=id[od++],sd!=sd)return!0}else for(;ad>od;od++)if((e||od in id)&&id[od]===nd)return e||od||0;return!e&&-1}}})),require__shared_key$1=__commonJSMin(((e,t)=>{var $=require__shared$1()(`keys`),ed=require__uid$1();t.exports=function(e){return $[e]||($[e]=ed(e))}})),require__object_keys_internal$1=__commonJSMin(((e,t)=>{var $=require__has$1(),ed=require__to_iobject$1(),td=require__array_includes$1()(!1),nd=require__shared_key$1()(`IE_PROTO`);t.exports=function(e,t){var rd=ed(e),id=0,ad=[],od;for(od in rd)od!=nd&&$(rd,od)&&ad.push(od);for(;t.length>id;)$(rd,od=t[id++])&&(~td(ad,od)||ad.push(od));return ad}})),require__enum_bug_keys$1=__commonJSMin(((e,t)=>{t.exports=`constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf`.split(`,`)})),require__object_keys$1=__commonJSMin(((e,t)=>{var $=require__object_keys_internal$1(),ed=require__enum_bug_keys$1();t.exports=Object.keys||function(e){return $(e,ed)}})),require__object_gops$1=__commonJSMin((e=>{e.f=Object.getOwnPropertySymbols})),require__object_pie$1=__commonJSMin((e=>{e.f={}.propertyIsEnumerable})),require__enum_keys$1=__commonJSMin(((e,t)=>{var $=require__object_keys$1(),ed=require__object_gops$1(),td=require__object_pie$1();t.exports=function(e){var t=$(e),nd=ed.f;if(nd)for(var rd=nd(e),id=td.f,ad=0,od;rd.length>ad;)id.call(e,od=rd[ad++])&&t.push(od);return t}})),require__is_array$1=__commonJSMin(((e,t)=>{var $=require__cof$1();t.exports=Array.isArray||function(e){return $(e)==`Array`}})),require__to_object$1=__commonJSMin(((e,t)=>{var $=require__defined$1();t.exports=function(e){return Object($(e))}})),require__object_dps$1=__commonJSMin(((e,t)=>{var $=require__object_dp$1(),ed=require__an_object$1(),td=require__object_keys$1();t.exports=require__descriptors$1()?Object.defineProperties:function(e,t){ed(e);for(var nd=td(t),rd=nd.length,id=0,ad;rd>id;)$.f(e,ad=nd[id++],t[ad]);return e}})),require__html$1=__commonJSMin(((e,t)=>{var $=require__global$1().document;t.exports=$&&$.documentElement})),require__object_create$1=__commonJSMin(((e,t)=>{var $=require__an_object$1(),ed=require__object_dps$1(),td=require__enum_bug_keys$1(),nd=require__shared_key$1()(`IE_PROTO`),rd=function(){},id=`prototype`,ad=function(){var e=require__dom_create$1()(`iframe`),t=td.length,$=`<`,ed=`>`,nd;for(e.style.display=`none`,require__html$1().appendChild(e),e.src=`javascript:`,nd=e.contentWindow.document,nd.open(),nd.write($+`script`+ed+`document.F=Object`+$+`/script`+ed),nd.close(),ad=nd.F;t--;)delete ad[id][td[t]];return ad()};t.exports=Object.create||function(e,t){var td;return e===null?td=ad():(rd[id]=$(e),td=new rd,rd[id]=null,td[nd]=e),t===void 0?td:ed(td,t)}})),require__object_gopn$1=__commonJSMin((e=>{var t=require__object_keys_internal$1(),$=require__enum_bug_keys$1().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,$)}})),require__object_gopn_ext$1=__commonJSMin(((e,t)=>{var $=require__to_iobject$1(),ed=require__object_gopn$1().f,td={}.toString,nd=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rd=function(e){try{return ed(e)}catch{return nd.slice()}};t.exports.f=function(e){return nd&&td.call(e)==`[object Window]`?rd(e):ed($(e))}})),require__object_gopd$1=__commonJSMin((e=>{var t=require__object_pie$1(),$=require__property_desc$1(),ed=require__to_iobject$1(),td=require__to_primitive$1(),nd=require__has$1(),rd=require__ie8_dom_define$1(),id=Object.getOwnPropertyDescriptor;e.f=require__descriptors$1()?id:function(e,ad){if(e=ed(e),ad=td(ad,!0),rd)try{return id(e,ad)}catch{}if(nd(e,ad))return $(!t.f.call(e,ad),e[ad])}})),require_es6_symbol$1=__commonJSMin((()=>{var e=require__global$1(),t=require__has$1(),$=require__descriptors$1(),ed=require__export$1(),td=require__redefine$1(),nd=require__meta$1().KEY,rd=require__fails$1(),id=require__shared$1(),ad=require__set_to_string_tag$1(),od=require__uid$1(),sd=require__wks$1(),cd=require__wks_ext$1(),ld=require__wks_define$1(),ud=require__enum_keys$1(),dd=require__is_array$1(),fd=require__an_object$1(),pd=require__is_object$1(),md=require__to_object$1(),hd=require__to_iobject$1(),gd=require__to_primitive$1(),_d=require__property_desc$1(),vd=require__object_create$1(),yd=require__object_gopn_ext$1(),bd=require__object_gopd$1(),xd=require__object_gops$1(),Sd=require__object_dp$1(),Cd=require__object_keys$1(),wd=bd.f,Td=Sd.f,Ed=yd.f,Dd=e.Symbol,Od=e.JSON,kd=Od&&Od.stringify,Ad=`prototype`,jd=sd(`_hidden`),Md=sd(`toPrimitive`),Nd={}.propertyIsEnumerable,Pd=id(`symbol-registry`),Fd=id(`symbols`),Id=id(`op-symbol
1s`),Ld=Object[Ad],Rd=typeof Dd==`function`&&!!xd.f,zd=e.QObject,Bd=!zd||!zd[Ad]||!zd[Ad].findChild,Vd=$&&rd(function(){return vd(Td({},`a`,{get:function(){return Td(this,`a`,{value:7}).a}})).a!=7})?function(e,t,$){var ed=wd(Ld,t);ed&&delete Ld[t],Td(e,t,$),ed&&e!==Ld&&Td(Ld,t,ed)}:Td,Hd=function(e){var t=Fd[e]=vd(Dd[Ad]);return t._k=e,t},Ud=Rd&&typeof Dd.iterator==`symbol`?function(e){return typeof e==`symbol`}:function(e){return e instanceof Dd},Wd=function(e,$,ed){return e===Ld&&Wd(Id,$,ed),fd(e),$=gd($,!0),fd(ed),t(Fd,$)?(ed.enumerable?(t(e,jd)&&e[jd][$]&&(e[jd][$]=!1),ed=vd(ed,{enumerable:_d(0,!1)})):(t(e,jd)||Td(e,jd,_d(1,{})),e[jd][$]=!0),Vd(e,$,ed)):Td(e,$,ed)},Gd=function(e,t){fd(e);for(var $=ud(t=hd(t)),ed=0,td=$.length,nd;td>ed;)Wd(e,nd=$[ed++],t[nd]);return e},Kd=function(e,t){return t===void 0?vd(e):Gd(vd(e),t)},qd=function(e){var $=Nd.call(this,e=gd(e,!0));return this===Ld&&t(Fd,e)&&!t(Id,e)?!1:$||!t(this,e)||!t(Fd,e)||t(this,jd)&&this[jd][e]?$:!0},Jd=function(e,$){if(e=hd(e),$=gd($,!0),!(e===Ld&&t(Fd,$)&&!t(Id,$))){var ed=wd(e,$);return ed&&t(Fd,$)&&!(t(e,jd)&&e[jd][$])&&(ed.enumerable=!0),ed}},Yd=function(e){for(var $=Ed(hd(e)),ed=[],td=0,rd;$.length>td;)!t(Fd,rd=$[td++])&&rd!=jd&&rd!=nd&&ed.push(rd);return ed},Xd=function(e){for(var $=e===Ld,ed=Ed($?Id:hd(e)),td=[],nd=0,rd;ed.length>nd;)t(Fd,rd=ed[nd++])&&(!$||t(Ld,rd))&&td.push(Fd[rd]);return td};Rd||(Dd=function(){if(this instanceof Dd)throw TypeError(`Symbol is not a constructor!`);var e=od(arguments.length>0?arguments[0]:void 0),ed=function($){this===Ld&&ed.call(Id,$),t(this,jd)&&t(this[jd],e)&&(this[jd][e]=!1),Vd(this,e,_d(1,$))};return $&&Bd&&Vd(Ld,e,{configurable:!0,set:ed}),Hd(e)},td(Dd[Ad],`toString`,function(){return this._k}),bd.f=Jd,Sd.f=Wd,require__object_gopn$1().f=yd.f=Yd,require__object_pie$1().f=qd,xd.f=Xd,$&&!require__library$1()&&td(Ld,`propertyIsEnumerable`,qd,!0),cd.f=function(e){return Hd(sd(e))}),ed(ed.G+ed.W+ed.F*!Rd,{Symbol:Dd});for(var Zd=`hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables`.split(`,`),Qd=0;Zd.length>Qd;)sd(Zd[Qd++]);for(var $d=Cd(sd.store),ef=0;$d.length>ef;)ld($d[ef++]);ed(ed.S+ed.F*!Rd,`Symbol`,{for:function(e){return t(Pd,e+=``)?Pd[e]:Pd[e]=Dd(e)},keyFor:function(e){if(!Ud(e))throw TypeError(e+` is not a symbol!`);for(var t in Pd)if(Pd[t]===e)return t},useSetter:function(){Bd=!0},useSimple:function(){Bd=!1}}),ed(ed.S+ed.F*!Rd,`Object`,{create:Kd,defineProperty:Wd,defineProperties:Gd,getOwnPropertyDescriptor:Jd,getOwnPropertyNames:Yd,getOwnPropertySymbols:Xd});var tf=rd(function(){xd.f(1)});ed(ed.S+ed.F*tf,`Object`,{getOwnPropertySymbols:function(e){return xd.f(md(e))}}),Od&&ed(ed.S+ed.F*(!Rd||rd(function(){var e=Dd();return kd([e])!=`[null]`||kd({a:e})!=`{}`||kd(Object(e))!=`{}`})),`JSON`,{stringify:function(e){for(var t=[e],$=1,ed,td;arguments.length>$;)t.push(arguments[$++]);if(td=ed=t[1],!(!pd(ed)&&e===void 0||Ud(e)))return dd(ed)||(ed=function(e,t){if(typeof td==`function`&&(t=td.call(this,e,t)),!Ud(t))return t}),t[1]=ed,kd.apply(Od,t)}}),Dd[Ad][Md]||require__hide$1()(Dd[Ad],Md,Dd[Ad].valueOf),ad(Dd,`Symbol`),ad(Math,`Math`,!0),ad(e.JSON,`JSON`,!0)})),require_es6_object_create$1=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Object`,{create:require__object_create$1()})})),require_es6_object_define_property$1=__commonJSMin((()=>{var e=require__export$1();e(e.S+e.F*!require__descriptors$1(),`Object`,{defineProperty:require__object_dp$1().f})})),require_es6_object_define_properties=__commonJSMin((()=>{var e=require__export$1();e(e.S+e.F*!require__descriptors$1(),`Object`,{defineProperties:require__object_dps$1()})})),require__object_sap$1=__commonJSMin(((e,t)=>{var $=require__export$1(),ed=require__core$1(),td=require__fails$1();t.exports=function(e,t){var nd=(ed.Object||{})[e]||Object[e],rd={};rd[e]=t(nd),$($.S+$.F*td(function(){nd(1)}),`Object`,rd)}})),require_es6_object_get_own_property_descriptor=__commonJSMin((()=>{var e=require__to_iobject$1(),t=require__object_gopd$1().f;require__object_sap$1()(`getOwnPropertyDescriptor`,function(){return function($,ed){return t(e($),ed)}})})),require__object_gpo$1=__commonJSMin(((e,t)=>{var $=require__has$1(),ed=require__to_object$1(),td=require__shared_key$1()(`IE_PROTO`),nd=Object.prototype;
1t.exports=Object.getPrototypeOf||function(e){return e=ed(e),$(e,td)?e[td]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nd:null}})),require_es6_object_get_prototype_of$1=__commonJSMin((()=>{var e=require__to_object$1(),t=require__object_gpo$1();require__object_sap$1()(`getPrototypeOf`,function(){return function($){return t(e($))}})})),require_es6_object_keys=__commonJSMin((()=>{var e=require__to_object$1(),t=require__object_keys$1();require__object_sap$1()(`keys`,function(){return function($){return t(e($))}})})),require_es6_object_get_own_property_names=__commonJSMin((()=>{require__object_sap$1()(`getOwnPropertyNames`,function(){return require__object_gopn_ext$1().f})})),require_es6_object_freeze=__commonJSMin((()=>{var e=require__is_object$1(),t=require__meta$1().onFreeze;require__object_sap$1()(`freeze`,function($){return function(ed){return $&&e(ed)?$(t(ed)):ed}})})),require_es6_object_seal=__commonJSMin((()=>{var e=require__is_object$1(),t=require__meta$1().onFreeze;require__object_sap$1()(`seal`,function($){return function(ed){return $&&e(ed)?$(t(ed)):ed}})})),require_es6_object_prevent_extensions=__commonJSMin((()=>{var e=require__is_object$1(),t=require__meta$1().onFreeze;require__object_sap$1()(`preventExtensions`,function($){return function(ed){return $&&e(ed)?$(t(ed)):ed}})})),require_es6_object_is_frozen=__commonJSMin((()=>{var e=require__is_object$1();require__object_sap$1()(`isFrozen`,function(t){return function($){return e($)?t?t($):!1:!0}})})),require_es6_object_is_sealed=__commonJSMin((()=>{var e=require__is_object$1();require__object_sap$1()(`isSealed`,function(t){return function($){return e($)?t?t($):!1:!0}})})),require_es6_object_is_extensible=__commonJSMin((()=>{var e=require__is_object$1();require__object_sap$1()(`isExtensible`,function(t){return function($){return e($)?t?t($):!0:!1}})})),require__object_assign$1=__commonJSMin(((e,t)=>{var $=require__descriptors$1(),ed=require__object_keys$1(),td=require__object_gops$1(),nd=require__object_pie$1(),rd=require__to_object$1(),id=require__iobject$1(),ad=Object.assign;t.exports=!ad||require__fails$1()(function(){var e={},t={},$=Symbol(),ed=`abcdefghijklmnopqrst`;return e[$]=7,ed.split(``).forEach(function(e){t[e]=e}),ad({},e)[$]!=7||Object.keys(ad({},t)).join(``)!=ed})?function(e,t){for(var ad=rd(e),od=arguments.length,sd=1,cd=td.f,ld=nd.f;od>sd;)for(var ud=id(arguments[sd++]),dd=cd?ed(ud).concat(cd(ud)):ed(ud),fd=dd.length,pd=0,md;fd>pd;)md=dd[pd++],(!$||ld.call(ud,md))&&(ad[md]=ud[md]);return ad}:ad})),require_es6_object_assign$1=__commonJSMin((()=>{var e=require__export$1();e(e.S+e.F,`Object`,{assign:require__object_assign$1()})})),require__same_value=__commonJSMin(((e,t)=>{t.exports=Object.is||function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}})),require_es6_object_is=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Object`,{is:require__same_value()})})),require__set_proto$1=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=require__an_object$1(),td=function(e,t){if(ed(e),!$(t)&&t!==null)throw TypeError(t+`: can't set as prototype!`)};t.exports={set:Object.setPrototypeOf||(`__proto__`in{}?function(e,t,$){try{$=require__ctx$1()(Function.call,require__object_gopd$1().f(Object.prototype,`__proto__`).set,2),$(e,[]),t=!(e instanceof Array)}catch{t=!0}return function(e,ed){return td(e,ed),t?e.__proto__=ed:$(e,ed),e}}({},!1):void 0),check:td}})),require_es6_object_set_prototype_of$1=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Object`,{setPrototypeOf:require__set_proto$1().set})})),require__classof$1=__commonJSMin(((e,t)=>{var $=require__cof$1(),ed=require__wks$1()(`toStringTag`),td=$(function(){return arguments}())==`Arguments`,nd=function(e,t){try{return e[t]}catch{}};t.exports=function(e){var t,rd,id;return e===void 0?`Undefined`:e===null?`Null`:typeof(rd=nd(t=Object(e),ed))==`string`?rd:td?$(t):(id=$(t))==`Object`&&typeof t.callee==`function`?`Arguments`:id}})),require_es6_object_to_string$1=__commonJSMin((()=>{var e=require__classof$1(),t={};t[require__wks$1()(`toStringTag`)]=`z`,t+``!=`[object z]`&&require__redefine$1()(Object.prototype,`toString`,function(){return`[object `+e(this)+`]`},!0)})),require__invoke=__commonJSMin(((e,t)=>{t.exports=function(e,t,$){var ed=$===void 0;switch(t.length){case 0:return ed?e():e.call($);case 1:return ed?e(t[0]):e.call($,t[0]);case 2:return ed?e(t[0],t[1]):e.call($,t[0],t[1]);case 3:return ed?e(t[0],t[1],t[2]):e.call($,t[0],t[1],t[2]);case 4:return ed?e(t[0],t[1],t[2],t[3]):e.call($,t[0],t[1],t[2],t[3])}return e.apply($,t)}})),require__bind=__commonJSMin(((e,t)=>{var $=require__a_function$1(),ed=require__is_object$1(),td=require__invoke(),nd=[].slice,rd={},id=function(e,t,$){if(!(t in rd)){for(var ed=[],td=0;td<t;td++)ed[td]=`a[`+td+`]`;rd[t]=Function(`F,a`,`return new F(`+ed.join(`,`)+`)`)}return rd[t](e,$)};t.exports=Function.bind||function(e){var t=$(this),rd=nd.call(arguments,1
1),ad=function(){var $=rd.concat(nd.call(arguments));return this instanceof ad?id(t,$.length,$):td(t,$,e)};return ed(t.prototype)&&(ad.prototype=t.prototype),ad}})),require_es6_function_bind=__commonJSMin((()=>{var e=require__export$1();e(e.P,`Function`,{bind:require__bind()})})),require_es6_function_name=__commonJSMin((()=>{var e=require__object_dp$1().f,t=Function.prototype,$=/^\s*function ([^ (]*)/,ed=`name`;ed in t||require__descriptors$1()&&e(t,ed,{configurable:!0,get:function(){try{return(``+this).match($)[1]}catch{return``}}})})),require_es6_function_has_instance=__commonJSMin((()=>{var e=require__is_object$1(),t=require__object_gpo$1(),$=require__wks$1()(`hasInstance`),ed=Function.prototype;$ in ed||require__object_dp$1().f(ed,$,{value:function($){if(typeof this!=`function`||!e($))return!1;if(!e(this.prototype))return $ instanceof this;for(;$=t($);)if(this.prototype===$)return!0;return!1}})})),require__string_ws=__commonJSMin(((e,t)=>{t.exports=` 2\v\f\r \xA0áá ââââââ ââââââ¯âã\u2028\u2029`})),require__string_trim=__commonJSMin(((e,t)=>{var $=require__export$1(),ed=require__defined$1(),td=require__fails$1(),nd=require__string_ws(),rd=`[`+nd+`]`,id=`â `,ad=RegExp(`^`+rd+rd+`*`),od=RegExp(rd+rd+`*$`),sd=function(e,t,ed){var rd={},ad=td(function(){return!!nd[e]()||id[e]()!=id}),od=rd[e]=ad?t(cd):nd[e];ed&&(rd[ed]=od),$($.P+$.F*ad,`String`,rd)},cd=sd.trim=function(e,t){return e=String(ed(e)),t&1&&(e=e.replace(ad,``)),t&2&&(e=e.replace(od,``)),e};t.exports=sd})),require__parse_int=__commonJSMin(((e,t)=>{var $=require__global$1().parseInt,ed=require__string_trim().trim,td=require__string_ws(),nd=/^[-+]?0[xX]/;t.exports=$(td+`08`)!==8||$(td+`0x16`)!==22?function(e,t){var td=ed(String(e),3);return $(td,t>>>0||(nd.test(td)?16:10))}:$})),require_es6_parse_int=__commonJSMin((()=>{var e=require__export$1(),t=require__parse_int();e(e.G+e.F*(parseInt!=t),{parseInt:t})})),require__parse_float=__commonJSMin(((e,t)=>{var $=require__global$1().parseFloat,ed=require__string_trim().trim;t.exports=1/$(require__string_ws()+`-0`)==-1/0?$:function(e){var t=ed(String(e),3),td=$(t);return td===0&&t.charAt(0)==`-`?-0:td}})),require_es6_parse_float=__commonJSMin((()=>{var e=require__export$1(),t=require__parse_float();e(e.G+e.F*(parseFloat!=t),{parseFloat:t})})),require__inherit_if_required=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=require__set_proto$1().set;t.exports=function(e,t,td){var nd=t.constructor,rd;return nd!==td&&typeof nd==`function`&&(rd=nd.prototype)!==td.prototype&&$(rd)&&ed&&ed(e,rd),e}})),require_es6_number_constructor=__commonJSMin((()=>{var e=require__global$1(),t=require__has$1(),$=require__cof$1(),ed=require__inherit_if_required(),td=require__to_primitive$1(),nd=require__fails$1(),rd=require__object_gopn$1().f,id=require__object_gopd$1().f,ad=require__object_dp$1().f,od=require__string_trim().trim,sd=`Number`,cd=e[sd],ld=cd,ud=cd.prototype,dd=$(require__object_create$1()(ud))==sd,fd=`trim`in String.prototype,pd=function(e){var t=td(e,!1);if(typeof t==`string`&&t.length>2){t=fd?t.trim():od(t,3);var $=t.charCodeAt(0),ed,nd,rd;if($===43||$===45){if(ed=t.charCodeAt(2),ed===88||ed===120)return NaN}else if($===48){switch(t.charCodeAt(1)){case 66:case 98:nd=2,rd=49;break;case 79:case 111:nd=8,rd=55;break;default:return+t}for(var id=t.slice(2),ad=0,sd=id.length,cd;ad<sd;ad++)if(cd=id.charCodeAt(ad),cd<48||cd>rd)return NaN;return parseInt(id,nd)}}return+t};if(!cd(` 0o1`)||!cd(`0b1`)||cd(`+0x1`)){cd=function(e){var t=arguments.length<1?0:e,td=this;return td instanceof cd&&(dd?nd(function(){ud.valueOf.call(td)}):$(td)!=sd)?ed(new ld(pd(t)),td,cd):pd(t)};for(var md=require__descriptors$1()?rd(ld):`MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger`.split(`,`),hd=0,gd;md.length>hd;hd++)t(ld,gd=md[hd])&&!t(cd,gd)&&ad(cd,gd,id(ld,gd));cd.prototype=ud,ud.constructor=cd,require__redefine$1()(e,sd,cd)}})),require__a_number_value=__commonJSMin(((e,t)=>{var $=require__cof$1();t.exports=function(e,t){if(typeof e!=`number`&&$(e)!=`Number`)throw TypeError(t);return+e}})),require__string_repeat=__commonJSMin(((e,t)=>{var $=require__to_integer$1(),ed=require__defined$1();t.exports=function(e){var t=String(ed(this)),td=``,nd=$(e);if(nd<0||nd==1/0)throw RangeError(`Count can't be negative`);for(;nd>0;(nd>>>=1)&&(t+=t))nd&1&&(td+=t);return td}})),require_es6_number_to_fixed=__commonJSMin((()=>{var e=require__export$1(),t=require__to_integer$1(),$=require__a_number_value(),ed=require__string_repeat(),td=1 .toFixed,nd=Math.floor,rd=[0,0,0,0,0,0],id=`Number.toFixed: incorrect invocation!`,ad=`0`,od=function(e,t){for(var $=-1,ed=t;++$<6;)ed+=e*rd[$],rd[$]=ed%1e7,ed=nd(ed/1e7)},sd=function(e){for(var t=6,$=0;--t>=0;)$+=rd[t],rd[t]=nd($/e),$=$%e*1e7},cd=function(){for(var e=6,t=``;--e>=0;)if(t!==``||e===0||rd[e]!==0){var $=String(rd[e]);t=t===``?$:t+ed.call(ad,7-$.length)+$}return t},ld=function(e,t,$){return t===0?$:t%2==1?ld(e,t-1,$*e):ld(e*e,t/2,$)},ud=function(e){for(var t=0,$=e;$>=4096;)t+=12,$/=4096;for(;$>=2;)t+=1,$/=2;return t};e(e.P+e.F*(!!td&&(8e-5.toFixed(3)!==`0.000`||.9.toFixed(0)!==`1`||1.255.toFixed(2)!==`1.25`||0xde0b6b3a7640080.toFixed(0)!==`1000000000000000128`)||!require__fails$1()(function(){td.call({})})),`Number`,{toFixed:function(e){var td=$(this,id),nd=t(e),rd=``,dd=ad,fd,pd,md,hd;if(nd<0||nd>20)throw RangeError(id);if(td!=td)return`NaN`;if(td<=-1e21||td>=1e21)return String(td);if(td<0&&(rd=`-`,td=-td),td>1e-21)if(fd=ud(td*ld(2,69,1))-69,pd=fd<0?td*ld(2,-fd,1):td/ld(2,fd,1),pd*=4503599627370496,fd=52-fd,fd>
20){for(od(0,pd),md=nd;md>=7;)od(1e7,0),md-=7;for(od(ld(10,md,1),0),md=fd-1;md>=23;)sd(1<<23),md-=23;sd(1<<md),od(1,1),sd(2),dd=cd()}else od(0,pd),od(1<<-fd,0),dd=cd()+ed.call(ad,nd);return nd>0?(hd=dd.length,dd=rd+(hd<=nd?`0.`+ed.call(ad,nd-hd)+dd:dd.slice(0,hd-nd)+`.`+dd.slice(hd-nd))):dd=rd+dd,dd}})})),require_es6_number_to_precision=__commonJSMin((()=>{var e=require__export$1(),t=require__fails$1(),$=require__a_number_value(),ed=1 .toPrecision;e(e.P+e.F*(t(function(){return ed.call(1,void 0)!==`1`})||!t(function(){ed.call({})})),`Number`,{toPrecision:function(e){var t=$(this,`Number#toPrecision: incorrect invocation!`);return e===void 0?ed.call(t):ed.call(t,e)}})})),require_es6_number_epsilon=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Number`,{EPSILON:2**-52})})),require_es6_number_is_finite=__commonJSMin((()=>{var e=require__export$1(),t=require__global$1().isFinite;e(e.S,`Number`,{isFinite:function(e){return typeof e==`number`&&t(e)}})})),require__is_integer=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=Math.floor;t.exports=function(e){return!$(e)&&isFinite(e)&&ed(e)===e}})),require_es6_number_is_integer=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Number`,{isInteger:require__is_integer()})})),require_es6_number_is_nan=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Number`,{isNaN:function(e){return e!=e}})})),require_es6_number_is_safe_integer=__commonJSMin((()=>{var e=require__export$1(),t=require__is_integer(),$=Math.abs;e(e.S,`Number`,{isSafeInteger:function(e){return t(e)&&$(e)<=9007199254740991}})})),require_es6_number_max_safe_integer=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Number`,{MAX_SAFE_INTEGER:9007199254740991})})),require_es6_number_min_safe_integer=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Number`,{MIN_SAFE_INTEGER:-9007199254740991})})),require_es6_number_parse_float=__commonJSMin((()=>{var e=require__export$1(),t=require__parse_float();e(e.S+e.F*(Number.parseFloat!=t),`Number`,{parseFloat:t})})),require_es6_number_parse_int=__commonJSMin((()=>{var e=require__export$1(),t=require__parse_int();e(e.S+e.F*(Number.parseInt!=t),`Number`,{parseInt:t})})),require__math_log1p=__commonJSMin(((e,t)=>{t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}})),require_es6_math_acosh=__commonJSMin((()=>{var e=require__export$1(),t=require__math_log1p(),$=Math.sqrt,ed=Math.acosh;e(e.S+e.F*!(ed&&Math.floor(ed(Number.MAX_VALUE))==710&&ed(1/0)==1/0),`Math`,{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:t(e-1+$(e-1)*$(e+1))}})})),require_es6_math_asinh=__commonJSMin((()=>{var e=require__export$1(),t=Math.asinh;function $(e){return!isFinite(e=+e)||e==0?e:e<0?-$(-e):Math.log(e+Math.sqrt(e*e+1))}e(e.S+e.F*!(t&&1/t(0)>0),`Math`,{asinh:$})})),require_es6_math_atanh=__commonJSMin((()=>{var e=require__export$1(),t=Math.atanh;e(e.S+e.F*!(t&&1/t(-0)<0),`Math`,{atanh:function(e){return(e=+e)==0?e:Math.log((1+e)/(1-e))/2}})})),require__math_sign=__commonJSMin(((e,t)=>{t.exports=Math.sign||function(e){return(e=+e)==0||e!=e?e:e<0?-1:1}})),require_es6_math_cbrt=__commonJSMin((()=>{var e=require__export$1(),t=require__math_sign();e(e.S,`Math`,{cbrt:function(e){return t(e=+e)*Math.abs(e)**(1/3)}})})),require_es6_math_clz32=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})})),require_es6_math_cosh=__commonJSMin((()=>{var e=require__export$1(),t=Math.exp;e(e.S,`Math`,{cosh:function(e){return(t(e=+e)+t(-e))/2}})})),require__math_expm1=__commonJSMin(((e,t)=>{var $=Math.expm1;t.exports=!$||$(10)>22025.465794806718||$(10)<22025.465794806718||$(-2e-17)!=-2e-17?function(e){return(e=+e)==0?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:$})),require_es6_math_expm1=__commonJSMin((()=>{var e=require__export$1(),t=require__math_expm1();e(e.S+e.F*(t!=Math.expm1),`Math`,{expm1:t})})),require__math_fround=__commonJSMin(((e,t)=>{var $=require__math_sign(),ed=Math.pow,td=ed(2,-52),nd=ed(2,-23),rd=ed(2,127)*(2-nd),id=ed(2,-126),ad=function(e){return e+1/td-1/td};t.exports=Math.fround||function(e){var t=Math.abs(e),ed=$(e),od,sd;return t<id?ed*ad(t/id/nd)*id*nd:(od=(1+nd/td)*t,sd=od-(od-t),sd>rd||sd!=sd?ed*(1/0):ed*sd)}})),require_es6_math_fround=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{fround:require__math_fround()})})),require_es6_math_hypot=__commonJSMin((()=>{var e=require__export$1(),t=Math.abs;e(e.S,`Math`,{hypot:function(e,$){for(var ed=0,td=0,nd=arguments.length,rd=0,id,ad;td<nd;
2)id=t(arguments[td++]),rd<id?(ad=rd/id,ed=ed*ad*ad+1,rd=id):id>0?(ad=id/rd,ed+=ad*ad):ed+=id;return rd===1/0?1/0:rd*Math.sqrt(ed)}})})),require_es6_math_imul=__commonJSMin((()=>{var e=require__export$1(),t=Math.imul;e(e.S+e.F*require__fails$1()(function(){return t(4294967295,5)!=-5||t.length!=2}),`Math`,{imul:function(e,t){var $=65535,ed=+e,td=+t,nd=$&ed,rd=$&td;return 0|nd*rd+(($&ed>>>16)*rd+nd*($&td>>>16)<<16>>>0)}})})),require_es6_math_log10=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{log10:function(e){return Math.log(e)*Math.LOG10E}})})),require_es6_math_log1p=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{log1p:require__math_log1p()})})),require_es6_math_log2=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{log2:function(e){return Math.log(e)/Math.LN2}})})),require_es6_math_sign=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{sign:require__math_sign()})})),require_es6_math_sinh=__commonJSMin((()=>{var e=require__export$1(),t=require__math_expm1(),$=Math.exp;e(e.S+e.F*require__fails$1()(function(){return!Math.sinh(-2e-17)!=-2e-17}),`Math`,{sinh:function(e){return Math.abs(e=+e)<1?(t(e)-t(-e))/2:($(e-1)-$(-e-1))*(Math.E/2)}})})),require_es6_math_tanh=__commonJSMin((()=>{var e=require__export$1(),t=require__math_expm1(),$=Math.exp;e(e.S,`Math`,{tanh:function(e){var ed=t(e=+e),td=t(-e);return ed==1/0?1:td==1/0?-1:(ed-td)/($(e)+$(-e))}})})),require_es6_math_trunc=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Math`,{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})})),require_es6_string_from_code_point=__commonJSMin((()=>{var e=require__export$1(),t=require__to_absolute_index$1(),$=String.fromCharCode,ed=String.fromCodePoint;e(e.S+e.F*(!!ed&&ed.length!=1),`String`,{fromCodePoint:function(e){for(var ed=[],td=arguments.length,nd=0,rd;td>nd;){if(rd=+arguments[nd++],t(rd,1114111)!==rd)throw RangeError(rd+` is not a valid code point`);ed.push(rd<65536?$(rd):$(((rd-=65536)>>10)+55296,rd%1024+56320))}return ed.join(``)}})})),require_es6_string_raw=__commonJSMin((()=>{var e=require__export$1(),t=require__to_iobject$1(),$=require__to_length$1();e(e.S,`String`,{raw:function(e){for(var ed=t(e.raw),td=$(ed.length),nd=arguments.length,rd=[],id=0;td>id;)rd.push(String(ed[id++])),id<nd&&rd.push(String(arguments[id]));return rd.join(``)}})})),require_es6_string_trim=__commonJSMin((()=>{require__string_trim()(`trim`,function(e){return function(){return e(this,3)}})})),require__string_at$1=__commonJSMin(((e,t)=>{var $=require__to_integer$1(),ed=require__defined$1();t.exports=function(e){return function(t,td){var nd=String(ed(t)),rd=$(td),id=nd.length,ad,od;return rd<0||rd>=id?e?``:void 0:(ad=nd.charCodeAt(rd),ad<55296||ad>56319||rd+1===id||(od=nd.charCodeAt(rd+1))<56320||od>57343?e?nd.charAt(rd):ad:e?nd.slice(rd,rd+2):(ad-55296<<10)+(od-56320)+65536)}}})),require__iterators$1=__commonJSMin(((e,t)=>{t.exports={}})),require__iter_create$1=__commonJSMin(((e,t)=>{var $=require__object_create$1(),ed=require__property_desc$1(),td=require__set_to_string_tag$1(),nd={};require__hide$1()(nd,require__wks$1()(`iterator`),function(){return this}),t.exports=function(e,t,rd){e.prototype=$(nd,{next:ed(1,rd)}),td(e,t+` Iterator`)}})),require__iter_define$1=__commonJSMin(((e,t)=>{var $=require__library$1(),ed=require__export$1(),td=require__redefine$1(),nd=require__hide$1(),rd=require__iterators$1(),id=require__iter_create$1(),ad=require__set_to_string_tag$1(),od=require__object_gpo$1(),sd=require__wks$1()(`iterator`),cd=!([].keys&&`next`in[].keys()),ld=`@@iterator`,ud=`keys`,dd=`values`,fd=function(){return this};t.exports=function(e,t,pd,md,hd,gd,_d){id(pd,t,md);var vd=function(e){if(!cd&&e in Sd)return Sd[e];switch(e){case ud:return function(){return new pd(this,e)};case dd:return function(){return new pd(this,e)}}return function(){return new pd(this,e)}},yd=t+` Iterator`,bd=hd==dd,xd=!1,Sd=e.prototype,Cd=Sd[sd]||Sd[ld]||hd&&Sd[hd],wd=Cd||vd(hd),Td=hd?bd?vd(`entries`):wd:void 0,Ed=t==`Array`&&Sd.entries||Cd,Dd,Od,kd;if(Ed&&(kd=od(Ed.call(new e)),kd!==Object.prototype&&kd.next&&(ad(kd,yd,!0),!$&&typeof kd[sd]!=`function`&&nd(kd,sd,fd))),bd&&Cd&&Cd.name!==dd&&(xd=!0,wd=function(){return Cd.call(this)}),(!$||_d)&&(cd||xd||!Sd[sd])&&nd(Sd,sd,wd),rd[t]=wd,rd[yd]=fd,hd)if(Dd={values:bd?wd:vd(dd),keys:gd?wd:vd(ud),entries:Td},_d)for(Od in Dd)Od in Sd||td(Sd,Od,Dd[Od]);else ed(ed.P+ed.F*(cd||xd),t,Dd);return Dd}})),require_es6_string_iterator$1=__commonJSMin((()=>{var e=require__string_at$1()(!0);require__iter_define$1()(String,`String`,function(e){this._t=String(e),this._i=0},function(){var t=this._t,$=this._i,ed;return $>=t.length?{value:void 0,done:!0}:(ed=e(t,$),this._i+=ed.length,{value:ed,done:!1})})})),require_es6_string_code_point_at=__commonJSMin((()=>{var e=require__export$1(),t=require__string_at$1()(!1);e(e.P,`String`,{codePointAt:function(e){return t(this,e)}})})),require__is_regexp=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=require__cof$1(),td=require__wks$1()(`match`);t.exports=function(e){var t;return $(e)&&((t=e[td])===void 0?ed(e)==`RegExp`:!!t)}}
2)),require__string_context=__commonJSMin(((e,t)=>{var $=require__is_regexp(),ed=require__defined$1();t.exports=function(e,t,td){if($(t))throw TypeError(`String#`+td+` doesn't accept regex!`);return String(ed(e))}})),require__fails_is_regexp=__commonJSMin(((e,t)=>{var $=require__wks$1()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[$]=!1,!`/./`[e](t)}catch{}}return!0}})),require_es6_string_ends_with=__commonJSMin((()=>{var e=require__export$1(),t=require__to_length$1(),$=require__string_context(),ed=`endsWith`,td=``[ed];e(e.P+e.F*require__fails_is_regexp()(ed),`String`,{endsWith:function(e){var nd=$(this,e,ed),rd=arguments.length>1?arguments[1]:void 0,id=t(nd.length),ad=rd===void 0?id:Math.min(t(rd),id),od=String(e);return td?td.call(nd,od,ad):nd.slice(ad-od.length,ad)===od}})})),require_es6_string_includes=__commonJSMin((()=>{var e=require__export$1(),t=require__string_context(),$=`includes`;e(e.P+e.F*require__fails_is_regexp()($),`String`,{includes:function(e){return!!~t(this,e,$).indexOf(e,arguments.length>1?arguments[1]:void 0)}})})),require_es6_string_repeat=__commonJSMin((()=>{var e=require__export$1();e(e.P,`String`,{repeat:require__string_repeat()})})),require_es6_string_starts_with=__commonJSMin((()=>{var e=require__export$1(),t=require__to_length$1(),$=require__string_context(),ed=`startsWith`,td=``[ed];e(e.P+e.F*require__fails_is_regexp()(ed),`String`,{startsWith:function(e){var nd=$(this,e,ed),rd=t(Math.min(arguments.length>1?arguments[1]:void 0,nd.length)),id=String(e);return td?td.call(nd,id,rd):nd.slice(rd,rd+id.length)===id}})})),require__string_html=__commonJSMin(((e,t)=>{var $=require__export$1(),ed=require__fails$1(),td=require__defined$1(),nd=/"/g,rd=function(e,t,$,ed){var rd=String(td(e)),id=`<`+t;return $!==``&&(id+=` `+$+`="`+String(ed).replace(nd,`"`)+`"`),id+`>`+rd+`</`+t+`>`};t.exports=function(e,t){var td={};td[e]=t(rd),$($.P+$.F*ed(function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}),`String`,td)}})),require_es6_string_anchor=__commonJSMin((()=>{require__string_html()(`anchor`,function(e){return function(t){return e(this,`a`,`name`,t)}})})),require_es6_string_big=__commonJSMin((()=>{require__string_html()(`big`,function(e){return function(){return e(this,`big`,``,``)}})})),require_es6_string_blink=__commonJSMin((()=>{require__string_html()(`blink`,function(e){return function(){return e(this,`blink`,``,``)}})})),require_es6_string_bold=__commonJSMin((()=>{require__string_html()(`bold`,function(e){return function(){return e(this,`b`,``,``)}})})),require_es6_string_fixed=__commonJSMin((()=>{require__string_html()(`fixed`,function(e){return function(){return e(this,`tt`,``,``)}})})),require_es6_string_fontcolor=__commonJSMin((()=>{require__string_html()(`fontcolor`,function(e){return function(t){return e(this,`font`,`color`,t)}})})),require_es6_string_fontsize=__commonJSMin((()=>{require__string_html()(`fontsize`,function(e){return function(t){return e(this,`font`,`size`,t)}})})),require_es6_string_italics=__commonJSMin((()=>{require__string_html()(`italics`,function(e){return function(){return e(this,`i`,``,``)}})})),require_es6_string_link=__commonJSMin((()=>{require__string_html()(`link`,function(e){return function(t){return e(this,`a`,`href`,t)}})})),require_es6_string_small=__commonJSMin((()=>{require__string_html()(`small`,function(e){return function(){return e(this,`small`,``,``)}})})),require_es6_string_strike=__commonJSMin((()=>{require__string_html()(`strike`,function(e){return function(){return e(this,`strike`,``,``)}})})),require_es6_string_sub=__commonJSMin((()=>{require__string_html()(`sub`,function(e){return function(){return e(this,`sub`,``,``)}})})),require_es6_string_sup=__commonJSMin((()=>{require__string_html()(`sup`,function(e){return function(){return e(this,`sup`,``,``)}})})),require_es6_date_now=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Date`,{now:function(){return new Date().getTime()}})})),require_es6_date_to_json=__commonJSMin((()=>{var e=require__export$1(),t=require__to_object$1(),$=require__to_primitive$1();e(e.P+e.F*require__fails$1()(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}),`Date`,{toJSON:function(e){var ed=t(this),td=$(ed);return typeof td==`number`&&!isFinite(td)?null:ed.toISOString()}})})),require__date_to_iso_string=__commonJSMin(((e,t)=>{var $=require__fails$1(),ed=Date.prototype.getTime,td=Date.prototype.toISOString,nd=function(e){return e>9?e:`0`+e};t.exports=$(function(){return td.call(new Date(-50000000000001))!=`0385-07-25T07:06:39.999Z`})||!$(function(){td.call(new Date(NaN))})?function(){if(!isFinite(ed.call(this)))throw RangeError(`Invalid time value`);var e=this,t=e.getUTCFullYear(),$=e.getUTCMilliseconds(),td=t<0?`-`:t>9999?`+`:``;return td+(`00000`+Math.abs(t)).slice(td?-6:-4)+`-`+nd(e.getUTCMonth()+1)+`-`+nd(e.getUTCDate())+`T`+nd(e.getUTCHours())+`:`+nd(e.getUTCMinutes())+`:`+nd(e.getUTCSeconds())+`.`+($>99?$:`0`+nd($))+`Z`}:td})),require_es6_date_to_iso_string=__commonJSMin((()=>{var e=require__export$1(),t=require__date_to_iso_string();e(e.P+e.F*(Date.prototype.toISOString!==t),`Date`,{toISOString:t})})),require_es6_date_to_string=__commonJSMin((()=>{var e=Date.prototype,t=`Invalid Date`,$=`toString`,ed=e[$],td=e.getTime;new Date(NaN)+``!=t&&require__redefine$1()(e,$,function(){var e=td.call(this);return e===e?ed.call(this):t})})),require__date_to_primitive=__commonJSMin(((e,t)=>{var $=require__an_object$1(),ed=require__to_primitive$1(),td=`number`;t.exports=function(e){if(e!==`string`&&e!==td&&e!==`default`)throw TypeError(`Incorrect hint`);return ed($(this),e!=td)}})),require_es6_date_to_primitive=__commonJSMin((()=>{var e=require__wks$1()(`toPrimitive`),t=Date.prototype;e in t||require__hide$1()(t,e,require__date_to_primitive())})),require_es6_array_is_array=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Array`,{isArray:require__is_array$1()})})),require__iter_call$1=__commonJSMin(((e,t)=>{var $=require__an_object$1();t.exports=function(e,t,ed,td){try{return td?t($(ed)[0],ed[1]):t(ed)}catch(t){var nd=e.return;throw nd!==void 0&&$(nd.call(e)),t}}})),require__is_array_iter$1=__commonJSMin(((e,t)=>{var $=require__iterators$1(),ed=require__wks$1()(`iterator`),td=Array.prototype;
2t.exports=function(e){return e!==void 0&&($.Array===e||td[ed]===e)}})),require__create_property$1=__commonJSMin(((e,t)=>{var $=require__object_dp$1(),ed=require__property_desc$1();t.exports=function(e,t,td){t in e?$.f(e,t,ed(0,td)):e[t]=td}})),require_core_get_iterator_method$1=__commonJSMin(((e,t)=>{var $=require__classof$1(),ed=require__wks$1()(`iterator`),td=require__iterators$1();t.exports=require__core$1().getIteratorMethod=function(e){if(e!=null)return e[ed]||e[`@@iterator`]||td[$(e)]}})),require__iter_detect$1=__commonJSMin(((e,t)=>{var $=require__wks$1()(`iterator`),ed=!1;try{var td=[7][$]();td.return=function(){ed=!0},Array.from(td,function(){throw 2})}catch{}t.exports=function(e,t){if(!t&&!ed)return!1;var td=!1;try{var nd=[7],rd=nd[$]();rd.next=function(){return{done:td=!0}},nd[$]=function(){return rd},e(nd)}catch{}return td}})),require_es6_array_from$1=__commonJSMin((()=>{var e=require__ctx$1(),t=require__export$1(),$=require__to_object$1(),ed=require__iter_call$1(),td=require__is_array_iter$1(),nd=require__to_length$1(),rd=require__create_property$1(),id=require_core_get_iterator_method$1();t(t.S+t.F*!require__iter_detect$1()(function(e){Array.from(e)}),`Array`,{from:function(t){var ad=$(t),od=typeof this==`function`?this:Array,sd=arguments.length,cd=sd>1?arguments[1]:void 0,ld=cd!==void 0,ud=0,dd=id(ad),fd,pd,md,hd;if(ld&&(cd=e(cd,sd>2?arguments[2]:void 0,2)),dd!=null&&!(od==Array&&td(dd)))for(hd=dd.call(ad),pd=new od;!(md=hd.next()).done;ud++)rd(pd,ud,ld?ed(hd,cd,[md.value,ud],!0):md.value);else for(fd=nd(ad.length),pd=new od(fd);fd>ud;ud++)rd(pd,ud,ld?cd(ad[ud],ud):ad[ud]);return pd.length=ud,pd}})})),require_es6_array_of=__commonJSMin((()=>{var e=require__export$1(),t=require__create_property$1();e(e.S+e.F*require__fails$1()(function(){function e(){}return!(Array.of.call(e)instanceof e)}),`Array`,{of:function(){for(var e=0,$=arguments.length,ed=new(typeof this==`function`?this:Array)($);$>e;)t(ed,e,arguments[e++]);return ed.length=$,ed}})})),require__strict_method=__commonJSMin(((e,t)=>{var $=require__fails$1();t.exports=function(e,t){return!!e&&$(function(){t?e.call(null,function(){},1):e.call(null)})}})),require_es6_array_join=__commonJSMin((()=>{var e=require__export$1(),t=require__to_iobject$1(),$=[].join;e(e.P+e.F*(require__iobject$1()!=Object||!require__strict_method()($)),`Array`,{join:function(e){return $.call(t(this),e===void 0?`,`:e)}})})),require_es6_array_slice=__commonJSMin((()=>{var e=require__export$1(),t=require__html$1(),$=require__cof$1(),ed=require__to_absolute_index$1(),td=require__to_length$1(),nd=[].slice;e(e.P+e.F*require__fails$1()(function(){t&&nd.call(t)}),`Array`,{slice:function(e,t){var rd=td(this.length),id=$(this);if(t=t===void 0?rd:t,id==`Array`)return nd.call(this,e,t);for(var ad=ed(e,rd),od=td(ed(t,rd)-ad),sd=Array(od),cd=0;cd<od;cd++)sd[cd]=id==`String`?this.charAt(ad+cd):this[ad+cd];return sd}})})),require_es6_array_sort=__commonJSMin((()=>{var e=require__export$1(),t=require__a_function$1(),$=require__to_object$1(),ed=require__fails$1(),td=[].sort,nd=[1,2,3];e(e.P+e.F*(ed(function(){nd.sort(void 0)})||!ed(function(){nd.sort(null)})||!require__strict_method()(td)),`Array`,{sort:function(e){return e===void 0?td.call($(this)):td.call($(this),t(e))}})})),require__array_species_constructor=__commonJSMin(((e,t)=>{var $=require__is_object$1(),ed=require__is_array$1(),td=require__wks$1()(`species`);t.exports=function(e){var t;return ed(e)&&(t=e.constructor,typeof t==`function`&&(t===Array||ed(t.prototype))&&(t=void 0),$(t)&&(t=t[td],t===null&&(t=void 0))),t===void 0?Array:t}})),require__array_species_create=__commonJSMin(((e,t)=>{var $=require__array_species_constructor();t.exports=function(e,t){return new($(e))(t)}})),require__array_methods=__commonJSMin(((e,t)=>{var $=require__ctx$1(),ed=require__iobject$1(),td=require__to_object$1(),nd=require__to_length$1(),rd=require__array_species_create();t.exports=function(e,t){var id=e==1,ad=e==2,od=e==3,sd=e==4,cd=e==6,ld=e==5||cd,ud=t||rd;return function(t,rd,dd){for(var fd=td(t),pd=ed(fd),md=$(rd,dd,3),hd=nd(pd.length),gd=0,_d=id?ud(t,hd):ad?ud(t,0):void 0,vd,yd;hd>gd;gd++)if((ld||gd in pd)&&(vd=pd[gd],yd=md(vd,gd,fd),e)){if(id)_d[gd]=yd;else if(yd)switch(e){case 3:return!0;case 5:return vd;case 6:return gd;case 2:_d.push(vd)}else if(sd)return!1}return cd?-1:od||sd?sd:_d}}})),require_es6_array_for_each=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(0),$=require__strict_method()([].forEach,!0);
2e(e.P+e.F*!$,`Array`,{forEach:function(e){return t(this,e,arguments[1])}})})),require_es6_array_map=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(1);e(e.P+e.F*!require__strict_method()([].map,!0),`Array`,{map:function(e){return t(this,e,arguments[1])}})})),require_es6_array_filter=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(2);e(e.P+e.F*!require__strict_method()([].filter,!0),`Array`,{filter:function(e){return t(this,e,arguments[1])}})})),require_es6_array_some=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(3);e(e.P+e.F*!require__strict_method()([].some,!0),`Array`,{some:function(e){return t(this,e,arguments[1])}})})),require_es6_array_every=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(4);e(e.P+e.F*!require__strict_method()([].every,!0),`Array`,{every:function(e){return t(this,e,arguments[1])}})})),require__array_reduce=__commonJSMin(((e,t)=>{var $=require__a_function$1(),ed=require__to_object$1(),td=require__iobject$1(),nd=require__to_length$1();t.exports=function(e,t,rd,id,ad){$(t);var od=ed(e),sd=td(od),cd=nd(od.length),ld=ad?cd-1:0,ud=ad?-1:1;if(rd<2)for(;;){if(ld in sd){id=sd[ld],ld+=ud;break}if(ld+=ud,ad?ld<0:cd<=ld)throw TypeError(`Reduce of empty array with no initial value`)}for(;ad?ld>=0:cd>ld;ld+=ud)ld in sd&&(id=t(id,sd[ld],ld,od));return id}})),require_es6_array_reduce=__commonJSMin((()=>{var e=require__export$1(),t=require__array_reduce();e(e.P+e.F*!require__strict_method()([].reduce,!0),`Array`,{reduce:function(e){return t(this,e,arguments.length,arguments[1],!1)}})})),require_es6_array_reduce_right=__commonJSMin((()=>{var e=require__export$1(),t=require__array_reduce();e(e.P+e.F*!require__strict_method()([].reduceRight,!0),`Array`,{reduceRight:function(e){return t(this,e,arguments.length,arguments[1],!0)}})})),require_es6_array_index_of=__commonJSMin((()=>{var e=require__export$1(),t=require__array_includes$1()(!1),$=[].indexOf,ed=!!$&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(ed||!require__strict_method()($)),`Array`,{indexOf:function(e){return ed?$.apply(this,arguments)||0:t(this,e,arguments[1])}})})),require_es6_array_last_index_of=__commonJSMin((()=>{var e=require__export$1(),t=require__to_iobject$1(),$=require__to_integer$1(),ed=require__to_length$1(),td=[].lastIndexOf,nd=!!td&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(nd||!require__strict_method()(td)),`Array`,{lastIndexOf:function(e){if(nd)return td.apply(this,arguments)||0;var rd=t(this),id=ed(rd.length),ad=id-1;for(arguments.length>1&&(ad=Math.min(ad,$(arguments[1]))),ad<0&&(ad=id+ad);ad>=0;ad--)if(ad in rd&&rd[ad]===e)return ad||0;return-1}})})),require__array_copy_within=__commonJSMin(((e,t)=>{var $=require__to_object$1(),ed=require__to_absolute_index$1(),td=require__to_length$1();t.exports=[].copyWithin||function(e,t){var nd=$(this),rd=td(nd.length),id=ed(e,rd),ad=ed(t,rd),od=arguments.length>2?arguments[2]:void 0,sd=Math.min((od===void 0?rd:ed(od,rd))-ad,rd-id),cd=1;for(ad<id&&id<ad+sd&&(cd=-1,ad+=sd-1,id+=sd-1);sd-- >0;)ad in nd?nd[id]=nd[ad]:delete nd[id],id+=cd,ad+=cd;return nd}})),require__add_to_unscopables$1=__commonJSMin(((e,t)=>{var $=require__wks$1()(`unscopables`),ed=Array.prototype;ed[$]??require__hide$1()(ed,$,{}),t.exports=function(e){ed[$][e]=!0}})),require_es6_array_copy_within=__commonJSMin((()=>{var e=require__export$1();e(e.P,`Array`,{copyWithin:require__array_copy_within()}),require__add_to_unscopables$1()(`copyWithin`)})),require__array_fill=__commonJSMin(((e,t)=>{var $=require__to_object$1(),ed=require__to_absolute_index$1(),td=require__to_length$1();t.exports=function(e){for(var t=$(this),nd=td(t.length),rd=arguments.length,id=ed(rd>1?arguments[1]:void 0,nd),ad=rd>2?arguments[2]:void 0,od=ad===void 0?nd:ed(ad,nd);od>id;)t[id++]=e;return t}})),require_es6_array_fill=__commonJSMin((()=>{var e=require__export$1();e(e.P,`Array`,{fill:require__array_fill()}),require__add_to_unscopables$1()(`fill`)})),require_es6_array_find=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(5),$=`find`,ed=!0;$ in[]&&[,][$](function(){ed=!1}),e(e.P+e.F*ed,`Array`,{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),require__add_to_unscopables$1()($)})),require_es6_array_find_index=__commonJSMin((()=>{var e=require__export$1(),t=require__array_methods()(6),$=`findIndex`,ed=!0;$ in[]&&[,][$](function(){ed=!1}),e(e.P+e.F*ed,`Array`,{findIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),require__add_to_unscopables$1()($)})),require__set_species=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__object_dp$1(),td=require__descriptors$1(),nd=require__wks$1()(`species`);t.exports=function(e){var t=$[e];td&&t&&!t[nd]&&ed.f(t,nd,{configurable:!0,get:function(){return this}})}})),require_es6_array_species=__commonJSMin((()=>{require__set_species()(`Array`)})),require__iter_step$1=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{value:t,done:!!e}}}
2)),require_es6_array_iterator$1=__commonJSMin(((e,t)=>{var $=require__add_to_unscopables$1(),ed=require__iter_step$1(),td=require__iterators$1(),nd=require__to_iobject$1();t.exports=require__iter_define$1()(Array,`Array`,function(e,t){this._t=nd(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,$=this._i++;return!e||$>=e.length?(this._t=void 0,ed(1)):t==`keys`?ed(0,$):t==`values`?ed(0,e[$]):ed(0,[$,e[$]])},`values`),td.Arguments=td.Array,$(`keys`),$(`values`),$(`entries`)})),require__flags=__commonJSMin(((e,t)=>{var $=require__an_object$1();t.exports=function(){var e=$(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}})),require_es6_regexp_constructor=__commonJSMin((()=>{var e=require__global$1(),t=require__inherit_if_required(),$=require__object_dp$1().f,ed=require__object_gopn$1().f,td=require__is_regexp(),nd=require__flags(),rd=e.RegExp,id=rd,ad=rd.prototype,od=/a/g,sd=/a/g,cd=new rd(od)!==od;if(require__descriptors$1()&&(!cd||require__fails$1()(function(){return sd[require__wks$1()(`match`)]=!1,rd(od)!=od||rd(sd)==sd||rd(od,`i`)!=`/a/i`}))){rd=function(e,$){var ed=this instanceof rd,od=td(e),sd=$===void 0;return!ed&&od&&e.constructor===rd&&sd?e:t(cd?new id(od&&!sd?e.source:e,$):id((od=e instanceof rd)?e.source:e,od&&sd?nd.call(e):$),ed?this:ad,rd)};for(var ld=function(e){e in rd||$(rd,e,{configurable:!0,get:function(){return id[e]},set:function(t){id[e]=t}})},ud=ed(id),dd=0;ud.length>dd;)ld(ud[dd++]);ad.constructor=rd,rd.prototype=ad,require__redefine$1()(e,`RegExp`,rd)}require__set_species()(`RegExp`)})),require__regexp_exec=__commonJSMin(((e,t)=>{var $=require__flags(),ed=RegExp.prototype.exec,td=String.prototype.replace,nd=ed,rd=`lastIndex`,id=(function(){var e=/a/,t=/b*/g;return ed.call(e,`a`),ed.call(t,`a`),e[rd]!==0||t[rd]!==0})(),ad=/()??/.exec(``)[1]!==void 0;(id||ad)&&(nd=function(e){var t=this,nd,od,sd,cd;return ad&&(od=RegExp(`^`+t.source+`$(?!\\s)`,$.call(t))),id&&(nd=t[rd]),sd=ed.call(t,e),id&&sd&&(t[rd]=t.global?sd.index+sd[0].length:nd),ad&&sd&&sd.length>1&&td.call(sd[0],od,function(){for(cd=1;cd<arguments.length-2;cd++)arguments[cd]===void 0&&(sd[cd]=void 0)}),sd}),t.exports=nd})),require_es6_regexp_exec=__commonJSMin((()=>{var e=require__regexp_exec();require__export$1()({target:`RegExp`,proto:!0,forced:e!==/./.exec},{exec:e})})),require_es6_regexp_flags=__commonJSMin((()=>{require__descriptors$1()&&/./g.flags!=`g`&&require__object_dp$1().f(RegExp.prototype,`flags`,{configurable:!0,get:require__flags()})})),require_es6_regexp_to_string=__commonJSMin((()=>{require_es6_regexp_flags();var e=require__an_object$1(),t=require__flags(),$=require__descriptors$1(),ed=`toString`,td=/./[ed],nd=function(e){require__redefine$1()(RegExp.prototype,ed,e,!0)};require__fails$1()(function(){return td.call({source:`a`,flags:`b`})!=`/a/b`})?nd(function(){var ed=e(this);return`/${ed.source}/${`flags`in ed?ed.flags:!$&&ed instanceof RegExp?t.call(ed):void 0}`}):td.name!=ed&&nd(function(){return td.call(this)})})),require__advance_string_index=__commonJSMin(((e,t)=>{var $=require__string_at$1()(!0);t.exports=function(e,t,ed){return t+(ed?$(e,t).length:1)}})),require__regexp_exec_abstract=__commonJSMin(((e,t)=>{var $=require__classof$1(),ed=RegExp.prototype.exec;t.exports=function(e,t){var td=e.exec;if(typeof td==`function`){var nd=td.call(e,t);if(typeof nd!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return nd}if($(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return ed.call(e,t)}})),require__fix_re_wks=__commonJSMin(((e,t)=>{require_es6_regexp_exec();var $=require__redefine$1(),ed=require__hide$1(),td=require__fails$1(),nd=require__defined$1(),rd=require__wks$1(),id=require__regexp_exec(),ad=rd(`species`),od=!td(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),sd=(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var $=`ab`.split(e);return $.length===2&&$[0]===`a`&&$[1]===`b`})();t.exports=function(e,t,cd){var ld=rd(e),ud=!td(function(){var t={};return t[ld]=function(){return 7},``[e](t)!=7}),dd=ud?!td(function(){var t=!1,$=/a/;return $.exec=function(){return t=!0,null},e===`split`&&($.constructor={},$.constructor[ad]=function(){return $}),$[ld](``),!t}):void 0;if(!ud||!dd||e===`replace`&&!od||e===`split`&&!sd){var fd=/./[ld],pd=cd(nd,ld,``[e],function(e,t,$,ed,td){return t.exec===id?ud&&!td?{done:!0,value:fd.call(t,$,ed)}:{done:!0,value:e.call($,t,ed)}:{done:!1}}),md=pd[0],hd=pd[1];$(String.prototype,e,md),ed(RegExp.prototype,ld,t==2?function(e,t){return hd.call(e,this,t)}:function(e){return hd.call(e,this)})}}})),require_es6_regexp_match=__commonJSMin((()=>{var e=require__an_object$1(),t=require__to_length$1(),$=require__advance_string_index(),ed=require__regexp_exec_abstract();require__fix_re_wks()(`match`,1,function(td,nd,rd,id){return[function(e){var t=td(this),$=e?.[nd];return $===void 0?new RegExp(e)[nd](String(t)):$.call(e,t)},function(td){var nd=id(rd,td,this);if(nd.done)return nd.value;var ad=e(td),od=String(this);if(!ad.global)return ed(ad,od);var sd=ad.unicode;ad.lastIndex=0;for(var cd=[],ld=0,ud;(ud=ed(ad,od))!==null;){var dd=String(ud[0]);cd[ld]=dd,dd===``&&(ad.lastIndex=$(od,t(ad.lastIndex),sd)),ld++}return ld===0?null:cd}]})})),require_es6_regexp_replace=__commonJSMin((()=>{var e=require__an_object$1(),t=require__to_object$1(),$=require__to_length$1(),ed=require__to_integer$1(),td=require__advance_string_index(),nd=require__regexp_exec_abstract(),rd=Math.max,id=Math.min,ad=Math.floor,od=/\$([$&`']|\d\d?|<[^>]*>)/g,sd=/\$([$&`']|\d\d?)/g,cd=function(e){return e===void 0?e:String(e)};require__fix_re_wks()(`replace`,2,function(ld,ud,dd,fd){return[function(e,t){var $=ld(this),ed=e?.[ud];return ed===void 0?dd.call(String($),e,t):ed.call(e,$,t)},function(t,ad){var od=fd(dd,t,this,ad);if(od.done)return od.value;var sd=e(t),ld=String(this),ud=typeof ad==`function`;ud||(ad=String(ad));var md=sd.global;if(md){var hd=sd.unicode;sd.lastIndex=0}for(var gd=[];;){var _d=nd(sd,ld);if(_d===null||(gd.push(_d),!md))break;String(_d[0])===``&&(sd.lastIndex=td(ld,$(sd.lastIndex),hd))}for(var vd=``,yd=0,bd=0;bd<gd.length;bd++){_d=gd[bd];for(var xd=String(_d[0]),Sd=rd(id(ed(_d.index),ld.length),0),Cd=[],wd=1;wd<_d.length;wd++)Cd.push(cd(_d[wd]));var Td=_d.groups;if(ud){var Ed=[xd].concat(Cd,Sd,ld);Td!==void 0&&Ed.push(Td);var Dd=String(ad.apply(void 0,Ed))}else Dd=pd(xd,ld,Sd,Cd,Td,ad);Sd>
2=yd&&(vd+=ld.slice(yd,Sd)+Dd,yd=Sd+xd.length)}return vd+ld.slice(yd)}];function pd(e,$,ed,td,nd,rd){var id=ed+e.length,cd=td.length,ld=sd;return nd!==void 0&&(nd=t(nd),ld=od),dd.call(rd,ld,function(t,rd){var od;switch(rd.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return $.slice(0,ed);case`'`:return $.slice(id);case`<`:od=nd[rd.slice(1,-1)];break;default:var sd=+rd;if(sd===0)return t;if(sd>cd){var ld=ad(sd/10);return ld===0?t:ld<=cd?td[ld-1]===void 0?rd.charAt(1):td[ld-1]+rd.charAt(1):t}od=td[sd-1]}return od===void 0?``:od})}})})),require_es6_regexp_search=__commonJSMin((()=>{var e=require__an_object$1(),t=require__same_value(),$=require__regexp_exec_abstract();require__fix_re_wks()(`search`,1,function(ed,td,nd,rd){return[function(e){var t=ed(this),$=e?.[td];return $===void 0?new RegExp(e)[td](String(t)):$.call(e,t)},function(ed){var td=rd(nd,ed,this);if(td.done)return td.value;var id=e(ed),ad=String(this),od=id.lastIndex;t(od,0)||(id.lastIndex=0);var sd=$(id,ad);return t(id.lastIndex,od)||(id.lastIndex=od),sd===null?-1:sd.index}]})})),require__species_constructor=__commonJSMin(((e,t)=>{var $=require__an_object$1(),ed=require__a_function$1(),td=require__wks$1()(`species`);t.exports=function(e,t){var nd=$(e).constructor,rd;return nd===void 0||(rd=$(nd)[td])==null?t:ed(rd)}})),require_es6_regexp_split=__commonJSMin((()=>{var e=require__is_regexp(),t=require__an_object$1(),$=require__species_constructor(),ed=require__advance_string_index(),td=require__to_length$1(),nd=require__regexp_exec_abstract(),rd=require__regexp_exec(),id=require__fails$1(),ad=Math.min,od=[].push,sd=`split`,cd=`length`,ld=`lastIndex`,ud=4294967295,dd=!id(function(){RegExp(ud,`y`)});require__fix_re_wks()(`split`,2,function(id,fd,pd,md){var hd=`abbc`[sd](/(b)*/)[1]==`c`||`test`[sd](/(?:)/,-1)[cd]!=4||`ab`[sd](/(?:ab)*/)[cd]!=2||`.`[sd](/(.?)(.?)/)[cd]!=4||`.`[sd](/()()/)[cd]>1||``[sd](/.?/)[cd]?function(t,$){var ed=String(this);if(t===void 0&&$===0)return[];if(!e(t))return pd.call(ed,t,$);for(var td=[],nd=(t.ignoreCase?`i`:``)+(t.multiline?`m`:``)+(t.unicode?`u`:``)+(t.sticky?`y`:``),id=0,ad=$===void 0?ud:$>>>0,sd=new RegExp(t.source,nd+`g`),dd,fd,md;(dd=rd.call(sd,ed))&&(fd=sd[ld],!(fd>id&&(td.push(ed.slice(id,dd.index)),dd[cd]>1&&dd.index<ed[cd]&&od.apply(td,dd.slice(1)),md=dd[0][cd],id=fd,td[cd]>=ad)));)sd[ld]===dd.index&&sd[ld]++;return id===ed[cd]?(md||!sd.test(``))&&td.push(``):td.push(ed.slice(id)),td[cd]>ad?td.slice(0,ad):td}:`0`[sd](void 0,0)[cd]?function(e,t){return e===void 0&&t===0?[]:pd.call(this,e,t)}:pd;return[function(e,t){var $=id(this),ed=e?.[fd];return ed===void 0?hd.call(String($),e,t):ed.call(e,$,t)},function(e,rd){var id=md(hd,e,this,rd,hd!==pd);if(id.done)return id.value;var od=t(e),sd=String(this),cd=$(od,RegExp),ld=od.unicode,fd=(od.ignoreCase?`i`:``)+(od.multiline?`m`:``)+(od.unicode?`u`:``)+(dd?`y`:`g`),gd=new cd(dd?od:`^(?:`+od.source+`)`,fd),_d=rd===void 0?ud:rd>>>0;if(_d===0)return[];if(sd.length===0)return nd(gd,sd)===null?[sd]:[];for(var vd=0,yd=0,bd=[];yd<sd.length;){gd.lastIndex=dd?yd:0;var xd=nd(gd,dd?sd:sd.slice(yd)),Sd;if(xd===null||(Sd=ad(td(gd.lastIndex+(dd?0:yd)),sd.length))===vd)yd=ed(sd,yd,ld);else{if(bd.push(sd.slice(vd,yd)),bd.length===_d)return bd;for(var Cd=1;Cd<=xd.length-1;Cd++)if(bd.push(xd[Cd]),bd.length===_d)return bd;yd=vd=Sd}}return bd.push(sd.slice(vd)),bd}]})})),require__an_instance=__commonJSMin(((e,t)=>{t.exports=function(e,t,$,ed){if(!(e instanceof t)||ed!==void 0&&ed in e)throw TypeError($+`: incorrect invocation!`);return e}})),require__for_of=__commonJSMin(((e,t)=>{var $=require__ctx$1(),ed=require__iter_call$1(),td=require__is_array_iter$1(),nd=require__an_object$1(),rd=require__to_length$1(),id=require_core_get_iterator_method$1(),ad={},od={},e=t.exports=function(e,t,sd,cd,ld){var ud=ld?function(){return e}:id(e),dd=$(sd,cd,t?2:1),fd=0,pd,md,hd,gd;if(typeof ud!=`function`)throw TypeError(e+` is not iterable!`);if(td(ud)){for(pd=rd(e.length);pd>fd;fd++)if(gd=t?dd(nd(md=e[fd])[0],md[1]):dd(e[fd]),gd===ad||gd===od)return gd}else for(hd=ud.call(e);!(md=hd.next()).done;)if(gd=ed(hd,dd,md.value,t),gd===ad||gd===od)return gd};e.BREAK=ad,e.RETURN=od})),require__task=__commonJSMin(((e,t)=>{var $=require__ctx$1(),ed=require__invoke(),td=require__html$1(),nd=require__dom_create$1(),rd=require__global$1(),id=rd.process,ad=rd.setImmediate,od=rd.clearImmediate,sd=rd.MessageChannel,cd=rd.Dispatch,ld=0,ud={},dd=`onreadystatechange`,fd,pd,md,hd=function(){var e=+this;if(ud.hasOwnProperty(e)){var t=ud[e];delete ud[e],t()}},gd=function(e){hd.call(e.data)};
2(!ad||!od)&&(ad=function(e){for(var t=[],$=1;arguments.length>$;)t.push(arguments[$++]);return ud[++ld]=function(){ed(typeof e==`function`?e:Function(e),t)},fd(ld),ld},od=function(e){delete ud[e]},require__cof$1()(id)==`process`?fd=function(e){id.nextTick($(hd,e,1))}:cd&&cd.now?fd=function(e){cd.now($(hd,e,1))}:sd?(pd=new sd,md=pd.port2,pd.port1.onmessage=gd,fd=$(md.postMessage,md,1)):rd.addEventListener&&typeof postMessage==`function`&&!rd.importScripts?(fd=function(e){rd.postMessage(e+``,`*`)},rd.addEventListener(`message`,gd,!1)):fd=dd in nd(`script`)?function(e){td.appendChild(nd(`script`))[dd]=function(){td.removeChild(this),hd.call(e)}}:function(e){setTimeout($(hd,e,1),0)}),t.exports={set:ad,clear:od}})),require__microtask=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__task().set,td=$.MutationObserver||$.WebKitMutationObserver,nd=$.process,rd=$.Promise,id=require__cof$1()(nd)==`process`;t.exports=function(){var e,t,ad,od=function(){var $,ed;for(id&&($=nd.domain)&&$.exit();e;){ed=e.fn,e=e.next;try{ed()}catch($){throw e?ad():t=void 0,$}}t=void 0,$&&$.enter()};if(id)ad=function(){nd.nextTick(od)};else if(td&&!($.navigator&&$.navigator.standalone)){var sd=!0,cd=document.createTextNode(``);new td(od).observe(cd,{characterData:!0}),ad=function(){cd.data=sd=!sd}}else if(rd&&rd.resolve){var ld=rd.resolve(void 0);ad=function(){ld.then(od)}}else ad=function(){ed.call($,od)};return function($){var ed={fn:$,next:void 0};t&&(t.next=ed),e||(e=ed,ad()),t=ed}}})),require__new_promise_capability=__commonJSMin(((e,t)=>{var $=require__a_function$1();function ed(e){var t,ed;this.promise=new e(function(e,$){if(t!==void 0||ed!==void 0)throw TypeError(`Bad Promise constructor`);t=e,ed=$}),this.resolve=$(t),this.reject=$(ed)}t.exports.f=function(e){return new ed(e)}})),require__perform=__commonJSMin(((e,t)=>{t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}})),require__user_agent=__commonJSMin(((e,t)=>{var $=require__global$1().navigator;t.exports=$&&$.userAgent||``})),require__promise_resolve=__commonJSMin(((e,t)=>{var $=require__an_object$1(),ed=require__is_object$1(),td=require__new_promise_capability();t.exports=function(e,t){if($(e),ed(t)&&t.constructor===e)return t;var nd=td.f(e),rd=nd.resolve;return rd(t),nd.promise}})),require__redefine_all=__commonJSMin(((e,t)=>{var $=require__redefine$1();t.exports=function(e,t,ed){for(var td in t)$(e,td,t[td],ed);return e}})),require_es6_promise=__commonJSMin((()=>{var e=require__library$1(),t=require__global$1(),$=require__ctx$1(),ed=require__classof$1(),td=require__export$1(),nd=require__is_object$1(),rd=require__a_function$1(),id=require__an_instance(),ad=require__for_of(),od=require__species_constructor(),sd=require__task().set,cd=require__microtask()(),ld=require__new_promise_capability(),ud=require__perform(),dd=require__user_agent(),fd=require__promise_resolve(),pd=`Promise`,md=t.TypeError,hd=t.process,gd=hd&&hd.versions,_d=gd&&gd.v8||``,vd=t[pd],yd=ed(hd)==`process`,bd=function(){},xd,Sd,Cd,wd,Td=Sd=ld.f,Ed=!!function(){try{var e=vd.resolve(1),t=(e.constructor={})[require__wks$1()(`species`)]=function(e){e(bd,bd)};return(yd||typeof PromiseRejectionEvent==`function`)&&e.then(bd)instanceof t&&_d.indexOf(`6.6`)!==0&&dd.indexOf(`Chrome/66`)===-1}catch{}}(),Dd=function(e){var t;return nd(e)&&typeof(t=e.then)==`function`?t:!1},Od=function(e,t){if(!e._n){e._n=!0;var $=e._c;cd(function(){for(var ed=e._v,td=e._s==1,nd=0,rd=function(t){var $=td?t.ok:t.fail,nd=t.resolve,rd=t.reject,id=t.domain,ad,od,sd;try{$?(td||(e._h==2&&jd(e),e._h=1),$===!0?ad=ed:(id&&id.enter(),ad=$(ed),id&&(id.exit(),sd=!0)),ad===t.promise?rd(md(`Promise-chain cycle`)):(od=Dd(ad))?od.call(ad,nd,rd):nd(ad)):rd(ed)}catch(e){id&&!sd&&id.exit(),rd(e)}};$.length>nd;)rd($[nd++]);e._c=[],e._n=!1,t&&!e._h&&kd(e)})}},kd=function(e){sd.call(t,function(){var $=e._v,ed=Ad(e),td,nd,rd;if(ed&&(td=ud(function(){yd?hd.emit(`unhandledRejection`,$,e):(nd=t.onunhandledrejection)?nd({promise:e,reason:$}):(rd=t.console)&&rd.error&&rd.error(`Unhandled promise rejection`,$)}),e._h=yd||Ad(e)?2:1),e._a=void 0,ed&&td.e)throw td.v})},Ad=function(e){return e._h!==1&&(e._a||e._c).length===0},jd=function(e){sd.call(t,function(){var $;yd?hd.emit(`rejectionHandled`,e):($=t.onrejectionhandled)&&$({promise:e,reason:e._v})})},Md=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||=t._c.slice(),Od(t,!0))},Nd=function(e){var t=this,ed;if(!t._d){t._d=!0,t=t._w||t;
2try{if(t===e)throw md(`Promise can't be resolved itself`);(ed=Dd(e))?cd(function(){var td={_w:t,_d:!1};try{ed.call(e,$(Nd,td,1),$(Md,td,1))}catch(e){Md.call(td,e)}}):(t._v=e,t._s=1,Od(t,!1))}catch(e){Md.call({_w:t,_d:!1},e)}}};Ed||(vd=function(e){id(this,vd,pd,`_h`),rd(e),xd.call(this);try{e($(Nd,this,1),$(Md,this,1))}catch(e){Md.call(this,e)}},xd=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},xd.prototype=require__redefine_all()(vd.prototype,{then:function(e,t){var $=Td(od(this,vd));return $.ok=typeof e==`function`?e:!0,$.fail=typeof t==`function`&&t,$.domain=yd?hd.domain:void 0,this._c.push($),this._a&&this._a.push($),this._s&&Od(this,!1),$.promise},catch:function(e){return this.then(void 0,e)}}),Cd=function(){var e=new xd;this.promise=e,this.resolve=$(Nd,e,1),this.reject=$(Md,e,1)},ld.f=Td=function(e){return e===vd||e===wd?new Cd(e):Sd(e)}),td(td.G+td.W+td.F*!Ed,{Promise:vd}),require__set_to_string_tag$1()(vd,pd),require__set_species()(pd),wd=require__core$1()[pd],td(td.S+td.F*!Ed,pd,{reject:function(e){var t=Td(this),$=t.reject;return $(e),t.promise}}),td(td.S+td.F*(e||!Ed),pd,{resolve:function(t){return fd(e&&this===wd?vd:this,t)}}),td(td.S+td.F*!(Ed&&require__iter_detect$1()(function(e){vd.all(e).catch(bd)})),pd,{all:function(e){var t=this,$=Td(t),ed=$.resolve,td=$.reject,nd=ud(function(){var $=[],nd=0,rd=1;ad(e,!1,function(e){var id=nd++,ad=!1;$.push(void 0),rd++,t.resolve(e).then(function(e){ad||(ad=!0,$[id]=e,--rd||ed($))},td)}),--rd||ed($)});return nd.e&&td(nd.v),$.promise},race:function(e){var t=this,$=Td(t),ed=$.reject,td=ud(function(){ad(e,!1,function(e){t.resolve(e).then($.resolve,ed)})});return td.e&&ed(td.v),$.promise}})})),require__validate_collection=__commonJSMin(((e,t)=>{var $=require__is_object$1();t.exports=function(e,t){if(!$(e)||e._t!==t)throw TypeError(`Incompatible receiver, `+t+` required!`);return e}})),require__collection_strong=__commonJSMin(((e,t)=>{var $=require__object_dp$1().f,ed=require__object_create$1(),td=require__redefine_all(),nd=require__ctx$1(),rd=require__an_instance(),id=require__for_of(),ad=require__iter_define$1(),od=require__iter_step$1(),sd=require__set_species(),cd=require__descriptors$1(),ld=require__meta$1().fastKey,ud=require__validate_collection(),dd=cd?`_s`:`size`,fd=function(e,t){var $=ld(t),ed;if($!==`F`)return e._i[$];for(ed=e._f;ed;ed=ed.n)if(ed.k==t)return ed};t.exports={getConstructor:function(e,t,ad,od){var sd=e(function(e,$){rd(e,sd,t,`_i`),e._t=t,e._i=ed(null),e._f=void 0,e._l=void 0,e[dd]=0,$!=null&&id($,ad,e[od],e)});return td(sd.prototype,{clear:function(){for(var e=ud(this,t),$=e._i,ed=e._f;ed;ed=ed.n)ed.r=!0,ed.p&&=ed.p.n=void 0,delete $[ed.i];e._f=e._l=void 0,e[dd]=0},delete:function(e){var $=ud(this,t),ed=fd($,e);if(ed){var td=ed.n,nd=ed.p;delete $._i[ed.i],ed.r=!0,nd&&(nd.n=td),td&&(td.p=nd),$._f==ed&&($._f=td),$._l==ed&&($._l=nd),$[dd]--}return!!ed},forEach:function(e){ud(this,t);for(var $=nd(e,arguments.length>1?arguments[1]:void 0,3),ed;ed=ed?ed.n:this._f;)for($(ed.v,ed.k,this);ed&&ed.r;)ed=ed.p},has:function(e){return!!fd(ud(this,t),e)}}),cd&&$(sd.prototype,`size`,{get:function(){return ud(this,t)[dd]}}),sd},def:function(e,t,$){var ed=fd(e,t),td,nd;return ed?ed.v=$:(e._l=ed={i:nd=ld(t,!0),k:t,v:$,p:td=e._l,n:void 0,r:!1},e._f||=ed,td&&(td.n=ed),e[dd]++,nd!==`F`&&(e._i[nd]=ed)),e},getEntry:fd,setStrong:function(e,t,$){ad(e,t,function(e,$){this._t=ud(e,t),this._k=$,this._l=void 0},function(){for(var e=this,t=e._k,$=e._l;$&&$.r;)$=$.p;return!e._t||!(e._l=$=$?$.n:e._t._f)?(e._t=void 0,od(1)):t==`keys`?od(0,$.k):t==`values`?od(0,$.v):od(0,[$.k,$.v])},$?`entries`:`values`,!$,!0),sd(t)}}})),require__collection=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__export$1(),td=require__redefine$1(),nd=require__redefine_all(),rd=require__meta$1(),id=require__for_of(),ad=require__an_instance(),od=require__is_object$1(),sd=require__fails$1(),cd=require__iter_detect$1(),ld=require__set_to_string_tag$1(),ud=require__inherit_if_required();t.exports=function(e,t,dd,fd,pd,md){var hd=$[e],gd=hd,_d=pd?`set`:`add`,vd=gd&&gd.prototype,yd={},bd=function(e){var t=vd[e];td(vd,e,e==`delete`||e==`has`?function(e){return md&&!od(e)?!1:t.call(this,e===0?0:e)}:e==`get`?function(e){return md&&!od(e)?void 0:t.call(this,e===0?0:e)}:e==`add`?function(e){return t.call(this,e===0?0:e),this}:function(e,$){return t.call(this,e===0?0:e,$),this})};if(typeof gd!=`function`||!(md||vd.forEach&&!sd(function(){new gd().entries().next()})))gd=fd.getConstructor(t,e,pd,_d),nd(gd.prototype,dd),rd.NEED=!0;else{var xd=new gd,Sd=xd[_d](md?{}:-0,1)!=xd,Cd=sd(function(){xd.has(1)}),wd=cd(function(e){new gd(e)}),Td=!md&&sd(function(){for(var e=new gd,t=5;t--;)e[_d](t,t);return!e.has(-0)});wd||(gd=t(function(t,$){ad(t,gd,e);var ed=ud(new hd,t,gd);return $!=null&&id($,pd,ed[_d],ed),ed}),gd.prototype=vd,vd.constructor=gd),(Cd||Td)&&(bd(`delete`),bd(`has`),pd&&bd(`get`)),(Td||Sd)&&bd(_d),md&&vd.clear&&delete vd.clear}return ld(gd,e),yd[e]=gd,ed(ed.G+ed.W+ed.F*(gd!=hd),yd),md||fd.setStrong(gd,e,pd),gd}})),require_es6_map=__commonJSMin(((e,t)=>{var $=require__collection_strong(),ed=require__validate_collection(),td=`Map`;
2t.exports=require__collection()(td,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=$.getEntry(ed(this,td),e);return t&&t.v},set:function(e,t){return $.def(ed(this,td),e===0?0:e,t)}},$,!0)})),require_es6_set=__commonJSMin(((e,t)=>{var $=require__collection_strong(),ed=require__validate_collection(),td=`Set`;t.exports=require__collection()(td,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return $.def(ed(this,td),e=e===0?0:e,e)}},$)})),require__collection_weak=__commonJSMin(((e,t)=>{var $=require__redefine_all(),ed=require__meta$1().getWeak,td=require__an_object$1(),nd=require__is_object$1(),rd=require__an_instance(),id=require__for_of(),ad=require__array_methods(),od=require__has$1(),sd=require__validate_collection(),cd=ad(5),ld=ad(6),ud=0,dd=function(e){return e._l||=new fd},fd=function(){this.a=[]},pd=function(e,t){return cd(e.a,function(e){return e[0]===t})};fd.prototype={get:function(e){var t=pd(this,e);if(t)return t[1]},has:function(e){return!!pd(this,e)},set:function(e,t){var $=pd(this,e);$?$[1]=t:this.a.push([e,t])},delete:function(e){var t=ld(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,td,ad){var cd=e(function(e,$){rd(e,cd,t,`_i`),e._t=t,e._i=ud++,e._l=void 0,$!=null&&id($,td,e[ad],e)});return $(cd.prototype,{delete:function(e){if(!nd(e))return!1;var $=ed(e);return $===!0?dd(sd(this,t)).delete(e):$&&od($,this._i)&&delete $[this._i]},has:function(e){if(!nd(e))return!1;var $=ed(e);return $===!0?dd(sd(this,t)).has(e):$&&od($,this._i)}}),cd},def:function(e,t,$){var nd=ed(td(t),!0);return nd===!0?dd(e).set(t,$):nd[e._i]=$,e},ufstore:dd}})),require_es6_weak_map=__commonJSMin(((e,t)=>{var $=require__global$1(),ed=require__array_methods()(0),td=require__redefine$1(),nd=require__meta$1(),rd=require__object_assign$1(),id=require__collection_weak(),ad=require__is_object$1(),od=require__validate_collection(),sd=require__validate_collection(),cd=!$.ActiveXObject&&`ActiveXObject`in $,ld=`WeakMap`,ud=nd.getWeak,dd=Object.isExtensible,fd=id.ufstore,pd,md=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},hd={get:function(e){if(ad(e)){var t=ud(e);return t===!0?fd(od(this,ld)).get(e):t?t[this._i]:void 0}},set:function(e,t){return id.def(od(this,ld),e,t)}},gd=t.exports=require__collection()(ld,md,hd,id,!0,!0);sd&&cd&&(pd=id.getConstructor(md,ld),rd(pd.prototype,hd),nd.NEED=!0,ed([`delete`,`has`,`get`,`set`],function(e){var t=gd.prototype,$=t[e];td(t,e,function(t,ed){if(ad(t)&&!dd(t)){this._f||=new pd;var td=this._f[e](t,ed);return e==`set`?this:td}return $.call(this,t,ed)})}))})),require_es6_weak_set=__commonJSMin((()=>{var e=require__collection_weak(),t=require__validate_collection(),$=`WeakSet`;require__collection()($,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(ed){return e.def(t(this,$),ed,!0)}},e,!1,!0)})),require__typed=__commonJSMin(((e,t)=>{for(var $=require__global$1(),ed=require__hide$1(),td=require__uid$1(),nd=td(`typed_array`),rd=td(`view`),id=!!($.ArrayBuffer&&$.DataView),ad=id,od=0,sd=9,cd,ld=`Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array`.split(`,`);od<sd;)(cd=$[ld[od++]])?(ed(cd.prototype,nd,!0),ed(cd.prototype,rd,!0)):ad=!1;t.exports={ABV:id,CONSTR:ad,TYPED:nd,VIEW:rd}})),require__to_index=__commonJSMin(((e,t)=>{var $=require__to_integer$1(),ed=require__to_length$1();t.exports=function(e){if(e===void 0)return 0;var t=$(e),td=ed(t);if(t!==td)throw RangeError(`Wrong length!`);return td}})),require__typed_buffer=__commonJSMin((e=>{var t=require__global$1(),$=require__descriptors$1(),ed=require__library$1(),td=require__typed(),nd=require__hide$1(),rd=require__redefine_all(),id=require__fails$1(),ad=require__an_instance(),od=require__to_integer$1(),sd=require__to_length$1(),cd=require__to_index(),ld=require__object_gopn$1().f,ud=require__object_dp$1().f,dd=require__array_fill(),fd=require__set_to_string_tag$1(),pd=`ArrayBuffer`,md=`DataView`,hd=`prototype`,gd=`Wrong length!`,_d=`Wrong index!`,vd=t[pd],yd=t[md],bd=t.Math,xd=t.RangeError,Sd=t.Infinity,Cd=vd,wd=bd.abs,Td=bd.pow,Ed=bd.floor,Dd=bd.log,Od=bd.LN2,kd=`buffer`,Ad=`byteLength`,jd=`byteOffset`,Md=$?`_b`:kd,Nd=$?`_l`:Ad,Pd=$?`_o`:jd;function Fd(e,t,$){var ed=Array($),td=$*8-t-1,nd=(1<<td)-1,rd=nd>>1,id=t===23?Td(2,-24)-Td(2,-77):0,ad=0,od=+(e<0||e===0&&1/e<0),sd,cd,ld;for(e=wd(e),e!=e||e===Sd?(cd=e==e?0:1,sd=nd):(sd=Ed(Dd(e)/Od),e*(ld=Td(2,-sd))<1&&(sd--,ld*=2),sd+rd>=1?e+=id/ld:e+=id*Td(2,1-rd),e*ld>=2&&(sd++,ld/=2),sd+rd>=nd?(cd=0,sd=nd):sd+rd>=1?(cd=(e*ld-1)*Td(2,t),sd+=rd):(cd=e*Td(2,rd-1)*Td(2,t),sd=0));t>=8;ed[ad++]=cd&255,cd/=256,t-=8);for(sd=sd<<t|cd,td+=t;td>0;ed[ad++]=sd&255,sd/=256,td-=8);return ed[--ad]|=od*128,ed}function Id(e,t,$){var ed=$*8-t-1,td=(1<<ed)-1,nd=td>>1,rd=ed-7,id=$-1,ad=e[id--],od=ad&127,sd;for(ad>>=7;rd>0;od=od*256+e[id],id--,rd-=8);for(sd=od&(1<<-rd)-1,od>>=-rd,rd+=t;rd>0;sd=sd*256+e[id],id--,rd-=8);if(od===0)od=1-nd;else if(od===td)return sd?NaN:ad?-Sd:Sd;else sd+=Td(2,t),od-=nd;return(ad?-1:1)*sd*Td(2,od-t)}function Ld(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function Rd(e){return[e&255]}function zd(e){return[e&255,e>>
28&255]}function Bd(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]}function Vd(e){return Fd(e,52,8)}function Hd(e){return Fd(e,23,4)}function Ud(e,t,$){ud(e[hd],t,{get:function(){return this[$]}})}function Wd(e,t,$,ed){var td=cd(+$);if(td+t>e[Nd])throw xd(_d);var nd=e[Md]._b,rd=td+e[Pd],id=nd.slice(rd,rd+t);return ed?id:id.reverse()}function Gd(e,t,$,ed,td,nd){var rd=cd(+$);if(rd+t>e[Nd])throw xd(_d);for(var id=e[Md]._b,ad=rd+e[Pd],od=ed(+td),sd=0;sd<t;sd++)id[ad+sd]=od[nd?sd:t-sd-1]}if(!td.ABV)vd=function(e){ad(this,vd,pd);var t=cd(e);this._b=dd.call(Array(t),0),this[Nd]=t},yd=function(e,t,$){ad(this,yd,md),ad(e,vd,md);var ed=e[Nd],td=od(t);if(td<0||td>ed)throw xd(`Wrong offset!`);if($=$===void 0?ed-td:sd($),td+$>ed)throw xd(gd);this[Md]=e,this[Pd]=td,this[Nd]=$},$&&(Ud(vd,Ad,`_l`),Ud(yd,kd,`_b`),Ud(yd,Ad,`_l`),Ud(yd,jd,`_o`)),rd(yd[hd],{getInt8:function(e){return Wd(this,1,e)[0]<<24>>24},getUint8:function(e){return Wd(this,1,e)[0]},getInt16:function(e){var t=Wd(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Wd(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Ld(Wd(this,4,e,arguments[1]))},getUint32:function(e){return Ld(Wd(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return Id(Wd(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return Id(Wd(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Gd(this,1,e,Rd,t)},setUint8:function(e,t){Gd(this,1,e,Rd,t)},setInt16:function(e,t){Gd(this,2,e,zd,t,arguments[2])},setUint16:function(e,t){Gd(this,2,e,zd,t,arguments[2])},setInt32:function(e,t){Gd(this,4,e,Bd,t,arguments[2])},setUint32:function(e,t){Gd(this,4,e,Bd,t,arguments[2])},setFloat32:function(e,t){Gd(this,4,e,Hd,t,arguments[2])},setFloat64:function(e,t){Gd(this,8,e,Vd,t,arguments[2])}});else{if(!id(function(){vd(1)})||!id(function(){new vd(-1)})||id(function(){return new vd,new vd(1.5),new vd(NaN),vd.name!=pd})){vd=function(e){return ad(this,vd),new Cd(cd(e))};for(var Kd=vd[hd]=Cd[hd],qd=ld(Cd),Jd=0,Yd;qd.length>Jd;)(Yd=qd[Jd++])in vd||nd(vd,Yd,Cd[Yd]);ed||(Kd.constructor=vd)}var Xd=new yd(new vd(2)),Zd=yd[hd].setInt8;Xd.setInt8(0,2147483648),Xd.setInt8(1,2147483649),(Xd.getInt8(0)||!Xd.getInt8(1))&&rd(yd[hd],{setInt8:function(e,t){Zd.call(this,e,t<<24>>24)},setUint8:function(e,t){Zd.call(this,e,t<<24>>24)}},!0)}fd(vd,pd),fd(yd,md),nd(yd[hd],td.VIEW,!0),e[pd]=vd,e[md]=yd})),require_es6_typed_array_buffer=__commonJSMin((()=>{var e=require__export$1(),t=require__typed(),$=require__typed_buffer(),ed=require__an_object$1(),td=require__to_absolute_index$1(),nd=require__to_length$1(),rd=require__is_object$1(),id=require__global$1().ArrayBuffer,ad=require__species_constructor(),od=$.ArrayBuffer,sd=$.DataView,cd=t.ABV&&id.isView,ld=od.prototype.slice,ud=t.VIEW,dd=`ArrayBuffer`;e(e.G+e.W+e.F*(id!==od),{ArrayBuffer:od}),e(e.S+e.F*!t.CONSTR,dd,{isView:function(e){return cd&&cd(e)||rd(e)&&ud in e}}),e(e.P+e.U+e.F*require__fails$1()(function(){return!new od(2).slice(1,void 0).byteLength}),dd,{slice:function(e,t){if(ld!==void 0&&t===void 0)return ld.call(ed(this),e);for(var $=ed(this).byteLength,rd=td(e,$),id=td(t===void 0?$:t,$),cd=new(ad(this,od))(nd(id-rd)),ud=new sd(this),dd=new sd(cd),fd=0;rd<id;)dd.setUint8(fd++,ud.getUint8(rd++));return cd}}),require__set_species()(dd)})),require_es6_typed_data_view=__commonJSMin((()=>{var e=require__export$1();e(e.G+e.W+e.F*!require__typed().ABV,{DataView:require__typed_buffer().DataView})})),require__typed_array=__commonJSMin(((e,t)=>{if(require__descriptors$1()){var $=require__library$1(),ed=require__global$1(),td=require__fails$1(),nd=require__export$1(),rd=require__typed(),id=require__typed_buffer(),ad=require__ctx$1(),od=require__an_instance(),sd=require__property_desc$1(),cd=require__hide$1(),ld=require__redefine_all(),ud=require__to_integer$1(),dd=require__to_length$1(),fd=require__to_index(),pd=require__to_absolute_index$1(),md=require__to_primitive$1(),hd=require__has$1(),gd=require__classof$1(),_d=require__is_object$1(),vd=require__to_object$1(),yd=require__is_array_iter$1(),bd=require__object_create$1(),xd=require__object_gpo$1(),Sd=require__object_gopn$1().f,Cd=require_core_get_iterator_method$1(),wd=require__uid$1(),Td=require__wks$1(),Ed=require__array_methods(),Dd=require__array_includes$1(),Od=require__species_constructor(),kd=require_es6_array_iterator$1(),Ad=require__iterators$1(),jd=require__iter_detect$1(),Md=require__set_species(),Nd=require__array_fill(),Pd=require__array_copy_within(),Fd=require__object_dp$1(),Id=require__object_gopd$1(),Ld=Fd.f,Rd=Id.f,zd=ed.RangeError,Bd=ed.TypeError,Vd=ed.Uint8Array,Hd=`ArrayBuffer`,Ud=`Shared`+Hd,Wd=`BYTES_PER_ELEMENT`,Gd=`prototype`,Kd=Array[Gd],qd=id.ArrayBuffer,Jd=id.DataView,Yd=Ed(0),Xd=Ed(2),Zd=Ed(3),Qd=Ed(4),$d=Ed(5),ef=Ed(6),tf=Dd(!0),nf=Dd(!1),rf=kd.values,af=kd.keys,of=kd.entries,sf=Kd.lastIndexOf,cf=Kd.reduce,lf=Kd.reduceRight,uf=Kd.join,df=Kd.sort,ff=Kd.slice,pf=Kd.toString,mf=Kd.toLocaleStr
2ing,hf=Td(`iterator`),gf=Td(`toStringTag`),_f=wd(`typed_constructor`),vf=wd(`def_constructor`),yf=rd.CONSTR,bf=rd.TYPED,xf=rd.VIEW,Sf=`Wrong length!`,Cf=Ed(1,function(e,t){return Of(Od(e,e[vf]),t)}),wf=td(function(){return new Vd(new Uint16Array([1]).buffer)[0]===1}),Tf=!!Vd&&!!Vd[Gd].set&&td(function(){new Vd(1).set({})}),Ef=function(e,t){var $=ud(e);if($<0||$%t)throw zd(`Wrong offset!`);return $},Df=function(e){if(_d(e)&&bf in e)return e;throw Bd(e+` is not a typed array!`)},Of=function(e,t){if(!(_d(e)&&_f in e))throw Bd(`It is not a typed array constructor!`);return new e(t)},kf=function(e,t){return Af(Od(e,e[vf]),t)},Af=function(e,t){for(var $=0,ed=t.length,td=Of(e,ed);ed>$;)td[$]=t[$++];return td},jf=function(e,t,$){Ld(e,t,{get:function(){return this._d[$]}})},Mf=function(e){var t=vd(e),$=arguments.length,ed=$>1?arguments[1]:void 0,td=ed!==void 0,nd=Cd(t),rd,id,od,sd,cd,ld;if(nd!=null&&!yd(nd)){for(ld=nd.call(t),od=[],rd=0;!(cd=ld.next()).done;rd++)od.push(cd.value);t=od}for(td&&$>2&&(ed=ad(ed,arguments[2],2)),rd=0,id=dd(t.length),sd=Of(this,id);id>rd;rd++)sd[rd]=td?ed(t[rd],rd):t[rd];return sd},Nf=function(){for(var e=0,t=arguments.length,$=Of(this,t);t>e;)$[e]=arguments[e++];return $},Pf=!!Vd&&td(function(){mf.call(new Vd(1))}),Ff=function(){return mf.apply(Pf?ff.call(Df(this)):Df(this),arguments)},If={copyWithin:function(e,t){return Pd.call(Df(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Qd(Df(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return Nd.apply(Df(this),arguments)},filter:function(e){return kf(this,Xd(Df(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $d(Df(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ef(Df(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Yd(Df(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return nf(Df(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return tf(Df(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return uf.apply(Df(this),arguments)},lastIndexOf:function(e){return sf.apply(Df(this),arguments)},map:function(e){return Cf(Df(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return cf.apply(Df(this),arguments)},reduceRight:function(e){return lf.apply(Df(this),arguments)},reverse:function(){for(var e=this,t=Df(e).length,$=Math.floor(t/2),ed=0,td;ed<$;)td=e[ed],e[ed++]=e[--t],e[t]=td;return e},some:function(e){return Zd(Df(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return df.call(Df(this),e)},subarray:function(e,t){var $=Df(this),ed=$.length,td=pd(e,ed);return new(Od($,$[vf]))($.buffer,$.byteOffset+td*$.BYTES_PER_ELEMENT,dd((t===void 0?ed:pd(t,ed))-td))}},Lf=function(e,t){return kf(this,ff.call(Df(this),e,t))},Rf=function(e){Df(this);var t=Ef(arguments[1],1),$=this.length,ed=vd(e),td=dd(ed.length),nd=0;if(td+t>$)throw zd(Sf);for(;nd<td;)this[t+nd]=ed[nd++]},zf={entries:function(){return of.call(Df(this))},keys:function(){return af.call(Df(this))},values:function(){return rf.call(Df(this))}},Bf=function(e,t){return _d(e)&&e[bf]&&typeof t!=`symbol`&&t in e&&String(+t)==String(t)},Vf=function(e,t){return Bf(e,t=md(t,!0))?sd(2,e[t]):Rd(e,t)},Hf=function(e,t,$){return Bf(e,t=md(t,!0))&&_d($)&&hd($,`value`)&&!hd($,`get`)&&!hd($,`set`)&&!$.configurable&&(!hd($,`writable`)||$.writable)&&(!hd($,`enumerable`)||$.enumerable)?(e[t]=$.value,e):Ld(e,t,$)};yf||(Id.f=Vf,Fd.f=Hf),nd(nd.S+nd.F*!yf,`Object`,{getOwnPropertyDescriptor:Vf,defineProperty:Hf}),td(function(){pf.call({})})&&(pf=mf=function(){return uf.call(this)});var Uf=ld({},If);ld(Uf,zf),cd(Uf,hf,zf.values),ld(Uf,{slice:Lf,set:Rf,constructor:function(){},toString:pf,toLocaleString:Ff}),jf(Uf,`buffer`,`b`),jf(Uf,`byteOffset`,`o`),jf(Uf,`byteLength`,`l`),jf(Uf,`length`,`e`),Ld(Uf,gf,{get:function(){return this[bf]}}),t.exports=function(e,t,id,ad){ad=!!ad;var sd=e+(ad?`Clamped`:``)+`Array`,ld=`get`+e,ud=`set`+e,pd=ed[sd],md=pd||{},hd=pd&&xd(pd),vd=!pd||!rd.ABV,yd={},Cd=pd&&pd[Gd],wd=function(e,$){var ed=e._d;return ed.v[ld]($*t+ed.o,wf)},Td=function(e,$,ed){var td=e._d;ad&&(ed=(ed=Math.round(ed))<0?0:ed>255?255:ed&255),td.v[ud]($*t+td.o,ed,wf)},Ed=function(e,t){Ld(e,t,{get:function(){return wd(this,t)}
2,set:function(e){return Td(this,t,e)},enumerable:!0})};vd?(pd=id(function(e,$,ed,td){od(e,pd,sd,`_d`);var nd=0,rd=0,id,ad,ld,ud;if(!_d($))ld=fd($),ad=ld*t,id=new qd(ad);else if($ instanceof qd||(ud=gd($))==Hd||ud==Ud){id=$,rd=Ef(ed,t);var md=$.byteLength;if(td===void 0){if(md%t||(ad=md-rd,ad<0))throw zd(Sf)}else if(ad=dd(td)*t,ad+rd>md)throw zd(Sf);ld=ad/t}else if(bf in $)return Af(pd,$);else return Mf.call(pd,$);for(cd(e,`_d`,{b:id,o:rd,l:ad,e:ld,v:new Jd(id)});nd<ld;)Ed(e,nd++)}),Cd=pd[Gd]=bd(Uf),cd(Cd,`constructor`,pd)):(!td(function(){pd(1)})||!td(function(){new pd(-1)})||!jd(function(e){new pd,new pd(null),new pd(1.5),new pd(e)},!0))&&(pd=id(function(e,$,ed,td){od(e,pd,sd);var nd;return _d($)?$ instanceof qd||(nd=gd($))==Hd||nd==Ud?td===void 0?ed===void 0?new md($):new md($,Ef(ed,t)):new md($,Ef(ed,t),td):bf in $?Af(pd,$):Mf.call(pd,$):new md(fd($))}),Yd(hd===Function.prototype?Sd(md):Sd(md).concat(Sd(hd)),function(e){e in pd||cd(pd,e,md[e])}),pd[Gd]=Cd,$||(Cd.constructor=pd));var Dd=Cd[hf],Od=!!Dd&&(Dd.name==`values`||Dd.name==null),kd=zf.values;cd(pd,_f,!0),cd(Cd,bf,sd),cd(Cd,xf,!0),cd(Cd,vf,pd),(ad?new pd(1)[gf]!=sd:!(gf in Cd))&&Ld(Cd,gf,{get:function(){return sd}}),yd[sd]=pd,nd(nd.G+nd.W+nd.F*(pd!=md),yd),nd(nd.S,sd,{BYTES_PER_ELEMENT:t}),nd(nd.S+nd.F*td(function(){md.of.call(pd,1)}),sd,{from:Mf,of:Nf}),Wd in Cd||cd(Cd,Wd,t),nd(nd.P,sd,If),Md(sd),nd(nd.P+nd.F*Tf,sd,{set:Rf}),nd(nd.P+nd.F*!Od,sd,zf),!$&&Cd.toString!=pf&&(Cd.toString=pf),nd(nd.P+nd.F*td(function(){new pd(1).slice()}),sd,{slice:Lf}),nd(nd.P+nd.F*(td(function(){return[1,2].toLocaleString()!=new pd([1,2]).toLocaleString()})||!td(function(){Cd.toLocaleString.call([1,2])})),sd,{toLocaleString:Ff}),Ad[sd]=Od?Dd:kd,!$&&!Od&&cd(Cd,hf,kd)}}else t.exports=function(){}})),require_es6_typed_int8_array=__commonJSMin((()=>{require__typed_array()(`Int8`,1,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_uint8_array=__commonJSMin((()=>{require__typed_array()(`Uint8`,1,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_uint8_clamped_array=__commonJSMin((()=>{require__typed_array()(`Uint8`,1,function(e){return function(t,$,ed){return e(this,t,$,ed)}},!0)})),require_es6_typed_int16_array=__commonJSMin((()=>{require__typed_array()(`Int16`,2,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_uint16_array=__commonJSMin((()=>{require__typed_array()(`Uint16`,2,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_int32_array=__commonJSMin((()=>{require__typed_array()(`Int32`,4,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_uint32_array=__commonJSMin((()=>{require__typed_array()(`Uint32`,4,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_float32_array=__commonJSMin((()=>{require__typed_array()(`Float32`,4,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_typed_float64_array=__commonJSMin((()=>{require__typed_array()(`Float64`,8,function(e){return function(t,$,ed){return e(this,t,$,ed)}})})),require_es6_reflect_apply=__commonJSMin((()=>{var e=require__export$1(),t=require__a_function$1(),$=require__an_object$1(),ed=(require__global$1().Reflect||{}).apply,td=Function.apply;e(e.S+e.F*!require__fails$1()(function(){ed(function(){})}),`Reflect`,{apply:function(e,nd,rd){var id=t(e),ad=$(rd);return ed?ed(id,nd,ad):td.call(id,nd,ad)}})})),require_es6_reflect_construct=__commonJSMin((()=>{var e=require__export$1(),t=require__object_create$1(),$=require__a_function$1(),ed=require__an_object$1(),td=require__is_object$1(),nd=require__fails$1(),rd=require__bind(),id=(require__global$1().Reflect||{}).construct,ad=nd(function(){function e(){}return!(id(function(){},[],e)instanceof e)}),od=!nd(function(){id(function(){})});e(e.S+e.F*(ad||od),`Reflect`,{construct:function(e,nd){$(e),ed(nd);var sd=arguments.length<3?e:$(arguments[2]);if(od&&!ad)return id(e,nd,sd);if(e==sd){switch(nd.length){case 0:return new e;case 1:return new e(nd[0]);case 2:return new e(nd[0],nd[1]);case 3:return new e(nd[0],nd[1],nd[2]);case 4:return new e(nd[0],nd[1],nd[2],nd[3])}var cd=[null];return cd.push.apply(cd,nd),new(rd.apply(e,cd))}var ld=sd.prototype,ud=t(td(ld)?ld:Object.prototype),dd=Function.apply.call(e,ud,nd);return td(dd)?dd:ud}})})),require_es6_reflect_define_property=__commonJSMin((()=>{var e=require__object_dp$1(),t=require__export$1(),$=require__an_object$1(),ed=require__to_primitive$1();t(t.S+t.F*require__fails$1()(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),`Reflect`,{defineProperty:function(t,td,nd){$(t),td=ed(td,!0),$(nd);try{return e.f(t,td,nd),!0}catch{return!1}}})})),require_es6_reflect_delete_property=__commonJSMin((()=>{var e=require__export$1(),t=require__object_gopd$1().f,$=require__an_object$1();e(e.S,`Reflect`,{deleteProperty:function(e,ed){var td=t($(e),ed);return td&&!td.configurable?!1:delete e[ed]}})})),require_es6_reflect_enumerate=__commonJSMin((()=>{var e=require__export$1(),t=require__an_object$1(),$=function(e){this._t=t(e),this._i=0;var $=this._k=[],ed;for(ed in e)$.push(ed)};require__iter_create$1()($,`Object`,function(){var e=this,t=e._k,$;do if(e._i>=t.length)return{value:void 0,done:!0};while(!(($=t[e._i++])in e._t));return{value:$,done:!1}}),e(e.S,`Reflect`,{enumerate:function(e){return new $(e)}})})),require_es6_reflect_get=__commonJSMin((()=>{var e=require__object_gopd$1(),t=require__object_gpo$1(),$=require__has$1(),ed=require__export$1(),td=require__is_object$1(),nd=require__an_object$1();function rd(ed,id){var ad=arguments.length<3?ed:arguments[2],od,sd;if(nd(ed)===ad)return ed[id];if(od=e.f(ed,id))return $(od,`value`)?od.value:od.get===void 0?void 0:od.get.call(ad);if(td(sd=t(ed)))return rd(sd,id,ad)}ed(ed.S,`Reflect`,{get:rd})})),require_es6_reflect_get_own_property_descriptor=__commonJSMin((()=>{var e=require__object_gopd$1(),t=require__export$1(),$=require__an_object$1();t(t.S,`Reflect`,{getOwnPropertyDescriptor:function(t,ed){return e.f($(t),ed)}})})),require_es6_reflect_get_prototype_of=__commonJSMin((()=>{var e=require__export$1(),t=require__object_gpo$1(),$=require__an_object$1();e(e.S,`Reflect`,{getPrototypeOf:function(e){return t($(e))}})})),require_es6_reflect_has=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Reflect`,{has:function(e,t){return t in e}})})),require_es6_reflect_is_extensible=__commonJSMin((()=>{var e=require__export$1(),t=require__an_object$1(),$=Object.isExtensible;e(e.S,`Reflect`,{isExtensible:function(e){return t(e),$?$(e):!0}})})),require__own_keys=__commonJSMin(((e,t)=>{var $=require__object_gopn$1(),ed=require__object_gops$1(),td=require__an_object$1(),nd=require__global$1().Reflect;t.exports=nd&&nd.ownKeys||function(e){var t=$.f(td(e)),nd=ed.f;return nd?t.concat(nd(e)):t}})),require_es6_reflect_own_keys=__commonJSMin((()=>{var e=require__export$1();e(e.S,`Reflect`,{ownKeys:require__own_keys()})})),require_es6_reflect_prevent_extensions=__commonJSMin((()=>{var e=require__export$1(),t=require__an_object$1(),$=Object.preventExtensions;e(e.S,`Reflect`,{preventExtensions:function(e){t(e);try{return $&&$(e),!0}catch{return!1}}})})),require_es6_reflect_set=__commonJSMin((()=>{var e=require__object_dp$1(),t=require__object_gopd$1(),$=require__object_gpo$1(),ed=require__has$1(),td=require__export$1(),nd=require__property_desc$1(),rd=require__an_object$1(),id=require__is_object$1();function ad(td,od,sd){var cd=arguments.length<4?td:arguments[3],ld=t.f(rd(td),od),ud,dd;if(!ld){if(id(dd=$(td)))return ad(dd,od,sd,cd);ld=nd(0)}if(ed(ld,`value`)){if(ld.writable===!1||!id(cd))return!1;if(ud=t.f(cd,od)){if(ud.get||ud.set||ud.writable===!1)return!1;ud.value=sd,e.f(cd,od,ud)}else e.f(cd,od,nd(0,sd));return!0}return ld.set===void 0?!1:(ld.set.call(cd,sd),!0)}td(td.S,`Reflect`,{set:ad})})),require_es6_reflect_set_prototype_of=__commonJSMin((()=>{var e=require__export$1(),t=require__set_proto$1();t&&e(e.S,`Reflect`,{setPrototypeOf:function(e,$){t.check(e,$);try{return t.set(e,$),!0}catch{return!1}}})})),require_es6=__commonJSMin(((e,t)=>{require_es6_symbol$1(),require_es6_object_create$1(),require_es6_object_define_property$1(),require_es6_object_define_properties(),require_es6_object_get_own_property_descriptor(),require_es6_object_get_prototype_of$1(),require_es6_object_keys(),require_es6_object_get_own_property_names(),require_es6_object_freeze(),require_es6_object_seal(),require_es6_object_prevent_extensions(),require_es6_object_is_frozen(),require_es6_object_is_sealed(),require_es6_object_is_extensible(),require_es6_object_assign$1(),require_es6_object_is(),require_es6_object_set_prototype_of$1(),require_es6_object_to_string$1(),require_es6_function_bind(),require_es6_function_name(),require_es6_function_has_instance(),require_es6_parse_int(),require_es6_parse_float(),require_es6_number_constructor(),require_es6_number_to_fixed(),require_es6_number_to_precision(),require_es6_number_epsilon(),require_es6_number_is_finite(),require_es6_number_is_integer(),require_es6_number_is_nan(),require_es6_number_is_safe_integer(),require_es6_number_max_safe_integer(),require_es6_number_min_safe_integer(),require_es6_number_parse_float(),require_es6_number_parse_int(),require_es6_math_acosh(),require_es6_math_asinh(),require_es6_math_atanh(),require_es6_math_cbrt(),require_es6_math_clz32(),require_es6_math_cosh(),require_es6_math_expm1(),require_es6_math_fround(),require_es6_math_hypot(),require_es6_math_imul(),require_es6_math_log10(),require_es6_math_log1p(),require_es6_math_log2(),require_es6_math_sign(),require_es6_math_sinh(),require_es6_math_tanh(),require_es6_math_trunc(),require_es6_string_from_code_point(),require_es6_string_raw(),require_es6_string_trim(),require_es6_string_iterator$1(),require_es6_string_code_point_at(),require_es6_string_ends_with(),require_es6_string_includes(),require_es6_string_repeat(),require_es6_string_starts_with(),require_es6_string_anchor(),require_es6_string_big(),require_es6_string_blink(),require_es6_string_bold(),require_es6_string_fixed(),require_es6_string_fontcolor(),require_es6_string_fontsize(),require_es6_string_italics(),require_es6_string_link(),require_es6_string_small(),require_es6_string_strike(),require_es6_string_sub(),require_es6_string_sup(),require_es6_date_now(),require_es6_date_to_json(),require_es6_date_to_iso_string(),require_es6_date_to_string(),require_es6_date_to_primitive(),require_es6_array_is_array(),require_es6_array_from$1(),require_es6_array_of(),require_es6_array_join(),require_es6_array_slice(),require_es6_array_sort(),require_es6_array_for_each(),require_es6_array_map(),require_es6_array_filter(),require_es6_array_some(),require_es6_array_every(),require_es6_array_reduce(),require_es6_array_reduce_right(),require_es6_array_index_of(),require_es6_array_last_index_of(),require_es6_array_copy_within(),require_es6_array_fill(),require_es6_array_find(),require_es6_array_find_index(),require_es6_array_species(),require_es6_array_iterator$1(),require_es6_regexp_constructor(),require_es6_regexp_exec(),require_es6_regexp_to_string(),require_es6_regexp_flags(),require_es6_regexp_match(),require_es6_regexp_replace(),require_es6_regexp_search(),require_es6_regexp_split(),require_es6_promise(),require_es6_map(),require_es6_set(),require_es6_weak_map(),require_es6_weak_set(),require_es6_typed_array_buffer(),require_es6_typed_data_view(),require_es6_typed_int8_array(),require_es6_typed_uint8_array(),require_es6_typed_uint8_clamped_array(),require_es6_typed_int16_array(),require_es6_typed_uint16_array(),require_es6_typed_int32_array(),require_es6_typed_uint32_array(),require_es6_typed_float32_array(),require_es6_typed_float64_array(),require_es6_reflect_apply(),require_es6_reflect_construct(),require_es6_reflect_define_property(),require_es6_reflect_delete_property(),require_es6_reflect_enumerate(),require_es6_reflect_get(),require_es6_reflect_get_own_property_descriptor(),require_es6_reflect_get_prototype_of(),require_es6_reflect_has(),require_es6_reflect_is_extensible(),require_es6_reflect_own_keys(),require_es6_reflect_prevent_extensions(),require_es6_reflect_set(),require_es6_reflect_set_prototype_of(),t.exports=require__core$1()})),require_es7_array_includes=__commonJSMin((()=>{var e=require__export$1(),t=require__array_includes$1()(!0);e(e.P,`Array`,{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),require__add_to_unscopables$1()(`includes`)})),require_includes=__commonJSMin(((e,t)=>{require_es7_array_includes(),t.exports=require__core$1().Array.includes})),require__flatten_into_array=__commonJSMin(((e,t)=>{var $=require__is_array$1(),ed=require__is_object$1(),td=require__to_length$1(),nd=require__ctx$1(),rd=require__wks$1()(`isConcatSpreadable`);function id(e,t,ad,od,sd,cd,ld,ud){for(var dd=sd,fd=0,pd=ld?nd(ld,ud,3):!1,md,hd;fd<od;){if(fd in ad){if(md=pd?pd(ad[fd],fd,t):ad[fd],hd=!1,ed(md)&&(hd=md[rd],hd=hd===void 0?$(md):!!hd),hd&&cd>0)dd=id(e,t,md,td(md.length),dd,cd-1)-1;else{if(dd>=9007199254740991)throw TypeError();e[dd]=md}dd++}fd++}return dd}t.exports=id})),require_es7_array_flat_map=__commonJSMin((()=>{var e=require__export$1(),t=require__flatten_into_array(),$=require__to_object$1(),ed=require__to_length$1(),td=require__a_function$1(),nd=require__array_species_create();e(e.P,`Array`,{flatMap:function(e){var rd=$(this),id,ad;return td(e),id=ed(rd.length),ad=nd(rd,0),t(ad,rd,rd,id,0,1,e,arguments[1]),ad}}),require__add_to_unscopables$1()(`flatMap`)})),require_flat_map=__commonJSMin(((e,t)=>{require_es7_array_flat_map(),t.exports=require__core$1().Array.flatMap})),require__string_pad=__commonJSMin(((e,t)=>{var $=require__to_length$1(),ed=require__string_repeat(),td=require__defined$1();t.exports=function(e,t,nd,rd){var id=String(td(e)),ad=id.length,od=nd===void 0?` `:String(nd),sd=$(t);if(sd<=ad||od==``)return id;var cd=sd-ad,ld=ed.call(od,Math.ceil(cd/od.length));return ld.length>cd&&(ld=ld.slice(0,cd)),rd?ld+id:id+ld}})),require_es7_string_pad_start=__commonJSMin((()=>{var e=require__export$1(),t=require__string_pad(),$=require__user_agent(),ed=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test($);e(e.P+e.F*ed,`String`,{padStart:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0,!0)}})})),require_pad_start=__commonJSMin(((e,t)=>{require_es7_string_pad_start(),t.exports=require__core$1().String.padStart})),require_es7_string_pad_end=__commonJSMin((()=>{var e=require__export$1(),t=require__string_pad(),$=require__user_agent(),ed=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test($);e(e.P+e.F*ed,`String`,{padEnd:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0,!1)}})})),require_pad_end=__commonJSMin(((e,t)=>{require_es7_string_pad_end(),t.exports=require__core$1().String.padEnd})),require_es7_string_trim_left=__commonJSMin((()=>{require__string_trim()(`trimLeft`,function(e){return function(){return e(this,1)}},`trimStart`)})),require_trim_start=__commonJSMin(((e,t)=>{require_es7_string_trim_left(),t.exports=require__core$1().String.trimLeft})),require_es7_string_trim_right=__commonJSMin((()=>{require__string_trim()(`trimRight`,function(e){return function(){return e(this,2)}},`trimEnd`)})),require_trim_end=__commonJSMin(((e,t)=>{require_es7_string_trim_right(),t.exports=require__core$1().String.trimRight})),require_es7_symbol_async_iterator$1=__commonJSMin((()=>{require__wks_define$1()(`asyncIterator`)})),require_async_iterator$1=__commonJSMin(((e,t)=>{require_es7_symbol_async_iterator$1(),t.exports=require__wks_ext$1().f(`asyncIterator`)})),require_es7_object_get_own_property_descriptors=__commonJSMin((()=>{var e=require__export$1(),t=require__own_keys(),$=require__to_iobject$1(),ed=require__object_gopd$1(),td=require__create_property$1();e(e.S,`Object`,{getOwnPropertyDescriptors:function(e){for(var nd=$(e),rd=ed.f,id=t(nd),ad={},od=0,sd,cd;id.length>od;)cd=rd(nd,sd=id[od++]),cd!==void 0&&td(ad,sd,cd);return ad}})})),require_get_own_property_descriptors=__commonJSMin(((e,t)=>{require_es7_object_get_own_property_descriptors(),t.exports=require__core$1().Object.getOwnPropertyDescriptors})),require__object_to_array=__commonJSMin(((e,t)=>{var $=require__descriptors$1(),ed=require__object_keys$1(),td=require__to_iobject$1(),nd=require__object_pie$1().f;
2t.exports=function(e){return function(t){for(var rd=td(t),id=ed(rd),ad=id.length,od=0,sd=[],cd;ad>od;)cd=id[od++],(!$||nd.call(rd,cd))&&sd.push(e?[cd,rd[cd]]:rd[cd]);return sd}}})),require_es7_object_values=__commonJSMin((()=>{var e=require__export$1(),t=require__object_to_array()(!1);e(e.S,`Object`,{values:function(e){return t(e)}})})),require_values=__commonJSMin(((e,t)=>{require_es7_object_values(),t.exports=require__core$1().Object.values})),require_es7_object_entries=__commonJSMin((()=>{var e=require__export$1(),t=require__object_to_array()(!0);e(e.S,`Object`,{entries:function(e){return t(e)}})})),require_entries=__commonJSMin(((e,t)=>{require_es7_object_entries(),t.exports=require__core$1().Object.entries})),require_es7_promise_finally=__commonJSMin((()=>{var e=require__export$1(),t=require__core$1(),$=require__global$1(),ed=require__species_constructor(),td=require__promise_resolve();e(e.P+e.R,`Promise`,{finally:function(e){var nd=ed(this,t.Promise||$.Promise),rd=typeof e==`function`;return this.then(rd?function(t){return td(nd,e()).then(function(){return t})}:e,rd?function(t){return td(nd,e()).then(function(){throw t})}:e)}})})),require_finally=__commonJSMin(((e,t)=>{require_es6_promise(),require_es7_promise_finally(),t.exports=require__core$1().Promise.finally})),require_web_timers=__commonJSMin((()=>{var e=require__global$1(),t=require__export$1(),$=require__user_agent(),ed=[].slice,td=/MSIE .\./.test($),nd=function(e){return function(t,$){var td=arguments.length>2,nd=td?ed.call(arguments,2):!1;return e(td?function(){(typeof t==`function`?t:Function(t)).apply(this,nd)}:t,$)}};t(t.G+t.B+t.F*td,{setTimeout:nd(e.setTimeout),setInterval:nd(e.setInterval)})})),require_web_immediate=__commonJSMin((()=>{var e=require__export$1(),t=require__task();e(e.G+e.B,{setImmediate:t.set,clearImmediate:t.clear})})),require_web_dom_iterable$1=__commonJSMin((()=>{for(var e=require_es6_array_iterator$1(),t=require__object_keys$1(),$=require__redefine$1(),ed=require__global$1(),td=require__hide$1(),nd=require__iterators$1(),rd=require__wks$1(),id=rd(`iterator`),ad=rd(`toStringTag`),od=nd.Array,sd={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},cd=t(sd),ld=0;ld<cd.length;ld++){var ud=cd[ld],dd=sd[ud],fd=ed[ud],pd=fd&&fd.prototype,md;if(pd&&(pd[id]||td(pd,id,od),pd[ad]||td(pd,ad,ud),nd[ud]=od,dd))for(md in e)pd[md]||$(pd,md,e[md],!0)}})),require_web=__commonJSMin(((e,t)=>{require_web_timers(),require_web_immediate(),require_web_dom_iterable$1(),t.exports=require__core$1()})),require_runtime=__commonJSMin(((e,t)=>{var $=function(e){var t=Object.prototype,$=t.hasOwnProperty,ed=Object.defineProperty||function(e,t,$){e[t]=$.value},td,nd=typeof Symbol==`function`?Symbol:{},rd=nd.iterator||`@@iterator`,id=nd.asyncIterator||`@@asyncIterator`,ad=nd.toStringTag||`@@toStringTag`;function od(e,t,$){return Object.defineProperty(e,t,{value:$,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{od({},``)}catch{od=function(e,t,$){return e[t]=$}}function sd(e,t,$,td){var nd=t&&t.prototype instanceof md?t:md,rd=Object.create(nd.prototype);return ed(rd,`_invoke`,{value:Cd(e,$,new Dd(td||[]))}),rd}e.wrap=sd;function cd(e,t,$){try{return{type:`normal`,arg:e.call(t,$)}}catch(e){return{type:`throw`,arg:e}}}var ld=`suspendedStart`,ud=`suspendedYield`,dd=`executing`,fd=`completed`,pd={};function md(){}function hd(){}function gd(){}var _d={};od(_d,rd,function(){return this});var vd=Object.getPrototypeOf,yd=vd&&vd(vd(Od([])));
2yd&&yd!==t&&$.call(yd,rd)&&(_d=yd);var bd=gd.prototype=md.prototype=Object.create(_d);hd.prototype=gd,ed(bd,`constructor`,{value:gd,configurable:!0}),ed(gd,`constructor`,{value:hd,configurable:!0}),hd.displayName=od(gd,ad,`GeneratorFunction`);function xd(e){[`next`,`throw`,`return`].forEach(function(t){od(e,t,function(e){return this._invoke(t,e)})})}e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return t?t===hd||(t.displayName||t.name)===`GeneratorFunction`:!1},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,gd):(e.__proto__=gd,od(e,ad,`GeneratorFunction`)),e.prototype=Object.create(bd),e},e.awrap=function(e){return{__await:e}};function Sd(e,t){function td(ed,nd,rd,id){var ad=cd(e[ed],e,nd);if(ad.type===`throw`)id(ad.arg);else{var od=ad.arg,sd=od.value;return sd&&typeof sd==`object`&&$.call(sd,`__await`)?t.resolve(sd.__await).then(function(e){td(`next`,e,rd,id)},function(e){td(`throw`,e,rd,id)}):t.resolve(sd).then(function(e){od.value=e,rd(od)},function(e){return td(`throw`,e,rd,id)})}}var nd;function rd(e,$){function ed(){return new t(function(t,ed){td(e,$,t,ed)})}return nd=nd?nd.then(ed,ed):ed()}ed(this,`_invoke`,{value:rd})}xd(Sd.prototype),od(Sd.prototype,id,function(){return this}),e.AsyncIterator=Sd,e.async=function(t,$,ed,td,nd){nd===void 0&&(nd=Promise);var rd=new Sd(sd(t,$,ed,td),nd);return e.isGeneratorFunction($)?rd:rd.next().then(function(e){return e.done?e.value:rd.next()})};function Cd(e,t,$){var ed=ld;return function(td,nd){if(ed===dd)throw Error(`Generator is already running`);if(ed===fd){if(td===`throw`)throw nd;return kd()}for($.method=td,$.arg=nd;;){var rd=$.delegate;if(rd){var id=wd(rd,$);if(id){if(id===pd)continue;return id}}if($.method===`next`)$.sent=$._sent=$.arg;else if($.method===`throw`){if(ed===ld)throw ed=fd,$.arg;$.dispatchException($.arg)}else $.method===`return`&&$.abrupt(`return`,$.arg);ed=dd;var ad=cd(e,t,$);if(ad.type===`normal`){if(ed=$.done?fd:ud,ad.arg===pd)continue;return{value:ad.arg,done:$.done}}else ad.type===`throw`&&(ed=fd,$.method=`throw`,$.arg=ad.arg)}}}function wd(e,t){var $=t.method,ed=e.iterator[$];if(ed===td)return t.delegate=null,$===`throw`&&e.iterator.return&&(t.method=`return`,t.arg=td,wd(e,t),t.method===`throw`)||$!==`return`&&(t.method=`throw`,t.arg=TypeError(`The iterator does not provide a '`+$+`' method`)),pd;var nd=cd(ed,e.iterator,t.arg);if(nd.type===`throw`)return t.method=`throw`,t.arg=nd.arg,t.delegate=null,pd;var rd=nd.arg;if(!rd)return t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,pd;if(rd.done)t[e.resultName]=rd.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=td);else return rd;return t.delegate=null,pd}xd(bd),od(bd,ad,`Generator`),od(bd,rd,function(){return this}),od(bd,`toString`,function(){return`[object Generator]`});function Td(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function Ed(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function Dd(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(Td,this),this.reset(!0)}e.keys=function(e){var t=Object(e),$=[];for(var ed in t)$.push(ed);return $.reverse(),function e(){for(;$.length;){var ed=$.pop();if(ed in t)return e.value=ed,e.done=!1,e}return e.done=!0,e}};function Od(e){if(e){var t=e[rd];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var ed=-1,nd=function t(){for(;++ed<e.length;)if($.call(e,ed))return t.value=e[ed],t.done=!1,t;return t.value=td,t.done=!0,t};return nd.next=nd}}return{next:kd}}e.values=Od;function kd(){return{value:td,done:!0}}return Dd.prototype={constructor:Dd,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=td,this.done=!1,this.delegate=null,this.method=`next`,this.arg=td,this.tryEntries.forEach(Ed),!e)for(var t in this)t.charAt(0)===`t`&&$.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=td)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function ed($,ed){return id.type=`throw`,id.arg=e,t.next=$,ed&&(t.method=`next`,t.arg=td),!!ed}for(var nd=this.tryEntries.length-1;nd>=0;--nd){var rd=this.tryEntries[nd],id=rd.completion;if(rd.tryLoc===`root`)return ed(`end`);
2if(rd.tryLoc<=this.prev){var ad=$.call(rd,`catchLoc`),od=$.call(rd,`finallyLoc`);if(ad&&od){if(this.prev<rd.catchLoc)return ed(rd.catchLoc,!0);if(this.prev<rd.finallyLoc)return ed(rd.finallyLoc)}else if(ad){if(this.prev<rd.catchLoc)return ed(rd.catchLoc,!0)}else if(od){if(this.prev<rd.finallyLoc)return ed(rd.finallyLoc)}else throw Error(`try statement without catch or finally`)}}},abrupt:function(e,t){for(var ed=this.tryEntries.length-1;ed>=0;--ed){var td=this.tryEntries[ed];if(td.tryLoc<=this.prev&&$.call(td,`finallyLoc`)&&this.prev<td.finallyLoc){var nd=td;break}}nd&&(e===`break`||e===`continue`)&&nd.tryLoc<=t&&t<=nd.finallyLoc&&(nd=null);var rd=nd?nd.completion:{};return rd.type=e,rd.arg=t,nd?(this.method=`next`,this.next=nd.finallyLoc,pd):this.complete(rd)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),pd},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var $=this.tryEntries[t];if($.finallyLoc===e)return this.complete($.completion,$.afterLoc),Ed($),pd}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var $=this.tryEntries[t];if($.tryLoc===e){var ed=$.completion;if(ed.type===`throw`){var td=ed.arg;Ed($)}return td}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,$){return this.delegate={iterator:Od(e),resultName:t,nextLoc:$},this.method===`next`&&(this.arg=td),pd}},e}(typeof t==`object`?t.exports:{});try{regeneratorRuntime=$}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=$:Function(`r`,`regeneratorRuntime = r`)($)}})),require_noConflict=__commonJSMin((()=>{require_es6(),require_includes(),require_flat_map(),require_pad_start(),require_pad_end(),require_trim_start(),require_trim_end(),require_async_iterator$1(),require_get_own_property_descriptors(),require_values(),require_entries(),require_finally(),require_web(),require_runtime()})),require__global=__commonJSMin(((e,t)=>{var $=t.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=$)})),require__core=__commonJSMin(((e,t)=>{var $=t.exports={version:`2.6.12`};typeof __e==`number`&&(__e=$)})),require__a_function=__commonJSMin(((e,t)=>{t.exports=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e}})),require__ctx=__commonJSMin(((e,t)=>{var $=require__a_function();t.exports=function(e,t,ed){if($(e),t===void 0)return e;switch(ed){case 1:return function($){return e.call(t,$)};case 2:return function($,ed){return e.call(t,$,ed)};case 3:return function($,ed,td){return e.call(t,$,ed,td)}}return function(){return e.apply(t,arguments)}}})),require__is_object=__commonJSMin(((e,t)=>{t.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}})),require__an_object=__commonJSMin(((e,t)=>{var $=require__is_object();t.exports=function(e){if(!$(e))throw TypeError(e+` is not an object!`);return e}})),require__fails=__commonJSMin(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),require__descriptors=__commonJSMin(((e,t)=>{t.exports=!require__fails()(function(){return Object.defineProperty({},`a`,{get:function(){return 7}}).a!=7})})),require__dom_create=__commonJSMin(((e,t)=>{var $=require__is_object(),ed=require__global().document,td=$(ed)&&$(ed.createElement);t.exports=function(e){return td?ed.createElement(e):{}}})),require__ie8_dom_define=__commonJSMin(((e,t)=>{t.exports=!require__descriptors()&&!require__fails()(function(){return Object.defineProperty(require__dom_create()(`div`),`a`,{get:function(){return 7}}).a!=7})})),require__to_primitive=__commonJSMin(((e,t)=>{var $=require__is_object();t.exports=function(e,t){if(!$(e))return e;var ed,td;if(t&&typeof(ed=e.toString)==`function`&&!$(td=ed.call(e))||typeof(ed=e.valueOf)==`function`&&!$(td=ed.call(e))||!t&&typeof(ed=e.toString)==`function`&&!$(td=ed.call(e)))return td;throw TypeError(`Can't convert object to primitive value`)}}
2)),require__object_dp=__commonJSMin((e=>{var t=require__an_object(),$=require__ie8_dom_define(),ed=require__to_primitive(),td=Object.defineProperty;e.f=require__descriptors()?Object.defineProperty:function(e,nd,rd){if(t(e),nd=ed(nd,!0),t(rd),$)try{return td(e,nd,rd)}catch{}if(`get`in rd||`set`in rd)throw TypeError(`Accessors not supported!`);return`value`in rd&&(e[nd]=rd.value),e}})),require__property_desc=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),require__hide=__commonJSMin(((e,t)=>{var $=require__object_dp(),ed=require__property_desc();t.exports=require__descriptors()?function(e,t,td){return $.f(e,t,ed(1,td))}:function(e,t,$){return e[t]=$,e}})),require__has=__commonJSMin(((e,t)=>{var $={}.hasOwnProperty;t.exports=function(e,t){return $.call(e,t)}})),require__export=__commonJSMin(((e,t)=>{var $=require__global(),ed=require__core(),td=require__ctx(),nd=require__hide(),rd=require__has(),id=`prototype`,ad=function(e,t,od){var sd=e&ad.F,cd=e&ad.G,ld=e&ad.S,ud=e&ad.P,dd=e&ad.B,fd=e&ad.W,pd=cd?ed:ed[t]||(ed[t]={}),md=pd[id],hd=cd?$:ld?$[t]:($[t]||{})[id],gd,_d,vd;for(gd in cd&&(od=t),od)_d=!sd&&hd&&hd[gd]!==void 0,!(_d&&rd(pd,gd))&&(vd=_d?hd[gd]:od[gd],pd[gd]=cd&&typeof hd[gd]!=`function`?od[gd]:dd&&_d?td(vd,$):fd&&hd[gd]==vd?(function(e){var t=function(t,$,ed){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,$)}return new e(t,$,ed)}return e.apply(this,arguments)};return t[id]=e[id],t})(vd):ud&&typeof vd==`function`?td(Function.call,vd):vd,ud&&((pd.virtual||={})[gd]=vd,e&ad.R&&md&&!md[gd]&&nd(md,gd,vd)))};ad.F=1,ad.G=2,ad.S=4,ad.P=8,ad.B=16,ad.W=32,ad.U=64,ad.R=128,t.exports=ad})),require_es7_global=__commonJSMin((()=>{var e=require__export();e(e.G,{global:require__global()})})),require_global=__commonJSMin(((e,t)=>{require_es7_global(),t.exports=require__core().global}));require_noConflict();var _global=_interopRequireDefault(require_global());function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}_global.default._babelPolyfill&&typeof console<`u`&&console.warn&&console.warn(`@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.`),_global.default._babelPolyfill=!0,(function(){if(typeof window.CustomEvent==`function`)return!1;function e(e,t){t||={bubbles:!1,cancelable:!1,detail:void 0};var $=document.createEvent(`CustomEvent`);return $.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),$}e.prototype=window.Event.prototype,window.CustomEvent=e})();var require_jquery=__commonJSMin(((e,t)=>{(function(e,$){typeof t==`object`&&typeof t.exports==`object`?t.exports=e.document?$(e,!0):function(e){if(!e.document)throw Error(`jQuery requires a window with a document`);return $(e)}:$(e)})(typeof window<`u`?window:e,function(e,t){var $=[],ed=e.document,td=$.slice,nd=$.concat,rd=$.push,id=$.indexOf,ad={},od=ad.toString,sd=ad.hasOwnProperty,cd={},ld=`1.12.4`,ud=function(e,t){return new ud.fn.init(e,t)},dd=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fd=/^-ms-/,pd=/-([\da-z])/gi,md=function(e,t){return t.toUpperCase()};ud.fn=ud.prototype={jquery:ld,constructor:ud,selector:``,length:0,toArray:function(){return td.call(this)},get:function(e){return e==null?td.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ud.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return ud.each(this,e)},map:function(e){return this.pushStack(ud.map(this,function(t,$){return e.call(t,$,t)}))},slice:function(){return this.pushStack(td.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,$=+e+(e<0?t:0);return this.pushStack($>=0&&$<t?[this[$]]:[])},end:function(){return this.prevObject||this.constructor()},push:rd,sort:$.sort,splice:$.splice},ud.extend=ud.fn.extend=function(){var e,t,$,ed,td,nd,rd=arguments[0]||{},id=1,ad=arguments.length,od=!1;for(typeof rd==`boolean`&&(od=rd,rd=arguments[id]||{},id++),typeof rd!=`object`&&!ud.isFunction(rd)&&(rd={}),id===ad&&(rd=this,id--);id<ad;id++)if((td=arguments[id])!=null)for(ed in td)e=rd[ed],$=td[ed],rd!==$&&(od&&$&&(ud.isPlainObject($)||(t=ud.isArray($)))?(t?(t=!1,nd=e&&ud.isArray(e)?e:[]):nd=e&&ud.isPlainObject(e)?e:{},rd[ed]=ud.extend(od,nd,$)):$!==void 0&&(rd[ed]=$));return rd},ud.extend({expando:`jQuery`+(ld+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isFunction:function(e){return ud.type(e)===`function`},isArray:Array.isArray||function(e){return ud.type(e)===`array`},isWindow:function(e){return e!=null&&e==e.window}
2,isNumeric:function(e){var t=e&&e.toString();return!ud.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||ud.type(e)!==`object`||e.nodeType||ud.isWindow(e))return!1;try{if(e.constructor&&!sd.call(e,`constructor`)&&!sd.call(e.constructor.prototype,`isPrototypeOf`))return!1}catch{return!1}if(!cd.ownFirst)for(t in e)return sd.call(e,t);for(t in e);return t===void 0||sd.call(e,t)},type:function(e){return e==null?e+``:typeof e==`object`||typeof e==`function`?ad[od.call(e)]||`object`:typeof e},globalEval:function(t){t&&ud.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(fd,`ms-`).replace(pd,md)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var $,ed=0;if(hd(e))for($=e.length;ed<$&&t.call(e[ed],ed,e[ed])!==!1;ed++);else for(ed in e)if(t.call(e[ed],ed,e[ed])===!1)break;return e},trim:function(e){return e==null?``:(e+``).replace(dd,``)},makeArray:function(e,t){var $=t||[];return e!=null&&(hd(Object(e))?ud.merge($,typeof e==`string`?[e]:e):rd.call($,e)),$},inArray:function(e,t,$){var ed;if(t){if(id)return id.call(t,e,$);for(ed=t.length,$=$?$<0?Math.max(0,ed+$):$:0;$<ed;$++)if($ in t&&t[$]===e)return $}return-1},merge:function(e,t){for(var $=+t.length,ed=0,td=e.length;ed<$;)e[td++]=t[ed++];if($!==$)for(;t[ed]!==void 0;)e[td++]=t[ed++];return e.length=td,e},grep:function(e,t,$){for(var ed,td=[],nd=0,rd=e.length,id=!$;nd<rd;nd++)ed=!t(e[nd],nd),ed!==id&&td.push(e[nd]);return td},map:function(e,t,$){var ed,td,rd=0,id=[];if(hd(e))for(ed=e.length;rd<ed;rd++)td=t(e[rd],rd,$),td!=null&&id.push(td);else for(rd in e)td=t(e[rd],rd,$),td!=null&&id.push(td);return nd.apply([],id)},guid:1,proxy:function(e,t){var $,ed,nd;if(typeof t==`string`&&(nd=e[t],t=e,e=nd),ud.isFunction(e))return $=td.call(arguments,2),ed=function(){return e.apply(t||this,$.concat(td.call(arguments)))},ed.guid=e.guid=e.guid||ud.guid++,ed},now:function(){return+new Date},support:cd}),typeof Symbol==`function`&&(ud.fn[Symbol.iterator]=$[Symbol.iterator]),ud.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){ad[`[object `+t+`]`]=t.toLowerCase()});function hd(e){var t=!!e&&`length`in e&&e.length,$=ud.type(e);return $===`function`||ud.isWindow(e)?!1:$===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}var gd=(function(e){var t,$,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d=`sizzle`+1*new Date,vd=e.document,yd=0,bd=0,xd=nf(),Sd=nf(),Cd=nf(),wd=function(e,t){return e===t&&(cd=!0),0},Td=1<<31,Ed={}.hasOwnProperty,Dd=[],Od=Dd.pop,kd=Dd.push,Ad=Dd.push,jd=Dd.slice,Md=function(e,t){for(var $=0,ed=e.length;$<ed;$++)if(e[$]===t)return $;return-1},Nd=`checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped`,Pd=`[\\x20\\t\\r\\n\\f]`,Fd=`(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+`,Id=`\\[`+Pd+`*(`+Fd+`)(?:`+Pd+`*([*^$|!~]?=)`+Pd+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Fd+`))|)`+Pd+`*\\]`,Ld=`:(`+Fd+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Id+`)*)|.*)\\)|)`,Rd=RegExp(Pd+`+`,`g`),zd=RegExp(`^`+Pd+`+|((?:^|[^\\\\])(?:\\\\.)*)`+Pd+`+$`,`g`),Bd=RegExp(`^`+Pd+`*,`+Pd+`*`),Vd=RegExp(`^`+Pd+`*([>+~]|`+Pd+`)`+Pd+`*`),Hd=RegExp(`=`+Pd+`*([^\\]'"]*?)`+Pd+`*\\]`,`g`),Ud=new RegExp(Ld),Wd=RegExp(`^`+Fd+`$`),Gd={ID:RegExp(`^#(`+Fd+`)`),CLASS:RegExp(`^\\.(`+Fd+`)`),TAG:RegExp(`^(`+Fd+`|[*])`),ATTR:RegExp(`^`+Id),PSEUDO:RegExp(`^`+Ld),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+Pd+`*(even|odd|(([+-]|)(\\d*)n|)`+Pd+`*(?:([+-]|)`+Pd+`*(\\d+)|))`+Pd+`*\\)|)`,`i`),bool:RegExp(`^(?:`+Nd+`)$`,`i`),needsContext:RegExp(`^`+Pd+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+Pd+`*((?:-\\d)?\\d*)`+Pd+`*\\)|)(?=[^-]|$)`,`i`)},Kd=/^(?:input|select|textarea|button)$/i,qd=/^h\d$/i,Jd=/^[^{]+\{\s*\[native \w/,Yd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Xd=/[+~]/,Zd=/'|\\/g,Qd=RegExp(`\\\\([\\da-f]{1,6}`+Pd+`?|(`+Pd+`)|.)`,`ig`),$d=function(e,t,$){var ed=`0x`+t-65536;return ed!==ed||$?t:ed<0?String.fromCharCode(ed+65536):String.fromCharCode(ed>>10|55296,ed&1023|56320)},ef=function(){ld()};try{Ad.apply(Dd=jd.call(vd.childNodes),vd.childNodes),Dd[vd.childNodes.length].nodeType}catch{Ad={apply:Dd.length?function(e,t){kd.apply(e,jd.call(t))}:function(e,t){for(var $=e.length,ed=0;e[$++]=t[ed++];);e.length=$-1}}}function tf(e,t,ed,td){var nd,id,od,sd,cd,dd,md,hd,yd=t&&t.ownerDocument,bd=t?t.nodeType:9;if(ed||=[],typeof e!=`string`||!e||bd!==1&&bd!==9&&bd!==11)return ed;if(!td&&((t?t.ownerDocument||t:vd)!==ud&&ld(t),t||=ud,fd)){if(bd!==11&&(dd=Yd.exec(e))){if(nd=dd[1]){if
2(bd===9)if(od=t.getElementById(nd)){if(od.id===nd)return ed.push(od),ed}else return ed;else if(yd&&(od=yd.getElementById(nd))&&gd(t,od)&&od.id===nd)return ed.push(od),ed}else if(dd[2])return Ad.apply(ed,t.getElementsByTagName(e)),ed;else if((nd=dd[3])&&$.getElementsByClassName&&t.getElementsByClassName)return Ad.apply(ed,t.getElementsByClassName(nd)),ed}if($.qsa&&!Cd[e+` `]&&(!pd||!pd.test(e))){if(bd!==1)yd=t,hd=e;else if(t.nodeName.toLowerCase()!==`object`){for((sd=t.getAttribute(`id`))?sd=sd.replace(Zd,`\\$&`):t.setAttribute(`id`,sd=_d),md=rd(e),id=md.length,cd=Wd.test(sd)?`#`+sd:`[id='`+sd+`']`;id--;)md[id]=cd+` `+pf(md[id]);hd=md.join(`,`),yd=Xd.test(e)&&df(t.parentNode)||t}if(hd)try{return Ad.apply(ed,yd.querySelectorAll(hd)),ed}catch{}finally{sd===_d&&t.removeAttribute(`id`)}}}return ad(e.replace(zd,`$1`),t,ed,td)}function nf(){var e=[];function t($,td){return e.push($+` `)>ed.cacheLength&&delete t[e.shift()],t[$+` `]=td}return t}function rf(e){return e[_d]=!0,e}function af(e){var t=ud.createElement(`div`);try{return!!e(t)}catch{return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function of(e,t){for(var $=e.split(`|`),td=$.length;td--;)ed.attrHandle[$[td]]=t}function sf(e,t){var $=t&&e,ed=$&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||Td)-(~e.sourceIndex||Td);if(ed)return ed;if($){for(;$=$.nextSibling;)if($===t)return-1}return e?1:-1}function cf(e){return function(t){return t.nodeName.toLowerCase()===`input`&&t.type===e}}function lf(e){return function(t){var $=t.nodeName.toLowerCase();return($===`input`||$===`button`)&&t.type===e}}function uf(e){return rf(function(t){return t=+t,rf(function($,ed){for(var td,nd=e([],$.length,t),rd=nd.length;rd--;)$[td=nd[rd]]&&($[td]=!(ed[td]=$[td]))})})}function df(e){return e&&e.getElementsByTagName!==void 0&&e}for(t in $=tf.support={},nd=tf.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!==`HTML`:!1},ld=tf.setDocument=function(e){var t,td,rd=e?e.ownerDocument||e:vd;return rd===ud||rd.nodeType!==9||!rd.documentElement?ud:(ud=rd,dd=ud.documentElement,fd=!nd(ud),(td=ud.defaultView)&&td.top!==td&&(td.addEventListener?td.addEventListener(`unload`,ef,!1):td.attachEvent&&td.attachEvent(`onunload`,ef)),$.attributes=af(function(e){return e.className=`i`,!e.getAttribute(`className`)}),$.getElementsByTagName=af(function(e){return e.appendChild(ud.createComment(``)),!e.getElementsByTagName(`*`).length}),$.getElementsByClassName=Jd.test(ud.getElementsByClassName),$.getById=af(function(e){return dd.appendChild(e).id=_d,!ud.getElementsByName||!ud.getElementsByName(_d).length}),$.getById?(ed.find.ID=function(e,t){if(t.getElementById!==void 0&&fd){var $=t.getElementById(e);return $?[$]:[]}},ed.filter.ID=function(e){var t=e.replace(Qd,$d);return function(e){return e.getAttribute(`id`)===t}}):(delete ed.find.ID,ed.filter.ID=function(e){var t=e.replace(Qd,$d);return function(e){var $=e.getAttributeNode!==void 0&&e.getAttributeNode(`id`);return $&&$.value===t}}),ed.find.TAG=$.getElementsByTagName?function(e,t){if(t.getElementsByTagName!==void 0)return t.getElementsByTagName(e);if($.qsa)return t.querySelectorAll(e)}:function(e,t){var $,ed=[],td=0,nd=t.getElementsByTagName(e);if(e===`*`){for(;$=nd[td++];)$.nodeType===1&&ed.push($);return ed}return nd},ed.find.CLASS=$.getElementsByClassName&&function(e,t){if(t.getElementsByClassName!==void 0&&fd)return t.getElementsByClassName(e)},md=[],pd=[],($.qsa=Jd.test(ud.querySelectorAll))&&(af(function(e){dd.appendChild(e).innerHTML=`<a id='`+_d+`'></a><select id='`+_d+`-\r\\' msallowcapture=''><option selected=''></option></select>`,e.querySelectorAll(`[msallowcapture^='']`).length&&pd.push(`[*^$]=`+Pd+`*(?:''|"")`),e.querySelectorAll(`[selected]`).length||pd.push(`\\[`+Pd+`*(?:value|`+Nd+`)`),e.querySelectorAll(`[id~=`+_d+`-]`).length||pd.push(`~=`),e.querySelectorAll(`:checked`).length||pd.push(`:checked`),e.querySelectorAll(`a#`+_d+`+*`).length||pd.push(`.#.+[+~]`)}),af(function(e){var t=ud.createElement(`input`);t.setAttribute(`type`,`hidden`),e.appendChild(t).setAttribute(`name`,`D`),e.querySelectorAll(`[name=d]`).length&&pd.push(`name`+Pd+`*[*^$|!~]?=`),e.querySelectorAll(`:enabled`).length||pd.push(`:enabled`,`:disabled`),e.querySelectorAll(`*,:x`),pd.push(`,.*:`)})),($.matchesSelector=Jd.test(hd=dd.matches||dd.webkitMatchesSelector||dd.mozMatchesSelector||dd.oMatchesSelector||dd.ms
vendor: 13,537 bytes, line 2
2MatchesSelector))&&af(function(e){$.disconnectedMatch=hd.call(e,`div`),hd.call(e,`[s!='']:x`),md.push(`!=`,Ld)}),pd=pd.length&&new RegExp(pd.join(`|`)),md=md.length&&new RegExp(md.join(`|`)),t=Jd.test(dd.compareDocumentPosition),gd=t||Jd.test(dd.contains)?function(e,t){var $=e.nodeType===9?e.documentElement:e,ed=t&&t.parentNode;return e===ed||!!(ed&&ed.nodeType===1&&($.contains?$.contains(ed):e.compareDocumentPosition&&e.compareDocumentPosition(ed)&16))}:function(e,t){if(t){for(;t=t.parentNode;)if(t===e)return!0}return!1},wd=t?function(e,t){if(e===t)return cd=!0,0;var ed=!e.compareDocumentPosition-!t.compareDocumentPosition;return ed||(ed=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,ed&1||!$.sortDetached&&t.compareDocumentPosition(e)===ed?e===ud||e.ownerDocument===vd&&gd(vd,e)?-1:t===ud||t.ownerDocument===vd&&gd(vd,t)?1:sd?Md(sd,e)-Md(sd,t):0:ed&4?-1:1)}:function(e,t){if(e===t)return cd=!0,0;var $,ed=0,td=e.parentNode,nd=t.parentNode,rd=[e],id=[t];if(!td||!nd)return e===ud?-1:t===ud?1:td?-1:nd?1:sd?Md(sd,e)-Md(sd,t):0;if(td===nd)return sf(e,t);for($=e;$=$.parentNode;)rd.unshift($);for($=t;$=$.parentNode;)id.unshift($);for(;rd[ed]===id[ed];)ed++;return ed?sf(rd[ed],id[ed]):rd[ed]===vd?-1:+(id[ed]===vd)},ud)},tf.matches=function(e,t){return tf(e,null,null,t)},tf.matchesSelector=function(e,t){if((e.ownerDocument||e)!==ud&&ld(e),t=t.replace(Hd,`='$1']`),$.matchesSelector&&fd&&!Cd[t+` `]&&(!md||!md.test(t))&&(!pd||!pd.test(t)))try{var ed=hd.call(e,t);if(ed||$.disconnectedMatch||e.document&&e.document.nodeType!==11)return ed}catch{}return tf(t,ud,null,[e]).length>0},tf.contains=function(e,t){return(e.ownerDocument||e)!==ud&&ld(e),gd(e,t)},tf.attr=function(e,t){(e.ownerDocument||e)!==ud&&ld(e);var td=ed.attrHandle[t.toLowerCase()],nd=td&&Ed.call(ed.attrHandle,t.toLowerCase())?td(e,t,!fd):void 0;return nd===void 0?$.attributes||!fd?e.getAttribute(t):(nd=e.getAttributeNode(t))&&nd.specified?nd.value:null:nd},tf.error=function(e){throw Error(`Syntax error, unrecognized expression: `+e)},tf.uniqueSort=function(e){var t,ed=[],td=0,nd=0;if(cd=!$.detectDuplicates,sd=!$.sortStable&&e.slice(0),e.sort(wd),cd){for(;t=e[nd++];)t===e[nd]&&(td=ed.push(nd));for(;td--;)e.splice(ed[td],1)}return sd=null,e},td=tf.getText=function(e){var t,$=``,ed=0,nd=e.nodeType;if(!nd)for(;t=e[ed++];)$+=td(t);else if(nd===1||nd===9||nd===11){if(typeof e.textContent==`string`)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)$+=td(e)}else if(nd===3||nd===4)return e.nodeValue;return $},ed=tf.selectors={cacheLength:50,createPseudo:rf,match:Gd,attrHandle:{},find:{},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Qd,$d),e[3]=(e[3]||e[4]||e[5]||``).replace(Qd,$d),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||tf.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&tf.error(e[0]),e},PSEUDO:function(e){var t,$=!e[6]&&e[2];return Gd.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:$&&Ud.test($)&&(t=rd($,!0))&&(t=$.indexOf(`)`,$.length-t)-$.length)&&(e[0]=e[0].slice(0,t),e[2]=$.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Qd,$d).toLowerCase();return e===`*`?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=xd[e+` `];return t||(t=RegExp(`(^|`+Pd+`)`+e+`(`+Pd+`|$)`))&&xd(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,$){return function(ed){var td=tf.attr(ed,e);return td==null?t===`!=`:t?(td+=``,t===`=`?td===$:t===`!=`?td!==$:t===`^=`?$&&td.indexOf($)===0:t===`*=`?$&&td.indexOf($)>-1:t===`$=`?$&&td.slice(-$.length)===$:t===`~=`?(` `+td.replace(Rd,` `)+` `).indexOf($)>-1:t===`|=`?td===$||td.slice(0,$.length+1)===$+`-`:!1):!0}},CHILD:function(e,t,$,ed,td){var nd=e.slice(0,3)!==`nth`,rd=e.slice(-4)!==`last`,id=t===`of-type`;return ed===1&&td===0?function(e){return!!e.parentNode}:function(t,$,ad){var od,sd,cd,ld,ud,dd,fd=nd===rd?`previousSibling`:`nextSibling`,pd=t.parentNode,md=id&&t.nodeName.toLowerCase(),hd=!ad&&!id,gd=!1;if(pd){if(nd){for(;fd;){for(ld=t;ld=ld[fd];)if(id?ld.nodeName.toLowerCase()===md:ld.nodeType===1)return!1;dd=fd=e===`only`&&!dd&&`nextSibling`}return!0}if(dd=[rd?pd.firstChild:pd.lastChild],rd&&hd){for(ld=pd,cd=ld[_d]||(ld[_d]={}),sd=cd[ld.uniqueID]||(cd[ld.uniqueID]={}),od=sd[e]||[],ud=od[0]===yd&&od[1],gd=ud&&od[2],ld=ud&&pd.childNodes[ud];ld=++ud&&ld&&ld[fd]||(gd=ud=0)||dd.pop();)if(ld.nodeType===1&&++gd&&ld===t){sd[e]=[yd,ud,gd];break}}else if(hd&&(ld=t,cd=ld[_d]||(ld[_d]={}),sd=cd[ld.uniqueID]||(cd[ld.uniqueID]={}),od=sd[e]||[],ud=od[0]===yd&&od[1],gd=ud),gd===!1)for(;(ld=++ud&&ld&&ld[fd]||(gd=ud=0)||dd.pop())&&!((id?ld.nodeName.toLowerCase()===md:ld.nodeType===1)&&++gd&&(hd&&(cd=ld[_d]||(ld[_d]={}),sd=cd[ld.uniqueID]||(cd[ld.uniqueID]={}),sd[e]=[yd,gd]),ld===t)););return gd-=td,gd===ed||gd%ed===0&&gd/ed>=0}}},PSEUDO:function(e,t){var $,td=ed.pseudos[e]||ed.setFilters[e.toLowerCase()]||tf.error(`unsupported pseudo: `+e);return td[_d]?td(t):td.length>1?($=[e,e,``,t],ed.setFilters.hasOwnProperty(e.toLowerCase())?rf(function(e,$){for(var ed,nd=td(e,t),rd=nd.length;rd--;)ed=Md(e,nd[rd]),e[ed]=!($[ed]=nd[rd])}):function(e){return td(e,0,$)}):td}},pseudos:{not:rf(function(e){var t=[],$=[],ed=id(e.replace(zd,`$1`));return ed[_d]?rf(function(e,t,$,td){for(var nd,rd=ed(e,null,td,[]),id=e.length;id--;)(nd=rd[id])&&(e[id]=!(t[id]=nd))}):function(e,td,nd){return t[0]=e,ed(t,null,nd,$),t[0]=null,!$.pop()}}),has:rf(function(e){return function(t){return tf(e,t).length>0}}),contains:rf(function(e){return e=e.replace(Qd,$d),function(t){return(t.textContent||t.innerText||td(t)).indexOf(e)>-1}}),lang:rf(function(e){return Wd.test(e||``)||tf.error(`unsupported lang: `+e),e=e.replace(Qd,$d).toLowerCase(),function(t){var $;do if($=fd?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return $=$.toLowerCase(),$===e||$.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var $=e.location&&e.location.hash;return $&&$.slice(1)===t.id},root:function(e){return e===dd},focus:function(e){return e===ud.activeElement&&(!ud.hasFocus||ud.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t===`input`&&!!e.checked||t===`option`&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!ed.pseudos.empty(e)},header:function(e){return qd.test(e.nodeName)},input:function(e){return Kd.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t===`input`&&e.type===`button`||t===`button`},text:function(e){var t;return e.nodeName.toLowerCase()===`input`&&e.type===`text`&&((t=e.getAttribute(`type`))==null||t.toLowerCase()===`text`)},first:uf(function(){return[0]}),last:uf(function(e,t){return[t-1]}),eq:uf(function(e,t,$){return[$<0?$+t:$]}),even:uf(function(e,t){for(var $=0;$<t;$+=2)e.push($);return e}),odd:uf(function(e,t){for(var $=1;$<t;$+=2)e.push($);return e}),lt:uf(function(e,t,$){for(var ed=$<0?$+t:$;--ed>=0;)e.push(ed);return e}),gt:uf(function(e,t,$){for(var ed=$<0?$+t:$;++ed<t;)e.push(ed);return e})}},ed.pseudos.nth=ed.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ed.pseudos[t]=cf(t);for(t in{submit:!0,reset:!0})ed.pseudos[t]=lf(t);function ff(){}ff.prototype=ed.filters=ed.pseudos,ed.setFilters=new ff,rd=tf.tokenize=function(e,t){var $,td,nd,rd,id,ad,od,sd=Sd[e+` `];if(sd)return t?0:sd.slice(0);for(id=e,ad=[],od=ed.preFilter;id;){for(rd in(!$||(td=Bd.exec(id)))&&(td&&(id=id.slice(td[0].length)||id),ad.push(nd=[])),$=!1,(td=Vd.exec(id))&&($=td.shift(),nd.push({value:$,type:td[0].replace(zd,` `)}),id=id.slice($.length)),ed.filter)(td=Gd[rd].exec(id))&&(!od[rd]||(td=od[rd](td)))&&($=td.shift(),nd.push({value:$,type:rd,matches:td}),id=id.slice($.length));if(!$)break}return t?id.length:id?tf.error(e):Sd(e,ad).slice(0)};function pf(e){for(var t=0,$=e.length,ed=``;t<$;t++)ed+=e[t].value;return ed}function mf(e,t,$){var ed=t.dir,td=$&&ed===`parentNode`,nd=bd++;return t.first?function(t,$,nd){for(;t=t[ed];)if(t.nodeType===1||td)return e(t,$,nd)}:function(t,$,rd){var id,ad,od,sd=[yd,nd];if(rd){for(;t=t[ed];)if((t.nodeType===1||td)&&e(t,$,rd))return!0}else for(;t=t[ed];)if(t.nodeType===1||td){if(od=t[_d]||(t[_d]={}),ad=od[t.uniqueID]||(od[t.uniqueID]={}),(id=ad[ed])&&id[0]===yd&&id[1]===nd)return sd[2]=id[2];if(ad[ed]=sd,sd[2]=e(t,$,rd))return!0}}}function hf(e){return e.length>1?function(t,$,ed){for(var td=e.length;td--;)if(!e[td](t,$,ed))return!1;return!0}:e[0]}function gf(e,t,$){for(var ed=0,td=t.length;ed<td;ed++)tf(e,t[ed],$);return $}function _f(e,t,$,ed,td){for(var nd,rd=[],id=0,ad=e.length,od=t!=null;id<ad;id++)(nd=e[id])&&(!$||$(nd,ed,td))&&(rd.push(nd),od&&t.push(id));return rd}function vf(e,t,$,ed,td,nd){return ed&&!ed[_d]&&(ed=vf(ed)),td&&!td[_d]&&(td=vf(td,nd)),rf(function(nd,rd,id,ad){var od,sd,cd,ld=[],ud=[],dd=rd.length,fd=nd||gf(t||`*`,id.nodeType?[id]:id,[]),pd=e&&(nd||!t)?_f(fd,ld,e,id,ad):fd,md=$?td||(nd?e:dd||ed)?[]:rd:pd;if($&&$(pd,md,id,ad),ed)for(od=_f(md,ud),ed(od,[],id,ad),sd=od.length;sd--;)(cd=od[sd])&&(md[ud[sd]]=!(pd[ud[sd]]=cd));if(nd){if(td||e){if(td){for(od=[],sd=md.length;sd--;)(cd=md[sd])&&od.push(pd[sd]=cd);td(null,md=[],od,ad)}for(sd=md.length;sd--;)(cd=md[sd])&&(od=td?Md(nd,cd):ld[sd])>-1&&(nd[od]=!(rd[od]=cd))}}else md=_f(md===rd?md.splice(dd,md.length):md),td?td(null,rd,md,ad):Ad.apply(rd,md)})}function yf(e){for(var t,$,td,nd=e.length,rd=ed.relative[e[0].type],id=rd||ed.relative[` `],ad=+!!rd,sd=mf(function(e){return e===t},id,!0),cd=mf(function(e){return Md(t,e)>-1},id,!0),ld=[function(e,$,ed){var td=!rd&&(ed||$!==od)||((t=$).nodeType?sd(e,$,ed):cd(e,$,ed));return t=null,td}];ad<nd;ad++)if($=ed.relative[e[ad].type])ld=[mf(hf(ld),$)];else{if($=ed.filter[e[ad].type].apply(null,e[ad].matches),$[_d]){for(td=++ad;td<nd&&!ed.relative[e[td].type];td++);return vf(ad>1&&hf(ld),ad>1&&pf(e.slice(0,ad-1).concat({value:e[ad-2].type===` `?`*`:``})).replace(zd,`$1`),$,ad<td&&yf(e.slice(ad,td)),td<nd&&yf(e=e.slice(td)),td<nd&&pf(e))}ld.push($)}return hf(ld)}function bf(e,t){var $=t.length>0,td=e.length>0,nd=function(nd,rd,id,ad,sd){var cd,dd,pd,md=0,hd=`0`,gd=nd&&[],_d=[],vd=od,bd=nd||td&&ed.find.TAG(`*`,sd),xd=yd+=vd==null?1:Math.random()||.1,Sd=bd.length;for(sd&&(od=rd===ud||rd||sd);hd!==Sd&&(cd=bd[hd])!=null;hd++){if(td&&cd){for(dd=0,!rd&&cd.ownerDocument!==ud&&(ld(cd),id=!fd);pd=e[dd++];)if(pd(cd,rd||ud,id)){ad.push(cd);break}sd&&(yd=xd)}$&&((cd=!pd&&cd)&&md--,nd&&gd.push(cd))}if(md+=hd,$&&hd!==md){for(dd=0;pd=t[dd++];)pd(gd,_d,rd,id);if(nd){if(md>0)for(;hd--;)gd[hd]||_d[hd]||(_d[hd]=Od.call(ad));_d=_f(_d)}Ad.apply(ad,_d),sd&&!nd&&_d.length>0&&md+t.length>1&&tf.uniqueSort(ad)}return sd&&(yd=xd,od=vd),gd};return $?rf(nd):nd}return id=tf.compile=function(e,t){var $,ed=[],td=[],nd=Cd[e+` `];if(!nd){for(t||=rd(e),$=t.length;$--;)nd=yf(t[$]),nd[_d]?ed.push(nd):td.push(nd);nd=Cd(e,bf(td,ed)),nd.selector=e}return nd},ad=tf.select=function(e,t,td,nd){var ad,od,sd,cd,ld,ud=typeof e==`function`&&e,dd=!nd&&rd(e=ud.selector||e);if(td||=[],dd.length===1){if(od=dd[0]=dd[0].slice(0),od.length>2&&(sd=od[0]).type===`ID`&&$.getById&&t.nodeType===9&&fd&&ed.relative[od[1].type]){if(t=(ed.find.ID(sd.matches[0].replace(Qd,$d),t)||[])[0],t)ud&&(t=t.parentNode);else return td;e=e.slice(od.shift().value.length)}for(ad=Gd.needsContext.test(e)?0:od.length;ad--&&(sd=od[ad],!ed.relative[cd=sd.type]);)if((ld=ed.find[cd])&&(nd=ld(sd.matches[0].replace(Qd,$d),Xd.test(od[0].type)&&df(t.parentNode)||t))){if(od.splice(ad,1),e=nd.length&&pf(od),!e)return Ad.apply(td,nd),td;break}}return(ud||id(e,dd))(nd,t,!fd,td,!t||Xd.test(e)&&df(t.parentNode)||t),td},$.sortStable=_d.split(``).sort(wd).join(``)===_d,$.detectDuplicates=!!cd,ld(),$.sortDetached=af(function(e){return e.compareDocumentPosition(ud.createElement(`div`))&1}),af(function(e){return e.innerHTML=`<a href='#'></a>`,e.firstChild.getAttribute(`href`)===`#`})||of(`type|href|height|width`,function(e,t,$){if(!$)return e.getAttribute(t,t.toLowerCase()===`type`?1:2)}),(!$.attributes||!af(function(e){return e.innerHTML=`<input/>`,e.firstChild.setAttribute(`value`,``),e.firstChild.getAttribute(`value`)===``}))&&of(`value`,function(e,t,$){if(!$&&e.nodeName.toLowerCase()===`input`)return e.defaultValue}),af(function(e){return e.getAttribute(`disabled`)==null})||of(Nd,function(e,t,$){var ed;if(!$)return e[t]===!0?t.toLowerCase():(ed=e.getAttributeNode(t))&&ed.specified?ed.value:null}),tf})(e);ud.find=gd,ud.expr=gd.selectors,ud.expr[`:`]=ud.expr.pseudos,ud.uniqueSort=ud.unique=gd.uniqueSort,ud.text=gd.getText,ud.isXMLDoc=gd.isXML,ud.contains=gd.contains;var _d=function(e,t,$){for(var ed=[],td=$!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(td&&ud(e).is($))break;ed.push(e)}return ed},vd=function(e,t){for(var $=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&$.push(e);return $},yd=ud.expr.match.needsContext,bd=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xd=/^.[^:#\[\.,]*$/;function Sd(e,t,$){if(ud.isFunction(t))return ud.grep(e,function(e,ed){return!!t.call(e,ed,e)!==$});
2if(t.nodeType)return ud.grep(e,function(e){return e===t!==$});if(typeof t==`string`){if(xd.test(t))return ud.filter(t,e,$);t=ud.filter(t,e)}return ud.grep(e,function(e){return ud.inArray(e,t)>-1!==$})}ud.filter=function(e,t,$){var ed=t[0];return $&&(e=`:not(`+e+`)`),t.length===1&&ed.nodeType===1?ud.find.matchesSelector(ed,e)?[ed]:[]:ud.find.matches(e,ud.grep(t,function(e){return e.nodeType===1}))},ud.fn.extend({find:function(e){var t,$=[],ed=this,td=ed.length;if(typeof e!=`string`)return this.pushStack(ud(e).filter(function(){for(t=0;t<td;t++)if(ud.contains(ed[t],this))return!0}));for(t=0;t<td;t++)ud.find(e,ed[t],$);return $=this.pushStack(td>1?ud.unique($):$),$.selector=this.selector?this.selector+` `+e:e,$},filter:function(e){return this.pushStack(Sd(this,e||[],!1))},not:function(e){return this.pushStack(Sd(this,e||[],!0))},is:function(e){return!!Sd(this,typeof e==`string`&&yd.test(e)?ud(e):e||[],!1).length}});var Cd,wd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Td=ud.fn.init=function(e,t,$){var td,nd;if(!e)return this;if($||=Cd,typeof e==`string`)if(td=e.charAt(0)===`<`&&e.charAt(e.length-1)===`>`&&e.length>=3?[null,e,null]:wd.exec(e),td&&(td[1]||!t))if(td[1]){if(t=t instanceof ud?t[0]:t,ud.merge(this,ud.parseHTML(td[1],t&&t.nodeType?t.ownerDocument||t:ed,!0)),bd.test(td[1])&&ud.isPlainObject(t))for(td in t)ud.isFunction(this[td])?this[td](t[td]):this.attr(td,t[td]);return this}else{if(nd=ed.getElementById(td[2]),nd&&nd.parentNode){if(nd.id!==td[2])return Cd.find(e);this.length=1,this[0]=nd}return this.context=ed,this.selector=e,this}else if(!t||t.jquery)return(t||$).find(e);else return this.constructor(t).find(e);else if(e.nodeType)return this.context=this[0]=e,this.length=1,this;else if(ud.isFunction(e))return $.ready===void 0?e(ud):$.ready(e);return e.selector!==void 0&&(this.selector=e.selector,this.context=e.context),ud.makeArray(e,this)};Td.prototype=ud.fn,Cd=ud(ed);var Ed=/^(?:parents|prev(?:Until|All))/,Dd={children:!0,contents:!0,next:!0,prev:!0};ud.fn.extend({has:function(e){var t,$=ud(e,this),ed=$.length;return this.filter(function(){for(t=0;t<ed;t++)if(ud.contains(this,$[t]))return!0})},closest:function(e,t){for(var $,ed=0,td=this.length,nd=[],rd=yd.test(e)||typeof e!=`string`?ud(e,t||this.context):0;ed<td;ed++)for($=this[ed];$&&$!==t;$=$.parentNode)if($.nodeType<11&&(rd?rd.index($)>-1:$.nodeType===1&&ud.find.matchesSelector($,e))){nd.push($);break}return this.pushStack(nd.length>1?ud.uniqueSort(nd):nd)},index:function(e){return e?typeof e==`string`?ud.inArray(this[0],ud(e)):ud.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ud.uniqueSort(ud.merge(this.get(),ud(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function Od(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}ud.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return _d(e,`parentNode`)},parentsUntil:function(e,t,$){return _d(e,`parentNode`,$)},next:function(e){return Od(e,`nextSibling`)},prev:function(e){return Od(e,`previousSibling`)},nextAll:function(e){return _d(e,`nextSibling`)},prevAll:function(e){return _d(e,`previousSibling`)},nextUntil:function(e,t,$){return _d(e,`nextSibling`,$)},prevUntil:function(e,t,$){return _d(e,`previousSibling`,$)},siblings:function(e){return vd((e.parentNode||{}).firstChild,e)},children:function(e){return vd(e.firstChild)},contents:function(e){return ud.nodeName(e,`iframe`)?e.contentDocument||e.contentWindow.document:ud.merge([],e.childNodes)}},function(e,t){ud.fn[e]=function($,ed){var td=ud.map(this,t,$);return e.slice(-5)!==`Until`&&(ed=$),ed&&typeof ed==`string`&&(td=ud.filter(ed,td)),this.length>1&&(Dd[e]||(td=ud.uniqueSort(td)),Ed.test(e)&&(td=td.reverse())),this.pushStack(td)}});var kd=/\S+/g;function Ad(e){var t={};return ud.each(e.match(kd)||[],function(e,$){t[$]=!0}),t}ud.Callbacks=function(e){e=typeof e==`string`?Ad(e):ud.extend({},e);var t,$,ed,td,nd=[],rd=[],id=-1,ad=function(){for(td=e.once,ed=t=!0;rd.length;id=-1)for($=rd.shift();++id<nd.length;)nd[id].apply($[0],$[1])===!1&&e.stopOnFalse&&(id=nd.length,$=!1);e.memory||($=!1),t=!1,td&&(nd=$?[]:``)},od={add:function(){return nd&&($&&!t&&(id=nd.length-1,rd.push($)),(function t($){ud.each($,function($,ed){ud.isFunction(ed)?(!e.unique||!od.has(ed))&&nd.push(ed):ed&&ed.length&&ud.type(ed)!==`string`&&t(ed)})})(arguments),$&&!t&&ad()),this},remove:function(){return ud.each(arguments,function(e,t){for(var $;($=ud.inArray(t,nd,$))>-1;)nd.splice($,1),$<=id&&id--}),this},has:function(e){return e?ud.inArray(e,nd)>-1:nd.length>0},empty:function(){return nd&&=[],this},disable:function(){return td=rd=[],nd=$=``,this},disabled:function(){return!nd},lock:function(){return td=!0,$||od.disable(),this},locked:function(){return!!td},fireWith:function(e,$){return td||($||=[],$=[e,$.slice?$.slice():$],rd.push($),t||ad()),this},fire:function(){return od.fireWith(this,arguments),this},fired:function(){return!!ed}};return od},ud.extend({Deferred:function(e){var t=[[`resolve`,`done`,ud.Callbacks(`once memory`),`resolved`],[`reject`,`fail`,ud.Callbacks(`once memory`),`rejected`],[`notify`,`progress`,ud.Callbacks(`memory`)]],$=`pending`,ed={state:function(){return $},always:function(){return td.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ud.Deferred(function($){ud.each(t,function(t,nd){var rd=ud.isFunction(e[t])&&e[t];td[nd[1]](function(){var e=rd&&rd.apply(this,arguments);e&&ud.isFunction(e.promise)?e.promise().progress($.notify).done($.resolve).fail($.reject):$[nd[0]+`With`](this===ed?$.promise():this,rd?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e==null?ed:ud.extend(e,ed)}},td={};return ed.pipe=ed.then,ud.each(t,function(e,nd){var rd=nd[2],id=nd[3];ed[nd[1]]=rd.add,id&&rd.add(function(){$=id},t[e^1][2].disable,t[2][2].lock),td[nd[0]]=function(){return td[nd[0]+`With`](this===td?ed:this,arguments),this},td[nd[0]+`With`]=rd.fireWith}),ed.promise(td),e&&e.call(td,td),td},when:function(e){var t=0,$=td.call(arguments),ed=$.length,nd=ed!==1||e&&ud.isFunction(e.promise)?ed:0,rd=nd===1?e:ud.Deferred(),id=function(e,t,$){return function(ed){t[e]=this,$[e]=arguments.length>1?td.call(arguments):ed,$===ad?rd.notifyWith(t,$):--nd||rd.resolveWith(t,$)}},ad,od,sd;if(ed>1)for(ad=Array(ed),od=Array(ed),sd=Array(ed);t<ed;t++)$[t]&&ud.isFunction($[t].promise)?$[t].promise().progress(id(t,od,ad)).done(id(t,sd,$)).fail(rd.reject):--nd;return nd||rd.resolveWith(sd,$),rd.promise()}});var jd;ud.fn.ready=function(e){return ud.ready.promise().done(e),this},ud.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ud.readyWait++:ud.ready(!0)},ready:function(e){(e===!0?--ud.readyWait:ud.isReady)||(ud.isReady=!0,!(e!==!0&&--ud.readyWait>0)&&(jd.resolveWith(ed,[ud]),ud.fn.triggerHandler&&(ud(ed).triggerHandler(`ready`),ud(ed).off(`ready`))))}});function Md(){ed.addEventListener?(ed.removeEventListener(`DOMContentLoaded`,Nd),e.removeEventListener(`load`,N
2d)):(ed.detachEvent(`onreadystatechange`,Nd),e.detachEvent(`onload`,Nd))}function Nd(){(ed.addEventListener||e.event.type===`load`||ed.readyState===`complete`)&&(Md(),ud.ready())}for(var Pd in ud.ready.promise=function(t){if(!jd)if(jd=ud.Deferred(),ed.readyState===`complete`||ed.readyState!==`loading`&&!ed.documentElement.doScroll)e.setTimeout(ud.ready);else if(ed.addEventListener)ed.addEventListener(`DOMContentLoaded`,Nd),e.addEventListener(`load`,Nd);else{ed.attachEvent(`onreadystatechange`,Nd),e.attachEvent(`onload`,Nd);var $=!1;try{$=e.frameElement==null&&ed.documentElement}catch{}$&&$.doScroll&&(function t(){if(!ud.isReady){try{$.doScroll(`left`)}catch{return e.setTimeout(t,50)}Md(),ud.ready()}})()}return jd.promise(t)},ud.ready.promise(),ud(cd))break;cd.ownFirst=Pd===`0`,cd.inlineBlockNeedsLayout=!1,ud(function(){var e,t,$=ed.getElementsByTagName(`body`)[0],td;!$||!$.style||(t=ed.createElement(`div`),td=ed.createElement(`div`),td.style.cssText=`position:absolute;border:0;width:0;height:0;top:0;left:-9999px`,$.appendChild(td).appendChild(t),t.style.zoom!==void 0&&(t.style.cssText=`display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1`,cd.inlineBlockNeedsLayout=e=t.offsetWidth===3,e&&($.style.zoom=1)),$.removeChild(td))}),(function(){var e=ed.createElement(`div`);cd.deleteExpando=!0;try{delete e.test}catch{cd.deleteExpando=!1}e=null})();var Fd=function(e){var t=ud.noData[(e.nodeName+` `).toLowerCase()],$=+e.nodeType||1;return $!==1&&$!==9?!1:!t||t!==!0&&e.getAttribute(`classid`)===t},Id=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ld=/([A-Z])/g;function Rd(e,t,$){if($===void 0&&e.nodeType===1){var ed=`data-`+t.replace(Ld,`-$1`).toLowerCase();if($=e.getAttribute(ed),typeof $==`string`){try{$=$===`true`?!0:$===`false`?!1:$===`null`?null:+$+``===$?+$:Id.test($)?ud.parseJSON($):$}catch{}ud.data(e,t,$)}else $=void 0}return $}function zd(e){for(var t in e)if(!(t===`data`&&ud.isEmptyObject(e[t]))&&t!==`toJSON`)return!1;return!0}function Bd(e,t,ed,td){if(Fd(e)){var nd,rd,id=ud.expando,ad=e.nodeType,od=ad?ud.cache:e,sd=ad?e[id]:e[id]&&id;if(!((!sd||!od[sd]||!td&&!od[sd].data)&&ed===void 0&&typeof t==`string`))return sd||=ad?e[id]=$.pop()||ud.guid++:id,od[sd]||(od[sd]=ad?{}:{toJSON:ud.noop}),(typeof t==`object`||typeof t==`function`)&&(td?od[sd]=ud.extend(od[sd],t):od[sd].data=ud.extend(od[sd].data,t)),rd=od[sd],td||(rd.data||={},rd=rd.data),ed!==void 0&&(rd[ud.camelCase(t)]=ed),typeof t==`string`?(nd=rd[t],nd??=rd[ud.camelCase(t)]):nd=rd,nd}}function Vd(e,t,$){if(Fd(e)){var ed,td,nd=e.nodeType,rd=nd?ud.cache:e,id=nd?e[ud.expando]:ud.expando;if(rd[id]){if(t&&(ed=$?rd[id]:rd[id].data,ed)){for(ud.isArray(t)?t=t.concat(ud.map(t,ud.camelCase)):(t in ed)?t=[t]:(t=ud.camelCase(t),t=(t in ed)?[t]:t.split(` `)),td=t.length;td--;)delete ed[t[td]];if($?!zd(ed):!ud.isEmptyObject(ed))return}!$&&(delete rd[id].data,!zd(rd[id]))||(nd?ud.cleanData([e],!0):cd.deleteExpando||rd!=rd.window?delete rd[id]:rd[id]=void 0)}}}ud.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":`clsid:D27CDB6E-AE6D-11cf-96B8-444553540000`},hasData:function(e){return e=e.nodeType?ud.cache[e[ud.expando]]:e[ud.expando],!!e&&!zd(e)},data:function(e,t,$){return Bd(e,t,$)},removeData:function(e,t){return Vd(e,t)},_data:function(e,t,$){return Bd(e,t,$,!0)},_removeData:function(e,t){return Vd(e,t,!0)}}),ud.fn.extend({data:function(e,t){var $,ed,td,nd=this[0],rd=nd&&nd.attributes;if(e===void 0){if(this.length&&(td=ud.data(nd),nd.nodeType===1&&!ud._data(nd,`parsedAttrs`))){for($=rd.length;$--;)rd[$]&&(ed=rd[$].name,ed.indexOf(`data-`)===0&&(ed=ud.camelCase(ed.slice(5)),Rd(nd,ed,td[ed])));ud._data(nd,`parsedAttrs`,!0)}return td}return typeof e==`object`?this.each(function(){ud.data(this,e)}):arguments.length>1?this.each(function(){ud.data(this,e,t)}):nd?Rd(nd,e,ud.data(nd,e)):void 0},removeData:function(e){return this.each(function(){ud.removeData(this,e)})}}),ud.extend({queue:function(e,t,$){var ed;if(e)return t=(t||`fx`)+`queue`,ed=ud._data(e,t),$&&(!ed||ud.isArray($)?ed=ud._data(e,t,ud.makeArray($)):ed.push($)),ed||[]},dequeue:function(e,t){t||=`fx`;var $=ud.queue(e,t),ed=$.length,td=$.shift(),nd=ud._queueHooks(e,t);td===`inprogress`&&(td=$.shift(),ed--),td&&(t===`fx`&&$.unshift(`inprogress`),delete nd.stop,td.call(e,function(){ud.dequeue(e,t)},nd)),!ed&&nd&&nd.empty.fire()},_queueHooks:function(e,t){var $=t+`queueHooks`;return ud._data(e,$)||ud._data(e,$,{empty:ud.Callbacks(`once memory`).add(function(){ud._removeData(e,t+`queue`),ud._removeData(e,$)})})}}),ud.fn.extend({queue:function(e,t){var $=2;return typeof e!=`string`&&(t=e,e=`fx`,$--),arguments.length<$?ud.queue(this[0],e):t===void 0?this:this.each(function(){var $=ud.queue(this,e,t);ud._queueHooks(this,e),e===`fx`&&$[0]!==`inprogress`&&ud.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ud.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var $,ed=1,td=ud.Deferred(),nd=this,rd=this.length,id=function(){--ed||td.resolveWith(nd,[nd])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;rd--;)$=ud._data(nd[rd],e+`queueHooks`),$&&$.empty&&(ed++,$.empty.add(id));return id(),td.promise(t)}}),(function(){var e;cd.shrinkWrapBlocks=function(){if(e!=null)return e;e=!1;var t,$=ed.getElementsByTagName(`body`)[0],td;if(!(!$||!$.style))return t=ed.createElement(`div`),td=ed.createElement(`div`),td.style.cssText=`position:absolute;border:0;width:0;height:0;top:0;left:-9999px`,$.appendChild(td).appendChild(t),t.style.zoom!==void 0&&(t.style.cssText=`-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1`,t.appendChild(ed.createElement(`div`)).style.width=`5px`,e=t.offsetWidth!==3),$.removeChild(td),e}})();var Hd=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,Ud=RegExp(`^(?:([+-])=|)(`+Hd+`)([a-z
2%]*)$`,`i`),Wd=[`Top`,`Right`,`Bottom`,`Left`],Gd=function(e,t){return e=t||e,ud.css(e,`display`)===`none`||!ud.contains(e.ownerDocument,e)};function Kd(e,t,$,ed){var td,nd=1,rd=20,id=ed?function(){return ed.cur()}:function(){return ud.css(e,t,``)},ad=id(),od=$&&$[3]||(ud.cssNumber[t]?``:`px`),sd=(ud.cssNumber[t]||od!==`px`&&+ad)&&Ud.exec(ud.css(e,t));if(sd&&sd[3]!==od){od||=sd[3],$||=[],sd=+ad||1;do nd||=`.5`,sd/=nd,ud.style(e,t,sd+od);while(nd!==(nd=id()/ad)&&nd!==1&&--rd)}return $&&(sd=+sd||+ad||0,td=$[1]?sd+($[1]+1)*$[2]:+$[2],ed&&(ed.unit=od,ed.start=sd,ed.end=td)),td}var qd=function(e,t,$,ed,td,nd,rd){var id=0,ad=e.length,od=$==null;if(ud.type($)===`object`)for(id in td=!0,$)qd(e,t,id,$[id],!0,nd,rd);else if(ed!==void 0&&(td=!0,ud.isFunction(ed)||(rd=!0),od&&(rd?(t.call(e,ed),t=null):(od=t,t=function(e,t,$){return od.call(ud(e),$)})),t))for(;id<ad;id++)t(e[id],$,rd?ed:ed.call(e[id],id,t(e[id],$)));return td?e:od?t.call(e):ad?t(e[0],$):nd},Jd=/^(?:checkbox|radio)$/i,Yd=/<([\w:-]+)/,Xd=/^$|\/(?:java|ecma)script/i,Zd=/^\s+/,Qd=`abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video`;function $d(e){var t=Qd.split(`|`),$=e.createDocumentFragment();if($.createElement)for(;t.length;)$.createElement(t.pop());return $}(function(){var e=ed.createElement(`div`),t=ed.createDocumentFragment(),$=ed.createElement(`input`);e.innerHTML=` <link/><table></table><a href='/a'>a</a><input type='checkbox'/>`,cd.leadingWhitespace=e.firstChild.nodeType===3,cd.tbody=!e.getElementsByTagName(`tbody`).length,cd.htmlSerialize=!!e.getElementsByTagName(`link`).length,cd.html5Clone=ed.createElement(`nav`).cloneNode(!0).outerHTML!==`<:nav></:nav>`,$.type=`checkbox`,$.checked=!0,t.appendChild($),cd.appendChecked=$.checked,e.innerHTML=`<textarea>x</textarea>`,cd.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),$=ed.createElement(`input`),$.setAttribute(`type`,`radio`),$.setAttribute(`checked`,`checked`),$.setAttribute(`name`,`t`),e.appendChild($),cd.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,cd.noCloneEvent=!!e.addEventListener,e[ud.expando]=1,cd.attributes=!e.getAttribute(ud.expando)})();var ef={option:[1,`<select multiple='multiple'>`,`</select>`],legend:[1,`<fieldset>`,`</fieldset>`],area:[1,`<map>
2`,`</map>`],param:[1,`<object>`,`</object>`],thead:[1,`<table>`,`</table>`],tr:[2,`<table><tbody>`,`</tbody></table>`],col:[2,`<table><tbody></tbody><colgroup>`,`</colgroup></table>`],td:[3,`<table><tbody><tr>`,`</tr></tbody></table>`],_default:cd.htmlSerialize?[0,``,``]:[1,`X<div>`,`</div>`]};ef.optgroup=ef.option,ef.tbody=ef.tfoot=ef.colgroup=ef.caption=ef.thead,ef.th=ef.td;function tf(e,t){var $,ed,td=0,nd=e.getElementsByTagName===void 0?e.querySelectorAll===void 0?void 0:e.querySelectorAll(t||`*`):e.getElementsByTagName(t||`*`);if(!nd)for(nd=[],$=e.childNodes||e;(ed=$[td])!=null;td++)!t||ud.nodeName(ed,t)?nd.push(ed):ud.merge(nd,tf(ed,t));return t===void 0||t&&ud.nodeName(e,t)?ud.merge([e],nd):nd}function nf(e,t){for(var $,ed=0;($=e[ed])!=null;ed++)ud._data($,`globalEval`,!t||ud._data(t[ed],`globalEval`))}var rf=/<|&#?\w+;/,af=/<tbody/i;function of(e){Jd.test(e.type)&&(e.defaultChecked=e.checked)}function sf(e,t,$,ed,td){for(var nd,rd,id,ad,od,sd,ld,dd=e.length,fd=$d(t),pd=[],md=0;md<dd;md++)if(rd=e[md],rd||rd===0)if(ud.type(rd)===`object`)ud.merge(pd,rd.nodeType?[rd]:rd);else if(!rf.test(rd))pd.push(t.createTextNode(rd));else{for(ad||=fd.appendChild(t.createElement(`div`)),od=(Yd.exec(rd)||[``,``])[1].toLowerCase(),ld=ef[od]||ef._default,ad.innerHTML=ld[1]+ud.htmlPrefilter(rd)+ld[2],nd=ld[0];nd--;)ad=ad.lastChild;if(!cd.leadingWhitespace&&Zd.test(rd)&&pd.push(t.createTextNode(Zd.exec(rd)[0])),!cd.tbody)for(rd=od===`table`&&!af.test(rd)?ad.firstChild:ld[1]===`<table>`&&!af.test(rd)?ad:0,nd=rd&&rd.childNodes.length;nd--;)ud.nodeName(sd=rd.childNodes[nd],`tbody`)&&!sd.childNodes.length&&rd.removeChild(sd);for(ud.merge(pd,ad.childNodes),ad.textContent=``;ad.firstChild;)ad.removeChild(ad.firstChild);ad=fd.lastChild}for(ad&&fd.removeChild(ad),cd.appendChecked||ud.grep(tf(pd,`input`),of),md=0;rd=pd[md++];){if(ed&&ud.inArray(rd,ed)>-1){td&&td.push(rd);continue}if(id=ud.contains(rd.ownerDocument,rd),ad=tf(fd.appendChild(rd),`script`),id&&nf(ad),$)for(nd=0;rd=ad[nd++];)Xd.test(rd.type||``)&&$.push(rd)}return ad=null,fd}(function(){var t,$,td=ed.createElement(`div`);for(t in{submit:!0,change:!0,focusin:!0})$=`on`+t,(cd[t]=$ in e)||(td.setAttribute($,`t`),cd[t]=td.attributes[$].expando===!1);td=null})();var cf=/^(?:input|select|textarea)$/i,lf=/^key/,uf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,df=/^(?:focusinfocus|focusoutblur)$/,ff=/^([^.]*)(?:\.(.+)|)/;function pf(){return!0}function mf(){return!1}function hf(){try{return ed.activeElement}catch{}}function gf(e,t,$,ed,td,nd){var rd,id;if(typeof t==`object`){for(id in typeof $!=`string`&&(ed||=$,$=void 0),t)gf(e,id,$,ed,t[id],nd);return e}if(ed==null&&td==null?(td=$,ed=$=void 0):td??(typeof $==`string`?(td=ed,ed=void 0):(td=ed,ed=$,$=void 0)),td===!1)td=mf;else if(!td)return e;return nd===1&&(rd=td,td=function(e){return ud().off(e),rd.apply(this,arguments)},td.guid=rd.guid||=ud.guid++),e.each(function(){ud.event.add(this,t,td,ed,$)})}ud.event={global:{},add:function(e,t,$,ed,td){var nd,rd,id,ad,od,sd,cd,ld,dd,fd,pd,md=ud._data(e);if(md){for($.handler&&(ad=$,$=ad.handler,td=ad.selector),$.guid||=ud.guid++,(rd=md.events)||(rd=md.events={}),(sd=md.handle)||(sd=md.handle=function(e){return ud!==void 0&&(!e||ud.event.triggered!==e.type)?ud.event.dispatch.apply(sd.elem,arguments):void 0},sd.elem=e),t=(t||``).match(kd)||[``],id=t.length;id--;)nd=ff.exec(t[id])||[],dd=pd=nd[1],fd=(nd[2]||``).split(`.`).sort(),dd&&(od=ud.event.special[dd]||{},dd=(td?od.delegateType:od.bindType)||dd,od=ud.event.special[dd]||{},cd=ud.extend({type:dd,origType:pd,data:ed,handler:$,guid:$.guid,selector:td,needsContext:td&&ud.expr.match.needsContext.test(td),namespace:fd.join(`.`)},ad),(ld=rd[dd])||(ld=rd[dd]=[],ld.delegateCount=0,(!od.setup||od.setup.call(e,ed,fd,sd)===!1)&&(e.addEventListener?e.addEventListener(dd,sd,!1):e.attachEvent&&e.attachEvent(`on`+dd,sd))),od.add&&(od.add.call(e,cd),cd.handler.guid||(cd.handler.guid=$.guid)),td?ld.splice(ld.delegateCount++,0,cd):ld.push(cd),ud.event.global[dd]=!0);e=null}},remove:function(e,t,$,ed,td){var nd,rd,id,ad,od,sd,cd,ld,dd,fd,pd,md=ud.hasData(e)&&ud._data(e);if(!(!md||!(sd=md.events))){for(t=(t||``).match(kd)||[``],od=t.length;od--;){if(id=ff.exec(t[od])||[],dd=pd=id[1],fd=(id[2]||``).split(`.`).sort(),!dd){for(dd in sd)ud.event.remove(e,dd+t[od],$,ed,!0);continue}for(cd=ud.event.special[dd]||{},dd=(ed?cd.delegateType:cd.bindType)||dd,ld=sd[dd]||[],id=id[2]&&RegExp(`(^|\\.)`+fd.join(`\\.(?:.*\\.|)`)+`(\\.|$)`),ad=nd=ld.length;nd--;)rd=ld[nd],(td||pd===rd.origType)&&(!$||$.guid===rd.guid)&&(!id||id.test(rd.namespace))&&(!ed||ed===rd.selector||ed===`**`&&rd.selector)&&(ld.splice(nd,1),rd.selector&&ld.delegateCount--,cd.remove&&cd.remove.call(e,rd));ad&&!ld.length&&((!cd.teardown||cd.teardown.call(e,fd,md.handle)===!1)&&ud.removeEvent(e,dd,md.handle),delete sd[dd])}ud.isEmptyObject(sd)&&(delete md.handle,ud._removeData(e,`events`))}},trigger:function(t,$,td,nd){var rd,id,ad,od,cd,ld,dd,fd=[td||ed],pd=sd.call(t,`type`)?t.type:t,md=sd.call(t,`namespace`)?t.namespace.split(`.`):[];if(ad=ld=td||=ed,!(td.nodeType===3||td.nodeType===8)&&!df.test(pd+ud.event.triggered)&&(pd.indexOf(`.`)>-1&&(md=pd.split(`.`),pd=md.shift(),md.sort()),id=pd.indexOf(`:`)<0&&`on`+pd,t=t[ud.expando]?t:new ud.Event(pd,typeof t==`object`&&t),t.isTrigger=nd?2:3,t.namespace=md.join(`.`),t.rnamespace=t.namespace?RegExp(`(^|\\.)`+md.join(`\\.(?:.*\\.|)`)+`(\\.|$)`):null,t.result=void 0,t.target||=td,$=$==null?[t]:ud.makeArray($,[t]),cd=ud.event.special[pd]||{},!(!nd&&cd.trigger&&cd.trigger.apply(td,$)===!1))){if(!nd&&!cd.noBubble&&!ud.isWindow(td)){for(od=cd.delegateType||pd,df.test(od+pd)||(ad=ad.parentNode);ad;ad=ad.parentNode)fd.push(ad),ld=ad;ld===(td.ownerDocument||ed)&&fd.push(ld.defaultView||ld.parentWindow||e)}for(dd=0;(ad=fd[dd++])&&!t.isPropagationStopped();)t.type=dd>1?od:cd.bindType||pd,rd=(ud._data(ad,`events`)||{})[t.type]&&ud._data(ad,`handle`),rd&&rd.apply(ad,$),rd=id&&ad[id],rd&&rd.apply&&Fd(ad)&&(t.result=rd.apply(ad,$),t.result===!1&&t.preventDefault());if(t.type=pd,!nd&&!t.isDefaultPrevented()&&(!cd._default||cd._default.apply(fd.pop(),$)===!1)&&Fd(td)&&id&&td[pd]&&!ud.isWindow(td)){ld=td[id],ld&&(td[id]=null),ud.event.triggered=pd;try{td[pd]()}catch{}ud.event.triggered=void 0,ld&&(td[id]=ld)}return t.result}},dispatch:function(e){e=ud.event.fix(e);var t,$,ed,nd,rd,id=[],ad=td.call(arguments),od=(ud._data(this,`events`)||{})[e.type]||[],sd=ud.event.special[e.type]||{};if(ad[0]=e,e.delegateTarget=this,!(sd.preDispatch&&sd.preDispatch.call(this,e)===!1)){for(id=ud.event.handlers.call(this,e,od),t=0;(nd=id[t++])&&!e.isPropagationStopped();)for(e.currentTarget=nd.elem,$=0;(rd=nd.handlers[$++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(rd.namespace))&&(e.handleObj=rd,e.data=rd.data,ed=((ud.event.special[rd.origType]||{}).handle||rd.handler).apply(nd.elem,ad),ed!==void 0&&(e.result=ed)===!1&&(e.preventDefault(),e.stopPropagation()));return sd.postDispatch&&sd.postDispatch.call(this,e),e.result}},handlers:function(e,t){var $,ed,td,nd,rd=[],id=t.delegateCount,ad=e.target;if(id&&ad.nodeType&&(e.type!==`click`||isNaN(e.button)||e.button<1)){for(;ad!=this;ad=ad.parentNode||this)if(ad.nodeType===1&&(ad.disabled!==!0||e.type!==`click`)){for(ed=[],$=0;$<id;$++)nd=t[$],td=nd.selector+` `,ed[td]===void 0&&(ed[td]=nd.needsContext?ud(td,this).index(ad)>-1:ud.find(td,this,null,[ad]).length),ed[td]&&ed.push(nd);ed.length&&rd.push({elem:ad,handlers:ed})}}return id<t.length&&rd.push({elem:this,handlers:t.slice(id)}),rd},fix:function(e){if(e[ud.expando])return e;var t,$,td,nd=e.type,rd=e,id=this.fixHooks[nd];for(id||(this.fixHooks[nd]=id=uf.test(nd)?this.mouseHooks:lf.test(nd)?this.keyHooks:{}),td=id.props?this.props.concat(id.props):this.props,e=new ud.Event(rd),t=td.length;t--;)$=td[t],e[$]=rd[$];return e.target||=rd.srcElement||ed,e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,id.filter?id.filter(e,rd):e},props:`altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which`.split(` `),fixHooks:{}
2,keyHooks:{props:`char charCode key keyCode`.split(` `),filter:function(e,t){return e.which??=t.charCode==null?t.keyCode:t.charCode,e}},mouseHooks:{props:`button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement`.split(` `),filter:function(e,t){var $,td,nd,rd=t.button,id=t.fromElement;return e.pageX==null&&t.clientX!=null&&(td=e.target.ownerDocument||ed,nd=td.documentElement,$=td.body,e.pageX=t.clientX+(nd&&nd.scrollLeft||$&&$.scrollLeft||0)-(nd&&nd.clientLeft||$&&$.clientLeft||0),e.pageY=t.clientY+(nd&&nd.scrollTop||$&&$.scrollTop||0)-(nd&&nd.clientTop||$&&$.clientTop||0)),!e.relatedTarget&&id&&(e.relatedTarget=id===e.target?t.toElement:id),!e.which&&rd!==void 0&&(e.which=rd&1?1:rd&2?3:rd&4?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==hf()&&this.focus)try{return this.focus(),!1}catch{}},delegateType:`focusin`},blur:{trigger:function(){if(this===hf()&&this.blur)return this.blur(),!1},delegateType:`focusout`},click:{trigger:function(){if(ud.nodeName(this,`input`)&&this.type===`checkbox`&&this.click)return this.click(),!1},_default:function(e){return ud.nodeName(e.target,`a`)}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,$){var ed=ud.extend(new ud.Event,$,{type:e,isSimulated:!0});ud.event.trigger(ed,null,t),ed.isDefaultPrevented()&&$.preventDefault()}},ud.removeEvent=ed.removeEventListener?function(e,t,$){e.removeEventListener&&e.removeEventListener(t,$)}:function(e,t,$){var ed=`on`+t;e.detachEvent&&(e[ed]===void 0&&(e[ed]=null),e.detachEvent(ed,$))},ud.Event=function(e,t){if(!(this instanceof ud.Event))return new ud.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?pf:mf):this.type=e,t&&ud.extend(this,t),this.timeStamp=e&&e.timeStamp||ud.now(),this[ud.expando]=!0},ud.Event.prototype={constructor:ud.Event,isDefaultPrevented:mf,isPropagationStopped:mf,isImmediatePropagationStopped:mf,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=pf,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=pf,!(!e||this.isSimulated)&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=pf,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ud.each({mouseenter:`mouseover`,mouseleave:`mouseout`,pointerenter:`pointerover`,pointerleave:`pointerout`},function(e,t){ud.event.special[e]={delegateType:t,bindType:t,handle:function(e){var $,ed=this,td=e.relatedTarget,nd=e.handleObj;return(!td||td!==ed&&!ud.contains(ed,td))&&(e.type=nd.origType,$=nd.handler.apply(this,arguments),e.type=t),$}}}),cd.submit||(ud.event.special.submit={setup:function(){if(ud.nodeName(this,`form`))return!1;ud.event.add(this,`click._submit keypress._submit`,function(e){var t=e.target,$=ud.nodeName(t,`input`)||ud.nodeName(t,`button`)?ud.prop(t,`form`):void 0;$&&!ud._data($,`submit`)&&(ud.event.add($,`submit._submit`,function(e){e._submitBubble=!0}),ud._data($,`submit`,!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&ud.event.simulate(`submit`,this.parentNode,e))},teardown:function(){if(ud.nodeName(this,`form`))return!1;ud.event.remove(this,`._submit`)}}),cd.change||(ud.event.special.change={setup:function(){if(cf.test(this.nodeName))return(this.type===`checkbox`||this.type===`radio`)&&(ud.event.add(this,`propertychange._change`,function(e){e.originalEvent.propertyName===`checked`&&(this._justChanged=!0)}),ud.event.add(this,`click._change`,function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),ud.event.simulate(`change`,this,e)})),!1;ud.event.add(this,`beforeactivate._change`,function(e){var t=e.target;cf.test(t.nodeName)&&!ud._data(t,`change`)&&(ud.event.add(t,`change._change`,function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&ud.event.simulate(`change`,this.parentNode,e)}),ud._data(t,`change`,!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!==`radio`&&t.type!==`checkbox`)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return ud.event.remove(this,`._change`),!cf.test(this.nodeName)}}
2),cd.focusin||ud.each({focus:`focusin`,blur:`focusout`},function(e,t){var $=function(e){ud.event.simulate(t,e.target,ud.event.fix(e))};ud.event.special[t]={setup:function(){var ed=this.ownerDocument||this,td=ud._data(ed,t);td||ed.addEventListener(e,$,!0),ud._data(ed,t,(td||0)+1)},teardown:function(){var ed=this.ownerDocument||this,td=ud._data(ed,t)-1;td?ud._data(ed,t,td):(ed.removeEventListener(e,$,!0),ud._removeData(ed,t))}}}),ud.fn.extend({on:function(e,t,$,ed){return gf(this,e,t,$,ed)},one:function(e,t,$,ed){return gf(this,e,t,$,ed,1)},off:function(e,t,$){var ed,td;if(e&&e.preventDefault&&e.handleObj)return ed=e.handleObj,ud(e.delegateTarget).off(ed.namespace?ed.origType+`.`+ed.namespace:ed.origType,ed.selector,ed.handler),this;if(typeof e==`object`){for(td in e)this.off(td,t,e[td]);return this}return(t===!1||typeof t==`function`)&&($=t,t=void 0),$===!1&&($=mf),this.each(function(){ud.event.remove(this,e,$,t)})},trigger:function(e,t){return this.each(function(){ud.event.trigger(e,t,this)})},triggerHandler:function(e,t){var $=this[0];if($)return ud.event.trigger(e,t,$,!0)}});var _f=/ jQuery\d+="(?:null|\d+)"/g,vf=RegExp(`<(?:`+Qd+`)[\\s/>]`,`i`),yf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,bf=/<script|<style|<link/i,xf=/checked\s*(?:[^=]|=\s*.checked.)/i,Sf=/^true\/(.*)/,Cf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,wf=$d(ed).appendChild(ed.createElement(`div`));function Tf(e,t){return ud.nodeName(e,`table`)&&ud.nodeName(t.nodeType===11?t.firstChild:t,`tr`)?e.getElementsByTagName(`tbody`)[0]||e.appendChild(e.ownerDocument.createElement(`tbody`)):e}function Ef(e){return e.type=(ud.find.attr(e,`type`)!==null)+`/`+e.type,e}function Df(e){var t=Sf.exec(e.type);return t?e.type=t[1]:e.removeAttribute(`type`),e}function Of(e,t){if(!(t.nodeType!==1||!ud.hasData(e))){var $,ed,td,nd=ud._data(e),rd=ud._data(t,nd),id=nd.events;if(id)for($ in delete rd.handle,rd.events={},id)for(ed=0,td=id[$].length;ed<td;ed++)ud.event.add(t,$,id[$][ed]);rd.data&&=ud.extend({},rd.data)}}function kf(e,t){var $,ed,td;if(t.nodeType===1){if($=t.nodeName.toLowerCase(),!cd.noCloneEvent&&t[ud.expando]){for(ed in td=ud._data(t),td.events)ud.removeEvent(t,ed,td.handle);t.removeAttribute(ud.expando)}$===`script`&&t.text!==e.text?(Ef(t).text=e.text,Df(t)):$===`object`?(t.parentNode&&(t.outerHTML=e.outerHTML),cd.html5Clone&&e.innerHTML&&!ud.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):$===`input`&&Jd.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):$===`option`?t.defaultSelected=t.selected=e.defaultSelected:($===`input`||$===`textarea`)&&(t.defaultValue=e.defaultValue)}}function Af(e,t,$,ed){t=nd.apply([],t);var td,rd,id,ad,od,sd,ld=0,dd=e.length,fd=dd-1,pd=t[0],md=ud.isFunction(pd);if(md||dd>1&&typeof pd==`string`&&!cd.checkClone&&xf.test(pd))return e.each(function(td){var nd=e.eq(td);md&&(t[0]=pd.call(this,td,nd.html())),Af(nd,t,$,ed)});if(dd&&(sd=sf(t,e[0].ownerDocument,!1,e,ed),td=sd.firstChild,sd.childNodes.length===1&&(sd=td),td||ed)){for(ad=ud.map(tf(sd,`script`),Ef),id=ad.length;ld<dd;ld++)rd=sd,ld!==fd&&(rd=ud.clone(rd,!0,!0),id&&ud.merge(ad,tf(rd,`script`))),$.call(e[ld],rd,ld);if(id)for(od=ad[ad.length-1].ownerDocument,ud.map(ad,Df),ld=0;ld<id;ld++)rd=ad[ld],Xd.test(rd.type||``)&&!ud._data(rd,`globalEval`)&&ud.contains(od,rd)&&(rd.src?ud._evalUrl&&ud._evalUrl(rd.src):ud.globalEval((rd.text||rd.textContent||rd.innerHTML||``).replace(Cf,``)));sd=td=null}return e}function jf(e,t,$){for(var ed,td=t?ud.filter(t,e):e,nd=0;(ed=td[nd])!=null;nd++)!$&&ed.nodeType===1&&ud.cleanData(tf(ed)),ed.parentNode&&($&&ud.contains(ed.ownerDocument,ed)&&nf(tf(ed,`script`)),ed.parentNode.removeChild(ed));return e}ud.extend({htmlPrefilter:function(e){return e.replace(yf,`<$1></$2>`)},clone:function(e,t,$){var ed,td,nd,rd,id,ad=ud.contains(e.ownerDocument,e);if(cd.html5Clone||ud.isXMLDoc(e)||!vf.test(`<`+e.nodeName+`>`)?nd=e.cloneNode(!0):(wf.innerHTML=e.outerHTML,wf.removeChild(nd=wf.firstChild)),(!cd.noCloneEvent||!cd.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!ud.isXMLDoc(e))for(ed=tf(nd),id=tf(e),rd=0;(td=id[rd])!=null;++rd)ed[rd]&&kf(td,ed[rd]);if(t)if($)for(id||=tf(e),ed||=tf(nd),rd=0;(td=id[rd])!=null;rd++)Of(td,ed[rd]);else Of(e,nd);return ed=tf(nd,`script`),ed.length>0&&nf(ed,!ad&&tf(e,`script`)),ed=id=td=null,nd},cleanData:function(e,t){for(var ed,td,nd,rd,id=0,ad=ud.expando,od=ud.cache,sd=cd.attributes,ld=ud.event.special;(ed=e[id])!=null;id++)if((t||Fd(ed))&&(nd=ed[ad],rd=nd&&od[nd],rd)){if(rd.events)for(td in rd.events)ld[td]?ud.event.remove(ed,td):ud.removeEvent(ed,td,rd.handle);od[nd]&&(delete od[nd],!sd&&ed.removeAttribute!==void 0?ed.removeAttribute(ad):ed[ad]=void 0,$.push(nd))}}}),ud.fn.extend({domManip:Af,detach:function(e){return jf(this,e,!0)},remove:function(e){return jf(this,e)},text:function(e){return qd(this,function(e){return e===void 0?ud.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ed).createTextNode(e))},null,e,arguments.length)},append:function(){return Af(this,arguments,function(e){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&Tf(this,e).appendChild(e)})},prepend:function(){return Af(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Tf(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Af(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Af(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++){for(e.nodeType===1&&ud.cleanData(tf(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ud.nodeName(e,`select`)&&(e.options.length=0)}return this},clone:function(e,t){return e??=!1,t??=e,this.map(function(){return ud.clone(this,e,t)})},html:function(e){return qd(this,function(e){var t=this[0]||{},$=0,ed=this.length;if(e===void 0)return t.nodeType===1?t.innerHTML.replace(_f,``):void 0;if(typeof e==`string`&&!bf.test(e)&&(cd.htmlSerialize||!vf.test(e))&&(cd.leadingWhitespace||!Zd.test(e))&&!ef[(Yd.exec(e)||[``,``])[1].toLowerCase()]){e=ud.htmlPrefilter(e);try{for(;$<ed;$++)t=this[$]||{},t.nodeType===1&&(ud.cleanData(tf(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Af(this,arguments,function(t){var $=this.parentNode;ud.inArray(this,e)<0&&(ud.cleanData(tf(this)),$&&$.replaceChild(t,this))},e)}}
2),ud.each({appendTo:`append`,prependTo:`prepend`,insertBefore:`before`,insertAfter:`after`,replaceAll:`replaceWith`},function(e,t){ud.fn[e]=function(e){for(var $,ed=0,td=[],nd=ud(e),id=nd.length-1;ed<=id;ed++)$=ed===id?this:this.clone(!0),ud(nd[ed])[t]($),rd.apply(td,$.get());return this.pushStack(td)}});var Mf,Nf={HTML:`block`,BODY:`block`};function Pf(e,t){var $=ud(t.createElement(e)).appendTo(t.body),ed=ud.css($[0],`display`);return $.detach(),ed}function Ff(e){var t=ed,$=Nf[e];return $||($=Pf(e,t),($===`none`||!$)&&(Mf=(Mf||ud(`<iframe frameborder='0' width='0' height='0'/>`)).appendTo(t.documentElement),t=(Mf[0].contentWindow||Mf[0].contentDocument).document,t.write(),t.close(),$=Pf(e,t),Mf.detach()),Nf[e]=$),$}var If=/^margin/,Lf=RegExp(`^(`+Hd+`)(?!px)[a-z%]+$`,`i`),Rf=function(e,t,$,ed){var td,nd,rd={};for(nd in t)rd[nd]=e.style[nd],e.style[nd]=t[nd];for(nd in td=$.apply(e,ed||[]),t)e.style[nd]=rd[nd];return td},zf=ed.documentElement;(function(){var t,$,td,nd,rd,id,ad=ed.createElement(`div`),od=ed.createElement(`div`);if(!od.style)return;od.style.cssText=`float:left;opacity:.5`,cd.opacity=od.style.opacity===`0.5`,cd.cssFloat=!!od.style.cssFloat,od.style.backgroundClip=`content-box`,od.cloneNode(!0).style.backgroundClip=``,cd.clearCloneStyle=od.style.backgroundClip===`content-box`,ad=ed.createElement(`div`),ad.style.cssText=`border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute`,od.innerHTML=``,ad.appendChild(od),cd.boxSizing=od.style.boxSizing===``||od.style.MozBoxSizing===``||od.style.WebkitBoxSizing===``,ud.extend(cd,{reliableHiddenOffsets:function(){return t??sd(),nd},boxSizingReliable:function(){return t??sd(),td},pixelMarginRight:function(){return t??sd(),$},pixelPosition:function(){return t??sd(),t},reliableMarginRight:function(){return t??sd(),rd},reliableMarginLeft:function(){return t??sd(),id}});function sd(){var sd,cd,ld=ed.documentElement;ld.appendChild(ad),od.style.cssText=`-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%`,t=td=id=!1,$=rd=!0,e.getComputedStyle&&(cd=e.getComputedStyle(od),t=(cd||{}).top!==`1%`,id=(cd||{}).marginLeft===`2px`,td=(cd||{width:`4px`}).width===`4px`,od.style.marginRight=`50%`,$=(cd||{marginRight:`4px`}).marginRight===`4px`,sd=od.appendChild(ed.createElement(`div`)),sd.style.cssText=od.style.cssText=`-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0`,sd.style.marginRight=sd.style.width=`0`,od.style.width=`1px`,rd=!parseFloat((e.getComputedStyle(sd)||{}).marginRight),od.removeChild(sd)),od.style.display=`none`,nd=od.getClientRects().length===0,nd&&(od.style.display=``,od.innerHTML=`<table><tr><td></td><td>t</td></tr></table>`,od.childNodes[0].style.borderCollapse=`separate`,sd=od.getElementsByTagName(`td`),sd[0].style.cssText=`margin:0;border:0;padding:0;display:none`,nd=sd[0].offsetHeight===0,nd&&=(sd[0].style.display=``,sd[1].style.display=`none`,sd[0].offsetHeight===0)),ld.removeChild(ad)}})();var Bf,Vf,Hf=/^(top|right|bottom|left)$/;e.getComputedStyle?(Bf=function(t){var $=t.ownerDocument.defaultView;return(!$||!$.opener)&&($=e),$.getComputedStyle(t)},Vf=function(e,t,$){var ed,td,nd,rd,id=e.style;return $||=Bf(e),rd=$?$.getPropertyValue(t)||$[t]:void 0,(rd===``||rd===void 0)&&!ud.contains(e.ownerDocument,e)&&(rd=ud.style(e,t)),$&&!cd.pixelMarginRight()&&Lf.test(rd)&&If.test(t)&&(ed=id.width,td=id.minWidth,nd=id.maxWidth,id.minWidth=id.maxWidth=id.width=rd,rd=$.width,id.width=ed,id.minWidth=td,id.maxWidth=nd),rd===void 0?rd:rd+``}):zf.currentStyle&&(Bf=function(e){return e.currentStyle},Vf=function(e,t,$){var ed,td,nd,rd,id=e.style;return $||=Bf(e),rd=$?$[t]:void 0,rd==null&&id&&id[t]&&(rd=id[t]),Lf.test(rd)&&!Hf.test(t)&&(ed=id.left,td=e.runtimeStyle,nd=td&&td.left,nd&&
2(td.left=e.currentStyle.left),id.left=t===`fontSize`?`1em`:rd,rd=id.pixelLeft+`px`,id.left=ed,nd&&(td.left=nd)),rd===void 0?rd:rd+``||`auto`});function Uf(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var Wf=/alpha\([^)]*\)/i,Gf=/opacity\s*=\s*([^)]*)/i,Kf=/^(none|table(?!-c[ea]).+)/,qf=RegExp(`^(`+Hd+`)(.*)$`,`i`),Jf={position:`absolute`,visibility:`hidden`,display:`block`},Yf={letterSpacing:`0`,fontWeight:`400`},Xf=[`Webkit`,`O`,`Moz`,`ms`],Zf=ed.createElement(`div`).style;function Qf(e){if(e in Zf)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),$=Xf.length;$--;)if(e=Xf[$]+t,e in Zf)return e}function $f(e,t){for(var $,ed,td,nd=[],rd=0,id=e.length;rd<id;rd++)ed=e[rd],ed.style&&(nd[rd]=ud._data(ed,`olddisplay`),$=ed.style.display,t?(!nd[rd]&&$===`none`&&(ed.style.display=``),ed.style.display===``&&Gd(ed)&&(nd[rd]=ud._data(ed,`olddisplay`,Ff(ed.nodeName)))):(td=Gd(ed),($&&$!==`none`||!td)&&ud._data(ed,`olddisplay`,td?$:ud.css(ed,`display`))));for(rd=0;rd<id;rd++)ed=e[rd],ed.style&&(!t||ed.style.display===`none`||ed.style.display===``)&&(ed.style.display=t?nd[rd]||``:`none`);return e}function em(e,t,$){var ed=qf.exec(t);return ed?Math.max(0,ed[1]-($||0))+(ed[2]||`px`):t}function tm(e,t,$,ed,td){for(var nd=$===(ed?`border`:`content`)?4:+(t===`width`),rd=0;nd<4;nd+=2)$===`margin`&&(rd+=ud.css(e,$+Wd[nd],!0,td)),ed?($===`content`&&(rd-=ud.css(e,`padding`+Wd[nd],!0,td)),$!==`margin`&&(rd-=ud.css(e,`border`+Wd[nd]+`Width`,!0,td))):(rd+=ud.css(e,`padding`+Wd[nd],!0,td),$!==`padding`&&(rd+=ud.css(e,`border`+Wd[nd]+`Width`,!0,td)));return rd}function nm(e,t,$){var ed=!0,td=t===`width`?e.offsetWidth:e.offsetHeight,nd=Bf(e),rd=cd.boxSizing&&ud.css(e,`boxSizing`,!1,nd)===`border-box`;if(td<=0||td==null){if(td=Vf(e,t,nd),(td<0||td==null)&&(td=e.style[t]),Lf.test(td))return td;ed=rd&&(cd.boxSizingReliable()||td===e.style[t]),td=parseFloat(td)||0}return td+tm(e,t,$||(rd?`border`:`content`),ed,nd)+`px`}ud.extend({cssHooks:{opacity:{get:function(e,t){if(t){var $=Vf(e,`opacity`);return $===``?`1`:$}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:cd.cssFloat?`cssFloat`:`styleFloat`},style:function(e,t,$,ed){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var td,nd,rd,id=ud.camelCase(t),ad=e.style;if(t=ud.cssProps[id]||(ud.cssProps[id]=Qf(id)||id),rd=ud.cssHooks[t]||ud.cssHooks[id],$!==void 0){if(nd=typeof $,nd===`string`&&(td=Ud.exec($))&&td[1]&&($=Kd(e,t,td),nd=`number`),$==null||$!==$)return;if(nd===`number`&&($+=td&&td[3]||(ud.cssNumber[id]?``:`px`)),!cd.clearCloneStyle&&$===``&&t.indexOf(`background`)===0&&(ad[t]=`inherit`),!rd||!(`set`in rd)||($=rd.set(e,$,ed))!==void 0)try{ad[t]=$}catch{}}else return rd&&`get`in rd&&(td=rd.get(e,!1,ed))!==void 0?td:ad[t]}},css:function(e,t,$,ed){var td,nd,rd,id=ud.camelCase(t);return t=ud.cssProps[id]||(ud.cssProps[id]=Qf(id)||id),rd=ud.cssHooks[t]||ud.cssHooks[id],rd&&`get`in rd&&(nd=rd.get(e,!0,$)),nd===void 0&&(nd=Vf(e,t,ed)),nd===`normal`&&t in Yf&&(nd=Yf[t]),$===``||$?(td=parseFloat(nd),$===!0||isFinite(td)?td||0:nd):nd}}),ud.each([`height`,`width`],function(e,t){ud.cssHooks[t]={get:function(e,$,ed){if($)return Kf.test(ud.css(e,`display`))&&e.offsetWidth===0?Rf(e,Jf,function(){return nm(e,t,ed)}):nm(e,t,ed)},set:function(e,$,ed){var td=ed&&Bf(e);return em(e,$,ed?tm(e,t,ed,cd.boxSizing&&ud.css(e,`boxSizing`,!1,td)===`border-box`,td):0)}}}),cd.opacity||(ud.cssHooks.opacity={get:function(e,t){return Gf.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||``)?.01*parseFloat(RegExp.$1)+``:t?`1`:``},set:function(e,t){var $=e.style,ed=e.currentStyle,td=ud.isNumeric(t)?`alpha(opacity=`+t*100+`)`:``,nd=ed&&ed.filter||$.filter||``;$.zoom=1,!((t>=1||t===``)&&ud.trim(nd.replace(Wf,``))===``&&$.removeAttribute&&($.removeAttribute(`filter`),t===``||ed&&!ed.filter))&&($.filter=Wf.test(nd)?nd.replace(Wf,td):nd+` `+td)}}),ud.cssHooks.marginRight=Uf(cd.reliableMarginRight,function(e,t){if(t)return Rf(e,{display:`inline-block`},Vf,[e,`marginRight`])}),ud.cssHooks.marginLeft=Uf(cd.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Vf(e,`marginLeft`))||(ud.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Rf(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+`px`}),ud.each({margin:``,padding:``,border:`Width`},function(e,t){ud.cssHooks[e+t]={expand:function($){for(var ed=0,td={},nd=typeof $==`string`?$.split(` `):[$];ed<4;ed++)td[e+Wd[ed]+t]=nd[ed]||nd[ed-2]||nd[0];return td}},If.test(e)||(ud.cssHooks[e+t].set=em)}),ud.fn.extend({css:function(e,t){return qd(this,function(e,t,$){var ed,td,nd={},rd=0;if(ud.isArray(t)){for(ed=Bf(e),td=t.length;rd<td;rd++)nd[t[rd]]=ud.css(e,t[rd],!1,ed);return nd}return $===void 0?ud.css(e,t):ud.style(e,t,$)},e,t,arguments.length>1)},show:function(){return $f(this,!0)},hide:function(){return $f(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){Gd(this)?ud(this).show():ud(this).hide()})}});function rm(e,t,$,ed,td){return new rm.prototype.init(e,t,$,ed,td)}ud.Tween=rm,rm.prototype={constructor:rm,init:function(e,t,$,ed,td,nd){this.elem=e,this.prop=$,this.easing=td||ud.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=ed,this.unit=nd||(ud.cssNumber[$]?``:`px`)},cur:function(){var e=rm.propHooks[this.prop];return e&&e.get?e.get(this):rm.propHooks._default.get(this)},run:function(e){var t,$=rm.propHooks[this.prop];return this.options.duration?this.pos=t=ud.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),$&&$.set?$.set(this):rm.propHooks._default.set(this),this}},rm.prototype.init.prototype=rm.prototype,rm.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=ud.css(e.elem,e.prop,``),!t||t===`auto`?0:t)},set:function(e){ud.fx.step[e.prop]?ud.fx.step[e.prop](e):e.elem.nodeType===1&&(e.elem.style[ud.cssProps[e.prop]]!=null||ud.cssHooks[e.prop])?ud.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rm.propHooks.scrollTop=rm.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ud.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:`swing`},ud.fx=rm.prototype.init,ud.fx.step={};var im,am,om=/^(?:toggle|show|hide)$/,sm=/queueHooks$/;function cm(){return e.setTimeout(function(){im=void 0}),im=ud.now()}function lm(e,t){var $,ed={height:e},td=0;for(t=+!!t;td<4;td+=2-t)$=Wd[td],ed[`margin`+$]=ed[`padding`+$]=e;return t&&(ed.opacity=ed.width=e),ed}function um(e,t,$){for(var ed,td=(pm.tweeners[t]||[]).concat(pm.tweeners[`*`]),nd=0,rd=td.length;nd<rd;nd++)if(ed=td[nd].call($,t,e))return ed}function dm(e,t,$){var ed,td,nd,rd,id,ad,od,sd,ld=this,dd={},fd=e.style,pd=e.nodeType&&Gd(e),md=ud._data(e,`fxshow`);for(ed in $.queue||(id=ud._queueHooks(e,`fx`),id.unqueued??(id.unqueued=0,ad=id.empty.fire,id.empty.fire=function(){id.unqueued||ad()}),id.unqueued++,ld.always(function(){ld.always(function(){id.unqueued--,ud.queue(e,`fx`).length||id.empty.fire()})})),e.nodeType===1&&(`height`in t||`width`in t)&&($.overflow=[fd.overflow,fd.overflowX,fd.overflowY],od=ud.css(e,`display`),sd=od===`none`?ud._data(e,`olddisplay`)||Ff(e.nodeName):od,sd===`inline`&&ud.css(e,`float`)===`none`&&(!cd.inlineBlockNeedsLayout||Ff(e.nodeName)===`inline`?fd.display=`inline-block`:fd.zoom=1)),$.overflow&&(fd.overflow=`hidden`,cd.shrinkWrapBlocks()||ld.always(function(){fd.overflow=$.overflow[0],fd.overflowX=$.overflow[1],fd.overflowY=$.overflow[2]})),t)if(td=t[ed],om.exec(td)){if(delete t[ed],nd||=td===`toggle`,td===(pd?`hide`:`show`))if(td===`show`&&md&&md[ed]!==void 0)pd=!0;else continue;dd[ed]=md&&md[ed]||ud.style(e,ed)}else od=void 0;if(ud.isEmptyObject(dd))(od===`none`?Ff(e.nodeName):od)===`inline`&&(fd.display=od);else for(ed in md?`hidden`in md&&(pd=md.hidden):md=ud._data(e,`fxshow`,{}),nd&&(md.hidden=!pd),pd?ud(e).show():ld.done(function(){ud(e).hide()}),ld.done(function(){for(var t in ud._removeData(e,`fxshow`),dd)ud.style(e,t,dd[t])}),dd)rd=um(pd?md[ed]:0,ed,ld),ed in md||(md[ed]=rd.start,pd&&(rd.end=rd.start,rd.start=+(ed===`width`||ed===`height`)))}function fm(e,t){var $,ed,td,nd,rd;for($ in e)if(ed=ud.camelCase($),td=t[ed],nd=e[$],ud.isArray(nd)&&(td=nd[1],nd=e[$]=nd[0]),$!==ed&&(e[ed]=nd,delete e[$]),rd=ud.cssHooks[ed],rd&&`expand`in rd)for($ in nd=rd.expand(nd),delete e[ed],nd)$ in e||(e[$]=nd[$],t[$]=td);else t[ed]=td}function pm(e,t,$){var ed,td,nd=0,rd=pm.prefilters.length,id=ud.Deferred().always(function(){delete ad.elem}),ad=function(){if(td)return!1;for(var t=im||cm(),$=Math.max(0,od.startTime+od.duration-t),ed=1-($/od.duration||0),nd=0,rd=od.tweens.length;nd<rd;nd++)od.tweens[nd].run(ed);return id.notifyWith(e,[od,ed,$]),ed<1&&rd?$:(id.resolveWith(e,[od]),!1)},od=id.promise({elem:e,props:ud.extend({},t),opts:ud.extend(!0,{specialEasing:{},easing:ud.easing._default},$),originalProperties:t,originalOptions:$,startTime:im||cm(),duration:$.duration,tweens:[],createTween:function(t,$){var ed=ud.Tween(e,od.opts,t,$,od.opts.specialEasing[t]||od.opts.easing);return od.tweens.push(ed),ed},stop:function(t){var $=0,ed=t?od.tweens.length:0;if(td)return this;for(td=!0;$<ed;$++)od.tweens[$].run(1);return t?(id.notifyWith(e,[od,1,0]),id.resolveWith(e,[od,t])):id.rejectWith(e,[od,t]),this}}),sd=od.props;for(fm(sd,od.opts.specialEasing);nd<rd;nd++)if(ed=pm.prefilters[nd].call(od,e,sd,od.opts),ed)return ud.isFunction(ed.stop)&&(ud._queueHooks(od.elem,od.opts.queue).stop=ud.proxy(ed.stop,ed)),ed;return ud.map(sd,um,od),ud.isFunction(od.opts.start)&&od.opts.start.call(e,od),ud.fx.timer(ud.extend(ad,{elem:e,anim:od,queue:od.opts.queue})),od.progress(od.opts.progress).done(od.opts.done,od.opts.complete).fail(od.opts.fail).always(od.opts.always)}ud.Animation=ud.extend(pm,{tweeners:{"*":[function(e,t){var $=this.createTween(e,t);return Kd($.elem,e,Ud.exec(t),$),$}]},tweener:function(e,t){ud.isFunction(e)?(t=e,e=[`*`]):e=e.match(kd);for(var $,ed=0,td=e.length;ed<td;ed++)$=e[ed],pm.tweeners[$]=pm.tweeners[$]||[],pm.tweeners[$].unshift(t)},prefilters:[dm],prefilter:function(e,t){t?pm.prefilters.unshift(e):pm.prefilters.push(e)}}),ud.speed=function(e,t,$){var ed=e&&typeof e==`object`?ud.extend({},e):{complete:$||!$&&t||ud.isFunction(e)&&e,duration:e,easing:$&&t||t&&!ud.isFunction(t)&&t};return ed.duration=ud.fx.off?0:typeof ed.duration==`number`?ed.duration:ed.duration in ud.fx.speeds?ud.fx.speeds[ed.duration]:ud.fx.speeds._default,(ed.queue==null||ed.queue===!0)&&(ed.queue=`fx`),ed.old=ed.complete,ed.complete=function(){ud.isFunction(ed.old)&&ed.old.call(this),ed.queue&&ud.dequeue(this,ed.queue)},ed},ud.fn.extend({fadeTo:function(e,t,$,ed){return this.filter(Gd).css(`opacity`,0).show().end().animate({opacity:t},e,$,ed)},animate:function(e,t,$,ed){var td=ud.isEmptyObject(e),nd=ud.speed(t,$,ed),rd=function(){var t=pm(this,ud.extend({},e),nd);(td||ud._data(this,`finish`))&&t.stop(!0)};return rd.finish=rd,td||nd.queue===!1?this.each(rd):this.queue(nd.queue,rd)},stop:function(e,t,$){var ed=function(e){var t=e.stop;delete e.stop,t($)};return typeof e!=`string`&&($=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||`fx`,[]),this.each(function(){var t=!0,td=e!=null&&e+`queueHooks`,nd=ud.timers,rd=ud._data(this);if(td)rd[td]&&rd[td].stop&&ed(rd[td]);else for(td in rd)rd[td]&&rd[td].stop&&sm.test(td)&&ed(rd[td]);for(td=nd.length;td--;)nd[td].elem===this&&(e==null||nd[td].queue===e)&&(nd[td].anim.stop($),t=!1,nd.splice(td,1));(t||!$)&&ud.dequeue(this,e)})},finish:function(e){return e!==!1&&(e||=`fx`),this.each(function(){var t,$=ud._data(this),ed=$[e+`queue`],td=$[e+`queueHooks`],nd=ud.timers,rd=ed?ed.length:0;for($.finish=!0,ud.queue(this,e,[]),td&&td.stop&&td.stop.call(this,!0),t=nd.length;t--;)nd[t].elem===this&&nd[t].queue===e&&(nd[t].anim.stop(!0),nd.splice(t,1)
2);for(t=0;t<rd;t++)ed[t]&&ed[t].finish&&ed[t].finish.call(this);delete $.finish})}}),ud.each([`toggle`,`show`,`hide`],function(e,t){var $=ud.fn[t];ud.fn[t]=function(e,ed,td){return e==null||typeof e==`boolean`?$.apply(this,arguments):this.animate(lm(t,!0),e,ed,td)}}),ud.each({slideDown:lm(`show`),slideUp:lm(`hide`),slideToggle:lm(`toggle`),fadeIn:{opacity:`show`},fadeOut:{opacity:`hide`},fadeToggle:{opacity:`toggle`}},function(e,t){ud.fn[e]=function(e,$,ed){return this.animate(t,e,$,ed)}}),ud.timers=[],ud.fx.tick=function(){var e,t=ud.timers,$=0;for(im=ud.now();$<t.length;$++)e=t[$],!e()&&t[$]===e&&t.splice($--,1);t.length||ud.fx.stop(),im=void 0},ud.fx.timer=function(e){ud.timers.push(e),e()?ud.fx.start():ud.timers.pop()},ud.fx.interval=13,ud.fx.start=function(){am||=e.setInterval(ud.fx.tick,ud.fx.interval)},ud.fx.stop=function(){e.clearInterval(am),am=null},ud.fx.speeds={slow:600,fast:200,_default:400},ud.fn.delay=function(t,$){return t=ud.fx&&ud.fx.speeds[t]||t,$||=`fx`,this.queue($,function($,ed){var td=e.setTimeout($,t);ed.stop=function(){e.clearTimeout(td)}})},(function(){var e,t=ed.createElement(`input`),$=ed.createElement(`div`),td=ed.createElement(`select`),nd=td.appendChild(ed.createElement(`option`));$=ed.createElement(`div`),$.setAttribute(`className`,`t`),$.innerHTML=` <link/><table></table><a href='/a'>a</a><input type='checkbox'/>`,e=$.getElementsByTagName(`a`)[0],t.setAttribute(`type`,`checkbox`),$.appendChild(t),e=$.getElementsByTagName(`a`)[0],e.style.cssText=`top:1px`,cd.getSetAttribute=$.className!==`t`,cd.style=/top/.test(e.getAttribute(`style`)),cd.hrefNormalized=e.getAttribute(`href`)===`/a`,cd.checkOn=!!t.value,cd.optSelected=nd.selected,cd.enctype=!!ed.createElement(`form`).enctype,td.disabled=!0,cd.optDisabled=!nd.disabled,t=ed.createElement(`input`),t.setAttribute(`value`,``),cd.input=t.getAttribute(`value`)===``,t.value=`t`,t.setAttribute(`type`,`radio`),cd.radioValue=t.value===`t`})();var mm=/\r/g,hm=/[\x20\t\r\n\f]+/g;ud.fn.extend({val:function(e){var t,$,ed,td=this[0];return arguments.length?(ed=ud.isFunction(e),this.each(function($){var td;this.nodeType===1&&(td=ed?e.call(this,$,ud(this).val()):e,td==null?td=``:typeof td==`number`?td+=``:ud.isArray(td)&&(td=ud.map(td,function(e){return e==null?``:e+``})),t=ud.valHooks[this.type]||ud.valHooks[this.nodeName.toLowerCase()],(!t||!(`set`in t)||t.set(this,td,`value`)===void 0)&&(this.value=td))})):td?(t=ud.valHooks[td.type]||ud.valHooks[td.nodeName.toLowerCase()],t&&`get`in t&&($=t.get(td,`value`))!==void 0?$:($=td.value,typeof $==`string`?$.replace(mm,``):$??``)):void 0}}),ud.extend({valHooks:{option:{get:function(e){return ud.find.attr(e,`value`)??ud.trim(ud.text(e)).replace(hm,` `)}},select:{get:function(e){for(var t,$,ed=e.options,td=e.selectedIndex,nd=e.type===`select-one`||td<0,rd=nd?null:[],id=nd?td+1:ed.length,ad=td<0?id:nd?td:0;ad<id;ad++)if($=ed[ad],($.selected||ad===td)&&(cd.optDisabled?!$.disabled:$.getAttribute(`disabled`)===null)&&(!$.parentNode.disabled||!ud.nodeName($.parentNode,`optgroup`))){if(t=ud($).val(),nd)return t;rd.push(t)}return rd},set:function(e,t){for(var $,ed,td=e.options,nd=ud.makeArray(t),rd=td.length;rd--;)if(ed=td[rd],ud.inArray(ud.valHooks.option.get(ed),nd)>-1)try{ed.selected=$=!0}catch{ed.scrollHeight}else ed.selected=!1;return $||(e.selectedIndex=-1),td}}}}),ud.each([`radio`,`checkbox`],function(){ud.valHooks[this]={set:function(e,t){if(ud.isArray(t))return e.checked=ud.inArray(ud(e).val(),t)>-1}},cd.checkOn||(ud.valHooks[this].get=function(e){return e.getAttribute(`value`)===null?`on`:e.value})});var gm,_m,vm=ud.expr.attrHandle,ym=/^(?:checked|selected)$/i,bm=cd.getSetAttribute,xm=cd.input;ud.fn.extend({attr:function(e,t){return qd(this,ud.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ud.removeAttr(this,e)})}}),ud.extend({attr:function(e,t,$){var ed,td,nd=e.nodeType;if(!(nd===3||nd===8||nd===2)){if(e.getAttribute===void 0)return ud.prop(e,t,$);if((nd!==1||!ud.isXMLDoc(e))&&(t=t.toLowerCase(),td=ud.attrHooks[t]||(ud.expr.match.bool.test(t)?_m:gm)),$!==void 0){if($===null){ud.removeAttr(e,t);return}return td&&`set`in td&&(ed=td.set(e,$,t))!==void 0?ed:(e.setAttribute(t,$+``),$)}return td&&`get`in td&&(ed=td.get(e,t))!==null?ed:(ed=ud.find.attr(e,t),ed??void 0)}},attrHooks:{type:{set:function(e,t){if(!cd.radioValue&&t===`radio`&&ud.nodeName(e,`input`)){var $=e.value;return e.setAttribute(`type`,t),$&&(e.value=$),t}}}},removeAttr:function(e,t){var $,ed,td=0,nd=t&&t.match(kd);if(nd&&e.nodeType===1)for(;$=nd[td++];)ed=ud.propFix[$]||$,ud.expr.match.bool.test($)?xm&&bm||!ym.test($)?e[ed]=!1:e[ud.camelCase(`default-`+$)]=e[ed]=!1:ud.attr(e,$,``),e.removeAttribute(bm?$:ed)}}),_m={set:function(e,t,$){return t===!1?ud.removeAttr(e,$):xm&&bm||!ym.test($)?e.setAttribute(!bm&&ud.propFix[$]||$,$):e[ud.camelCase(`default-`+$)]=e[$]=!0,$}},ud.each(ud.expr.match.bool.source.match(/\w+/g),function(e,t){var $=vm[t]||ud.find.attr;xm&&bm||!ym.test(t)?vm[t]=function(e,t,ed){var td,nd;return ed||(nd=vm[t],vm[t]=td,td=$(e,t,ed)==null?null:t.toLowerCase(),vm[t]=nd),td}:vm[t]=function(e,t,$){if(!$)return e[ud.camelCase(`default-`+t)]?t.toLowerCase():null}}),(!xm||!bm)&&(ud.attrHooks.value={set:function(e,t,$){if(ud.nodeName(e,`input`))e.defaultValue=t;
2else return gm&&gm.set(e,t,$)}}),bm||(gm={set:function(e,t,$){var ed=e.getAttributeNode($);if(ed||e.setAttributeNode(ed=e.ownerDocument.createAttribute($)),ed.value=t+=``,$===`value`||t===e.getAttribute($))return t}},vm.id=vm.name=vm.coords=function(e,t,$){var ed;if(!$)return(ed=e.getAttributeNode(t))&&ed.value!==``?ed.value:null},ud.valHooks.button={get:function(e,t){var $=e.getAttributeNode(t);if($&&$.specified)return $.value},set:gm.set},ud.attrHooks.contenteditable={set:function(e,t,$){gm.set(e,t===``?!1:t,$)}},ud.each([`width`,`height`],function(e,t){ud.attrHooks[t]={set:function(e,$){if($===``)return e.setAttribute(t,`auto`),$}}})),cd.style||(ud.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+``}});var Sm=/^(?:input|select|textarea|button|object)$/i,Cm=/^(?:a|area)$/i;ud.fn.extend({prop:function(e,t){return qd(this,ud.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ud.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch{}})}}),ud.extend({prop:function(e,t,$){var ed,td,nd=e.nodeType;if(!(nd===3||nd===8||nd===2))return(nd!==1||!ud.isXMLDoc(e))&&(t=ud.propFix[t]||t,td=ud.propHooks[t]),$===void 0?td&&`get`in td&&(ed=td.get(e,t))!==null?ed:e[t]:td&&`set`in td&&(ed=td.set(e,$,t))!==void 0?ed:e[t]=$},propHooks:{tabIndex:{get:function(e){var t=ud.find.attr(e,`tabindex`);return t?parseInt(t,10):Sm.test(e.nodeName)||Cm.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:`htmlFor`,class:`className`}}),cd.hrefNormalized||ud.each([`href`,`src`],function(e,t){ud.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),cd.optSelected||(ud.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ud.each([`tabIndex`,`readOnly`,`maxLength`,`cellSpacing`,`cellPadding`,`rowSpan`,`colSpan`,`useMap`,`frameBorder`,`contentEditable`],function(){ud.propFix[this.toLowerCase()]=this}),cd.enctype||(ud.propFix.enctype=`encoding`);var wm=/[\t\r\n\f]/g;function Tm(e){return ud.attr(e,`class`)||``}ud.fn.extend({addClass:function(e){var t,$,ed,td,nd,rd,id,ad=0;if(ud.isFunction(e))return this.each(function(t){ud(this).addClass(e.call(this,t,Tm(this)))});if(typeof e==`string`&&e){for(t=e.match(kd)||[];$=this[ad++];)if(td=Tm($),ed=$.nodeType===1&&(` `+td+` `).replace(wm,` `),ed){for(rd=0;nd=t[rd++];)ed.indexOf(` `+nd+` `)<0&&(ed+=nd+` `);id=ud.trim(ed),td!==id&&ud.attr($,`class`,id)}}return this},removeClass:function(e){var t,$,ed,td,nd,rd,id,ad=0;if(ud.isFunction(e))return this.each(function(t){ud(this).removeClass(e.call(this,t,Tm(this)))});if(!arguments.length)return this.attr(`class`,``);if(typeof e==`string`&&e){for(t=e.match(kd)||[];$=this[ad++];)if(td=Tm($),ed=$.nodeType===1&&(` `+td+` `).replace(wm,` `),ed){for(rd=0;nd=t[rd++];)for(;ed.indexOf(` `+nd+` `)>-1;)ed=ed.replace(` `+nd+` `,` `);id=ud.trim(ed),td!==id&&ud.attr($,`class`,id)}}return this},toggleClass:function(e,t){var $=typeof e;return typeof t==`boolean`&&$===`string`?t?this.addClass(e):this.removeClass(e):ud.isFunction(e)?this.each(function($){ud(this).toggleClass(e.call(this,$,Tm(this),t),t)}):this.each(function(){var t,ed,td,nd;if($===`string`)for(ed=0,td=ud(this),nd=e.match(kd)||[];t=nd[ed++];)td.hasClass(t)?td.removeClass(t):td.addClass(t);else (e===void 0||$===`boolean`)&&(t=Tm(this),t&&ud._data(this,`__className__`,t),ud.attr(this,`class`,t||e===!1?``:ud._data(this,`__className__`)||``))})},hasClass:function(e){var t,$,ed=0;for(t=` `+e+` `;$=this[ed++];)if($.nodeType===1&&(` `+Tm($)+` `).replace(wm,` `).indexOf(t)>-1)return!0;return!1}}),ud.each(`blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu`.split(` `),function(e,t){ud.fn[t]=function(e,$){return arguments.length>0?this.on(t,null,e,$):this.trigger(t)}}),ud.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Em=e.location,Dm=ud.now(),Om=/\?/,km=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ud.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+``);var $,ed=null,td=ud.trim(t+``);return td&&!ud.trim(td.replace(km,function(e,t,td,nd){return $&&t&&(ed=0),ed===0?e:($=td||t,ed+=!nd-!td,``)}))?Function(`return `+td)():ud.error(`Invalid JSON: `+t)},ud.parseXML=function(t){var $,ed;if(!t||typeof t!=`string`)return null;try{e.DOMParser?(ed=new e.DOMParser,$=ed.parseFromString(t,`text/xml`)):($=new e.ActiveXObject(`Microsoft.XMLDOM`),$.async=`fal
2se`,$.loadXML(t))}catch{$=void 0}return(!$||!$.documentElement||$.getElementsByTagName(`parsererror`).length)&&ud.error(`Invalid XML: `+t),$};var Am=/#.*$/,jm=/([?&])_=[^&]*/,Mm=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nm=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pm=/^(?:GET|HEAD)$/,Fm=/^\/\//,Im=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Lm={},Rm={},zm=`*/*`,Bm=Em.href,Vm=Im.exec(Bm.toLowerCase())||[];function Hm(e){return function(t,$){typeof t!=`string`&&($=t,t=`*`);var ed,td=0,nd=t.toLowerCase().match(kd)||[];if(ud.isFunction($))for(;ed=nd[td++];)ed.charAt(0)===`+`?(ed=ed.slice(1)||`*`,(e[ed]=e[ed]||[]).unshift($)):(e[ed]=e[ed]||[]).push($)}}function Um(e,t,$,ed){var td={},nd=e===Rm;function rd(id){var ad;return td[id]=!0,ud.each(e[id]||[],function(e,id){var od=id(t,$,ed);if(typeof od==`string`&&!nd&&!td[od])return t.dataTypes.unshift(od),rd(od),!1;if(nd)return!(ad=od)}),ad}return rd(t.dataTypes[0])||!td[`*`]&&rd(`*`)}function Wm(e,t){var $,ed,td=ud.ajaxSettings.flatOptions||{};for(ed in t)t[ed]!==void 0&&((td[ed]?e:$||={})[ed]=t[ed]);return $&&ud.extend(!0,e,$),e}function Gm(e,t,$){for(var ed,td,nd,rd,id=e.contents,ad=e.dataTypes;ad[0]===`*`;)ad.shift(),td===void 0&&(td=e.mimeType||t.getResponseHeader(`Content-Type`));if(td){for(rd in id)if(id[rd]&&id[rd].test(td)){ad.unshift(rd);break}}if(ad[0]in $)nd=ad[0];else{for(rd in $){if(!ad[0]||e.converters[rd+` `+ad[0]]){nd=rd;break}ed||=rd}nd||=ed}if(nd)return nd!==ad[0]&&ad.unshift(nd),$[nd]}function Km(e,t,$,ed){var td,nd,rd,id,ad,od={},sd=e.dataTypes.slice();if(sd[1])for(rd in e.converters)od[rd.toLowerCase()]=e.converters[rd];for(nd=sd.shift();nd;)if(e.responseFields[nd]&&($[e.responseFields[nd]]=t),!ad&&ed&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),ad=nd,nd=sd.shift(),nd){if(nd===`*`)nd=ad;else if(ad!==`*`&&ad!==nd){if(rd=od[ad+` `+nd]||od[`* `+nd],!rd){for(td in od)if(id=td.split(` `),id[1]===nd&&(rd=od[ad+` `+id[0]]||od[`* `+id[0]],rd)){rd===!0?rd=od[td]:od[td]!==!0&&(nd=id[0],sd.unshift(id[1]));break}}if(rd!==!0)if(rd&&e.throws)t=rd(t);else try{t=rd(t)}catch(e){return{state:`parsererror`,error:rd?e:`No conversion from `+ad+` to `+nd}}}}return{state:`success`,data:t}}ud.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Bm,type:`GET`,isLocal:Nm.test(Vm[1]),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":zm,text:`text/plain`,html:`text/html`,xml:`application/xml, text/xml`,json:`application/json, text/javascript`},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:`responseXML`,text:`responseText`,json:`responseJSON`},converters:{"* text":String,"text html":!0,"text json":ud.parseJSON,"text xml":ud.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wm(Wm(e,ud.ajaxSettings),t):Wm(ud.ajaxSettings,e)},ajaxPrefilter:Hm(Lm),ajaxTransport:Hm(Rm),ajax:function(t,$){typeof t==`object`&&($=t,t=void 0),$||={};var ed,td,nd,rd,id,ad,od,sd,cd=ud.ajaxSetup({},$),ld=cd.context||cd,dd=cd.context&&(ld.nodeType||ld.jquery)?ud(ld):ud.event,fd=ud.Deferred(),pd=ud.Callbacks(`once memory`),md=cd.statusCode||{},hd={},gd={},_d=0,vd=`canceled`,yd={readyState:0,getResponseHeader:function(e){var t;if(_d===2){if(!sd)for(sd={};t=Mm.exec(rd);)sd[t[1].toLowerCase()]=t[2];t=sd[e.toLowerCase()]}return t??null},getAllResponseHeaders:function(){return _d===2?rd:null},setRequestHeader:function(e,t){var $=e.toLowerCase();return _d||(e=gd[$]=gd[$]||e,hd[e]=t),this},overrideMimeType:function(e){return _d||(cd.mimeType=e),this},statusCode:function(e){var t;if(e)if(_d<2)for(t in e)md[t]=[md[t],e[t]];else yd.always(e[yd.status]);return this},abort:function(e){var t=e||vd;return od&&od.abort(t),bd(0,t),this}};if(fd.promise(yd).complete=pd.add,yd.success=yd.done,yd.error=yd.fail,cd.url=((t||cd.url||Bm)+``).replace(Am,``).replace(Fm,Vm[1]+`//`),cd.type=$.method||$.type||cd.method||cd.type,cd.dataTypes=ud.trim(cd.dataType||`*`).toLowerCase().match(kd)||[``],cd.crossDomain??=(ed=Im.exec(cd.url.toLowerCase()),!!(ed&&(ed[1]!==Vm[1]||ed[2]!==Vm[2]||(ed[3]||(ed[1]===`http:`?`80`:`443`))!==(Vm[3]||(Vm[1]===`http:`?`80`:`443`))))),cd.data&&cd.processData&&typeof cd.data!=`string`&&(cd.data=ud.param(cd.data,cd.traditional)),Um(Lm,cd,$,yd),_d===2)return yd;for(td in ad=ud.event&&cd.global,ad&&ud.active++===0&&ud.event.trigger(`ajaxStart`),cd.type=cd.type.toUpperCase(),cd.hasContent=!Pm.test(cd.type),nd=cd.url,cd.hasContent||(cd.data&&(nd=cd.url+=(Om.test(nd)?`&`:`?`)+cd.data,delete cd.data),cd.cache===!1&&(cd.url=jm.test(nd)?nd.replace(jm,`$1_=`+ Dm++):nd+(Om.test(nd)?`&`:`?`)+`_=`+ Dm++)),cd.ifModified&&(ud.lastModified[nd]&&yd.setRequestHeader(`If-Modified-Since`,ud.lastModified[nd]),ud.etag[nd]&&yd.setRequestHeader(`If-None-Match`,ud.etag[nd])),(cd.data&&cd.hasContent&&cd.contentType!==!1||$.contentType)&&yd.setRequestHeader(`Content-Type`,cd.contentType),yd.setRequestHeader(`Accept`,cd.dataTypes[0]&&cd.accepts[cd.dataTypes[0]]?cd.accepts[cd.dataTypes[0]]+(cd.dataTypes[0]===`*`?``:`, `+zm+`; q=0.01`):cd.accepts[`*`]),cd.headers)yd.setRequestHeader(td,cd.headers[td]);
2if(cd.beforeSend&&(cd.beforeSend.call(ld,yd,cd)===!1||_d===2))return yd.abort();for(td in vd=`abort`,{success:1,error:1,complete:1})yd[td](cd[td]);if(od=Um(Rm,cd,$,yd),!od)bd(-1,`No Transport`);else{if(yd.readyState=1,ad&&dd.trigger(`ajaxSend`,[yd,cd]),_d===2)return yd;cd.async&&cd.timeout>0&&(id=e.setTimeout(function(){yd.abort(`timeout`)},cd.timeout));try{_d=1,od.send(hd,bd)}catch(e){if(_d<2)bd(-1,e);else throw e}}function bd(t,$,ed,td){var sd,hd,gd,vd,bd,xd=$;_d!==2&&(_d=2,id&&e.clearTimeout(id),od=void 0,rd=td||``,yd.readyState=t>0?4:0,sd=t>=200&&t<300||t===304,ed&&(vd=Gm(cd,yd,ed)),vd=Km(cd,vd,yd,sd),sd?(cd.ifModified&&(bd=yd.getResponseHeader(`Last-Modified`),bd&&(ud.lastModified[nd]=bd),bd=yd.getResponseHeader(`etag`),bd&&(ud.etag[nd]=bd)),t===204||cd.type===`HEAD`?xd=`nocontent`:t===304?xd=`notmodified`:(xd=vd.state,hd=vd.data,gd=vd.error,sd=!gd)):(gd=xd,(t||!xd)&&(xd=`error`,t<0&&(t=0))),yd.status=t,yd.statusText=($||xd)+``,sd?fd.resolveWith(ld,[hd,xd,yd]):fd.rejectWith(ld,[yd,xd,gd]),yd.statusCode(md),md=void 0,ad&&dd.trigger(sd?`ajaxSuccess`:`ajaxError`,[yd,cd,sd?hd:gd]),pd.fireWith(ld,[yd,xd]),ad&&(dd.trigger(`ajaxComplete`,[yd,cd]),--ud.active||ud.event.trigger(`ajaxStop`)))}return yd},getJSON:function(e,t,$){return ud.get(e,t,$,`json`)},getScript:function(e,t){return ud.get(e,void 0,t,`script`)}}),ud.each([`get`,`post`],function(e,t){ud[t]=function(e,$,ed,td){return ud.isFunction($)&&(td||=ed,ed=$,$=void 0),ud.ajax(ud.extend({url:e,type:t,dataType:td,data:$,success:ed},ud.isPlainObject(e)&&e))}}),ud._evalUrl=function(e){return ud.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,throws:!0})},ud.fn.extend({wrapAll:function(e){if(ud.isFunction(e))return this.each(function(t){ud(this).wrapAll(e.call(this,t))});if(this[0]){var t=ud(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ud.isFunction(e)?this.each(function(t){ud(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ud(this),$=t.contents();$.length?$.wrapAll(e):t.append(e)})},wrap:function(e){var t=ud.isFunction(e);return this.each(function($){ud(this).wrapAll(t?e.call(this,$):e)})},unwrap:function(){return this.parent().each(function(){ud.nodeName(this,`body`)||ud(this).replaceWith(this.childNodes)}).end()}});function qm(e){return e.style&&e.style.display||ud.css(e,`display`)}function Jm(e){if(!ud.contains(e.ownerDocument||ed,e))return!0;for(;e&&e.nodeType===1;){if(qm(e)===`none`||e.type===`hidden`)return!0;e=e.parentNode}return!1}ud.expr.filters.hidden=function(e){return cd.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Jm(e)},ud.expr.filters.visible=function(e){return!ud.expr.filters.hidden(e)};var Ym=/%20/g,Xm=/\[\]$/,Zm=/\r?\n/g,Qm=/^(?:submit|button|image|reset|file)$/i,$m=/^(?:input|select|textarea|keygen)/i;function eh(e,t,$,ed){var td;if(ud.isArray(t))ud.each(t,function(t,td){$||Xm.test(e)?ed(e,td):eh(e+`[`+(typeof td==`object`&&td?t:``)+`]`,td,$,ed)});else if(!$&&ud.type(t)===`object`)for(td in t)eh(e+`[`+td+`]`,t[td],$,ed);else ed(e,t)}ud.param=function(e,t){var $,ed=[],td=function(e,t){t=ud.isFunction(t)?t():t??``,ed[ed.length]=encodeURIComponent(e)+`=`+encodeURIComponent(t)};if(t===void 0&&(t=ud.ajaxSettings&&ud.ajaxSettings.traditional),ud.isArray(e)||e.jquery&&!ud.isPlainObject(e))ud.each(e,function(){td(this.name,this.value)});else for($ in e)eh($,e[$],t,td);return ed.join(`&`).replace(Ym,`+`)},ud.fn.extend({serialize:function(){return ud.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ud.prop(this,`elements`);return e?ud.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ud(this).is(`:disabled`)&&$m.test(this.nodeName)&&!Qm.test(e)&&(this.checked||!Jd.test(e))}).map(function(e,t){var $=ud(this).val();return $==null?null:ud.isArray($)?ud.map($,function(e){return{name:t.name,value:e.replace(Zm,`\r 3`)}}):{name:t.name,value:$.replace(Zm,`\r 4`)}}).get()}}
4),ud.ajaxSettings.xhr=e.ActiveXObject===void 0?ih:function(){return this.isLocal?ah():ed.documentMode>8?ih():/^(get|post|head|put|delete|options)$/i.test(this.type)&&ih()||ah()};var th=0,nh={},rh=ud.ajaxSettings.xhr();e.attachEvent&&e.attachEvent(`onunload`,function(){for(var e in nh)nh[e](void 0,!0)}),cd.cors=!!rh&&`withCredentials`in rh,rh=cd.ajax=!!rh,rh&&ud.ajaxTransport(function(t){if(!t.crossDomain||cd.cors){var $;return{send:function(ed,td){var nd,rd=t.xhr(),id=++th;if(rd.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(nd in t.xhrFields)rd[nd]=t.xhrFields[nd];for(nd in t.mimeType&&rd.overrideMimeType&&rd.overrideMimeType(t.mimeType),!t.crossDomain&&!ed[`X-Requested-With`]&&(ed[`X-Requested-With`]=`XMLHttpRequest`),ed)ed[nd]!==void 0&&rd.setRequestHeader(nd,ed[nd]+``);rd.send(t.hasContent&&t.data||null),$=function(e,ed){var nd,ad,od;if($&&(ed||rd.readyState===4))if(delete nh[id],$=void 0,rd.onreadystatechange=ud.noop,ed)rd.readyState!==4&&rd.abort();else{od={},nd=rd.status,typeof rd.responseText==`string`&&(od.text=rd.responseText);try{ad=rd.statusText}catch{ad=``}!nd&&t.isLocal&&!t.crossDomain?nd=od.text?200:404:nd===1223&&(nd=204)}od&&td(nd,ad,od,rd.getAllResponseHeaders())},t.async?rd.readyState===4?e.setTimeout($):rd.onreadystatechange=nh[id]=$:$()},abort:function(){$&&$(void 0,!0)}}}});function ih(){try{return new e.XMLHttpRequest}catch{}}function ah(){try{return new e.ActiveXObject(`Microsoft.XMLHTTP`)}catch{}}ud.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ud.globalEval(e),e}}}),ud.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type=`GET`,e.global=!1)}),ud.ajaxTransport(`script`,function(e){if(e.crossDomain){var t,$=ed.head||ud(`head`)[0]||ed.documentElement;return{send:function(td,nd){t=ed.createElement(`script`),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,$){($||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,$||nd(200,`success`))},$.insertBefore(t,$.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var oh=[],sh=/(=)\?(?=&|$)|\?\?/;ud.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=oh.pop()||ud.expando+`_`+ Dm++;return this[e]=!0,e}}),ud.ajaxPrefilter(`json jsonp`,function(t,$,ed){var td,nd,rd,id=t.jsonp!==!1&&(sh.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&sh.test(t.data)&&`data`);if(id||t.dataTypes[0]===`jsonp`)return td=t.jsonpCallback=ud.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,id?t[id]=t[id].replace(sh,`$1`+td):t.jsonp!==!1&&(t.url+=(Om.test(t.url)?`&`:`?`)+t.jsonp+`=`+td),t.converters[`script json`]=function(){return rd||ud.error(td+` was not called`),rd[0]},t.dataTypes[0]=`json`,nd=e[td],e[td]=function(){rd=arguments},ed.always(function(){nd===void 0?ud(e).removeProp(td):e[td]=nd,t[td]&&(t.jsonpCallback=$.jsonpCallback,oh.push(td)),rd&&ud.isFunction(nd)&&nd(rd[0]),rd=nd=void 0}),`script`}),ud.parseHTML=function(e,t,$){if(!e||typeof e!=`string`)return null;typeof t==`boolean`&&($=t,t=!1),t||=ed;var td=bd.exec(e),nd=!$&&[];return td?[t.createElement(td[1])]:(td=sf([e],t,nd),nd&&nd.length&&ud(nd).remove(),ud.merge([],td.childNodes))};var ch=ud.fn.load;ud.fn.load=function(e,t,$){if(typeof e!=`string`&&ch)return ch.apply(this,arguments);var ed,td,nd,rd=this,id=e.indexOf(` `);return id>-1&&(ed=ud.trim(e.slice(id,e.length)),e=e.slice(0,id)),ud.isFunction(t)?($=t,t=void 0):t&&typeof t==`object`&&(td=`POST`),rd.length>0&&ud.ajax({url:e,type:td||`GET`,dataType:`html`,data:t}).done(function(e){nd=arguments,rd.html(ed?ud(`<div>`).append(ud.parseHTML(e)).find(ed):e)}).always($&&function(e,t){rd.each(function(){$.apply(this,nd||[e.responseText,t,e])})}),this}
4,ud.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){ud.fn[t]=function(e){return this.on(t,e)}}),ud.expr.filters.animated=function(e){return ud.grep(ud.timers,function(t){return e===t.elem}).length};function lh(e){return ud.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}ud.offset={setOffset:function(e,t,$){var ed,td,nd,rd,id,ad,od,sd=ud.css(e,`position`),cd=ud(e),ld={};sd===`static`&&(e.style.position=`relative`),id=cd.offset(),nd=ud.css(e,`top`),ad=ud.css(e,`left`),od=(sd===`absolute`||sd===`fixed`)&&ud.inArray(`auto`,[nd,ad])>-1,od?(ed=cd.position(),rd=ed.top,td=ed.left):(rd=parseFloat(nd)||0,td=parseFloat(ad)||0),ud.isFunction(t)&&(t=t.call(e,$,ud.extend({},id))),t.top!=null&&(ld.top=t.top-id.top+rd),t.left!=null&&(ld.left=t.left-id.left+td),`using`in t?t.using.call(e,ld):cd.css(ld)}},ud.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){ud.offset.setOffset(this,e,t)});var t,$,ed={top:0,left:0},td=this[0],nd=td&&td.ownerDocument;if(nd)return t=nd.documentElement,ud.contains(t,td)?(td.getBoundingClientRect!==void 0&&(ed=td.getBoundingClientRect()),$=lh(nd),{top:ed.top+($.pageYOffset||t.scrollTop)-(t.clientTop||0),left:ed.left+($.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):ed},position:function(){if(this[0]){var e,t,$={top:0,left:0},ed=this[0];return ud.css(ed,`position`)===`fixed`?t=ed.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ud.nodeName(e[0],`html`)||($=e.offset()),$.top+=ud.css(e[0],`borderTopWidth`,!0),$.left+=ud.css(e[0],`borderLeftWidth`,!0)),{top:t.top-$.top-ud.css(ed,`marginTop`,!0),left:t.left-$.left-ud.css(ed,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!ud.nodeName(e,`html`)&&ud.css(e,`position`)===`static`;)e=e.offsetParent;return e||zf})}}),ud.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var $=/Y/.test(t);ud.fn[e]=function(ed){return qd(this,function(e,ed,td){var nd=lh(e);if(td===void 0)return nd?t in nd?nd[t]:nd.document.documentElement[ed]:e[ed];nd?nd.scrollTo($?ud(nd).scrollLeft():td,$?td:ud(nd).scrollTop()):e[ed]=td},e,ed,arguments.length,null)}}),ud.each([`top`,`left`],function(e,t){ud.cssHooks[t]=Uf(cd.pixelPosition,function(e,$){if($)return $=Vf(e,t),Lf.test($)?ud(e).position()[t]+`px`:$})}),ud.each({Height:`height`,Width:`width`},function(e,t){ud.each({padding:`inner`+e,content:t,"":`outer`+e},function($,ed){ud.fn[ed]=function(ed,td){var nd=arguments.length&&($||typeof ed!=`boolean`),rd=$||(ed===!0||td===!0?`margin`:`border`);return qd(this,function(t,$,ed){var td;return ud.isWindow(t)?t.document.documentElement[`client`+e]:t.nodeType===9?(td=t.documentElement,Math.max(t.body[`scroll`+e],td[`scroll`+e],t.body[`offset`+e],td[`offset`+e],td[`client`+e])):ed===void 0?ud.css(t,$,rd):ud.style(t,$,ed,rd)},t,nd?ed:void 0,nd,null)}})}),ud.fn.extend({bind:function(e,t,$){return this.on(e,null,t,$)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,$,ed){return this.on(t,e,$,ed)},undelegate:function(e,t,$){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,$)}}),ud.fn.size=function(){return this.length},ud.fn.andSelf=ud.fn.addBack,typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return ud});var uh=e.jQuery,dh=e.$;return ud.noConflict=function(t){return e.$===ud&&(e.$=dh),t&&e.jQuery===ud&&(e.jQuery=uh),ud},t||(e.jQuery=e.$=ud),ud})})),require_object_assign=__commonJSMin(((e,t)=>{var $=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,td=Object.prototype.propertyIsEnumerable;
4function nd(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function rd(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},$=0;$<10;$++)t[`_`+String.fromCharCode($)]=$;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var ed={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){ed[e]=e}),Object.keys(Object.assign({},ed)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=rd()?Object.assign:function(e,t){for(var rd,id=nd(e),ad,od=1;od<arguments.length;od++){for(var sd in rd=Object(arguments[od]),rd)ed.call(rd,sd)&&(id[sd]=rd[sd]);if($){ad=$(rd);for(var cd=0;cd<ad.length;cd++)td.call(rd,ad[cd])&&(id[ad[cd]]=rd[ad[cd]])}}return id}})),require_reactProdInvariant$1=__commonJSMin(((e,t)=>{function $(e){for(var t=arguments.length-1,$=`Minified React error #`+e+`; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=`+e,ed=0;ed<t;ed++)$+=`&args[]=`+encodeURIComponent(arguments[ed+1]);$+=` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`;var td=Error($);throw td.name=`Invariant Violation`,td.framesToPop=1,td}t.exports=$})),require_emptyFunction=__commonJSMin(((e,t)=>{function $(e){return function(){return e}}var ed=function(){};ed.thatReturns=$,ed.thatReturnsFalse=$(!1),ed.thatReturnsTrue=$(!0),ed.thatReturnsNull=$(null),ed.thatReturnsThis=function(){return this},ed.thatReturnsArgument=function(e){return e},t.exports=ed})),require_warning$1=__commonJSMin(((e,t)=>{t.exports=require_emptyFunction()})),require_ReactNoopUpdateQueue=__commonJSMin(((e,t)=>{require_warning$1(),t.exports={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}}})),require_canDefineProperty=__commonJSMin(((e,t)=>{t.exports=!1})),require_emptyObject=__commonJSMin(((e,t)=>{t.exports={}})),require_invariant=__commonJSMin(((e,t)=>{var $=function(e){};function ed(e,t,$,ed,td,nd,rd,id){if(!e){var ad;if(t===void 0)ad=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var od=[$,ed,td,nd,rd,id],sd=0;ad=Error(t.replace(/%s/g,function(){return od[sd++]})),ad.name=`Invariant Violation`}throw ad.framesToPop=1,ad}}t.exports=ed})),require_lowPriorityWarning=__commonJSMin(((e,t)=>{t.exports=function(){}})),require_ReactBaseClasses=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant$1(),ed=require_object_assign(),td=require_ReactNoopUpdateQueue();require_canDefineProperty();var nd=require_emptyObject();require_invariant(),require_lowPriorityWarning();function rd(e,t,$){this.props=e,this.context=t,this.refs=nd,this.updater=$||td}rd.prototype.isReactComponent={},rd.prototype.setState=function(e,t){!(typeof e==`object`||typeof e==`function`||e==null)&&$(`85`),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,`setState`)},rd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,`forceUpdate`)};function id(e,t,$){this.props=e,this.context=t,this.refs=nd,this.updater=$||td}function ad(){}ad.prototype=rd.prototype,id.prototype=new ad,id.prototype.constructor=id,ed(id.prototype,rd.prototype),id.prototype.isPureReactComponent=!0,t.exports={Component:rd,PureComponent:id}})),require_PooledClass$1=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant$1();require_invariant();var ed=function(e){var t=this;if(t.instancePool.length){var $=t.instancePool.pop();return t.call($,e),$}else return new t(e)},td=function(e,t){var $=this;if($.instancePool.length){var ed=$.instancePool.pop();return $.call(ed,e,t),ed}else return new $(e,t)},nd=function(e,t,$){var ed=this;if(ed.instancePool.length){var td=ed.instancePool.pop();return ed.call(td,e,t,$),td}else return new ed(e,t,$)},rd=function(e,t,$,ed){var td=this;if(td.instancePool.length){var nd=td.instancePool.pop();return td.call(nd,e,t,$,ed),nd}else return new td(e,t,$,ed)},id=function(e){var t=this;!(e instanceof t)&&$(`25`),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},ad=10,od=ed;t.exports={addPoolingTo:function(e,t){var $=e;return $.instancePool=[],$.getPooled=t||od,$.poolSize||=ad,$.release=id,$},oneArgumentPooler:ed,twoArgumentPooler:td,threeArgumentPooler:nd,fourArgumentPooler:rd}})),require_ReactCurrentOwner=__commonJSMin(((e,t)=>{t.exports={current:null}})),require_ReactElementSymbol$1=__commonJSMin(((e,t)=>{t.exports=typeof Symbol==`function`&&Symbol.for&&Symbol.for(`react.element`)||60103})),require_ReactElement=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_ReactCurrentOwner();require_warning$1(),require_canDefineProperty();var td=Object.prototype.hasOwnProperty,nd=require_ReactElementSymbol$1(),rd={key:!0,ref:!0,__self:!0,__source:!0};function id(e){return e.ref!==void 0}function ad(e){return e.key!==void 0}var od=function(e,t,$,ed,td,rd,id){return{$$typeof:nd,type:e,key:t,ref:$,props:id,_owner:rd}};od.createElement=function(e,t,$){var nd,sd={},cd=null,ld=null,ud=null,dd=null;if(t!=null)for(nd in id(t)&&(ld=t.ref),ad(t)&&(cd=``+t.key),ud=t.__self===void 0?null:t.__self,dd=t.__source===void 0?null:t.__source,t)td.call(t,nd)&&!rd.hasOwnProperty(nd)&&(sd[nd]=t[nd]);var fd=arguments.length-2;if(fd===1)sd.children=$;else if(fd>1){for(var pd=Array(fd),md=0;md<fd;md++)pd[md]=arguments[md+2];sd.children=pd}if(e&&e.defaultProps){var hd=e.defaultProps;for(nd in hd)sd[nd]===void 0&&(sd[nd]=hd[nd])}return od(e,cd,ld,ud,dd,ed.current,sd)},od.createFactory=function(e){var t=od.createElement.bind(null,e);return t.type=e,t},od.cloneAndReplaceKey=function(e,t){return od(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},od.cloneElement=function(e,t,nd){var sd,cd=$({},e.props),ld=e.key,ud=e.ref,dd=e._self,fd=e._source,pd=e._owner;if(t!=null){id(t)&&(ud=t.ref,pd=ed.current),ad(t)&&(ld=``+t.key);var md;for(sd in e.type&&e.type.defaultProps&&(md=e.type.defaultProps),t)td.call(t,sd)&&!rd.hasOwnProperty(sd)&&(t[sd]===void 0&&md!==void 0?cd[sd]=md[sd]:cd[sd]=t[sd])}var hd=arguments.length-2;if(hd===1)cd.children=nd;else if(hd>1){for(var gd=Array(hd),_d=0;_d<hd;_d++)gd[_d]=arguments[_d+2];cd.children=gd}return od(e.type,ld,ud,dd,fd,pd,cd)},od.isValidElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===nd},t.exports=od})),require_getIteratorFn$1=__commonJSMin(((e,t)=>{var $=typeof Symbol==`function`&&Symbol.iterator,ed=`@@iterator`;function td(e){var t=e&&($&&e[$]||e[ed]);if(typeof t==`function`)return t}t.exports=td})),require_KeyEscapeUtils$1=__commonJSMin(((e,t)=>{function $(e){var t=/[=:]/g,$={"=":`=0`,":":`=2`};return`$`+(``+e).replace(t,function(e){return $[e]})}function ed(e){var t=/(=0|=2)/g,$={"=0":`=`,"=2":`:`};return(``+(e[0]===`.`&&e[1]===`$`?e.substring(2):e.substring(1))).replace(t,function(e){return $[e]})}t.exports={escape:$,unescape:ed}})),require_traverseAllChildren$1=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant$1();require_ReactCurrentOwner();var ed=require_ReactElementSymbol$1(),td=require_getIteratorFn$1();require_invariant();var nd=require_KeyEscapeUtils$1();require_warning$1();var rd=`.`,id=`:`;function ad(e,t){return e&&typeof e==`object`&&e.key!=null?nd.escape(e.key):t.toString(36)}function od(e,t,sd,cd){var ld=typeof e;if((ld===`undefined`||ld===`boolean`)&&(e=null),e===null||ld===`string`||ld===`number`||ld===`object`&&e.$$typeof===ed)return sd(cd,e,t===``?rd+ad(e,0):t),
41;var ud,dd,fd=0,pd=t===``?rd:t+id;if(Array.isArray(e))for(var md=0;md<e.length;md++)ud=e[md],dd=pd+ad(ud,md),fd+=od(ud,dd,sd,cd);else{var hd=td(e);if(hd){var gd=hd.call(e),_d;if(hd!==e.entries)for(var vd=0;!(_d=gd.next()).done;)ud=_d.value,dd=pd+ad(ud,vd++),fd+=od(ud,dd,sd,cd);else for(;!(_d=gd.next()).done;){var yd=_d.value;yd&&(ud=yd[1],dd=pd+nd.escape(yd[0])+id+ad(ud,0),fd+=od(ud,dd,sd,cd))}}else if(ld===`object`){var bd=``,xd=String(e);$(`31`,xd===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:xd,bd)}}return fd}function sd(e,t,$){return e==null?0:od(e,``,t,$)}t.exports=sd})),require_ReactChildren=__commonJSMin(((e,t)=>{var $=require_PooledClass$1(),ed=require_ReactElement(),td=require_emptyFunction(),nd=require_traverseAllChildren$1(),rd=$.twoArgumentPooler,id=$.fourArgumentPooler,ad=/\/+/g;function od(e){return(``+e).replace(ad,`$&/`)}function sd(e,t){this.func=e,this.context=t,this.count=0}sd.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},$.addPoolingTo(sd,rd);function cd(e,t,$){var ed=e.func,td=e.context;ed.call(td,t,e.count++)}function ld(e,t,$){if(e==null)return e;var ed=sd.getPooled(t,$);nd(e,cd,ed),sd.release(ed)}function ud(e,t,$,ed){this.result=e,this.keyPrefix=t,this.func=$,this.context=ed,this.count=0}ud.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},$.addPoolingTo(ud,id);function dd(e,t,$){var nd=e.result,rd=e.keyPrefix,id=e.func,ad=e.context,sd=id.call(ad,t,e.count++);Array.isArray(sd)?fd(sd,nd,$,td.thatReturnsArgument):sd!=null&&(ed.isValidElement(sd)&&(sd=ed.cloneAndReplaceKey(sd,rd+(sd.key&&(!t||t.key!==sd.key)?od(sd.key)+`/`:``)+$)),nd.push(sd))}function fd(e,t,$,ed,td){var rd=``;$!=null&&(rd=od($)+`/`);var id=ud.getPooled(t,rd,ed,td);nd(e,dd,id),ud.release(id)}function pd(e,t,$){if(e==null)return e;var ed=[];return fd(e,ed,null,t,$),ed}function md(e,t,$){return null}function hd(e,t){return nd(e,md,null)}function gd(e){var t=[];return fd(e,t,null,td.thatReturnsArgument),t}t.exports={forEach:ld,map:pd,mapIntoWithKeyPrefixInternal:fd,count:hd,toArray:gd}})),require_ReactDOMFactories=__commonJSMin(((e,t)=>{var $=require_ReactElement().createFactory;t.exports={a:$(`a`),abbr:$(`abbr`),address:$(`address`),area:$(`area`),article:$(`article`),aside:$(`aside`),audio:$(`audio`),b:$(`b`),base:$(`base`),bdi:$(`bdi`),bdo:$(`bdo`),big:$(`big`),blockquote:$(`blockquote`),body:$(`body`),br:$(`br`),button:$(`button`),canvas:$(`canvas`),caption:$(`caption`),cite:$(`cite`),code:$(`code`),col:$(`col`),colgroup:$(`colgroup`),data:$(`data`),datalist:$(`datalist`),dd:$(`dd`),del:$(`del`),details:$(`details`),dfn:$(`dfn`),dialog:$(`dialog`),div:$(`div`),dl:$(`dl`),dt:$(`dt`),em:$(`em`),embed:$(`embed`),fieldset:$(`fieldset`),figcaption:$(`figcaption`),figure:$(`figure`),footer:$(`footer`),form:$(`form`),h1:$(`h1`),h2:$(`h2`),h3:$(`h3`),h4:$(`h4`),h5:$(`h5`),h6:$(`h6`),head:$(`head`),header:$(`header`),hgroup:$(`hgroup`),hr:$(`hr`),html:$(`html`),i:$(`i`),iframe:$(`iframe`),img:$(`img`),input:$(`input`),ins:$(`ins`),kbd:$(`kbd`),keygen:$(`keygen`),label:$(`label`),legend:$(`legend`),li:$(`li`),link:$(`link`),main:$(`main`),map:$(`map`),mark:$(`mark`),menu:$(`menu`),menuitem:$(`menuitem`),meta:$(`meta`),meter:$(`meter`),nav:$(`nav`),noscript:$(`noscript`),object:$(`object`),ol:$(`ol`),optgroup:$(`optgroup`),option:$(`option`),output:$(`output`),p:$(`p`),param:$(`param`),picture:$(`picture`),pre:$(`pre`),progress:$(`progress`),q:$(`q`),rp:$(`rp`),rt:$(`rt`),ruby:$(`ruby`),s:$(`s`),samp:$(`samp`),script:$(`script`),section:$(`section`),select:$(`select`),small:$(`small`),source:$(`source`),span:$(`span`),strong:$(`strong`),style:$(`style`),sub:$(`sub`),summary:$(`summary`),sup:$(`sup`),table:$(`table`),tbody:$(`tbody`),td:$(`td`),textarea:$(`textarea`),tfoot:$(`tfoot`),th:$(`th`),thead:$(`thead`),time:$(`time`),title:$(`title`),tr:$(`tr`),track:$(`track`),u:$(`u`),ul:$(`ul`),var:$(`var`),video:$(`video`),wbr:$(`wbr`),circle:$(`circle`),clipPath:$(`clipPath`),defs:$(`defs`),ellipse:$(`ellipse`),g:$(`g`),image:$(`image`),line:$(`line`),linearGradient:$(`linearGradient`),mask:$(`mask`),path:$(`path`),pattern:$(`pattern`),polygon:$(`polygon`),polyline:$(`polyline`),radialGradient:$(`radialGradient`),rect:$(`rect`),stop:$(`stop`),svg:$(`svg`),text:$(`text`),tspan:$(`tspan`)}})),require_react_is_production_min=__commonJSMin((e=>{var t=typeof Symbol==`function`&&Symbol.for,$=t?Symbol.for(`react.element`):60103,ed=t?Symbol.for(`react.portal`):60106,td=t?Symbol.for(`react.fragment`):60107,nd=t?Symbol.for(`react.strict_mode`):60108,rd=t?Symbol.for(`react.profiler`):60114,id=t?Symbol.for(`react.provider`):60109,ad=t?Symbol.for(`react.context`):60110,od=t?Symbol.for(`react.async_mode`):60111,sd=t?Symbol.for(`react.concurrent_mode`):60111,cd=t?Symbol.for(`react.forward_ref`):60112,ld=t?Symbol.for(`react.suspense`):60113,ud=t?Symbol.for(`react.suspense_list`):60120,dd=t?Symbol.for(`react.memo`):60115,fd=t?Symbol.for(`react.lazy`):60116,pd=t?Symbol.for(`react.block`):60121,md=t?Symbol.for(`react.fundamental`):60117,hd=t?Symbol.for(`react.responder`):60118,gd=t?Symbol.for(`react.scope`):60119;function _d(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case $:switch(e=e.type,e){case od:case sd:case td:case rd:case nd:case ld:return e;default:switch(e&&=e.$$typeof,e){case ad:case cd:case fd:case dd:case id:return e;default:return t}}case ed:return t}}}function vd(e){return _d(e)===sd}e.AsyncMode=od,e.ConcurrentMode=sd,e.ContextConsumer=ad,e.ContextProvider=id,e.Element=$,e.ForwardRef=cd,e.Fragment=td,e.Lazy=fd,e.Memo=dd,e.Portal=ed,e.Profiler=rd,e.StrictMode=nd,e.Suspense=ld,e.isAsyncMode=function(e){return vd(e)||_d(e)===od},e.isConcurrentMode=vd,e.isContextConsumer=function(e){return _d(e)===ad},e.isContextProvider=function(e){return _d(e)===id},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===$},e.isForwardRef=function(e){return _d(e)===cd},e.isFragment=function(e){return _d(e)===td},e.isLazy=function(e){return _d(e)===fd},e.isMemo=function(e){return _d(e)===dd},e.isPortal=function(e){return _d(e)===ed},e.isProfiler=function(e){return _d(e)===rd},e.isStrictMode=function(e){return _d(e)===nd},e.isSuspense=function(e){return _d(e)===ld},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===td||e===sd||e===rd||e===nd||e===ld||e===ud||typeof e==`object`&&!!e&&(e.$$typeof===fd||e.$$typeof===dd||e.$$typeof===id||e.$$typeof===ad||e.$$typeof===cd||e.$$typeof===md||e.$$typeof===hd||e.$$typeof===gd||e.$$typeof===pd)},e.typeOf=_d})),require_react_is=__commonJSMin(((e,t)=>{t.exports=require_react_is_production_min()})),require_ReactPropTypesSecret$1=__commonJSMin(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),require_has$1=__commonJSMin(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),require_checkPropTypes=__commonJSMin(((e,t)=>{function $(e,t,$,ed,td){}$.resetWarningCache=function(){}
4,t.exports=$})),require_factoryWithTypeCheckers=__commonJSMin(((e,t)=>{var $=require_react_is(),ed=require_object_assign(),td=require_ReactPropTypesSecret$1(),nd=require_has$1(),rd=require_checkPropTypes(),id=function(){};function ad(){return null}t.exports=function(e,t){var id=typeof Symbol==`function`&&Symbol.iterator,od=`@@iterator`;function sd(e){var t=e&&(id&&e[id]||e[od]);if(typeof t==`function`)return t}var cd=`<<anonymous>>`,ld={array:pd(`array`),bigint:pd(`bigint`),bool:pd(`boolean`),func:pd(`function`),number:pd(`number`),object:pd(`object`),string:pd(`string`),symbol:pd(`symbol`),any:md(),arrayOf:hd,element:gd(),elementType:_d(),instanceOf:vd,node:Sd(),objectOf:bd,oneOf:yd,oneOfType:xd,shape:wd,exact:Td};function ud(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function dd(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}dd.prototype=Error.prototype;function fd(e){function $($,ed,nd,rd,id,ad,od){if(rd||=cd,ad||=nd,od!==td&&t){var sd=Error("Calling PropTypes validators directly
4is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw sd.name=`Invariant Violation`,sd}return ed[nd]==null?$?ed[nd]===null?new dd(`The `+id+" `"+ad+"` is marked as required "+("in `"+rd+"`, but its value is `null`.")):new dd(`The `+id+" `"+ad+"` is marked as required in "+("`"+rd+"`, but its value is `undefined`.")):null:e(ed,nd,rd,id,ad)}var ed=$.bind(null,!1);return ed.isRequired=$.bind(null,!0),ed}function pd(e){function t(t,$,ed,td,nd,rd){var id=t[$];if(Od(id)!==e){var ad=kd(id);return new dd(`Invalid `+td+" `"+nd+"` of type "+("`"+ad+"` supplied to `"+ed+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return fd(t)}function md(){return fd(ad)}function hd(e){function t(t,$,ed,nd,rd){if(typeof e!=`function`)return new dd("Property `"+rd+"` of component `"+ed+"` has invalid PropType notation inside arrayOf.");var id=t[$];if(!Array.isArray(id)){var ad=Od(id);return new dd(`Invalid `+nd+" `"+rd+"` of type "+("`"+ad+"` supplied to `"+ed+"`, expected an array."))}for(var od=0;od<id.length;od++){var sd=e(id,od,ed,nd,rd+`[`+od+`]`,td);if(sd instanceof Error)return sd}return null}return fd(t)}function gd(){function t(t,$,ed,td,nd){var rd=t[$];if(!e(rd)){var id=Od(rd);return new dd(`Invalid `+td+" `"+nd+"` of type "+("`"+id+"` supplied to `"+ed+"`, expected a single ReactElement."))}return null}return fd(t)}function _d(){function e(e,t,ed,td,nd){var rd=e[t];if(!$.isValidElementType(rd)){var id=Od(rd);return new dd(`Invalid `+td+" `"+nd+"` of type "+("`"+id+"` supplied to `"+ed+"`, expected a single ReactElement type."))}return null}return fd(e)}function vd(e){function t(t,$,ed,td,nd){if(!(t[$]instanceof e)){var rd=e.name||cd,id=jd(t[$]);return new dd(`Invalid `+td+" `"+nd+"` of type "+("`"+id+"` supplied to `"+ed+"`, expected ")+("instance of `"+rd+"`."))}return null}return fd(t)}function yd(e){if(!Array.isArray(e))return ad;function t(t,$,ed,td,nd){for(var rd=t[$],id=0;id<e.length;id++)if(ud(rd,e[id]))return null;var ad=JSON.stringify(e,function(e,t){return kd(t)===`symbol`?String(t):t});return new dd(`Invalid `+td+" `"+nd+"` of value `"+String(rd)+"` "+("supplied to `"+ed+"`, expected one of "+ad+`.`))}return fd(t)}function bd(e){function t(t,$,ed,rd,id){if(typeof e!=`function`)return new dd("Property `"+id+"` of component `"+ed+"` has invalid PropType notation inside objectOf.");var ad=t[$],od=Od(ad);if(od!==`object`)return new dd(`Invalid `+rd+" `"+id+"` of type "+("`"+od+"` supplied to `"+ed+"`, expected an object."));for(var sd in ad)if(nd(ad,sd)){var cd=e(ad,sd,ed,rd,id+`.`+sd,td);if(cd instanceof Error)return cd}return null}return fd(t)}function xd(e){if(!Array.isArray(e))return ad;for(var t=0;t<e.length;t++){var $=e[t];if(typeof $!=`function`)return``+Ad($)+t,ad}function ed(t,$,ed,rd,id){for(var ad=[],od=0;od<e.length;od++){var sd=e[od],cd=sd(t,$,ed,rd,id,td);if(cd==null)return null;cd.data&&nd(cd.data,`expectedType`)&&ad.push(cd.data.expectedType)}var ld=ad.length>0?`, expected one of type [`+ad.join(`, `)+`]`:``;return new dd(`Invalid `+rd+" `"+id+"` supplied to "+("`"+ed+"`"+ld+`.`))}return fd(ed)}function Sd(){function e(e,t,$,ed,td){return Ed(e[t])?null:new dd(`Invalid `+ed+" `"+td+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return fd(e)}function Cd(e,t,$,ed,td){return new dd((e||`React class`)+`: `+t+" type `"+$+`.`+ed+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+td+"`.")}function wd(e){function t(t,$,ed,nd,rd){var id=t[$],ad=Od(id);if(ad!==`object`)return new dd(`Invalid `+nd+" `"+rd+"` of type `"+ad+"` "+("supplied to `"+ed+"`, expected `object`."));for(var od in e){var sd=e[od];if(typeof sd!=`function`)return Cd(ed,nd,rd,od,kd(sd));var cd=sd(id,od,ed,nd,rd+`.`+od,td);if(cd)return cd}return null}return fd(t)}function Td(e){function t(t,$,rd,id,ad){var od=t[$],sd=Od(od);if(sd!==`object`)return new dd(`Invalid `+id+" `"+ad+"` of type `"+sd+"` "+("supplied to `"+rd+"`, expected `object`."));for(var cd in ed({},t[$],e)){var ld=e[cd];if(nd(e,cd)&&typeof ld!=`function`)return Cd(rd,id,ad,cd,kd(ld));if(!ld)return new dd(`Invalid `+id+" `"+ad+"` key `"+cd+"` supplied to `"+rd+`\`. 5Bad object: `+JSON.stringify(t[$],null,` `)+` 6Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var ud=ld(od,cd,rd,id,ad+`.`+cd,td);if(ud)return ud}return null}return fd(t)}function Ed(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(Ed);if(t===null||e(t))return!0;var $=sd(t);if($){var ed=$.call(t),td;if($!==t.entries){for(;!(td=ed.next()).done;)if(!Ed(td.value))return!1}else for(;!(td=ed.next()).done;){var nd=td.value;if(nd&&!Ed(nd[1]))return!1}}else return!1;return!0;default:return!1}}function Dd(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function Od(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:Dd(t,e)?`symbol`:t}function kd(e){if(e==null)return``+e;var t=Od(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function Ad(e){var t=kd(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}
6function jd(e){return!e.constructor||!e.constructor.name?cd:e.constructor.name}return ld.checkPropTypes=rd,ld.resetWarningCache=rd.resetWarningCache,ld.PropTypes=ld,ld}})),require_factory$1=__commonJSMin(((e,t)=>{var $=require_factoryWithTypeCheckers();t.exports=function(e){return $(e,!1)}})),require_ReactPropTypes=__commonJSMin(((e,t)=>{var $=require_ReactElement().isValidElement;t.exports=require_factory$1()($)})),require_ReactVersion$1=__commonJSMin(((e,t)=>{t.exports=`15.7.0`})),require_factory=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed={},td=function(e){};function nd(e,t,$,ed,td,nd,rd,id){if(!e){var ad;if(t===void 0)ad=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var od=[$,ed,td,nd,rd,id],sd=0;ad=Error(t.replace(/%s/g,function(){return od[sd++]})),ad.name=`Invariant Violation`}throw ad.framesToPop=1,ad}}var rd=`mixins`;function id(e){return e}function ad(e,t,td){var ad=[],od={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},sd={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},cd={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var $=0;$<t.length;$++)ud(e,t[$])},childContextTypes:function(e,t){e.childContextTypes=$({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=$({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=pd(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=$({},e.propTypes,t)},statics:function(e,t){dd(e,t)},autobind:function(){}};function ld(e,t){var $=od.hasOwnProperty(t)?od[t]:null;yd.hasOwnProperty(t)&&nd($===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&nd($===`DEFINE_MANY`||$===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function ud(e,$){if($){nd(typeof $!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),nd(!t($),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var ed=e.prototype,td=ed.__reactAutoBindPairs;for(var id in $.hasOwnProperty(rd)&&cd.mixins(e,$.mixins),$)if($.hasOwnProperty(id)&&id!==rd){var ad=$[id],sd=ed.hasOwnProperty(id);if(ld(sd,id),cd.hasOwnProperty(id))cd[id](e,ad);else{var ud=od.hasOwnProperty(id);if(typeof ad==`function`&&!ud&&!sd&&$.autobind!==!1)td.push(id,ad),ed[id]=ad;else if(sd){var dd=od[id];nd(ud&&(dd===`DEFINE_MANY_MERGED`||dd===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,dd,id),dd===`DEFINE_MANY_MERGED`?ed[id]=pd(ed[id],ad):dd===`DEFINE_MANY`&&(ed[id]=md(ed[id],ad))}else ed[id]=ad}}}}function dd(e,t){if(t)for(var $ in t){var ed=t[$];if(t.hasOwnProperty($)){if(nd(!($ in cd),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',$),$ in e){nd((sd.hasOwnProperty($)?sd[$]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",$),e[$]=pd(e[$],ed);return}e[$]=ed}}}function fd(e,t){for(var $ in nd(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty($)&&(nd(e[$]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",$),e[$]=t[$]);return e}function pd(e,t){return function(){var $=e.apply(this,arguments),ed=t.a
6pply(this,arguments);if($==null)return ed;if(ed==null)return $;var td={};return fd(td,$),fd(td,ed),td}}function md(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function hd(e,t){return t.bind(e)}function gd(e){for(var t=e.__reactAutoBindPairs,$=0;$<t.length;$+=2){var ed=t[$],td=t[$+1];e[ed]=hd(e,td)}}var _d={componentDidMount:function(){this.__isMounted=!0}},vd={componentWillUnmount:function(){this.__isMounted=!1}},yd={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},bd=function(){};$(bd.prototype,e.prototype,yd);function xd(e){var t=id(function(e,$,rd){this.__reactAutoBindPairs.length&&gd(this),this.props=e,this.context=$,this.refs=ed,this.updater=rd||td,this.state=null;var id=this.getInitialState?this.getInitialState():null;nd(typeof id==`object`&&!Array.isArray(id),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=id});for(var $ in t.prototype=new bd,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],ad.forEach(ud.bind(null,t)),ud(t,_d),ud(t,e),ud(t,vd),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),nd(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),od)t.prototype[$]||(t.prototype[$]=null);return t}return xd}t.exports=ad})),require_createClass$1=__commonJSMin(((e,t)=>{var $=require_ReactBaseClasses().Component,ed=require_ReactElement().isValidElement,td=require_ReactNoopUpdateQueue();t.exports=require_factory()($,ed,td)})),require_onlyChild=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant$1(),ed=require_ReactElement();require_invariant();function td(e){return!ed.isValidElement(e)&&$(`143`),e}t.exports=td})),require_React=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_ReactBaseClasses(),td=require_ReactChildren(),nd=require_ReactDOMFactories(),rd=require_ReactElement(),id=require_ReactPropTypes(),ad=require_ReactVersion$1(),od=require_createClass$1(),sd=require_onlyChild(),cd=rd.createElement,ld=rd.createFactory,ud=rd.cloneElement,dd=$;t.exports={Children:{map:td.map,forEach:td.forEach,count:td.count,toArray:td.toArray,only:sd},Component:ed.Component,PureComponent:ed.PureComponent,createElement:cd,cloneElement:ud,isValidElement:rd.isValidElement,PropTypes:id,createClass:od,createFactory:ld,createMixin:function(e){return e},DOM:nd,version:ad,__spread:dd}})),require_react=__commonJSMin(((e,t)=>{t.exports=require_React()})),require_reactProdInvariant=__commonJSMin(((e,t)=>{function $(e){for(var t=arguments.length-1,$=`Minified React error #`+e+`; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=`+e,ed=0;ed<t;ed++)$+=`&args[]=`+encodeURIComponent(arguments[ed+1]);$+=` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`;var td=Error($);throw td.name=`Invariant Violation`,td.framesToPop=1,td}t.exports=$})),require_DOMProperty=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();function ed(e,t){return(e&t)===t}var td={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=td,nd=e.Properties||{},id=e.DOMAttributeNamespaces||{},ad=e.DOMAttributeNames||{},od=e.DOMPropertyNames||{},sd=e.DOMMutationMethods||{};for(var cd in e.isCustomAttribute&&rd._isCustomAttributeFunctions.push(e.isCustomAttribute),nd){rd.properties.hasOwnProperty(cd)&&$(`48`,cd);var ld=cd.toLowerCase(),ud=nd[cd],dd={attributeName:ld,attributeNamespace:null,propertyName:cd,mutationMethod:null,mustUseProperty:ed(ud,t.MUST_USE_PROPERTY),hasBooleanValue:ed(ud,t.HAS_BOOLEAN_VALUE),hasNumericValue:ed(ud,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:ed(ud,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:ed(ud,t.HAS_OVERLOADED_BOOLEAN_VALUE)};!(dd.hasBooleanValue+dd.hasNumericValue+dd.hasOverloadedBooleanValue<=1)&&$(`50`,cd),ad.hasOwnProperty(cd)&&(dd.attributeName=ad[cd]),id.hasOwnProperty(cd)&&(dd.attributeNamespace=id[cd]),od.hasOwnProperty(cd)&&(dd.propertyName=od[cd]),sd.hasOwnProperty(cd)&&(dd.mutationMethod=sd[c
6d]),rd.properties[cd]=dd}}},nd=`:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD`,rd={ID_ATTRIBUTE_NAME:`data-reactid`,ROOT_ATTRIBUTE_NAME:`data-reactroot`,ATTRIBUTE_NAME_START_CHAR:nd,ATTRIBUTE_NAME_CHAR:nd+`\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040`,properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<rd._isCustomAttributeFunctions.length;t++){var $=rd._isCustomAttributeFunctions[t];if($(e))return!0}return!1},injection:td};t.exports=rd})),require_ReactDOMComponentFlags=__commonJSMin(((e,t)=>{t.exports={hasCachedChildNodes:1}})),require_ReactDOMComponentTree=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_DOMProperty(),td=require_ReactDOMComponentFlags();require_invariant();var nd=ed.ID_ATTRIBUTE_NAME,rd=td,id=`__reactInternalInstance$`+Math.random().toString(36).slice(2);function ad(e,t){return e.nodeType===1&&e.getAttribute(nd)===String(t)||e.nodeType===8&&e.nodeValue===` react-text: `+t+` `||e.nodeType===8&&e.nodeValue===` react-empty: `+t+` `}function od(e){for(var t;t=e._renderedComponent;)e=t;return e}function sd(e,t){var $=od(e);$._hostNode=t,t[id]=$}function cd(e){var t=e._hostNode;t&&(delete t[id],e._hostNode=null)}function ld(e,t){if(!(e._flags&rd.hasCachedChildNodes)){var ed=e._renderedChildren,td=t.firstChild;outer:for(var nd in ed)if(ed.hasOwnProperty(nd)){var id=ed[nd],cd=od(id)._domID;if(cd!==0){for(;td!==null;td=td.nextSibling)if(ad(td,cd)){sd(id,td);continue outer}$(`32`,cd)}}e._flags|=rd.hasCachedChildNodes}}function ud(e){if(e[id])return e[id];for(var t=[];!e[id];)if(t.push(e),e.parentNode)e=e.parentNode;else return null;for(var $,ed;e&&(ed=e[id]);e=t.pop())$=ed,t.length&&ld(ed,e);return $}function dd(e){var t=ud(e);return t!=null&&t._hostNode===e?t:null}function fd(e){if(e._hostNode===void 0&&$(`33`),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),!e._hostParent&&$(`34`),e=e._hostParent;for(;t.length;e=t.pop())ld(e,e._hostNode);return e._hostNode}t.exports={getClosestInstanceFromNode:ud,getInstanceFromNode:dd,getNodeFromInstance:fd,precacheChildNodes:ld,precacheNode:sd,uncacheNode:cd}})),require_ARIADOMPropertyConfig=__commonJSMin(((e,t)=>{t.exports={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}}})),require_EventPluginRegistry=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();var ed=null,td={};function nd(){if(ed)for(var e in td){var t=td[e],nd=ed.indexOf(e);if(!(nd>-1)&&$(`96`,e),!ad.plugins[nd]){!t.extractEvents&&$(`97`,e),ad.plugins[nd]=t;var id=t.eventTypes;for(var od in id)!rd(id[od],t,od)&&$(`98`,od,e)}}}function rd(e,t,ed){ad.eventNameDispatchConfigs.hasOwnProperty(ed)&&$(`99`,ed),ad.eventNameDispatchConfigs[ed]=e;var td=e.phasedRegistrationNames;if(td){for(var nd in td)if(td.hasOwnProperty(nd)){var rd=td[nd];id(rd,t,ed)}return!0}else if(e.registrationName)return id(e.registrationName,t,ed),!0;return!1}function id(e,t,ed){ad.registrationNameModules[e]&&$(`100`,e),ad.registrationNameModules[e]=t,ad.registrationNameDependencies[e]=t.eventTypes[ed].dependencies}var ad={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){ed&&$(`101`),ed=Array.prototype.slice.call(e),nd()},injectEventPluginsByName:function(e){var t=!1;for(var ed in e)if(e.hasOwnProperty(ed)){var rd=e[ed];(!td.hasOwnProperty(ed)||td[ed]!==rd)&&(td[ed]&&$(`102`,ed),td[ed]=rd,t=!0)}t&&nd()}
6,getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return ad.registrationNameModules[t.registrationName]||null;if(t.phasedRegistrationNames!==void 0){var $=t.phasedRegistrationNames;for(var ed in $)if($.hasOwnProperty(ed)){var td=ad.registrationNameModules[$[ed]];if(td)return td}}return null},_resetEventPlugins:function(){for(var e in ed=null,td)td.hasOwnProperty(e)&&delete td[e];ad.plugins.length=0;var t=ad.eventNameDispatchConfigs;for(var $ in t)t.hasOwnProperty($)&&delete t[$];var nd=ad.registrationNameModules;for(var rd in nd)nd.hasOwnProperty(rd)&&delete nd[rd]}};t.exports=ad})),require_ReactErrorUtils=__commonJSMin(((e,t)=>{var $=null;function ed(e,t,ed){try{t(ed)}catch(e){$===null&&($=e)}}t.exports={invokeGuardedCallback:ed,invokeGuardedCallbackWithCatch:ed,rethrowCaughtError:function(){if($){var e=$;throw $=null,e}}}})),require_EventPluginUtils=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_ReactErrorUtils();require_invariant(),require_warning$1();var td,nd,rd={injectComponentTree:function(e){td=e},injectTreeTraversal:function(e){nd=e}};function id(e){return e===`topMouseUp`||e===`topTouchEnd`||e===`topTouchCancel`}function ad(e){return e===`topMouseMove`||e===`topTouchMove`}function od(e){return e===`topMouseDown`||e===`topTouchStart`}function sd(e,t,$,td){var nd=e.type||`unknown-event`;e.currentTarget=pd.getNodeFromInstance(td),t?ed.invokeGuardedCallbackWithCatch(nd,$,e):ed.invokeGuardedCallback(nd,$,e),e.currentTarget=null}function cd(e,t){var $=e._dispatchListeners,ed=e._dispatchInstances;if(Array.isArray($))for(var td=0;td<$.length&&!e.isPropagationStopped();td++)sd(e,t,$[td],ed[td]);else $&&sd(e,t,$,ed);e._dispatchListeners=null,e._dispatchInstances=null}function ld(e){var t=e._dispatchListeners,$=e._dispatchInstances;if(Array.isArray(t)){for(var ed=0;ed<t.length&&!e.isPropagationStopped();ed++)if(t[ed](e,$[ed]))return $[ed]}else if(t&&t(e,$))return $;return null}function ud(e){var t=ld(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function dd(e){var t=e._dispatchListeners,ed=e._dispatchInstances;Array.isArray(t)&&$(`103`),e.currentTarget=t?pd.getNodeFromInstance(ed):null;var td=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,td}function fd(e){return!!e._dispatchListeners}var pd={isEndish:id,isMoveish:ad,isStartish:od,executeDirectDispatch:dd,executeDispatchesInOrder:cd,executeDispatchesInOrderStopAtTrue:ud,hasDispatches:fd,getInstanceFromNode:function(e){return td.getInstanceFromNode(e)},getNodeFromInstance:function(e){return td.getNodeFromInstance(e)}
6,isAncestor:function(e,t){return nd.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return nd.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return nd.getParentInstance(e)},traverseTwoPhase:function(e,t,$){return nd.traverseTwoPhase(e,t,$)},traverseEnterLeave:function(e,t,$,ed,td){return nd.traverseEnterLeave(e,t,$,ed,td)},injection:rd};t.exports=pd})),require_accumulateInto=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();function ed(e,t){return t??$(`30`),e==null?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}t.exports=ed})),require_forEachAccumulated=__commonJSMin(((e,t)=>{function $(e,t,$){Array.isArray(e)?e.forEach(t,$):e&&t.call($,e)}t.exports=$})),require_EventPluginHub=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_EventPluginRegistry(),td=require_EventPluginUtils(),nd=require_ReactErrorUtils(),rd=require_accumulateInto(),id=require_forEachAccumulated();require_invariant();var ad={},od=null,sd=function(e,t){e&&(td.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},cd=function(e){return sd(e,!0)},ld=function(e){return sd(e,!1)},ud=function(e){return`.`+e._rootNodeID};function dd(e){return e===`button`||e===`input`||e===`select`||e===`textarea`}function fd(e,t,$){switch(e){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:return!!($.disabled&&dd(t));default:return!1}}t.exports={injection:{injectEventPluginOrder:ed.injectEventPluginOrder,injectEventPluginsByName:ed.injectEventPluginsByName},putListener:function(e,t,td){typeof td!=`function`&&$(`94`,t,typeof td);var nd=ud(e),rd=ad[t]||(ad[t]={});rd[nd]=td;var id=ed.registrationNameModules[t];id&&id.didPutListener&&id.didPutListener(e,t,td)},getListener:function(e,t){var $=ad[t];if(fd(t,e._currentElement.type,e._currentElement.props))return null;var ed=ud(e);return $&&$[ed]},deleteListener:function(e,t){var $=ed.registrationNameModules[t];$&&$.willDeleteListener&&$.willDeleteListener(e,t);var td=ad[t];if(td){var nd=ud(e);delete td[nd]}},deleteAllListeners:function(e){var t=ud(e);for(var $ in ad)if(ad.hasOwnProperty($)&&ad[$][t]){var td=ed.registrationNameModules[$];td&&td.willDeleteListener&&td.willDeleteListener(e,$),delete ad[$][t]}},extractEvents:function(e,t,$,td){for(var nd,id=ed.plugins,ad=0;ad<id.length;ad++){var od=id[ad];if(od){var sd=od.extractEvents(e,t,$,td);sd&&(nd=rd(nd,sd))}}return nd},enqueueEvents:function(e){e&&(od=rd(od,e))},processEventQueue:function(e){var t=od;od=null,e?id(t,cd):id(t,ld),od&&$(`95`),nd.rethrowCaughtError()},__purge:function(){ad={}},__getListenerBank:function(){return ad}}})),require_EventPropagators=__commonJSMin(((e,t)=>{var $=require_EventPluginHub(),ed=require_EventPluginUtils(),td=require_accumulateInto(),nd=require_forEachAccumulated();require_warning$1();var rd=$.getListener;
6function id(e,t,$){var ed=t.dispatchConfig.phasedRegistrationNames[$];return rd(e,ed)}function ad(e,t,$){var ed=id(e,$,t);ed&&($._dispatchListeners=td($._dispatchListeners,ed),$._dispatchInstances=td($._dispatchInstances,e))}function od(e){e&&e.dispatchConfig.phasedRegistrationNames&&ed.traverseTwoPhase(e._targetInst,ad,e)}function sd(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,$=t?ed.getParentInstance(t):null;ed.traverseTwoPhase($,ad,e)}}function cd(e,t,$){if($&&$.dispatchConfig.registrationName){var ed=$.dispatchConfig.registrationName,nd=rd(e,ed);nd&&($._dispatchListeners=td($._dispatchListeners,nd),$._dispatchInstances=td($._dispatchInstances,e))}}function ld(e){e&&e.dispatchConfig.registrationName&&cd(e._targetInst,null,e)}function ud(e){nd(e,od)}function dd(e){nd(e,sd)}function fd(e,t,$,td){ed.traverseEnterLeave($,td,cd,e,t)}function pd(e){nd(e,ld)}t.exports={accumulateTwoPhaseDispatches:ud,accumulateTwoPhaseDispatchesSkipTarget:dd,accumulateDirectDispatches:pd,accumulateEnterLeaveDispatches:fd}})),require_ExecutionEnvironment=__commonJSMin(((e,t)=>{var $=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:$,canUseWorkers:typeof Worker<`u`,canUseEventListeners:$&&!!(window.addEventListener||window.attachEvent),canUseViewport:$&&!!window.screen,isInWorker:!$}})),require_PooledClass=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();var ed=function(e){var t=this;if(t.instancePool.length){var $=t.instancePool.pop();return t.call($,e),$}else return new t(e)},td=function(e,t){var $=this;if($.instancePool.length){var ed=$.instancePool.pop();return $.call(ed,e,t),ed}else return new $(e,t)},nd=function(e,t,$){var ed=this;if(ed.instancePool.length){var td=ed.instancePool.pop();return ed.call(td,e,t,$),td}else return new ed(e,t,$)},rd=function(e,t,$,ed){var td=this;if(td.instancePool.length){var nd=td.instancePool.pop();return td.call(nd,e,t,$,ed),nd}else return new td(e,t,$,ed)},id=function(e){var t=this;!(e instanceof t)&&$(`25`),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},ad=10,od=ed;t.exports={addPoolingTo:function(e,t){var $=e;return $.instancePool=[],$.getPooled=t||od,$.poolSize||=ad,$.release=id,$},oneArgumentPooler:ed,twoArgumentPooler:td,threeArgumentPooler:nd,fourArgumentPooler:rd}})),require_getTextContentAccessor=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=null;function td(){return!ed&&$.canUseDOM&&(ed=`textContent`in document.documentElement?`textContent`:`innerText`),ed}t.exports=td})),require_FallbackCompositionState=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_PooledClass(),td=require_getTextContentAccessor();function nd(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}$(nd.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return`value`in this._root?this._root.value:this._root[td()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t=this._startText,$=t.length,ed,td=this.getText(),nd=td.length;for(e=0;e<$&&t[e]===td[e];e++);var rd=$-e;for(ed=1;ed<=rd&&t[$-ed]===td[nd-ed];ed++);var id=ed>1?1-ed:void 0;return this._fallbackText=td.slice(e,id),this._fallbackText}}),ed.addPoolingTo(nd),t.exports=nd})),require_SyntheticEvent=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_PooledClass(),td=require_emptyFunction();require_warning$1();var nd=[`dispatchConfig`,`_targetInst`,`nativeEvent`,`isDefaultPrevented`,`isPropagationStopped`,`_dispatchListeners`,`_dispatchInstances`],rd={type:null,target:null,currentTarget:td.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function id(e,t,$,ed){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=$;var nd=this.constructor.Interface;for(var rd in nd)if(nd.hasOwnProperty(rd)){var id=nd[rd];id?this[rd]=id($):rd===`target`?this.target=ed:this[rd]=$[rd]}return($.defaultPrevented==null?$.returnValue===!1:$.defaultPrevented)?this.isDefaultPrevented=td.thatReturnsTrue:this.isDefaultPrevented=td.thatReturnsFalse,this.isPropagationStopped=td.thatReturnsFalse,this}$(id.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=td.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=td.thatReturnsTrue)},persist:function(){this.isPersistent=td.thatReturnsTrue},isPersistent:td.thatReturnsFalse,destructor:function(){for(var e in this.constructor.Interface)this[e]=null;for(var t=0;t<nd.length;t++)this[nd[t]]=null}}),id.Interface=rd,id.augmentClass=function(e,t){var td=this,nd=function(){};nd.prototype=td.prototype;var rd=new nd;$(rd,e.prototype),e.prototype=rd,e.prototype.constructor=e,e.Interface=$({},td.Interface,t),e.augmentClass=td.augmentClass,ed.addPoolingTo(e,ed.fourArgumentPooler)},ed.addPoolingTo(id,ed.fourArgumentPooler),t.exports=id})),require_SyntheticCompositionEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed={data:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticInputEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed={data:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_BeforeInputEventPlugin=__commonJSMin(((e,t)=>{var $=require_EventPropagators(),ed=require_ExecutionEnvironment(),td=require_FallbackCompositionState(),nd=require_SyntheticCompositionEvent(),rd=require_SyntheticInputEvent(),id=[9,13,27,32],ad=229,od=ed.canUseDOM&&`CompositionEvent`in
6window,sd=null;ed.canUseDOM&&`documentMode`in document&&(sd=document.documentMode);var cd=ed.canUseDOM&&`TextEvent`in window&&!sd&&!ud(),ld=ed.canUseDOM&&(!od||sd&&sd>8&&sd<=11);function ud(){var e=window.opera;return typeof e==`object`&&typeof e.version==`function`&&parseInt(e.version(),10)<=12}var dd=32,fd=String.fromCharCode(dd),pd={beforeInput:{phasedRegistrationNames:{bubbled:`onBeforeInput`,captured:`onBeforeInputCapture`},dependencies:[`topCompositionEnd`,`topKeyPress`,`topTextInput`,`topPaste`]},compositionEnd:{phasedRegistrationNames:{bubbled:`onCompositionEnd`,captured:`onCompositionEndCapture`},dependencies:[`topBlur`,`topCompositionEnd`,`topKeyDown`,`topKeyPress`,`topKeyUp`,`topMouseDown`]},compositionStart:{phasedRegistrationNames:{bubbled:`onCompositionStart`,captured:`onCompositionStartCapture`},dependencies:[`topBlur`,`topCompositionStart`,`topKeyDown`,`topKeyPress`,`topKeyUp`,`topMouseDown`]},compositionUpdate:{phasedRegistrationNames:{bubbled:`onCompositionUpdate`,captured:`onCompositionUpdateCapture`},dependencies:[`topBlur`,`topCompositionUpdate`,`topKeyDown`,`topKeyPress`,`topKeyUp`,`topMouseDown`]}},md=!1;function hd(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function gd(e){switch(e){case`topCompositionStart`:return pd.compositionStart;case`topCompositionEnd`:return pd.compositionEnd;case`topCompositionUpdate`:return pd.compositionUpdate}}function _d(e,t){return e===`topKeyDown`&&t.keyCode===ad}function vd(e,t){switch(e){case`topKeyUp`:return id.indexOf(t.keyCode)!==-1;case`topKeyDown`:return t.keyCode!==ad;case`topKeyPress`:case`topMouseDown`:case`topBlur`:return!0;default:return!1}}function yd(e){var t=e.detail;return typeof t==`object`&&`data`in t?t.data:null}var bd=null;function xd(e,t,ed,rd){var id,ad;if(od?id=gd(e):bd?vd(e,ed)&&(id=pd.compositionEnd):_d(e,ed)&&(id=pd.compositionStart),!id)return null;ld&&(!bd&&id===pd.compositionStart?bd=td.getPooled(rd):id===pd.compositionEnd&&bd&&(ad=bd.getData()));var sd=nd.getPooled(id,t,ed,rd);if(ad)sd.data=ad;else{var cd=yd(ed);cd!==null&&(sd.data=cd)}return $.accumulateTwoPhaseDispatches(sd),sd}function Sd(e,t){switch(e){case`topCompositionEnd`:return yd(t);case`topKeyPress`:return t.which===dd?(md=!0,fd):null;case`topTextInput`:var $=t.data;return $===fd&&md?null:$;default:return null}}function Cd(e,t){if(bd){if(e===`topCompositionEnd`||!od&&vd(e,t)){var $=bd.getData();return td.release(bd),bd=null,$}return null}switch(e){case`topPaste`:return null;case`topKeyPress`:return t.which&&!hd(t)?String.fromCharCode(t.which):null;case`topCompositionEnd`:return ld?null:t.data;default:return null}}function wd(e,t,ed,td){var nd=cd?Sd(e,ed):Cd(e,ed);if(!nd)return null;var id=rd.getPooled(pd.beforeInput,t,ed,td);return id.data=nd,$.accumulateTwoPhaseDispatches(id),id}t.exports={eventTypes:pd,extractEvents:function(e,t,$,ed){return[xd(e,t,$,ed),wd(e,t,$,ed)]}}})),require_CallbackQueue=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();function ed(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var td=require_PooledClass();require_invariant();var nd=function(){function e(t){ed(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,ed=this._arg;if(e&&t){e.length!==t.length&&$(`24`),this._callbacks=null,this._contexts=null;for(var td=0;td<e.length;td++)e[td].call(t[td],ed);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}();t.exports=td.addPoolingTo(nd)})),require_ReactFeatureFlags=__commonJSMin(((e,t)=>{t.exports={logTopLevelRenders:!1}})),require_ReactOwner=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();function ed(e){return!!(e&&typeof e.attachRef==`function`&&typeof e.detachRef==`function`)}t.exports={addComponentAsRefTo:function(e,t,td){!ed(td)&&$(`119`),td.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,td){!ed(td)&&$(`120`);var nd=td.getPublicInstance();nd&&nd.refs[t]===e.getPublicInstance()&&td.detachRef(t)}}})),require_ReactRef=__commonJSMin(((e,t)=>{var $=require_ReactOwner(),ed={};function td(e,t,ed){typeof e==`function`?e(t.getPublicInstance()):$.addComponentAsRefTo(t,e,ed)}
6function nd(e,t,ed){typeof e==`function`?e(null):$.removeComponentAsRefFrom(t,e,ed)}ed.attachRefs=function(e,t){if(!(typeof t!=`object`||!t)){var $=t.ref;$!=null&&td($,e,t._owner)}},ed.shouldUpdateRefs=function(e,t){var $=null,ed=null;typeof e==`object`&&e&&($=e.ref,ed=e._owner);var td=null,nd=null;return typeof t==`object`&&t&&(td=t.ref,nd=t._owner),$!==td||typeof td==`string`&&nd!==ed},ed.detachRefs=function(e,t){if(!(typeof t!=`object`||!t)){var $=t.ref;$!=null&&nd($,e,t._owner)}},t.exports=ed})),require_ReactInstrumentation=__commonJSMin(((e,t)=>{t.exports={debugTool:null}})),require_ReactReconciler=__commonJSMin(((e,t)=>{var $=require_ReactRef();require_ReactInstrumentation(),require_warning$1();function ed(){$.attachRefs(this,this._currentElement)}t.exports={mountComponent:function(e,t,$,td,nd,rd){var id=e.mountComponent(t,$,td,nd,rd);return e._currentElement&&e._currentElement.ref!=null&&t.getReactMountReady().enqueue(ed,e),id},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){$.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,td,nd){var rd=e._currentElement;if(!(t===rd&&nd===e._context)){var id=$.shouldUpdateRefs(rd,t);id&&$.detachRefs(e,rd),e.receiveComponent(t,td,nd),id&&e._currentElement&&e._currentElement.ref!=null&&td.getReactMountReady().enqueue(ed,e)}},performUpdateIfNecessary:function(e,t,$){e._updateBatchNumber===$&&e.performUpdateIfNecessary(t)}}})),require_Transaction=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();var ed={};t.exports={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,ed,td,nd,rd,id,ad){this.isInTransaction()&&$(`27`);var od,sd;try{this._isInTransaction=!0,od=!0,this.initializeAll(0),sd=e.call(t,ed,td,nd,rd,id,ad),od=!1}finally{try{if(od)try{this.closeAll(0)}catch{}else this.closeAll(0)}finally{this._isInTransaction=!1}}return sd},initializeAll:function(e){for(var t=this.transactionWrappers,$=e;$<t.length;$++){var td=t[$];try{this.wrapperInitData[$]=ed,this.wrapperInitData[$]=td.initialize?td.initialize.call(this):null}finally{if(this.wrapperInitData[$]===ed)try{this.initializeAll($+1)}catch{}}}},closeAll:function(e){!this.isInTransaction()&&$(`28`);for(var t=this.transactionWrappers,td=e;td<t.length;td++){var nd=t[td],rd=this.wrapperInitData[td],id;try{id=!0,rd!==ed&&nd.close&&nd.close.call(this,rd),id=!1}finally{if(id)try{this.closeAll(td+1)}catch{}}}this.wrapperInitData.length=0}}})),require_ReactUpdates=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_CallbackQueue(),nd=require_PooledClass(),rd=require_ReactFeatureFlags(),id=require_ReactReconciler(),ad=require_Transaction(),od=require_invariant(),sd=[],cd=0,ld=td.getPooled(),ud=!1,dd=null;function fd(){!(xd.ReactReconcileTransaction&&dd)&&$(`123`)}var pd=[{initialize:function(){this.dirtyComponentsLength=sd.length},close:function(){this.dirtyComponentsLength===sd.length?sd.length=0:(sd.splice(0,this.dirtyComponentsLength),vd())}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];function md(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=td.getPooled(),this.reconcileTransaction=xd.ReactReconcileTransaction.getPooled(!0)}ed(md.prototype,ad,{getTransactionWrappers:function(){return pd},destructor:function(){this.dirtyComponentsLength=null,td.release(this.callbackQueue),this.callbackQueue=null,xd.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,$){return ad.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,$)}}),nd.addPoolingTo(md);function hd(e,t,$,ed,td,nd){return fd(),dd.batchedUpdates(e,t,$,ed,td,nd)}function gd(e,t){return e._mountOrder-t._mountOrder}function _d(e){var t=e.dirtyComponentsLength;t!==sd.length&&$(`124`,t,sd.length),sd.sort(gd),cd++;for(var ed=0;ed<t;ed++){var td=sd[ed],nd=td._pendingCallbacks;td._pendingCallbacks=null;var ad;if(rd.logTopLevelRenders){var od=td;td._currentElement.type.isReactTopLevelWrapper&&(od=td._renderedComponent),ad=`React update: `+od.getName(),console.time(ad)}if(id.performUpdateIfNecessary(td,e.reconcileTransaction,cd),ad&&console.timeEnd(ad),nd)for(var ld=0;ld<nd.length;ld++)e.callbackQueue.enqueue(nd[ld],td.getPublicInstance())}}var vd=function(){for(;sd.length||ud;){if(sd.length){var e=md.getPooled();e.perform(_d,null,e),md.release(e)}if(ud){ud=!1;var t=ld;ld=td.getPooled(),t.notifyAll(),td.release(t)}}};function yd(e){if(fd(),!dd.isBatchingUpdates){dd.batchedUpdates(yd,e);return}sd.push(e),e._updateBatchNumber??=cd+1}function bd(e,t){od(dd.isBatchingUpdates,`ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched.`),ld.enqueue(e,t),ud=!0}var xd={ReactReconcileTransaction:null,batchedUpdates:hd,enqueueUpdate:yd,flushBatchedUp
6dates:vd,injection:{injectReconcileTransaction:function(e){!e&&$(`126`),xd.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){!e&&$(`127`),typeof e.batchedUpdates!=`function`&&$(`128`),typeof e.isBatchingUpdates!=`boolean`&&$(`129`),dd=e}},asap:bd};t.exports=xd})),require_inputValueTracking=__commonJSMin(((e,t)=>{var $=require_ReactDOMComponentTree();function ed(e){var t=e.type,$=e.nodeName;return $&&$.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function td(e){return e._wrapperState.valueTracker}function nd(e,t){e._wrapperState.valueTracker=t}function rd(e){e._wrapperState.valueTracker=null}function id(e){var t;return e&&(t=ed(e)?``+e.checked:e.value),t}var ad={_getTrackerFromNode:function(e){return td($.getInstanceFromNode(e))},track:function(e){if(!td(e)){var t=$.getNodeFromInstance(e),id=ed(t)?`checked`:`value`,ad=Object.getOwnPropertyDescriptor(t.constructor.prototype,id),od=``+t[id];t.hasOwnProperty(id)||typeof ad.get!=`function`||typeof ad.set!=`function`||(Object.defineProperty(t,id,{enumerable:ad.enumerable,configurable:!0,get:function(){return ad.get.call(this)},set:function(e){od=``+e,ad.set.call(this,e)}}),nd(e,{getValue:function(){return od},setValue:function(e){od=``+e},stopTracking:function(){rd(e),delete t[id]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=td(e);if(!t)return ad.track(e),!0;var ed=t.getValue(),nd=id($.getNodeFromInstance(e));return nd===ed?!1:(t.setValue(nd),!0)},stopTracking:function(e){var t=td(e);t&&t.stopTracking()}};t.exports=ad})),require_getEventTarget=__commonJSMin(((e,t)=>{function $(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}t.exports=$})),require_isEventSupported=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed;$.canUseDOM&&(ed=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function td(e,t){if(!$.canUseDOM||t&&!(`addEventListener`in document))return!1;var td=`on`+e,nd=td in document;if(!nd){var rd=document.createElement(`div`);rd.setAttribute(td,`return;`),nd=typeof rd[td]==`function`}return!nd&&ed&&e===`wheel`&&(nd=document.implementation.hasFeature(`Events.wheel`,`3.0`)),nd}t.exports=td})),require_isTextInputElement=__commonJSMin(((e,t)=>{var $={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!$[e.type]:t===`textarea`}t.exports=ed})),require_ChangeEventPlugin=__commonJSMin(((e,t)=>{var $=require_EventPluginHub(),ed=require_EventPropagators(),td=require_ExecutionEnvironment(),nd=require_ReactDOMComponentTree(),rd=require_ReactUpdates(),id=require_SyntheticEvent(),ad=require_inputValueTracking(),od=require_getEventTarget(),sd=require_isEventSupported(),cd=require_isTextInputElement(),ld={change:{phasedRegistrationNames:{bubbled:`onChange`,captured:`onChangeCapture`},dependencies:[`topBlur`,`topChange`,`topClick`,`topFocus`,`topInput`,`topKeyDown`,`topKeyUp`,`topSelectionChange`]}};function ud(e,t,$){var td=id.getPooled(ld.change,e,t,$);return td.type=`change`,ed.accumulateTwoPhaseDispatches(td),td}var dd=null,fd=null;function pd(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t===`select`||t===`input`&&e.type===`file`}var md=!1;td.canUseDOM&&(md=sd(`change`)&&(!document.documentMode||document.documentMode>8));function hd(e){var t=ud(fd,e,od(e));rd.batchedUpdates(gd,t)}function gd(e){$.enqueueEvents(e),$.processEventQueue(!1)}function _d(e,t){dd=e,fd=t,dd.attachEvent(`onchange`,hd)}function vd(){dd&&(dd.detachEvent(`onchange`,hd),dd=null,fd=null)}function yd(e,t){var $=ad.updateValueIfChanged(e),ed=t.simulated===!0&&Md._allowSimulatedPassThrough;if($||ed)return e}function bd(e,t){if(e===`topChange`)return t}function xd(e,t,$){e===`topFocus`?(vd(),_d(t,$)):e===`topBlur`&&vd()}var Sd=!1;td.canUseDOM&&(Sd=sd(`input`)&&(!document.documentMode||document.documentMode>9));function Cd(e,t){dd=e,fd=t,dd.attachEvent(`onpropertychange`,Td)}function wd(){dd&&(dd.detachEvent(`onpropertychange`,Td),dd=null,fd=null)}function Td(e){e.propertyName===`value`&&yd(fd,e)&&hd(e)}function Ed(e,t,$){e===`topFocus`?(wd(),Cd(t,$)):e===`topBlur`&&wd()}function Dd(e,t,$){if(e===`topSelectionChange`||e===`topKeyUp`||e===`topKeyDown`)return yd(fd,$)}function Od(e){var t=e.nodeName;return t&&t.toLowerCase()===`input`&&(e.type===`checkbox`||e.type===`radio`)}function kd(e,t,$){if(e===`topClick`)return yd(t,$)}function Ad(e,t,$){if(e===`topInput`||e===`topChange`)return yd(t,$)}
6function jd(e,t){if(e!=null){var $=e._wrapperState||t._wrapperState;if(!(!$||!$.controlled||t.type!==`number`)){var ed=``+t.value;t.getAttribute(`value`)!==ed&&t.setAttribute(`value`,ed)}}}var Md={eventTypes:ld,_allowSimulatedPassThrough:!0,_isInputEventSupported:Sd,extractEvents:function(e,t,$,ed){var td=t?nd.getNodeFromInstance(t):window,rd,id;if(pd(td)?md?rd=bd:id=xd:cd(td)?Sd?rd=Ad:(rd=Dd,id=Ed):Od(td)&&(rd=kd),rd){var ad=rd(e,t,$);if(ad)return ud(ad,$,ed)}id&&id(e,td,t),e===`topBlur`&&jd(t,td)}};t.exports=Md})),require_DefaultEventPluginOrder=__commonJSMin(((e,t)=>{t.exports=[`ResponderEventPlugin`,`SimpleEventPlugin`,`TapEventPlugin`,`EnterLeaveEventPlugin`,`ChangeEventPlugin`,`SelectEventPlugin`,`BeforeInputEventPlugin`]})),require_SyntheticUIEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed=require_getEventTarget(),td={view:function(e){if(e.view)return e.view;var t=ed(e);if(t.window===t)return t;var $=t.ownerDocument;return $?$.defaultView||$.parentWindow:window},detail:function(e){return e.detail||0}};function nd(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(nd,td),t.exports=nd})),require_ViewportMetrics=__commonJSMin(((e,t)=>{var $={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){$.currentScrollLeft=e.x,$.currentScrollTop=e.y}};t.exports=$})),require_getEventModifierState=__commonJSMin(((e,t)=>{var $={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ed(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var ed=$[e];return ed?!!t[ed]:!1}function td(e){return ed}t.exports=td})),require_SyntheticMouseEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticUIEvent(),ed=require_ViewportMetrics(),td={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:require_getEventModifierState(),button:function(e){var t=e.button;return`which`in e?t:t===2?2:+(t===4)},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return`pageX`in e?e.pageX:e.clientX+ed.currentScrollLeft},pageY:function(e){return`pageY`in e?e.pageY:e.clientY+ed.currentScrollTop}};function nd(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(nd,td),t.exports=nd})),require_EnterLeaveEventPlugin=__commonJSMin(((e,t)=>{var $=require_EventPropagators(),ed=require_ReactDOMComponentTree(),td=require_SyntheticMouseEvent(),nd={mouseEnter:{registrationName:`onMouseEnter`,dependencies:[`topMouseOut`,`topMouseOver`]},mouseLeave:{registrationName:`onMouseLeave`,dependencies:[`topMouseOut`,`topMouseOver`]}};t.exports={eventTypes:nd,extractEvents:function(e,t,rd,id){if(e===`topMouseOver`&&(rd.relatedTarget||rd.fromElement)||e!==`topMouseOut`&&e!==`topMouseOver`)return null;var ad;if(id.window===id)ad=id;else{var od=id.ownerDocument;ad=od?od.defaultView||od.parentWindow:window}var sd,cd;if(e===`topMouseOut`){sd=t;var ld=rd.relatedTarget||rd.toElement;cd=ld?ed.getClosestInstanceFromNode(ld):null}else sd=null,cd=t;if(sd===cd)return null;var ud=sd==null?ad:ed.getNodeFromInstance(sd),dd=cd==null?ad:ed.getNodeFromInstance(cd),fd=td.getPooled(nd.mouseLeave,sd,rd,id);
6fd.type=`mouseleave`,fd.target=ud,fd.relatedTarget=dd;var pd=td.getPooled(nd.mouseEnter,cd,rd,id);return pd.type=`mouseenter`,pd.target=dd,pd.relatedTarget=ud,$.accumulateEnterLeaveDispatches(fd,pd,sd,cd),[fd,pd]}}})),require_HTMLDOMPropertyConfig=__commonJSMin(((e,t)=>{var $=require_DOMProperty(),ed=$.injection.MUST_USE_PROPERTY,td=$.injection.HAS_BOOLEAN_VALUE,nd=$.injection.HAS_NUMERIC_VALUE,rd=$.injection.HAS_POSITIVE_NUMERIC_VALUE,id=$.injection.HAS_OVERLOADED_BOOLEAN_VALUE;t.exports={isCustomAttribute:RegExp.prototype.test.bind(RegExp(`^(data|aria)-[`+$.ATTRIBUTE_NAME_CHAR+`]*$`)),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:td,allowTransparency:0,alt:0,as:0,async:td,autoComplete:0,autoPlay:td,capture:td,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:ed|td,cite:0,classID:0,className:0,cols:rd,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:td,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:td,defer:td,dir:0,disabled:td,download:id,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:td,formTarget:0,frameBorder:0,headers:0,height:0,hidden:td,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:td,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:ed|td,muted:ed|td,name:0,nonce:0,noValidate:td,open:td,optimum:0,pattern:0,placeholder:0,playsInline:td,poster:0,preload:0,profile:0,radioGroup:0,readOnly:td,referrerPolicy:0,rel:0,required:td,reversed:td,role:0,rows:rd,rowSpan:nd,sandbox:0,scope:0,scoped:td,scrolling:0,seamless:td,selected:ed|td,shape:0,size:rd,sizes:0,span:rd,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:nd,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:td,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:`accept-charset`,className:`class`,htmlFor:`for`,httpEquiv:`http-equiv`},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(t==null)return e.removeAttribute(`value`);(e.type!==`number`||e.hasAttribute(`value`)===!1||e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e)&&e.setAttribute(`value`,``+t)}}}})),require_DOMNamespaces=__commonJSMin(((e,t)=>{t.exports={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`}})),require_createMicrosoftUnsafeLocalFunction=__commonJSMin(((e,t)=>{t.exports=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,$,ed,td){MSApp.execUnsafeLocalFunction(function(){return e(t,$,ed,td)})}:e}})),require_setInnerHTML=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=require_DOMNamespaces(),td=/^[ \r\n\t\f]/,nd=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,rd=require_createMicrosoftUnsafeLocalFunction(),id,ad=rd(function(e,t){if(e.namespaceURI===ed.svg&&!(`innerHTML`in e)){id||=document.createElement(`div`),id.innerHTML=`<svg>`+t+`</svg>`;for(var $=id.firstChild;$.firstChild;)e.appendChild($.firstChild)}else e.innerHTML=t});if($.canUseDOM){var od=document.createElement(`div`);od.innerHTML=` `,od.innerHTML===``&&(ad=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),td.test(t)||t[0]===`<`&&nd.test(t)){e.innerHTML=``+t;var $=e.firstChild;$.data.length===1?e.removeChild($):$.deleteData(0,1)}else e.innerHTML=t}),od=null}t.exports=ad})),require_escapeTextContentForBrowser=__commonJSMin(((e,t)=>{var $=/["'&<>]/;function ed(e){var t=``+e,ed=$.exec(t);if(!ed)return t;var td,nd=``,rd=0,id=0;for(rd=ed.index;rd<t.length;rd++){switch(t.charCodeAt(rd)){case 34:td=`"`;break;case 38:td=`&`;break;case 39:td=`'`;break;case 60:td=`<`;break;case 62:td=`>`;break;default:continue}id!==rd&&(nd+=t.substring(id,rd)),id=rd+1,nd+=td}
6return id===rd?nd:nd+t.substring(id,rd)}function td(e){return typeof e==`boolean`||typeof e==`number`?``+e:ed(e)}t.exports=td})),require_setTextContent=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=require_escapeTextContentForBrowser(),td=require_setInnerHTML(),nd=function(e,t){if(t){var $=e.firstChild;if($&&$===e.lastChild&&$.nodeType===3){$.nodeValue=t;return}}e.textContent=t};$.canUseDOM&&(`textContent`in document.documentElement||(nd=function(e,t){if(e.nodeType===3){e.nodeValue=t;return}td(e,ed(t))})),t.exports=nd})),require_DOMLazyTree=__commonJSMin(((e,t)=>{var $=require_DOMNamespaces(),ed=require_setInnerHTML(),td=require_createMicrosoftUnsafeLocalFunction(),nd=require_setTextContent(),rd=1,id=11,ad=typeof document<`u`&&typeof document.documentMode==`number`||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&/\bEdge\/\d/.test(navigator.userAgent);function od(e){if(ad){var t=e.node,$=e.children;if($.length)for(var td=0;td<$.length;td++)sd(t,$[td],null);else e.html==null?e.text!=null&&nd(t,e.text):ed(t,e.html)}}var sd=td(function(e,t,ed){t.node.nodeType===id||t.node.nodeType===rd&&t.node.nodeName.toLowerCase()===`object`&&(t.node.namespaceURI==null||t.node.namespaceURI===$.html)?(od(t),e.insertBefore(t.node,ed)):(e.insertBefore(t.node,ed),od(t))});function cd(e,t){e.parentNode.replaceChild(t.node,e),od(t)}function ld(e,t){ad?e.children.push(t):e.node.appendChild(t.node)}function ud(e,t){ad?e.html=t:ed(e.node,t)}function dd(e,t){ad?e.text=t:nd(e.node,t)}function fd(){return this.node.nodeName}function pd(e){return{node:e,children:[],html:null,text:null,toString:fd}}pd.insertTreeBefore=sd,pd.replaceChildWithTree=cd,pd.queueChild=ld,pd.queueHTML=ud,pd.queueText=dd,t.exports=pd})),require_createArrayFromMixed=__commonJSMin(((e,t)=>{var $=require_invariant();function ed(e){var t=e.length;if(!(!Array.isArray(e)&&(typeof e==`object`||typeof e==`function`))&&$(!1),typeof t!=`number`&&$(!1),!(t===0||t-1 in e)&&$(!1),typeof e.callee==`function`&&$(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch{}for(var ed=Array(t),td=0;td<t;td++)ed[td]=e[td];return ed}function td(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&`length`in e&&!(`setInterval`in e)&&typeof e.nodeType!=`number`&&(Array.isArray(e)||`callee`in e||`item`in e)}function nd(e){return td(e)?Array.isArray(e)?e.slice():ed(e):[e]}t.exports=nd})),require_getMarkupWrap=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=require_invariant(),td=$.canUseDOM?document.createElement(`div`):null,nd={},rd=[1,`<select multiple="true">`,`</select>`],id=[1,`<table>`,`</table>`],ad=[3,`<table><tbody><tr>`,`</tr></tbody></table>`],od=[1,`<svg xmlns="http://www.w3.org/2000/svg">`,`</svg>`],sd={"*":[1,`?<div>`,`</div>`],area:[1,`<map>
6`,`</map>`],col:[2,`<table><tbody></tbody><colgroup>`,`</colgroup></table>`],legend:[1,`<fieldset>`,`</fieldset>`],param:[1,`<object>`,`</object>`],tr:[2,`<table><tbody>`,`</tbody></table>`],optgroup:rd,option:rd,caption:id,colgroup:id,tbody:id,tfoot:id,thead:id,td:ad,th:ad};[`circle`,`clipPath`,`defs`,`ellipse`,`g`,`image`,`line`,`linearGradient`,`mask`,`path`,`pattern`,`polygon`,`polyline`,`radialGradient`,`rect`,`stop`,`text`,`tspan`].forEach(function(e){sd[e]=od,nd[e]=!0});function cd(e){return!td&&ed(!1),sd.hasOwnProperty(e)||(e=`*`),nd.hasOwnProperty(e)||(e===`*`?td.innerHTML=`<link />`:td.innerHTML=`<`+e+`></`+e+`>`,nd[e]=!td.firstChild),nd[e]?sd[e]:null}t.exports=cd})),require_createNodesFromMarkup=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=require_createArrayFromMixed(),td=require_getMarkupWrap(),nd=require_invariant(),rd=$.canUseDOM?document.createElement(`div`):null,id=/^\s*<(\w+)/;function ad(e){var t=e.match(id);return t&&t[1].toLowerCase()}function od(e,t){var $=rd;!rd&&nd(!1);var id=ad(e),od=id&&td(id);if(od){$.innerHTML=od[1]+e+od[2];for(var sd=od[0];sd--;)$=$.lastChild}else $.innerHTML=e;var cd=$.getElementsByTagName(`script`);cd.length&&(!t&&nd(!1),ed(cd).forEach(t));for(var ld=Array.from($.childNodes);$.lastChild;)$.removeChild($.lastChild);return ld}t.exports=od})),require_Danger=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_DOMLazyTree(),td=require_ExecutionEnvironment(),nd=require_createNodesFromMarkup(),rd=require_emptyFunction();require_invariant(),t.exports={dangerouslyReplaceNodeWithMarkup:function(e,t){if(!td.canUseDOM&&$(`56`),!t&&$(`57`),e.nodeName===`HTML`&&$(`58`),typeof t==`string`){var id=nd(t,rd)[0];e.parentNode.replaceChild(id,e)}else ed.replaceChildWithTree(e,t)}}})),require_DOMChildrenOperations=__commonJSMin(((e,t)=>{var $=require_DOMLazyTree(),ed=require_Danger();require_ReactDOMComponentTree(),require_ReactInstrumentation();var td=require_createMicrosoftUnsafeLocalFunction(),nd=require_setInnerHTML(),rd=require_setTextContent();function id(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}var ad=td(function(e,t,$){e.insertBefore(t,$)});function od(e,t,ed){$.insertTreeBefore(e,t,ed)}function sd(e,t,$){Array.isArray(t)?ld(e,t[0],t[1],$):ad(e,t,$)}function cd(e,t){if(Array.isArray(t)){var $=t[1];t=t[0],ud(e,t,$),e.removeChild($)}e.removeChild(t)}function ld(e,t,$,ed){for(var td=t;;){var nd=td.nextSibling;if(ad(e,td,ed),td===$)break;td=nd}}function ud(e,t,$){for(;;){var ed=t.nextSibling;if(ed===$)break;e.removeChild(ed)}}function dd(e,t,$){var ed=e.parentNode,td=e.nextSibling;td===t?$&&ad(ed,document.createTextNode($),td):$?(rd(td,$),ud(ed,td,t)):ud(ed,e,t)}t.exports={dangerouslyReplaceNodeWithMarkup:ed.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:dd,processUpdates:function(e,t){for(var $=0;$<t.length;$++){var ed=t[$];switch(ed.type){case`INSERT_MARKUP`:od(e,ed.content,id(e,ed.afterNode));break;case`MOVE_EXISTING`:sd(e,ed.fromNode,id(e,ed.afterNode));break;case`SET_MARKUP`:nd(e,ed.content);break;case`TEXT_CONTENT`:rd(e,ed.content);break;case`REMOVE_NODE`:cd(e,ed.fromNode);break}}}}})),require_ReactDOMIDOperations=__commonJSMin(((e,t)=>{var $=require_DOMChildrenOperations(),ed=require_ReactDOMComponentTree();t.exports={dangerouslyProcessChildrenUpdates:function(e,t){var td=ed.getNodeFromInstance(e);$.processUpdates(td,t)}}})),require_ReactComponentBrowserEnvironment=__commonJSMin(((e,t)=>{var $=require_DOMChildrenOperations();t.exports={processChildrenUpdates:require_ReactDOMIDOperations().dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:$.dangerouslyReplaceNodeWithMarkup}})),require_focusNode=__commonJSMin(((e,t)=>{function $(e){try{e.focus()}catch{}}t.exports=$})),require_AutoFocusUtils=__commonJSMin(((e,t)=>{var $=require_ReactDOMComponentTree(),ed=require_focusNode();t.exports={focusDOMComponent:function(){ed($.getNodeFromInstance(this))}}})),require_CSSProperty=__commonJSMin(((e,t)=>{var $={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ed(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var td=[`Webkit`,`ms`,`Moz`,`O`];Object.keys($).forEach(function(e){td.forEach(function(t){$[ed(t,e)]=$[e]})}),t.exports={isUnitlessNumber:$,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}}})),require_camelize=__commonJSMin(((e,t)=>{var $=/-(.)/g;function ed(e){return e.replace($,function(e,t){return t.toUpperCase()})}t.exports=ed})),require_camelizeStyleName=__commonJSMin(((e,t)=>{var $=require_camelize(),ed=/^-ms-/;function td(e){return $(e.replace(ed,`ms-`))}t.exports=td})),require_dangerousStyleValue=__commonJSMin(((e,t)=>{var $=require_CSSProperty();require_warning$1();var ed=$.isUnitlessNumber;function td(e,t,$,td){return t==null||typeof t==`boolean`||t===``?``:td||isNaN(t)||t===0||ed.hasOwnProperty(e)&&ed[e]?``+t:(typeof t==`string`&&(t=t.trim()),t+`px`)}t.exports=td})),require_hyphenate=__commonJSMin(((e,t)=>{var $=/([A-Z])/g;function ed(e){return e.replace($,`-$1`).toLowerCase()}t.exports=ed})),require_hyphenateStyleName=__commonJSMin(((e,t)=>{var $=require_hyphenate(),ed=/^ms-/;function td(e){return $(e).replace(ed,`-ms-`)}t.exports=td})),require_memoizeStringOnly=__commonJSMin(((e,t)=>{function $(e){var t={};return function($){return t.hasOwnProperty($)||(t[$]=e.call(this,$)),t[$]}}t.exports=$})),require_CSSPropertyOperations=__commonJSMin(((e,t)=>{var $=require_CSSProperty(),ed=require_ExecutionEnvironment();require_ReactInstrumentation(),require_camelizeStyleName();var td=require_dangerousStyleValue(),nd=require_hyphenateStyleName(),rd=require_memoizeStringOnly();require_warning$1();var id=rd(function(e){return nd(e)}),ad=!1,od=`cssFloat`;if(ed.canUseDOM){var sd=document.createElement(`div`).style;try{sd.font=``}catch{ad=!0}
6document.documentElement.style.cssFloat===void 0&&(od=`styleFloat`)}t.exports={createMarkupForStyles:function(e,t){var $=``;for(var ed in e)if(e.hasOwnProperty(ed)){var nd=ed.indexOf(`--`)===0,rd=e[ed];rd!=null&&($+=id(ed)+`:`,$+=td(ed,rd,t,nd)+`;`)}return $||null},setValueForStyles:function(e,t,ed){var nd=e.style;for(var rd in t)if(t.hasOwnProperty(rd)){var id=rd.indexOf(`--`)===0,sd=td(rd,t[rd],ed,id);if((rd===`float`||rd===`cssFloat`)&&(rd=od),id)nd.setProperty(rd,sd);else if(sd)nd[rd]=sd;else{var cd=ad&&$.shorthandPropertyExpansions[rd];if(cd)for(var ld in cd)nd[ld]=``;else nd[rd]=``}}}}})),require_quoteAttributeValueForBrowser=__commonJSMin(((e,t)=>{var $=require_escapeTextContentForBrowser();function ed(e){return`"`+$(e)+`"`}t.exports=ed})),require_DOMPropertyOperations=__commonJSMin(((e,t)=>{var $=require_DOMProperty();require_ReactDOMComponentTree(),require_ReactInstrumentation();var ed=require_quoteAttributeValueForBrowser();require_warning$1();var td=RegExp(`^[`+$.ATTRIBUTE_NAME_START_CHAR+`][`+$.ATTRIBUTE_NAME_CHAR+`]*$`),nd={},rd={};function id(e){return rd.hasOwnProperty(e)?!0:nd.hasOwnProperty(e)?!1:td.test(e)?(rd[e]=!0,!0):(nd[e]=!0,!1)}function ad(e,t){return t==null||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var od={createMarkupForID:function(e){return $.ID_ATTRIBUTE_NAME+`=`+ed(e)},setAttributeForID:function(e,t){e.setAttribute($.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return $.ROOT_ATTRIBUTE_NAME+`=""`},setAttributeForRoot:function(e){e.setAttribute($.ROOT_ATTRIBUTE_NAME,``)},createMarkupForProperty:function(e,t){var td=$.properties.hasOwnProperty(e)?$.properties[e]:null;if(td){if(ad(td,t))return``;var nd=td.attributeName;return td.hasBooleanValue||td.hasOverloadedBooleanValue&&t===!0?nd+`=""`:nd+`=`+ed(t)}else if($.isCustomAttribute(e))return t==null?``:e+`=`+ed(t);return null},createMarkupForCustomAttribute:function(e,t){return!id(e)||t==null?``:e+`=`+ed(t)},setValueForProperty:function(e,t,ed){var td=$.properties.hasOwnProperty(t)?$.properties[t]:null;if(td){var nd=td.mutationMethod;if(nd)nd(e,ed);else if(ad(td,ed)){this.deleteValueForProperty(e,t);return}else if(td.mustUseProperty)e[td.propertyName]=ed;else{var rd=td.attributeName,id=td.attributeNamespace;id?e.setAttributeNS(id,rd,``+ed):td.hasBooleanValue||td.hasOverloadedBooleanValue&&ed===!0?e.setAttribute(rd,``):e.setAttribute(rd,``+ed)}}else if($.isCustomAttribute(t)){od.setValueForAttribute(e,t,ed);return}},setValueForAttribute:function(e,t,$){id(t)&&($==null?e.removeAttribute(t):e.setAttribute(t,``+$))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var ed=$.properties.hasOwnProperty(t)?$.properties[t]:null;if(ed){var td=ed.mutationMethod;if(td)td(e,void 0);else if(ed.mustUseProperty){var nd=ed.propertyName;ed.hasBooleanValue?e[nd]=!1:e[nd]=``}else e.removeAttribute(ed.attributeName)}else $.isCustomAttribute(t)&&e.removeAttribute(t)}};t.exports=od})),require_ReactEventEmitterMixin=__commonJSMin(((e,t)=>{var $=require_EventPluginHub();function ed(e){$.enqueueEvents(e),$.processEventQueue(!1)}t.exports={handleTopLevel:function(e,t,td,nd){ed($.extractEvents(e,t,td,nd))}}})),require_getVendorPrefixedEventName=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment();function ed(e,t){var $={};return $[e.toLowerCase()]=t.toLowerCase(),$[`Webkit`+e]=`webkit`+t,$[`Moz`+e]=`moz`+t,$[`ms`+e]=`MS`+t,$[`O`+e]=`o`+t.toLowerCase(),$}var td={animationend:ed(`Animation`,`AnimationEnd`),animationiteration:ed(`Animation`,`AnimationIteration`),animationstart:ed(`Animation`,`AnimationStart`),transitionend:ed(`Transition`,`TransitionEnd`)},nd={},rd={};$.canUseDOM&&(rd=document.createElement(`div`).style,`AnimationEvent`in window||(delete td.animationend.animation,delete td.animationiteration.animation,delete td.animationstart.animation),`TransitionEvent`in window||delete td.transitionend.transition);function id(e){if(nd[e])return nd[e];if(!td[e])return e;var t=td[e];for(var $ in t)if(t.hasOwnProperty($)&&$ in rd)return nd[e]=t[$];return``}t.exports=id})),require_ReactBrowserEventEmitter=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_EventPluginRegistry(),td=require_ReactEventEmitterMixin(),nd=require_ViewportMetrics(),rd=require_getVendorPrefixedEventName(),id=require_isEventSupported(),ad,od={}
6,sd=!1,cd=0,ld={topAbort:`abort`,topAnimationEnd:rd(`animationend`)||`animationend`,topAnimationIteration:rd(`animationiteration`)||`animationiteration`,topAnimationStart:rd(`animationstart`)||`animationstart`,topBlur:`blur`,topCanPlay:`canplay`,topCanPlayThrough:`canplaythrough`,topChange:`change`,topClick:`click`,topCompositionEnd:`compositionend`,topCompositionStart:`compositionstart`,topCompositionUpdate:`compositionupdate`,topContextMenu:`contextmenu`,topCopy:`copy`,topCut:`cut`,topDoubleClick:`dblclick`,topDrag:`drag`,topDragEnd:`dragend`,topDragEnter:`dragenter`,topDragExit:`dragexit`,topDragLeave:`dragleave`,topDragOver:`dragover`,topDragStart:`dragstart`,topDrop:`drop`,topDurationChange:`durationchange`,topEmptied:`emptied`,topEncrypted:`encrypted`,topEnded:`ended`,topError:`error`,topFocus:`focus`,topInput:`input`,topKeyDown:`keydown`,topKeyPress:`keypress`,topKeyUp:`keyup`,topLoadedData:`loadeddata`,topLoadedMetadata:`loadedmetadata`,topLoadStart:`loadstart`,topMouseDown:`mousedown`,topMouseMove:`mousemove`,topMouseOut:`mouseout`,topMouseOver:`mouseover`,topMouseUp:`mouseup`,topPaste:`paste`,topPause:`pause`,topPlay:`play`,topPlaying:`playing`,topProgress:`progress`,topRateChange:`ratechange`,topScroll:`scroll`,topSeeked:`seeked`,topSeeking:`seeking`,topSelectionChange:`selectionchange`,topStalled:`stalled`,topSuspend:`suspend`,topTextInput:`textInput`,topTimeUpdate:`timeupdate`,topTouchCancel:`touchcancel`,topTouchEnd:`touchend`,topTouchMove:`touchmove`,topTouchStart:`touchstart`,topTransitionEnd:rd(`transitionend`)||`transitionend`,topVolumeChange:`volumechange`,topWaiting:`waiting`,topWheel:`wheel`},ud=`_reactListenersID`+String(Math.random()).slice(2);function dd(e){return Object.prototype.hasOwnProperty.call(e,ud)||(e[ud]=cd++,od[e[ud]]={}),od[e[ud]]}var fd=$({},td,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(fd.handleTopLevel),fd.ReactEventListener=e}},setEnabled:function(e){fd.ReactEventListener&&fd.ReactEventListener.setEnabled(e)},isEnabled:function(){return!!(fd.ReactEventListener&&fd.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var $=t,td=dd($),nd=ed.registrationNameDependencies[e],rd=0;rd<nd.length;rd++){var ad=nd[rd];td.hasOwnProperty(ad)&&td[ad]||(ad===`topWheel`?id(`wheel`)?fd.ReactEventListener.trapBubbledEvent(`topWheel`,`wheel`,$):id(`mousewheel`)?fd.ReactEventListener.trapBubbledEvent(`topWheel`,`mousewheel`,$):fd.ReactEventListener.trapBubbledEvent(`topWheel`,`DOMMouseScroll`,$):ad===`topScroll`?id(`scroll`,!0)?fd.ReactEventListener.trapCapturedEvent(`topScroll`,`scroll`,$):fd.ReactEventListener.trapBubbledEvent(`topScroll`,`scroll`,fd.ReactEventListener.WINDOW_HANDLE):ad===`topFocus`||ad===`topBlur`?(id(`focus`,!0)?(fd.ReactEventListener.trapCapturedEvent(`topFocus`,`focus`,$),fd.ReactEventListener.trapCapturedEvent(`topBlur`,`blur`,$)):id(`focusin`)&&(fd.ReactEventListener.trapBubbledEvent(`topFocus`,`focusin`,$),fd.ReactEventListener.trapBubbledEvent(`topBlur`,`focusout`,$)),td.topBlur=!0,td.topFocus=!0):ld.hasOwnProperty(ad)&&fd.ReactEventListener.trapBubbledEvent(ad,ld[ad],$),td[ad]=!0)}},trapBubbledEvent:function(e,t,$){return fd.ReactEventListener.trapBubbledEvent(e,t,$)},trapCapturedEvent:function(e,t,$){return fd.ReactEventListener.trapCapturedEvent(e,t,$)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent(`MouseEvent`);return e!=null&&`pageX`in e},ensureScrollValueMonitoring:function(){if(ad===void 0&&(ad=fd.supportsEventPageXY()),!ad&&!sd){var e=nd.refreshScrollValues;fd.ReactEventListener.monitorScrollValue(e),sd=!0}}});t.exports=fd})),require_ReactPropTypesSecret=__commonJSMin(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),require_LinkedValueUtils=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_ReactPropTypesSecret(),td=require_factory$1()(require_React().isValidElement);require_invariant(),require_warning$1();var nd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function rd(e){!(e.checkedLink==null||e.valueLink==null)&&$(`87`)}function id(e){rd(e),!(e.value==null&&e.onChange==null)&&$(`88`)}function ad(e){rd(e),!(e.checked==null&&e.onChange==null)&&$(`89`)}var od={value:function(e,t,$){return!e[t]||nd[e.type]||e.onChange||e.readOnly||e.disabled?null:Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,$){return!e[t]||e.onChange||e.readOnly||e.disabled?null:Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:td.func},sd={};function cd(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return``}t.exports={checkPropTypes:function(e,t,$){for(var td in od){if(od.hasOwnProperty(td))var nd=od[td](t,td,e,`prop`,null,ed);
6nd instanceof Error&&!(nd.message in sd)&&(sd[nd.message]=!0,cd($))}},getValue:function(e){return e.valueLink?(id(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(ad(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){if(e.valueLink)return id(e),e.valueLink.requestChange(t.target.value);if(e.checkedLink)return ad(e),e.checkedLink.requestChange(t.target.checked);if(e.onChange)return e.onChange.call(void 0,t)}}})),require_ReactDOMInput=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_DOMPropertyOperations(),nd=require_LinkedValueUtils(),rd=require_ReactDOMComponentTree(),id=require_ReactUpdates();require_invariant(),require_warning$1();function ad(){this._rootNodeID&&sd.updateWrapper(this)}function od(e){return e.type===`checkbox`||e.type===`radio`?e.checked!=null:e.value!=null}var sd={getHostProps:function(e,t){var $=nd.getValue(t),td=nd.getChecked(t);return ed({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:$??e._wrapperState.initialValue,checked:td??e._wrapperState.initialChecked,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var $=t.defaultValue;e._wrapperState={initialChecked:t.checked==null?t.defaultChecked:t.checked,initialValue:t.value==null?$:t.value,listeners:null,onChange:cd.bind(e),controlled:od(t)}},updateWrapper:function(e){var t=e._currentElement.props,$=t.checked;$!=null&&td.setValueForProperty(rd.getNodeFromInstance(e),`checked`,$||!1);var ed=rd.getNodeFromInstance(e),id=nd.getValue(t);if(id!=null)if(id===0&&ed.value===``)ed.value=`0`;else if(t.type===`number`){var ad=parseFloat(ed.value,10)||0;(id!=ad||id==ad&&ed.value!=id)&&(ed.value=``+id)}else ed.value!==``+id&&(ed.value=``+id);else t.value==null&&t.defaultValue!=null&&ed.defaultValue!==``+t.defaultValue&&(ed.defaultValue=``+t.defaultValue),t.checked==null&&t.defaultChecked!=null&&(ed.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,$=rd.getNodeFromInstance(e);switch(t.type){case`submit`:case`reset`:break;case`color`:case`date`:case`datetime`:case`datetime-local`:case`month`:case`time`:case`week`:$.value=``,$.value=$.defaultValue;break;default:$.value=$.value;break}var ed=$.name;ed!==``&&($.name=``),$.defaultChecked=!$.defaultChecked,$.defaultChecked=!$.defaultChecked,ed!==``&&($.name=ed)}};function cd(e){var t=this._currentElement.props,ed=nd.executeOnChange(t,e);id.asap(ad,this);var td=t.name;if(t.type===`radio`&&td!=null){for(var od=rd.getNodeFromInstance(this),sd=od;sd.parentNode;)sd=sd.parentNode;for(var cd=sd.querySelectorAll(`input[name=`+JSON.stringify(``+td)+`][type="radio"]`),ld=0;ld<cd.length;ld++){var ud=cd[ld];if(!(ud===od||ud.form!==od.form)){var dd=rd.getInstanceFromNode(ud);!dd&&$(`90`),id.asap(ad,dd)}}}return ed}t.exports=sd})),require_ReactDOMSelect=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_LinkedValueUtils(),td=require_ReactDOMComponentTree(),nd=require_ReactUpdates();require_warning$1();var rd=!1;function id(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=ed.getValue(e);t!=null&&ad(this,!!e.multiple,t)}}function ad(e,t,$){var ed,nd,rd=td.getNodeFromInstance(e).options;if(t){for(ed={},nd=0;nd<$.length;nd++)ed[``+$[nd]]=!0;for(nd=0;nd<rd.length;nd++){var id=ed.hasOwnProperty(rd[nd].value);rd[nd].selected!==id&&(rd[nd].selected=id)}}else{for(ed=``+$,nd=0;nd<rd.length;nd++)if(rd[nd].value===ed){rd[nd].selected=!0;return}rd.length&&(rd[0].selected=!0)}}var od={getHostProps:function(e,t){return $({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){e._wrapperState={pendingUpdate:!1,initialValue:ed.getValue(t)??t.defaultValue,listeners:null,onChange:sd.bind(e),wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!rd&&(rd=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var $=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!t.multiple;var td=ed.getValue(t);td==null?$!==!!t.multiple&&(t.defaultValue==null?ad(e,!!t.multiple,t.multiple?[]:``):ad(e,!!t.multiple,t.defaultValue)):(e._wrapperState.pendingUpdate=!1,ad(e,!!t.multiple,td))}};function sd(e){var t=this._currentElement.props,$=ed.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),nd.asap(id,this),$}t.exports=od})),require_ReactDOMOption=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_React(),td=require_ReactDOMComponentTree(),nd=require_ReactDOMSelect();require_warning$1();var rd=!1;function id(e){var t=``;
6return ed.Children.forEach(e,function(e){e!=null&&(typeof e==`string`||typeof e==`number`?t+=e:rd||=!0)}),t}t.exports={mountWrapper:function(e,t,$){var ed=null;if($!=null){var td=$;td._tag===`optgroup`&&(td=td._hostParent),td!=null&&td._tag===`select`&&(ed=nd.getSelectValueContext(td))}var rd=null;if(ed!=null){var ad=t.value==null?id(t.children):t.value+``;if(rd=!1,Array.isArray(ed)){for(var od=0;od<ed.length;od++)if(``+ed[od]===ad){rd=!0;break}}else rd=``+ed===ad}e._wrapperState={selected:rd}},postMountWrapper:function(e){var t=e._currentElement.props;t.value!=null&&td.getNodeFromInstance(e).setAttribute(`value`,t.value)},getHostProps:function(e,t){var ed=$({selected:void 0,children:void 0},t);e._wrapperState.selected!=null&&(ed.selected=e._wrapperState.selected);var td=id(t.children);return td&&(ed.children=td),ed}}})),require_ReactDOMTextarea=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_LinkedValueUtils(),nd=require_ReactDOMComponentTree(),rd=require_ReactUpdates();require_invariant(),require_warning$1();function id(){this._rootNodeID&&ad.updateWrapper(this)}var ad={getHostProps:function(e,t){return t.dangerouslySetInnerHTML!=null&&$(`91`),ed({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var ed=td.getValue(t),nd=ed;if(ed==null){var rd=t.defaultValue,id=t.children;id!=null&&(rd!=null&&$(`92`),Array.isArray(id)&&(!(id.length<=1)&&$(`93`),id=id[0]),rd=``+id),rd??=``,nd=rd}e._wrapperState={initialValue:``+nd,listeners:null,onChange:od.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,$=nd.getNodeFromInstance(e),ed=td.getValue(t);if(ed!=null){var rd=``+ed;rd!==$.value&&($.value=rd),t.defaultValue??($.defaultValue=rd)}t.defaultValue!=null&&($.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=nd.getNodeFromInstance(e),$=t.textContent;$===e._wrapperState.initialValue&&(t.value=$)}};function od(e){var t=this._currentElement.props,$=td.executeOnChange(t,e);return rd.asap(id,this),$}t.exports=ad})),require_ReactComponentEnvironment=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();var ed=!1,td={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){ed&&$(`104`),td.replaceNodeWithMarkup=e.replaceNodeWithMarkup,td.processChildrenUpdates=e.processChildrenUpdates,ed=!0}}};t.exports=td})),require_ReactInstanceMap=__commonJSMin(((e,t)=>{t.exports={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return e._reactInternalInstance!==void 0},set:function(e,t){e._reactInternalInstance=t}}})),require_ReactNodeTypes=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_React();require_invariant();var td={HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){if(e===null||e===!1)return td.EMPTY;if(ed.isValidElement(e))return typeof e.type==`function`?td.COMPOSITE:td.HOST;$(`26`,e)}};t.exports=td})),require_shallowEqual$1=__commonJSMin(((e,t)=>{var $=Object.prototype.hasOwnProperty;function ed(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function td(e,t){if(ed(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var td=Object.keys(e),nd=Object.keys(t);if(td.length!==nd.length)return!1;for(var rd=0;rd<td.length;rd++)if(!$.call(t,td[rd])||!ed(e[td[rd]],t[td[rd]]))return!1;return!0}t.exports=td})),require_shouldUpdateReactComponent=__commonJSMin(((e,t)=>{function $(e,t){var $=e===null||e===!1,ed=t===null||t===!1;if($||ed)return $===ed;var td=typeof e,nd=typeof t;return td===`string`||td===`number`?nd===`string`||nd===`number`:nd===`object`&&e.type===t.type&&e.key===t.key}t.exports=$})),require_ReactCompositeComponent=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_React(),nd=require_ReactComponentEnvironment(),rd=require_ReactCurrentOwner(),id=require_ReactErrorUtils(),ad=require_ReactInstanceMap();require_ReactInstrumentation();var od=require_ReactNodeTypes(),sd=require_ReactReconciler(),cd=require_emptyObject();require_invariant();var ld=require_shallowEqual$1(),ud=require_shouldUpdateReactComponent();require_warning$1();var dd={ImpureClass:0,PureClass:1,StatelessFunctional:2};function fd(e){}fd.prototype.render=function(){var e=ad.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};function pd(e){return!!(e.prototype&&e.prototype.isReactComponent)}function md(e){return!!(e.prototype&&e.prototype.isPureReactComponent)}var hd=1;t.exports={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,ed,nd){this._context=nd,this._mountOrder=hd++,this._hostParent=t,this._hostContainerInfo=ed;var rd=this._currentElement.props,id=this._processContext(nd),od=this._currentElement.type,sd=e.getUpdateQueue(),ld=pd(od),ud=this._constructComponent(ld,rd,id,sd),gd;!ld&&(ud==null||ud.render==null)?(gd=ud,!(ud===null||ud===!1||td.isValidElement(ud))&&$(`105`,od.displayName||od.name||`Component`),ud=new fd(od),this._compositeType=dd.StatelessFunctional):md(od
6)?this._compositeType=dd.PureClass:this._compositeType=dd.ImpureClass,ud.props=rd,ud.context=id,ud.refs=cd,ud.updater=sd,this._instance=ud,ad.set(ud,this);var _d=ud.state;_d===void 0&&(ud.state=_d=null),!(typeof _d==`object`&&!Array.isArray(_d))&&$(`106`,this.getName()||`ReactCompositeComponent`),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var vd=ud.unstable_handleError?this.performInitialMountWithErrorHandling(gd,t,ed,e,nd):this.performInitialMount(gd,t,ed,e,nd);return ud.componentDidMount&&e.getReactMountReady().enqueue(ud.componentDidMount,ud),vd},_constructComponent:function(e,t,$,ed){return this._constructComponentWithoutOwner(e,t,$,ed)},_constructComponentWithoutOwner:function(e,t,$,ed){var td=this._currentElement.type;return e?new td(t,$,ed):td(t,$,ed)},performInitialMountWithErrorHandling:function(e,t,$,ed,td){var nd,rd=ed.checkpoint();try{nd=this.performInitialMount(e,t,$,ed,td)}catch(id){ed.rollback(rd),this._instance.unstable_handleError(id),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),rd=ed.checkpoint(),this._renderedComponent.unmountComponent(!0),ed.rollback(rd),nd=this.performInitialMount(e,t,$,ed,td)}return nd},performInitialMount:function(e,t,$,ed,td){var nd=this._instance,rd=0;nd.componentWillMount&&(nd.componentWillMount(),this._pendingStateQueue&&(nd.state=this._processPendingState(nd.props,nd.context))),e===void 0&&(e=this._renderValidatedComponent());var id=od.getType(e);this._renderedNodeType=id;var ad=this._instantiateReactComponent(e,id!==od.EMPTY);return this._renderedComponent=ad,sd.mountComponent(ad,ed,t,$,this._processChildContext(td),rd)},getHostNode:function(){return sd.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var $=this.getName()+`.componentWillUnmount()`;id.invokeGuardedCallback($,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(sd.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,ad.remove(t)}},_maskContext:function(e){var t=this._currentElement.type.contextTypes;if(!t)return cd;var $={};for(var ed in t)$[ed]=e[ed];return $},_processContext:function(e){return this._maskContext(e)},_processChildContext:function(e){var t=this._currentElement.type,td=this._instance,nd;if(td.getChildContext&&(nd=td.getChildContext()),nd){for(var rd in typeof t.childContextTypes!=`object`&&$(`107`,this.getName()||`ReactCompositeComponent`),nd)!(rd in t.childContextTypes)&&$(`108`,this.getName()||`ReactCompositeComponent`,rd);return ed({},e,nd)}return e},_checkContextTypes:function(e,t,$){},receiveComponent:function(e,t,$){var ed=this._currentElement,td=this._context;this._pendingElement=null,this.updateComponent(t,ed,e,td,$)},performUpdateIfNecessary:function(e){this._pendingElement==null?this._pendingStateQueue!==null||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null:sd.receiveComponent(this,this._pendingElement,e,this._context)},updateComponent:function(e,t,ed,td,nd){var rd=this._instance;rd??$(`136`,this.getName()||`ReactCompositeComponent`);var id=!1,ad;this._context===nd?ad=rd.context:(ad=this._processContext(nd),id=!0);var od=t.props,sd=ed.props;t!==ed&&(id=!0),id&&rd.componentWillReceiveProps&&rd.componentWillReceiveProps(sd,ad);var cd=this._processPendingState(sd,ad),ud=!0;this._pendingForceUpdate||(rd.shouldComponentUpdate?ud=rd.shouldComponentUpdate(sd,cd,ad):this._compositeType===dd.PureClass&&(ud=!ld(od,sd)||!ld(rd.state,cd))),this._updateBatchNumber=null,ud?(this._pendingForceUpdate=!1,this._performComponentUpdate(ed,sd,cd,ad,e,nd)):(this._currentElement=ed,this._context=nd,rd.props=sd,rd.state=cd,rd.context=ad)},_processPendingState:function(e,t){var $=this._instance,td=this._pe
6ndingStateQueue,nd=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!td)return $.state;if(nd&&td.length===1)return td[0];for(var rd=ed({},nd?td[0]:$.state),id=+!!nd;id<td.length;id++){var ad=td[id];ed(rd,typeof ad==`function`?ad.call($,rd,e,t):ad)}return rd},_performComponentUpdate:function(e,t,$,ed,td,nd){var rd=this._instance,id=!!rd.componentDidUpdate,ad,od,sd;id&&(ad=rd.props,od=rd.state,sd=rd.context),rd.componentWillUpdate&&rd.componentWillUpdate(t,$,ed),this._currentElement=e,this._context=nd,rd.props=t,rd.state=$,rd.context=ed,this._updateRenderedComponent(td,nd),id&&td.getReactMountReady().enqueue(rd.componentDidUpdate.bind(rd,ad,od,sd),rd)},_updateRenderedComponent:function(e,t){var $=this._renderedComponent,ed=$._currentElement,td=this._renderValidatedComponent(),nd=0;if(ud(ed,td))sd.receiveComponent($,td,e,this._processChildContext(t));else{var rd=sd.getHostNode($);sd.unmountComponent($,!1);var id=od.getType(td);this._renderedNodeType=id;var ad=this._instantiateReactComponent(td,id!==od.EMPTY);this._renderedComponent=ad;var cd=sd.mountComponent(ad,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),nd);this._replaceNodeWithMarkup(rd,cd,$)}},_replaceNodeWithMarkup:function(e,t,$){nd.replaceNodeWithMarkup(e,t,$)},_renderValidatedComponentWithoutOwnerOrContext:function(){return this._instance.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==dd.StatelessFunctional){rd.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{rd.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return!(e===null||e===!1||td.isValidElement(e))&&$(`109`,this.getName()||`ReactCompositeComponent`),e},attachRef:function(e,t){var ed=this.getPublicInstance();ed??$(`110`);var td=t.getPublicInstance(),nd=ed.refs===cd?ed.refs={}:ed.refs;nd[e]=td},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===dd.StatelessFunctional?null:e},_instantiateReactComponent:null}})),require_ReactEmptyComponent=__commonJSMin(((e,t)=>{var $,ed={injectEmptyComponentFactory:function(e){$=e}},td={create:function(e){return $(e)}};td.injection=ed,t.exports=td})),require_ReactHostComponent=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();var ed=null,td=null,nd={injectGenericComponentClass:function(e){ed=e},injectTextComponentClass:function(e){td=e}};function rd(e){return!ed&&$(`111`,e.type),new ed(e)}function id(e){return new td(e)}function ad(e){return e instanceof td}t.exports={createInternalComponent:rd,createInstanceForText:id,isTextComponent:ad,injection:nd}})),require_getNextDebugID=__commonJSMin(((e,t)=>{var $=1;function ed(){return $++}t.exports=ed})),require_instantiateReactComponent=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_ReactCompositeComponent(),nd=require_ReactEmptyComponent(),rd=require_ReactHostComponent();require_getNextDebugID(),require_invariant(),require_warning$1();var id=function(e){this.construct(e)};function ad(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return``}function od(e){return typeof e==`function`&&e.prototype!==void 0&&typeof e.prototype.mountComponent==`function`&&typeof e.prototype.receiveComponent==`function`}function sd(e,t){var ed;if(e===null||e===!1)ed=nd.create(sd);else if(typeof e==`object`){var td=e,cd=td.type;if(typeof cd!=`function`&&typeof cd!=`string`){var ld=``;ld+=ad(td._owner),$(`130`,cd==null?cd:typeof cd,ld)}typeof td.type==`string`?ed=rd.createInternalComponent(td):od(td.type)?(ed=new td.type(td),ed.getHostNode||=ed.getNativeNode):ed=new id(td)}else typeof e==`string`||typeof e==`number`?ed=rd.createInstanceForText(e):$(`131`,typeof e);return ed._mountIndex=0,ed._mountImage=null,ed}ed(id.prototype,td,{_instantiateReactComponent:sd}),t.exports=sd})),require_KeyEscapeUtils=__commonJSMin(((e,t)=>{function $(e){var t=/[=:]/g,$={"=":`=0`,":":`=2`};return`$`+(``+e).replace(t,function(e){return $[e]})}function ed(e){var t=/(=0|=2)/g,$={"=0":`=`,"=2":`:`};return(``+(e[0]===`.`&&e[1]===`$`?e.substring(2):e.substring(1))).replace(t,function(e){return $[e]})}t.exports={escape:$,unescape:ed}})),require_ReactElementSymbol=__commonJSMin(((e,t)=>{t.exports=typeof Symbol==`function`&&Symbol.for&&Symbol.for(`react.element`)||60103})),require_getIteratorFn=__commonJSMin(((e,t)=>{var $=typeof Symbol==`function`&&Symbol.iterator,ed=`@@iterator`;function td(e){var t=e&&($&&e[$]||e[ed]);if(typeof t==`function`)return t}t.exports=td})),require_traverseAllChildren=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_ReactCurrentOwner();var ed=require_ReactElementSymbol(),td=require_getIteratorFn();require_invariant();var nd=require_KeyEscapeUtils();require_warning$1();var rd=`.`,id=`:`;function ad(e,t){return e&&typeof e==`object`&&e.key!=null?nd.escape(e.key):t.toString(36)}function od(e,t,sd,cd){var ld=typeof e;if((ld===`undefined`||ld===`boolean`)&&(e=null),e===null||ld===`string`||ld===`number`||ld===`object`&&e.$$typeof===ed)return sd(cd,e,t===``?rd+ad(e,0):t),
61;var ud,dd,fd=0,pd=t===``?rd:t+id;if(Array.isArray(e))for(var md=0;md<e.length;md++)ud=e[md],dd=pd+ad(ud,md),fd+=od(ud,dd,sd,cd);else{var hd=td(e);if(hd){var gd=hd.call(e),_d;if(hd!==e.entries)for(var vd=0;!(_d=gd.next()).done;)ud=_d.value,dd=pd+ad(ud,vd++),fd+=od(ud,dd,sd,cd);else for(;!(_d=gd.next()).done;){var yd=_d.value;yd&&(ud=yd[1],dd=pd+nd.escape(yd[0])+id+ad(ud,0),fd+=od(ud,dd,sd,cd))}}else if(ld===`object`){var bd=``,xd=String(e);$(`31`,xd===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:xd,bd)}}return fd}function sd(e,t,$){return e==null?0:od(e,``,t,$)}t.exports=sd})),require_ReactChildReconciler=__commonJSMin(((e,t)=>{init_dist();var $=require_ReactReconciler(),ed=require_instantiateReactComponent();require_KeyEscapeUtils();var td=require_shouldUpdateReactComponent(),nd=require_traverseAllChildren();require_warning$1();function rd(e,t,$,td){var nd=e[$]===void 0;t!=null&&nd&&(e[$]=ed(t,!0))}t.exports={instantiateChildren:function(e,t,$,ed){if(e==null)return null;var td={};return nd(e,rd,td),td},updateChildren:function(e,t,nd,rd,id,ad,od,sd,cd){if(!(!t&&!e)){var ld,ud;for(ld in t)if(t.hasOwnProperty(ld)){ud=e&&e[ld];var dd=ud&&ud._currentElement,fd=t[ld];if(ud!=null&&td(dd,fd))$.receiveComponent(ud,fd,id,sd),t[ld]=ud;else{ud&&(rd[ld]=$.getHostNode(ud),$.unmountComponent(ud,!1));var pd=ed(fd,!0);t[ld]=pd;var md=$.mountComponent(pd,id,ad,od,sd,cd);nd.push(md)}}for(ld in e)e.hasOwnProperty(ld)&&!(t&&t.hasOwnProperty(ld))&&(ud=e[ld],rd[ld]=$.getHostNode(ud),$.unmountComponent(ud,!1))}},unmountChildren:function(e,t){for(var ed in e)if(e.hasOwnProperty(ed)){var td=e[ed];$.unmountComponent(td,t)}}}})),require_flattenChildren=__commonJSMin(((e,t)=>{init_dist(),require_KeyEscapeUtils();var $=require_traverseAllChildren();require_warning$1();function ed(e,t,$,ed){if(e&&typeof e==`object`){var td=e;td[$]===void 0&&t!=null&&(td[$]=t)}}function td(e,t){if(e==null)return e;var td={};return $(e,ed,td),td}t.exports=td})),require_ReactMultiChild=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_ReactComponentEnvironment();require_ReactInstanceMap(),require_ReactInstrumentation(),require_ReactCurrentOwner();var td=require_ReactReconciler(),nd=require_ReactChildReconciler();require_emptyFunction();var rd=require_flattenChildren();require_invariant();function id(e,t,$){return{type:`INSERT_MARKUP`,content:e,fromIndex:null,fromNode:null,toIndex:$,afterNode:t}}function ad(e,t,$){return{type:`MOVE_EXISTING`,content:null,fromIndex:e._mountIndex,fromNode:td.getHostNode(e),toIndex:$,afterNode:t}}function od(e,t){return{type:`REMOVE_NODE`,content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function sd(e){return{type:`SET_MARKUP`,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function cd(e){return{type:`TEXT_CONTENT`,content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function ld(e,t){return t&&(e||=[],e.push(t)),e}function ud(e,t){ed.processChildrenUpdates(e,t)}t.exports={Mixin:{_reconcilerInstantiateChildren:function(e,t,$){return nd.instantiateChildren(e,t,$)},_reconcilerUpdateChildren:function(e,t,$,ed,td,id){var ad,od=0;return ad=rd(t,od),nd.updateChildren(e,ad,$,ed,td,this,this._hostContainerInfo,id,od),ad},mountChildren:function(e,t,$){var ed=this._reconcilerInstantiateChildren(e,t,$);this._renderedChildren=ed;var nd=[],rd=0;for(var id in ed)if(ed.hasOwnProperty(id)){var ad=ed[id],od=td.mountComponent(ad,t,this,this._hostContainerInfo,$,0);ad._mountIndex=rd++,nd.push(od)}return nd},updateTextContent:function(e){var t=this._renderedChildren;for(var ed in nd.unmountChildren(t,!1),t)t.hasOwnProperty(ed)&&$(`118`);var td=[cd(e)];ud(this,td)},updateMarkup:function(e){var t=this._renderedChildren;for(var ed in nd.unmountChildren(t,!1),t)t.hasOwnProperty(ed)&&$(`118`);var td=[sd(e)];ud(this,td)},updateChildren:function(e,t,$){this._updateChildren(e,t,$)},_updateChildren:function(e,t,$){var ed=this._renderedChildren,nd={},rd=[],id=this._reconcilerUpdateChildren(ed,e,rd,nd,t,$);if(!(!id&&!ed)){var ad=null,od,sd=0,cd=0,dd=0,fd=null;for(od in id)if(id.hasOwnProperty(od)){var pd=ed&&ed[od],md=id[od];pd===md?(ad=ld(ad,this.moveChild(pd,fd,sd,cd)),cd=Math.max(pd._mountIndex,cd),pd._mountIndex=sd):(pd&&(cd=Math.max(pd._mountIndex,cd)),ad=ld(ad,this._mountChildAtIndex(md,rd[dd],fd,sd,t,$)),dd++),sd++,fd=td.getHostNode(md)}for(od in nd)nd.hasOwnProperty(od)&&(ad=ld(ad,this._unmountChild(ed[od],nd[od])
6));ad&&ud(this,ad),this._renderedChildren=id}},unmountChildren:function(e){var t=this._renderedChildren;nd.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,$,ed){if(e._mountIndex<ed)return ad(e,t,$)},createChild:function(e,t,$){return id($,t,e._mountIndex)},removeChild:function(e,t){return od(e,t)},_mountChildAtIndex:function(e,t,$,ed,td,nd){return e._mountIndex=ed,this.createChild(e,$,t)},_unmountChild:function(e,t){var $=this.removeChild(e,t);return e._mountIndex=null,$}}}})),require_ReactUpdateQueue=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_ReactCurrentOwner();var ed=require_ReactInstanceMap();require_ReactInstrumentation();var td=require_ReactUpdates();require_invariant(),require_warning$1();function nd(e){td.enqueueUpdate(e)}function rd(e){var t=typeof e;if(t!==`object`)return t;var $=e.constructor&&e.constructor.name||t,ed=Object.keys(e);return ed.length>0&&ed.length<20?$+` (keys: `+ed.join(`, `)+`)`:$}function id(e,t){return ed.get(e)||null}var ad={isMounted:function(e){var t=ed.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t,$){ad.validateCallback(t,$);var ed=id(e);if(!ed)return null;ed._pendingCallbacks?ed._pendingCallbacks.push(t):ed._pendingCallbacks=[t],nd(ed)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],nd(e)},enqueueForceUpdate:function(e){var t=id(e,`forceUpdate`);t&&(t._pendingForceUpdate=!0,nd(t))},enqueueReplaceState:function(e,t,$){var ed=id(e,`replaceState`);ed&&(ed._pendingStateQueue=[t],ed._pendingReplaceState=!0,$!=null&&(ad.validateCallback($,`replaceState`),ed._pendingCallbacks?ed._pendingCallbacks.push($):ed._pendingCallbacks=[$]),nd(ed))},enqueueSetState:function(e,t){var $=id(e,`setState`);$&&(($._pendingStateQueue||=[]).push(t),nd($))},enqueueElementInternal:function(e,t,$){e._pendingElement=t,e._context=$,nd(e)},validateCallback:function(e,t){!(!e||typeof e==`function`)&&$(`122`,t,rd(e))}};t.exports=ad})),require_ReactServerUpdateQueue=__commonJSMin(((e,t)=>{function $(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var ed=require_ReactUpdateQueue();require_warning$1(),t.exports=function(){function e(t){$(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,$){this.transaction.isInTransaction()&&ed.enqueueCallback(e,t,$)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()&&ed.enqueueForceUpdate(e)},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()&&ed.enqueueReplaceState(e,t)},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()&&ed.enqueueSetState(e,t)},e}()})),require_ReactServerRenderingTransaction=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_PooledClass(),td=require_Transaction();require_ReactInstrumentation();var nd=require_ReactServerUpdateQueue(),rd=[],id={enqueue:function(){}};function ad(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new nd(this)}$(ad.prototype,td,{getTransactionWrappers:function(){return rd},getReactMountReady:function(){return id},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}}),ed.addPoolingTo(ad),t.exports=ad})),require_validateDOMNesting=__commonJSMin(((e,t)=>{require_object_assign();var $=require_emptyFunction();require_warning$1(),t.exports=$})),require_ReactDOMComponent=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_AutoFocusUtils(),nd=require_CSSPropertyOperations(),rd=require_DOMLazyTree(),id=require_DOMNamespaces(),ad=require_DOMProperty(),od=require_DOMPropertyOperations(),sd=require_EventPluginHub(),cd=require_EventPluginRegistry(),ld=require_ReactBrowserEventEmitter(),ud=require_ReactDOMComponentFlags(),dd=require_ReactDOMComponentTree(),fd=require_ReactDOMInput(),pd=require_ReactDOMOption(),md=require_ReactDOMSelect(),hd=require_ReactDOMTextarea();require_ReactInstrumentation();var gd=require_ReactMultiChild(),_d=require_ReactServerRenderingTransaction();require_emptyFunction();var vd=require_escapeTextContentForBrowser();require_invariant(),require_isEventSupported(),require_shallowEqual$1();var yd=require_inputValueTracking();require_validateDOMNesting(),require_warning$1();var bd=ud,xd=sd.deleteListener,Sd=dd.getNodeFromInstance,Cd=ld.listenTo,wd=cd.registrationNameModules,Td={string:!0,number:!0},Ed=`style`,Dd=`__html`,Od={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},kd=11;function Ad(e){if(e){var t=e._currentElement._owner||null;if(t){var $=t.getName();if($)return" This DOM node was rendered by `"+$+"`."}}return``}
6function jd(e,t){t&&(Ud[e._tag]&&!(t.children==null&&t.dangerouslySetInnerHTML==null)&&$(`137`,e._tag,e._currentElement._owner?` Check the render method of `+e._currentElement._owner.getName()+`.`:``),t.dangerouslySetInnerHTML!=null&&(t.children!=null&&$(`60`),!(typeof t.dangerouslySetInnerHTML==`object`&&Dd in t.dangerouslySetInnerHTML)&&$(`61`)),!(t.style==null||typeof t.style==`object`)&&$(`62`,Ad(e)))}function Md(e,t,$,ed){if(!(ed instanceof _d)){var td=e._hostContainerInfo;Cd(t,td._node&&td._node.nodeType===kd?td._node:td._ownerDocument),ed.getReactMountReady().enqueue(Nd,{inst:e,registrationName:t,listener:$})}}function Nd(){var e=this;sd.putListener(e.inst,e.registrationName,e.listener)}function Pd(){var e=this;fd.postMountWrapper(e)}function Fd(){var e=this;hd.postMountWrapper(e)}function Id(){var e=this;pd.postMountWrapper(e)}var Ld={topAbort:`abort`,topCanPlay:`canplay`,topCanPlayThrough:`canplaythrough`,topDurationChange:`durationchange`,topEmptied:`emptied`,topEncrypted:`encrypted`,topEnded:`ended`,topError:`error`,topLoadedData:`loadeddata`,topLoadedMetadata:`loadedmetadata`,topLoadStart:`loadstart`,topPause:`pause`,topPlay:`play`,topPlaying:`playing`,topProgress:`progress`,topRateChange:`ratechange`,topSeeked:`seeked`,topSeeking:`seeking`,topStalled:`stalled`,topSuspend:`suspend`,topTimeUpdate:`timeupdate`,topVolumeChange:`volumechange`,topWaiting:`waiting`};function Rd(){yd.track(this)}function zd(){var e=this;!e._rootNodeID&&$(`63`);var t=Sd(e);switch(!t&&$(`64`),e._tag){case`iframe`:case`object`:e._wrapperState.listeners=[ld.trapBubbledEvent(`topLoad`,`load`,t)];break;case`video`:case`audio`:for(var ed in e._wrapperState.listeners=[],Ld)Ld.hasOwnProperty(ed)&&e._wrapperState.listeners.push(ld.trapBubbledEvent(ed,Ld[ed],t));break;case`source`:e._wrapperState.listeners=[ld.trapBubbledEvent(`topError`,`error`,t)];break;case`img`:e._wrapperState.listeners=[ld.trapBubbledEvent(`topError`,`error`,t),ld.trapBubbledEvent(`topLoad`,`load`,t)];break;case`form`:e._wrapperState.listeners=[ld.trapBubbledEvent(`topReset`,`reset`,t),ld.trapBubbledEvent(`topSubmit`,`submit`,t)];break;case`input`:case`select`:case`textarea`:e._wrapperState.listeners=[ld.trapBubbledEvent(`topInvalid`,`invalid`,t)];break}}function Bd(){md.postUpdateWrapper(this)}var Vd={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Hd={listing:!0,pre:!0,textarea:!0},Ud=ed({menuitem:!0},Vd),Wd=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Gd={},Kd={}.hasOwnProperty;function qd(e){Kd.call(Gd,e)||(!Wd.test(e)&&$(`65`,e),Gd[e]=!0)}function Jd(e,t){return e.indexOf(`-`)>=0||t.is!=null}var Yd=1;function Xd(e){var t=e.type;qd(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}Xd.displayName=`ReactDOMComponent`,Xd.Mixin={mountComponent:function(e,t,$,ed){this._rootNodeID=Yd++,this._domID=$._idCounter++,this._hostParent=t,this._hostContainerInfo=$;var nd=this._currentElement.props;switch(this._tag){case`audio`:case`form`:case`iframe`:case`img`:case`link`:case`object`:case`source`:case`video`:this._wrapperState={listeners:null},e.getReactMountReady().enqueue(zd,this);break;case`input`:fd.mountWrapper(this,nd,t),nd=fd.getHostProps(this,nd),e.getReactMountReady().enqueue(Rd,this),e.getReactMountReady().enqueue(zd,this);break;case`option`:pd.mountWrapper(this,nd,t),nd=pd.getHostProps(this,nd);break;case`select`:md.mountWrapper(this,nd,t),nd=md.getHostProps(this,nd),e.getReactMountReady().enqueue(zd,this);break;case`textarea`:hd.mountWrapper(this,nd,t),nd=hd.getHostProps(this,nd),e.getReactMountReady().enqueue(Rd,this),e.getReactMountReady().enqueue(zd,this);break}jd(this,nd);var ad,sd;t==null?$._tag&&(ad=$._namespaceURI,sd=$._tag):(ad=t._namespaceURI,sd=t._tag),(ad==null||ad===id.svg&&sd===`foreignobject`)&&(ad=id.html),ad===id.html&&(this._tag===`svg`?ad=id.svg:this._tag===`math`&&(ad=id.mathml)),this._namespaceURI=ad;var cd;if(e.useCreateElement){var ld=$._ownerDocument,ud;if(ad===id.html)if(this._tag===`script`){var gd=ld.createElement(`div`),_d=this._currentElement.type;gd.innerHTML=`<`+_d+`></`+_d+`>`,ud=gd.removeChild(gd.firstChild)}else ud=nd.is?ld.createElement(this._currentElement.type,nd.is):ld.createElement(this._currentElement.type);else ud=ld.createElementNS(ad,this._currentElement.type);dd.precacheNode(this,ud),this._flags|=bd.hasCachedChildNodes,this._hostParent||od.setAttributeForRoot(ud),this._updateDOMProperties(null,nd,e);var vd=rd(ud);this._createInitialChildren(e,nd,ed,vd),cd=vd}else{var yd=this._createOpenTagMarkupAndPutListeners(e,nd),xd=this._createContentMarkup(e,nd,ed);cd=!xd&&Vd[this._tag]?yd+`/>`:yd+`>`+xd+`</`+this._currentElement.type+`>`}switch(this._tag){case`input`:e.getReactMountReady().enqueue(Pd,this),nd.autoFocus&&e.getReactMountReady().enqueue(td.focusDOMComponent,this);break;case`textarea`:e.getReactMountReady().enqueue(Fd,this),nd.autoFocus&&e.getReactMountReady().enqueue(td.focusDOMComponent,this);break;case`select`:nd.autoFocus&&e.getReactMountReady().enqueue(td.focusDOMComponent,this);break;case`button`:nd.autoFocus&&e.getReactMountReady().enqueue(td.focusDOMComponent,this);break;case`option`:e.getReactMountReady().enqueue(Id,this);break}return cd},_createOpenTagMarkupAndPutListeners:function(e,t){var $=`<`+this._currentElement.type;for(var td in t)if(t.hasOwnProperty(td)){var rd=t[td];if(rd!=null)if(wd.hasOwnProperty(td))rd&&Md(this,td,rd,e);else{td===Ed&&(rd&&=this._previousStyleCopy=ed({},t.style),rd=nd.createMarkupForStyles(rd,this));var id=null;this._tag!=null&&Jd(this._tag,t)?Od.hasOwnProperty(td)||(id=od.createMarkupFor
6CustomAttribute(td,rd)):id=od.createMarkupForProperty(td,rd),id&&($+=` `+id)}}return e.renderToStaticMarkup?$:(this._hostParent||($+=` `+od.createMarkupForRoot()),$+=` `+od.createMarkupForID(this._domID),$)},_createContentMarkup:function(e,t,$){var ed=``,td=t.dangerouslySetInnerHTML;if(td!=null)td.__html!=null&&(ed=td.__html);else{var nd=Td[typeof t.children]?t.children:null,rd=nd==null?t.children:null;nd==null?rd!=null&&(ed=this.mountChildren(rd,e,$).join(``)):ed=vd(nd)}return Hd[this._tag]&&ed.charAt(0)===` 7`?` 8`+ed:ed},_createInitialChildren:function(e,t,$,ed){var td=t.dangerouslySetInnerHTML;if(td!=null)td.__html!=null&&rd.queueHTML(ed,td.__html);else{var nd=Td[typeof t.children]?t.children:null,id=nd==null?t.children:null;if(nd!=null)nd!==``&&rd.queueText(ed,nd);else if(id!=null)for(var ad=this.mountChildren(id,e,$),od=0;od<ad.length;od++)rd.queueChild(ed,ad[od])}},receiveComponent:function(e,t,$){var ed=this._currentElement;this._currentElement=e,this.updateComponent(t,ed,e,$)},updateComponent:function(e,t,$,ed){var td=t.props,nd=this._currentElement.props;switch(this._tag){case`input`:td=fd.getHostProps(this,td),nd=fd.getHostProps(this,nd);break;case`option`:td=pd.getHostProps(this,td),nd=pd.getHostProps(this,nd);break;case`select`:td=md.getHostProps(this,td),nd=md.getHostProps(this,nd);break;case`textarea`:td=hd.getHostProps(this,td),nd=hd.getHostProps(this,nd);break}switch(jd(this,nd),this._updateDOMProperties(td,nd,e),this._updateDOMChildren(td,nd,e,ed),this._tag){case`input`:fd.updateWrapper(this),yd.updateValueIfChanged(this);break;case`textarea`:hd.updateWrapper(this);break;case`select`:e.getReactMountReady().enqueue(Bd,this);break}},_updateDOMProperties:function(e,t,$){var td,rd,id;for(td in e)if(!(t.hasOwnProperty(td)||!e.hasOwnProperty(td)||e[td]==null))if(td===Ed){var sd=this._previousStyleCopy;for(rd in sd)sd.hasOwnProperty(rd)&&(id||={},id[rd]=``);this._previousStyleCopy=null}else wd.hasOwnProperty(td)?e[td]&&xd(this,td):Jd(this._tag,e)?Od.hasOwnProperty(td)||od.deleteValueForAttribute(Sd(this),td):(ad.properties[td]||ad.isCustomAttribute(td))&&od.deleteValueForProperty(Sd(this),td);for(td in t){var cd=t[td],ld=td===Ed?this._previousStyleCopy:e?.[td];if(!(!t.hasOwnProperty(td)||cd===ld||cd==null&&ld==null)){if(td===Ed)if(cd?cd=this._previousStyleCopy=ed({},cd):this._previousStyleCopy=null,ld){for(rd in ld)ld.hasOwnProperty(rd)&&(!cd||!cd.hasOwnProperty(rd))&&(id||={},id[rd]=``);for(rd in cd)cd.hasOwnProperty(rd)&&ld[rd]!==cd[rd]&&(id||={},id[rd]=cd[rd])}else id=cd;else if(wd.hasOwnProperty(td))cd?Md(this,td,cd,$):ld&&xd(this,td);else if(Jd(this._tag,t))Od.hasOwnProperty(td)||od.setValueForAttribute(Sd(this),td,cd);else if(ad.properties[td]||ad.isCustomAttribute(td)){var ud=Sd(this);cd==null?od.deleteValueForProperty(ud,td):od.setValueForProperty(ud,td,cd)}}}id&&nd.setValueForStyles(Sd(this),id,this)},_updateDOMChildren:function(e,t,$,ed){var td=Td[typeof e.children]?e.children:null,nd=Td[typeof t.children]?t.children:null,rd=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,id=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,ad=td==null?e.children:null,od=nd==null?t.children:null;ad!=null&&od==null?this.updateChildren(null,$,ed):(td!=null||rd!=null)&&!(nd!=null||id!=null)&&this.updateTextContent(``),nd==null?id==null?od!=null&&this.updateChildren(od,$,ed):rd!==id&&this.updateMarkup(``+id):td!==nd&&this.updateTextContent(``+nd)},getHostNode:function(){return Sd(this)},unmountComponent:function(e){switch(this._tag){case`audio`:case`form`:case`iframe`:case`img`:case`link`:case`object`:case`source`:case`video`:var t=this._wrapperState.listeners;if(t)for(var ed=0;ed<t.length;ed++)t[ed].remove();break;case`input`:case`textarea`:yd.stopTracking(this);break;case`html`:case`head`:case`body`:$(`66`,this._tag);break}this.unmountChildren(e),dd.uncacheNode(this),sd.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return Sd(this)}},ed(Xd.prototype,Xd.Mixin,gd.Mixin),t.exports=Xd})),require_ReactDOMEmptyComponent=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_DOMLazyTree(),td=require_ReactDOMComponentTree(),nd=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};$(nd.prototype,{mountComponent:function(e,t,$,nd){this._domID=$._idCounter++,this._hostParent=t,this._hostContainerInfo=$;var rd=` react-empty: `+this._domID+` `;if(e.useCreateElement){var id=$._ownerDocument.createComment(rd);return td.precacheNode(this,id),ed(id)}else return e.renderToStaticMarkup?``:`<!--`+rd+`-->`},receiveComponent:function(){},getHostNode:function(){return td.getNodeFromInstance(this)},unmountComponent:function(){td.uncacheNode(this)}}),t.exports=nd})),require_ReactDOMTreeTraversal=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_invariant();function ed(e,t){!(`_hostNode`in e)&&$(`33`),!(`_hostNode`in t)&&$(`33`);for(var ed=0,td=e;td;td=td._hostParent)ed++;for(var nd=0,rd=t;rd;rd=rd._hostParent)nd++;for(;ed-nd>0;)e=e._hostParent,ed--;for(;nd-ed>0;)t=t._hostParent,nd--;for(var id=ed;id--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function td(e,t){for(!(`_hostNode`in e)&&$(`35`),!(`_hostNode`in t)&&$(`35`);t;){if(t===e)return!0;t=t._hostParent}return!1}
8function nd(e){return!(`_hostNode`in e)&&$(`36`),e._hostParent}function rd(e,t,$){for(var ed=[];e;)ed.push(e),e=e._hostParent;var td;for(td=ed.length;td-- >0;)t(ed[td],`captured`,$);for(td=0;td<ed.length;td++)t(ed[td],`bubbled`,$)}function id(e,t,$,td,nd){for(var rd=e&&t?ed(e,t):null,id=[];e&&e!==rd;)id.push(e),e=e._hostParent;for(var ad=[];t&&t!==rd;)ad.push(t),t=t._hostParent;var od;for(od=0;od<id.length;od++)$(id[od],`bubbled`,td);for(od=ad.length;od-- >0;)$(ad[od],`captured`,nd)}t.exports={isAncestor:td,getLowestCommonAncestor:ed,getParentInstance:nd,traverseTwoPhase:rd,traverseEnterLeave:id}})),require_ReactDOMTextComponent=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_object_assign(),td=require_DOMChildrenOperations(),nd=require_DOMLazyTree(),rd=require_ReactDOMComponentTree(),id=require_escapeTextContentForBrowser();require_invariant(),require_validateDOMNesting();var ad=function(e){this._currentElement=e,this._stringText=``+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null};ed(ad.prototype,{mountComponent:function(e,t,$,ed){var td=$._idCounter++,ad=` react-text: `+td+` `,od=` /react-text `;if(this._domID=td,this._hostParent=t,e.useCreateElement){var sd=$._ownerDocument,cd=sd.createComment(ad),ld=sd.createComment(od),ud=nd(sd.createDocumentFragment());return nd.queueChild(ud,nd(cd)),this._stringText&&nd.queueChild(ud,nd(sd.createTextNode(this._stringText))),nd.queueChild(ud,nd(ld)),rd.precacheNode(this,cd),this._closingComment=ld,ud}else{var dd=id(this._stringText);return e.renderToStaticMarkup?dd:`<!--`+ad+`-->`+dd+`<!--`+od+`-->`}},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var $=``+e;if($!==this._stringText){this._stringText=$;var ed=this.getHostNode();td.replaceDelimitedText(ed[0],ed[1],$)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=rd.getNodeFromInstance(this).nextSibling;;){if(t??$(`67`,this._domID),t.nodeType===8&&t.nodeValue===` /react-text `){this._closingComment=t;break}t=t.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,rd.uncacheNode(this)}}),t.exports=ad})),require_ReactDefaultBatchingStrategy=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_ReactUpdates(),td=require_Transaction(),nd=require_emptyFunction(),rd={initialize:nd,close:function(){sd.isBatchingUpdates=!1}},id=[{initialize:nd,close:ed.flushBatchedUpdates.bind(ed)},rd];function ad(){this.reinitializeTransaction()}$(ad.prototype,td,{getTransactionWrappers:function(){return id}});var od=new ad,sd={isBatchingUpdates:!1,batchedUpdates:function(e,t,$,ed,td,nd){var rd=sd.isBatchingUpdates;return sd.isBatchingUpdates=!0,rd?e(t,$,ed,td,nd):od.perform(e,null,t,$,ed,td,nd)}};t.exports=sd})),require_EventListener=__commonJSMin(((e,t)=>{var $=require_emptyFunction();t.exports={listen:function(e,t,$){if(e.addEventListener)return e.addEventListener(t,$,!1),{remove:function(){e.removeEventListener(t,$,!1)}};if(e.attachEvent)return e.attachEvent(`on`+t,$),{remove:function(){e.detachEvent(`on`+t,$)}}},capture:function(e,t,ed){return e.addEventListener?(e.addEventListener(t,ed,!0),{remove:function(){e.removeEventListener(t,ed,!0)}}):{remove:$}},registerDefault:function(){}}})),require_getUnboundedScrollPosition=__commonJSMin(((e,t)=>{function $(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=$})),require_ReactEventListener=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_EventListener(),td=require_ExecutionEnvironment(),nd=require_PooledClass(),rd=require_ReactDOMComponentTree(),id=require_ReactUpdates(),ad=require_getEventTarget(),od=require_getUnboundedScrollPosition();function sd(e){for(;e._hostParent;)e=e._hostParent;var t=rd.getNodeFromInstance(e).parentNode;return rd.getClosestInstanceFromNode(t)}function cd(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}$(cd.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),nd.addPoolingTo(cd,nd.twoArgumentPooler);function ld(e){var t=ad(e.nativeEvent),$=rd.getClosestInstanceFromNode(t),ed=$;do e.ancestors.push(ed),ed&&=sd(ed);while(ed);for(var td=0;td<e.ancestors.length;td++)$=e.ancestors[td],dd._handleTopLevel(e.topLevelType,$,e.nativeEvent,ad(e.nativeEvent))}function ud(e){e(od(window))}var dd={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:td.canUseDOM?window:null,setHandleTopLevel:function(e){dd._handleTopLevel=e},setEnabled:function(e){dd._enabled=!!e},isEnabled:function(){return dd._enabled},trapBubbledEvent:function(e,t,$){return $?ed.listen($,t,dd.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,$){return $?ed.capture($,t,dd.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=ud.bind(null,e);ed.listen(window,`scroll`,t)},dispatchEvent:function(e,t){if(dd._enabled){var $=cd.getPooled(e,t);try{id.batchedUpdates(ld,$)}finally{cd.release($)}}}};t.exports=dd})),require_ReactInjection=__commonJSMin(((e,t)=>{var $=require_DOMProperty(),ed=require_EventPluginHub(),td=require_EventPluginUtils(),nd=require_ReactComponentEnvironment(),rd=require_ReactEmptyComponent(),id=require_ReactBrowserEventEmitter(),ad=require_ReactHostComponent(),od=require_ReactUpdates();t.exports={Component:nd.injection,DOMProperty:$.injection,EmptyComponent:rd.injection,EventPluginHub:ed.injection,EventPluginUtils:td.injection,EventEmitter:id.injection,HostComponent:ad.injection,Updates:od.injection}})),require_getNodeForCharacterOffset=__commonJSMin(((e,t)=>{function $(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ed(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function td(e,t){for(var td=$(e),nd=0,rd=0;td;){if(td.nodeType===3){if(rd=nd+td.textContent.length,nd<=t&&rd>=t)return{node:td,offset:t-nd};nd=rd}td=$(ed(td))}}t.exports=td})),require_ReactDOMSelection=__commonJSMin(((e,t)=>{var $=require_ExecutionEnvironment(),ed=require_getNodeForCharacterOffset(),td=require_getTextContentAccessor();
8function nd(e,t,$,ed){return e===$&&t===ed}function rd(e){var t=document.selection.createRange(),$=t.text.length,ed=t.duplicate();ed.moveToElementText(e),ed.setEndPoint(`EndToStart`,t);var td=ed.text.length;return{start:td,end:td+$}}function id(e){var t=window.getSelection&&window.getSelection();if(!t||t.rangeCount===0)return null;var $=t.anchorNode,ed=t.anchorOffset,td=t.focusNode,rd=t.focusOffset,id=t.getRangeAt(0);try{id.startContainer.nodeType,id.endContainer.nodeType}catch{return null}var ad=nd(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)?0:id.toString().length,od=id.cloneRange();od.selectNodeContents(e),od.setEnd(id.startContainer,id.startOffset);var sd=nd(od.startContainer,od.startOffset,od.endContainer,od.endOffset)?0:od.toString().length,cd=sd+ad,ld=document.createRange();ld.setStart($,ed),ld.setEnd(td,rd);var ud=ld.collapsed;return{start:ud?cd:sd,end:ud?sd:cd}}function ad(e,t){var $=document.selection.createRange().duplicate(),ed,td;t.end===void 0?(ed=t.start,td=ed):t.start>t.end?(ed=t.end,td=t.start):(ed=t.start,td=t.end),$.moveToElementText(e),$.moveStart(`character`,ed),$.setEndPoint(`EndToStart`,$),$.moveEnd(`character`,td-ed),$.select()}function od(e,t){if(window.getSelection){var $=window.getSelection(),nd=e[td()].length,rd=Math.min(t.start,nd),id=t.end===void 0?rd:Math.min(t.end,nd);if(!$.extend&&rd>id){var ad=id;id=rd,rd=ad}var od=ed(e,rd),sd=ed(e,id);if(od&&sd){var cd=document.createRange();cd.setStart(od.node,od.offset),$.removeAllRanges(),rd>id?($.addRange(cd),$.extend(sd.node,sd.offset)):(cd.setEnd(sd.node,sd.offset),$.addRange(cd))}}}var sd=$.canUseDOM&&`selection`in document&&!(`getSelection`in window);t.exports={getOffsets:sd?rd:id,setOffsets:sd?ad:od}})),require_isNode=__commonJSMin(((e,t)=>{function $(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!!(e&&(typeof t.Node==`function`?e instanceof t.Node:typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.nodeName==`string`))}t.exports=$})),require_isTextNode=__commonJSMin(((e,t)=>{var $=require_isNode();function ed(e){return $(e)&&e.nodeType==3}t.exports=ed})),require_containsNode=__commonJSMin(((e,t)=>{var $=require_isTextNode();
8function ed(e,t){return!e||!t?!1:e===t?!0:$(e)?!1:$(t)?ed(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}t.exports=ed})),require_getActiveElement=__commonJSMin(((e,t)=>{function $(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}t.exports=$})),require_ReactInputSelection=__commonJSMin(((e,t)=>{var $=require_ReactDOMSelection(),ed=require_containsNode(),td=require_focusNode(),nd=require_getActiveElement();function rd(e){return ed(document.documentElement,e)}var id={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&e.type===`text`||t===`textarea`||e.contentEditable===`true`)},getSelectionInformation:function(){var e=nd();return{focusedElem:e,selectionRange:id.hasSelectionCapabilities(e)?id.getSelection(e):null}},restoreSelection:function(e){var t=nd(),$=e.focusedElem,ed=e.selectionRange;t!==$&&rd($)&&(id.hasSelectionCapabilities($)&&id.setSelection($,ed),td($))},getSelection:function(e){var t;if(`selectionStart`in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&e.nodeName.toLowerCase()===`input`){var ed=document.selection.createRange();ed.parentElement()===e&&(t={start:-ed.moveStart(`character`,-e.value.length),end:-ed.moveEnd(`character`,-e.value.length)})}else t=$.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var ed=t.start,td=t.end;if(td===void 0&&(td=ed),`selectionStart`in e)e.selectionStart=ed,e.selectionEnd=Math.min(td,e.value.length);else if(document.selection&&e.nodeName&&e.nodeName.toLowerCase()===`input`){var nd=e.createTextRange();nd.collapse(!0),nd.moveStart(`character`,ed),nd.moveEnd(`character`,td-ed),nd.select()}else $.setOffsets(e,t)}};t.exports=id})),require_ReactReconcileTransaction=__commonJSMin(((e,t)=>{var $=require_object_assign(),ed=require_CallbackQueue(),td=require_PooledClass(),nd=require_ReactBrowserEventEmitter(),rd=require_ReactInputSelection();require_ReactInstrumentation();var id=require_Transaction(),ad=require_ReactUpdateQueue(),od=[{initialize:rd.getSelectionInformation,close:rd.restoreSelection},{initialize:function(){var e=nd.isEnabled();return nd.setEnabled(!1),e},close:function(e){nd.setEnabled(e)}},{initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}}];function sd(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=ed.getPooled(null),this.useCreateElement=e}$(sd.prototype,id,{getTransactionWrappers:function(){return od},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return ad},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){ed.release(this.reactMountReady),this.reactMountReady=null}}),td.addPoolingTo(sd),t.exports=sd})),require_SVGDOMPropertyConfig=__commonJSMin(((e,t)=>{var $={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},ed={accentHeight:`accent-height`,accumulate:0,additive:0,alignmentBaseline:`alignment-baseline`,allowReorder:`allowReorder`,alphabetic:0,amplitude:0,arabicForm:`arabic-form`,ascent:0,attributeName:`attributeName`,attributeType:`attributeType`,autoReverse:`autoReverse`,azimuth:0,baseFrequency:`baseFrequency`,baseProfile:`baseProfile`,baselineShift:`baseline-shift`,bbox:0,begin:0,bias:0,by:0,calcMode:`calcMode`,capHeight:`cap-height`,clip:0,clipPath:`clip-path`,clipRule:`clip-rule`,clipPathUnits:`clipPathUnits`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,contentScriptType:`contentScriptType`,contentStyleType:`contentStyleType`,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:`diffuseConstant`,direction:0,display:0,divisor:0,dominantBaseline:`dominant-baseline`,dur:0,dx:0,dy:0,edgeMode:`edgeMode`,elevation:0,enableBackground:`enable-background`,end:0,exponent:0,externalResourcesRequired:`externalResourcesRequired`,fill:0,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,filter:0,filterRes:`filterRes`,filterUnits:`filterUnits`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,focusable:0,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,glyphRef:`glyphRef`,gradientTransform:`gradientTransform`,gradientUnits:`gradientUnits`,hanging:0,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,ideographic:0,imageRendering:`image-rendering`,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:`kernelMatrix`,kernelUnitLength:`kernelUnitLength`,kerning:0,keyPoints:`keyPoints`,keySplines:`keySplines`,ke
8yTimes:`keyTimes`,lengthAdjust:`lengthAdjust`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,limitingConeAngle:`limitingConeAngle`,local:0,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,markerHeight:`markerHeight`,markerUnits:`markerUnits`,markerWidth:`markerWidth`,mask:0,maskContentUnits:`maskContentUnits`,maskUnits:`maskUnits`,mathematical:0,mode:0,numOctaves:`numOctaves`,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pathLength:`pathLength`,patternContentUnits:`patternContentUnits`,patternTransform:`patternTransform`,patternUnits:`patternUnits`,pointerEvents:`pointer-events`,points:0,pointsAtX:`pointsAtX`,pointsAtY:`pointsAtY`,pointsAtZ:`pointsAtZ`,preserveAlpha:`preserveAlpha`,preserveAspectRatio:`preserveAspectRatio`,primitiveUnits:`primitiveUnits`,r:0,radius:0,refX:`refX`,refY:`refY`,renderingIntent:`rendering-intent`,repeatCount:`repeatCount`,repeatDur:`repeatDur`,requiredExtensions:`requiredExtensions`,requiredFeatures:`requiredFeatures`,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:`shape-rendering`,slope:0,spacing:0,specularConstant:`specularConstant`,specularExponent:`specularExponent`,speed:0,spreadMethod:`spreadMethod`,startOffset:`startOffset`,stdDeviation:`stdDeviation`,stemh:0,stemv:0,stitchTiles:`stitchTiles`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,string:0,stroke:0,strokeDasharray:`stroke-dasharray`,strokeDashoffset:`stroke-dashoffset`,strokeLinecap:`stroke-linecap`,strokeLinejoin:`stroke-linejoin`,strokeMiterlimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,surfaceScale:`surfaceScale`,systemLanguage:`systemLanguage`,tableValues:`tableValues`,targetX:`targetX`,targetY:`targetY`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,textLength:`textLength`,to:0,transform:0,u1:0,u2:0,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicode:0,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,values:0,vectorEffect:`vector-effect`,version:0,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,viewBox:`viewBox`,viewTarget:`viewTarget`,visibility:0,widths:0,wordSpacing:`word-spacing`,writingMode:`writing-mode`,x:0,xHeight:`x-height`,x1:0,x2:0,xChannelSelector:`xChannelSelector`,xlinkActuate:`xlink:actuate`,xlinkArcrole:`xlink:arcrole`,xlinkHref:`xlink:href`,xlinkRole:`xlink:role`,xlinkShow:`xlink:show`,xlinkTitle:`xlink:title`,xlinkType:`xlink:type`,xmlBase:`xml:base`,xmlns:0,xmlnsXlink:`xmlns:xlink`,xmlLang:`xml:lang`,xmlSpace:`xml:space`,y:0,y1:0,y2:0,yChannelSelector:`yChannelSelector`,z:0,zoomAndPan:`zoomAndPan`},td={Properties:{},DOMAttributeNamespaces:{xlinkActuate:$.xlink,xlinkArcrole:$.xlink,xlinkHref:$.xlink,xlinkRole:$.xlink,xlinkShow:$.xlink,xlinkTitle:$.xlink,xlinkType:$.xlink,xmlBase:$.xml,xmlLang:$.xml,xmlSpace:$.xml},DOMAttributeNames:{}};Object.keys(ed).forEach(function(e){td.Properties[e]=0,ed[e]&&(td.DOMAttributeNames[e]=ed[e])}),t.exports=td})),require_SelectEventPlugin=__commonJSMin(((e,t)=>{var $=require_EventPropagators(),ed=require_ExecutionEnvironment(),td=require_ReactDOMComponentTree(),nd=require_ReactInputSelection(),rd=require_SyntheticEvent(),id=require_getActiveElement(),ad=require_isTextInputElement(),od=require_shallowEqual$1(),sd=ed.canUseDOM&&`documentMode`in document&&document.documentMode<=11,cd={select:{phasedRegistrationNames:{bubbled:`onSelect`,captured:`onSelectCapture`},dependencies:[`topBlur`,`topContextMenu`,`topFocus`,`topKeyDown`,`topKeyUp`,`topMouseDown`,`topMouseUp`,`topSelectionChange`]}},ld=null,ud=null,dd=null,fd=!1,pd=!1;function md(e){if(`selectionStart`in e&&nd.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();
8return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}else if(document.selection){var $=document.selection.createRange();return{parentElement:$.parentElement(),text:$.text,top:$.boundingTop,left:$.boundingLeft}}}function hd(e,t){if(fd||ld==null||ld!==id())return null;var ed=md(ld);if(!dd||!od(dd,ed)){dd=ed;var td=rd.getPooled(cd.select,ud,e,t);return td.type=`select`,td.target=ld,$.accumulateTwoPhaseDispatches(td),td}return null}t.exports={eventTypes:cd,extractEvents:function(e,t,$,ed){if(!pd)return null;var nd=t?td.getNodeFromInstance(t):window;switch(e){case`topFocus`:(ad(nd)||nd.contentEditable===`true`)&&(ld=nd,ud=t,dd=null);break;case`topBlur`:ld=null,ud=null,dd=null;break;case`topMouseDown`:fd=!0;break;case`topContextMenu`:case`topMouseUp`:return fd=!1,hd($,ed);case`topSelectionChange`:if(sd)break;case`topKeyDown`:case`topKeyUp`:return hd($,ed)}return null},didPutListener:function(e,t,$){t===`onSelect`&&(pd=!0)}}})),require_SyntheticAnimationEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed={animationName:null,elapsedTime:null,pseudoElement:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticClipboardEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed={clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticFocusEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticUIEvent(),ed={relatedTarget:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_getEventCharCode=__commonJSMin(((e,t)=>{function $(e){var t,$=e.keyCode;return`charCode`in e?(t=e.charCode,t===0&&$===13&&(t=13)):t=$,t>=32||t===13?t:0}t.exports=$})),require_getEventKey=__commonJSMin(((e,t)=>{var $=require_getEventCharCode(),ed={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},td={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`};function nd(e){if(e.key){var t=ed[e.key]||e.key;if(t!==`Unidentified`)return t}if(e.type===`keypress`){var nd=$(e);return nd===13?`Enter`:String.fromCharCode(nd)}return e.type===`keydown`||e.type===`keyup`?td[e.keyCode]||`Unidentified`:``}t.exports=nd})),require_SyntheticKeyboardEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticUIEvent(),ed=require_getEventCharCode(),td={key:require_getEventKey(),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:require_getEventModifierState(),charCode:function(e){return e.type===`keypress`?ed(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?ed(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}};function nd(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(nd,td),t.exports=nd})),require_SyntheticDragEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticMouseEvent(),ed={dataTransfer:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticTouchEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticUIEvent(),ed={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:require_getEventModifierState()};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticTransitionEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticEvent(),ed={propertyName:null,elapsedTime:null,pseudoElement:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SyntheticWheelEvent=__commonJSMin(((e,t)=>{var $=require_SyntheticMouseEvent(),ed={deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};function td(e,t,ed,td){return $.call(this,e,t,ed,td)}$.augmentClass(td,ed),t.exports=td})),require_SimpleEventPlugin=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_EventListener(),td=require_EventPropagators(),nd=require_ReactDOMComponentTree(),rd=require_SyntheticAnimationEvent(),id=require_SyntheticClipboardEvent(),ad=require_SyntheticEvent(),od=require_SyntheticFocusEvent(),sd=require_SyntheticKeyboardEvent(),cd=require_SyntheticMouseEvent(),ld=require_SyntheticDragEvent(),ud=require_SyntheticTouchEvent(),dd=require_SyntheticTransitionEvent(),fd=require_SyntheticUIEvent(),pd=require_SyntheticWheelEvent(),md=require_emptyFunction(),hd=require_getEventCharCo
8de();require_invariant();var gd={},_d={};`abort.animationEnd.animationIteration.animationStart.blur.canPlay.canPlayThrough.click.contextMenu.copy.cut.doubleClick.drag.dragEnd.dragEnter.dragExit.dragLeave.dragOver.dragStart.drop.durationChange.emptied.encrypted.ended.error.focus.input.invalid.keyDown.keyPress.keyUp.load.loadedData.loadedMetadata.loadStart.mouseDown.mouseMove.mouseOut.mouseOver.mouseUp.paste.pause.play.playing.progress.rateChange.reset.scroll.seeked.seeking.stalled.submit.suspend.timeUpdate.touchCancel.touchEnd.touchMove.touchStart.transitionEnd.volumeChange.waiting.wheel`.split(`.`).forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),$=`on`+t,ed=`top`+t,td={phasedRegistrationNames:{bubbled:$,captured:$+`Capture`},dependencies:[ed]};gd[e]=td,_d[ed]=td});var vd={};function yd(e){return`.`+e._rootNodeID}function bd(e){return e===`button`||e===`input`||e===`select`||e===`textarea`}t.exports={eventTypes:gd,extractEvents:function(e,t,ed,nd){var md=_d[e];if(!md)return null;var gd;switch(e){case`topAbort`:case`topCanPlay`:case`topCanPlayThrough`:case`topDurationChange`:case`topEmptied`:case`topEncrypted`:case`topEnded`:case`topError`:case`topInput`:case`topInvalid`:case`topLoad`:case`topLoadedData`:case`topLoadedMetadata`:case`topLoadStart`:case`topPause`:case`topPlay`:case`topPlaying`:case`topProgress`:case`topRateChange`:case`topReset`:case`topSeeked`:case`topSeeking`:case`topStalled`:case`topSubmit`:case`topSuspend`:case`topTimeUpdate`:case`topVolumeChange`:case`topWaiting`:gd=ad;break;case`topKeyPress`:if(hd(ed)===0)return null;case`topKeyDown`:case`topKeyUp`:gd=sd;break;case`topBlur`:case`topFocus`:gd=od;break;case`topClick`:if(ed.button===2)return null;case`topDoubleClick`:case`topMouseDown`:case`topMouseMove`:case`topMouseUp`:case`topMouseOut`:case`topMouseOver`:case`topContextMenu`:gd=cd;break;case`topDrag`:case`topDragEnd`:case`topDragEnter`:case`topDragExit`:case`topDragLeave`:case`topDragOver`:case`topDragStart`:case`topDrop`:gd=ld;break;case`topTouchCancel`:case`topTouchEnd`:case`topTouchMove`:case`topTouchStart`:gd=ud;break;case`topAnimationEnd`:case`topAnimationIteration`:case`topAnimationStart`:gd=rd;break;case`topTransitionEnd`:gd=dd;break;case`topScroll`:gd=fd;break;case`topWheel`:gd=pd;break;case`topCopy`:case`topCut`:case`topPaste`:gd=id;break}!gd&&$(`86`,e);var vd=gd.getPooled(md,t,ed,nd);return td.accumulateTwoPhaseDispatches(vd),vd},didPutListener:function(e,t,$){if(t===`onClick`&&!bd(e._tag)){var td=yd(e),rd=nd.getNodeFromInstance(e);vd[td]||(vd[td]=ed.listen(rd,`click`,md))}},willDeleteListener:function(e,t){if(t===`onClick`&&!bd(e._tag)){var $=yd(e);vd[$].remove(),delete vd[$]}}}})),require_ReactDefaultInjection=__commonJSMin(((e,t)=>{var $=require_ARIADOMPropertyConfig(),ed=require_BeforeInputEventPlugin(),td=require_ChangeEventPlugin(),nd=require_DefaultEventPluginOrder(),rd=require_EnterLeaveEventPlugin(),id=require_HTMLDOMPropertyConfig(),ad=require_ReactComponentBrowserEnvironment(),od=require_ReactDOMComponent(),sd=require_ReactDOMComponentTree(),cd=require_ReactDOMEmptyComponent(),ld=require_ReactDOMTreeTraversal(),ud=require_ReactDOMTextComponent(),dd=require_ReactDefaultBatchingStrategy(),fd=require_ReactEventListener(),pd=require_ReactInjection(),md=require_ReactReconcileTransaction(),hd=require_SVGDOMPropertyConfig(),gd=require_SelectEventPlugin(),_d=require_SimpleEventPlugin(),vd=!1;function yd(){vd||(vd=!0,pd.EventEmitter.injectReactEventListener(fd),pd.EventPluginHub.injectEventPluginOrder(nd),pd.EventPluginUtils.injectComponentTree(sd),pd.EventPluginUtils.injectTreeTraversal(ld),pd.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:_d,EnterLeaveEventPlugin:rd,ChangeEventPlugin:td,SelectEventPlugin:gd,BeforeInputEventPlugin:ed}),pd.HostComponent.injectGenericComponentClass(od),pd.HostComponent.injectTextComponentClass(ud),pd.DOMProperty.injectDOMPropertyConfig($),pd.DOMProperty.injectDOMPropertyConfig(id),pd.DOMProperty.injectDOMPropertyConfig(hd),pd.EmptyComponent.injectEmptyComponentFactory(function(e){return new cd(e)}),pd.Updates.injectReconcileTransaction(md),pd.Updates.injectBatchingStrategy(dd),pd.Component.injectEnvironment(ad))}t.exports={inject:yd}})),require_ReactDOMContainerInfo=__commonJSMin(((e,t)=>{require_validateDOMNesting();var $=9;function ed(e,t){return{_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===$?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null}}t.exports=ed})),require_ReactDOMFeatureFlags=__commonJSMin(((e,t)=>{t.exports={useCreateElement:!0,useFiber:!1}}
8)),require_adler32=__commonJSMin(((e,t)=>{var $=65521;function ed(e){for(var t=1,ed=0,td=0,nd=e.length,rd=nd&-4;td<rd;){for(var id=Math.min(td+4096,rd);td<id;td+=4)ed+=(t+=e.charCodeAt(td))+(t+=e.charCodeAt(td+1))+(t+=e.charCodeAt(td+2))+(t+=e.charCodeAt(td+3));t%=$,ed%=$}for(;td<nd;td++)ed+=t+=e.charCodeAt(td);return t%=$,ed%=$,t|ed<<16}t.exports=ed})),require_ReactMarkupChecksum=__commonJSMin(((e,t)=>{var $=require_adler32(),ed=/\/?>/,td=/^<\!\-\-/,nd={CHECKSUM_ATTR_NAME:`data-react-checksum`,addChecksumToMarkup:function(e){var t=$(e);return td.test(e)?e:e.replace(ed,` `+nd.CHECKSUM_ATTR_NAME+`="`+t+`"$&`)},canReuseMarkup:function(e,t){var ed=t.getAttribute(nd.CHECKSUM_ATTR_NAME);return ed&&=parseInt(ed,10),$(e)===ed}};t.exports=nd})),require_ReactMount=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant(),ed=require_DOMLazyTree(),td=require_DOMProperty(),nd=require_React(),rd=require_ReactBrowserEventEmitter();require_ReactCurrentOwner();var id=require_ReactDOMComponentTree(),ad=require_ReactDOMContainerInfo(),od=require_ReactDOMFeatureFlags(),sd=require_ReactFeatureFlags(),cd=require_ReactInstanceMap();require_ReactInstrumentation();var ld=require_ReactMarkupChecksum(),ud=require_ReactReconciler(),dd=require_ReactUpdateQueue(),fd=require_ReactUpdates(),pd=require_emptyObject(),md=require_instantiateReactComponent();require_invariant();var hd=require_setInnerHTML(),gd=require_shouldUpdateReactComponent();require_warning$1();var _d=td.ID_ATTRIBUTE_NAME,vd=td.ROOT_ATTRIBUTE_NAME,yd=1,bd=9,xd=11,Sd={};function Cd(e,t){for(var $=Math.min(e.length,t.length),ed=0;ed<$;ed++)if(e.charAt(ed)!==t.charAt(ed))return ed;return e.length===t.length?-1:$}function wd(e){return e?e.nodeType===bd?e.documentElement:e.firstChild:null}function Td(e){return e.getAttribute&&e.getAttribute(_d)||``}function Ed(e,t,$,ed,td){var nd;if(sd.logTopLevelRenders){var rd=e._currentElement.props.child.type;nd=`React mount: `+(typeof rd==`string`?rd:rd.displayName||rd.name),console.time(nd)}var id=ud.mountComponent(e,$,null,ad(e,t),td,0);nd&&console.timeEnd(nd),e._renderedComponent._topLevelWrapper=e,Fd._mountImageIntoNode(id,t,e,ed,$)}function Dd(e,t,$,ed){var td=fd.ReactReconcileTransaction.getPooled(!$&&od.useCreateElement);td.perform(Ed,null,e,t,td,$,ed),fd.ReactReconcileTransaction.release(td)}function Od(e,t,$){for(ud.unmountComponent(e,$),t.nodeType===bd&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function kd(e){var t=wd(e);if(t){var $=id.getInstanceFromNode(t);return!!($&&$._hostParent)}}function Ad(e){return!!(e&&(e.nodeType===yd||e.nodeType===bd||e.nodeType===xd))}function jd(e){var t=wd(e),$=t&&id.getInstanceFromNode(t);return $&&!$._hostParent?$:null}function Md(e){var t=jd(e);return t?t._hostContainerInfo._topLevelWrapper:null}var Nd=1,Pd=function(){this.rootID=Nd++};Pd.prototype.isReactComponent={},Pd.prototype.render=function(){return this.props.child},Pd.isReactTopLevelWrapper=!0;var Fd={TopLevelWrapper:Pd,_instancesByReactRootID:Sd,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,$,ed,td){return Fd.scrollMonitor(ed,function(){dd.enqueueElementInternal(e,t,$),td&&dd.enqueueCallbackInternal(e,td)}),e},_renderNewRootComponent:function(e,t,ed,td){!Ad(t)&&$(`37`),rd.ensureScrollValueMonitoring();var nd=md(e,!1);fd.batchedUpdates(Dd,nd,t,ed,td);var id=nd._instance.rootID;return Sd[id]=nd,nd},renderSubtreeIntoContainer:function(e,t,ed,td){return!(e!=null&&cd.has(e))&&$(`38`),Fd._renderSubtreeIntoContainer(e,t,ed,td)},_renderSubtreeIntoContainer:function(e,t,ed,td){dd.validateCallback(td,`ReactDOM.render`),!nd.isValidElement(t)&&$(`39`,typeof t==`string`?` Instead of passing a string like 'div', pass React.createElement('div') or <div />.`:typeof t==`function`?` Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.`:t!=null&&t.props!==void 0?` This may be caused by unintentionally loading two independent copies of React.`:``);var rd=nd.createElement(Pd,{child:t}),id;if(e){var ad=cd.get(e);id=ad._processChildContext(ad._context)}else id=pd;var od=Md(ed);if(od){var sd=od._currentElement.props.child;if(gd(sd,t)){var ld=od._renderedComponent.getPublicInstance(),ud=td&&function(){td.call(ld)};return Fd._updateRootComponent(od,rd,id,ed,ud),ld}else Fd.unmountComponentAtNode(ed)}var fd=wd(ed),md=fd&&!!Td(fd),hd=kd(ed),_d=md&&!od&&!hd,vd=Fd._renderNewRootComponent(rd,ed,_d,id)._renderedComponent.getPublicInstance();return td&&td.call(vd),vd},render:function(e,t,$){return Fd._renderSubtreeIntoContainer(null,e,t,$)},unmountComponentAtNode:function(e){!Ad(e)&&$(`40`);var t=Md(e);return t?(delete Sd[t._instance.rootID],fd.batchedUpdates(Od,t,e,!1),!0):(kd(e),e.nodeType===1&&e.hasAttribute(vd),!1)},_mountImageIntoNode:function(e,t,td,nd,rd){if(!Ad(t)&&$(`41`),nd
8){var ad=wd(t);if(ld.canReuseMarkup(e,ad)){id.precacheNode(td,ad);return}else{var od=ad.getAttribute(ld.CHECKSUM_ATTR_NAME);ad.removeAttribute(ld.CHECKSUM_ATTR_NAME);var sd=ad.outerHTML;ad.setAttribute(ld.CHECKSUM_ATTR_NAME,od);var cd=e,ud=Cd(cd,sd),dd=` (client) `+cd.substring(ud-20,ud+20)+` 9 (server) `+sd.substring(ud-20,ud+20);t.nodeType===bd&&$(`42`,dd)}}if(t.nodeType===bd&&$(`43`),rd.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);ed.insertTreeBefore(t,e,null)}else hd(t,e),id.precacheNode(td,t.firstChild)}};t.exports=Fd})),require_ReactVersion=__commonJSMin(((e,t)=>{t.exports=`15.6.2`})),require_getHostComponentFromComposite=__commonJSMin(((e,t)=>{var $=require_ReactNodeTypes();function ed(e){for(var t;(t=e._renderedNodeType)===$.COMPOSITE;)e=e._renderedComponent;if(t===$.HOST)return e._renderedComponent;if(t===$.EMPTY)return null}t.exports=ed})),require_findDOMNode=__commonJSMin(((e,t)=>{var $=require_reactProdInvariant();require_ReactCurrentOwner();var ed=require_ReactDOMComponentTree(),td=require_ReactInstanceMap(),nd=require_getHostComponentFromComposite();require_invariant(),require_warning$1();function rd(e){if(e==null)return null;if(e.nodeType===1)return e;var t=td.get(e);if(t)return t=nd(t),t?ed.getNodeFromInstance(t):null;typeof e.render==`function`?$(`44`):$(`45`,Object.keys(e))}t.exports=rd})),require_renderSubtreeIntoContainer=__commonJSMin(((e,t)=>{t.exports=require_ReactMount().renderSubtreeIntoContainer})),require_ReactDOM=__commonJSMin(((e,t)=>{var $=require_ReactDOMComponentTree(),ed=require_ReactDefaultInjection(),td=require_ReactMount(),nd=require_ReactReconciler(),rd=require_ReactUpdates(),id=require_ReactVersion(),ad=require_findDOMNode(),od=require_getHostComponentFromComposite(),sd=require_renderSubtreeIntoContainer();require_warning$1(),ed.inject();var cd={findDOMNode:ad,render:td.render,unmountComponentAtNode:td.unmountComponentAtNode,version:id,unstable_batchedUpdates:rd.batchedUpdates,unstable_renderSubtreeIntoContainer:sd};typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:$.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=od(e)),e?$.getNodeFromInstance(e):null}},Mount:td,Reconciler:nd}),t.exports=cd})),require_react_dom=__commonJSMin(((e,t)=>{t.exports=require_ReactDOM()})),import_jquery=__toESM(require_jquery()),import_react$1=__toESM(require_react()),import_react_dom=__toESM(require_react_dom());function initAll(e,t){return(0,import_jquery.default)(t).each((t,$)=>{new e((0,import_jquery.default)($))})}function initReact(e,t){let $=(0,import_jquery.default)(t);if(!$.length)return;let ed=$.data(),td=Object.keys(ed).length?ed:{};import_react_dom.default.render(import_react$1.default.createElement(e,td),$[0])}function initReactAll(e,t){return(0,import_jquery.default)(t).each((t,$)=>{initReact(e,$)})}String.prototype.toUnderscore=function(){return this.replace(/([A-Z])/g,function(e){return`_`+e.toLowerCase()})},String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)};function isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}var require_jquery_placeholder=__commonJSMin(((e,t)=>{(function(e){typeof define==`function`&&define.amd?define([`jquery`],e):typeof t==`object`&&t.exports?e(require_jquery()):e(jQuery)})(function(e){var t=!1,$=Object.prototype.toString.call(window.operamini)===`[object OperaMini]`,ed=`placeholder`in document.createElement(`input`)&&!$&&!t,td=`placeholder`in document.createElement(`textarea`)&&!$&&!t,nd=e.valHooks,rd=e.propHooks,id,ad,od={};ed&&td?(ad=e.fn.placeholder=function(){return this},ad.input=!0,ad.textarea=!0):(ad=e.fn.placeholder=function($){return od=e.extend({},{customClass:`placeholder`},$),this.filter((ed?`textarea`:`:input`)+`[`+(t?`placeholder-x`:`placeholder`)+`]`).not(`.`+od.customClass).not(`:radio, :checkbox, [type=hidden]`).bind({"focus.placeholder":cd,"blur.placeholder":ld}).data(`placeholder-enabled`,!0).trigger(`blur.placeholder`)},ad.input=ed,ad.textarea=td,id={get:function(t){var $=e(t),ed=$.data(`placeholder-password`);return ed?ed[0].value:$.data(`placeholder-enabled`)&&$.hasClass(od.customClass)?``:t.value},set:function(t,$){var ed=e(t),td,nd;return $!==``&&(td=ed.data(`placeholder-textinput`),nd=ed.data(`placeholder-password`),td?(cd.call(td[0],!0,$)||(t.value=$),td[0].value=$):nd&&(cd.call(t,!0,$)||(nd[0].value=$),t.value=$)),ed.data(`placeholder-enabled`)?($===``?(t.value=$,t!=ud()&&ld.call(t)):(ed.hasClass(od.customClass)&&cd.call(t),t.value=$),ed):(t.value=$,ed)}},ed||(nd.input=id,rd.value=id),td||(nd.textarea=id,rd.value=id),e(function(){e(document).delegate(`form`,`submit.placeholder`,function(){var t=e(`.`+od.customClass,this).each(function(){cd.call(this,!0,``)});setTimeout(function(){t.each(ld)},10)})}),e(window).bind(`beforeunload.placeholder`,function(){var t=!0;try{document.activeElement.toString()===`javascript:void(0)`&&(t=!1)}catch{}t&&e(`.`+od.customClass).each(function(){this.value=``})}));function sd(t){var $={},ed=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!ed.test(t.name)&&($[t.name]=t.value)}),$}function cd($,ed){var td=this,nd=e(this);if(td.value===nd.attr(t?`placeholder-x`:`placeholder`)&&nd.hasClass(od.customClass))if(td.value=``,nd.removeClass(od.customClass),nd.data(`placeholder-password`)){
9if(nd=nd.hide().nextAll(`input[type="password"]:first`).show().attr(`id`,nd.removeAttr(`id`).data(`placeholder-id`)),$===!0)return nd[0].value=ed,ed;nd.focus()}else td==ud()&&td.select()}function ld($){var ed,td=this,nd=e(this),rd=td.id;if(!($&&$.type===`blur`&&nd.hasClass(od.customClass)))if(td.value===``){if(td.type===`password`){if(!nd.data(`placeholder-textinput`)){try{ed=nd.clone().prop({type:`text`})}catch{ed=e(`<input>`).attr(e.extend(sd(this),{type:`text`}))}ed.removeAttr(`name`).data({"placeholder-enabled":!0,"placeholder-password":nd,"placeholder-id":rd}).bind(`focus.placeholder`,cd),nd.data({"placeholder-textinput":ed,"placeholder-id":rd}).before(ed)}td.value=``,nd=nd.removeAttr(`id`).hide().prevAll(`input[type="text"]:first`).attr(`id`,nd.data(`placeholder-id`)).show()}else{var id=nd.data(`placeholder-password`);id&&(id[0].value=``,nd.attr(`id`,nd.data(`placeholder-id`)).show().nextAll(`input[type="password"]:last`).hide().removeAttr(`id`))}nd.addClass(od.customClass),nd[0].value=nd.attr(t?`placeholder-x`:`placeholder`)}else nd.removeClass(od.customClass)}function ud(){try{return document.activeElement}catch{}}})})),import_jquery_placeholder=__toESM(require_jquery_placeholder());(0,import_jquery.default)(`input, textarea`).placeholder();var windowGlobal=window.APP_GLOBAL||{},viteManifest=window.VITE_MANIFEST||{},global_default={env:windowGlobal.env,lang:windowGlobal.lang,itemLocale:windowGlobal.itemLocale,country:windowGlobal.country,unit:windowGlobal.unit,site:windowGlobal.site,logo_us:windowGlobal.logo_us,logo_multilingual:windowGlobal.logo_multilingual,nav_mode:windowGlobal.nav_mode,project:windowGlobal.project,region:windowGlobal.region,btn_outlined:windowGlobal.btn_outlined,debug:windowGlobal.debug,google_analytics:{code:windowGlobal.GACode,customVariables:[windowGlobal.regionLabel]},sentryDsn:windowGlobal.sentryDsn,maps_api_key:windowGlobal.mapsCode,product_downloads_maximum_display_items:windowGlobal.product_downloads_maximum_display_items,paths:{api:windowGlobal.paths.api},viteManifest},DEBUG_BUILD$2=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,GLOBAL_OBJ=globalThis,SDK_VERSION=`10.66.0`;function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.66.0`,t[SDK_VERSION]=t[`10.66.0`]||{}}function getGlobalSingleton(e,t,$=GLOBAL_OBJ){let ed=$.__SENTRY__=$.__SENTRY__||{},td=ed[SDK_VERSION]=ed[`10.66.0`]||{};return td[e]||(td[e]=t())}var CONSOLE_LEVELS=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],PREFIX=`Sentry Logger `,originalConsoleMethods={};function consoleSandbox(e){if(!(`console`in GLOBAL_OBJ))return e();let t=GLOBAL_OBJ.console,$={},ed=Object.keys(originalConsoleMethods);ed.forEach(e=>{let ed=originalConsoleMethods[e];$[e]=t[e],t[e]=ed});try{return e()}finally{ed.forEach(e=>{t[e]=$[e]})}}function enable(){_getLoggerSettings().enabled=!0}function disable(){_getLoggerSettings().enabled=!1}function isEnabled$1(){return _getLoggerSettings().enabled}function log$2(...e){_maybeLog(`log`,...e)}function warn$1(...e){_maybeLog(`warn`,...e)}function error(...e){_maybeLog(`error`,...e)}function _maybeLog(e,...t){DEBUG_BUILD$2&&isEnabled$1()&&consoleSandbox(()=>{GLOBAL_OBJ.console[e](`${PREFIX}[${e}]:`,...t)})}function _getLoggerSettings(){return DEBUG_BUILD$2?getGlobalSingleton(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var debug={enable,disable,isEnabled:isEnabled$1,log:log$2,warn:warn$1,error},STACKTRACE_FRAME_LIMIT=50,UNKNOWN_FUNCTION=`?`,WEBPACK_ERROR_REGEXP=/\(error: (.*)\)/,STRIP_FRAME_REGEXP=/captureMessage|captureException/;function createStackParser(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,$=0,ed=0)=>{let td=[],nd=e.split(` 10`);for(let e=$;e<nd.length;e++){let $=nd[e];$.length>1024&&($=$.slice(0,1024));let rd=WEBPACK_ERROR_REGEXP.test($)?$.replace(WEBPACK_ERROR_REGEXP,`$1`):$;if(!rd.includes(`Error: `)){for(let e of t){let t=e(rd);if(t){td.push(t);break}}if(td.length>=STACKTRACE_FRAME_LIMIT+ed)break}}return stripSentryFramesAndReverse(td.slice(ed))}}function stackParserFromStackParserOptions(e){return Array.isArray(e)?createStackParser(...e):e}function stripSentryFramesAndReverse(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(getLastStackFrame(t).function||``)&&t.pop(),t.reverse(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||``)&&(t.pop(),STRIP_FRAME_REGEXP.test(getLastStackFrame(t).function||``)&&t.pop()),t.slice(0,STACKTRACE_FRAME_LIMIT).map(e=>({...e,filename:e.filename||getLastStackFrame(t).filename,function:e.function||`?`}))}function getLastStackFrame(e){return e[e.length-1]||{}}var defaultFunctionName=`<anonymous>`;function getFunctionName(e){try{return!e||typeof e!=`function`?defaultFunctionName:e.n
10ame||defaultFunctionName}catch{return defaultFunctionName}}function getFramesFromEvent(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var handlers={},instrumented={};function addHandler(e,t){return handlers[e]=handlers[e]||[],handlers[e].push(t),()=>{let $=handlers[e];if($){let e=$.indexOf(t);e!==-1&&$.splice(e,1)}}}function maybeInstrument(e,t){if(!instrumented[e]){instrumented[e]=!0;try{t()}catch(t){DEBUG_BUILD$2&&debug.error(`Error while instrumenting ${e}`,t)}}}function triggerHandlers(e,t){let $=e&&handlers[e];if($)for(let ed of $)try{ed(t)}catch(t){DEBUG_BUILD$2&&debug.error(`Error while triggering instrumentation handler. 11Type: ${e} 12Name: ${getFunctionName(ed)} 13Error:`,t)}}var _oldOnErrorHandler=null;function addGlobalErrorInstrumentationHandler(e){let t=`error`;addHandler(t,e),maybeInstrument(t,instrumentError)}function instrumentError(){_oldOnErrorHandler=GLOBAL_OBJ.onerror,GLOBAL_OBJ.onerror=function(e,t,$,ed,td){return triggerHandlers(`error`,{column:ed,error:td,line:$,msg:e,url:t}),_oldOnErrorHandler?_oldOnErrorHandler.apply(this,arguments):!1},GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}var _oldOnUnhandledRejectionHandler=null;function addGlobalUnhandledRejectionInstrumentationHandler(e){let t=`unhandledrejection`;addHandler(t,e),maybeInstrument(t,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){_oldOnUnhandledRejectionHandler=GLOBAL_OBJ.onunhandledrejection,GLOBAL_OBJ.onunhandledrejection=function(e){return triggerHandlers(`unhandledrejection`,e),_oldOnUnhandledRejectionHandler?_oldOnUnhandledRejectionHandler.apply(this,arguments):!0},GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var objectToString$2=Object.prototype.toString;function isError(e){switch(objectToString$2.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return isInstanceOf(e,Error)}}function isBuiltin(e,t){return objectToString$2.call(e)===`[object ${t}]`}function isErrorEvent$1(e){return isBuiltin(e,`ErrorEvent`)}function isDOMError(e){return isBuiltin(e,`DOMError`)}function isDOMException(e){return isBuiltin(e,`DOMException`)}function isString$1(e){return isBuiltin(e,`String`)}function isParameterizedString(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function isPrimitive(e){return e===null||isParameterizedString(e)||typeof e!=`object`&&typeof e!=`function`}function isPlainObject$2(e){return isBuiltin(e,`Object`)}function isObjectLike$1(e){return typeof e==`object`&&!!e}function isEvent(e){return typeof Event<`u`&&isInstanceOf(e,Event)}function isRegExp$1(e){return isBuiltin(e,`RegExp`)}function isThenable(e){return!!(e?.then&&typeof e.then==`function`)}function isInstanceOf(e,t){try{return e instanceof t}catch{return!1}}function isRequest(e){return typeof Request<`u`&&isInstanceOf(e,Request)}function fill(e,t,$){if(!(t in e))return;let ed=e[t];if(typeof ed!=`function`)return;let td=$(ed);typeof td==`function`&&markFunctionWrapped(td,ed);try{e[t]=td}catch{DEBUG_BUILD$2&&debug.log(`Failed to replace method "${t}" in object`,e)}}function addNonEnumerableProperty(e,t,$){try{Object.defineProperty(e,t,{value:$,writable:!0,configurable:!0})}catch{DEBUG_BUILD$2&&debug.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function markFunctionWrapped(e,t){try{e.prototype=t.prototype=t.prototype||{},addNonEnumerableProperty(e,`__sentry_original__`,t)}catch{}}function getOriginalFunction(e){return e.__sentry_original__}function convertToPlainObject(e){if(isError(e))return{message:e.message,name:e.name,stack:e.stack,...getOwnProperties(e)};if(isEvent(e)){let{type:t,target:$,currentTarget:ed,detail:td}=e;return{type:t,target:$,currentTarget:ed,...td?{detail:td}:{},...getOwnProperties(e)}}return e}function getOwnProperties(e){return isObjectLike$1(e)?Object.fromEntries(Object.entries(e)):{}}function extractExceptionKeysForMessage(e){let t=Object.keys(convertToPlainObject(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var RESOLVED_RUNNER;function withRandomSafeContext(e){if(RESOLVED_RUNNER!==void 0)return RESOLVED_RUNNER?RESOLVED_RUNNER(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),$=GLOBAL_OBJ;return t in $&&typeof $[t]==`function`?(RESOLVED_RUNNER=$[t],RESOLVED_RUNNER(e)):(RESOLVED_RUNNER=null,e())}function safeMathRandom(){return withRandomSafeContext(()=>Math.random())}function safeDateNow(){return withRandomSafeContext(()=>Date.now())}var SENTRY_SKIP_NORMALIZATION=Symbol.for(`sentry.skipNormalization`),SENTRY_OVERRIDE_NORMALIZATION_DEPTH=Symbol.for(`sentry.overrideNormalizationDepth`);function hasSkipNormalizationHint(e){return!!e[SENTRY_SKIP_NORMALIZATION]}function getNormalizationDepthOverrideHint(e){let t=e[SENTRY_OVERRIDE_NORMALIZATION_DEPTH];return typeof t==`number`?t:void 0}init_dist$1();var stringifier;function setNormalizeStringifier(e){stringifier=e}function normalize(e,t=100,$=1/0){try{return visit(``,e,t,$)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function normalizeToSize(e,t=3,$=100*1024){let ed=normalize(e,t);return jsonSize(ed)>$?normalizeToSize(e,t-1,$):ed}
13function visit(e,t,$=1/0,ed=1/0,td=memoBuilder()){let[nd,rd]=td;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let id=stringifyValue(e,t);if(!id.startsWith(`[object `))return id;if(hasSkipNormalizationHint(t))return t;let ad=getNormalizationDepthOverrideHint(t),od=ad===void 0?$:ad;if(od===0)return id.replace(`object `,``);if(nd(t))return`[Circular ~]`;let sd=t;if(sd&&typeof sd.toJSON==`function`)try{return visit(``,sd.toJSON(),od-1,ed,td)}catch{}let cd=Array.isArray(t)?[]:{},ld=0,ud=convertToPlainObject(t);for(let e in ud){if(!Object.prototype.hasOwnProperty.call(ud,e))continue;if(ld>=ed){cd[e]=`[MaxProperties ~]`;break}let t=ud[e];cd[e]=visit(e,t,od-1,ed,td),ld++}return rd(t),cd}function stringifyValue(e,t){try{if(stringifier){let e=stringifier(t);if(e)return e}return global!==void 0&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${getFunctionName(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${getConstructorName$1(t)}]`}catch(e){return`**non-serializable** (${e})`}}function getConstructorName$1(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function utf8Length(e){return~-encodeURI(e).split(/%..|./).length}function jsonSize(e){return utf8Length(JSON.stringify(e))}function memoBuilder(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function $(t){e.delete(t)}return[t,$]}function truncate(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function safeJoin(e,t){if(!Array.isArray(e))return``;let $=[];for(let t=0;t<e.length;t++){let ed=e[t];isPrimitive(ed)?$.push(String(ed)):ed instanceof Error?$.push(ed.message?`${ed.name}: ${ed.message}`:ed.name):$.push(stringifyValue(void 0,ed))}return $.join(t)}function isMatchingPattern(e,t,$=!1){return isString$1(e)?isRegExp$1(t)?t.test(e):isString$1(t)?$?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function stringMatchesSomePattern(e,t=[],$=!1){for(let ed of t)if(isMatchingPattern(e,ed,$))return!0;return!1}function getCrypto(){let e=GLOBAL_OBJ;return e.crypto||e.msCrypto}var emptyUuid;function getRandomByte(){return safeMathRandom()*16}function uuid4(e=getCrypto()){try{if(e?.randomUUID)return withRandomSafeContext(()=>e.randomUUID()).replace(/-/g,``)}catch{}return emptyUuid||=`10000000100040008000100000000000`,emptyUuid.replace(/[018]/g,e=>(e^(getRandomByte()&15)>>e/4).toString(16))}function getFirstException(e){return e.exception?.values?.[0]}function getEventDescription(e){let{message:t,event_id:$}=e;if(t)return t;let ed=getFirstException(e);return ed?ed.type&&ed.value?`${ed.type}: ${ed.value}`:ed.type||ed.value||$||`<unknown>`:$||`<unknown>`}function addExceptionTypeValue(e,t,$){let ed=e.exception=e.exception||{},td=ed.values=ed.values||[],nd=td[0]=td[0]||{};nd.value||=t||``,nd.type||=$||`Error`}function addExceptionMechanism(e,t){let $=getFirstException(e);if(!$)return;let ed={type:`generic`,handled:!0},td=$.mechanism;if($.mechanism={...ed,...td,...t},t&&`data`in t){let e={...td?.data,...t.data};$.mechanism.data=e}}function checkOrSetAlreadyCaught(e){if(isAlreadyCaptured(e))return!0;try{addNonEnumerableProperty(e,`__sentry_captured__`,!0)}catch{}return!1}function isAlreadyCaptured(e){try{return e.__sentry_captured__}catch{}}var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return safeDateNow()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){let{performance:e}=GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return dateTimestampInSeconds;let t=e.timeOrigin;return()=>(t+withRandomSafeContext(()=>e.now()))/ONE_SECOND_IN_MS}var _cachedTimestampInSeconds;function timestampInSeconds(){return(_cachedTimestampInSeconds??=createUnixTimestampInSecondsFunc())()}function makeSession(e){let t=timestampInSeconds(),$={sid:uuid4(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>sessionToJSON($)};return e&&updateSession($,e),$}function updateSession(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:uuid4()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
13ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function closeSession(e,t){let $={};t?$={status:t}:e.status===`ok`&&($={status:`exited`}),updateSession(e,$)}function sessionToJSON(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function merge$3(e,t,$=2){if(!t||typeof t!=`object`||$<=0)return t;if(e&&Object.keys(t).length===0)return e;let ed={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(ed[e]=merge$3(ed[e],t[e],$-1));return ed}function generateTraceId(){return uuid4()}function generateSpanId(){return uuid4().substring(16)}function makeWeakRef(e){try{let t=GLOBAL_OBJ.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function derefWeakRef(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var SCOPE_SPAN_FIELD=`_sentrySpan`;function _setSpanForScope(e,t){t?addNonEnumerableProperty(e,SCOPE_SPAN_FIELD,makeWeakRef(t)):delete e[SCOPE_SPAN_FIELD]}function _getSpanForScope(e){return derefWeakRef(e[SCOPE_SPAN_FIELD])}var DEFAULT_MAX_BREADCRUMBS=100,Scope=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:generateTraceId(),sampleRand:safeMathRandom()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,_setSpanForScope(t,_getSpanForScope(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let $=typeof t==`function`?t(this):t,{tags:ed,attributes:td,extra:nd,user:rd,contexts:id,level:ad,fingerprint:od=[],propagationContext:sd,conversationId:cd}=($ instanceof e?$.getScopeData():isPlainObject$2($)?t:void 0)||{};return this._tags={...this._tags,...ed},this._attributes={...this._attributes,...td},this._extra={...this._extra,...nd},this._contexts={...this._contexts,...id},rd&&Object.keys(rd).length&&(this._user=rd),ad&&(this._level=ad),od.length&&(this._fingerprint=od),sd&&(this._propagationContext=sd),cd&&(this._conversationId=cd),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,_setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:generateTraceId(),sampleRand:safeMathRandom()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let $=typeof t==`number`?t:DEFAULT_MAX_BREADCRUMBS;if($<=0)return this;let ed={timestamp:dateTimestampInSeconds(),...e,message:e.message?truncate(e.message,2048):e.message};return this._breadcrumbs.push(ed),this._breadcrumbs.length>$&&(this._breadcrumbs=this._breadcrumbs.slice(-$),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=merge$3(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let $=t?.event_id||uuid4();if(!this._client)return DEBUG_BUILD$2&&debug.warn(`No client configured on scope - will not capture exception!`),$;let ed=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:ed,...t,event_id:$},this),$}captureMessage(e,t,$){let ed=$?.event_id||uuid4();if(!this._client)return DEBUG_BUILD$2&&debug.warn(`No client configured on scope - will not capture message!`),ed;let td=$?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:td,...$,event_id:ed},this),ed}captureEvent(e,t){let $=e.event_id||t?.event_id||uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:$},this),$):(DEBUG_BUILD$2&&debug.warn(`No client configured on scope - will not capture event!`),$)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
13h(e=>{e(this)}),!1)}};function getDefaultCurrentScope(){return getGlobalSingleton(`defaultCurrentScope`,()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton(`defaultIsolationScope`,()=>new Scope)}var isActualPromise=e=>e instanceof Promise&&!e[kChainedCopy],kChainedCopy=Symbol(`chained PromiseLike`),chainAndCopyPromiseLike=(e,t,$)=>{let ed=e.then(e=>(t(e),e),e=>{throw $(e),e});return isActualPromise(ed)&&isActualPromise(e)?ed:copyProps(e,ed)},copyProps=(e,t)=>{if(!t)return e;let $=!1;for(let ed in e){if(ed in t)continue;$=!0;let td=e[ed];typeof td==`function`?Object.defineProperty(t,ed,{value:(...t)=>td.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[ed]=td}return $&&Object.assign(t,{[kChainedCopy]:!0}),t},AsyncContextStack=class{constructor(e,t){let $;$=e||new Scope;let ed;ed=t||new Scope,this._stack=[{scope:$}],this._isolationScope=ed}withScope(e){let t=this._pushScope(),$;try{$=e(t)}catch(e){throw this._popScope(),e}return isThenable($)?chainAndCopyPromiseLike($,()=>this._popScope(),()=>this._popScope()):(this._popScope(),$)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function getAsyncContextStack(){let e=getSentryCarrier(getMainCarrier());return e.stack=e.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope$1(e){return getAsyncContextStack().withScope(e)}function withSetScope(e,t){let $=getAsyncContextStack();return $.withScope(()=>($.getStackTop().scope=e,t(e)))}function withIsolationScope(e){return getAsyncContextStack().withScope(()=>e(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope:withScope$1,withSetScope,withSetIsolationScope:(e,t)=>withIsolationScope(t),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(e){let t=getSentryCarrier(e);return t.acs?t.acs:getStackAsyncContextStrategy()}function isAttributeObject(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function attributeValueToTypedAttributeValue(e,t){let{value:$,unit:ed}=isAttributeObject(e)?e:{value:e,unit:void 0},td=getTypedAttributeValue($),nd=ed&&typeof ed==`string`?{unit:ed}:{};if(td)return{...td,...nd};if(!t||t===`skip-undefined`&&$===void 0)return;let rd=``;try{rd=JSON.stringify($)??``}catch{}return{value:rd,type:`string`,...nd}}function serializeAttributes(e,t=!1){let $={};for(let[ed,td]of Object.entries(e??{})){let e=attributeValueToTypedAttributeValue(td,t);e&&($[ed]=e)}return $}function getTypedAttributeValue(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}var _externalPropagationContextProvider;function getExternalPropagationContext(){return _externalPropagationContextProvider?.()}function getCurrentScope$1(){return getAsyncContextStrategy(getMainCarrier()).getCurrentScope()}function getIsolationScope(){return getAsyncContextStrategy(getMainCarrier()).getIsolationScope()}function getGlobalScope(){return getGlobalSingleton(`globalScope`,()=>new Scope)}function withScope(...e){let t=getAsyncContextStrategy(getMainCarrier());if(e.length===2){let[$,ed]=e;return $?t.withSetScope($,ed):t.withScope(ed)}return t.withScope(e[0])}function getClient(){return getCurrentScope$1().getClient()}function getTraceContextFromScope(e){let t=getExternalPropagationContext();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:$,parentSpanId:ed,propagationSpanId:td}=e.getPropagationContext(),nd={trace_id:$,span_id:td||generateSpanId()};return ed&&(nd.parent_span_id=ed),nd}var SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=`sentry.source`,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=`sentry.sample_rate`,SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE=`sentry.previous_trace_sample_rate`,SEMANTIC_ATTRIBUTE_SENTRY_OP=`sentry.op`,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=`sentry.origin`,SEMANTIC_ATTRIBUTE_PROFILE_ID=`sentry.profile_id`,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=`sentry.exclusive_time`,G
13EN_AI_CONVERSATION_ID_ATTRIBUTE=`gen_ai.conversation.id`,SCOPE_ON_START_SPAN_FIELD=`_sentryScope`,ISOLATION_SCOPE_ON_START_SPAN_FIELD=`_sentryIsolationScope`;function getCapturedScopesOnSpan(e){let t=e;return{scope:t[SCOPE_ON_START_SPAN_FIELD],isolationScope:derefWeakRef(t[ISOLATION_SCOPE_ON_START_SPAN_FIELD])}}var SENTRY_BAGGAGE_KEY_PREFIX=`sentry-`;function baggageHeaderToDynamicSamplingContext(e){let t=parseBaggageHeader(e);if(!t)return;let $=Object.entries(t).reduce((e,[t,$])=>{if(t.startsWith(`sentry-`)){let ed=t.slice(7);e[ed]=$}return e},{});if(Object.keys($).length>0)return $}function parseBaggageHeader(e){if(!(!e||!isString$1(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let $=baggageHeaderToObject(t);return Object.entries($).forEach(([t,$])=>{e[t]=$}),e},{}):baggageHeaderToObject(e)}function baggageHeaderToObject(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,$])=>(t&&$&&(e[t]=$),e),{})}var ORG_ID_REGEX=/^o(\d+)\./,DSN_REGEX=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function isValidProtocol(e){return e===`http`||e===`https`}function dsnToString(e,t=!1){let{host:$,path:ed,pass:td,port:nd,projectId:rd,protocol:id,publicKey:ad}=e;return`${id}://${ad}${t&&td?`:${td}`:``}@${$}${nd?`:${nd}`:``}/${ed&&`${ed}/`}${rd}`}function dsnFromString(e){let t=DSN_REGEX.exec(e);if(!t){consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[$,ed,td=``,nd=``,rd=``,id=``]=t.slice(1),ad=``,od=id,sd=od.split(`/`);if(sd.length>1&&(ad=sd.slice(0,-1).join(`/`),od=sd.pop()),od){let e=od.match(/^\d+/);e&&(od=e[0])}return dsnFromComponents({host:nd,pass:td,path:ad,projectId:od,port:rd,protocol:$,publicKey:ed})}function dsnFromComponents(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function validateDsn(e){if(!DEBUG_BUILD$2)return!0;let{port:t,projectId:$,protocol:ed}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:$.match(/^\d+$/)?isValidProtocol(ed)?t&&isNaN(parseInt(t,10))?(debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(debug.error(`Invalid Sentry Dsn: Invalid protocol ${ed}`),!1):(debug.error(`Invalid Sentry Dsn: Invalid projectId ${$}`),!1)}function extractOrgIdFromDsnHost(e){return e.match(ORG_ID_REGEX)?.[1]}function extractOrgIdFromClient(e){let t=e.getOptions(),{host:$}=e.getDsn()||{},ed;return t.orgId?ed=String(t.orgId):$&&(ed=extractOrgIdFromDsnHost($)),ed}function makeDsn(e){let t=typeof e==`string`?dsnFromString(e):dsnFromComponents(e);if(!(!t||!validateDsn(t)))return t}function parseSampleRate(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var TRACE_FLAG_SAMPLED=1,hasShownSpanDropWarning=!1;function spanToTraceContext(e){let{spanId:t,traceId:$,isRemote:ed}=e.spanContext(),td=ed?t:spanToJSON(e).parent_span_id,nd=getCapturedScopesOnSpan(e).scope;return{parent_span_id:td,span_id:ed?nd?.getPropagationContext().propagationSpanId||generateSpanId():t,trace_id:$}}function convertSpanLinksForEnvelope(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:$,...ed},attributes:td})=>({span_id:e,trace_id:t,sampled:$===1,attributes:td,...ed}))}function spanTimeInputToSeconds(e){return typeof e==`number`?ensureTimestampInSeconds(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ensureTimestampInSeconds(e.getTime()):timestampInSeconds()}function ensureTimestampInSeconds(e){return e>9999999999?e/1e3:e}function spanToJSON(e){if(spanIsSentrySpan(e))return e.getSpanJSON();let{spanId:t,traceId:$}=e.spanContext();if(spanIsOpenTelemetrySdkTraceBaseSpan(e)){let{attributes:ed,startTime:td,name:nd,endTime:rd,status:id,links:ad}=e;return{span_id:t,trace_id:$,data:ed,description:nd,parent_span_id:getOtelParentSpanId(e),start_timestamp:spanTimeInputToSeconds(td),timestamp:spanTimeInputToSeconds(rd)||void 0,status:getStatusMessage(id),op:ed[SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:ed[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:convertSpanLinksForEnvelope(ad)}}return{span_id:t,trace_id:$,start_timestamp:0,data:{}}}function getOtelParentSpanId(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function streamedSpanJsonToSerializedSpan(e){return{...e,attributes:serializeAttributes(e.attributes),links:e.links?.map(e=>({...e,attributes:serializeAttributes(e.attributes)}))}}function spanIsOpenTelemetrySdkTraceBaseSpan(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function spanIsSentrySpan(e){return typeof e.getSpanJSON==`function`}function spanIsSampled(e){let{traceFlags:t}=e.spanContext();return t===1}function getStatusMessage(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var ROOT_SPAN_FIELD=`_sentryRootSpan`,getRootSpan=INTERNAL_getSegmentSpan;function INTERNAL_getSegmentSpan(e){return e[ROOT_SPAN_FIELD]||e}function showSpanDropWarning(){hasShownSpanDropWarning||=(consoleSandbox(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function hasSpansEnabled(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||getClient()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function logIgnoredSpan(e){debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function shouldIgnoreSpan(e,t){if(!t?.length)return!1;for(let $ of t){if(isStringOrRegExp($)){if(e.description&&isMatchingPattern(e.description,$))return DEBUG_BUILD$2&&logIgnoredSpan(e),!0;continue}let t=!!$.attributes&&Object.keys($.attributes).length>0;if(!$.name&&!$.op&&!t)continue;let ed=$.name?e.description&&isMatchingPattern(e.description,$.name):!0,td=$.op?e.op&&isMatchingPattern(e.op,$.op):!0,nd=$.attributes?Object.entries($.attributes).every(([t,$])=>_matchesAttributeValue(e.attributes?.[t],$)):!0;if(ed&&td&&nd)return DEBUG_BUILD$2&&logIgnoredSpan(e),!0}return!1}function _matchesAttributeValue(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?isMatchingPattern(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,$)=>e===t[$]):e===t}function reparentChildSpans(e,t){let $=t.parent_span_id,ed=t.span_id;if($)for(let t of e)t.parent_span_id===ed&&(t.parent_span_id=$)}function isStringOrRegExp(e){return typeof e==`string`||e instanceof RegExp}var NON_RECORDING_SPAN_FIELD=Symbol.for(`sentry.nonRecordingSpan`);function spanIsNonRecordingSpan(e){return!!e&&e[NON_RECORDING_SPAN_FIELD]===!0}var e$1=`ai.citations`,i$1=`ai.completion_tokens.used`,t$1=`ai.documents`,n$1=`ai.finish_reason`,r$1=`ai.frequency_penalty`,a$1=`ai.function_call`,s=`ai.generation_id`,o$1=`ai.input_messages`,l=`ai.is_search_required`,p$1=`ai.metadata`,c$1=`ai.model_id`,u=`ai.model.provider`,b=`ai.pipeline.name`,g=`ai.preamble`,d=`ai.presence_penalty`,m=`ai.prompt_tokens.used`,y=`ai.raw_prompting`,_=`ai.responses`,h$1=`ai.response_format`,v=`ai.search_queries`,f=`ai.search_results`,S=`ai.seed`,E=`ai.streaming`,T=`ai.tags`,I$1=`ai.temperature`,O=`ai.texts`,k=`ai.tools`,A=`ai.tool_calls`,x=`ai.top_k`,w=`ai.top_p`,R$1=`ai.total_cost`,N=`ai.total_tokens.used`,C=`ai.warnings`,P$1=`angular.version`,D=`app.app_build`,L$1=`app.app_identifier`,U=`app.app_name`,M=`app.app_start_time`,q$1=`app.app_version`,G$1=`app.build`,Y$1=`app.identifier`,V$1=`app.in_foreground`,W=`app.name`,F$1=`app_start_cold`,B$1=`app.start_time`,H=`app_start_type`,z$1=`app_start_warm`,K$1=`app.version`,j=`app.vitals.frames.delay.value`,Q$1=`app.vitals.frames.frozen.count`,X$1=`app.vitals.frames.slow.count`,J$1=`a
13pp.vitals.frames.total.count`,Z$1=`app.vitals.start.cold.value`,$$23=`app.vitals.start.prewarmed`,ee=`app.vitals.start.reason`,ie$1=`app.vitals.start.screen`,te=`app.vitals.start.type`,ne=`app.vitals.start.warm.value`,re$1=`app.vitals.ttfd.value`,ae$1=`app.vitals.ttid.value`,se$1=`art.gc.blocking_count`,oe$1=`art.gc.blocking_time`,le$1=`art.gc.pre_oome_count`,pe$1=`art.gc.total_count`,ce$1=`art.gc.total_time`,ue$1=`art.gc.waiting_time`,be$1=`art.memory.free`,ge$1=`art.memory.free_until_gc`,de$1=`art.memory.free_until_oome`,me$1=`art.memory.max`,ye$1=`art.memory.total`,_e$1=`aws.cloudwatch.logs.log_group`,he$1=`aws.cloudwatch.logs.log_stream`,ve$1=`aws.cloudwatch.logs.url`,fe$1=`aws.dynamodb.attribute_definitions`,Se$1=`aws.dynamodb.consistent_read`,Ee$1=`aws.dynamodb.consumed_capacity`,Te$1=`aws.dynamodb.count`,Ie$1=`aws.dynamodb.exclusive_start_table`,Oe$1=`aws.dynamodb.global_secondary_indexes`,ke$1=`aws.dynamodb.global_secondary_index_updates`,Ae$1=`aws.dynamodb.index_name`,xe$1=`aws.dynamodb.item_collection_metrics`,we$1=`aws.dynamodb.limit`,Re$1=`aws.dynamodb.local_secondary_indexes`,Ne$1=`aws.dynamodb.projection`,Ce$1=`aws.dynamodb.provisioned_read_capacity`,Pe$1=`aws.dynamodb.provisioned_write_capacity`,De$1=`aws.dynamodb.scanned_count`,Le$1=`aws.dynamodb.scan_forward`,Ue$1=`aws.dynamodb.segment`,Me$1=`aws.dynamodb.select`,qe$1=`aws.dynamodb.table_count`,Ge$1=`aws.dynamodb.table_names`,Ye$1=`aws.dynamodb.total_segments`,Ve$1=`aws.extended_request_id`,We$1=`aws.kinesis.stream_name`,Fe$1=`aws.kinesis.stream.name`,Be$1=`aws.lambda.aws_request_id`,He$1=`aws.lambda.execution_duration_in_millis`,ze$1=`aws.lambda.function_name`,Ke$1=`aws.lambda.function_version`,je$1=`aws.lambda.invoked_arn`,Qe$1=`aws.lambda.invoked_function_arn`,Xe$1=`aws.lambda.remaining_time_in_millis`,Je$1=`aws.log.group.names`,Ze$1=`aws.log.stream.names`,$e$1=`aws.request.extended_id`,ei$1=`aws.request_id`,ii$1=`aws.request.id`,ti$1=`aws.s3.bucket`,ni$1=`aws.secretsmanager.secret.arn`,ri$1=`aws.sns.topic.arn`,ai$1=`aws.step_functions.activity.arn`,si$1=`aws.step_functions.state_machine.arn`,oi$1=`blocked_main_thread`,li$1=`browser.name`,pi$1=`browser.performance.navigation.activation_start`,ci$1=`browser.performance.time_origin`,ui$1=`browser.report.type`,bi$1=`browser.script.invoker`,gi$1=`browser.script.invoker_type`,di$1=`browser.script.source_char_position`,mi$1=`browser.version`,yi$1=`browser.web_vital.cls.report_event`,_i$1=`browser.web_vital.cls.source.<key>`,hi$1=`browser.web_vital.cls.source`,vi$1=`browser.web_vital.cls.value`,fi$1=`browser.web_vital.fcp.value`,Si$1=`browser.web_vital.fp.value`,Ei$1=`browser.web_vital.inp.value`,Ti$1=`browser.web_vital.lcp.element`,Ii=`browser.web_vital.lcp.id`,Oi$1=`browser.web_vital.lcp.load_time`,ki$1=`browser.web_vital.lcp.render_time`,Ai$1=`browser.web_vital.lcp.report_event`,xi$1=`browser.web_vital.lcp.size`,wi$1=`browser.web_vital.lcp.url`,Ri=`browser.web_vital.lcp.value`,Ni=`browser.web_vital.ttfb.request_time`,Ci$1=`browser.web_vital.ttfb.value`,Pi=`cache.hit`,Di$1=`cache.item_size`,Li=`cache.key`,Ui=`cache.operation`,Mi=`cache.ttl`,qi=`cache.write`,Gi=`channel`,Yi=`client.address`,Vi=`client.port`,Wi=`cloudflare.d1.duration`,Fi=`cloudflare.d1.query_type`,Bi=`cloudflare.d1.rows_read`,Hi=`cloudflare.d1.rows_written`,zi=`cloudflare.durable_object.query.bindings`,Ki=`cloudflare.durable_object.response.rows_read`,ji$1=`cloudflare.durable_object.response.rows_written`,Qi=`cloudflare.r2.bucket`,Xi=`cloudflare.r2.operation`,Ji=`cloudflare.r2.request.delimiter`,Zi$1=`cloudflare.r2.request.key`,$i=`cloudflare.r2.request.part_number`,et$1=`cloudflare.r2.request.prefix`,it$1=`cloudflare.workflow.attempt`,tt$2=`cloudflare.workflow.retries.backoff`,nt$1=`cloudflare.workflow.retries.delay`,rt$1=`cloudflare.workflow.retries.limit`,at$1=`cloudflare.workflow.timeout`,st$1=`cloud.account.id`,ot$1=`cloud.availability_zone`,lt$1=`cloud.platform`,pt$1=`cloud.provider`,ct$1=`cloud.region`,ut$1=`cloud.resource_id`,bt$1=`cls`,gt$1=`cls.source.<key>`,dt$1=`cls.source`,mt$1=`code.filepath`,yt$1=`code.file.path`,_t$1=`code.function`,ht$1=`code.function.name`,vt$1=`code.lineno`,ft$1=`code.line.number`,St$1=`code.namespace`,Et$1=`connectionType`,Tt$1=`connection.rtt`,It$1=`culture.calendar`,Ot$1=`culture.display_name`,kt$1=`culture.is_24_hour_format`,At$1=`culture.locale`,xt$1=`culture.timezone`,wt$1=`db.collection.name`,Rt$1=`db.driver.name`,Nt$1=`db.name`,Ct$1=`db.namespace`,Pt$1=`db.o
13peration`,Dt$1=`db.operation.batch.size`,Lt$1=`db.operation.name`,Ut$1=`db.query.parameter.<key>`,Mt$1=`db.query.parameter`,qt$1=`db.query.summary`,Gt$1=`db.query.text`,Yt$1=`db.redis.connection`,Vt$1=`db.redis.key`,Wt$1=`db.redis.parameters`,Ft$1=`db.response.status_code`,Bt$1=`db.sql.bindings`,Ht$1=`db.statement`,zt$1=`db.stored_procedure.name`,Kt$1=`db.system`,jt$1=`db.system.name`,Qt$1=`db.user`,Xt$1=`deviceMemory`,Jt$1=`device.archs`,Zt$1=`device.battery_level`,$t$1=`device.battery_temperature`,en$1=`device.boot_time`,tn$1=`device.brand`,nn$1=`device.charging`,rn$1=`device.chipset`,an$1=`device.class`,sn$1=`device.connection_type`,on$2=`device.cpu_description`,ln$1=`device.external_free_storage`,pn$1=`device.external_storage_size`,cn$1=`device.family`,un$1=`device.free_memory`,bn$1=`device.free_storage`,gn$1=`device.id`,dn$1=`device.locale`,mn$1=`device.low_memory`,yn$1=`device.low_power_mode`,_n$1=`device.manufacturer`,hn$1=`device.memory.estimated_capacity`,vn$1=`device.memory_size`,fn$1=`device.model`,Sn$1=`device.model_id`,En$1=`device.name`,Tn$1=`device.online`,In$1=`device.orientation`,On$1=`device.processor_count`,kn$1=`device.processor_frequency`,An$1=`device.screen_density`,xn$1=`device.screen_dpi`,wn$1=`device.screen_height_pixels`,Rn$1=`device.screen_width_pixels`,Nn$1=`device.simulator`,Cn$1=`device.storage_size`,Pn$1=`device.thermal_state`,Dn$1=`device.timezone`,Ln=`device.usable_memory`,Un$1=`dist`,Mn$1=`effectiveConnectionType`,qn$1=`environment`,Gn$1=`error.type`,Yn$1=`event.id`,Vn$1=`event.name`,Wn$1=`exception.escaped`,Fn$2=`exception.message`,Bn$1=`exception.stacktrace`,Hn$1=`exception.type`,zn$1=`faas.coldstart`,Kn$1=`faas.cron`,jn$1=`faas.duration_in_ms`,Qn$1=`faas.entry_point`,Xn$1=`faas.execution`,Jn$1=`faas.id`,Zn$1=`faas.identity`,$n$1=`faas.invocation_id`,er$1=`faas.invoked_name`,ir$1=`faas.invoked_provider`,tr$1=`faas.invoked_region`,nr$1=`faas.name`,rr$1=`faas.time`,ar$1=`faas.trigger`,sr$1=`faas.version`,or$1=`fcp`,lr$1=`flag.evaluation.<key>`,pr$1=`flag.evaluation`,cr$1=`fp`,ur$1=`frames.delay`,br$1=`frames.frozen`,gr$1=`frames_frozen_rate`,dr$1=`frames.slow`,mr$1=`frames_slow_rate`,yr$1=`frames.total`,_r$1=`fs_error`,hr$1=`gcp.function.context.event_id`,vr$1=`gcp.function.context.event_type`,fr$1=`gcp.function.context.id`,Sr$1=`gcp.function.context.resource`,Er$1=`gcp.function.context.source`,Tr$1=`gcp.function.context.specversion`,Ir$1=`gcp.function.context.time`,Or$1=`gcp.function.context.timestamp`,kr$1=`gcp.function.context.type`,Ar$1=`gcp.project.id`,xr$1=`gen_ai.agent.name`,wr$1=`gen_ai.context.utilization`,Rr$1=`gen_ai.context.window_size`,Nr$1=`gen_ai.conversation.id`,Cr$1=`gen_ai.cost.cache_creation.input_tokens`,Pr$1=`gen_ai.cost.cache_read.input_tokens`,Dr$1=`gen_ai.cost.input_tokens`,Lr$1=`gen_ai.cost.output_tokens`,Ur$1=`gen_ai.cost.reasoning.output_tokens`,Mr$1=`gen_ai.cost.total_tokens`,qr$1=`gen_ai.embeddings.input`,Gr$1=`gen_ai.function_id`,Yr$1=`gen_ai.input.messages`,Vr$1=`gen_ai.operation.name`,Wr$1=`gen_ai.operation.type`,Fr$1=`gen_ai.output.messages`,Br$1=`gen_ai.pipeline.name`,Hr$1=`gen_ai.prompt`,zr$1=`gen_ai.prompt.name`,Kr$1=`gen_ai.provider.name`,jr$1=`gen_ai.request.available_tools`,Qr$1=`gen_ai.request.frequency_penalty`,Xr$1=`gen_ai.request.max_tokens`,Jr$1=`gen_ai.request.messages`,Zr$1=`gen_ai.request.model`,$r$1=`gen_ai.request.presence_penalty`,ea=`gen_ai.request.reasoning_effort`,ia=`gen_ai.request.seed`,ta=`gen_ai.request.stop_sequences`,na=`gen_ai.request.temperature`,ra=`gen_ai.request.top_k`,aa$1=`gen_ai.request.top_p`,sa$1=`gen_ai.response.finish_reasons`,oa=`gen_ai.response.id`,la$1=`gen_ai.response.model`,pa$1=`gen_ai.response.streaming`,ca$1=`gen_ai.response.text`,ua$1=`gen_ai.response.time_to_first_chunk`,ba$1=`gen_ai.response.time_to_first_token`,ga$2=`gen_ai.response.tokens_per_second`,da$1=`gen_ai.response.tool_calls`,ma$1=`gen_ai.system`,ya$1=`gen_ai.system_instructions`,_a$1=`gen_ai.system.message`,ha$1=`gen_ai.tool.call.arguments`,va$1=`gen_ai.tool.call.result`,fa$1=`gen_ai.tool.definitions`,Sa$1=`gen_ai.tool.description`,Ea$1=`gen_ai.tool.input`,Ta$1=`gen_ai.tool.message`,Ia$1=`gen_ai.tool.name`,Oa$1=`gen_ai.tool.output`,ka$1=`gen_ai.tool.type`,Aa$1=`gen_ai.usage.cache_creation.input_tokens`,xa$1=`gen_ai.usage.cache_read.input_tokens`,wa$1=`gen_ai.usage.completion_tokens`,Ra$1=`gen_ai.usage.input_tokens`,Na$1=`gen_ai.usage.input_tokens.cached`,Ca$1=`gen_ai.usage.input_tokens.cache_write`,Pa$1=`gen_ai.usage.output_tokens`,Da$1=`gen_ai.usage.output_tokens.reasoning`,La$1=`gen_ai.usage.prompt_tokens`,Ua$1=`gen_ai.usage.reasoning.output_tokens`,Ma$1=`gen_ai.usage.total_tokens`,qa$1=`graphql.document`,Ga$1=`graphql.operation.name`,Ya$1=`graphql.operation.type`,Va$1=`hardwareConcurrency`,Wa$1=`http.client_ip`,Fa$1=`http.decoded_response_content_length`,Ba$1=`http.flavor`,Ha$1=`http.fragment`,za$1=`http.host`,Ka$1=`http.method`,ja$1=`http.query`,Qa$1=`http.request.body.data`,Xa$1=`http.request.connection_end`,Ja$1=`http.request.connect_start`,Za$1=`http.request.domain_lookup_end`,$a$1=`http.request.domain_lookup_start`,es$1=`http.request.fetch_start`,is$1=`http.request.header.<key>`,ts$1=`http.request.header`,ns$1=`http.request.method`,rs$1=`http.request_method`,as$1=`http.request.redirect_end`,ss$1=`http.request.redirect_start`,os$1=`http.request.request_start`,ls$1=`http.request.resend_count`,ps$1=`http.request.response_end`,cs$1=`http.request.response_start`,us$1=`http.request.same_origin`,bs=`http.request.secure_connection_start`,gs$1=`http.request.time_to_first_byte`,ds$1=`http.request.worker_start`,ms$1=`http.response.body.size`,ys$1=`http.response_content_length`,_s$1=`http.response.header.content-length`,hs$1=`http.response.header.<key>`,vs$1=`http.response.header`,fs$1=`http.response.size`,Ss=`http.response.status_code`,Es=`http.response_transfer_size`,Ts=`http.route`,Is=`http.scheme`,Os=`http.server_name`,ks=`http.server.request.time_in_queue`,As=`http.status_code`,xs=`http.target`,ws=`http.url`,Rs=`http.user_agent`,Ns=`id`,Cs=`inp`,Ps=`jsonrpc.protocol.version`,Ds=`jsonrpc.request.id`,Ls=`jvm.gc.action`,Us=`jvm.gc.name`,Ms=`jvm.memory.pool.name`,qs=`jvm.memory.type`,Gs=`jvm.thread.daemon`,Ys=`jvm.thread.state`,Vs=`koa.name`,Ws=`koa.type`,Fs=`lcp`,Bs=`lcp.element`,Hs=`lcp.id`,zs=`lcp.loadTime`,Ks=`lcp.renderTime`,js=`lcp.size`,Qs=`lcp.url`,Xs=`logger.name`,Js=`mcp.cancelled.reason`,Zs=`mcp.cancelled.request_id`,$
13s=`mcp.client.name`,eo$1=`mcp.client.title`,io$1=`mcp.client.version`,to$1=`mcp.lifecycle.phase`,no$1=`mcp.logging.data_type`,ro$1=`mcp.logging.level`,ao$1=`mcp.logging.logger`,so$1=`mcp.logging.message`,oo$1=`mcp.method.name`,lo$1=`mcp.progress.current`,po$1=`mcp.progress.message`,co$1=`mcp.progress.percentage`,uo$1=`mcp.progress.token`,bo$1=`mcp.progress.total`,go$1=`mcp.prompt.name`,mo$1=`mcp.prompt.result.description`,yo$1=`mcp.prompt.result.message_content`,_o$1=`mcp.prompt.result.message_count`,ho$1=`mcp.prompt.result.message_role`,vo$1=`mcp.protocol.ready`,fo$1=`mcp.protocol.version`,So$1=`mcp.request.argument.<key>`,Eo$1=`mcp.request.argument`,To$1=`mcp.request.argument.name`,Io$1=`mcp.request.argument.uri`,Oo$1=`mcp.request.id`,ko$1=`mcp.resource.protocol`,Ao$1=`mcp.resource.uri`,xo$1=`mcp.server.name`,wo$1=`mcp.server.title`,Ro$1=`mcp.server.version`,No$1=`mcp.session.id`,Co=`mcp.tool.name`,Po$1=`mcp.tool.result.content`,Do$1=`mcp.tool.result.content_count`,Lo$1=`mcp.tool.result.is_error`,Uo$1=`mcp.transport`,Mo$1=`mdc.<key>`,qo$1=`mdc`,Go$1=`messaging.batch.message_count`,Yo$1=`messaging.destination`,Vo$1=`messaging.destination.connection`,Wo$1=`messaging.destination.name`,Fo$1=`messaging.message.body.size`,Bo$1=`messaging.message.conversation_id`,Ho$1=`messaging.message.envelope.size`,zo$1=`messaging.message.id`,Ko$1=`messaging.message.receive.latency`,jo$1=`messaging.message.retry.count`,Qo$1=`messaging.operation.name`,Xo$1=`messaging.operation.type`,Jo$1=`messaging.rabbitmq.destination.routing_key`,Zo$1=`messaging.system`,$o$1=`method`,el=`middleware.name`,il=`navigation.origin`,tl=`navigation.route.id`,nl=`navigation.type`,rl=`nel.elapsed_time`,al=`nel.phase`,sl=`nel.referrer`,ol=`nel.sampling_function`,ll=`nel.type`,pl=`network.connection.effective_type`,cl=`network.connection.rtt`,ul=`network.connection.type`,bl=`network.local.address`,gl=`network.local.port`,dl=`network.peer.address`,ml=`network.peer.port`,yl=`network.protocol.name`,_l=`network.protocol.version`,hl=`network.transport`,vl=`network.type`,fl=`net.host.ip`,Sl=`net.host.name`,El=`net.host.port`,Tl=`net.peer.ip`,Il=`net.peer.name`,Ol=`net.peer.port`,kl=`net.protocol.name`,Al=`net.protocol.version`,xl=`net.sock.family`,wl=`net.sock.host.addr`,Rl=`net.sock.host.port`,Nl=`net.sock.peer.addr`,Cl=`net.sock.peer.name`,Pl=`net.sock.peer.port`,Dl=`net.transport`,Ll=`os.build`,Ul=`os.build_id`,Ml=`os.description`,ql=`os.kernel_version`,Gl=`os.name`,Yl=`os.raw_description`,Vl=`os.rooted`,Wl=`os.theme`,Fl=`os.type`,Bl=`os.version`,Hl=`otel.kind`,zl=`otel.scope.name`,Kl=`otel.scope.version`,jl=`otel.status_code`,Ql=`otel.status_description`,Xl=`params.<key>`,Jl=`params`,Zl=`performance.activationStart`,$l=`performance.timeOrigin`,ep=`previous_route`,ip=`process.command_args`,tp=`process.executable.name`,np=`process.pid`,rp=`process.runtime.description`,ap=`process.runtime.engine.name`,sp=`process.runtime.engine.version`,op=`process.runtime.name`,lp=`process.runtime.version`,pp=`query.<key>`,cp=`query`,up=`react.version`,bp=`release`,gp=`remix.action_form_data.<key>`,dp=`remix.action_form_data`,mp=`replay_id`,yp=`resource.deployment.environment`,_p=`resource.deployment.environment.name`,hp=`resource.render_blocking_status`,vp=`route`,fp=`rpc.grpc.status_code`,Sp=`rpc.method`,Ep=`rpc.response.status_code`,Tp=`rpc.service`,Ip=`rpc.system`,Op=`rpc.system.name`,kp=`runtime.build`,Ap=`runtime.name`,xp=`runtime.raw_description`,wp=`runtime.version`,Rp=`score.<key>`,Np=`score`,Cp=`score.ratio.<key>`,Pp=`score.ratio`,Dp=`score.total`,Lp=`score.weight.<key>`,Up=`score.weight`,Mp=`sentry.action`,qp=`sentry.browser.name`,Gp=`sentry.browser.version`,Yp=`sentry.cancellation_reason`,Vp=`sentry.category`,Wp=`sentry.client_sample_rate`,Fp=`sentry.description`,Bp=`sentry.dist`,Hp=`sentry.domain`,zp=`sentry.dsc.environment`,Kp=`sentry.dsc.project_id`,jp=`sentry.dsc.public_key`,Qp=`sentry.dsc.release`,Xp=`sentry.dsc.sampled`,Jp=`sentry.dsc.sample_rate`,Zp=`sentry.dsc.trace_id`,$p=`sentry.dsc.transaction`,ec=`sentry.environment`,ic=`sentry.exclusive_time`,tc=`sentry.graphql.operation`,nc=`sentry.group`,rc=`sentry.http.prefetch`,ac=`sentry.idle_span_finish_reason`,sc=`sentry.is_remote`,oc=`sentry.kind`,lc=`sentry.main_thread`,pc=`sentry.message.parameter.<key>`,cc=`sentry.message.template`,uc=`sentry.metric.source`,bc=`sentry.mobile`,gc=`sentry.module.<key>`,dc=`sentry.module`,mc=`sentry.nextjs.ssr.function.route`,yc=`sentry.nextjs.ssr.function.type`,_c=`sentry.normalized_db_query`,hc=`sentry.normalized_db_query.hash`,vc=`sentry.normalized_description`,fc=`sentry.observed_timestamp_nanos`,Sc=`sentry.op`,Ec=`sentry.origin`,Tc=`sentry.platform`,Ic=`sentry.profiler_id`,Oc=`sentry.profile_id`,kc=`sentry.release`,Ac=`sentry.replay_id`,xc=`sentry.replay_is_buffering`,wc=`sentry.report_event`,Rc=`sentry.sdk.integrations`,Nc=`sentry.sdk.name`,Cc=`sentry.sdk.version`,Pc=`sentry.segment.id`,Dc=`sentry.segment_id`,Lc=`sentry.segment.name`,Uc=`sentry.server_sample_rate`,Mc=`sentry.source`,qc=`sentry.span.source`,Gc=`sentry.status`,Yc=`sentry.status_code`,Vc=`sentry.status.message`,Wc=`sentry.sveltekit.navigation.from`,Fc=`sentry.sveltekit.navigation.to`,Bc=`sentry.sveltekit.navigation.type`,Hc=`sentry.thread.id`,zc=`sentry.timestamp.sequence`,Kc=`sentry.trace_lifecycle`,jc=`sentry.trace.parent_span_id`,Qc=`sentry.trace.status`,Xc=`sentry.transaction`,Jc=`sentry.user.email`,Zc=`sentry.user.geo.city`,$c=`sentry.user.geo.country_code`,eu=`sentry.user.geo.region`,iu=`sentry.user.geo.subdivision`,tu=`sentry.user.id`,nu=`sentry.user.ip`,ru=`sentry.user.username`,au=`server.address`,su=`server_name`,ou=`server.port`,lu=`service.name`,pu=`service.version`,cu=`session.id`,uu=`stall_percentage`,bu=`stall_total_time`,gu=`state.type`,du=`thread.id`,mu=`thread.name`,yu=`timber.tag`,_u=`time_to_full_display`,hu=`time_to_initial_display`,vu=`transaction`,fu=`trpc.procedure_path`,Su=`trpc.procedure_type`,Eu=`ttfb`,Tu=`ttfb.requestTime`,Iu=`type`,Ou=`ui.c
13omponent_name`,ku=`ui.contributes_to_ttfd`,Au=`ui.contributes_to_ttid`,xu=`ui.element.height`,wu=`ui.element.id`,Ru=`ui.element.identifier`,Nu=`ui.element.load_time`,Cu=`ui.element.paint_type`,Pu=`ui.element.render_time`,Du=`ui.element.type`,Lu=`ui.element.url`,Uu=`ui.element.width`,Mu=`url`,qu=`url.domain`,Gu=`url.fragment`,Yu=`url.full`,Vu=`url.path`,Wu=`url.path.parameter.<key>`,Fu=`url.path.parameter`,Bu=`url.port`,Hu=`url.query`,zu=`url.same_origin`,Ku=`url.scheme`,ju=`url.template`,Qu=`user_agent.original`,Xu=`user.email`,Ju=`user.full_name`,Zu=`user.geo.city`,$u=`user.geo.country_code`,eb=`user.geo.region`,ib=`user.geo.subdivision`,tb=`user.hash`,nb=`user.id`,rb=`user.ip_address`,ab=`user.name`,sb=`user.roles`,ob=`vercel.branch`,lb=`vercel.build_id`,pb=`vercel.deployment_id`,cb=`vercel.destination`,ub=`vercel.edge_type`,bb=`vercel.entrypoint`,gb=`vercel.execution_region`,db=`vercel.id`,mb=`vercel.ja3_digest`,yb=`vercel.ja4_digest`,_b=`vercel.log_type`,hb=`vercel.path`,vb=`vercel.project_id`,fb=`vercel.project_name`,Sb=`vercel.proxy.cache_id`,Eb=`vercel.proxy.client_ip`,Tb=`vercel.proxy.host`,Ib=`vercel.proxy.lambda_region`,Ob=`vercel.proxy.method`,kb=`vercel.proxy.path`,Ab=`vercel.proxy.path_type`,xb=`vercel.proxy.path_type_variant`,wb=`vercel.proxy.referer`,Rb=`vercel.proxy.region`,Nb=`vercel.proxy.response_byte_size`,Cb=`vercel.proxy.scheme`,Pb=`vercel.proxy.status_code`,Db=`vercel.proxy.timestamp`,Lb=`vercel.proxy.user_agent`,Ub=`vercel.proxy.vercel_cache`,Mb=`vercel.proxy.vercel_id`,qb=`vercel.proxy.waf_action`,Gb=`vercel.proxy.waf_rule_id`,Yb=`vercel.request_id`,Vb=`vercel.source`,Wb=`vercel.status_code`,Fb={"ai.citations":`string[]`,"ai.completion_tokens.used":`integer`,"ai.documents":`string[]`,"ai.finish_reason":`string`,"ai.frequency_penalty":`double`,"ai.function_call":`string`,"ai.generation_id":`string`,"ai.input_messages":`string`,"ai.is_search_required":`boolean`,"ai.metadata":`string`,"ai.model_id":`string`,"ai.model.provider":`string`,"ai.pipeline.name":`string`,"ai.preamble":`string`,"ai.presence_penalty":`double`,"ai.prompt_tokens.used":`integer`,"ai.raw_prompting":`boolean`,"ai.responses":`string[]`,"ai.response_format":`string`,"ai.search_queries":`string[]`,"ai.search_results":`string[]`,"ai.seed":`string`,"ai.streaming":`boolean`,"ai.tags":`string`,"ai.temperature":`double`,"ai.texts":`string[]`,"ai.tools":`string[]`,"ai.tool_calls":`string[]`,"ai.top_k":`integer`,"ai.top_p":`double`,"ai.total_cost":`double`,"ai.total_tokens.used":`integer`,"ai.warnings":`string[]`,"angular.version":`string`,"app.app_build":`string`,"app.app_identifier":`string`,"app.app_name":`string`,"app.app_start_time":`string`,"app.app_version":`string`,"app.build":`string`,"app.identifier":`string`,"app.in_foreground":`boolean`,"app.name":`string`,app_start_cold:`double`,"app.start_time":`string`,app_start_type:`string`,app_start_warm:`double`,"app.version":`string`,"app.vitals.frames.delay.value":`integer`,"app.vitals.frames.frozen.count":`integer`,"app.vitals.frames.slow.count":`integer`,"app.vitals.frames.total.count":`integer`,"app.vitals.start.cold.value":`double`,"app.vitals.start.prewarmed":`boolean`,"app.vitals.start.reason":`string`,"app.vitals.start.screen":`string`,"app.vitals.start.type":`string`,"app.vitals.start.warm.value":`double`,"app.vitals.ttfd.value":`double`,"app.vitals.ttid.value":`double`,"art.gc.blocking_count":`integer`,"art.gc.blocking_time":`double`,"art.gc.pre_oome_count":`integer`,"art.gc.total_count":`integer`,"art.gc.total_time":`double`,"art.gc.waiting_time":`double`,"art.memory.free":`integer`,"art.memory.free_until_gc":`integer`,"art.memory.free_until_oome":`integer`,"art.memory.max":`integer`,"art.memory.total":`integer`,"aws.cloudwatch.logs.log_group":`string`,"aws.cloudwatch.logs.log_stream":`string`,"aws.cloudwatch.logs.url":`string`,"aws.dynamodb.attribute_definitions":`string[]`,"aws.dynamodb.consistent_read":`boolean`,"aws.dynamodb.consumed_capacity":`string[]`,"aws.dynamodb.count":`integer`,"aws.dynamodb.exclusive_start_table":`string`,"aws.dynamodb.global_secondary_indexes":`string[]`,"aws.dynamodb.global_secondary_index_updates":`string[]`,"aws.dynamodb.index_name":`string`,"aws.dynamodb.item_collection_metrics":`string`,"aws.dynamodb.limit":`integer`,"aws.dynamodb.local_secondary_indexes":`string[]`,"aws.dynamodb.projection":`string`,"aws.dynamodb.provisioned_read_capacity":`double`,"aws.dynamodb.provisioned_write_capacity":`double`,"aws.dynamodb.scanned_count":`integer`,"aws.dynamodb.scan_forward":`boolean`,"aws.dynamodb.segment":`integer`,"aws.dynamodb.select":`string`,"aws.dynamodb.table_count":`integer`,"aws.dynamodb.table_names":`string[]`,"aws.dynamodb.total_segments":`integer`,"aws.extended_request_id":`string`,"aws.kinesis.stream_name":`string`,"aws.kinesis.stream.name":`string`,"aws.lambda.aws_request_id":`string`,"aws.lambda.execution_duration_in_millis":`double`,"aws.lambda.function_name":`string`,"aws.lambda.function_version":`string`,"aws.lambda.invoked_arn":`string`,"aws.lambda.invoked_function_arn":`string`,"aws.lambda.remaining_time_in_millis":`double`,"aws.log.group.names":`string[]`,"aws.log.stream.names":`string[]`,"aws.request.extended_id":`string`,"aws.request_id":`string`,"aws.request.id":`string`,"aws.s3.bucket":`string`,"aws.secretsmanager.secret.arn":`string`,"aws.sns.topic.arn":`string`,"aws.step_functions.activity.arn":`string`,"aws.step_functions.state_machine.arn":`string`,blocked_main_thread:`boolean`,"browser.name":`string`,"browser.performance.navigation.activation_start":`double`,"browser.performance.time_origin":`double`,"browser.report.type":`string`,"browser.script.invoker":`string`,"browser.script.invoker_type":`string`,"browser.script.source_char_position":`integer`,"browser.version":`string`,"browser.web_vital.cls.report_event":`string`,"browser.web_vital.cls.source.<key>":`string`,"browser.web_vital.cls.value":`double`,"browser.web_vital.fcp.value":`double`,"browser.web_vital.fp.value":`double`,"browser.web_vital.inp.value":`double`,"browser.web_vital.lcp.element":`string`,"browser.web_vital.lcp.id":`string`,"browser.web_vital.lcp.load_time":`integer`,"browser.web_vital.lcp.render_time":`integer`,"browser.web_vital.lcp.report_event":`string`,"browser.web_vital.lcp.size":`integer`,"browser.web_vital.lcp.url":`string`,"browser.web_vital.lcp.value":`double`,"browser.web_vital.ttfb.request_time":`double`,"browser.web_vital.ttfb.value":`double`,"cache.hit":`boolean`,"cache.item_size":`integer`,"cache.key":`string[]`,"cache.operation":`string`,"cache.ttl":`integer`,"cache.write":`boolean`,channel:`string`,"client.address":`string`,"client.port":`integer`,"cloudflare.d1.duration":`integer`,"cloudflare.d1.query_type":`string`,"cloudflare.d1.rows_read":`integer`,"cloudflare.d1.rows_written":`integer`,"cloudflare.durable_object.query.bindings":`integer`,"cloudflare.durable_object.response.rows_read":`integer`,"cloudflare.durable_object.response.rows_written":`integer`,"cloudflare.r2.bucket":`string`,"cloudflare.r2.operation":`string`,"cloudflare.r2.request.delimiter":`string`,"cloudflare.r2.request.key":`string`,"cloudflare.r2.request.part_number":`integer`,"cloudflare.r2.request.prefix":`string`,"cloudflare.workflow.attempt":`integer`,"cloudflare.workflow.retries.backoff":`string`,"cloudflare.workflow.retries.delay":`string`,"cloudflare.workflow.retries.limit":`integer`,"cloudflare.workflow.timeout":`string`,"cloud.account.id":`string`,"cloud.availability_zone":`string`,"cloud.platform":`string`,"cloud.provider":`string`,"cloud.region":`string`,"cloud.resource_id":`string`,cls:`double`,"cls.source.<key>":`string`,"code.filepath":`string`,"code.file.path":`string`,"code.function":`string`,"code.function.name":`string`,"code.lineno":`integer`,"code.line.number":`integer`,"code.namespace":`string`,connectionType:`string`,"connection.rtt":`integer`,"culture.calendar":`string`,"culture.display_name":`string`,"culture.is_24_hour_format":`boolean`,"culture.locale":`string`,"culture.timezone":`string`,"db.collection.name":`string`,"db.driver.name":`string`,"db.name":`string`,"db.namespace":`string`,"db.operation":`string`,"db.operation.batch.size":`integer`,"db.operation.name":`string`,"db.query.parameter.<key>":`string`,"db.query.summary":`string`,"db.query.text":`string`,"db.redis.connection":`string`,"db.redis.key":`string`,"db.redis.parameters":`string[]`,"db.response.status_code":`string`,"db.sql.bindings":`string[]`,"db.statement":`string`,"db.stored_procedure.name":`string`,"db.system":`string`,"db.system.name":`string`,"db.user":`string`,deviceMemory:`string`,"device.archs":`string[]`,"device.battery_level":`double`,"device.battery_temperature":`double`,"device.boot_time":`string`,"device.brand":`string`,"device.charging":`boolean`,"device.chipset":`string`,"device.class":`string`,"device.connection_type":`string`,"device.cpu_description":`string`,"device.external_free_storage":`integer`,"device.external_storage_size":`integer`,"device.family":`string`,"device.free_memory":`integer`,"device.free_storage":`integer`,"device.id":`string`,"device.locale":`string`,"device.low_memory":`boolean`,"device.low_power_mode":`boolean`,"device.manufacturer":`string`,"device.memory.estimated_capacity":`integer`,"device.memory_size":`integer`,"device.model":`string`,"device.model_id":`string`,"device.name":`string`,"device.online":`boolean`,"device.orientation":`string`,"device.processor_count":`integer`,"device.processor_frequency":`double`,"device.screen_density":`double`,"device.screen_dpi":`integer`,"device.screen_height_pixels":`integer`,"device.screen_width_pixels":`integer`,"device.simulator":`boolean`,"device.storage_size":`integer`,"device.thermal_state":`string`,"device.timezone":`string`,"device.usable_memory":`integer`,dist:`string`,effectiveConnectionType:`string`,environment:`string`,"error.type":`string`,"event.i
13d":`integer`,"event.name":`string`,"exception.escaped":`boolean`,"exception.message":`string`,"exception.stacktrace":`string`,"exception.type":`string`,"faas.coldstart":`boolean`,"faas.cron":`string`,"faas.duration_in_ms":`integer`,"faas.entry_point":`string`,"faas.execution":`string`,"faas.id":`string`,"faas.identity":`string`,"faas.invocation_id":`string`,"faas.invoked_name":`string`,"faas.invoked_provider":`string`,"faas.invoked_region":`string`,"faas.name":`string`,"faas.time":`string`,"faas.trigger":`string`,"faas.version":`string`,fcp:`double`,"flag.evaluation.<key>":`boolean`,fp:`double`,"frames.delay":`integer`,"frames.frozen":`integer`,frames_frozen_rate:`double`,"frames.slow":`integer`,frames_slow_rate:`double`,"frames.total":`integer`,fs_error:`string`,"gcp.function.context.event_id":`string`,"gcp.function.context.event_type":`string`,"gcp.function.context.id":`string`,"gcp.function.context.resource":`string`,"gcp.function.context.source":`string`,"gcp.function.context.specversion":`string`,"gcp.function.context.time":`string`,"gcp.function.context.timestamp":`string`,"gcp.function.context.type":`string`,"gcp.project.id":`string`,"gen_ai.agent.name":`string`,"gen_ai.context.utilization":`double`,"gen_ai.context.window_size":`integer`,"gen_ai.conversation.id":`string`,"gen_ai.cost.cache_creation.input_tokens":`double`,"gen_ai.cost.cache_read.input_tokens":`double`,"gen_ai.cost.input_tokens":`double`,"gen_ai.cost.output_tokens":`double`,"gen_ai.cost.reasoning.output_tokens":`double`,"gen_ai.cost.total_tokens":`double`,"gen_ai.embeddings.input":`string`,"gen_ai.function_id":`string`,"gen_ai.input.messages":`string`,"gen_ai.operation.name":`string`,"gen_ai.operation.type":`string`,"gen_ai.output.messages":`string`,"gen_ai.pipeline.name":`string`,"gen_ai.prompt":`string`,"gen_ai.prompt.name":`string`,"gen_ai.provider.name":`string`,"gen_ai.request.available_tools":`string`,"gen_ai.request.frequency_penalty":`double`,"gen_ai.request.max_tokens":`integer`,"gen_ai.request.messages":`string`,"gen_ai.request.model":`string`,"gen_ai.request.presence_penalty":`double`,"gen_ai.request.reasoning_effort":`string`,"gen_ai.request.seed":`string`,"gen_ai.request.stop_sequences":`string[]`,"gen_ai.request.temperature":`double`,"gen_ai.request.top_k":`integer`,"gen_ai.request.top_p":`double`,"gen_ai.response.finish_reasons":`string`,"gen_ai.response.id":`string`,"gen_ai.response.model":`string`,"gen_ai.response.streaming":`boolean`,"gen_ai.response.text":`string`,"gen_ai.response.time_to_first_chunk":`double`,"gen_ai.response.time_to_first_token":`double`,"gen_ai.response.tokens_per_second":`double`,"gen_ai.response.tool_calls":`string`,"gen_ai.system":`string`,"gen_ai.system_instructions":`string`,"gen_ai.system.message":`string`,"gen_ai.tool.call.arguments":`string`,"gen_ai.tool.call.result":`string`,"gen_ai.tool.definitions":`string`,"gen_ai.tool.description":`string`,"gen_ai.tool.input":`string`,"gen_ai.tool.message":`string`,"gen_ai.tool.name":`string`,"gen_ai.tool.output":`string`,"gen_ai.tool.type":`string`,"gen_ai.usage.cache_creation.input_tokens":`integer`,"gen_ai.usage.cache_read.input_tokens":`integer`,"gen_ai.usage.completion_tokens":`integer`,"gen_ai.usage.input_tokens":`integer`,"gen_ai.usage.input_tokens.cached":`integer`,"gen_ai.usage.input_tokens.cache_write":`integer`,"gen_ai.usage.output_tokens":`integer`,"gen_ai.usage.output_tokens.reasoning":`integer`,"gen_ai.usage.prompt_tokens":`integer`,"gen_ai.usage.reasoning.output_tokens":`integer`,"gen_ai.usage.total_tokens":`integer`,"graphql.document":`string`,"graphql.operation.name":`string`,"graphql.operation.type":`string`,hardwareConcurrency:`string`,"http.client_ip":`string`,"http.decoded_response_content_length":`integer`,"http.flavor":`string`,"http.fragment":`string`,"http.host":`string`,"http.method":`string`,"http.query":`string`,"http.request.body.data":`string`,"http.request.connection_end":`double`,"http.request.connect_start":`double`,"http.request.domain_lookup_end":`double`,"http.request.domain_lookup_start":`double`,"http.request.fetch_start":`double`,"http.request.header.<key>":`string[]`,"http.request.method":`string`,"http.request_method":`string`,"http.request.redirect_end":`double`,"http.request.redirect_start":`double`,"http.request.request_start":`double`,"http.request.resend_count":`integer`,"http.request.response_end":`double`,"http.request.response_start":`double`,"http.request.same_origin":`boolean`,"http.request.secure_connection_start":`double`,"http.request.time_to_first_byte":`double`,"http.request.worker_start":`double`,"http.response.body.size":`integer`,"http.response_content_length":`integer`,"http.response.header.content-length":`string`,"http.response.header.<key>":`string[]`,"http.response.size":`integer`,"http.response.status_code":`integer`,"http.response_transfer_size":`integer`,"http.route":`string`,"http.scheme":`string`,"http.server_name":`string`,"http.server.request.time_in_queue":`double`,"http.status_code":`integer`,"http.target":`string`,"http.url":`string`,"http.user_agent":`string`,id:`string`,inp:`double`,"jsonrpc.protocol.version":`string`,"
13jsonrpc.request.id":`string`,"jvm.gc.action":`string`,"jvm.gc.name":`string`,"jvm.memory.pool.name":`string`,"jvm.memory.type":`string`,"jvm.thread.daemon":`boolean`,"jvm.thread.state":`string`,"koa.name":`string`,"koa.type":`string`,lcp:`double`,"lcp.element":`string`,"lcp.id":`string`,"lcp.loadTime":`integer`,"lcp.renderTime":`integer`,"lcp.size":`integer`,"lcp.url":`string`,"logger.name":`string`,"mcp.cancelled.reason":`string`,"mcp.cancelled.request_id":`string`,"mcp.client.name":`string`,"mcp.client.title":`string`,"mcp.client.version":`string`,"mcp.lifecycle.phase":`string`,"mcp.logging.data_type":`string`,"mcp.logging.level":`string`,"mcp.logging.logger":`string`,"mcp.logging.message":`string`,"mcp.method.name":`string`,"mcp.progress.current":`integer`,"mcp.progress.message":`string`,"mcp.progress.percentage":`double`,"mcp.progress.token":`string`,"mcp.progress.total":`integer`,"mcp.prompt.name":`string`,"mcp.prompt.result.description":`string`,"mcp.prompt.result.message_content":`string`,"mcp.prompt.result.message_count":`integer`,"mcp.prompt.result.message_role":`string`,"mcp.protocol.ready":`integer`,"mcp.protocol.version":`string`,"mcp.request.argument.<key>":`string`,"mcp.request.argument.name":`string`,"mcp.request.argument.uri":`string`,"mcp.request.id":`string`,"mcp.resource.protocol":`string`,"mcp.resource.uri":`string`,"mcp.server.name":`string`,"mcp.server.title":`string`,"mcp.server.version":`string`,"mcp.session.id":`string`,"mcp.tool.name":`string`,"mcp.tool.result.content":`string`,"mcp.tool.result.content_count":`integer`,"mcp.tool.result.is_error":`boolean`,"mcp.transport":`string`,"mdc.<key>":`string`,"messaging.batch.message_count":`integer`,"messaging.destination":`string`,"messaging.destination.connection":`string`,"messaging.destination.name":`string`,"messaging.message.body.size":`integer`,"messaging.message.conversation_id":`string`,"messaging.message.envelope.size":`integer`,"messaging.message.id":`string`,"messaging.message.receive.latency":`integer`,"messaging.message.retry.count":`integer`,"messaging.operation.name":`string`,"messaging.operation.type":`string`,"messaging.rabbitmq.destination.routing_key":`string`,"messaging.system":`string`,method:`string`,"middleware.name":`string`,"navigation.origin":`string`,"navigation.route.id":`string`,"navigation.type":`string`,"nel.elapsed_time":`integer`,"nel.phase":`string`,"nel.referrer":`string`,"nel.sampling_function":`double`,"nel.type":`string`,"network.connection.effective_type":`string`,"network.connection.rtt":`integer`,"network.connection.type":`string`,"network.local.address":`string`,"network.local.port":`integer`,"network.peer.address":`string`,"network.peer.port":`integer`,"network.protocol.name":`string`,"network.protocol.version":`string`,"network.transport":`string`,"network.type":`string`,"net.host.ip":`string`,"net.host.name":`string`,"net.host.port":`integer`,"net.peer.ip":`string`,"net.peer.name":`string`,"net.peer.port":`integer`,"net.protocol.name":`string`,"net.protocol.version":`string`,"net.sock.family":`string`,"net.sock.host.addr":`string`,"net.sock.host.port":`integer`,"net.sock.peer.addr":`string`,"net.sock.peer.name":`string`,"net.sock.peer.port":`integer`,"net.transport":`string`,"os.build":`string`,"os.build_id":`string`,"os.description":`string`,"os.kernel_version":`string`,"os.name":`string`,"os.raw_description":`string`,"os.rooted":`boolean`,"os.theme":`string`,"os.type":`string`,"os.version":`string`,"otel.kind":`string`,"otel.scope.name":`string`,"otel.scope.version":`string`,"otel.status_code":`string`,"otel.status_description":`string`,"params.<key>":`string`,"performance.activationStart":`double`,"performance.timeOrigin":`double`,previous_route:`string`,"process.command_args":`string[]`,"process.executable.name":`string`,"process.pid":`integer`,"process.runtime.description":`string`,"process.runtime.engine.name":`string`,"process.runtime.engine.version":`string`,"process.runtime.name":`string`,"process.runtime.version":`string`,"query.<key>":`string`,"react.version":`string`,release:`string`,"remix.action_form_data.<key>":`string`,replay_id:`string`,"resource.deployment.environment":`string`,"resource.deployment.environment.name":`string`,"resource.render_blocking_status":`string`,route:`string`,"rpc.grpc.status_code":`integer`,"rpc.method":`string`,"rpc.response.status_code":`string`,"rpc.service":`string`,"rpc.system":`string`,"rpc.system.name":`string`,"runtime.build":`string`,"runtime.name":`string`,"runtime.raw_description":`string`,"runtime.version":`string`,"score.<key>":`double`,"score.ratio.<key>":`double`,"score.total":`double`,"score.weight.<key>":`double`,"sentry.action":`string`,"sentry.browser.name":`string`,"sentry.browser.version":`string`,"sentry.cancellation_reason":`string`,"sentry.category":`string`,"sentry.client_sample_rate":`double`,"sentry.description":`string`,"sentry.dist":`string`,"sentry.domain":`string`,"sentry.dsc.environment":`string`,"sentry.dsc.project_id":`string`,"sentry.dsc.public_key":`string`,"sentry.dsc.release":`string`,"sentry.dsc.sampled":`boolean`,"sentry.dsc.sample_rate":`string`,"sentry.dsc.trace_id":`string`,"sentry.dsc.transaction":`string`,"sentry.environment":`string`,"sentry.exclusive_time":`double`,"sentry.graphql.operation":`string`,"sentry.group":`string`,"sentry.http.prefetch":`boolean`,"sentry.idle_span_finish_reason":`string`,"sentry.is_remote":`boolean`,"sentry.kind":`string`,"sentry.main_thread":`boolean`,"sentry.message.parameter.<key>":`string`,"sentry.message.template":`string`,"sentry.metric.source":`string`,"sentry.mobile":`boolean`,"sentry.module.<key>":`string`,"sentry.nextjs.ssr.function.route":`string`,"sentry.nextjs.ssr.function.type":`string`,"sentry.normalized_db_query":`string`,"sentry.normalized_db_query.hash":`string`,"sentry.normalized_description":`string`,"sentry.observed_timestamp_nanos":`string`,"sentry.op":`string`,"sentry.origin":`string`,"sentry.platform":`string`,"sentry.profiler_id":`string`,"sentry.profile_id":`string`,"sentry.release":`string`,"sentry.replay_id":`string`,"sentry.replay_is_buffering":`boolean`,"sentry.report_event":`string`,"sentry.sdk.integrations":`string[]`,"sentry.sdk.name":`string`,"sentry.sdk.version":`string`,"sentry.segment.id":`string`,"sentry.segment_id":`string`,"sentry.segment.name":`string`,"sentry.server_sample_rate":`double`,"sentry.source":`string`,"sentry.span.source":`string`,"sentry.status":`string`,"sentry.status_code":`integer`,"sentry.status.message":`string`,"sentry.sveltekit.navigation.from":`string`,"sentry.sveltekit.navigation.to":`string`,"sentry.sveltekit.navigation.type":`string`,"sentry.thread.id":`integer`,"sentry.timestamp.sequence":`integer`,"sentry.trace_lifecycle":`string`,"sentry.trace.parent_span_id":`string`,"sentry.trace.status":`string`,"sentry.transaction":`string`,"sentry.user.email":`string`,"sentry.user.geo.city":`string`,"sentry.user.geo.country_code":`string`,"sentry.user.geo.region":`string`,"sentry.user.geo.subdivision":`string`,"sentry.user.id":`string`,"sentry.user.ip":`string`,"sentry.user.username":`string`,"server.address":`string`,server_name:`string`,"server.port":`integer`,"service.name":`string`,"service.version":`string`,"session.id":`string`,stall_percentage:`double`,stall_total_time:`double`,"state.type":`string`,"thread.id":`integer`,"thread.name":`string`,"timber.tag":`string`,time_to_full_display:`double`,time_to_initial_display:`double`,transaction:`string`,"trpc.procedure_path":`string`,"trpc.procedure_type":`string`,ttfb:`double`,"ttfb.requestTime":`double`,type:`string`,"ui.component_name":`string`,"ui.contributes_to_ttfd":`boolean`,"ui.contributes_to_ttid":`boolean`,"ui.element.height":`integer`,"ui.element.i
13d":`string`,"ui.element.identifier":`string`,"ui.element.load_time":`double`,"ui.element.paint_type":`string`,"ui.element.render_time":`double`,"ui.element.type":`string`,"ui.element.url":`string`,"ui.element.width":`integer`,url:`string`,"url.domain":`string`,"url.fragment":`string`,"url.full":`string`,"url.path":`string`,"url.path.parameter.<key>":`string`,"url.port":`integer`,"url.query":`string`,"url.same_origin":`boolean`,"url.scheme":`string`,"url.template":`string`,"user_agent.original":`string`,"user.email":`string`,"user.full_name":`string`,"user.geo.city":`string`,"user.geo.country_code":`string`,"user.geo.region":`string`,"user.geo.subdivision":`string`,"user.hash":`string`,"user.id":`string`,"user.ip_address":`string`,"user.name":`string`,"user.roles":`string[]`,"vercel.branch":`string`,"vercel.build_id":`string`,"vercel.deployment_id":`string`,"vercel.destination":`string`,"vercel.edge_type":`string`,"vercel.entrypoint":`string`,"vercel.execution_region":`string`,"vercel.id":`string`,"vercel.ja3_digest":`string`,"vercel.ja4_digest":`string`,"vercel.log_type":`string`,"vercel.path":`string`,"vercel.project_id":`string`,"vercel.project_name":`string`,"vercel.proxy.cache_id":`string`,"vercel.proxy.client_ip":`string`,"vercel.proxy.host":`string`,"vercel.proxy.lambda_region":`string`,"vercel.proxy.method":`string`,"vercel.proxy.path":`string`,"vercel.proxy.path_type":`string`,"vercel.proxy.path_type_variant":`string`,"vercel.proxy.referer":`string`,"vercel.proxy.region":`string`,"vercel.proxy.response_byte_size":`integer`,"vercel.proxy.scheme":`string`,"vercel.proxy.status_code":`integer`,"vercel.proxy.timestamp":`integer`,"vercel.proxy.user_agent":`string[]`,"vercel.proxy.vercel_cache":`string`,"vercel.proxy.vercel_id":`string`,"vercel.proxy.waf_action":`string`,"vercel.proxy.waf_rule_id":`string`,"vercel.request_id":`string`,"vercel.source":`string`,"vercel.status_code":`integer`},Bb={"ai.citations":{brief:`References or sources cited by the AI model in its response.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`Citation 1`,`Citation 2`],deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.completion_tokens.used":{brief:`The number of tokens used to respond to the message.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:10,deprecation:{replacement:`gen_ai.usage.output_tokens`},aliases:[`gen_ai.usage.output_tokens`,`gen_ai.usage.completion_tokens`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57,61]},{version:`0.0.0`}]},"ai.documents":{brief:`Documents or content chunks used as context for the AI model.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`document1.txt`,`document2.pdf`],deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.finish_reason":{brief:`The reason why the model stopped generating.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`COMPLETE`,deprecation:{replacement:`gen_ai.response.finish_reasons`},aliases:[`gen_ai.response.finish_reasons`],changelog:[{version:`0.1.0`,prs:[55,57,61,108,127]}]},"ai.frequency_penalty":{brief:`Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.5,deprecation:{replacement:`gen_ai.request.frequency_penalty`},aliases:[`gen_ai.request.frequency_penalty`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.function_call":{brief:`For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`function_name`,deprecation:{replacement:`gen_ai.tool.name`},aliases:[`gen_ai.tool.name`,`mcp.tool.name`],changelog:[{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.generation_id":{brief:`Unique identifier for the completion.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`gen_123abc`,deprecation:{replacement:`gen_ai.response.id`},aliases:[`gen_ai.response.id`],changelog:[{version:`0.1.0`,prs:[55,57,61,108,127]}]},"ai.input_messages":{brief:`The input messages sent to the model`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`[{"role": "user", "message": "hello"}]`,deprecation:{replacement:`gen_ai.input.messages`},aliases:[`gen_ai.request.messages`],changelog:[{version:`0.1.0`,prs:[65,119]},{version:`0.0.0`}]},"ai.is_search_required":{brief:`Boolean indicating if the model needs to perform a search.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!1,deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.metadata":{brief:`Extra metadata passed to an AI pipeline step.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`{"user_id": 123, "session_id": "abc123"}`,deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55,127]}]},"ai.model_id":{brief:`The vendor-specific ID of the model used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`gpt-4`,deprecation:{replacement:`gen_ai.response.model`},aliases:[`gen_ai.response.model`],changelog:[{version:`0.1.0`,prs:[57,61,127]},{version:`0.0.0`}]},"ai.model.provider":{brief:`The provider of the model.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`openai`,deprecation:{replacement:`gen_ai.provider.name`},aliases:[`gen_ai.provider.name`,`gen_ai.system`],changelog:[{version:`0.4.0`,prs:[253]},{version:`0.1.0`,prs:[57,61,108,127]}]},"ai.pipeline.name":{brief:`The name of the AI pipeline.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Autofix Pipeline`,deprecation:{replacement:`gen_ai.pipeline.name`},aliases:[`gen_ai.pipeline.name`],changelog:[{version:`0.1.0`,prs:[53,76,108,127]}]},"ai.preamble":{brief:`For an AI model call, the preamble parameter. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`You are now a clown.`,deprecation:{replacement:`gen_ai.system_instructions`},aliases:[`gen_ai.system_instructions`],changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.presence_penalty":{brief:`Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is a
13pplied equally to all tokens that have already appeared, regardless of their exact frequencies.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.5,deprecation:{replacement:`gen_ai.request.presence_penalty`},aliases:[`gen_ai.request.presence_penalty`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.prompt_tokens.used":{brief:`The number of tokens used to process just the prompt.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:20,deprecation:{replacement:`gen_ai.usage.input_tokens`},aliases:[`gen_ai.usage.prompt_tokens`,`gen_ai.usage.input_tokens`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57,61]},{version:`0.0.0`}]},"ai.raw_prompting":{brief:`When enabled, the userâs prompt will be sent to the model without any pre-processing.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.responses":{brief:`The response messages sent back by the AI model.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:[`hello`,`world`],deprecation:{replacement:`gen_ai.output.messages`},changelog:[{version:`0.1.0`,prs:[65,127]},{version:`0.0.0`}]},"ai.response_format":{brief:`For an AI model call, the format of the response`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`json_object`,deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55,127]}]},"ai.search_queries":{brief:`Queries used to search for relevant context or documents.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`climate change effects`,`renewable energy`],deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.search_results":{brief:`Results returned from search queries for context.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`search_result_1, search_result_2`],deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.seed":{brief:`The seed, ideally models given the same seed and same other parameters will produce the exact same output.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1234567890`,deprecation:{replacement:`gen_ai.request.seed`},aliases:[`gen_ai.request.seed`],changelog:[{version:`0.1.0`,prs:[55,57,61,108,127]}]},"ai.streaming":{brief:`Whether the request was streamed back.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,deprecation:{replacement:`gen_ai.response.streaming`},aliases:[`gen_ai.response.streaming`],changelog:[{version:`0.1.0`,prs:[76,108]},{version:`0.0.0`}]},"ai.tags":{brief:`Tags that describe an AI pipeline step.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`{"executed_function": "add_integers"}`,deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55,127]}]},"ai.temperature":{brief:`For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.1,deprecation:{replacement:`gen_ai.request.temperature`},aliases:[`gen_ai.request.temperature`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.texts":{brief:`Raw text inputs provided to the model.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`Hello, how are you?`,`What is the capital of France?`],deprecation:{replacement:`gen_ai.input.messages`},aliases:[`gen_ai.input.messages`],changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"ai.tools":{brief:`For an AI model call, the functions that are available`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:[`function_1`,`function_2`],deprecation:{replacement:`gen_ai.tool.definitions`},changelog:[{version:`0.1.0`,prs:[55,65,127]}]},"ai.tool_calls":{brief:`For an AI model call, the tool calls that were made.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`tool_call_1`,`tool_call_2`],deprecation:{replacement:`gen_ai.output.messages`},changelog:[{version:`0.1.0`,prs:[55,65]}]},"ai.top_k":{brief:`Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:35,deprecation:{replacement:`gen_ai.request.top_k`},aliases:[`gen_ai.request.top_k`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.top_p":{brief:`Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.7,deprecation:{replacement:`gen_ai.request.top_p`},aliases:[`gen_ai.request.top_p`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[55,57,61,108]}]},"ai.total_cost":{brief:`The total cost for the tokens used.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12.34,deprecation:{replacement:`gen_ai.cost.total_tokens`},aliases:[`gen_ai.cost.total_tokens`],changelog:[{version:`0.5.0`,prs:[264]},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[53]}]},"ai.total_tokens.used":{brief:`The total number of tokens used to process the prompt.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:30,deprecation:{replacement:`gen_ai.usage.total_tokens`},aliases:[`gen_ai.usage.total_tokens`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57,61,108]},{version:`0.0.0`}]},"ai.warnings":{brief:`Warning messages generated during model execution.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`Token limit exceeded`],deprecation:{},changelog:[{version:`0.5.0`,prs:[264]},{version:`0.1.0`,prs:[55]}]},"angular.version":{brief:`The version of the Angular framework`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`17.1.0`,changelog:[{version:`0.7.0`,prs:[367],description:`Added angular.version attribute`}]},"app.app_build":{brief:`Internal build identifier, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1`,deprecation:{replacement:`app.build`,reason:`Deprecated
13in favor of app.build`},aliases:[`app.build`],changelog:[{version:`0.5.0`,prs:[296],description:`Added and deprecated app.app_build in favor of app.build`}]},"app.app_identifier":{brief:`Version-independent application identifier, often a dotted bundle ID.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`com.example.myapp`,deprecation:{replacement:`app.identifier`,reason:`Deprecated in favor of app.identifier`},aliases:[`app.identifier`],changelog:[{version:`0.5.0`,prs:[296],description:`Added and deprecated app.app_identifier in favor of app.identifier`}]},"app.app_name":{brief:`Human readable application name, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`My App`,deprecation:{replacement:`app.name`,reason:`Deprecated in favor of app.name`},aliases:[`app.name`],changelog:[{version:`0.5.0`,prs:[296],description:`Added and deprecated app.app_name in favor of app.name`}]},"app.app_start_time":{brief:`Formatted UTC timestamp when the user started the application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2025-01-01T00:00:00.000Z`,deprecation:{replacement:`app.start_time`,reason:`Deprecated in favor of app.start_time`},aliases:[`app.start_time`],changelog:[{version:`0.5.0`,prs:[296],description:`Added and deprecated app.app_start_time in favor of app.start_time`}]},"app.app_version":{brief:`Human readable application version, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1.0.0`,deprecation:{replacement:`app.version`,reason:`Deprecated in favor of app.version`},aliases:[`app.version`],changelog:[{version:`0.5.0`,prs:[296],description:`Added and deprecated app.app_version in favor of app.version`}]},"app.build":{brief:`Internal build identifier, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1`,aliases:[`app.app_build`],changelog:[{version:`0.5.0`,prs:[296],description:`Added app.build attribute`}]},"app.identifier":{brief:`Version-independent application identifier, often a dotted bundle ID.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`com.example.myapp`,aliases:[`app.app_identifier`],changelog:[{version:`0.5.0`,prs:[296],description:`Added app.identifier attribute`}]},"app.in_foreground":{brief:`Whether the application is currently in the foreground.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`,prs:[296],description:`Added app.in_foreground attribute`}]},"app.name":{brief:`Human readable application name, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`My App`,aliases:[`app.app_name`],changelog:[{version:`0.5.0`,prs:[296],description:`Added app.name attribute`}]},app_start_cold:{brief:`The duration of a cold app start in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,deprecation:{replacement:`app.vitals.start.cold.value`,reason:`Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.start.cold.value`],changelog:[{version:`0.5.0`,prs:[323],description:`Added and deprecated in favor of app.vitals.start.cold.value`}]},"app.start_time":{brief:`Formatted UTC timestamp when the user started the application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2025-01-01T00:00:00.000Z`,aliases:[`app.app_start_time`],changelog:[{version:`0.5.0`,prs:[296],description:`Added app.start_time attribute`}]},app_start_type:{brief:`Mobile app start variant. Either cold or warm.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`cold`,deprecation:{replacement:`app.vitals.start.type`,reason:`Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.start.type`],changelog:[{version:`0.5.0`,prs:[313],description:`Deprecated
13in favor of app.vitals.start.type`},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},app_start_warm:{brief:`The duration of a warm app start in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,deprecation:{replacement:`app.vitals.start.warm.value`,reason:`Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.start.warm.value`],changelog:[{version:`0.5.0`,prs:[323],description:`Added and deprecated in favor of app.vitals.start.warm.value`}]},"app.version":{brief:`Human readable application version, as it appears on the platform.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1.0.0`,aliases:[`app.app_version`],changelog:[{version:`0.5.0`,prs:[296],description:`Added app.version attribute`}]},"app.vitals.frames.delay.value":{brief:`The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:5,aliases:[`frames.delay`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.frames.delay.value to replace frames.delay`}]},"app.vitals.frames.frozen.count":{brief:`The number of frozen frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3,aliases:[`frames.frozen`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.frames.frozen.count to replace frames.frozen`}]},"app.vitals.frames.slow.count":{brief:`The number of slow frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,aliases:[`frames.slow`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.frames.slow.count to replace frames.slow`}]},"app.vitals.frames.total.count":{brief:`The number of total frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:60,aliases:[`frames.total`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.frames.total.count to replace frames.total`}]},"app.vitals.start.cold.value":{brief:`The duration of a cold app start in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,aliases:[`app_start_cold`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.start.cold.value attribute`}]},"app.vitals.start.prewarmed":{brief:`Whether the app start was prewarmed.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.11.0`,prs:[379],description:`Added app.vitals.start.prewarmed attribute`}]},"app.vitals.start.reason":{brief:`The reason that triggered the app start.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`push`,changelog:[{version:`0.7.0`,prs:[353],description:`Added app.vitals.start.reason attribute`}]},"app.vitals.start.screen":{brief:`The screen that is rendered when the app start is complete. This is the screen the user first sees and can interact with after launch. The absence of this attribute on the app start span indicates a background app start where no UI was rendered.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`MainActivity`,changelog:[{version:`0.7.0`,prs:[353],description:`Added app.vitals.start.screen attribute`}]},"app.vitals.start.type":{brief:"The type of app start, for example `cold` or `warm`",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`cold`,aliases:[`app_start_type`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.start.type attribute`}]},"app.vitals.start.warm.value":{brief:`The duration of a warm app start in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,aliases:[`app_start_warm`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.start.warm.value attribute`}]},"app.vitals.ttfd.value":{brief:`The duration of time to full display in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,aliases:[`time_to_full_display`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.ttfd.value attribute`}]},"app.vitals.ttid.value":{brief:`The duration of time to initial display in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,aliases:[`time_to_initial_display`],changelog:[{version:`0.5.0`,prs:[313],description:`Added app.vitals.ttid.value attribute`}]},"art.gc.blocking_count":{brief:`Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.blocking_count attribute`}]},"art.gc.blocking_time":{brief:`Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:11.873,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.blocking_time attribute`}]},"art.gc.pre_oome_count":{brief:`Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:0,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.pre_oome_count attribute`}]},"art.gc.total_count":{brief:`Total number of garbage collections performed by the Android Runtime`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.total_count attribute`}]},"art.gc.total_time":{brief:`Total time spent in garbage collection by the Android Runtime, in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:11.807,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.total_time attribute`}]},"art.gc.waiting_time":{brief:`Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:8.054,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.gc.waiting_time attribute`}]},"art.memory.free":{brief:`Free memory available to the process as reported by the Android Runtime, in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3181568,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.memory.free attribute`}]},"art.memory.free_until_gc":{brief:`Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3181568,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.memory.free_until_gc attribute`}]},"art.memory.free_until_oome":{brief:`Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:196083712,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.memory.free_until_oome attribute`}]},"art.memory.max":{brief:`Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:201326592,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.memory.max attribute`}]},"art.memory.total":{brief:`Total memory currently allocated to the process by the Android Runtime, in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:7774208,changelog:[{version:`0.11.0`,prs:[382],description:`Added art.memory.total attribute`}]},"aws.cloudwatch.logs.log_group":{brief:`The name of the CloudWatch Logs log group`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`/aws/lambda/my-function`,changelog:[{version:`0.7.0`,prs:[369],description:`Added aws.cloudwatch.logs.log_group attribute`}]},"aws.cloudwatch.logs.log_stream":{brief:`The name of the CloudWatch Logs log stream`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2024/01/01/[$LATEST]abcdef1234567890`,changelog:[{version:`0.7.0`,prs:[369],description:`Added aws.cloudwatch.logs.log_stream attribute`}]},"aws.cloudwatch.logs.url":{brief:`The URL to the CloudWatch Logs log group`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group`,changelog:[{version:`0.7.0`,prs:[369],description:`Added aws.cloudwatch.logs.url attribute`}]},"aws.dynamodb.attribute_definitions":{brief:"The JSON-serialized value of each item in the `AttributeDefinitions` request field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`{ "AttributeName": "string", "AttributeType": "string" }`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.attribute_definitions attribute`}]},"aws.dynamodb.consistent_read":{brief:"The value of the `ConsistentRead` request parameter.",type:`boolean`,applyScrubbing:{key:`manual`}
13,isInOtel:!0,visibility:`public`,example:!0,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.consistent_read attribute`}]},"aws.dynamodb.consumed_capacity":{brief:"The JSON-serialized value of each item in the `ConsumedCapacity` response field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.consumed_capacity attribute`}]},"aws.dynamodb.count":{brief:"The value of the `Count` response parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.count attribute`}]},"aws.dynamodb.exclusive_start_table":{brief:"The value of the `ExclusiveStartTableName` request parameter.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Users`,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.exclusive_start_table attribute`}]},"aws.dynamodb.global_secondary_indexes":{brief:"The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.global_secondary_indexes attribute`}]},"aws.dynamodb.global_secondary_index_updates":{brief:"The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.global_secondary_index_updates attribute`}]},"aws.dynamodb.index_name":{brief:"The value of the `IndexName` request parameter.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`name_to_group`,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.index_name attribute`}]},"aws.dynamodb.item_collection_metrics":{brief:"The JSON-serialized value of the `ItemCollectionMetrics` response field.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }`,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.item_collection_metrics attribute`}]},"aws.dynamodb.limit":{brief:"The value of the `Limit` request parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.limit attribute`}]},"aws.dynamodb.local_secondary_indexes":{brief:"The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.local_secondary_indexes attribute`}]},"aws.dynamodb.projection":{brief:"The value of the `ProjectionExpression` request parameter.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Title, Price, Color`,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.projection attribute`}]},"aws.dynamodb.provisioned_read_capacity":{brief:"The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.provisioned_read_capacity attribute`}]},"aws.dynamodb.provisioned_write_capacity":{brief:"The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:2,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.provisioned_write_capacity attribute`}]},"aws.dynamodb.scanned_count":{brief:"The value of the `ScannedCount` response parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:50,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.scanned_count attribute`}]},"aws.dynamodb.scan_forward":{brief:"The value of the `ScanIndexForward` request parameter.",type:`boolean`,applyScrubbing:{key:`manual`}
13,isInOtel:!0,visibility:`public`,example:!0,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.scan_forward attribute`}]},"aws.dynamodb.segment":{brief:"The value of the `Segment` request parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.segment attribute`}]},"aws.dynamodb.select":{brief:"The value of the `Select` request parameter.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`ALL_ATTRIBUTES`,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.select attribute`}]},"aws.dynamodb.table_count":{brief:"The number of items in the `TableNames` response parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:20,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.table_count attribute`}]},"aws.dynamodb.table_names":{brief:"The keys in the `RequestItems` object field.",type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`Users`,`Cats`],changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.table_names attribute`}]},"aws.dynamodb.total_segments":{brief:"The value of the `TotalSegments` request parameter.",type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:100,changelog:[{version:`0.16.0`,prs:[479],description:`Added aws.dynamodb.total_segments attribute`}]},"aws.extended_request_id":{brief:`The AWS extended request ID as returned in the response headers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=`,aliases:[`aws.request.extended_id`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.extended_request_id attribute`}]},"aws.kinesis.stream_name":{brief:`The name of the AWS Kinesis stream the request refers to.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`some-stream-name`,aliases:[`aws.kinesis.stream.name`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.kinesis.stream_name attribute`}]},"aws.kinesis.stream.name":{brief:`The name of the AWS Kinesis stream the request refers to.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`some-stream-name`,deprecation:{replacement:`aws.kinesis.stream_name`,reason:`This attribute is being deprecated
13in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.`},aliases:[`aws.kinesis.stream_name`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.kinesis.stream.name attribute, deprecated in favor of aws.kinesis.stream_name`}]},"aws.lambda.aws_request_id":{brief:`The AWS request ID as received by the Lambda function runtime`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`8476a536-e9f4-11e8-9739-2dfe598c3fcd`,deprecation:{replacement:`faas.invocation_id`,reason:`This attribute is being deprecated in favor of faas.invocation_id`},aliases:[`faas.invocation_id`,`faas.execution`],changelog:[{version:`0.16.0`,prs:[473],description:`Added faas.execution as an alias`},{version:`0.11.1`,prs:[414,424],description:`Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id`},{version:`0.7.0`,prs:[369],description:`Added aws.lambda.aws_request_id attribute`}]},"aws.lambda.execution_duration_in_millis":{brief:`The execution duration of the Lambda function invocation in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,changelog:[{version:`0.7.0`,prs:[369],description:`Added aws.lambda.execution_duration_in_millis attribute`}]},"aws.lambda.function_name":{brief:`The name of the Lambda function`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-function`,deprecation:{replacement:`faas.name`,reason:`Use the OTel-aligned faas.name attribute instead`},aliases:[`faas.name`],changelog:[{version:`0.11.1`,prs:[414],description:`Deprecated aws.lambda.function_name in favor of faas.name`},{version:`0.7.0`,prs:[369],description:`Added aws.lambda.function_name attribute`}]},"aws.lambda.function_version":{brief:`The version of the Lambda function`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`$LATEST`,deprecation:{replacement:`faas.version`,reason:`Use the OTel-aligned faas.version attribute instead`},aliases:[`faas.version`],changelog:[{version:`0.11.1`,prs:[414,424],description:`Deprecated aws.lambda.function_version in favor of faas.version`},{version:`0.7.0`,prs:[369],description:`Added aws.lambda.function_version attribute`}]},"aws.lambda.invoked_arn":{brief:`The full ARN of the Lambda function that was invoked`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:lambda:us-east-1:123456789012:function:my-function`,aliases:[`aws.lambda.invoked_function_arn`],changelog:[{version:`0.11.1`,prs:[414]}]},"aws.lambda.invoked_function_arn":{brief:`The full ARN of the Lambda function that was invoked`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`arn:aws:lambda:us-east-1:123456789012:function:my-function`,deprecation:{replacement:`aws.lambda.invoked_arn`,reason:`This attribute is being deprecated
13in favor of aws.lambda.invoked_arn`},aliases:[`aws.lambda.invoked_arn`],changelog:[{version:`0.11.1`,prs:[414],description:`Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn`},{version:`0.7.0`,prs:[369],description:`Added aws.lambda.invoked_function_arn attribute`}]},"aws.lambda.remaining_time_in_millis":{brief:`The remaining time in milliseconds before the Lambda function times out`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:5e3,changelog:[{version:`0.7.0`,prs:[369],description:`Added aws.lambda.remaining_time_in_millis attribute`}]},"aws.log.group.names":{brief:`The name(s) of the AWS log group(s) an application is writing to.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`/aws/lambda/my-function`,`opentelemetry-service`],changelog:[{version:`0.11.1`,prs:[414]}]},"aws.log.stream.names":{brief:`The name(s) of the AWS log stream(s) an application is writing to.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`logs/main/10838bed-421f-43ef-870a-f43feacbbb5b`],changelog:[{version:`0.11.1`,prs:[414]}]},"aws.request.extended_id":{brief:`The AWS extended request ID as returned in the response headers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=`,deprecation:{replacement:`aws.extended_request_id`,reason:`This attribute is being deprecated
13in favor of aws.extended_request_id, which is the OTel-aligned replacement.`},aliases:[`aws.extended_request_id`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.request.extended_id attribute, deprecated in favor of aws.extended_request_id`}]},"aws.request_id":{brief:`The AWS request ID as returned in the response headers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`79b9da39-b7ae-508a-a6bc-864b2829c622`,aliases:[`aws.request.id`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.request_id attribute`}]},"aws.request.id":{brief:`The AWS request ID as returned in the response headers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`79b9da39-b7ae-508a-a6bc-864b2829c622`,deprecation:{replacement:`aws.request_id`,reason:`This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.`},aliases:[`aws.request_id`],changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.request.id attribute, deprecated
13in favor of aws.request_id`}]},"aws.s3.bucket":{brief:`The S3 bucket name the request refers to.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`ot-demo-test`,changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.s3.bucket attribute`}]},"aws.secretsmanager.secret.arn":{brief:`The ARN of the Secret stored in Secrets Manager.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters`,changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.secretsmanager.secret.arn attribute`}]},"aws.sns.topic.arn":{brief:`The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE`,changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.sns.topic.arn attribute`}]},"aws.step_functions.activity.arn":{brief:`The ARN of the AWS Step Functions Activity.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:states:us-east-1:123456789012:activity:get-greeting`,changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.step_functions.activity.arn attribute`}]},"aws.step_functions.state_machine.arn":{brief:`The ARN of the AWS Step Functions State Machine.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1`,changelog:[{version:`0.16.0`,prs:[480],description:`Added aws.step_functions.state_machine.arn attribute`}]},blocked_main_thread:{brief:`Whether the main thread was blocked by the span.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"browser.name":{brief:`The name of the browser.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Chrome`,aliases:[`sentry.browser.name`],changelog:[{version:`0.1.0`,prs:[127,139]},{version:`0.0.0`}]},"browser.performance.navigation.activation_start":{brief:`The time between initiating a navigation to a page and the browser activating the page`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1.983,aliases:[`performance.activationStart`],changelog:[{version:`0.5.0`,prs:[321],description:`Added browser.performance.navigation.activation_start attribute`}]},"browser.performance.time_origin":{brief:`The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1776185678.886,aliases:[`performance.timeOrigin`],changelog:[{version:`0.5.0`,prs:[321],description:`Added browser.performance.time_origin attribute attribute`}]},"browser.report.type":{brief:`A browser report sent via reporting API..`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`network-error`,changelog:[{version:`0.1.0`,prs:[68,127]}]},"browser.script.invoker":{brief:`How a script was called in the browser.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Window.requestAnimationFrame`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"browser.script.invoker_type":{brief:`Browser script entry point type.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`event-listener`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"browser.script.source_char_position":{brief:`A number representing the script character position of the script.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:678,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"browser.version":{brief:`The version of the browser.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`120.0.6099.130`,aliases:[`sentry.browser.version`],changelog:[{version:`0.1.0`,prs:[59,127,139]}]},"browser.web_vital.cls.report_event":{brief:`The event that caused the SDK to report CLS (pagehide or navigation)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`navigation`,changelog:[{version:`0.5.0`,prs:[319],description:`Added browser.web_vital.cls.report_event attribute`}]},"browser.web_vital.cls.source.<key>":{brief:`The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`body > div#app`,aliases:[`cls.source.<key>`],changelog:[{version:`0.5.0`,prs:[234]}]},"browser.web_vital.cls.value":{brief:`The value of the recorded Cumulative Layout Shift (CLS) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.2361,aliases:[`cls`],changelog:[{version:`0.5.0`,prs:[229],description:`Added browser.web_vital.cls.value attribute`}]},"browser.web_vital.fcp.value":{brief:`The time it takes for the browser to render the first piece of meaningful content on the screen`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:547.6951,aliases:[`fcp`],changelog:[{version:`0.5.0`,prs:[235]}]},"browser.web_vital.fp.value":{brief:`The time in milliseconds it takes for the browser to render the first pixel on the screen`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:477.1926,aliases:[`fp`],changelog:[{version:`0.5.0`,prs:[235]}]},"browser.web_vital.inp.value":{brief:`The value of the recorded Interaction to Next Paint (INP) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:200,aliases:[`inp`],changelog:[{version:`0.5.0`,prs:[229],description:`Added browser.web_vital.inp.value attribute`}]},"browser.web_vital.lcp.element":{brief:`The HTML element selector or component name for which LCP was reported`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`body > div#app > div#container > div`,aliases:[`lcp.element`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.id":{brief:`The id of the dom element responsible for the largest contentful paint`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`#gero`,aliases:[`lcp.id`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.load_time":{brief:`The time it took for the LCP element to be loaded`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1402,aliases:[`lcp.loadTime`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.render_time":{brief:`The time it took for the LCP element to be rendered`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1685,aliases:[`lcp.renderTime`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.report_event":{brief:`The event that caused the SDK to report LCP (pagehide or navigation)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`pagehide`,changelog:[{version:`0.5.0`,prs:[319],description:`Added browser.web_vital.lcp.report_event attribute`}]},"browser.web_vital.lcp.size":{brief:`The size of the largest contentful paint element`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1024,aliases:[`lcp.size`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.url":{brief:`The url of the dom element responsible for the largest contentful paint`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`https://example.com/static/img.png`,aliases:[`lcp.url`],changelog:[{version:`0.5.0`,prs:[233]}]},"browser.web_vital.lcp.value":{brief:`The value of the recorded Largest Contentful Paint (LCP) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2500,aliases:[`lcp`],changelog:[{version:`0.5.0`,prs:[229],description:`Added browser.web_vital.lcp.value attribute`}]},"browser.web_vital.ttfb.request_time":{brief:`The time it takes for the server to process the initial request and send the first byte of a response to the user's browser`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1554.5814,aliases:[`ttfb.requestTime`],changelog:[{version:`0.5.0`,prs:[235]}]},"browser.web_vital.ttfb.value":{brief:`The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:194.3322,aliases:[`ttfb`],changelog:[{version:`0.5.0`,prs:[235]}]},"cache.hit":{brief:`If the cache was hit during this span.`,type:`boolean`,applyScrubbing:{key:`manual`}
13,isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"cache.item_size":{brief:`The size of the requested item in the cache. In bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:58,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cache.key":{brief:`The key of the cache accessed.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:[`my-cache-key`,`my-other-cache-key`],changelog:[{version:`0.0.0`}]},"cache.operation":{brief:`The operation being performed on the cache.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`get`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"cache.ttl":{brief:`The ttl of the cache in seconds`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:120,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cache.write":{brief:`If the cache operation resulted in a write to the cache.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`}]},channel:{brief:`The channel name that is being used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`mail`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"client.address":{brief:`Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`example.com`,aliases:[`http.client_ip`],changelog:[{version:`0.1.0`,prs:[106,127]},{version:`0.0.0`}]},"client.port":{brief:`Client port number.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:5432,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cloudflare.d1.duration":{brief:`The duration of a Cloudflare D1 operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:543,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cloudflare.d1.query_type":{brief:`The type of query executed in a Cloudflare D1 operation`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`run`,deprecation:{replacement:`db.operation.name`},aliases:[`db.operation.name`,`db.operation`],changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.d1.query_type attribute`}]},"cloudflare.d1.rows_read":{brief:`The number of rows read in a Cloudflare D1 operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cloudflare.d1.rows_written":{brief:`The number of rows written in a Cloudflare D1 operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"cloudflare.durable_object.query.bindings":{brief:`The number of bound parameters passed to the SQL exec call.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2,changelog:[{version:`0.13.0`,prs:[435],description:`Added cloudflare.durable_object.query.bindings attribute`}]},"cloudflare.durable_object.response.rows_read":{brief:`The number of rows read by a Cloudflare Durable Object SQL operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12,changelog:[{version:`0.13.0`,prs:[435],description:`Added cloudflare.durable_object.response.rows_read attribute`}]},"cloudflare.durable_object.response.rows_written":{brief:`The number of rows written by a Cloudflare Durable Object SQL operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.13.0`,prs:[435],description:`Added cloudflare.durable_object.response.rows_written attribute`}]},"cloudflare.r2.bucket":{brief:`The name of the Cloudflare R2 bucket binding`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`MY_BUCKET`,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.bucket attribute`}]},"cloudflare.r2.operation":{brief:`The R2 API operation being performed`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GetObject`,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.operation attribute`}]},"cloudflare.r2.request.delimiter":{brief:`The delimiter used to group objects in an R2 list operation`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`/`,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.request.delimiter attribute`}]},"cloudflare.r2.request.key":{brief:`The object key used in the R2 operation`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-file.txt`,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.request.key attribute`}]},"cloudflare.r2.request.part_number":{brief:`The part number in a multipart upload operation`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.request.part_number attribute`}]},"cloudflare.r2.request.prefix":{brief:`The prefix used to filter objects in an R2 list operation`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`images/`,changelog:[{version:`0.11.1`,prs:[413],description:`Added cloudflare.r2.request.prefix attribute`}]},"cloudflare.workflow.attempt":{brief:`The current attempt number for a Cloudflare Workflow step`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.workflow.attempt attribute`}]},"cloudflare.workflow.retries.backoff":{brief:`The backoff strategy for Cloudflare Workflow step retries`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`exponential`,changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.workflow.retries.backoff attribute`}]},"cloudflare.workflow.retries.delay":{brief:`The delay between Cloudflare Workflow step retries`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`5 seconds`,changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.workflow.retries.delay attribute`}]},"cloudflare.workflow.retries.limit":{brief:`The maximum number of retries for a Cloudflare Workflow step`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3,changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.workflow.retries.limit attribute`}]},"cloudflare.workflow.timeout":{brief:`The timeout duration for a Cloudflare Workflow step`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1 minute`,changelog:[{version:`0.11.0`,prs:[392],description:`Added cloudflare.workflow.timeout attribute`}]},"cloud.account.id":{brief:`The cloud account ID the resource is assigned to`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`123456789012`,changelog:[{version:`0.7.0`,prs:[364],description:`Added cloud.account.id attribute`}]},"cloud.availability_zone":{brief:`Cloud regions often have multiple, isolated locations known as zones to increase availability`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`us-east-1c`,changelog:[{version:`0.7.0`,prs:[364],description:`Added cloud.availability_zone attribute`}]},"cloud.platform":{brief:`The cloud platform in use`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`aws_lambda`,changelog:[{version:`0.7.0`,prs:[364],description:`Added cloud.platform attribute`}]},"cloud.provider":{brief:`Name of the cloud provider`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`aws`,changelog:[{version:`0.7.0`,prs:[364],description:`Added cloud.provider attribute`}]},"cloud.region":{brief:`The geographical region the resource is running`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`us-east-1`,changelog:[{version:`0.7.0`,prs:[364],description:`Added cloud.region attribute`}]},"cloud.resource_id":{brief:`Cloud provider-specific native identifier of the monitored cloud resource`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`,aliases:[`faas.id`],
13changelog:[{version:`0.16.0`,prs:[475],description:`Added faas.id as an alias`},{version:`0.11.1`,prs:[414]}],additionalContext:["This can be an identifier for a resource in AWS, GCP, or Azure. There may be some overlap in values found here with other attributes. For instance, an AWS lambda ARN may be found here as well as in `aws.lambda.invoked_arn`. OTEL recommends setting them alongside each other."]},cls:{brief:`The value of the recorded Cumulative Layout Shift (CLS) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.2361,deprecation:{replacement:`browser.web_vital.cls.value`,reason:`The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.`},aliases:[`browser.web_vital.cls.value`],changelog:[{version:`0.5.0`,prs:[229],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"cls.source.<key>":{brief:`The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`body > div#app`,deprecation:{replacement:`browser.web_vital.cls.source.<key>`,reason:`The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.`},aliases:[`browser.web_vital.cls.source.<key>`],changelog:[{version:`0.5.0`,prs:[234]}]},"code.filepath":{brief:`The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`/app/myapplication/http/handler/server.py`,deprecation:{replacement:`code.file.path`},aliases:[`code.file.path`],changelog:[{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"code.file.path":{brief:`The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`/app/myapplication/http/handler/server.py`,aliases:[`code.filepath`],changelog:[{version:`0.0.0`}]},"code.function":{brief:`The method or function name, or equivalent (usually rightmost part of the code unit's name).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`server_request`,aliases:[`code.function.name`],changelog:[{version:`0.1.0`,prs:[61,74]},{version:`0.0.0`}]},"code.function.name":{brief:`The method or function fully-qualified name without arguments.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`server_request`,aliases:[`code.function`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"code.lineno":{brief:`The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:42,deprecation:{replacement:`code.line.number`},aliases:[`code.line.number`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61,108]},{version:`0.0.0`}]},"code.line.number":{brief:`The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:42,aliases:[`code.lineno`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"code.namespace":{brief:`The 'namespace' within which code.function is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function form a unique identifier for the code unit.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`http.handler`,changelog:[{version:`0.1.0`,prs:[61,74]},{version:`0.0.0`}]},connectionType:{brief:`Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`wifi`,deprecation:{replacement:`network.connection.type`,reason:`Old namespace-less attribute, to be replaced with
13network.connection.type for span-first future`},aliases:[`network.connection.type`,`device.connection_type`],changelog:[{version:`0.5.0`,prs:[279],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"connection.rtt":{brief:`Specifies the estimated effective round-trip time of the current connection, in milliseconds.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,deprecation:{replacement:`network.connection.rtt`,reason:`Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future`},aliases:[`network.connection.rtt`],changelog:[{version:`0.5.0`,prs:[279],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"culture.calendar":{brief:`The calendar system used by the culture.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GregorianCalendar`,changelog:[{version:`0.4.0`,prs:[243]}]},"culture.display_name":{brief:`Human readable name of the culture.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`English (United States)`,changelog:[{version:`0.4.0`,prs:[243]}]},"culture.is_24_hour_format":{brief:`Whether the culture uses 24-hour time format.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.4.0`,prs:[243]}]},"culture.locale":{brief:`The locale identifier following RFC 4646.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`en-US`,changelog:[{version:`0.4.0`,prs:[243]}]},"culture.timezone":{brief:`The timezone of the culture, as a geographic timezone identifier.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Europe/Vienna`,changelog:[{version:`0.4.0`,prs:[243]}]},"db.collection.name":{brief:`The name of a collection (table, container) within the database.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`users`,changelog:[{version:`0.1.0`,prs:[106,127]},{version:`0.0.0`}]},"db.driver.name":{brief:`The name of the driver used for the database connection.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`psycopg2`,changelog:[{version:`0.5.0`,prs:[297],description:`Added db.driver.name attribute`}]},"db.name":{brief:`The name of the database being accessed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`customers`,deprecation:{replacement:`db.namespace`},aliases:[`db.namespace`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"db.namespace":{brief:`The name of the database being accessed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`customers`,aliases:[`db.name`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.operation":{brief:`The name of the operation being executed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`SELECT`,deprecation:{replacement:`db.operation.name`},aliases:[`db.operation.name`,`cloudflare.d1.query_type`],changelog:[{version:`0.4.0`,prs:[199]},{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"db.operation.batch.size":{brief:`The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:3,changelog:[{version:`0.11.0`,prs:[407],description:`Added db.operation.batch.size attribute`}]},"db.operation.name":{brief:`The name of the operation being executed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`SELECT`,aliases:[`db.operation`,`cloudflare.d1.query_type`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.query.parameter.<key>":{brief:`A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,hasDynamicSuffix:!0,example:`db.query.parameter.foo='123'`,changelog:[{version:`0.1.0`,prs:[103,127]}]},"db.query.summary":{brief:`A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`SELECT users`,changelog:[{version:`0.4.0`,prs:[208]},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.query.text":{brief:"The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`SELECT * FROM users WHERE
13id = $1`,aliases:[`db.statement`],changelog:[{version:`0.4.0`,prs:[208]},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.redis.connection":{brief:`The redis connection name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-redis-instance`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.redis.key":{brief:`The key the Redis command is operating on.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`user:2047:city`,changelog:[{version:`0.6.0`,prs:[326],description:`Added db.redis.key attribute`}]},"db.redis.parameters":{brief:`The array of command parameters given to a redis command.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`test`,`*`],changelog:[{version:`0.0.0`}]},"db.response.status_code":{brief:`Database response status code. The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`ORA-17002`,changelog:[{version:`0.16.0`,prs:[462],description:`Added db.response.status_code attribute`}]},"db.sql.bindings":{brief:`The array of query bindings.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:[`1`,`foo`],deprecation:{replacement:`db.query.parameter.<key>`,reason:`Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.<key>.`},changelog:[{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"db.statement":{brief:`The database statement being executed.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`SELECT * FROM users`,deprecation:{replacement:`db.query.text`},aliases:[`db.query.text`],changelog:[{version:`0.4.0`,prs:[199]},{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"db.stored_procedure.name":{brief:`The name of a stored procedure being called.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`GetUserById`,changelog:[{version:`0.11.0`,prs:[398]}]},"db.system":{brief:`An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`postgresql`,deprecation:{replacement:`db.system.name`},aliases:[`db.system.name`],changelog:[{version:`0.4.0`,prs:[199,224]},{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"db.system.name":{brief:`An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`postgresql`,aliases:[`db.system`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"db.user":{brief:`The database user.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`fancy_user`,changelog:[{version:`0.0.0`}]},deviceMemory:{brief:`The estimated total memory capacity of the device, only a rough estimation in gigabytes.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`8 GB`,deprecation:{replacement:`device.memory.estimated_capacity`,reason:`Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future`},aliases:[`device.memory.estimated_capacity`],changelog:[{version:`0.5.0`,prs:[281],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"device.archs":{brief:`The CPU architectures of the device.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:[`arm64-v8a`,`armeabi-v7a`,`armeabi`],changelog:[{version:`0.5.0`,prs:[303],description:`Added device.archs attribute`}]},"device.battery_level":{brief:`The battery level of the device as a percentage (0-100).`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.battery_level attribute`}]},"device.battery_temperature":{brief:`The battery temperature of the device in Celsius.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:25,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.battery_temperature attribute`}]},"device.boot_time":{brief:`A formatted UTC timestamp when the system was booted.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2018-02-08T12:52:12Z`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.boot_time attribute`}]},"device.brand":{brief:`The brand of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Apple`,changelog:[{version:`0.1.0`,prs:[116,127]}]},"device.charging":{brief:`Whether the device was charging or not.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!1,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.charging attribute`}]},"device.chipset":{brief:`The chipset of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Qualcomm SM8550`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.chipset attribute`}]},"device.class":{brief:"The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`medium`,changelog:[{version:`0.5.0`,prs:[300],description:`Added device.class attribute`}]},"device.connection_type":{brief:`The internet connection type currently being used by the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`wifi`,deprecation:{replacement:`network.connection.type`,reason:`This attribute is being deprecated
13in favor of network.connection.type`},aliases:[`network.connection.type`,`connectionType`],changelog:[{version:`0.5.0`,prs:[303],description:`Added and deprecated device.connection_type in favor of network.connection.type`}]},"device.cpu_description":{brief:`A description of the CPU of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.cpu_description attribute`}]},"device.external_free_storage":{brief:`External storage free size in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:67108864e3,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.external_free_storage attribute`}]},"device.external_storage_size":{brief:`External storage total size in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:134217728e3,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.external_storage_size attribute`}]},"device.family":{brief:`The family of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`iPhone`,changelog:[{version:`0.1.0`,prs:[116,127]}]},"device.free_memory":{brief:`Free system memory in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2147483648,changelog:[{version:`0.5.0`,prs:[300],description:`Added device.free_memory attribute`}]},"device.free_storage":{brief:`Free device storage in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:107374182400,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.free_storage attribute`}]},"device.id":{brief:`Unique device identifier.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`a1b2c3d4-e5f6-7890-abcd-ef1234567890`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.id attribute`}]},"device.locale":{brief:`The locale of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`en-US`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.locale attribute`}]},"device.low_memory":{brief:`Whether the device was low on memory.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!1,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.low_memory attribute`}]},"device.low_power_mode":{brief:`Whether the device is in Low Power Mode.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.6.0`,prs:[314],description:`Added device.low_power_mode attribute`}]},"device.manufacturer":{brief:`The manufacturer of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Google`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.manufacturer attribute`}]},"device.memory.estimated_capacity":{brief:`The estimated total memory capacity of the device, only a rough estimation in gigabytes. Browsers report estimations in buckets of powers of 2, mostly capped at 8 GB`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:8,aliases:[`deviceMemory`],changelog:[{version:`0.5.0`,prs:[281],description:`Added attribute device.memory.estimated_capacity to be used instead of deviceMemory`}]},"device.memory_size":{brief:`Total system memory available in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:17179869184,changelog:[{version:`0.5.0`,prs:[300],description:`Added device.memory_size attribute`}]},"device.model":{brief:`The model of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`iPhone 15 Pro Max`,changelog:[{version:`0.1.0`,prs:[116,127]}]},"device.model_id":{brief:`An internal hardware revision to identify the device exactly.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`N861AP`,changelog:[{version:`0.5.0`,prs:[300],description:`Added device.model_id attribute`}]},"device.name":{brief:`The name of the device. On mobile, this is the user-assigned device name. On servers and desktops, this is typically the hostname.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`localhost`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.name attribute`}]},"device.online":{brief:`Whether the device was online or not.`,type:`boolean`,applyScrubbing:{key:`manual`}
13,isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.online attribute`}]},"device.orientation":{brief:`The orientation of the device, either "portrait" or "landscape".`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`portrait`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.orientation attribute`}]},"device.processor_count":{brief:`Number of "logical processors".`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:8,aliases:[`hardwareConcurrency`],changelog:[{version:`0.5.0`,prs:[300],description:`Added and deprecated attribute device.processor_count in favor of device.cpu.logical_core_count`}]},"device.processor_frequency":{brief:`Processor frequency in MHz.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2400,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.processor_frequency attribute`}]},"device.screen_density":{brief:`The screen density of the device.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2.625,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.screen_density attribute`}]},"device.screen_dpi":{brief:`The screen density in dots-per-inch (DPI) of the device.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:420,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.screen_dpi attribute`}]},"device.screen_height_pixels":{brief:`The height of the device screen in pixels.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2400,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.screen_height_pixels attribute`}]},"device.screen_width_pixels":{brief:`The width of the device screen in pixels.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1080,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.screen_width_pixels attribute`}]},"device.simulator":{brief:`Whether the device is a simulator or an actual device.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!1,changelog:[{version:`0.5.0`,prs:[300],description:`Added device.simulator attribute`}]},"device.storage_size":{brief:`Total device storage in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:274877906944,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.storage_size attribute`}]},"device.thermal_state":{brief:"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum: `nominal`, `fair`, `serious`, or `critical`.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`nominal`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.thermal_state attribute`}]},"device.timezone":{brief:`The timezone of the device.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Europe/Vienna`,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.timezone attribute`}]},"device.usable_memory":{brief:`Memory usable for the app in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2147483648,changelog:[{version:`0.5.0`,prs:[303],description:`Added device.usable_memory attribute`}]},dist:{brief:`The sentry dist.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`1.0`,deprecation:{replacement:`sentry.dist`,reason:`This attribute is being deprecated
13in favor of sentry.dist.`},aliases:[`sentry.dist`],changelog:[{version:`0.16.0`,prs:[489],description:`Added dist attribute`}]},effectiveConnectionType:{brief:`Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`4g`,deprecation:{replacement:`network.connection.effective_type`,reason:`Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future`},aliases:[`network.connection.effective_type`],changelog:[{version:`0.5.0`,prs:[279],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},environment:{brief:`The sentry environment.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`production`,deprecation:{replacement:`sentry.environment`},aliases:[`sentry.environment`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"error.type":{brief:`Describes a class of error the operation ended with.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`timeout`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"event.id":{brief:`The unique identifier for this event (log record)`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234567890,changelog:[{version:`0.1.0`,prs:[101]}]},"event.name":{brief:`The name that uniquely identifies this event (log record)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Process Payload`,changelog:[{version:`0.1.0`,prs:[101,127]}]},"exception.escaped":{brief:`SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"exception.message":{brief:`The error message.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`ENOENT: no such file or directory`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"exception.stacktrace":{brief:`A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`Exception in thread "main" java.lang.RuntimeException: Test exception 14 at com.example.GenerateTrace.methodB(GenerateTrace.java:13) 15 at com.example.GenerateTrace.methodA(GenerateTrace.java:9) 16 at com.example.GenerateTrace.main(GenerateTrace.java:5)`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"exception.type":{brief:`The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`OSError`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"faas.coldstart":{brief:`A boolean that is true if the serverless function is executed for the first time (aka cold-start).`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"faas.cron":{brief:`A string containing the schedule period as Cron Expression.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`0/5 * * * ? *`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"faas.duration_in_ms":{brief:`The duration a function took to run, in milliseconds.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:120,changelog:[{version:`0.11.0`,prs:[403]}]},"faas.entry_point":{brief:`The code that's run when the cloud provider invokes your function.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my_main_function`,changelog:[{version:`0.11.0`,prs:[403,415]}]},"faas.execution":{brief:`The execution ID of the current function execution.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`af9d5aa4-a685-4c5f-a22b-444f80b3cc28`,deprecation:{replacement:`faas.invocation_id`,reason:`This attribute is being deprecated
16in favor of faas.invocation_id, which is the OTel-aligned replacement.`},aliases:[`faas.invocation_id`,`aws.lambda.aws_request_id`],changelog:[{version:`0.16.0`,prs:[473],description:`Added faas.execution attribute, deprecated in favor of faas.invocation_id`}]},"faas.id":{brief:`The unique ID of the single function that this runtime instance executes.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`,deprecation:{replacement:`cloud.resource_id`,reason:`This attribute is being deprecated in favor of cloud.resource_id, which is the OTel-aligned replacement (renamed in OTel semantic conventions v1.19.0).`},aliases:[`cloud.resource_id`],changelog:[{version:`0.16.0`,prs:[475],description:`Added faas.id attribute, deprecated in favor of cloud.resource_id`}]},"faas.identity":{brief:`The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`[email protected] (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)`,changelog:[{version:`0.11.0`,prs:[403]}]},"faas.invocation_id":{brief:`The invocation ID of the current function invocation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`af9d5aa4-a685-4c5f-a22b-444f80b3cc28`,aliases:[`aws.lambda.aws_request_id`,`faas.execution`],changelog:[{version:`0.16.0`,prs:[473],description:`Added faas.execution as an alias`},{version:`0.11.1`,prs:[414,424]}]},"faas.invoked_name":{brief:`The name of the invoked function.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`my-function`,changelog:[{version:`0.16.0`,prs:[481],description:`Added faas.invoked_name attribute`}]},"faas.invoked_provider":{brief:`The cloud provider of the invoked function.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`aws`,changelog:[{version:`0.16.0`,prs:[481],description:`Added faas.invoked_provider attribute`}]},"faas.invoked_region":{brief:`The cloud region of the invoked function.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`eu-central-1`,changelog:[{version:`0.16.0`,prs:[481],description:`Added faas.invoked_region attribute`}]},"faas.name":{brief:`The name of the serverless function`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`my_function`,aliases:[`aws.lambda.function_name`],changelog:[{version:`0.11.0`,prs:[403,415]}]},"faas.time":{brief:`A string containing the function invocation time in the ISO 8601 format expressed in UTC.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`2020-01-23T13:47:06Z`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"faas.trigger":{brief:`Type of the trigger which caused this function invocation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`timer`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"faas.version":{brief:`The version of the function that was invoked`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`$LATEST`,aliases:[`aws.lambda.function_version`],changelog:[{version:`0.11.1`,prs:[414,424]}]},fcp:{brief:`The time it takes for the browser to render the first piece of meaningful content on the screen`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:547.6951,deprecation:{replacement:`browser.web_vital.fcp.value`,reason:`This attribute is being deprecated
16in favor of browser.web_vital.fcp.value`},aliases:[`browser.web_vital.fcp.value`],changelog:[{version:`0.5.0`,prs:[235]}]},"flag.evaluation.<key>":{brief:`An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The <key> suffix is the name of the feature flag.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`flag.evaluation.is_new_ui=true`,changelog:[{version:`0.1.0`,prs:[103]}]},fp:{brief:`The time it takes for the browser to render the first pixel on the screen`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:477.1926,deprecation:{replacement:`browser.web_vital.fp.value`,reason:`This attribute is being deprecated in favor of browser.web_vital.fp.value`},aliases:[`browser.web_vital.fp.value`],changelog:[{version:`0.5.0`,prs:[235]}]},"frames.delay":{brief:`The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:5,deprecation:{replacement:`app.vitals.frames.delay.value`,reason:`Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.frames.delay.value`],changelog:[{version:`0.5.0`,prs:[313],description:`Deprecated in favor of app.vitals.frames.delay.value`},{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"frames.frozen":{brief:`The number of frozen frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3,deprecation:{replacement:`app.vitals.frames.frozen.count`,reason:`Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.frames.frozen.count`],changelog:[{version:`0.5.0`,prs:[313],description:`Deprecated in favor of app.vitals.frames.frozen.count`},{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},frames_frozen_rate:{brief:"The rate of frozen frames, or `app_vitals.frames.frozen.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.7.0`,prs:[362],description:`Added frames_frozen_rate attribute`}]},"frames.slow":{brief:`The number of slow frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,deprecation:{replacement:`app.vitals.frames.slow.count`,reason:`Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.frames.slow.count`],changelog:[{version:`0.5.0`,prs:[313],description:`Deprecated in favor of app.vitals.frames.slow.count`},{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},frames_slow_rate:{brief:"The rate of slow frames, or `app_vitals.frames.slow.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.7.0`,prs:[362],description:`Added frames_slow_rate attribute`}]},"frames.total":{brief:`The number of total frames rendered during the lifetime of the span.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:60,deprecation:{replacement:`app.vitals.frames.total.count`,reason:`Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.frames.total.count`],changelog:[{version:`0.5.0`,prs:[313],description:`Deprecated in favor of app.vitals.frames.total.count`},{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},fs_error:{brief:`The error message of a file system error.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`ENOENT: no such file or directory`,deprecation:{replacement:`error.type`,reason:`This attribute is not part of the OpenTelemetry specification and error.type fits much better.`},changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"gcp.function.context.event_id":{brief:`The event ID from the legacy GCP Cloud Function context (1st gen)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1234567890`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.event_id attribute`}]},"gcp.function.context.event_type":{brief:`The type of the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`google.pubsub.topic.publish`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.event_type attribute`}]}
16,"gcp.function.context.id":{brief:`The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1234567890`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.id attribute`}]},"gcp.function.context.resource":{brief:`The resource that triggered the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`projects/my-project/topics/my-topic`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.resource attribute`}]},"gcp.function.context.source":{brief:`The source of the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`//pubsub.googleapis.com/projects/my-project/topics/my-topic`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.source attribute`}]},"gcp.function.context.specversion":{brief:`The CloudEvents specification version of the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1.0`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.specversion attribute`}]},"gcp.function.context.time":{brief:`The timestamp of the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2024-01-01T00:00:00.000Z`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.time attribute`}]},"gcp.function.context.timestamp":{brief:`The legacy timestamp of the GCP Cloud Function event`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`2024-01-01T00:00:00.000Z`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.timestamp attribute`}]},"gcp.function.context.type":{brief:`The type of the GCP Cloud Function event context`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`cloud_functions.context`,changelog:[{version:`0.7.0`,prs:[371],description:`Added gcp.function.context.type attribute`}]},"gcp.project.id":{brief:`The ID of the project in GCP that this resource is associated with`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-project-123`,changelog:[{version:`0.11.0`,prs:[403]}]},"gen_ai.agent.name":{brief:`The name of the agent being used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`ResearchAssistant`,changelog:[{version:`0.1.0`,prs:[62,127]}]},"gen_ai.context.utilization":{brief:`The fraction of the model context window utilized by this generation.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.75,changelog:[{version:`0.5.0`,prs:[315],description:`Added gen_ai.context.utilization attribute`}]},"gen_ai.context.window_size":{brief:`The maximum context window size supported by the model for this generation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:128e3,changelog:[{version:`0.5.0`,prs:[315],description:`Added gen_ai.context.window_size attribute`}]},"gen_ai.conversation.id":{brief:`The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`conv_5j66UpCpwteGg4YSxUnt7lPY`,changelog:[{version:`0.4.0`,prs:[250]}]},"gen_ai.cost.cache_creation.input_tokens":{brief:`The cost of input tokens written to cache in USD.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12.34,changelog:[{version:`0.16.0`,description:`Added gen_ai.cost.cache_creation.input_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.cache_creation.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_creation.input_tokens.`,`This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens â it is already included.`]},"gen_ai.cost.cache_read.input_tokens":{brief:`The cost of cached input tokens in USD.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12.34,changelog:[{version:`0.16.0`,description:`Added gen_ai.cost.cache_read.input_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.cache_read.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_read.input_tokens.`,`This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens â it is already included.`]},"gen_ai.cost.input_tokens":{brief:`The total cost of all input tokens in USD (includes cached and cache
16creation tokens).`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:123.45,changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[112]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.input_tokens.`,`This is the total cost of all input tokens, including cached and cache creation tokens at their respective rates. For the cached portion, see gen_ai.cost.cache_read.input_tokens. For the cache creation portion, see gen_ai.cost.cache_creation.input_tokens.`]},"gen_ai.cost.output_tokens":{brief:`The total cost of all output tokens in USD (includes reasoning tokens).`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:123.45,changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[112]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.output_tokens.`,`This is the total cost of all output tokens, including reasoning tokens at their respective rate. For the reasoning portion, see gen_ai.cost.reasoning.output_tokens.`]},"gen_ai.cost.reasoning.output_tokens":{brief:`The cost of reasoning output tokens in USD.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12.34,changelog:[{version:`0.16.0`,description:`Added gen_ai.cost.reasoning.output_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.reasoning.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.reasoning.output_tokens.`,`This is a subset of gen_ai.cost.output_tokens, not an independent cost. Do not sum this with gen_ai.cost.output_tokens â it is already included.`]},"gen_ai.cost.total_tokens":{brief:`The total cost for the tokens used.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12.34,aliases:[`ai.total_cost`],changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.5.0`,prs:[264]},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[126]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`Despite the name 'cost.total_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.total_tokens.`]},"gen_ai.embeddings.input":{brief:`The input to the embeddings model.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`What's the weather in Paris?`,changelog:[{version:`0.3.1`,prs:[195]}]},"gen_ai.function_id":{brief:`Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-awesome-function`,changelog:[{version:`0.5.0`,prs:[308],description:`Added gen_ai.function_id attribute`}]},"gen_ai.input.messages":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. For messages of the role `"tool"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: "text", text:"..."}`.',type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`[{"role": "user", "parts": [{"type": "text", "content": "Weather in Paris?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_VSPygqKTWdrhaFErNvMV18Yl", "n
16ame": "get_weather", "arguments": {"location": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_VSPygqKTWdrhaFErNvMV18Yl", "result": "rainy, 57°F"}]}]`,aliases:[`ai.texts`],changelog:[{version:`0.5.0`,prs:[264]},{version:`0.4.0`,prs:[221]}]},"gen_ai.operation.name":{brief:`The name of the operation being performed. It has the following list of well-known values: 'chat', 'create_agent', 'embeddings', 'execute_tool', 'generate_content', 'invoke_agent', 'text_completion'. If one of them applies, then that value MUST be used. Otherwise a custom value MAY be used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`chat`,changelog:[{version:`0.4.0`,prs:[225]},{version:`0.1.0`,prs:[62,127]}]},"gen_ai.operation.type":{brief:`The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`tool`,changelog:[{version:`0.4.0`,prs:[257]},{version:`0.1.0`,prs:[113,127]}]},"gen_ai.output.messages":{brief:`The model's response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`[{"role": "assistant", "parts": [{"type": "text", "content": "The weather in Paris is currently rainy with a temperature of 57°F."}], "finish_reason": "stop"}]`,changelog:[{version:`0.4.0`,prs:[221]}]},"gen_ai.pipeline.name":{brief:`Name of the AI pipeline or chain being executed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Autofix Pipeline`,aliases:[`ai.pipeline.name`],changelog:[{version:`0.1.0`,prs:[76,127]}]},"gen_ai.prompt":{brief:`The input messages sent to the model`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`[{"role": "user", "message": "hello"}]`,deprecation:{reason:`Deprecated from OTEL, use gen_ai.input.messages with the new format instead.`},changelog:[{version:`0.1.0`,prs:[74,108,119]},{version:`0.0.0`}]},"gen_ai.prompt.name":{brief:`The name of the prompt that uniquely identifies it.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Prompt names may reveal user behavior patterns or sensitive operations`},isInOtel:!0,visibility:`public`,example:`summarize_text`,aliases:[`mcp.prompt.name`],changelog:[{version:`0.12.0`,prs:[420],description:`Added gen_ai.prompt.name attribute`}]},"gen_ai.provider.name":{brief:`The Generative AI provider as identified by the client or server instrumentation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`openai`,aliases:[`ai.model.provider`,`gen_ai.system`],changelog:[{version:`0.4.0`,prs:[253]}]},"gen_ai.request.available_tools":{brief:`The available tools for the model. It has to be a stringified version of an array of objects.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`[{"name": "get_weather", "description": "Get the weather for a given location"}, {"name": "get_news", "description": "Get the news for a given topic"}]`,deprecation:{replacement:`gen_ai.tool.definitions`},changelog:[{version:`0.4.0`,prs:[221]},{version:`0.1.0`,prs:[63,127]}]},"gen_ai.request.frequency_penalty":{brief:`Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:.5,aliases:[`ai.frequency_penalty`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}]},"gen_ai.request.max_tokens":{brief:`The maximum number of tokens to generate in the response.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:2048,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[62]}]},"gen_ai.request.messages":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. For messages of the role `"tool"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: "text", text:"..."}`.',type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`[{"role": "system", "content": "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}, {"role": "tool", "content": {"toolCallId": "1", "toolName": "Weather", "output": "rainy"}}]`,deprecation:{replacement:`gen_ai.input.messages`},aliases:[`ai.input_messages`],changelog:[{version:`0.4.0`,prs:[221]},{version:`0.1.0`,prs:[63,74,108,119,122]}]},"gen_ai.request.model":{brief:`The model identifier being used for the request.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`gpt-4-turbo-preview`,changelog:[{version:`0.1.0`,prs:[62,127]}]},"gen_ai.request.presence_penalty":{brief:`Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is a
16pplied equally to all tokens that have already appeared, regardless of their exact frequencies.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:.5,aliases:[`ai.presence_penalty`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}]},"gen_ai.request.reasoning_effort":{brief:`Constrains the effort on reasoning for reasoning models. Supported values vary by provider.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`high`,changelog:[{version:`0.13.0`,prs:[334],description:`Added gen_ai.request.reasoning_effort attribute`}]},"gen_ai.request.seed":{brief:`The seed, ideally models given the same seed and same other parameters will produce the exact same output.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1234567890`,aliases:[`ai.seed`],changelog:[{version:`0.1.0`,prs:[57,127]}]},"gen_ai.request.stop_sequences":{brief:`List of sequences that the model will use to stop generating further tokens.`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:[`forest`,`lived`],changelog:[{version:`0.16.0`,prs:[482],description:`Added gen_ai.request.stop_sequences attribute`}]},"gen_ai.request.temperature":{brief:`For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:.1,aliases:[`ai.temperature`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}]},"gen_ai.request.top_k":{brief:`Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:35,aliases:[`ai.top_k`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}]},"gen_ai.request.top_p":{brief:`Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:.7,aliases:[`ai.top_p`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}]},"gen_ai.response.finish_reasons":{brief:`The reason why the model stopped generating.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`COMPLETE`,aliases:[`ai.finish_reason`],changelog:[{version:`0.1.0`,prs:[57,127]}]},"gen_ai.response.id":{brief:`Unique identifier for the completion.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`gen_123abc`,aliases:[`ai.generation_id`],changelog:[{version:`0.1.0`,prs:[57,127]}]},"gen_ai.response.model":{brief:`The vendor-specific ID of the model used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`gpt-4`,aliases:[`ai.model_id`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"gen_ai.response.streaming":{brief:`Whether or not the AI model call's response was streamed back asynchronously`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,aliases:[`ai.streaming`],changelog:[{version:`0.1.0`,prs:[76]}]},"gen_ai.response.text":{brief:`The model's response text messages. It has to be a stringified version of an array of response text messages.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`["The weather in Paris is rainy and overcast, with temperatures around 57°F", "The weather in London is sunny and warm, with temperatures around 65°F"]`,deprecation:{replacement:`gen_ai.output.messages`},changelog:[{version:`0.4.0`,prs:[221]},{version:`0.1.0`,prs:[63,74]}]},"gen_ai.response.time_to_first_chunk":{brief:`Time in seconds when the first response content chunk arrived in streaming responses.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:.6853435,aliases:[`gen_ai.response.time_to_first_token`],changelog:[{version:`0.11.0`,prs:[418],description:`Added gen_ai.response.time_to_first_chunk attribute`}]},"gen_ai.response.time_to_first_token":{brief:`Time in seconds when the first response content chunk arrived in streaming responses.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.6853435,deprecation:{replacement:`gen_ai.response.time_to_first_chunk`},aliases:[`gen_ai.response.time_to_first_chunk`],changelog:[{version:`0.11.0`,prs:[418],description:`Deprecate in favor of gen_ai.response.time_to_first_chunk`},{version:`0.4.0`,prs:[227]}]},"gen_ai.response.tokens_per_second":{brief:`The total output tokens per seconds throughput`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:12345.67,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[66]}]},"gen_ai.response.tool_calls":{brief:`The tool calls in the model's response. It has to be a stringified version of an array of objects.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`[{"name": "get_weather", "arguments": {"location": "Paris"}}]`,deprecation:{replacement:`gen_ai.output.messages`},changelog:[{version:`0.4.0`,prs:[221]},{version:`0.1.0`,prs:[63,74]}]},"gen_ai.system":{brief:`The provider of the model.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`openai`,deprecation:{replacement:`gen_ai.provider.name`},aliases:[`ai.model.provider`,`gen_ai.provider.name`],changelog:[{version:`0.4.0`,prs:[253]},{version:`0.1.0`,prs:[57,127]}]},"gen_ai.system_instructions":{brief:`The system instructions passed to the model.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`You are a helpful assistant`,aliases:[`ai.preamble`],changelog:[{version:`0.5.0`,prs:[264]},{version:`0.4.0`,prs:[221]}]},"gen_ai.system.message":{brief:`The system instructions passed to the model.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`You are a helpful assistant`,deprecation:{replacement:`gen_ai.system_instructions`},changelog:[{version:`0.4.0`,prs:[221]},{version:`0.1.0`,prs:[62]}]},"gen_ai.tool.call.arguments":{brief:`The arguments of the tool call. It has to be a stringified version of the arguments to the tool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`{"location": "Paris"}`,aliases:[`gen_ai.tool.input`],changelog:[{version:`0.5.0`,prs:[265]},{version:`0.4.0`,prs:[221]}]},"gen_ai.tool.call.result":{brief:`The result of the tool call. It has to be a stringified version of the result of the tool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`rainy, 57°F`,aliases:[`gen_ai.tool.output`,`gen_ai.tool.message`,`mcp.tool.result.content`],changelog:[{version:`0.5.0`,prs:[265]},{version:`0.4.0`,prs:[221]}]},"gen_ai.tool.definitions":{brief:`The list of source system tool definitions available to the GenAI agent or model.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`[{"type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location", "unit"]}}]`,changelog:[{version:`0.4.0`,prs:[221]}]},"gen_ai.tool.description":{brief:`The description of the tool being used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Searches the web for current information about a to
16pic`,changelog:[{version:`0.1.0`,prs:[62,127]}]},"gen_ai.tool.input":{brief:`The input of the tool being used. It has to be a stringified version of the input to the tool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`{"location": "Paris"}`,deprecation:{replacement:`gen_ai.tool.call.arguments`},aliases:[`gen_ai.tool.call.arguments`],changelog:[{version:`0.5.0`,prs:[265]},{version:`0.1.0`,prs:[63,74]}]},"gen_ai.tool.message":{brief:`The response from a tool or function call passed to the model.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`rainy, 57°F`,deprecation:{replacement:`gen_ai.tool.call.result`},aliases:[`gen_ai.tool.call.result`,`gen_ai.tool.output`,`mcp.tool.result.content`],changelog:[{version:`0.5.0`,prs:[265]},{version:`0.1.0`,prs:[62]}]},"gen_ai.tool.name":{brief:`Name of the tool utilized by the agent.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Flights`,aliases:[`ai.function_call`,`mcp.tool.name`],changelog:[{version:`0.1.0`,prs:[57,127]}]},"gen_ai.tool.output":{brief:`The output of the tool being used. It has to be a stringified version of the output of the tool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`rainy, 57°F`,deprecation:{replacement:`gen_ai.tool.call.result`},aliases:[`gen_ai.tool.call.result`,`gen_ai.tool.message`,`mcp.tool.result.content`],changelog:[{version:`0.5.0`,prs:[265]},{version:`0.1.0`,prs:[63,74]}]},"gen_ai.tool.type":{brief:`The type of tool being used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`function`,deprecation:{reason:`The gen_ai.tool.type attribute is deprecated and should no longer be set.`},changelog:[{version:`0.1.0`,prs:[62,127]}]},"gen_ai.usage.cache_creation.input_tokens":{brief:`The number of tokens written to the cache when processing the AI input (prompt).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:100,aliases:[`gen_ai.usage.input_tokens.cache_write`],changelog:[{version:`0.11.0`,prs:[418],description:`Added gen_ai.usage.cache_creation.input_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`]},"gen_ai.usage.cache_read.input_tokens":{brief:`The number of cached tokens used to process the AI input (prompt).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:50,aliases:[`gen_ai.usage.input_tokens.cached`],changelog:[{version:`0.11.0`,prs:[418],description:`Added gen_ai.usage.cache_read.input_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens â it is already included.`]},"gen_ai.usage.completion_tokens":{brief:`The number of tokens used in the GenAI response (completion).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,deprecation:{replacement:`gen_ai.usage.output_tokens`},aliases:[`ai.completion_tokens.used`,`gen_ai.usage.output_tokens`],changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`]},"gen_ai.usage.input_tokens":{brief:`The number of tokens used to process the AI input (prompt) including cached input tokens.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,aliases:[`ai.prompt_tokens.used`,`gen_ai.usage.prompt_tokens`],changelog:[{version:`0.11.0`,prs:[418],description:`Update additional_context to reference gen_ai.usage.cache_read.input_tokens`},{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.5.0`,prs:[261]},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[112]},{version:`0.0.0`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This count includes cached input tokens. gen_ai.usage.cache_read.input_tokens is a subset of this value, not an independent count â do not sum them together.`]},"gen_ai.usage.input_tokens.cached":{brief:`The number of cached tokens used to process the AI input (prompt).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:50,deprecation:{replacement:`gen_ai.usage.cache_read.input_tokens`},aliases:[`gen_ai.usage.cache_read.input_tokens`],changelog:[{version:`0.11.0`,prs:[418],description:`Deprecate in favor of gen_ai.usage.cache_read.input_tokens`},{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[62,112]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens â it is already included.`]},"gen_ai.usage.input_tokens.cache_write":{brief:`The number of tokens written to the cache when processing the AI input (prompt).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,deprecation:{replacement:`gen_ai.usage.cache_creation.input_tokens`},aliases:[`gen_ai.usage.cache_creation.input_tokens`],changelog:[{version:`0.11.0`,prs:[418],description:`Deprecate in favor of gen_ai.usage.cache_creation.input_tokens`},{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[217,228]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`]},"gen_ai.usage.output_tokens":{brief:`The number of tokens used for creating the AI output (including reasoning tokens).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,aliases:[`ai.completion_tokens.used`,`gen_ai.usage.completion_tokens`],changelog:[{version:`0.11.0`,prs:[418],description:`Update additional_context to reference gen_ai.usage.reasoning.output_tokens`},{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.5.0`,prs:[261]},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[112]},{version:`0.0.0`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This count includes reasoning tokens. gen_ai.usage.reasoning.output_tokens is a subset of this value, not an independent count â do not sum them together.`]},"gen_ai.usage.output_tokens.reasoning":{brief:`The number of tokens used for reasoning to create the AI output.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:75,deprecation:{replacement:`gen_ai.usage.reasoning.output_tokens`},aliases:[`gen_ai.usage.reasoning.output_tokens`],changelog:[{version:`0.11.0`,prs:[418],description:`Deprecate in favor of gen_ai.usage.reasoning.output_tokens`},{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[62,112]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens â it is already included.`]},"gen_ai.usage.prompt_tokens":{brief:`The number of tokens used in the GenAI input (prompt).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:20,deprecation:{replacement:`gen_ai.usage.input_tokens`},aliases:[`ai.prompt_tokens.used`,`gen_ai.usage.input_tokens`],changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`]},"gen_ai.usage.reasoning.output_tokens":{brief:`The number of tokens used for reasoning to create the AI output.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:75,aliases:[`gen_ai.usage.output_tokens.reasoning`],changelog:[{version:`0.11.0`,prs:[418],description:`Added gen_ai.usage.reasoning.output_tokens attribute`}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens â it is already included.`]},"gen_ai.usage.total_tokens":{brief:`The total number of tokens used to process the prompt. (input tokens plus output todkens)`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:20,aliases:[`ai.total_tokens.used`],changelog:[{version:`0.9.0`,prs:[397],description:`Add additional_context`},{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[57]}],additionalContext:[`This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.`,`This is the sum of gen_ai.usage.input_tokens and gen_ai.usage.output_tokens. Do not sum this with either of them â they are already included.`]},"graphql.document":{brief:`The GraphQL document being executed.`,type:`string`,applyScrubbing:{key:`auto`,reason:`The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.`},isInOtel:!0,visibility:`public`,example:`query findBookById { bookById(id: ?) { name } }`,changelog:[{version:`0.7.0`,description:"Adds the `graphql.document` attribute to track the GraphQL document being executed."}]},"graphql.operation.name":{brief:`The name of the operation being executed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`findBookById`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"graphql.operation.type":{brief:`The type of the operation being executed.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`query`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},hardwareConcurrency:{brief:`The number of logical CPU cores available.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`14`,deprecation:{replacement:`device.processor_count`,reason:`Old namespace-less attribute, to be replaced with device.processor_count for span-first future`},aliases:[`device.processor_count`],changelog:[{version:`0.5.0`,prs:[281,300],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"http.client_ip":{brief:`Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`example.com`,deprecation:{replacement:`client.address`},aliases:[`client.address`],changelog:[{version:`0.1.0`,prs:[61,106,127]},{version:`0.0.0`}]},"http.decoded_response_content_length":{brief:`The decoded body size of the response
16(in bytes).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:456,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"http.flavor":{brief:`The actual version of the protocol used for network communication.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1.1`,deprecation:{replacement:`network.protocol.version`},aliases:[`network.protocol.version`,`net.protocol.version`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"http.fragment":{brief:"The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not.",type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`#details`,changelog:[{version:`0.0.0`}]},"http.host":{brief:`The domain name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`example.com`,deprecation:{replacement:`server.address`,reason:"Deprecated, use one of `server.address` or `client.address`, depending on the usage"},aliases:[`server.address`,`client.address`,`http.server_name`,`net.host.name`,`server_name`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"http.method":{brief:`The HTTP method used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`GET`,deprecation:{replacement:`http.request.method`},aliases:[`http.request.method`,`http.request_method`,`method`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"http.query":{brief:"The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not.",type:`string`,applyScrubbing:{key:`auto`,reason:`Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.`},isInOtel:!1,visibility:`public`,example:`?foo=bar&bar=baz`,changelog:[{version:`0.0.0`}]},"http.request.body.data":{brief:`HTTP request body data. Can be given as string or structural data of any format.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`[{"role": "user", "message": "hello"}]`,changelog:[{version:`0.6.0`,prs:[336],description:`Added http.request.body.data attribute`}]},"http.request.connection_end":{brief:`The UNIX timestamp representing the time immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.15,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.connect_start":{brief:`The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.111,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.domain_lookup_end":{brief:`The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.201,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.domain_lookup_start":{brief:`The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.322,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.fetch_start":{brief:`The UNIX timestamp representing the time immediately before the browser starts to fetch the resource.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.389,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.header.<key>":{brief:`HTTP request headers, <key> being the normalized HTTP Header name (lowercase), the value being the header values.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,hasDynamicSuffix:!0,example:`http.request.header.custom-header=['foo', 'bar']`,changelog:[{version:`0.4.0`,prs:[201,204]},{version:`0.1.0`,prs:[103]}]},"http.request.method":{brief:`The HTTP method used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`GET`,aliases:[`method`,`http.method`,`http.request_method`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"http.request_method":{brief:`The HTTP method used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GET`,deprecation:{replacement:`http.request.method`},aliases:[`method`,`http.method`,`http.request.method`],changelog:[{version:`0.6.0`,prs:[343],description:`Added http.request_method attribute`}]},"http.request.redirect_end":{brief:`The UNIX timestamp representing the timestamp immediately after receiving the last b
16yte of the response of the last redirect`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829558.502,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[130,134]}]},"http.request.redirect_start":{brief:`The UNIX timestamp representing the start time of the fetch which that initiates the redirect.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.495,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.request_start":{brief:`The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.51,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.resend_count":{brief:`The ordinal number of request resending attempt (for any reason, including redirects).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"http.request.response_end":{brief:`The UNIX timestamp representing the time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.89,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.response_start":{brief:`The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.7,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.same_origin":{brief:`Indicates that a URL has the same origin as the current page's origin in the browser.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,aliases:[`url.same_origin`],changelog:[{version:`0.16.0`,prs:[456],description:`Added http.request.same_origin attribute`}]},"http.request.secure_connection_start":{brief:`The UNIX timestamp representing the time immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829555.73,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[134]},{version:`0.0.0`}]},"http.request.time_to_first_byte":{brief:`The time in seconds from the browser's timeorigin to when the first byte of the request's response was received. See https://web.dev/articles/ttfb#measure-resource-requests`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1.032,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[131]}]},"http.request.worker_start":{brief:`The UNIX timestamp representing the timestamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732829553.68,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[130,134]}]},"http.response.body.size":{brief:`The encoded body size of the response (in bytes).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:123,aliases:[`http.response_content_length`,`http.response.header.content-length`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[106]},{version:`0.0.0`}]},"http.response_content_length":{brief:`The encoded body size of the response
16(in bytes).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:123,deprecation:{replacement:`http.response.body.size`},aliases:[`http.response.body.size`,`http.response.header.content-length`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61,106]},{version:`0.0.0`}]},"http.response.header.content-length":{brief:`The size of the message body sent to the recipient (in bytes)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`http.response.header.custom-header=['foo', 'bar']`,aliases:[`http.response_content_length`,`http.response.body.size`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"http.response.header.<key>":{brief:`HTTP response headers, <key> being the normalized HTTP Header name (lowercase), the value being the header values.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,hasDynamicSuffix:!0,example:`http.response.header.custom-header=['foo', 'bar']`,changelog:[{version:`0.4.0`,prs:[201,204]},{version:`0.1.0`,prs:[103]}]},"http.response.size":{brief:`The transfer size of the response (in bytes).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:456,aliases:[`http.response_transfer_size`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"http.response.status_code":{brief:`The status code of the HTTP response.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:404,aliases:[`http.status_code`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"http.response_transfer_size":{brief:`The transfer size of the response (in bytes).`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:456,deprecation:{replacement:`http.response.size`},aliases:[`http.response.size`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"http.route":{brief:`The matched route, that is, the path template in the format used by the respective server framework.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`/users/:id`,aliases:[`url.template`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"http.scheme":{brief:`The URI scheme component identifying the used protocol.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`https`,deprecation:{replacement:`url.scheme`},aliases:[`url.scheme`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"http.server_name":{brief:`The server domain name`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`example.com`,deprecation:{replacement:`server.address`},aliases:[`server.address`,`net.host.name`,`http.host`,`server_name`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"http.server.request.time_in_queue":{brief:`The time in milliseconds the request spent in the server queue before processing began. Measured from the X-Request-Start header set by reverse proxies (e.g., Nginx, HAProxy, Heroku) to when the application started handling the request.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:50,changelog:[{version:`0.5.0`,prs:[267]}]},"http.status_code":{brief:`The status code of the HTTP response.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:404,deprecation:{replacement:`http.response.status_code`},aliases:[`http.response.status_code`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"http.target":{brief:`The pathname and query string of the URL.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`/test?foo=bar#buzz`,deprecation:{replacement:`url.path`,reason:`This attribute is being deprecated
16in favor of url.path and url.query`},changelog:[{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"http.url":{brief:`The URL of the resource that was fetched.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`https://example.com/test?foo=bar#buzz`,deprecation:{replacement:`url.full`},aliases:[`url.full`,`url`],changelog:[{version:`0.1.0`,prs:[61,108]},{version:`0.0.0`}]},"http.user_agent":{brief:`Value of the HTTP User-Agent header sent by the client.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1`,deprecation:{replacement:`user_agent.original`},aliases:[`user_agent.original`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},id:{brief:`A unique identifier for the span.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`f47ac10b58cc4372a5670e02b2c3d479`,changelog:[{version:`0.0.0`}]},inp:{brief:`The value of the recorded Interaction to Next Paint (INP) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:200,deprecation:{replacement:`browser.web_vital.inp.value`,reason:`The INP web vital is now recorded as a browser.web_vital.inp.value attribute.`},aliases:[`browser.web_vital.inp.value`],changelog:[{version:`0.5.0`,prs:[229],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"jsonrpc.protocol.version":{brief:`The version of the JSON-RPC protocol used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`2.0`,changelog:[{version:`0.12.0`,prs:[420],description:`Added jsonrpc.protocol.version attribute`}]},"jsonrpc.request.id":{brief:`The JSON-RPC request identifier. Unique within the session.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1`,aliases:[`mcp.request.id`],changelog:[{version:`0.12.0`,prs:[420],description:`Added jsonrpc.request.id attribute`}]},"jvm.gc.action":{brief:`Name of the garbage collector action.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`end of minor GC`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"jvm.gc.name":{brief:`Name of the garbage collector.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`G1 Young Generation`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"jvm.memory.pool.name":{brief:`Name of the memory pool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`G1 Old Gen`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"jvm.memory.type":{brief:`Name of the memory pool.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`G1 Old Gen`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"jvm.thread.daemon":{brief:`Whether the thread is daemon or not.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"jvm.thread.state":{brief:`State of the thread.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`blocked`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"koa.name":{brief:`The name of the Koa middleware or matched route that handled the request.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`/users/:id`,deprecation:{reason:`No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.`},changelog:[{version:`0.16.0`,prs:[490],description:`Added koa.name attribute as deprecated`}]},"koa.type":{brief:`The type of the Koa layer that handled the request.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`router`,changelog:[{version:`0.16.0`,prs:[471],description:`Added koa.type attribute`}]},lcp:{brief:`The value of the recorded Largest Contentful Paint (LCP) web vital`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2500,deprecation:{replacement:`browser.web_vital.lcp.value`,reason:`The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.`},aliases:[`browser.web_vital.lcp.value`],changelog:[{version:`0.5.0`,prs:[229],description:`Added and deprecated attribute to document JS SDK's current behaviour`}]},"lcp.element":{brief:`The dom element responsible for the largest contentful paint.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`img`,deprecation:{replacement:`browser.web_vital.lcp.element`,reason:`The LCP element is now recorded as a browser.web_vital.lcp.element attribute.`},aliases:[`browser.web_vital.lcp.element`],changelog:[{version:`0.5.0`,prs:[233]},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"lcp.id":{brief:`The id of the dom element responsible for the largest contentful paint.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`#hero`,deprecation:{replacement:`browser.web_vital.lcp.id`,reason:`The LCP id is now recorded as a browser.web_vital.lcp.id attribute.`},aliases:[`browser.web_vital.lcp.id`],changelog:[{version:`0.5.0`,prs:[233]},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"lcp.loadTime":{brief:`The time it took for the LCP element to be loaded`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1402,deprecation:{replacement:`browser.web_vital.lcp.load_time`,reason:`The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.`},aliases:[`browser.web_vital.lcp.load_time`],changelog:[{version:`0.5.0`,prs:[233]}]},"lcp.renderTime":{brief:`The time it took for the LCP element to be rendered`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1685,deprecation:{replacement:`browser.web_vital.lcp.render_time`,reason:`The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.`},aliases:[`browser.web_vital.lcp.render_time`],changelog:[{version:`0.5.0`,prs:[233]}]},"lcp.size":{brief:`The size of the largest contentful paint element.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234,deprecation:{replacement:`browser.web_vital.lcp.size`,reason:`The LCP size is now recorded as a browser.web_vital.lcp.size attribute.`},aliases:[`browser.web_vital.lcp.size`],changelog:[{version:`0.5.0`,prs:[233]},{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"lcp.url":{brief:`The url of the dom element responsible for the largest contentful paint.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`https://example.com`,deprecation:{replacement:`browser.web_vital.lcp.url`,reason:`The LCP url is now recorded as a browser.web_vital.lcp.url attribute.`},aliases:[`browser.web_vital.lcp.url`],changelog:[{version:`0.5.0`,prs:[233]},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"logger.name":{brief:`The name of the logger that generated this event.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`myLogger`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"mcp.cancelled.reason":{brief:`Reason for the cancellation of an MCP operation.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Cancellation reasons may contain user-specific or sensitive information`},isInOtel:!1,visibility:`public`,example:`User cancelled the request`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.cancelled.request_id":{brief:`Request ID of the cancelled MCP operation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`123`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.client.name":{brief:`Name of the MCP client application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`claude-desktop`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.client.title":{brief:`Display title of the MCP client application.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Client titles may reveal user-specific application configurations or custom setups`},isInOtel:!1,visibility:`public`,example:`Claude Desktop`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.client.version":{brief:`Version of the MCP client application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1.0.0`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.lifecycle.phase":{brief:`Lifecycle phase indicator for MCP operations.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`initialization_complete`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.logging.data_type":{brief:`Data type of the logged message content.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`string`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.logging.level":{brief:`Log level for MCP logging operations.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`info`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.logging.logger":{brief:`Logger name for MCP logging operations.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Logger names may be user-defined and could contain sensitive information`},isInOtel:!1,visibility:`public`,example:`mcp_server`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.logging.message":{brief:`Log message content from MCP logging operations.`,type:`string`,applyScrubbing:{key:`auto`,reason:`Log messages can contain user data`},isInOtel:!1,visibility:`public`,example:`Tool execution completed successfully`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.method.name":{brief:`The name of the MCP request or notification method being called.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`tools/call`,changelog:[{version:`0.12.0`,prs:[420],description:`Set is_in_otel=true, attribute exists in OTel MCP registry`},{version:`0.3.0`,prs:[171]}]},"mcp.progress.current":{brief:`Current progress value of an MCP operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:50,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.progress.message":{brief:`Progress message describing the current state of an MCP operation.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Progress messages may contain user-specific or sensitive information`}
16,isInOtel:!1,visibility:`public`,example:`Processing 50 of 100 items`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.progress.percentage":{brief:`Calculated progress percentage of an MCP operation. Computed from current/total * 100.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:50,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.progress.token":{brief:`Token for tracking progress of an MCP operation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`progress-token-123`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.progress.total":{brief:`Total progress target value of an MCP operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.prompt.name":{brief:`Name of the MCP prompt template being used.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Prompt names may reveal user behavior patterns or sensitive operations`},isInOtel:!1,visibility:`public`,example:`summarize`,deprecation:{replacement:`gen_ai.prompt.name`,reason:`OTel uses gen_ai.prompt.name for MCP prompt names`},aliases:[`gen_ai.prompt.name`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of gen_ai.prompt.name`},{version:`0.3.0`,prs:[171]}]},"mcp.prompt.result.description":{brief:`Description of the prompt result.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`A summary of the requested information`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.prompt.result.message_content":{brief:`Content of the message in the prompt result. Used for single message results only.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`Please provide a summary of the document`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.prompt.result.message_count":{brief:`Number of messages in the prompt result.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:3,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.prompt.result.message_role":{brief:`Role of the message in the prompt result. Used for single message results only.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`user`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.protocol.ready":{brief:`Protocol readiness indicator for MCP session. Non-zero value indicates the protocol is ready.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.protocol.version":{brief:`MCP protocol version used in the session.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`2024-11-05`,changelog:[{version:`0.12.0`,prs:[420],description:`Set is_in_otel=true, attribute exists in OTel MCP registry`},{version:`0.3.0`,prs:[171]}]},"mcp.request.argument.<key>":{brief:`MCP request argument with dynamic key suffix. The <key> is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value.`,type:`string`,applyScrubbing:{key:`auto`,reason:`Arguments contain user input`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`mcp.request.argument.query='weather in Paris'`,changelog:[{version:`0.3.0`,prs:[176]}]},"mcp.request.argument.name":{brief:`Name argument from prompts/get MCP request.`,type:`string`,applyScrubbing:{key:`auto`,reason:`Prompt names can contain user input`},isInOtel:!1,visibility:`public`,example:`summarize`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.request.argument.uri":{brief:`URI argument from resources/read MCP request.`,type:`string`,applyScrubbing:{key:`auto`,reason:`URIs can contain user file paths`},isInOtel:!1,visibility:`public`,example:`file:///path/to/resource`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.request.id":{brief:`JSON-RPC request identifier for the MCP request. Unique within the MCP session.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1`,deprecation:{replacement:`jsonrpc.request.id`,reason:`OTel models MCP as JSON-RPC, uses jsonrpc.request.id`},aliases:[`jsonrpc.request.id`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated
16in favor of jsonrpc.request.id`},{version:`0.3.0`,prs:[171]}]},"mcp.resource.protocol":{brief:`Protocol of the resource URI being accessed, extracted from the URI.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`file`,deprecation:{replacement:`network.protocol.name`,reason:`OTel uses the generic network.protocol.name attribute`},aliases:[`network.protocol.name`,`net.protocol.name`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of network.protocol.name`},{version:`0.3.0`,prs:[171]}]},"mcp.resource.uri":{brief:`The resource URI being accessed in an MCP operation.`,type:`string`,applyScrubbing:{key:`auto`,reason:`URIs can contain sensitive file paths`},isInOtel:!0,visibility:`public`,example:`file:///path/to/file.txt`,changelog:[{version:`0.12.0`,prs:[420],description:`Set is_in_otel=true, attribute exists in OTel MCP registry`},{version:`0.3.0`,prs:[171]}]},"mcp.server.name":{brief:`Name of the MCP server application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`sentry-mcp-server`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.server.title":{brief:`Display title of the MCP server application.`,type:`string`,applyScrubbing:{key:`manual`,reason:`Server titles may reveal user-specific application configurations or custom setups`},isInOtel:!1,visibility:`public`,example:`Sentry MCP Server`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.server.version":{brief:`Version of the MCP server application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`0.1.0`,changelog:[{version:`0.3.0`,prs:[171]}]},"mcp.session.id":{brief:`Identifier for the MCP session.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`550e8400-e29b-41d4-a716-446655440000`,changelog:[{version:`0.12.0`,prs:[420],description:`Set is_in_otel=true, attribute exists in OTel MCP registry`},{version:`0.3.0`,prs:[171]}]},"mcp.tool.name":{brief:`Name of the MCP tool being called.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`calculator`,deprecation:{replacement:`gen_ai.tool.name`,reason:`OTel uses gen_ai.tool.name for MCP tool names`},aliases:[`gen_ai.tool.name`,`ai.function_call`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of gen_ai.tool.name`},{version:`0.3.0`,prs:[171]}]},"mcp.tool.result.content":{brief:`The content of the tool result.`,type:`string`,applyScrubbing:{key:`auto`,reason:`Tool results can contain user data`},isInOtel:!1,visibility:`public`,example:`{"output": "rainy", "toolCallId": "1"}`,deprecation:{replacement:`gen_ai.tool.call.result`,reason:`OTel uses gen_ai.tool.call.result for MCP tool results`},aliases:[`gen_ai.tool.call.result`,`gen_ai.tool.message`,`gen_ai.tool.output`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of gen_ai.tool.call.result`},{version:`0.3.0`,prs:[171]},{version:`0.2.0`,prs:[164]}]},"mcp.tool.result.content_count":{brief:`Number of content items in the tool result.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[171]}]},"mcp.tool.result.is_error":{brief:`Whether a tool execution resulted in an error.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!1,deprecation:{replacement:`error.type`,reason:`OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).`},changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of error.type`},{version:`0.3.0`,prs:[171]}]},"mcp.transport":{brief:`Transport method used for MCP communication.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`stdio`,deprecation:{replacement:`network.transport`,reason:`OTel uses the generic network.transport attribute`},aliases:[`network.transport`,`net.transport`],changelog:[{version:`0.12.0`,prs:[420],description:`Deprecated in favor of network.transport`},{version:`0.3.0`,prs:[171]}]},"mdc.<key>":{brief:`Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it's usually implemented as a thread-local map that stores context for e.g. a specific request.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`mdc.some_key='some_value'`,changelog:[{version:`0.3.0`,prs:[176]}]},"messaging.batch.message_count":{brief:`The number of messages sent, received, or processed in the scope of the batching operation.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:10,changelog:[{version:`0.6.0`,prs:[341],description:`Added messaging.batch.message_count attribute`}]},"messaging.destination":{brief:`The message destination name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`BestTopic`,deprecation:{replacement:`messaging.destination.name`,reason:`This attribute is being deprecated
16in favor of messaging.destination.name, which is the OTel-aligned replacement.`},aliases:[`messaging.destination.name`],changelog:[{version:`0.16.0`,prs:[482],description:`Added messaging.destination attribute, deprecated in favor of messaging.destination.name`}]},"messaging.destination.connection":{brief:`The message destination connection.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`BestTopic`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"messaging.destination.name":{brief:`The message destination name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`BestTopic`,aliases:[`messaging.destination`],changelog:[{version:`0.16.0`,prs:[482],description:`Added messaging.destination as an alias`},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"messaging.message.body.size":{brief:`The size of the message body in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:839,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"messaging.message.conversation_id":{brief:`The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID".`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`MyConversationId`,changelog:[{version:`0.16.0`,prs:[468],description:`Added messaging.message.conversation_id attribute`}]},"messaging.message.envelope.size":{brief:`The size of the message body and metadata in bytes.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1045,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"messaging.message.id":{brief:`A value used by the messaging system as an identifier for the message, represented as a string.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`f47ac10b58cc4372a5670e02b2c3d479`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"messaging.message.receive.latency":{brief:`The latency between when the message was published and received.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1732847252,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"messaging.message.retry.count":{brief:`The amount of attempts to send the message.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:2,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"messaging.operation.name":{brief:`The name of the messaging operation being performed`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`send`,changelog:[{version:`0.11.0`,prs:[392],description:`Added messaging.operation.name attribute`}]},"messaging.operation.type":{brief:`A string identifying the type of the messaging operation`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`create`,changelog:[{version:`0.1.0`,prs:[51,127]}]},"messaging.rabbitmq.destination.routing_key":{brief:`RabbitMQ message routing key.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`myKey`,changelog:[{version:`0.16.0`,prs:[468],description:`Added messaging.rabbitmq.destination.routing_key attribute`}]},"messaging.system":{brief:`The messaging system as identified by the client instrumentation.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`activemq`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},method:{brief:`The HTTP method used.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GET`,deprecation:{replacement:`http.request.method`},aliases:[`http.request.method`,`http.request_method`,`http.method`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"middleware.name":{brief:`The name of the middleware.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`AuthenticationMiddleware`,changelog:[{version:`0.6.0`,prs:[336],description:`Added middleware.name attribute`}]},"navigation.origin":{brief:`The origin of the navigation (usually client side router navigations). Should preferrably parameterized template (like url.template) or a URL path otherwise.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`/users/:id`,aliases:[`sentry.sveltekit.navigation.from`],changelog:[{version:`0.16.0`,prs:[467],description:`Added navigation.origin attribute`}]},"navigation.route.id":{brief:`The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`AboutView`,changelog:[{version:`0.16.0`,prs:[468],description:`Added navigation.route.id attribute`}]},"navigation.type":{brief:`The type of navigation done by a client-side router.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`router.push`,aliases:[`sentry.sveltekit.navigation.type`],changelog:[{version:`0.16.0`,prs:[467],description:`Added new deprecated alias`},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"nel.elapsed_time":{brief:`The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[68]}]},"nel.phase":{brief:`If request failed, the phase of its network error. If request succeeded, "application".`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`application`,changelog:[{version:`0.1.0`,prs:[68,127]}]},"nel.referrer":{brief:`request's referrer, as determined by the referrer policy associated with its client.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`https://example.com/foo?bar=baz`,changelog:[{version:`0.1.0`,prs:[68,127]}]},"nel.sampling_function":{brief:`The sampling function used to determine if the request should be sampled.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:.5,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[68]}]},"nel.type":{brief:`If request failed, the type of its network error. If request succeeded, "ok".`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`dns.unreachable`,changelog:[{version:`0.1.0`,prs:[68,127]}]},"network.connection.effective_type":{brief:`Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`4g`,aliases:[`effectiveConnectionType`],changelog:[{version:`0.5.0`,prs:[279],description:`Added attribute network.connection.effective_type to be used instead of effectiveConnectionType`}]},"network.connection.rtt":{brief:`Specifies the estimated effective round-trip time of the current connection, in milliseconds.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:100,aliases:[`connection.rtt`],changelog:[{version:`0.5.0`,prs:[279],description:`Added attribute network.connection.rtt to be used instead of connection.rtt`}]},"network.connection.type":{brief:`Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`wifi`,aliases:[`device.connection_type`,`connectionType`],changelog:[{version:`0.5.0`,prs:[279],description:`Added attribute network.connection.type to be used instead of connectionType`}]},"network.local.address":{brief:`Local address of the network connection - IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`10.1.2.80`,aliases:[`net.host.ip`,`net.sock.host.addr`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"network.local.port":{brief:`Local port number of the network connection.`,type:`integer`,applyScrubbing:{key:`manual`}
16,isInOtel:!0,visibility:`public`,example:65400,aliases:[`net.sock.host.port`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"network.peer.address":{brief:`Peer address of the network connection - IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`10.1.2.80`,aliases:[`net.peer.ip`,`net.sock.peer.addr`],changelog:[{version:`0.1.0`,prs:[108,127]},{version:`0.0.0`}]},"network.peer.port":{brief:`Peer port number of the network connection.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:65400,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"network.protocol.name":{brief:`OSI application layer or non-OSI equivalent.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`http`,aliases:[`net.protocol.name`,`mcp.resource.protocol`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"network.protocol.version":{brief:`The actual version of the protocol used for network communication.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1.1`,aliases:[`http.flavor`,`net.protocol.version`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"network.transport":{brief:`OSI transport layer or inter-process communication method.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`tcp`,aliases:[`net.transport`,`mcp.transport`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"network.type":{brief:`OSI network layer or non-OSI equivalent.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`ipv4`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"net.host.ip":{brief:`Local address of the network connection - IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`192.168.0.1`,deprecation:{replacement:`network.local.address`},aliases:[`network.local.address`,`net.sock.host.addr`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.host.name":{brief:`Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`example.com`,deprecation:{replacement:`server.address`},aliases:[`server.address`,`http.server_name`,`http.host`,`server_name`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.host.port":{brief:`Server port number.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1337,deprecation:{replacement:`server.port`},aliases:[`server.port`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"net.peer.ip":{brief:`Peer address of the network connection - IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`192.168.0.1`,deprecation:{replacement:`network.peer.address`},aliases:[`network.peer.address`,`net.sock.peer.addr`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.peer.name":{brief:`Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`example.com`,deprecation:{replacement:`server.address`,reason:`Deprecated, use server.address on client spans and client.address on server spans.`},changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"net.peer.port":{brief:`Peer port number.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1337,deprecation:{replacement:`server.port`,reason:`Deprecated, use server.port on client spans and client.port on server spans.`},changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"net.protocol.name":{brief:`OSI application layer or non-OSI equivalent.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`http`,deprecation:{replacement:`network.protocol.name`},aliases:[`network.protocol.name`,`mcp.resource.protocol`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"net.protocol.version":{brief:`The actual version of the protocol used for network communication.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1.1`,deprecation:{replacement:`network.protocol.version`},aliases:[`network.protocol.version`,`http.flavor`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.sock.family":{brief:`OSI transport and network layer`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`inet`,deprecation:{replacement:`network.transport`,reason:`Deprecated, use network.transport and network.type.`},changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"net.sock.host.addr":{brief:`Local address of the network connection mapping to Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`/var/my.sock`,deprecation:{replacement:`network.local.address`},aliases:[`network.local.address`,`net.host.ip`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.sock.host.port":{brief:`Local port number of the network connection.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:8080,deprecation:{replacement:`network.local.port`},aliases:[`network.local.port`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"net.sock.peer.addr":{brief:`Peer address of the network connection - IP address`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`192.168.0.1`,deprecation:{replacement:`network.peer.address`},aliases:[`network.peer.address`,`net.peer.ip`],changelog:[{version:`0.1.0`,prs:[61,108,127]},{version:`0.0.0`}]},"net.sock.peer.name":{brief:`Peer address of the network connection - Unix domain socket name`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`/var/my.sock`,deprecation:{reason:`Deprecated from OTEL, no replacement at this time`},changelog:[{version:`0.1.0`,prs:[61,119,127]},{version:`0.0.0`}]},"net.sock.peer.port":{brief:`Peer port number of the network connection.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:8080,deprecation:{replacement:`network.peer.port`},changelog:[{version:`0.4.0`,prs:[228]},{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"net.transport":{brief:`OSI transport layer or inter-process communication method.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`tcp`,deprecation:{replacement:`network.transport`},aliases:[`network.transport`,`mcp.transport`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"os.build":{brief:`The build ID of the operating system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1234567890`,deprecation:{replacement:`os.build_id`},aliases:[`os.build_id`],changelog:[{version:`0.5.0`,prs:[301],description:`Added os.build attribute, deprecated
16in favor of os.build_id`}]},"os.build_id":{brief:`The build ID of the operating system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`1234567890`,aliases:[`os.build`],changelog:[{version:`0.5.0`,prs:[301],description:`Added os.build as alias`},{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"os.description":{brief:`Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Ubuntu 18.04.1 LTS`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"os.kernel_version":{brief:"An independent kernel version string. Typically the entire output of the `uname` syscall.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`20.2.0`,changelog:[{version:`0.5.0`,prs:[301],description:`Added os.kernel_version attribute`}]},"os.name":{brief:`Human readable operating system name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Ubuntu`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"os.raw_description":{brief:"An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Ubuntu 22.04.4 LTS (Jammy Jellyfish)`,changelog:[{version:`0.5.0`,prs:[301],description:`Added os.raw_description attribute`}]},"os.rooted":{brief:`Whether the operating system has been jailbroken or rooted.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`,prs:[301],description:`Added os.rooted attribute`}]},"os.theme":{brief:`Whether the OS runs in dark mode or light mode.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`dark`,changelog:[{version:`0.5.0`,prs:[301],description:`Added os.theme attribute`}]},"os.type":{brief:`The operating system type.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`linux`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"os.version":{brief:`The version of the operating system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`18.04.2`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]}
16,"otel.kind":{brief:"The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`SERVER`,deprecation:{replacement:`sentry.kind`,reason:`Deprecated in favor of sentry.kind`},aliases:[`sentry.kind`],changelog:[{version:`0.13.0`,prs:[440],description:`Added otel.kind attribute`}]},"otel.scope.name":{brief:`The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`io.opentelemetry.contrib.mongodb`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"otel.scope.version":{brief:`The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`2.4.5`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"otel.status_code":{brief:`Name of the code, either âOKâ or âERRORâ. MUST NOT be set if the status code is UNSET.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`OK`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"otel.status_description":{brief:`Description of the Status if it has a value, otherwise not set.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`resource not found`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"params.<key>":{brief:`Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`params.id='123'`,aliases:[`url.path.parameter.<key>`],changelog:[{version:`0.1.0`,prs:[103]}]},"performance.activationStart":{brief:`The time between initiating a navigation to a page and the browser activating the page`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1.983,deprecation:{replacement:`browser.performance.navigation.activation_start`,reason:`The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.`},aliases:[`browser.performance.navigation.activation_start`],changelog:[{version:`0.5.0`,prs:[321],description:`Added performance.activationStart attribute`}]},"performance.timeOrigin":{brief:`The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1776185678.886,deprecation:{replacement:`browser.performance.time_origin`,reason:`The timeOrigin is now recorded as the browser.performance.time_origin attribute.`},aliases:[`browser.performance.time_origin`],changelog:[{version:`0.5.0`,prs:[321],description:`Added performance.timeOrigin attribute`}]},previous_route:{brief:`Also used by mobile SDKs to indicate the previous route in the application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`HomeScreen`,changelog:[{version:`0.1.0`,prs:[74]},{version:`0.0.0`}]},"process.command_args":{brief:`All the command arguments (including the command/executable itself) as received by the process.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:[`cmd/otecol`,`--config=config.yaml`],changelog:[{version:`0.6.0`,prs:[327],description:`Added process.command_args attribute`}]},"process.executable.name":{brief:`The name of the executable that started the process.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`getsentry`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"process.pid":{brief:`The process ID of the running process.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:12345,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"process.runtime.description":{brief:"An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. Equivalent to `raw_description` in the Sentry runtime context.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Eclipse OpenJ9 VM openj9-0.21.0`,aliases:[`runtime.raw_description`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"process.runtime.engine.name":{brief:`The name of the runtime engine.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`v8`,changelog:[{version:`0.0.0`}]},"process.runtime.engine.version":{brief:`The version of the runtime engine.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`12.9.202.13-rusty`,changelog:[{version:`0.0.0`}]},"process.runtime.name":{brief:"The name of the runtime. Equivalent to `name` in the Sentry runtime context.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`node`,aliases:[`runtime.name`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"process.runtime.version":{brief:"The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`18.04.2`,aliases:[`runtime.version`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"query.<key>":{brief:`An item in a query string. Usually added by client-side routing frameworks like vue-router.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`query.id='123'`,deprecation:{replacement:`url.query`,reason:`Instead of sending items individually in query.<key>, they should be sent all together with url.query.`},changelog:[{version:`0.1.0`,prs:[103]}]},"react.version":{brief:`The version of the React framework`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`18.2.0`,changelog:[{version:`0.7.0`,prs:[368],description:`Added react.version attribute`}]},release:{brief:`The sentry release.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`production`,deprecation:{replacement:`sentry.release`},aliases:[`sentry.release`],changelog:[{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"remix.action_form_data.<key>":{brief:`Remix form data, <key> being the form data key, the value being the form data value.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`http.response.header.text='test'`,changelog:[{version:`0.1.0`,prs:[103]}]},replay_id:{brief:`The id of the sentry replay.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`123e4567e89b12d3a456426614174000`,deprecation:{replacement:`sentry.replay_id`},aliases:[`sentry.replay_id`],changelog:[{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]}
16,"resource.deployment.environment":{brief:`The software deployment environment name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`production`,deprecation:{replacement:`sentry.environment`},changelog:[{version:`0.5.0`,prs:[266]}]},"resource.deployment.environment.name":{brief:`The software deployment environment name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`production`,deprecation:{replacement:`sentry.environment`},changelog:[{version:`0.3.1`,prs:[196]}]},"resource.render_blocking_status":{brief:`The render blocking status of the resource.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`non-blocking`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},route:{brief:`The matched route, that is, the path template in the format used by the respective server framework. Also used by mobile SDKs to indicate the current route in the application.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`App\\Controller::indexAction`,deprecation:{replacement:`http.route`},aliases:[`http.route`],changelog:[{version:`0.1.0`,prs:[61,74]},{version:`0.0.0`}]},"rpc.grpc.status_code":{brief:`The numeric status code of the gRPC request.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:2,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"rpc.method":{brief:`The fully-qualified logical name of the method from the RPC interface perspective.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`com.example.ExampleService/exampleMethod`,changelog:[{version:`0.7.0`,prs:[351],description:`Added rpc.method attribute`}]},"rpc.response.status_code":{brief:`Status code of the RPC returned by the RPC server or generated by the client.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`DEADLINE_EXCEEDED`,changelog:[{version:`0.7.0`,prs:[352],description:`Added rpc.response.status_code attribute`}]},"rpc.service":{brief:`The full (logical) name of the service being called, including its package name, if applicable.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`myService.BestService`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"rpc.system":{brief:`A string identifying the remoting system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`aws-api`,deprecation:{replacement:`rpc.system.name`,reason:`This attribute is being deprecated
16in favor of rpc.system.name, which is the OTel-aligned replacement.`},aliases:[`rpc.system.name`],changelog:[{version:`0.16.0`,prs:[482],description:`Added rpc.system attribute, deprecated in favor of rpc.system.name`}]},"rpc.system.name":{brief:`A string identifying the remoting system.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`aws-api`,aliases:[`rpc.system`],changelog:[{version:`0.16.0`,prs:[482],description:`Added rpc.system.name attribute`}]},"runtime.build":{brief:`The application build string, when it is separate from the version.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`stable`,deprecation:{reason:`The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.`},changelog:[{version:`0.11.0`,prs:[383],description:`Added and deprecated runtime.build attribute`}]},"runtime.name":{brief:`The name of the runtime. For example node, CPython, or rustc.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`node`,deprecation:{replacement:`process.runtime.name`,reason:`Prefer OTel-aligned process.runtime.name`},aliases:[`process.runtime.name`],changelog:[{version:`0.11.0`,prs:[383],description:`Added and deprecated runtime.name attribute in favor of process.runtime.name`}]},"runtime.raw_description":{brief:`Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Eclipse OpenJ9 VM openj9-0.21.0`,deprecation:{replacement:`process.runtime.description`,reason:`Prefer OTel-aligned process.runtime.description`},aliases:[`process.runtime.description`],changelog:[{version:`0.11.0`,prs:[383],description:`Added and deprecated runtime.raw_description attribute in favor of process.runtime.description`}]},"runtime.version":{brief:`The version of the runtime.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`18.04.2`,deprecation:{replacement:`process.runtime.version`,reason:`Prefer OTel-aligned process.runtime.version`},aliases:[`process.runtime.version`],changelog:[{version:`0.11.0`,prs:[383],description:`Added and deprecated runtime.version attribute in favor of process.runtime.version`}]},"score.<key>":{brief:"The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`score.cls=0.1723`,changelog:[{version:`0.7.0`,prs:[355],description:`Added score.<key> attribute`}]},"score.ratio.<key>":{brief:`The score for a web vital, normalized to a number between 0 and 1.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`score.ratio.inp=0.7748`,changelog:[{version:`0.7.0`,prs:[355],description:`Added score.ratio.<key> attribute`}]},"score.total":{brief:"The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.<key>`).",type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.7.0`,prs:[355],description:`Added score.total attribute`}]},"score.weight.<key>":{brief:`The relative weight of a web vital in a span's performance score.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`score.weight.fcp=0.25`,changelog:[{version:`0.7.0`,prs:[355],description:`Added score.weight.<key> attribute`}]},"sentry.action":{brief:`Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`SELECT`,changelog:[{version:`0.4.0`,prs:[212]}]},"sentry.browser.name":{brief:`The name of the browser.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Chrome`,deprecation:{replacement:`browser.name`},aliases:[`browser.name`],changelog:[{version:`0.1.0`,prs:[139]}]},"sentry.browser.version":{brief:`The version of the browser.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`120.0.6099.130`,deprecation:{replacement:`browser.version`},aliases:[`browser.version`],changelog:[{version:`0.1.0`,prs:[139]}]},"sentry.cancellation_reason":{brief:`The reason why a span ended early.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`document.hidden`,changelog:[{version:`0.0.0`}]},"sentry.category":{brief:`The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). Known values include: 'ai', 'ai.pipeline', 'app', 'browser', 'cache', 'console', 'db', 'event', 'file', 'function.aws', 'function.azure', 'function.gcp', 'function.nextjs', 'function.remix', 'graphql', 'grpc', 'http', 'measure', 'middleware', 'navigation', 'pageload', 'queue', 'resource', 'rpc', 'serialize', 'subprocess', 'template', 'topic', 'ui', 'ui.angular', 'ui.ember', 'ui.react', 'ui.svelte', 'ui.vue', 'view', 'websocket'.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`db`,changelog:[{version:`0.4.0`,prs:[218]}]},"sentry.client_sample_rate":{brief:`Rate at which a span was sampled in the SDK.`,type:`double`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:.5,changelog:[{version:`0.1.0`,prs:[102]}]},"sentry.description":{brief:`The human-readable description of a span.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`index view query`,changelog:[{version:`0.1.0`,prs:[135]}]},"sentry.dist":{brief:`The sentry dist.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`1.0`,aliases:[`dist`],changelog:[{version:`0.16.0`,prs:[489],description:`Added dist as an alias`},{version:`0.0.0`}]},"sentry.domain":{brief:`Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`example.com`,changelog:[{version:`0.4.0`,prs:[212]}]},"sentry.dsc.environment":{brief:`The environment from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`prod`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.project_id":{brief:`The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`12345`,changelog:[{version:`0.7.0`,prs:[358],description:`Add sentry.dsc.project_id as an attribute`}]},"sentry.dsc.public_key":{brief:`The public key from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`internal`,example:`c51734c603c4430eb57cb0a5728a479d`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.release":{brief:`The release identifier from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`frontend@e8211be71b214afab5b85de4b4c54be3714952bb`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.sampled":{brief:`Whether the event was sampled according to the dynamic sampling context.`,type:`boolean`,applyScrubbing:{key:`never`}
16,isInOtel:!1,visibility:`internal`,example:!0,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.sample_rate":{brief:`The sample rate from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`1.0`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.trace_id":{brief:`The trace ID from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`047372980460430cbc78d9779df33a46`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.dsc.transaction":{brief:`The transaction name from the dynamic sampling context.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`internal`,example:`/issues/errors-outages/`,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.environment":{brief:`The sentry environment.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`production`,aliases:[`environment`],changelog:[{version:`0.0.0`}]},"sentry.exclusive_time":{brief:`The exclusive time duration of the span in milliseconds.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.3.0`,prs:[160]},{version:`0.0.0`}]},"sentry.graphql.operation":{brief:`Indicates the type of graphql operation, emitted by the Javascript SDK.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`getUserById`,changelog:[{version:`0.3.1`,prs:[190]}]},"sentry.group":{brief:"Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.",type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.4.0`,prs:[212]}]},"sentry.http.prefetch":{brief:`If an http request was a prefetch request.`,type:`boolean`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"sentry.idle_span_finish_reason":{brief:`The reason why an idle span ended early.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`idleTimeout`,changelog:[{version:`0.0.0`}]},"sentry.is_remote":{brief:`Indicates whether a span's parent is remote.`,type:`boolean`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.3.1`,prs:[190]}]},"sentry.kind":{brief:"Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`server`,aliases:[`otel.kind`],changelog:[{version:`0.3.1`,prs:[190]}]},"sentry.main_thread":{brief:`Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs.`,type:`boolean`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`}]},"sentry.message.parameter.<key>":{brief:`A parameter used in the message template. <key> can either be the number that represent the parameter's position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter's name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc)`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`sentry.message.parameter.0='123'`,changelog:[{version:`0.1.0`,prs:[116]}]},"sentry.message.template":{brief:`The parameterized template string.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Hello, {name}!`,changelog:[{version:`0.1.0`,prs:[116]}]},"sentry.metric.source":{brief:`The provenance of a metric. For example, this can be set to indicate if a metric was generated by Relay from a span.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`span`,changelog:[{version:`0.16.0`,prs:[476],description:`Added sentry.metric.source attribute`}]},"sentry.mobile":{brief:`Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs.`,type:`boolean`,applyScrubbing:{key:`never`}
16,isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.5.0`}]},"sentry.module.<key>":{brief:`A module that was loaded in the process. The key is the name of the module.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`sentry.module.brianium/paratest='v7.7.0'`,changelog:[{version:`0.1.0`,prs:[103]}]},"sentry.nextjs.ssr.function.route":{brief:`A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`/posts/[id]/layout`,changelog:[{version:`0.1.0`,prs:[54,106]}]},"sentry.nextjs.ssr.function.type":{brief:`A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`generateMetadata`,changelog:[{version:`0.1.0`,prs:[54,106]}]},"sentry.normalized_db_query":{brief:"The normalized version of `db.query.text`.",type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`SELECT .. FROM sentry_project WHERE (project_id = %s)`,changelog:[{version:`0.3.1`,prs:[194]}]},"sentry.normalized_db_query.hash":{brief:"The hash of `sentry.normalized_db_query`.",type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.4.0`,prs:[200]}]},"sentry.normalized_description":{brief:"Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).",type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`SELECT .. FROM sentry_project WHERE (project_id = %s)`,changelog:[{version:`0.4.0`,prs:[212]}]},"sentry.observed_timestamp_nanos":{brief:`The timestamp at which an envelope was received by Relay, in nanoseconds.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`1544712660300000000`,changelog:[{version:`0.3.0`,prs:[174]},{version:`0.2.0`,prs:[137]}]},"sentry.op":{brief:`The operation of a span.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`http.client`,changelog:[{version:`0.0.0`}]},"sentry.origin":{brief:`The origin of the instrumentation (e.g. span, log, etc.)`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`auto.http.otel.fastify`,changelog:[{version:`0.1.0`,prs:[68]},{version:`0.0.0`}]},"sentry.platform":{brief:`The sdk platform that generated the event.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`php`,changelog:[{version:`0.0.0`}]},"sentry.profiler_id":{brief:`The id of the currently running profiler (continuous profiling)`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`18779b64dd35d1a538e7ce2dd2d3fad3`,changelog:[{version:`0.4.0`,prs:[242]}]},"sentry.profile_id":{brief:`The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`123e4567e89b12d3a456426614174000`,changelog:[{version:`0.6.0`,prs:[344],description:`Added sentry.profile_id attribute`}]},"sentry.release":{brief:`The sentry release.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`7.0.0`,aliases:[`service.version`,`release`],changelog:[{version:`0.0.0`}]},"sentry.replay_id":{brief:`The id of the sentry replay.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`123e4567e89b12d3a456426614174000`,aliases:[`replay_id`],changelog:[{version:`0.0.0`}]},"sentry.replay_is_buffering":{brief:`A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).`,type:`boolean`,applyScrubbing:{key:`never`}
16,isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.3.0`,prs:[185]}]},"sentry.report_event":{brief:`(Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`pagehide`,deprecation:{reason:`The report event is now recorded as a browser.web_vital.lcp.report_event or browser.web_vital.cls.report_event attribute. No backfill required.`},changelog:[{version:`0.5.0`,prs:[320],description:`Added sentry.report_event attribute`}]},"sentry.sdk.integrations":{brief:`A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations.`,type:`string[]`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:[`InboundFilters`,`FunctionToString`,`BrowserApiErrors`,`Breadcrumbs`],changelog:[{version:`0.0.0`,prs:[42]}]},"sentry.sdk.name":{brief:`The sentry sdk name.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`@sentry/react`,changelog:[{version:`0.0.0`}]},"sentry.sdk.version":{brief:`The sentry sdk version.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`7.0.0`,changelog:[{version:`0.0.0`}]},"sentry.segment.id":{brief:`The segment ID of a span`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`051581bf3cb55c13`,aliases:[`sentry.segment_id`],changelog:[{version:`0.1.0`,prs:[107,124]}]},"sentry.segment_id":{brief:`The segment ID of a span`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`051581bf3cb55c13`,deprecation:{replacement:`sentry.segment.id`},aliases:[`sentry.segment.id`],changelog:[{version:`0.1.0`,prs:[124]}]},"sentry.segment.name":{brief:`The segment name of a span`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GET /user`,aliases:[`sentry.transaction`,`transaction`],changelog:[{version:`0.6.0`,prs:[345],description:`Added sentry.transaction and transaction aliases`},{version:`0.1.0`,prs:[104]}]},"sentry.server_sample_rate":{brief:`Rate at which a span was sampled in Relay.`,type:`double`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:.5,changelog:[{version:`0.1.0`,prs:[102]}]},"sentry.source":{brief:"The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.",type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`route`,deprecation:{replacement:`sentry.span.source`,reason:`This attribute is being deprecated
16in favor of sentry.span.source`},changelog:[{version:`0.5.0`}]},"sentry.span.source":{brief:"The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.",type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`route`,changelog:[{version:`0.4.0`,prs:[214]},{version:`0.0.0`}]},"sentry.status":{brief:`The span's status (either "ok" or "error"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`ok`,changelog:[{version:`0.14.0`,prs:[453]}]},"sentry.status_code":{brief:`The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:200,changelog:[{version:`0.4.0`,prs:[223,228]}]},"sentry.status.message":{brief:`The from OTLP extracted status message.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`foobar`,changelog:[{version:`0.3.1`,prs:[190]}]},"sentry.sveltekit.navigation.from":{brief:`the navigation origin (sveltekit router)`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`/home`,deprecation:{replacement:`navigation.origin`,reason:`Use the more generic attribute instead`},aliases:[`navigation.origin`],changelog:[{version:`0.16.0`,prs:[467],description:`Added sentry.sveltekit.navigation.from attribute`}]},"sentry.sveltekit.navigation.to":{brief:`the navigation destination`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`/users/:id`,deprecation:{reason:`the navigation destination is already covered by url.* attributes`},changelog:[{version:`0.16.0`,prs:[467],description:`Added sentry.sveltekit.navigation.to attribute`}]},"sentry.sveltekit.navigation.type":{brief:`The type of navigation event emitted from the sveltekit client router`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`link`,deprecation:{replacement:`navigation.type`,reason:`Use the more generic attribute instead`},aliases:[`navigation.type`],changelog:[{version:`0.16.0`,prs:[467],description:`Added sentry.sveltekit.navigation.type attribute`}]},"sentry.thread.id":{brief:`Current âmanagedâ thread ID.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:56,deprecation:{replacement:`thread.id`,reason:`This attribute is being deprecated
16in favor of the OTel-standard thread.id`},changelog:[{version:`0.13.0`,prs:[451]}]},"sentry.timestamp.sequence":{brief:`A sequencing counter for deterministic ordering of logs or metrics when timestamps share the same integer millisecond. Starts at 0 on SDK initialization, increments by 1 for each captured item, and resets to 0 when the integer millisecond of the current item differs from the previous one.`,type:`integer`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:0,changelog:[{version:`0.5.0`,prs:[262]}]},"sentry.trace_lifecycle":{brief:`Indicates the chosen trace lifecycle mode of the SDK (stream or static)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`stream`,changelog:[{version:`0.13.0`,prs:[442],description:`Added sentry.trace_lifecycle attribute`}]},"sentry.trace.parent_span_id":{brief:`The span id of the span that was active when the log was collected. This should not be set if there was no active span.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`b0e6f15b45c36b12`,deprecation:{},changelog:[{version:`0.5.0`,prs:[287],description:"Deprecate `sentry.trace.parent_span_id`"},{version:`0.1.0`,prs:[116]}]},"sentry.trace.status":{brief:`The segment's status (either "ok" or "error"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`ok`,changelog:[{version:`0.14.0`,prs:[453]}]},"sentry.transaction":{brief:`The sentry transaction (segment name).`,type:`string`,applyScrubbing:{key:`never`},isInOtel:!1,visibility:`public`,example:`GET /`,deprecation:{replacement:`sentry.segment.name`,reason:`This attribute is being deprecated
16in favor of sentry.segment.name`},aliases:[`sentry.segment.name`,`transaction`],changelog:[{version:`0.6.0`,prs:[345],description:`Deprecated sentry.transaction in favor of sentry.segment.name`},{version:`0.0.0`}]},"sentry.user.email":{brief:`User email address.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.email`},aliases:[`user.email`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.geo.city":{brief:`Human readable city name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.geo.city`},aliases:[`user.geo.city`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.geo.country_code":{brief:`Two-letter country code (ISO 3166-1 alpha-2).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.geo.country_code`},aliases:[`user.geo.country_code`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.geo.region":{brief:`Human readable region name or code.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.geo.region`},aliases:[`user.geo.region`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.geo.subdivision":{brief:`Human readable subdivision name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.geo.subdivision`},aliases:[`user.geo.subdivision`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.id":{brief:`Unique identifier of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.id`},aliases:[`user.id`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.ip":{brief:`The IP address of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.ip_address`},aliases:[`user.ip_address`],changelog:[{version:`0.10.0`,prs:[406]}]},"sentry.user.username":{brief:`Short name or login/username of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,deprecation:{replacement:`user.name`},aliases:[`user.name`],changelog:[{version:`0.10.0`,prs:[406]}]},"server.address":{brief:`Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`example.com`,aliases:[`http.server_name`,`net.host.name`,`http.host`,`server_name`],changelog:[{version:`0.1.0`,prs:[108,127]},{version:`0.0.0`}]},server_name:{brief:`Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`example.com`,deprecation:{replacement:`server.address`,reason:`This attribute is being deprecated
16in favor of server.address, which is the OTel-aligned replacement.`},aliases:[`server.address`,`http.server_name`,`net.host.name`,`http.host`],changelog:[{version:`0.16.0`,prs:[477],description:`Added server_name attribute, deprecated in favor of server.address`}]},"server.port":{brief:`Server port number.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1337,aliases:[`net.host.port`],changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"service.name":{brief:`Logical name of the service.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`omegastar`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"service.version":{brief:`The version string of the service API or implementation. The format is not defined by these conventions.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`5.0.0`,aliases:[`sentry.release`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"session.id":{brief:`A unique id identifying the active session at the time of setting this attribute`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`00112233-4455-6677-8899-aabbccddeeff`,changelog:[{version:`0.11.0`,prs:[412],description:`Added session.id attribute`}]},stall_percentage:{brief:`The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.7.0`,prs:[362],description:`Added stall_percentage attribute`}]},stall_total_time:{brief:`The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,changelog:[{version:`0.7.0`,prs:[362],description:`Added stall_total_time attribute`}]},"state.type":{brief:`The type of state management library`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`redux`,changelog:[{version:`0.7.0`,prs:[365],description:`Added state.type attribute`}]},"thread.id":{brief:`Current âmanagedâ thread ID.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:56,changelog:[{version:`0.0.0`}]},"thread.name":{brief:`Current thread name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`main`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"timber.tag":{brief:`The log tag provided by the timber logging framework.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`MyTag`,changelog:[{version:`0.3.0`,prs:[183]}]},time_to_full_display:{brief:`The duration of time to full display in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,deprecation:{replacement:`app.vitals.ttfd.value`,reason:`Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.ttfd.value`],changelog:[{version:`0.5.0`,prs:[313],description:`Added and deprecated in favor of app.vitals.ttfd.value`}]},time_to_initial_display:{brief:`The duration of time to initial display in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1234.56,deprecation:{replacement:`app.vitals.ttid.value`,reason:`Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes`},aliases:[`app.vitals.ttid.value`],changelog:[{version:`0.5.0`,prs:[313],description:`Added and deprecated in favor of app.vitals.ttid.value`}]},transaction:{brief:`The sentry transaction (segment name).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GET /`,deprecation:{replacement:`sentry.segment.name`},aliases:[`sentry.segment.name`,`sentry.transaction`],changelog:[{version:`0.6.0`,prs:[345],description:`Updated transaction deprecation replacement to sentry.segment.name`},{version:`0.1.0`,prs:[61,127]},{version:`0.0.0`}]},"trpc.procedure_path":{brief:`The path of the tRPC procedure being called`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`user.getById`,changelog:[{version:`0.7.0`,prs:[370],description:`Added trpc.procedure_path attribute`}]},"trpc.procedure_type":{brief:`The type of the tRPC procedure`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`query`,changelog:[{version:`0.7.0`,prs:[370],description:`Added trpc.procedure_type attribute`}]},ttfb:{brief:`The value of the recorded Time To First Byte (TTFB) web vital in milliseconds`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:194,deprecation:{replacement:`browser.web_vital.ttfb.value`,reason:`This attribute is being deprecated
16in favor of browser.web_vital.ttfb.value`},aliases:[`browser.web_vital.ttfb.value`],changelog:[{version:`0.5.0`,prs:[235]}]},"ttfb.requestTime":{brief:`The time it takes for the server to process the initial request and send the first byte of a response to the user's browser`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1554.5814,deprecation:{replacement:`browser.web_vital.ttfb.request_time`,reason:`This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time`},aliases:[`browser.web_vital.ttfb.request_time`],changelog:[{version:`0.5.0`,prs:[235]}]},type:{brief:`More granular type of the operation happening.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`fetch`,changelog:[{version:`0.0.0`}]},"ui.component_name":{brief:`The name of the associated component.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`HomeButton`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"ui.contributes_to_ttfd":{brief:`Whether the span execution contributed to the TTFD (time to fully drawn) metric.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"ui.contributes_to_ttid":{brief:`Whether the span execution contributed to the TTID (time to initial display) metric.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,changelog:[{version:`0.0.0`}]},"ui.element.height":{brief:`The height of the UI element (for Html in pixels)`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:256,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.height attribute`}]},"ui.element.id":{brief:`The id of the UI element`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`btn-login`,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.id attribute`}]},"ui.element.identifier":{brief:`The identifier used to measure the UI element timing`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`heroImage`,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.identifier attribute`}]},"ui.element.load_time":{brief:`The loading time of a UI element (from time origin to finished loading)`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:998.2234,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.load_time attribute`}]},"ui.element.paint_type":{brief:`The type of element paint. Can either be 'image-paint' or 'text-paint'`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`image-paint`,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.paint_type attribute`}]},"ui.element.render_time":{brief:`The rendering time of the UI element (from time origin to finished rendering)`,type:`double`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1023.1124,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.render_time attribute`}]},"ui.element.type":{brief:`type of the UI element`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`img`,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.type attribute`}]},"ui.element.url":{brief:`The URL of the UI element (e.g. an img src)`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`https://assets.myapp.com/hero.png`,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.url attribute`}]},"ui.element.width":{brief:`The width of the UI element (for HTML in pixels)`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:512,changelog:[{version:`0.5.0`,prs:[284],description:`Added ui.element.width attribute`}]},url:{brief:`The URL of the resource that was fetched.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`https://example.com/test?foo=bar#buzz`,deprecation:{replacement:`url.full`},aliases:[`url.full`,`http.url`],changelog:[{version:`0.1.0`,prs:[61]},{version:`0.0.0`}]},"url.domain":{brief:`Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`example.com`,changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"url.fragment":{brief:"The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does.",type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`details`,changelog:[{version:`0.0.0`}]},"url.full":{brief:`The URL of the resource that was fetched.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`https://example.com/test?foo=bar#buzz`,aliases:[`http.url`,`url`],changelog:[{version:`0.1.0`,prs:[108]},{version:`0.0.0`}]},"url.path":{brief:`The URI path component.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`/foo`,changelog:[{version:`0.0.0`}]},"url.path.parameter.<key>":{brief:`Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,hasDynamicSuffix:!0,example:`url.path.parameter.id='123'`,aliases:[`params.<key>`],changelog:[{version:`0.1.0`,prs:[103]}]},"url.port":{brief:`Server port number.`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:1337,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.0.0`}]},"url.query":{brief:"The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does.",type:`string`,applyScrubbing:{key:`auto`,reason:`Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.`},isInOtel:!0,visibility:`public`,example:`foo=bar&bar=baz`,changelog:[{version:`0.0.0`}]},"url.same_origin":{brief:`Indicates that a URL has the same origin as the current page's origin in the browser.`,type:`boolean`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:!0,deprecation:{replacement:`http.request.same_origin`,reason:`This attribute is being deprecated
16in favor of http.request.same_origin.`},aliases:[`http.request.same_origin`],changelog:[{version:`0.16.0`,prs:[456],description:`Added url.same_origin attribute, deprecated in favor of http.request.same_origin`}]},"url.scheme":{brief:`The URI scheme component identifying the used protocol.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`https`,aliases:[`http.scheme`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"url.template":{brief:`The low-cardinality template of an absolute path reference.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`/users/:id`,aliases:[`http.route`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"user_agent.original":{brief:`Value of the HTTP User-Agent header sent by the client.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!0,visibility:`public`,example:`Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1`,aliases:[`http.user_agent`],changelog:[{version:`0.1.0`,prs:[127]},{version:`0.0.0`}]},"user.email":{brief:`User email address.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`[email protected]`,aliases:[`sentry.user.email`],changelog:[{version:`0.0.0`}]},"user.full_name":{brief:`User's full name.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`John Smith`,changelog:[{version:`0.0.0`}]},"user.geo.city":{brief:`Human readable city name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Toronto`,aliases:[`sentry.user.geo.city`],changelog:[{version:`0.0.0`}]},"user.geo.country_code":{brief:`Two-letter country code (ISO 3166-1 alpha-2).`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`CA`,aliases:[`sentry.user.geo.country_code`],changelog:[{version:`0.0.0`}]},"user.geo.region":{brief:`Human readable region name or code.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Canada`,aliases:[`sentry.user.geo.region`],changelog:[{version:`0.0.0`}]},"user.geo.subdivision":{brief:`Human readable subdivision name.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`Ontario`,aliases:[`sentry.user.geo.subdivision`],changelog:[{version:`0.0.0`}]},"user.hash":{brief:`Unique user hash to correlate information for a user in anonymized form.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d`,changelog:[{version:`0.0.0`}]},"user.id":{brief:`Unique identifier of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`S-1-5-21-202424912787-2692429404-2351956786-1000`,aliases:[`sentry.user.id`],changelog:[{version:`0.0.0`}]},"user.ip_address":{brief:`The IP address of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`192.168.1.1`,aliases:[`sentry.user.ip`],changelog:[{version:`0.1.0`,prs:[75]}]},"user.name":{brief:`Short name or login/username of the user.`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:`j.smith`,aliases:[`sentry.user.username`],changelog:[{version:`0.0.0`}]},"user.roles":{brief:`Array of user roles at the time of the event.`,type:`string[]`,applyScrubbing:{key:`auto`},isInOtel:!0,visibility:`public`,example:[`admin`,`editor`],changelog:[{version:`0.0.0`}]},"vercel.branch":{brief:`Git branch name for Vercel project`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`main`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.build_id":{brief:`Identifier for the Vercel build (only present on build logs)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`bld_cotnkcr76`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.deployment_id":{brief:`Identifier for the Vercel deployment`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`dpl_233NRGRjVZX1caZrXWtz5g1TAksD`,changelog:[{version:`0.2.0`,prs:[163]}]}
16,"vercel.destination":{brief:`Origin of the external content in Vercel (only on external logs)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`https://vitals.vercel-insights.com/v1`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.edge_type":{brief:`Type of edge runtime in Vercel`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`edge-function`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.entrypoint":{brief:`Entrypoint for the request in Vercel`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`api/index.js`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.execution_region":{brief:`Region where the request is executed`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`sfo1`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.id":{brief:`Unique identifier for the log entry in Vercel`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`1573817187330377061717300000`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.ja3_digest":{brief:`JA3 fingerprint digest of Vercel request`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.ja4_digest":{brief:`JA4 fingerprint digest`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`t13d1516h2_8daaf6152771_02713d6af862`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.log_type":{brief:`Vercel log output type`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`stdout`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.path":{brief:`Function or dynamic path of the request in Vercel.`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`/dynamic/[route].json`,changelog:[{version:`0.6.0`,prs:[349],description:`Added vercel.path attribute`}]},"vercel.project_id":{brief:`Identifier for the Vercel project`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`gdufoJxB6b9b1fEqr1jUtFkyavUU`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.project_name":{brief:`Name of the Vercel project`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`my-app`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.cache_id":{brief:`Original request ID when request is served from cache`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`pdx1::v8g4b-1744143786684-93dafbc0f70d`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.client_ip":{brief:`Client IP address`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`120.75.16.101`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.host":{brief:`Hostname of the request`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`test.vercel.app`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.lambda_region":{brief:`Region where lambda function executed`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`sfo1`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.method":{brief:`HTTP method of the request`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`GET`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.path":{brief:`Request path with query parameters`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`/dynamic/some-value.json?route=some-value`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.path_type":{brief:`How the request was served based on its path and project configuration`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`func`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.path_type_variant":{brief:`Variant of the path type`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`api`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.referer":{brief:`Referer of the request`,type:`string`,applyScrubbing:{key:`auto`},isInOtel:!1,visibility:`public`,example:`*.vercel.app`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.region":{brief:`Region where the request is processed`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`sfo1`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.response_byte_size":{brief:`Size of the response in bytes`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1024,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.2.0`,prs:[163]}]},"vercel.proxy.scheme":{brief:`Protocol of the request`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`https`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.status_code":{brief:`HTTP status code of the proxy request`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:200,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.2.0`,prs:[163]}]},"vercel.proxy.timestamp":{brief:`Unix timestamp when the proxy request was made`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:1573817250172,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.2.0`,prs:[163]}]},"vercel.proxy.user_agent":{brief:`User agent strings of the request`,type:`string[]`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:[`Mozilla/5.0...`],changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.vercel_cache":{brief:`Cache status sent to the browser`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`REVALIDATED`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.vercel_id":{brief:`Vercel-specific identifier`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`sfo1::abc123`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.waf_action":{brief:`Action taken by firewall rules`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`deny`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.proxy.waf_rule_id":{brief:`ID of the firewall rule that matched`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`rule_gAHz8jtSB1Gy`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.request_id":{brief:`Identifier of the Vercel request`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`643af4e3-975a-4cc7-9e7a-1eda11539d90`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.source":{brief:`Origin of the Vercel log (build, edge, lambda, static, external, or firewall)`,type:`string`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:`build`,changelog:[{version:`0.2.0`,prs:[163]}]},"vercel.status_code":{brief:`HTTP status code of the request (-1 means no response returned and the lambda crashed)`,type:`integer`,applyScrubbing:{key:`manual`},isInOtel:!1,visibility:`public`,example:200,changelog:[{version:`0.4.0`,prs:[228]},{version:`0.2.0`,prs:[163]}]}},DEFAULT_ENVIRONMENT=`production`,FROZEN_DSC_FIELD=`_frozenDsc`;function getDynamicSamplingContextFromClient(e,t){let $=t.getOptions(),{publicKey:ed}=t.getDsn()||{},td={environment:$.environment||`production`,release:$.release,public_key:ed,trace_id:e,org_id:extractOrgIdFromClient(t)};return t.emit(`createDsc`,td),td}function getDynamicSamplingContextFromScope(e,t){let $=t.getPropagationContext();return $.dsc||getDynamicSamplingContextFromClient($.traceId,e)}function getDynamicSamplingContextFromSpan(e){let t=getClient();if(!t)return{};let $=getRootSpan(e),ed=spanToJSON($),td=ed.data,nd=$.spanContext().traceState,rd=nd?.get(`sentry.sample_rate`)??td[`sentry.sample_rate`]??td[`sentry.previous_trace_sample_rate`];function id(e){return(typeof rd==`number`||typeof rd==`string`)&&(e.sample_rate=`${rd}`),e}let ad=$[FROZEN_DSC_FIELD];if(ad)return id(ad);let od=spanIsNonRecordingSpan($),sd=od&&$.dropReason===`ignored`;if(od&&(!hasSpansEnabled(t.getOptions())||sd)){let e=getCapturedScopesOnSpan($).scope;if(e){let $={...getDynamicSamplingContextFromScope(t,e)};return sd&&($.sampled=`false`),id($)}}let cd=nd?.get(`sentry.dsc`),ld=cd&&baggageHeaderToDynamicSamplingContext(cd);if(ld)return id(ld);let ud=getDynamicSamplingContextFromClient(e.spanContext().traceId,t),dd=td[`sentry.source`]??td[`sentry.span.source`],fd=ed.description;return dd!==`url`&&fd&&(ud.transaction=fd),hasSpansEnabled()&&(ud.sampled=String(spanIsSampled($)),ud.sample_rand=nd?.get(`sentry.sample_rand`)??getCapturedScopesOnSpan($).scope?.getPropagationContext().sampleRand.toString()),id(ud),t.emit(`createDsc`,ud,$),ud}function isStreamedBeforeSendSpanCallback(e){return!!e&&typeof e==`function`&&`_streamed`
16in e&&!!e._streamed}function createEnvelope(e,t=[]){return[e,t]}function addItemToEnvelope(e,t){let[$,ed]=e;return[$,[...ed,t]]}function forEachEnvelopeItem(e,t){let $=e[1];for(let e of $){let $=e[0].type;if(t(e,$))return!0}return!1}function envelopeContainsItemType(e,t){return forEachEnvelopeItem(e,(e,$)=>t.includes($))}function encodeUTF8(e){let t=getSentryCarrier(GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function serializeEnvelope(e){let[t,$]=e,ed=JSON.stringify(t);function td(e){typeof ed==`string`?ed=typeof e==`string`?ed+e:[encodeUTF8(ed),e]:ed.push(typeof e==`string`?encodeUTF8(e):e)}for(let e of $){let[t,$]=e;if(td(` 17${JSON.stringify(t)} 18`),typeof $==`string`||$ instanceof Uint8Array)td($);else{let e;try{e=JSON.stringify($)}catch{e=JSON.stringify(normalize($))}td(e)}}return typeof ed==`string`?ed:concatBuffers(ed)}function concatBuffers(e){let t=e.reduce((e,t)=>e+t.length,0),$=new Uint8Array(t),ed=0;for(let t of e)$.set(t,ed),ed+=t.length;return $}function createAttachmentEnvelopeItem(e){let t=typeof e.data==`string`?encodeUTF8(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var DATA_CATEGORY_OVERRIDES={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function _isOverriddenType(e){return e in DATA_CATEGORY_OVERRIDES}function envelopeItemTypeToDataCategory(e){return _isOverriddenType(e)?DATA_CATEGORY_OVERRIDES[e]:e}function getSdkMetadataForEnvelopeHeader(e){if(!e?.sdk)return;let{name:t,version:$}=e.sdk;return{name:t,version:$}}function createEventEnvelopeHeaders(e,t,$,ed){let td=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(safeDateNow()).toISOString(),...t&&{sdk:t},...!!$&&ed&&{dsn:dsnToString(ed)},...td&&{trace:td}}}function _enhanceEventWithSdkInfo(e,t){if(!t)return e;let $=e.sdk||{};return e.sdk={...$,name:$.name||t.name,version:$.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function createSessionEnvelope(e,t,$,ed){let td=getSdkMetadataForEnvelopeHeader($);return createEnvelope({sent_at:new Date(safeDateNow()).toISOString(),...td&&{sdk:td},...!!ed&&t&&{dsn:dsnToString(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function createEventEnvelope(e,t,$,ed){let td=getSdkMetadataForEnvelopeHeader($),nd=e.type&&e.type!==`replay_event`?e.type:`event`;_enhanceEventWithSdkInfo(e,$?.sdk);let rd=createEventEnvelopeHeaders(e,td,ed,t);return delete e.sdkProcessingMetadata,createEnvelope(rd,[[{type:nd},e]])}function hasSpanStreamingEnabled(e){return e.getOptions().traceLifecycle===`stream`}function applyScopeDataToEvent(e,t){let{fingerprint:$,span:ed,breadcrumbs:td,sdkProcessingMetadata:nd}=t;applyDataToEvent(e,t),ed&&applySpanToEvent(e,ed),applyFingerprintToEvent(e,$),applyBreadcrumbsToEvent(e,td),applySdkMetadataToEvent(e,nd)}function mergeScopeData(e,t){let{extra:$,tags:ed,attributes:td,user:nd,contexts:rd,level:id,sdkProcessingMetadata:ad,breadcrumbs:od,fingerprint:sd,eventProcessors:cd,attachments:ld,propagationContext:ud,transactionName:dd,span:fd}=t;mergeAndOverwriteScopeData(e,`extra`,$),mergeAndOverwriteScopeData(e,`tags`,ed),mergeAndOverwriteScopeData(e,`attributes`,td),mergeAndOverwriteScopeData(e,`user`,nd),mergeAndOverwriteScopeData(e,`contexts`,rd),e.sdkProcessingMetadata=merge$3(e.sdkProcessingMetadata,ad,2),id&&(e.level=id),dd&&(e.transactionName=dd),fd&&(e.span=fd),od.length&&(e.breadcrumbs=[...e.breadcrumbs,...od]),sd.length&&(e.fingerprint=[...e.fingerprint,...sd]),cd.length&&(e.eventProcessors=[...e.eventProcessors,...cd]),ld.length&&(e.attachments=[...e.attachments,...ld]),e.propagationContext={...e.propagationContext,...ud}}function mergeAndOverwriteScopeData(e,t,$){e[t]=merge$3(e[t],$,1)}function getCombinedScopeData(e,t){let $=getGlobalScope().getScopeData();return e&&mergeScopeData($,e.getScopeData()),t&&mergeScopeData($,t.getScopeData()),$}function applyDataToEvent(e,t){let{extra:$,tags:ed,user:td,contexts:nd,level:rd,transactionName:id}=t;Object.keys($).length&&(e.extra={...$,...e.extra}),Object.keys(ed).length&&(e.tags={...ed,...e.tags}),Object.keys(td).length&&(e.user={...td,...e.user}),Object.keys(nd).length&&(e.contexts={...nd,...e.contexts}),rd&&(e.level=rd),id&&e.type!==`transaction`&&(e.transaction=id)}function applyBreadcrumbsToEvent(e,t){let $=[...e.breadcrumbs||[],...t];e.breadcrumbs=$.length?$:void 0}function applySdkMetadataToEvent(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function applySpanToEvent(e,t){e.contexts={trace:spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};let $=spanToJSON(getRootSpan(t)).description;$&&!e.transaction&&e.type===`transaction`&&(e.transaction=$)}function applyFingerprintToEvent(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function safeSetSpanJSONAttributes(e,t){let $=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in $)&&($[e]=t)})}var STATE_PENDING=0,STATE_RESOLVED=1,STATE_REJECTED=2;function resolvedSyncPromise(e){return new SyncPromise(t=>{t(e)})}function rejectedSyncPromise(e){return new SyncPromise((t,$)=>{$(e)})}var SyncPromise=class e{constructor(e){this._state=STATE_PENDING,this._handlers=[],this._runExecutor(e)}then(t,$){return new e((e,ed)=>{this._handlers.push([!1,$=>{if(!t)e($);else try{e(t($))}catch(e){ed(e)}},t=>{if(!$)ed(t);else try{e($(t))}catch(e){ed(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,$)=>{let ed,td;return this.then(e=>{td=!1,ed=e,t&&t()},e=>{td=!0,ed=e,t&&t()}).then(()=>
18{if(td){$(ed);return}e(ed)})})}_executeHandlers(){if(this._state===STATE_PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===STATE_RESOLVED&&e[1](this._value),this._state===STATE_REJECTED&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===STATE_PENDING){if(isThenable(t)){t.then($,ed);return}this._state=e,this._value=t,this._executeHandlers()}},$=e=>{t(STATE_RESOLVED,e)},ed=e=>{t(STATE_REJECTED,e)};try{e($,ed)}catch(e){ed(e)}}};function notifyEventProcessors(e,t,$,ed=0){try{let td=_notifyEventProcessors(t,$,e,ed);return isThenable(td)?td:resolvedSyncPromise(td)}catch(e){return rejectedSyncPromise(e)}}function _notifyEventProcessors(e,t,$,ed){let td=$[ed];if(!e||!td)return e;let nd=td({...e},t);return DEBUG_BUILD$2&&nd===null&&debug.log(`Event processor "${td.id||`?`}" dropped event`),isThenable(nd)?nd.then(e=>_notifyEventProcessors(e,t,$,ed+1)):_notifyEventProcessors(nd,t,$,ed+1)}var parsedStackResults,lastSentryKeysCount,lastNativeKeysCount,cachedFilenameDebugIds;function getFilenameToDebugIdMap(e){let t=GLOBAL_OBJ._sentryDebugIds,$=GLOBAL_OBJ._debugIds;if(!t&&!$)return{};let ed=t?Object.keys(t):[],td=$?Object.keys($):[];if(cachedFilenameDebugIds&&ed.length===lastSentryKeysCount&&td.length===lastNativeKeysCount)return cachedFilenameDebugIds;lastSentryKeysCount=ed.length,lastNativeKeysCount=td.length,cachedFilenameDebugIds={},parsedStackResults||={};let nd=(t,$)=>{for(let ed of t){let t=$[ed],td=parsedStackResults?.[ed];if(td&&cachedFilenameDebugIds&&t)cachedFilenameDebugIds[td[0]]=t,parsedStackResults&&(parsedStackResults[ed]=[td[0],t]);else if(t){let $=e(ed);for(let e=$.length-1;e>=0;e--){let td=$[e]?.filename;if(td&&cachedFilenameDebugIds&&parsedStackResults){cachedFilenameDebugIds[td]=t,parsedStackResults[ed]=[td,t];break}}}}};return t&&nd(ed,t),$&&nd(td,$),cachedFilenameDebugIds}function prepareEvent(e,t,$,ed,td,nd){let{normalizeDepth:rd=3,normalizeMaxBreadth:id=1e3}=e,ad={...t,event_id:t.event_id||$.event_id||uuid4(),timestamp:t.timestamp||dateTimestampInSeconds()},od=$.integrations||e.integrations.map(e=>e.name);applyClientOptions(ad,e),applyIntegrationsMetadata(ad,od),td&&td.emit(`applyFrameMetadata`,t),t.type===void 0&&applyDebugIds(ad,e.stackParser);let sd=getFinalScope(ed,$.captureContext);$.mechanism&&addExceptionMechanism(ad,$.mechanism);let cd=td?td.getEventProcessors():[],ld=getCombinedScopeData(nd,sd),ud=[...$.attachments||[],...ld.attachments];ud.length&&($.attachments=ud),applyScopeDataToEvent(ad,ld);let dd=[...cd,...ld.eventProcessors];return($.data&&$.data.__sentry__===!0?resolvedSyncPromise(ad):notifyEventProcessors(dd,ad,$)).then(e=>(e&&applyDebugMeta(e),typeof rd==`number`&&rd>0?normalizeEvent(e,rd,id):e))}function applyClientOptions(e,t){let{environment:$,release:ed,dist:td,maxValueLength:nd}=t;e.environment=e.environment||$||`production`,!e.release&&ed&&(e.release=ed),!e.dist&&td&&(e.dist=td);let rd=e.request;rd?.url&&nd&&(rd.url=truncate(rd.url,nd)),nd&&e.exception?.values?.forEach(e=>{e.value&&=truncate(e.value,nd)})}function applyDebugIds(e,t){let $=getFilenameToDebugIdMap(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=$[e.filename])})})}function applyDebugMeta(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let $=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{$.push({type:`sourcemap`,code_file:e,debug_id:t})})}function applyIntegrationsMetadata(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function normalizeEvent(e,t,$){if(!e)return null;let ed={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:normalize(e.data,t,$)}}))},...e.user&&{user:normalize(e.user,t,$)},...e.contexts&&{contexts:normalize(e.contexts,t,$)},...e.extra&&{extra:normalize(e.extra,t,$)}};return e.contexts?.trace&&ed.contexts&&(ed.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(ed.contexts.trace.data=normalize(e.contexts.trace.data,t,$))),e.spans&&(ed.spans=e.spans.map(e=>({...e,...e.data&&{data:normalize(e.data,t,$)}}))),e.contexts?.flags&&ed.contexts&&(ed.contexts.flags=normalize(e.contexts.flags,3,$)),ed}function getFinalScope(e,t){if(!t)return e;let $=e?e.clone():new Scope;return $.update(t),$}function parseEventHintOrCaptureContext(e){if(e)return hintIsScopeOrFunction(e)||hintIsScopeContext(e)?{captureContext:e}:e}function hintIsScopeOrFunction(e){return e instanceof Scope||typeof e==`function`}var captureContextKeys=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function hintIsScopeContext(e){return Object.keys(e).some(e=>captureContextKeys.includes(e))}function captureException(e,t){return getCurrentScope$1().captureException(e,parseEventHintOrCaptureContext(t))}function captureEvent(e,t){return getCurrentScope$1().captureEvent(e,t)}function startSession(e){let t=getIsolationScope(),{user:$}=getCombinedScopeData(t,getCurrentScope$1()),{userAgent:ed}=GLOBAL_OBJ.navigator||{},td=makeSession({user:$,...ed&&{userAgent:ed},...e}),nd=t.getSession();return nd?.status===`ok`&&updateSession(nd,{status:`exited`}),endSession(),t.setSession(td),td}function endSession(){let e=getIsolationScope(),t=getCurrentScope$1().getSession()||e.getSession();t&&closeSession(t),_sendSessionUpdate(),e.setSession()}function _sendSessionUpdate(){let e=getIsolationScope(),t=getClient(),$=e.getSession();$&&t&&t.captureSession($)}function captureSession(e=!1){if(e){endSession();return}_sendSessionUpdate()}function safeUnref(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var SENTRY_API_VERSION=`7`;function getBaseApiEndpoint(e){let t=e.protocol?`${e.protocol}:`:``,$=e.port?`:${e.port}`:``;return`${t}//${e.host}${$}${e.path?`/${e.path}`:``}/api/`}function _getIngestEndpoint(e){return`${getBaseApiEndpoint(e)}${e.projectId}/envelope/`}function _encodedAuth(e,t){let $={sentry_version:`7`};return e.publicKey&&($.sentry_key=e.publicKey),t&&($.sentry_client=`${t.name}/${t.version}`),new URLSearchParams($).toString()}function getEnvelopeEndpointWithUrlEncodedAuth(e,t,$){return t||`${_getIngestEndpoint(e)}?${_encodedAuth(e,$)}`}var installedIntegrations=[];function filterDuplicates(e){let t={};
18return e.forEach(e=>{let{name:$}=e,ed=t[$];ed&&!ed.isDefaultInstance&&e.isDefaultInstance||(t[$]=e)}),Object.values(t)}function getIntegrationsToSetup(e){let t=e.defaultIntegrations||[],$=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let ed;if(Array.isArray($))ed=[...t,...$];else if(typeof $==`function`){let e=$(t);ed=Array.isArray(e)?e:[e]}else ed=t;return filterDuplicates(ed)}function setupIntegrations(e,t){let $={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&setupIntegration(e,t,$)}),$}function afterSetupIntegrations(e,t){for(let $ of t)$?.afterAllSetup&&$.afterAllSetup(e)}function setupIntegration(e,t,$){if($[t.name]){DEBUG_BUILD$2&&debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if($[t.name]=t,!installedIntegrations.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),installedIntegrations.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let $=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,ed)=>$(t,ed,e))}if(typeof t.processEvent==`function`){let $=t.processEvent.bind(t),ed=Object.assign((t,ed)=>$(t,ed,e),{id:t.name});e.addEventProcessor(ed)}[`processSpan`,`processSegmentSpan`].forEach($=>{let ed=t[$];typeof ed==`function`&&e.on($,$=>ed.call(t,$,e))}),DEBUG_BUILD$2&&debug.log(`Integration installed: ${t.name}`)}function defineIntegration(e){return e}function isBrowserBundle(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function getSDKSource(){return`npm`}init_dist();function isNodeEnv(){return!isBrowserBundle()&&Object.prototype.toString.call(process$1===void 0?0:process$1)===`[object process]`}function isBrowser(){return typeof window<`u`&&(!isNodeEnv()||isElectronNodeRenderer())}function isElectronNodeRenderer(){return GLOBAL_OBJ.process?.type===`renderer`}function createLogContainerEnvelopeItem(e,t){let $=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...isBrowser()&&{ingest_settings:{infer_ip:$,infer_user_agent:$}},items:e}]}function createLogEnvelope(e,t,$,ed,td){let nd={};return t?.sdk&&(nd.sdk={name:t.sdk.name,version:t.sdk.version}),$&&ed&&(nd.dsn=dsnToString(ed)),createEnvelope(nd,[createLogContainerEnvelopeItem(e,td)])}function _INTERNAL_flushLogsBuffer(e,t){let $=t??_INTERNAL_getLogBuffer(e)??[];if($.length===0)return;let ed=e.getOptions(),td=createLogEnvelope($,ed._metadata,ed.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_getBufferMap$1().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(td)}function _INTERNAL_getLogBuffer(e){return _getBufferMap$1().get(e)}function _getBufferMap$1(){return getGlobalSingleton(`clientToLogBufferMap`,()=>new WeakMap)}function createMetricContainerEnvelopeItem(e,t){let $=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...isBrowser()&&{ingest_settings:{infer_ip:$,infer_user_agent:$}},items:e}]}function createMetricEnvelope(e,t,$,ed,td){let nd={};return t?.sdk&&(nd.sdk={name:t.sdk.name,version:t.sdk.version}),$&&ed&&(nd.dsn=dsnToString(ed)),createEnvelope(nd,[createMetricContainerEnvelopeItem(e,td)])}function _INTERNAL_flushMetricsBuffer(e,t){let $=t??_INTERNAL_getMetricBuffer(e)??[];if($.length===0)return;let ed=e.getOptions(),td=createMetricEnvelope($,ed._metadata,ed.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_getBufferMap().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(td)}function _INTERNAL_getMetricBuffer(e){return _getBufferMap().get(e)}function _getBufferMap(){return getGlobalSingleton(`clientToMetricBufferMap`,()=>new WeakMap)}function spanJsonToSerializedStreamedSpan(e){return streamedSpanJsonToSerializedSpan({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function extractGenAiSpansFromEvent(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||hasSpanStreamingEnabled(t))return;let $=[],ed=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?$.push(spanJsonToSerializedStreamedSpan(t)):ed.push(t);if($.length===0)return;e.spans=ed;let td=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:$.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...isBrowser()&&{ingest_settings:{infer_ip:td,infer_user_agent:td}},items:$}]}var SENTRY_BUFFER_FULL_ERROR=Symbol.for(`SentryBufferFullError`);function makePromiseBuffer(e=100){let t=new Set;function $(){return t.size<e}function ed(e){t.delete(e)}function td(e){if(!$())return rejectedSyncPromise(SENTRY_BUFFER_FULL_ERROR);let td=e();return t.add(td),td.then(()=>ed(td),()=>ed(td)),td}
18function nd(e){if(!t.size)return resolvedSyncPromise(!0);let $=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return $;let ed=[$,new Promise(t=>safeUnref(setTimeout(()=>t(!1),e)))];return Promise.race(ed)}return{get $(){return Array.from(t)},add:td,drain:nd}}var DEFAULT_RETRY_AFTER=60*1e3;function parseRetryAfterHeader(e,t=safeDateNow()){let $=parseInt(`${e}`,10);if(!isNaN($))return $*1e3;let ed=Date.parse(`${e}`);return isNaN(ed)?DEFAULT_RETRY_AFTER:ed-t}function disabledUntil(e,t){return e[t]||e.all||0}function isRateLimited(e,t,$=safeDateNow()){return disabledUntil(e,t)>$}function updateRateLimits(e,{statusCode:t,headers:$},ed=safeDateNow()){let td={...e},nd=$?.[`x-sentry-rate-limits`],rd=$?.[`retry-after`];if(nd)for(let e of nd.trim().split(`,`)){let[t,$,,,nd]=e.split(`:`,5),rd=parseInt(t,10),id=(isNaN(rd)?60:rd)*1e3;if(!$)td.all=ed+id;else for(let e of $.split(`;`))e===`metric_bucket`?(!nd||nd.split(`;`).includes(`custom`))&&(td[e]=ed+id):td[e]=ed+id}else rd?td.all=ed+parseRetryAfterHeader(rd,ed):t===429&&(td.all=ed+60*1e3);return td}var DEFAULT_TRANSPORT_BUFFER_SIZE=64;function createTransport(e,t,$=makePromiseBuffer(e.bufferSize||64)){let ed={},td=e=>$.drain(e);function nd(td){let nd=[];if(forEachEnvelopeItem(td,(t,$)=>{let td=envelopeItemTypeToDataCategory($);isRateLimited(ed,td)?e.recordDroppedEvent(`ratelimit_backoff`,td):nd.push(t)}),nd.length===0)return Promise.resolve({});let rd=createEnvelope(td[0],nd),id=t=>{if(envelopeContainsItemType(rd,[`client_report`])){DEBUG_BUILD$2&&debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}forEachEnvelopeItem(rd,($,ed)=>{e.recordDroppedEvent(t,envelopeItemTypeToDataCategory(ed))})};return $.add(()=>t({body:serializeEnvelope(rd)}).then(e=>e.statusCode===413?(DEBUG_BUILD$2&&debug.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),id(`send_error`),e):(DEBUG_BUILD$2&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),ed=updateRateLimits(ed,e),e),e=>{throw id(`network_error`),DEBUG_BUILD$2&&debug.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===SENTRY_BUFFER_FULL_ERROR)return DEBUG_BUILD$2&&debug.error(`Skipped sending event because buffer is full.`),id(`queue_overflow`),Promise.resolve({});throw e})}return{send:nd,flush:td}}function createClientReportEnvelope(e,t,$){let ed=[{type:`client_report`},{timestamp:$||dateTimestampInSeconds(),discarded_events:e}];return createEnvelope(t?{dsn:t}:{},[ed])}function getPossibleEventMessages(e){let t=[];e.message&&t.push(e.message);try{let $=e.exception.values[e.exception.values.length-1];$?.value&&(t.push($.value),$.type&&t.push(`${$.type}: ${$.value}`))}catch{}return t}function convertTransactionEventToSpanJson(e){let{trace_id:t,parent_span_id:$,span_id:ed,status:td,origin:nd,data:rd,op:id}=e.contexts?.trace??{};return{data:rd??{},description:e.transaction,op:id,parent_span_id:$,span_id:ed??``,start_timestamp:e.start_timestamp??0,status:td,timestamp:e.timestamp,trace_id:t??``,origin:nd,profile_id:rd?.[SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:rd?.[SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}function convertSpanJsonToTransactionEvent(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var PII_HEADER_SNIPPETS=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function defaultPiiToCollectionOptions(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
18,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:PII_HEADER_SNIPPETS},response:{deny:PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:PII_HEADER_SNIPPETS},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var DEFAULTS={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function resolveDataCollectionOptions(e){let t=e.dataCollection==null?defaultPiiToCollectionOptions(e.sendDefaultPii):DEFAULTS,$=e.dataCollection??{};return{userInfo:$.userInfo??t.userInfo,cookies:$.cookies??t.cookies,httpHeaders:{request:$.httpHeaders?.request??t.httpHeaders.request,response:$.httpHeaders?.response??t.httpHeaders.response},httpBodies:$.httpBodies??t.httpBodies,queryParams:$.queryParams??t.queryParams,graphQL:{document:$.graphQL?.document??t.graphQL.document,variables:$.graphQL?.variables??t.graphQL.variables},genAI:{inputs:$.genAI?.inputs??t.genAI.inputs,outputs:$.genAI?.outputs??t.genAI.outputs},databaseQueryData:$.databaseQueryData??t.databaseQueryData,stackFrameVariables:$.stackFrame
18Variables??t.stackFrameVariables,frameContextLines:$.frameContextLines??t.frameContextLines}}var ALREADY_SEEN_ERROR=`Not capturing exception because it's already been captured.`,MISSING_RELEASE_FOR_SESSION_ERROR=`Discarded session because of missing or non-string release`,INTERNAL_ERROR_SYMBOL=Symbol.for(`SentryInternalError`),DO_NOT_SEND_EVENT_SYMBOL=Symbol.for(`SentryDoNotSendEventError`),DEFAULT_FLUSH_INTERVAL=5e3;function _makeInternalError(e){return{message:e,[INTERNAL_ERROR_SYMBOL]:!0}}function _makeDoNotSendEventError(e){return{message:e,[DO_NOT_SEND_EVENT_SYMBOL]:!0}}function _isInternalError(e){return isObjectLike$1(e)&&INTERNAL_ERROR_SYMBOL in e}function _isDoNotSendEventError(e){return isObjectLike$1(e)&&DO_NOT_SEND_EVENT_SYMBOL in e}function setupWeightBasedFlushing(e,t,$,ed,td){let nd=0,rd,id=!1;e.on($,()=>{nd=0,clearTimeout(rd),id=!1}),e.on(t,t=>{if(nd+=ed(t),nd>=8e5)td(e);else if(!id){let t=e.getOptions()._flushInterval??DEFAULT_FLUSH_INTERVAL;t>0&&(id=!0,rd=safeUnref(setTimeout(()=>{td(e)},t)))}}),e.on(`flush`,()=>{td(e)})}var Client=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=makePromiseBuffer(e.transportOptions?.bufferSize??64),this._dataCollection=resolveDataCollectionOptions(e),e.dsn?this._dsn=makeDsn(e.dsn):DEBUG_BUILD$2&&debug.warn(`No DSN provided, client will not send events.`),this._dsn){let t=getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&setupWeightBasedFlushing(this,`afterCaptureLog`,`flushLogs`,estimateLogSizeInBytes,_INTERNAL_flushLogsBuffer),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&setupWeightBasedFlushing(this,`afterCaptureMetric`,`flushMetrics`,estimateMetricSizeInBytes,_INTERNAL_flushMetricsBuffer)}captureException(e,t,$){let ed=uuid4();if(checkOrSetAlreadyCaught(e))return DEBUG_BUILD$2&&debug.log(ALREADY_SEEN_ERROR),ed;let td={event_id:ed,...t};return this._process(()=>this.eventFromException(e,td).then(e=>this._captureEvent(e,td,$)).then(e=>e),`error`),td.event_id}captureMessage(e,t,$,ed){let td={event_id:uuid4(),...$},nd=isParameterizedString(e)?e:String(e),rd=isPrimitive(e),id=rd?this.eventFromMessage(nd,t,td):this.eventFromException(e,td);return this._process(()=>id.then(e=>this._captureEvent(e,td,ed)),rd?`unknown`:`error`),td.event_id}captureEvent(e,t,$){let ed=uuid4();if(t?.originalException&&checkOrSetAlreadyCaught(t.originalException))return DEBUG_BUILD$2&&debug.log(ALREADY_SEEN_ERROR),ed;let td={event_id:ed,...t},nd=e.sdkProcessingMetadata||{},rd=nd.capturedSpanScope,id=nd.capturedSpanIsolationScope,ad=getDataCategoryByType(e.type);return this._process(()=>this._captureEvent(e,td,rd||$,id),ad),td.event_id}captureSession(e){this.sendSession(e),updateSession(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let $=await this._isClientDoneProcessing(e),ed=await t.flush(e);return $&&ed}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),setupIntegration(this,e,this._integrations),t||afterSetupIntegrations(this,[e])}sendEvent(e,t={}
18){this.emit(`beforeSendEvent`,e,t);let $=extractGenAiSpansFromEvent(e,this),ed=createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])ed=addItemToEnvelope(ed,createAttachmentEnvelopeItem(e));$&&(ed=addItemToEnvelope(ed,$)),this.sendEnvelope(ed).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:$=DEFAULT_ENVIRONMENT}=this._options;if(`aggregates`in e){let ed=e.attrs||{};if(!ed.release&&!t){DEBUG_BUILD$2&&debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);return}ed.release=ed.release||t,ed.environment=ed.environment||$,e.attrs=ed}else{if(!e.release&&!t){DEBUG_BUILD$2&&debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);return}e.release=e.release||t,e.environment=e.environment||$}this.emit(`beforeSendSession`,e);let ed=createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(ed)}recordDroppedEvent(e,t,$=1){if(this._options.sendClientReports){let ed=`${e}:${t}`;DEBUG_BUILD$2&&debug.log(`Recording outcome: "${ed}"${$>1?` (${$} times)`:``}`),this._outcomes[ed]=(this._outcomes[ed]||0)+$}}on(e,t){let $=this._hooks[e]=this._hooks[e]||new Set,ed=(...e)=>t(...e);return $.add(ed),()=>{$.delete(ed)}}emit(e,...t){let $=this._hooks[e];$&&$.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return DEBUG_BUILD$2&&debug.error(`Error while sending envelope:`,e),{}}return DEBUG_BUILD$2&&debug.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=setupIntegrations(this,e),afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let $=t.level===`fatal`,ed=!1,td=t.exception?.values;if(td){ed=!0,$=!1;for(let e of td)if(e.mechanism?.handled===!1){$=!0;break}}let nd=e.status===`ok`;(nd&&e.errors===0||nd&&$)&&(updateSession(e,{...$&&{status:`crashed`},errors:e.errors||Number(ed||$)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,$,ed){let td=this.getOptions(),nd=this.getIntegrationNames();return!t.integrations&&nd.length&&(t.integrations=nd),this.emit(`preprocessEvent`,e,t),e.type||ed.setLastEventId(e.event_id||t.event_id),prepareEvent(td,e,t,$,this,ed).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...getTraceContextFromScope($)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:getDynamicSamplingContextFromScope(this,$),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},$=getCurrentScope$1(),ed=getIsolationScope()){return DEBUG_BUILD$2&&isErrorEvent(e)&&debug.log(`Captured error event \`${getPossibleEventMessages(e)[0]||`<unknown>`}\``),this._processEvent(e,t,$,ed).then(e=>e.event_id,e=>{DEBUG_BUILD$2&&(_isDoNotSendEventError(e)?debug.log(e.message):_isInternalError(e)?debug.warn(e.message):debug.warn(e))})}_processEvent(e,t,$,ed){let td=this.getOptions(),{sampleRate:nd}=td,rd=isTransactionEvent(e),id=isErrorEvent(e),ad=`before send for type \`${e.type||`error`}\``,od=nd===void 0?void 0:parseSampleRate(nd);if(id&&typeof od==`number`&&safeMathRandom()>od)return this.recordDroppedEvent(`sample_rate`,`error`),rejectedSyncPromise(_makeDoNotSendEventError(`Discarding event because it's not included in the random sample (sampling rate = ${nd})`));let sd=getDataCategoryByType(e.type);return this._prepareEvent(e,t,$,ed).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,sd),_makeDoNotSendEventError("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:_validateBeforeSendResult(processBeforeSend(this,td,e,t),ad)}).then(td=>{if(td===null){if(this.recordDroppedEvent(`before_send`,sd),rd){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw _makeDoNotSendEventError(`${ad} returned \`null\`, will not send event.`)}let nd=$.getSession()||ed.getSession();if(id&&nd&&this._updateSessionFromEvent(nd,td),rd){let e=(td.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(td.spans?td.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let od=td.transaction_info;if(rd&&od&&td.transaction!==e.transaction){let e=`custom`;td.transaction_info={...od,source:`custom`}}return this.sendEvent(td,t),td}).then(null,e=>{throw _isDoNotSendEventError(e)||_isInternalError(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),_makeInternalError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 19Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[$,ed]=e.split(`:`);return{reason:$,category:ed,quantity:t}})}_flushOutcomes(){DEBUG_BUILD$2&&debug.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){DEBUG_BUILD$2&&debug.log(`No outcomes to send`);return}if(!this._dsn){DEBUG_BUILD$2&&debug.log(`No dsn provided, will not send outcomes`);return}DEBUG_BUILD$2&&debug.log(`Sending outcomes:`,e);let t=createClientReportEnvelope(e,this._options.tunnel&&dsnToString(this._dsn));this.sendEnvelope(t)}};function getDataCategoryByType(e){return e===`replay_event`?`replay`
19:e||`error`}function _validateBeforeSendResult(e,t){let $=`${t} must return \`null\` or a valid event.`;if(isThenable(e))return e.then(e=>{if(!isPlainObject$2(e)&&e!==null)throw _makeInternalError($);return e},e=>{throw _makeInternalError(`${t} rejected with ${e}`)});if(!isPlainObject$2(e)&&e!==null)throw _makeInternalError($);return e}function processBeforeSend(e,t,$,ed){let{beforeSend:td,beforeSendTransaction:nd,ignoreSpans:rd}=t,id=!isStreamedBeforeSendSpanCallback(t.beforeSendSpan)&&t.beforeSendSpan,ad=$;if(isErrorEvent(ad)&&td)return td(ad,ed);if(isTransactionEvent(ad)){if(id||rd){let t=convertTransactionEventToSpanJson(ad);if(rd?.length&&shouldIgnoreSpan({description:t.description,op:t.op,attributes:t.data},rd))return null;if(id){let e=id(t);e?ad=merge$3($,convertSpanJsonToTransactionEvent(e)):showSpanDropWarning()}if(ad.spans){let t=[],$=ad.spans;for(let e of $){if(rd?.length&&shouldIgnoreSpan({description:e.description,op:e.op,attributes:e.data},rd)){reparentChildSpans($,e);continue}if(id){let $=id(e);$?t.push($):(showSpanDropWarning(),t.push(e))}else t.push(e)}let ed=ad.spans.length-t.length;ed&&e.recordDroppedEvent(`before_send`,`span`,ed),ad.spans=t}}if(nd){if(ad.spans){let e=ad.spans.length;ad.sdkProcessingMetadata={...$.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return nd(ad,ed)}}return ad}function isErrorEvent(e){return e.type===void 0}function isTransactionEvent(e){return e.type===`transaction`}function estimateMetricSizeInBytes(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+estimateAttributesSizeInBytes(e.attributes)}function estimateLogSizeInBytes(e){let t=0;return e.message&&(t+=e.message.length*2),t+estimateAttributesSizeInBytes(e.attributes)}function estimateAttributesSizeInBytes(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*estimatePrimitiveSizeInBytes(e[0]):isPrimitive(e)?t+=estimatePrimitiveSizeInBytes(e):t+=100}),t}function estimatePrimitiveSizeInBytes(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function initAndBind(e,t){t.debug===!0&&(DEBUG_BUILD$2?debug.enable():consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),getCurrentScope$1().update(t.initialScope);let $=new e(t);return setCurrentClient($),$.init(),$}function setCurrentClient(e){getCurrentScope$1().setClient(e)}function parseUrl$1(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let $=t[6]||``,ed=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:$,hash:ed,relative:t[5]+$+ed}}function stripDataUrlContent(e,t=!0){if(e.startsWith(`data:`)){let $=e.match(/^data:([^;,]+)/),ed=$?$[1]:`text/plain`,td=e.includes(`;base64,`),nd=e.indexOf(`,`),rd=``;if(t&&nd!==-1){let t=e.slice(nd+1);rd=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${ed}${td?`,base64`:``}${rd?`,${rd}`:``}`}return e}function addAutoIpAddressToSession(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function applySdkMetadata(e,t,$=[t],ed=`npm`){let td=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};td.name||(td.name=`sentry.javascript.${t}`,td.packages=$.map(e=>({name:`${ed}:@sentry/${e}`,version:SDK_VERSION})),td.version=SDK_VERSION)}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(e,t){let $=getClient(),ed=getIsolationScope();if(!$)return;let{beforeBreadcrumb:td=null,maxBreadcrumbs:nd=DEFAULT_BREADCRUMBS}=$.getOptions();if(nd<=0)return;let rd={timestamp:dateTimestampInSeconds(),...e},id=td?consoleSandbox(()=>td(rd,t)):rd;id!==null&&($.emit&&$.emit(`beforeAddBreadcrumb`,id,t),ed.addBreadcrumb(id,nd))}var originalFunctionToString,INTEGRATION_NAME$8=`FunctionToString`,SETUP_CLIENTS=new WeakMap,_functionToStringIntegration=(()=>({name:INTEGRATION_NAME$8,setupOnce(){originalFunctionToString=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=getOriginalFunction(this),$=SETUP_CLIENTS.has(getClient())&&t!==void 0?t:this;return originalFunctionToString.apply($,e)}}catch{}},setup(e){SETUP_CLIENTS.set(e,!0)}})),functionToStringIntegration=defineIntegration(_functionToStringIntegration),DEFAULT_IGNORE_E
19RRORS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],INTEGRATION_NAME$7=`EventFilters`,eventFiltersIntegration=defineIntegration((e={})=>{let t;return{name:INTEGRATION_NAME$7,setup($){t=_mergeOptions(e,$.getOptions())},processEvent($,ed,td){return t||=_mergeOptions(e,td.getOptions()),_shouldDropEvent$1($,t)?null:$}}}),inboundFiltersIntegration=defineIntegration(((e={})=>({...eventFiltersIntegration(e),name:`InboundFilters`})));function _mergeOptions(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:DEFAULT_IGNORE_ERRORS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function _shouldDropEvent$1(e,t){if(!e.type){if(_isIgnoredError(e,t.ignoreErrors))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 20Event: ${getEventDescription(e)}`),!0;if(_isUselessError(e))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to not having an error message, error type or stacktrace. 21Event: ${getEventDescription(e)}`),!0;if(_isDeniedUrl(e,t.denyUrls))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to being matched by \`denyUrls\` option. 22Event: ${getEventDescription(e)}. 23Url: ${_getEventFilterUrl(e)}`),!0;if(!_isAllowedUrl(e,t.allowUrls))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to not being matched by \`allowUrls\` option. 24Event: ${getEventDescription(e)}. 25Url: ${_getEventFilterUrl(e)}`),!0}else if(e.type===`transaction`&&_isIgnoredTransaction(e,t.ignoreTransactions))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 26Event: ${getEventDescription(e)}`),!0;return!1}function _isIgnoredError(e,t){return t?.length?getPossibleEventMessages(e).some(e=>stringMatchesSomePattern(e,t)):!1}function _isIgnoredTransaction(e,t){if(!t?.length)return!1;let $=e.transaction;return $?stringMatchesSomePattern($,t):!1}function _isDeniedUrl(e,t){if(!t?.length)return!1;let $=_getEventFilterUrl(e);return $?stringMatchesSomePattern($,t):!1}function _isAllowedUrl(e,t){if(!t?.length)return!0;let $=_getEventFilterUrl(e);return $?stringMatchesSomePattern($,t):!0}function _getLastValidUrl(e=[]){for(let t=e.length-1;t>=0;t--){let $=e[t];if($&&$.filename!==`<anonymous>`&&$.filename!==`[native code]`)return $.filename||null}return null}function _getEventFilterUrl(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?_getLastValidUrl(t):null}catch{return DEBUG_BUILD$2&&debug.error(`Cannot extract url for event ${getEventDescription(e)}`),null}}function _isUselessError(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function applyAggregateErrorsToEvent(e,t,$,ed,td,nd){if(!td.exception?.values||!nd||!isInstanceOf(nd.originalException,Error))return;let rd=td.exception.values.length>0?td.exception.values[td.exception.values.length-1]:void 0;rd&&(td.exception.values=aggregateExceptionsFromError(e,t,ed,nd.originalException,$,td.exception.values,rd,0))}function aggregateExceptionsFromError(e,t,$,ed,td,nd,rd,id){if(nd.length>=$+1)return nd;let ad=[...nd];if(isInstanceOf(ed[td],Error)){applyExceptionGroupFieldsForParentException(rd,id,ed);let nd=e(t,ed[td]),od=ad.length;applyExceptionGroupFieldsForChildException(nd,td,od,id),ad=aggregateExceptionsFromError(e,t,$,ed[td],td,[nd,...ad],nd,od)}return isExceptionGroup(ed)&&ed.errors.forEach((nd,od)=>{if(isInstanceOf(nd,Error)){applyExceptionGroupFieldsForParentException(rd,id,ed);let sd=e(t,nd),cd=ad.length;applyExceptionGroupFieldsForChildException(sd,`errors[${od}]`,cd,id),ad=aggregateExceptionsFromError(e,t,$,nd,td,[sd,...ad],sd,cd)}}),ad}function isExceptionGroup(e){return Array.isArray(e.errors)}function applyExceptionGroupFieldsForParentException(e,t,$){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...isExceptionGroup($)&&{is_exception_group:!0}
26,...e.mechanism,exception_id:t}}function applyExceptionGroupFieldsForChildException(e,t,$,ed){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:$,parent_id:ed}}function hasSentryFetchUrlHost(e){return isError(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function _enhanceErrorWithSentryInfo(e){return hasSentryFetchUrlHost(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var _filter=new Set([]);function addConsoleInstrumentationHandler(e){let t=`console`,$=addHandler(t,e);return maybeInstrument(t,instrumentConsole),$}function instrumentConsole(){`console`in GLOBAL_OBJ&&CONSOLE_LEVELS.forEach(function(e){e in GLOBAL_OBJ.console&&fill(GLOBAL_OBJ.console,e,function(t){return originalConsoleMethods[e]=t,function(...t){let $=t[0],ed=originalConsoleMethods[e],td=_filter.size&&typeof $==`string`&&stringMatchesSomePattern($,_filter);td||triggerHandlers(`console`,{args:t,level:e}),(!td||DEBUG_BUILD$2&&debug.isEnabled())&&ed?.apply(GLOBAL_OBJ.console,t)}})})}function severityLevelFromString(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var INTEGRATION_NAME$6=`Dedupe`,_dedupeIntegration=(()=>{let e;return{name:INTEGRATION_NAME$6,processEvent(t){if(t.type)return t;try{if(_shouldDropEvent(t,e))return DEBUG_BUILD$2&&debug.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}),dedupeIntegration=defineIntegration(_dedupeIntegration);function _shouldDropEvent(e,t){return t?!!(_isSameMessageEvent(e,t)||_isSameExceptionEvent(e,t)):!1}function _isSameMessageEvent(e,t){let $=e.message,ed=t.message;return!(!$&&!ed||$&&!ed||!$&&ed||$!==ed||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameExceptionEvent(e,t){let $=_getExceptionFromEvent(t),ed=_getExceptionFromEvent(e);return!(!$||!ed||$.type!==ed.type||$.value!==ed.value||!_isSameFingerprint(e,t)||!_isSameStacktrace(e,t))}function _isSameStacktrace(e,t){let $=getFramesFromEvent(e),ed=getFramesFromEvent(t);if(!$&&!ed)return!0;if($&&!ed||!$&&ed||($=$,ed=ed,ed.length!==$.length))return!1;for(let e=0;e<ed.length;e++){let t=ed[e],td=$[e];if(t.filename!==td.filename||t.lineno!==td.lineno||t.colno!==td.colno||t.function!==td.function)return!1}return!0}function _isSameFingerprint(e,t){let $=e.fingerprint,ed=t.fingerprint;if(!$&&!ed)return!0;if($&&!ed||!$&&ed)return!1;$=$,ed=ed;try{return $.join(``)===ed.join(``)}catch{return!1}}function _getExceptionFromEvent(e){return e.exception?.values?.[0]}var INTEGRATION_NAME$5=`ConversationId`,_conversationIdIntegration=(()=>({name:INTEGRATION_NAME$5,setup(e){e.on(`spanStart`,e=>{let t=getCurrentScope$1().getScopeData(),$=getIsolationScope().getScopeData(),ed=t.conversationId||$.conversationId;if(ed){let{op:t,data:$,description:td}=spanToJSON(e);if(!t?.startsWith(`gen_ai.`)&&!$[`ai.operationId`]&&!td?.startsWith(`ai.`))return;e.setAttribute(GEN_AI_CONVERSATION_ID_ATTRIBUTE,ed)}})}})),conversationIdIntegration=defineIntegration(_conversationIdIntegration);function getBreadcrumbLogLevelFromHttpStatusCode(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var WINDOW$3=GLOBAL_OBJ;function supportsHistory$1(){return`history`in WINDOW$3&&!!WINDOW$3.history}function _isFetchSupported(){if(!(`fetch`in WINDOW$3))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function isNativeFunction(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function supportsNativeFetch(){if(typeof EdgeRuntime==`string`)return!0;if(!_isFetchSupported())return!1;if(isNativeFunction(WINDOW$3.fetch))return!0;let e=!1,t=WINDOW$3.document;if(t&&typeof t.createElement==`function`)try{let $=t.createElement(`iframe`);$.hidden=!0,t.head.appendChild($),$.contentWindow?.fetch&&(e=isNativeFunction($.contentWindow.fetch)),t.head.removeChild($)}catch(e){DEBUG_BUILD$2&&debug.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function addFetchInstrumentationHandler(e,t){let $=`fetch`,ed=addHandler($,e);return maybeInstrument($,()=>instrumentFetch(void 0,t)),ed}function instrumentFetch(e,t=!1){t&&!supportsNativeFetch()||fill(GLOBAL_OBJ,`fetch`,function(t){return function(...$){let ed=Error(),{method:td,url:nd}=parseFetchArgs($),rd={args:$,fetchData:{method:td,url:nd},startTimestamp:timestampInSeconds()*1e3,virtualError:ed,headers:getHeadersFromFetchArgs($)};return e||triggerHandlers(`fetch`,{...rd}
26),t.apply(GLOBAL_OBJ,$).then(async t=>(e?e(t):triggerHandlers(`fetch`,{...rd,endTimestamp:timestampInSeconds()*1e3,response:t}),t),e=>{triggerHandlers(`fetch`,{...rd,endTimestamp:timestampInSeconds()*1e3,error:e}),isError(e)&&e.stack===void 0&&(e.stack=ed.stack,addNonEnumerableProperty(e,`framesToPop`,1));let t=getClient()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let $=new URL(rd.fetchData.url).host;t===`always`?e.message=`${e.message} (${$})`:addNonEnumerableProperty(e,`__sentry_fetch_url_host__`,$)}catch{}throw e})}})}function hasProp(e,t){return isObjectLike$1(e)&&!!e[t]}function getUrlFromResource(e){return typeof e==`string`?e:e?hasProp(e,`url`)?e.url:e.toString?e.toString():``:``}function parseFetchArgs(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,$]=e;return{url:getUrlFromResource(t),method:hasProp($,`method`)?String($.method).toUpperCase():isRequest(t)&&hasProp(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:getUrlFromResource(t),method:hasProp(t,`method`)?String(t.method).toUpperCase():`GET`}}function getHeadersFromFetchArgs(e){let[t,$]=e;try{if(typeof $==`object`&&$&&`headers`in $&&$.headers)return new Headers($.headers);if(isRequest(t))return new Headers(t.headers)}catch{}}var WINDOW$2=GLOBAL_OBJ;function getLocationHref(){try{return WINDOW$2.document.location.href}catch{return``}}function getComponentName$1(e,t=5){if(!WINDOW$2.HTMLElement)return null;let $=e;for(let e=0;e<t;e++){if(!$)return null;if($ instanceof HTMLElement){if($.dataset.sentryComponent)return $.dataset.sentryComponent;if($.dataset.sentryElement)return $.dataset.sentryElement}$=$.parentNode}return null}var WINDOW$1=GLOBAL_OBJ,ignoreOnError=0;function shouldIgnoreOnError(){return ignoreOnError>0}function ignoreNextOnError(){ignoreOnError++,setTimeout(()=>{ignoreOnError--})}function wrap(e,t={}){function $(e){return typeof e==`function`}if(!$(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(getOriginalFunction(e))return e}catch{return e}let ed=function(...$){GLOBAL_OBJ._sentryWrappedDepth=(GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let ed=$.map(e=>wrap(e,t));return e.apply(this,ed)}catch(e){throw ignoreNextOnError(),withScope(ed=>{ed.addEventProcessor(e=>(t.mechanism&&(addExceptionTypeValue(e,void 0,void 0),addExceptionMechanism(e,t.mechanism)),e.extra={...e.extra,arguments:$},e)),captureException(e)}),e}finally{GLOBAL_OBJ._sentryWrappedDepth=(GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ed[t]=e[t])}catch{}markFunctionWrapped(ed,e),addNonEnumerableProperty(e,`__sentry_wrapped__`,ed);try{Object.getOwnPropertyDescriptor(ed,`name`).configurable&&Object.defineProperty(ed,`name`,{get(){return e.name}})}catch{}return ed}function getHttpRequestData(){let e=getLocationHref(),{referrer:t}=WINDOW$1.document||{},{userAgent:$}=WINDOW$1.navigator||{};return{url:e,headers:{...t&&{Referer:t},...$&&{"User-Agent":$}}}}function exceptionFromError(e,t){let $=parseStackFrames(e,t),ed={type:extractType(t),value:extractMessage(t)};return $.length&&(ed.stacktrace={frames:$}),ed.type===void 0&&ed.value===``&&(ed.value=`Unrecoverable error caught`),ed}function eventFromPlainObject(e,t,$,ed){let td=getClient()?.getOptions().normalizeDepth,nd=getErrorPropertyFromObject(t),rd={__serialized__:normalizeToSize(t,td)};if(nd)return{exception:{values:[exceptionFromError(e,nd)]},extra:rd};let id={exception:{values:[{type:isEvent(t)?t.constructor.name:ed?`UnhandledRejection`:`Error`,value:getNonErrorObjectExceptionValue(t,{isUnhandledRejection:ed})}]},extra:rd};if($){let t=parseStackFrames(e,$);t.length&&(id.exception.values[0].stacktrace={frames:t})}return id}function eventFromError(e,t){return{exception:{values:[exceptionFromError(e,t)]}}}function parseStackFrames(e,t){let $=t.stacktrace||t.stack||``,ed=getSkipFirstStackStringLines(t),td=getPopFirstTopFrames(t);try{return e($,ed,td)}catch{}return[]}var reactMinifiedRegexp=/Minified React error #\d+;/i;function getSkipFirstStackStringLines(e){return e&&reactMinifiedRegexp.test(e.message)?1:0}function getPopFirstTopFrames(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function isWebAssemblyException(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function extractType(e){let t=e?.name;return!t&&isWebAssemblyException(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function extractMessage(e){let t=e?.message;return isWebAssemblyException(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?_enhanceErrorWithSentryInfo(t.error):_enhanceErrorWithSentryInfo(e):`No error message`}function eventFromException(e,t,$,ed){let td=eventFromUnknownInput(e,t,$?.syntheticException||void 0,ed);return addExceptionMechanism(td),td.level=`error`,$?.event_id&&(td.event_id=$.event_id),resolvedSyncPromise(td)}function eventFromMessage(e,t,$=`info`,ed,td){let nd=eventFromString(e,t,ed?.syntheticException||void 0,td);return nd.level=$,ed?.event_id&&(nd.event_id=ed.event_id),resolvedSyncPromise(nd)}function eventFromUnknownInput(e,t,$,ed,td){let nd;if(isErrorEvent$1(t)&&t.error)return eventFromError(e,t.error);if(isDOMError(t)||isDOMException(t)){let td=t;if(`stack`in t){nd=eventFromError(e,t);let td=nd.exception?.values?.[0];if(ed&&$&&td&&!td.stacktrace){let t=parseStackFrames(e,$);t.length&&(td.stacktrace={frames:t},addExceptionMechanism(nd,{synthetic:!0}))}}else{let t=td.name||(isDOMError(td)?`DOMError`:`DOMException`),rd=td.message?`${t}: ${td.message}`:t;nd=eventFromString(e,rd,$,ed),addExceptionTypeValue(nd,rd)}return`code`in td&&(nd.tags={...nd.tags,"DOMException.code":`${td.code}`}),nd}return isError(t)?eventFromError(e,t):isPlainObject$2(t)||isEvent(t)?(nd=eventFromPlainObject(e,t,$,td),addExceptionMechanism(nd,{synthetic:!0}),nd):(nd=eventFromString(e,t,$,ed),addExceptionTypeValue(nd,`${t}`,void 0),addExceptionMechanism(nd,{synthetic:!0}),nd)}function eventFromString(e,t,$,ed){let td={};if(ed&&$){let ed=parseStackFrames(e,$);ed.length&&(td.exception={values:[{value:t,stacktrace:{frames:ed}}]}),addExceptionMechanism(td,{synthetic:!0})}
26if(isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:$}=t;return td.logentry={message:e,params:$},td}return td.message=t,td}function getNonErrorObjectExceptionValue(e,{isUnhandledRejection:t}){let $=extractExceptionKeysForMessage(e),ed=t?`promise rejection`:`exception`;return isErrorEvent$1(e)?`Event \`ErrorEvent\` captured as ${ed} with message \`${e.message}\``:isEvent(e)?`Event \`${getObjectClassName(e)}\` (type=${e.type}) captured as ${ed}`:`Object captured as ${ed} with keys: ${$}`}function getObjectClassName(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function getErrorPropertyFromObject(e){return Object.values(e).find(e=>e instanceof Error)}var BrowserClient=class extends Client{constructor(e){let t=applyDefaultOptions(e);applySdkMetadata(t,`browser`,[`browser`],WINDOW$1.SENTRY_SDK_SOURCE||getSDKSource()),super(t);let{userInfo:$}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:$?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:ed}=this._options;WINDOW$1.document&&WINDOW$1.document.addEventListener(`visibilitychange`,()=>{WINDOW$1.document.visibilityState===`hidden`&&(ed&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),$&&this.on(`beforeSendSession`,addAutoIpAddressToSession)}eventFromException(e,t){return eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,$){return eventFromMessage(this._options.stackParser,e,t,$,this._options.attachStacktrace)}_prepareEvent(e,t,$,ed){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,$,ed)}};function applyDefaultOptions(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:WINDOW$1.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var DEBUG_BUILD$1=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,WINDOW=GLOBAL_OBJ;function addPageListener(e,t,$){WINDOW.document&&WINDOW.addEventListener(e,t,$)}function removePageListener(e,t,$){WINDOW.document&&WINDOW.removeEventListener(e,t,$)}var runOnce=e=>{let t=!1;return()=>{t||=(e(),!0)}},whenIdleOrHidden=e=>{let t=WINDOW.requestIdleCallback||WINDOW.setTimeout;WINDOW.document?.visibilityState===`hidden`?e():(e=runOnce(e),addPageListener(`visibilitychange`,e,{once:!0,capture:!0}),addPageListener(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),removePageListener(`visibilitychange`,e,{capture:!0}),removePageListener(`pagehide`,e,{capture:!0})}))},DEFAULT_MAX_STRING_LENGTH=80,accessors={};
26try{typeof Node<`u`&&(accessors.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(accessors.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,accessors.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,accessors.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,accessors.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(accessors.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function _safeRead(e,t,$){let ed=accessors[t];if(ed)try{return ed.call(e,$)}catch{}let td=e[t];return typeof td==`function`?td.call(e,$):td}function htmlTreeAsString(e,t={}){if(!e)return`<unknown>`;try{let $=e,ed=5,td=[],nd=0,rd=0,id=` > `,ad=3,od,sd=Array.isArray(t)?t:t.keyAttrs,cd=!Array.isArray(t)&&t.maxStringLength||DEFAULT_MAX_STRING_LENGTH;for(;$&&nd++<5&&(od=_htmlElementAsString($,sd),!(od===`html`||nd>1&&rd+td.length*3+od.length>=cd));)td.push(od),rd+=od.length,$=_safeRead($,`parentNode`);return td.reverse().join(` > `)}catch{return`<unknown>`}}function _htmlElementAsString(e,t){let $=[],ed=_safeRead(e,`tagName`);if(!ed)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=_safeRead(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}$.push(ed.toLowerCase());let td=t?.length?t.filter(t=>_safeRead(e,`getAttribute`,t)).map(t=>[t,_safeRead(e,`getAttribute`,t)]):null;if(td?.length)td.forEach(e=>{$.push(`[${e[0]}="${e[1]}"]`)});else{let t=_safeRead(e,`id`);t&&$.push(`#${t}`);let ed=_safeRead(e,`className`);if(ed&&isString$1(ed)){let e=ed.split(/\s+/);for(let t of e)$.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let ed=_safeRead(e,`getAttribute`,t);ed&&$.push(`[${t}="${ed}"]`)}return $.join(``)}var DEBOUNCE_DURATION=1e3,debounceTimerID,lastCapturedEventType,lastCapturedEventTargetId;function addClickKeypressInstrumentationHandler(e){let t=`dom`;addHandler(`dom`,e),maybeInstrument(`dom`,instrumentDOM)}function instrumentDOM(){if(!WINDOW.document)return;let e=triggerHandlers.bind(null,`dom`),t=makeDOMEventHandler(e,!0);WINDOW.document.addEventListener(`click`,t,!1),WINDOW.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let $=WINDOW[t]?.prototype;$?.hasOwnProperty?.(`addEventListener`)&&(fill($,`addEventListener`,function(t){return function($,ed,td){if($===`click`||$==`keypress`)try{let ed=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},nd=ed[$]=ed[$]||{refCount:0};if(!nd.handler){let ed=makeDOMEventHandler(e);nd.handler=ed,t.call(this,$,ed,td)}nd.refCount++}catch{}return t.call(this,$,ed,td)}}),fill($,`removeEventListener`,function(e){return function(t,$,ed){if(t===`click`||t==`keypress`)try{let $=this.__sentry_instrumentation_handlers__||{},td=$[t];td&&(td.refCount--,td.refCount<=0&&(e.call(this,t,td.handler,ed),td.handler=void 0,delete $[t]),Object.keys($).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,$,ed)}}))})}function isSimilarToLastCapturedEvent(e){if(e.type!==lastCapturedEventType)return!1;try{if(!e.target||e.target._sentryId!==lastCapturedEventTargetId)return!1}catch{}return!0}function shouldSkipDOMEvent(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function makeDOMEventHandler(e,t=!1){return $=>{if(!$||$._sentryCaptured)return;let ed=getEventTarget($);if(shouldSkipDOMEvent($.type,ed))return;addNonEnumerableProperty($,`_sentryCaptured`,!0),ed&&!ed._sentryId&&addNonEnumerableProperty(ed,`_sentryId`,uuid4());let td=$.type===`keypress`?`input`:$.type;isSimilarToLastCapturedEvent($)||(e({event:$,name:td,global:t}),lastCapturedEventType=$.type,lastCapturedEventTargetId=ed?ed._sentryId:void 0),clearTimeout(debounceTimerID),debounceTimerID=WINDOW.setTimeout(()=>{lastCapturedEventTargetId=void 0,lastCapturedEventType=void 0},DEBOUNCE_DURATION)}}function getEventTarget(e){try{return e.target}catch{return null}}var lastHref;function addHistoryInstrumentationHandler(e){let t=`history`;addHandler(t,e),maybeInstrument(t,instrumentHistory)}function instrumentHistory(){if(WINDOW.addEventListener(`popstate`,()=>{let e=WINDOW.location.href,t=lastHref;lastHref=e,t!==e&&triggerHandlers(`history`,{from:t,to:e})}),!supportsHistory$1())return;function e(e){return function(...t){let $=t.length>2?t[2]:void 0;if($){let ed=lastHref,td=getAbsoluteUrl(String($));if(lastHref=td,ed===td)return e.apply(this,t);triggerHandlers(`history`,{from:ed,to:td})}return e.apply(this,t)}}fill(WINDOW.history,`pushState`,e),fill(WINDOW.history,`replaceState`,e)}function getAbsoluteUrl(e){try{return new URL(e,WINDOW.location.origin).toString()}catch{return e}}var cachedImplementations={};function getNativeImplementation(e){let t=cachedImplementations[e];if(t)return t;let $=WINDOW[e];if(isNativeFunction($))return cachedImplementations[e]=$.bind(WINDOW);let ed=WINDOW.document;if(ed&&typeof ed.createElement==`function`)try{let t=ed.createElement(`iframe`);t.hidden=!0,ed.head.appendChild(t);let td=t.contentWindow;td?.[e]&&($=td[e]),ed.head.removeChild(t)}catch(t){DEBUG_BUILD$1&&debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return $&&(cachedImplementations[e]=$.bind(WINDOW))}function clearCachedImplementation(e){cachedImplementations[e]=void 0}var SENTRY_XHR_DATA_KEY=`__sentry_xhr_v3__`;function addXhrInstrumentationHandler(e){let t=`xhr`;addHandler(`xhr`,e),maybeInstrument(`xhr`,instrumentXHR)}function instrumentXHR(){if(!WINDOW.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,$){let ed=Error(),td=timestampInSeconds()*1e3,nd=isString$1($[0])?$[0].toUpperCase():void 0,rd=parseXhrUrlArg($[1]);
26if(!nd||!rd)return e.apply(t,$);t[SENTRY_XHR_DATA_KEY]={method:nd,url:rd,request_headers:{}},nd===`POST`&&rd.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let id=()=>{let e=t[SENTRY_XHR_DATA_KEY];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}triggerHandlers(`xhr`,{endTimestamp:timestampInSeconds()*1e3,startTimestamp:td,xhr:t,virtualError:ed}),t.removeEventListener(`readystatechange`,id)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,$){return id(),e.apply(t,$)}}):t.addEventListener(`readystatechange`,id),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,$){let[ed,td]=$,nd=t[SENTRY_XHR_DATA_KEY];return nd&&isString$1(ed)&&isString$1(td)&&(nd.request_headers[ed.toLowerCase()]=td),e.apply(t,$)}}),e.apply(t,$)}}),e.send=new Proxy(e.send,{apply(e,t,$){let ed=t[SENTRY_XHR_DATA_KEY];return ed?($[0]!==void 0&&(ed.body=$[0]),triggerHandlers(`xhr`,{startTimestamp:timestampInSeconds()*1e3,xhr:t}),e.apply(t,$)):e.apply(t,$)}})}function parseXhrUrlArg(e){if(isString$1(e))return e;try{return e.toString()}catch{}}function isElement(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE=40;function makeFetchTransport(e,t=getNativeImplementation(`fetch`)){let $=0,ed=0;async function td(td){let nd=td.body.length;$+=nd,ed++;let rd={body:td.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:$<=6e4&&ed<15,...e.fetchOptions};try{let $=await t(e.url,rd);return{statusCode:$.status,headers:{"x-sentry-rate-limits":$.headers.get(`X-Sentry-Rate-Limits`),"retry-after":$.headers.get(`Retry-After`)}}}catch(e){throw clearCachedImplementation(`fetch`),e}finally{$-=nd,ed--}}return createTransport(e,td,makePromiseBuffer(e.bufferSize||DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE))}var DEBUG_BUILD=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,CHROME_PRIORITY=30,GECKO_PRIORITY=50;function createFrame(e,t,$,ed){let td={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return $!==void 0&&(td.lineno=$),ed!==void 0&&(td.colno=ed),td}var chromeRegexNoFnName=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,chromeRegex=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,chromeEvalRegex=/\((\S*)(?::(\d+))(?::(\d+))\)/,chromeDataUriRegex=/at (.+?) ?\(data:(.+?),/,chromeStackParserFn=e=>{let t=e.match(chromeDataUriRegex);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let $=chromeRegexNoFnName.exec(e);if($){let[,e,t,ed]=$;return createFrame(e,`?`,+t,+ed)}let ed=chromeRegex.exec(e);if(ed){if(ed[2]?.indexOf(`eval`)===0){let e=chromeEvalRegex.exec(ed[2]);e&&(ed[2]=e[1],ed[3]=e[2],ed[4]=e[3])}let[e,t]=extractSafariExtensionDetails(ed[1]||`?`,ed[2]);return createFrame(t,e,ed[3]?+ed[3]:void 0,ed[4]?+ed[4]:void 0)}},chromeStackLineParser=[CHROME_PRIORITY,chromeStackParserFn],geckoREgex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,geckoEvalRegex=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gecko=e=>{let t=geckoREgex.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=geckoEvalRegex.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],$=t[1]||`?`;return[$,e]=extractSafariExtensionDetails($,e),createFrame(e,$,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},geckoStackLineParser=[GECKO_PRIORITY,gecko],defaultStackLineParsers=[chromeStackLineParser,geckoStackLineParser],defaultStackParser=createStackParser(...defaultStackLineParsers),extractSafariExtensionDetails=(e,t)=>{let $=e.indexOf(`safari-extension`)!==-1,ed=e.indexOf(`safari-web-extension`)!==-1;return $||ed?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],$?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},MAX_ALLOWED_STRING_LENGTH=1024,INTEGRATION_NAME$4=`Breadcrumbs`,_breadcrumbsIntegration=((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:INTEGRATION_NAME$4,setup(e){t.console&&addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(e)),t.dom&&addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(e,t.dom)),t.xhr&&addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(e)),t.fetch&&addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(e)),t.history&&addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(e)),t.sentry&&e.on(`beforeSendEvent`,_getSentryBreadcrumbHandler(e))}}}),breadcrumbsIntegration=defineIntegration(_breadcrumbsIntegration);function _getSentryBreadcrumbHandler(e){return function(t){getClient()===e&&addBreadcrumb({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:getEventDescription(t)},{event:t})}}function _getDomBreadcrumbHandler(e,t){return function($){if(getClient()!==e)return;let ed,td,nd=typeof t==`object`?t.serializeAttribute:void 0,rd=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;rd&&rd>MAX_ALLOWED_STRING_LENGTH&&(DEBUG_BUILD&&debug.warn(`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${rd} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`),rd=MAX_ALLOWED_STRING_LENGTH),typeof nd==`string`&&(nd=[nd]);try{let e=$.event,t=_isEvent(e)?e.target:e;ed=htmlTreeAsString(t,{keyAttrs:nd,maxStringLength:rd}
26),td=getComponentName$1(t)}catch{ed=`<unknown>`}if(ed.length===0)return;let id={category:`ui.${$.name}`,message:ed};td&&(id.data={"ui.component_name":td}),addBreadcrumb(id,{event:$.event,name:$.name,global:$.global})}}function _getConsoleBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let $={category:`console`,data:{arguments:t.args,logger:`console`},level:severityLevelFromString(t.level),message:safeJoin(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)$.message=`Assertion failed: ${safeJoin(t.args.slice(1),` `)||`console.assert`}`,$.data.arguments=t.args.slice(1);else return;addBreadcrumb($,{input:t.args,level:t.level})}}function _getXhrBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let{startTimestamp:$,endTimestamp:ed}=t,td=t.xhr[SENTRY_XHR_DATA_KEY];if(!$||!ed||!td)return;let{method:nd,url:rd,status_code:id,body:ad}=td,od={method:nd,url:rd,status_code:id},sd={xhr:t.xhr,input:ad,startTimestamp:$,endTimestamp:ed},cd={category:`xhr`,data:od,type:`http`,level:getBreadcrumbLogLevelFromHttpStatusCode(id)};e.emit(`beforeOutgoingRequestBreadcrumb`,cd,sd),addBreadcrumb(cd,sd)}}function _getFetchBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let{startTimestamp:$,endTimestamp:ed}=t;if(ed&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let td={data:t.error,input:t.args,startTimestamp:$,endTimestamp:ed},nd={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,nd,td),addBreadcrumb(nd,td)}else{let td=t.response,nd={...t.fetchData,status_code:td?.status},rd={input:t.args,response:td,startTimestamp:$,endTimestamp:ed},id={category:`fetch`,data:nd,type:`http`,level:getBreadcrumbLogLevelFromHttpStatusCode(nd.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,id,rd),addBreadcrumb(id,rd)}}}function _getHistoryBreadcrumbHandler(e){return function(t){if(getClient()!==e)return;let $=t.from,ed=t.to,td=parseUrl$1(WINDOW$1.location.href),nd=$?parseUrl$1($):void 0,rd=parseUrl$1(ed);nd?.path||(nd=td),td.protocol===rd.protocol&&td.host===rd.host&&(ed=rd.relative),td.protocol===nd.protocol&&td.host===nd.host&&($=nd.relative),addBreadcrumb({category:`navigation`,data:{from:$,to:ed}})}}function _isEvent(e){return!!e&&!!e.target}var DEFAULT_EVENT_TARGET=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),INTEGRATION_NAME$3=`BrowserApiErrors`,_browserApiErrorsIntegration=((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:INTEGRATION_NAME$3,setupOnce(){t.setTimeout&&fill(WINDOW$1,`setTimeout`,_wrapTimeFunction),t.setInterval&&fill(WINDOW$1,`setInterval`,_wrapTimeFunction),t.requestAnimationFrame&&fill(WINDOW$1,`requestAnimationFrame`,_wrapRAF),t.XMLHttpRequest&&`XMLHttpRequest`in WINDOW$1&&fill(XMLHttpRequest.prototype,`send`,_wrapXHR);let e=t.eventTarget;e&&(Array.isArray(e)?e:DEFAULT_EVENT_TARGET).forEach(e=>_wrapEventTarget(e,t))}}}),browserApiErrorsIntegration=defineIntegration(_browserApiErrorsIntegration);function _wrapTimeFunction(e){return function(...t){let $=t[0];return t[0]=wrap($,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${getFunctionName(e)}`}}),e.apply(this,t)}}function _wrapRAF(e){return function(t){return e.apply(this,[wrap(t,{mechanism:{data:{handler:getFunctionName(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function _wrapXHR(e){return function(...t){let $=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in $&&typeof $[e]==`function`&&fill($,e,function(t){let $={mechanism:{data:{handler:getFunctionName(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},ed=getOriginalFunction(t);return ed&&($.mechanism.data.handler=getFunctionName(ed)),wrap(t,$)})}),e.apply(this,t)}}function _wrapEventTarget(e,t){let $=WINDOW$1[e]?.prototype;$?.hasOwnProperty?.(`addEventListener`)&&(fill($,`addEventListener`,function($){return function(ed,td,nd){try{isEventListenerObject(td)&&(td.handleEvent=wrap(td.handleEvent,{mechanism:{data:{handler:getFunctionName(td),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&unregisterOriginalCallback(this,ed,td),$.apply(this,[ed,wrap(td,{mechanism:{data:{handler:getFunctionName(td),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),nd])}}),fill($,`removeEventListener`,function(e){return function(t,$,ed){try{if(Object.prototype.hasOwnProperty.call($,`__sentry_wrapped__`)){let td=$.__sentry_wrapped__;td&&e.call(this,t,td,ed)}}catch{}return e.call(this,t,$,ed)}}))}function isEventListenerObject(e){return typeof e.handleEvent==`function`}function unregisterOriginalCallback(e,t,$){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,$)}var browserSessionIntegration=defineIntegration((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(WINDOW$1.document===void 0){DEBUG_BUILD&&debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}startSession({ignoreDuration:!0});let e=!1;whenIdleOrHidden(()=>{e||=(captureSession(),!0)});let $=getIsolationScope(),ed=$.getUser();$.addScopeListener(t=>{let $=t.getUser();
26(ed?.id!==$?.id||ed?.ip_address!==$?.ip_address)&&(ed=$,e&&captureSession())}),t===`route`&&addHistoryInstrumentationHandler(({from:t,to:$})=>{t!==$&&(startSession({ignoreDuration:!0}),captureSession(),e=!0)})}}}),INTEGRATION_NAME$2=`CultureContext`,_cultureContextIntegration=(()=>({name:INTEGRATION_NAME$2,preprocessEvent(e){let t=getCultureContext();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=getCultureContext();t&&safeSetSpanJSONAttributes(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),cultureContextIntegration=defineIntegration(_cultureContextIntegration);function getCultureContext(){try{let e=WINDOW$1.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var INTEGRATION_NAME$1=`GlobalHandlers`,_globalHandlersIntegration=((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:INTEGRATION_NAME$1,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_installGlobalOnErrorHandler(e),globalHandlerLog(`onerror`)),t.onunhandledrejection&&(_installGlobalOnUnhandledRejectionHandler(e),globalHandlerLog(`onunhandledrejection`))}}}),globalHandlersIntegration=defineIntegration(_globalHandlersIntegration);function _installGlobalOnErrorHandler(e){addGlobalErrorInstrumentationHandler(t=>{let{stackParser:$,attachStacktrace:ed}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;let{msg:td,url:nd,line:rd,column:id,error:ad}=t,od=_enhanceEventWithInitialFrame(eventFromUnknownInput($,ad||td,void 0,ed,!1),nd,rd,id);od.level=`error`,captureEvent(od,{originalException:ad,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function _installGlobalOnUnhandledRejectionHandler(e){addGlobalUnhandledRejectionInstrumentationHandler(t=>{let{stackParser:$,attachStacktrace:ed}=getOptions();if(getClient()!==e||shouldIgnoreOnError())return;let td=_getUnhandledRejectionError(t),nd=isPrimitive(td)?_eventFromRejectionWithPrimitive(td):eventFromUnknownInput($,td,void 0,ed,!0);nd.level=`error`,captureEvent(nd,{originalException:td,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function _getUnhandledRejectionError(e){if(isPrimitive(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function _eventFromRejectionWithPrimitive(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function _enhanceEventWithInitialFrame(e,t,$,ed){let td=e.exception=e.exception||{},nd=td.values=td.values||[],rd=nd[0]=nd[0]||{},id=rd.stacktrace=rd.stacktrace||{},ad=id.frames=id.frames||[];return ad.length===0&&ad.push({colno:ed,lineno:$,filename:getFilenameFromUrl(t)??getLocationHref(),function:`?`,in_app:!0}),e}function globalHandlerLog(e){DEBUG_BUILD&&debug.log(`Global Handler attached: ${e}`)}function getOptions(){return getClient()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function getFilenameFromUrl(e){if(!(!isString$1(e)||e.length===0))return e.startsWith(`data:`)?`<${stripDataUrlContent(e,!1)}>`:e}var httpContextIntegration=defineIntegration(()=>({name:`HttpContext`,preprocessEvent(e){if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;let t=getHttpRequestData(),$={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:$}},processSegmentSpan(e){let t=e.attributes?.[SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!WINDOW$1.navigator&&!WINDOW$1.location&&!WINDOW$1.document)return;let $=getHttpRequestData();safeSetSpanJSONAttributes(e,{"url.full":t===`http.client`?void 0:$.url,"http.request.header.user_agent":$.headers[`User-Agent`],"http.request.header.referer":$.headers.Referer})}})),DEFAULT_KEY=`cause`,DEFAULT_LIMIT=5,INTEGRATION_NAME=`LinkedErrors`,_linkedErrorsIntegration=((e={})=>{let t=e.limit||DEFAULT_LIMIT,$=e.key||DEFAULT_KEY;return{name:INTEGRATION_NAME,preprocessEvent(e,ed,td){applyAggregateErrorsToEvent(exceptionFromError,td.getOptions().stackParser,$,t,e,ed)}}}),linkedErrorsIntegration=defineIntegration(_linkedErrorsIntegration),HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX=/^HTML(\w*)Element$/;function normalizeStringifyValue(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(isElement(e)){let t=getConstructorName(e);
26if(HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX.test(t))return`[HTMLElement: ${htmlTreeAsString(e)}]`}}function getConstructorName(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function checkAndWarnIfIsEmbeddedBrowserExtension(){return _isEmbeddedBrowserExtension()?(DEBUG_BUILD&&consoleSandbox(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function _isEmbeddedBrowserExtension(){if(WINDOW$1.window===void 0)return!1;let e=WINDOW$1;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=getLocationHref();return!(WINDOW$1===WINDOW$1.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function getDefaultIntegrations(e){return[inboundFiltersIntegration(),functionToStringIntegration(),conversationIdIntegration(),browserApiErrorsIntegration(),breadcrumbsIntegration(),globalHandlersIntegration(),linkedErrorsIntegration(),dedupeIntegration(),httpContextIntegration(),cultureContextIntegration(),browserSessionIntegration()]}function init(e={}){let t=!e.skipBrowserExtensionCheck&&checkAndWarnIfIsEmbeddedBrowserExtension(),$=e.defaultIntegrations==null?getDefaultIntegrations():e.defaultIntegrations,ed={...e,enabled:t?!1:e.enabled,stackParser:stackParserFromStackParserOptions(e.stackParser||defaultStackParser),integrations:getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:$}),transport:e.transport||makeFetchTransport};return setNormalizeStringifier(normalizeStringifyValue),initAndBind(BrowserClient,ed)}init_dist$1();function makeMap(e){let t=Object.create(null);for(let $ of e.split(`,`))t[$]=1;return e=>e in t}var EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith(`onUpdate:`),extend$2=Object.assign,remove=(e,t)=>{let $=e.indexOf(t);$>-1&&e.splice($,1)},hasOwnProperty$3=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$3.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)===`[object Map]`,isSet=e=>toTypeString(e)===`[object Set]`,isDate=e=>toTypeString(e)===`[object Date]`,isRegExp=e=>toTypeString(e)===`[object RegExp]`,isFunction=e=>typeof e==`function`,isString=e=>typeof e==`string`,isSymbol=e=>typeof e==`symbol`,isObject$5=e=>typeof e==`object`&&!!e,isPromise$2=e=>(isObject$5(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$1=e=>toTypeString(e)===`[object Object]`,isIntegerKey=e=>isString(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,isReservedProp=makeMap(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),cacheStringFunction=e=>{let t=Object.create(null);return $=>t[$]||(t[$]=e($))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(e,t)=>t?t.toUpperCase():``)),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,`-$1`).toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:``),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,...t)=>{for(let $=0;$<e.length;$++)e[$](...t)},def=(e,t,$,ed=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:ed,value:$})},looseToNumber=e=>{let t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{let t=isString(e)?Number(e):NaN;return isNaN(t)?e:t},_globalThis,getGlobalThis=()=>_globalThis||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global===void 0?{}:global,isGloballyAllowed=makeMap(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function normalizeStyle(e){if(isArray(e)){let t={};for(let $=0;$<e.length;$++){let ed=e[$],td=isString(ed)?parseStringStyle(ed):normalizeStyle(ed);if(td)for(let e in td)t[e]=td[e]}return t}else if(isString(e)||isObject$5(e))return e}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){let t={};return e.replace(styleCommentRE,``).split(listDelimiterRE).forEac
26h(e=>{if(e){let $=e.split(propertyDelimiterRE);$.length>1&&(t[$[0].trim()]=$[1].trim())}}),t}function normalizeClass(e){let t=``;if(isString(e))t=e;else if(isArray(e))for(let $=0;$<e.length;$++){let ed=normalizeClass(e[$]);ed&&(t+=ed+` `)}else if(isObject$5(e))for(let $ in e)e[$]&&(t+=$+` `);return t.trim()}function normalizeProps(e){if(!e)return null;let{class:t,style:$}=e;return t&&!isString(t)&&(e.class=normalizeClass(t)),$&&(e.style=normalizeStyle($)),e}var specialBooleanAttrs=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,isSpecialBooleanAttr=makeMap(specialBooleanAttrs),isBooleanAttr=makeMap(specialBooleanAttrs+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function includeBooleanAttr(e){return!!e||e===``}function looseCompareArrays(e,t){if(e.length!==t.length)return!1;let $=!0;for(let ed=0;$&&ed<e.length;ed++)$=looseEqual(e[ed],t[ed]);return $}function looseEqual(e,t){if(e===t)return!0;let $=isDate(e),ed=isDate(t);if($||ed)return $&&ed?e.getTime()===t.getTime():!1;if($=isSymbol(e),ed=isSymbol(t),$||ed)return e===t;if($=isArray(e),ed=isArray(t),$||ed)return $&&ed?looseCompareArrays(e,t):!1;if($=isObject$5(e),ed=isObject$5(t),$||ed){if(!$||!ed||Object.keys(e).length!==Object.keys(t).length)return!1;for(let $ in e){let ed=e.hasOwnProperty($),td=t.hasOwnProperty($);if(ed&&!td||!ed&&td||!looseEqual(e[$],t[$]))return!1}}return String(e)===String(t)}function looseIndexOf(e,t){return e.findIndex(e=>looseEqual(e,t))}var isRef$1=e=>!!(e&&e.__v_isRef===!0),toDisplayString=e=>isString(e)?e:e==null?``:isArray(e)||isObject$5(e)&&(e.toString===objectToString$1||!isFunction(e.toString))?isRef$1(e)?toDisplayString(e.value):JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>isRef$1(t)?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,$],ed)=>(e[stringifySymbol(t,ed)+` =>`]=$,e),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>stringifySymbol(e))}:isSymbol(t)?stringifySymbol(t):isObject$5(t)&&!isArray(t)&&!isPlainObject$1(t)?String(t):t,stringifySymbol=(e,t=``)=>{var $;return isSymbol(e)?`Symbol(${e.description??t})`:e},activeEffectScope,EffectScope=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!e&&activeEffectScope&&(this.index=(activeEffectScope.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=activeEffectScope;try{return activeEffectScope=this,e()}finally{activeEffectScope=t}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(e){if(this._active){let t,$;for(t=0,$=this.effects.length;t<$;t++)this.effects[t].stop();for(t=0,$=this.cleanups.length;t<$;t++)this.cleanups[t]();if(this.scopes)for(t=0,$=this.scopes.length;t<$;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}};function effectScope(e){return new EffectScope(e)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(e,t=!1){activeEffectScope&&activeEffectScope.cleanups.push(e)}var activeSub,pausedQueueEffects=new WeakSet,ReactiveEffect=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);let e=activeSub,t=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=e,shouldTrack=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)removeSub(e);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}
vendor: 9,678 bytes, line 26
26trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}},batchDepth=0,batchedSub,batchedComputed;function batch(e,t=!1){if(e.flags|=8,t){e.next=batchedComputed,batchedComputed=e;return}e.next=batchedSub,batchedSub=e}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let e=batchedComputed;for(batchedComputed=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){let $=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=$}}if(e)throw e}function prepareDeps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(e){let t,$=e.depsTail,ed=$;for(;ed;){let e=ed.prevDep;ed.version===-1?(ed===$&&($=e),removeSub(ed),removeDep(ed)):t=ed,ed.dep.activeLink=ed.prevActiveLink,ed.prevActiveLink=void 0,ed=e}e.deps=t,e.depsTail=$}function isDirty(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function refreshComputed(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===globalVersion))return;e.globalVersion=globalVersion;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!isDirty(e)){e.flags&=-3;return}let $=activeSub,ed=shouldTrack;activeSub=e,shouldTrack=!0;try{prepareDeps(e);let $=e.fn(e._value);(t.version===0||hasChanged($,e._value))&&(e._value=$,t.version++)}catch(e){throw t.version++,e}finally{activeSub=$,shouldTrack=ed,cleanupDeps(e),e.flags&=-3}}function removeSub(e,t=!1){let{dep:$,prevSub:ed,nextSub:td}=e;if(ed&&(ed.nextSub=td,e.prevSub=void 0),td&&(td.prevSub=ed,e.nextSub=void 0),$.subs===e&&($.subs=ed,!ed&&$.computed)){$.computed.flags&=-5;for(let e=$.computed.deps;e;e=e.nextDep)removeSub(e,!0)}!t&&!--$.sc&&$.map&&$.map.delete($.key)}function removeDep(e){let{prevDep:t,nextDep:$}=e;t&&(t.nextDep=$,e.prevDep=void 0),$&&($.prevDep=t,e.nextDep=void 0)}function effect(e,t){e.effect instanceof ReactiveEffect&&(e=e.effect.fn);let $=new ReactiveEffect(e);t&&extend$2($,t);try{$.run()}catch(e){throw $.stop(),e}let ed=$.run.bind($);return ed.effect=$,ed}function stop(e){e.effect.stop()}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){let e=trackStack.pop();shouldTrack=e===void 0?!0:e}function cleanupEffect(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=activeSub;activeSub=void 0;try{t()}finally{activeSub=e}}}var globalVersion=0,Link=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Dep=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==activeSub)t=this.activeLink=new Link(activeSub,this),activeSub.deps?(t.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=t,activeSub.depsTail=t):activeSub.deps=activeSub.depsTail=t,addSub(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=activeSub.depsTail,t.nextDep=void 0,activeSub.depsTail.nextDep=t,activeSub.depsTail=t,activeSub.deps===t&&(activeSub.deps=e)}return t}trigger(e){this.version++,globalVersion++,this.notify(e)}notify(e){startBatch();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{endBatch()}}};function addSub(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)addSub(e)}let $=e.dep.subs;$!==e&&(e.prevSub=$,$&&($.nextSub=e)),e.dep.subs=e}}var targetMap=new WeakMap,ITERATE_KEY=Symbol(``),MAP_KEY_ITERATE_KEY=Symbol(``),ARRAY_ITERATE_KEY=Symbol(``);function track(e,t,$){if(shouldTrack&&activeSub){let t=targetMap.get(e);t||targetMap.set(e,t=new Map);let ed=t.get($);ed||(t.set($,ed=new Dep),ed.map=t,ed.key=$),ed.track()}}function trigger$1(e,t,$,ed,td,nd){let rd=targetMap.get(e);if(!rd){globalVersion++;return}let id=e=>{e&&e.trigger()};if(startBatch(),t===`clear`)rd.forEach(id);else{let td=isArray(e),nd=td&&isIntegerKey($);if(td&&$===`length`){let e=Number(ed);rd.forEach((t,$)=>{($===`length`||$===ARRAY_ITERATE_KEY||!isSymbol($)&&$>=e)&&id(t)})}else switch(($!==void 0||rd.has(void 0))&&id(rd.get($)),nd&&id(rd.get(ARRAY_ITERATE_KEY)),t){case`add`:td?nd&&id(rd.get(`length`)):(id(rd.get(ITERATE_KEY)),isMap(e)&&id(rd.get(MAP_KEY_ITERATE_KEY)));break;case`delete`:td||(id(rd.get(ITERATE_KEY)),isMap(e)&&id(rd.get(MAP_KEY_ITERATE_KEY)));break;case`set`:isMap(e)&&id(rd.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(e,t){let $=targetMap.get(e);return $&&$.get(t)}function reactiveReadArray(e){let t=toRaw(e);return t===e?t:(track(t,`iterate`,ARRAY_ITERATE_KEY),isShallow(e)?t:t.map(toReactive))}function shallowReadArray(e){return track(e=toRaw(e),`iterate`,ARRAY_ITERATE_KEY),e}var arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...e){return reactiveReadArray(this).concat(...e.map(e=>isArray(e)?reactiveReadArray(e):e))},entries(){return iterator(this,`entries`,e=>(e[1]=toReactive(e[1]),e))},every(e,t){return apply(this,`every`,e,t,void 0,arguments)},filter(e,t){return apply(this,`filter`,e,t,e=>e.map(toReactive),arguments)},find(e,t){return apply(this,`find`,e,t,toReactive,arguments)},findIndex(e,t){return apply(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return apply(this,`findLast`,e,t,toReactive,arguments)},findLastIndex(e,t){return apply(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return apply(this,`forEach`,e,t,void 0,arguments)},includes(...e){return searchProxy(this,`includes`,e)},indexOf(...e){return searchProxy(this,`indexOf`,e)},join(e){return reactiveReadArray(this).join(e)},lastIndexOf(...e){return searchProxy(this,`lastIndexOf`,e)},map(e,t){return apply(this,`map`,e,t,void 0,arguments)},pop(){return noTracking(this,`pop`)},push(...e){return noTracking(this,`push`,e)},reduce(e,...t){return reduce$1(this,`reduce`,e,t)},reduceRight(e,...t){return reduce$1(this,`reduceRight`,e,t)},shift(){return noTracking(this,`shift`)},some(e,t){return apply(this,`some`,e,t,void 0,arguments)},splice(...e){return noTracking(this,`splice`,e)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(e){return reactiveReadArray(this).toSorted(e)},toSpliced(...e){return reactiveReadArray(this).toSpliced(...e)},unshift(...e){return noTracking(this,`unshift`,e)},values(){return iterator(this,`values`,toReactive)}};function iterator(e,t,$){let ed=shallowReadArray(e),td=ed[t]();return ed!==e&&!isShallow(e)&&(td._next=td.next,td.next=()=>{let e=td._next();return e.value&&=$(e.value),e}),td}var arrayProto=Array.prototype;function apply(e,t,$,ed,td,nd){let rd=shallowReadArray(e),id=rd!==e&&!isShallow(e),ad=rd[t];if(ad!==arrayProto[t]){let t=ad.apply(e,nd);return id?toReactive(t):t}let od=$;rd!==e&&(id?od=function(t,ed){return $.call(this,toReactive(t),ed,e)}:$.length>2&&(od=function(t,ed){return $.call(this,t,ed,e)}));let sd=ad.call(rd,od,ed);return id&&td?td(sd):sd}function reduce$1(e,t,$,ed){let td=shallowReadArray(e),nd=$;return td!==e&&(isShallow(e)?$.length>3&&(nd=function(t,ed,td){return $.call(this,t,ed,td,e)}):nd=function(t,ed,td){return $.call(this,t,toReactive(ed),td,e)}),td[t](nd,...ed)}function searchProxy(e,t,$){let ed=toRaw(e);track(ed,`iterate`,ARRAY_ITERATE_KEY);let td=ed[t](...$);return(td===-1||td===!1)&&isProxy($[0])?($[0]=toRaw($[0]),ed[t](...$)):td}function noTracking(e,t,$=[]){pauseTracking(),startBatch();let ed=toRaw(e)[t].apply(e,$);return endBatch(),resetTracking(),ed}var isNonTrackableKeys=makeMap(`__proto__,__v_isRef,__isVue`),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(isSymbol));function hasOwnProperty$2(e){isSymbol(e)||(e=String(e));let t=toRaw(this);return track(t,`has`,e),t.hasOwnProperty(e)}var BaseReactiveHandler=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,$){let ed=this._isReadonly,td=this._isShallow;if(t===`__v_isReactive`)return!ed;if(t===`__v_isReadonly`)return ed;if(t===`__v_isShallow`)return td;if(t===`__v_raw`)return $===(ed?td?shallowReadonlyMap:readonlyMap:td?shallowReactiveMap:reactiveMap).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf($)?e:void 0;let nd=isArray(e);if(!ed){let e;if(nd&&(e=arrayInstrumentations[t]))return e;if(t===`hasOwnProperty`)return hasOwnProperty$2}let rd=Reflect.get(e,t,isRef(e)?e:$);return(isSymbol(t)?builtInSymbols.has(t):isNonTrackableKeys(t))||(ed||track(e,`get`,t),td)?rd:isRef(rd)?nd&&isIntegerKey(t)?rd:rd.value:isObject$5(rd)?ed?readonly(rd):reactive(rd):rd}},MutableReactiveHandler=class extends BaseReactiveHandler{constructor(e=!1){super(!1,e)}set(e,t,$,ed){let td=e[t];if(!this._isShallow){let t=isReadonly(td);if(!isShallow($)&&!isReadonly($)&&(td=toRaw(td),$=toRaw($)),!isArray(e)&&isRef(td)&&!isRef($))return t?!1:(td.value=$,!0)}let nd=isArray(e)&&isIntegerKey(t)?Number(t)<e.length:hasOwn(e,t),rd=Reflect.set(e,t,$,isRef(e)?e:ed);return e===toRaw(ed)&&(nd?hasChanged($,td)&&trigger$1(e,`set`,t,$,td):trigger$1(e,`add`,t,$)),rd}deleteProperty(e,t){let $=hasOwn(e,t),ed=e[t],td=Reflect.deleteProperty(e,t);return td&&$&&trigger$1(e,`delete`,t,void 0,ed),td}has(e,t){let $=Reflect.has(e,t);
vendor: 5,655 bytes, line 26
26return(!isSymbol(t)||!builtInSymbols.has(t))&&track(e,`has`,t),$}ownKeys(e){return track(e,`iterate`,isArray(e)?`length`:ITERATE_KEY),Reflect.ownKeys(e)}},ReadonlyReactiveHandler=class extends BaseReactiveHandler{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function createIterableMethod(e,t,$){return function(...ed){let td=this.__v_raw,nd=toRaw(td),rd=isMap(nd),id=e===`entries`||e===Symbol.iterator&&rd,ad=e===`keys`&&rd,od=td[e](...ed),sd=$?toShallow:t?toReadonly:toReactive;return!t&&track(nd,`iterate`,ad?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){let{value:e,done:t}=od.next();return t?{value:e,done:t}:{value:id?[sd(e[0]),sd(e[1])]:sd(e),done:t}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function createInstrumentations(e,t){let $={get($){let ed=this.__v_raw,td=toRaw(ed),nd=toRaw($);e||(hasChanged($,nd)&&track(td,`get`,$),track(td,`get`,nd));let{has:rd}=getProto(td),id=t?toShallow:e?toReadonly:toReactive;if(rd.call(td,$))return id(ed.get($));if(rd.call(td,nd))return id(ed.get(nd));ed!==td&&ed.get($)},get size(){let t=this.__v_raw;return!e&&track(toRaw(t),`iterate`,ITERATE_KEY),Reflect.get(t,`size`,t)},has(t){let $=this.__v_raw,ed=toRaw($),td=toRaw(t);return e||(hasChanged(t,td)&&track(ed,`has`,t),track(ed,`has`,td)),t===td?$.has(t):$.has(t)||$.has(td)},forEach($,ed){let td=this,nd=td.__v_raw,rd=toRaw(nd),id=t?toShallow:e?toReadonly:toReactive;return!e&&track(rd,`iterate`,ITERATE_KEY),nd.forEach((e,t)=>$.call(ed,id(e),id(t),td))}};return extend$2($,e?{add:createReadonlyMethod(`add`),set:createReadonlyMethod(`set`),delete:createReadonlyMethod(`delete`),clear:createReadonlyMethod(`clear`)}:{add(e){!t&&!isShallow(e)&&!isReadonly(e)&&(e=toRaw(e));let $=toRaw(this);return getProto($).has.call($,e)||($.add(e),trigger$1($,`add`,e,e)),this},set(e,$){!t&&!isShallow($)&&!isReadonly($)&&($=toRaw($));let ed=toRaw(this),{has:td,get:nd}=getProto(ed),rd=td.call(ed,e);rd||=(e=toRaw(e),td.call(ed,e));let id=nd.call(ed,e);return ed.set(e,$),rd?hasChanged($,id)&&trigger$1(ed,`set`,e,$,id):trigger$1(ed,`add`,e,$),this},delete(e){let t=toRaw(this),{has:$,get:ed}=getProto(t),td=$.call(t,e);td||=(e=toRaw(e),$.call(t,e));let nd=ed?ed.call(t,e):void 0,rd=t.delete(e);return td&&trigger$1(t,`delete`,e,void 0,nd),rd},clear(){let e=toRaw(this),t=e.size!==0,$,ed=e.clear();return t&&trigger$1(e,`clear`,void 0,void 0,void 0),ed}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(ed=>{$[ed]=createIterableMethod(ed,e,t)}),$}function createInstrumentationGetter(e,t){let $=createInstrumentations(e,t);return(t,ed,td)=>ed===`__v_isReactive`?!e:ed===`__v_isReadonly`?e:ed===`__v_raw`?t:Reflect.get(hasOwn($,ed)&&ed in t?$:t,ed,td)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,$,ed,td){if(!isObject$5(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let nd=td.get(e);if(nd)return nd;let rd=getTargetType(e);if(rd===0)return e;let id=new Proxy(e,rd===2?ed:$);return td.set(e,id),id}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return e?!!e.__v_raw:!1}function toRaw(e){let t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return!hasOwn(e,`__v_skip`)&&Object.isExtensible(e)&&def(e,`__v_skip`,!0),e}var toReactive=e=>isObject$5(e)?reactive(e):e,toReadonly=e=>isObject$5(e)?readonly(e):e;function isRef(e){return e?e.__v_isRef===!0:!1}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}var RefImpl=class{constructor(e,t){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:toRaw(e),this._value=t?e:toReactive(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,$=this.__v_isShallow||isShallow(e)||isReadonly(e);e=$?e:toRaw(e),hasChanged(e,t)&&(this._rawValue=e,this._value=$?e:toReactive(e),this.dep.trigger())}};function triggerRef(e){e.dep&&e.dep.trigger()}function unref(e){return isRef(e)?e.value:e}function toValue(e){return isFunction(e)?e():unref(e)}var shallowUnwrapHandlers={get:(e,t,$)=>
26t===`__v_raw`?e:unref(Reflect.get(e,t,$)),set:(e,t,$,ed)=>{let td=e[t];return isRef(td)&&!isRef($)?(td.value=$,!0):Reflect.set(e,t,$,ed)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}var CustomRefImpl=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Dep,{get:$,set:ed}=e(t.track.bind(t),t.trigger.bind(t));this._get=$,this._set=ed}get value(){return this._value=this._get()}set value(e){this._set(e)}};function customRef(e){return new CustomRefImpl(e)}function toRefs(e){let t=isArray(e)?Array(e.length):{};for(let $ in e)t[$]=propertyToRef(e,$);return t}var ObjectRefImpl=class{constructor(e,t,$){this._object=e,this._key=t,this._defaultValue=$,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}},GetterRefImpl=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function toRef(e,t,$){return isRef(e)?e:isFunction(e)?new GetterRefImpl(e):isObject$5(e)&&arguments.length>1?propertyToRef(e,t,$):ref(e)}function propertyToRef(e,t,$){let ed=e[t];return isRef(ed)?ed:new ObjectRefImpl(e,t,$)}var ComputedRefImpl=class{constructor(e,t,$){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=$}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){let e=this.dep.track();return refreshComputed(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function computed$1(e,t,$=!1){let ed,td;return isFunction(e)?ed=e:(ed=e.get,td=e.set),new ComputedRefImpl(ed,td,$)}var TrackOpTypes={GET:`get`,HAS:`has`,ITERATE:`iterate`},TriggerOpTypes={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap,activeWatcher=void 0;function getCurrentWatcher(){return activeWatcher}function onWatcherCleanup(e,t=!1,$=activeWatcher){if($){let t=cleanupMap.get($);t||cleanupMap.set($,t=[]),t.push(e)}}function watch$1(e,t,$=EMPTY_OBJ){let{immediate:ed,deep:td,once:nd,scheduler:rd,augmentJob:id,call:ad}=$,od=e=>td?e:isShallow(e)||td===!1||td===0?traverse(e,1):traverse(e),sd,cd,ld,ud,dd=!1,fd=!1;if(isRef(e)?(cd=()=>e.value,dd=isShallow(e)):isReactive(e)?(cd=()=>od(e),dd=!0):isArray(e)?(fd=!0,dd=e.some(e=>isReactive(e)||isShallow(e)),cd=()=>e.map(e=>{if(isRef(e))return e.value;if(isReactive(e))return od(e);if(isFunction(e))return ad?ad(e,2):e()})):cd=isFunction(e)?t?ad?()=>ad(e,2):e:()=>{if(ld){pauseTracking();try{ld()}finally{resetTracking()}}let t=activeWatcher;activeWatcher=sd;try{return ad?ad(e,3,[ud]):e(ud)}finally{activeWatcher=t}}:NOOP,t&&td){let e=cd,t=td===!0?1/0:td;cd=()=>traverse(e(),t)}let pd=getCurrentScope(),md=()=>{sd.stop(),pd&&remove(pd.effects,sd)};if(nd&&t){let e=t;t=(...t)=>{e(...t),md()}}let hd=fd?Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE,gd=e=>{if(!(!(sd.flags&1)||!sd.dirty&&!e))if(t){let e=sd.run();if(td||dd||(fd?e.some((e,t)=>hasChanged(e,hd[t])):hasChanged(e,hd))){ld&&ld();let $=activeWatcher;activeWatcher=sd;try{let $=[e,hd===INITIAL_WATCHER_VALUE?void 0:fd&&hd[0]===INITIAL_WATCHER_VALUE?[]:hd,ud];ad?ad(t,3,$):t(...$),hd=e}finally{activeWatcher=$}}}else sd.run()};
vendor: 4,334 bytes, line 26
26return id&&id(gd),sd=new ReactiveEffect(cd),sd.scheduler=rd?()=>rd(gd,!1):gd,ud=e=>onWatcherCleanup(e,!1,sd),ld=sd.onStop=()=>{let e=cleanupMap.get(sd);if(e){if(ad)ad(e,4);else for(let t of e)t();cleanupMap.delete(sd)}},t?ed?gd(!0):hd=sd.run():rd?rd(gd.bind(null,!0),!0):sd.run(),md.pause=sd.pause.bind(sd),md.resume=sd.resume.bind(sd),md.stop=md,md}function traverse(e,t=1/0,$){if(t<=0||!isObject$5(e)||e.__v_skip||($||=new Set,$.has(e)))return e;if($.add(e),t--,isRef(e))traverse(e.value,t,$);else if(isArray(e))for(let ed=0;ed<e.length;ed++)traverse(e[ed],t,$);else if(isSet(e)||isMap(e))e.forEach(e=>{traverse(e,t,$)});else if(isPlainObject$1(e)){for(let ed in e)traverse(e[ed],t,$);for(let ed of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,ed)&&traverse(e[ed],t,$)}return e}var stack=[];function pushWarningContext(e){stack.push(e)}function popWarningContext(){stack.pop()}function assertNumber(e,t){}var ErrorCodes={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},ErrorTypeStrings$1={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function callWithErrorHandling(e,t,$,ed){try{return ed?e(...ed):e()}catch(e){handleError(e,t,$)}}function callWithAsyncErrorHandling(e,t,$,ed){if(isFunction(e)){let td=callWithErrorHandling(e,t,$,ed);return td&&isPromise$2(td)&&td.catch(e=>{handleError(e,t,$)}),td}if(isArray(e)){let td=[];for(let nd=0;nd<e.length;nd++)td.push(callWithAsyncErrorHandling(e[nd],t,$,ed));return td}}function handleError(e,t,$,ed=!0){let td=t?t.vnode:null,{errorHandler:nd,throwUnhandledErrorInProduction:rd}=t&&t.appContext.config||EMPTY_OBJ;if(t){let ed=t.parent,td=t.proxy,rd=`https://vuejs.org/error-reference/#runtime-${$}`;for(;ed;){let t=ed.ec;if(t){for(let $=0;$<t.length;$++)if(t[$](e,td,rd)===!1)return}ed=ed.parent}if(nd){pauseTracking(),callWithErrorHandling(nd,null,10,[e,td,rd]),resetTracking();return}}logError(e,$,td,ed,rd)}function logError(e,t,$,ed=!0,td=!1){if(td)throw e;console.error(e)}var queue=[],flushIndex=-1,pendingPostFlushCbs=[],activePostFlushCbs=null,postFlushIndex=0,resolvedPromise=Promise.resolve(),currentFlushPromise=null;function nextTick$1(e){let t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,$=queue.length;for(;t<$;){let ed=t+$>>>1,td=queue[ed],nd=getId(td);nd<e||nd===e&&td.flags&2?t=ed+1:$=ed}return t}function queueJob(e){if(!(e.flags&1)){let t=getId(e),$=queue[queue.length-1];!$||!(e.flags&2)&&t>=getId($)?queue.push(e):queue.splice(findInsertionIndex(t),0,e),e.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||=resolvedPromise.then(flushJobs)}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&e.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,e):e.flags&1||(pendingPostFlushCbs.push(e),e.flags|=1),queueFlush()}function flushPreFlushCbs(e,t,$=flushIndex+1){for(;$<queue.length;$++){let t=queue[$];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;queue.splice($,1),$--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){let e=[...new Set(pendingPostFlushCbs)].sort((e,t)=>
26getId(e)-getId(t));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...e);return}for(activePostFlushCbs=e,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){let e=activePostFlushCbs[postFlushIndex];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}var getId=e=>e.id==null?e.flags&2?-1:1/0:e.id;function flushJobs(e){try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){let e=queue[flushIndex];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),callWithErrorHandling(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;flushIndex<queue.length;flushIndex++){let e=queue[flushIndex];e&&(e.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(e),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs(e)}}var devtools$1,buffer=[];function setDevtoolsHook$1(e,t){var $,ed;devtools$1=e,devtools$1?(devtools$1.enabled=!0,buffer.forEach(({event:e,args:t})=>devtools$1.emit(e,...t)),buffer=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{setDevtoolsHook$1(e,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){let t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}var withScopeId=e=>withCtx;function withCtx(e,t=currentRenderingInstance,$){if(!t||e._n)return e;let ed=(...$)=>{ed._d&&setBlockTracking(-1);let td=setCurrentRenderingInstance(t),nd;try{nd=e(...$)}finally{setCurrentRenderingInstance(td),ed._d&&setBlockTracking(1)}return nd};return ed._n=!0,ed._c=!0,ed._d=!0,ed}function withDirectives(e,t){if(currentRenderingInstance===null)return e;let $=getComponentPublicInstance(currentRenderingInstance),ed=e.dirs||=[];for(let e=0;e<t.length;e++){let[td,nd,rd,id=EMPTY_OBJ]=t[e];td&&(isFunction(td)&&(td={mounted:td,updated:td}),td.deep&&traverse(nd),ed.push({dir:td,instance:$,value:nd,oldValue:void 0,arg:rd,modifiers:id}))}return e}function invokeDirectiveHook(e,t,$,ed){let td=e.dirs,nd=t&&t.dirs;for(let rd=0;rd<td.length;rd++){let id=td[rd];nd&&(id.oldValue=nd[rd].value);let ad=id.dir[ed];ad&&(pauseTracking(),callWithAsyncErrorHandling(ad,$,8,[e.el,id,e,t]),resetTracking())}}var TeleportEndKey=Symbol(`_vte`),isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===``),isTeleportDeferred=e=>e&&(e.defer||e.defer===``),isTargetSVG=e=>typeof SVGElement<`u`&&e instanceof SVGElement,isTargetMathML=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,resolveTarget=(e,t)=>{let $=e&&e.to;return isString($)?t?t($):null:$},TeleportImpl={name:`Teleport`,__isTeleport:!0,process(e,t,$,ed,td,nd,rd,id,ad,od){let{mc:sd,pc:cd,pbc:ld,o:{insert:ud,querySelector:dd,createText:fd,createComment:pd}}=od,md=isTeleportDisabled(t.props),{shapeFlag:hd,children:gd,dynamicChildren:_d}=t;if(e==null){let e=t.el=fd(``),od=t.anchor=fd(``);ud(e,$,ed),ud(od,$,ed);let cd=(e,t)=>{hd&16&&(td&&td.isCE&&(td.ce._teleportTarget=e),sd(gd,e,t,td,nd,rd,id,ad))},ld=()=>{let e=t.target=resolveTarget(t.props,dd),$=prepareAnchor(e,t,fd,ud);e&&(rd!==`svg`&&isTargetSVG(e)?rd=`svg`:rd!==`mathml`&&isTargetMathML(e)&&(rd=`mathml`),md||(cd(e,$),updateCssVars(t,!1)))};md&&(cd($,od),updateCssVars(t,!0)),isTeleportDeferred(t.props)?queuePostRenderEffect(ld,nd):ld()}else{t.el=e.el,t.targetStart=e.targetStart;let ed=t.anchor=e.anchor,sd=t.target=e.target,ud=t.targetAnchor=e.targetAnchor,fd=isTeleportDisabled(e.props),pd=fd?$:sd,hd=fd?ed:ud;if(rd===`svg`||isTargetSVG(sd)?rd=`svg`:(rd===`mathml`||isTargetMathML(sd))&&(rd=`mathml`),_d?(ld(e.dynamicChildren,_d,pd,td,nd,rd,id),traverseStaticChildren(e,t,!0)):ad||cd(e,t,pd,hd,td,nd,rd,id,!1),md)fd?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):moveTeleport(t,$,ed,od,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=resolveTarget(t.props,dd);e&&moveTeleport(t,e,null,od,0)}else fd&&moveTeleport(t,sd,ud,od,1);updateCssVars(t,md)}},remove(e,t,$,{um:ed,o:{remove:td}},nd){let{shapeFlag:rd,children:id,anchor:ad,targetStart:od,targetAnchor:sd,target:cd,props:ld}=e;if(cd&&(td(od),td(sd)),nd&&td(ad),rd&16){let e=nd||!isTeleportDisabled(ld);for(let td=0;td<id.length;
26td++){let nd=id[td];ed(nd,t,$,e,!!nd.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(e,t,$,{o:{insert:ed},m:td},nd=2){nd===0&&ed(e.targetAnchor,t,$);let{el:rd,anchor:id,shapeFlag:ad,children:od,props:sd}=e,cd=nd===2;if(cd&&ed(rd,t,$),(!cd||isTeleportDisabled(sd))&&ad&16)for(let e=0;e<od.length;e++)td(od[e],t,$,2);cd&&ed(id,t,$)}function hydrateTeleport(e,t,$,ed,td,nd,{o:{nextSibling:rd,parentNode:id,querySelector:ad,insert:od,createText:sd}},cd){let ld=t.target=resolveTarget(t.props,ad);if(ld){let ad=isTeleportDisabled(t.props),ud=ld._lpa||ld.firstChild;if(t.shapeFlag&16)if(ad)t.anchor=cd(rd(e),t,id(e),$,ed,td,nd),t.targetStart=ud,t.targetAnchor=ud&&rd(ud);else{t.anchor=rd(e);let id=ud;for(;id;){if(id&&id.nodeType===8){if(id.data===`teleport start anchor`)t.targetStart=id;else if(id.data===`teleport anchor`){t.targetAnchor=id,ld._lpa=t.targetAnchor&&rd(t.targetAnchor);break}}id=rd(id)}t.targetAnchor||prepareAnchor(ld,t,sd,od),cd(ud&&rd(ud),t,ld,$,ed,td,nd)}updateCssVars(t,ad)}return t.anchor&&rd(t.anchor)}var Teleport=TeleportImpl;function updateCssVars(e,t){let $=e.ctx;if($&&$.ut){let ed,td;for(t?(ed=e.el,td=e.anchor):(ed=e.targetStart,td=e.targetAnchor);ed&&ed!==td;)ed.nodeType===1&&ed.setAttribute(`data-v-owner`,$.uid),ed=ed.nextSibling;$.ut()}}function prepareAnchor(e,t,$,ed){let td=t.targetStart=$(``),nd=t.targetAnchor=$(``);return td[TeleportEndKey]=nd,e&&(ed(td,e),ed(nd,e)),nd}var leaveCbKey=Symbol(`_leaveCb`),enterCbKey$1=Symbol(`_enterCb`);
vendor: 25,326 bytes, lines 26-27
26function useTransitionState(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}var TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=e=>{let t=e.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:`BaseTransition`,props:BaseTransitionPropsValidators,setup(e,{slots:t}){let $=getCurrentInstance(),ed=useTransitionState();return()=>{let td=t.default&&getTransitionRawChildren(t.default(),!0);if(!td||!td.length)return;let nd=findNonCommentChild(td),rd=toRaw(e),{mode:id}=rd;if(ed.isLeaving)return emptyPlaceholder(nd);let ad=getInnerChild$1(nd);if(!ad)return emptyPlaceholder(nd);let od=resolveTransitionHooks(ad,rd,ed,$,e=>od=e);ad.type!==Comment&&setTransitionHooks(ad,od);let sd=$.subTree,cd=sd&&getInnerChild$1(sd);if(cd&&cd.type!==Comment&&!isSameVNodeType(ad,cd)&&recursiveGetSubtree($).type!==Comment){let e=resolveTransitionHooks(cd,rd,ed,$);if(setTransitionHooks(cd,e),id===`out-in`&&ad.type!==Comment)return ed.isLeaving=!0,e.afterLeave=()=>{ed.isLeaving=!1,$.job.flags&8||$.update(),delete e.afterLeave},emptyPlaceholder(nd);id===`in-out`&&ad.type!==Comment&&(e.delayLeave=(e,t,$)=>{let td=getLeavingNodesForType(ed,cd);td[String(cd.key)]=cd,e[leaveCbKey]=()=>{t(),e[leaveCbKey]=void 0,delete od.delayedLeave},od.delayedLeave=$})}return nd}}};function findNonCommentChild(e){let t=e[0];if(e.length>1){for(let $ of e)if($.type!==Comment){t=$;break}}return t}var BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){let{leavingVNodes:$}=e,ed=$.get(t.type);return ed||(ed=Object.create(null),$.set(t.type,ed)),ed}function resolveTransitionHooks(e,t,$,ed,td){let{appear:nd,mode:rd,persisted:id=!1,onBeforeEnter:ad,onEnter:od,onAfterEnter:sd,onEnterCancelled:cd,onBeforeLeave:ld,onLeave:ud,onAfterLeave:dd,onLeaveCancelled:fd,onBeforeAppear:pd,onAppear:md,onAfterAppear:hd,onAppearCancelled:gd}=t,_d=String(e.key),vd=getLeavingNodesForType($,e),yd=(e,t)=>{e&&callWithAsyncErrorHandling(e,ed,9,t)},bd=(e,t)=>{let $=t[1];yd(e,t),isArray(e)?e.every(e=>e.length<=1)&&$():e.length<=1&&$()},xd={mode:rd,persisted:id,beforeEnter(t){let ed=ad;if(!$.isMounted)if(nd)ed=pd||ad;else return;t[leaveCbKey]&&t[leaveCbKey](!0);let td=vd[_d];td&&isSameVNodeType(e,td)&&td.el[leaveCbKey]&&td.el[leaveCbKey](),yd(ed,[t])},enter(e){let t=od,ed=sd,td=cd;if(!$.isMounted)if(nd)t=md||od,ed=hd||sd,td=gd||cd;else return;let rd=!1,id=e[enterCbKey$1]=t=>{rd||(rd=!0,yd(t?td:ed,[e]),xd.delayedLeave&&xd.delayedLeave(),e[enterCbKey$1]=void 0)};t?bd(t,[e,id]):id()},leave(t,ed){let td=String(e.key);if(t[enterCbKey$1]&&t[enterCbKey$1](!0),$.isUnmounting)return ed();yd(ld,[t]);let nd=!1,rd=t[leaveCbKey]=$=>{nd||(nd=!0,ed(),yd($?fd:dd,[t]),t[leaveCbKey]=void 0,vd[td]===e&&delete vd[td])};vd[td]=e,ud?bd(ud,[t,rd]):rd()},clone(e){let nd=resolveTransitionHooks(e,t,$,ed,td);return td&&td(nd),nd}};return xd}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getInnerChild$1(e){if(!isKeepAlive(e))return isTeleport(e.type)&&e.children?findNonCommentChild(e.children):e;let{shapeFlag:t,children:$}=e;if($){if(t&16)return $[0];if(t&32&&isFunction($.default))return $.default()}}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?(e.transition=t,setTransitionHooks(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e,t=!1,$){let ed=[],td=0;for(let nd=0;nd<e.length;nd++){let rd=e[nd],id=$==null?rd.key:String($)+String(rd.key==null?nd:rd.key);rd.type===Fragment?(rd.patchFlag&128&&td++,ed=ed.concat(getTransitionRawChildren(rd.children,t,id))):(t||rd.type!==Comment)&&ed.push(id==null?rd:cloneVNode(rd,{key:id}))}if(td>1)for(let e=0;e<ed.length;e++)ed[e].patchFlag=-2;return ed}function defineComponent(e,t){return isFunction(e)?extend$2({name:e.name},t,{setup:e}):e}function useId(){let e=getCurrentInstance();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+ e.ids[1]++:``}function markAsyncBoundary(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function useTemplateRef(e){let t=getCurrentInstance(),$=shallowRef(null);if(t){let ed=t.refs===EMPTY_OBJ?t.refs={}:t.refs;Object.defineProperty(ed,e,{enumerable:!0,get:()=>$.value,set:e=>$.value=e})}return $}function setRef(e,t,$,ed,td=!1){if(isArray(e)){e.forEach((e,nd)=>setRef(e,t&&(isArray(t)?t[nd]:t),$,ed,td));return}if(isAsyncWrapper(ed)&&!td)return;let nd=ed.shapeFlag&4?getComponentPublicInstance(ed.component):ed.el,rd=td?null:nd,{i:id,r:ad}=e,od=t&&t.r,sd=id.refs===EMPTY_OBJ?id.refs={}:id.refs,cd=id.setupState,ld=toRaw(cd),ud=cd===EMPTY_OBJ?()=>!1:e=>hasOwn(ld,e);if(od!=null&&od!==ad&&(isString(od)?(sd[od]=null,ud(od)&&(cd[od]=null)):isRef(od)&&(od.value=null)),isFunction(ad))callWithErrorHandling(ad,id,12,[rd,sd]);else{let t=isString(ad),ed=isRef(ad);if(t||ed){let id=()=>{if(e.f){let $=t?ud(ad)?cd[ad]:sd[ad]:ad.value;td?isArray($)&&remove($,nd):isArray($)?$.includes(nd)||$.push(nd):t?(sd[ad]=[nd],ud(ad)&&(cd[ad]=sd[ad])):(ad.value=[nd],e.k&&(sd[e.k]=ad.value))}else t?(sd[ad]=rd,ud(ad)&&(cd[ad]=rd)):ed&&(ad.value=rd,e.k&&(sd[e.k]=rd))};rd?(id.id=-1,queuePostRenderEffect(id,$)):id()}}}var hasLoggedMismatchError=!1,logMismatchError=()=>{hasLoggedMismatchError||=(console.error(`Hydration completed but contains mismatches.`),!0)},isSVGContainer=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,isMathMLContainer=e=>e.namespaceURI.includes(`MathML`),getContainerType=e=>{if(e.nodeType===1){if(isSVGContainer(e))return`svg`;if(isMathMLContainer(e))return`mathml`}},isComment=e=>e.nodeType===8;function createHydrationFunctions(e){let{mt:t,p:$,o:{patchProp:ed,createText:td,nextSibling:nd,parentNode:rd,remove:id,insert:ad,createComment:od}}=e,sd=(e,t)=>{if(!t.hasChildNodes()){$(null,e,t),flushPostFlushCbs(),t._vnode=e;return}cd(t.firstChild,e,null,null,null),flushPostFlushCbs(),t._vnode=e},cd=($,ed,id,od,sd,gd=!1)=>{gd||=!!ed.dynamicChildren;let _d=isComment($)&&$.data===`[`,vd=()=>fd($,ed,id,od,sd,_d),{type:yd,ref:bd,shapeFlag:xd,patchFlag:Sd}=ed,Cd=$.nodeType;ed.el=$,Sd===-2&&(gd=!1,ed.dynamicChildren=null);let wd=null;switch(yd){case Text:Cd===3?($.data!==ed.children&&(logMismatchError(),$.data=ed.children),wd=nd($)):ed.children===``?(ad(ed.el=td(``),rd($),$),wd=$):wd=vd();break;case Comment:hd($)?(wd=nd($),md(ed.el=$.content.firstChild,$,id)):wd=Cd!==8||_d?vd():nd($);break;case Static:if(_d&&($=nd($),Cd=$.nodeType),Cd===1||Cd===3){wd=$;let e=!ed.children.length;for(let t=0;t<ed.staticCount;t++)e&&(ed.children+=wd.nodeType===1?wd.outerHTML:wd.data),t===ed.staticCount-1&&(ed.anchor=wd),wd=nd(wd);return _d?nd(wd):wd}else vd();break;case Fragment:wd=_d?dd($,ed,id,od,sd,gd):vd();break;default:if(xd&1)wd=(Cd!==1||ed.type.toLowerCase()!==$.tagName.toLowerCase())&&!hd($)?vd():ld($,ed,id,od,sd,gd);else if(xd&6){ed.slotScopeIds=sd;let e=rd($);if(wd=_d?pd($):isComment($)&&$.data===`teleport start`?pd($,$.data,`teleport end`):nd($),t(ed,e,null,id,od,getContainerType(e),gd),isAsyncWrapper(ed)){let t;_d?(t=createVNode(Fragment),t.anchor=wd?wd.previousSibling:e.lastChild):t=$.nodeType===3?createTextVNode(``):createVNode(`div`),t.el=$,ed.component.subTree=t}}else xd&64?wd=Cd===8?ed.type.hydrate($,ed,id,od,sd,gd,e,ud):vd():xd&128&&(wd=ed.type.hydrate($,ed,id,od,getContainerType(rd($)),sd,gd,e,cd))}return bd!=null&&setRef(bd,null,od,ed),wd},ld=(e,t,$,td,nd,rd)=>{rd||=!!t.dynamicChildren;let{type:ad,props:od,patchFlag:sd,shapeFlag:cd,dirs:ld,transition:dd}=t,fd=ad===`input`||ad===`option`;if(fd||sd!==-1){ld&&invokeDirectiveHook(t,null,$,`created`);let ad=!1;if(hd(e)){ad=needTransition(null,dd)&&$&&$.vnode.props&&$.vnode.props.appear;let ed=e.content.firstChild;ad&&dd.beforeEnter(ed),md(ed,e,$),t.el=e=ed}if(cd&16&&!(od&&(od.innerHTML||od.textContent))){let ed=ud(e.firstChild,t,e,$,td,nd,rd);for(;ed;){isMismatchAllowed(e,1)||logMismatchError();let t=ed;ed=ed.nextSibling,id(t)}}else if(cd&8){let $=t.children;$[0]===` 27`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&($=$.slice(1)),e.textContent!==$&&(isMismatchAllowed(e,0)||logMismatchError(),e.textContent=t.children)}if(od){if(fd||!rd||sd&48){let t=e.tagName.includes(`-`);for(let td in od)(fd&&(td.endsWith(`value`)||td===`indeterminate`)||isOn(td)&&!isReservedProp(td)||td[0]===`.`||t)&&ed(e,td,null,od[td],void 0,$)}else if(od.onClick)ed(e,`onClick`,null,od.onClick,void 0,$);else if(sd&4&&isReactive(od.style))for(let e in od.style)od.style[e]}let pd;(pd=od&&od.onVnodeBeforeMount)&&invokeVNodeHook(pd,$,t),ld&&invokeDirectiveHook(t,null,$,`beforeMount`),((pd=od&&od.onVnodeMounted)||ld||ad)&&queueEffectWithSuspense(()=>{pd&&invokeVNodeHook(pd,$,t),ad&&dd.enter(e),ld&&invokeDirectiveHook(t,null,$,`mounted`)},td)}return e.nextSibling},ud=(e,t,ed,rd,id,od,sd)=>{sd||=!!t.dynamicChildren;let ld=t.children,ud=ld.length;for(let t=0;t<ud;t++){let dd=sd?ld[t]:ld[t]=normalizeVNode(ld[t]),fd=dd.type===Text;e?(fd&&!sd&&t+1<ud&&normalizeVNode(ld[t+1]).type===Text&&(ad(td(e.data.slice(dd.children.length)),ed,nd(e)),e.data=dd.children),e=cd(e,dd,rd,id,od,sd)):fd&&!dd.children?ad(dd.el=td(``),ed):(isMismatchAllowed(ed,1)||logMismatchError(),$(null,dd,ed,null,rd,id,getContainerType(ed),od))}return e},dd=(e,t,$,ed,td,id)=>{let{slotScopeIds:sd}=t;sd&&(td=td?td.concat(sd):sd);let cd=rd(e),ld=ud(nd(e),t,cd,$,ed,td,id);return ld&&isComment(ld)&&ld.data===`]`?nd(t.anchor=ld):(logMismatchError(),ad(t.anchor=od(`]`),cd,ld),ld)},fd=(e,t,ed,td,ad,od)=>{if(isMismatchAllowed(e.parentElement,1)||logMismatchError(),t.el=null,od){let t=pd(e);for(;;){let $=nd(e);if($&&$!==t)id($);else break}}let sd=nd(e),cd=rd(e);return id(e),$(null,t,cd,sd,ed,td,getContainerType(cd),ad),sd},pd=(e,t=`[`,$=`]`)=>{let ed=0;for(;e;)if(e=nd(e),e&&isComment(e)&&(e.data===t&&ed++,e.data===$)){if(ed===0)return nd(e);ed--}return e},md=(e,t,$)=>{let ed=t.parentNode;ed&&ed.replaceChild(e,t);let td=$;for(;td;)td.vnode.el===t&&(td.vnode.el=td.subTree.el=e),td=td.parent},hd=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[sd,cd]}var allowMismatchAttr=`data-allow-mismatch`,MismatchTypeString={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function isMismatchAllowed(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(allowMismatchAttr);)e=e.parentElement;let $=e&&e.getAttribute(allowMismatchAttr);if($==null)return!1;if($===``)return!0;{let e=$.split(`,`);return t===0&&e.includes(`children`)?!0:$.split(`,`).includes(MismatchTypeString[t])}}var requestIdleCallback=getGlobalThis().requestIdleCallback||(e=>setTimeout(e,1)),cancelIdleCallback=getGlobalThis().cancelIdleCallback||(e=>clearTimeout(e)),hydrateOnIdle=(e=1e4)=>t=>{let $=requestIdleCallback(t,{timeout:e});return()=>cancelIdleCallback($)};function elementIsVisibleInViewport(e){let{top:t,left:$,bottom:ed,right:td}=e.getBoundingClientRect(),{innerHeight:nd,innerWidth:rd}=window;return(t>0&&t<nd||ed>0&&ed<nd)&&($>0&&$<rd||td>0&&td<rd)}var hydrateOnVisible=e=>(t,$)=>{let ed=new IntersectionObserver(e=>{for(let $ of e)if($.isIntersecting){ed.disconnect(),t();break}},e);return $(e=>{if(e instanceof Element){if(elementIsVisibleInViewport(e))return t(),ed.disconnect(),!1;ed.observe(e)}}),()=>ed.disconnect()},hydrateOnMediaQuery=e=>t=>{if(e){let $=matchMedia(e);if($.matches)t();else return $.addEventListener(`change`,t,{once:!0}),()=>$.removeEventListener(`change`,t)}},hydrateOnInteraction=(e=[])=>(t,$)=>{isString(e)&&(e=[e]);let ed=!1,td=e=>{ed||(ed=!0,nd(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},nd=()=>{$(t=>{for(let $ of e)t.removeEventListener($,td)})};return $(t=>{for(let $ of e)t.addEventListener($,td,{once:!0})}),nd};function forEachElement(e,t){if(isComment(e)&&e.data===`[`){let $=1,ed=e.nextSibling;for(;ed;){if(ed.nodeType===1){if(t(ed)===!1)break}else if(isComment(ed))if(ed.data===`]`){if(--$===0)break}else ed.data===`[`&&$++;ed=ed.nextSibling}}else t(e)}var isAsyncWrapper=e=>!!e.type.__asyncLoader;function defineAsyncComponent(e){isFunction(e)&&(e={loader:e});let{loader:t,loadingComponent:$,errorComponent:ed,delay:td=200,hydrate:nd,timeout:rd,suspensible:id=!0,onError:ad}=e,od=null,sd,cd=0,ld=()=>(cd++,od=null,ud()),ud=()=>{let e;return od||(e=od=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),ad)return new Promise((t,$)=>{ad(e,()=>t(ld()),()=>$(e),cd+1)});throw e}).then(t=>e!==od&&od?od:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),sd=t,t)))};return defineComponent({name:`AsyncComponentWrapper`,__asyncLoader:ud,__asyncHydrate(e,t,$){let ed=nd?()=>{let ed=nd($,t=>forEachElement(e,t));ed&&(t.bum||=[]).push(ed)}:$;sd?ed():ud().then(()=>!t.isUnmounted&&ed())},get __asyncResolved(){return sd},setup(){let e=currentInstance;if(markAsyncBoundary(e),sd)return()=>createInnerComp(sd,e);let t=t=>{od=null,handleError(t,e,13,!ed)};if(id&&e.suspense||isInSSRComponentSetup)return ud().then(t=>()=>createInnerComp(t,e)).catch(e=>(t(e),()=>ed?createVNode(ed,{error:e}):null));let nd=ref(!1),ad=ref(),cd=ref(!!td);return td&&setTimeout(()=>{cd.value=!1},td),rd!=null&&setTimeout(()=>{if(!nd.value&&!ad.value){let e=Error(`Async component timed out after ${rd}ms.`);t(e),ad.value=e}},rd),ud().then(()=>{nd.value=!0,e.parent&&isKeepAlive(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),ad.value=e}),()=>{if(nd.value&&sd)return createInnerComp(sd,e);if(ad.value&&ed)return createVNode(ed,{error:ad.value});if($&&!cd.value)return createVNode($)}}})}function createInnerComp(e,t){let{ref:$,props:ed,children:td,ce:nd}=t.vnode,rd=createVNode(e,ed,td);return rd.ref=$,rd.ce=nd,delete t.vnode.ce,rd}var isKeepAlive=e=>e.type.__isKeepAlive,KeepAlive={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let $=getCurrentInstance(),ed=$.ctx;if(!ed.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let td=new Map,nd=new Set,rd=null,id=$.suspense,{renderer:{p:ad,m:od,um:sd,o:{createElement:cd}}}=ed,ld=cd(`div`);ed.activate=(e,t,$,ed,td)=>{let nd=e.component;od(e,t,$,0,id),ad(nd.vnode,e,t,$,nd,id,ed,e.slotScopeIds,td),queuePostRenderEffect(()=>{nd.isDeactivated=!1,nd.a&&invokeArrayFns(nd.a);let t=e.props&&e.props.onVnodeMounted;t&&invokeVNodeHook(t,nd.parent,e)},id)},ed.deactivate=e=>{let t=e.component;invalidateMount(t.m),invalidateMount(t.a),od(e,ld,null,1,id),queuePostRenderEffect(()=>{t.da&&invokeArrayFns(t.da);let $=e.props&&e.props.onVnodeUnmounted;$&&invokeVNodeHook($,t.parent,e),t.isDeactivated=!0},id)};function ud(e){resetShapeFlag(e),sd(e,$,id,!0)}function dd(e){td.forEach((t,$)=>{let ed=getComponentName(t.type);ed&&!e(ed)&&fd($)})}function fd(e){let t=td.get(e);t&&(!rd||!isSameVNodeType(t,rd))?ud(t):rd&&resetShapeFlag(rd),td.delete(e),nd.delete(e)}watch(()=>[e.include,e.exclude],([e,t])=>{e&&dd(t=>matches(e,t)),t&&dd(e=>!matches(t,e))},{flush:`post`,deep:!0});let pd=null,md=()=>{pd!=null&&(isSuspense($.subTree.type)?queuePostRenderEffect(()=>{td.set(pd,getInnerChild($.subTree))},$.subTree.suspense):td.set(pd,getInnerChild($.subTree)))};return onMounted(md),onUpdated(md),onBeforeUnmount(()=>{td.forEach(e=>{let{subTree:t,suspense:ed}=$,td=getInnerChild(t);if(e.type===td.type&&e.key===td.key){resetShapeFlag(td);let e=td.component.da;e&&queuePostRenderEffect(e,ed);return}ud(e)})}),()=>{if(pd=null,!t.default)return rd=null;let $=t.default(),ed=$[0];if($.length>1)return rd=null,$;if(!isVNode(ed)||!(ed.shapeFlag&4)&&!(ed.shapeFlag&128))return rd=null,ed;let id=getInnerChild(ed);if(id.type===Comment)return rd=null,id;let ad=id.type,od=getComponentName(isAsyncWrapper(id)?id.type.__asyncResolved||{}:ad),{include:sd,exclude:cd,max:ld}=e;if(sd&&(!od||!matches(sd,od))||cd&&od&&matches(cd,od))return id.shapeFlag&=-257,rd=id,ed;let ud=id.key==null?ad:id.key,dd=td.get(ud);return id.el&&(id=cloneVNode(id),ed.shapeFlag&128&&(ed.ssContent=id)),pd=ud,dd?(id.el=dd.el,id.component=dd.component,id.transition&&setTransitionHooks(id,id.transition),id.shapeFlag|=512,nd.delete(ud),nd.add(ud)):(nd.add(ud),ld&&nd.size>parseInt(ld,10)&&fd(nd.values().next().value)),id.shapeFlag|=256,rd=id,isSuspense(ed.type)?ed:id}}};function matches(e,t){return isArray(e)?e.some(e=>matches(e,t)):isString(e)?e.split(`,`).includes(t):isRegExp(e)?(e.lastIndex=0,e.test(t)):!1}function onActivated(e,t){registerKeepAliveHook(e,`a`,t)}function onDeactivated(e,t){registerKeepAliveHook(e,`da`,t)}function registerKeepAliveHook(e,t,$=currentInstance){let ed=e.__wdc||=()=>{let t=$;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(injectHook(t,ed,$),$){let e=$.parent;for(;e&&e.parent;)isKeepAlive(e.parent.vnode)&&injectToKeepAliveRoot(ed,t,$,e),e=e.parent}}function injectToKeepAliveRoot(e,t,$,ed){let td=injectHook(t,e,ed,!0);onUnmounted(()=>{remove(ed[t],td)},$)}function resetShapeFlag(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function getInnerChild(e){return e.shapeFlag&128?e.ssContent:e}function injectHook(e,t,$=currentInstance,ed=!1){if($){let td=$[e]||($[e]=[]),nd=t.__weh||=(...ed)=>{pauseTracking();let td=setCurrentInstance($),nd=callWithAsyncErrorHandling(t,$,e,ed);return td(),resetTracking(),nd};return ed?td.unshift(nd):td.push(nd),nd}}var createHook=e=>(t,$=currentInstance)=>{(!isInSSRComponentSetup||e===`sp`)&&injectHook(e,(...e)=>t(...e),$)},onBeforeMount=createHook(`bm`),onMounted=createHook(`m`),onBeforeUpdate=createHook(`bu`),onUpdated=createHook(`u`),onBeforeUnmount=createHook(`bum`),onUnmounted=createHook(`um`),onServerPrefetch=createHook(`sp`),onRenderTriggered=createHook(`rtg`),onRenderTracked=createHook(`rtc`);function onErrorCaptured(e,t=currentInstance){injectHook(`ec`,e,t)}var COMPONENTS=`components`,DIRECTIVES=`directives`;function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}var NULL_DYNAMIC_COMPONENT=Symbol.for(`v-ndc`);function resolveDynamicComponent(e){return isString(e)?resolveAsset(COMPONENTS,e,!1)||e:e||NULL_DYNAMIC_COMPONENT}function resolveDirective(e){return resolveAsset(DIRECTIVES,e)}function resolveAsset(e,t,$=!0,ed=!1){let td=currentRenderingInstance||currentInstance;if(td){let $=td.type;if(e===COMPONENTS){let e=getComponentName($,!1);if(e&&(e===t||e===camelize(t)||e===capitalize(camelize(t))))return $}let nd=resolve(td[e]||$[e],t)||resolve(td.appContext[e],t);return!nd&&ed?$:nd}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}function renderList(e,t,$,ed){let td,nd=$&&$[ed],rd=isArray(e);if(rd||isString(e)){let $=rd&&isReactive(e),ed=!1;$&&(ed=!isShallow(e),e=shallowReadArray(e)),td=Array(e.length);for(let $=0,rd=e.length;$<rd;$++)td[$]=t(ed?toReactive(e[$]):e[$],$,void 0,nd&&nd[$])}else if(typeof e==`number`){td=Array(e);for(let $=0;$<e;$++)td[$]=t($+1,$,void 0,nd&&nd[$])}else if(isObject$5(e))if(e[Symbol.iterator])td=Array.from(e,(e,$)=>t(e,$,void 0,nd&&nd[$]));else{let $=Object.keys(e);td=Array($.length);for(let ed=0,rd=$.length;ed<rd;ed++){let rd=$[ed];td[ed]=t(e[rd],rd,ed,nd&&nd[ed])}}else td=[];return $&&($[ed]=td),td}function createSlots(e,t){for(let $=0;$<t.length;$++){let ed=t[$];if(isArray(ed))for(let t=0;t<ed.length;t++)e[ed[t].name]=ed[t].fn;else ed&&(e[ed.name]=ed.key?(...e)=>{let t=ed.fn(...e);return t&&(t.key=ed.key),t}:ed.fn)}return e}function renderSlot(e,t,$={},ed,td){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return t!==`default`&&($.name=t),openBlock(),createBlock(Fragment,null,[createVNode(`slot`,$,ed&&ed())],64);let nd=e[t];nd&&nd._c&&(nd._d=!1),openBlock();let rd=nd&&ensureValidVNode(nd($)),id=$.key||rd&&rd.key,ad=createBlock(Fragment,{key:(id&&!isSymbol(id)?id:`_${t}`)+(!rd&&ed?`_fb`:``)},rd||(ed?ed():[]),rd&&e._===1?64:-2);return!td&&ad.scopeId&&(ad.slotScopeIds=[ad.scopeId+`-s`]),nd&&nd._c&&(nd._d=!0),ad}function ensureValidVNode(e){return e.some(e=>isVNode(e)?!(e.type===Comment||e.type===Fragment&&!ensureValidVNode(e.children)):!0)?e:null}function toHandlers(e,t){let $={};for(let ed in e)$[t&&/[A-Z]/.test(ed)?`on:${ed}`:toHandlerKey(ed)]=e[ed];return $}var getPublicInstance=e=>e?isStatefulComponent(e)?getComponentPublicInstance(e):getPublicInstance(e.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||=()=>{queueJob(e.update)},$nextTick:e=>e.n||=nextTick$1.bind(e.proxy),$watch:e=>instanceWatch.bind(e)}),hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:$,setupState:ed,data:td,props:nd,accessCache:rd,type:id,appContext:ad}=e,od;if(t[0]!==`$`){let id=rd[t];if(id!==void 0)switch(id){case 1:return ed[t];case 2:return td[t];case 4:return $[t];case 3:return nd[t]}else if(hasSetupBinding(ed,t))return rd[t]=1,ed[t];else if(td!==EMPTY_OBJ&&hasOwn(td,t))return rd[t]=2,td[t];else if((od=e.propsOptions[0])&&hasOwn(od,t))return rd[t]=3,nd[t];else if($!==EMPTY_OBJ&&hasOwn($,t))return rd[t]=4,$[t];else shouldCacheAccess&&(rd[t]=0)}let sd=publicPropertiesMap[t],cd,ld;if(sd)return t===`$attrs`&&track(e.attrs,`get`,``),sd(e);if((cd=id.__cssModules)&&(cd=cd[t]))return cd;if($!==EMPTY_OBJ&&hasOwn($,t))return rd[t]=4,$[t];if(ld=ad.config.globalProperties,hasOwn(ld,t))return ld[t]},set({_:e},t,$){let{data:ed,setupState:td,ctx:nd}=e;return hasSetupBinding(td,t)?(td[t]=$,!0):ed!==EMPTY_OBJ&&hasOwn(ed,t)?(ed[t]=$,!0):hasOwn(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(nd[t]=$,!0)},has({_:{data:e,setupState:t,accessCache:$,ctx:ed,appContext:td,propsOptions:nd}},rd){let id;return!!$[rd]||e!==EMPTY_OBJ&&hasOwn(e,rd)||hasSetupBinding(t,rd)||(id=nd[0])&&hasOwn(id,rd)||hasOwn(ed,rd)||hasOwn(publicPropertiesMap,rd)||hasOwn(td.config.globalProperties,rd)},defineProperty(e,t,$){return $.get==null?hasOwn($,`value`)&&this.set(e,t,$.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,$)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get(e,t){if(t!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,t,e)},has(e,t){return t[0]!==`_`&&!isGloballyAllowed(t)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(e){}function defineOptions(e){}function defineSlots(){return null}function defineModel(){}function withDefaults(e,t){return null}function useSlots(){return getContext$1().slots}function useAttrs(){return getContext$1().attrs}function getContext$1(){let e=getCurrentInstance();return e.setupContext||=createSetupContext(e)}function normalizePropsOrEmits(e){return isArray(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function mergeDefaults(e,t){let $=normalizePropsOrEmits(e);for(let e in t){if(e.startsWith(`__skip`))continue;let ed=$[e];ed?isArray(ed)||isFunction(ed)?ed=$[e]={type:ed,default:t[e]}:ed.default=t[e]:ed===null&&(ed=$[e]={default:t[e]}),ed&&t[`__skip_${e}`]&&(ed.skipFactory=!0)}return $}function mergeModels(e,t){return!e||!t?e||t:isArray(e)&&isArray(t)?e.concat(t):extend$2({},normalizePropsOrEmits(e),normalizePropsOrEmits(t))}function createPropsRestProxy(e,t){let $={};for(let ed in e)t.includes(ed)||Object.defineProperty($,ed,{enumerable:!0,get:()=>e[ed]});return $}function withAsyncContext(e){let t=getCurrentInstance(),$=e();return unsetCurrentInstance(),isPromise$2($)&&($=$.catch(e=>{throw setCurrentInstance(t),e})),[$,()=>setCurrentInstance(t)]}var shouldCacheAccess=!0;function applyOptions(e){let t=resolveMergedOptions(e),$=e.proxy,ed=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,`bc`);let{data:td,computed:nd,methods:rd,watch:id,provide:ad,inject:od,created:sd,beforeMount:cd,mounted:ld,beforeUpdate:ud,updated:dd,activated:fd,deactivated:pd,beforeDestroy:md,beforeUnmount:hd,destroyed:gd,unmounted:_d,render:vd,renderTracked:yd,renderTriggered:bd,errorCaptured:xd,serverPrefetch:Sd,expose:Cd,inheritAttrs:wd,components:Td,directives:Ed,filters:Dd}=t,Od=null;if(od&&resolveInjections(od,ed,null),rd)for(let e in rd){let t=rd[e];isFunction(t)&&(ed[e]=t.bind($))}if(td){let t=td.call($,$);isObject$5(t)&&(e.data=reactive(t))}if(shouldCacheAccess=!0,nd)for(let e in nd){let t=nd[e],td=computed({get:isFunction(t)?t.bind($,$):isFunction(t.get)?t.get.bind($,$):NOOP,set:!isFunction(t)&&isFunction(t.set)?t.set.bind($):NOOP});Object.defineProperty(ed,e,{enumerable:!0,configurable:!0,get:()=>td.value,set:e=>td.value=e})}if(id)for(let e in id)createWatcher(id[e],ed,$,e);if(ad){let e=isFunction(ad)?ad.call($):ad;Reflect.ownKeys(e).forEach(t=>{provide(t,e[t])})}sd&&callHook$1(sd,e,`c`);function kd(e,t){isArray(t)?t.forEach(t=>e(t.bind($))):t&&e(t.bind($))}
vendor: 8,762 bytes, line 27
27if(kd(onBeforeMount,cd),kd(onMounted,ld),kd(onBeforeUpdate,ud),kd(onUpdated,dd),kd(onActivated,fd),kd(onDeactivated,pd),kd(onErrorCaptured,xd),kd(onRenderTracked,yd),kd(onRenderTriggered,bd),kd(onBeforeUnmount,hd),kd(onUnmounted,_d),kd(onServerPrefetch,Sd),isArray(Cd))if(Cd.length){let t=e.exposed||={};Cd.forEach(e=>{Object.defineProperty(t,e,{get:()=>$[e],set:t=>$[e]=t})})}else e.exposed||={};vd&&e.render===NOOP&&(e.render=vd),wd!=null&&(e.inheritAttrs=wd),Td&&(e.components=Td),Ed&&(e.directives=Ed),Sd&&markAsyncBoundary(e)}function resolveInjections(e,t,$=NOOP){isArray(e)&&(e=normalizeInject(e));for(let $ in e){let ed=e[$],td;td=isObject$5(ed)?`default`in ed?inject(ed.from||$,ed.default,!0):inject(ed.from||$):inject(ed),isRef(td)?Object.defineProperty(t,$,{enumerable:!0,configurable:!0,get:()=>td.value,set:e=>td.value=e}):t[$]=td}}function callHook$1(e,t,$){callWithAsyncErrorHandling(isArray(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,$)}function createWatcher(e,t,$,ed){let td=ed.includes(`.`)?createPathGetter($,ed):()=>$[ed];if(isString(e)){let $=t[e];isFunction($)&&watch(td,$)}else if(isFunction(e))watch(td,e.bind($));else if(isObject$5(e))if(isArray(e))e.forEach(e=>createWatcher(e,t,$,ed));else{let ed=isFunction(e.handler)?e.handler.bind($):t[e.handler];isFunction(ed)&&watch(td,ed,e)}}function resolveMergedOptions(e){let t=e.type,{mixins:$,extends:ed}=t,{mixins:td,optionsCache:nd,config:{optionMergeStrategies:rd}}=e.appContext,id=nd.get(t),ad;return id?ad=id:!td.length&&!$&&!ed?ad=t:(ad={},td.length&&td.forEach(e=>mergeOptions(ad,e,rd,!0)),mergeOptions(ad,t,rd)),isObject$5(t)&&nd.set(t,ad),ad}function mergeOptions(e,t,$,ed=!1){let{mixins:td,extends:nd}=t;nd&&mergeOptions(e,nd,$,!0),td&&td.forEach(t=>mergeOptions(e,t,$,!0));for(let td in t)if(!(ed&&td===`expose`)){let ed=internalOptionMergeStrats[td]||$&&$[td];e[td]=ed?ed(e[td],t[td]):t[td]}return e}var internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend$2(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){let t={};for(let $=0;$<e.length;$++)t[e[$]]=e[$];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend$2(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray(e)&&isArray(t)?[...new Set([...e,...t])]:extend$2(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(t??{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;let $=extend$2(Object.create(null),e);for(let ed in t)$[ed]=mergeAsArray(e[ed],t[ed]);return $}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var uid$1=0;function createAppAPI(e,t){return function($,ed=null){isFunction($)||($=extend$2({},$)),ed!=null&&!isObject$5(ed)&&(ed=null);let td=createAppContext(),nd=new WeakSet,rd=[],id=!1,ad=td.app={_uid:uid$1++,_component:$,_props:ed,_container:null,_context:td,_instance:null,version:version$9,get config(){return td.config},set config(e){},use(e,...t){return nd.has(e)||(e&&isFunction(e.install)?(nd.add(e),e.install(ad,...t)):isFunction(e)&&(nd.add(e),e(ad,...t))),ad},mixin(e){return td.mixins.includes(e)||td.mixins.push(e),ad},component(e,t){return t?(td.components[e]=t,ad):td.components[e]},directive(e,t){return t?(td.directives[e]=t,ad):td.directives[e]},mount(nd,rd,od){if(!id){let sd=ad._ceVNode||createVNode($,ed);return sd.appContext=td,od===!0?od=`svg`:od===!1&&(od=void 0),rd&&t?t(sd,nd):e(sd,nd,od),id=!0,ad._container=nd,nd.__vue_app__=ad,getComponentPublicInstance(sd.component)}},onUnmount(e){rd.push(e)},unmount(){id&&(callWithAsyncErrorHandling(rd,ad._instance,16),e(null,ad._container),delete ad._container.__vue_app__)},provide(e,t){return td.provides[e]=t,ad},runWithContext(e){let t=currentApp;currentApp=ad;try{return e()}finally{currentApp=t}}};return ad}}var currentApp=null;function provide(e,t){if(currentInstance){let $=currentInstance.provides,ed=currentInstance.parent&¤tInstance.parent.provides;ed===$&&($=currentInstance.provides=Object.create(ed)),$[e]=t}}function inject(e,t,$=!1){let ed=currentInstance||currentRenderingInstance;if(ed||currentApp){let td=currentApp?currentApp._context.provides:ed?ed.parent==null?ed.vnode.appContext&&ed.vnode.appContext.provides:ed.parent.provides:void 0;if(td&&e in td)return td[e];if(arguments.length>1)return $&&isFunction(t)?t.call(ed&&ed.proxy):t}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}var internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=e=>Object.getPrototypeOf(e)===internalObjectProto;function initProps(e,t,$,ed=!1){let td={},nd=createInternalObject();e.propsDefaults=Object.create(null),setFullProps(e,t,td,nd);for(let t in e.propsOptions[0])t in td||(td[t]=void 0);$?e.props=ed?td:shallowReactive(td):e.type.props?e.props=td:e.props=nd,e.attrs=nd}function updateProps(e,t,$,ed){let{props:td,attrs:nd,vnode:{patchFlag:rd}}=e,id=toRaw(td),[ad]=e.propsOptions,od=!1;if((ed||rd>0)&&!(rd&16)){if(rd&8){let $=e.vnode.dynamicProps;for(let ed=0;ed<$.length;ed++){let rd=$[ed];if(isEmitListener(e.emitsOptions,rd))continue;let sd=t[rd];if(ad)if(hasOwn(nd,rd))sd!==nd[rd]&&(nd[rd]=sd,od=!0);else{let t=camelize(rd);td[t]=resolvePropValue(ad,id,t,sd,e,!1)}else sd!==nd[rd]&&(nd[rd]=sd,od=!0)}}}else{setFullProps(e,t,td,nd)&&(od=!0);let ed;for(let nd in id)(!t||!hasOwn(t,nd)&&((ed=hyphenate(nd))===nd||!hasOwn(t,ed)))&&(ad?$&&($[nd]!==void 0||$[ed]!==void 0)&&(td[nd]=resolvePropValue(ad,id,nd,void 0,e,!0)):delete td[nd]);if(nd!==id)for(let e in nd)(!t||!hasOwn(t,e))&&(delete nd[e],od=!0)}od&&trigger$1(e.attrs,`set`,``)}function setFullProps(e,t,$,ed){let[td,nd]=e.propsOptions,rd=!1,id;if(t)for(let ad in t){if(isReservedProp(ad))continue;let od=t[ad],sd;td&&hasOwn(td,sd=camelize(ad))?!nd||!nd.includes(sd)?$[sd]=od:(id||={})[sd]=od:isEmitListener(e.emitsOptions,ad)||(!(ad in ed)||od!==ed[ad])&&(ed[ad]=od,rd=!0)}if(nd){let t=toRaw($),ed=id||EMPTY_OBJ;for(let rd=0;rd<nd.length;rd++){let id=nd[rd];$[id]=resolvePropValue(td,t,id,ed[id],e,!hasOwn(ed,id))}}return rd}function resolvePropValue(e,t,$,ed,td,nd){let rd=e[$];if(rd!=null){let e=hasOwn(rd,`default`);if(e&&ed===void 0){let e=rd.default;if(rd.type!==Function&&!rd.skipFactory&&isFunction(e)){let{propsDefaults:nd}=td;if($ in nd)ed=nd[$];else{let rd=setCurrentInstance(td);ed=nd[$]=e.call(null,t),rd()}}else ed=e;td.ce&&td.ce._setProp($,ed)}rd[0]&&(nd&&!e?ed=!1:rd[1]&&(ed===``||ed===hyphenate($))&&(ed=!0))}return ed}var mixinPropsCache=new WeakMap;function normalizePropsOptions(e,t,$=!1){let ed=$?mixinPropsCache:t.propsCache,td=ed.get(e);if(td)return td;let nd=e.props,rd={},id=[],ad=!1;if(!isFunction(e)){let ed=e=>{ad=!0;let[$,ed]=normalizePropsOptions(e,t,!0);extend$2(rd,$),ed&&id.push(...ed)};!$&&t.mixins.length&&t.mixins.forEach(ed),e.extends&&ed(e.extends),e.mixins&&e.mixins.forEach(ed)}if(!nd&&!ad)return isObject$5(e)&&ed.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(nd))for(let e=0;e<nd.length;e++){let t=camelize(nd[e]);validatePropName(t)&&(rd[t]=EMPTY_OBJ)}else if(nd)for(let e in nd){let t=camelize(e);if(validatePropName(t)){let $=nd[e],ed=rd[t]=isArray($)||isFunction($)?{type:$}:extend$2({},$),td=ed.type,ad=!1,od=!0;if(isArray(td))for(let e=0;e<td.length;++e){let t=td[e],$=isFunction(t)&&t.name;if($===`Boolean`){ad=!0;break}else $===`String`&&(od=!1)}else ad=isFunction(td)&&td.name===`Boolean`;ed[0]=ad,ed[1]=od,(ad||hasOwn(ed,`default`))&&id.push(t)}}let od=[rd,id];return isObject$5(e)&&ed.set(e,od),od}function validatePropName(e){return e[0]!==`$`&&!isReservedProp(e)}var isInternalKey=e=>e[0]===`_`||e===`$stable`,normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,$)=>
vendor: 31,085 bytes, line 27
27{if(t._n)return t;let ed=withCtx((...e)=>normalizeSlotValue(t(...e)),$);return ed._c=!1,ed},normalizeObjectSlots=(e,t,$)=>{let ed=e._ctx;for(let $ in e){if(isInternalKey($))continue;let td=e[$];if(isFunction(td))t[$]=normalizeSlot($,td,ed);else if(td!=null){let e=normalizeSlotValue(td);t[$]=()=>e}}},normalizeVNodeSlots=(e,t)=>{let $=normalizeSlotValue(t);e.slots.default=()=>$},assignSlots=(e,t,$)=>{for(let ed in t)($||ed!==`_`)&&(e[ed]=t[ed])},initSlots=(e,t,$)=>{let ed=e.slots=createInternalObject();if(e.vnode.shapeFlag&32){let e=t._;e?(assignSlots(ed,t,$),$&&def(ed,`_`,e,!0)):normalizeObjectSlots(t,ed)}else t&&normalizeVNodeSlots(e,t)},updateSlots=(e,t,$)=>{let{vnode:ed,slots:td}=e,nd=!0,rd=EMPTY_OBJ;if(ed.shapeFlag&32){let e=t._;e?$&&e===1?nd=!1:assignSlots(td,t,$):(nd=!t.$stable,normalizeObjectSlots(t,td)),rd=t}else t&&(normalizeVNodeSlots(e,t),rd={default:1});if(nd)for(let e in td)!isInternalKey(e)&&rd[e]==null&&delete td[e]};function initFeatureFlags(){}var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function createHydrationRenderer(e){return baseCreateRenderer(e,createHydrationFunctions)}function baseCreateRenderer(e,t){let $=getGlobalThis();$.__VUE__=!0;let{insert:ed,remove:td,patchProp:nd,createElement:rd,createText:id,createComment:ad,setText:od,setElementText:sd,parentNode:cd,nextSibling:ld,setScopeId:ud=NOOP,insertStaticContent:dd}=e,fd=(e,t,$,ed=null,td=null,nd=null,rd=void 0,id=null,ad=!!t.dynamicChildren)=>{if(e===t)return;e&&!isSameVNodeType(e,t)&&(ed=Bd(e),Fd(e,td,nd,!0),e=null),t.patchFlag===-2&&(ad=!1,t.dynamicChildren=null);let{type:od,ref:sd,shapeFlag:cd}=t;switch(od){case Text:pd(e,t,$,ed);break;case Comment:md(e,t,$,ed);break;case Static:e??hd(t,$,ed,rd);break;case Fragment:Td(e,t,$,ed,td,nd,rd,id,ad);break;default:cd&1?vd(e,t,$,ed,td,nd,rd,id,ad):cd&6?Ed(e,t,$,ed,td,nd,rd,id,ad):(cd&64||cd&128)&&od.process(e,t,$,ed,td,nd,rd,id,ad,Ud)}sd!=null&&td&&setRef(sd,e&&e.ref,nd,t||e,!t)},pd=(e,t,$,td)=>{if(e==null)ed(t.el=id(t.children),$,td);else{let $=t.el=e.el;t.children!==e.children&&od($,t.children)}},md=(e,t,$,td)=>{e==null?ed(t.el=ad(t.children||``),$,td):t.el=e.el},hd=(e,t,$,ed)=>{[e.el,e.anchor]=dd(e.children,t,$,ed,e.el,e.anchor)},gd=({el:e,anchor:t},$,td)=>{let nd;for(;e&&e!==t;)nd=ld(e),ed(e,$,td),e=nd;ed(t,$,td)},_d=({el:e,anchor:t})=>{let $;for(;e&&e!==t;)$=ld(e),td(e),e=$;td(t)},vd=(e,t,$,ed,td,nd,rd,id,ad)=>{t.type===`svg`?rd=`svg`:t.type===`math`&&(rd=`mathml`),e==null?yd(t,$,ed,td,nd,rd,id,ad):Sd(e,t,td,nd,rd,id,ad)},yd=(e,t,$,td,id,ad,od,cd)=>{let ld,ud,{props:dd,shapeFlag:fd,transition:pd,dirs:md}=e;if(ld=e.el=rd(e.type,ad,dd&&dd.is,dd),fd&8?sd(ld,e.children):fd&16&&xd(e.children,ld,null,td,id,resolveChildrenNamespace(e,ad),od,cd),md&&invokeDirectiveHook(e,null,td,`created`),bd(ld,e,e.scopeId,od,td),dd){for(let e in dd)e!==`value`&&!isReservedProp(e)&&nd(ld,e,null,dd[e],ad,td);`value`in dd&&nd(ld,`value`,null,dd.value,ad),(ud=dd.onVnodeBeforeMount)&&invokeVNodeHook(ud,td,e)}md&&invokeDirectiveHook(e,null,td,`beforeMount`);let hd=needTransition(id,pd);hd&&pd.beforeEnter(ld),ed(ld,t,$),((ud=dd&&dd.onVnodeMounted)||hd||md)&&queuePostRenderEffect(()=>{ud&&invokeVNodeHook(ud,td,e),hd&&pd.enter(ld),md&&invokeDirectiveHook(e,null,td,`mounted`)},id)},bd=(e,t,$,ed,td)=>{if($&&ud(e,$),ed)for(let t=0;t<ed.length;t++)ud(e,ed[t]);if(td){let $=td.subTree;if(t===$||isSuspense($.type)&&($.ssContent===t||$.ssFallback===t)){let t=td.vnode;bd(e,t,t.scopeId,t.slotScopeIds,td.parent)}}},xd=(e,t,$,ed,td,nd,rd,id,ad=0)=>{for(let od=ad;od<e.length;od++)fd(null,e[od]=id?cloneIfMounted(e[od]):normalizeVNode(e[od]),t,$,ed,td,nd,rd,id)},Sd=(e,t,$,ed,td,rd,id)=>{let ad=t.el=e.el,{patchFlag:od,dynamicChildren:cd,dirs:ld}=t;od|=e.patchFlag&16;let ud=e.props||EMPTY_OBJ,dd=t.props||EMPTY_OBJ,fd;if($&&toggleRecurse($,!1),(fd=dd.onVnodeBeforeUpdate)&&invokeVNodeHook(fd,$,t,e),ld&&invokeDirectiveHook(t,e,$,`beforeUpdate`),$&&toggleRecurse($,!0),(ud.innerHTML&&dd.innerHTML==null||ud.textContent&&dd.textContent==null)&&sd(ad,``),cd?Cd(e.dynamicChildren,cd,ad,$,ed,resolveChildrenNamespace(t,td),rd):id||jd(e,t,ad,null,$,ed,resolveChildrenNamespace(t,td),rd,!1),od>0){if(od&16)wd(ad,ud,dd,$,td);else if(od&2&&ud.class!==dd.class&&nd(ad,`class`,null,dd.class,td),od&4&&nd(ad,`style`,ud.style,dd.style,td),od&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let ed=e[t],rd=ud[ed],id=dd[ed];(id!==rd||ed===`value`)&&nd(ad,ed,rd,id,td,$)}}od&1&&e.children!==t.children&&sd(ad,t.children)}else !id&&cd==null&&wd(ad,ud,dd,$,td);((fd=dd.onVnodeUpdated)||ld)&&queuePostRenderEffect(()=>{fd&&invokeVNodeHook(fd,$,t,e),ld&&invokeDirectiveHook(t,e,$,`updated`)},ed)},Cd=(e,t,$,ed,td,nd,rd)=>{for(let id=0;id<t.length;id++){let ad=e[id],od=t[id];fd(ad,od,ad.el&&(ad.type===Fragment||!isSameVNodeType(ad,od)||ad.shapeFlag&70)?cd(ad.el):$,null,ed,td,nd,rd,!0)}},wd=(e,t,$,ed,td)=>{if(t!==$){if(t!==EMPTY_OBJ)for(let rd in t)!isReservedProp(rd)&&!(rd in $)&&nd(e,rd,t[rd],null,td,ed);for(let rd in $){if(isReservedProp(rd))continue;let id=$[rd],ad=t[rd];id!==ad&&rd!==`value`&&nd(e,rd,ad,id,td,ed)}`value`in $&&nd(e,`value`,t.value,$.value,td)}},Td=(e,t,$,td,nd,rd,ad,od,sd)=>{let cd=t.el=e?e.el:id(``),ld=t.anchor=e?e.anchor:id(``),{patchFlag:ud,dynamicChildren:dd,slotScopeIds:fd}=t;fd&&(od=od?od.concat(fd):fd),e==null?(ed(cd,$,td),ed(ld,$,td),xd(t.children||[],$,ld,nd,rd,ad,od,sd)):ud>0&&ud&64&&dd&&e.dynamicChildren?(Cd(e.dynamicChildren,dd,$,nd,rd,ad,od),(t.key!=null||nd&&t===nd.subTree)&&traverseStaticChildren(e,t,!0)):jd(e,t,$,ld,nd,rd,ad,od,sd)},Ed=(e,t,$,ed,td,nd,rd,id,ad)=>{t.slotScopeIds=id,e==null?t.shapeFlag&512?td.ctx.activate(t,$,ed,rd,ad):Dd(t,$,ed,td,nd,rd,ad):Od(e,t,ad)},Dd=(e,t,$,ed,td,nd,rd)=>{let id=e.component=createComponentInstance(e,ed,td);isKeepAlive(e)&&(id.ctx.renderer=Ud),setupComponent(id,!1,rd),id.asyncDep?(td&&td.registerDep(id,kd,rd),e.el||md(null,id.subTree=createVNode(Comment),t,$)):kd(id,e,t,$,td,nd,rd)},Od=(e,t,$)=>{let ed=t.component=e.component;if(shouldUpdateComponent(e,t,$))if(ed.asyncDep&&!ed.asyncResolved){Ad(ed,t,$);return}else ed.next=t,ed.update();else t.el=e.el,ed.vnode=t},kd=(e,t,$,ed,td,nd,rd)=>{let id=()=>{if(e.isMounted){let{next:t,bu:$,u:ed,parent:ad,vnode:od}=e;{let $=locateNonHydratedAsyncRoot(e);if($){t&&(t.el=od.el,Ad(e,t,rd)),$.asyncDep.then(()=>{e.isUnmounted||id()});return}}let sd=t,ld;toggleRecurse(e,!1),t?(t.el=od.el,Ad(e,t,rd)):t=od,$&&invokeArrayFns($),(ld=t.props&&t.props.onVnodeBeforeUpdate)&&invokeVNodeHook(ld,ad,t,od),toggleRecurse(e,!0);let ud=renderComponentRoot(e),dd=e.subTree;e.subTree=ud,fd(dd,ud,cd(dd.el),Bd(dd),e,td,nd),t.el=ud.el,sd===null&&updateHOCHostEl(e,ud.el),ed&&queuePostRenderEffect(ed,td),(ld=t.props&&t.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(ld,ad,t,od),td)}else{let rd,{el:id,props:ad}=t,{bm:od,m:sd,parent:cd,root:ld,type:ud}=e,dd=isAsyncWrapper(t);if(toggleRecurse(e,!1),od&&invokeArrayFns(od),!dd&&(rd=ad&&ad.onVnodeBeforeMount)&&invokeVNodeHook(rd,cd,t),toggleRecurse(e,!0),id&&Gd){let t=()=>{e.subTree=renderComponentRoot(e),Gd(id,e.subTree,e,td,null)};dd&&ud.__asyncHydrate?ud.__asyncHydrate(id,e,t):t()}else{ld.ce&&ld.ce._injectChildStyle(ud);let rd=e.subTree=renderComponentRoot(e);fd(null,rd,$,ed,e,td,nd),t.el=rd.el}if(sd&&queuePostRenderEffect(sd,td),!dd&&(rd=ad&&ad.onVnodeMounted)){let e=t;queuePostRenderEffect(()=>invokeVNodeHook(rd,cd,e),td)}(t.shapeFlag&256||cd&&isAsyncWrapper(cd.vnode)&&cd.vnode.shapeFlag&256)&&e.a&&queuePostRenderEffect(e.a,td),e.isMounted=!0,t=$=ed=null}};e.scope.on();let ad=e.effect=new ReactiveEffect(id);e.scope.off();let od=e.update=ad.run.bind(ad),sd=e.job=ad.runIfDirty.bind(ad);sd.i=e,sd.id=e.uid,ad.scheduler=()=>queueJob(sd),toggleRecurse(e,!0),od()},Ad=(e,t,$)=>{t.component=e;let ed=e.vnode.props;e.vnode=t,e.next=null,updateProps(e,t.props,ed,$),updateSlots(e,t.children,$),pauseTracking(),flushPreFlushCbs(e),resetTracking()},jd=(e,t,$,ed,td,nd,rd,id,ad=!1)=>{let od=e&&e.children,cd=e?e.shapeFlag:0,ld=t.children,{patchFlag:ud,shapeFlag:dd}=t;if(ud>0){if(ud&128){Nd(od,ld,$,ed,td,nd,rd,id,ad);return}else if(ud&256){Md(od,ld,$,ed,td,nd,rd,id,ad);return}}dd&8?(cd&16&&zd(od,td,nd),ld!==od&&sd($,ld)):cd&16?dd&16?Nd(od,ld,$,ed,td,nd,rd,id,ad):zd(od,td,nd,!0):(cd&8&&sd($,``),dd&16&&xd(ld,$,ed,td,nd,rd,id,ad))},Md=(e,t,$,ed,td,nd,rd,id,ad)=>{e||=EMPTY_ARR,t||=EMPTY_ARR;let od=e.length,sd=t.length,cd=Math.min(od,sd),ld;for(ld=0;ld<cd;ld++){let ed=t[ld]=ad?cloneIfMounted(t[ld]):normalizeVNode(t[ld]);fd(e[ld],ed,$,null,td,nd,rd,id,ad)}od>sd?zd(e,td,nd,!0,!1,cd):xd(t,$,ed,td,nd,rd,id,ad,cd)},Nd=(e,t,$,ed,td,nd,rd,id,ad)=>{let od=0,sd=t.length,cd=e.length-1,ld=sd-1;for(;od<=cd&&od<=ld;){let ed=e[od],sd=t[od]=ad?cloneIfMounted(t[od]):normalizeVNode(t[od]);if(isSameVNodeType(ed,sd))fd(ed,sd,$,null,td,nd,rd,id,ad);else break;od++}for(;od<=cd&&od<=ld;){let ed=e[cd],od=t[ld]=ad?cloneIfMounted(t[ld]):normalizeVNode(t[ld]);if(isSameVNodeType(ed,od))fd(ed,od,$,null,td,nd,rd,id,ad);else break;cd--,ld--}if(od>cd){if(od<=ld){let e=ld+1,cd=e<sd?t[e].el:ed;for(;od<=ld;)fd(null,t[od]=ad?cloneIfMounted(t[od]):normalizeVNode(t[od]),$,cd,td,nd,rd,id,ad),od++}}else if(od>ld)for(;od<=cd;)Fd(e[od],td,nd,!0),od++;else{let ud=od,dd=od,pd=new Map;for(od=dd;od<=ld;od++){let e=t[od]=ad?cloneIfMounted(t[od]):normalizeVNode(t[od]);e.key!=null&&pd.set(e.key,od)}let md,hd=0,gd=ld-dd+1,_d=!1,vd=0,yd=Array(gd);for(od=0;od<gd;od++)yd[od]=0;for(od=ud;od<=cd;od++){let ed=e[od];if(hd>=gd){Fd(ed,td,nd,!0);continue}let sd;if(ed.key!=null)sd=pd.get(ed.key);else for(md=dd;md<=ld;md++)if(yd[md-dd]===0&&isSameVNodeType(ed,t[md])){sd=md;break}sd===void 0?Fd(ed,td,nd,!0):(yd[sd-dd]=od+1,sd>=vd?vd=sd:_d=!0,fd(ed,t[sd],$,null,td,nd,rd,id,ad),hd++)}let bd=_d?getSequence(yd):EMPTY_ARR;for(md=bd.length-1,od=gd-1;od>=0;od--){let e=dd+od,cd=t[e],ld=e+1<sd?t[e+1].el:ed;yd[od]===0?fd(null,cd,$,ld,td,nd,rd,id,ad):_d&&(md<0||od!==bd[md]?Pd(cd,$,ld,2):md--)}}},Pd=(e,t,$,td,nd=null)=>{let{el:rd,type:id,transition:ad,children:od,shapeFlag:sd}=e;if(sd&6){Pd(e.component.subTree,t,$,td);return}if(sd&128){e.suspense.move(t,$,td);return}if(sd&64){id.move(e,t,$,Ud);return}if(id===Fragment){ed(rd,t,$);for(let e=0;e<od.length;e++)Pd(od[e],t,$,td);ed(e.anchor,t,$);return}if(id===Static){gd(e,t,$);return}if(td!==2&&sd&1&&ad)if(td===0)ad.beforeEnter(rd),ed(rd,t,$),queuePostRenderEffect(()=>ad.enter(rd),nd);else{let{leave:e,delayLeave:td,afterLeave:nd}=ad,id=()=>ed(rd,t,$),od=()=>{e(rd,()=>{id(),nd&&nd()})};td?td(rd,id,od):od()}else ed(rd,t,$)},Fd=(e,t,$,ed=!1,td=!1)=>{let{type:nd,props:rd,ref:id,children:ad,dynamicChildren:od,shapeFlag:sd,patchFlag:cd,dirs:ld,cacheIndex:ud}=e;if(cd===-2&&(td=!1),id!=null&&setRef(id,null,$,e,!0),ud!=null&&(t.renderCache[ud]=void 0),sd&256){t.ctx.deactivate(e);return}let dd=sd&1&&ld,fd=!isAsyncWrapper(e),pd;if(fd&&(pd=rd&&rd.onVnodeBeforeUnmount)&&invokeVNodeHook(pd,t,e),sd&6)Rd(e.component,$,ed);else{if(sd&128){e.suspense.unmount($,ed);return}dd&&invokeDirectiveHook(e,null,t,`beforeUnmount`),sd&64?e.type.remove(e,t,$,Ud,ed):od&&!od.hasOnce&&(nd!==Fragment||cd>0&&cd&64)?zd(od,t,$,!1,!0):(nd===Fragment&&cd&384||!td&&sd&16)&&zd(ad,t,$),ed&&Id(e)}(fd&&(pd=rd&&rd.onVnodeUnmounted)||dd)&&queuePostRenderEffect(()=>{pd&&invokeVNodeHook(pd,t,e),dd&&invokeDirectiveHook(e,null,t,`unmounted`)},$)},Id=e=>{let{type:t,el:$,anchor:ed,transition:nd}=e;if(t===Fragment){Ld($,ed);return}if(t===Static){_d(e);return}let rd=()=>{td($),nd&&!nd.persisted&&nd.afterLeave&&nd.afterLeave()};if(e.shapeFlag&1&&nd&&!nd.persisted){let{leave:t,delayLeave:ed}=nd,td=()=>t($,rd);ed?ed(e.el,rd,td):td()}else rd()},Ld=(e,t)=>{let $;for(;e!==t;)$=ld(e),td(e),e=$;td(t)},Rd=(e,t,$)=>{let{bum:ed,scope:td,job:nd,subTree:rd,um:id,m:ad,a:od}=e;invalidateMount(ad),invalidateMount(od),ed&&invokeArrayFns(ed),td.stop(),nd&&(nd.flags|=8,Fd(rd,e,t,$)),id&&queuePostRenderEffect(id,t),queuePostRenderEffect(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,t.deps===0&&t.resolve())},zd=(e,t,$,ed=!1,td=!1,nd=0)=>{for(let rd=nd;rd<e.length;rd++)Fd(e[rd],t,$,ed,td)},Bd=e=>{if(e.shapeFlag&6)return Bd(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=ld(e.anchor||e.el),$=t&&t[TeleportEndKey];return $?ld($):t},Vd=!1,Hd=(e,t,$)=>{e==null?t._vnode&&Fd(t._vnode,null,null,!0):fd(t._vnode||null,e,t,null,null,null,$),t._vnode=e,Vd||=(Vd=!0,flushPreFlushCbs(),flushPostFlushCbs(),!1)},Ud={p:fd,um:Fd,m:Pd,r:Id,mt:Dd,mc:xd,pc:jd,pbc:Cd,n:Bd,o:e},Wd,Gd;return t&&([Wd,Gd]=t(Ud)),{render:Hd,hydrate:Wd,createApp:createAppAPI(Hd,Wd)}}function resolveChildrenNamespace({type:e,props:t},$){return $===`svg`&&e===`foreignObject`||$===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:$}function toggleRecurse({effect:e,job:t},$){$?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function needTransition(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(e,t,$=!1){let ed=e.children,td=t.children;if(isArray(ed)&&isArray(td))for(let e=0;e<ed.length;e++){let t=ed[e],nd=td[e];nd.shapeFlag&1&&!nd.dynamicChildren&&((nd.patchFlag<=0||nd.patchFlag===32)&&(nd=td[e]=cloneIfMounted(td[e]),nd.el=t.el),!$&&nd.patchFlag!==-2&&traverseStaticChildren(t,nd)),nd.type===Text&&(nd.el=t.el)}}function getSequence(e){let t=e.slice(),$=[0],ed,td,nd,rd,id,ad=e.length;for(ed=0;ed<ad;ed++){let ad=e[ed];if(ad!==0){if(td=$[$.length-1],e[td]<ad){t[ed]=td,$.push(ed);continue}for(nd=0,rd=$.length-1;nd<rd;)id=nd+rd>>1,e[$[id]]<ad?nd=id+1:rd=id;ad<e[$[nd]]&&(nd>0&&(t[ed]=$[nd-1]),$[nd]=ed)}}for(nd=$.length,rd=$[nd-1];nd-- >0;)$[nd]=rd,rd=t[rd];return $}function locateNonHydratedAsyncRoot(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}function invalidateMount(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}var ssrContextKey=Symbol.for(`v-scx`),useSSRContext=()=>inject(ssrContextKey);function watchEffect(e,t){return doWatch(e,null,t)}function watchPostEffect(e,t){return doWatch(e,null,{flush:`post`})}function watchSyncEffect(e,t){return doWatch(e,null,{flush:`sync`})}function watch(e,t,$){return doWatch(e,t,$)}function doWatch(e,t,$=EMPTY_OBJ){let{immediate:ed,deep:td,flush:nd,once:rd}=$,id=extend$2({},$),ad=t&&ed||!t&&nd!==`post`,od;if(isInSSRComponentSetup){if(nd===`sync`){let e=useSSRContext();od=e.__watcherHandles||=[]}else if(!ad){let e=()=>{};return e.stop=NOOP,e.resume=NOOP,e.pause=NOOP,e}}let sd=currentInstance;id.call=(e,t,$)=>callWithAsyncErrorHandling(e,sd,t,$);let cd=!1;nd===`post`?id.scheduler=e=>{queuePostRenderEffect(e,sd&&sd.suspense)}:nd!==`sync`&&(cd=!0,id.scheduler=(e,t)=>{t?e():queueJob(e)}),id.augmentJob=e=>{t&&(e.flags|=4),cd&&(e.flags|=2,sd&&(e.id=sd.uid,e.i=sd))};let ld=watch$1(e,t,id);return isInSSRComponentSetup&&(od?od.push(ld):ad&&ld()),ld}function instanceWatch(e,t,$){let ed=this.proxy,td=isString(e)?e.includes(`.`)?createPathGetter(ed,e):()=>ed[e]:e.bind(ed,ed),nd;isFunction(t)?nd=t:(nd=t.handler,$=t);let rd=setCurrentInstance(this),id=doWatch(td,nd.bind(ed),$);return rd(),id}function createPathGetter(e,t){let $=t.split(`.`);return()=>{let t=e;for(let e=0;e<$.length&&t;e++)t=t[$[e]];return t}}function useModel(e,t,$=EMPTY_OBJ){let ed=getCurrentInstance(),td=camelize(t),nd=hyphenate(t),rd=getModelModifiers(e,td),id=customRef((rd,id)=>{let ad,od=EMPTY_OBJ,sd;return watchSyncEffect(()=>{let t=e[td];hasChanged(ad,t)&&(ad=t,id())}),{get(){return rd(),$.get?$.get(ad):ad},set(e){let rd=$.set?$.set(e):e;if(!hasChanged(rd,ad)&&!(od!==EMPTY_OBJ&&hasChanged(e,od)))return;let cd=ed.vnode.props;cd&&(t in cd||td in cd||nd in cd)&&(`onUpdate:${t}`in cd||`onUpdate:${td}`in cd||`onUpdate:${nd}`in cd)||(ad=e,id()),ed.emit(`update:${t}`,rd),hasChanged(e,rd)&&hasChanged(e,od)&&!hasChanged(rd,sd)&&id(),od=e,sd=rd}}});return id[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?rd||EMPTY_OBJ:id,done:!1}:{done:!0}}}},id}var getModelModifiers=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${camelize(t)}Modifiers`]||e[`${hyphenate(t)}Modifiers`];function emit(e,t,...$){if(e.isUnmounted)return;let ed=e.vnode.props||EMPTY_OBJ,td=$,nd=t.startsWith(`update:`),rd=nd&&getModelModifiers(ed,t.slice(7));rd&&(rd.trim&&(td=$.map(e=>isString(e)?e.trim():e)),rd.number&&(td=$.map(looseToNumber)));let id,ad=ed[id=toHandlerKey(t)]||ed[id=toHandlerKey(camelize(t))];!ad&&nd&&(ad=ed[id=toHandlerKey(hyphenate(t))]),ad&&callWithAsyncErrorHandling(ad,e,6,td);let od=ed[id+`Once`];if(od){if(!e.emitted)e.emitted={};else if(e.emitted[id])return;e.emitted[id]=!0,callWithAsyncErrorHandling(od,e,6,td)}}function normalizeEmitsOptions(e,t,$=!1){let ed=t.emitsCache,td=ed.get(e);if(td!==void 0)return td;let nd=e.emits,rd={},id=!1;if(!isFunction(e)){let ed=e=>{let $=normalizeEmitsOptions(e,t,!0);$&&(id=!0,extend$2(rd,$))};!$&&t.mixins.length&&t.mixins.forEach(ed),e.extends&&ed(e.extends),e.mixins&&e.mixins.forEach(ed)}return!nd&&!id?(isObject$5(e)&&ed.set(e,null),null):(isArray(nd)?nd.forEach(e=>rd[e]=null):extend$2(rd,nd),isObject$5(e)&&ed.set(e,rd),rd)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,``),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}function renderComponentRoot(e){let{type:t,vnode:$,proxy:ed,withProxy:td,propsOptions:[nd],slots:rd,attrs:id,emit:ad,render:od,renderCache:sd,props:cd,data:ld,setupState:ud,ctx:dd,inheritAttrs:fd}=e,pd=setCurrentRenderingInstance(e),md,hd;try{if($.shapeFlag&4){let e=td||ed,t=e;md=normalizeVNode(od.call(t,e,sd,cd,ud,ld,dd)),hd=id}else{let e=t;md=normalizeVNode(e.length>1?e(cd,{attrs:id,slots:rd,emit:ad}):e(cd,null)),hd=t.props?id:getFunctionalFallthrough(id)}}catch(t){blockStack.length=0,handleError(t,e,1),md=createVNode(Comment)}let gd=md;if(hd&&fd!==!1){let e=Object.keys(hd),{shapeFlag:t}=gd;e.length&&t&7&&(nd&&e.some(isModelListener)&&(hd=filterModelListeners(hd,nd)),gd=cloneVNode(gd,hd,!1,!0))}return $.dirs&&(gd=cloneVNode(gd,null,!1,!0),gd.dirs=gd.dirs?gd.dirs.concat($.dirs):$.dirs),$.transition&&setTransitionHooks(gd,$.transition),md=gd,setCurrentRenderingInstance(pd),md}function filterSingleRoot(e,t=!0){let $;for(let t=0;t<e.length;t++){let ed=e[t];if(isVNode(ed)){if(ed.type!==Comment||ed.children===`v-if`){if($)return;$=ed}}else return}return $}var getFunctionalFallthrough=e=>{let t;for(let $ in e)($===`class`||$===`style`||isOn($))&&((t||={})[$]=e[$]);return t},filterModelListeners=(e,t)=>{let $={};for(let ed in e)(!isModelListener(ed)||!(ed.slice(9)in t))&&($[ed]=e[ed]);return $};function shouldUpdateComponent(e,t,$){let{props:ed,children:td,component:nd}=e,{props:rd,children:id,patchFlag:ad}=t,od=nd.emitsOptions;if(t.dirs||t.transition)return!0;if($&&ad>=0){if(ad&1024)return!0;if(ad&16)return ed?hasPropsChanged(ed,rd,od):!!rd;if(ad&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let $=e[t];if(rd[$]!==ed[$]&&!isEmitListener(od,$))return!0}}}else return(td||id)&&(!id||!id.$stable)?!0:ed===rd?!1:ed?rd?hasPropsChanged(ed,rd,od):!0:!!rd;return!1}function hasPropsChanged(e,t,$){let ed=Object.keys(t);if(ed.length!==Object.keys(e).length)return!0;for(let td=0;td<ed.length;td++){let nd=ed[td];if(t[nd]!==e[nd]&&!isEmitListener($,nd))return!0}return!1}function updateHOCHostEl({vnode:e,parent:t},$){for(;t;){let ed=t.subTree;if(ed.suspense&&ed.suspense.activeBranch===e&&(ed.el=e.el),ed===e)(e=t.vnode).el=$,t=t.parent;else break}}var isSuspense=e=>e.__isSuspense,suspenseId=0,Suspense={name:`Suspense`,__isSuspense:!0,process(e,t,$,ed,td,nd,rd,id,ad,od){if(e==null)mountSuspense(t,$,ed,td,nd,rd,id,ad,od);else{if(nd&&nd.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}patchSuspense(e,t,$,ed,td,rd,id,ad,od)}},hydrate:hydrateSuspense,normalize:normalizeSuspenseChildren};function triggerEvent(e,t){let $=e.props&&e.props[t];isFunction($)&&$()}function mountSuspense(e,t,$,ed,td,nd,rd,id,ad){let{p:od,o:{createElement:sd}}=ad,cd=sd(`div`),ld=e.suspense=createSuspenseBoundary(e,td,ed,t,cd,$,nd,rd,id,ad);od(null,ld.pendingBranch=e.ssContent,cd,null,ed,ld,nd,rd),ld.deps>0?(triggerEvent(e,`onPending`),triggerEvent(e,`onFallback`),od(null,e.ssFallback,t,$,ed,null,nd,rd),setActiveBranch(ld,e.ssFallback)):ld.resolve(!1,!0)}function patchSuspense(e,t,$,ed,td,nd,rd,id,{p:ad,um:od,o:{createElement:sd}}){let cd=t.suspense=e.suspense;cd.vnode=t,t.el=e.el;let ld=t.ssContent,ud=t.ssFallback,{activeBranch:dd,pendingBranch:fd,isInFallback:pd,isHydrating:md}=cd;if(fd)cd.pendingBranch=ld,isSameVNodeType(ld,fd)?(ad(fd,ld,cd.hiddenContainer,null,td,cd,nd,rd,id),cd.deps<=0?cd.resolve():pd&&(md||(ad(dd,ud,$,ed,td,null,nd,rd,id),setActiveBranch(cd,ud)))):(cd.pendingId=suspenseId++,md?(cd.isHydrating=!1,cd.activeBranch=fd):od(fd,td,cd),cd.deps=0,cd.effects.length=0,cd.hiddenContainer=sd(`div`),pd?(ad(null,ld,cd.hiddenContainer,null,td,cd,nd,rd,id),cd.deps<=0?cd.resolve():(ad(dd,ud,$,ed,td,null,nd,rd,id),setActiveBranch(cd,ud))):dd&&isSameVNodeType(ld,dd)?(ad(dd,ld,$,ed,td,cd,nd,rd,id),cd.resolve(!0)):(ad(null,ld,cd.hiddenContainer,null,td,cd,nd,rd,id),cd.deps<=0&&cd.resolve()));else if(dd&&isSameVNodeType(ld,dd))ad(dd,ld,$,ed,td,cd,nd,rd,id),setActiveBranch(cd,ld);else if(triggerEvent(t,`onPending`),cd.pendingBranch=ld,ld.shapeFlag&512?cd.pendingId=ld.component.suspenseId:cd.pendingId=suspenseId++,ad(null,ld,cd.hiddenContainer,null,td,cd,nd,rd,id),cd.deps<=0)cd.resolve();else{let{timeout:e,pendingId:t}=cd;e>0?setTimeout(()=>{cd.pendingId===t&&cd.fallback(ud)},e):e===0&&cd.fallback(ud)}}function createSuspenseBoundary(e,t,$,ed,td,nd,rd,id,ad,od,sd=!1){let{p:cd,m:ld,um:ud,n:dd,o:{parentNode:fd,remove:pd}}=od,md,hd=isVNodeSuspensible(e);hd&&t&&t.pendingBranch&&(md=t.pendingId,t.deps++);let gd=e.props?toNumber(e.props.timeout):void 0,_d=nd,vd={vnode:e,parent:t,parentComponent:$,namespace:rd,container:ed,hiddenContainer:td,deps:0,pendingId:suspenseId++,timeout:typeof gd==`number`?gd:-1,activeBranch:null,pendingBranch:null,isInFallback:!sd,isHydrating:sd,isUnmounted:!1,effects:[],resolve(e=!1,$=!1){let{vnode:ed,activeBranch:td,pendingBranch:rd,pendingId:id,effects:ad,parentComponent:od,container:sd}=vd,cd=!1;vd.isHydrating?vd.isHydrating=!1:e||(cd=td&&rd.transition&&rd.transition.mode===`out-in`,cd&&(td.transition.afterLeave=()=>{id===vd.pendingId&&(ld(rd,sd,nd===_d?dd(td):nd,0),queuePostFlushCb(ad))}),td&&(fd(td.el)===sd&&(nd=dd(td)),ud(td,od,vd,!0)),cd||ld(rd,sd,nd,0)),setActiveBranch(vd,rd),vd.pendingBranch=null,vd.isInFallback=!1;let pd=vd.parent,gd=!1;for(;pd;){if(pd.pendingBranch){pd.effects.push(...ad),gd=!0;break}pd=pd.parent}!gd&&!cd&&queuePostFlushCb(ad),vd.effects=[],hd&&t&&t.pendingBranch&&md===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),triggerEvent(ed,`onResolve`)},fallback(e){if(!vd.pendingBranch)return;let{vnode:t,activeBranch:$,parentComponent:ed,container:td,namespace:nd}=vd;triggerEvent(t,`onFallback`);let rd=dd($),od=()=>{vd.isInFallback&&(cd(null,e,td,rd,ed,null,nd,id,ad),setActiveBranch(vd,e))},sd=e.transition&&e.transition.mode===`out-in`;sd&&($.transition.afterLeave=od),vd.isInFallback=!0,ud($,ed,null,!0),sd||od()},move(e,t,$){vd.activeBranch&&ld(vd.activeBranch,e,t,$),vd.container=e},next(){return vd.activeBranch&&dd(vd.activeBranch)},registerDep(e,t,$){let ed=!!vd.pendingBranch;ed&&vd.deps++;let td=e.vnode.el;e.asyncDep.catch(t=>{handleError(t,e,0)}).then(nd=>{if(e.isUnmounted||vd.isUnmounted||vd.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:id}=e;handleSetupResult(e,nd,!1),td&&(id.el=td);let ad=!td&&e.subTree.el;t(e,id,fd(td||e.subTree.el),td?null:dd(e.subTree),vd,rd,$),ad&&pd(ad),updateHOCHostEl(e,id.el),ed&&--vd.deps===0&&vd.resolve()})},unmount(e,t){vd.isUnmounted=!0,vd.activeBranch&&ud(vd.activeBranch,$,e,t),vd.pendingBranch&&ud(vd.pendingBranch,$,e,t)}};return vd}function hydrateSuspense(e,t,$,ed,td,nd,rd,id,ad){let od=t.suspense=createSuspenseBoundary(t,ed,$,e.parentNode,document.createElement(`div`),null,td,nd,rd,id,!0),sd=ad(e,od.pendingBranch=t.ssContent,$,od,nd,rd);return od.deps===0&&od.resolve(!1,!0),sd}function normalizeSuspenseChildren(e){let{shapeFlag:t,children:$}=e,ed=t&32;e.ssContent=normalizeSuspenseSlot(ed?$.default:$),e.ssFallback=ed?normalizeSuspenseSlot($.fallback):createVNode(Comment)}function normalizeSuspenseSlot(e){let t;if(isFunction(e)){let $=isBlockTreeEnabled&&e._c;$&&(e._d=!1,openBlock()),e=e(),$&&(e._d=!0,t=currentBlock,closeBlock())}return isArray(e)&&(e=filterSingleRoot(e)),e=normalizeVNode(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function setActiveBranch(e,t){e.activeBranch=t;let{vnode:$,parentComponent:ed}=e,td=t.el;for(;!td&&t.component;)t=t.component.subTree,td=t.el;$.el=td,ed&&ed.subTree===$&&(ed.vnode.el=td,updateHOCHostEl(ed,td))}function isVNodeSuspensible(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var Fragment=Symbol.for(`v-fgt`),Text=Symbol.for(`v-txt`),Comment=Symbol.for(`v-cmt`),Static=Symbol.for(`v-stc`),blockStack=[],currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e,e<0&¤tBlock&&(currentBlock.hasOnce=!0)}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),e}function createElementBlock(e,t,$,ed,td,nd){return setupBlock(createBaseVNode(e,t,$,ed,td,nd,!0))}function createBlock(e,t,$,ed,td){return setupBlock(createVNode(e,t,$,ed,td,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}function transformVNodeArgs(e){}var normalizeKey=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:t,ref_for:$})=>(typeof e==`number`&&(e=``+e),e==null?null:isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!$}:e);function createBaseVNode(e,t=null,$=null,ed=0,td=null,nd=e===Fragment?0:1,rd=!1,id=!1){let ad={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:$,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:nd,patchFlag:ed,dynamicProps:td,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return id?(normalizeChildren(ad,$),nd&128&&e.normalize(ad)):$&&(ad.shapeFlag|=isString($)?8:16),isBlockTreeEnabled>0&&!rd&¤tBlock&&(ad.patchFlag>0||nd&6)&&ad.patchFlag!==32&¤tBlock.push(ad),ad}var createVNode=_createVNode;function _createVNode(e,t=null,$=null,ed=0,td=null,nd=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){let ed=cloneVNode(e,t,!0);return $&&normalizeChildren(ed,$),isBlockTreeEnabled>0&&!nd&¤tBlock&&(ed.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=ed:currentBlock.push(ed)),ed.patchFlag=-2,ed}if(isClassComponent$1(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:e,style:$}=t;e&&!isString(e)&&(t.class=normalizeClass(e)),isObject$5($)&&(isProxy($)&&!isArray($)&&($=extend$2({},$)),t.style=normalizeStyle($))}let rd=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$5(e)?4:isFunction(e)?2:0;return createBaseVNode(e,t,$,ed,td,rd,nd,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend$2({},e):e:null}function cloneVNode(e,t,$=!1,ed=!1){let{props:td,ref:nd,patchFlag:rd,children:id,transition:ad}=e,od=t?mergeProps(td||{},t):td,sd={__v_isVNode:!0,__v_skip:!0,type:e.type,props:od,key:od&&normalizeKey(od),ref:t&&t.ref?$&&nd?isArray(nd)?nd.concat(normalizeRef(t)):[nd,normalizeRef(t)]:normalizeRef(t):nd,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:id,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?rd===-1?16:rd|16:rd,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:ad,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return ad&&ed&&setTransitionHooks(sd,ad.clone(sd)),sd}function createTextVNode(e=` `,t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){let $=createVNode(Static,null,e);return $.staticCount=t,$}function createCommentVNode(e=``,t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e==`boolean`?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):isVNode(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let $=0,{shapeFlag:ed}=e;if(t==null)t=null;else if(isArray(t))$=16;else if(typeof t==`object`)if(ed&65){let $=t.default;$&&($._c&&($._d=!1),normalizeChildren(e,$()),$._c&&($._d=!0));return}else{$=32;let ed=t._;!ed&&!isInternalObject(t)?t._ctx=currentRenderingInstance:ed===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},$=32):(t=String(t),ed&64?($=16,t=[createTextVNode(t)]):$=8);e.children=t,e.shapeFlag|=$}function mergeProps(...e){let t={};for(let $=0;$<e.length;$++){let ed=e[$];for(let e in ed)if(e===`class`)t.class!==ed.class&&(t.class=normalizeClass([t.class,ed.class]));else if(e===`style`)t.style=normalizeStyle([t.style,ed.style]);else if(isOn(e)){let $=t[e],td=ed[e];td&&$!==td&&!(isArray($)&&$.includes(td))&&(t[e]=$?[].concat($,td):td)}else e!==``&&(t[e]=ed[e])}return t}function invokeVNodeHook(e,t,$,ed=null){callWithAsyncErrorHandling(e,t,7,[$,ed])}var emptyAppContext=createAppContext(),uid=0;function createComponentInstance(e,t,$){let ed=e.type,td=(t?t.appContext:e.appContext)||emptyAppContext,nd={uid:uid++,vnode:e,type:ed,parent:t,appContext:td,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(td.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(ed,td),emitsOptions:normalizeEmitsOptions(ed,td),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:ed.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:$,suspenseId:$?$.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
27sp:null};return nd.ctx={_:nd},nd.root=t?t.root:nd,nd.emit=emit.bind(null,nd),e.ce&&e.ce(nd),nd}var currentInstance=null,getCurrentInstance=()=>currentInstance||currentRenderingInstance,internalSetCurrentInstance,setInSSRSetupState;{let e=getGlobalThis(),t=(t,$)=>{let ed;return(ed=e[t])||(ed=e[t]=[]),ed.push($),e=>{ed.length>1?ed.forEach(t=>t(e)):ed[0](e)}};internalSetCurrentInstance=t(`__VUE_INSTANCE_SETTERS__`,e=>currentInstance=e),setInSSRSetupState=t(`__VUE_SSR_SETTERS__`,e=>isInSSRComponentSetup=e)}var setCurrentInstance=e=>{let t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(e){return e.vnode.shapeFlag&4}var isInSSRComponentSetup=!1;function setupComponent(e,t=!1,$=!1){t&&setInSSRSetupState(t);let{props:ed,children:td}=e.vnode,nd=isStatefulComponent(e);initProps(e,ed,nd,t),initSlots(e,td,$);let rd=nd?setupStatefulComponent(e,t):void 0;return t&&setInSSRSetupState(!1),rd}function setupStatefulComponent(e,t){let $=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,PublicInstanceProxyHandlers);let{setup:ed}=$;if(ed){pauseTracking();let $=e.setupContext=ed.length>1?createSetupContext(e):null,td=setCurrentInstance(e),nd=callWithErrorHandling(ed,e,0,[e.props,$]),rd=isPromise$2(nd);if(resetTracking(),td(),(rd||e.sp)&&!isAsyncWrapper(e)&&markAsyncBoundary(e),rd){if(nd.then(unsetCurrentInstance,unsetCurrentInstance),t)return nd.then($=>{handleSetupResult(e,$,t)}).catch(t=>{handleError(t,e,0)});e.asyncDep=nd}else handleSetupResult(e,nd,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,$){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$5(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,$)}var compile$1,installWithProxy;function registerRuntimeCompiler(e){compile$1=e,installWithProxy=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}var isRuntimeOnly=()=>!compile$1;function finishComponentSetup(e,t,$){let ed=e.type;if(!e.render){if(!t&&compile$1&&!ed.render){let t=ed.template||resolveMergedOptions(e).template;if(t){let{isCustomElement:$,compilerOptions:td}=e.appContext.config,{delimiters:nd,compilerOptions:rd}=ed,id=extend$2(extend$2({isCustomElement:$,delimiters:nd},td),rd);ed.render=compile$1(t,id)}}e.render=ed.render||NOOP,installWithProxy&&installWithProxy(e)}{let t=setCurrentInstance(e);pauseTracking();try{applyOptions(e)}finally{resetTracking(),t()}}}var attrsProxyHandlers={get(e,t){return track(e,`get`,``),e[t]}};function createSetupContext(e){return{attrs:new Proxy(e.attrs,attrsProxyHandlers),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function getComponentPublicInstance(e){return e.exposed?e.exposeProxy||=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,$){if($ in t)return t[$];if($ in publicPropertiesMap)return publicPropertiesMap[$](e)},has(e,t){return t in e||t in publicPropertiesMap}}):e.proxy}function getComponentName(e,t=!0){return isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function isClassComponent$1(e){return isFunction(e)&&`__vccOpts`in e}var computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function h(e,t,$){let ed=arguments.length;return ed===2?isObject$5(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(ed>3?$=Array.prototype.slice.call(arguments,2):ed===3&&isVNode($)&&($=[$]),createVNode(e,t,$))}function initCustomFormatter(){return;function e(t,$,ed){let td=t[ed];if(isArray(td)&&td.includes($)||isObject$5(td)&&$ in td||t.extends&&e(t.extends,$,ed)||t.mixins&&t.mixins.some(t=>e(t,$,ed)))return!0}}function withMemo(e,t,$,ed){let td=$[ed];if(td&&isMemoSame(td,e))return td;let nd=t();return nd.memo=e.slice(),nd.cacheIndex=ed,$[ed]=nd}function isMemoSame(e,t){let $=e.memo;if($.length!=t.length)return!1;for(let e=0;e<$.length;e++)if(hasChanged($[e],t[e]))return!1;return isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),!0}var version$9=`3.5.12`,warn=NOOP,ErrorTypeStrings=ErrorTypeStrings$1,devtools=devtools$1,setDevtoolsHook=setDevtoolsHook$1,ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode,getComponentPublicInstance,ensureValidVNode,pushWarningContext,popWarningContext},resolveFilter=null,compatUtils=null,DeprecationTypes=null,policy=void 0,tt$1=typeof window<`u`&&window.trustedTypes;if(tt$1)try{policy=tt$1.createPolicy(`vue`,{createHTML:e=>e})}catch{}var unsafeToTrustedHTML=policy?e=>policy.createHTML(e):e=>e,svgNS=`http://www.w3.org/2000/svg`,mathmlNS=`http://www.w3.org/1998/Math/MathML`,doc=typeof document<`u`?document:null,templateContainer=doc&&doc.createElement(`template`),nodeOps={insert:(e,t,$)=>
vendor: 11,157 bytes, line 27
27{t.insertBefore(e,$||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,$,ed)=>{let td=t===`svg`?doc.createElementNS(svgNS,e):t===`mathml`?doc.createElementNS(mathmlNS,e):$?doc.createElement(e,{is:$}):doc.createElement(e);return e===`select`&&ed&&ed.multiple!=null&&td.setAttribute(`multiple`,ed.multiple),td},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,$,ed,td,nd){let rd=$?$.previousSibling:t.lastChild;if(td&&(td===nd||td.nextSibling))for(;t.insertBefore(td.cloneNode(!0),$),!(td===nd||!(td=td.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(ed===`svg`?`<svg>${e}</svg>`:ed===`mathml`?`<math>${e}</math>`:e);let td=templateContainer.content;if(ed===`svg`||ed===`mathml`){let e=td.firstChild;for(;e.firstChild;)td.appendChild(e.firstChild);td.removeChild(e)}t.insertBefore(td,$)}return[rd?rd.nextSibling:t.firstChild,$?$.previousSibling:t.lastChild]}},TRANSITION=`transition`,ANIMATION=`animation`,vtcKey=Symbol(`_vtc`),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=e=>(e.displayName=`Transition`,e.props=TransitionPropsValidators,e),Transition=decorate$1((e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t)),callHook=(e,t=[])=>{isArray(e)?e.forEach(e=>e(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray(e)?e.some(e=>e.length>1):e.length>1:!1;function resolveTransitionProps(e){let t={};for(let $ in e)$ in DOMTransitionPropsValidators||(t[$]=e[$]);if(e.css===!1)return t;let{name:$=`v`,type:ed,duration:td,enterFromClass:nd=`${$}-enter-from`,enterActiveClass:rd=`${$}-enter-active`,enterToClass:id=`${$}-enter-to`,appearFromClass:ad=nd,appearActiveClass:od=rd,appearToClass:sd=id,leaveFromClass:cd=`${$}-leave-from`,leaveActiveClass:ld=`${$}-leave-active`,leaveToClass:ud=`${$}-leave-to`}=e,dd=normalizeDuration(td),fd=dd&&dd[0],pd=dd&&dd[1],{onBeforeEnter:md,onEnter:hd,onEnterCancelled:gd,onLeave:_d,onLeaveCancelled:vd,onBeforeAppear:yd=md,onAppear:bd=hd,onAppearCancelled:xd=gd}=t,Sd=(e,t,$)=>{removeTransitionClass(e,t?sd:id),removeTransitionClass(e,t?od:rd),$&&$()},Cd=(e,t)=>{e._isLeaving=!1,removeTransitionClass(e,cd),removeTransitionClass(e,ud),removeTransitionClass(e,ld),t&&t()},wd=e=>(t,$)=>{let td=e?bd:hd,rd=()=>Sd(t,e,$);callHook(td,[t,rd]),nextFrame(()=>{removeTransitionClass(t,e?ad:nd),addTransitionClass(t,e?sd:id),hasExplicitCallback(td)||whenTransitionEnds(t,ed,fd,rd)})};return extend$2(t,{onBeforeEnter(e){callHook(md,[e]),addTransitionClass(e,nd),addTransitionClass(e,rd)},onBeforeAppear(e){callHook(yd,[e]),addTransitionClass(e,ad),addTransitionClass(e,od)},onEnter:wd(!1),onAppear:wd(!0),onLeave(e,t){e._isLeaving=!0;let $=()=>Cd(e,t);addTransitionClass(e,cd),addTransitionClass(e,ld),forceReflow(),nextFrame(()=>{e._isLeaving&&(removeTransitionClass(e,cd),addTransitionClass(e,ud),hasExplicitCallback(_d)||whenTransitionEnds(e,ed,pd,$))}),callHook(_d,[e,$])},onEnterCancelled(e){Sd(e,!1),callHook(gd,[e])},onAppearCancelled(e){Sd(e,!0),callHook(xd,[e])},onLeaveCancelled(e){Cd(e),callHook(vd,[e])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$5(e))return[NumberOf(e.enter),NumberOf(e.leave)];{let t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[vtcKey]||(e[vtcKey]=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let $=e[vtcKey];$&&($.delete(t),$.size||(e[vtcKey]=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var endId=0;function whenTransitionEnds(e,t,$,ed){let td=e._endId=++endId,nd=()=>{td===e._endId&&ed()};if($!=null)return setTimeout(nd,$);let{type:rd,timeout:id,propCount:ad}=getTransitionInfo(e,t);if(!rd)return ed();let od=rd+`end`,sd=0,cd=()=>{e.removeEventListener(od,ld),nd()},ld=t=>{t.target===e&&++sd>=ad&&cd()};setTimeout(()=>{sd<ad&&cd()},id+1),e.addEventListener(od,ld)}function getTransitionInfo(e,t){let $=window.getComputedStyle(e),ed=e=>($[e]||``).split(`, `),td=ed(`${TRANSITION}Delay`),nd=ed(`${TRANSITION}Duration`),rd=getTimeout(td,nd),id=ed(`${ANIMATION}Delay`),ad=ed(`${ANIMATION}Duration`),od=getTimeout(id,ad),sd=null,cd=0,ld=0;t===TRANSITION?rd>0&&(sd=TRANSITION,cd=rd,ld=nd.length):t===ANIMATION?od>0&&(sd=ANIMATION,cd=od,ld=ad.length):(cd=Math.max(rd,od),sd=cd>0?rd>od?TRANSITION:ANIMATION:null,ld=sd?sd===TRANSITION?nd.length:ad.length:0);let ud=sd===TRANSITION&&/\b(transform|all)(,|$)/.test(ed(`${TRANSITION}Property`).toString());return{type:sd,timeout:cd,propCount:ld,hasTransform:ud}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,$)=>toMs(t)+toMs(e[$])))}function toMs(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(e,t,$){let ed=e[vtcKey];ed&&(t=(t?[t,...ed]:[...ed]).join(` `)),t==null?e.removeAttribute(`class`):$?e.setAttribute(`class`,t):e.className=t}var vShowOriginalDisplay=Symbol(`_vod`),vShowHidden=Symbol(`_vsh`),vShow={beforeMount(e,{value:t},{transition:$}){e[vShowOriginalDisplay]=e.style.display===`none`?``:e.style.display,$&&t?$.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:$}){$&&t&&$.enter(e)},updated(e,{value:t,oldValue:$},{transition:ed}){!t!=!$&&(ed?t?(ed.beforeEnter(e),setDisplay(e,!0),ed.enter(e)):ed.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e[vShowOriginalDisplay]:`none`,e[vShowHidden]=!t}function initVShowForSSR(){vShow.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var CSS_VAR_TEXT=Symbol(``);function useCssVars(e){let t=getCurrentInstance();if(!t)return;let $=t.ut=($=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>setVarsOnNode(e,$))},ed=()=>{let ed=e(t.proxy);t.ce?setVarsOnNode(t.ce,ed):setVarsOnVNode(t.subTree,ed),$(ed)};onBeforeMount(()=>{watchPostEffect(ed)}),onMounted(()=>{let e=new MutationObserver(ed);e.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>e.disconnect())})}function setVarsOnVNode(e,t){if(e.shapeFlag&128){let $=e.suspense;e=$.activeBranch,$.pendingBranch&&!$.isHydrating&&$.effects.push(()=>{setVarsOnVNode($.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)setVarsOnNode(e.el,t);else if(e.type===Fragment)e.children.forEach(e=>setVarsOnVNode(e,t));else if(e.type===Static){let{el:$,anchor:ed}=e;for(;$&&(setVarsOnNode($,t),$!==ed);)$=$.nextSibling}}function setVarsOnNode(e,t){if(e.nodeType===1){let $=e.style,ed=``;for(let e in t)$.setProperty(`--${e}`,t[e]),ed+=`--${e}: ${t[e]};`;$[CSS_VAR_TEXT]=ed}}var displayRE=/(^|;)\s*display\s*:/;function patchStyle(e,t,$){let ed=e.style,td=isString($),nd=!1;if($&&!td){if(t)if(isString(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();$[t]??setStyle(ed,t,``)}else for(let e in t)$[e]??setStyle(ed,e,``);for(let e in $)e===`display`&&(nd=!0),setStyle(ed,e,$[e])}else if(td){if(t!==$){let e=ed[CSS_VAR_TEXT];e&&($+=`;`+e),ed.cssText=$,nd=displayRE.test($)}}else t&&e.removeAttribute(`style`);vShowOriginalDisplay in e&&(e[vShowOriginalDisplay]=nd?ed.display:``,e[vShowHidden]&&(ed.display=`none`))}var importantRE=/\s*!important$/;function setStyle(e,t,$){if(isArray($))$.forEach($=>setStyle(e,t,$));else if($??=``,t.startsWith(`--`))e.setProperty(t,$);else{let ed=autoPrefix(e,t);importantRE.test($)?e.setProperty(hyphenate(ed),$.replace(importantRE,``),`important`):e[ed]=$}}var prefixes=[`Webkit`,`Moz`,`ms`],prefixCache={};function autoPrefix(e,t){let $=prefixCache[t];if($)return $;let ed=camelize(t);if(ed!==`filter`&&ed in e)return prefixCache[t]=ed;ed=capitalize(ed);for(let $=0;$<prefixes.length;$++){let td=prefixes[$]+ed;if(td in e)return prefixCache[t]=td}return t}var xlinkNS=`http://www.w3.org/1999/xlink`;function patchAttr(e,t,$,ed,td,nd=isSpecialBooleanAttr(t)){ed&&t.startsWith(`xlink:`)?$==null?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,$):$==null||nd&&!includeBooleanAttr($)?e.removeAttribute(t):e.setAttribute(t,nd?``:isSymbol($)?String($):$)}function patchDOMProp(e,t,$,ed,td){if(t===`innerHTML`||t===`textContent`){$!=null&&(e[t]=t===`innerHTML`?unsafeToTrustedHTML($):$);return}let nd=e.tagName;if(t===`value`&&nd!==`PROGRESS`&&!nd.includes(`-`)){let ed=nd===`OPTION`?e.getAttribute(`value`)||``:e.value,td=$==null?e.type===`checkbox`?`on`:``:String($);(ed!==td||!(`_value`in e))&&(e.value=td),$??e.removeAttribute(t),e._value=$;return}let rd=!1;if($===``||$==null){let ed=typeof e[t];ed===`boolean`?$=includeBooleanAttr($):$==null&&ed===`string`?($=``,rd=!0):ed===`number`&&($=0,rd=!0)}try{e[t]=$}catch{}rd&&e.removeAttribute(td||t)}function addEventListener(e,t,$,ed){e.addEventListener(t,$,ed)}function removeEventListener(e,t,$,ed){e.removeEventListener(t,$,ed)}var veiKey=Symbol(`_vei`);function patchEvent(e,t,$,ed,td=null){let nd=e[veiKey]||(e[veiKey]={}),rd=nd[t];if(ed&&rd)rd.value=ed;else{let[$,id]=parseName(t);ed?addEventListener(e,$,nd[t]=createInvoker(ed,td),id):rd&&(removeEventListener(e,$,rd,id),nd[t]=void 0)}}var optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){t={};let $;for(;$=e.match(optionsModifierRE);)e=e.slice(0,e.length-$[0].length),t[$[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):hyphenate(e.slice(2)),t]}var cachedNow=0,p=Promise.resolve(),getNow=()=>cachedNow||=(p.then(()=>cachedNow=0),Date.now());function createInvoker(e,t){let $=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=$.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(e,$.value),t,5,[e])};return $.value=e,$.attached=getNow(),$}function patchStopImmediatePropagation(e,t){if(isArray(t)){let $=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{$.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var isNativeOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,patchProp=(e,t,$,ed,td,nd)=>{let rd=td===`svg`;t===`class`?patchClass(e,ed,rd):t===`style`?patchStyle(e,$,ed):isOn(t)?isModelListener(t)||patchEvent(e,t,$,ed,nd):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):shouldSetAsProp(e,t,ed,rd))?(patchDOMProp(e,t,ed),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&patchAttr(e,t,ed,rd,nd,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!isString(ed))?patchDOMProp(e,camelize(t),ed,nd,t):(t===`true-value`?e._trueValue=ed:t===`fal
27se-value`&&(e._falseValue=ed),patchAttr(e,t,ed,rd))};function shouldSetAsProp(e,t,$,ed){if(ed)return!!(t===`innerHTML`||t===`textContent`||t in e&&isNativeOn(t)&&isFunction($));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return isNativeOn(t)&&isString($)?!1:t in e}var REMOVAL={};function defineCustomElement(e,t,$){let ed=defineComponent(e,t);isPlainObject$1(ed)&&extend$2(ed,t);class td extends VueElement{constructor(e){super(ed,e,$)}}return td.def=ed,td}var defineSSRCustomElement=(e,t)=>defineCustomElement(e,t,createSSRApp),BaseClass=typeof HTMLElement<`u`?HTMLElement:class{},VueElement=class e extends BaseClass{constructor(e,t={},$=createApp){super(),this._def=e,this._props=t,this._createApp=$,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&$!==createApp?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow({mode:`open`}),this._root=this.shadowRoot),this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,nextTick$1(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(e=>{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:$,styles:ed}=e,td;if($&&!isArray($))for(let e in $){let t=$[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=toNumber(this._props[e])),(td||=Object.create(null))[camelize(e)]=!0)}this._numberProps=td,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(ed),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>e(this._def=t,!0)):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)hasOwn(this,e)||Object.defineProperty(this,e,{get:()=>unref(t[e])})}_resolveProps(e){let{props:t}=e,$=isArray(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&$.includes(e)&&this._setProp(e,this[e]);for(let e of $.map(camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!0)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),$=t?this.getAttribute(e):REMOVAL,ed=camelize(e);t&&this._numberProps&&this._numberProps[ed]&&($=toNumber($)),this._setProp(ed,$,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,$=!0,ed=!1){t!==this._props[e]&&(t===REMOVAL?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),ed&&this._instance&&this._update(),$&&(t===!0?this.setAttribute(hyphenate(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(hyphenate(e),t+``):t||this.removeAttribute(hyphenate(e))))}_update(){render$1(this._createVNode(),this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=createVNode(this._def,extend$2(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,isPlainObject$1(t[0])?extend$2({detail
vendor: 8,507 bytes, line 27
27:t},t[0]):{detail:t}))};e.emit=(e,...$)=>{t(e,$),hyphenate(e)!==e&&t(hyphenate(e),$)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let $=this._nonce;for(let t=e.length-1;t>=0;t--){let ed=document.createElement(`style`);$&&ed.setAttribute(`nonce`,$),ed.textContent=e[t],this.shadowRoot.prepend(ed)}}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let $=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[$]||(e[$]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=(this._teleportTarget||this).querySelectorAll(`slot`),t=this._instance.type.__scopeId;for(let $=0;$<e.length;$++){let ed=e[$],td=ed.getAttribute(`name`)||`default`,nd=this._slots[td],rd=ed.parentNode;if(nd)for(let e of nd){if(t&&e.nodeType===1){let $=t+`-s`,ed=document.createTreeWalker(e,1);e.setAttribute($,``);let td;for(;td=ed.nextNode();)td.setAttribute($,``)}rd.insertBefore(e,ed)}else for(;ed.firstChild;)rd.insertBefore(ed.firstChild,ed);rd.removeChild(ed)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}};function useHost(e){let t=getCurrentInstance();return t&&t.ce||null}function useShadowRoot(){let e=useHost();return e&&e.shadowRoot}function useCssModule(e=`$style`){{let t=getCurrentInstance();if(!t)return EMPTY_OBJ;let $=t.type.__cssModules;return $&&$[e]||EMPTY_OBJ}}var positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol(`_moveCb`),enterCbKey=Symbol(`_enterCb`),decorate=e=>(delete e.props.mode,e),TransitionGroup=decorate({name:`TransitionGroup`,props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:t}){let $=getCurrentInstance(),ed=useTransitionState(),td,nd;return onUpdated(()=>{if(!td.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!hasCSSTransform(td[0].el,$.vnode.el,t))return;td.forEach(callPendingCbs),td.forEach(recordPosition);let ed=td.filter(applyTranslation);forceReflow(),ed.forEach(e=>{let $=e.el,ed=$.style;addTransitionClass($,t),ed.transform=ed.webkitTransform=ed.transitionDuration=``;let td=$[moveCbKey]=e=>{e&&e.target!==$||(!e||/transform$/.test(e.propertyName))&&($.removeEventListener(`transitionend`,td),$[moveCbKey]=null,removeTransitionClass($,t))};$.addEventListener(`transitionend`,td)})}),()=>{let rd=toRaw(e),id=resolveTransitionProps(rd),ad=rd.tag||Fragment;if(td=[],nd)for(let e=0;e<nd.length;e++){let t=nd[e];t.el&&t.el instanceof Element&&(td.push(t),setTransitionHooks(t,resolveTransitionHooks(t,id,ed,$)),positionMap.set(t,t.el.getBoundingClientRect()))}nd=t.default?getTransitionRawChildren(t.default()):[];for(let e=0;e<nd.length;e++){let t=nd[e];t.key!=null&&setTransitionHooks(t,resolveTransitionHooks(t,id,ed,$))}return createVNode(ad,null,nd)}}});function callPendingCbs(e){let t=e.el;t[moveCbKey]&&t[moveCbKey](),t[enterCbKey]&&t[enterCbKey]()}function recordPosition(e){newPositionMap.set(e,e.el.getBoundingClientRect())}function applyTranslation(e){let t=positionMap.get(e),$=newPositionMap.get(e),ed=t.left-$.left,td=t.top-$.top;if(ed||td){let t=e.el.style;return t.transform=t.webkitTransform=`translate(${ed}px,${td}px)`,t.transitionDuration=`0s`,e}}function hasCSSTransform(e,t,$){let ed=e.cloneNode(),td=e[vtcKey];td&&td.forEach(e=>{e.split(/\s+/).forEach(e=>e&&ed.classList.remove(e))}),$.split(/\s+/).forEach(e=>e&&ed.classList.add(e)),ed.style.display=`none`;let nd=t.nodeType===1?t:t.parentNode;nd.appendChild(ed);let{hasTransform:rd}=getTransitionInfo(ed);return nd.removeChild(ed),rd}var getModelAssigner=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return isArray(t)?e=>invokeArrayFns(t,e):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var assignKey=Symbol(`_assign`),vModelText={created(e,{modifiers:{lazy:t,trim:$,number:ed}},td){e[assignKey]=getModelAssigner(td);let nd=ed||td.props&&td.props.type===`number`;addEventListener(e,t?`change`:`input`,t=>{if(t.target.composing)return;let ed=e.value;$&&(ed=ed.trim()),nd&&(ed=looseToNumber(ed)),e[assignKey](ed)}),$&&addEventListener(e,`change`,()=>{e.value=e.value.trim()}),t||(addEventListener(e,`compositionstart`,onCompositionStart),addEventListener(e,`compositionend`,onCompositionEnd),addEventListener(e,`change`,onCompositionEnd))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:$,modifiers:{lazy:ed,trim:td,number:nd}},rd){if(e[assignKey]=getModelAssigner(rd),e.composing)return;let id=(nd||e.type===`number`)&&!/^0\d/.test(e.value)?looseToNumber(e.value):e.value,ad=t??``;id!==ad&&(document.activeElement===e&&e.type!==`range`&&(ed&&t===$||td&&e.value.trim()===ad)||(e.value=ad))}},vModelCheckbox={deep:!0,created(e,t,$){e[assignKey]=getModelAssigner($),addEventListener(e,`change`,()=>{let t=e._modelValue,$=getValue(e),ed=e.checked,td=e[assignKey];if(isArray(t)){let e=looseIndexOf(t,$),nd=e!==-1;if(ed&&!nd)td(t.concat($));else if(!ed&&nd){let $=[...t];$.splice(e,1),td($)}}else if(isSet(t)){let e=new Set(t);ed?e.add($):e.delete($),td(e)}else td(getCheckboxValue(e,ed))})},mounted:setChecked,beforeUpdate(e,t,$){e[assignKey]=getModelAssigner($),setChecked(e,t,$)}};function setChecked(e,{value:t,oldValue:$},ed){e._modelValue=t;let td;if(isArray(t))td=looseIndexOf(t,ed.props.value)>-1;else if(isSet(t))td=t.has(ed.props.value);else{if(t===$)return;td=looseEqual(t,getCheckboxValue(e,!0))}e.checked!==td&&(e.checked=td)}var vModelRadio={created(e,{value:t},$){e.checked=looseEqual(t,$.props.value),e[assignKey]=getModelAssigner($),addEventListener(e,`change`,()=>{e[assignKey](getValue(e))})},beforeUpdate(e,{value:t,oldValue:$},ed){e[assignKey]=getModelAssigner(ed),t!==$&&(e.checked=looseEqual(t,ed.props.value))}},vModelSelect={deep:!0,created(e,{value:t,modifiers:{number:$}},ed){let td=isSet(t);addEventListener(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>$?looseToNumber(getValue(e)):getValue(e));e[assignKey](e.multiple?td?new Set(t):t:t[0]),e._assigning=!0,nextTick$1(()=>{e._assigning=!1})}),e[assignKey]=getModelAssigner(ed)},mounted(e,{value:t}){setSelected(e,t)},beforeUpdate(e,t,$){e[assignKey]=getModelAssigner($)},updated(e,{value:t}){e._assigning||setSelected(e,t)}};function setSelected(e,t){let $=e.multiple,ed=isArray(t);if(!($&&!ed&&!isSet(t))){for(let td=0,nd=e.options.length;td<nd;td++){let nd=e.options[td],rd=getValue(nd);if($)if(ed){let e=typeof rd;e===`string`||e===`number`?nd.selected=t.some(e=>String(e)===String(rd)):nd.selected=looseIndexOf(t,rd)>-1}else nd.selected=t.has(rd);else if(looseEqual(getValue(nd),t)){e.selectedIndex!==td&&(e.selectedIndex=td);return}}!$&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function getValue(e){return`_value`in e?e._value:e.value}function getCheckboxValue(e,t){let $=t?`_trueValue`:`_falseValue`;return $ in e?e[$]:t}var vModelDynamic={created(e,t,$){callModelHook(e,t,$,null,`created`)},mounted(e,t,$){callModelHook(e,t,$,null,`mounted`)},beforeUpdate(e,t,$,ed){callModelHook(e,t,$,ed,`beforeUpdate`)},updated(e,t,$,ed){callModelHook(e,t,$,ed,`updated`)}};function resolveDynamicModel(e,t){switch(e){case`SELECT`:return vModelSelect;case`TEXTAREA`:return vModelText;default:switch(t){case`checkbox`:return vModelCheckbox;case`radio`:return vModelRadio;default:return vModelText}}}function callModelHook(e,t,$,ed,td){let nd=resolveDynamicModel(e.tagName,$.props&&$.props.type)[td];nd&&nd(e,t,$,ed)}function initVModelForSSR(){vModelText.getSSRProps=({value:e})=>({value:e}),vModelRadio.getSSRProps=({value:e},t)=>{if(t.props&&looseEqual(t.props.value,e))return{checked:!0}},vModelCheckbox.getSSRProps=({value:e},t)=>{if(isArray(e)){if(t.props&&looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vModelDynamic.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let $=resolveDynamicModel(t.type.toUpperCase(),t.props&&t.props.type);if($.getSSRProps)return $.getSSRProps(e,t)}}var systemModifiers=[`ctrl`,`shift`,`alt`,`meta`],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>systemModifiers.some($=>e[`${$}Key`]&&!t.includes($))},withModifiers=(e,t)=>{let $=e._withMods||={},ed=t.join(`.`);
27return $[ed]||($[ed]=($,...ed)=>{for(let e=0;e<t.length;e++){let ed=modifierGuards[t[e]];if(ed&&ed($,t))return}return e($,...ed)})},keyNames={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},withKeys=(e,t)=>{let $=e._withKeys||={},ed=t.join(`.`);return $[ed]||($[ed]=$=>{if(!(`key`in $))return;let ed=hyphenate($.key);if(t.some(e=>e===ed||keyNames[e]===ed))return e($)})},rendererOptions=extend$2({patchProp},nodeOps),renderer,enabledHydration=!1;function ensureRenderer(){return renderer||=createRenderer(rendererOptions)}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}var render$1=(...e)=>{ensureRenderer().render(...e)},hydrate=(...e)=>{ensureHydrationRenderer().hydrate(...e)},createApp=(...e)=>{let t=ensureRenderer().createApp(...e),{mount:$}=t;return t.mount=e=>{let ed=normalizeContainer(e);if(!ed)return;let td=t._component;!isFunction(td)&&!td.render&&!td.template&&(td.template=ed.innerHTML),ed.nodeType===1&&(ed.textContent=``);let nd=$(ed,!1,resolveRootNamespace(ed));return ed instanceof Element&&(ed.removeAttribute(`v-cloak`),ed.setAttribute(`data-v-app`,``)),nd},t},createSSRApp=(...e)=>{let t=ensureHydrationRenderer().createApp(...e),{mount:$}=t;return t.mount=e=>{let t=normalizeContainer(e);if(t)return $(t,!0,resolveRootNamespace(t))},t};function resolveRootNamespace(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function normalizeContainer(e){return isString(e)?document.querySelector(e):e}var ssrDirectiveInitialized=!1,initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},vue_runtime_esm_bundler_exports=__exportAll({BaseTransition:()=>BaseTransition,BaseTransitionPropsValidators:()=>BaseTransitionPropsValidators,Comment:()=>Comment,DeprecationTypes:()=>null,EffectScope:()=>EffectScope,ErrorCodes:()=>ErrorCodes,ErrorTypeStrings:()=>ErrorTypeStrings,Fragment:()=>Fragment,KeepAlive:()=>KeepAlive,ReactiveEffect:()=>ReactiveEffect,Static:()=>Static,Suspense:()=>Suspense,Teleport:()=>Teleport,Text:()=>Text,TrackOpTypes:()=>TrackOpTypes,Transition:()=>Transition,TransitionGroup:()=>TransitionGroup,TriggerOpTypes:()=>TriggerOpTypes,VueElement:()=>VueElement,assertNumber:()=>assertNumber,callWithAsyncErrorHandling:()=>callWithAsyncErrorHandling,callWithErrorHandling:()=>callWithErrorHandling,camelize:()=>camelize,capitalize:()=>capitalize,cloneVNode:()=>cloneVNode,compatUtils:()=>null,compile:()=>compile,computed:()=>computed,createApp:()=>createApp,createBlock:()=>createBlock,createCommentVNode:()=>createCommentVNode,createElementBlock:()=>createElementBlock,createElementVNode:()=>createBaseVNode,createHydrationRenderer:()=>createHydrationRenderer,createPropsRestProxy:()=>createPropsRestProxy,createRenderer:()=>createRenderer,createSSRApp:()=>createSSRApp,createSlots:()=>createSlots,createStaticVNode:()=>createStaticVNode,createTextVNode:()=>createTextVNode,createVNode:()=>createVNode,customRef:()=>customRef,defineAsyncComponent:()=>defineAsyncComponent,defineComponent:()=>defineComponent,defineCustomElement:()=>defineCustomElement,defineEmits:()=>defineEmits,defineExpose:()=>defineExpose,defineModel:()=>defineModel,defineOptions:()=>defineOptions,defineProps:()=>defineProps,defineSSRCustomElement:()=>defineSSRCustomElement,defineSlots:()=>defineSlots,devtools:()=>devtools,effect:()=>effect,effectScope:()=>effectScope,getCurrentInstance:()=>getCurrentInstance,getCurrentScope:()=>getCurrentScope,getCurrentWatcher:()=>getCurrentWatcher,getTransitionRawChildren:()=>getTransitionRawChildren,guardReactiveProps:()=>guardReactiveProps,h:()=>h,handleError:()=>handleError,hasInjectionContext:()=>hasInjectionContext,hydrate:()=>hydrate,hydrateOnIdle:()=>hydrateOnIdle,hydrateOnInteraction:()=>hydrateOnInteraction,hydrateOnMediaQuery:()=>hydrateOnMediaQuery,hydrateOnVisible:()=>hydrateOnVisible,initCustomFormatter:()=>initCustomFormatter,initDirectivesForSSR:()=>initDirectivesForSSR,inject:()=>inject,isMemoSame:()=>isMemoSame,isProxy:()=>isProxy,isReactive:()=>isReactive,isReadonly:()=>isReadonly,isRef:()=>isRef,isRuntimeOnly:()=>isRuntimeOnly,isShallow:()=>isShallow,isVNode:()=>isVNode,markRaw:()=>markRaw,mergeDefaults:()=>mergeDefaults,mergeModels:()=>mergeModels,mergeProps:()=>mergeProps,nextTick:()=>nextTick$1,normalizeClass:()=>normalizeClass,normalizeProps:()=>normalizeProps,normalizeStyle:()=>normalizeStyle,onActivated:()=>onActivated,onBeforeMount:()=>onBeforeMount,onBeforeUnmount:()=>onBeforeUnmount,onBeforeUpdate:()=>
27onBeforeUpdate,onDeactivated:()=>onDeactivated,onErrorCaptured:()=>onErrorCaptured,onMounted:()=>onMounted,onRenderTracked:()=>onRenderTracked,onRenderTriggered:()=>onRenderTriggered,onScopeDispose:()=>onScopeDispose,onServerPrefetch:()=>onServerPrefetch,onUnmounted:()=>onUnmounted,onUpdated:()=>onUpdated,onWatcherCleanup:()=>onWatcherCleanup,openBlock:()=>openBlock,popScopeId:()=>popScopeId,provide:()=>provide,proxyRefs:()=>proxyRefs,pushScopeId:()=>pushScopeId,queuePostFlushCb:()=>queuePostFlushCb,reactive:()=>reactive,readonly:()=>readonly,ref:()=>ref,registerRuntimeCompiler:()=>registerRuntimeCompiler,render:()=>render$1,renderList:()=>renderList,renderSlot:()=>renderSlot,resolveComponent:()=>resolveComponent,resolveDirective:()=>resolveDirective,resolveDynamicComponent:()=>resolveDynamicComponent,resolveFilter:()=>null,resolveTransitionHooks:()=>resolveTransitionHooks,setBlockTracking:()=>setBlockTracking,setDevtoolsHook:()=>setDevtoolsHook,setTransitionHooks:()=>setTransitionHooks,shallowReactive:()=>shallowReactive,shallowReadonly:()=>shallowReadonly,shallowRef:()=>shallowRef,ssrContextKey:()=>ssrContextKey,ssrUtils:()=>ssrUtils,stop:()=>stop,toDisplayString:()=>toDisplayString,toHandlerKey:()=>toHandlerKey,toHandlers:()=>toHandlers,toRaw:()=>toRaw,toRef:()=>toRef,toRefs:()=>toRefs,toValue:()=>toValue,transformVNodeArgs:()=>transformVNodeArgs,triggerRef:()=>triggerRef,unref:()=>unref,useAttrs:()=>useAttrs,useCssModule:()=>useCssModule,useCssVars:()=>useCssVars,useHost:()=>useHost,useId:()=>useId,useModel:()=>useModel,useSSRContext:()=>useSSRContext,useShadowRoot:()=>useShadowRoot,useSlots:()=>useSlots,useTemplateRef:()=>useTemplateRef,useTransitionState:()=>useTransitionState,vModelCheckbox:()=>vModelCheckbox,vModelDynamic:()=>vModelDynamic,vModelRadio:()=>vModelRadio,vModelSelect:()=>vModelSelect,vModelText:()=>vModelText,vShow:()=>vShow,version:()=>version$9,warn:()=>warn,watch:()=>watch,watchEffect:()=>watchEffect,watchPostEffect:()=>watchPostEffect,watchSyncEffect:()=>watchSyncEffect,withAsyncContext:()=>withAsyncContext,withCtx:()=>withCtx,withDefaults:()=>withDefaults,withDirectives:()=>withDirectives,withKeys:()=>withKeys,withMemo:()=>withMemo,withModifiers:()=>withModifiers,withScopeId:()=>withScopeId}),compile=()=>{},require_bind$1=__commonJSMin(((e,t)=>{t.exports=function(e,t){return function(){for(var $=Array(arguments.length),ed=0;ed<$.length;ed++)$[ed]=arguments[ed];return e.apply(t,$)}}})),require_utils$5=__commonJSMin(((e,t)=>{var $=require_bind$1(),ed=Object.prototype.toString;function td(e){return ed.call(e)===`[object Array]`}function nd(e){return e===void 0}function rd(e){return e!==null&&!nd(e)&&e.constructor!==null&&!nd(e.constructor)&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function id(e){return ed.call(e)===`[object ArrayBuffer]`}function ad(e){return typeof FormData<`u`&&e instanceof FormData}function od(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function sd(e){return typeof e==`string`}function cd(e){return typeof e==`number`}function ld(e){return typeof e==`object`&&!!e}function ud(e){if(ed.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function dd(e){return ed.call(e)===`[object Date]`}function fd(e){return ed.call(e)===`[object File]`}function pd(e){return ed.call(e)===`[object Blob]`}function md(e){return ed.call(e)===`[object Function]`}function hd(e){return ld(e)&&md(e.pipe)}function gd(e){return typeof URLSearchParams<`u`&&e instanceof URLSearchParams}function _d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function vd(){return typeof navigator<`u`&&(navigator.product===`ReactNative`||navigator.product===`NativeScript`||navigator.product===`NS`)?!1:typeof window<`u`&&typeof document<`u`}function yd(e,t){if(e!=null)if(typeof e!=`object`&&(e=[e]),td(e))for(var $=0,ed=e.length;$<ed;$++)t.call(null,e[$],$,e);else for(var nd in e)Object.prototype.hasOwnProperty.call(e,nd)&&t.call(null,e[nd],nd,e)}function bd(){var e={};function t(t,$){ud(e[$])&&ud(t)?e[$]=bd(e[$],t):ud(t)?e[$]=bd({},t):td(t)?e[$]=t.slice():e[$]=t}for(var $=0,ed=arguments.length;$<ed;$++)yd(arguments[$],t);return e}function xd(e,t,ed){return yd(t,function(t,td){ed&&typeof t==`function`?e[td]=$(t,ed):e[td]=t}),e}function Sd(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}t.exports={isArray:td,isArrayBuffer:id,isBuffer:rd,isFormData:ad,isArrayBufferView:od,isString:sd,isNumber:cd,isObject:ld,isPlainObject:ud,isUndefined:nd,isDate:dd,isFile:fd,isBlob:pd,isFunction:md,isStream:hd,isURLSearchParams:gd,isStandardBrowserEnv:vd,forEach:yd,merge:bd,extend:xd,trim:_d,stripBOM:Sd}})),require_buildURL=__commonJSMin(((e,t)=>{var $=require_utils$5();function ed(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`).replace(/%5B/gi,`[`).replace(/%5D/gi,`]`)}t.exports=function(e,t,td){if(!t)return e;var nd;if(td)nd=td(t);else if($.isURLSearchParams(t))nd=t.toString();else{var rd=[];$.forEach(t,function(e,t){e!=null&&($.isArray(e)?t+=`[]`:e=[e],$.forEach(e,function(e){$.isDate(e)?e=e.toISOString():$.
27isObject(e)&&(e=JSON.stringify(e)),rd.push(ed(t)+`=`+ed(e))}))}),nd=rd.join(`&`)}if(nd){var id=e.indexOf(`#`);id!==-1&&(e=e.slice(0,id)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+nd}return e}})),require_InterceptorManager=__commonJSMin(((e,t)=>{var $=require_utils$5();function ed(){this.handlers=[]}ed.prototype.use=function(e,t,$){return this.handlers.push({fulfilled:e,rejected:t,synchronous:$?$.synchronous:!1,runWhen:$?$.runWhen:null}),this.handlers.length-1},ed.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ed.prototype.forEach=function(e){$.forEach(this.handlers,function(t){t!==null&&e(t)})},t.exports=ed})),require_normalizeHeaderName=__commonJSMin(((e,t)=>{var $=require_utils$5();t.exports=function(e,t){$.forEach(e,function($,ed){ed!==t&&ed.toUpperCase()===t.toUpperCase()&&(e[t]=$,delete e[ed])})}})),require_enhanceError=__commonJSMin(((e,t)=>{t.exports=function(e,t,$,ed,td){return e.config=t,$&&(e.code=$),e.request=ed,e.response=td,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}})),require_createError=__commonJSMin(((e,t)=>{var $=require_enhanceError();t.exports=function(e,t,ed,td,nd){return $(Error(e),t,ed,td,nd)}})),require_settle=__commonJSMin(((e,t)=>{var $=require_createError();t.exports=function(e,t,ed){var td=ed.config.validateStatus;!ed.status||!td||td(ed.status)?e(ed):t($(`Request failed with status code `+ed.status,ed.config,null,ed.request,ed))}})),require_cookies=__commonJSMin(((e,t)=>{var $=require_utils$5();t.exports=$.isStandardBrowserEnv()?(function(){return{write:function(e,t,ed,td,nd,rd){var id=[];id.push(e+`=`+encodeURIComponent(t)),$.isNumber(ed)&&id.push(`expires=`+new Date(ed).toGMTString()),$.isString(td)&&id.push(`path=`+td),$.isString(nd)&&id.push(`domain=`+nd),rd===!0&&id.push(`secure`),document.cookie=id.join(`; `)},read:function(e){var t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,``,Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})()})),require_isAbsoluteURL=__commonJSMin(((e,t)=>{t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}})),require_combineURLs=__commonJSMin(((e,t)=>{t.exports=function(e,t){return t?e.replace(/\/+$/,``)+`/`+t.replace(/^\/+/,``):e}})),require_buildFullPath=__commonJSMin(((e,t)=>{var $=require_isAbsoluteURL(),ed=require_combineURLs();t.exports=function(e,t){return e&&!$(t)?ed(e,t):t}})),require_parseHeaders=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=[`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`];t.exports=function(e){var t={},td,nd,rd;return e&&$.forEach(e.split(` 28`),function(e){if(rd=e.indexOf(`:`),td=$.trim(e.substr(0,rd)).toLowerCase(),nd=$.trim(e.substr(rd+1)),td){if(t[td]&&ed.indexOf(td)>=0)return;td===`set-cookie`?t[td]=(t[td]?t[td]:[]).concat([nd]):t[td]=t[td]?t[td]+`, `+nd:nd}}),t}})),require_isURLSameOrigin=__commonJSMin(((e,t)=>{var $=require_utils$5();t.exports=$.isStandardBrowserEnv()?(function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement(`a`),ed;function td($){var ed=$;return e&&(t.setAttribute(`href`,ed),ed=t.href),t.setAttribute(`href`,ed),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,``):``,host:t.host,search:t.search?t.search.replace(/^\?/,``):``,hash:t.hash?t.hash.replace(/^#/,``):``,hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)===`/`?t.pathname:`/`+t.pathname}}return ed=td(window.location.href),function(e){var t=$.isString(e)?td(e):e;return t.protocol===ed.protocol&&t.host===ed.host}})():(function(){return function(){return!0}})()})),require_xhr=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=require_settle(),td=require_cookies(),nd=require_buildURL(),rd=require_buildFullPath(),id=require_parseHeaders(),ad=require_isURLSameOrigin(),od=require_createError();t.exports=function(e){return new Promise(function(t,sd){var cd=e.data,ld=e.headers,ud=e.responseType;$.isFormData(cd)&&delete ld[`Content-Type`];var dd=new XMLHttpRequest;if(e.auth){var fd=e.auth.username||``,pd=e.auth.password?unescape(encodeURIComponent(e.auth.password)):``;ld.Authorization=`Basic `+btoa(fd+`:`+pd)}var md=rd(e.baseURL,e.url);dd.open(e.method.toUpperCase(),nd(md,e.params,e.paramsSerializer),!0),dd.timeout=e.timeout;function hd(){if(dd){var $=`getAllResponseHeaders`in dd?id(dd.getAllResponseHeaders()):null;ed(t,sd,{data:!ud||ud===`text`||ud===`json`?dd.responseText:dd.response,status:dd.status,statusText:dd.statusText,headers:$,config:e,request:dd}),dd=null}}if(`onloadend`in dd?dd.onloadend=hd:dd.onreadystatechange=function(){!dd||dd.readyState!==4||dd.status===0&&!(dd.responseURL&&dd.responseURL.indexOf(`file:`)===0)||setTimeout(hd)},dd.onabort=function(){dd&&=(sd(od(`Request aborted`,e,`ECONNABORTED`,dd)),null)},dd.onerror=function(){sd(od(`Network Error`,e,null,dd)),dd=null},dd.ontimeout=function(){var t=`timeout of `+e.timeout+`ms exceeded`;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),sd(od(t,e,e.transitional&&e.transitional.clarifyTimeoutError?`ETIMEDOUT`:`ECONNABORTED`,dd)),dd=null},$.isStandardBrowserEnv()){var gd=(e.withCredentials||ad(md))&&e.xsrfCookieName?td.read(e.xsrfCookieName):void 0;gd&&(ld[e.xsrfHeaderName]=gd)}`setRequestHeader`in dd&&$.forEach(ld,function(e,t){cd===void 0&&t.toLowerCase()===`content-type`?delete ld[t]:dd.setRequestHeader(t,e)}),$.isUndefined(e.withCredentials)||(dd.withCredentials=!!e.withCredentials),ud&&ud!==`json`&&(dd.responseType=e.responseType),typeof e.onDownloadProgress==`function`&&dd.addEventListener(`progress`,e.onDownloadProgress),typeof e.onUploadProgress==`function`&&dd.upload&&dd.upload.addEventListener(`progress`,e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){dd&&=(dd.abort(),sd(e),null)}),cd||=null,dd.send(cd)})}})),require_defaults$1=__commonJSMin(((e,t)=>{init_dist();var $=require_utils$5(),ed=require_normalizeHeaderName(),td=require_enhanceError(),nd={"Content-Type":`application/x-www-form-urlencoded`};function rd(e,t){!$.isUndefined(e)&&$.isUndefined(e[`Content-Type`])&&(e[`Content-Type`]=t)}function id(){var e;return(typeof XMLHttpRequest<`u`||process$1!==void 0&&Object.prototype.toString.call(process$1)===`[object process]`)&&(e=require_xhr()),e}function ad(e,t,ed){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(ed||JSON.stringify)(e)}var od={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:id(),transformRequest:[function(e,t){return ed(t,`Accept`),ed(t,`Content-Type`),$.isFormData(e)||$.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)?e:$.isArrayBufferView(e)?e.buffer:$.isURLSearchParams(e)?(rd(t,`application/x-www-form-urlencoded;charset=utf-8`),e.toString()):$.isObject(e)||t&&t[`Content-Type`]===`application/json`?(rd(t,`application/json`),ad(e)):e}],transformResponse:[function(e){var t=this.transitional,ed=t&&t.silentJSONParsing,nd=t&&t.forcedJSONParsing,rd=!ed&&this.responseType===`json`;if(rd||nd&&$.isString(e)&&e.length)try{return JSON.parse(e)}
28catch(e){if(rd)throw e.name===`SyntaxError`?td(e,this,`E_JSON_PARSE`):e}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};od.headers={common:{Accept:`application/json, text/plain, */*`}},$.forEach([`delete`,`get`,`head`],function(e){od.headers[e]={}}),$.forEach([`post`,`put`,`patch`],function(e){od.headers[e]=$.merge(nd)}),t.exports=od})),require_transformData=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=require_defaults$1();t.exports=function(e,t,td){var nd=this||ed;return $.forEach(td,function($){e=$.call(nd,e,t)}),e}})),require_isCancel=__commonJSMin(((e,t)=>{t.exports=function(e){return!!(e&&e.__CANCEL__)}})),require_dispatchRequest=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=require_transformData(),td=require_isCancel(),nd=require_defaults$1();function rd(e){e.cancelToken&&e.cancelToken.throwIfRequested()}t.exports=function(e){return rd(e),e.headers=e.headers||{},e.data=ed.call(e,e.data,e.headers,e.transformRequest),e.headers=$.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),$.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],function(t){delete e.headers[t]}),(e.adapter||nd.adapter)(e).then(function(t){return rd(e),t.data=ed.call(e,t.data,t.headers,e.transformResponse),t},function(t){return td(t)||(rd(e),t&&t.response&&(t.response.data=ed.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}})),require_mergeConfig=__commonJSMin(((e,t)=>{var $=require_utils$5();t.exports=function(e,t){t||={};var ed={},td=[`url`,`method`,`data`],nd=[`headers`,`auth`,`proxy`,`params`],rd=[`baseURL`,`transformRequest`,`transformResponse`,`paramsSerializer`,`timeout`,`timeoutMessage`,`withCredentials`,`adapter`,`responseType`,`xsrfCookieName`,`xsrfHeaderName`,`onUploadProgress`,`onDownloadProgress`,`decompress`,`maxContentLength`,`maxBodyLength`,`maxRedirects`,`transport`,`httpAgent`,`httpsAgent`,`cancelToken`,`socketPath`,`responseEncoding`],id=[`validateStatus`];function ad(e,t){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge(e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function od(td){$.isUndefined(t[td])?$.isUndefined(e[td])||(ed[td]=ad(void 0,e[td])):ed[td]=ad(e[td],t[td])}$.forEach(td,function(e){$.isUndefined(t[e])||(ed[e]=ad(void 0,t[e]))}),$.forEach(nd,od),$.forEach(rd,function(td){$.isUndefined(t[td])?$.isUndefined(e[td])||(ed[td]=ad(void 0,e[td])):ed[td]=ad(void 0,t[td])}),$.forEach(id,function($){$ in t?ed[$]=ad(e[$],t[$]):$ in e&&(ed[$]=ad(void 0,e[$]))});var sd=td.concat(nd).concat(rd).concat(id),cd=Object.keys(e).concat(Object.keys(t)).filter(function(e){return sd.indexOf(e)===-1});return $.forEach(cd,od),ed}})),package_exports$1=__exportAll({author:()=>author$1,browser:()=>browser$2,bugs:()=>bugs$1,bundlesize:()=>bundlesize,default:()=>package_default$1,dependencies:()=>dependencies$1,description:()=>description$1,devDependencies:()=>devDependencies$1,homepage:()=>homepage$1,jsdelivr:()=>jsdelivr,keywords:()=>keywords$1,license:()=>`MIT`,main:()=>main$1,name:()=>name$1,repository:()=>repository$1,scripts:()=>scripts$1,typings:()=>typings,unpkg:()=>unpkg,version:()=>version$8}),name$1,version$8,description$1,main$1,scripts$1,repository$1,keywords$1,author$1,license$1,bugs$1,homepage$1,devDependencies$1,browser$2,jsdelivr,unpkg,typings,dependencies$1,bundlesize,package_default$1,init_package$1=__esmMin((()=>{name$1=`axios`,version$8=`0.21.4`,description$1=`Promise based HTTP client for the browser and node.js`,main$1=`index.js`,scripts$1={test:`grunt test`,start:`node ./sandbox/server.js`,build:`NODE_ENV=production grunt build`,preversion:`npm test`,version:`npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json`,postversion:`git push && git push --tags`,examples:`node ./examples/server.js`,coveralls:`cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js`,fix:`eslint --fix lib/**/*.js`},repository$1={type:`git`,url:`https://github.com/axios/axios.git`},keywords$1=[`xhr`,`http`,`ajax`,`promise`,`node`],author$1=`Matt Zabriskie`,bugs$1={url:`https://github.com/axios/axios/issues`},homepage$1=`https://axios-http.com`,devDependencies$1={coveralls:`^3.0.0`,"es6-promise":`^4.2.4`,grunt:`^1.3.0`,"grunt-banner":`^0.6.0`,"grunt-cli":`^1.2.0`,"grunt-contrib-clean":`^1.1.0`,"grunt-contrib-watch":`^1.0.0`,"grunt-eslint":`^23.0.0`,"grunt-karma":`^4.0.0`,"grunt-mocha-test":`^0.13.3`,"grunt-ts":`^6.0.0-beta.
2819`,"grunt-webpack":`^4.0.2`,"istanbul-instrumenter-loader":`^1.0.0`,"jasmine-core":`^2.4.1`,karma:`^6.3.2`,"karma-chrome-launcher":`^3.1.0`,"karma-firefox-launcher":`^2.1.0`,"karma-jasmine":`^1.1.1`,"karma-jasmine-ajax":`^0.1.13`,"karma-safari-launcher":`^1.0.0`,"karma-sauce-launcher":`^4.3.6`,"karma-sinon":`^1.0.5`,"karma-sourcemap-loader":`^0.3.8`,"karma-webpack":`^4.0.2`,"load-grunt-tasks":`^3.5.2`,minimist:`^1.2.0`,mocha:`^8.2.1`,sinon:`^4.5.0`,"terser-webpack-plugin":`^4.2.3`,typescript:`^4.0.5`,"url-search-params":`^0.10.0`,webpack:`^4.44.2`,"webpack-dev-server":`^3.11.0`},browser$2={"./lib/adapters/http.js":`./lib/adapters/xhr.js`},jsdelivr=`dist/axios.min.js`,unpkg=`dist/axios.min.js`,typings=`./index.d.ts`,dependencies$1={"follow-redirects":`^1.14.0`},bundlesize=[{path:`./dist/axios.min.js`,threshold:`5kB`}],package_default$1={name:name$1,version:version$8,description:description$1,main:main$1,scripts:scripts$1,repository:repository$1,keywords:keywords$1,author:author$1,license:`MIT`,bugs:bugs$1,homepage:homepage$1,devDependencies:devDependencies$1,browser:browser$2,jsdelivr,unpkg,typings,dependencies:dependencies$1,bundlesize}})),require_validator=__commonJSMin(((e,t)=>{var $=(init_package$1(),__toCommonJS(package_exports$1).default),ed={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach(function(e,t){ed[e]=function($){return typeof $===e||`a`+(t<1?`n `:` `)+e}});var td={},nd=$.version.split(`.`);function rd(e,t){for(var $=t?t.split(`.`):nd,ed=e.split(`.`),td=0;td<3;td++)if($[td]>ed[td])return!0;else if($[td]<ed[td])return!1;return!1}ed.transitional=function(e,t,ed){var nd=t&&rd(t);function id(e,t){return`[Axios v`+$.version+`] Transitional option '`+e+`'`+t+(ed?`. `+ed:``)}return function($,ed,rd){if(e===!1)throw Error(id(ed,` has been removed in `+t));return nd&&!td[ed]&&(td[ed]=!0,console.warn(id(ed,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e($,ed,rd):!0}};function id(e,t,$){if(typeof e!=`object`)throw TypeError(`options must be an object`);for(var ed=Object.keys(e),td=ed.length;td-- >0;){var nd=ed[td],rd=t[nd];if(rd){var id=e[nd],ad=id===void 0||rd(id,nd,e);if(ad!==!0)throw TypeError(`option `+nd+` must be `+ad);continue}if($!==!0)throw Error(`Unknown option `+nd)}}t.exports={isOlderVersion:rd,assertOptions:id,validators:ed}})),require_Axios=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=require_buildURL(),td=require_InterceptorManager(),nd=require_dispatchRequest(),rd=require_mergeConfig(),id=require_validator(),ad=id.validators;function od(e){this.defaults=e,this.interceptors={request:new td,response:new td}}od.prototype.request=function(e){typeof e==`string`?(e=arguments[1]||{},e.url=arguments[0]):e||={},e=rd(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method=`get`;var t=e.transitional;t!==void 0&&id.assertOptions(t,{silentJSONParsing:ad.transitional(ad.boolean,`1.0.0`),forcedJSONParsing:ad.transitional(ad.boolean,`1.0.0`),clarifyTimeoutError:ad.transitional(ad.boolean,`1.0.0`)},!1);var $=[],ed=!0;this.interceptors.request.forEach(function(t){typeof t.runWhen==`function`&&t.runWhen(e)===!1||(ed&&=t.synchronous,$.unshift(t.fulfilled,t.rejected))});var td=[];this.interceptors.response.forEach(function(e){td.push(e.fulfilled,e.rejected)});var od;if(!ed){var sd=[nd,void 0];for(Array.prototype.unshift.apply(sd,$),sd=sd.concat(td),od=Promise.resolve(e);sd.length;)od=od.then(sd.shift(),sd.shift());return od}for(var cd=e;$.length;){var ld=$.shift(),ud=$.shift();try{cd=ld(cd)}catch(e){ud(e);break}}try{od=nd(cd)}catch(e){return Promise.reject(e)}for(;td.length;)od=od.then(td.shift(),td.shift());return od},od.prototype.getUri=function(e){return e=rd(this.defaults,e),ed(e.url,e.params,e.paramsSerializer).replace(/^\?/,``)},$.forEach([`delete`,`get`,`head`,`options`],function(e){od.prototype[e]=function(t,$){return this.request(rd($||{},{method:e,url:t,data:($||{}).data}))}}),$.forEach([`post`,`put`,`patch`],function(e){od.prototype[e]=function(t,$,ed){return this.request(rd(ed||{},{method:e,url:t,data:$}))}}),t.exports=od})),require_Cancel=__commonJSMin(((e,t)=>{function $(e){this.message=e}$.prototype.toString=function(){return`Cancel`+(this.message?`: `+this.message:``)}
28,$.prototype.__CANCEL__=!0,t.exports=$})),require_CancelToken=__commonJSMin(((e,t)=>{var $=require_Cancel();function ed(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);var t;this.promise=new Promise(function(e){t=e});var ed=this;e(function(e){ed.reason||(ed.reason=new $(e),t(ed.reason))})}ed.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ed.source=function(){var e;return{token:new ed(function(t){e=t}),cancel:e}},t.exports=ed})),require_spread=__commonJSMin(((e,t)=>{t.exports=function(e){return function(t){return e.apply(null,t)}}})),require_isAxiosError=__commonJSMin(((e,t)=>{t.exports=function(e){return typeof e==`object`&&e.isAxiosError===!0}})),require_axios$1=__commonJSMin(((e,t)=>{var $=require_utils$5(),ed=require_bind$1(),td=require_Axios(),nd=require_mergeConfig(),rd=require_defaults$1();function id(e){var t=new td(e),nd=ed(td.prototype.request,t);return $.extend(nd,td.prototype,t),$.extend(nd,t),nd}var ad=id(rd);ad.Axios=td,ad.create=function(e){return id(nd(ad.defaults,e))},ad.Cancel=require_Cancel(),ad.CancelToken=require_CancelToken(),ad.isCancel=require_isCancel(),ad.all=function(e){return Promise.all(e)},ad.spread=require_spread(),ad.isAxiosError=require_isAxiosError(),t.exports=ad,t.exports.default=ad})),require_axios=__commonJSMin(((e,t)=>{t.exports=require_axios$1()})),require_lib$7=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.clickOutSide={mounted:function(e,t,$){e.clickOutsideEvent=function($){e==$.target||e.contains($.target)||t.value($,e)},document.addEventListener(`click`,e.clickOutsideEvent)},unmounted:function(e){document.removeEventListener(`click`,e.clickOutsideEvent)}}})),import_axios=__toESM(require_axios()),import_lib$7=__toESM(require_lib$7());function isEmpty(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function not(e){return(...t)=>!e(...t)}function includes(e,t){return e===void 0&&(e=`undefined`),e===null&&(e=`null`),e===!1&&(e=`false`),e.toString().toLowerCase().indexOf(t.trim())!==-1}function filterOptions(e,t,$,ed){return t?e.filter(e=>includes(ed(e,$),t)).sort((e,t)=>ed(e,$).length-ed(t,$).length):e}function stripGroups(e){return e.filter(e=>!e.$isLabel)}function flattenOptions(e,t){return $=>$.reduce(($,ed)=>ed[e]&&ed[e].length?($.push({$groupLabel:ed[t],$isLabel:!0}),$.concat(ed[e])):$,[])}function filterGroups(e,t,$,ed,td){return nd=>nd.map(nd=>{if(!nd[$])return console.warn(`Options passed to vue-multiselect do not contain groups, despite the config.`),[];let rd=filterOptions(nd[$],e,t,td);return rd.length?{[ed]:nd[ed],[$]:rd}:[]})}var flow=(...e)=>t=>e.reduce((e,t)=>t(e),t),multiselectMixin={data(){return{search:``,isOpen:!1,preferredOpenDirection:`below`,optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:`Select option`},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return isEmpty(e)?``:t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:`Press enter to create a tag`},tagPosition:{type:String,default:`top`},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn(`[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false.`),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){let e=this.search||``,t=e.toLowerCase().trim(),$=this.options.concat();return $=this.internalSearch?this.groupValues?this.filterAndFlat($,t,this.label):filterOptions($,t,this.label,this.customLabel):this.groupValues?flattenOptions(this.groupValues,this.groupLabel)($):$,$=this.hideSelected?$.filter(not(this.isSelected)):$,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition===`bottom`?$.push({isTag:!0,label:e}):$.unshift({isTag:!0,label:e})),$.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?``:this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?``:this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search=``,this.$emit(`update:modelValue`,this.multiple?[]:null))},deep:!0}
28,search(){this.$emit(`search-change`,this.search)}},emits:[`open`,`search-change`,`close`,`select`,`update:modelValue`,`remove`,`tag`],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,$){return flow(filterGroups(t,$,this.groupValues,this.groupLabel,this.customLabel),flattenOptions(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return flow(flattenOptions(this.groupValues,this.groupLabel),stripGroups)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){let t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(isEmpty(e))return``;if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;let t=this.customLabel(e,this.label);return isEmpty(t)?``:t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t===`Tab`&&!this.pointerDirty)){if(e.isTag)this.$emit(`tag`,e.label,this.id),this.search=``,this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!==`Tab`&&this.removeElement(e);return}this.multiple?this.$emit(`update:modelValue`,this.internalValue.concat([e])):this.$emit(`update:modelValue`,e),this.$emit(`select`,e,this.id),this.clearOnSelect&&(this.search=``)}this.closeOnSelect&&this.deactivate()}},selectGroup(e){let t=this.options.find(t=>t[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit(`remove`,t[this.groupValues],this.id);let e=this.trackBy?t[this.groupValues].map(e=>e[this.trackBy]):t[this.groupValues],$=this.internalValue.filter(t=>e.indexOf(this.trackBy?t[this.trackBy]:t)===-1);this.$emit(`update:modelValue`,$)}else{let e=t[this.groupValues].filter(e=>!(this.isOptionDisabled(e)||this.isSelected(e)));this.max&&e.splice(this.max-this.internalValue.length),this.$emit(`select`,e,this.id),this.$emit(`update:modelValue`,this.internalValue.concat(e))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}let $=typeof e==`object`?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){let e=this.internalValue.slice(0,$).concat(this.internalValue.slice($+1));this.$emit(`update:modelValue`,e)}else this.$emit(`update:modelValue`,null);this.$emit(`remove`,e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf(`Delete`)===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=``),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||this.$el!==void 0&&this.$el.focus(),this.$emit(`open`,this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&this.$refs.search!==void 0&&this.$refs.search.blur():this.$el!==void 0&&this.$el.blur(),this.preserveSearch||(this.search=``),this.$emit(`close`,this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>`u`)return;let e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection===`below`||this.openDirection===`bottom`?(this.preferredOpenDirection=`below`,this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection=`above`,this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},pointerMixin={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute(`aria-activedescendant`,this.id+`-`+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return[`multiselect__option--disabled`,{"multiselect__option--group":t.$isLabel}];let $=this.options.find(e=>e[this.groupLabel]===t.$groupLabel);return $&&!this.wholeGroupDisabled($)?[`multiselect__option--group`,{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected($)}]:`multiselect__option--disabled`},addPointerElement({key:e}=`Enter`){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerRe
28set()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},script={name:`vue-multiselect`,mixins:[multiselectMixin,pointerMixin],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:``},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:`Press enter to select`},selectGroupLabel:{type:String,default:`Press enter to select group`},selectedLabel:{type:String,default:`Selected`},deselectLabel:{type:String,default:`Press enter to remove`},deselectGroupLabel:{type:String,default:`Press enter to deselect group`},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:``},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:``},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:``},selectLabelText(){return this.showLabels?this.selectLabel:``},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:``},selectedLabelText(){return this.showLabels?this.selectedLabel:``},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:`100%`}:{width:`0`,position:`absolute`,padding:`0`}:``},contentStyle(){return this.options.length?{display:`inline-block`}:{display:`block`}},isAbove(){return this.openDirection===`above`||this.openDirection===`top`?!0:this.openDirection===`below`||this.openDirection===`bottom`?!1:this.preferredOpenDirection===`above`},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},_hoisted_1$23={ref:`tags`,class:`multiselect__tags`},_hoisted_2$20={class:`multiselect__tags-wrap`},_hoisted_3$18={class:`multiselect__spinner`},_hoisted_4$16={key:0},_hoisted_5$12={class:`multiselect__option`},_hoisted_6$8={class:`multiselect__option`},_hoisted_7$8=createTextVNode(`No elements found. Consider changing the search query.`),_hoisted_8$5={class:`multiselect__option`},_hoisted_9$4=createTextVNode(`List is empty.`);function render(e,t,$,ed,td,nd){return openBlock(),createBlock(`div`,{tabindex:e.searchable?-1:$.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":$.disabled,"multiselect--above":nd.isAbove,"multiselect--has-options-group":nd.hasOptionGroup},`multiselect`],onFocus:t[14]||=t=>e.activate(),onBlur:t[15]||=t=>e.searchable?!1:e.deactivate(),onKeydown:[t[16]||=withKeys(withModifiers(t=>e.pointerForward(),[`self`,`prevent`]),[`down`]),t[17]||=withKeys(withModifiers(t=>e.pointerBackward(),[`self`,`prevent`]),[`up`])],onKeypress:t[18]||=withKeys(withModifiers(t=>e.addPointerElement(t),[`stop`,`self`]),[`enter`,`tab`]),onKeyup:t[19]||=withKeys(t=>e.deactivate(),[`esc`]),role:`combobox`,"aria-owns":`listbox-`+e.id},[renderSlot(e.$slots,`caret`,{toggle:e.toggle},()=>[createVNode(`div`,{onMousedown:t[1]||=withModifiers(t=>
28e.toggle(),[`prevent`,`stop`]),class:`multiselect__select`},null,32)]),renderSlot(e.$slots,`clear`,{search:e.search}),createVNode(`div`,_hoisted_1$23,[renderSlot(e.$slots,`selection`,{search:e.search,remove:e.removeElement,values:nd.visibleValues,isOpen:e.isOpen},()=>[withDirectives(createVNode(`div`,_hoisted_2$20,[(openBlock(!0),createBlock(Fragment,null,renderList(nd.visibleValues,(t,$)=>renderSlot(e.$slots,`tag`,{option:t,search:e.search,remove:e.removeElement},()=>[(openBlock(),createBlock(`span`,{class:`multiselect__tag`,key:$},[createVNode(`span`,{textContent:toDisplayString(e.getOptionLabel(t))},null,8,[`textContent`]),createVNode(`i`,{tabindex:`1`,onKeypress:withKeys(withModifiers($=>e.removeElement(t),[`prevent`]),[`enter`]),onMousedown:withModifiers($=>e.removeElement(t),[`prevent`]),class:`multiselect__tag-icon`},null,40,[`onKeypress`,`onMousedown`])]))])),256))],512),[[vShow,nd.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>$.limit?renderSlot(e.$slots,`limit`,{key:0},()=>[createVNode(`strong`,{class:`multiselect__strong`,textContent:toDisplayString($.limitText(e.internalValue.length-$.limit))},null,8,[`textContent`])]):createCommentVNode(`v-if`,!0)]),createVNode(Transition,{name:`multiselect__loading`},{default:withCtx(()=>[renderSlot(e.$slots,`loading`,{},()=>[withDirectives(createVNode(`div`,_hoisted_3$18,null,512),[[vShow,$.loading]])])]),_:3}),e.searchable?(openBlock(),createBlock(`input`,{key:0,ref:`search`,name:$.name,id:e.id,type:`text`,autocomplete:`off`,spellcheck:$.spellcheck,placeholder:e.placeholder,required:$.required,style:nd.inputStyle,value:e.search,disabled:$.disabled,tabindex:$.tabindex,onInput:t[2]||=t=>e.updateSearch(t.target.value),onFocus:t[3]||=withModifiers(t=>e.activate(),[`prevent`]),onBlur:t[4]||=withModifiers(t=>e.deactivate(),[`prevent`]),onKeyup:t[5]||=withKeys(t=>e.deactivate(),[`esc`]),onKeydown:[t[6]||=withKeys(withModifiers(t=>e.pointerForward(),[`prevent`]),[`down`]),t[7]||=withKeys(withModifiers(t=>e.pointerBackward(),[`prevent`]),[`up`]),t[9]||=withKeys(withModifiers(t=>e.removeLastElement(),[`stop`]),[`delete`])],onKeypress:t[8]||=withKeys(withModifiers(t=>e.addPointerElement(t),[`prevent`,`stop`,`self`]),[`enter`]),class:`multiselect__input`,"aria-controls":`listbox-`+e.id},null,44,[`name`,`id`,`spellcheck`,`placeholder`,`required`,`value`,`disabled`,`tabindex`,`aria-controls`])):createCommentVNode(`v-if`,!0),nd.isSingleLabelVisible?(openBlock(),createBlock(`span`,{key:1,class:`multiselect__single`,onMousedown:t[10]||=withModifiers((...t)=>e.toggle&&e.toggle(...t),[`prevent`])},[renderSlot(e.$slots,`singleLabel`,{option:nd.singleValue},()=>[createTextVNode(toDisplayString(e.currentOptionLabel),1)])],32)):createCommentVNode(`v-if`,!0),nd.isPlaceholderVisible?(openBlock(),createBlock(`span`,{key:2,class:`multiselect__placeholder`,onMousedown:t[11]||=withModifiers((...t)=>e.toggle&&e.toggle(...t),[`prevent`])},[renderSlot(e.$slots,`placeholder`,{},()=>[createTextVNode(toDisplayString(e.placeholder),1)])],32)):createCommentVNode(`v-if`,!0)],512),createVNode(Transition,{name:`multiselect`},{default:withCtx(()=>[withDirectives(createVNode(`div`,{class:`multiselect__content-wrapper`,onFocus:t[12]||=(...t)=>e.activate&&e.activate(...t),tabindex:`-1`,onMousedown:t[13]||=withModifiers(()=>{},[`prevent`]),style:{maxHeight:e.optimizedHeight+`px`},ref:`list`},[createVNode(`ul`,{class:`multiselect__content`,style:nd.contentStyle,role:`listbox`,id:`listbox-`+e.id,"aria-multiselectable":e.multiple},[renderSlot(e.$slots,`beforeList`),e.multiple&&e.max===e.internalValue.length?(openBlock(),createBlock(`li`,_hoisted_4$16,[createVNode(`span`,_hoisted_5$12,[render
28Slot(e.$slots,`maxElements`,{},()=>[createTextVNode(`Maximum of `+toDisplayString(e.max)+` options selected. First remove a selected option to select another.`,1)])])])):createCommentVNode(`v-if`,!0),!e.max||e.internalValue.length<e.max?(openBlock(!0),createBlock(Fragment,{key:1},renderList(e.filteredOptions,(t,$)=>(openBlock(),createBlock(`li`,{class:`multiselect__element`,key:$,"aria-selected":e.isSelected(t),id:e.id+`-`+$,role:t&&(t.$isLabel||t.$isDisabled)?null:`option`},[t&&(t.$isLabel||t.$isDisabled)?createCommentVNode(`v-if`,!0):(openBlock(),createBlock(`span`,{key:0,class:[e.optionHighlight($,t),`multiselect__option`],onClick:withModifiers($=>e.select(t),[`stop`]),onMouseenter:withModifiers(t=>e.pointerSet($),[`self`]),"data-select":t&&t.isTag?e.tagPlaceholder:nd.selectLabelText,"data-selected":nd.selectedLabelText,"data-deselect":nd.deselectLabelText},[renderSlot(e.$slots,`option`,{option:t,search:e.search,index:$},()=>[createVNode(`span`,null,toDisplayString(e.getOptionLabel(t)),1)])],42,[`onClick`,`onMouseenter`,`data-select`,`data-selected`,`data-deselect`])),t&&(t.$isLabel||t.$isDisabled)?(openBlock(),createBlock(`span`,{key:1,"data-select":e.groupSelect&&nd.selectGroupLabelText,"data-deselect":e.groupSelect&&nd.deselectGroupLabelText,class:[e.groupHighlight($,t),`multiselect__option`],onMouseenter:withModifiers(t=>e.groupSelect&&e.pointerSet($),[`self`]),onMousedown:withModifiers($=>e.selectGroup(t),[`prevent`])},[renderSlot(e.$slots,`option`,{option:t,search:e.search,index:$},()=>[createVNode(`span`,null,toDisplayString(e.getOptionLabel(t)),1)])],42,[`data-select`,`data-deselect`,`onMouseenter`,`onMousedown`])):createCommentVNode(`v-if`,!0)],8,[`aria-selected`,`id`,`role`]))),128)):createCommentVNode(`v-if`,!0),withDirectives(createVNode(`li`,null,[createVNode(`span`,_hoisted_6$8,[renderSlot(e.$slots,`noResult`,{search:e.search},()=>[_hoisted_7$8])])],512),[[vShow,$.showNoResults&&e.filteredOptions.length===0&&e.search&&!$.loading]]),withDirectives(createVNode(`li`,null,[createVNode(`span`,_hoisted_8$5,[renderSlot(e.$slots,`noOptions`,{},()=>[_hoisted_9$4])])],512),[[vShow,$.showNoOptions&&(e.options.length===0||nd.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!$.loading]]),renderSlot(e.$slots,`afterList`)],12,[`id`,`aria-multiselectable`])],36),[[vShow,e.isOpen]])]),_:3})],42,[`tabindex`,`aria-owns`])}script.render=render;var _plugin_vue_export_helper_default=(e,t)=>{let $=e.__vccOpts||e;for(let[e,ed]of t)$[e]=ed;return $},_sfc_main$23={name:`ButtonComponent`,inheritAttrs:!1,props:{label:{type:String,required:!1,default:null},icon:{type:String,required:!1,default:null},to:{type:[Object,String],required:!1,default:null},link:{type:[Object,String],required:!1,default:null},text:{type:Boolean,required:!1,default:!1},large:{type:Boolean,required:!1,default:!1},error:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:null},fab:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1}},computed:{component(){let e=`button`;return this.link===null?this.to!==null&&(e=`nuxt-link`):e=`a`,e},href(){let e;return this.link!==null&&(e=typeof this.link==`object`?this.link.href:this.link),e},target(){let e;return this.link!==null&&(e=typeof this.link==`object`?this.link.targetBlank?`_blank`:null:`_blank`),e}},methods:{click(){this.$emit(`click-action`)}}},_hoisted_1$22={class:`btn__label`};function _sfc_render$23(e,t,$,ed,td,nd){return openBlock(),createBlock(resolveDynamicComponent(nd.component),{href:nd.href,to:$.to,target:nd.target,title:$.title,class:normalizeClass([`btn`,{"btn--text":$.text,"btn--fab":$.fab,"btn--large":$.large,"btn--error":$.error,"btn--loading":$.loading,"is-disabled":$.disabled}]),onClick:nd.click},{default:withCtx(()=>[$.icon===null?createCommentVNode(``,!0):(openBlock(),createElementBlock(`i`,{key:0,class:normalizeClass([`material-symbols btn__icon`,{"btn__icon--spaced":$.label!==null}])},toDisplayString($.icon),3)),createBaseVNode(`span`,_hoisted_1$22,toDisplayString($.label),1)]),_:1},8,[`href`,`to`,`target`,`title`,`class`,`onClick`])}var ButtonComponent_default=_plugin_vue_export_helper_default(_sfc_main$23,[[`render`,_sfc_render$23],[`__scopeId`,`data-v-d256e203`]]),require_lodash=__commonJSMin(((e,t)=>{init_dist$1(),(function(){var $,ed=`4.17.21`,td=200,nd=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,rd=`Expected a function`,id="Invalid `variable` option passed into `_.template`",ad=`__lodash_hash_undefined__`,od=
28500,sd=`__lodash_placeholder__`,cd=1,ld=2,ud=4,dd=1,fd=2,pd=1,md=2,hd=4,gd=8,_d=16,vd=32,yd=64,bd=128,xd=256,Sd=512,Cd=30,wd=`...`,Td=800,Ed=16,Dd=1,Od=2,kd=3,Ad=1/0,jd=9007199254740991,Md=17976931348623157e292,Nd=NaN,Pd=4294967295,Fd=Pd-1,Id=Pd>>>1,Ld=[[`ary`,bd],[`bind`,pd],[`bindKey`,md],[`curry`,gd],[`curryRight`,_d],[`flip`,Sd],[`partial`,vd],[`partialRight`,yd],[`rearg`,xd]],Rd=`[object Arguments]`,zd=`[object Array]`,Bd=`[object AsyncFunction]`,Vd=`[object Boolean]`,Hd=`[object Date]`,Ud=`[object DOMException]`,Wd=`[object Error]`,Gd=`[object Function]`,Kd=`[object GeneratorFunction]`,qd=`[object Map]`,Jd=`[object Number]`,Yd=`[object Null]`,Xd=`[object Object]`,Zd=`[object Promise]`,Qd=`[object Proxy]`,$d=`[object RegExp]`,ef=`[object Set]`,tf=`[object String]`,nf=`[object Symbol]`,rf=`[object Undefined]`,af=`[object WeakMap]`,of=`[object WeakSet]`,sf=`[object ArrayBuffer]`,cf=`[object DataView]`,lf=`[object Float32Array]`,uf=`[object Float64Array]`,df=`[object Int8Array]`,ff=`[object Int16Array]`,pf=`[object Int32Array]`,mf=`[object Uint8Array]`,hf=`[object Uint8ClampedArray]`,gf=`[object Uint16Array]`,_f=`[object Uint32Array]`,vf=/\b__p \+= '';/g,yf=/\b(__p \+=) '' \+/g,bf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xf=/&(?:amp|lt|gt|quot|#39);/g,Sf=/[&<>"']/g,Cf=RegExp(xf.source),wf=RegExp(Sf.source),Tf=/<%-([\s\S]+?)%>/g,Ef=/<%([\s\S]+?)%>/g,Df=/<%=([\s\S]+?)%>/g,Of=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kf=/^\w*$/,Af=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jf=/[\\^$.*+?()[\]{}|]/g,Mf=RegExp(jf.source),Nf=/^\s+/,Pf=/\s/,Ff=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,If=/\{\n\/\* \[wrapped with (.+)\] \*/,Lf=/,? & /,Rf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zf=/[()=,{}\[\]\/\s]/,Bf=/\\(\\)?/g,Vf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hf=/\w*$/,Uf=/^[-+]0x[0-9a-f]+$/i,Wf=/^0b[01]+$/i,Gf=/^\[object .+?Constructor\]$/,Kf=/^0o[0-7]+$/i,qf=/^(?:0|[1-9]\d*)$/,Jf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
287f]/g,Yf=/($^)/,Xf=/['\n\r\u2028\u2029\\]/g,Zf=`\\ud800-\\udfff`,Qf=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,$f=`\\u2700-\\u27bf`,em=`a-z\\xdf-\\xf6\\xf8-\\xff`,tm=`\\xac\\xb1\\xd7\\xf7`,nm=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,rm=`\\u2000-\\u206f`,im=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,am=`A-Z\\xc0-\\xd6\\xd8-\\xde`,om=`\\ufe0e\\ufe0f`,sm=tm+nm+rm+im,cm=`['â]`,lm=`[`+Zf+`]`,um=`[`+sm+`]`,dm=`[`+Qf+`]`,fm=`\\d+`,pm=`[`+$f+`]`,mm=`[`+em+`]`,hm=`[^`+Zf+sm+fm+$f+em+am+`]`,gm=`\\ud83c[\\udffb-\\udfff]`,_m=`(?:`+dm+`|`+gm+`)`,vm=`[^`+Zf+`]`,ym=`(?:\\ud83c[\\udde6-\\uddff]){2}`,bm=`[\\ud800-\\udbff][\\udc00-\\udfff]`,xm=`[`+am+`]`,Sm=`\\u200d`,Cm=`(?:`+mm+`|`+hm+`)`,wm=`(?:`+xm+`|`+hm+`)`,Tm=`(?:`+cm+`(?:d|ll|m|re|s|t|ve))?`,Em=`(?:`+cm+`(?:D|LL|M|RE|S|T|VE))?`,Dm=_m+`?`,Om=`[`+om+`]?`,km=`(?:`+Sm+`(?:`+[vm,ym,bm].join(`|`)+`)`+Om+Dm+`)*`,Am=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,jm=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Mm=Om+Dm+km,Nm=`(?:`+[pm,ym,bm].join(`|`)+`)`+Mm,Pm=`(?:`+[vm+dm+`?`,dm,ym,bm,lm].join(`|`)+`)`,Fm=RegExp(cm,`g`),Im=RegExp(dm,`g`),Lm=RegExp(gm+`(?=`+gm+`)|`+Pm+Mm,`g`),Rm=RegExp([xm+`?`+mm+`+`+Tm+`(?=`+[um,xm,`$`].join(`|`)+`)`,wm+`+`+Em+`(?=`+[um,xm+Cm,`$`].join(`|`)+`)`,xm+`?`+Cm+`+`+Tm,xm+`+`+Em,jm,Am,fm,Nm].join(`|`),`g`),zm=RegExp(`[`+Sm+Zf+Qf+om+`]`),Bm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vm=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Hm=-1,Um={};Um[lf]=Um[uf]=Um[df]=Um[ff]=Um[pf]=Um[mf]=Um[hf]=Um[gf]=Um[_f]=!0,Um[Rd]=Um[zd]=Um[sf]=Um[Vd]=Um[cf]=Um[Hd]=Um[Wd]=Um[Gd]=Um[qd]=Um[Jd]=Um[Xd]=Um[$d]=Um[ef]=Um[tf]=Um[af]=!1;var Wm={};Wm[Rd]=Wm[zd]=Wm[sf]=Wm[cf]=Wm[Vd]=Wm[Hd]=Wm[lf]=Wm[uf]=Wm[df]=Wm[ff]=Wm[pf]=Wm[qd]=Wm[Jd]=Wm[Xd]=Wm[$d]=Wm[ef]=Wm[tf]=Wm[nf]=Wm[mf]=Wm[hf]=Wm[gf]=Wm[_f]=!0,Wm[Wd]=Wm[Gd]=Wm[af]=!1;var Gm={Ã:`A`,Ã:`A`,Ã:`A`,Ã:`A`,Ã:`A`,Ã
:`A`,à :`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,Ã¥:`a`,Ã:`C`,ç:`c`,Ã:`D`,ð:`d`,Ã:`E`,Ã:`E`,Ã:`E`,Ã:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ã:`I`,Ã:`I`,Ã:`I`,Ã:`I`,ì:`i`,Ã:`i`,î:`i`,ï:`i`,Ã:`N`,ñ:`n`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ã:`U`,Ã:`U`,Ã:`U`,Ã:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ã:`Y`,ý:`y`,ÿ:`y`,Ã:`Ae`,æ:`ae`,Ã:`Th`,þ:`th`,Ã:`ss`,Ä:`A`,Ä:`A`,Ä:`A`,Ä:`a`,Ä:`a`,Ä
:`a`,Ä:`C`,Ä:`C`,Ä:`C`,Ä:`C`,Ä:`c`,Ä:`c`,Ä:`c`,Ä:`c`,Ä:`D`,Ä:`D`,Ä:`d`,Ä:`d`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`E`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`e`,Ä:`G`,Ä:`G`,Ä :`G`,Ä¢:`G`,Ä:`g`,Ä:`g`,Ä¡:`g`,Ä£:`g`,Ĥ:`H`,Ħ:`H`,Ä¥:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Ä®:`I`,İ:`I`,Ä©:`i`,Ä«:`i`,Ä:`i`,į:`i`,ı:`i`,Ä´:`J`,ĵ:`j`,Ķ:`K`,Ä·:`k`,ĸ:`k`,Ĺ:`L`,Ä»:`L`,Ľ:`L`,Ä¿:`L`,Å:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,Å:`l`,Å:`l`,Å:`N`,Å
:`N`,Å:`N`,Å:`N`,Å:`n`,Å:`n`,Å:`n`,Å:`n`,Å:`O`,Å:`O`,Å:`O`,Å:`o`,Å:`o`,Å:`o`,Å:`R`,Å:`R`,Å:`R`,Å:`r`,Å:`r`,Å:`r`,Å:`S`,Å:`S`,Å:`S`,Å :`S`,Å:`s`,Å:`s`,Å:`s`,Å¡:`s`,Å¢:`T`,Ť:`T`,Ŧ:`T`,Å£:`t`,Å¥:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Å®:`U`,Ű:`U`,Ų:`U`,Å©:`u`,Å«:`u`,Å:`u`,ů:`u`,ű:`u`,ų:`u`,Å´:`W`,ŵ:`w`,Ŷ:`Y`,Å·:`y`,Ÿ:`Y`,Ź:`Z`,Å»:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Å:`Oe`,Å:`oe`,Å:`'n`,Å¿:`s`},Km={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},qm={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},Jm={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Ym=parseFloat,Xm=parseInt,Zm=typeof global==`object`&&global&&global.Object===Object&&global,Qm=typeof self==`object`&&self&&self.Object===Object&&self,$m=Zm||Qm||Function(`return this`)(),eh=typeof e==`object`&&e&&!e.nodeType&&e,th=eh&&typeof t==`object`&&t&&!t.nodeType&&t,nh=th&&th.exports===eh,rh=nh&&Zm.process,ih=function(){try{return th&&th.require&&th.require(`util`).types||rh&&rh.binding&&rh.binding(`util`)}catch{}}(),ah=ih&&ih.isArrayBuffer,oh=ih&&ih.isDate,sh=ih&&ih.isMap,ch=ih&&ih.isRegExp,lh=ih&&ih.isSet,uh=ih&&ih.isTypedArray;function dh(e,t,$){switch($.length){case 0:return e.call(t);case 1:return e.call(t,$[0]);case 2:return e.call(t,$[0],$[1]);case 3:return e.call(t,$[0],$[1],$[2])}return e.apply(t,$)}function fh(e,t,$,ed){for(var td=-1,nd=e==null?0:e.length;++td<nd;){var rd=e[td];t(ed,rd,$(rd),e)}return ed}function ph(e,t){for(var $=-1,ed=e==null?0:e.length;++$<ed&&t(e[$],$,e)!==!1;);return e}function mh(e,t){for(var $=e==null?0:e.length;$--&&t(e[$],$,e)!==!1;);return e}function hh(e,t){for(var $=-1,ed=e==null?0:e.length;++$<ed;)if(!t(e[$],$,e))return!1;return!0}function gh(e,t){for(var $=-1,ed=e==null?0:e.length,td=0,nd=[];++$<ed;){var rd=e[$];t(rd,$,e)&&(nd[td++]=rd)}return nd}function _h(e,t){return!!(e!=null&&e.length)&&kh(e,t,0)>-1}function vh(e,t,$){for(var ed=-1,td=e==null?0:e.length;++ed<td;)if($(t,e[ed]))return!0;return!1}function yh(e,t){for(var $=-1,ed=e==null?0:e.length,td=Array(ed);++$<ed;)td[$]=t(e[$],$,e);return td}function bh(e,t){for(var $=-1,ed=t.length,td=e.length;++$<ed;)e[td+$]=t[$];return e}function xh(e,t,$,ed){var td=-1,nd=e==null?0:e.length;
vendor: 12,464 bytes, line 28
28for(ed&&nd&&($=e[++td]);++td<nd;)$=t($,e[td],td,e);return $}function Sh(e,t,$,ed){var td=e==null?0:e.length;for(ed&&td&&($=e[--td]);td--;)$=t($,e[td],td,e);return $}function Ch(e,t){for(var $=-1,ed=e==null?0:e.length;++$<ed;)if(t(e[$],$,e))return!0;return!1}var wh=Nh(`length`);function Th(e){return e.split(``)}function Eh(e){return e.match(Rf)||[]}function Dh(e,t,$){var ed;return $(e,function(e,$,td){if(t(e,$,td))return ed=$,!1}),ed}function Oh(e,t,$,ed){for(var td=e.length,nd=$+(ed?1:-1);ed?nd--:++nd<td;)if(t(e[nd],nd,e))return nd;return-1}function kh(e,t,$){return t===t?ag(e,t,$):Oh(e,jh,$)}function Ah(e,t,$,ed){for(var td=$-1,nd=e.length;++td<nd;)if(ed(e[td],t))return td;return-1}function jh(e){return e!==e}function Mh(e,t){var $=e==null?0:e.length;return $?Lh(e,t)/$:Nd}function Nh(e){return function(t){return t==null?$:t[e]}}function Ph(e){return function(t){return e==null?$:e[t]}}function Fh(e,t,$,ed,td){return td(e,function(e,td,nd){$=ed?(ed=!1,e):t($,e,td,nd)}),$}function Ih(e,t){var $=e.length;for(e.sort(t);$--;)e[$]=e[$].value;return e}function Lh(e,t){for(var ed,td=-1,nd=e.length;++td<nd;){var rd=t(e[td]);rd!==$&&(ed=ed===$?rd:ed+rd)}return ed}function Rh(e,t){for(var $=-1,ed=Array(e);++$<e;)ed[$]=t($);return ed}function zh(e,t){return yh(t,function(t){return[t,e[t]]})}function Bh(e){return e&&e.slice(0,lg(e)+1).replace(Nf,``)}function Vh(e){return function(t){return e(t)}}function Hh(e,t){return yh(t,function(t){return e[t]})}function Uh(e,t){return e.has(t)}function Wh(e,t){for(var $=-1,ed=e.length;++$<ed&&kh(t,e[$],0)>-1;);return $}function Gh(e,t){for(var $=e.length;$--&&kh(t,e[$],0)>-1;);return $}function Kh(e,t){for(var $=e.length,ed=0;$--;)e[$]===t&&++ed;return ed}var qh=Ph(Gm),Jh=Ph(Km);function Yh(e){return`\\`+Jm[e]}function Xh(e,t){return e==null?$:e[t]}function Zh(e){return zm.test(e)}function Qh(e){return Bm.test(e)}function $h(e){for(var t,$=[];!(t=e.next()).done;)$.push(t.value);return $}function eg(e){var t=-1,$=Array(e.size);return e.forEach(function(e,ed){$[++t]=[ed,e]}),$}function tg(e,t){return function($){return e(t($))}}function ng(e,t){for(var $=-1,ed=e.length,td=0,nd=[];++$<ed;){var rd=e[$];(rd===t||rd===sd)&&(e[$]=sd,nd[td++]=$)}return nd}function rg(e){var t=-1,$=Array(e.size);return e.forEach(function(e){$[++t]=e}),$}function ig(e){var t=-1,$=Array(e.size);return e.forEach(function(e){$[++t]=[e,e]}),$}function ag(e,t,$){for(var ed=$-1,td=e.length;++ed<td;)if(e[ed]===t)return ed;return-1}function og(e,t,$){for(var ed=$+1;ed--;)if(e[ed]===t)return ed;return ed}function sg(e){return Zh(e)?dg(e):wh(e)}function cg(e){return Zh(e)?fg(e):Th(e)}function lg(e){for(var t=e.length;t--&&Pf.test(e.charAt(t)););return t}var ug=Ph(qm);function dg(e){for(var t=Lm.lastIndex=0;Lm.test(e);)++t;return t}function fg(e){return e.match(Lm)||[]}function pg(e){return e.match(Rm)||[]}var mg=(function e(t){t=t==null?$m:mg.defaults($m.Object(),t,mg.pick($m,Vm));var Pf=t.Array,Rf=t.Date,Zf=t.Error,Qf=t.Function,$f=t.Math,em=t.Object,tm=t.RegExp,nm=t.String,rm=t.TypeError,im=Pf.prototype,am=Qf.prototype,om=em.prototype,sm=t[`__core-js_shared__`],cm=am.toString,lm=om.hasOwnProperty,um=0,dm=function(){var e=/[^.]+$/.exec(sm&&sm.keys&&sm.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),fm=om.toString,pm=cm.call(em),mm=$m._,hm=tm(`^`+cm.call(lm).replace(jf,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),gm=nh?t.Buffer:$,_m=t.Symbol,vm=t.Uint8Array,ym=gm?gm.allocUnsafe:$,bm=tg(em.getPrototypeOf,em),xm=em.create,Sm=om.propertyIsEnumerable,Cm=im.splice,wm=_m?_m.isConcatSpreadable:$,Tm=_m?_m.iterator:$,Em=_m?_m.toStringTag:$,Dm=function(){try{var e=Uy(em,`defineProperty`);return e({},``,{}),e}catch{}}(),Om=t.clearTimeout!==$m.clearTimeout&&t.clearTimeout,km=Rf&&Rf.now!==$m.Date.now&&Rf.now,Am=t.setTimeout!==$m.setTimeout&&t.setTimeout,jm=$f.ceil,Mm=$f.floor,Nm=em.getOwnPropertySymbols,Pm=gm?gm.isBuffer:$,Lm=t.isFinite,Rm=im.join,zm=tg(em.keys,em),Bm=$f.max,Gm=$f.min,Km=Rf.now,qm=t.parseInt,Jm=$f.random,Zm=im.reverse,Qm=Uy(t,`DataView`),eh=Uy(t,`Map`),th=Uy(t,`Promise`),rh=Uy(t,`Set`),ih=Uy(t,`WeakMap`),wh=Uy(em,`create`),Th=ih&&new ih,Ph={},ag=yx(Qm),dg=yx(eh),fg=yx(th),hg=yx(rh),gg=yx(ih),_g=_m?_m.prototype:$,vg=_g?_g.valueOf:$,yg=_g?_g.toString:$;function bg(e){if(fw(e)&&!YC(e)&&!(e instanceof wg)){if(e instanceof Cg)return e;if(lm.call(e,`__wrapped__`))return xx(e)}return new Cg(e)}var xg=function(){function e(){}return function(t){if(!dw(t))return{};if(xm)return xm(t);e.prototype=t;var ed=new e;return e.prototype=$,ed}}();function Sg(){}function Cg(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=$}bg.templateSettings={escape:Tf,evaluate:Ef,interpolate:Df,variable:``,imports:{_:bg}},bg.prototype=Sg.prototype,bg.prototype.constructor=bg,Cg.prototype=xg(Sg.prototype),Cg.prototype.constructor=Cg;function wg(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pd,this.__views__=[]}function Tg(){var e=new wg(this.__wrapped__);return e.__actions__=ey(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ey(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ey(this.__views__),e}function Eg(){if(this.__filtered__){var e=new wg(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Dg(){var e=this.__wrapped__.value(),t=this.__dir__,$=YC(e),ed=t<0,td=$?e.length:0,nd=Jy(0,td,this.__views__),rd=nd.start,id=nd.end,ad=id-rd,od=ed?id:rd-1,sd=this.__iteratees__,cd=sd.length,ld=0,ud=Gm(ad,this.__takeCount__);if(!$||!ed&&td==ad&&ud==ad)return Fv(e,this.__actions__);var dd=[];outer:for(;ad--&&ld<ud;){od+=t;for(var fd=-1,pd=e[od];++fd<cd;){var md=sd[fd],hd=md.iteratee,gd=md.type,_d=hd(pd);if(gd==Od)pd=_d;else if(!_d){if(gd==Dd)continue outer;break outer}}dd[ld++]=pd}return dd}wg.prototype=xg(Sg.prototype),wg.prototype.constructor=wg;function Og(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}function kg(){this.__data__=wh?wh(null):{},this.size=0}function Ag(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function jg(e){var t=this.__data__;if(wh){var ed=t[e];return ed===ad?$:ed}return lm.call(t,e)?t[e]:$}function Mg(e){var t=this.__data__;return wh?t[e]!==$:lm.call(t,e)}function Ng(e,t){var ed=this.__data__;return this.size+=+!this.has(e),ed[e]=wh&&t===$?ad:t,this}Og.prototype.clear=kg,Og.prototype.delete=Ag,Og.prototype.get=jg,Og.prototype.has=Mg,Og.prototype.set=Ng;function Pg(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}function Fg(){this.__data__=[],this.size=0}function Ig(e){var t=this.__data__,$=s_(t,e);return $<0?!1:($==t.length-1?t.pop():Cm.call(t,$,1),--this.size,!0)}function Lg(e){var t=this.__data__,ed=s_(t,e);return ed<0?$:t[ed][1]}function Rg(e){return s_(this.__data__,e)>-1}function zg(e,t){var $=this.__data__,ed=s_($,e);return ed<0?(++this.size,$.push([e,t])):$[ed][1]=t,this}Pg.prototype.clear=Fg,Pg.prototype.delete=Ig,Pg.prototype.get=Lg,Pg.prototype.has=Rg,Pg.prototype.set=zg;function Bg(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}function Vg(){this.size=0,this.__data__={hash:new Og,map:new(eh||Pg),string:new Og}}function Hg(e){var t=Vy(this,e).delete(e);return this.size-=+!!t,t}function Ug(e){return Vy(this,e).get(e)}function Wg(e){return Vy(this,e).has(e)}function Gg(e,t){var $=Vy(this,e),ed=$.size;return $.set(e,t),this.size+=$.size==ed?0:1,this}Bg.prototype.clear=Vg,Bg.prototype.delete=Hg,Bg.prototype.get=Ug,Bg.prototype.has=Wg,Bg.prototype.set=Gg;function Kg(e){var t=-1,$=e==null?0:e.length;for(this.__data__=new Bg;++t<$;)this.add(e[t])}function qg(e){return this.__data__.set(e,ad),this}function Jg(e){return this.__data__.has(e)}Kg.prototype.add=Kg.prototype.push=qg,Kg.prototype.has=Jg;function Yg(e){this.size=(this.__data__=new Pg(e)).size}function Xg(){this.__data__=new Pg,this.size=0}function Zg(e){var t=this.__data__,$=t.delete(e);return this.size=t.size,$}function Qg(e){return this.__data__.get(e)}function $g(e){return this.__data__.has(e)}function e_(e,t){var $=this.__data__;if($ instanceof Pg){var ed=$.__data__;if(!eh||ed.length<td-1)return ed.push([e,t]),this.size=++$.size,this;$=this.__data__=new Bg(ed)}return $.set(e,t),this.size=$.size,this}Yg.prototype.clear=Xg,Yg.prototype.delete=Zg,Yg.prototype.get=Qg,Yg.prototype.has=$g,Yg.prototype.set=e_;function t_(e,t){var $=YC(e),ed=!$&&JC(e),td=!$&&!ed&&ew(e),nd=!$&&!ed&&!td&&Dw(e),rd=$||ed||td||nd,id=rd?Rh(e.length,nm):[],ad=id.length;for(var od in e)(t||lm.call(e,od))&&!(rd&&(od==`length`||td&&(od==`offset`||od==`parent`)||nd&&(od==`buffer`||od==`byteLength`||od==`byteOffset`)||Hb(od,ad)))&&id.push(od);return id}function n_(e){var t=e.length;return t?e[mv(0,t-1)]:$}function r_(e,t){return gx(ey(e),p_(t,0,e.length))}function i_(e){return gx(ey(e))}function a_(e,t,ed){(ed!==$&&!GC(e[t],ed)||ed===$&&!(t in e))&&d_(e,t,ed)}function o_(e,t,ed){var td=e[t];(!(lm.call(e,t)&&GC(td,ed))||ed===$&&!(t in e))&&d_(e,t,ed)}function s_(e,t){for(var $=e.length;$--;)if(GC(e[$][0],t))return $;return-1}function c_(e,t,$,ed){return y_(e,function(e,td,nd){t(ed,e,$(e),nd)}),ed}function l_(e,t){return e&&ty(t,lT(t),e)}function u_(e,t){return e&&ty(t,uT(t),e)}function d_(e,t,$){t==`__proto__`&&Dm?Dm(e,t,{configurable:!0,enumerable:!0,value:$,writable:!0}):e[t]=$}function f_(e,t){for(var ed=-1,td=t.length,nd=Pf(td),rd=e==null;++ed<td;)nd[ed]=rd?$:rT(e,t[ed]);return nd}function p_(e,t,ed){return e===e&&(ed!==$&&(e=e<=ed?e:ed),t!==$&&(e=e>=t?e:t)),e}function m_(e,t,ed,td,nd,rd){var id,ad=t&cd,od=t&ld,sd=t&ud;if(ed&&(id=nd?ed(e,td,nd,rd):ed(e)),id!==$)return id;if(!dw(e))return e;var dd=YC(e);if(dd){if(id=Zy(e),!ad)return ey(e,id)}else{var fd=qy(e),pd=fd==Gd||fd==Kd;if(ew(e))return Wv(e,ad);if(fd==Xd||fd==Rd||pd&&!nd){if(id=od||pd?{}:Qy(e),!ad)return od?ry(e,u_(id,e)):ny(e,l_(id,e))}else{if(!Wm[fd])return nd?e:{};id=$y(e,fd,ad)}}rd||=new Yg;var md=rd.get(e);if(md)return md;rd.set(e,id),ww(e)?e.forEach(function($){id.add(m_($,t,ed,$,e,rd))}):pw(e)&&e.forEach(function($,td){id.set(td,m_($,t,ed,td,e,rd))});var hd=dd?$:(sd?od?Iy:Fy:od?uT:lT)(e);return ph(hd||e,function($,td){hd&&(td=$,$=e[td]),o_(id,td,m_($,t,ed,td,e,rd))}),id}function h_(e){var t=lT(e);return function($){return g_($,e,t)}}function g_(e,t,ed){var td=ed.length;if(e==null)return!td;for(e=em(e);td--;){var nd=ed[td],rd=t[nd],id=e[nd];if(id===$&&!(nd in e)||!rd(id))return!1}return!0}function __(e,t,ed){if(typeof e!=`function`)throw new rm(rd);return fx(function(){e.apply($,ed)},t)}function v_(e,t,$,ed){var nd=-1,rd=_h,id=!0,ad=e.length,od=[],sd=t.length;if(!ad)return od;$&&(t=yh(t,Vh($))),ed?(rd=vh,id=!1):t.length>=td&&(rd=Uh,id=!1,t=new Kg(t));outer:for(;++nd<ad;){var cd=e[nd],ld=$==null?cd:$(cd);if(cd=ed||cd!==0?cd:0,id&&ld===ld){for(var ud=sd;ud--;)if(t[ud]===ld)continue outer;od.push(cd)}else rd(t,ld,ed)||od.push(cd)}return od}var y_=oy(O_),b_=oy(k_,!0);function x_(e,t){var $=!0;return y_(e,function(e,ed,td){return $=!!t(e,ed,td),$}),$}function S_(e,t,ed){for(var td=-1,nd=e.length;++td<nd;){var rd=e[td],id=t(rd);if(id!=null&&(ad===$?id===id&&!Ew(id):ed(id,ad)))var ad=id,od=rd}return od}function C_(e,t,ed,td){var nd=e.length;for(ed=Fw(ed),ed<0&&(ed=-ed>nd?0:nd+ed),td=td===$||td>nd?nd:Fw(td),td<0&&(td+=nd),td=ed>td?0:Iw(td);ed<td;)e[ed++]=t;return e}function w_(e,t){var $=[];return y_(e,function(e,ed,td){t(e,ed,td)&&$.push(e)}),$}function T_(e,t,$,ed,td){var nd=-1,rd=e.length;for($||=zb,td||=[];++nd<rd;){var id=e[nd];t>0&&$(id)?t>1?T_(id,t-1,$,ed,td):bh(td,id):ed||(td[td.length]=id)}return td}var E_=sy(),D_=sy(!0);function O_(e,t){return e&&E_(e,t,lT)}function k_(e,t){return e&&D_(e,t,lT)}function A_(e,t){return gh(t,function(t){return cw(e[t])})}function j_(e,t){t=Bv(t,e);for(var ed=0,td=t.length;e!=null&&ed<td;)e=e[vx(t[ed++])];return ed&&ed==td?e:$}function M_(e,t,$){var ed=t(e);return YC(e)?ed:bh(ed,$(e))}function N_(e){return e==null?e===$?rf:Yd:Em&&Em in em(e)?Wy(e):ox(e)}function P_(e,t){return e>t}function F_(e,t){return e!=null&&lm.call(e,t)}function I_(e,t){return e!=null&&t in em(e)}function L_(e,t,$){return e>=Gm(t,$)&&e<Bm(t,$)}function R_(e,t,ed){for(var td=ed?vh:_h,nd=e[0].length,rd=e.length,id=rd,ad=Pf(rd),od=1/0,sd=[];id--;){var cd=e[id];id&&t&&(cd=yh(cd,Vh(t))),od=Gm(cd.length,od),ad[id]=!ed&&(t||nd>=120&&cd.length>
28=120)?new Kg(id&&cd):$}cd=e[0];var ld=-1,ud=ad[0];outer:for(;++ld<nd&&sd.length<od;){var dd=cd[ld],fd=t?t(dd):dd;if(dd=ed||dd!==0?dd:0,!(ud?Uh(ud,fd):td(sd,fd,ed))){for(id=rd;--id;){var pd=ad[id];if(!(pd?Uh(pd,fd):td(e[id],fd,ed)))continue outer}ud&&ud.push(fd),sd.push(dd)}}return sd}function z_(e,t,$,ed){return O_(e,function(e,td,nd){t(ed,$(e),td,nd)}),ed}function B_(e,t,ed){t=Bv(t,e),e=cx(e,t);var td=e==null?e:e[vx(Kx(t))];return td==null?$:dh(td,e,ed)}function V_(e){return fw(e)&&N_(e)==Rd}function H_(e){return fw(e)&&N_(e)==sf}function U_(e){return fw(e)&&N_(e)==Hd}function W_(e,t,$,ed,td){return e===t?!0:e==null||t==null||!fw(e)&&!fw(t)?e!==e&&t!==t:G_(e,t,$,ed,W_,td)}function G_(e,t,$,ed,td,nd){var rd=YC(e),id=YC(t),ad=rd?zd:qy(e),od=id?zd:qy(t);ad=ad==Rd?Xd:ad,od=od==Rd?Xd:od;var sd=ad==Xd,cd=od==Xd,ld=ad==od;if(ld&&ew(e)){if(!ew(t))return!1;rd=!0,sd=!1}if(ld&&!sd)return nd||=new Yg,rd||Dw(e)?jy(e,t,$,ed,td,nd):My(e,t,ad,$,ed,td,nd);if(!($&dd)){var ud=sd&&lm.call(e,`__wrapped__`),fd=cd&&lm.call(t,`__wrapped__`);if(ud||fd){var pd=ud?e.value():e,md=fd?t.value():t;return nd||=new Yg,td(pd,md,$,ed,nd)}}return ld?(nd||=new Yg,Ny(e,t,$,ed,td,nd)):!1}function K_(e){return fw(e)&&qy(e)==qd}function q_(e,t,ed,td){var nd=ed.length,rd=nd,id=!td;if(e==null)return!rd;for(e=em(e);nd--;){var ad=ed[nd];if(id&&ad[2]?ad[1]!==e[ad[0]]:!(ad[0]in e))return!1}for(;++nd<rd;){ad=ed[nd];var od=ad[0],sd=e[od],cd=ad[1];if(id&&ad[2]){if(sd===$&&!(od in e))return!1}else{var ld=new Yg;if(td)var ud=td(sd,cd,od,e,t,ld);if(!(ud===$?W_(cd,sd,dd|fd,td,ld):ud))return!1}}return!0}function J_(e){return!dw(e)||Qb(e)?!1:(cw(e)?hm:Gf).test(yx(e))}function Y_(e){return fw(e)&&N_(e)==$d}function X_(e){return fw(e)&&qy(e)==ef}function Z_(e){return fw(e)&&uw(e.length)&&!!Um[N_(e)]}function Q_(e){return typeof e==`function`?e:e==null?vE:typeof e==`object`?YC(e)?iv(e[0],e[1]):rv(e):jE(e)}function $_(e){if(!ex(e))return zm(e);var t=[];for(var $ in em(e))lm.call(e,$)&&$!=`constructor`&&t.push($);return t}function ev(e){if(!dw(e))return ax(e);var t=ex(e),$=[];for(var ed in e)ed==`constructor`&&(t||!lm.call(e,ed))||$.push(ed);return $}function tv(e,t){return e<t}function nv(e,t){var $=-1,ed=ZC(e)?Pf(e.length):[];return y_(e,function(e,td,nd){ed[++$]=t(e,td,nd)}),ed}function rv(e){var t=Hy(e);return t.length==1&&t[0][2]?nx(t[0][0],t[0][1]):function($){return $===e||q_($,e,t)}}function iv(e,t){return Jb(e)&&tx(t)?nx(vx(e),t):function(ed){var td=rT(ed,e);return td===$&&td===t?aT(ed,e):W_(t,td,dd|fd)}}function av(e,t,ed,td,nd){e!==t&&E_(t,function(rd,id){if(nd||=new Yg,dw(rd))ov(e,t,id,ed,av,td,nd);else{var ad=td?td(ux(e,id),rd,id+``,e,t,nd):$;ad===$&&(ad=rd),a_(e,id,ad)}},uT)}function ov(e,t,ed,td,nd,rd,id){var ad=ux(e,ed),od=ux(t,ed),sd=id.get(od);if(sd){a_(e,ed,sd);return}var cd=rd?rd(ad,od,ed+``,e,t,id):$,ld=cd===$;if(ld){var ud=YC(od),dd=!ud&&ew(od),fd=!ud&&!dd&&Dw(od);cd=od,ud||dd||fd?YC(ad)?cd=ad:QC(ad)?cd=ey(ad):dd?(ld=!1,cd=Wv(od,!0)):fd?(ld=!1,cd=Yv(od,!0)):cd=[]:xw(od)||JC(od)?(cd=ad,JC(ad)?cd=Rw(ad):(!dw(ad)||cw(ad))&&(cd=Qy(od))):ld=!1}ld&&(id.set(od,cd),nd(cd,od,td,rd,id),id.delete(od)),a_(e,ed,cd)}function sv(e,t){var ed=e.length;if(ed)return t+=t<0?ed:0,Hb(t,ed)?e[t]:$}function cv(e,t,$){t=t.length?yh(t,function(e){return YC(e)?function(t){return j_(t,e.length===1?e[0]:e)}:e}):[vE];var ed=-1;return t=yh(t,Vh(By())),Ih(nv(e,function(e,$,td){return{criteria:yh(t,function(t){return t(e)}),index:++ed,value:e}}),function(e,t){return Zv(e,t,$)})}function lv(e,t){return uv(e,t,function(t,$){return aT(e,$)})}function uv(e,t,$){for(var ed=-1,td=t.length,nd={};++ed<td;){var rd=t[ed],id=j_(e,rd);$(id,rd)&&bv(nd,Bv(rd,e),id)}return nd}function dv(e){return function(t){return j_(t,e)}}function fv(e,t,$,ed){var td=ed?Ah:kh,nd=-1,rd=t.length,id=e;for(e===t&&(t=ey(t)),$&&(id=yh(e,Vh($)));++nd<rd;)for(var ad=0,od=t[nd],sd=$?$(od):od;(ad=td(id,sd,ad,ed))>-1;)id!==e&&Cm.call(id,ad,1),Cm.call(e,ad,1);return e}function pv(e,t){for(var $=e?t.length:0,ed=$-1;$--;){var td=t[$];if($==ed||td!==nd){var nd=td;Hb(td)?Cm.call(e,td,1):Mv(e,td)}}return e}function mv(e,t){return e+Mm(Jm()*(t-e+1))}function hv(e,t,$,ed){for(var td=-1,nd=Bm(jm((t-e)/($||1)),0),rd=Pf(nd);nd--;)rd[ed?nd:++td]=e,e+=$;return rd}
vendor: 49,446 bytes, lines 28-47
28function gv(e,t){var $=``;if(!e||t<1||t>jd)return $;do t%2&&($+=e),t=Mm(t/2),t&&(e+=e);while(t);return $}function _v(e,t){return px(sx(e,t,vE),e+``)}function vv(e){return n_(OT(e))}function yv(e,t){var $=OT(e);return gx($,p_(t,0,$.length))}function bv(e,t,ed,td){if(!dw(e))return e;t=Bv(t,e);for(var nd=-1,rd=t.length,id=rd-1,ad=e;ad!=null&&++nd<rd;){var od=vx(t[nd]),sd=ed;if(od===`__proto__`||od===`constructor`||od===`prototype`)return e;if(nd!=id){var cd=ad[od];sd=td?td(cd,od,ad):$,sd===$&&(sd=dw(cd)?cd:Hb(t[nd+1])?[]:{})}o_(ad,od,sd),ad=ad[od]}return e}var xv=Th?function(e,t){return Th.set(e,t),e}:vE,Sv=Dm?function(e,t){return Dm(e,`toString`,{configurable:!0,enumerable:!1,value:mE(t),writable:!0})}:vE;function Cv(e){return gx(OT(e))}function wv(e,t,$){var ed=-1,td=e.length;t<0&&(t=-t>td?0:td+t),$=$>td?td:$,$<0&&($+=td),td=t>$?0:$-t>>>0,t>>>=0;for(var nd=Pf(td);++ed<td;)nd[ed]=e[ed+t];return nd}function Tv(e,t){var $;return y_(e,function(e,ed,td){return $=t(e,ed,td),!$}),!!$}function Ev(e,t,$){var ed=0,td=e==null?ed:e.length;if(typeof t==`number`&&t===t&&td<=Id){for(;ed<td;){var nd=ed+td>>>1,rd=e[nd];rd!==null&&!Ew(rd)&&($?rd<=t:rd<t)?ed=nd+1:td=nd}return td}return Dv(e,t,vE,$)}function Dv(e,t,ed,td){var nd=0,rd=e==null?0:e.length;if(rd===0)return 0;t=ed(t);for(var id=t!==t,ad=t===null,od=Ew(t),sd=t===$;nd<rd;){var cd=Mm((nd+rd)/2),ld=ed(e[cd]),ud=ld!==$,dd=ld===null,fd=ld===ld,pd=Ew(ld);if(id)var md=td||fd;else md=sd?fd&&(td||ud):ad?fd&&ud&&(td||!dd):od?fd&&ud&&!dd&&(td||!pd):dd||pd?!1:td?ld<=t:ld<t;md?nd=cd+1:rd=cd}return Gm(rd,Fd)}function Ov(e,t){for(var $=-1,ed=e.length,td=0,nd=[];++$<ed;){var rd=e[$],id=t?t(rd):rd;if(!$||!GC(id,ad)){var ad=id;nd[td++]=rd===0?0:rd}}return nd}function kv(e){return typeof e==`number`?e:Ew(e)?Nd:+e}function Av(e){if(typeof e==`string`)return e;if(YC(e))return yh(e,Av)+``;if(Ew(e))return yg?yg.call(e):``;var t=e+``;return t==`0`&&1/e==-Ad?`-0`:t}function jv(e,t,$){var ed=-1,nd=_h,rd=e.length,id=!0,ad=[],od=ad;if($)id=!1,nd=vh;else if(rd>=td){var sd=t?null:Ty(e);if(sd)return rg(sd);id=!1,nd=Uh,od=new Kg}else od=t?[]:ad;outer:for(;++ed<rd;){var cd=e[ed],ld=t?t(cd):cd;if(cd=$||cd!==0?cd:0,id&&ld===ld){for(var ud=od.length;ud--;)if(od[ud]===ld)continue outer;t&&od.push(ld),ad.push(cd)}else nd(od,ld,$)||(od!==ad&&od.push(ld),ad.push(cd))}return ad}function Mv(e,t){return t=Bv(t,e),e=cx(e,t),e==null||delete e[vx(Kx(t))]}function Nv(e,t,$,ed){return bv(e,t,$(j_(e,t)),ed)}function Pv(e,t,$,ed){for(var td=e.length,nd=ed?td:-1;(ed?nd--:++nd<td)&&t(e[nd],nd,e););return $?wv(e,ed?0:nd,ed?nd+1:td):wv(e,ed?nd+1:0,ed?td:nd)}function Fv(e,t){var $=e;return $ instanceof wg&&($=$.value()),xh(t,function(e,t){return t.func.apply(t.thisArg,bh([e],t.args))},$)}function Iv(e,t,$){var ed=e.length;if(ed<2)return ed?jv(e[0]):[];for(var td=-1,nd=Pf(ed);++td<ed;)for(var rd=e[td],id=-1;++id<ed;)id!=td&&(nd[td]=v_(nd[td]||rd,e[id],t,$));return jv(T_(nd,1),t,$)}function Lv(e,t,ed){for(var td=-1,nd=e.length,rd=t.length,id={};++td<nd;){var ad=td<rd?t[td]:$;ed(id,e[td],ad)}return id}function Rv(e){return QC(e)?e:[]}function zv(e){return typeof e==`function`?e:vE}function Bv(e,t){return YC(e)?e:Jb(e,t)?[e]:_x(Bw(e))}var Vv=_v;function Hv(e,t,ed){var td=e.length;return ed=ed===$?td:ed,!t&&ed>=td?e:wv(e,t,ed)}var Uv=Om||function(e){return $m.clearTimeout(e)};function Wv(e,t){if(t)return e.slice();var $=e.length,ed=ym?ym($):new e.constructor($);return e.copy(ed),ed}function Gv(e){var t=new e.constructor(e.byteLength);return new vm(t).set(new vm(e)),t}function Kv(e,t){var $=t?Gv(e.buffer):e.buffer;return new e.constructor($,e.byteOffset,e.byteLength)}function qv(e){var t=new e.constructor(e.source,Hf.exec(e));return t.lastIndex=e.lastIndex,t}function Jv(e){return vg?em(vg.call(e)):{}}function Yv(e,t){var $=t?Gv(e.buffer):e.buffer;return new e.constructor($,e.byteOffset,e.length)}function Xv(e,t){if(e!==t){var ed=e!==$,td=e===null,nd=e===e,rd=Ew(e),id=t!==$,ad=t===null,od=t===t,sd=Ew(t);if(!ad&&!sd&&!rd&&e>t||rd&&id&&od&&!ad&&!sd||td&&id&&od||!ed&&od||!nd)return 1;if(!td&&!rd&&!sd&&e<t||sd&&ed&&nd&&!td&&!rd||ad&&ed&&nd||!id&&nd||!od)return-1}return 0}function Zv(e,t,$){for(var ed=-1,td=e.criteria,nd=t.criteria,rd=td.length,id=$.length;++ed<rd;){var ad=Xv(td[ed],nd[ed]);if(ad)return ed>=id?ad:ad*($[ed]==`desc`?-1:1)}return e.index-t.index}function Qv(e,t,$,ed){for(var td=-1,nd=e.length,rd=$.length,id=-1,ad=t.length,od=Bm(nd-rd,0),sd=Pf(ad+od),cd=!ed;++id<ad;)sd[id]=t[id];for(;++td<rd;)(cd||td<nd)&&(sd[$[td]]=e[td]);for(;od--;)sd[id++]=e[td++];return sd}function $v(e,t,$,ed){for(var td=-1,nd=e.length,rd=-1,id=$.length,ad=-1,od=t.length,sd=Bm(nd-id,0),cd=Pf(sd+od),ld=!ed;++td<sd;)cd[td]=e[td];for(var ud=td;++ad<od;)cd[ud+ad]=t[ad];for(;++rd<id;)(ld||td<nd)&&(cd[ud+$[rd]]=e[td++]);return cd}function ey(e,t){var $=-1,ed=e.length;for(t||=Pf(ed);++$<ed;)t[$]=e[$];return t}function ty(e,t,ed,td){var nd=!ed;ed||={};for(var rd=-1,id=t.length;++rd<id;){var ad=t[rd],od=td?td(ed[ad],e[ad],ad,ed,e):$;od===$&&(od=e[ad]),nd?d_(ed,ad,od):o_(ed,ad,od)}return ed}function ny(e,t){return ty(e,Gy(e),t)}function ry(e,t){return ty(e,Ky(e),t)}function iy(e,t){return function($,ed){var td=YC($)?fh:c_,nd=t?t():{};return td($,e,By(ed,2),nd)}}function ay(e){return _v(function(t,ed){var td=-1,nd=ed.length,rd=nd>1?ed[nd-1]:$,id=nd>2?ed[2]:$;for(rd=e.length>3&&typeof rd==`function`?(nd--,rd):$,id&&Kb(ed[0],ed[1],id)&&(rd=nd<3?$:rd,nd=1),t=em(t);++td<nd;){var ad=ed[td];ad&&e(t,ad,td,rd)}return t})}function oy(e,t){return function($,ed){if($==null)return $;if(!ZC($))return e($,ed);for(var td=$.length,nd=t?td:-1,rd=em($);(t?nd--:++nd<td)&&ed(rd[nd],nd,rd)!==!1;);return $}}function sy(e){return function(t,$,ed){for(var td=-1,nd=em(t),rd=ed(t),id=rd.length;id--;){var ad=rd[e?id:++td];if($(nd[ad],ad,nd)===!1)break}return t}}function cy(e,t,$){var ed=t&pd,td=dy(e);function nd(){return(this&&this!==$m&&this instanceof nd?td:e).apply(ed?$:this,arguments)}return nd}function ly(e){return function(t){t=Bw(t);var ed=Zh(t)?cg(t):$,td=ed?ed[0]:t.charAt(0),nd=ed?Hv(ed,1).join(``):t.slice(1);return td[e]()+nd}}function uy(e){return function(t){return xh(lE(FT(t).replace(Fm,``)),e,``)}}function dy(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var $=xg(e.prototype),ed=e.apply($,t);return dw(ed)?ed:$}}function fy(e,t,ed){var td=dy(e);function nd(){for(var rd=arguments.length,id=Pf(rd),ad=rd,od=zy(nd);ad--;)id[ad]=arguments[ad];var sd=rd<3&&id[0]!==od&&id[rd-1]!==od?[]:ng(id,od);return rd-=sd.length,rd<ed?Cy(e,t,hy,nd.placeholder,$,id,sd,$,$,ed-rd):dh(this&&this!==$m&&this instanceof nd?td:e,this,id)}return nd}function py(e){return function(t,ed,td){var nd=em(t);if(!ZC(t)){var rd=By(ed,3);t=lT(t),ed=function(e){return rd(nd[e],e,nd)}}var id=e(t,ed,td);return id>-1?nd[rd?t[id]:id]:$}}function my(e){return Py(function(t){var ed=t.length,td=ed,nd=Cg.prototype.thru;for(e&&t.reverse();td--;){var id=t[td];if(typeof id!=`function`)throw new rm(rd);if(nd&&!ad&&Ry(id)==`wrapper`)var ad=new Cg([],!0)}for(td=ad?td:ed;++td<ed;){id=t[td];var od=Ry(id),sd=od==`wrapper`?Ly(id):$;ad=sd&&Zb(sd[0])&&sd[1]==(bd|gd|vd|xd)&&!sd[4].length&&sd[9]==1?ad[Ry(sd[0])].apply(ad,sd[3]):id.length==1&&Zb(id)?ad[od]():ad.thru(id)}return function(){var e=arguments,$=e[0];if(ad&&e.length==1&&YC($))return ad.plant($).value();for(var td=0,nd=ed?t[td].apply(this,e):$;++td<ed;)nd=t[td].call(this,nd);return nd}})}function hy(e,t,ed,td,nd,rd,id,ad,od,sd){var cd=t&bd,ld=t&pd,ud=t&md,dd=t&(gd|_d),fd=t&Sd,hd=ud?$:dy(e);function vd(){for(var $=arguments.length,pd=Pf($),md=$;md--;)pd[md]=arguments[md];if(dd)var gd=zy(vd),_d=Kh(pd,gd);if(td&&(pd=Qv(pd,td,nd,dd)),rd&&(pd=$v(pd,rd,id,dd)),$-=_d,dd&&$<sd){var yd=ng(pd,gd);return Cy(e,t,hy,vd.placeholder,ed,pd,yd,ad,od,sd-$)}var bd=ld?ed:this,xd=ud?bd[e]:e;return $=pd.length,ad?pd=lx(pd,ad):fd&&$>1&&pd.reverse(),cd&&od<$&&(pd.length=od),this&&this!==$m&&this instanceof vd&&(xd=hd||dy(xd)),xd.apply(bd,pd)}return vd}function gy(e,t){return function($,ed){return z_($,e,t(ed),{})}}function _y(e,t){return function(ed,td){var nd;if(ed===$&&td===$)return t;if(ed!==$&&(nd=ed),td!==$){if(nd===$)return td;typeof ed==`string`||typeof td==`string`?(ed=Av(ed),td=Av(td)):(ed=kv(ed),td=kv(td)),nd=e(ed,td)}return nd}}function vy(e){return Py(function(t){return t=yh(t,Vh(By())),_v(function($){var ed=this;return e(t,function(e){return dh(e,ed,$)})})})}function yy(e,t){t=t===$?` `:Av(t);var ed=t.length;if(ed<2)return ed?gv(t,e):t;var td=gv(t,jm(e/sg(t)));return Zh(t)?Hv(cg(td),0,e).join(``):td.slice(0,e)}function by(e,t,$,ed){var td=t&pd,nd=dy(e);function rd(){for(var t=-1,id=arguments.length,ad=-1,od=ed.length,sd=Pf(od+id),cd=this&&this!==$m&&this instanceof rd?nd:e;++ad<od;)sd[ad]=ed[ad];for(;id--;)sd[ad++]=arguments[++t];return dh(cd,td?$:this,sd)}return rd}function xy(e){return function(t,ed,td){return td&&typeof td!=`number`&&Kb(t,ed,td)&&(ed=td=$),t=Pw(t),ed===$?(ed=t,t=0):ed=Pw(ed),td=td===$?t<ed?1:-1:Pw(td),hv(t,ed,td,e)}}function Sy(e){return function(t,$){return typeof t==`string`&&typeof $==`string`||(t=Lw(t),$=Lw($)),e(t,$)}}function Cy(e,t,ed,td,nd,rd,id,ad,od,sd){var cd=t&gd,ld=cd?id:$,ud=cd?$:id,dd=cd?rd:$,fd=cd?$:rd;t|=cd?vd:yd,t&=~(cd?yd:vd),t&hd||(t&=~(pd|md));var _d=[e,t,nd,dd,ld,fd,ud,ad,od,sd],bd=ed.apply($,_d);return Zb(e)&&dx(bd,_d),bd.placeholder=td,mx(bd,e,t)}function wy(e){var t=$f[e];return function(e,$){if(e=Lw(e),$=$==null?0:Gm(Fw($),292),$&&Lm(e)){var ed=(Bw(e)+`e`).split(`e`);return ed=(Bw(t(ed[0]+`e`+(+ed[1]+$)))+`e`).split(`e`),+(ed[0]+`e`+(+ed[1]-$))}return t(e)}}var Ty=rh&&1/rg(new rh([,-0]))[1]==Ad?function(e){return new rh(e)}:EE;function Ey(e){return function(t){var $=qy(t);return $==qd?eg(t):$==ef?ig(t):zh(t,e(t))}}function Dy(e,t,ed,td,nd,id,ad,od){var sd=t&md;if(!sd&&typeof e!=`function`)throw new rm(rd);var cd=td?td.length:0;if(cd||(t&=~(vd|yd),td=nd=$),ad=ad===$?ad:Bm(Fw(ad),0),od=od===$?od:Fw(od),cd-=nd?nd.length:0,t&yd){var ld=td,ud=nd;td=nd=$}var dd=sd?$:Ly(e),fd=[e,t,ed,td,nd,ld,ud,id,ad,od];if(dd&&ix(fd,dd),e=fd[0],t=fd[1],ed=fd[2],td=fd[3],nd=fd[4],od=fd[9]=fd[9]===$?sd?0:e.length:Bm(fd[9]-cd,0),!od&&t&(gd|_d)&&(t&=~(gd|_d)),!t||t==pd)var hd=cy(e,t,ed);else hd=t==gd||t==_d?fy(e,t,od):(t==vd||t==(pd|vd))&&!nd.length?by(e,t,ed,td):hy.apply($,fd);return mx((dd?xv:dx)(hd,fd),e,t)}function Oy(e,t,ed,td){return e===$||GC(e,om[ed])&&!lm.call(td,ed)?t:e}function ky(e,t,ed,td,nd,rd){return dw(e)&&dw(t)&&(rd.set(t,e),av(e,t,$,ky,rd),rd.delete(t)),e}function Ay(e){return xw(e)?$:e}function jy(e,t,ed,td,nd,rd){var id=ed&dd,ad=e.length,od=t.length;if(ad!=od&&!(id&&od>ad))return!1;var sd=rd.get(e),cd=rd.get(t);if(sd&&cd)return sd==t&&cd==e;var ld=-1,ud=!0,pd=ed&fd?new Kg:$;for(rd.set(e,t),rd.set(t,e);++ld<ad;){var md=e[ld],hd=t[ld];if(td)var gd=id?td(hd,md,ld,t,e,rd):td(md,hd,ld,e,t,rd);if(gd!==$){if(gd)continue;ud=!1;break}if(pd){if(!Ch(t,function(e,t){if(!Uh(pd,t)&&(md===e||nd(md,e,ed,td,rd)))return pd.push(t)})){ud=!1;break}}else if(!(md===hd||nd(md,hd,ed,td,rd))){ud=!1;break}}return rd.delete(e),rd.delete(t),ud}function My(e,t,$,ed,td,nd,rd){switch($){case cf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sf:return!(e.byteLength!=t.byteLength||!nd(new vm(e),new vm(t)));case Vd:case Hd:case Jd:return GC(+e,+t);case Wd:return e.name==t.name&&e.message==t.message;case $d:case tf:return e==t+``;case qd:var id=eg;case ef:var ad=edⅆif(id||=rg,e.size!=t.size&&!ad)return!1;var od=rd.get(e);if(od)return od==t;ed|=fd,rd.set(e,t);var sd=jy(id(e),id(t),ed,td,nd,rd);return rd.delete(e),sd;case nf:if(vg)return vg.call(e)==vg.call(t)}return!1}function Ny(e,t,ed,td,nd,rd){var id=ed&dd,ad=Fy(e),od=ad.length;if(od!=Fy(t).length&&!id)return!1;for(var sd=od;sd--;){var cd=ad[sd];if(!(id?cd in t:lm.call(t,cd)))return!1}var ld=rd.get(e),ud=rd.get(t);if(ld&&ud)return ld==t&&ud==e;var fd=!0;rd.set(e,t),rd.set(t,e);for(var pd=id;++sd<od;){cd=ad[sd];var md=e[cd],hd=t[cd];if(td)var gd=id?td(hd,md,cd,t,e,rd):td(md,hd,cd,e,t,rd);if(!(gd===$?md===hd||nd(md,hd,ed,td,rd):gd)){fd=!1;break}pd||=cd==`constructor`}if(fd&&!pd){var _d=e.constructor,vd=t.constructor;_d!=vd&&`constructor`in e&&`constructor`in t&&!(typeof _d==`function`&&_d instanceof _d&&typeof vd==`function`&&vd instanceof vd)&&(fd=!1)}return rd.delete(e),rd.delete(t),fd}function Py(e){return px(sx(e,$,Fx),e+``)}function Fy(e){return M_(e,lT,Gy)}function Iy(e){return M_(e,uT,Ky)}var Ly=Th?function(e){return Th.get(e)}:EE;function Ry(e){for(var t=e.name+``,$=Ph[t],ed=lm.call(Ph,t)?$.length:0;ed--;){var td=$[ed],nd=td.func;if(nd==null||nd==e)return td.name}return t}function zy(e){return(lm.call(bg,`placeholder`)?bg:e).placeholder}function By(){var e=bg.iteratee||yE;return e=e===yE?Q_:e,arguments.length?e(arguments[0],arguments[1]):e}function Vy(e,t){var $=e.__data__;return Xb(t)?$[typeof t==`string`?`string`:`hash`]:$.map}function Hy(e){for(var t=lT(e),$=t.length;$--;){var ed=t[$],td=e[ed];t[$]=[ed,td,tx(td)]}return t}function Uy(e,t){var ed=Xh(e,t);return J_(ed)?ed:$}function Wy(e){var t=lm.call(e,Em),ed=e[Em];try{e[Em]=$;var td=!0}catch{}var nd=fm.call(e);return td&&(t?e[Em]=ed:delete e[Em]),nd}var Gy=Nm?function(e){return e==null?[]:(e=em(e),gh(Nm(e),function(t){return Sm.call(e,t)}))}:FE,Ky=Nm?function(e){for(var t=[];e;)bh(t,Gy(e)),e=bm(e);return t}:FE,qy=N_;(Qm&&qy(new Qm(new ArrayBuffer(1)))!=cf||eh&&qy(new eh)!=qd||th&&qy(th.resolve())!=Zd||rh&&qy(new rh)!=ef||ih&&qy(new ih)!=af)&&(qy=function(e){var t=N_(e),ed=t==Xd?e.constructor:$,td=ed?yx(ed):``;if(td)switch(td){case ag:return cf;case dg:return qd;case fg:return Zd;case hg:return ef;case gg:return af}return t});function Jy(e,t,$){for(var ed=-1,td=$.length;++ed<td;){var nd=$[ed],rd=nd.size;switch(nd.type){case`drop`:e+=rd;break;case`dropRight`:t-=rd;break;case`take`:t=Gm(t,e+rd);break;case`takeRight`:e=Bm(e,t-rd);break}}return{start:e,end:t}}function Yy(e){var t=e.match(If);return t?t[1].split(Lf):[]}function Xy(e,t,$){t=Bv(t,e);for(var ed=-1,td=t.length,nd=!1;++ed<td;){var rd=vx(t[ed]);if(!(nd=e!=null&&$(e,rd)))break;e=e[rd]}return nd||++ed!=td?nd:(td=e==null?0:e.length,!!td&&uw(td)&&Hb(rd,td)&&(YC(e)||JC(e)))}function Zy(e){var t=e.length,$=new e.constructor(t);return t&&typeof e[0]==`string`&&lm.call(e,`index`)&&($.index=e.index,$.input=e.input),$}function Qy(e){return typeof e.constructor==`function`&&!ex(e)?xg(bm(e)):{}}function $y(e,t,$){var ed=e.constructor;switch(t){case sf:return Gv(e);case Vd:case Hd:return new ed(+e);case cf:return Kv(e,$);case lf:case uf:case df:case ff:case pf:case mf:case hf:case gf:case _f:return Yv(e,$);case qd:return new ed;case Jd:case tf:return new ed(e);case $d:return qv(e);case ef:return new ed;case nf:return Jv(e)}}function jb(e,t){var $=t.length;if(!$)return e;var ed=$-1;return t[ed]=($>1?`& `:``)+t[ed],t=t.join($>2?`, `:` `),e.replace(Ff,`{ 29/* [wrapped with `+t+`] */ 30`)}function zb(e){return YC(e)||JC(e)||!!(wm&&e&&e[wm])}function Hb(e,t){var $=typeof e;return t??=jd,!!t&&($==`number`||$!=`symbol`&&qf.test(e))&&e>-1&&e%1==0&&e<t}function Kb(e,t,$){if(!dw($))return!1;var ed=typeof t;return(ed==`number`?ZC($)&&Hb(t,$.length):ed==`string`&&t in $)?GC($[t],e):!1}function Jb(e,t){if(YC(e))return!1;var $=typeof e;return $==`number`||$==`symbol`||$==`boolean`||e==null||Ew(e)?!0:kf.test(e)||!Of.test(e)||t!=null&&e in em(t)}function Xb(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Zb(e){var t=Ry(e),$=bg[t];if(typeof $!=`function`||!(t in wg.prototype))return!1;if(e===$)return!0;var ed=Ly($);return!!ed&&e===ed[0]}function Qb(e){return!!dm&&dm in e}var $b=sm?cw:IE;function ex(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||om)}function tx(e){return e===e&&!dw(e)}function nx(e,t){return function(ed){return ed==null?!1:ed[e]===t&&(t!==$||e in em(ed))}}function rx(e){var t=DC(e,function(e){return $.size===od&&$.clear(),e}),$=t.cache;return t}function ix(e,t){var $=e[1],ed=t[1],td=$|ed,nd=td<(pd|md|bd),rd=ed==bd&&$==gd||ed==bd&&$==xd&&e[7].length<=t[8]||ed==(bd|xd)&&t[7].length<=t[8]&&$==gd;if(!(nd||rd))return e;ed&pd&&(e[2]=t[2],td|=$&pd?0:hd);var id=t[3];if(id){var ad=e[3];e[3]=ad?Qv(ad,id,t[4]):id,e[4]=ad?ng(e[3],sd):t[4]}return id=t[5],id&&(ad=e[5],e[5]=ad?$v(ad,id,t[6]):id,e[6]=ad?ng(e[5],sd):t[6]),id=t[7],id&&(e[7]=id),ed&bd&&(e[8]=e[8]==null?t[8]:Gm(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=td,e}function ax(e){var t=[];if(e!=null)for(var $ in em(e))t.push($);return t}function ox(e){return fm.call(e)}function sx(e,t,ed){return t=Bm(t===$?e.length-1:t,0),function(){for(var $=arguments,td=-1,nd=Bm($.length-t,0),rd=Pf(nd);++td<nd;)rd[td]=$[t+td];td=-1;for(var id=Pf(t+1);++td<t;)id[td]=$[td];return id[t]=ed(rd),dh(e,this,id)}}function cx(e,t){return t.length<2?e:j_(e,wv(t,0,-1))}function lx(e,t){for(var ed=e.length,td=Gm(t.length,ed),nd=ey(e);td--;){var rd=t[td];e[td]=Hb(rd,ed)?nd[rd]:$}return e}function ux(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var dx=hx(xv),fx=Am||function(e,t){return $m.setTimeout(e,t)},px=hx(Sv);function mx(e,t,$){var ed=t+``;return px(e,jb(ed,bx(Yy(ed),$)))}function hx(e){var t=0,ed=0;return function(){var td=Km(),nd=Ed-(td-ed);if(ed=td,nd>0){if(++t>=Td)return arguments[0]}else t=0;return e.apply($,arguments)}}function gx(e,t){var ed=-1,td=e.length,nd=td-1;for(t=t===$?td:t;++ed<t;){var rd=mv(ed,nd),id=e[rd];e[rd]=e[ed],e[ed]=id}return e.length=t,e}var _x=rx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Af,function(e,$,ed,td){t.push(ed?td.replace(Bf,`$1`):$||e)}),t});function vx(e){if(typeof e==`string`||Ew(e))return e;var t=e+``;return t==`0`&&1/e==-Ad?`-0`:t}function yx(e){if(e!=null){try{return cm.call(e)}catch{}try{return e+``}catch{}}return``}function bx(e,t){return ph(Ld,function($){var ed=`_.`+$[0];t&$[1]&&!_h(e,ed)&&e.push(ed)}),e.sort()}function xx(e){if(e instanceof wg)return e.clone();var t=new Cg(e.__wrapped__,e.__chain__);return t.__actions__=ey(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Sx(e,t,ed){t=(ed?Kb(e,t,ed):t===$)?1:Bm(Fw(t),0);var td=e==null?0:e.length;if(!td||t<1)return[];for(var nd=0,rd=0,id=Pf(jm(td/t));nd<td;)id[rd++]=wv(e,nd,nd+=t);return id}function Cx(e){for(var t=-1,$=e==null?0:e.length,ed=0,td=[];++t<$;){var nd=e[t];nd&&(td[ed++]=nd)}return td}function wx(){var e=arguments.length;if(!e)return[];for(var t=Pf(e-1),$=arguments[0],ed=e;ed--;)t[ed-1]=arguments[ed];return bh(YC($)?ey($):[$],T_(t,1))}var Tx=_v(function(e,t){return QC(e)?v_(e,T_(t,1,QC,!0)):[]}),Ex=_v(function(e,t){var ed=Kx(t);return QC(ed)&&(ed=$),QC(e)?v_(e,T_(t,1,QC,!0),By(ed,2)):[]}),Dx=_v(function(e,t){var ed=Kx(t);return QC(ed)&&(ed=$),QC(e)?v_(e,T_(t,1,QC,!0),$,ed):[]});function Ox(e,t,ed){var td=e==null?0:e.length;return td?(t=ed||t===$?1:Fw(t),wv(e,t<0?0:t,td)):[]}function kx(e,t,ed){var td=e==null?0:e.length;return td?(t=ed||t===$?1:Fw(t),t=td-t,wv(e,0,t<0?0:t)):[]}function Ax(e,t){return e&&e.length?Pv(e,By(t,3),!0,!0):[]}function jx(e,t){return e&&e.length?Pv(e,By(t,3),!0):[]}function Mx(e,t,$,ed){var td=e==null?0:e.length;return td?($&&typeof $!=`number`&&Kb(e,t,$)&&($=0,ed=td),C_(e,t,$,ed)):[]}function Nx(e,t,$){var ed=e==null?0:e.length;if(!ed)return-1;var td=$==null?0:Fw($);return td<0&&(td=Bm(ed+td,0)),Oh(e,By(t,3),td)}function Px(e,t,ed){var td=e==null?0:e.length;if(!td)return-1;var nd=td-1;return ed!==$&&(nd=Fw(ed),nd=ed<0?Bm(td+nd,0):Gm(nd,td-1)),Oh(e,By(t,3),nd,!0)}function Fx(e){return e!=null&&e.length?T_(e,1):[]}function Ix(e){return e!=null&&e.length?T_(e,Ad):[]}function Lx(e,t){return e!=null&&e.length?(t=t===$?1:Fw(t),T_(e,t)):[]}function Rx(e){for(var t=-1,$=e==null?0:e.length,ed={};++t<$;){var td=e[t];ed[td[0]]=td[1]}return ed}function zx(e){return e&&e.length?e[0]:$}function Bx(e,t,$){var ed=e==null?0:e.length;if(!ed)return-1;var td=$==null?0:Fw($);return td<0&&(td=Bm(ed+td,0)),kh(e,t,td)}function Vx(e){return e!=null&&e.length?wv(e,0,-1):[]}var Hx=_v(function(e){var t=yh(e,Rv);return t.length&&t[0]===e[0]?R_(t):[]}),Ux=_v(function(e){var t=Kx(e),ed=yh(e,Rv);return t===Kx(ed)?t=$:ed.pop(),ed.length&&ed[0]===e[0]?R_(ed,By(t,2)):[]}),Wx=_v(function(e){var t=Kx(e),ed=yh(e,Rv);return t=typeof t==`function`?t:$,t&&ed.pop(),ed.length&&ed[0]===e[0]?R_(ed,$,t):[]});function Gx(e,t){return e==null?``:Rm.call(e,t)}function Kx(e){var t=e==null?0:e.length;return t?e[t-1]:$}function qx(e,t,ed){var td=e==null?0:e.length;if(!td)return-1;var nd=td;return ed!==$&&(nd=Fw(ed),nd=nd<0?Bm(td+nd,0):Gm(nd,td-1)),t===t?og(e,t,nd):Oh(e,jh,nd,!0)}function Jx(e,t){return e&&e.length?sv(e,Fw(t)):$}var Yx=_v(Xx);function Xx(e,t){return e&&e.length&&t&&t.length?fv(e,t):e}function Zx(e,t,$){return e&&e.length&&t&&t.length?fv(e,t,By($,2)):e}function Qx(e,t,ed){return e&&e.length&&t&&t.length?fv(e,t,$,ed):e}var $x=Py(function(e,t){var $=e==null?0:e.length,ed=f_(e,t);return pv(e,yh(t,function(e){return Hb(e,$)?+e:e}).sort(Xv)),ed});function eS(e,t){var $=[];if(!(e&&e.length))return $;var ed=-1,td=[],nd=e.length;for(t=By(t,3);++ed<nd;){var rd=e[ed];t(rd,ed,e)&&($.push(rd),td.push(ed))}return pv(e,td),$}function tS(e){return e==null?e:Zm.call(e)}function nS(e,t,ed){var td=e==null?0:e.length;return td?(ed&&typeof ed!=`number`&&Kb(e,t,ed)?(t=0,ed=td):(t=t==null?0:Fw(t),ed=ed===$?td:Fw(ed)),wv(e,t,ed)):[]}function rS(e,t){return Ev(e,t)}function iS(e,t,$){return Dv(e,t,By($,2))}function aS(e,t){var $=e==null?0:e.length;if($){var ed=Ev(e,t);if(ed<$&&GC(e[ed],t))return ed}return-1}function oS(e,t){return Ev(e,t,!0)}function sS(e,t,$){return Dv(e,t,By($,2),!0)}function cS(e,t){if(e!=null&&e.length){var $=Ev(e,t,!0)-1;if(GC(e[$],t))return $}return-1}function lS(e){return e&&e.length?Ov(e):[]}function uS(e,t){return e&&e.length?Ov(e,By(t,2)):[]}function dS(e){var t=e==null?0:e.length;return t?wv(e,1,t):[]}function fS(e,t,ed){return e&&e.length?(t=ed||t===$?1:Fw(t),wv(e,0,t<0?0:t)):[]}function pS(e,t,ed){var td=e==null?0:e.length;return td?(t=ed||t===$?1:Fw(t),t=td-t,wv(e,t<0?0:t,td)):[]}function mS(e,t){return e&&e.length?Pv(e,By(t,3),!1,!0):[]}function hS(e,t){return e&&e.length?Pv(e,By(t,3)):[]}var gS=_v(function(e){return jv(T_(e,1,QC,!0))}),_S=_v(function(e){var t=Kx(e);return QC(t)&&(t=$),jv(T_(e,1,QC,!0),By(t,2))}),vS=_v(function(e){var t=Kx(e);return t=typeof t==`function`?t:$,jv(T_(e,1,QC,!0),$,t)});function yS(e){return e&&e.length?jv(e):[]}function bS(e,t){return e&&e.length?jv(e,By(t,2)):[]}function xS(e,t){return t=typeof t==`function`?t:$,e&&e.length?jv(e,$,t):[]}function SS(e){if(!(e&&e.length))return[];var t=0;return e=gh(e,function(e){if(QC(e))return t=Bm(e.length,t),!0}),Rh(t,function(t){return yh(e,Nh(t))})}function CS(e,t){if(!(e&&e.length))return[];var ed=SS(e);return t==null?ed:yh(ed,function(e){return dh(t,$,e)})}var wS=_v(function(e,t){return QC(e)?v_(e,t):[]}),TS=_v(function(e){return Iv(gh(e,QC))}),ES=_v(function(e){var t=Kx(e);return QC(t)&&(t=$),Iv(gh(e,QC),By(t,2))}),DS=_v(function(e){var t=Kx(e);return t=typeof t==`function`?t:$,Iv(gh(e,QC),$,t)}),OS=_v(SS);function kS(e,t){return Lv(e||[],t||[],o_)}function AS(e,t){return Lv(e||[],t||[],bv)}var jS=_v(function(e){var t=e.length,ed=t>1?e[t-1]:$;return ed=typeof ed==`function`?(e.pop(),ed):$,CS(e,ed)});function MS(e){var t=bg(e);return t.__chain__=!0,t}function NS(e,t){return t(e),e}function PS(e,t){return t(e)}var FS=Py(function(e){var t=e.length,ed=t?e[0]:0,td=this.__wrapped__,nd=function(t){return f_(t,e)};return t>1||this.__actions__.length||!(td instanceof wg)||!Hb(ed)?this.thru(nd):(td=td.slice(ed,+ed+ +!!t),td.__actions__.push({func:PS,args:[nd],thisArg:$}),new Cg(td,this.__chain__).thru(function(e){return t&&!e.length&&e.push($),e}))});function IS(){return MS(this)}function LS(){return new Cg(this.value(),this.__chain__)}function RS(){this.__values__===$&&(this.__values__=Nw(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?$:this.__values__[this.__index__++]}}function zS(){return this}function BS(e){for(var t,ed=this;ed instanceof Sg;){var td=xx(ed);td.__index__=0,td.__values__=$,t?nd.__wrapped__=td:t=td;var nd=td;ed=ed.__wrapped__}return nd.__wrapped__=e,t}function VS(){var e=this.__wrapped__;if(e instanceof wg){var t=e;return this.__actions__.length&&(t=new wg(this)),t=t.reverse(),t.__actions__.push({func:PS,args:[tS],thisArg:$}),new Cg(t,this.__chain__)}return this.thru(tS)}function HS(){return Fv(this.__wrapped__,this.__actions__)}var US=iy(function(e,t,$){lm.call(e,$)?++e[$]:d_(e,$,1)});function WS(e,t,ed){var td=YC(e)?hh:x_;return ed&&Kb(e,t,ed)&&(t=$),td(e,By(t,3))}function GS(e,t){return(YC(e)?gh:w_)(e,By(t,3))}var KS=py(Nx),qS=py(Px);function JS(e,t){return T_(rC(e,t),1)}function YS(e,t){return T_(rC(e,t),Ad)}function XS(e,t,ed){return ed=ed===$?1:Fw(ed),T_(rC(e,t),ed)}function ZS(e,t){return(YC(e)?ph:y_)(e,By(t,3))}function QS(e,t){return(YC(e)?mh:b_)(e,By(t,3))}var $S=iy(function(e,t,$){lm.call(e,$)?e[$].push(t):d_(e,$,[t])});function eC(e,t,$,ed){e=ZC(e)?e:OT(e),$=$&&!ed?Fw($):0;var td=e.length;return $<0&&($=Bm(td+$,0)),Tw(e)?$<=td&&e.indexOf(t,$)>-1:!!td&&kh(e,t,$)>-1}var tC=_v(function(e,t,$){var ed=-1,td=typeof t==`function`,nd=ZC(e)?Pf(e.length):[];return y_(e,function(e){nd[++ed]=td?dh(t,e,$):B_(e,t,$)}),nd}),nC=iy(function(e,t,$){d_(e,$,t)});function rC(e,t){return(YC(e)?yh:nv)(e,By(t,3))}function iC(e,t,ed,td){return e==null?[]:(YC(t)||(t=t==null?[]:[t]),ed=td?$:ed,YC(ed)||(ed=ed==null?[]:[ed]),cv(e,t,ed))}var aC=iy(function(e,t,$){e[+!$].push(t)},function(){return[[],[]]});function oC(e,t,$){var ed=YC(e)?xh:Fh,td=arguments.length<3;return ed(e,By(t,4),$,td,y_)}function sC(e,t,$){var ed=YC(e)?Sh:Fh,td=arguments.length<3;return ed(e,By(t,4),$,td,b_)}function cC(e,t){return(YC(e)?gh:w_)(e,OC(By(t,3)))}function lC(e){return(YC(e)?n_:vv)(e)}function uC(e,t,ed){return t=(ed?Kb(e,t,ed):t===$)?1:Fw(t),(YC(e)?r_:yv)(e,t)}function dC(e){return(YC(e)?i_:Cv)(e)}function fC(e){if(e==null)return 0;if(ZC(e))return Tw(e)?sg(e):e.length;var t=qy(e);return t==qd||t==ef?e.size:$_(e).length}function pC(e,t,ed){var td=YC(e)?Ch:Tv;return ed&&Kb(e,t,ed)&&(t=$),td(e,By(t,3))}var mC=_v(function(e,t){if(e==null)return[];var $=t.length;return $>1&&Kb(e,t[0],t[1])?t=[]:$>2&&Kb(t[0],t[1],t[2])&&(t=[t[0]]),cv(e,T_(t,1),[])}),hC=km||function(){return $m.Date.now()};function gC(e,t){if(typeof t!=`function`)throw new rm(rd);return e=Fw(e),function(){if(--e<1)return t.apply(this,arguments)}}function _C(e,t,ed){return t=ed?$:t,t=e&&t==null?e.length:t,Dy(e,bd,$,$,$,$,t)}function vC(e,t){var ed;if(typeof t!=`function`)throw new rm(rd);return e=Fw(e),function(){return--e>0&&(ed=t.apply(this,arguments)),e<=1&&(t=$),ed}}var yC=_v(function(e,t,$){var ed=pd;if($.length){var td=ng($,zy(yC));ed|=vd}return Dy(e,ed,t,$,td)}),bC=_v(function(e,t,$){var ed=pd|md;if($.length){var td=ng($,zy(bC));ed|=vd}return Dy(t,ed,e,$,td)});function xC(e,t,ed){t=ed?$:t;var td=Dy(e,gd,$,$,$,$,$,t);return td.placeholder=xC.placeholder,td}function SC(e,t,ed){t=ed?$:t;var td=Dy(e,_d,$,$,$,$,$,t);return td.placeholder=SC.placeholder,td}function CC(e,t,ed){var td,nd,id,ad,od,sd,cd=0,ld=!1,ud=!1,dd=!0;if(typeof e!=`function`)throw new rm(rd);t=Lw(t)||0,dw(ed)&&(ld=!!ed.leading,ud=`maxWait`in ed,id=ud?Bm(Lw(ed.maxWait)||0,t):id,dd=`trailing`in ed?!!ed.trailing:dd);function fd(t){var ed=td,rd=nd;return td=nd=$,cd=t,ad=e.apply(rd,ed),ad}function pd(e){return cd=e,od=fx(gd,t),ld?fd(e):ad}function md(e){var $=e-sd,ed=e-cd,td=t-$;return ud?Gm(td,id-ed):td}function hd(e){var ed=e-sd,td=e-cd;return sd===$||ed>=t||ed<0||ud&&td>=id}function gd(){var e=hC();if(hd(e))return _d(e);od=fx(gd,md(e))}function _d(e){return od=$,dd&&td?fd(e):(td=nd=$,ad)}function vd(){od!==$&&Uv(od),cd=0,td=sd=nd=od=$}function yd(){return od===$?ad:_d(hC())}function bd(){var e=hC(),ed=hd(e);if(td=arguments,nd=this,sd=e,ed){if(od===$)return pd(sd);if(ud)return Uv(od),od=fx(gd,t),fd(sd)}return od===$&&(od=fx(gd,t)),ad}return bd.cancel=vd,bd.flush=yd,bd}var wC=_v(function(e,t){return __(e,1,t)}),TC=_v(function(e,t,$){return __(e,Lw(t)||0,$)});function EC(e){return Dy(e,Sd)}function DC(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new rm(rd);var $=function(){var ed=arguments,td=t?t.apply(this,ed):ed[0],nd=$.cache;if(nd.has(td))return nd.get(td);var rd=e.apply(this,ed);return $.cache=nd.set(td,rd)||nd,rd};return $.cache=new(DC.Cache||Bg),$}DC.Cache=Bg;function OC(e){if(typeof e!=`function`)throw new rm(rd);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function kC(e){return vC(2,e)}var AC=Vv(function(e,t){t=t.length==1&&YC(t[0])?yh(t[0],Vh(By())):yh(T_(t,1),Vh(By()));var $=t.length;return _v(function(ed){for(var td=-1,nd=Gm(ed.length,$);++td<nd;)ed[td]=t[td].call(this,ed[td]);return dh(e,this,ed)})}),jC=_v(function(e,t){return Dy(e,vd,$,t,ng(t,zy(jC)))}),MC=_v(function(e,t){return Dy(e,yd,$,t,ng(t,zy(MC)))}),NC=Py(function(e,t){return Dy(e,xd,$,$,$,t)});function PC(e,t){if(typeof e!=`function`)throw new rm(rd);return t=t===$?t:Fw(t),_v(e,t)}function FC(e,t){if(typeof e!=`function`)throw new rm(rd);return t=t==null?0:Bm(Fw(t),0),_v(function($){var ed=$[t],td=Hv($,0,t);return ed&&bh(td,ed),dh(e,this,td)})}function IC(e,t,$){var ed=!0,td=!0;if(typeof e!=`function`)throw new rm(rd);return dw($)&&(ed=`leading`in $?!!$.leading:ed,td=`trailing`in $?!!$.trailing:td),CC(e,t,{leading:ed,maxWait:t,trailing:td})}function LC(e){return _C(e,1)}function RC(e,t){return jC(zv(t),e)}function zC(){if(!arguments.length)return[];var e=arguments[0];return YC(e)?e:[e]}function BC(e){return m_(e,ud)}function VC(e,t){return t=typeof t==`function`?t:$,m_(e,ud,t)}function HC(e){return m_(e,cd|ud)}function UC(e,t){return t=typeof t==`function`?t:$,m_(e,cd|ud,t)}function WC(e,t){return t==null||g_(e,t,lT(t))}function GC(e,t){return e===t||e!==e&&t!==t}var KC=Sy(P_),qC=Sy(function(e,t){return e>=t}),JC=V_(function(){return arguments}())?V_:function(e){return fw(e)&&lm.call(e,`callee`)&&!Sm.call(e,`callee`)},YC=Pf.isArray,XC=ah?Vh(ah):H_;function ZC(e){return e!=null&&uw(e.length)&&!cw(e)}function QC(e){return fw(e)&&ZC(e)}function $C(e){return e===!0||e===!1||fw(e)&&N_(e)==Vd}var ew=Pm||IE,tw=oh?Vh(oh):U_;function nw(e){return fw(e)&&e.nodeType===1&&!xw(e)}function rw(e){if(e==null)return!0;if(ZC(e)&&(YC(e)||typeof e==`string`||typeof e.splice==`function`||ew(e)||Dw(e)||JC(e)))return!e.length;var t=qy(e);if(t==qd||t==ef)return!e.size;if(ex(e))return!$_(e).length;for(var $ in e)if(lm.call(e,$))return!1;return!0}function iw(e,t){return W_(e,t)}function aw(e,t,ed){ed=typeof ed==`function`?ed:$;var td=ed?ed(e,t):$;return td===$?W_(e,t,$,ed):!!td}function ow(e){if(!fw(e))return!1;var t=N_(e);return t==Wd||t==Ud||typeof e.message==`string`&&typeof e.name==`string`&&!xw(e)}function sw(e){return typeof e==`number`&&Lm(e)}function cw(e){if(!dw(e))return!1;var t=N_(e);return t==Gd||t==Kd||t==Bd||t==Qd}function lw(e){return typeof e==`number`&&e==Fw(e)}function uw(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=jd}function dw(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function fw(e){return typeof e==`object`&&!!e}var pw=sh?Vh(sh):K_;function mw(e,t){return e===t||q_(e,t,Hy(t))}function hw(e,t,ed){return ed=typeof ed==`function`?ed:$,q_(e,t,Hy(t),ed)}function gw(e){return bw(e)&&e!=+e}function _w(e){if($b(e))throw new Zf(nd);return J_(e)}function vw(e){return e===null}function yw(e){return e==null}function bw(e){return typeof e==`number`||fw(e)&&N_(e)==Jd}function xw(e){if(!fw(e)||N_(e)!=Xd)return!1;var t=bm(e);if(t===null)return!0;var $=lm.call(t,`constructor`)&&t.constructor;return typeof $==`function`&&$ instanceof $&&cm.call($)==pm}var Sw=ch?Vh(ch):Y_;function Cw(e){return lw(e)&&e>=-jd&&e<=jd}var ww=lh?Vh(lh):X_;function Tw(e){return typeof e==`string`||!YC(e)&&fw(e)&&N_(e)==tf}function Ew(e){return typeof e==`symbol`||fw(e)&&N_(e)==nf}var Dw=uh?Vh(uh):Z_;function Ow(e){return e===$}function kw(e){return fw(e)&&qy(e)==af}function Aw(e){return fw(e)&&N_(e)==of}var jw=Sy(tv),Mw=Sy(function(e,t){return e<=t});function Nw(e){if(!e)return[];if(ZC(e))return Tw(e)?cg(e):ey(e);if(Tm&&e[Tm])return $h(e[Tm]());var t=qy(e);return(t==qd?eg:t==ef?rg:OT)(e)}function Pw(e){return e?(e=Lw(e),e===Ad||e===-Ad?(e<0?-1:1)*Md:e===e?e:0):e===0?e:0}function Fw(e){var t=Pw(e),$=t%1;return t===t?$?t-$:t:0}function Iw(e){return e?p_(Fw(e),0,Pd):0}function Lw(e){if(typeof e==`number`)return e;if(Ew(e))return Nd;if(dw(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=dw(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Bh(e);var $=Wf.test(e);return $||Kf.test(e)?Xm(e.slice(2),$?2:8):Uf.test(e)?Nd:+e}function Rw(e){return ty(e,uT(e))}function zw(e){return e?p_(Fw(e),-jd,jd):e===0?e:0}function Bw(e){return e==null?``:Av(e)}var Vw=ay(function(e,t){if(ex(t)||ZC(t)){ty(t,lT(t),e);return}for(var $ in t)lm.call(t,$)&&o_(e,$,t[$])}),Hw=ay(function(e,t){ty(t,uT(t),e)}),Uw=ay(function(e,t,$,ed){ty(t,uT(t),e,ed)}),Ww=ay(function(e,t,$,ed){ty(t,lT(t),e,ed)}),Gw=Py(f_);function Kw(e,t){var $=xg(e);return t==null?$:l_($,t)}var qw=_v(function(e,t){e=em(e);var ed=-1,td=t.length,nd=td>2?t[2]:$;for(nd&&Kb(t[0],t[1],nd)&&(td=1);++ed<td;)for(var rd=t[ed],id=uT(rd),ad=-1,od=id.length;++ad<od;){var sd=id[ad],cd=e[sd];(cd===$||GC(cd,om[sd])&&!lm.call(e,sd))&&(e[sd]=rd[sd])}return e}),Jw=_v(function(e){return e.push($,ky),dh(mT,$,e)});function Yw(e,t){return Dh(e,By(t,3),O_)}function Xw(e,t){return Dh(e,By(t,3),k_)}function Zw(e,t){return e==null?e:E_(e,By(t,3),uT)}function Qw(e,t){return e==null?e:D_(e,By(t,3),uT)}function $w(e,t){return e&&O_(e,By(t,3))}function eT(e,t){return e&&k_(e,By(t,3))}function tT(e){return e==null?[]:A_(e,lT(e))}function nT(e){return e==null?[]:A_(e,uT(e))}function rT(e,t,ed){var td=e==null?$:j_(e,t);return td===$?ed:td}function iT(e,t){return e!=null&&Xy(e,t,F_)}function aT(e,t){return e!=null&&Xy(e,t,I_)}var oT=gy(function(e,t,$){t!=null&&typeof t.toString!=`function`&&(t=fm.call(t)),e[t]=$},mE(vE)),sT=gy(function(e,t,$){t!=null&&typeof t.toString!=`function`&&(t=fm.call(t)),lm.call(e,t)?e[t].push($):e[t]=[$]},By),cT=_v(B_);function lT(e){return ZC(e)?t_(e):$_(e)}function uT(e){return ZC(e)?t_(e,!0):ev(e)}function dT(e,t){var $={};return t=By(t,3),O_(e,function(e,ed,td){d_($,t(e,ed,td),e)}),$}function fT(e,t){var $={};return t=By(t,3),O_(e,function(e,ed,td){d_($,ed,t(e,ed,td))}),$}var pT=ay(function(e,t,$){av(e,t,$)}),mT=ay(function(e,t,$,ed){av(e,t,$,ed)}),hT=Py(function(e,t){var $={};if(e==null)return $;var ed=!1;t=yh(t,function(t){return t=Bv(t,e),ed||=t.length>1,t}),ty(e,Iy(e),$),ed&&($=m_($,cd|ld|ud,Ay));for(var td=t.length;td--;)Mv($,t[td]);return $});function gT(e,t){return vT(e,OC(By(t)))}var _T=Py(function(e,t){return e==null?{}:lv(e,t)});function vT(e,t){if(e==null)return{};var $=yh(Iy(e),function(e){return[e]});return t=By(t),uv(e,$,function(e,$){return t(e,$[0])})}function yT(e,t,ed){t=Bv(t,e);var td=-1,nd=t.length;for(nd||(nd=1,e=$);++td<nd;){var rd=e==null?$:e[vx(t[td])];rd===$&&(td=nd,rd=ed),e=cw(rd)?rd.call(e):rd}return e}function bT(e,t,$){return e==null?e:bv(e,t,$)}function xT(e,t,ed,td){return td=typeof td==`function`?td:$,e==null?e:bv(e,t,ed,td)}var ST=Ey(lT),CT=Ey(uT);function wT(e,t,$){var ed=YC(e),td=ed||ew(e)||Dw(e);if(t=By(t,4),$==null){var nd=e&&e.constructor;$=td?ed?new nd:[]:dw(e)&&cw(nd)?xg(bm(e)):{}}return(td?ph:O_)(e,function(e,ed,td){return t($,e,ed,td)}),$}function TT(e,t){return e==null?!0:Mv(e,t)}function ET(e,t,$){return e==null?e:Nv(e,t,zv($))}function DT(e,t,ed,td){return td=typeof td==`function`?td:$,e==null?e:Nv(e,t,zv(ed),td)}function OT(e){return e==null?[]:Hh(e,lT(e))}function kT(e){return e==null?[]:Hh(e,uT(e))}function AT(e,t,ed){return ed===$&&(ed=t,t=$),ed!==$&&(ed=Lw(ed),ed=ed===ed?ed:0),t!==$&&(t=Lw(t),t=t===t?t:0),p_(Lw(e),t,ed)}function jT(e,t,ed){return t=Pw(t),ed===$?(ed=t,t=0):ed=Pw(ed),e=Lw(e),L_(e,t,ed)}function MT(e,t,ed){if(ed&&typeof ed!=`boolean`&&Kb(e,t,ed)&&(t=ed=$),ed===$&&(typeof t==`boolean`?(ed=t,t=$):typeof e==`boolean`&&(ed=e,e=$)),e===$&&t===$?(e=0,t=1):(e=Pw(e),t===$?(t=e,e=0):t=Pw(t)),e>t){var td=e;e=t,t=td}if(ed||e%1||t%1){var nd=Jm();return Gm(e+nd*(t-e+Ym(`1e-`+((nd+``).length-1))),t)}return mv(e,t)}var NT=uy(function(e,t,$){return t=t.toLowerCase(),e+($?PT(t):t)});function PT(e){return cE(Bw(e).toLowerCase())}function FT(e){return e=Bw(e),e&&e.replace(Jf,qh).replace(Im,``)}function IT(e,t,ed){e=Bw(e),t=Av(t);var td=e.length;ed=ed===$?td:p_(Fw(ed),0,td);var nd=ed;return ed-=t.length,ed>=0&&e.slice(ed,nd)==t}function LT(e){return e=Bw(e),e&&wf.test(e)?e.replace(Sf,Jh):e}function RT(e){return e=Bw(e),e&&Mf.test(e)?e.replace(jf,`\\$&`):e}var zT=uy(function(e,t,$){return e+($?`-`:``)+t.toLowerCase()}),BT=uy(function(e,t,$){return e+($?` `:``)+t.toLowerCase()}),VT=ly(`toLowerCase`);function HT(e,t,$){e=Bw(e),t=Fw(t);var ed=t?sg(e):0;if(!t||ed>=t)return e;var td=(t-ed)/2;return yy(Mm(td),$)+e+yy(jm(td),$)}function UT(e,t,$){e=Bw(e),t=Fw(t);var ed=t?sg(e):0;return t&&ed<t?e+yy(t-ed,$):e}function WT(e,t,$){e=Bw(e),t=Fw(t);var ed=t?sg(e):0;return t&&ed<t?yy(t-ed,$)+e:e}function GT(e,t,$){return $||t==null?t=0:t&&=+t,qm(Bw(e).replace(Nf,``),t||0)}function KT(e,t,ed){return t=(ed?Kb(e,t,ed):t===$)?1:Fw(t),gv(Bw(e),t)}function qT(){var e=arguments,t=Bw(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var JT=uy(function(e,t,$){return e+($?`_`:``)+t.toLowerCase()});function XT(e,t,ed){return ed&&typeof ed!=`number`&&Kb(e,t,ed)&&(t=ed=$),ed=ed===$?Pd:ed>>>0,ed?(e=Bw(e),e&&(typeof t==`string`||t!=null&&!Sw(t))&&(t=Av(t),!t&&Zh(e))?Hv(cg(e),0,ed):e.split(t,ed)):[]}var ZT=uy(function(e,t,$){return e+($?` `:``)+cE(t)});function QT(e,t,$){return e=Bw(e),$=$==null?0:p_(Fw($),0,e.length),t=Av(t),e.slice($,$+t.length)==t}function $T(e,t,ed){var td=bg.templateSettings;ed&&Kb(e,t,ed)&&(t=$),e=Bw(e),t=Uw({},t,td,Oy);var nd=Uw({},t.imports,td.imports,Oy),rd=lT(nd),ad=Hh(nd,rd),od,sd,cd=0,ld=t.interpolate||Yf,ud=`__p += '`,dd=tm((t.escape||Yf).source+`|`+ld.source+`|`+(ld===Df?Vf:Yf).source+`|`+(t.evaluate||Yf).source+`|$`,`g`),fd=`//# sourceURL=`+(lm.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Hm+`]`)+` 31`;e.replace(dd,function(t,$,ed,td,nd,rd){return ed||=td,ud+=e.slice(cd,rd).replace(Xf,Yh),$&&(od=!0,ud+=`' + 32__e(`+$+`) + 33'`),nd&&(sd=!0,ud+=`'; 34`+nd+`; 35__p += '`),ed&&(ud+=`' + 36((__t = (`+ed+`)) == null ? '' : __t) + 37'`),cd=rd+t.length,t}),ud+=`'; 38`;var pd=lm.call(t,`variable`)&&t.variable;if(!pd)ud=`with (obj) { 39`+ud+` 40} 41`;else if(zf.test(pd))throw new Zf(id);ud=(sd?ud.replace(vf,``):ud).replace(yf,`$1`).replace(bf,`$1;`),ud=`function(`+(pd||`obj`)+`) { 42`+(pd?``:`obj || (obj = {}); 43`)+`var __t, __p = ''`+(od?`, __e = _.escape`:``)+(sd?`, __j = Array.prototype.join; 44function print() { __p += __j.call(arguments, '') } 45`:`; 46`)+ud+`return __p 47}`;var md=uE(function(){return Qf(rd,fd+`return `+ud).apply($,ad)});if(md.source=ud,ow(md))throw md;return md}function eE(e){return Bw(e).toLowerCase()}function tE(e){return Bw(e).toUpperCase()}function nE(e,t,ed){if(e=Bw(e),e&&(ed||t===$))return Bh(e);if(!e||!(t=Av(t)))return e;var td=cg(e),nd=cg(t);return Hv(td,Wh(td,nd),Gh(td,nd)+1).join(``)}function rE(e,t,ed){if(e=Bw(e),e&&(ed||t===$))return e.slice(0,lg(e)+1);if(!e||!(t=Av(t)))return e;var td=cg(e);return Hv(td,0,Gh(td,cg(t))+1).join(``)}function iE(e,t,ed){if(e=Bw(e),e&&(ed||t===$))return e.replace(Nf,``);if(!e||!(t=Av(t)))return e;var td=cg(e);return Hv(td,Wh(td,cg(t))).join(``)}function aE(e,t){var ed=Cd,td=wd;if(dw(t)){var nd=`separator`in t?t.separator:nd;ed=`length`in t?Fw(t.length):ed,td=`omission`in t?Av(t.omission):td}e=Bw(e);var rd=e.length;if(Zh(e)){var id=cg(e);rd=id.length}if(ed>=rd)return e;var ad=ed-sg(td);if(ad<1)return td;var od=id?Hv(id,0,ad).join(``):e.slice(0,ad);if(nd===$)return od+td;if(id&&(ad+=od.length-ad),Sw(nd)){if(e.slice(ad).search(nd)){var sd,cd=od;for(nd.global||(nd=tm(nd.source,Bw(Hf.exec(nd))+`g`)),nd.lastIndex=0;sd=nd.exec(cd);)var ld=sd.index;od=od.slice(0,ld===$?ad:ld)}}else if(e.indexOf(Av(nd),ad)!=ad){var ud=od.lastIndexOf(nd);ud>-1&&(od=od.slice(0,ud))}return od+td}function oE(e){return e=Bw(e),e&&Cf.test(e)?e.replace(xf,ug):e}var sE=uy(function(e,t,$){return e+($?` `:``)+t.toUpperCase()}),cE=ly(`toUpperCase`);function lE(e,t,ed){return e=Bw(e),t=ed?$:t,t===$?Qh(e)?pg(e):Eh(e):e.match(t)||[]}var uE=_v(function(e,t){try{return dh(e,$,t)}catch(e){return ow(e)?e:new Zf(e)}}),dE=Py(function(e,t){return ph(t,function(t){t=vx(t),d_(e,t,yC(e[t],e))}),e});function fE(e){var t=e==null?0:e.length,$=By();return e=t?yh(e,function(e){if(typeof e[1]!=`function`)throw new rm(rd);return[$(e[0]),e[1]]}):[],_v(function($){for(var ed=-1;++ed<t;){var td=e[ed];if(dh(td[0],this,$))return dh(td[1],this,$)}})}function pE(e){return h_(m_(e,cd))}function mE(e){return function(){return e}}function hE(e,t){return e==null||e!==e?t:e}var gE=my(),_E=my(!0);function vE(e){return e}function yE(e){return Q_(typeof e==`function`?e:m_(e,cd))}function bE(e){return rv(m_(e,cd))}function xE(e,t){return iv(e,m_(t,cd))}var SE=_v(function(e,t){return function($){return B_($,e,t)}}),CE=_v(function(e,t){return function($){return B_(e,$,t)}});function wE(e,t,$){var ed=lT(t),td=A_(t,ed);$==null&&!(dw(t)&&(td.length||!ed.length))&&($=t,t=e,e=this,td=A_(t,lT(t)));var nd=!(dw($)&&`chain`in $)||!!$.chain,rd=cw(e);return ph(td,function($){var ed=t[$];e[$]=ed,rd&&(e.prototype[$]=function(){var t=this.__chain__;if(nd||t){var $=e(this.__wrapped__);return($.__actions__=ey(this.__actions__)).push({func:ed,args:arguments,thisArg:e}),$.__chain__=t,$}return ed.apply(e,bh([this.value()],arguments))})}),e}function TE(){return $m._===this&&($m._=mm),this}function EE(){}function DE(e){return e=Fw(e),_v(function(t){return sv(t,e)})}var OE=vy(yh),kE=vy(hh),AE=vy(Ch);function jE(e){return Jb(e)?Nh(vx(e)):dv(e)}function ME(e){return function(t){return e==null?$:j_(e,t)}}var NE=xy(),PE=xy(!0);function FE(){return[]}function IE(){return!1}function LE(){return{}}function RE(){return``}function zE(){return!0}function BE(e,t){if(e=Fw(e),e<1||e>jd)return[];var $=Pd,ed=Gm(e,Pd);t=By(t),e-=Pd;for(var td=Rh(ed,t);++$<e;)t($);return td}function VE(e){return YC(e)?yh(e,vx):Ew(e)?[e]:ey(_x(Bw(e)))}function HE(e){var t=++um;return Bw(e)+t}var UE=_y(function(e,t){return e+t},0),WE=wy(`ceil`),GE=_y(function(e,t){return e/t},1),KE=wy(`floor`);function qE(e){return e&&e.length?S_(e,vE,P_):$}function JE(e,t){return e&&e.length?S_(e,By(t,2),P_):$}function YE(e){return Mh(e,vE)}function XE(e,t){return Mh(e,By(t,2))}function ZE(e){return e&&e.length?S_(e,vE,tv):$}function QE(e,t){return e&&e.length?S_(e,By(t,2),tv):$}var $E=_y(function(e,t){return e*t},1),eD=wy(`round`),tD=_y(function(e,t){return e-t},0);function nD(e){return e&&e.length?Lh(e,vE):0}function rD(e,t){return e&&e.length?Lh(e,By(t,2)):0}return bg.after=gC,bg.ary=_C,bg.assign=Vw,bg.assignIn=Hw,bg.assignInWith=Uw,bg.assignWith=Ww,bg.at=Gw,bg.before=vC,bg.bind=yC,bg.bindAll=dE,bg.bindKey=bC,bg.castArray=zC,bg.chain=MS,bg.chunk=Sx,bg.compact=Cx,bg.concat=wx,bg.cond=fE,bg.conforms=pE,bg.constant=mE,bg.countBy=US,bg.create=Kw,bg.curry=xC,bg.curryRight=SC,bg.debounce=CC,bg.defaults=qw,bg.defaultsDeep=Jw,bg.defer=wC,bg.delay=TC,bg.difference=Tx,bg.differenceBy=Ex,bg.differenceWith=Dx,bg.drop=Ox,bg.dropRight=kx,bg.dropRightWhile=Ax,bg.dropWhile=jx,bg.fill=Mx,bg.filter=GS,bg.flatMap=JS,bg.flatMapDeep=YS,bg.flatMapDepth=XS,bg.flatten=Fx,bg.flattenDeep=Ix,bg.flattenDepth=Lx,bg.flip=EC,bg.flow=gE,bg.flowRight=_E,bg.fromPairs=Rx,bg.functions=tT,bg.functionsIn=nT,bg.groupBy=$S,bg.initial=Vx,bg.intersection=Hx,bg.intersectionBy=Ux,bg.intersectionWith=Wx,bg.invert=oT,bg.invertBy=sT,bg.invokeMap=tC,bg.iteratee=yE,bg.keyBy=nC,bg.keys=lT,bg.keysIn=uT,bg.map=rC,bg.mapKeys=dT,bg.mapValues=fT,bg.matches=bE,bg.matchesProperty=xE,bg.memoize=DC,bg.merge=pT,bg.mergeWith=mT,bg.method=SE,bg.methodOf=CE,bg.mixin=wE,bg.negate=OC,bg.nthArg=DE,bg.omit=hT,bg.omitBy=gT,bg.once=kC,bg.orderBy=iC,bg.over=OE,bg.overArgs=AC,bg.overEvery=kE,bg.overSome=AE,bg.partial=jC,bg.partialRight=MC,bg.partition=aC,bg.pick=_T,bg.pickBy=vT,bg.property=jE,bg.propertyOf=ME,bg.pull=Yx,bg.pullAll=Xx,bg.pullAllBy=Zx,bg.pullAllWith=Qx,bg.pullAt=$x,bg.range=NE,bg.rangeRight=PE,bg.rearg=NC,bg.reject=cC,bg.remove=eS,bg.rest=PC,bg.reverse=tS,bg.sampleSize=uC,bg.set=bT,bg.setWith=xT,bg.shuffle=dC,bg.slice=nS,bg.sortBy=mC,bg.sortedUniq=lS,bg.sortedUniqBy=uS,bg.split=XT,bg.spread=FC,bg.tail=dS,bg.take=fS,bg.takeRight=pS,bg.takeRightWhile=mS,bg.takeWhile=hS,bg.tap=NS,bg.throttle=IC,bg.thru=PS,bg.toArray=Nw,bg.toPairs=ST,bg.toPairsIn=CT,bg.toPath=VE,bg.toPlainObject=Rw,bg.transform=wT,bg.unary=LC,bg.union=gS,bg.unionBy=_S,bg.unionWith=vS,bg.uniq=yS,bg.uniqBy=bS,bg.uniqWith=xS,bg.unset=TT,bg.unzip=SS,bg.unzipWith=CS,bg.update=ET,bg.updateWith=DT,bg.values=OT,bg.valuesIn=kT,bg.without=wS,bg.words=lE,bg.wrap=RC,bg.xor=TS,bg.xorBy=ES,bg.xorWith=DS,bg.zip=OS,bg.zipObject=kS,bg.zipObjectDeep=AS,bg.zipWith=jS,bg.entries=ST,bg.entriesIn=CT,bg.extend=Hw,bg.extendWith=Uw,wE(bg,bg),bg.add=UE,bg.attempt=uE,bg.camelCase=NT,bg.capitalize=PT,bg.ceil=WE,bg.clamp=AT,bg.clone=BC,bg.cloneDeep=HC,bg.cloneDeepWith=UC,bg.cloneWith=VC,bg.conformsTo=WC,bg.deburr=FT,bg.defaultTo=hE,bg.divide=GE,bg.endsWith=IT,bg.eq=GC,bg.escape=LT,bg.escapeRegExp=RT,bg.every=WS,bg.find=KS,bg.findIndex=Nx,bg.findKey=Yw,bg.findLast=qS,bg.findLastIndex=Px,bg.findLastKey=Xw,bg.floor=KE,bg.forEach=ZS,bg.forEachRight=QS,bg.forIn=Zw,bg.forInRight=Qw,bg.forOwn=$w,bg.forOwnRight=eT,bg.get=rT,bg.gt=KC,bg.gte=qC,bg.has=iT,bg.hasIn=aT,bg.head=zx,bg.identity=vE,bg.includes=eC,bg.indexOf=Bx,bg.inRange=jT,bg.invoke=cT,bg.isArguments=JC,bg.isArray=YC,bg.isArrayBuffer=XC,bg.isArrayLike=ZC,bg.isArrayLikeObject=QC,bg.isBoolean=$C,bg.isBuffer=ew,bg.isDate=tw,bg.isElement=nw,bg.isEmpty=rw,bg.isEqual=iw,bg.isEqualWith=aw,bg.isError=ow,bg.isFinite=sw,bg.isFunction=cw,bg.isInteger=lw,bg.isLength=uw,bg.isMap=pw,bg.isMatch=mw,bg.isMatchWith=hw,bg.isNaN=gw,bg.isNative=_w,bg.isNil=yw,bg.isNull=vw,bg.isNumber=bw,bg.isObject=dw,bg.isObjectLike=fw,bg.isPlainObject=xw,bg.isRegExp=Sw,bg.isSafeInteger=Cw,bg.isSet=ww,bg.isString=Tw,bg.isSymbol=Ew,bg.isTypedArray=Dw,bg.isUndefined=Ow,bg.isWeakMap=kw,bg.isWeakSet=Aw,bg.join=Gx,bg.kebabCase=zT,bg.last=Kx,bg.lastIndexOf=qx,bg.lowerCase=BT,bg.lowerFirst=VT,bg.lt=jw,bg.lte=Mw,bg.max=qE,bg.maxBy=JE,bg.mean=YE,bg.meanBy=XE,bg.min=ZE,bg.minBy=QE,bg.stubArray=FE,bg.stubFalse=IE,bg.stubObject=LE,bg.stubString=RE,bg.stubTrue=zE,bg.multiply=$E,bg.nth=Jx,bg.noConflict=TE,bg.noop=EE,bg.now=hC,bg.pad=HT,bg.padEnd=UT,bg.padStart=WT,bg.parseInt=GT,bg.random=MT,bg.reduce=oC,bg.reduceRight=sC,bg.repeat=KT,bg.replace=qT,bg.result=yT,bg.round=eD,bg.runInContext=e,bg.sample=lC,bg.size=fC,bg.snakeCase=JT,bg.some=pC,bg.sortedIndex=rS,bg.sortedIndexBy=iS,bg.sortedIndexOf=aS,bg.sortedLastIndex=oS,bg.sortedLastIndexBy=sS,bg.sortedLastIndexOf=cS,bg.startCase=ZT,bg.startsWith=QT,bg.subtract=tD,bg.sum=nD,bg.sumBy=rD,bg.template=$T,bg.times=BE,bg.toFinite=Pw,bg.toInteger=Fw,bg.toLength=Iw,bg.toLower=eE,bg.toNumber=Lw,bg.toSafeInteger=zw,bg.toString=Bw,bg.toUpper=tE,bg.trim=nE,bg.trimEnd=rE,bg.trimStart=iE,bg.truncate=aE,bg.unescape=oE,bg.uniqueId=HE,bg.upperCase=sE,bg.upperFirst=cE,bg.each=ZS,bg.eachRight=QS,bg.first=zx,wE(bg,function(){var e={};return O_(bg,function(t,$){lm.call(bg.prototype,$)||(e[$]=t)}),e}(),{chain:!1}),bg.VERSION=ed,ph([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){bg[e].placeholder=bg}),ph([`drop`,`take`],function(e,t){wg.prototype[e]=function(ed){ed=ed===$?1:Bm(Fw(ed),0);var td=this.__filtered__&&!t?new wg(this):this.clone();return td.__filtered__?td.__takeCount__=Gm(ed,td.__takeCount__):td.__views__.push({size:Gm(ed,Pd),type:e+(td.__dir__<0?`Right`:``)}),td},wg.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),ph([`filter`,`map`,`takeWhile`],function(e,t){var $=t+1,ed=$==Dd||$==kd;wg.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:By(e,3),type:$}),t.__filtered__=t.__filtered__||ed,t}}),ph([`head`,`last`],function(e,t){var $=`take`+(t?`Right`:``);wg.prototype[e]=function(){return this[$](1).value()[0]}}),ph([`initial`,`tail`],function(e,t){var $=`drop`+(t?``:`Right`);wg.prototype[e]=function(){return this.__filtered__?new wg(this):this[$](1)}}),wg.prototype.compact=function(){return this.filter(vE)},wg.prototype.find=function(e){return this.filter(e).head()},wg.prototype.findLast=function(e){return this.reverse().find(e)},wg.prototype.invokeMap=_v(function(e,t){return typeof e==`function`?new wg(this):this.map(function($){return B_($,e,t)})}),wg.prototype.reject=function(e){return this.filter(OC(By(e)))},wg.prototype.slice=function(e,t){e=Fw(e);var ed=this;return ed.__filtered__&&(e>0||t<0)?new wg(ed):(e<0?ed=ed.takeRight(-e):e&&(ed=ed.drop(e)),t!==$&&(t=Fw(t),ed=t<0?ed.dropRight(-t):ed.take(t-e)),ed)},wg.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},wg.prototype.toArray=function(){return this.take(Pd)},O_(wg.prototype,function(e,t){var ed=/^(?:filter|find|map|reject)|While$/.test(t),td=/^(?:head|last)$/.test(t),nd=bg[td?`take`+(t==`last`?`Right`:``):t],rd=td||/^find/.test(t);
47nd&&(bg.prototype[t]=function(){var t=this.__wrapped__,id=td?[1]:arguments,ad=t instanceof wg,od=id[0],sd=ad||YC(t),cd=function(e){var t=nd.apply(bg,bh([e],id));return td&&ld?t[0]:t};sd&&ed&&typeof od==`function`&&od.length!=1&&(ad=sd=!1);var ld=this.__chain__,ud=!!this.__actions__.length,dd=rd&&!ld,fd=ad&&!ud;if(!rd&&sd){t=fd?t:new wg(this);var pd=e.apply(t,id);return pd.__actions__.push({func:PS,args:[cd],thisArg:$}),new Cg(pd,ld)}return dd&&fd?e.apply(this,id):(pd=this.thru(cd),dd?td?pd.value()[0]:pd.value():pd)})}),ph([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=im[e],$=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,ed=/^(?:pop|shift)$/.test(e);bg.prototype[e]=function(){var e=arguments;if(ed&&!this.__chain__){var td=this.value();return t.apply(YC(td)?td:[],e)}return this[$](function($){return t.apply(YC($)?$:[],e)})}}),O_(wg.prototype,function(e,t){var $=bg[t];if($){var ed=$.name+``;lm.call(Ph,ed)||(Ph[ed]=[]),Ph[ed].push({name:t,func:$})}}),Ph[hy($,md).name]=[{name:`wrapper`,func:$}],wg.prototype.clone=Tg,wg.prototype.reverse=Eg,wg.prototype.value=Dg,bg.prototype.at=FS,bg.prototype.chain=IS,bg.prototype.commit=LS,bg.prototype.next=RS,bg.prototype.plant=BS,bg.prototype.reverse=VS,bg.prototype.toJSON=bg.prototype.valueOf=bg.prototype.value=HS,bg.prototype.first=bg.prototype.head,Tm&&(bg.prototype[Tm]=zS),bg})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?($m._=mg,define(function(){return mg})):th?((th.exports=mg)._=mg,eh._=mg):$m._=mg}).call(e)})),import_lodash=require_lodash(),_sfc_main$22={name:`Loader`,props:{width:{type:String,required:!1,default:null},height:{type:String,required:!1,default:null}},computed:{computedStyles(){return{maxWidth:this.width,height:this.height}}}};function _sfc_render$22(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,{style:normalizeStyle(nd.computedStyles),class:normalizeClass([`loader-box`,{"loader-box--ratio":!$.height}])},null,6)}var LoaderBox_default=_plugin_vue_export_helper_default(_sfc_main$22,[[`render`,_sfc_render$22],[`__scopeId`,`data-v-fcb8c72e`]]),_sfc_main$21={name:`ImageComponent`,components:{LoaderBox:LoaderBox_default},inheritAttrs:!1,props:{image:{type:Object,required:!1,default:null},width:{type:String,required:!0},height:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},formats:{type:Array,required:!1,default:()=>[[`(min-width: 0px)`,`small`]]}},data(){return{loading:!0,error:!1}},computed:{placeholderLogo(){return(0,import_lodash.get)(this.$globalData,`logo`,null)},sources(){let e=[];return this.image!==null&&(e=this.formats.map(([e,t])=>{let $=[t,`${t}@2x`].map(e=>{let t=(0,import_lodash.get)(this.image,e,null);return e.includes(`@2x`)&&(t+=` 2x`),t}).join(`, `);if(!$)return!1;let ed=$.replaceAll(/\.(jpg|jpeg|png)/g,`.webp`);return ed!==$&&($=`${ed}, ${$}`),{srcset:$,media:e}}).filter(e=>!!e)),e},usePlaceholder(){return this.sources.length===0&&!(0,import_lodash.has)(this.image,`url`)||this.error},useFallBack(){return this.sources.length===0&&(0,import_lodash.has)(this.image,`url`)},alt(){return(0,import_lodash.get)(this.image,`alt`,null)},fallbackSrc(){let{image:e,sources:t}=this,$=e===null?null:e.url;return t.length>0&&($=t[t.length-1].srcset.replace(/ +[0-9]x.*$/,``)),$}},methods:{onImgLoad(){this.loading=!1},onImgError(){this.error=!0}}},_hoisted_1$21=[`data-alt`,`title`],_hoisted_2$19=[`srcset`,`media`],_hoisted_3$17=[`src`,`title`,`alt`,`width`,`height`],_hoisted_4$15=[`src`,`width`,`height`];function _sfc_render$21(e,t,$,ed,td,nd){let rd=resolveComponent(`LoaderBox`);return openBlock(),createElementBlock(`div`,null,[td.loading?(openBlock(),createBlock(rd,{key:0})):createCommentVNode(``,!0),createBaseVNode(`picture`,{"data-alt":nd.alt,title:nd.alt,class:normalizeClass({"is-placeholder":nd.usePlaceholder})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.sources,(e,t)=>(openBlock(),createElementBlock(`source`,{key:t,srcset:e.srcset,media:e.media},null,8,_hoisted_2$19))),128)),createBaseVNode(`img`,{src:nd.fallbackSrc,title:nd.alt,alt:nd.alt,width:$.width,height:$.height,onLoad:t[0]||=(...e)=>nd.onImgLoad&&nd.onImgLoad(...e),onError:t[1]||=(...e)=>nd.onImgError&&nd.onImgError(...e)},null,40,_hoisted_3$17),nd.usePlaceholder?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`placeholder`,{"placeholder--square":$.square}])},[createBaseVNode(`img`,{src:nd.placeholderLogo,width:$.width,height:$.height,alt:`placeholder`,onLoad:t[2]||=(...e)=>nd.onImgLoad&&nd.onImgLoad(...e)},null,40,_hoisted_4$15)],2)):createCommentVNode(``,!0)],10,_hoisted_1$21)])}var ImageComponent_default=_plugin_vue_export_helper_default(_sfc_main$21,[[`render`,_sfc_render$21],[`__scopeId`,`data-v-5d00a8f6`]]),_sfc_main$20={name:`
47Suggestor`,components:{ImageComponent:ImageComponent_default,ButtonComponent:ButtonComponent_default},props:{suggestions:{type:Array,required:!1,default:()=>[]},page:{type:String,required:!0}},methods:{getUrl(e){let{page:t}=this,$;return $=e.type===`target`?`${t}?target_${e.name}=${e.text}`:e.url,$}}},_hoisted_1$20={key:0,class:`suggestor`},_hoisted_2$18={class:`suggestor__items`},_hoisted_3$16=[`href`],_hoisted_4$14={key:0,class:`suggestor__img`},_hoisted_5$11={key:1,class:`suggestor__breadcrumbs`};function _sfc_render$20(e,t,$,ed,td,nd){let rd=resolveComponent(`ImageComponent`),id=resolveComponent(`ButtonComponent`);return $.suggestions&&$.suggestions.length?(openBlock(),createElementBlock(`div`,_hoisted_1$20,[createBaseVNode(`div`,_hoisted_2$18,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.suggestions,(e,t)=>(openBlock(),createElementBlock(`a`,{key:`suggestion-${t}`,href:nd.getUrl(e),class:`suggestor__item`},[e.image?(openBlock(),createElementBlock(`div`,_hoisted_4$14,[createVNode(rd,{image:e.image,width:`75`,height:`47`},null,8,[`image`])])):createCommentVNode(``,!0),e.path?(openBlock(),createElementBlock(`div`,_hoisted_5$11,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.path,(t,$)=>(openBlock(),createElementBlock(`span`,{key:t},[createTextVNode(toDisplayString(t)+` `,1),$<e.path.length-1?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(` > `)],64)):createCommentVNode(``,!0)]))),128))])):createCommentVNode(``,!0)],8,_hoisted_3$16))),128))]),createVNode(id,{label:e.$globalData.i18n.show_all_results,onClickAction:t[0]||=t=>e.$emit(`show-all-results`)},null,8,[`label`])])):createCommentVNode(``,!0)}var Suggestor_default=_plugin_vue_export_helper_default(_sfc_main$20,[[`render`,_sfc_render$20],[`__scopeId`,`data-v-10529f75`]]),_sfc_main$19={name:`SearchInput`,components:{ButtonComponent:ButtonComponent_default,Suggestor:Suggestor_default,VueMultiselect:script},directives:{clickOutSide:import_lib$7.default},props:{title:{type:String,required:!1,default:null}},data(){return{jwt:null,inputValue:null,suggestorIsVisible:!1,suggestions:[],suggestionsFetching:!1,indexValue:{},indexOptions:[]}},computed:{btnSearch(){return document.querySelector(`.js-btn-search`)}},watch:{suggestions(){this.showSuggestor()}},created(){let{jwt:e,index:t}=this.$globalData;this.indexOptions=t,this.indexValue=t[0],this.jwt=e,this.btnSearch.addEventListener(`click`,this.handleSearchBtnClick)},beforeDestroy(){this.btnSearch.removeEventListener(`click`,this.handleSearchBtnClick)},methods:{async handleSearchInput(){let{apiRoot:e,lang:t,region:$,unit:ed}=this.$globalData;try{this.suggestionsFetching=!0,this.suggestions=(await this.$axios({method:`post`,url:e,data:{index:this.indexValue.code,text:this.inputValue,options:{lang:t,region:$,unit:ed}},headers:{Authorization:`Bearer ${this.jwt}`}})).data.items,this.suggestionsFetching=!1}catch(e){console.error(`error`,e)}},handleSearch(){this.inputValue&&(window.location.href=`${this.indexValue.page}?text=${this.inputValue}`)},clearSearch(){this.inputValue=null,this.handleSearch()},showSuggestor(){this.suggestorIsVisible=!0},hideSuggestor(){this.suggestorIsVisible=!1},handleSearchBtnClick(){setTimeout(()=>{this.$refs.input.focus()},500)}}},_hoisted_1$19={class:`search-input`},_hoisted_2$17=[`placeholder`],_hoisted_3$15=[`onMousedown`];function _sfc_render$19(e,t,$,ed,td,nd){let rd=resolveComponent(`ButtonComponent`),id=resolveComponent(`VueMultiselect`),ad=resolveComponent(`Suggestor`),od=resolveDirective(`click-out-side`);return withDirectives((openBlock(),createElementBlock(`div`,_hoisted_1$19,[createVNode(rd,{icon:`search`,text:``,onClickAction:nd.handleSearch},null,8,[`onClickAction`]),withDirectives(createBaseVNode(`input`,{ref:`input`,"onUpdate:modelValue":t[0]||=e=>td.inputValue=e,placeholder:`${e.$globalData.i18n.search}...`,type:`text`,autocomplete:`off`,name:`search`,onInput:t[1]||=(...e)=>nd.handleSearchInput&&nd.handleSearchInput(...e),onKeypress:t[2]||=withKeys((...e)=>nd.handleSearch&&nd.handleSearch(...e),[`enter`]),onFocus:t[3]||=(...e)=>nd.showSuggestor&&nd.showSuggestor(...e)},null,40,_hoisted_2$17),[[vModelText,td.inputValue]]),createVNode(id,{modelValue:td.indexValue,"onUpdate:modelValue":t[4]||=e=>td.indexValue=e,options:td.indexOptions,searchable:!1,"allow-empty":!1,"show-labels":!1,label:`name`,"track-by":`code`,onOpen:nd.hideSuggestor,onInput:nd.clearSearch},{caret:withCtx(({toggle:e})=>[createBaseVNode(`span`,{class:`caret`,onMousedown:withModifiers(e,[`prevent`,`stop`])},t[5]||=[createBaseVNode(`i`,{class:`material-symbols`},`keyboard_arrow_down`,-1)],40,_hoisted_3$15)]),_:1},8,[`modelValue`,`options`,`onOpen`,`onInput`]),td.suggestorIsVisible&&td.inputValue&&!td.suggestionsFetching?(openBlock(),createBlock(ad,{key:0,suggestions:td.suggestions,page:td.indexValue.page,onShowAllResults:nd.handleSearch},null,8,[`suggestions`,`page`,`onShowAllResults`])):createCommentVNode(``,!0)])),[[od,nd.hideSuggestor]])}var SearchInput_default=_plugin_vue_export_helper_default(_sfc_main$19,[[`render`,_sfc_render$19],[`__scopeId`,`data-v-d81c3379`]]);
47Array.from(document.querySelectorAll(`search-input`)).forEach(e=>{let t={};Object.entries(e.dataset).forEach(([e,$])=>{[`index`,`i18n`].includes(e)?t[e]=JSON.parse($):t[e]=$});let $=createApp(SearchInput_default);$.config.globalProperties.$axios=import_axios.default,$.config.globalProperties.$globalData=t,$.mount(e)});var _sfc_main$18={name:`FilesUpload`,props:{name:{type:String,required:!0},label:{type:String,required:!1,default:`Browse`},disabled:{type:Boolean,required:!1,default:!1},isError:{type:Boolean,required:!1,default:!1},acceptedFiles:{type:String,required:!1,default:`image/png, image/jpeg, application/pdf, application/msword, application/vnd.ms-excel`}},data(){return{filesList:[]}},methods:{handleFilesChange(e){let t=e.target.files||[];for(let e=0;e<t.length;e++){let $=t[e];this.filesList.find(e=>e.name===$.name&&e.size===$.size)||this.filesList.push($)}e.target.value=null,this.emitFilesChange()},handleFileRemove(e){this.filesList.splice(e,1),this.emitFilesChange()},clearFilesList(){this.filesList=[],this.emitFilesChange()},emitFilesChange(){this.$emit(`files-change`,{name:this.name,filesList:this.filesList})}}},_hoisted_1$18=[`for`],_hoisted_2$16={class:`btn btn--primary`},_hoisted_3$14={key:0,class:`files-upload__list`},_hoisted_4$13=[`onClick`],_hoisted_5$10=[`id`,`disabled`,`accept`,`name`];function _sfc_render$18(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`label`,{for:$.name,class:normalizeClass([`files-upload`,{"is-error":$.isError}])},[createBaseVNode(`div`,_hoisted_2$16,toDisplayString($.label),1),td.filesList.length>0?(openBlock(),createElementBlock(`ul`,_hoisted_3$14,[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.filesList,(e,$)=>(openBlock(),createElementBlock(`li`,{key:e.name,onClick:withModifiers(e=>nd.handleFileRemove($),[`prevent`])},[createTextVNode(toDisplayString(`${e.name} ${(e.size/(1024*1024)).toFixed(2)} MB`)+`\xA0\xA0`,1),t[1]||=createBaseVNode(`strong`,null,`â`,-1)],8,_hoisted_4$13))),128))])):createCommentVNode(``,!0),createBaseVNode(`input`,{id:$.name,disabled:$.disabled,accept:$.acceptedFiles,name:$.name,type:`file`,multiple:``,onChange:t[0]||=(...e)=>nd.handleFilesChange&&nd.handleFilesChange(...e)},null,40,_hoisted_5$10)],10,_hoisted_1$18)}var FilesUpload_default=_plugin_vue_export_helper_default(_sfc_main$18,[[`render`,_sfc_render$18],[`__scopeId`,`data-v-a4950d48`]]),_sfc_main$17={name:`ContactForm`,components:{FilesUpload:FilesUpload_default},data(){let{lang:e,formDefaultSelect:t,formFields:$,formAction:ed,emailSent:td,recaptchaCode:nd,hasError:rd,successMessage:id,errorValidationMessage:ad,emailFailureMessage:od,requiredFailureMessage:sd,failureMessage:cd,browseMessage:ld,submitMessage:ud,userEmail:dd}=this.$globalData,fd={},pd={};return $.forEach(e=>{fd[e.name]=e.value,pd[e.name]=null,e.type===`email`&&(fd[e.name]=dd)}),{hasToken:!1,recaptchaToken:null,loading:!1,filesList:{},formInputs:$,formData:fd,errors:pd,lang:e,formDefaultSelect:t,formAction:ed,emailSent:td,recaptchaCode:nd,hasError:rd,hasErrorValidation:null,emailFailureMessage:od,errorValidationMessage:ad,requiredFailureMessage:sd,successMessage:id,failureMessage:cd,browseMessage:ld,submitMessage:ud}},computed:{currentRequestType(){return this.formData.request_type?this.formData.request_type:null},realFormInputs(){return this.formInputs.filter(e=>[`all`,this.currentRequestType].includes(e.display)).filter(e=>e.type!==`select`||this.getInputItems(e).length>1)},currentCountryCode(){return this.formData.country?this.formData.country:null}},mounted(){let e=new URL(window.location.href).searchParams.get(`request_type`);if(e&&(this.formData.request_type=e),typeof grecaptcha>`u`){let e=document.createElement(`script`);e.src=`https://www.google.com/recaptcha/api.js?render=explicit`,e.onload=this.renderWait,document.head.appendChild(e)}else this.render()},methods:{getInputLabel(e){return`${e.label}${e.mandatory?` *`:``}`},checkInputValidity({type:e,name:t,mandatory:$}){let ed=this.formData[t];e===`email`&&(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(ed)?this.errors[t]=null:this.errors[t]=this.emailFailureMessage),(e===`text`||e===`textarea`||e===`select`||e===`date`)&&(this.errors[t]=$&&ed.trim()===``?this.requiredFailureMessage:null),this.emailSent=!1,this.hasErrorValidation=!1,this.hasError=!1},renderWait(){setTimeout(()=>{typeof grecaptcha<`u`&&grecaptcha.render!==void 0?this.render():this.renderWait()},200)},render(){let e=document.createElement(`div`);document.getElementById(`contact-form`).appendChild(e),this.widgetId=grecaptcha.render(e,{sitekey:this.recaptchaCode,size:`invisible`,callback:e=>{e&&this.hasToken===!1&&(this.hasToken=!0,this.recaptchaToken=e,this.submitForm(
47)),this.callback(e)}})},getInputItems(e){return e.name===`state`?e.items.filter(e=>e.country_code===this.currentCountryCode):e.items},handleSelect({name:e}){if(e.includes(`request`)){let t=this.formData[e];document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Contact Form`,eventAction:`Select Request`,eventLabel:t}}))}return e},handleFilesChange(e){let{name:t,filesList:$}=e,ed=0;this.filesList[t]=$,this.filesList[t].forEach(e=>{ed+=e.size}),ed>25e6?this.errors[t]=`Max 25MB`:this.errors[t]=null},checkInputs(){this.realFormInputs.forEach(e=>{this.checkInputValidity(e)}),Object.values(this.errors).find(e=>e)&&!this.emailSent?this.hasErrorValidation=!0:(this.hasErrorValidation=!1,this.checkRecaptcha())},checkRecaptcha(){try{this.hasToken||grecaptcha.execute()}catch(e){console.error(`error`,e)}},handleDateInput(e){this.errors[e.target.name]=null},async submitForm(){try{if(this.hasToken===!0){this.loading=!0;let e=new FormData;e.append(`lang`,this.lang),e.append(`g-recaptcha-response`,this.recaptchaToken),Object.entries(this.formData).forEach(([t,$])=>{if(t.includes(`attachment`)&&this.filesList[t])for(let $=0;$<this.filesList[t].length;$++)e.append(`${t}-file-${$}`,this.filesList[t][$]);else e.append(t,$)}),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Contact Form`,eventAction:`Submit`,eventLabel:this.formData.request}}));let{data:t}=await this.$axios({method:`post`,url:this.formAction,data:e,headers:{"Content-Type":`multipart/form-data`}});if(this.emailSent=t.email_sent,this.hasError=t.recaptcha_error||t.has_error,this.loading=!1,this.emailSent===!0){let e={},t={};this.formInputs.forEach($=>{e[$.name]=$.value,t[$.name]=null}),this.$refs.files.forEach(e=>{e.clearFilesList()}),this.filesList={},this.formData=e,this.errors=t,this.hasErrorValidation=!1,this.hasError=!1,this.hasToken=!1,grecaptcha.reset(this.widgetId)}}}catch(e){console.error(`error`,e)}}}},_hoisted_1$17=[`for`,`innerHTML`],_hoisted_2$15={key:1,class:`select`},_hoisted_3$13=[`id`,`onUpdate:modelValue`,`disabled`,`name`,`onChange`],_hoisted_4$12=[`value`],_hoisted_5$9={key:0,class:`alert alert--danger`},_hoisted_6$7=[`onUpdate:modelValue`,`disabled`,`onBlur`,`onInput`],_hoisted_7$7={key:0,class:`alert alert--danger`},_hoisted_8$4=[`onUpdate:modelValue`,`disabled`,`onBlur`,`onInput`],_hoisted_9$3={key:0,class:`alert alert--danger`},_hoisted_10$2=[`onUpdate:modelValue`,`disabled`,`onBlur`,`onInput`],_hoisted_11$2={key:0,class:`alert alert--danger`},_hoisted_12$2={key:0,class:`alert alert--danger`},_hoisted_13$1={key:6,class:`custom-checkbox`},_hoisted_14$1=[`onUpdate:modelValue`,`name`],_hoisted_15$1=[`id`,`onUpdate:modelValue`,`name`],_hoisted_16$1={key:0,class:`alert alert--danger`},_hoisted_17$1={class:`u-text-center`},_hoisted_18$1=[`disabled`],_hoisted_19$1={key:0,class:`alert alert--danger u-mt-3`},_hoisted_20$1={key:1,class:`alert alert--danger u-mt-3`},_hoisted_21$1={key:2,class:`alert alert--success u-mt-3`};function _sfc_render$17(e,t,$,ed,td,nd){let rd=resolveComponent(`FilesUpload`);return openBlock(),createElementBlock(`form`,{id:`contact-form`,onSubmit:t[1]||=withModifiers((...e)=>nd.checkInputs&&nd.checkInputs(...e),[`prevent`])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.realFormInputs,(e,$)=>withDirectives((openBlock(),createElementBlock(`div`,{key:`input${$}`,class:`form-group`},[e.type===`checkbox`?createCommentVNode(``,!0):(openBlock(),createElementBlock(`label`,{key:0,for:e.name,class:`form-label`,innerHTML:nd.getInputLabel(e)},null,8,_hoisted_1$17)),e.type===`select`?(openBlock(),createElementBlock(`div`,_hoisted_2$15,[withDirectives(createBaseVNode(`select`,{id:`input.${e.name}`,"onUpdate:modelValue":t=>td.formData[e.name]=t,disabled:td.loading,name:e.name,class:normalizeClass({"form-control":!0,"is-error":td.errors[e.name]}),onChange:t=>nd.handleSelect(e)},[(openBlock(),createElementBlock(`option`,{key:`${e.name}-default`,value:``,selected:``,disabled:``,hidden:``},` - `+toDisplayString(td.formDefaultSelect)+` - `,1)),(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.getInputItems(e),e=>(openBlock(),createElementBlock(`option`,{key:`${e}-${$}`,value:e.code},toDisplayString(e.title),9,_hoisted_4$12))),128))],42,_hoisted_3$13),[[vModelSelect,td.formData[e.name]]]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_5$9,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)])):createCommentVNode(``,!0),e.type===`text`?(openBlock(),createElementBlock(Fragment,{key:2},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":t=>td.formData[e.name]=t,disabled:td.loading,class:normalizeClass({"form-control":!0,"is-error":td.errors[e.name]}),onBlur:t=>nd.checkInputValidity(e),onInput:t=>nd.checkInputValidity(e)},null,42,_hoisted_6$7),[[vModelText,td.formData[e.name]]]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_7$7,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0),e.type===`textarea`?(openBlock(),createElementBlock(Fragment,{key:3},[withDirectives(createBaseVNode(`textarea`,{"onUpdate:modelValue":t=>td.formData[e.name]=t,disabled:td.loading,class:normalizeClass({"form-control":!0,"is-error":td.errors[e.name]}),onBlur:t=>nd.checkInputValidity(e),onInput:t=>nd.checkInputValidity(e)},null,42,_hoisted_8$4),[[vModelText,td.formData[e.name]]]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_9$3,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0),e.type===`email`?(openBlock(),createElementBlock(Fragment,{key:4},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":t=>td.formData[e.name]=t,disabled:td.loading,class:normalizeClass({"form-control":!0,"is-error":td.errors[e.name]}),name:`email`,onBlur:t=>nd.checkInputValidity(e),onInput:t=>nd.checkInputValidity(e)},null,42,_hoisted_10$2),[[vModelText,td.formData[e.name]]]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_11$2,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0),e.type===`file`?(openBlock(),createElementBlock(Fragment,{key:5},[createVNode(rd,{ref_for:!0,ref:`files`,name:e.name,label:td.browseMessage,disabled:td.loading,"is-error":td.errors[e.name],accept:e.accept||`image/png, image/jpeg, application/pdf, application/msword, application/vnd.ms-excel`,onFilesChange:nd.handleFilesChange},null,8,[`name`,`label`,`disabled`,`is-error`,`accept`,`onFilesChange`]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_12$2,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0),e.type===`checkbox`?(openBlock(),createElementBlock(`label`,_hoisted_13$1,[createTextVNode(toDisplayString(e.label)+` `,1),withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":t=>td.formData[e.name]=t,name:e.name,type:`checkbox`},null,8,_hoisted_14$1),[[vModelCheckbox,td.formData[e.name]]]),t[2]||=createBaseVNode(`span`,null,null,-1)])):createCommentVNode(``,!0),e.type===`date`?(openBlock(),createElementBlock(Fragment,{key:7},[withDirectives(createBaseVNode(`input`,{id:e.name,"onUpdate:modelValue":t=>td.formData[e.name]=t,name:e.name,class:`form-control`,type:`date`,onChange:t[0]||=(...e)=>nd.handleDateInput&&nd.handleDateInput(...e)},null,40,_hoisted_15$1),[[vModelText,td.formData[e.name]]]),td.errors[e.name]?(openBlock(),createElementBlock(`div`,_hoisted_16$1,toDisplayString(td.errors[e.name]),1)):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0)])),[[vShow,!td.emailSent]])),128)),createBaseVNode(`div`,_hoisted_17$1,[withDirectives(createBaseVNode(`button`,{id:`submit`,disabled:td.loading,class:`btn btn--primary`,type:`submit`},toDisplayString(td.submitMessage),9,_hoisted_18$1),[[vShow,!td.emailSent]])]),td.hasErrorValidation?(openBlock(),createElementBlock(`p`,_hoisted_19$1,toDisplayString(td.error
47ValidationMessage),1)):createCommentVNode(``,!0),td.hasError?(openBlock(),createElementBlock(`p`,_hoisted_20$1,toDisplayString(td.failureMessage),1)):createCommentVNode(``,!0),td.emailSent?(openBlock(),createElementBlock(`p`,_hoisted_21$1,toDisplayString(td.successMessage),1)):createCommentVNode(``,!0)],32)}var ContactForm_default=_plugin_vue_export_helper_default(_sfc_main$17,[[`render`,_sfc_render$17]]);Array.from(document.querySelectorAll(`contact-form`)).forEach(e=>{let t={};Object.entries(e.dataset).forEach(([e,$])=>{t[e]=$,[].includes(e)&&(t[e]=JSON.parse($)),[`formFields`].includes(e)&&(t[e]=JSON.parse(decodeURIComponent($)))});let $=createApp(ContactForm_default);$.config.globalProperties.$axios=import_axios.default,$.config.globalProperties.$globalData=t,$.mount(e)});var require_vue_the_mask=__commonJSMin(((e,t)=>{(function($,ed){typeof e==`object`&&typeof t==`object`?t.exports=ed():typeof define==`function`&&define.amd?define([],ed):typeof e==`object`?e.VueTheMask=ed():$.VueTheMask=ed()})(e,function(){return function(e){function t(ed){if($[ed])return $[ed].exports;var td=$[ed]={i:ed,l:!1,exports:{}};return e[ed].call(td.exports,td,td.exports,t),td.l=!0,td.exports}var $={};return t.m=e,t.c=$,t.i=function(e){return e},t.d=function(e,$,ed){t.o(e,$)||Object.defineProperty(e,$,{configurable:!1,enumerable:!0,get:ed})},t.n=function(e){var $=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d($,`a`,$),$},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=`.`,t(t.s=10)}([function(e,t){e.exports={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},"!":{escape:!0}}},function(e,t,$){function ed(e){var t=document.createEvent(`Event`);return t.initEvent(e,!0,!0),t}var td=$(2),nd=$(0),rd=$.n(nd);t.a=function(e,t){var nd=t.value;if((Array.isArray(nd)||typeof nd==`string`)&&(nd={mask:nd,tokens:rd.a}),e.tagName.toLocaleUpperCase()!==`INPUT`){var id=e.getElementsByTagName(`input`);if(id.length!==1)throw Error(`v-mask directive requires 1 input, found `+id.length);e=id[0]}e.oninput=function(t){if(t.isTrusted){var rd=e.selectionEnd,id=e.value[rd-1];for(e.value=$.i(td.a)(e.value,nd.mask,!0,nd.tokens);rd<e.value.length&&e.value.charAt(rd-1)!==id;)rd++;e===document.activeElement&&(e.setSelectionRange(rd,rd),setTimeout(function(){e.setSelectionRange(rd,rd)},0)),e.dispatchEvent(ed(`input`))}};var ad=$.i(td.a)(e.value,nd.mask,!0,nd.tokens);ad!==e.value&&(e.value=ad,e.dispatchEvent(ed(`input`)))}},function(e,t,$){var ed=$(6),td=$(5);t.a=function(e,t){var nd=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],rd=arguments[3];return Array.isArray(t)?$.i(td.a)(ed.a,t,rd)(e,t,nd,rd):$.i(ed.a)(e,t,nd,rd)}},function(e,t,$){function ed(e){e.component(ad.a.name,ad.a),e.directive(`mask`,rd.a)}Object.defineProperty(t,`__esModule`,{value:!0});var td=$(0),nd=$.n(td),rd=$(1),id=$(7),ad=$.n(id);$.d(t,`TheMask`,function(){return ad.a}),$.d(t,`mask`,function(){return rd.a}),$.d(t,`tokens`,function(){return nd.a}),$.d(t,`version`,function(){return od});var od=`0.11.1`;t.default=ed,typeof window<`u`&&window.Vue&&window.Vue.use(ed)},function(e,t,$){Object.defineProperty(t,`__esModule`,{value:!0});var ed=$(1),td=$(0),nd=$.n(td),rd=$(2);t.default={name:`TheMask`,props:{value:[String,Number],mask:{type:[String,Array],required:!0},masked:{type:Boolean,default:!1},tokens:{type:Object,default:function(){return nd.a}}},directives:{mask:ed.a},data:function(){return{lastValue:null,display:this.value}},watch:{value:function(e){e!==this.lastValue&&(this.display=e)},masked:function(){this.refresh(this.display)}},computed:{config:function(){return{mask:this.mask,tokens:this.tokens,masked:this.masked}}},methods:{onInput:function(e){e.isTrusted||this.refresh(e.target.value)},refresh:function(e){this.display=e;var e=$.i(rd.a)(e,this.mask,this.masked,this.tokens);e!==this.lastValue&&(this.lastValue=e,this.$emit(`input`,e))}}}},function(e,t,$){function ed(e,t,$){return t=t.sort(function(e,t){return e.length-t.length}),function(ed,td){for(var nd=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],rd=0;rd<t.length;){var id=t[rd];rd++;var ad=t[rd];if(!(ad&&e(ed,ad,!0,$).length>id.length))return e(ed,id,nd,$)}return``}}t.a=ed},function(e,t,$){function ed(e,t){var $=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ed=arguments[3];e||=``,t||=``;for(var td=0,nd=0,rd=``;td<t.length&&nd<e.length;){var id=t[td],ad=ed[id],od=e[nd];
47ad&&!ad.escape?(ad.pattern.test(od)&&(rd+=ad.transform?ad.transform(od):od,td++),nd++):(ad&&ad.escape&&(td++,id=t[td]),$&&(rd+=id),od===id&&nd++,td++)}for(var sd=``;td<t.length&&$;){var id=t[td];if(ed[id]){sd=``;break}sd+=id,td++}return rd+sd}t.a=ed},function(e,t,$){e.exports=$(8)($(4),$(9),null,null).exports},function(e,t){e.exports=function(e,t,$,ed){var td,nd=e||={},rd=typeof e.default;rd!==`object`&&rd!==`function`||(td=e,nd=e.default);var id=typeof nd==`function`?nd.options:nd;if(t&&(id.render=t.render,id.staticRenderFns=t.staticRenderFns),$&&(id._scopeId=$),ed){var ad=id.computed||={};Object.keys(ed).forEach(function(e){var t=ed[e];ad[e]=function(){return t}})}return{esModule:td,exports:nd,options:id}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(`input`,{directives:[{name:`mask`,rawName:`v-mask`,value:e.config,expression:`config`}],attrs:{type:`text`},domProps:{value:e.display},on:{input:e.onInput}})},staticRenderFns:[]}},function(e,t,$){e.exports=$(3)}])})})),import_vue_the_mask=require_vue_the_mask(),_sfc_main$16={name:`
47SpecRegistrationForm`,components:{Multiselect:script,FilesUpload:FilesUpload_default},directives:{mask:import_vue_the_mask.mask},data(){let e=JSON.parse(decodeURIComponent(this.$globalData.i18n)),t=JSON.parse(decodeURIComponent(this.$globalData.states)),{type:$,email:ed,sitename:td,recaptchaCode:nd,analyticsCode:rd,apiUrl:id}=this.$globalData,ad=[],od={};return $===`bom`?(ad=[{title:`sections.rep`,layout:`half`,inputs:[{type:`text`,id:`name`,name:`name`,required:!0},{type:`email`,id:`email`,name:`email`,required:!0},{type:`text`,id:`rep-name`,name:`rep_name`,required:!0},{type:`text`,id:`rep-location`,name:`rep_location`,required:!0}]},{title:`sections.job`,layout:`half`,inputs:[{type:`text`,id:`job-name`,name:`job_name`,required:!0},{type:`text`,id:`job-location`,name:`job_location`,required:!0},{type:`date`,id:`bid-date`,name:`bid_date`,required:!0},{type:`date`,id:`order-date`,name:`order_date`,required:!0}]},{title:`sections.architect`,layout:`half`,inputs:[{type:`text`,id:`architect-name`,name:`architect_name`},{type:`text`,id:`architect-firm`,name:`architect_firm`},{type:`text`,id:`architect-address`,name:`architect_address`},{type:`text`,id:`architect-city`,name:`architect_city`},{type:`select`,id:`architect-state`,name:`architect_state`},{type:`text`,id:`architect-zipcode`,name:`architect_zipcode`}]},{title:`sections.engineer`,layout:`half`,inputs:[{type:`text`,id:`engineer-name`,name:`engineer_name`},{type:`text`,id:`engineer-firm`,name:`engineer_firm`},{type:`text`,id:`engineer-address`,name:`engineer_address`},{type:`text`,id:`engineer-city`,name:`engineer_city`},{type:`select`,id:`engineer-state`,name:`engineer_state`},{type:`text`,id:`engineer-zipcode`,name:`engineer_zipcode`}]},{title:`sections.more_infos`,inputs:[{type:`textarea`,id:`more-infos`,name:`more_infos`}]},{title:`sections.line`,layout:`line`,inputs:[{type:`number`,id:`quantity`,name:`quantity`,class:`col-1-2 md-1-5 u-mb-g`,required:!0},{type:`text`,id:`type`,name:`type`,class:`col-1-2 md-1-5 u-mb-g`,required:!0},{type:`text`,id:`model`,name:`model`,class:`col-1-1 md-3-5 u-mb-g`,required:!0},{type:`textarea`,id:`description`,name:`description`,class:`u-mb-g`,required:!0}]},{title:`sections.attachments`,layout:`files`}],od={quantity:null,type:null,model:null,description:null}):(ad=[{layout:`half`,inputs:[{type:`note`,label:`notes.one`},{type:`date`,id:`date`,name:`date`,default:new Date().toISOString().substring(0,10),required:!0}]},{layout:`full`,inputs:[{type:`text`,id:`projects-name`,name:`project_name`,required:!0},{type:`text`,id:`project-location`,name:`project_location`,required:!0},{type:`note`,label:`notes.two`}]},{layout:`half`,inputs:[{type:`text`,id:`specifying-agency`,name:`specifying_agency`,required:!0},{type:`tel`,id:`phone`,name:`phone`,required:!0},{type:`text`,id:`contact-name`,name:`contact_name`,required:!0},{type:`email`,id:`email`,name:`email`,required:!0}]},{layout:`half`,inputs:[{type:`radio`,layout:`full`,id:`fixture-brand`,name:`fixture_brand`,default:`fixture_brand_yes`,items:[{id:`fixture-brand-yes`,name:`fixture_brand_yes`},{id:`fixture-brand-no`,name:`fixture_brand_no`}]},{type:`text`,layout:`full`,id:`alternatives`,name:`alternatives`,labelDependency:`fixture_brand`,required:!0},{type:`date`,id:`bid-date`,name:`bid_date`,required:!0},{type:`text`,id:`product-value`,name:`product_value`,required:!0}]},{layout:`btn-optional`},{layout:`half`,optional:!0,inputs:[{type:`text`,id:`architect`,name:`architect`},{type:`tel`,id:`architect-phone`,name:`architect_phone`,label:`phone`},{type:`text`,id:`architect-contact-name`,name:`architect_contact_name`,label:`contact_name`},{type:`email`,id:`architect-email`,name:`architect_email`,label:`email`}]},{layout:`half`,optional:!0,inputs:[{type:`text`,id:`lighting-designer`,name:`lighting_designer`},{type:`tel`,id:`lighting-designer-phone`,name:`lighting_designer_phone`,label:`phone`},{type:`text`,id:`lighting-designer-name`,name:`lighting_designer_contact_name`,label:`contact_name`},{type:`email`,id:`lighting-designer-email`,name:`lighting_designer_email`,label:`email`}]},{layout:`half`,optional:!0,inputs:[{type:`text`,id:`electrical-engineer`,name:`electrical_engineer`},{type:`tel`,id:`electrical-engineer-phone`,name:`electrical_engineer_phone`,label:`phone`},{type:`text`,id:`electrical-engineer-name`,name:`electrical_engineer_contact_name`,label:`contact_name`},{type:`email`,id:`electrical-engineer-email`,name:`electrical_engineer_email`,label:`email`}]},{layout:`full`,inputs:[{type:`note`,layout:`full`,label:`notes.four`}]}
47,{layout:`line`,inputs:[{type:`text`,id:`spec-type`,name:`spec_type`,class:`col-1-1 md-2-5 u-mb-g`,required:!0},{type:`text`,id:`catalog-number`,name:`catalog_number`,class:`col-1-2 md-2-5 u-mb-g`,required:!0},{type:`number`,id:`quantity`,name:`quantity`,class:`col-1-2 md-1-5 u-mb-g`,required:!0},{type:`textarea`,id:`description`,name:`description`,class:`col-1-1 u-mb-g`,required:!0}]},{inputs:[{type:`textarea`,id:`additional-notes`,name:`additional_notes`}]},{title:`sections.attachments`,layout:`files`}],od={specType:null,catalogNumber:null,quantity:null,description:null}),{type:$,email:ed,sitename:td,apiUrl:id,initialLineItem:od,hasToken:!1,recaptchaToken:null,recaptchaCode:nd,analyticsCode:rd,i18n:e,states:t,hasErrorValidation:!1,hasErrorApi:!1,errors:{},filesList:[],loading:!1,showOptionalFields:!1,hasSuccess:!1,model:{line:[(0,import_lodash.cloneDeep)(od)]},sections:ad}},mounted(){if(typeof grecaptcha>`u`){let e=document.createElement(`script`);e.src=`https://www.google.com/recaptcha/api.js?render=explicit`,e.onload=this.renderWait,document.head.appendChild(e)}else this.render();this.setDefaultInputValues()},methods:{t(e){let t=e.split(`.`).reduce((e,t)=>e===void 0?void 0:e[t],this.i18n);return t===void 0?`i18n.${e}`:t},setDefaultInputValues(){this.sections.filter(e=>e.inputs).forEach(e=>{e.inputs.filter(e=>e.default).forEach(e=>{this.model[e.name]=e.default})})},handleLineItemAction(e,t=0){e===`add`?this.model.line.push((0,import_lodash.cloneDeep)(this.initialLineItem)):this.model.line.splice(t,1),this.errors={},this.hasErrorValidation=!1},getInputLabel(e){let t=e.label??e.name;return this.t(`fields.${e.labelDependency?`${t}_${this.model[e.labelDependency]}`:t}`)},handleFilesChange(e){let t=0;this.filesList=e.filesList,this.filesList.forEach(e=>{t+=e.size}),t>2e7?this.errors.files=this.t(`messages.error_files`):this.errors.files=null},clearForm(){this.model={line:[(0,import_lodash.cloneDeep)(this.initialLineItem)]},this.$refs.files.forEach(e=>{e.clearFilesList()}),this.setDefaultInputValues(),this.loading=!1,this.errors={},this.hasErrorValidation=!1,this.hasErrorApi=!1,this.hasToken=!1,grecaptcha.reset(this.widgetId)},validateInput({type:e,name:t,required:$},ed=null,td=0){let nd=ed===`line`?this.model.line[td][t]:this.model[t],rd=[`text`,`textarea`,`select`,`number`,`date`,`tel`].includes(e);if(e===`email`&&($&&!nd?this.errors[t]=this.t(`messages.error_required`):nd&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(nd)?this.errors[t]=this.t(`messages.error_email`):this.errors[t]=null),rd){let e=ed===`line`?`line-${t}-${td}`:t;$&&!nd?this.errors[e]=this.t(`messages.error_required`):this.errors[e]=null}this.hasSuccess=!1,this.hasErrorValidation=!1,this.hasErrorApi=!1},validateAllInputs(){this.sections.forEach(e=>{e.layout!==`files`&&e.layout!==`btn-optional`&&e.inputs.forEach(t=>{if(e.layout===`line`)for(let $=0;$<this.model.line.length;$++)this.validateInput(t,e.layout,$);else this.validateInput(t)})}),Object.values(this.errors).find(e=>e)&&!this.hasSuccess?this.hasErrorValidation=!0:(this.hasErrorValidation=!1,this.checkRecaptcha())},renderWait(){setTimeout(()=>{typeof grecaptcha<`u`&&grecaptcha.render!==void 0?this.render():this.renderWait()},200)},render(){let e=document.createElement(`div`);document.querySelector(`#specregistration-form`).appendChild(e),this.widgetId=grecaptcha.render(e,{sitekey:this.recaptchaCode,size:`invisible`,callback:e=>{e&&this.hasToken===!1&&(this.hasToken=!0,this.recaptchaToken=e,this.submitForm()),this.callback(e)}})},checkRecaptcha(){try{this.hasToken||grecaptcha.execute()}catch(e){console.error(`error`,e)}},async submitForm(){try{if(this.hasToken){this.hasErrorApi=!1,this.loading=!0;let e=new FormData;Object.entries(this.model).forEach(([t,$])=>{t===`line`?this.model.line.forEach(t=>{e.append(`${this.type}[]`,JSON.stringify(t))}):e.append(t,$)}),this.filesList.forEach(t=>{e.append(`attachments[]`,t)}),e.append(`g-recaptcha-response`,this.recaptchaToken);let{form:t}=(await this.$axios({method:`post`,url:this.apiUrl,data:e,headers:{"Content-Type":`multipart/form-data`}})).data;if(this.hasSuccess=t.email_sent,this.hasSuccess)window.parent.document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Spec Registration Form`,eventAction:`Send Registration`,eventLabel:this.type}})),e={},this.clearForm();else throw this.loading=!1,this.hasErrorApi=!0,this.hasToken=!1,grecaptcha.reset(this.widgetId),Error(`Spec Registration Form - Form submitted but got error from API `+this.apiUrl)}}catch(e){throw this.loading=!1,this.hasErrorApi=!0,this.hasToken=!1,grecaptcha.reset(this.widgetId),Error(`Spec Registration Form - `+e)}}}},_hoisted_1$16={key:0},_hoisted_2$14=[`for`],_hoisted_3$12=[`id`,`onUpdate:modelValue`,`disabled`,`type`,`name`,`onBlur`,`onInput`],_hoisted_4$11=[`id`,`onUpdate:modelValue`,`disabled`,`type`,`name`,`onBlur`,`onInput`],_hoisted_5$8={key:2,class:`alert alert--danger`},_hoisted_6$6={class:`col-1-1 u-mb-g`},_hoisted_7$6=[`disabled`,`onClick`],_hoisted_8$3=[`disabled`],_hoisted_9$2={key:2,class:`u-mt-6`},_hoisted_10$1={class:`form-label u-mb-g`},_hoisted_11$1={key:0,class:`alert alert--danger`},_hoisted_12$1={key:4,class:`row flex-row`},_hoisted_13=[`for`],_hoisted_14={key:1,class:`u-mb-0`},_hoisted_15=[`id`,`onUpdate:modelValue`,`disabled`,`type`,`name`,`onBlur`,`onInput`],_hoisted_16=[`for`],_hoisted_17=[`id`,`onUpdate:modelValue`,`disabled`,`value`],_hoisted_18=[`id`,`onUpdate:modelValue`,`disabled`,`type`,`name`,`onBlur`,`onInput`],_hoisted_19={key:6,class:`alert alert--danger`},_hoisted_20={key:0,class:`alert alert--danger`},_hoisted_21={key:1,class:`alert alert--danger`},_hoisted_22={key:2,class:`alert alert--success`},_hoisted_23={class:`form-actions`},_hoisted_24=[`disabled`];function _sfc_render$16(e,t,$,ed,td,nd){let rd=resolveComponent(`FilesUpload`),id=resolveComponent(`multiselect`);return openBlock(),createElementBlock(`form`,{id:`specregistration-form`,class:normalizeClass([`form`,[`form`,{"form--bom":td.type===`bom`}]]),onSubmit:t[3]||=withModifiers((...e)=>nd.validateAllInputs&&nd.validateAllInputs(...e),[`prevent`])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.sections,(e,$)=>withDirectives((openBlock(),createElementBlock(`div`,{key:`section-${$}`,class:`form-section`},[e.title?(openBlock(),createElementBlock(`h2`,_hoisted_1$16,toDisplayString(nd.t(`${e.title}`)),1)):createCommentVNode(``,!0),e.layout===`btn-optional`?(openBlock(),createElementBlock(`button`,{key:1,class:normalizeClass(`btn btn--${td.showOptionalFields?`secondary`:`accent`}`),onClick:t[0]||=withModifiers(e=>td.showOptionalFields=!td.showOptionalFields,[`prevent`])},toDisplayString(td.showOptionalFields?`-`:`+`)+` `+toDisplayString(nd.t(`fields.${td.showOptionalFields?`hide`:`show`}`))+` `+toDisplayString(nd.t(`fields.optional_fields`)),3)):e.layout===`line`?(openBlock(!0),createElementBlock(Fragment,{key:2},renderList(td.model.line,($,ed)=>(openBlock(),createElementBlock(`div`,{key:ed,class:`row flex-row`},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.input
47s,(t,$)=>(openBlock(),createElementBlock(`div`,{key:`${t.name}-${$}`,class:normalizeClass(t.class??null)},[createBaseVNode(`label`,{for:t.id,class:`form-label`},toDisplayString(nd.t(`fields.${t.label??t.name}`))+` * `,9,_hoisted_2$14),t.type===`text`||t.type===`number`?withDirectives((openBlock(),createElementBlock(`input`,{key:0,id:`line-${t.id}-${ed}`,"onUpdate:modelValue":e=>td.model.line[ed][t.name]=e,disabled:td.loading,type:t.type,name:t.name,class:normalizeClass([`form-control`,{"is-error":td.errors[`line-${t.name}-${ed}`]}]),onBlur:$=>nd.validateInput(t,e.layout,ed),onInput:$=>nd.validateInput(t,e.layout,ed)},null,42,_hoisted_3$12)),[[vModelDynamic,td.model.line[ed][t.name]]]):createCommentVNode(``,!0),t.type===`textarea`?withDirectives((openBlock(),createElementBlock(`textarea`,{key:1,id:`line-${t.id}-${ed}`,"onUpdate:modelValue":e=>td.model.line[ed][t.name]=e,disabled:td.loading,type:t.type,name:t.name,class:normalizeClass([`form-control`,{"is-error":td.errors[`line-${t.name}-${ed}`]}]),rows:`3`,onBlur:$=>nd.validateInput(t,e.layout,ed),onInput:$=>nd.validateInput(t,e.layout,ed)},null,42,_hoisted_4$11)),[[vModelText,td.model.line[ed][t.name]]]):createCommentVNode(``,!0),td.errors[`line-${t.name}-${ed}`]?(openBlock(),createElementBlock(`div`,_hoisted_5$8,toDisplayString(td.errors[`line-${t.name}-${ed}`]),1)):createCommentVNode(``,!0)],2))),128)),createBaseVNode(`div`,_hoisted_6$6,[td.model.line.length>1?(openBlock(),createElementBlock(`button`,{key:0,disabled:td.loading,class:`btn btn--secondary u-mr-1`,onClick:withModifiers(e=>nd.handleLineItemAction(`remove`,ed),[`prevent`])},` - `+toDisplayString(nd.t(`buttons.remove`)),9,_hoisted_7$6)):createCommentVNode(``,!0),ed===td.model.line.length-1?(openBlock(),createElementBlock(`button`,{key:1,disabled:td.loading,class:`btn btn--accent`,onClick:t[1]||=withModifiers(e=>nd.handleLineItemAction(`add`),[`prevent`])},` + `+toDisplayString(nd.t(`buttons.add`)),9,_hoisted_8$3)):createCommentVNode(``,!0),ed===td.model.line.length-1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`hr`,_hoisted_9$2))])]))),128)):e.layout===`files`?(openBlock(),createElementBlock(Fragment,{key:3},[createBaseVNode(`label`,_hoisted_10$1,[createTextVNode(toDisplayString(nd.t(`messages.attachments_1`)),1),t[4]||=createBaseVNode(`br`,null,null,-1),createTextVNode(` `+toDisplayString(nd.t(`messages.attachments_2`)),1)]),createVNode(rd,{ref_for:!0,ref:`files`,label:nd.t(`fields.browse`),disabled:td.loading,"is-error":td.errors.files,name:`files`,onFilesChange:nd.handleFilesChange},null,8,[`label`,`disabled`,`is-error`,`onFilesChange`]),td.errors.files?(openBlock(),createElementBlock(`div`,_hoisted_11$1,toDisplayString(td.errors.files),1)):createCommentVNode(``,!0)],64)):(openBlock(),createElementBlock(`div`,_hoisted_12$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.inputs,$=>(openBlock(),createElementBlock(`div`,{key:$.name,class:normalizeClass([`col-1-1 u-mb-g`,{"sm-1-2":e.layout===`half`&&$.layout!==`full`}])},[$.type===`note`?createCommentVNode(``,!0):(openBlock(),createElementBlock(`label`,{key:0,for:$.id,class:`form-label`},toDisplayString(nd.getInputLabel($))+` `+toDisplayString($.required?` *`:``),9,_hoisted_13)),$.type===`note`?(openBlock(),createElementBlock(`p`,_hoisted_14,toDisplayString(nd.t($.label)),1)):createCommentVNode(``,!0),$.type===`text`||$.type===`email`||$.type===`date`||$.type===`tel`?withDirectives((openBlock(),createElementBlock(`input`,{key:2,id:$.id,"onUpdate:modelValue":e=>td.model[$.name]=e,disabled:td.loading,type:$.type,name:$.name,class:normalizeClass([`form-control`,{"is-error":td.errors[$.name]}]),onBlur:e=>nd.validateInput($),onInput:e=>nd.validateInput($)},null,42,_hoisted_15)),[[vModelDynamic,td.model[$.name]]]):createCommentVNode(``,!0),$.type===`radio`?(openBlock(!0),createElementBlock(Fragment,{key:3},renderList($.items,e=>(openBlock(),createElementBlock(`label`,{key:e.name,for:e.id,class:`custom-radio`},[createTextVNode(toDisplayString(nd.t(`fields.${e.name}`))+` `,1),withDirectives(createBaseVNode(`input`,{id:e.id,"onUpdate:modelValue":e=>td.model[$.name]=e,disabled:td.loading,value:e.name,type:`radio`},null,8,_hoisted_17),[[vModelRadio,td.model[$.name]]]),t[5]||=createBaseVNode(`span`,null,null,-1)],8,_hoisted_16))),128)):createCommentVNode(``,!0),$.type===`textarea`?withDirectives((openBlock(),createElementBlock(`textarea`,{key:4,id:$.id,"onUpdate:modelValue":e=>td.model[$.name]=e,disabled:td.loading,type:$.type,name:$.name,class:normalizeClass([`form-control`,{"is-error":td.errors[$.name]}]),rows:`5`,onBlur:e=>nd.validateInput($),onInput:e=>nd.validateInput($)},null,42,_hoisted_18)),[[vModelText,td.model[$.name]]]):createCommentVNode(``,!0),$.type===`select`?(openBlock(),createBlock(id,{key:5,modelValue:td.model[$.name],"onUpdate:modelValue":e=>td.model[$.name]=e,disabled:td.loading,options:td.states.map(e=>e.code),"custom-label":e=>td.states.find(t=>t.code===e).title,"show-labels":!1,placeholder:null,class:normalizeClass([{"is-error":td.errors[$.name]}]),onBlur:e=>nd.validateInput($),onInput:e=>nd.validateInput($)},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`,`options`,`custom-label`,`class`,`onBlur`,`onInput`])):createCommentVNode(``,!0),td.errors[$.name]?(openBlock(),createElementBlock(`div`,_hoisted_19,toDisplayString(td.errors[$.name]),1)):createCommentVNode(``,!0)],2))),128))]))])),[[vShow,!e.optional||td.showOptionalFields]])),128)),td.hasErrorValidation?(openBlock(),createElementBlock(`p`,_hoisted_20,toDisplayString(nd.t(`messages.error_validation`)),1)):createCommentVNode(``,!0),td.hasErrorApi?(openBlock(),createElementBlock(`p`,_hoisted_21,toDisplayString(nd.t(`messages.error_api`)),1)):createCommentVNode(``,!0),td.hasSuccess?(openBlock(),createElementBlock(`p`,_hoisted_22,toDisplayString(nd.t(`messages.success`)),1)):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_23,[createBaseVNode(`button`,{id:`submit`,disabled:td.loading,class:`btn btn--accent`,type:`submit`},toDisplayString(nd.t(`buttons.send`)),9,_hoisted_24),createBaseVNode(`a`,{href:`#`,onClick:t[2]||=withModifiers((...e)=>nd.clearForm&&nd.clearForm(...e),[`prevent`])},toDisplayString(nd.t(`buttons.clear`)),1)])],34)}var SpecRegistrationForm_default=_plugin_vue_export_helper_default(_sfc_main$16,[[`render`,_sfc_render$16],[`__scopeId`,`data-v-c71b8383`]]),specRegistrationForm=document.querySelector(`specregistration-form`);
47if(specRegistrationForm){let e={};Object.entries(specRegistrationForm.dataset).forEach(([t,$])=>{e[t]=$,[].includes(t)&&(e[t]=JSON.parse($))});let t=createApp(SpecRegistrationForm_default);t.config.globalProperties.$axios=import_axios.default,t.config.globalProperties.$globalData=e,t.mount(specRegistrationForm)}var _sfc_main$15={name:`VoltageDropCalculatorForm`,components:{Multiselect:script},data(){let e=[{name:`All RGB or RGBW`,value:24},{name:`CL - Clara`,value:30},{name:`HB1.25 - HBeam 1.25`,value:29},{name:`HBMC - HBeam Micro`,value:29},{name:`HY - Hylytr`,value:36},{name:`LP1 - Lightplane 1`,value:28},{name:`LP1/MR1 - Moonring 1`,value:12},{name:`MR1.5/3 - Moonring 1.5/3`,value:33},{name:`RLP1 - Round Lightplane 1 (incl. 3D)`,value:28},{name:`RLP2/3 - Round Lightplane 2/3`,value:33},{name:`RPD02 - Polygon Beyond`,value:24},{name:`RPD04 - IceTube`,value:24},{name:`RPD06 - Moonring/Moondish`,value:24},{name:`RPD07 - Go Figure`,value:24},{name:`RPD08 - Masterspoke`,value:24},{name:`RPD14 - Glass Act`,value:24},{name:`RPD15 - Twist Open`,value:24},{name:`RPD16 - Crowne Pointe`,value:27},{name:`TRP - Triplane`,value:34}],t=[{name:`18 AWG`,value:6.385},{name:`16 AWG`,value:4.016},{name:`14 AWG`,value:2.525},{name:`12 AWG`,value:1.588},{name:`10 AWG`,value:.9989}];return{fixtureOptions:e,wireGaugeOptions:t,fixtureValue:e[0],wireGaugeValue:t[0],powerValue:45,calculationValue:null}},created(){this.handleCalculation()},methods:{handleCalculation(){let{fixtureValue:e,wireGaugeValue:t,powerValue:$}=this;this.calculationValue=Math.floor(500*((.03-$/e.value*t.value*8/(500*e.value))*e.value)/($/e.value*t.value))}}},_hoisted_1$15={class:`voltage-drop-calculator`},_hoisted_2$13={class:`form-group`},_hoisted_3$11={class:`row`},_hoisted_4$10={class:`sm-1-2`},_hoisted_5$7={class:`form-group`},_hoisted_6$5={class:`sm-1-2`},_hoisted_7$5={class:`form-group`},_hoisted_8$2={class:`form-group`};function _sfc_render$15(e,t,$,ed,td,nd){let rd=resolveComponent(`multiselect`);return openBlock(),createElementBlock(`div`,_hoisted_1$15,[t[8]||=createBaseVNode(`h2`,null,`Voltage Drop Calculator`,-1),t[9]||=createBaseVNode(`p`,null,`Use this calculator to estimate maximum wire length between canopy J-Box and a standard (0/10V) remote driver. This calculator assumes an 8ft 18AWG power drop cable from canopy to fixture.`,-1),createBaseVNode(`form`,null,[createBaseVNode(`div`,_hoisted_2$13,[t[4]||=createBaseVNode(`label`,{for:`fixture`,class:`form-label`},`Select a Fixture`,-1),createVNode(rd,{id:`fixture`,modelValue:td.fixtureValue,"onUpdate:modelValue":t[0]||=e=>td.fixtureValue=e,options:td.fixtureOptions,label:`name`,"track-by":`name`,"show-labels":!1,placeholder:null,"allow-empty":!1,onSelect:nd.handleCalculation},null,8,[`modelValue`,`options`,`onSelect`])]),createBaseVNode(`div`,_hoisted_3$11,[createBaseVNode(`div`,_hoisted_4$10,[createBaseVNode(`div`,_hoisted_5$7,[t[5]||=createBaseVNode(`label`,{for:`wire-gauge`,class:`form-label`},`Wire Gauge (AWG)`,-1),createVNode(rd,{id:`wire-gauge`,modelValue:td.wireGaugeValue,"onUpdate:modelValue":t[1]||=e=>td.wireGaugeValue=e,options:td.wireGaugeOptions,label:`name`,"track-by":`name`,"show-labels":!1,placeholder:null,"allow-empty":!1,onSelect:nd.handleCalculation},null,8,[`modelValue`,`options`,`onSelect`])])]),createBaseVNode(`div`,_hoisted_6$5,[createBaseVNode(`div`,_hoisted_7$5,[t[6]||=createBaseVNode(`label`,{for:`power`,class:`form-label`},[createTextVNode(`Power (W) `),createBaseVNode(`sup`,null,`1`)],-1),withDirectives(createBaseVNode(`input`,{id:`power`,"onUpdate:modelValue":t[2]||=e=>td.powerValue=e,type:`number`,class:`form-control`,onInput:t[3]||=(...e)=>nd.handleCalculation&&nd.handleCalculation(...e)},null,544),[[vModelText,td.powerValue]])])])]),t[7]||=createBaseVNode(`p`,{style:{"margin-bottom":`32px`}},[createBaseVNode(`sup`,null,[createBaseVNode(`strong`,null,`1`)]),createTextVNode(`\xA0 `),createBaseVNode(`em`,null,`Power is fixture wattage, calculated based on the fixture length/size. See spec sheet for power information (W or calculate from W/ft) and enter here.`)],-1),createBaseVNode(`div`,_hoisted_8$2,[createBaseVNode(`h2`,null,`Maximum Run Length: `+toDisplayString(td.calculationValue)+`ft`,1)])])])}var VoltageDropCalculatorForm_default=_plugin_vue_export_helper_default(_sfc_main$15,[[`render`,_sfc_render$15],[`__scopeId`,`data-v-a6396aa8`]]),voltageDropCalculatorForm=d
47ocument.querySelector(`voltage-drop-calculator-form`);voltageDropCalculatorForm&&createApp(VoltageDropCalculatorForm_default).mount(voltageDropCalculatorForm);var data_default=JSON.parse(`[{"id":"1","rating":"Damp","oldPCode":"AM","oldPDesc":"ALTO 6, Surface Mount","newPCode":"CHM6","newPDesc":"CORE 6 (High Output), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/109/e38d927edcf675d5578e36c781d44645","newPage":"https://www.alw-inc.com/products/7/core-high-output"},{"id":"2","rating":"Damp","oldPCode":"AP","oldPDesc":"ALTO 6, Pendant","newPCode":"CHP6","newPDesc":"CORE 6 (High Output), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/103/84c5ac553d727d2bc7d9ae12ef576586","newPage":"https://www.alw-inc.com/products/7/core-high-output"},{"id":"3","rating":"Damp","oldPCode":"AS","oldPDesc":"ALTO 6, Sconce","newPCode":"CHS6","newPDesc":"CORE 6 (High Output), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/111/99154864f4191f16d7ae3d9ef664c8b2","newPage":"https://www.alw-inc.com/products/7/core-high-output"},{"id":"4","rating":"Damp","oldPCode":"AY","oldPDesc":"ALTO 6, Yoke","newPCode":"CHY6","newPDesc":"CORE 6 (High Output), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/112/edf926c228e839d7caa3da6f0656ce00","newPage":"https://www.alw-inc.com/products/7/core-high-output"},{"id":"5","rating":"Damp","oldPCode":"C2CM","oldPDesc":"CORE CX 200, Surface Mount","newPCode":"CCM3","newPDesc":"CORE 3 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/113/bd26b8067e17c1676f6ec6a2a5076f4b","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"6","rating":"Damp","oldPCode":"C2CP","oldPDesc":"CORE CX 200, Pendant","newPCode":"CCP3","newPDesc":"CORE 3 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/114/8e4d7e44e1e6785bc0e2eb550489a332","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"7","rating":"Damp","oldPCode":"C2CS","oldPDesc":"CORE CX 200, Sconce","newPCode":"CCS3","newPDesc":"CORE 3 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/115/824bb7eec76db1effbf4b4a828f88f32","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"8","rating":"Damp","oldPCode":"C2CT","oldPDesc":"CORE CX 200, Up+Down Pendant","newPCode":"CCT3","newPDesc":"CORE 3 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/116/88ab8c1a9d888170a0a5e17e1966d33f","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"9","rating":"Damp","oldPCode":"C2CU","oldPDesc":"CORE CX 200, Up+Down Sconce","newPCode":"CCU3","newPDesc":"CORE 3 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/117/24a84aeeba2f747a7d7ac16d0f9f4c4d","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"10","rating":"Damp","oldPCode":"C2CY","oldPDesc":"CORE CX 200, Yoke","newPCode":"CCY3","newPDesc":"CORE 3 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/118/15c7a69438437f91ea7397369b5dce21","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"11","rating":"Damp","oldPCode":"C3CM","oldPDesc":"CORE CX 300, Surface Mount","newPCode":"CCM4","newPDesc":"CORE 4 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/119/0f1af2154306e1f85848e201a0d33666","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"12","rating":"Damp","oldPCode":"C3CP","oldPDesc":"CORE CX 300, Pendant","newPCode":"CCP4","newPDesc":"CORE 4 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/120/7721939ff51cc8ca964e8fb45be624b6","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"13","rating":"Damp","oldPCode":"C3CS","oldPDesc":"CORE CX 300, Sconce","newPCode":"CCS4","newPDesc":"CORE 4 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/121/39271e2ed74626e6de472dacf360dfa8","newPage":"https://www.alw-inc.com/products/10/core-cutout"}
47,{"id":"14","rating":"Damp","oldPCode":"C3CT","oldPDesc":"CORE CX 300, Up+Down Pendant","newPCode":"CCT4","newPDesc":"CORE 4 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/122/668ab97861d1cc067444ec59a748b24b","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"15","rating":"Damp","oldPCode":"C3CU","oldPDesc":"CORE CX 300, Up+Down Sconce","newPCode":"CCU4","newPDesc":"CORE 4 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/123/9a294c2894fd6f170d6f1e0eaef1e67b","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"16","rating":"Damp","oldPCode":"C3CY","oldPDesc":"CORE CX 300, Yoke","newPCode":"CCY4","newPDesc":"CORE 4 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/124/6c1d12c0ac3f1d0ef0806a724ff7ad1b","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"17","rating":"Damp","oldPCode":"C4CM","oldPDesc":"CORE CX 400, Surface Mount","newPCode":"CCM6","newPDesc":"CORE 6 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/125/ed7d2d804d780f1f3045e9d5dc7cc078","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"18","rating":"Damp","oldPCode":"C4CP","oldPDesc":"CORE CX 400, Pendant","newPCode":"CCP6","newPDesc":"CORE 6 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/126/39cc35b929c85c7929828edf32a6852f","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"19","rating":"Damp","oldPCode":"C4CS","oldPDesc":"CORE CX 400, Sconce","newPCode":"CCS6","newPDesc":"CORE 6 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/127/1e3836cb9a30204b8550e0b02bcbcbcc","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"20","rating":"Damp","oldPCode":"C4CT","oldPDesc":"CORE CX 400, Up+Down Pendant","newPCode":"CCT6","newPDesc":"CORE 6 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/128/eab26b538cac5dd91aa0b695d9fef791","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"21","rating":"Damp","oldPCode":"C4CU","oldPDesc":"CORE CX 400, Up+Down Sconce","newPCode":"CCU6","newPDesc":"CORE 6 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/129/d3901998510ef74d905bbbbfc7409ee8","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"22","rating":"Damp","oldPCode":"C4CY","oldPDesc":"CORE CX 400, Yoke","newPCode":"CCY6","newPDesc":"CORE 6 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/130/9dd0ce1901946271cc9c99677dd9e730","newPage":"https://www.alw-inc.com/products/10/core-cutout"},{"id":"23","rating":"Damp","oldPCode":"C2LM","oldPDesc":"CORE LX 200, Surface Mount","newPCode":"CRM3","newPDesc":"CORE 3 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/131/dc940558608afd6459c9c20fd363a97b","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"24","rating":"Damp","oldPCode":"C2LP","oldPDesc":"CORE LX 200, Pendant","newPCode":"CRP3","newPDesc":"CORE 3 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/132/d0ef22b6c0bbce0e2de00e68c4b6a45c","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"25","rating":"Damp","oldPCode":"C2LS","oldPDesc":"CORE LX 200, Sconce","newPCode":"CRS3","newPDesc":"CORE 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/133/0e890d383e97535318af9d1c9e500ba6","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"26","rating":"Damp","oldPCode":"C2LT","oldPDesc":"CORE LX 200, Up+Down Pendant","newPCode":"CRT3","newPDesc":"CORE 3 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/134/928789f7e03c0807d83b2cc8ef5f671e","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"27","rating":"Damp","oldPCode":"C2LU","oldPDesc":"CORE LX 200, Up+Down Sconce","newPCode":"CRU3","newPDesc":"CORE 3 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/135/5f0b0cf47e3070978052a30676d391f8","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"28","rating":"Damp","oldPCode":"C2LY","oldPDesc":"CORE LX 200, Yoke","newPCode":"CRY3","newPDesc":"CORE 3 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/136/e6384056e27c276b4816fb50cd8c28a3","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"29","rating":"Damp","oldPCode":"C3LM","oldPDesc":"CORE LX 300, Surface Mount","newPCode":"CRM4","newPDesc":"CORE 4 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/137/4d57576ffd5b1a36060755c8c73bff8a","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"30","rating":"Damp","oldPCode":"C3LP","oldPDesc":"CORE LX 300, Pendant","newPCode":"CRP4","newPDesc":"CORE 4 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/138/dbec6fa20bfadbb1cf607cbd5cc6d31b","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"31","rating":"Damp","oldPCode":"C3LS","oldPDesc":"CORE LX 300, Sconce","newPCode":"CRS4","newPDesc":"CORE 4 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/139/5c38fc4b36984051cfcdfd0ab0b0d053","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"32","rating":"Damp","oldPCode":"C3LT","oldPDesc":"CORE LX 300, Up+Down Pendant","newPCode":"CRT4","newPDesc":"CORE 4 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/140/1582c5a8c7c5745a1ebbc3e0c52f5ccb","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"33","rating":"Damp","oldPCode":"C3LU","oldPDesc":"CORE LX 300, Up+Down Sconce","newPCode":"CRU4","newPDesc":"CORE 4 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/141/87790b3ce892e3413dfa16af06c35079","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"34","rating":"Damp","oldPCode":"C3LY","oldPDesc":"CORE LX 300, Yoke","newPCode":"CRY4","newPDesc":"CORE 4 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/142/67f4c67972fb879bfc9c6e70423bddee","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"35","rating":"Damp","oldPCode":"C4LM","oldPDesc":"CORE LX 400, Surface Mount","newPCode":"CRM6","newPDesc":"CORE 6 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/143/fc77d6b5a306214660dbe5e70fffe2e8","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"36","rating":"Damp","oldPCode":"C4LP","oldPDesc":"CORE LX 400, Pendant","newPCode":"CRP6","newPDesc":"CORE 6 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/144/9f84897013434f0c19eb2c53a39804a1","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"37","rating":"Damp","oldPCode":"C4LS","oldPDesc":"CORE LX 400, Sconce","newPCode":"CRS6","newPDesc":"CORE 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/145/5424a12c76d9d4588ba69128c71eaa38","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"38","rating":"Damp","oldPCode":"C4LT","oldPDesc":"CORE LX 400, Up+Down Pendant","newPCode":"CRT6","newPDesc":"CORE 6 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/146/7a4b376110e9771bbbe0a224e1941846","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"39","rating":"Damp","oldPCode":"C4LU","oldPDesc":"CORE LX 400, Up+Down Sconce","newPCode":"CRU6","newPDesc":"CORE 6 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/147/5e47a451a0290812184bb87acbf89111","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"40","rating":"Damp","oldPCode":"C4LY","oldPDesc":"CORE LX 400, Yoke","newPCode":"CRY6","newPDesc":"CORE 6 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/148/6f2c4aafe023790181ee0f211457e936","newPage":"https://www.alw-inc.com/products/9/core-round"},{"id":"41","rating":"Damp","oldPCode":"C2SM","oldPDesc":"CORE SX 200, Surface Mount","newPCode":"NRM2","newPDesc":"NOVA 2 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/149/7502d995226ceadba46c82b9f0f777ee","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"42","rating":"Damp","oldPCode":"C2SP","oldPDesc":"CORE SX 200, Pendant","newPCode":"NRP2","newPDesc":"NOVA 2 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/150/d5fe33c3053dce7cfcfdb184d3b54090","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"43","rating":"Damp","oldPCode":"C2SS","oldPDesc":"CORE SX 200, Sconce","newPCode":"NRS2","newPDesc":"NOVA 2 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/151/13359dd2b8d25cacc8b6617cd52e1f48","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"44","rating":"Damp","oldPCode":"C2SY","oldPDesc":"CORE SX 200, Yoke","newPCode":"NRY2","newPDesc":"NOVA 2 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/152/b95442d70edcab1a77cd042aa19a4282","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"45","rating":"Damp","oldPCode":"C3SM","oldPDesc":"CORE SX 300, Surface Mount","newPCode":"NRM3","newPDesc":"NOVA 3 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/153/53d7b9baebcb3cb85942cb7e1b65d12c","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"46","rating":"Damp","oldPCode":"C3SP","oldPDesc":"CORE SX 300, Pendant","newPCode":"NRP3","newPDesc":"NOVA 3 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/154/197b382aa37e10f13eb7c99da17f96a5","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"47","rating":"Damp","oldPCode":"C3SS","oldPDesc":"CORE SX 300, Sconce","newPCode":"NRS3","newPDesc":"NOVA 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/155/02adaa0484e6e91f41879d2306e5bf5f","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"48","rating":"Damp","oldPCode":"C3SY","oldPDesc":"CORE SX 300, Yoke","newPCode":"NRY3","newPDesc":"NOVA 3 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/156/f12312a70a811066dbd41d21d7aece4b","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"49","rating":"Damp","oldPCode":"C4SM","oldPDesc":"CORE SX 400, Surface Mount","newPCode":"NRM6","newPDesc":"NOVA 6 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/157/c44a95b300641946721801238359276f","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"50","rating":"Damp","oldPCode":"C4SP","oldPDesc":"CORE SX 400, Pendant","newPCode":"NRP6","newPDesc":"NOVA 6 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/158/1cb66e66eae847ad4e018d180b065c48","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"51","rating":"Damp","oldPCode":"C4SS","oldPDesc":"CORE SX 400, Sconce","newPCode":"NRS6","newPDesc":"NOVA 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/159/3069a50e29b2eec96c8843d9e3083559","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"52","rating":"Damp","oldPCode":"C4SY","oldPDesc":"CORE SX 400, Yoke","newPCode":"NRY6","newPDesc":"NOVA 6 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/160/cab862f92ef268e0e9596861315e06a6","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"53","rating":"Damp","oldPCode":"NLRM","oldPDesc":"NOVA Round Large, Surface Mount","newPCode":"NRM6","newPDesc":"NOVA 6 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/161/d92ad6fd7cafa26bc04e1655eccfb90d","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"54","rating":"Damp","oldPCode":"NLRP","oldPDesc":"NOVA Round Large, Pendant","newPCode":"NRP6","newPDesc":"NOVA 6 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/162/17f32703a5bc74b12e620f22b6f1fbb6","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"55","rating":"Damp","oldPCode":"NLRS","oldPDesc":"NOVA Round Large, Sconce","newPCode":"NRS6","newPDesc":"NOVA 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/163/b8f5f964f8717d4fe138d291dd8f9296","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"56","rating":"Damp","oldPCode":"NLRY","oldPDesc":"NOVA Round Large, Yoke","newPCode":"NRY6","newPDesc":"NOVA 6 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/164/ab85f355c6f0ef7106c9e862cd9587c9","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"57","rating":"Damp","oldPCode":"NMRM","oldPDesc":"NOVA Round Medium, Surface Mount","newPCode":"NRM3","newPDesc":"NOVA 3 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/165/ab19b6e7a10ac566a7af1025d7e5f655","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"58","rating":"Damp","oldPCode":"NMRP","oldPDesc":"NOVA Round Medium, Pendant","newPCode":"NRP3","newPDesc":"NOVA 3 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/166/b437047a2ce859dd4c83e78587c6406
477","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"59","rating":"Damp","oldPCode":"NMRS","oldPDesc":"NOVA Round Medium, Sconce","newPCode":"NRS3","newPDesc":"NOVA 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/167/2d93f7a987947ecc07eb808770c3e7bf","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"60","rating":"Damp","oldPCode":"NMRY","oldPDesc":"NOVA Round Medium, Yoke","newPCode":"NRY3","newPDesc":"NOVA 3 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/168/3dc5b106c3a17dff54f2d927f5675317","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"61","rating":"Damp","oldPCode":"NSRM","oldPDesc":"NOVA Round Small, Surface Mount","newPCode":"NRM2","newPDesc":"NOVA 2 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/169/888d17bae269a82b7e39169390534443","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"62","rating":"Damp","oldPCode":"NSRP","oldPDesc":"NOVA Round Small, Pendant","newPCode":"NRP2","newPDesc":"NOVA 2 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/170/8b971fc971d51e210e396d7cd4c704ed","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"63","rating":"Damp","oldPCode":"NSRS","oldPDesc":"NOVA Round Small, Sconce","newPCode":"NRS2","newPDesc":"NOVA 2 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/171/71ceb994b53f6ecfb6338d05e74a0549","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"64","rating":"Damp","oldPCode":"NSRY","oldPDesc":"NOVA Round Small, Yoke","newPCode":"NRY2","newPDesc":"NOVA 2 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/172/8faff2bb5dc6178acd8b350fa3b05ce5","newPage":"https://www.alw-inc.com/products/78/nova-round"},{"id":"65","rating":"Damp","oldPCode":"NLSM","oldPDesc":"NOVA Square Large, Surface Mount","newPCode":"NSM6","newPDesc":"NOVA 6 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/173/1c0a48a8b4c9bc382a20db503efc7b85","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"66","rating":"Damp","oldPCode":"NLSP","oldPDesc":"NOVA Square Large, Pendant","newPCode":"NSP6","newPDesc":"NOVA 6 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/174/a6b8d12e81d01c138eb6dd3ce568475c","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"67","rating":"Damp","oldPCode":"NLSS","oldPDesc":"NOVA Square Large, Sconce","newPCode":"NSS6","newPDesc":"NOVA 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/175/0ed675b8ee6d23ba86b136e28d9e682b","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"68","rating":"Damp","oldPCode":"NLSY","oldPDesc":"NOVA Square Large, Yoke","newPCode":"NSY6","newPDesc":"NOVA 6 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/177/5276294fb6a619086e04e35f0d1c987d","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"69","rating":"Damp","oldPCode":"NMSM","oldPDesc":"NOVA Square Medium, Surface Mount","newPCode":"NSM3","newPDesc":"NOVA 3 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/179/ef8e3c9d9a1711a499c55e16594d7027","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"70","rating":"Damp","oldPCode":"NMSP","oldPDesc":"NOVA Square Medium, Pendant","newPCode":"NSP3","newPDesc":"NOVA 3 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/180/e382fc9e05488bf032adb3430f35b2f8","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"71","rating":"Damp","oldPCode":"NMSS","oldPDesc":"NOVA Square Medium, Sconce","newPCode":"NSS3","newPDesc":"NOVA 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/181/0c662cb8218962b25036d8bdb559f105","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"72","rating":"Damp","oldPCode":"NMSY","oldPDesc":"NOVA Square Medium, Yoke","newPCode":"NSY3","newPDesc":"NOVA 3 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/183/2517613a5d25a539de49f728a1b964b2","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"73","rating":"Damp","oldPCode":"NSSM","oldPDesc":"NOVA Square Small, Surface Mount","newPCode":"NSM2","newPDesc":"NOVA 2 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/184/f9b9825c8a03dfe05cdd9130c8241ede","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"74","rating":"Damp","oldPCode":"NSSP","oldPDesc":"NOVA Square Small, Pendant","newPCode":"NSP2","newPDesc":"NOVA 2 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/185/43831333e805e84671a6d4dd4b8add0e","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"75","rating":"Damp","oldPCode":"NSSS","oldPDesc":"NOVA Square Small, Sconce","newPCode":"NSS2","newPDesc":"NOVA 2 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/186/f76bb311ea7d96a05fe48843010c3abe","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"76","rating":"Damp","oldPCode":"NSSY","oldPDesc":"NOVA Square Small, Yoke","newPCode":"NSY2","newPDesc":"NOVA 2 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/187/25b2a90f2dd6b93b23ac2f9862ff8543","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"77","rating":"Damp","oldPCode":"Q2LM","oldPDesc":"QUBE LX 200, Surface Mount","newPCode":"CSM3","newPDesc":"CORE 3 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/188/f9d62a06091a35e96d90cd583f32ce8d","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"78","rating":"Damp","oldPCode":"Q2LP","oldPDesc":"QUBE LX 200, Pendant","newPCode":"CSP3","newPDesc":"CORE 3 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/189/f0e43d9854fc39e967e7be0a72a4fd85","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"79","rating":"Damp","oldPCode":"Q2LS","oldPDesc":"QUBE LX 200, Sconce","newPCode":"CSS3","newPDesc":"CORE 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/190/d773a2af717f8a8be8f0c544943e85ea","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"80","rating":"Damp","oldPCode":"Q2LT","oldPDesc":"QUBE LX 200, Up+Down Pendant","newPCode":"CST3","newPDesc":"CORE 3 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/191/ee0f51d99a3af0141abab1b1e37dd5f0","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"81","rating":"Damp","oldPCode":"Q2LU","oldPDesc":"QUBE LX 200, Up+Down Sconce","newPCode":"CSU3","newPDesc":"CORE 3 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/193/e25703d97deed391480f411475c56200","
47newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"82","rating":"Damp","oldPCode":"Q2LY","oldPDesc":"QUBE LX 200, Yoke","newPCode":"CSY3","newPDesc":"CORE 3 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/194/d3b2b4d84dc1f25271234698cddd3a71","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"83","rating":"Damp","oldPCode":"Q3LM","oldPDesc":"QUBE LX 300, Surface Mount","newPCode":"CSM4","newPDesc":"CORE 4 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/195/f16eaafa5f345c1ca6ec560b23e90e35","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"84","rating":"Damp","oldPCode":"Q3LP","oldPDesc":"QUBE LX 300, Pendant","newPCode":"CSP4","newPDesc":"CORE 4 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/196/bb7a739ca44142146bdbf059bb4b03af","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"85","rating":"Damp","oldPCode":"Q3LS","oldPDesc":"QUBE LX 300, Sconce","newPCode":"CSS4","newPDesc":"CORE 4 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/197/7c78ed35bd21667e9aabcdc60b7e52c9","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"86","rating":"Damp","oldPCode":"Q3LT","oldPDesc":"QUBE LX 300, Up+Down Pendant","newPCode":"CST4","newPDesc":"CORE 4 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/198/c24ac3f6118378eb6e03b2dce42c80d1","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"87","rating":"Damp","oldPCode":"Q3LU","oldPDesc":"QUBE LX 300, Up+Down Sconce","newPCode":"CSU4","newPDesc":"CORE 4 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/199/09c5d98a567f8df2224dd7ad3b890a90","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"88","rating":"Damp","oldPCode":"Q3LY","oldPDesc":"QUBE LX 300, Yoke","newPCode":"CSY4","newPDesc":"CORE 4 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/200/61de8e924e9598f7fb650f84b056b300","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"89","rating":"Damp","oldPCode":"Q4LM","oldPDesc":"QUBE LX 400, Surface Mount","newPCode":"CSM6","newPDesc":"CORE 6 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/201/ec1feb60747017a5c887863f1516cc01","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"90","rating":"Damp","oldPCode":"Q4LP","oldPDesc":"QUBE LX 400, Pendant","newPCode":"CSP6","newPDesc":"CORE 6 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/202/fda2e9b7d9b49e4ef7fb91a89fe7f5f2","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"91","rating":"Damp","oldPCode":"Q4LS","oldPDesc":"QUBE LX 400, Sconce","newPCode":"CSS6","newPDesc":"CORE 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/203/a97f9ffcecb7a05c948891868bdf4d36","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"92","rating":"Damp","oldPCode":"Q4LT","oldPDesc":"QUBE LX 400, Up+Down Pendant","newPCode":"CST6","newPDesc":"CORE 6 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/204/a03f96e3ad70321fc5efc058ec9564de","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"93","rating":"Damp","oldPCode":"Q4LU","oldPDesc":"QUBE LX 400, Up+Down Sconce","newPCode":"CSU6","newPDesc":"CORE 6 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/205/30dedf6d76a4d0cab449373c3a217c4c","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"94","rating":"Damp","oldPCode":"Q4LY","oldPDesc":"QUBE LX 400, Yoke","newPCode":"CSY6","newPDesc":"CORE 6 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/206/a47a162022f51683f6574dadc361e1ab","newPage":"https://www.alw-inc.com/products/8/core-square"},{"id":"95","rating":"Damp","oldPCode":"Q2SM","oldPDesc":"QUBE SX 200, Surface Mount","newPCode":"NSM2","newPDesc":"NOVA 2 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/207/2fc13ca5fca60c69671107ee6129f841","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"96","rating":"Damp","oldPCode":"Q2SP","oldPDesc":"QUBE SX 200, Pendant","newPCode":"NSP2","newPDesc":"NOVA 2 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/208/5c223f0ff96a878c92a0cac4b51b3e9d","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"97","rating":"Damp","oldPCode":"Q2SS","oldPDesc":"QUBE SX 200, Sconce","newPCode":"NSS2","newPDesc":"NOVA 2 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/209/379792ae65d8459cce24e58ce2592b47","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"98","rating":"Damp","oldPCode":"Q2SY","oldPDesc":"QUBE SX 200, Yoke","newPCode":"NSY2","newPDesc":"NOVA 2 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/210/48a2715a99501496b85ae8a7c1394fb9","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"99","rating":"Damp","oldPCode":"Q3SM","oldPDesc":"QUBE SX 300, Surface Mount","newPCode":"NSM3","newPDesc":"NOVA 3 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/211/626b4215c49f699b0588bb6785b2e6f2","newPage":"https://www.alw-inc.com/products/77/nova-square"}
47,{"id":"100","rating":"Damp","oldPCode":"Q3SP","oldPDesc":"QUBE SX 300, Pendant","newPCode":"NSP3","newPDesc":"NOVA 3 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/212/27371dbb777773cc5b6ca50ca627ee2a","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"101","rating":"Damp","oldPCode":"Q3SS","oldPDesc":"QUBE SX 300, Sconce","newPCode":"NSS3","newPDesc":"NOVA 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/213/62361932258263dcd451d6fd6ff1f927","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"102","rating":"Damp","oldPCode":"Q3SY","oldPDesc":"QUBE SX 300, Yoke","newPCode":"NSY3","newPDesc":"NOVA 3 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/214/becbe907280d278da623a360297201f8","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"103","rating":"Damp","oldPCode":"Q4SM","oldPDesc":"QUBE SX 400, Surface Mount","newPCode":"NSM6","newPDesc":"NOVA 6 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/215/4c61a35cbff932929269cf32de4ee203","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"104","rating":"Damp","oldPCode":"Q4SP","oldPDesc":"QUBE SX 400, Pendant","newPCode":"NSP6","newPDesc":"NOVA 6 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/215/4c61a35cbff932929269cf32de4ee203","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"105","rating":"Damp","oldPCode":"Q4SS","oldPDesc":"QUBE SX 400, Sconce","newPCode":"NSS6","newPDesc":"NOVA 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/217/4bb47ac86ef946b7a7b9ccbcaf880c0f","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"106","rating":"Damp","oldPCode":"Q4SY","oldPDesc":"QUBE SX 400, Yoke","newPCode":"NSY6","newPDesc":"NOVA 6 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/218/0bc13020dbaf50ee44f5a6c0f0bf1150","newPage":"https://www.alw-inc.com/products/77/nova-square"},{"id":"107","rating":"Wet","oldPCode":"K2RL","oldPDesc":"AQUA Round LX 200, Sconce","newPCode":"CRS3/WL","newPDesc":"CORE/WL 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/219/7daf94288e79932a294e3a516492d0a1","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"108","rating":"Wet","oldPCode":"K2RU","oldPDesc":"AQUA Round LX 200, Up+Down Sconce","newPCode":"CRU3/WL","newPDesc":"CORE/WL 3 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/220/42ad70782d6a50274460f44ef4b85076","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"109","rating":"Wet","oldPCode":"K2SL","oldPDesc":"AQUA Square LX 200, Sconce","newPCode":"CSS3/WL","newPDesc":"CORE/WL 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/221/bce65c0ac56e9f5e66db724ba4ed1d26","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"110","rating":"Wet","oldPCode":"K2SU","oldPDesc":"AQUA Square LX 200, Up+Down Sconce","newPCode":"CSU3/WL","newPDesc":"CORE/WL 3 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/222/ccdcf2fcaa620889f55e6d55ccf23d3a","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"111","rating":"Wet","oldPCode":"K3RL","oldPDesc":"AQUA Round LX 300, Sconce","newPCode":"CRS4/WL","newPDesc":"CORE/WL 4 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/223/dd6695be5175953577719e93cf7927de","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"112","rating":"Wet","oldPCode":"K3RU","oldPDesc":"AQUA Round LX 300, Up+Down Sconce","newPCode":"CRU4/WL","newPDesc":"CORE/WL 4 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/224/04fd28dfbe619e6fb2d7bf515ff49373","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"113","rating":"Wet","oldPCode":"K3SL","oldPDesc":"AQUA Square LX 300, Sconce","newPCode":"CSS4/WL","newPDesc":"CORE/WL 4 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/225/88a37c70f214820948308887
47758fe22a","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"114","rating":"Wet","oldPCode":"K3SU","oldPDesc":"AQUA Square LX 300, Up+Down Sconce","newPCode":"CSU4/WL","newPDesc":"CORE/WL 4 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/226/b436f026cc57a74bd4a09814dc2c8fc1","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"115","rating":"Wet","oldPCode":"K4RL","oldPDesc":"AQUA Round LX 400, Sconce","newPCode":"CRS6/WL","newPDesc":"CORE/WL 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/227/9ee60526fc527be6f05f00d127bdde50","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"116","rating":"Wet","oldPCode":"K4RU","oldPDesc":"AQUA Round LX 400, Up+Down Sconce","newPCode":"CRU6/WL","newPDesc":"CORE/WL 6 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/228/4429e5e959f124701575b050be77c50d","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"117","rating":"Wet","oldPCode":"K4SL","oldPDesc":"AQUA Square LX 400, Sconce","newPCode":"CSS6/WL","newPDesc":"CORE/WL 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/229/e05ec83ec9611574deda9d9196edf091","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"118","rating":"Wet","oldPCode":"K4SU","oldPDesc":"AQUA Square LX 400, Up+Down Sconce","newPCode":"CSU6/WL","newPDesc":"CORE/WL 6 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/230/a2c977f558246ec8224620eb9f1f96b8","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"119","rating":"Wet","oldPCode":"K2RS","oldPDesc":"AQUA Round SX 200, Sconce","newPCode":"CRS3/WL","newPDesc":"CORE/WL 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/231/8691d01773157ee7206cf8b632443fa4","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"120","rating":"Wet","oldPCode":"K2SS","oldPDesc":"AQUA Square SX 200, Sconce","newPCode":"CSS3/WL","newPDesc":"CORE/WL 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/232/e669fcc0b2b81f91788001c7c189ca91","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"121","rating":"Wet","oldPCode":"K3RS","oldPDesc":"AQUA Round SX 300, Sconce","newPCode":"CRS4/WL","newPDesc":"CORE/WL 4 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/233/5c33c29eae2149d6dede50f10ae7991e","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"122","rating":"Wet","oldPCode":"K3SS","oldPDesc":"AQUA Square SX 300, Sconce","newPCode":"CSS4/WL","newPDesc":"CORE/WL 4 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/234/5dda9a692dd389248aa577283473a5ba","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"123","rating":"Wet","oldPCode":"K4RS","oldPDesc":"AQUA Round SX 400, Sconce","newPCode":"CRS6/WL","newPDesc":"CORE/WL 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/235/6141eab0bbb579852d50c5be09bb960a","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"124","rating":"Wet","oldPCode":"K4SS","oldPDesc":"AQUA Square SX 400, Sconce","newPCode":"CSS6/WL","newPDesc":"CORE/WL 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/236/9830d02d53c6e7303eeb8623127de12f","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"125","rating":"Wet","oldPCode":"C2CM","oldPDesc":"CORE CX 200, Surface Mount","newPCode":"CCM3/WL","newPDesc":"CORE/WL 3 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/113/bd26b8067e17c1676f6ec6a2a5076f4b","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"126","rating":"Wet","oldPCode":"C2CP","oldPDesc":"CORE CX 200, Pendant","newPCode":"CCP3/WL","newPDesc":"CORE/WL 3 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/114/8e4d
477e44e1e6785bc0e2eb550489a332","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"127","rating":"Wet","oldPCode":"C2CS","oldPDesc":"CORE CX 200, Sconce","newPCode":"CCS3/WL","newPDesc":"CORE/WL 3 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/115/824bb7eec76db1effbf4b4a828f88f32","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"128","rating":"Wet","oldPCode":"C2CT","oldPDesc":"CORE CX 200, Up+Down Pendant","newPCode":"CCT3/WL","newPDesc":"CORE/WL 3 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/116/88ab8c1a9d888170a0a5e17e1966d33f","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"129","rating":"Wet","oldPCode":"C2CU","oldPDesc":"CORE CX 200, Up+Down Sconce","newPCode":"CCU3/WL","newPDesc":"CORE/WL 3 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/117/24a84aeeba2f747a7d7ac16d0f9f4c4d","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"130","rating":"Wet","oldPCode":"C2CY","oldPDesc":"CORE CX 200, Yoke","newPCode":"CCY3/WL","newPDesc":"CORE/WL 3 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/118/15c7a69438437f91ea7397369b5dce21","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"131","rating":"Wet","oldPCode":"C3CM","oldPDesc":"CORE CX 300, Surface Mount","newPCode":"CCM4/WL","newPDesc":"CORE/WL 4 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/119/0f1af2154306e1f85848e201a0d33666","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"132","rating":"Wet","oldPCode":"C3CP","oldPDesc":"CORE CX 300, Pendant","newPCode":"CCP4/WL","newPDesc":"CORE/WL 4 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/120/7721939ff51cc8ca964e8fb45be624b6","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"133","rating":"Wet","oldPCode":"C3CS","oldPDesc":"CORE CX 300, Sconce","newPCode":"CCS4/WL","newPDesc":"CORE/WL 4 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/121/39271e2ed74626e6de472dacf360dfa8","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"134","rating":"Wet","oldPCode":"C3CT","oldPDesc":"CORE CX 300, Up+Down Pendant","newPCode":"CCT4/WL","newPDesc":"CORE/WL 4 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/122/668ab97861d1cc067444ec59a748b24b","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"135","rating":"Wet","oldPCode":"C3CU","oldPDesc":"CORE CX 300, Up+Down Sconce","newPCode":"CCU4/WL","newPDesc":"CORE/WL 4 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/123/9a294c2894fd6f170d6f1e0eaef1e67b","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"136","rating":"Wet","oldPCode":"C3CY","oldPDesc":"CORE CX 300, Yoke","newPCode":"CCY4/WL","newPDesc":"CORE/WL 4 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/124/6c1d12c0ac3f1d0ef0806a724ff7ad1b","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"137","rating":"Wet","oldPCode":"C4CM","oldPDesc":"CORE CX 400, Surface Mount","newPCode":"CCM6/WL","newPDesc":"CORE/WL 6 (Cutout), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/125/ed7d2d804d780f1f3045e9d5dc7cc078","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"138","rating":"Wet","oldPCode":"C4CP","oldPDesc":"CORE CX 400, Pendant","newPCode":"CCP6/WL","newPDesc":"CORE/WL 6 (Cutout), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/126/39cc35b929c85c7929828edf32a6852f","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"139","rating":"Wet","oldPCode":"C4CS","oldPDesc":"CORE CX 400, Sconce","newPCode":"CCS6/WL","newPDesc":"CORE/WL 6 (Cutout), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/127/1e3836cb9a30204b8550e0b02bcbcbcc","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"}
47,{"id":"140","rating":"Wet","oldPCode":"C4CT","oldPDesc":"CORE CX 400, Up+Down Pendant","newPCode":"CCT6/WL","newPDesc":"CORE/WL 6 (Cutout), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/128/eab26b538cac5dd91aa0b695d9fef791","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"141","rating":"Wet","oldPCode":"C4CU","oldPDesc":"CORE CX 400, Up+Down Sconce","newPCode":"CCU6/WL","newPDesc":"CORE/WL 6 (Cutout), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/129/d3901998510ef74d905bbbbfc7409ee8","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"142","rating":"Wet","oldPCode":"C4CY","oldPDesc":"CORE CX 400, Yoke","newPCode":"CCY6/WL","newPDesc":"CORE/WL 6 (Cutout), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/130/9dd0ce1901946271cc9c99677dd9e730","newPage":"https://www.alw-inc.com/products/5/core-wet-location-cutout"},{"id":"143","rating":"Wet","oldPCode":"C2LM","oldPDesc":"CORE LX 200, Surface Mount","newPCode":"CRM3/WL","newPDesc":"CORE/WL 3 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/238/e0be1982e09df3a891dfa078d3fe6d4b","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"144","rating":"Wet","oldPCode":"C2LP","oldPDesc":"CORE LX 200, Pendant","newPCode":"CRP3/WL","newPDesc":"CORE/WL 3 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/132/d0ef22b6c0bbce0e2de00e68c4b6a45c","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"145","rating":"Wet","oldPCode":"C2LS","oldPDesc":"CORE LX 200, Sconce","newPCode":"CRS3/WL","newPDesc":"CORE/WL 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/133/0e890d383e97535318af9d1c9e500ba6","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"146","rating":"Wet","oldPCode":"C2LT","oldPDesc":"CORE LX 200, Up+Down Pendant","newPCode":"CRT3/WL","newPDesc":"CORE/WL 3 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/134/928789f7e03c0807d83b2cc8ef5f671e","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"147","rating":"Wet","oldPCode":"C2LU","oldPDesc":"CORE LX 200, Up+Down Sconce","newPCode":"CRU3/WL","newPDesc":"CORE/WL 3 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/135/5f0b0cf47e3070978052a30676d391f8","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"148","rating":"Wet","oldPCode":"C2LY","oldPDesc":"CORE LX 200, Yoke","newPCode":"CRY3/WL","newPDesc":"CORE/WL 3 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/136/e6384056e27c276b4816fb50cd8c28a3","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"149","rating":"Wet","oldPCode":"C3LM","oldPDesc":"CORE LX 300, Surface Mount","newPCode":"CRM4/WL","newPDesc":"CORE/WL 4 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/137/4d57576ffd5b1a36060755c8c73bff8a","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"150","rating":"Wet","oldPCode":"C3LP","oldPDesc":"CORE LX 300, Pendant","newPCode":"CRP4/WL","newPDesc":"CORE/WL 4 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/138/dbec6fa20bfadbb1cf607cbd5cc6d31b","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"151","rating":"Wet","oldPCode":"C3LS","oldPDesc":"CORE LX 300, Sconce","newPCode":"CRS4/WL","newPDesc":"CORE/WL 4 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/139/5c38fc4b36984051cfcdfd0ab0b0d053","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"152","rating":"Wet","oldPCode":"C3LT","oldPDesc":"CORE LX 300, Up+Down Pendant","newPCode":"CRT4/WL","newPDesc":"CORE/WL 4 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/140/1582c5a8c7c5745a1ebbc3e0c52f5ccb","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"}
47,{"id":"153","rating":"Wet","oldPCode":"C3LU","oldPDesc":"CORE LX 300, Up+Down Sconce","newPCode":"CRU4/WL","newPDesc":"CORE/WL 4 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/141/87790b3ce892e3413dfa16af06c35079","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"154","rating":"Wet","oldPCode":"C3LY","oldPDesc":"CORE LX 300, Yoke","newPCode":"CRY4/WL","newPDesc":"CORE/WL 4 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/142/67f4c67972fb879bfc9c6e70423bddee","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"155","rating":"Wet","oldPCode":"C4LM","oldPDesc":"CORE LX 400, Surface Mount","newPCode":"CRM6/WL","newPDesc":"CORE/WL 6 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/143/fc77d6b5a306214660dbe5e70fffe2e8","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"156","rating":"Wet","oldPCode":"C4LP","oldPDesc":"CORE LX 400, Pendant","newPCode":"CRP6/WL","newPDesc":"CORE/WL 6 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/144/9f84897013434f0c19eb2c53a39804a1","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"157","rating":"Wet","oldPCode":"C4LS","oldPDesc":"CORE LX 400, Sconce","newPCode":"CRS6/WL","newPDesc":"CORE/WL 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/145/5424a12c76d9d4588ba69128c71eaa38","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"158","rating":"Wet","oldPCode":"C4LT","oldPDesc":"CORE LX 400, Up+Down Pendant","newPCode":"CRT6/WL","newPDesc":"CORE/WL 6 (Round), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/146/7a4b376110e9771bbbe0a224e1941846","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"159","rating":"Wet","oldPCode":"C4LU","oldPDesc":"CORE LX 400, Up+Down Sconce","newPCode":"CRU6/WL","newPDesc":"CORE/WL 6 (Round), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/147/5e47a451a0290812184bb87acbf89111","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"160","rating":"Wet","oldPCode":"C4LY","oldPDesc":"CORE LX 400, Yoke","newPCode":"CRY6/WL","newPDesc":"CORE/WL 6 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/148/6f2c4aafe023790181ee0f211457e936","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"161","rating":"Wet","oldPCode":"C2SM","oldPDesc":"CORE SX 200, Surface Mount","newPCode":"CRM3/WL","newPDesc":"CORE/WL 3 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/149/7502d995226ceadba46c82b9f0f777ee","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"162","rating":"Wet","oldPCode":"C2SP","oldPDesc":"CORE SX 200, Pendant","newPCode":"CRP3/WL","newPDesc":"CORE/WL 3 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/150/d5fe33c3053dce7cfcfdb184d3b54090","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"163","rating":"Wet","oldPCode":"C2SS","oldPDesc":"CORE SX 200, Sconce","newPCode":"CRS3/WL","newPDesc":"CORE/WL 3 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/151/13359dd2b8d25cacc8b6617cd52e1f48","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"164","rating":"Wet","oldPCode":"C2SY","oldPDesc":"CORE SX 200, Yoke","newPCode":"CRY3/WL","newPDesc":"CORE/WL 3 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/160/cab862f92ef268e0e9596861315e06a6","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"165","rating":"Wet","oldPCode":"C3SM","oldPDesc":"CORE SX 300, Surface Mount","newPCode":"CRM4/WL","newPDesc":"CORE/WL 4 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/153/53d7b9baebcb3cb85942cb7e1b65d12c","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"}
47,{"id":"166","rating":"Wet","oldPCode":"C3SP","oldPDesc":"CORE SX 300, Pendant","newPCode":"CRP4/WL","newPDesc":"CORE/WL 4 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/154/197b382aa37e10f13eb7c99da17f96a5","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"167","rating":"Wet","oldPCode":"C3SS","oldPDesc":"CORE SX 300, Sconce","newPCode":"CRS4/WL","newPDesc":"CORE/WL 4 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/155/02adaa0484e6e91f41879d2306e5bf5f","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"168","rating":"Wet","oldPCode":"C3SY","oldPDesc":"CORE SX 300, Yoke","newPCode":"CRY4/WL","newPDesc":"CORE/WL 4 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/156/f12312a70a811066dbd41d21d7aece4b","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"169","rating":"Wet","oldPCode":"C4SM","oldPDesc":"CORE SX 400, Surface Mount","newPCode":"CRM6/WL","newPDesc":"CORE/WL 6 (Round), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/157/c44a95b300641946721801238359276f","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"170","rating":"Wet","oldPCode":"C4SP","oldPDesc":"CORE SX 400, Pendant","newPCode":"CRP6/WL","newPDesc":"CORE/WL 6 (Round), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/158/1cb66e66eae847ad4e018d180b065c48","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"171","rating":"Wet","oldPCode":"C4SS","oldPDesc":"CORE SX 400, Sconce","newPCode":"CRS6/WL","newPDesc":"CORE/WL 6 (Round), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/159/3069a50e29b2eec96c8843d9e3083559","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"172","rating":"Wet","oldPCode":"C4SY","oldPDesc":"CORE SX 400, Yoke","newPCode":"CRY6/WL","newPDesc":"CORE/WL 6 (Round), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/152/b95442d70edcab1a77cd042aa19a4282","newPage":"https://www.alw-inc.com/products/6/core-wet-location-round"},{"id":"173","rating":"Wet","oldPCode":"Q2LM","oldPDesc":"QUBE LX 200, Surface Mount","newPCode":"CSM3/WL","newPDesc":"CORE/WL 3 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/188/f9d62a06091a35e96d90cd583f32ce8d","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"174","rating":"Wet","oldPCode":"Q2LP","oldPDesc":"QUBE LX 200, Pendant","newPCode":"CSP3/WL","newPDesc":"CORE/WL 3 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/189/f0e43d9854fc39e967e7be0a72a4fd85","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"175","rating":"Wet","oldPCode":"Q2LS","oldPDesc":"QUBE LX 200, Sconce","newPCode":"CSS3/WL","newPDesc":"CORE/WL 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/190/d773a2af717f8a8be8f0c544943e85ea","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"176","rating":"Wet","oldPCode":"Q2LT","oldPDesc":"QUBE LX 200, Up+Down Pendant","newPCode":"CST3/WL","newPDesc":"CORE/WL 3 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/191/ee0f51d99a3af0141abab1b1e37dd5f0","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"177","rating":"Wet","oldPCode":"Q2LU","oldPDesc":"QUBE LX 200, Up+Down Sconce","newPCode":"CSU3/WL","newPDesc":"CORE/WL 3 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/192/aff288479bbf101d550799f41de21d66","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"178","rating":"Wet","oldPCode":"Q2LY","oldPDesc":"QUBE LX 200, Yoke","newPCode":"CSY3/WL","newPDesc":"CORE/WL 3 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/194/d3b2b4d84dc1f25271234698cddd3a71","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"}
47,{"id":"179","rating":"Wet","oldPCode":"Q3LM","oldPDesc":"QUBE LX 300, Surface Mount","newPCode":"CSM4/WL","newPDesc":"CORE/WL 4 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/195/f16eaafa5f345c1ca6ec560b23e90e35","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"180","rating":"Wet","oldPCode":"Q3LP","oldPDesc":"QUBE LX 300, Pendant","newPCode":"CSP4/WL","newPDesc":"CORE/WL 4 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/196/bb7a739ca44142146bdbf059bb4b03af","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"181","rating":"Wet","oldPCode":"Q3LS","oldPDesc":"QUBE LX 300, Sconce","newPCode":"CSS4/WL","newPDesc":"CORE/WL 4 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/197/7c78ed35bd21667e9aabcdc60b7e52c9","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"182","rating":"Wet","oldPCode":"Q3LT","oldPDesc":"QUBE LX 300, Up+Down Pendant","newPCode":"CST4/WL","newPDesc":"CORE/WL 4 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/198/c24ac3f6118378eb6e03b2dce42c80d1","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"183","rating":"Wet","oldPCode":"Q3LU","oldPDesc":"QUBE LX 300, Up+Down Sconce","newPCode":"CSU4/WL","newPDesc":"CORE/WL 4 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/199/09c5d98a567f8df2224dd7ad3b890a90","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"184","rating":"Wet","oldPCode":"Q3LY","oldPDesc":"QUBE LX 300, Yoke","newPCode":"CSY4/WL","newPDesc":"CORE/WL 4 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/200/61de8e924e9598f7fb650f84b056b300","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"185","rating":"Wet","oldPCode":"Q4LM","oldPDesc":"QUBE LX 400, Surface Mount","newPCode":"CSM6/WL","newPDesc":"CORE/WL 6 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/201/ec1feb60747017a5c887863f1516cc01","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"186","rating":"Wet","oldPCode":"Q4LP","oldPDesc":"QUBE LX 400, Pendant","newPCode":"CSP6/WL","newPDesc":"CORE/WL 6 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/202/fda2e9b7d9b49e4ef7fb91a89fe7f5f2","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"187","rating":"Wet","oldPCode":"Q4LS","oldPDesc":"QUBE LX 400, Sconce","newPCode":"CSS6/WL","newPDesc":"CORE/WL 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/203/a97f9ffcecb7a05c948891868bdf4d36","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"188","rating":"Wet","oldPCode":"Q4LT","oldPDesc":"QUBE LX 400, Up+Down Pendant","newPCode":"CST6/WL","newPDesc":"CORE/WL 6 (Square), Direct/Indirect Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/237/9dd58c78435d49e0a8757b3442854830","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"189","rating":"Wet","oldPCode":"Q4LU","oldPDesc":"QUBE LX 400, Up+Down Sconce","newPCode":"CSU6/WL","newPDesc":"CORE/WL 6 (Square), Direct/Indirect Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/205/30dedf6d76a4d0cab449373c3a217c4c","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"190","rating":"Wet","oldPCode":"Q4LY","oldPDesc":"QUBE LX 400, Yoke","newPCode":"CSY6/WL","newPDesc":"CORE/WL 6 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/206/a47a162022f51683f6574dadc361e1ab","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"191","rating":"Wet","oldPCode":"Q2SM","oldPDesc":"QUBE SX 200, Surface Mount","newPCode":"CSM3/WL","newPDesc":"CORE/WL 3 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/207/2fc13ca5fca60c69671107ee6129f841","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"}
47,{"id":"192","rating":"Wet","oldPCode":"Q2SP","oldPDesc":"QUBE SX 200, Pendant","newPCode":"CSP3/WL","newPDesc":"CORE/WL 3 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/208/5c223f0ff96a878c92a0cac4b51b3e9d","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"193","rating":"Wet","oldPCode":"Q2SS","oldPDesc":"QUBE SX 200, Sconce","newPCode":"CSS3/WL","newPDesc":"CORE/WL 3 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/209/379792ae65d8459cce24e58ce2592b47","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"194","rating":"Wet","oldPCode":"Q2SY","oldPDesc":"QUBE SX 200, Yoke","newPCode":"CSY3/WL","newPDesc":"CORE/WL 3 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/210/48a2715a99501496b85ae8a7c1394fb9","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"195","rating":"Wet","oldPCode":"Q3SM","oldPDesc":"QUBE SX 300, Surface Mount","newPCode":"CSM4/WL","newPDesc":"CORE/WL 4 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/211/626b4215c49f699b0588bb6785b2e6f2","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"196","rating":"Wet","oldPCode":"Q3SP","oldPDesc":"QUBE SX 300, Pendant","newPCode":"CSP4/WL","newPDesc":"CORE/WL 4 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/212/27371dbb777773cc5b6ca50ca627ee2a","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"197","rating":"Wet","oldPCode":"Q3SS","oldPDesc":"QUBE SX 300, Sconce","newPCode":"CSS4/WL","newPDesc":"CORE/WL 4 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/213/62361932258263dcd451d6fd6ff1f927","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"198","rating":"Wet","oldPCode":"Q3SY","oldPDesc":"QUBE SX 300, Yoke","newPCode":"CSY4/WL","newPDesc":"CORE/WL 4 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/214/becbe907280d278da623a360297201f8","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"199","rating":"Wet","oldPCode":"Q4SM","oldPDesc":"QUBE SX 400, Surface Mount","newPCode":"CSM6/WL","newPDesc":"CORE/WL 6 (Square), Surface Mount","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/215/4c61a35cbff932929269cf32de4ee203","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"200","rating":"Wet","oldPCode":"Q4SP","oldPDesc":"QUBE SX 400, Pendant","newPCode":"CSP6/WL","newPDesc":"CORE/WL 6 (Square), Pendant","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/216/3797afdafe1047372f984692dd0632c1","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"201","rating":"Wet","oldPCode":"Q4SS","oldPDesc":"QUBE SX 400, Sconce","newPCode":"CSS6/WL","newPDesc":"CORE/WL 6 (Square), Sconce","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/217/4bb47ac86ef946b7a7b9ccbcaf880c0f","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"},{"id":"202","rating":"Wet","oldPCode":"Q4SY","oldPDesc":"QUBE SX 400, Yoke","newPCode":"CSY6/WL","newPDesc":"CORE/WL 6 (Square), Yoke","oldSpecsheet":"https://www.alw-inc.com/files/permanent-file/en/218/0bc13020dbaf50ee44f5a6c0f0bf1150","newPage":"https://www.alw-inc.com/products/4/core-wet-location-square"}]`),_sfc_main$14={name:`ProductConversionForm`,components:{Multiselect:script},data(){return{data:data_default,filters:{mode:[{name:`oldPCode`,label:`Old <i class="material-symbols">east</i> New`,selected:!0},{name:`newPCode`,label:`New <i class="material-symbols">east</i> Old`,selected:!1}],rating:[{name:`Damp`,label:`Dry/Damp Location`,selected:!0},{name:`Wet`,label:`Wet Location`,selected:!1}]},options:[],currentMode:`oldPCode`,currentRating:`Damp`,currentProduct:null,showNew:!0}},created(){this.getOptions()},methods:{handleFilterItemClick(e,t){let $=this.filters[e].find(e=>e.name===t.name);
47this.filters[e].forEach(e=>{e.selected=!1}),$.selected=!0,e===`mode`?this.currentMode=$.name:(this.currentRating=$.name,this.currentProduct=null),this.showNew=this.currentMode===`oldPCode`,this.getOptions()},getOptions(){this.options=this.data.filter(e=>e.rating===this.currentRating)}}},_hoisted_1$14={class:`product-conversion`},_hoisted_2$12=[`onClick`,`innerHTML`],_hoisted_3$10={key:0},_hoisted_4$9={class:`form-group`},_hoisted_5$6={key:0,class:`product-conversion__result`},_hoisted_6$4=[`href`],_hoisted_7$4=[`href`];function _sfc_render$14(e,t,$,ed,td,nd){let rd=resolveComponent(`multiselect`);return openBlock(),createElementBlock(`div`,_hoisted_1$14,[t[6]||=createBaseVNode(`h2`,null,`Cylinder Product Code Conversion Tool`,-1),t[7]||=createBaseVNode(`p`,{class:`u-mb-g`},` Applies to ALTO, AQUA, CORE, NOVA, and QUBE products `,-1),createBaseVNode(`form`,null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.filters,(e,t)=>(openBlock(),createElementBlock(`div`,{key:t,class:`form-group product-conversion__filter`},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e,(e,$)=>(openBlock(),createElementBlock(Fragment,{key:e.name},[createBaseVNode(`button`,{class:normalizeClass(`btn btn--${e.selected?`accent`:`secondary`}`),onClick:withModifiers($=>nd.handleFilterItemClick(t,e),[`prevent`]),innerHTML:e.label},null,10,_hoisted_2$12),$===0?(openBlock(),createElementBlock(`span`,_hoisted_3$10,`or`)):createCommentVNode(``,!0)],64))),128))]))),128)),createBaseVNode(`div`,_hoisted_4$9,[t[2]||=createBaseVNode(`label`,{for:`code`,class:`form-label`},`Code`,-1),createVNode(rd,{id:`code`,modelValue:td.currentProduct,"onUpdate:modelValue":t[0]||=e=>td.currentProduct=e,"track-by":`id`,label:td.currentMode,options:td.options,class:normalizeClass({"is-static":!td.currentProduct}),placeholder:`Search for Code`,"no-result":`Sorry, no results here.`},{noResult:withCtx(()=>t[1]||=[createBaseVNode(`span`,null,`No products found. Consider changing the search query.`,-1)]),_:1},8,[`modelValue`,`label`,`options`,`class`])])]),td.currentProduct?(openBlock(),createElementBlock(`div`,_hoisted_5$6,[createBaseVNode(`div`,null,[createBaseVNode(`h3`,null,toDisplayString(td.showNew?`New`:`Old`)+` Product Code`,1),createBaseVNode(`p`,null,toDisplayString(td.currentProduct[td.showNew?`newPCode`:`oldPCode`]),1)]),createBaseVNode(`div`,null,[createBaseVNode(`h3`,null,toDisplayString(td.showNew?`New`:`Old`)+` Product Name`,1),createBaseVNode(`p`,null,toDisplayString(td.currentProduct[td.showNew?`newPDesc`:`oldPDesc`]),1)]),createBaseVNode(`div`,null,[t[4]||=createBaseVNode(`h3`,null,`Links`,-1),createBaseVNode(`a`,{href:td.currentProduct.newPage,target:`_blank`},`Visit New Product Page`,8,_hoisted_6$4),t[5]||=createBaseVNode(`br`,null,null,-1),createBaseVNode(`a`,{href:td.currentProduct.oldSpecsheet,target:`_blank`},t[3]||=[createTextVNode(`Visit Old Specsheet `),createBaseVNode(`small`,null,`(For Reference Only)`,-1)],8,_hoisted_7$4)])])):createCommentVNode(``,!0)])}var ProductConversionForm_default=_plugin_vue_export_helper_default(_sfc_main$14,[[`render`,_sfc_render$14],[`__scopeId`,`data-v-37017a3b`]]),productConversionForm=document.querySelector(`product-conversion-form`);productConversionForm&&createApp(ProductConversionForm_default).mount(productConversionForm);var db_exports=__exportAll({default:()=>db_default}),db_default,init_db=__esmMin((()=>{db_default={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]}
vendor: 28,619 bytes, line 47
47,"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`}
47,"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0}
vendor: 20,617 bytes, line 47
47,"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]}
47,"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]}
vendor: 4,881 bytes, line 47
47,"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`p
47pt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`}
47,"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`p
47ptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]}
vendor: 54,763 bytes, line 47
47,"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),require_mime_db=__commonJSMin(((e,t)=>
47{t.exports=(init_db(),__toCommonJS(db_exports).default)})),require_shams$2=__commonJSMin(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),$=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call($)!==`[object Symbol]`)return!1;var ed=42;for(t in e[t]=ed,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var td=Object.getOwnPropertySymbols(e);if(td.length!==1||td[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var nd=Object.getOwnPropertyDescriptor(e,t);if(nd.value!==ed||nd.enumerable!==!0)return!1}return!0}})),require_shams$1=__commonJSMin(((e,t)=>{var $=require_shams$2();t.exports=function(){return $()&&!!Symbol.toStringTag}})),require_es_object_atoms$1=__commonJSMin(((e,t)=>{t.exports=Object})),require_es_errors=__commonJSMin(((e,t)=>{t.exports=Error})),require_eval=__commonJSMin(((e,t)=>{t.exports=EvalError})),require_range=__commonJSMin(((e,t)=>{t.exports=RangeError})),require_ref=__commonJSMin(((e,t)=>{t.exports=ReferenceError})),require_syntax=__commonJSMin(((e,t)=>{t.exports=SyntaxError})),require_type=__commonJSMin(((e,t)=>{t.exports=TypeError})),require_uri=__commonJSMin(((e,t)=>{t.exports=URIError})),require_abs=__commonJSMin(((e,t)=>{t.exports=Math.abs})),require_floor=__commonJSMin(((e,t)=>{t.exports=Math.floor})),require_max=__commonJSMin(((e,t)=>{t.exports=Math.max})),require_min=__commonJSMin(((e,t)=>{t.exports=Math.min})),require_pow=__commonJSMin(((e,t)=>{t.exports=Math.pow})),require_round=__commonJSMin(((e,t)=>{t.exports=Math.round})),require_isNaN=__commonJSMin(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),require_sign$2=__commonJSMin(((e,t)=>{var $=require_isNaN();t.exports=function(e){return $(e)||e===0?e:e<0?-1:1}})),require_gOPD=__commonJSMin(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),require_gopd$2=__commonJSMin(((e,t)=>{var $=require_gOPD();if($)try{$([],`length`)}catch{$=null}t.exports=$}
47)),require_es_define_property$2=__commonJSMin(((e,t)=>{var $=Object.defineProperty||!1;if($)try{$({},`a`,{value:1})}catch{$=!1}t.exports=$})),require_shams=__commonJSMin(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),$=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call($)!==`[object Symbol]`)return!1;var ed=42;for(var td in e[t]=ed,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var nd=Object.getOwnPropertySymbols(e);if(nd.length!==1||nd[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var rd=Object.getOwnPropertyDescriptor(e,t);if(rd.value!==ed||rd.enumerable!==!0)return!1}return!0}})),require_has_symbols$1=__commonJSMin(((e,t)=>{var $=typeof Symbol<`u`&&Symbol,ed=require_shams();t.exports=function(){return typeof $!=`function`||typeof Symbol!=`function`||typeof $(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:ed()}})),require_Reflect_getPrototypeOf=__commonJSMin(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),require_es_object_atoms=__commonJSMin(((e,t)=>{t.exports=Object})),require_Object_getPrototypeOf=__commonJSMin(((e,t)=>{t.exports=require_es_object_atoms().getPrototypeOf||null})),require_implementation=__commonJSMin(((e,t)=>{var $=`Function.prototype.bind called on incompatible `,ed=Object.prototype.toString,td=Math.max,nd=`[object Function]`,rd=function(e,t){for(var $=[],ed=0;ed<e.length;ed+=1)$[ed]=e[ed];for(var td=0;td<t.length;td+=1)$[td+e.length]=t[td];return $},id=function(e,t){for(var $=[],ed=t||0,td=0;ed<e.length;ed+=1,td+=1)$[td]=e[ed];return $},ad=function(e,t){for(var $=``,ed=0;ed<e.length;ed+=1)$+=e[ed],ed+1<e.length&&($+=t);return $};t.exports=function(e){var t=this;if(typeof t!=`function`||ed.apply(t)!==nd)throw TypeError($+t);for(var od=id(arguments,1),sd,cd=function(){if(this instanceof sd){var $=t.apply(this,rd(od,arguments));return Object($)===$?$:this}return t.apply(e,rd(od,arguments))},ld=td(0,t.length-od.length),ud=[],dd=0;dd<ld;dd++)ud[dd]=`$`+dd;if(sd=Function(`binder`,`return function (`+ad(ud,`,`)+`){ return binder.apply(this,arguments); }`)(cd),t.prototype){var fd=function(){};fd.prototype=t.prototype,sd.prototype=new fd,fd.prototype=null}return sd}})),require_function_bind=__commonJSMin(((e,t)=>{var $=require_implementation();t.exports=Function.prototype.bind||$})),require_functionCall=__commonJSMin(((e,t)=>{t.exports=Function.prototype.call})),require_functionApply=__commonJSMin(((e,t)=>{t.exports=Function.prototype.apply})),require_reflectApply=__commonJSMin(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),require_actualApply=__commonJSMin(((e,t)=>{var $=require_function_bind(),ed=require_functionApply(),td=require_functionCall();t.exports=require_reflectApply()||$.call(td,ed)})),require_call_bind_apply_helpers=__commonJSMin(((e,t)=>{var $=require_function_bind(),ed=require_type(),td=require_functionCall(),nd=require_actualApply();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new ed(`a function is required`);return nd($,td,e)}})),require_get$1=__commonJSMin(((e,t)=>{var $=require_call_bind_apply_helpers(),ed=require_gopd$2(),td;try{td=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var nd=!!td&&ed&&ed(Object.prototype,`__proto__`),rd=Object,id=rd.getPrototypeOf;t.exports=nd&&typeof nd.get==`function`?$([nd.get]):typeof id==`function`?function(e){return id(e==null?e:rd(e))}:!1})),require_get_proto=__commonJSMin(((e,t)=>{var $=require_Reflect_getPrototypeOf(),ed=require_Object_getPrototypeOf(),td=require_get$1();t.exports=$?function(e){return $(e)}:ed?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return ed(e)}:td?function(e){return td(e)}:null})),require_hasown=__commonJSMin(((e,t)=>{var $=Function.prototype.call,ed=Object.prototype.hasOwnProperty;t.exports=require_function_bind().call($,ed)})),require_get_intrinsic$1=__commonJSMin(((e,t)=>{var $,ed=require_es_object_atoms$1(),td=require_es_errors(),nd=require_eval(),rd=require_range(),id=require_ref(),ad=require_syntax(),od=require_type(),sd=require_uri(),cd=require_abs(),ld=require_floor(),ud=require_max(),dd=require_min(),fd=require_pow(),pd=require_round(),md=require_sign$2(),hd=Function,gd=function(e){try{return hd(`"use strict";
47 return (`+e+`).constructor;`)()}catch{}},_d=require_gopd$2(),vd=require_es_define_property$2(),yd=function(){throw new od},bd=_d?function(){try{return arguments.callee,yd}catch{try{return _d(arguments,`callee`).get}catch{return yd}}}():yd,xd=require_has_symbols$1()(),Sd=require_get_proto(),Cd=require_Object_getPrototypeOf(),wd=require_Reflect_getPrototypeOf(),Td=require_functionApply(),Ed=require_functionCall(),Dd={},Od=typeof Uint8Array>`u`||!Sd?$:Sd(Uint8Array),kd={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?$:ArrayBuffer,"%ArrayIteratorPrototype%":xd&&Sd?Sd([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":Dd,"%AsyncGenerator%":Dd,"%AsyncGeneratorFunction%":Dd,"%AsyncIteratorPrototype%":Dd,"%Atomics%":typeof Atomics>`u`?$:Atomics,"%BigInt%":typeof BigInt>`u`?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":td,"%eval%":eval,"%EvalError%":nd,"%Float16Array%":typeof Float16Array>`u`?$:Float16Array,"%Float32Array%":typeof Float32Array>`u`?$:Float32Array,"%Float64Array%":typeof Float64Array>`u`?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?$:FinalizationRegistry,"%Function%":hd,"%GeneratorFunction%":Dd,"%Int8Array%":typeof Int8Array>`u`?$:Int8Array,"%Int16Array%":typeof Int16Array>`u`?$:Int16Array,"%Int32Array%":typeof Int32Array>
47`u`?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xd&&Sd?Sd(Sd([][Symbol.iterator]())):$,"%JSON%":typeof JSON==`object`?JSON:$,"%Map%":typeof Map>`u`?$:Map,"%MapIteratorPrototype%":typeof Map>`u`||!xd||!Sd?$:Sd(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ed,"%Object.getOwnPropertyDescriptor%":_d,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?$:Promise,"%Proxy%":typeof Proxy>`u`?$:Proxy,"%RangeError%":rd,"%ReferenceError%":id,"%Reflect%":typeof Reflect>`u`?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?$:Set,"%SetIteratorPrototype%":typeof Set>`u`||!xd||!Sd?$:Sd(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xd&&Sd?Sd(``[Symbol.iterator]()):$,"%Symbol%":xd?Symbol:$,"%SyntaxError%":ad,"%ThrowTypeError%":bd,"%TypedArray%":Od,"%TypeError%":od,"%Uint8Array%":typeof Uint8Array>`u`?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?$:Uint32Array,"%URIError%":sd,"%WeakMap%":typeof WeakMap>`u`?$:WeakMap,"%WeakRef%":typeof WeakRef>`u`?$:WeakRef,"%WeakSet%":typeof WeakSet>`u`?$:WeakSet,"%Function.prototype.call%":Ed,"%Function.prototype.apply%":Td,"%Object.defineProperty%":vd,"%Object.getPrototypeOf%":Cd,"%Math.abs%":cd,"%Math.floor%":ld,"%Math.max%":ud,"%Math.min%":dd,"%Math.pow%":fd,"%Math.round%":pd,"%Math.sign%":md,"%Reflect.getPrototypeOf%":wd};if(Sd)try{null.error}catch(e){kd[`%Error.prototype%`]=Sd(Sd(e))}var Ad=function e(t){var $;if(t===`%AsyncFunction%`)$=gd(`async function () {}`);else if(t===`%GeneratorFunction%`)$=gd(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)$=gd(`async function* () {}`);else if(t===`%AsyncGenerator%`){var ed=e(`%AsyncGeneratorFunction%`);ed&&($=ed.prototype)}else if(t===`%AsyncIteratorPrototype%`){var td=e(`%AsyncGenerator%`);td&&Sd&&($=Sd(td.prototype))}return kd[t]=$,$},jd={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},Md=require_function_bind(),Nd=require_hasown(),Pd=Md.call(Ed,Array.prototype.concat),Fd=Md.call(Td,Array.prototype.splice),Id=Md.call(Ed,String.prototype.replace),Ld=Md.call(Ed,String.prototype.slice),Rd=Md.call(Ed,RegExp.prototype.exec),zd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bd=/\\(\\)?/g,Vd=function(e){var t=Ld(e,0,1),$=Ld(e,-1);if(t===`%`&&$!==`%`)throw new ad("invalid intrinsic syntax, expected closing `%`");if($===`%`&&t!==`%`)throw new ad("invalid intrinsic syntax, expected opening `%`");var ed=[];return Id(e,zd,function(e,t,$,td){ed[ed.length]=$?Id(td,Bd,`$1`):t||e}),ed},Hd=function(e,t){var $=e,ed;if(Nd(jd,$)&&(ed=jd[$],$=`%`+ed[0]+`%`),Nd(kd,$)){var td=kd[$];if(td===Dd&&(td=Ad($)),td===void 0&&!t)throw new od(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:ed,name:$,value:td}}throw new ad(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new od(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new od(`"allowMissing" argument must be a boolean`);if(Rd(/^%?[^%]*%?$/,e)===null)throw new ad("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=Vd(e),ed=$.length>0?$[0]:``,td=Hd(`%`+ed+`%`,t),nd=td.name,rd=td.value,id=!1,sd=td.alias;sd&&(ed=sd[0],Fd($,Pd([0,1],sd)));for(var cd=1,ld=!0;cd<$.length;cd+=1){var ud=$[cd],dd=Ld(ud,0,1),fd=Ld(ud,-1);if((dd===`"`||dd===`'`||dd==="`"||fd===`"`||fd===`'`||fd==="`")&&dd!==fd)throw new ad(`property names with quotes must have matching quotes`);if((ud===`constructor`||!ld)&&(id=!0),ed+=`.`+ud,nd=`%`+ed+`%`,Nd(kd,nd))rd=kd[nd];else if(rd!=null){if(!(ud in rd)){if(!t)throw new od(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(_d&&cd+1>=$.length){var pd=_d(rd,ud);ld=!!pd,rd=ld&&`get`in pd&&!(`originalValue`in pd.get)?pd.get:rd[ud]}else ld=Nd(rd,ud),rd=rd[ud];ld&&!id&&(kd[nd]=rd)}}return rd}})),require_call_bound=__commonJSMin(((e,t)=>{var $=require_get_intrinsic$1(),ed=require_call_bind_apply_helpers(),td=ed([$(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var nd=$(e,!!t);return typeof nd==`function`&&td(e,`.prototype.`)>-1?ed([nd]):nd}})),require_is_arguments=__commonJSMin(((e,t)=>{var $=require_shams$1()(),ed=require_call_bound()(`Object.prototype.toString`),td=function(e){return $&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:ed(e)===`[object Arguments]`},nd=function(e){return td(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&ed(e)!==`[object Array]`&&`callee`in e&&ed(e.callee)===`[object Function]`},rd=function(){return td(arguments)}();td.isLegacyArguments=nd,t.exports=rd?td:nd})),require_is_regex=__commonJSMin(((e,t)=>{var $=require_call_bound(),ed=require_shams$1()(),td=require_hasown(),nd=require_gopd$2(),rd;if(ed){var id=$(`RegExp.prototype.exec`),ad={},od=function(){throw ad}
47,sd={toString:od,valueOf:od};typeof Symbol.toPrimitive==`symbol`&&(sd[Symbol.toPrimitive]=od),rd=function(e){if(!e||typeof e!=`object`)return!1;var t=nd(e,`lastIndex`);if(!(t&&td(t,`value`)))return!1;try{id(e,sd)}catch(e){return e===ad}}}else{var cd=$(`Object.prototype.toString`),ld=`[object RegExp]`;rd=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:cd(e)===ld}}t.exports=rd})),require_safe_regex_test=__commonJSMin(((e,t)=>{var $=require_call_bound(),ed=require_is_regex(),td=$(`RegExp.prototype.exec`),nd=require_type();t.exports=function(e){if(!ed(e))throw new nd("`regex` must be a RegExp");return function(t){return td(e,t)!==null}}})),require_generator_function=__commonJSMin(((e,t)=>{var $=function*(){}.constructor;t.exports=()=>$})),require_is_generator_function=__commonJSMin(((e,t)=>{var $=require_call_bound(),ed=require_safe_regex_test()(/^\s*(?:function)?\*/),td=require_shams$1()(),nd=require_get_proto(),rd=$(`Object.prototype.toString`),id=$(`Function.prototype.toString`),ad=require_generator_function();t.exports=function(e){if(typeof e!=`function`)return!1;if(ed(id(e)))return!0;if(!td)return rd(e)===`[object GeneratorFunction]`;if(!nd)return!1;var t=ad();return t&&nd(e)===t.prototype}})),require_is_callable=__commonJSMin(((e,t)=>{var $=Function.prototype.toString,ed=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,td,nd;if(typeof ed==`function`&&typeof Object.defineProperty==`function`)try{td=Object.defineProperty({},`length`,{get:function(){throw nd}}),nd={},ed(function(){throw 42},null,td)}catch(e){e!==nd&&(ed=null)}else ed=null;var rd=/^\s*class\b/,id=function(e){try{var t=$.call(e);return rd.test(t)}catch{return!1}},ad=function(e){try{return id(e)?!1:($.call(e),!0)}catch{return!1}},od=Object.prototype.toString,sd=`[object Object]`,cd=`[object Function]`,ld=`[object GeneratorFunction]`,ud=`[object HTMLAllCollection]`,dd=`[object HTML document.all class]`,fd=`[object HTMLCollection]`,pd=typeof Symbol==`function`&&!!Symbol.toStringTag,md=!(0 in[,]),hd=function(){return!1};if(typeof document==`object`){var gd=document.all;od.call(gd)===od.call(document.all)&&(hd=function(e){if((md||!e)&&(e===void 0||typeof e==`object`))try{var t=od.call(e);return(t===ud||t===dd||t===fd||t===sd)&&e(``)==null}catch{}return!1})}t.exports=ed?function(e){if(hd(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{ed(e,null,td)}catch(e){if(e!==nd)return!1}return!id(e)&&ad(e)}:function(e){if(hd(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(pd)return ad(e);if(id(e))return!1;var t=od.call(e);return t!==cd&&t!==ld&&!/^\[object HTML/.test(t)?!1:ad(e)}})),require_for_each=__commonJSMin(((e,t)=>{var $=require_is_callable(),ed=Object.prototype.toString,td=Object.prototype.hasOwnProperty,nd=function(e,t,$){for(var ed=0,nd=e.length;ed<nd;ed++)td.call(e,ed)&&($==null?t(e[ed],ed,e):t.call($,e[ed],ed,e))},rd=function(e,t,$){for(var ed=0,td=e.length;ed<td;ed++)$==null?t(e.charAt(ed),ed,e):t.call($,e.charAt(ed),ed,e)},id=function(e,t,$){for(var ed in e)td.call(e,ed)&&($==null?t(e[ed],ed,e):t.call($,e[ed],ed,e))};function ad(e){return ed.call(e)===`[object Array]`}t.exports=function(e,t,ed){if(!$(t))throw TypeError(`iterator must be a function`);var td;arguments.length>=3&&(td=ed),ad(e)?nd(e,t,td):typeof e==`string`?rd(e,t,td):id(e,t,td)}})),require_possible_typed_array_names=__commonJSMin(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),require_available_typed_arrays=__commonJSMin(((e,t)=>{init_dist$1();var $=require_possible_typed_array_names(),ed=typeof globalThis>`u`?global:globalThis;t.exports=function(){for(var e=[],t=0;t<$.length;t++)typeof ed[$[t]]==`function`&&(e[e.length]=$[t]);return e}})),require_has_symbols=__commonJSMin(((e,t)=>{var $=typeof Symbol<`u`&&Symbol,ed=require_shams$2();t.exports=function(){return typeof $!=`function`||typeof Symbol!=`function`||typeof $(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:ed()}})),require_has_proto=__commonJSMin(((e,t)=>{var $={__proto__:null,foo:{}},ed=Object;t.exports=function(){return{__proto__:$}.foo===$.foo&&!($ instanceof ed)}})),require_get_intrinsic=__commonJSMin(((e,t)=>{var $,ed=require_es_errors(),td=require_eval(),nd=require_range(),rd=require_ref(),id=require_syntax(),ad=require_type(),od=require_uri(),sd=Function,cd=function(e){try{return sd(`"use strict";
47 return (`+e+`).constructor;`)()}catch{}},ld=Object.getOwnPropertyDescriptor;if(ld)try{ld({},``)}catch{ld=null}var ud=function(){throw new ad},dd=ld?function(){try{return arguments.callee,ud}catch{try{return ld(arguments,`callee`).get}catch{return ud}}}():ud,fd=require_has_symbols()(),pd=require_has_proto()(),md=Object.getPrototypeOf||(pd?function(e){return e.__proto__}:null),hd={},gd=typeof Uint8Array>`u`||!md?$:md(Uint8Array),_d={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?$:ArrayBuffer,"%ArrayIteratorPrototype%":fd&&md?md([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":hd,"%AsyncGenerator%":hd,"%AsyncGeneratorFunction%":hd,"%AsyncIteratorPrototype%":hd,"%Atomics%":typeof Atomics>`u`?$:Atomics,"%BigInt%":typeof BigInt>`u`?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ed,"%eval%":eval,"%EvalError%":td,"%Float32Array%":typeof Float32Array>`u`?$:Float32Array,"%Float64Array%":typeof Float64Array>`u`?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?$:FinalizationRegistry,"%Function%":sd,"%GeneratorFunction%":hd,"%Int8Array%":typeof Int8Array>`u`?$:Int8Array,"%Int16Array%":typeof Int16Array>`u`?$:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 6,424 bytes, line 47
47`u`?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fd&&md?md(md([][Symbol.iterator]())):$,"%JSON%":typeof JSON==`object`?JSON:$,"%Map%":typeof Map>`u`?$:Map,"%MapIteratorPrototype%":typeof Map>`u`||!fd||!md?$:md(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?$:Promise,"%Proxy%":typeof Proxy>`u`?$:Proxy,"%RangeError%":nd,"%ReferenceError%":rd,"%Reflect%":typeof Reflect>`u`?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?$:Set,"%SetIteratorPrototype%":typeof Set>`u`||!fd||!md?$:md(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fd&&md?md(``[Symbol.iterator]()):$,"%Symbol%":fd?Symbol:$,"%SyntaxError%":id,"%ThrowTypeError%":dd,"%TypedArray%":gd,"%TypeError%":ad,"%Uint8Array%":typeof Uint8Array>`u`?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?$:Uint32Array,"%URIError%":od,"%WeakMap%":typeof WeakMap>`u`?$:WeakMap,"%WeakRef%":typeof WeakRef>`u`?$:WeakRef,"%WeakSet%":typeof WeakSet>`u`?$:WeakSet};if(md)try{null.error}catch(e){_d[`%Error.prototype%`]=md(md(e))}var vd=function e(t){var $;if(t===`%AsyncFunction%`)$=cd(`async function () {}`);else if(t===`%GeneratorFunction%`)$=cd(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)$=cd(`async function* () {}`);else if(t===`%AsyncGenerator%`){var ed=e(`%AsyncGeneratorFunction%`);ed&&($=ed.prototype)}else if(t===`%AsyncIteratorPrototype%`){var td=e(`%AsyncGenerator%`);td&&md&&($=md(td.prototype))}return _d[t]=$,$},yd={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},bd=require_function_bind(),xd=require_hasown(),Sd=bd.call(Function.call,Array.prototype.concat),Cd=bd.call(Function.apply,Array.prototype.splice),wd=bd.call(Function.call,String.prototype.replace),Td=bd.call(Function.call,String.prototype.slice),Ed=bd.call(Function.call,RegExp.prototype.exec),Dd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Od=/\\(\\)?/g,kd=function(e){var t=Td(e,0,1),$=Td(e,-1);if(t===`%`&&$!==`%`)throw new id("invalid intrinsic syntax, expected closing `%`");if($===`%`&&t!==`%`)throw new id("invalid intrinsic syntax, expected opening `%`");var ed=[];return wd(e,Dd,function(e,t,$,td){ed[ed.length]=$?wd(td,Od,`$1`):t||e}),ed},Ad=function(e,t){var $=e,ed;if(xd(yd,$)&&(ed=yd[$],$=`%`+ed[0]+`%`),xd(_d,$)){var td=_d[$];if(td===hd&&(td=vd($)),td===void 0&&!t)throw new ad(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:ed,name:$,value:td}}throw new id(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new ad(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new ad(`"allowMissing" argument must be a boolean`);if(Ed(/^%?[^%]*%?$/,e)===null)throw new id("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=kd(e),ed=$.length>0?$[0]:``,td=Ad(`%`+ed+`%`,t),nd=td.name,rd=td.value,od=!1,sd=td.alias;sd&&(ed=sd[0],Cd($,Sd([0,1],sd)));for(var cd=1,ud=!0;cd<$.length;cd+=1){var dd=$[cd],fd=Td(dd,0,1),pd=Td(dd,-1);if((fd===`"`||fd===`'`||fd==="`"||pd===`"`||pd===`'`||pd==="`")&&fd!==pd)throw new id(`property names with quotes must have matching quotes`);if((dd===`constructor`||!ud)&&(od=!0),ed+=`.`+dd,nd=`%`+ed+`%`,xd(_d,nd))rd=_d[nd];else if(rd!=null){if(!(dd in rd)){if(!t)throw new ad(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(ld&&cd+1>=$.length){var md=ld(rd,dd);ud=!!md,rd=ud&&`get`in md&&!(`originalValue`in md.get)?md.get:rd[dd]}else ud=xd(rd,dd),rd=rd[dd];ud&&!od&&(_d[nd]=rd)}}return rd}})),require_es_define_property$1=__commonJSMin(((e,t)=>
47{var $=require_get_intrinsic()(`%Object.defineProperty%`,!0)||!1;if($)try{$({},`a`,{value:1})}catch{$=!1}t.exports=$})),require_gopd$1=__commonJSMin(((e,t)=>{var $=require_get_intrinsic()(`%Object.getOwnPropertyDescriptor%`,!0);if($)try{$([],`length`)}catch{$=null}t.exports=$})),require_define_data_property=__commonJSMin(((e,t)=>{var $=require_es_define_property$1(),ed=require_syntax(),td=require_type(),nd=require_gopd$1();t.exports=function(e,t,rd){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new td("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new td("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new td("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new td("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new td("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new td("`loose`, if provided, must be a boolean");var id=arguments.length>3?arguments[3]:null,ad=arguments.length>4?arguments[4]:null,od=arguments.length>5?arguments[5]:null,sd=arguments.length>6?arguments[6]:!1,cd=!!nd&&nd(e,t);
47if($)$(e,t,{configurable:od===null&&cd?cd.configurable:!od,enumerable:id===null&&cd?cd.enumerable:!id,value:rd,writable:ad===null&&cd?cd.writable:!ad});else if(sd||!id&&!ad&&!od)e[t]=rd;else throw new ed(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),require_has_property_descriptors=__commonJSMin(((e,t)=>{var $=require_es_define_property$1(),ed=function(){return!!$};ed.hasArrayLengthDefineBug=function(){if(!$)return null;try{return $([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=ed})),require_gopd=__commonJSMin(((e,t)=>{var $=require_get_intrinsic()(`%Object.getOwnPropertyDescriptor%`,!0);if($)try{$([],`length`)}catch{$=null}t.exports=$})),require_set_function_length=__commonJSMin(((e,t)=>{var $=require_get_intrinsic(),ed=require_define_data_property(),td=require_has_property_descriptors()(),nd=require_gopd(),rd=require_type(),id=$(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new rd("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||id(t)!==t)throw new rd("`length` must be a positive 32-bit integer");var $=arguments.length>2&&!!arguments[2],ad=!0,od=!0;if(`length`in e&&nd){var sd=nd(e,`length`);sd&&!sd.configurable&&(ad=!1),sd&&!sd.writable&&(od=!1)}return(ad||od||!$)&&(td?ed(e,`length`,t,!0,!0):ed(e,`length`,t)),e}})),require_es_define_property=__commonJSMin(((e,t)=>{var $=Object.defineProperty||!1;if($)try{$({},`a`,{value:1})}catch{$=!1}t.exports=$})),require_applyBind=__commonJSMin(((e,t)=>{var $=require_function_bind(),ed=require_functionApply(),td=require_actualApply();t.exports=function(){return td($,ed,arguments)}})),require_call_bind=__commonJSMin(((e,t)=>{var $=require_set_function_length(),ed=require_es_define_property(),td=require_call_bind_apply_helpers(),nd=require_applyBind();t.exports=function(e){var t=td(arguments),ed=1+e.length-(arguments.length-1);return $(t,ed>0?ed:0,!0)},ed?ed(t.exports,`apply`,{value:nd}):t.exports.apply=nd})),require_which_typed_array=__commonJSMin(((e,t)=>{init_dist$1();var $=require_for_each(),ed=require_available_typed_arrays(),td=require_call_bind(),nd=require_call_bound(),rd=require_gopd$2(),id=require_get_proto(),ad=nd(`Object.prototype.toString`),od=require_shams$1()(),sd=typeof globalThis>`u`?global:globalThis,cd=ed(),ld=nd(`String.prototype.slice`),ud=nd(`Array.prototype.indexOf`,!0)||function(e,t){for(var $=0;$<e.length;$+=1)if(e[$]===t)return $;return-1},dd={__proto__:null};od&&rd&&id?$(cd,function(e){var t=new sd[e];if(Symbol.toStringTag in t&&id){var $=id(t),ed=rd($,Symbol.toStringTag);if(!ed&&$&&(ed=rd(id($),Symbol.toStringTag)),ed&&ed.get){var nd=td(ed.get);dd[`$`+e]=nd}}}):$(cd,function(e){var t=new sd[e],$=t.slice||t.set;if($){var ed=td($);dd[`$`+e]=ed}});var fd=function(e){var t=!1;return $(dd,function($,ed){if(!t)try{`$`+$(e)===ed&&(t=ld(ed,1))}catch{}}),t},pd=function(e){var t=!1;return $(dd,function($,ed){if(!t)try{$(e),t=ld(ed,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!od){var t=ld(ad(e),8,-1);return ud(cd,t)>-1?t:t===`Object`?pd(e):!1}return rd?fd(e):null}})),require_is_typed_array=__commonJSMin(((e,t)=>{var $=require_which_typed_array();t.exports=function(e){return!!$(e)}})),require_types=__commonJSMin((e=>{var t=require_is_arguments(),$=require_is_generator_function(),ed=require_which_typed_array(),td=require_is_typed_array();function nd(e){return e.call.bind(e)}var rd=typeof BigInt<`u`,id=typeof Symbol<`u`,ad=nd(Object.prototype.toString),od=nd(Number.prototype.valueOf),sd=nd(String.prototype.valueOf),cd=nd(Boolean.prototype.valueOf);if(rd)var ld=nd(BigInt.prototype.valueOf);if(id)var ud=nd(Symbol.prototype.valueOf);function dd(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=$,e.isTypedArray=td;function fd(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}e.isPromise=fd;function pd(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):td(e)||Id(e)}e.isArrayBufferView=pd;function md(e){return ed(e)===`Uint8Array`}e.isUint8Array=md;function hd(e){return ed(e)===`Uint8ClampedArray`}e.isUint8ClampedArray=hd;function gd(e){return ed(e)===`Uint16Array`}e.isUint16Array=gd;function _d(e){return ed(e)===`Uint32Array`}e.isUint32Array=_d;function vd(e){return ed(e)===`Int8Array`}e.isInt8Array=vd;function yd(e){return ed(e)===`Int16Array`}e.isInt16Array=yd;function bd(e){return ed(e)===`Int32Array`}e.isInt32Array=bd;function xd(e){return ed(e)===`Float32Array`}e.isFloat32Array=xd;function Sd(e){return ed(e)===`Float64Array`}e.isFloat64Array=Sd;function Cd(e){return ed(e)===`BigInt64Array`}e.isBigInt64Array=Cd;function wd(e){return ed(e)===`BigUint64Array`}e.isBigUint64Array=wd;function Td(e){return ad(e)===`[object Map]`}Td.working=typeof Map<`u`&&Td(new Map);function Ed(e){return typeof Map>`u`?!1:Td.working?Td(e):e instanceof Map}e.isMap=Ed;function Dd(e){return ad(e)===`[object Set]`}Dd.working=typeof Set<`u`&&Dd(new Set);function Od(e){return typeof Set>`u`?!1:Dd.working?Dd(e):e instanceof Set}e.isSet=Od;function kd(e){return ad(e)===`[object WeakMap]`}kd.working=typeof WeakMap<`u`&&kd(new WeakMap);function Ad(e){return typeof WeakMap>`u`?!1:kd.working?kd(e):e instanceof WeakMap}e.isWeakMap=Ad;
47function jd(e){return ad(e)===`[object WeakSet]`}jd.working=typeof WeakSet<`u`&&jd(new WeakSet);function Md(e){return jd(e)}e.isWeakSet=Md;function Nd(e){return ad(e)===`[object ArrayBuffer]`}Nd.working=typeof ArrayBuffer<`u`&&Nd(new ArrayBuffer);function Pd(e){return typeof ArrayBuffer>`u`?!1:Nd.working?Nd(e):e instanceof ArrayBuffer}e.isArrayBuffer=Pd;function Fd(e){return ad(e)===`[object DataView]`}Fd.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&Fd(new DataView(new ArrayBuffer(1),0,1));function Id(e){return typeof DataView>`u`?!1:Fd.working?Fd(e):e instanceof DataView}e.isDataView=Id;var Ld=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function Rd(e){return ad(e)===`[object SharedArrayBuffer]`}function zd(e){return Ld===void 0?!1:(Rd.working===void 0&&(Rd.working=Rd(new Ld)),Rd.working?Rd(e):e instanceof Ld)}e.isSharedArrayBuffer=zd;function Bd(e){return ad(e)===`[object AsyncFunction]`}e.isAsyncFunction=Bd;function Vd(e){return ad(e)===`[object Map Iterator]`}e.isMapIterator=Vd;function Hd(e){return ad(e)===`[object Set Iterator]`}e.isSetIterator=Hd;function Ud(e){return ad(e)===`[object Generator]`}e.isGeneratorObject=Ud;function Wd(e){return ad(e)===`[object WebAssembly.Module]`}e.isWebAssemblyCompiledModule=Wd;function Gd(e){return dd(e,od)}e.isNumberObject=Gd;function Kd(e){return dd(e,sd)}e.isStringObject=Kd;function qd(e){return dd(e,cd)}e.isBooleanObject=qd;function Jd(e){return rd&&dd(e,ld)}e.isBigIntObject=Jd;function Yd(e){return id&&dd(e,ud)}e.isSymbolObject=Yd;function Xd(e){return Gd(e)||Kd(e)||qd(e)||Jd(e)||Yd(e)}e.isBoxedPrimitive=Xd;function Zd(e){return typeof Uint8Array<`u`&&(Pd(e)||zd(e))}e.isAnyArrayBuffer=Zd,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})})),require_isBufferBrowser=__commonJSMin(((e,t)=>{t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}})),require_inherits_browser=__commonJSMin(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var $=function(){};$.prototype=t.prototype,e.prototype=new $,e.prototype.constructor=e}}})),require_util$1=__commonJSMin((e=>{init_dist();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),$={},ed=0;ed<t.length;ed++)$[t[ed]]=Object.getOwnPropertyDescriptor(e,t[ed]);return $},$=/%[sdj%]/g;e.format=function(e){if(!vd(e)){for(var t=[],ed=0;ed<arguments.length;ed++)t.push(rd(arguments[ed]));return t.join(` `)}for(var ed=1,td=arguments,nd=td.length,id=String(e).replace($,function(e){if(e===`%%`)return`%`;if(ed>=nd)return e;switch(e){case`%s`:return String(td[ed++]);case`%d`:return Number(td[ed++]);case`%j`:try{return JSON.stringify(td[ed++])}catch{return`[Circular]`}default:return e}}),ad=td[ed];ed<nd;ad=td[++ed])hd(ad)||!Sd(ad)?id+=` `+ad:id+=` `+rd(ad);return id},e.deprecate=function(t,$){if(process$1!==void 0&&process$1.noDeprecation===!0)return t;if(process$1===void 0)return function(){return e.deprecate(t,$).apply(this,arguments)};var ed=!1;function td(){if(!ed){if(process$1.throwDeprecation)throw Error($);process$1.traceDeprecation?console.trace($):console.error($),ed=!0}return t.apply(this,arguments)}return td};var ed={},td=/^$/;if({}.NODE_DEBUG){var nd={}.NODE_DEBUG;nd=nd.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),td=RegExp(`^`+nd+`$`,`i`)}e.debuglog=function(t){if(t=t.toUpperCase(),!ed[t])if(td.test(t)){var $=process$1.pid;ed[t]=function(){var ed=e.format.apply(e,arguments);console.error(`%s %d: %s`,t,$,ed)}}else ed[t]=function(){};return ed[t]};function rd(t,$){var ed={seen:[],stylize:ad};return arguments.length>=3&&(ed.depth=arguments[2]),arguments.length>=4&&(ed.colors=arguments[3]),md($)?ed.showHidden=$:$&&e._extend(ed,$),bd(ed.showHidden)&&(ed.showHidden=!1),bd(ed.depth)&&(ed.depth=2),bd(ed.colors)&&(ed.colors=!1),bd(ed.customInspect)&&(ed.customInspect=!0),ed.colors&&(ed.stylize=id),sd(ed,t,ed.depth)}e.inspect=rd,rd.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},rd.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function id(e,t){var $=rd.styles[t];return $?`\x1B[`+rd.colors[$][0]+`m`+e+`\x1B[`+rd.colors[$][1]+`m`:e}function ad(e,t){return e}function od(e){var t={};return e.forEach(function(e,$){t[e]=!0}),t}function sd(t,$,ed){if(t.customInspect&&$&&Td($.inspect)&&$.inspect!==e.inspect&&!($.constructor&&$.constructor.prototype===$)){var td=$.inspect(ed,t);return vd(td)||(td=sd(t,td,ed)),td}var nd=cd(t,$);if(nd)return nd;var rd=Object.keys($),id=od(rd);if(t.showHidden&&(rd=Object.getOwnPropertyNames($)),wd($)&&(rd.indexOf(`message`)>=0||rd.indexOf(`description`)>=0))return ld($);
47if(rd.length===0){if(Td($)){var ad=$.name?`: `+$.name:``;return t.stylize(`[Function`+ad+`]`,`special`)}if(xd($))return t.stylize(RegExp.prototype.toString.call($),`regexp`);if(Cd($))return t.stylize(Date.prototype.toString.call($),`date`);if(wd($))return ld($)}var md=``,hd=!1,gd=[`{`,`}`];if(pd($)&&(hd=!0,gd=[`[`,`]`]),Td($)&&(md=` [Function`+($.name?`: `+$.name:``)+`]`),xd($)&&(md=` `+RegExp.prototype.toString.call($)),Cd($)&&(md=` `+Date.prototype.toUTCString.call($)),wd($)&&(md=` `+ld($)),rd.length===0&&(!hd||$.length==0))return gd[0]+md+gd[1];if(ed<0)return xd($)?t.stylize(RegExp.prototype.toString.call($),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push($);var _d=hd?ud(t,$,ed,id,rd):rd.map(function(e){return dd(t,$,ed,id,e,hd)});return t.seen.pop(),fd(_d,md,gd)}function cd(e,t){if(bd(t))return e.stylize(`undefined`,`undefined`);if(vd(t)){var $=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize($,`string`)}if(_d(t))return e.stylize(``+t,`number`);if(md(t))return e.stylize(``+t,`boolean`);if(hd(t))return e.stylize(`null`,`null`)}function ld(e){return`[`+Error.prototype.toString.call(e)+`]`}function ud(e,t,$,ed,td){for(var nd=[],rd=0,id=t.length;rd<id;++rd)jd(t,String(rd))?nd.push(dd(e,t,$,ed,String(rd),!0)):nd.push(``);return td.forEach(function(td){td.match(/^\d+$/)||nd.push(dd(e,t,$,ed,td,!0))}),nd}function dd(e,t,$,ed,td,nd){var rd,id,ad=Object.getOwnPropertyDescriptor(t,td)||{value:t[td]};if(ad.get?id=ad.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):ad.set&&(id=e.stylize(`[Setter]`,`special`)),jd(ed,td)||(rd=`[`+td+`]`),id||(e.seen.indexOf(ad.value)<0?(id=hd($)?sd(e,ad.value,null):sd(e,ad.value,$-1),id.indexOf(` 48`)>-1&&(id=nd?id.split(` 49`).map(function(e){return` `+e}).join(` 50`).slice(2):` 51`+id.split(` 52`).map(function(e){return` `+e}).join(` 53`))):id=e.stylize(`[Circular]`,`special`)),bd(rd)){if(nd&&td.match(/^\d+$/))return id;rd=JSON.stringify(``+td),rd.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(rd=rd.slice(1,-1),rd=e.stylize(rd,`name`)):(rd=rd.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),rd=e.stylize(rd,`string`))}return rd+`: `+id}function fd(e,t,$){var ed=0;return e.reduce(function(e,t){return ed++,t.indexOf(` 54`)>=0&&ed++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1},0)>60?$[0]+(t===``?``:t+` 55 `)+` `+e.join(`, 56 `)+` `+$[1]:$[0]+t+` `+e.join(`, `)+` `+$[1]}e.types=require_types();function pd(e){return Array.isArray(e)}e.isArray=pd;function md(e){return typeof e==`boolean`}e.isBoolean=md;function hd(e){return e===null}e.isNull=hd;function gd(e){return e==null}e.isNullOrUndefined=gd;function _d(e){return typeof e==`number`}e.isNumber=_d;function vd(e){return typeof e==`string`}e.isString=vd;function yd(e){return typeof e==`symbol`}e.isSymbol=yd;function bd(e){return e===void 0}e.isUndefined=bd;function xd(e){return Sd(e)&&Dd(e)===`[object RegExp]`}e.isRegExp=xd,e.types.isRegExp=xd;function Sd(e){return typeof e==`object`&&!!e}e.isObject=Sd;function Cd(e){return Sd(e)&&Dd(e)===`[object Date]`}e.isDate=Cd,e.types.isDate=Cd;function wd(e){return Sd(e)&&(Dd(e)===`[object Error]`||e instanceof Error)}e.isError=wd,e.types.isNativeError=wd;function Td(e){return typeof e==`function`}e.isFunction=Td;function Ed(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=Ed,e.isBuffer=require_isBufferBrowser();function Dd(e){return Object.prototype.toString.call(e)}function Od(e){return e<10?`0`+e.toString(10):e.toString(10)}var kd=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function Ad(){var e=new Date,t=[Od(e.getHours()),Od(e.getMinutes()),Od(e.getSeconds())].join(`:`);return[e.getDate(),kd[e.getMonth()],t].join(` `)}e.log=function(){console.log(`%s - %s`,Ad(),e.format.apply(e,arguments))},e.inherits=require_inherits_browser(),e._extend=function(e,t){if(!t||!Sd(t))return e;for(var $=Object.keys(t),ed=$.length;ed--;)e[$[ed]]=t[$[ed]];return e};function jd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Md=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;e.promisify=function(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(Md&&e[Md]){var $=e[Md];if(typeof $!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty($,Md,{value:$,enumerable:!1,writable:!1,
56configurable:!0}),$}function $(){for(var t,$,ed=new Promise(function(e,ed){t=e,$=ed}),td=[],nd=0;nd<arguments.length;nd++)td.push(arguments[nd]);td.push(function(e,ed){e?$(e):t(ed)});try{e.apply(this,td)}catch(e){$(e)}return ed}return Object.setPrototypeOf($,Object.getPrototypeOf(e)),Md&&Object.defineProperty($,Md,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,t(e))},e.promisify.custom=Md;function Nd(e,t){if(!e){var $=Error(`Promise was rejected with a falsy value`);$.reason=e,e=$}return t(e)}function Pd(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);function $(){for(var t=[],$=0;$<arguments.length;$++)t.push(arguments[$]);var ed=t.pop();if(typeof ed!=`function`)throw TypeError(`The last argument must be of type Function`);var td=this,nd=function(){return ed.apply(td,arguments)};e.apply(this,t).then(function(e){process$1.nextTick(nd.bind(null,null,e))},function(e){process$1.nextTick(Nd.bind(null,e,nd))})}return Object.setPrototypeOf($,Object.getPrototypeOf(e)),Object.defineProperties($,t(e)),$}e.callbackify=Pd})),require_path=__commonJSMin(((e,t)=>{init_dist();var $=process$1.platform===`win32`,ed=require_util$1();function td(e,t){for(var $=[],ed=0;ed<e.length;ed++){var td=e[ed];!td||td===`.`||(td===`..`?$.length&&$[$.length-1]!==`..`?$.pop():t&&$.push(`..`):$.push(td))}return $}function nd(e){for(var t=e.length-1,$=0;$<=t&&!e[$];$++);for(var ed=t;ed>=0&&!e[ed];ed--);return $===0&&ed===t?e:$>ed?[]:e.slice($,ed+1)}var rd=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,id=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ad={};function od(e){var t=rd.exec(e),$=(t[1]||``)+(t[2]||``),ed=t[3]||``,td=id.exec(ed);return[$,td[1],td[2],td[3]]}function sd(e){var t=rd.exec(e),$=t[1]||``,ed=!!$&&$[1]!==`:`;return{device:$,isUnc:ed,isAbsolute:ed||!!t[2],tail:t[3]}}function cd(e){return`\\\\`+e.replace(/^[\\\/]+/,``).replace(/[\\\/]+/g,`\\`)}ad.resolve=function(){for(var e=``,t=``,$=!1,nd=arguments.length-1;nd>=-1;nd--){var rd;if(nd>=0?rd=arguments[nd]:e?(rd={}[`=`+e],(!rd||rd.substr(0,3).toLowerCase()!==e.toLowerCase()+`\\`)&&(rd=e+`\\`)):rd=process$1.cwd(),!ed.isString(rd))throw TypeError(`Arguments to path.resolve must be strings`);if(rd){var id=sd(rd),ad=id.device,od=id.isUnc,ld=id.isAbsolute,ud=id.tail;if(!(ad&&e&&ad.toLowerCase()!==e.toLowerCase())&&(e||=ad,$||=(t=ud+`\\`+t,ld),e&&$))break}}return od&&(e=cd(e)),t=td(t.split(/[\\\/]+/),!$).join(`\\`),e+($?`\\`:``)+t||`.`},ad.normalize=function(e){var t=sd(e),$=t.device,ed=t.isUnc,nd=t.isAbsolute,rd=t.tail,id=/[\\\/]$/.test(rd);return rd=td(rd.split(/[\\\/]+/),!nd).join(`\\`),!rd&&!nd&&(rd=`.`),rd&&id&&(rd+=`\\`),ed&&($=cd($)),$+(nd?`\\`:``)+rd},ad.isAbsolute=function(e){return sd(e).isAbsolute},ad.join=function(){for(var e=[],t=0;t<arguments.length;t++){var $=arguments[t];if(!ed.isString($))throw TypeError(`Arguments to path.join must be strings`);$&&e.push($)}var td=e.join(`\\`);return/^[\\\/]{2}[^\\\/]/.test(e[0])||(td=td.replace(/^[\\\/]{2,}/,`\\`)),ad.normalize(td)},ad.relative=function(e,t){e=ad.resolve(e),t=ad.resolve(t);for(var $=e.toLowerCase(),ed=t.toLowerCase(),td=nd(t.split(`\\`)),rd=nd($.split(`\\`)),id=nd(ed.split(`\\`)),od=Math.min(rd.length,id.length),sd=od,cd=0;cd<od;cd++)if(rd[cd]!==id[cd]){sd=cd;break}if(sd==0)return t;for(var ld=[],cd=sd;cd<rd.length;cd++)ld.push(`..`);return ld=ld.concat(td.slice(sd)),ld.join(`\\`)},ad._makeLong=function(e){if(!ed.isString(e))return e;if(!e)return``;var t=ad.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?`\\\\?\\`+t:/^\\\\[^?.]/.test(t)?`\\\\?\\UNC\\`+t.substring(2):e},ad.dirname=function(e){var t=od(e),$=t[0],ed=t[1];return!$&&!ed?`.`:(ed&&=ed.substr(0,ed.length-1),$+ed)},ad.basename=function(e,t){var $=od(e)[2];return t&&$.substr(-1*t.length)===t&&($=$.substr(0,$.length-t.length)),$},ad.extname=function(e){return od(e)[3]},ad.format=function(e){if(!ed.isObject(e))throw TypeError(`Parameter 'pathObject' must be an object, not `+typeof e);var t=e.root||``;if(!ed.isString(t))throw TypeError(`'pathObject.root' must be a string or undefined, not `+typeof e.root);var $=e.dir,td=e.base||``;return $?$[$.length-1]===ad.sep?$+td:$+ad.sep+td:td},ad.parse=function(e){if(!ed.isString(e))throw TypeError(`Parameter 'pathString' must be a string, not `+typeof e);var t=od(e);if(!t||t.length!==4)throw TypeError(`Invalid path '`+e+`'`);return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},ad.sep=`\\`,ad.delimiter=`;`;var ld=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ud={};function dd(e){return ld.exec(e).slice(1)}ud.resolve=function(){for(var e=``,t=!1,$=arguments.length-1;$>=-1&&!t;$--){var nd=$>=0?arguments[$]:process$1.cwd();if(!ed.isString(nd))throw TypeError(`Arguments to path.resolve must be strings`);nd&&(e=nd+`/`+e,t=nd[0]===`/`)}return e=td(e.split(`/`),!t).join(`/`),(t?`/`:``)+e||`.`},ud.normalize=function(e){var t=ud.isAbsolute(e),$=e&&e[e.length-1]===`/`;return e=td(e.split(`/`),!t).join(`/`),!e&&!t&&(e=`.`),e&&$&&(e+=`/`),(t?`/`:``)+e},ud.isAbsolute=function(e){return e.charAt(0)===`/`},ud.join=function(){for(var e=``,t=0;t<arguments.length;t++){var $=arguments[t];if(!ed.isString($))throw TypeError(`Arguments to path.join must be strings`);$&&(e?e+=`/`+$:e+=$)}return ud.normalize(e)},ud.relative=function(e,t){e=ud.resolve(e).substr(1),t=ud.resolve(t).substr(1);for(var $=nd(e.split(`/`)),ed=nd(t.split(`/`)),td=Math.min($.length,ed.length),rd=td,id=0;id<td;id++)if($[id]!==ed[id]){rd=id;break}for(var ad=[],id=rd;id<$.length;id++)ad.push(`..`);return ad=ad.concat(ed.slice(rd)),ad.join(`/`)},ud._makeLong=function(e){return e},ud.dirname=function(e){var t=dd(e),$=t[0],ed=t[1];return!$&&!ed?`.`:(ed&&=ed.substr(0,ed.length-1),$+ed)}
56,ud.basename=function(e,t){var $=dd(e)[2];return t&&$.substr(-1*t.length)===t&&($=$.substr(0,$.length-t.length)),$},ud.extname=function(e){return dd(e)[3]},ud.format=function(e){if(!ed.isObject(e))throw TypeError(`Parameter 'pathObject' must be an object, not `+typeof e);var t=e.root||``;if(!ed.isString(t))throw TypeError(`'pathObject.root' must be a string or undefined, not `+typeof e.root);return(e.dir?e.dir+ud.sep:``)+(e.base||``)},ud.parse=function(e){if(!ed.isString(e))throw TypeError(`Parameter 'pathString' must be a string, not `+typeof e);var t=dd(e);if(!t||t.length!==4)throw TypeError(`Invalid path '`+e+`'`);return t[1]=t[1]||``,t[2]=t[2]||``,t[3]=t[3]||``,{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},ud.sep=`/`,ud.delimiter=`:`,$?t.exports=ad:t.exports=ud,t.exports.posix=ud,t.exports.win32=ad})),require_mime_types=__commonJSMin((e=>{var t=require_mime_db(),$=require_path().extname,ed=/^\s*([^;\s]*)(?:;|\s|$)/,td=/^text\//i;e.charset=nd,e.charsets={lookup:nd},e.contentType=rd,e.extension=id,e.extensions=Object.create(null),e.lookup=ad,e.types=Object.create(null),od(e.extensions,e.types);function nd(e){if(!e||typeof e!=`string`)return!1;var $=ed.exec(e),nd=$&&t[$[1].toLowerCase()];return nd&&nd.charset?nd.charset:$&&td.test($[1])?`UTF-8`:!1}function rd(t){if(!t||typeof t!=`string`)return!1;var $=t.indexOf(`/`)===-1?e.lookup(t):t;if(!$)return!1;if($.indexOf(`charset`)===-1){var ed=e.charset($);ed&&($+=`; charset=`+ed.toLowerCase())}return $}function id(t){if(!t||typeof t!=`string`)return!1;var $=ed.exec(t),td=$&&e.extensions[$[1].toLowerCase()];return!td||!td.length?!1:td[0]}function ad(t){if(!t||typeof t!=`string`)return!1;var ed=$(`x.`+t).toLowerCase().substr(1);return ed&&e.types[ed]||!1}function od(e,$){var ed=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(td){var nd=t[td],rd=nd.extensions;if(!(!rd||!rd.length)){e[td]=rd;for(var id=0;id<rd.length;id++){var ad=rd[id];if($[ad]){var od=ed.indexOf(t[$[ad]].source),sd=ed.indexOf(nd.source);if($[ad]!==`application/octet-stream`&&(od>sd||od===sd&&$[ad].substr(0,12)===`application/`))continue}$[ad]=td}}})}})),_sfc_main$13={name:`RelatedDocuments`,props:{data:{type:Array,required:!1,default:()=>[]},loading:{type:Boolean,required:!1,default:!0}},computed:{documentsByCategories(){return(0,import_lodash.groupBy)(this.data,`documenttype`)}},methods:{formatMime(e){return require_mime_types().extension(e).toUpperCase()},formatBytes(e){let t=1024,$=2,ed=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],td=Math.floor(Math.log(e)/Math.log(t));return+e?`${parseFloat((e/t**td).toFixed(2))} ${ed[td]}`:`0 bytes`}}},_hoisted_1$13={class:`related-documents`},_hoisted_2$11={key:0,class:`fa fa-spinner fa-pulse related-documents__loader`},_hoisted_3$9={class:`filter-category__title`},_hoisted_4$8={class:`downloads-products-items`},_hoisted_5$5=[`href`],_hoisted_6$3={class:`downloads-products-items__item`},_hoisted_7$3=[`src`,`alt`],_hoisted_8$1={class:`downloads-products-items__subtitle`},_hoisted_9$1={key:2};function _sfc_render$13(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,_hoisted_1$13,[$.loading?(openBlock(),createElementBlock(`i`,_hoisted_2$11)):$.data.length>0?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(nd.documentsByCategories,(e,$)=>(openBlock(),createElementBlock(`div`,{key:$},[createBaseVNode(`span`,_hoisted_3$9,toDisplayString($),1),createBaseVNode(`ul`,_hoisted_4$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e,e=>(openBlock(),createElementBlock(`li`,{key:e.documenttitle,style:{"padding-right":`64px`}},[createBaseVNode(`a`,{href:e.filepath,target:`_blank`},[createBaseVNode(`div`,_hoisted_6$3,[createBaseVNode(`span`,null,[createBaseVNode(`img`,{src:e.thumbnailfilepath,alt:e.documenttitle,class:`u-display-inline-block u-vert-align-mid u-mr-2 u-ml-1`,width:`32`,height:`32`,style:{width:`32px`}},null,8,_hoisted_7$3),createTextVNode(` `+toDisplayString(e.documenttitle),1)]),createBaseVNode(`span`,null,[createBaseVNode(`span`,_hoisted_8$1,toDisplayString(e.documenttype),1)]),createBaseVNode(`span`,null,toDisplayString(nd.formatMime(e.filemime)),1),createBaseVNode(`span`,null,toDisplayString(nd.formatBytes(e.filesize)),1)]),t[0]||=createBaseVNode(`span`,{class:`downloads-products-download`,style:{right:`16px`}},[createBaseVNode(`i`,{class:`material-symbols`},`download`)],-1)],8,_hoisted_5$5)]))),128))])]))),128)):(openBlock(),createElementBlock(`p`,_hoisted_9$1,toDisplayString(e.$globalData.i18n.related_empty),1))])}var RelatedDocuments_default=_plugin_vue_export_helper_default(_sfc_main$13,[[`render`,_sfc_render$13],[`__scopeId`,`data-v-ef56cb26`]]),_sfc_main$12={name:`SpecBuilderDocuments`,components:{RelatedDocuments:RelatedDocuments_default},data(){let{apiRoot:e,iframeId:t,method:$,title:ed,i18n:td}=this.$globalData;return{loading:!0,showDocuments:!1,documents:[],apiRoot:e,iframe:document.querySelector(`#${t}`),method:$,title:ed,i18n:td}},mounted(){window.addEventListener(`message`,this.handleIframeMessage)},methods:{handleBtnDocumentsClick(){this.iframe.contentWindow.postMessage({method:this.method},this.apiRoot)},handleBtnBackClick(){this.showDocuments=!1,this.iframe.style.display=`block`},async handleIframeMessage(e){if(e.origin===this.apiRoot&&e.data.method===this.method){this.loading=!0,this.showDocuments=!0,this.iframe.style.display=`none`;try{let{output:t}=e.data,$=``;Object.keys(t).forEach((e,ed)=>{let td=t[e].vodecodecode;$+=td?(ed===0?``:`-`)+td:`-X`}),this.documents=(await this.$axios({method:`get`,url:`${this.apiRoot}/vodule/getDocuments?speccode=${$}`})).data,this.loading=!1}catch(e){console.error(`error`,e),this.loading=!1}}}}}
56,_hoisted_1$12={class:`specbuilder-documents`},_hoisted_2$10={class:`specbuilder-documents__header`},_hoisted_3$8={key:2,class:`alert alert--info`},_hoisted_4$7={key:0,class:`specbuilder-documents__list`};function _sfc_render$12(e,t,$,ed,td,nd){let rd=resolveComponent(`RelatedDocuments`);return openBlock(),createElementBlock(`div`,_hoisted_1$12,[createBaseVNode(`h1`,null,`Spec Builder - `+toDisplayString(td.title),1),createBaseVNode(`div`,_hoisted_2$10,[td.showDocuments?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`div`,{class:`btn btn--primary btn--icon-left`,onClick:t[1]||=(...e)=>nd.handleBtnBackClick&&nd.handleBtnBackClick(...e)},[t[3]||=createBaseVNode(`i`,{class:`material-symbols`},`chevron_left`,-1),createBaseVNode(`span`,null,toDisplayString(td.i18n.back),1)]),createBaseVNode(`h2`,null,toDisplayString(td.i18n.related_documents),1)],64)):(openBlock(),createElementBlock(`div`,{key:0,class:`btn btn--primary btn--icon-left`,onClick:t[0]||=(...e)=>nd.handleBtnDocumentsClick&&nd.handleBtnDocumentsClick(...e)},[t[2]||=createBaseVNode(`i`,{class:`material-symbols`},`description`,-1),createBaseVNode(`span`,null,toDisplayString(td.i18n.related_documents),1)])),td.showDocuments?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,_hoisted_3$8,t[4]||=[createBaseVNode(`i`,{class:`material-symbols`},`info`,-1),createBaseVNode(`span`,null,[createTextVNode(` NOTE: We are transitioning to 90 CRI (excluding Nexa and Ulo product lines) exclusively. If you have any questions, please reach out to `),createBaseVNode(`a`,{href:`mailto:[email protected]`},`[email protected]`),createTextVNode(`. For more information, visit `),createBaseVNode(`a`,{href:`https://www.vode.com/led-upgrades`,target:`_blank`},`www.vode.com/led-upgrades`),createTextVNode(`. `)],-1)]))]),td.showDocuments?(openBlock(),createElementBlock(`div`,_hoisted_4$7,[createVNode(rd,{data:td.documents,loading:td.loading},null,8,[`data`,`loading`])])):createCommentVNode(``,!0)])}var SpecBuilderDocuments_default=_plugin_vue_export_helper_default(_sfc_main$12,[[`render`,_sfc_render$12],[`__scopeId`,`data-v-4abde5f8`]]),btnDocuments=document.querySelector(`specbuilder-documents`);if(btnDocuments){let e={};Object.entries(btnDocuments.dataset).forEach(([t,$])=>{[`index`,`i18n`].includes(t)?e[t]=JSON.parse($):e[t]=$});let t=createApp(SpecBuilderDocuments_default);t.config.globalProperties.$axios=import_axios.default,t.config.globalProperties.$globalData=e,t.mount(btnDocuments)}function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}var isProxyAvailable=typeof Proxy==`function`,HOOK_SETUP=`devtools-plugin:setup`,HOOK_PLUGIN_SETTINGS_SET=`plugin:settings:set`,supported,perf;function isPerformanceSupported(){var e;return supported===void 0&&(typeof window<`u`&&window.performance?(supported=!0,perf=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(supported=!0,perf=globalThis.perf_hooks.performance):supported=!1),supported}function now$1(){return isPerformanceSupported()?perf.now():Date.now()}var ApiProxy=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let $={};if(e.settings)for(let t in e.settings)$[t]=e.settings[t].defaultValue;let ed=`__vue-devtools-plugin-settings__${e.id}`,td=Object.assign({},$);try{let e=localStorage.getItem(ed),t=JSON.parse(e);Object.assign(td,t)}catch{}this.fallbacks={getSettings(){return td},setSettings(e){try{localStorage.setItem(ed,JSON.stringify(e))}catch{}td=e},now(){return now$1()}},t&&t.on(HOOK_PLUGIN_SETTINGS_SET,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise($=>{this.targetQueue.push({method:t,args:e,resolve:$})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function setupDevtoolsPlugin(e,t){let $=e,ed=getTarget(),td=getDevtoolsGlobalHook(),nd=isProxyAvailable&&$.enableEarlyProxy;if(td&&(ed.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!nd))td.emit(HOOK_SETUP,e,t);else{let e=nd?new ApiProxy($,td):null;(ed.__VUE_DEVTOOLS_PLUGINS__=ed.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:$,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var storeKey=`store`;function forEachValue(e,t){Object.keys(e).forEach(function($){return t(e[$],$)})}function isObject$4(e){return typeof e==`object`&&!!e}function isPromise$1(e){return e&&typeof e.then==`function`}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,$){return t.indexOf(e)<0&&($&&$.prepend?t.unshift(e):t.push(e)),function(){var $=t.indexOf(e);$>-1&&t.splice($,1)}}function resetStore(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var $=e.state;installModule(e,$,[],e._modules.root,!0),resetStoreState(e,$,t)}function resetStoreState(e,t,$){var ed=e._state,td=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var nd=e._wrappedGetters,rd={},id={},ad=effectScope(!0);ad.run(function(){forEachValue(nd,function(t,$){rd[$]=partial(t,e),id[$]=computed(function(){return rd[$]()}),Object.defineProperty(e.getters,$,{get:function(){return id[$].value},enumerable:!0})})}),e._state=reactive({data:t}),e._scope=ad,e.strict&&enableStrictMode(e),ed&&$&&e._withCommit(function(){ed.data=null}),td&&td.stop()}function installModule(e,t,$,ed,td){var nd=!$.length,rd=e._modules.getNamespace($);if(ed.namespaced&&(e._modulesNamespaceMap[rd],e._modulesNamespaceMap[rd]=ed),!nd&&!td){var id=getNestedState(t,$.slice(0,-1)),ad=$[$.length-1];e._withCommit(function(){id[ad]=ed.state})}var od=ed.context=makeLocalContext(e,rd,$);ed.forEachMutation(function(t,$){registerMutation(e,rd+$,t,od)}),ed.forEachAction(function(t,$){registerAction(e,t.root?$:rd+$,t.handler||t,od)}),ed.forEachGetter(function(t,$){registerGetter(e,rd+$,t,od)}),ed.forEachChild(function(ed,nd){installModule(e,t,$.concat(nd),ed,td)})}function makeLocalContext(e,t,$){var ed=t===``,td={dispatch:ed?e.dispatch:function($,ed,td){var nd=unifyObjectStyle($,ed,td),rd=nd.payload,id=nd.options,ad=nd.type;return(!id||!id.root)&&(ad=t+ad),e.dispatch(ad,rd)},commit:ed?e.commit:function($,ed,td){var nd=unifyObjectStyle($,ed,td),rd=nd.payload,id=nd.options,ad=nd.type;(!id||!id.root)&&(ad=t+ad),e.commit(ad,rd,id)}};return Object.defineProperties(td,{getters:{get:ed?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,$)}}}),td}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var $={},ed=t.length;
56Object.keys(e.getters).forEach(function(td){if(td.slice(0,ed)===t){var nd=td.slice(ed);Object.defineProperty($,nd,{get:function(){return e.getters[td]},enumerable:!0})}}),e._makeLocalGettersCache[t]=$}return e._makeLocalGettersCache[t]}function registerMutation(e,t,$,ed){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){$.call(e,ed.state,t)})}function registerAction(e,t,$,ed){(e._actions[t]||(e._actions[t]=[])).push(function(t){var td=$.call(e,{dispatch:ed.dispatch,commit:ed.commit,getters:ed.getters,state:ed.state,rootGetters:e.getters,rootState:e.state},t);return isPromise$1(td)||(td=Promise.resolve(td)),e._devtoolHook?td.catch(function(t){throw e._devtoolHook.emit(`vuex:error`,t),t}):td})}function registerGetter(e,t,$,ed){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return $(ed.state,ed.getters,e.state,e.getters)})}function enableStrictMode(e){watch(function(){return e._state.data},function(){},{deep:!0,flush:`sync`})}function getNestedState(e,t){return t.reduce(function(e,t){return e[t]},e)}function unifyObjectStyle(e,t,$){return isObject$4(e)&&e.type&&($=t,t=e,e=e.type),{type:e,payload:t,options:$}}var LABEL_VUEX_BINDINGS=`vuex bindings`,MUTATIONS_LAYER_ID=`vuex:mutations`,ACTIONS_LAYER_ID=`vuex:actions`,INSPECTOR_ID=`vuex`,actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({id:`org.vuejs.vuex`,app:e,label:`Vuex`,homepage:`https://next.vuex.vuejs.org/`,logo:`https://vuejs.org/images/icons/favicon-96x96.png`,packageName:`vuex`,componentStateTypes:[LABEL_VUEX_BINDINGS]},function($){$.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:`Vuex Mutations`,color:COLOR_LIME_500}),$.addTimelineLayer({id:ACTIONS_LAYER_ID,label:`Vuex Actions`,color:COLOR_LIME_500}),$.addInspector({id:INSPECTOR_ID,label:`Vuex`,icon:`storage`,treeFilterPlaceholder:`Filter stores...`}),$.on.getInspectorTree(function($){if($.app===e&&$.inspectorId===INSPECTOR_ID)if($.filter){var ed=[];flattenStoreForInspectorTree(ed,t._modules.root,$.filter,``),$.rootNodes=ed}else $.rootNodes=[formatStoreForInspectorTree(t._modules.root,``)]}),$.on.getInspectorState(function($){if($.app===e&&$.inspectorId===INSPECTOR_ID){var ed=$.nodeId;makeLocalGetters(t,ed),$.state=formatStoreForInspectorState(getStoreModule(t._modules,ed),ed===`root`?t.getters:t._makeLocalGettersCache,ed)}}),$.on.editInspectorState(function($){if($.app===e&&$.inspectorId===INSPECTOR_ID){var ed=$.nodeId,td=$.path;ed!==`root`&&(td=ed.split(`/`).filter(Boolean).concat(td)),t._withCommit(function(){$.set(t._state.data,td,$.state.value)})}}),t.subscribe(function(e,t){var ed={};e.payload&&(ed.payload=e.payload),ed.state=t,$.notifyComponentUpdate(),$.sendInspectorTree(INSPECTOR_ID),$.sendInspectorState(INSPECTOR_ID),$.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:e.type,data:ed}})}),t.subscribeAction({before:function(e,t){var ed={};e.payload&&(ed.payload=e.payload),e._id=actionId++,e._time=Date.now(),ed.state=t,$.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:e._time,title:e.type,groupId:e._id,subtitle:`start`,data:ed}})},after:function(e,t){var ed={},td=Date.now()-e._time;ed.duration={_custom:{type:`duration`,display:td+`ms`,tooltip:`Action duration`,value:td}},e.payload&&(ed.payload=e.payload),ed.state=t,$.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:`end`,data:ed}})}})})}var COLOR_LIME_500=8702998,TAG_NAMESPACED={label:`namespaced`,textColor:16777215,backgroundColor:6710886};function extractNameFromPath(e){return e&&e!==`root`?e.split(`/`).slice(-2,-1)[0]:`Root`}function formatStoreForInspectorTree(e,t){return{id:t||`root`,label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map(function($){return formatStoreForInspectorTree(e._children[$],t+$+`/`)})}}function flattenStoreForInspectorTree(e,t,$,ed){ed.includes($)&&e.push({id:ed||`root`,label:ed.endsWith(`/`)?ed.slice(0,ed.length-1):ed||`Root`,tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach(function(td){flattenStoreForInspectorTree(e,t._children[td
56],$,ed+td+`/`)})}function formatStoreForInspectorState(e,t,$){t=$===`root`?t:t[$];var ed=Object.keys(t),td={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(ed.length){var nd=transformPathsToObjectTree(t);td.getters=Object.keys(nd).map(function(e){return{key:e.endsWith(`/`)?extractNameFromPath(e):e,editable:!1,value:canThrow(function(){return nd[e]})}})}return td}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach(function($){var ed=$.split(`/`);if(ed.length>1){var td=t,nd=ed.pop();ed.forEach(function(e){td[e]||(td[e]={_custom:{value:{},display:e,tooltip:`Module`,abstract:!0}}),td=td[e]._custom.value}),td[nd]=canThrow(function(){return e[$]})}else t[$]=canThrow(function(){return e[$]})}),t}function getStoreModule(e,t){var $=t.split(`/`).filter(function(e){return e});return $.reduce(function(e,ed,td){var nd=e[ed];if(!nd)throw Error(`Missing module "`+ed+`" for path "`+t+`".`);return td===$.length-1?nd:nd._children},t===`root`?e:e.root._children)}function canThrow(e){try{return e()}catch(e){return e}}var Module=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var $=e.state;this.state=(typeof $==`function`?$():$)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(e,t){this._children[e]=t},Module.prototype.removeChild=function(e){delete this._children[e]},Module.prototype.getChild=function(e){return this._children[e]},Module.prototype.hasChild=function(e){return e in this._children},Module.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Module.prototype.forEachChild=function(e){forEachValue(this._children,e)},Module.prototype.forEachGetter=function(e){this._rawModule.getters&&forEachValue(this._rawModule.getters,e)},Module.prototype.forEachAction=function(e){this._rawModule.actions&&forEachValue(this._rawModule.actions,e)},Module.prototype.forEachMutation=function(e){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,e)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(e){this.register([],e,!1)};ModuleCollection.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},ModuleCollection.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,$){return t=t.getChild($),e+(t.namespaced?$+`/`:``)},``)},ModuleCollection.prototype.update=function(e){update$2([],this.root,e)},ModuleCollection.prototype.register=function(e,t,$){var ed=this;$===void 0&&($=!0);var td=new Module(t,$);e.length===0?this.root=td:this.get(e.slice(0,-1)).addChild(e[e.length-1],td),t.modules&&forEachValue(t.modules,function(t,td){ed.register(e.concat(td),t,$)})},ModuleCollection.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),$=e[e.length-1],ed=t.getChild($);ed&&ed.runtime&&t.removeChild($)},ModuleCollection.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),$=e[e.length-1];return t?t.hasChild($):!1};function update$2(e,t,$){if(t.update($),$.modules)for(var ed in $.modules){if(!t.getChild(ed))return;update$2(e.concat(ed),t.getChild(ed),$.modules[ed])}}function createStore$1(e){return new Store(e)}var Store=function(e){var t=this;e===void 0&&(e={});var $=e.plugins;$===void 0&&($=[]);var ed=e.strict;ed===void 0&&(ed=!1);var td=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=td;var nd=this,rd=this,id=rd.dispatch,ad=rd.commit;this.dispatch=function(e,t){return id.call(nd,e,t)},this.commit=function(e,t,$){return ad.call(nd,e,t,$)},this.strict=ed;var od=this._modules.root.state;installModule(this,od,[],this._modules.root),resetStoreState(this,od),$.forEach(function(e){return e(t)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(e,t){e.provide(t||`store`,this),e.config.globalProperties.$store=this,this._devtools!==void 0&&this._devtools&&addDevtools(e,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(e){},Store.prototype.commit=function(e,t,$){var ed=this,td=unifyObjectStyle(e,t,$),nd=td.type,rd=td.payload;td.options;var id={type:nd,payload:rd},ad=this._mutations[nd];
56ad&&(this._withCommit(function(){ad.forEach(function(e){e(rd)})}),this._subscribers.slice().forEach(function(e){return e(id,ed.state)}))},Store.prototype.dispatch=function(e,t){var $=this,ed=unifyObjectStyle(e,t),td=ed.type,nd=ed.payload,rd={type:td,payload:nd},id=this._actions[td];if(id){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(rd,$.state)})}catch{}var ad=id.length>1?Promise.all(id.map(function(e){return e(nd)})):id[0](nd);return new Promise(function(e,t){ad.then(function(t){try{$._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(rd,$.state)})}catch{}e(t)},function(e){try{$._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(rd,$.state,e)})}catch{}t(e)})})}},Store.prototype.subscribe=function(e,t){return genericSubscribe(e,this._subscribers,t)},Store.prototype.subscribeAction=function(e,t){return genericSubscribe(typeof e==`function`?{before:e}:e,this._actionSubscribers,t)},Store.prototype.watch=function(e,t,$){var ed=this;return watch(function(){return e(ed.state,ed.getters)},t,Object.assign({},$))},Store.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},Store.prototype.registerModule=function(e,t,$){$===void 0&&($={}),typeof e==`string`&&(e=[e]),this._modules.register(e,t),installModule(this,this.state,e,this._modules.get(e),$.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(e){var t=this;typeof e==`string`&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var $=getNestedState(t.state,e.slice(0,-1));delete $[e[e.length-1]]}),resetStore(this)},Store.prototype.hasModule=function(e){return typeof e==`string`&&(e=[e]),this._modules.isRegistered(e)},Store.prototype.hotUpdate=function(e){this._modules.update(e),resetStore(this,!0)},Store.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Store.prototype,prototypeAccessors);var mapState=normalizeNamespace(function(e,t){var $={};return normalizeMap(t).forEach(function(t){var ed=t.key,td=t.val;$[ed]=function(){var t=this.$store.state,$=this.$store.getters;if(e){var ed=getModuleByNamespace(this.$store,`mapState`,e);if(!ed)return;t=ed.context.state,$=ed.context.getters}return typeof td==`function`?td.call(this,t,$):t[td]},$[ed].vuex=!0}),$}),mapMutations=normalizeNamespace(function(e,t){var $={};return normalizeMap(t).forEach(function(t){var ed=t.key,td=t.val;$[ed]=function(){for(var t=[],$=arguments.length;$--;)t[$]=arguments[$];var ed=this.$store.commit;if(e){var nd=getModuleByNamespace(this.$store,`mapMutations`,e);if(!nd)return;ed=nd.context.commit}return typeof td==`function`?td.apply(this,[ed].concat(t)):ed.apply(this.$store,[td].concat(t))}}),$}),mapGetters=normalizeNamespace(function(e,t){var $={};return normalizeMap(t).forEach(function(t){var ed=t.key,td=t.val;td=e+td,$[ed]=function(){if(!(e&&!getModuleByNamespace(this.$store,`mapGetters`,e)))return this.$store.getters[td]},$[ed].vuex=!0}),$}),mapActions=normalizeNamespace(function(e,t){var $={};return normalizeMap(t).forEach(function(t){var ed=t.key,td=t.val;$[ed]=function(){for(var t=[],$=arguments.length;$--;)t[$]=arguments[$];var ed=this.$store.dispatch;if(e){var nd=getModuleByNamespace(this.$store,`mapActions`,e);if(!nd)return;ed=nd.context.dispatch}return typeof td==`function`?td.apply(this,[ed].concat(t)):ed.apply(this.$store,[td].concat(t))}}),$});function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$4(e)}function normalizeNamespace(e){return function(t,$){return typeof t==`string`?t.charAt(t.length-1)!==`/`&&(t+=`/`):($=t,t=``),e(t,$)}}function getModuleByNamespace(e,t,$){return e._modulesNamespaceMap[$]}var store_default=createStore$1({state:{complianceEnabled:!1,addProductModal:{visible:!1,title:null,part:null},confirmationModal:{visible:!1,title:null,part:null}},mutations:{confirmationModalData(e,{visible:t,title:$,part:ed}){e.confirmationModal={visible:t,title:$,part:ed}},addProductModalData(e,{visible:t,title:$,part:ed}){e.addProductModal={visible:t,title:$,part:ed}}},actions:{openConfirmationModal({commit:e},{title:t,part:$}){e(`confirmationModalData`,{visible:!0,title:t,part:$})},closeConfirmationModal({commit:e}){e(`confirmationModalData`,{visible:!1,title:null,part:null})},openAddProductModal({commit:e},{title:t,part:$}){e(`addProductModalData`,{visible:!0,title:t,part:$})},closeAddProductModal({commit:e}){e(`addProductModalData`,{visible:!1,title:null,part:null})},setComplianceFilter({commit:e},t){alert(`Set Compliance Filter for type "${t}"`)}}});function mitt_default(e){return{all:e||=new Map,on:function(t,$){var ed=e.get(t);ed?ed.push($):e.set(t,[$])},off:function(t,$){var ed=e.get(t);ed&&($?ed.splice(ed.indexOf($)>>>0,1):e.set(t,[]))},emit:function(t,$){var ed=e.get(t);ed&&ed.slice().map(function(e){e($)}),(ed=e.get(`*`))&&ed.slice().map(function(e){e(t,$)})}}}var eventBus=mitt_default();function getPartMessages(e,t){let $=[];return e.product?(e.isFullyConfigured||$.push(t.product.not_fully_configured),e.hasUnresolvedDependencies&&$.pu
56sh(t.product.has_unresolved_dependencies),Object.values(e.accessories??{}).filter(e=>e.fullyConfigured!==!0).forEach(e=>$.push(t.accessory.not_fully_configured.replace(`:title`,e.title))),$):(e.is_optional||$.push(t.product.no_product),$)}function getSystemMessages(e,t){return(e??[]).flatMap(e=>getPartMessages(e,t).map(t=>`${e.title}: ${t}`))}var _sfc_main$11={name:`ComplianceIcon`,props:{type:{type:String,required:!1,default:`quickship`},isValid:{type:Boolean,required:!1,default:!0},icon:{type:String,required:!1,default:null},color:{type:String,required:!1,default:`black`}},computed:{src(){return`/static/img/icons/${this.type}${this.type===`quickship`?`-default`:``}.png`}}},_hoisted_1$11={class:`compliance-icon`},_hoisted_2$9=[`src`,`alt`];function _sfc_render$11(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,_hoisted_1$11,[createBaseVNode(`img`,{src:nd.src,alt:$.type,class:normalizeClass({"is-grayscale":!$.isValid})},null,10,_hoisted_2$9),$.icon?(openBlock(),createElementBlock(`i`,{key:0,class:`material-symbols`,style:normalizeStyle(`color: ${$.color};`)},toDisplayString($.icon),5)):createCommentVNode(``,!0)])}var ComplianceIcon_default=_plugin_vue_export_helper_default(_sfc_main$11,[[`render`,_sfc_render$11],[`__scopeId`,`data-v-076089fb`]]),_sfc_main$10={name:`ComplianceFilter`,components:{ComplianceIcon:ComplianceIcon_default},props:{type:{type:String,required:!1,default:`quickship`},checked:{type:Boolean,required:!1,default:null},disabled:{type:Boolean,required:!1,default:!1}},emits:[`complianceFilterChanged`]},_hoisted_1$10=[`checked`],_hoisted_2$8=[`innerHTML`];function _sfc_render$10(e,t,$,ed,td,nd){let rd=resolveComponent(`ComplianceIcon`);return openBlock(),createElementBlock(`label`,{class:normalizeClass([`compliance-filter`,{"is-disabled":$.disabled}])},[createBaseVNode(`span`,null,[createVNode(rd,{type:$.type},null,8,[`type`]),createTextVNode(` `+toDisplayString(e.$i18n[$.type].filter),1)]),createBaseVNode(`input`,{checked:$.checked,type:`checkbox`,onChange:t[0]||=t=>e.$emit(`complianceFilterChanged`)},null,40,_hoisted_1$10),createBaseVNode(`i`,{class:`material-symbols compliance-filter__checkbox`,innerHTML:$.checked?`check_box`:`check_box_outline_blank`},null,8,_hoisted_2$8)],2)}var ComplianceFilter_default=_plugin_vue_export_helper_default(_sfc_main$10,[[`render`,_sfc_render$10],[`__scopeId`,`data-v-609fadc2`]]),_sfc_main$9={name:`Tooltip`,props:{content:{type:String,required:!1,default:null},isTop:{type:Boolean,required:!1,default:!1},isRight:{type:Boolean,required:!1,default:!1}},methods:{handleTooltipPosition(e){if(!this.isRight&&this.$refs.tooltip){let t=this.$refs.tooltip.getBoundingClientRect();this.$refs.tooltip.classList.toggle(`is-right`,t.right>window.innerWidth&&e===`enter`)}}}},_hoisted_1$9=[`innerHTML`];function _sfc_render$9(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,{class:`tooltip-component`,onMouseenter:t[0]||=e=>nd.handleTooltipPosition(`enter`),onMouseleave:t[1]||=e=>nd.handleTooltipPosition(`leave`)},[renderSlot(e.$slots,`default`,{},void 0,!0),$.content?(openBlock(),createElementBlock(`div`,{key:0,ref:`tooltip`,class:normalizeClass([`tooltip-component__content`,[`tooltip-component__content`,{"is-top":$.isTop},{"is-right":$.isRight}]]),innerHTML:$.content},null,10,_hoisted_1$9)):createCommentVNode(``,!0)],32)}var Tooltip_default=_plugin_vue_export_helper_default(_sfc_main$9,[[`render`,_sfc_render$9],[`__scopeId`,`data-v-73cd2869`]]),_sfc_main$8={name:`ProductCode`,components:{Tooltip:Tooltip_default,ComplianceIcon:ComplianceIcon_default},props:{code:{type:String,required:!0},copyable:{type:Boolean,required:!1,default:!1},hasUnresolvedDependencies:{type:Boolean,required:!1,default:!1}},emits:[`copied`],data(){return{copied:!1}},methods:{handleCopyClick(){navigator.clipboard.writeText(this.code),this.copied=!0,this.$emit(`copied`),setTimeout(()=>{this.copied=!1},1500)},getComplianceData(e){let t=!1,$=!1,ed=`not_interested`,td=`red`;return{icon:`not_interested`,color:`red`,label:this.$i18n[e].not_compliant}}}},_hoisted_1$8={class:`product-code`};function _sfc_render$8(e,t,$,ed,td,nd){let rd=resolveComponent(`Tooltip`),id=resolveComponent(`ComplianceIcon`);return openBlock(),createElementBlock(`div`,_hoisted_1$8,[createBaseVNode(`span`,null,toDisplayString($.code)+`\xA0`,1),$.copyable?(openBlock(),createBlock(rd,{key:0,content:td.copied?e.$i18n.system_summary.copied:e.$i18n.system_summary.copy_to_clipboard,
56class:normalizeClass([`u-mr-1`,{"is-copied":td.copied}]),onClick:nd.handleCopyClick},{default:withCtx(()=>t[0]||=[createBaseVNode(`i`,{class:`material-symbols`},`content_copy`,-1)]),_:1},8,[`content`,`class`,`onClick`])):createCommentVNode(``,!0),$.hasUnresolvedDependencies?(openBlock(),createBlock(rd,{key:1,content:e.$i18n.product.has_unresolved_dependencies},{default:withCtx(()=>t[1]||=[createBaseVNode(`i`,{class:`material-symbols u-color-warning`},`error`,-1)]),_:1},8,[`content`])):createCommentVNode(``,!0),e.$store.state.complianceEnabled?(openBlock(),createBlock(rd,{key:2,content:nd.getComplianceData(`darksky`).label,class:`u-ml-1`},{default:withCtx(()=>[createVNode(id,{type:`darksky`,"is-valid":!1,icon:nd.getComplianceData(`darksky`).icon,color:nd.getComplianceData(`darksky`).color},null,8,[`icon`,`color`])]),_:1},8,[`content`])):createCommentVNode(``,!0),e.$store.state.complianceEnabled?(openBlock(),createBlock(rd,{key:3,content:nd.getComplianceData(`quickship`).label,class:`u-ml-1`},{default:withCtx(()=>
56[createVNode(id,{type:`quickship`,"is-valid":!1,icon:nd.getComplianceData(`quickship`).icon,color:nd.getComplianceData(`quickship`).color},null,8,[`icon`,`color`])]),_:1},8,[`content`])):createCommentVNode(``,!0)])}var ProductCode_default=_plugin_vue_export_helper_default(_sfc_main$8,[[`render`,_sfc_render$8],[`__scopeId`,`data-v-1254ef4b`]]);init_dist$2(),init_dist$1();var re=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=Object.getOwnPropertyNames,oe=Object.prototype.hasOwnProperty,se=(e,t)=>{let $={};for(var ed in e)re($,ed,{get:e[ed],enumerable:!0});return t||re($,Symbol.toStringTag,{value:`Module`}),$},ce=(e,t,$,ed)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var td=ae(t),nd=0,rd=td.length,id;nd<rd;nd++)id=td[nd],!oe.call(e,id)&&id!==$&&re(e,id,{get:(e=>t[e]).bind(null,id),enumerable:!(ed=ie(t,id))||ed.enumerable});return e},le=(e,t,$)=>(ce(e,t,`default`),$&&ce($,t,`default`)),ue=Object.create,de=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,pe=Object.getOwnPropertyNames,me=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,ge=(e,t)=>function(){return e&&(t=(0,e[pe(e)[0]])(e=0)),t},_e=(e,t)=>function(){return t||(0,e[pe(e)[0]])((t={exports:{}}).exports,t),t.exports},ve=(e,t,$,ed)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let td of pe(t))!he.call(e,td)&&td!==$&&de(e,td,{get:()=>t[td],enumerable:!(ed=fe(t,td))||ed.enumerable});return e},ye=(e,t,$)=>($=e==null?{}:ue(me(e)),ve(t||!e||!e.__esModule?de($,`default`,{value:e,enumerable:!0}):$,e)),be=ge({"../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),xe=_e({"../../node_modules/.pnpm/[email protected]/node_modules/rfdc/index.js"(e,t){be(),t.exports=ed;function $(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function ed(e){if(e||={},e.circles)return td(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(nd(Array.from(e),t))),t.set(Set,(e,t)=>new Set(nd(Array.from(e),t))),e.constructorHandlers)for(let $ of e.constructorHandlers)t.set($[0],$[1]);let ed=null;return e.proto?id:rd;function nd(e,td){let nd=Object.keys(e),rd=Array(nd.length);for(let id=0;id<nd.length;id++){let ad=nd[id],od=e[ad];typeof od!=`object`||!od?rd[ad]=od:od.constructor!==Object&&(ed=t.get(od.constructor))?rd[ad]=ed(od,td):ArrayBuffer.isView(od)?rd[ad]=$(od):rd[ad]=td(od)}return rd}function rd(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return nd(e,rd);if(e.constructor!==Object&&(ed=t.get(e.constructor)))return ed(e,rd);let td={};for(let nd in e){if(Object.hasOwnProperty.call(e,nd)===!1)continue;let id=e[nd];typeof id!=`object`||!id?td[nd]=id:id.constructor!==Object&&(ed=t.get(id.constructor))?td[nd]=ed(id,rd):ArrayBuffer.isView(id)?td[nd]=$(id):td[nd]=rd(id)}return td}function id(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return nd(e,id);if(e.constructor!==Object&&(ed=t.get(e.constructor)))return ed(e,id);let td={};for(let nd in e){let rd=e[nd];typeof rd!=`object`||!rd?td[nd]=rd:rd.constructor!==Object&&(ed=t.get(rd.constructor))?td[nd]=ed(rd,id):ArrayBuffer.isView(rd)?td[nd]=$(rd):td[nd]=id(rd)}return td}}function td(e){let t=[],ed=[],td=new Map;if(td.set(Date,e=>new Date(e)),td.set(Map,(e,t)=>new Map(rd(Array.from(e),t))),td.set(Set,(e,t)=>new Set(rd(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)td.set(t[0],t[1]);let nd=null;return e.proto?ad:id;function rd(e,rd){let id=Object.keys(e),ad=Array(id.length);for(let od=0;od<id.length;od++){let sd=id[od],cd=e[sd];if(typeof cd!=`object`||!cd)ad[sd]=cd;else if(cd.constructor!==Object&&(nd=td.get(cd.constructor)))ad[sd]=nd(cd,rd);else if(ArrayBuffer.isView(cd))ad[sd]=$(cd);else{let e=t.indexOf(cd);e===-1?ad[sd]=rd(cd):ad[sd]=ed[e]}}return ad}function id(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return rd(e,id);if(e.constructor!==Object&&(nd=td.get(e.constructor)))return nd(e,id);let ad={};t.push(e),ed.push(ad);for(let rd in e){if(Object.hasOwnProperty.call(e,rd)===!1)continue;let od=e[rd];if(typeof od!=`object`||!od)ad[rd]=od;else if(od.constructor!==Object&&(nd=td.get(od.constructor)))ad[rd]=nd(od,id);else if(ArrayBuffer.isView(od))ad[rd]=$(od);else{let e=t.indexOf(od);e===-1?ad[rd]=id(od):ad[rd]=ed[e]}}return t.pop(),ed.pop(),ad}function ad(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return rd(e,ad);if(e.constructor!==Object&&(nd=td.get(e.constructor)))return nd(e,ad);let id={};t.push(e),ed.push(id);for(let rd in e){let od=e[rd];if(typeof od!=`object`||!od)id[rd]=od;else if(od.constructor!==Object&&(nd=td.get(od.constructor)))id[rd]=nd(od,ad);else if(ArrayBuffer.isView(od))id[rd]=$(od);else{let e=t.indexOf(od);e===-1?id[rd]=ad(od):id[rd]=ed[e]}}return t.pop(),ed.pop(),id}}}});be(),be(),be();var Se=typeof navigator<`u`,P=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};P.chrome!==void 0&&P.chrome.devtools,Se&&(P.self,P.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__,be();var Ce=ye(xe(),1),we=/(?:^|[-_/])(\w)/g;function Te(e,t){return t?t.toUpperCase():``}function Ee(e){return e&&`${e}`.replace(we,Te)}function De(e,t){let $=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);$.endsWith(`index${t}`)&&($=$.replace(`/index${t}`,t));let ed=$.lastIndexOf(`/`),td=$.substring(ed+1);if(t){let e=td.lastIndexOf(t);return td.substring(0,e)}return``}var Oe=(0,Ce.default)({circles:!0}),ke={trailing:!0};function Ae(e,t=25,$={}){if($={...ke,...$},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let ed,td,nd=[],rd,id,ad=(t,ed)=>(rd=je(e,t,ed),rd.finally(()=>
56{if(rd=null,$.trailing&&id&&!td){let e=ad(t,id);return id=null,e}}),rd);return function(...e){return rd?($.trailing&&(id=e),rd):new Promise(rd=>{let id=!td&&$.leading;clearTimeout(td),td=setTimeout(()=>{td=null;let t=$.leading?ed:ad(this,e);for(let e of nd)e(t);nd=[]},t),id?(ed=ad(this,e),rd(ed)):nd.push(rd)})}}async function je(e,t,$){return await e.apply(t,$)}function Me(e,t={},$){for(let ed in e){let td=e[ed],nd=$?`${$}:${ed}`:ed;typeof td==`object`&&td?Me(td,t,nd):typeof td==`function`&&(t[nd]=td)}return t}var Ne={run:e=>e()},Pe=console.createTask===void 0?()=>Ne:console.createTask;function Fe(e,t){let $=Pe(t.shift());return e.reduce((e,ed)=>e.then(()=>$.run(()=>ed(...t))),Promise.resolve())}function Ie(e,t){let $=Pe(t.shift());return Promise.all(e.map(e=>$.run(()=>e(...t))))}function Le(e,t){for(let $ of[...e])$(t)}var Re=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,$={}){if(!e||typeof t!=`function`)return()=>{};let ed=e,td;for(;this._deprecatedHooks[e];)td=this._deprecatedHooks[e],e=td.to;if(td&&!$.allowDeprecated){let e=td.message;e||=`${ed} hook has been deprecated`+(td.to?`, please use ${td.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let $,ed=(...e)=>(typeof $==`function`&&$(),$=void 0,ed=void 0,t(...e));return $=this.hook(e,ed),$}removeHook(e,t){if(this._hooks[e]){let $=this._hooks[e].indexOf(t);$!==-1&&this._hooks[e].splice($,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let $=this._hooks[e]||[];delete this._hooks[e];for(let t of $)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=Me(e),$=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of $.splice(0,$.length))e()}}removeHooks(e){let t=Me(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Fe,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Ie,e,...t)}callHookWith(e,t,...$){let ed=this._before||this._after?{name:t,args:$,context:{}}:void 0;this._before&&Le(this._before,ed);let td=e(t in this._hooks?[...this._hooks[t]]:[],$);return td instanceof Promise?td.finally(()=>{this._after&&ed&&Le(this._after,ed)}):(this._after&&ed&&Le(this._after,ed),td)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function ze(){return new Re}var Be=Object.create,Ve=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,We=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,Ke=(e,t)=>function(){return e&&(t=(0,e[Ue(e)[0]])(e=0)),t},qe=(e,t)=>function(){return t||(0,e[Ue(e)[0]])((t={exports:{}}).exports,t),t.exports},Je=(e,t,$,ed)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let td of Ue(t))!Ge.call(e,td)&&td!==$&&Ve(e,td,{get:()=>t[td],enumerable:!(ed=He(t,td))||ed.enumerable});return e},Ye=(e,t,$)=>($=e==null?{}:Be(We(e)),Je(t||!e||!e.__esModule?Ve($,`default`,{value:e,enumerable:!0}):$,e)),F=Ke({"../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Xe=qe({"../../node_modules/.pnpm/[email protected]/node_modules/speakingurl/lib/speakingurl.
56js"(e,t){F(),(function(e){var $={Ã:`A`,Ã:`A`,Ã:`A`,Ã:`A`,Ã:`Ae`,Ã
:`A`,Ã:`AE`,Ã:`C`,Ã:`E`,Ã:`E`,Ã:`E`,Ã:`E`,Ã:`I`,Ã:`I`,Ã:`I`,Ã:`I`,Ã:`D`,Ã:`N`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`O`,Ã:`Oe`,Å:`O`,Ã:`O`,Ã:`U`,Ã:`U`,Ã:`U`,Ã:`Ue`,Ű:`U`,Ã:`Y`,Ã:`TH`,Ã:`ss`,à :`a`,á:`a`,â:`a`,ã:`a`,ä:`ae`,Ã¥:`a`,æ:`ae`,ç:`c`,è:`e`,é:`e`,ê:`e`,ë:`e`,ì:`i`,Ã:`i`,î:`i`,ï:`i`,ð:`d`,ñ:`n`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`oe`,Å:`o`,ø:`o`,ù:`u`,ú:`u`,û:`u`,ü:`ue`,ű:`u`,ý:`y`,þ:`th`,ÿ:`y`,áº:`SS`,ا:`a`,Ø£:`a`,Ø¥:`i`,Ø¢:`aa`,ؤ:`u`,ئ:`e`,Ø¡:`a`,ب:`b`,ت:`t`,Ø«:`th`,ج:`j`,Ø:`h`,Ø®:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,Ø´:`sh`,ص:`s`,ض:`dh`,Ø·:`t`,ظ:`z`,ع:`a`,غ:`gh`,Ù:`f`,Ù:`q`,Ù:`k`,Ù:`l`,Ù
:`m`,Ù:`n`,Ù:`h`,Ù:`w`,Ù:`y`,Ù:`a`,Ø©:`h`,ï»»:`la`,ï»·:`laa`,ﻹ:`lai`,ﻵ:`laa`,Ú¯:`g`,Ú:`ch`,Ù¾:`p`,Ú:`zh`,Ú©:`k`,Û:`y`,"Ù":`a`,"Ù":`an`,"Ù":`e`,"Ù":`en`,"Ù":`u`,"Ù":`on`,"Ù":``,"Ù ":`0`,"Ù¡":`1`,"Ù¢":`2`,"Ù£":`3`,"Ù¤":`4`,"Ù¥":`5`,"Ù¦":`6`,"Ù§":`7`,"Ù¨":`8`,"Ù©":`9`,"Û°":`0`,"Û±":`1`,"Û²":`2`,"Û³":`3`,"Û´":`4`,"Ûµ":`5`,"Û¶":`6`,"Û·":`7`,"Û¸":`8`,"Û¹":`9`,á:`k`,á:`kh`,á:`g`,á:`ga`,á:`ng`,á
:`s`,á:`sa`,á:`z`,á
á»:`za`,á:`ny`,á:`t`,á:`ta`,á:`d`,á:`da`,á:`na`,á:`t`,á:`ta`,á:`d`,á:`da`,á:`n`,á:`p`,á:`pa`,á:`b`,á:`ba`,á:`m`,á:`y`,á:`ya`,á:`l`,á:`w`,á:`th`,á:`h`,á :`la`,á¡:`a`,"á¼":`y`,"á»":`ya`,"á½":`w`,"á¼á½":`yw`,"á»á½":`ywa`,"á¾":`h`,á§:`e`,"á":`-e`,á£:`i`,á¤:`-i`,á:`u`,á¦:`-u`,á©:`aw`,áá¼á±á¬:`aw`,áª:`aw`,"á":`0`,"á":`1`,"á":`2`,"á":`3`,"á":`4`,"á
":`5`,"á":`6`,"á":`7`,"á":`8`,"á":`9`,"á¹":``,"á·":``,"á¸":``,Ä:`c`,Ä:`d`,Ä:`e`,Å:`n`,Å:`r`,Å¡:`s`,Å¥:`t`,ů:`u`,ž:`z`,Ä:`C`,Ä:`D`,Ä:`E`,Å:`N`,Å:`R`,Å :`S`,Ť:`T`,Å®:`U`,Ž:`Z`,Þ:`h`,Þ:`sh`,Þ:`n`,Þ:`r`,Þ:`b`,Þ
:`lh`,Þ:`k`,Þ:`a`,Þ:`v`,Þ:`m`,Þ:`f`,Þ:`dh`,Þ:`th`,Þ:`l`,Þ:`g`,Þ:`gn`,Þ:`s`,Þ:`d`,Þ:`z`,Þ:`t`,Þ:`y`,Þ:`p`,Þ:`j`,Þ:`ch`,Þ:`tt`,Þ:`hh`,Þ:`kh`,Þ:`th`,Þ:`z`,Þ:`sh`,Þ:`s`,Þ:`d`,Þ :`t`,Þ¡:`z`,Þ¢:`a`,Þ£:`gh`,Þ¤:`q`,Þ¥:`w`,"Þ¦":`a`,"Þ§":`aa`,"Þ¨":`i`,"Þ©":`ee`,"Þª":`u`,"Þ«":`oo`,"Þ¬":`e`,"Þ":`ey`,"Þ®":`o`,"Þ¯":`oa`,"Þ°":``,á:`a`,á:`b`,á:`g`,á:`d`,á:`e`,á:`v`,á:`z`,á:`t`,á:`i`,á:`k`,á:`l`,á:`m`,á:`n`,á:`o`,á:`p`,á:`zh`,á :`r`,á¡:`s`,á¢:`t`,á£:`u`,á¤:`p`,á¥:`k`,á¦:`gh`,á§:`q`,á¨:`sh`,á©:`ch`,áª:`ts`,á«:`dz`,á¬:`ts`,á:`ch`,á®:`kh`,á¯:`j`,á°:`h`,α:`a`,β:`v`,γ:`g`,δ:`d`,ε:`e`,ζ:`z`,η:`i`,θ:`th`,ι:`i`,κ:`k`,λ:`l`,μ:`m`,ν:`n`,ξ:`ks`,ο:`o`,Ï:`p`,Ï:`r`,Ï:`s`,Ï:`t`,Ï
:`y`,Ï:`f`,Ï:`x`,Ï:`ps`,Ï:`o`,ά:`a`,Î:`e`,ί:`i`,Ï:`o`,Ï:`y`,ή:`i`,Ï:`o`,Ï:`s`,Ï:`i`,ΰ:`y`,Ï:`y`,Î:`i`,Î:`A`,Î:`B`,Î:`G`,Î:`D`,Î:`E`,Î:`Z`,Î:`I`,Î:`TH`,Î:`I`,Î:`K`,Î:`L`,Î:`M`,Î:`N`,Î:`KS`,Î:`O`,Î :`P`,Ρ:`R`,Σ:`S`,Τ:`T`,Î¥:`Y`,Φ:`F`,Χ:`X`,Ψ:`PS`,Ω:`O`,Î:`A`,Î:`E`,Î:`I`,Î:`O`,Î:`Y`,Î:`I`,Î:`O`,Ϊ:`I`,Ϋ:`Y`,Ä:`a`,Ä:`e`,Ä£:`g`,Ä«:`i`,Ä·:`k`,ļ:`l`,Å:`n`,Å«:`u`,Ä:`A`,Ä:`E`,Ä¢:`G`,Ī:`I`,Ķ:`k`,Ä»:`L`,Å
:`N`,Ū:`U`,Ð:`Kj`,Ñ:`kj`,Ð:`Lj`,Ñ:`lj`,Ð:`Nj`,Ñ:`nj`,ТÑ:`Ts`,ÑÑ:`ts`,Ä
:`a`,Ä:`c`,Ä:`e`,Å:`l`,Å:`n`,Å:`s`,ź:`z`,ż:`z`,Ä:`A`,Ä:`C`,Ä:`E`,Å:`L`,Å:`N`,Å:`S`,Ź:`Z`,Å»:`Z`,Ð:`Ye`,Ð:`I`,Ð:`Yi`,Ò:`G`,Ñ:`ye`,Ñ:`i`,Ñ:`yi`,Ò:`g`,Ä:`a`,Ä:`A`,È:`s`,È:`S`,È:`t`,È:`T`,Å£:`t`,Å¢:`T`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,е:`e`,Ñ:`yo`,ж:`zh`,з:`z`,и:`i`,й:`i`,к:`k`,л:`l`,м:`m`,н:`n`,о:`o`,п:`p`,Ñ:`r`,Ñ:`s`,Ñ:`t`,Ñ:`u`,Ñ:`f`,Ñ
:`kh`,Ñ:`c`,Ñ:`ch`,Ñ:`sh`,Ñ:`sh`,Ñ:``,Ñ:`y`,Ñ:``,Ñ:`e`,Ñ:`yu`,Ñ:`ya`,Ð:`A`,Ð:`B`,Ð:`V`,Ð:`G`,Ð:`D`,Ð:`E`,Ð:`Yo`,Ð:`Zh`,Ð:`Z`,Ð:`I`,Ð:`I`,Ð:`K`,Ð:`L`,Ð:`M`,Ð:`N`,Ð:`O`,Ð:`P`,Ð :`R`,С:`S`,Т:`T`,У:`U`,Ф:`F`,Ð¥:`Kh`,Ц:`C`,Ч:`Ch`,Ш:`Sh`,Щ:`Sh`,Ъ:``,Ы:`Y`,Ь:``,Ð:`E`,Ю:`Yu`,Я:`Ya`,Ñ:`dj`,Ñ:`j`,Ñ:`c`,Ñ:`dz`,Ð:`Dj`,Ð:`j`,Ð:`C`,Ð:`Dz`,ľ:`l`,ĺ:`l`,Å:`r`,Ľ:`L`,Ĺ:`L`,Å:`R`,Å:`s`,Å:`S`,ı:`i`,İ:`I`,Ä:`g`,Ä:`G`,ả:`a`,Ả:`A`,ẳ:`a`,Ẳ:`A`,ẩ:`a`,Ẩ:`A`,Ä:`d`,Ä:`D`,ẹ:`e`,Ẹ:`E`,ẽ:`e`,Ẽ:`E`,ẻ:`e`,Ẻ:`E`,ế:`e`,Ế:`E`,á»:`e`,á»:`E`,á»:`e`,á»:`E`,á»
:`e`,á»:`E`,á»:`e`,á»:`E`,á»:`o`,á»:`o`,á»:`o`,á»:`o`,á»:`O`,á»:`o`,á»:`O`,á»:`o`,á»:`O`,á»:`o`,á»:`O`,á»:`o`,á»:`O`,Æ¡:`o`,Æ :`O`,á»:`o`,á»:`O`,á»:`o`,á»:`O`,ợ:`o`,Ợ:`O`,ỡ:`o`,á» :`O`,á»:`o`,á»:`o`,á»:`i`,á»:`I`,Ä©:`i`,Ĩ:`I`,á»:`i`,á»:`i`,á»§:`u`,Ủ:`U`,ụ:`u`,Ụ:`U`,Å©:`u`,Ũ:`U`,ư:`u`,Ư:`U`,ứ:`u`,Ứ:`U`,ừ:`u`,Ừ:`U`,á»±:`u`,á»°:`U`,ữ:`u`,á»®:`U`,á»:`u`,Ử:`ư`,á»·:`y`,á»¶:`y`,ỳ:`y`,Ỳ:`Y`,ỵ:`y`,á»´:`Y`,ỹ:`y`,Ỹ:`Y`,ạ:`a`,Ạ:`A`,ấ:`a`,Ấ:`A`,ầ:`a`,Ầ:`A`,áº:`a`,Ậ:`A`,ẫ:`a`,Ẫ:`A`,ắ:`a`,Ắ:`A`,ằ:`a`,Ằ:`A`,ặ:`a`,Ặ:`A`,ẵ:`a`,Ẵ
56:`A`,"âª":`0`,"â ":`1`,"â¡":`2`,"â¢":`3`,"â£":`4`,"â¤":`5`,"â¥":`6`,"â¦":`7`,"â§":`8`,"â¨":`9`,"â©":`10`,"âª":`11`,"â«":`12`,"â¬":`13`,"â":`14`,"â®":`15`,"â¯":`16`,"â°":`17`,"â±":`18`,"â²":`18`,"â³":`18`,"âµ":`1`,"â¶":`2`,"â·":`3`,"â¸":`4`,"â¹":`5`,"âº":`6`,"â»":`7`,"â¼":`8`,"â½":`9`,"â¾":`10`,"â¿":`0`,"â«":`11`,"â¬":`12`,"â":`13`,"â®":`14`,"â¯":`15`,"â°":`16`,"â±":`17`,"â²":`18`,"â³":`19`,"â´":`20`,"â¶":`A`,"â·":`B`,"â¸":`C`,"â¹":`D`,"âº":`E`,"â»":`F`,"â¼":`G`,"â½":`H`,"â¾":`I`,"â¿":`J`,"â":`K`,"â":`L`,"â":`M`,"â":`N`,"â":`O`,"â
":`P`,"â":`Q`,"â":`R`,"â":`S`,"â":`T`,"â":`U`,"â":`V`,"â":`W`,"â":`X`,"â":`Y`,"â":`Z`,"â":`a`,"â":`b`,"â":`c`,"â":`d`,"â":`e`,"â":`f`,"â":`g`,"â":`h`,"â":`i`,"â":`j`,"â":`k`,"â":`l`,"â":`m`,"â":`n`,"â":`o`,"â":`p`,"â ":`q`,"â¡":`r`,"â¢":`s`,"â£":`t`,"â¤":`u`,"â¦":`v`,"â¥":`w`,"â§":`x`,"â¨":`y`,"â©":`z`,"â":`"`,"â":`"`,"â":`'`,"â":`'`,"â":`d`,Æ:`f`,"â¢":`(TM)`,"©":`(C)`,Å:`oe`,Å:`OE`,"®":`(R)`,"â ":`+`,"â ":`(SM)`,"â¦":`...`,"Ë":`o`,º:`o`,ª:`a`,"â¢":`*`,"á":`,`,"á":`.`,$:`USD`,"â¬":`EUR`,"â¢":`BRN`,"â£":`FRF`,"£":`GBP`,"â¤":`ITL`,"â¦":`NGN`,"â§":`ESP`,"â©":`KRW`,"âª":`ILS`,"â«":`VND`,"â":`LAK`,"â®":`MNT`,"â¯":`GRD`,"â±":`ARS`,"â²":`PYG`,"â³":`ARA`,"â´":`UAH`,"âµ":`GHS`,"¢":`cent`,"Â¥":`CNY`,å
:`CNY`,å:`YEN`,"ï·¼":`IRR`,"â ":`EWE`,"฿":`THB`,"â¨":`INR`,"â¹":`INR`,"â°":`PF`,"âº":`TRY`,"Ø":`AFN`,"â¼":`AZN`,лв:`BGN`,"á":`KHR`,"â¡":`CRC`,"â¸":`KZT`,ден:`MKD`,zÅ:`PLN`,"â½":`RUB`,"â¾":`GEL`},ed=[`áº`,`Þ°`],td={"á¬":`a`,"á«":`a`,"á±":`e`,"á²":`e`,"á":`i`,"á®":`i`,"áá¯":`o`,"á¯":`u`,"á°":`u`,"á±á«ááº":`aung`,"á±á¬":`aw`,"á±á¬áº":`aw`,"á±á«":`aw`,"á±á«áº":`aw`,"áº":`áº`,ááº:`et`,"áá¯ááº":`aik`,"á±á¬ááº":`auk`,ááº:`in`,"áá¯ááº":`aing`,"á±á¬ááº":`aung`,á
áº:`it`,ááº:`i`,ááº:`at`,"áááº":`eik`,"á¯ááº":`ok`,"á½ááº":`ut`,"á±ááº":`it`,ááº:`d`,"áá¯ááº":`ok`,"á¯ááº":`ait`,ááº:`an`,"á¬ááº":`an`,"áááº":`ein`,"á¯ááº":`on`,"á½ááº":`un`,ááº:`at`,"áááº":`eik`,"á¯ááº":`ok`,"á½ááº":`ut`,ááºá¯ááº:`nub`,ááº:`an`,"áááº":`ein`,"á¯ááº":`on`,"á½ááº":`un`,ááº:`e`,"áá¯ááº":`ol`,ááº:`in`,"á¶":`an`,"áá¶":`ein`,"á¯á¶":`on`,"Þ¦ÞÞ°":`ah`,"Þ¦ÞÞ°":`ah`},nd={en:{},az:{ç:`c`,É:`e`,Ä:`g`,ı:`i`,ö:`o`,Å:`s`,ü:`u`,Ã:`C`,Æ:`E`,Ä:`G`,İ:`I`,Ã:`O`,Å:`S`,Ã:`U`},cs:{Ä:`c`,Ä:`d`,Ä:`e`,Å:`n`,Å:`r`,Å¡:`s`,Å¥:`t`,ů:`u`,ž:`z`,Ä:`C`,Ä:`D`,Ä:`E`,Å:`N`,Å:`R`,Å :`S`,Ť:`T`,Å®:`U`,Ž:`Z`},fi:{ä:`a`,Ã:`A`,ö:`o`,Ã:`O`},hu:{ä:`a`,Ã:`A`,ö:`o`,Ã:`O`,ü:`u`,Ã:`U`,ű:`u`,Ű:`U`},lt:{Ä
:`a`,Ä:`c`,Ä:`e`,Ä:`e`,į:`i`,Å¡:`s`,ų:`u`,Å«:`u`,ž:`z`,Ä:`A`,Ä:`C`,Ä:`E`,Ä:`E`,Ä®:`I`,Å :`S`,Ų:`U`,Ū:`U`},lv:{Ä:`a`,Ä:`c`,Ä:`e`,Ä£:`g`,Ä«:`i`,Ä·:`k`,ļ:`l`,Å:`n`,Å¡:`s`,Å«:`u`,ž:`z`,Ä:`A`,Ä:`C`,Ä:`E`,Ä¢:`G`,Ī:`i`,Ķ:`k`,Ä»:`L`,Å
:`N`,Å :`S`,Ū:`u`,Ž:`Z`},pl:{Ä
:`a`,Ä:`c`,Ä:`e`,Å:`l`,Å:`n`,ó:`o`,Å:`s`,ź:`z`,ż:`z`,Ä:`A`,Ä:`C`,Ä:`e`,Å:`L`,Å:`N`,Ã:`O`,Å:`S`,Ź:`Z`,Å»:`Z`},sv:{ä:`a`,Ã:`A`,ö:`o`,Ã:`O`},sk:{ä:`a`,Ã:`A`},sr:{Ñ:`lj`,Ñ:`nj`,Ð:`Lj`,Ð:`Nj`,Ä:`dj`,Ä:`Dj`},tr:{Ã:`U`,Ã:`O`,ü:`u`,ö:`o`}},rd={ar:{"â":`delta`,"â":`la-nihaya`,"â¥":`hob`,"&":`wa`,"|":`aw`,"<":`aqal-men`,">":`akbar-men`,"â":`majmou`,"¤":`omla`},az:{},ca:{"â":`delta`,"â":`infinit`,"â¥":`amor`,"&":`i`,"|":`o`,"<":`menys que`,">":`mes que`,"â":`suma dels`,"¤":`moneda`},cs:{"â":`delta`,"â":`nekonecno`,"â¥":`laska`,"&":`a`,"|":`nebo`,"<":`mensi nez`,">":`vetsi nez`,"â":`soucet`,"¤":`mena`},de:{"â":`delta`,"â":`unendlich`,"â¥":`Liebe`,"&":`und`,"|":`oder`,"<":`kleiner als`,">":`groesser als`,"â":`Summe von`,"¤":`Waehrung`},dv:{"â":`delta`,"â":`kolunulaa`,"â¥":`loabi`,"&":`aai`,"|":`noonee`,"<":`ah vure kuda`,">":`ah vure bodu`,"â":`jumula`,"¤":`faisaa`},en:{"â":`delta`,"â":`infinity`,"â¥":`love`,"&":`and`,"|":`or`,"<":`less than`,">":`greater than`,"â":`sum`,"¤":`currency`},es:{"â":`delta`,"â":`infinito`,"â¥":`amor`,"&":`y`,"|":`u`,"<":`menos que`,">":`mas que`,"â":`suma de los`,"¤":`moneda`},fa:{"â":`delta`,"â":`bi-nahayat`,"â¥":`eshgh`,"&":`va`,"|":`ya`,"<":`kamtar-az`,">":`bishtar-az`,"â":`majmooe`,"¤":`vahed`},fi:{"â":`delta`,"â":`aarettomyys`,"â¥":`rakkaus`,"&":`ja`,"|":`tai`,"<":`pienempi kuin`,">":`suurempi kuin`,"â":`summa`,"¤":`valuutta`},fr:{"â":`delta`,"â":`infiniment`,"â¥":`Amour`,"&":`et`,"|":`ou`,"<":`moins que`,">":`superieure a`,"â":`somme des`,"¤":`monnaie`},ge:{"â":`delta`,"â":`usasruloba`,"â¥":`siqvaruli`,"&":`da`,"|":`an`,"<":`naklebi`,">":`meti`,"â":`jami`,"¤":`valuta`},gr:{},hu:{"â":`delta`,"â":`vegtelen`,"â¥":`szerelem`,"&":`es`,"|":`vagy`,"<":`kisebb mint`,">":`nagyobb mint`,"â":`szumma`,"¤":`penznem`},it:{"â":`delta`,"â":`infinito`,"â¥":`amore`,"&":`e`,"|":`o`,"<":`minore di`,">":`maggiore di`,"â":`somma`,"¤":`moneta`},lt:{"â":`delta`,"â":`begalybe`,"â¥":`meile`,"&":`ir`,"|":`ar`,"<":`maziau nei`,">":`daugiau nei`,"â":`suma`,"¤":`valiuta`},lv:{"â":`delta`,"â":`bezgaliba`,"â¥":`milestiba`,"&":`un`,"|":`vai`,"<":`mazak neka`,">":`lielaks neka`,"â":`summa`,"¤":`valuta`},my:{"â":`kwahkhyaet`,"â":`asaonasme`,"â¥":`akhyait`,"&":`nhin`,"|":`tho`,"<":`ngethaw`,">":`kyithaw`,"â":`paungld`,"¤":`ngwekye`},mk:{},nl:{"â":`delta`,"â":`oneindig`,"â¥":`liefde`,"&":`en`,"|":`of`,"<":`kleiner dan`,">":`groter dan`,"â":`som`,"¤":`valuta`},pl:{"â":`delta`,"â":`nieskonczonosc`,"â¥":`milosc`,"&":`i`,"|":`lub`,"<":`mniejsze niz`,">":`wieksze niz`,"â":`suma`,"¤":`waluta`},pt:{"â":`delta`,"â":`infinito`,"â¥":`amor`,"&":`e`,"|":`ou`,"<":`menor que`,">":`maior que`,"â":`soma`,"¤":`moeda`},ro:{"â":`delta`,"â":`infinit`,"â¥":`dragoste`,"&":`si`,"|":`sau`,"<":`mai mic ca`,">":`mai mare ca`,"â":`suma`,"¤":`valuta`},ru:{"â":`delta`,"â":`beskonechno`,"â¥":`lubov`,"&":`i`,"|":`ili`,"<":`menshe`,">":`bolshe`,"â":`summa`,"¤":`valjuta`},sk:{"â":`delta`,"â":`nekonecno`,"â¥":`laska`,"&":`a`,"|":`alebo`,"<":`menej ako`,">":`viac ako`,"â":`sucet`,"¤":`mena`},sr:{},tr:{"â":`delta`,"â":`sonsuzluk`,"â¥":`ask`,"&":`ve`,"|":`veya`,"<":`kucuktur`,">":`buyuktur`,"â":`toplam`,"¤":`para birimi`},uk:{"â":`delta`,"â":`bezkinechnist`,"â¥":`lubov`,"&":`i`,"|":`abo`,"<":`menshe`,">":`bilshe`,"â":`suma`,"¤":`valjuta`},vn:{"â":`delta`,"â":`vo cuc`,"â¥":`yeu`,"&":`va`,"|":`hoac`,"<":`nho hon`,">":`lon hon`,"â":`tong`,"¤":`tien te`}},id=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),ad=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),od=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),sd=function(e,t){var sd=`-`,cd=``,dd=``,fd=!0,pd={},md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(sd=t),bd=rd.en,xd=nd.en,typeof t==`object`)for(wd in md=t.maintainCase||!1,pd=t.custom&&typeof t.custom==`object`?t.custom:pd,gd=+t.truncate>1&&t.truncate||!1,_d=t.uric||!1,vd=t.uricNoSlash||!1,yd=t.mark||!1,fd=!(t.symbols===!1||t.lang===!1),sd=t.separator||sd,_d&&(Od+=id),vd&&(Od+=ad),yd&&(Od+=od),bd=t.lang&&rd[t.lang]&&fd?rd[t.lang]:fd?rd.en:{},xd=t.lang&&nd[t.lang]?nd[t.lang]:t.lang===!1||t.lang===!0?{}:nd.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){pd[e+``]=e+``}),hd=!0):hd=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){pd[e+``]=e+``}
56),Object.keys(pd).forEach(function(t){var $=t.length>1?RegExp(`\\b`+ld(t)+`\\b`,`gi`):new RegExp(ld(t),`gi`);e=e.replace($,pd[t])}),pd)Od+=wd;for(Od+=sd,Od=ld(Od),e=e.replace(/(^\s+|\s+$)/g,``),Ed=!1,Dd=!1,Cd=0,Td=e.length;Cd<Td;Cd++)wd=e[Cd],ud(wd,pd)?Ed=!1:xd[wd]?(wd=Ed&&xd[wd].match(/[A-Za-z0-9]/)?` `+xd[wd]:xd[wd],Ed=!1):wd in $?(Cd+1<Td&&ed.indexOf(e[Cd+1])>=0?(dd+=wd,wd=``):Dd===!0?(wd=td[dd]+$[wd],dd=``):wd=Ed&&$[wd].match(/[A-Za-z0-9]/)?` `+$[wd]:$[wd],Ed=!1,Dd=!1):wd in td?(dd+=wd,wd=``,Cd===Td-1&&(wd=td[dd]),Dd=!0):bd[wd]&&!(_d&&id.indexOf(wd)!==-1)&&!(vd&&ad.indexOf(wd)!==-1)?(wd=Ed||cd.substr(-1).match(/[A-Za-z0-9]/)?sd+bd[wd]:bd[wd],wd+=e[Cd+1]!==void 0&&e[Cd+1].match(/[A-Za-z0-9]/)?sd:``,Ed=!0):(Dd===!0?(wd=td[dd]+wd,dd=``,Dd=!1):Ed&&(/[A-Za-z0-9]/.test(wd)||cd.substr(-1).match(/A-Za-z0-9]/))&&(wd=` `+wd),Ed=!1),cd+=wd.replace(RegExp(`[^\\w\\s`+Od+`_-]`,`g`),sd);return hd&&(cd=cd.replace(/(\w)(\S*)/g,function(e,t,$){var ed=t.toUpperCase()+($===null?``:$);return Object.keys(pd).indexOf(ed.toLowerCase())<0?ed:ed.toLowerCase()})),cd=cd.replace(/\s+/g,sd).replace(RegExp(`\\`+sd+`+`,`g`),sd).replace(RegExp(`(^\\`+sd+`+|\\`+sd+`+$)`,`g`),``),gd&&cd.length>gd&&(Sd=cd.charAt(gd)===sd,cd=cd.slice(0,gd),Sd||(cd=cd.slice(0,cd.lastIndexOf(sd)))),!md&&!hd&&(cd=cd.toLowerCase()),cd},cd=function(e){return function(t){return sd(t,e)}},ld=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},ud=function(e,t){for(var $ in t)if(t[$]===e)return!0};if(t!==void 0&&t.exports)t.exports=sd,t.exports.createSlug=cd;else if(typeof define<`u`&&define.amd)define([],function(){return sd});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=sd,e.createSlug=cd}catch{}})(e)}}),Ze=qe({"../../node_modules/.pnpm/[email protected]/node_modules/speakingurl/index.js"(e,t){F(),t.exports=Xe()}});F(),F(),F(),F(),F(),F(),F(),F();function Qe(e){let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function $e(e){let t=e.__file;if(t)return Ee(De(t,`.vue`))}function et(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function tt(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function nt(e){let t=e.subTree?.type,$=tt(e);return $?$?.types?.Fragment===t:!1}function rt(e){let t=Qe(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return et(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return et(e,t);return $e(e?.type||{})||`Anonymous Component`}function it(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function at(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function ot(){let e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var st;function ct(e){return st||=document.createRange(),st.selectNode(e),st.getBoundingClientRect()}function lt(e){let t=ot();if(!e.children)return t;for(let $=0,ed=e.children.length;$<ed;$++){let ed=e.children[$],td;if(ed.component)td=ft(ed.component);else if(ed.el){let e=ed.el;e.nodeType===1||e.getBoundingClientRect?td=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(td=ct(e))}td&&ut(t,td)}return t}function ut(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var dt={top:0,left:0,right:0,bottom:0,width:0,height:0};function ft(e){let t=e.subTree.el;return typeof window>`u`?dt:nt(e)?lt(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?ft(e.subTree.component):dt}F();function pt(e){return nt(e)?mt(e.subTree):e.subTree?[e.subTree.el]:[]}function mt(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...pt(e.component)):e?.el&&t.push(e.el)}),t}var ht=`__vue-devtools-component-inspector__`,gt=`__vue-devtools-component-inspector__card__`,_t=`__vue-devtools-component-inspector__name__`,vt=`__vue-devtools-component-inspector__indicator__`,yt={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},bt={fontFamily:`Arial, Helvetica, sans-serif`,padding:`5px 8px`,borderRadius:`4px`,textAlign:`left`,position:`absolute`,left:0,color:`#e9e9e9`,fontSize:`14px`,fontWeight:600,lineHeight:`24px`,backgroundColor:`#42b883`,boxShadow:`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`},xt={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function St(){return document.getElementById(ht)}function Ct(){return document.getElementById(gt)}function wt(){return document.getElementById(vt)}function Tt(){return document.getElementById(_t)}function Et(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Dt(e){let t=document.createElement(`div`);t.id=e.elementId??ht,Object.assign(t.style,{...yt,...Et(e.bounds),...e.style});let $=document.createElement(`span`);$.id=gt,Object.assign($.style,{...bt,top:e.bounds.top<35?0:`-35px`});let ed=document.createElement(`span`);ed.id=_t,ed.innerHTML=`<${e.name}> `;let td=document.createElement(`i`);return td.id=vt,td.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(td.style,xt),$.appendChild(ed),$.appendChild(td),t.appendChild($),document.body.appendChild(t),t}function Ot(e){let t=St(),$=Ct(),ed=Tt(),td=wt();t&&(Object.assign(t.style,{...yt,...Et(e.bounds)}),Object.assign($.style,{top:e.bounds.top<35?0:`-35px`}),ed.innerHTML=`<${e.name}> `,td.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function kt(e){let t=ft(e);if(!t.width&&!t.height)return;let $=rt(e);St()?Ot({bounds:t,name:$}):Dt({bounds:t,name:$})}function At(){let e=St();e&&(e.style.display=`none`)}var jt=null;function Mt(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(jt=e,e.vnode.el)){let t=ft(e),$=rt(e);St()?Ot({bounds:t,name:$}):Dt({bounds:t,name:$})}}}function Nt(e,t){e.preventDefault(),e.stopPropagation(),jt&&t(it(jt))}var Pt=null;function Ft(){At(),window.removeEventListener(`mouseover`,Mt),window.removeEventListener(`click`,Pt,!0),Pt=null}function It(){return window.addEventListener(`mouseover`,Mt),new Promise(e=>{function t($){$.preventDefault(),$.stopPropagation(),Nt($,$=>{window.removeEventListener(`click`,t,!0),Pt=null,window.removeEventListener(`mouseover`,Mt);let ed=St();ed&&(ed.style.display=`none`),e(JSON.stringify({id:$}))})}Pt=t,window.addEventListener(`click`,t,!0)})}
56function Lt(e){let t=at(I.value,e.id);if(t){let[$]=pt(t);if(typeof $.scrollIntoView==`function`)$.scrollIntoView({behavior:`smooth`});else{let e=ft(t),$=document.createElement(`div`),ed={...Et(e),position:`absolute`};Object.assign($.style,ed),document.body.appendChild($),$.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild($)},2e3)}setTimeout(()=>{let $=ft(t);if($.width||$.height){let ed=rt(t),td=St();td?Ot({...e,name:ed,bounds:$}):Dt({...e,name:ed,bounds:$}),setTimeout(()=>{td&&(td.style.display=`none`)},1500)}},1200)}}F();var Rt;(Rt=P).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??(Rt.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function zt(e){let t=0,$=setInterval(()=>{P.__VUE_INSPECTOR__&&(clearInterval($),t+=30,e()),t>=5e3&&clearInterval($)},30)}function Bt(){let e=P.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...$)=>{e.disable(),t(...$)}}function Vt(){return new Promise(e=>{function t(){Bt(),e(P.__VUE_INSPECTOR__)}P.__VUE_INSPECTOR__?t():zt(()=>{t()})})}F(),F();function Ht(e){return!!(e&&e.__v_isReadonly)}function Ut(e){return Ht(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isRef===!0)}function Gt(e){let t=e&&e.__v_raw;return t?Gt(t):e}var Kt=class{constructor(){this.refEditor=new qt}set(e,t,$,ed){let td=Array.isArray(t)?t:t.split(`.`);for(;td.length>1;){let t=td.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let nd=td[0],rd=this.refEditor.get(e)[nd];ed?ed(e,nd,$):this.refEditor.isRef(rd)?this.refEditor.set(rd,$):e[nd]=$}get(e,t){let $=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<$.length;t++)if(e=e instanceof Map?e.get($[t]):e[$[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,$=!1){if(e===void 0)return!1;let ed=Array.isArray(t)?t.slice():t.split(`.`),td=$?2:1;for(;e&&ed.length>td;){let t=ed.shift();e=e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,ed[0])}createDefaultSetCallback(e){return(t,$,ed)=>
56{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice($,1):Gt(t)instanceof Map?t.delete($):Gt(t)instanceof Set?t.delete(Array.from(t.values())[$]):Reflect.deleteProperty(t,$)),!e.remove){let td=t[e.newKey||$];this.refEditor.isRef(td)?this.refEditor.set(td,ed):Gt(t)instanceof Map?t.set(e.newKey||$,ed):Gt(t)instanceof Set?t.add(ed):t[e.newKey||$]=ed}}}},qt=class{set(e,t){if(Wt(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let $=Object.keys(t);if(e instanceof Map){let ed=new Set(e.keys());$.forEach($=>{e.set($,Reflect.get(t,$)),ed.delete($)}),ed.forEach(t=>e.delete(t));return}let ed=new Set(Object.keys(e));$.forEach($=>{Reflect.set(e,$,Reflect.get(t,$)),ed.delete($)}),ed.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return Wt(e)?e.value:e}isRef(e){return Wt(e)||Ut(e)}};new Kt,F(),F(),F();var Jt=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function Yt(){if(typeof window>`u`||!Se||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(Jt);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}F(),F(),F();var Xt;(Xt=P).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??(Xt.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Zt=new Proxy(P.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,$){return Reflect.get(e,t,$)}});function Qt(e,t){L.timelineLayersState[t.id]=!1,Zt.push({...e,descriptorId:t.id,appRecord:tt(t.app)})}var $t;($t=P).__VUE_DEVTOOLS_KIT_INSPECTOR__??($t.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var en=new Proxy(P.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,$){return Reflect.get(e,t,$)}}),tn=Ae(()=>{Qn.hooks.callHook(`sendInspectorToClient`,rn())});function nn(e,t){en.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:tt(t.app)}),tn()}function rn(){return en.filter(e=>e.descriptor.app===I.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let t=e.descriptor,$=e.options;return{id:$.id,label:$.label,logo:t.logo,icon:`custom-ic-baseline-${($?.icon)?.replace(/_/g,`-`)}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function an(e,t){return en.find($=>$.options.id===e&&(t?$.descriptor.app===t:!0))}function on$1(){let e=ze();e.hook(`addInspector`,({inspector:e,plugin:t})=>{nn(e,t.descriptor)});let t=Ae(async({inspectorId:t,plugin:$})=>{if(!t||!$?.descriptor?.app||L.highPerfModeEnabled)return;let ed=an(t,$.descriptor.app),td={app:$.descriptor.app,inspectorId:t,filter:ed?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(td))),t()},`getInspectorTree`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:td.rootNodes})))},`sendInspectorTreeToClient`)},120);e.hook(`sendInspectorTree`,t);let $=Ae(async({inspectorId:t,plugin:$})=>{if(!t||!$?.descriptor?.app||L.highPerfModeEnabled)return;let ed=an(t,$.descriptor.app),td={app:$.descriptor.app,inspectorId:t,nodeId:ed?.selectedNodeId||``,state:null},nd={currentTab:`custom-inspector:${t}`};td.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(td,nd))),t()},`getInspectorState`)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:td.nodeId,state:td.state})))},`sendInspectorStateToClient`)},120);return e.hook(`sendInspectorState`,$),e.hook(`customInspectorSelectNode`,({inspectorId:e,nodeId:t,plugin:$})=>{let ed=an(e,$.descriptor.app);ed&&(ed.selectedNodeId=t)}),e.hook(`timelineLayerAdded`,({options:e,plugin:t})=>{Qt(e,t.descriptor)}),e.hook(`timelineEventAdded`,({options:t,plugin:$})=>{L.highPerfModeEnabled||!L.timelineLayersState?.[$.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},`sendTimelineEventToClient`)}),e.hook(`getComponentInstances`,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let $=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===$).map(([,e])=>e)}),e.hook(`getComponentBounds`,async({instance:e})=>ft(e)),e.hook(`getComponentName`,({instance:e})=>rt(e)),e.hook(`componentHighlight`,({uid:e})=>{let t=I.value.instanceMap.get(e);t&&kt(t)}),e.hook(`componentUnhighlight`,()=>{At()}),e}var sn;(sn=P).__VUE_DEVTOOLS_KIT_APP_RECORDS__??(sn.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var cn;(cn=P).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??(cn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var ln;(ln=P).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??(ln.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=``);var un;(un=P).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??(un.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var dn;(dn=P).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??(dn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var fn=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function pn(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Yt()}}var mn;(mn=P)[fn]??(mn[fn]=pn());var hn=Ae(e=>{Qn.hooks.callHook(`devtoolsStateUpdated`,{state:e})});Ae((e,t)=>{Qn.hooks.callHook(`devtoolsConnectedUpdated`,{state:e,oldState:t})});var gn=new Proxy(P.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,$){return t===`value`?P.__VUE_DEVTOOLS_KIT_APP_RECORDS__:P.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),I=new Proxy(P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,$){return t===`value`?P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`i
56d`?P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function _n(){hn({...P[fn],appRecords:gn.value,activeAppRecordId:I.id,tabs:P.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:P.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function vn(e){P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,_n()}function yn(e){P.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,_n()}var L=new Proxy(P[fn],{get(e,t){return t===`appRecords`?gn:t===`activeAppRecordId`?I.id:t===`tabs`?P.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?P.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:P[fn][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,$){return{...P[fn]},e[t]=$,P[fn][t]=$,!0}});function bn(e={}){let{file:t,host:$,baseUrl:ed=window.location.origin,line:td=0,column:nd=0}=e;if(t){if($===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),$=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${$}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(L.vitePluginDetected){let e=P.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??ed;P.__VUE_INSPECTOR__.openInEditor(e,t,td,nd)}}}F(),F(),F(),F(),F();var xn;(xn=P).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??(xn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Sn=new Proxy(P.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,$){return Reflect.get(e,t,$)}});function Cn(e){let t={};return Object.keys(e).forEach($=>{t[$]=e[$].defaultValue}),t}function wn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Tn(e){return(Sn.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function En(e,t){let $=wn(e);if($){let e=localStorage.getItem($);if(e)return JSON.parse(e)}return Cn(e?(Sn.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function Dn(e,t){let $=wn(e);localStorage.getItem($)||localStorage.setItem($,JSON.stringify(Cn(t)))}function On(e,t,$){let ed=wn(e),td=localStorage.getItem(ed),nd=JSON.parse(td||`{}`),rd={...nd,[t]:$};localStorage.setItem(ed,JSON.stringify(rd)),Qn.hooks.callHookWith(ed=>{ed.forEach(ed=>ed({pluginId:e,key:t,oldValue:nd[t],newValue:$,settings:rd}))},`setPluginSettings`)}F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var kn,R=(kn=P).__VUE_DEVTOOLS_HOOK??(kn.__VUE_DEVTOOLS_HOOK=ze()),An={on:{vueAppInit(e){R.hook(`app:init`,e)},vueAppUnmount(e){R.hook(`app:unmount`,e)},vueAppConnected(e){R.hook(`app:connected`,e)},componentAdded(e){return R.hook(`component:added`,e)},componentEmit(e){return R.hook(`component:emit`,e)},componentUpdated(e){return R.hook(`component:updated`,e)},componentRemoved(e){return R.hook(`component:removed`,e)},setupDevtoolsPlugin(e){R.hook(`devtools-plugin:setup`,e)},perfStart(e){return R.hook(`perf:start`,e)},perfEnd(e){return R.hook(`perf:end`,e)}},setupDevToolsPlugin(e,t){return R.callHook(`devtools-plugin:setup`,e,t)}},jn=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(`visitComponentTree`,e)},inspectComponent:e=>{this.hooks.hook(`inspectComponent`,e)},editComponentState:e=>{this.hooks.hook(`editComponentState`,e)},getInspectorTree:e=>{this.hooks.hook(`getInspectorTree`,e)},getInspectorState:e=>{this.hooks.hook(`getInspectorState`,e)},editInspectorState:e=>{this.hooks.hook(`editInspectorState`,e)},inspectTimelineEvent:e=>{this.hooks.hook(`inspectTimelineEvent`,e)},timelineCleared:e=>{this.hooks.hook(`timelineCleared`,e)},setPluginSettings:e=>{this.hooks.hook(`setPluginSettings`,e)}}}notifyComponentUpdate(e){if(L.highPerfModeEnabled)return;let t=rn().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];R.callHook(`component:updated`,...t)}else R.callHook(`component:updated`);this.hooks.callHook(`sendInspectorState`,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(`addInspector`,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Dn(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){L.highPerfModeEnabled||this.hooks.callHook(`sendInspectorTree`,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){L.highPerfModeEnabled||this.hooks.callHook(`sendInspectorState`,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(`customInspectorSelectNode`,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(`visitComponentTree`,e)}now(){return L.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(`timelineLayerAdded`,{options:e,plugin:this.plugin})}addTimelineEvent(e){L.highPerfModeEnabled||this.hooks.callHook(`timelineEventAdded`,{options:e,plugin:this.plugin})}getSettings(e){return En(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(`getComponentInstances`,{app:e})}getComponentBounds(e){return this.hooks.callHook(`getComponentBounds`,{instance:e})}getComponentName(e){return this.hooks.callHook(`getComponentName`,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(`componentHighlight`,{uid:t})}unhighlightElement(){return this.hooks.callHook(`componentUnhighlight`)}};F(),F(),F(),F();var Mn=`__vue_devtool_undefined__`,Nn=`__vue_devtool_infinity__`,Pn=`__vue_devtool_negative_infinity__`,Fn$1=`__vue_devtool_nan__`;F(),F(),Object.entries({[Mn]:`undefined`,[Fn$1]:`NaN`,[Nn]:`Infinity`,[Pn]:`-Infinity`}).reduce((e,[t,$])=>(e[$]=t,e),{}),F(),F(),F(),F(),F();var In;(In=P).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??(In.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function Rn(e,t){let[$,ed]=e;if($.app!==t)return;let td=new jn({plugin:{setupFn:ed,descriptor:$},ctx:Qn});$.packageName===`vuex`&&td.on.editInspectorState(e=>{td.sendInspectorState(e.inspectorId)}),ed(td)}function zn(e,t){P.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||L.highPerfModeEnabled&&!t?.inspectingComponent||(P.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Sn.forEach(t=>{Rn(t,e)}))}F(),F();var Bn=`__VUE_DEVTOOLS_ROUTER__`,Vn=`__VUE_DEVTOOLS_ROUTER_INFO__`,Hn;(Hn=P).__VUE_DEVTOOLS_ROUTER_INFO__??(Hn.__VUE_DEVTOOLS_ROUTER_INFO__={currentRoute:null,routes:[]});var Un;(Un=P).__VUE_DEVTOOLS_ROUTER__??(Un.__VUE_DEVTOOLS_ROUTER__={}),new Proxy(P[Vn],{get(e,t){return P[Vn][t]}}),new Proxy(P[Bn],{get(e,t){if(t===`value`)return P[Bn]}});function Wn(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Gn(e){return e.map(e=>{let{path:t,name:$,children:ed,meta:td}=e;return ed?.length&&(ed=Gn(ed)),{path:t,name:$,children:ed,meta:td}})}function Kn(e){if(e){let{fullPath:t,hash:$,href:ed,path:td,name:nd,matched:rd,params:id,query:ad}=e;return{fullPath:t,hash:$,href:ed,path:td,name:nd,params:id,query:ad,matched:Gn(rd)}}return e}function qn(e,t){function $(){let t=e.app?.config.globalProperties.$router,$=Kn(t?.currentRoute.value),ed=Gn(Wn(t)),td=console.warn;console.warn=()=>{},P[Vn]={currentRoute:$?Oe($):{},routes:Oe(ed)},P[Bn]=t,console.warn=td}$(),An.on.componentUpdated(Ae(()=>{t.value?.app===e.app&&($(),!L.highPerfModeEnabled&&Qn.hooks.callHook(`routerInfoUpdated`,{state:P[Vn]}))},200))}function Jn(e){return{async getInspectorTree(t){let $={...t,app:I.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e($))),t()},`getInspectorTree`)}),$.rootNodes},async getInspectorState(t){let $={...t,app:I.value.app,state:null},ed={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e($,ed))),t()},`getInspectorState`)}),$.state},editInspectorState(t){let $=new Kt,ed={...t,app:I.value.app,set:(e,ed=t.path,td=t.state.value,nd)=>{$.set(e,ed,td,nd||$.createDefaultSetCallback(t.state))}};e.callHookWith(e=>
56{e.forEach(e=>e(ed))},`editInspectorState`)},sendInspectorState(t){let $=an(t);e.callHook(`sendInspectorState`,{inspectorId:t,plugin:{descriptor:$.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return It()},cancelInspectComponentInspector(){return Ft()},getComponentRenderCode(e){let t=at(I.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return Lt({id:e})},openInEditor:bn,getVueInspector:Vt,toggleApp(e,t){let $=gn.value.find(t=>t.id===e);$&&(yn(e),vn($),qn($,I),tn(),zn($.app,t))},inspectDOM(e){let t=at(I.value,e);if(t){let[e]=pt(t);e&&(P.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,$){On(e,t,$)},getPluginSettings(e){return{options:Tn(e),values:En(e)}}}}F();var Yn;(Yn=P).__VUE_DEVTOOLS_ENV__??(Yn.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Xn=on$1(),Zn;(Zn=P).__VUE_DEVTOOLS_KIT_CONTEXT__??(Zn.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Xn,get state(){return{...L,activeAppRecordId:I.id,activeAppRecord:I.value,appRecords:gn.value}},api:Jn(Xn)});var Qn=P.__VUE_DEVTOOLS_KIT_CONTEXT__;F(),Ye(Ze(),1);var $n;($n=P).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??($n.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),F(),F();function er(e){L.highPerfModeEnabled=e??!L.highPerfModeEnabled,!e&&I.value&&zn(I.value.app)}F(),F(),F();function tr(e){L.devtoolsClientDetected={...L.devtoolsClientDetected,...e},er(!Object.values(L.devtoolsClientDetected).some(Boolean))}var nr;(nr=P).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??(nr.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=tr),F(),F(),F(),F(),F(),F(),F();var rr=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},ir=class{constructor(e){this.generateIdentifier=e,this.kv=new rr}register(e,t){this.kv.getByValue(e)||(t||=this.generateIdentifier(e),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},ar=class extends ir{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t==`object`?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};F(),F();function or(e){if(`values`in Object)return Object.values(e);let t=[];for(let $ in e)e.hasOwnProperty($)&&t.push(e[$]);return t}function sr(e,t){let $=or(e);if(`find`in $)return $.find(t);let ed=$;for(let e=0;e<ed.length;e++){let $=ed[e];if(t($))return $}}function cr(e,t){Object.entries(e).forEach(([e,$])=>t($,e))}function lr(e,t){return e.indexOf(t)!==-1}function ur(e,t){for(let $=0;$<e.length;$++){let ed=e[$];if(t(ed))return ed}}var dr=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return sr(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};F(),F();var fr=e=>Object.prototype.toString.call(e).slice(8,-1),pr=e=>e===void 0,mr=e=>e===null,hr=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,gr=e=>hr(e)&&Object.keys(e).length===0,_r=e=>Array.isArray(e),vr=e=>typeof e==`string`,yr=e=>typeof e==`number`&&!isNaN(e),br=e=>typeof e==`boolean`,xr=e=>e instanceof RegExp,Sr=e=>e instanceof Map,Cr=e=>e instanceof Set,wr=e=>fr(e)===`Symbol`,Tr=e=>e instanceof Date&&!isNaN(e.valueOf()),Er=e=>e instanceof Error,Dr=e=>typeof e==`number`&&isNaN(e),Or=e=>br(e)||mr(e)||pr(e)||yr(e)||vr(e)||wr(e),kr=e=>typeof e==`bigint`,Ar=e=>e===1/0||e===-1/0,jr=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Mr=e=>e instanceof URL;F();var Nr=e=>e.replace(/\./g,`\\.`),Pr=e=>e.map(String).map(Nr).join(`.`),Fr=e=>{let t=[],$=``;for(let ed=0;ed<e.length;ed++){let td=e.charAt(ed);if(td===`\\`&&e.charAt(ed+1)===`.`){$+=`.`,ed++;continue}if(td===`.`){t.push($),$=``;continue}$+=td}let ed=$;return t.push(ed),t};F();function z(e,t,$,ed){return{isApplicable:e,annotation:t,transform:$,untransform:ed}}var Ir=[z(pr,`undefined`,()=>null,()=>void 0),z(kr,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),z(Tr,`Date`,e=>e.toISOString(),e=>new Date(e)),z(Er,`Error`,(e,t)=>{let $={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{$[t]=e[t]}),$},(e,t)=>{let $=Error(e.message);return $.name=e.name,$.stack=e.stack,t.allowedErrorProps.forEach(t=>{$[t]=e[t]}),$}),z(xr,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),$=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,$)}),z(Cr,`set`,e=>[...e.values()],e=>new Set(e)),z(Sr,`map`,e=>[...e.entries()],e=>new Map(e)),z(e=>Dr(e)||Ar(e),`number`,e=>Dr(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),z(e=>
56e===0&&1/e==-1/0,`number`,()=>`-0`,Number),z(Mr,`URL`,e=>e.toString(),e=>new URL(e))];function Lr(e,t,$,ed){return{isApplicable:e,annotation:t,transform:$,untransform:ed}}var Rr=Lr((e,t)=>wr(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,$)=>{let ed=$.symbolRegistry.getValue(t[1]);if(!ed)throw Error(`Trying to deserialize unknown symbol`);return ed}),zr=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Br=Lr(jr,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let $=zr[t[1]];if(!$)throw Error(`Trying to deserialize unknown typed array`);return new $(e)});function Vr(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Hr=Lr(Vr,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let $=t.classRegistry.getAllowedProps(e.constructor);if(!$)return{...e};let ed={};return $.forEach(t=>{ed[t]=e[t]}),ed},(e,t,$)=>{let ed=$.classRegistry.getValue(t[1]);if(!ed)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(ed.prototype),e)}),Ur=Lr((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>[`custom`,t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,$)=>{let ed=$.customTransformerRegistry.findByName(t[1]);if(!ed)throw Error(`Trying to deserialize unknown custom value`);return ed.deserialize(e)}),Wr=[Hr,Rr,Ur,Br],Gr=(e,t)=>{let $=ur(Wr,$=>$.isApplicable(e,t));if($)return{value:$.transform(e,t),type:$.annotation(e,t)};let ed=ur(Ir,$=>$.isApplicable(e,t));if(ed)return{value:ed.transform(e,t),type:ed.annotation}},Kr={};Ir.forEach(e=>{Kr[e.annotation]=e});var qr=(e,t,$)=>{if(_r(t))switch(t[0]){case`symbol`:return Rr.untransform(e,t,$);case`class`:return Hr.untransform(e,t,$);case`custom`:return Ur.untransform(e,t,$);case`typed-array`:return Br.untransform(e,t,$);default:throw Error(`Unknown transformation: `+t)}else{let ed=Kr[t];if(!ed)throw Error(`Unknown transformation: `+t);return ed.untransform(e,$)}};F();var Jr=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let $=e.keys();for(;t>0;)$.next(),t--;return $.next().value};function Yr(e){if(lr(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(lr(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(lr(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Xr=(e,t)=>{Yr(t);for(let $=0;$<t.length;$++){let ed=t[$];if(Cr(e))e=Jr(e,+ed);else if(Sr(e)){let td=+ed,nd=+t[++$]==0?`key`:`value`,rd=Jr(e,td);switch(nd){case`key`:e=rd;break;case`value`:e=e.get(rd);break}}else e=e[ed]}return e},Zr=(e,t,$)=>{if(Yr(t),t.length===0)return $(e);let ed=e;for(let e=0;e<t.length-1;e++){let $=t[e];if(_r(ed)){let e=+$;ed=ed[e]}else if(hr(ed))ed=ed[$];else if(Cr(ed)){let e=+$;ed=Jr(ed,e)}else if(Sr(ed)){if(e===t.length-2)break;let td=+$,nd=+t[++e]==0?`key`:`value`,rd=Jr(ed,td);switch(nd){case`key`:ed=rd;break;case`value`:ed=ed.get(rd);break}}}let td=t[t.length-1];if(_r(ed)?ed[+td]=$(ed[+td]):hr(ed)&&(ed[td]=$(ed[td])),Cr(ed)){let e=Jr(ed,+td),t=$(e);e!==t&&(ed.delete(e),ed.add(t))}if(Sr(ed)){let e=+t[t.length-2],nd=Jr(ed,e);switch(+td==0?`key`:`value`){case`key`:{let e=$(nd);ed.set(e,ed.get(nd)),e!==nd&&ed.delete(nd);break}case`value`:ed.set(nd,$(ed.get(nd)));break}}return e};function Qr(e,t,$=[]){if(!e)return;if(!_r(e)){cr(e,(e,ed)=>Qr(e,t,[...$,...Fr(ed)]));return}let[ed,td]=e;td&&cr(td,(e,ed)=>{Qr(e,t,[...$,...Fr(ed)])}),t(ed,$)}function $r(e,t,$){return Qr(t,(t,ed)=>{e=Zr(e,ed,e=>qr(e,t,$))}),e}function ei(e,t){function $(t,$){let ed=Xr(e,Fr($));t.map(Fr).forEach(t=>{e=Zr(e,t,()=>ed)})}if(_r(t)){let[ed,td]=t;ed.forEach(t=>{e=Zr(e,Fr(t),()=>e)}),td&&cr(td,$)}else cr(t,$);return e}var ti=(e,t)=>hr(e)||_r(e)||Sr(e)||Cr(e)||Vr(e,t);function ni(e,t,$){let ed=$.get(e);ed?ed.push(t):$.set(e,[t])}function ri(e,t){let $={},ed;
56return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[td,...nd]=e;td.length===0?ed=nd.map(Pr):$[Pr(td)]=nd.map(Pr)}),ed?gr($)?[ed]:[ed,$]:gr($)?void 0:$}var ii=(e,t,$,ed,td=[],nd=[],rd=new Map)=>{let id=Or(e);if(!id){ni(e,td,t);let $=rd.get(e);if($)return ed?{transformedValue:null}:$}if(!ti(e,$)){let t=Gr(e,$),ed=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return id||rd.set(e,ed),ed}if(lr(nd,e))return{transformedValue:null};let ad=Gr(e,$),od=ad?.value??e,sd=_r(od)?[]:{},cd={};cr(od,(id,ad)=>{if(ad===`__proto__`||ad===`constructor`||ad===`prototype`)throw Error(`Detected property ${ad}. This is a prototype pollution risk, please remove it from your object.`);let od=ii(id,t,$,ed,[...td,ad],[...nd,e],rd);sd[ad]=od.transformedValue,_r(od.annotations)?cd[ad]=od.annotations:hr(od.annotations)&&cr(od.annotations,(e,t)=>{cd[Nr(ad)+`.`+t]=e})});let ld=gr(cd)?{transformedValue:sd,annotations:ad?[ad.type]:void 0}:{transformedValue:sd,annotations:ad?[ad.type,cd]:cd};return id||rd.set(e,ld),ld};F(),F();function ai(e){return Object.prototype.toString.call(e).slice(8,-1)}function oi(e){return ai(e)===`Array`}function si(e){if(ai(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function ci(e,t,$,ed,td){let nd={}.propertyIsEnumerable.call(ed,t)?`enumerable`:`nonenumerable`;nd===`enumerable`&&(e[t]=$),td&&nd===`nonenumerable`&&Object.defineProperty(e,t,{value:$,enumerable:!1,writable:!0,configurable:!0})}function li(e,t={}){if(oi(e))return e.map(e=>li(e,t));if(!si(e))return e;let $=Object.getOwnPropertyNames(e),ed=Object.getOwnPropertySymbols(e);return[...$,...ed].reduce(($,ed)=>{if(oi(t.props)&&!t.props.includes(ed))return $;let td=e[ed];return ci($,ed,li(td,t),e,t.nonenumerable),$},{})}var B=class{constructor({dedupe:e=!1}={}){this.classRegistry=new ar,this.symbolRegistry=new ir(e=>e.description??``),this.customTransformerRegistry=new dr,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,$=ii(e,t,this,this.dedupe),ed={json:$.transformedValue};$.annotations&&(ed.meta={...ed.meta,values:$.annotations});let td=ri(t,this.dedupe);return td&&(ed.meta={...ed.meta,referentialEqualities:td}),ed}deserialize(e){let{json:t,meta:$}=e,ed=li(t);return $?.values&&(ed=$r(ed,$.values,this)),$?.referentialEqualities&&(ed=ei(ed,$.referentialEqualities)),ed}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};B.defaultInstance=new B,B.serialize=B.defaultInstance.serialize.bind(B.defaultInstance),B.deserialize=B.defaultInstance.deserialize.bind(B.defaultInstance),B.stringify=B.defaultInstance.stringify.bind(B.defaultInstance),B.parse=B.defaultInstance.parse.bind(B.defaultInstance),B.registerClass=B.defaultInstance.registerClass.bind(B.defaultInstance),B.registerSymbol=B.defaultInstance.registerSymbol.bind(B.defaultInstance),B.registerCustom=B.defaultInstance.registerCustom.bind(B.defaultInstance),B.allowErrorProps=B.defaultInstance.allowErrorProps.bind(B.defaultInstance),B.serialize,B.deserialize,B.stringify,B.parse,B.registerClass,B.registerCustom,B.registerSymbol,B.allowErrorProps,F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F(),F();var ui;(ui=P).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??(ui.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var di;(di=P).__VUE_DEVTOOLS_KIT_RPC_CLIENT__??(di.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var fi;(fi=P).__VUE_DEVTOOLS_KIT_RPC_SERVER__??(fi.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var pi;(pi=P).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??(pi.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var mi;(mi=P).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??(mi.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var hi;(hi=P).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??(hi.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),F(),F(),F(),F(),F(),F(),F();var gi=typeof window<`u`,_i,vi=e=>_i=e,yi=Symbol();function bi(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var V;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(V||={});var xi=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Si(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Ci(e,t,$){let ed=new XMLHttpRequest;ed.open(`GET`,e),ed.responseType=`blob`,ed.onload=function(){Oi(ed.response,t,$)},ed.onerror=function(){console.error(`could not download file`)},ed.send()}function wi(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Ti(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Ei=typeof navigator==`object`?navigator:{userAgent:``}
56,Di=/Macintosh/.test(Ei.userAgent)&&/AppleWebKit/.test(Ei.userAgent)&&!/Safari/.test(Ei.userAgent),Oi=gi?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Di?ki:`msSaveOrOpenBlob`in Ei?Ai:ji:()=>{};function ki(e,t=`download`,$){let ed=document.createElement(`a`);ed.download=t,ed.rel=`noopener`,typeof e==`string`?(ed.href=e,ed.origin===location.origin?Ti(ed):wi(ed.href)?Ci(e,t,$):(ed.target=`_blank`,Ti(ed))):(ed.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(ed.href)},4e4),setTimeout(function(){Ti(ed)},0))}function Ai(e,t=`download`,$){if(typeof e==`string`)if(wi(e))Ci(e,t,$);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Ti(t)})}else navigator.msSaveOrOpenBlob(Si(e,$),t)}function ji(e,t,$,ed){if(ed||=open(``,`_blank`),ed&&(ed.document.title=ed.document.body.innerText=`downloading...`),typeof e==`string`)return Ci(e,t,$);let td=e.type===`application/octet-stream`,nd=/constructor/i.test(String(xi.HTMLElement))||`safari`in xi,rd=/CriOS\/[\d]+/.test(navigator.userAgent);if((rd||td&&nd||Di)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw ed=null,Error(`Wrong reader.result type`);e=rd?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),ed?ed.location.href=e:location.assign(e),ed=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);ed?ed.location.assign(t):location.href=t,ed=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Zi}=Object;function aa(){let e=effectScope(!0),t=e.run(()=>ref({})),$=[],ed=[],td=markRaw({install(e){vi(td),td._a=e,e.provide(yi,td),e.config.globalProperties.$pinia=td,ed.forEach(e=>$.push(e)),ed=[]},use(e){return this._a?$.push(e):ed.push(e),this},_p:$,_a:null,_e:e,_s:new Map,state:t});return td}var sa=()=>{};function ca(e,t,$,ed=sa){e.add(t);let td=()=>{e.delete(t)&&ed()};return!$&&getCurrentScope()&&onScopeDispose(td),td}function la(e,...t){e.forEach(e=>{e(...t)})}var ua=e=>e(),da=Symbol(),fa=Symbol();function pa(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,$)=>e.set($,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let $ in t){if(!t.hasOwnProperty($))continue;let ed=t[$],td=e[$];bi(td)&&bi(ed)&&e.hasOwnProperty($)&&!isRef(ed)&&!isReactive(ed)?e[$]=pa(td,ed):e[$]=ed}return e}var ma=Symbol();function ha(e){return!bi(e)||!Object.prototype.hasOwnProperty.call(e,ma)}var{assign:G}=Object;function ga$1(e){return!!(isRef(e)&&e.effect)}function _a(e,t,$,ed){let{state:td,actions:nd,getters:rd}=t,id=$.state.value[e],ad;function od(){return!id&&($.state.value[e]=td?td():{}),G(toRefs($.state.value[e]),nd,Object.keys(rd||{}).reduce((t,ed)=>(t[ed]=markRaw(computed(()=>{vi($);let t=$._s.get(e);return rd[ed].call(t,t)})),t),{}))}return ad=va(e,od,t,$,ed,!0),ad}function va(e,t,$={},ed,td,nd){let rd,id=G({actions:{}},$),ad={deep:!0},od,sd,cd=new Set,ld=new Set,ud,dd=ed.state.value[e];!nd&&!dd&&(ed.state.value[e]={}),ref({});let fd;function pd(t){let $;od=sd=!1,typeof t==`function`?(t(ed.state.value[e]),$={type:V.patchFunction,storeId:e,events:void 0}):(pa(ed.state.value[e],t),$={type:V.patchObject,payload:t,storeId:e,events:void 0});let td=fd=Symbol();nextTick$1().then(()=>{fd===td&&(od=!0)}),sd=!0,la(cd,$,ed.state.value[e])}let md=nd?function(){let{state:e}=$,t=e?e():{};this.$patch(e=>{G(e,t)})}:sa;function hd(){rd.stop(),cd.clear(),ld.clear(),ed._s.delete(e)}let gd=(t,$=``)=>{if(da in t)return t[fa]=$,t;let td=function(){vi(ed);let $=Array.from(arguments),nd=new Set,rd=new Set;function id(e){nd.add(e)}function ad(e){rd.add(e)}la(ld,{args:$,name:td[fa],store:_d,after:id,onError:ad});let od;try{od=t.apply(this&&this.$id===e?this:_d,$)}catch(e){throw la(rd,e),e}return od instanceof Promise?od.then(e=>(la(nd,e),e)).catch(e=>(la(rd,e),Promise.reject(e))):(la(nd,od),od)};return td[da]=!0,td[fa]=$,td},_d=reactive({_p:ed,$id:e,$onAction:ca.bind(null,ld),$patch:pd,$reset:md,$subscribe(t,$={}){let td=ca(cd,t,$.detached,()=>nd()),nd=rd.run(()=>watch(()=>ed.state.value[e],ed=>{($.flush===`sync`?sd:od)&&t({storeId:e,type:V.direct,events:void 0},ed)},G({},ad,$)));return td},$dispose:hd});ed._s.set(e,_d);let vd=(ed._a&&ed._a.runWithContext||ua)(()=>ed._e.run(()=>(rd=effectScope()).run(()=>t({action:gd}))));for(let t in vd){let $=vd[t];
56isRef($)&&!ga$1($)||isReactive($)?nd||(dd&&ha($)&&(isRef($)?$.value=dd[t]:pa($,dd[t])),ed.state.value[e][t]=$):typeof $==`function`&&(vd[t]=gd($,t),id.actions[t]=$)}return G(_d,vd),G(toRaw(_d),vd),Object.defineProperty(_d,`$state`,{get:()=>ed.state.value[e],set:e=>{pd(t=>{G(t,e)})}}),ed._p.forEach(e=>{G(_d,rd.run(()=>e({store:_d,app:ed._a,pinia:ed,options:id})))}),dd&&nd&&$.hydrate&&$.hydrate(_d.$state,dd),od=!0,sd=!0,_d}function ya(e,t,$){let ed,td=typeof t==`function`;ed=td?$:t;function nd($,nd){let rd=hasInjectionContext();return $||=rd?inject(yi,null):null,$&&vi($),$=_i,$._s.has(e)||(td?va(e,t,ed,$):_a(e,ed,$)),$._s.get(e)}return nd.$id=e,nd}var ba=Symbol(`lmpg-configurator-bridge`),xa=`lmpg-configurator`,K={READY:`${xa}:ready`,CONFIG_CHANGE:`${xa}:config-change`,SELECTION_SET:`${xa}:selection-set`,RESET:`${xa}:reset`,FILTER_SET:`${xa}:filter-set`};function Sa(e={}){let{productId:t=null,apiUrl:$=null,project:ed=null,lang:td=`en`,region:nd=null,unit:rd=null,initialSelection:id=null,displayOptions:ad={},filters:od={},icons:sd={},labels:cd={},tooltips:ld={},spectypeTooltips:ud={},colors:dd={},headers:fd={},transform:pd=null,apiVss:md=null,isVss:hd=!1,filterLabels:gd={},onReady:_d=null,onConfigChange:vd=null,onReset:yd=null,onFilterChange:bd=null}=e,xd={productId:t,apiUrl:$,project:ed,lang:td,region:nd,unit:rd,initialSelection:id,displayOptions:{code:!0,reset:!0,notes:!0,filters:!0,...ad},filters:{darksky:!1,quickship:!1,...od},icons:{darksky:null,quickship:null,...sd},labels:{darksky:`DarkSky`,quickship:`Quickship`,...cd},filterLabels:{darksky:null,quickship:null,...gd},colors:{darksky:null,quickship:null,...dd},tooltips:{darksky:{title:null,description:null},quickship:{title:null,description:null},...ld},spectypeTooltips:{...ud},headers:fd,transform:pd,apiVss:md,isVss:!!hd},Sd={[K.SELECTION_SET]:new Set,[K.RESET]:new Set,[K.FILTER_SET]:new Set},Cd=(e,t)=>{typeof document>`u`||document.dispatchEvent(new CustomEvent(e,{detail:t}))},wd=(e,t)=>{let $=Sd[e];$&&$.forEach(e=>e(t))},Td=e=>wd(e.type,e.detail);return typeof document<`u`&&(document.addEventListener(K.SELECTION_SET,Td),document.addEventListener(K.RESET,Td),document.addEventListener(K.FILTER_SET,Td)),{config:xd,emitReady(e={}){let t={source:xa,...e};_d?.(t),Cd(K.READY,t)},emitConfigChange(e={}){let t={source:xa,...e};vd?.(t),Cd(K.CONFIG_CHANGE,t)},emitReset(){yd?.()},emitFilterChange(e){bd?.(e)},handleEvent(e,t){return Sd[e]||(Sd[e]=new Set),Sd[e].add(t),()=>Sd[e].delete(t)},setSelection(e=``){wd(K.SELECTION_SET,e)},reset(){wd(K.RESET)},setFilters(e={}){wd(K.FILTER_SET,e)},destroy(){typeof document<`u`&&(document.removeEventListener(K.SELECTION_SET,Td),document.removeEventListener(K.RESET,Td),document.removeEventListener(K.FILTER_SET,Td)),Object.values(Sd).forEach(e=>e.clear())}}}function Ca(){let e=inject(ba,null);if(!e)throw Error(`[configurator-app] useConfiguratorBridge() must be called within a mounted configurator app`);return e}var wa=typeof window<`u`?window.location.origin:`http://localhost`;function Ta(e){try{return new URL(e,wa).searchParams.get(`id`)||null}catch{return null}}function Ea(e,{productId:t,selection:$,lang:ed,region:td,unit:nd}){let rd=new URL(e,wa),id=rd.searchParams;return id.set(`id`,String(t)),id.set(`selection`,$??``),ed&&id.set(`lang`,ed),td&&id.set(`region`,td),nd&&id.set(`unit`,nd),id.set(`cache`,String(Date.now())),rd.toString()}var Da=ya(`configurator`,()=>{let e=ref(!1),t=ref(!0),$=ref(null),ed=ref(!1),td=ref(null),nd=ref(``),rd=ref(`en`),id=ref(!1),ad=ref(!1),od=ref(0),sd=computed(()=>td.value?.title??``),cd=computed(()=>td.value?.family_title??``),ld=computed(()=>td.value?.code??``),ud=computed(()=>td.value?.selected_string??``),dd=computed(()=>td.value?.selection_encoded??``),fd=computed(()=>td.value?.configurator??[]),pd=computed(()=>td.value?.notes??[]),md=computed(()=>td.value?.fully_configured??!1),hd=computed(()=>td.value?.is_quickship??!1),gd=computed(()=>td.value?.is_darksky??!1),_d=computed(()=>td.value?.is_selection_quickship??!1),vd=computed(()=>td.value?.is_selection_darksky??!1),yd=computed(()=>td.value?.is_fully_quickship??!1),bd=computed(()=>td.value?.is_fully_darksky??!1),xd=computed(()=>td.value?.has_unresolved_dependencies??!1),Sd=computed(()=>
56fd.value.length===0),Cd=computed(()=>fd.value.some(e=>!e.is_fixed&&e.has_selected));function wd(e,t){return(td.value?.configurator??[]).map($=>{if($.is_free_value)return($.id===e?t:$.free_value)??``;let ed=$.values.filter(e=>e.selected).map(e=>e.code);return $.id===e&&(ed.includes(t)?ed=ed.filter(e=>e!==t):$.is_multiple?($.choice_limit>0&&ed.length>=$.choice_limit&&ed.shift(),ed.push(t)):ed=[t]),ed.join(`|`)}).join(`;`)}function Td({darksky:e,quickship:t}={}){e!==void 0&&(ad.value=!!e),t!==void 0&&(id.value=!!t)}async function Ed({apiUrl:rd,productId:id,project:ad,lang:od,region:sd,unit:cd,headers:ld={},transform:ud=null,selection:dd=``,forcedRefetch:fd=!1}={}){let pd=id!=null&&id!==``?String(id):Ta(rd);if(ed.value=!!(rd&&pd),!ed.value)return t.value=!1,null;e.value=!0,$.value=null;try{let e=Ea(rd,{productId:pd,selection:dd,lang:od,region:sd,unit:cd}),t={Pragma:`no-cache`,...ld};ad&&(t.Project=ad);let $=await fetch(e,{headers:t});if(!$.ok)throw Error(`Configurator API responded ${$.status}`);let ed=(await $.json())?.data??null;if(ed&&typeof ud==`function`){let e=ed.selection_encoded;if(ed=ud(ed)??ed,!fd&&ed.selection_encoded&&ed.selection_encoded!==e)return await Ed({apiUrl:rd,productId:id,project:ad,lang:od,region:sd,unit:cd,headers:ld,transform:ud,selection:ed.selection_encoded,forcedRefetch:!0})}return td.value=ed,nd.value=ed?.selection_encoded??dd??``,ed}catch(e){return $.value=e,null}finally{e.value=!1,t.value=!1}}
56async function Dd({apiVss:ed,project:rd,id,input:ad,headers:od={}}={}){if(!ed)return null;e.value=!0,$.value=null;try{let e={"Content-Type":`application/json; charset=utf-8`,Pragma:`no-cache`,...od};rd&&(e.Project=rd);let t=await fetch(ed,{method:`POST`,headers:e,body:JSON.stringify({id,input:ad})});if(!t.ok)throw Error(`Configurator VSS API responded ${t.status}`);return td.value=(await t.json())?.data??null,nd.value=td.value?.selection_encoded??nd.value,td.value}catch(e){return $.value=e,null}finally{e.value=!1,t.value=!1}}function Od(){od.value++}return{isLoading:e,isInitialLoad:t,isConfigured:ed,error:$,result:td,selection:nd,lang:rd,isFilterByQuickship:id,isFilterByDarksky:ad,resetConfiguratorCount:od,productTitle:sd,familyTitle:cd,productCode:ld,selectedString:ud,selectionEncoded:dd,specTypes:fd,notes:pd,isFullyConfigured:md,isProductQuickship:hd,isProductDarksky:gd,isSelectionQuickship:_d,isSelectionDarksky:vd,isFullyQuickship:yd,isFullyDarksky:bd,hasUnresolvedDependencies:xd,isEmpty:Sd,hasSelection:Cd,setFilters:Td,fetchConfiguration:Ed,fetchVssConfiguration:Dd,buildSelection:wd,resetConfigurator:Od}}),Oa={en:{dependants:`This value is a dependency of`,dependencies:`This value has dependencies`,show_more:`Show More`,reset:`Reset`,notes:`Notes`,filterBy:`Filter By {label}`,darkskyTooltipTitle:`Filter by DarkSky not available`,darkskyTooltipDesc:`One or more selected values are not DarkSky Approved, or a combination of values is not DarkSky Approved.`,quickshipTooltipTitle:`Filter by {label} not available`,quickshipTooltipDesc:`One or more selected values are not {label}. You need to deselect these values.`,hasUnresolvedDependencies:`Your product has unresolved dependencies`,darkskyCompliant:`Your product is DarkSky Approved`,darkskyWarning:`Your product is DarkSky Approved but the DarkSky option is not selected`,darkskyNotCompliant:`Your product is not DarkSky Approved`,quickshipCompliant:`Your product is eligible for the {label} program`,quickshipWarning:`Your product is eligible for the {label} program, but the {label} option is not selected`,quickshipNotCompliant:`Your product is not eligible for the {label} program`,loading:`Loading configurationâ¦`,error:`This product configurator is not currently available. Please try again later.`},fr:{dependants:`Cette valeur est une dépendance de`,dependencies:`Cette valeur a des dépendances`,show_more:`Montrer plus`,reset:`Réinitialiser`,notes:`Notes`,filterBy:`Filtrer par {label}`,darkskyTooltipTitle:`Filtrer par DarkSky non disponible`,darkskyTooltipDesc:`Une ou plusieurs valeurs sélectionnées ne sont pas certifiées DarkSky, ou une combinaison de valeurs nâest pas certifiée DarkSky.`,quickshipTooltipTitle:`Filtre par {label} non disponible`,quickshipTooltipDesc:`Une ou plusieurs valeurs sélectionnées ne sont pas {label}. Veuillez désélectionner ces valeurs.`,hasUnresolvedDependencies:`Votre produit présente des dépendances non résolues`,darkskyCompliant:`Votre produit est certifié DarkSky`,darkskyWarning:`Votre produit est certifié DarkSky, mais lâoption DarkSky nâest pas sélectionnée`,darkskyNotCompliant:`Votre produit nâest pas certifié DarkSky`,quickshipCompliant:`Votre produit est éligible au programme {label}`,quickshipWarning:`Votre produit est éligible au programme {label}, mais lâoption {label} nâest pas sélectionnée`,quickshipNotCompliant:`Votre produit nâest pas éligible au programme {label}`,loading:`Chargement de la configurationâ¦`,error:`Le configurateur de ce produit nâest pas disponible pour le moment. Veuillez réessayer plus tard.`}};function ka(e,t,$={}){let ed=Oa[Oa[t]?t:`en`][e]??Oa.en[e]??e;return Object.entries($).reduce((e,[t,$])=>e.replaceAll(`{${t}}`,$),ed)}function Aa(){let e=Da();return{t:(t,$)=>ka(t,e.lang,$)}}var ja=(e,t)=>{let $=e.__vccOpts||e;for(let[e,ed]of t)$[e]=ed;return $},Ma=[`innerHTML`],Na=ja({__name:`Tooltip`,props:{content:{type:String,default:null}},setup(e){let t=e,$=ref(!1),ed=ref(!1),td=ref(null);async function nd(){t.content&&(ed.value=!1,$.value=!0,await nextTick$1(),td.value&&(ed.value=td.value.getBoundingClientRect().right>window.innerWidth))}function rd(){$.value=!1}return(t,id)=>(openBlock(),createElementBlock(`span`,{class:`lmpg-tooltip`,onMouseenter:nd,onMouseleave:rd},[renderSlot(t.$slots,`default`,{},void 0,!0),e.content&&$.value?(openBlock(),createElementBlock(`span`,{key:0,ref_key:`contentEl`,ref:td,class:normalizeClass([`lmpg-tooltip__content`,{"is-right":ed.value}]),innerHTML:e.content},null,10,Ma)):createCommentVNode(``,!0)],32))}},[[`__scopeId`,`data-v-b3735ae6`]]),Pa=[`title`],Fa=ja({__name:`ComplianceBadge`,props:{type:{type:String,default:`quickship`}},setup(e){let t=e,$=Ca(),ed=computed(()=>$.config.labels[t.type]);return(t,$)=>(openBlock(),createElementBlock(`span`,{class:normalizeClass([`compliance-badge`,`is-${e.type}`]),title:ed.value},null,10,Pa))}},[[`__scopeId`,`data-v-2a99d90f`]]),Ia={__name:`StateTags`,props:{states:{type:Array,default:()=>[]}},setup(e){function t(e){let t={};return e.text_color&&(t.color=e.text_color),e.custom_color&&(t.backgroundColor=e.custom_color),t}return($,ed)=>(openBlock(!0),createElementBlock(Fragment,null,renderList(e.states,(e,$)=>(openBlock(),createElementBlock(`span`,{key:$,class:`state-tag`,style:normalizeStyle(t(e))},toDisplayString(e.title),5))),128))}};function La(e,t={}){return typeof e==`string`?e.split(` `).filter(e=>t[e]).map(e=>`${e}. ${t[e].replace(/<\/?[^>]+(>|$)/g,``)}`).join(`<hr>`):``}var Ra=[`disabled`,`aria-pressed`],za={class:`spec-value__label`},Ba={class:`spec-value__note`},Va={key:4,class:`spec-value__check`},Ha={class:`material-symbols`},Ua={key:5,class:`spec-value__remove`},Wa=ja({__name:`SpecValue`,props:{value:{type:Object,required:!0},notes:{type:Object,default:()=>({})},isMultiple:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},isLocked:{type:Boolean,default:!1},splitTitle:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:t}){let $=e,ed=t,td=Da(),{t:nd}=Aa(),rd=computed(()=>!!$.value.selected),id=computed(()=>!!$.value.is_readonly),ad=computed(()=>rd.value&&$.removable&&!$.isMultiple&&!id.value),od=computed(()=>!!(!$.value.available||td.isFilterByDarksky&&td.isProductDarksky&&!$.value.is_darksky||td.isFilterByQuickship&&td.isProductQuickship&&!$.value.is_quickship
56)),sd=computed(()=>!!$.value.is_darksky&&td.isProductDarksky),cd=computed(()=>!!$.value.is_quickship&&td.isProductQuickship),ld=computed(()=>$.value.code?`${$.value.code} - `:``),ud=computed(()=>$.splitTitle?$.value.title.split(` - `).pop():$.value.title),dd=computed(()=>La($.value.note_indice,$.notes)),fd=computed(()=>{let e=[],t=$.value.dependants??[],ed=$.value.dependencies??[];return t.length&&e.push(pd(nd(`dependants`),t.map(e=>`${e.type} - ${e.value}`))),ed.length&&e.push(pd(nd(`dependencies`),ed.map(e=>`${e.type} - ${e.values.join(`, `)}`))),e});function pd(e,t){return`<strong>${e}:</strong><ul>${t.map(e=>`<li>${e}</li>`).join(``)}</ul>`}function md(){od.value||ed(`select`)}return(t,$)=>(openBlock(),createElementBlock(`button`,{type:`button`,class:normalizeClass([`spec-value`,{"is-selected":rd.value,"is-unavailable":od.value,"is-warning":fd.value.length,"is-multiple":e.isMultiple,"is-removable":ad.value,"is-readonly":id.value,"is-last":e.isLast}]),disabled:od.value,"aria-pressed":rd.value,onClick:md},[sd.value?(openBlock(),createBlock(Fa,{key:0,type:`darksky`})):cd.value?(openBlock(),createBlock(Fa,{key:1,type:`quickship`})):createCommentVNode(``,!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(fd.value,(e,t)=>(openBlock(),createBlock(Na,{key:t,content:e,class:`spec-value__warning`},{default:withCtx(()=>[...$[0]||=[createBaseVNode(`i`,{class:`material-symbols is-warning`},`info`,-1)]]),_:1},8,[`content`]))),128)),createBaseVNode(`span`,za,toDisplayString(ld.value)+toDisplayString(ud.value),1),dd.value?(openBlock(),createBlock(Na,{key:2,content:dd.value},{default:withCtx(()=>[createBaseVNode(`sup`,Ba,toDisplayString(e.value.note_indice),1)]),_:1},8,[`content`])):createCommentVNode(``,!0),e.value.states?.length?(openBlock(),createBlock(Ia,{key:3,states:e.value.states},null,8,[`states`])):createCommentVNode(``,!0),e.isMultiple&&!e.isLocked&&!id.value?(openBlock(),createElementBlock(`span`,Va,[createBaseVNode(`i`,Ha,toDisplayString(rd.value?`check_box`:`check_box_outline_blank`),1)])):ad.value?(openBlock(),createElementBlock(`span`,Ua,[...$[1]||=[createBaseVNode(`i`,{class:`material-symbols`},`close`,-1)]])):createCommentVNode(``,!0)],10,Ra))}},[[`__scopeId`,`data-v-7b72ce0d`]]);function Ga(e){return typeof e==`string`||e instanceof String}function Ka(e){var t;return typeof e==`object`&&!!e&&(e==null||(t=e.constructor)==null?void 0:t.name)===`Object`}function qa(e,t){return Array.isArray(t)?qa(e,(e,$)=>t.includes($)):Object.entries(e).reduce((e,$)=>
56{let[ed,td]=$;return t(td,ed)&&(e[ed]=td),e},{})}var q={NONE:`NONE`,LEFT:`LEFT`,FORCE_LEFT:`FORCE_LEFT`,RIGHT:`RIGHT`,FORCE_RIGHT:`FORCE_RIGHT`};function Ja(e){switch(e){case q.LEFT:return q.FORCE_LEFT;case q.RIGHT:return q.FORCE_RIGHT;default:return e}}function Ya(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$1`)}function Xa(e,t){if(t===e)return!0;let $=Array.isArray(t),ed=Array.isArray(e),td;if($&&ed){if(t.length!=e.length)return!1;for(td=0;td<t.length;td++)if(!Xa(t[td],e[td]))return!1;return!0}if($!=ed)return!1;if(t&&e&&typeof t==`object`&&typeof e==`object`){let $=t instanceof Date,ed=e instanceof Date;if($&&ed)return t.getTime()==e.getTime();if($!=ed)return!1;let nd=t instanceof RegExp,rd=e instanceof RegExp;if(nd&&rd)return t.toString()==e.toString();if(nd!=rd)return!1;let id=Object.keys(t);for(td=0;td<id.length;td++)if(!Object.prototype.hasOwnProperty.call(e,id[td]))return!1;for(td=0;td<id.length;td++)if(!Xa(e[id[td]],t[id[td]]))return!1;return!0}else if(t&&e&&typeof t==`function`&&typeof e==`function`)return t.toString()===e.toString();return!1}var Za=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?q.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?q.RIGHT:q.LEFT}};function J(e,t){return new J.InputMask(e,t)}function Qa(e){if(e==null)throw Error(`mask property should be defined`);return e instanceof RegExp?J.MaskedRegExp:Ga(e)?J.MaskedPattern:e===Date?J.MaskedDate:e===Number?J.MaskedNumber:Array.isArray(e)||e===Array?J.MaskedDynamic:J.Masked&&e.prototype instanceof J.Masked?e:J.Masked&&e instanceof J.Masked?e.constructor:e instanceof Function?J.MaskedFunction:(console.warn(`Mask not found for mask`,e),J.Masked)}function $a(e){if(!e)throw Error(`Options in not defined`);if(J.Masked){if(e.prototype instanceof J.Masked)return{mask:e};let{mask:t=void 0,...$}=e instanceof J.Masked?{mask:e}:Ka(e)&&e.mask instanceof J.Masked?e:{};if(t){let e=t.mask;return{...qa(t,(e,t)=>!t.startsWith(`_`)),mask:t.constructor,_mask:e,...$}}}return Ka(e)?{...e}:{mask:e}}function eo(e){if(J.Masked&&e instanceof J.Masked)return e;let t=$a(e),$=Qa(t.mask);if(!$)throw Error(`Masked class is not found for provided mask `+t.mask+`, appropriate module needs to be imported manually before creating mask.`);return t.mask===$&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new $(t)}J.createMask=eo;var to=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};J.MaskElement=to;var no=90,ro=89,io=class extends to{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e;return(e=this.input).getRootNode?.call(e)??document}get isActive(){return this.input===this.rootElement.activeElement}
56bindEvents(e){this.input.addEventListener(`keydown`,this._onKeydown),this.input.addEventListener(`input`,this._onInput),this.input.addEventListener(`beforeinput`,this._onBeforeinput),this.input.addEventListener(`compositionend`,this._onCompositionEnd),this.input.addEventListener(`drop`,e.drop),this.input.addEventListener(`click`,e.click),this.input.addEventListener(`focus`,e.focus),this.input.addEventListener(`blur`,e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===no&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===ro&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===no&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType===`historyUndo`&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType===`historyRedo`&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener(`keydown`,this._onKeydown),this.input.removeEventListener(`input`,this._onInput),this.input.removeEventListener(`beforeinput`,this._onBeforeinput),this.input.removeEventListener(`compositionend`,this._onCompositionEnd),this.input.removeEventListener(`drop`,this._handlers.drop),this.input.removeEventListener(`click`,this._handlers.click),this.input.removeEventListener(`focus`,this._handlers.focus),this.input.removeEventListener(`blur`,this._handlers.commit),this._handlers={}}};J.HTMLMaskElement=io;var ao=class extends io{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart==null?this.value.length:this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}};J.HTMLMaskElement=io;var oo=class extends io{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),$=t&&t.anchorOffset,ed=t&&t.focusOffset;return ed==null||$==null||$<ed?$:ed}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),$=t&&t.anchorOffset,ed=t&&t.focusOffset;return ed==null||$==null||$>ed?$:ed}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let $=this.rootElement.createRange();$.setStart(this.input.firstChild||this.input,e),$.setEnd(this.input.lastChild||this.input,t);let ed=this.rootElement,td=ed.getSelection&&ed.getSelection();td&&(td.removeAllRanges(),td.addRange($))}get value(){return this.input.textContent||``}set value(e){this.input.textContent=e}};J.HTMLContenteditableMaskElement=oo;var so=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};so.MAX_LENGTH=100,J.InputMask=class{constructor(e,t){this.el=e instanceof to?e:e.isContentEditable&&e.tagName!==`INPUT`&&e.tagName!==`TEXTAREA`?new oo(e):new ao(e),this.masked=eo(t),this._listeners={},this._value=``,this._unmaskedValue=``,this._rawInputValue=``,this.history=new so,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){return e==null||this.masked?.maskEquals(e)}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof J.Masked)&&this.masked.constructor===Qa(e)){this.masked.updateOptions({mask:e});return}let t=e instanceof J.Masked?e:eo({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(`auto`))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(`auto`))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(`auto`))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let $=this._listeners[e];
56$&&$.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,$=this.masked.value,ed=this.masked.rawInputValue,td=this.displayValue,nd=this.unmaskedValue!==t||this.value!==$||this._rawInputValue!==ed;this._unmaskedValue=t,this._value=$,this._rawInputValue=ed,this.el.value!==td&&(this.el.value=td),e===`auto`?this.alignCursor():e!=null&&(this.cursorPos=e),nd&&this._fireChangeEvents(),!this._historyChanging&&(nd||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...$}=e,ed=!this.maskEquals(t),td=this.masked.optionsIsChanged($);ed&&(this.mask=t),td&&this.masked.updateOptions($),(ed||td)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent(`accept`,this._inputEvent),this.masked.isComplete&&this._fireEvent(`complete`,this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,q.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let $=this._listeners[e].indexOf(t);return $>=0&&this._listeners[e].splice($,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new Za({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),$=this.masked.rawInputValue,ed=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,td=$===this.masked.rawInputValue?t.removeDirection:q.NONE,nd=this.masked.nearestInputPos(t.startChangePos+ed,td);td!==q.NONE&&(nd=this.masked.nearestInputPos(nd,q.NONE)),this.updateControl(nd),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};var Y=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(e){Object.assign(this,{inserted:``,rawInserted:``,tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}};J.ChangeDetails=Y;var X=class{constructor(e,t,$){e===void 0&&(e=``),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=$}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return``;let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return``;let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}},Z=class e{constructor(t){this._value=``,this._update({...e.DEFAULTS,...t}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=``}get value(){return this._value}
56set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,``),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,$){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new X(this.extractInput(e,t),e)}appendTail(e){return Ga(e)&&(e=new X(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new Y({inserted:e,rawInserted:e})):new Y}_appendChar(e,t,$){t===void 0&&(t={});let ed=this.state,td;if([e,td]=this.doPrepareChar(e,t),e&&(td=td.aggregate(this._appendCharRaw(e,t)),!td.rawInserted&&this.autofix===`pad`)){let $=this.state;this.state=ed;let nd=this.pad(t),rd=this._appendCharRaw(e,t);nd=nd.aggregate(rd),rd.rawInserted||nd.equals(td)?td=nd:this.state=$}if(td.inserted){let e,nd=this.doValidate(t)!==!1;if(nd&&$!=null){let t=this.state;if(this.overwrite===!0){e=$.state;for(let e=0;e<td.rawInserted.length;++e)$.unshift(this.displayValue.length-td.tailShift)}let ed=this.appendTail($);if(nd=ed.rawInserted.length===$.toString().length,!(nd&&ed.inserted)&&this.overwrite===`shift`){this.state=t,e=$.state;for(let e=0;e<td.rawInserted.length;++e)$.shift();ed=this.appendTail($),nd=ed.rawInserted.length===$.toString().length}nd&&ed.inserted&&(this.state=t)}nd||(td=new Y,this.state=ed,$&&e&&($.state=e))}return td}_appendPlaceholder(){return new Y}_appendEager(){return new Y}append(e,t,$){if(!Ga(e))throw Error(`value should be string`);let ed=Ga($)?new X(String($)):$;t!=null&&t.tail&&(t._beforeTailState=this.state);let td;[e,td]=this.doPrepare(e,t);for(let $=0;$<e.length;++$){let nd=this._appendChar(e[$],t,ed);if(!nd.rawInserted&&!this.doSkipInvalid(e[$],t,ed))break;td.aggregate(nd)}return(this.eager===!0||this.eager===`append`)&&t!=null&&t.input&&e&&td.aggregate(this._appendEager()),ed!=null&&(td.tailShift+=this.appendTail(ed).tailShift),td}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new Y}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,$=this.value,ed=e();return this.rawInputValue=t,this.value&&this.value!==$&&$.indexOf(this.value)===0&&(this.append($.slice(this.displayValue.length),{},``),this.doCommit()),delete this._refreshing,ed}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,$=e(this);return this.state=t,delete this._isolated,$}doSkipInvalid(e,t,$){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),Y.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),Y.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,$,ed,td){$===void 0&&($=``),ed===void 0&&(ed=q.NONE),td===void 0&&(td={input:!0});let nd=e+t,rd=this.extractTail(nd),id=this.eager===!0||this.eager===`remove`,ad;id&&(ed=Ja(ed),ad=this.extractInput(0,nd,{raw:!0}));let od=e,sd=new Y;if(ed!==q.NONE&&(od=this.nearestInputPos(e,t>1&&e!==0&&!id?q.NONE:ed),sd.tailShift=od-e),sd.aggregate(this.remove(od)),id&&ed!==q.NONE&&ad===this.rawInputValue)if(ed===q.FORCE_LEFT){let e;for(;ad===this.rawInputValue&&(e=this.displayValue.length);)sd.aggregate(new Y({tailShift:-1})).aggregate(this.remove(e-1))}else ed===q.FORCE_RIGHT&&rd.unshift();return sd.aggregate(this.append($,td,rd))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!Xa(this,e)}
56typedValueEquals(t){let $=this.typedValue;return t===$||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes($)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(e){return new Y}};Z.DEFAULTS={skipInvalid:!0},Z.EMPTY_VALUES=[void 0,null,``],J.Masked=Z;var co=class e{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join(``)}extend(t){if(!String(t))return;t=Ga(t)?new X(String(t)):t;let $=this.chunks[this.chunks.length-1],ed=$&&($.stop===t.stop||t.stop==null)&&t.from===$.from+$.toString().length;if(t instanceof X)ed?$.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let e;for(;t.chunks.length&&t.chunks[0].stop==null;)e=t.chunks.shift(),e.from+=t.from,this.extend(e)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof J.MaskedPattern))return new X(this.toString()).appendTo(t);let $=new Y;for(let ed=0;ed<this.chunks.length;++ed){let td=this.chunks[ed],nd=t._mapPosToBlock(t.displayValue.length),rd=td.stop,id;if(rd!=null&&(!nd||nd.index<=rd)&&((td instanceof e||t._stops.indexOf(rd)>=0)&&$.aggregate(t._appendPlaceholder(rd)),id=td instanceof e&&t._blocks[rd]),id){let e=id.appendTail(td);$.aggregate(e);let ed=td.toString().slice(e.rawInserted.length);ed&&$.aggregate(t.append(ed,{tail:!0}))}else $.aggregate(t.append(td.toString(),{tail:!0}))}return $}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let{chunks:$,...ed}=t;Object.assign(this,ed),this.chunks=$.map(t=>{let $=`chunks`in t?new e:new X;return $.state=t,$})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return``;let t=e==null?e:e-this.from,$=0;for(;$<this.chunks.length;){let e=this.chunks[$],ed=e.unshift(t);if(e.toString()){if(!ed)break;++$}else this.chunks.splice($,1);if(ed)return ed}return``}shift(){if(!this.chunks.length)return``;let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],$=t.shift();if(t.toString()){if(!$)break;--e}else this.chunks.splice(e,1);if($)return $}return``}},lo=class{constructor(e,t){this.masked=e,this._log=[];let{offset:$,index:ed}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=$,this.index=ed,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(t=this.block)?.displayValue.length||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,q.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,q.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,q.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,q.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,q.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,q.NONE),!0})}},uo=class{constructor(e){Object.assign(this,e),this._value=``,this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:``}get rawInputValue(){return this._isRawInput?this.value:``}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=``}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new Y}nearestInputPos(e,t){t===void 0&&(t=q.NONE);let $=this._value.length;switch(t){case q.LEFT:case q.FORCE_LEFT:return 0;case q.NONE:case q.RIGHT:case q.FORCE_RIGHT:default:return $}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,$){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),$===void 0&&($={}),$.raw&&this._isRawInput&&this._value.slice(e,t)||``}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;let $=this.eager===!0||this.eager===`append`,ed=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!$)&&!t.tail,td=new Y({inserted:this.char,rawInserted:ed?this.char:``});return this._value=this.char,this._isRawInput=ed&&(t.raw||t.input),td}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new Y;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new X(``)}appendTail(e){return Ga(e)&&(e=new X(String(e))),e.appendTo(this)}append(e,t,$){let ed=this._appendChar(e[0],t);return $!=null&&(ed.tailShift+=this.appendTail($).tailShift),ed}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}
56pad(e){return this._appendPlaceholder()}},fo=class{constructor(e){let{parent:t,isOptional:$,placeholderChar:ed,displayChar:td,lazy:nd,eager:rd,...id}=e;this.masked=eo(id),Object.assign(this,{parent:t,isOptional:$,placeholderChar:ed,displayChar:td,lazy:nd,eager:rd})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new Y}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:``)}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new Y;let $=this.masked.state,ed=this.masked._appendChar(e,this.currentMaskFlags(t));return ed.inserted&&this.doValidate(t)===!1&&(ed=new Y,this.masked.state=$),!ed.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(ed.inserted=this.placeholderChar),ed.skip=!ed.inserted&&!this.isOptional,this.isFilled=!!ed.inserted,ed}append(e,t,$){return this.masked.append(e,this.currentMaskFlags(t),$)}_appendPlaceholder(){return this.isFilled||this.isOptional?new Y:(this.isFilled=!0,new Y({inserted:this.placeholderChar}))}_appendEager(){return new Y}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,$){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,$)}nearestInputPos(e,t){t===void 0&&(t=q.NONE);let $=this.value.length,ed=Math.min(Math.max(e,0),$);switch(t){case q.LEFT:case q.FORCE_LEFT:return this.isComplete?ed:0;case q.RIGHT:case q.FORCE_RIGHT:return this.isComplete?ed:$;case q.NONE:default:return ed}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||e?._beforeTailState}}pad(e){return new Y}};fo.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
560EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},J.MaskedRegExp=class extends Z{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}};var Q=class e extends Z{constructor(t){super({...e.DEFAULTS,...t,definitions:Object.assign({},fo.DEFAULT_DEFINITIONS,t?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let $=this.mask;if(!$||!t)return;let ed=!1,td=!1;for(let nd=0;nd<$.length;++nd){if(this.blocks){let e=$.slice(nd),t=Object.keys(this.blocks).filter(t=>e.indexOf(t)===0);t.sort((e,t)=>t.length-e.length);let ed=t[0];if(ed){let{expose:e,repeat:t,...$}=$a(this.blocks[ed]),td={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...$,repeat:t,parent:this},rd=t==null?eo(td):new J.RepeatBlock(td);rd&&(this._blocks.push(rd),e&&(this.exposeBlock=rd),this._maskedBlocks[ed]||(this._maskedBlocks[ed]=[]),this._maskedBlocks[ed].push(this._blocks.length-1)),nd+=ed.length-1;continue}}let rd=$[nd],id=rd in t;if(rd===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(rd===`{`||rd===`}`){ed=!ed;continue}if(rd===`[`||rd===`]`){td=!td;continue}if(rd===e.ESCAPE_CHAR){if(++nd,rd=$[nd],!rd)break;id=!1}let ad=id?new fo({isOptional:td,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...$a(t[rd]),parent:this}):new uo({char:rd,eager:this.eager,isUnmasking:ed});this._blocks.push(ad)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}let{_blocks:t,...$}=e;this._blocks.forEach((e,$)=>e.state=t[$]),super.state=$}
56reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,``)}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,``)}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,``)}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){let e=new Y,t=this._mapPosToBlock(this.displayValue.length)?.index;if(t==null)return e;this._blocks[t].isFilled&&++t;for(let $=t;$<this._blocks.length;++$){let t=this._blocks[$]._appendEager();if(!t.inserted)break;e.aggregate(t)}return e}_appendCharRaw(e,t){t===void 0&&(t={});let $=this._mapPosToBlock(this.displayValue.length),ed=new Y;if(!$)return ed;for(let nd=$.index,rd;rd=this._blocks[nd];++nd){var td;let $=rd._appendChar(e,{...t,_beforeTailState:(td=t._beforeTailState)==null||(td=td._blocks)==null?void 0:td[nd]});if(ed.aggregate($),$.consumed)break}return ed}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let $=new co;return e===t||this._forEachBlocksInRange(e,t,(e,t,ed,td)=>{let nd=e.extractTail(ed,td);nd.stop=this._findStopBefore(t),nd.from=this._blockStartPos(t),nd instanceof co&&(nd.blockIndex=t),$.extend(nd)}),$}extractInput(e,t,$){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),$===void 0&&($={}),e===t)return``;let ed=``;return this._forEachBlocksInRange(e,t,(e,t,td,nd)=>{ed+=e.extractInput(td,nd,$)}),ed}_findStopBefore(e){let t;for(let $=0;$<this._stops.length;++$){let ed=this._stops[$];if(ed<=e)t=ed;else break}return t}_appendPlaceholder(e){let t=new Y;if(this.lazy&&e==null)return t;let $=this._mapPosToBlock(this.displayValue.length);if(!$)return t;let ed=$.index,td=e??this._blocks.length;
56return this._blocks.slice(ed,td).forEach($=>{(!$.lazy||e!=null)&&t.aggregate($._appendPlaceholder($._blocks?.length))}),t}_mapPosToBlock(e){let t=``;for(let $=0;$<this._blocks.length;++$){let ed=this._blocks[$],td=t.length;if(t+=ed.displayValue,e<=t.length)return{index:$,offset:e-td}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,$){t===void 0&&(t=this.displayValue.length);let ed=this._mapPosToBlock(e);if(ed){let e=this._mapPosToBlock(t),td=e&&ed.index===e.index,nd=ed.offset,rd=e&&td?e.offset:this._blocks[ed.index].displayValue.length;if($(this._blocks[ed.index],ed.index,nd,rd),e&&!td){for(let t=ed.index+1;t<e.index;++t)$(this._blocks[t],t,0,this._blocks[t].displayValue.length);$(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let $=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,ed,td)=>{$.aggregate(e.remove(ed,td))}),$}nearestInputPos(e,t){if(t===void 0&&(t=q.NONE),!this._blocks.length)return 0;let $=new lo(this,e);if(t===q.NONE)return $.pushRightBeforeInput()||($.popState(),$.pushLeftBeforeInput())?$.pos:this.displayValue.length;if(t===q.LEFT||t===q.FORCE_LEFT){if(t===q.LEFT){if($.pushRightBeforeFilled(),$.ok&&$.pos===e)return e;$.popState()}if($.pushLeftBeforeInput(),$.pushLeftBeforeRequired(),$.pushLeftBeforeFilled(),t===q.LEFT){if($.pushRightBeforeInput(),$.pushRightBeforeRequired(),$.ok&&$.pos<=e||($.popState(),$.ok&&$.pos<=e))return $.pos;$.popState()}return $.ok?$.pos:t===q.FORCE_LEFT?0:($.popState(),$.ok||($.popState(),$.ok)?$.pos:0)}return t===q.RIGHT||t===q.FORCE_RIGHT?($.pushRightBeforeInput(),$.pushRightBeforeRequired(),$.pushRightBeforeFilled()?$.pos:t===q.FORCE_RIGHT?this.displayValue.length:($.popState(),$.ok||($.popState(),$.ok)?$.pos:this.nearestInputPos(e,q.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let $=0;return this._forEachBlocksInRange(e,t,(e,t,ed,td)=>{$+=e.totalInputPositions(ed,td)}),$}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new Y;return this._forEachBlocksInRange(0,this.displayValue.length,$=>t.aggregate($.pad(e))),t}};Q.DEFAULTS={...Z.DEFAULTS,lazy:!0,placeholderChar:`_`},Q.STOP_CHAR="`",Q.ESCAPE_CHAR=`\\`,Q.InputDefinition=fo,Q.FixedDefinition=uo,J.MaskedPattern=Q;var po=class extends Q{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:$=this.from||0,maxLength:ed=this.maxLength||0,autofix:td=this.autofix,...nd}=e;this.to=t,this.from=$,this.maxLength=Math.max(String(t).length,ed),this.autofix=td;let rd=String(this.from).padStart(this.maxLength,`0`),id=String(this.to).padStart(this.maxLength,`0`),ad=0;for(;ad<id.length&&id[ad]===rd[ad];)++ad;nd.mask=id.slice(0,ad).replace(/0/g,`\\0`)+`0`.repeat(this.maxLength-ad),super._update(nd)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t=``,$=``,[,ed,td]=e.match(/^(\D*)(\d*)(\D*)/)||[];return td&&(t=`0`.repeat(ed.length)+td,$=`9`.repeat(ed.length)+td),t=t.padEnd(this.maxLength,`0`),$=$.padEnd(this.maxLength,`9`),[t,$]}doPrepareChar(e,t){t===void 0&&(t={});let $;return[e,$]=super.doPrepareChar(e.replace(/\D/g,``),t),e||($.skip=!this.isComplete),[e,$]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let $=String(this.from).padStart(this.maxLength,`0`),ed=String(this.to).padStart(this.maxLength,`0`),[td,nd]=this.boundaries(this.value+e);return Number(nd)<this.from?super._appendCharRaw($[this.value.length],t):Number(td)>this.to?!t.tail&&this.autofix===`pad`&&this.value.length+1<this.maxLength?super._appendCharRaw($[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(ed[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;let[$,ed]=this.boundaries(t);return this.from<=Number(ed)&&Number($)<=this.to&&super.doValidate(e)}pad(e){let t=new Y;if(this.value.length===this.maxLength)return t;let $=this.value,ed=this.maxLength-this.value.length;if(ed){this.reset();for(let $=0;$<ed;++$)t.aggregate(super._appendCharRaw(`0`,e));
56$.split(``).forEach(e=>this._appendCharRaw(e))}return t}};J.MaskedRange=po;var mo="d{.}`m{.}`Y",ho=class e extends Q{static extractPatternOptions(e){let{mask:t,pattern:$,...ed}=e;return{...ed,mask:Ga(t)?t:$}}constructor(t){super(e.extractPatternOptions({...e.DEFAULTS,...t}))}updateOptions(e){super.updateOptions(e)}_update(t){let{mask:$,pattern:ed,blocks:td,...nd}={...e.DEFAULTS,...t},rd=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(rd.Y.from=t.min.getFullYear()),t.max&&(rd.Y.to=t.max.getFullYear()),t.min&&t.max&&rd.Y.from===rd.Y.to&&(rd.m.from=t.min.getMonth()+1,rd.m.to=t.max.getMonth()+1,rd.m.from===rd.m.to&&(rd.d.from=t.min.getDate(),rd.d.to=t.max.getDate())),Object.assign(rd,this.blocks,td),super._update({...nd,mask:Ga($)?$:ed,blocks:rd})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};ho.GET_DEFAULT_BLOCKS=()=>({d:{mask:po,from:1,to:31,maxLength:2},m:{mask:po,from:1,to:12,maxLength:2},Y:{mask:po,from:1900,to:9999}}),ho.DEFAULTS={...Q.DEFAULTS,mask:Date,pattern:mo,format:(e,t)=>e?[String(e.getDate()).padStart(2,`0`),String(e.getMonth()+1).padStart(2,`0`),e.getFullYear()].join(`.`):``,parse:(e,t)=>{let[$,ed,td]=e.split(`.`).map(Number);return new Date(td,ed-1,$)}},J.MaskedDate=ho;var go=class e extends Z{constructor(t){super({...e.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),`mask`in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...$}=$a(e),ed=eo({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...$});return t&&(this.exposeMask=ed),ed}):[])}_appendCharRaw(e,t){t===void 0&&(t={});let $=this._applyDispatch(e,t);return this.currentMask&&$.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),$}
56_applyDispatch(e,t,$){e===void 0&&(e=``),t===void 0&&(t={}),$===void 0&&($=``);let ed=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,td=this.rawInputValue,nd=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:td,rd=td.slice(nd.length),id=this.currentMask,ad=new Y,od=id?.state;return this.currentMask=this.doDispatch(e,{...t},$),this.currentMask&&(this.currentMask===id?od&&(this.currentMask.state=od):(this.currentMask.reset(),nd&&(this.currentMask.append(nd,{raw:!0}),ad.tailShift=this.currentMask.value.length-ed.length),rd&&(ad.tailShift+=this.currentMask.append(rd,{raw:!0,tail:!0}).tailShift))),ad}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new Y;return e&&t.aggregate(this._applyDispatch(``,{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){return{...e,_beforeTailState:e._beforeTailState?.currentMaskRef===this.currentMask&&e._beforeTailState?.currentMask||e._beforeTailState}}doDispatch(e,t,$){return t===void 0&&(t={}),$===void 0&&($=``),this.dispatch(e,this,t,$)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[$,ed]=super.doPrepare(e,t);if(this.currentMask){let e;[$,e]=super.doPrepare($,this.currentMaskFlags(t)),ed=ed.aggregate(e)}return[$,ed]}doPrepareChar(e,t){t===void 0&&(t={});let[$,ed]=super.doPrepareChar(e,t);if(this.currentMask){let e;[$,e]=super.doPrepareChar($,this.currentMaskFlags(t)),ed=ed.aggregate(e)}return[$,ed]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:``}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:``}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:``}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:``}get isComplete(){return!!this.currentMask?.isComplete}get isFilled(){return!!this.currentMask?.isFilled}remove(e,t){let $=new Y;return this.currentMask&&$.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),$}get state(){return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:this.currentMask?.state}}set state(e){let{compiledMasks:t,currentMaskRef:$,currentMask:ed,...td}=e;t&&this.compiledMasks.forEach((e,$)=>e.state=t[$]),$!=null&&(this.currentMask=$,this.currentMask.state=ed),super.state=td}extractInput(e,t,$){return this.currentMask?this.currentMask.extractInput(e,t,$):``}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,$)=>{if(!e[$])return;let{mask:ed,...td}=e[$];return Xa(t,td)&&t.maskEquals(ed)}):super.maskEquals(e)}typedValueEquals(e){return!!this.currentMask?.typedValueEquals(e)}};go.DEFAULTS={...Z.DEFAULTS,dispatch:(e,t,$,ed)=>
56{if(!t.compiledMasks.length)return;let td=t.rawInputValue,nd=t.compiledMasks.map((nd,rd)=>{let id=t.currentMask===nd,ad=id?nd.displayValue.length:nd.nearestInputPos(nd.displayValue.length,q.FORCE_LEFT);return nd.rawInputValue===td?id||nd.remove(ad):(nd.reset(),nd.append(td,{raw:!0})),nd.append(e,t.currentMaskFlags($)),nd.appendTail(ed),{index:rd,weight:nd.rawInputValue.length,totalInputPositions:nd.totalInputPositions(0,Math.max(ad,nd.nearestInputPos(nd.displayValue.length,q.FORCE_LEFT)))}});return nd.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[nd[0].index]}},J.MaskedDynamic=go;var _o=class e extends Q{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...$}=e;if(t){let e=t.map(e=>e.length),ed=Math.min(...e),td=Math.max(...e)-ed;$.mask=`*`.repeat(ed),td&&($.mask+=`[`+`*`.repeat(td)+`]`),this.enum=t}super._update($)}_appendCharRaw(e,t){t===void 0&&(t={});let $=Math.min(this.nearestInputPos(0,q.FORCE_RIGHT),this.value.length),ed=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,$));if(ed.length){ed.length===1&&this._forEachBlocksInRange(0,this.value.length,(e,$)=>{let td=ed[0][$];$>=this.value.length||td===e.value||(e.reset(),e._appendChar(td,t))});let e=super._appendCharRaw(ed[0][this.value.length],t);return ed.length===1&&ed[0].slice(this.unmaskedValue.length).split(``).forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new Y({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new X(``,e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new Y;let $=Math.min(super.nearestInputPos(0,q.FORCE_RIGHT),this.value.length),ed;for(ed=e;ed>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice($,ed),$)).length>1);--ed);let td=super.remove(ed,t);return td.tailShift+=ed-e,td}get isComplete(){return this.enum.indexOf(this.value)>=0}};_o.DEFAULTS={...Q.DEFAULTS,matchValue:(e,t,$)=>e.indexOf(t,$)===$},J.MaskedEnum=_o,J.MaskedFunction=class extends Z{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};var vo,yo=class e extends Z{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e=`^`+(this.allowNegative?`[+|\\-]?`:``),t=(this.scale?`(`+Ya(this.radix)+`\\d{0,`+this.scale+`})?`:``)+`$`;this._numberRegExp=RegExp(e+`\\d*`+t),this._mapToRadixRegExp=RegExp(`[`+this.mapToRadix.map(Ya).join(``)+`]`,`g`),this._thousandsSeparatorRegExp=new RegExp(Ya(this.thousandsSeparator),`g`)}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,``)}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});let[$,ed]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!$&&(ed.skip=!0),$&&!this.allowPositive&&!this.value&&$!==`-`&&ed.aggregate(this._appendChar(`-`)),[$,ed]}_separatorsCount(e,t){t===void 0&&(t=!1);let $=0;for(let ed=0;ed<e;++ed)this._value.indexOf(this.thousandsSeparator,ed)===ed&&(++$,t&&(e+=this.thousandsSeparator.length));return $}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,$){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,$))}_appendCharRaw(t,$){$===void 0&&($={});let ed=$.tail&&$._beforeTailState?$._beforeTailState._value:this._value,td=this._separatorsCountFromSlice(ed);this._value=this._removeThousandsSeparators(this.value);let nd=this._value;this._value+=t;let rd=this.number,id=!isNaN(rd),ad=!1;if(id){let t;this.min!=null&&this.min<0&&this.number<this.min&&(t=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(t=this.max),t!=null&&(this.autofix?(this._value=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix),ad||=nd===this._value&&!$.tail):id=!1),id&&=!!this._value.match(this._numberRegExp)}let od;id?od=new Y({inserted:this._value.slice(nd.length),rawInserted:ad?``:t,skip:ad}):(this._value=nd,od=new Y),this._value=this._insertThousandsSeparators(this._value);let sd=$.tail&&$._beforeTailState?$._beforeTailState._value:this._value,cd=this._separatorsCountFromSlice(sd);return od.tailShift+=(cd-td)*this.thousandsSeparator.length,od}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,$=this.value.indexOf(this.thousandsSeparator,t);if($<=e)return $}return-1}_adjustRangeWithSeparators(e,t){let $=this._findSeparatorAround(e);$>=0&&(e=$);let ed=this._findSeparatorAround(t);return ed>=0&&(t=ed+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let $=this.value.slice(0,e),ed=this.value.slice(t),td=this._separatorsCount($.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators($+ed)),new Y({tailShift:(this._separatorsCountFromSlice($)-td)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case q.NONE:case q.LEFT:case q.FORCE_LEFT:{let $=this._findSeparatorAround(e-1);if($>=0){let ed=$+this.thousandsSeparator.length;if(e<ed||this.value.length<=ed||t===q.FORCE_LEFT)return $}break}case q.RIGHT:case q.FORCE_RIGHT:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let $=this.value;this.normalizeZeros&&($=this._normalizeZeros($)),this.padFractionalZeros&&this.scale>0&&($=this._padFractionalZeros($)),this._value=$}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,$,ed)=>t+ed),e.length&&!/\d$/.test(t[0])&&(t[0]+=`0`),t.length>1&&(t[1]=t[1].replace(/0*$/,``),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(``),t[1]=t[1].padEnd(this.scale,`0`),t.join(this.radix)}doSkipInvalid(t,$,ed){$===void 0&&($={});let td=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,$,ed)&&!td}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value===``)}};vo=yo,yo.UNMASKED_RADIX=`.`,yo.EMPTY_VALUES=[...Z.EMPTY_VALUES,0],yo.DEFAULTS={...Z.DEFAULTS,mask:Number,radix:`,`,thous
56andsSeparator:``,mapToRadix:[vo.UNMASKED_RADIX],min:-(2**53-1),max:2**53-1,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString(`en-US`,{useGrouping:!1,maximumFractionDigits:20})},J.MaskedNumber=yo;var bo={MASKED:`value`,UNMASKED:`unmaskedValue`,TYPED:`typedValue`};function xo(e,t,$){t===void 0&&(t=bo.MASKED),$===void 0&&($=bo.MASKED);let ed=eo(e);return e=>ed.runIsolated(ed=>(ed[t]=e,ed[$]))}function So(e,t,$,ed){return xo(t,$,ed)(e)}J.PIPE_TYPE=bo,J.createPipe=xo,J.pipe=So,J.RepeatBlock=class extends Q{get repeatFrom(){return(Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)??0}get repeatTo(){return(Array.isArray(this.repeat)?this.repeat[1]:this.repeat)??1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{repeat:t,...$}=$a(e);this._blockOpts=Object.assign({},this._blockOpts,$);let ed=eo(this._blockOpts);this.repeat=t??ed.repeat??this.repeat??1/0,super._update({mask:`m`.repeat(Math.max(this.repeatTo===1/0&&this._blocks?.length||0,this.repeatFrom)),blocks:{m:ed},eager:ed.eager,overwrite:ed.overwrite,skipInvalid:ed.skipInvalid,lazy:ed.lazy,placeholderChar:ed.placeholderChar,displayChar:ed.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(eo(this._blockOpts)),this.mask+=`m`,this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});let $=new Y;for(let id=(ed=(td=this._mapPosToBlock(this.displayValue.length))?.index)??Math.max(this._blocks.length-1,0),ad,od;ad=(nd=this._blocks[id])??(od=!od&&this._allocateBlock(id));++id){var ed,td,nd,rd;let sd=ad._appendChar(e,{...t,_beforeTailState:(rd=t._beforeTailState)==null||(rd=rd._blocks)==null?void 0:rd[id]});if(sd.skip&&od){this._blocks.pop(),this.mask=this.mask.slice(1);break}if($.aggregate(sd),sd.consumed)break}return $}_trimEmptyTail(e,t){e===void 0&&(e=0);let $=Math.max(this._mapPosToBlock(e)?.index||0,this.repeatFrom,0),ed;t!=null&&(ed=this._mapPosToBlock(t)?.index),ed??=this._blocks.length-1;let td=0;for(let e=ed;$<=e&&!this._blocks[e].unmaskedValue;--e,++td);td&&(this._blocks.splice(ed-td+1,td),this.mask=this.mask.slice(td))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let $=super.remove(e,t);return this._trimEmptyTail(e,t),$}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};try{globalThis.IMask=J}catch{}var $$22=se({Vue:()=>vue_runtime_esm_bundler_exports,Vue2:()=>void 0,del:()=>Eo,install:()=>wo,isVue2:()=>!1,isVue3:()=>!0,set:()=>To});le($$22,vue_runtime_esm_bundler_exports);function wo(){}function To(e,t,$){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,$),$):(e[t]=$,$)}function Eo(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}var Do={mask:void 0,prepare:Function,prepareChar:Function,validate:Function,commit:Function,overwrite:{type:Boolean,required:!1,default:void 0},eager:{required:!1,default:void 0,validator:e=>[`append`,`remove`].includes(e)||typeof e==`boolean`},skipInvalid:{type:Boolean,required:!1,default:void 0},placeholderChar:String,displayChar:String,lazy:{type:Boolean,required:!1,default:void 0},definitions:Object,blocks:Object,enum:Array,maxLength:Number,from:Number,to:Number,pattern:String,format:Function,parse:Function,autofix:{required:!1,default:void 0,validator:e=>e===`pad`||typeof e==`boolean`},radix:String,thousandsSeparator:String,mapToRadix:Array,scale:Number,normalizeZeros:{type:Boolean,required:!1,default:void 0},padFractionalZeros:{type:Boolean,required:!1,default:void 0},min:[Number,Date],max:[Number,Date],dispatch:Function};function Oo(e,t){let{emit:$,onAccept:ed,onComplete:td,defaultValue:nd,defaultUnmaskedValue:rd,defaultTypedValue:id}=t===void 0?{}:t,ad=(0,$$22.isRef)(e)?e:(0,$$22.ref)(e),od=(0,$$22.ref)(),sd=(0,$$22.ref)(),cd=(0,$$22.ref)(``),ld=(0,$$22.ref)(``),ud=(0,$$22.ref)(),dd,fd=cd.value,pd=ld.value,md=ud.value;function hd(){md=ud.value=sd.value.typedValue,pd=ld.value=sd.value.unmaskedValue,fd=cd.value=sd.value.value}function gd(e){hd(),$&&($(`accept`,cd.value,e),$(`accept:masked`,cd.value,e),$(`accept:typed`,ud.value,e),$(`accept:unmasked`,ld.value,e)),ed?.(e)}function _d(e){$&&($(`complete`,sd.value.value,e),$(`complete:masked`,sd.value.value,e),$(`complete:typed`,sd.value.typedValue,e),$(`complete:unmasked`,sd.value.unmaskedValue,e)),td?.(e)}let vd=()=>{!sd.value||ld.value===void 0||(pd!==ld.value&&(sd.value.unmaskedValue=ld.value,sd.value.unmaskedValue!==ld.value&&gd()),pd=void 0)};(0,$$22.watch)(ld,vd);let yd=()=>{!sd.value||cd.value===void 0||(fd!==cd.value&&(sd.value.value=cd.value,sd.value.value!==cd.value&&gd()),fd=void 0)};(0,$$22.watch)(cd,yd);let bd=()=>{!sd.value||ud.value===void 0||(md!==ud.value&&(sd.value.typedValue=ud.value,sd.value.masked.typedValueEquals(ud.value)||gd()),md=void 0)};(0,$$22.watch)(ud,bd);function xd(){dd=od.value;let e=ad.value;!dd||!(e!=null&&e.mask)||(sd.value=J(dd,e),nd!==void 0&&(cd.value=nd),rd!==void 0&&(ld.value=rd),id!==void 0&&(ud.value=id),vd(),yd(),bd(),hd(),sd.value.on(`accept`,gd).on(`complete`,_d))}function Sd(){var e;(e=sd.value)==null||e.destroy(),sd.value=void 0}return(0,$$22.onMounted)(xd),(0,$$22.onUnmounted)(Sd),(0,$$22.watch)([od,ad],()=>
56{let e=od.value,t=ad.value;(!(t!=null&&t.mask)||e!==dd)&&Sd(),e&&(sd.value?sd.value.updateOptions(t):xd())}),{el:od,mask:(0,$$22.readonly)(sd),masked:cd,unmasked:ld,typed:ud}}function ko(e,t){return e={...e},Object.keys(e).forEach($=>{(e[$]===void 0||t.includes($))&&delete e[$]}),e}var Ao=[`typed`,`unmasked`,`value`,`modelValue`];(0,$$22.defineComponent)({name:`imask-input`,inheritAttrs:!1,props:{modelValue:String,value:String,unmasked:String,typed:{validator:()=>!0},...Do},emits:[`update:modelValue`,`update:masked`,`update:value`,`update:unmasked`,`update:typed`,`accept`,`accept:value`,`accept:masked`,`accept:unmasked`,`accept:typed`,`complete`,`complete:value`,`complete:masked`,`complete:unmasked`,`complete:typed`],setup(e,t){let{attrs:$,emit:ed}=t,{el:td,mask:nd,masked:rd,unmasked:id,typed:ad}=Oo(ko(e,Ao),{emit:ed,onAccept:e=>{let t=rd.value;ed(`accept:value`,t,e),ed(`update:value`,t,e),ed(`update:masked`,t,e),ed(`update:modelValue`,t,e),ed(`update:unmasked`,id.value,e),ed(`update:typed`,ad.value,e)},onComplete:e=>{ed(`complete:value`,rd.value,e)}}),od=(0,$$22.toRef)(e,`value`),sd=(0,$$22.toRef)(e,`modelValue`),cd=(0,$$22.toRef)(e,`unmasked`),ld=(0,$$22.toRef)(e,`typed`);return rd.value=sd.value||od.value||``,id.value=cd.value||``,ad.value=ld.value,(0,$$22.watch)(od,e=>rd.value=e),(0,$$22.watch)(sd,e=>rd.value=e),(0,$$22.watch)(cd,e=>id.value=e),(0,$$22.watch)(ld,e=>ad.value=e),()=>{let t={...$,value:e.value==null?e.modelValue==null?nd.value?nd.value.displayValue:``:e.modelValue:e.value,ref:td};return e.mask||(t.onInput=e=>{ed(`update:modelValue`,e.target.value),ed(`update:value`,e.target.value)}),(0,$$22.h)(`input`,t)}}});var jo={name:`imask`,beforeMount:(e,t)=>{let{value:$}=t;$&&No(e,$)},updated:(e,t)=>{let{value:$}=t;$?e.maskRef?(e.maskRef.updateOptions($),e.value!==e.maskRef.value&&e.maskRef._onChange()):No(e,$):Po(e)},unmounted:e=>{Po(e)}};function Mo(e,t,$){let ed=document.createEvent(`CustomEvent`);ed.initCustomEvent(t,!0,!0,$),e.dispatchEvent(ed)}function No(e,t){e.maskRef=J(e,t).on(`accept`,()=>Mo(e,`accept`,e.maskRef)).on(`complete`,()=>Mo(e,`complete`,e.maskRef))}function Po(e){e.maskRef&&(e.maskRef.destroy(),delete e.maskRef)}var Fo={class:`free-value`},Io={class:`free-value__field`},Lo=[`placeholder`],Ro=[`innerHTML`],zo=ja({__name:`FreeValue`,props:{spectype:{type:Object,required:!0}},emits:[`select`],setup(e,{emit:t}){let $=jo,ed=e,td=t,nd=Da(),rd=ref(null),id=ref(ed.spectype.free_value??``),ad=ref(ed.spectype.free_value??``),od=ref(``),sd=ref(!1),cd=computed(()=>ed.spectype.pattern?{mask:ed.spectype.pattern,lazy:!1,placeholderChar:ed.spectype.placeholder||`_`,overwrite:`shift`}:null),ld=computed(()=>!!id.value&&!sd.value),ud=computed(()=>ld.value&&!ed.spectype.has_selected&&!nd.isLoading),dd=computed(()=>ld.value&&!!ed.spectype.has_selected);function fd(){ad.value=rd.value.maskRef.unmaskedValue,id.value=ad.value}function pd(e){rd.value.maskRef||(id.value=e.target.value,ad.value=e.target.value)}function md(){sd.value=!0,od.value=id.value}function hd(){rd.value?.focus()}function gd(e){id.value=(ed.spectype.pattern?ad.value:e.target.value).trim(),id.value!==od.value&&td(`select`,id.value),sd.value=!1}function _d(){let e=ed.spectype.free_value??``;id.value=e,ad.value=e;let t=rd.value;t&&(t.maskRef?t.maskRef.unmaskedValue=e:t.value=e)}return onMounted(_d),watch(()=>ed.spectype.free_value,()=>{sd.value||_d()}),(t,ed)=>(openBlock(),createElementBlock(`div`,Fo,[createBaseVNode(`div`,Io,[withDirectives(createBaseVNode(`input`,{ref_key:`inputEl`,ref:rd,class:normalizeClass([`free-value__input`,{"is-error":ud.value,"is-selected":dd.value,"is-readonly":e.spectype.has_readonly}]),type:`text`,placeholder:e.spectype.placeholder||``,onAccept:fd,onInput:pd,onFocus:md,onBlur:gd},null,42,Lo),[[unref($),cd.value]]),ld.value?(openBlock(),createElementBlock(`button`,{key:0,type:`button`,class:normalizeClass([`free-value__edit`,{"is-error":ud.value}]),onClick:hd},[...ed[0]||=[createBaseVNode(`i`,{class:`material-symbols`},`edit`,-1)]],2)):createCommentVNode(``,!0)]),ud.value&&e.spectype.warning?(openBlock(),createElementBlock(`div`,{key:0,class:`free-value__warning`,innerHTML:e.spectype.warning},null,8,Ro)):createCommentVNode(``,!0)]))}},[[`__scopeId`,`data-v-3c5a484d`]]),Bo={class:`spec-type__title`},Vo={class:`spec-type__note`},Ho={key:1,class:`spec-type__choice`},Uo={class:`spec-type__values`},Wo=[`onClick`],Go={class:`spec-type__subgroup-label`},Ko={key:0,class:`spec-type__subgroup-selected`},qo=8,Jo=ja({__name:`SpecType`,props:{spectype:{type:Object,required:!0},notes:{type:Object,default:()=>({})},first:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:t}){let $=e,ed=t,{t:td}=Aa(),nd=Da(),rd=Ca(),id=ref(!1),ad=ref(null);function od(e){return e.title.split(` - `)[0]}let sd=computed(()=>$.spectype.values??[]),cd=computed(()=>{let e=new Map;
56for(let t of sd.value){let $=od(t);e.has($)||e.set($,[]),e.get($).push(t)}return[...e]}),ld=computed(()=>{if($.spectype.is_free_value||$.spectype.is_multiple||sd.value.length<=9)return!1;let e=!1;return sd.value.forEach((t,$)=>{if(e)return;let ed=sd.value[$-1],td=sd.value[$-2],nd=t.title===td?.title&&t.title===ed?.title,rd=od(t),id=ed&&td&&rd===od(ed)&&rd===od(td);e=!nd&&id}),e&&cd.value.length>1}),ud=computed(()=>{let e=$.spectype.max_display_limit||qo,t=sd.value.length-e,ed=$.spectype.show_more&&!id.value&&sd.value.length>e&&t>1;return{filteredValues:ed?sd.value.slice(0,e):sd.value,hiddenCount:t,collapsed:ed,limit:e}}),dd=computed(()=>La($.spectype.note_indice,$.notes)),fd=computed(()=>rd.config.spectypeTooltips[$.spectype.code]??null),pd=computed(()=>!!$.spectype.has_selected),md=computed(()=>!$.spectype.is_free_value&&sd.value.every(e=>!e.available||nd.isFilterByQuickship&&nd.isProductQuickship&&!e.is_quickship||nd.isFilterByDarksky&&nd.isProductDarksky&&!e.is_darksky)),hd=computed(()=>{let{choice_limit:e,choice_selected:t}=$.spectype;return e>0?`(${t}/${e})`:``});function gd(e){return!!$.spectype.is_fixed||!!$.spectype.autoselect_first&&e===0}function _d(e,t){return!!e.selected&&!$.first&&!gd(t)}function vd(e){ed(`select`,{spectypeId:$.spectype.id,valueId:e.id,code:e.code})}function yd(e){ed(`select`,{spectypeId:$.spectype.id,valueId:null,code:e})}return onMounted(()=>{sd.value&&pd.value&&(ld.value?ad.value=cd.value.find(e=>e[1].find(e=>e.selected))?.at(0)||null:sd.value.findLastIndex(e=>e.selected)>=ud.value.limit&&(id.value=!0))}),watch(()=>nd.resetConfiguratorCount,()=>{id.value=!1,ad.value=null}),(t,$)=>(openBlock(),createElementBlock(`div`,{class:normalizeClass([`spec-type`,{"is-optional":e.spectype.is_optional,"is-fixed":e.spectype.is_fixed,"has-selected":pd.value,"is-unavailable":md.value}])},[createBaseVNode(`h3`,Bo,[createBaseVNode(`span`,null,toDisplayString(`${e.spectype.title}Â `),1),dd.value?(openBlock(),createBlock(Na,{key:0,content:dd.value},{default:withCtx(()=>[createBaseVNode(`sup`,Vo,toDisplayString(`${e.spectype.note_indice}Â `),1)]),_:1},8,[`content`])):createCommentVNode(``,!0),hd.value?(openBlock(),createElementBlock(`span`,Ho,toDisplayString(`${hd.value}Â `),1)):createCommentVNode(``,!0),fd.value?(openBlock(),createBlock(Na,{key:2,content:fd.value},{default:withCtx(()=>[...$[1]||=[createBaseVNode(`i`,{class:`material-symbols spec-type__info`},`info`,-1)]]),_:1},8,[`content`])):createCommentVNode(``,!0),e.spectype.states?.length?(openBlock(),createBlock(Ia,{key:3,states:e.spectype.states},null,8,[`states`])):createCommentVNode(``,!0)]),createBaseVNode(`div`,Uo,[e.spectype.is_free_value?(openBlock(),createBlock(zo,{key:0,spectype:e.spectype,onSelect:yd},null,8,[`spectype`])):ld.value?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(cd.value,([t,ed])=>(openBlock(),createElementBlock(`div`,{key:t,class:`spec-type__subgroup`},[createBaseVNode(`div`,{class:normalizeClass([`spec-type__subgroup-trigger`,{"is-active":ad.value===t,"is-unavailable":!ed.filter(e=>e.available).length}]),onClick:e=>ad.value=ad.value===t?null:t},[createBaseVNode(`span`,Go,toDisplayString(t)+` (`+toDisplayString(ed.filter(e=>e.available).length)+`)`,1),ad.value!==t&&ed.some(e=>e.selected)?(openBlock(),createElementBlock(`span`,Ko)):createCommentVNode(``,!0),$[2]||=createBaseVNode(`i`,{class:`material-symbols`},`keyboard_arrow_down`,-1)],10,Wo),ad.value===t?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(ed,(t,$)=>(openBlock(),createBlock(Wa,{key:t.id,value:t,notes:e.notes,"is-multiple":e.spectype.is_multiple,removable:_d(t,$),"is-locked":gd($),"is-last":$===ed.length-1,"split-title":``,onSelect:e=>vd(t)},null,8,[`value`,`notes`,`is-multiple`,`removable`,`is-locked`,`is-last`,`onSelect`]))),128)):createCommentVNode(``,!0)]))),128)):(openBlock(),createElementBlock(Fragment,{key:2},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ud.value.filteredValues,(t,$)=>(openBlock(),createBlock(Wa,{key:t.id,value:t,notes:e.notes,"is-multiple":e.spectype.is_multiple,removable:_d(t,$),"is-locked":gd($),"is-last":$===ud.value.filteredValues.length-1,onSelect:e=>vd(t)},null,8,[`value`,`notes`,`is-multiple`,`removable`,`is-locked`,`is-last`,`onSelect`]))),128)),ud.value.collapsed?(openBlock(),createElementBlock(`button`,{key:0,t
56ype:`button`,class:`spec-type__more`,onClick:$[0]||=e=>id.value=!0},[createTextVNode(toDisplayString(unref(td)(`show_more`))+` (`+toDisplayString(ud.value.hiddenCount)+`) `,1),$[3]||=createBaseVNode(`i`,{class:`material-symbols`},`keyboard_arrow_down`,-1)])):createCommentVNode(``,!0)],64))])],2))}},[[`__scopeId`,`data-v-3d18f4b1`]]),Yo=[`disabled`],Xo={__name:`ResetButton`,props:{disabled:{type:Boolean,default:!1}},emits:[`reset`],setup(e){let{t}=Aa();return($,ed)=>(openBlock(),createElementBlock(`button`,{type:`button`,class:`btn btn--secondary`,disabled:e.disabled,onClick:ed[0]||=e=>$.$emit(`reset`)},toDisplayString(unref(t)(`reset`)),9,Yo))}},Zo=[`disabled`,`aria-pressed`],Qo=[`src`,`alt`],$o={class:`material-symbols`},es=ja({__name:`FilterToggle`,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{type:String,required:!0},icon:{type:String,default:``}},emits:[`toggle`],setup(e){return(t,$)=>(openBlock(),createElementBlock(`button`,{type:`button`,class:`filter-toggle`,disabled:e.disabled,"aria-pressed":e.active,onClick:$[0]||=e=>t.$emit(`toggle`)},[e.icon?(openBlock(),createElementBlock(`img`,{key:0,src:e.icon,alt:e.label,class:`filter-toggle__icon`},null,8,Qo)):createCommentVNode(``,!0),createBaseVNode(`span`,null,toDisplayString(e.label)+`\xA0`,1),createBaseVNode(`i`,$o,toDisplayString(e.active?`check_box`:`check_box_outline_blank`),1)],8,Zo))}},[[`__scopeId`,`data-v-0dc372d2`]]),ts={class:`compliance-tooltip`},ns={class:`compliance-tooltip__overlay`},rs=ja({__name:`ComplianceTooltip`,props:{title:{type:String,required:!0},description:{type:String,required:!0}},setup(e){return(t,$)=>(openBlock(),createElementBlock(`div`,ts,[$[0]||=createBaseVNode(`i`,{class:`material-symbols`},`info`,-1),createBaseVNode(`div`,ns,[createBaseVNode(`h3`,null,toDisplayString(e.title),1),createBaseVNode(`p`,null,toDisplayString(e.description),1)])]))}},[[`__scopeId`,`data-v-12467f2e`]]),is={key:0,class:`notes`},as=[`innerHTML`],os=ja({__name:`Notes`,props:{notes:{type:Object,default:()=>({})}},setup(e){let t=e,{t:$}=Aa(),ed=ref(!1),td=computed(()=>Object.entries(t.notes??{}));return(e,t)=>td.value.length?(openBlock(),createElementBlock(`div`,is,[createBaseVNode(`button`,{type:`button`,class:`btn btn--accent notes__toggle`,onClick:t[0]||=e=>ed.value=!ed.value},[createTextVNode(toDisplayString(unref($)(`notes`))+` `,1),createBaseVNode(`span`,{class:normalizeClass([`notes__caret`,{"is-open":ed.value}])},`â¸`,2)]),ed.value?(openBlock(),createElementBlock(`ul`,{key:0,class:normalizeClass([`notes__list`,{"notes__list--double":td.value.length>4}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value,([e,t])=>(openBlock(),createElementBlock(`li`,{key:e,class:`notes__item`},[createBaseVNode(`sup`,null,toDisplayString(e),1),createBaseVNode(`span`,{innerHTML:t},null,8,as)]))),128))],2)):createCommentVNode(``,!0)])):createCommentVNode(``,!0)}},[[`__scopeId`,`data-v-683d38cb`]]),ss={key:0,class:`status`},cs={key:1,class:`status status--error`},ls={key:2,class:`status`},us={key:3,class:`configurator`},ds={key:0,class:`summary`},fs={key:0,class:`summary__code`},ps={key:0,class:`material-symbols summary__configured-icon`},ms={class:`summary__actions`},hs={key:0,class:`summary__filters`},gs={class:`spec-types`},_s=ja({__name:`App`,setup(e){let t=Ca(),$=Da(),{t:ed}=Aa(),td=computed(()=>$.specTypes.filter(e=>!e.is_optional_hidden)),nd=t.config.displayOptions,rd=computed(()=>nd.filters&&($.isProductQuickship||$.isProductDarksky)),id=computed(()=>{let e={};return t.config.colors.quickship&&(e[`--color-quickship`]=t.config.colors.quickship),t.config.colors.darksky&&(e[`--color-darksky`]=t.config.colors.darksky),e});async function ad(e=``){let ed=await $.fetchConfiguration({apiUrl:t.config.apiUrl,productId:t.config.productId,project:t.config.project,lang:t.config.lang,region:t.config.region,unit:t.config.unit,headers:t.config.headers,transform:t.config.transform,selection:e});ed&&od(ed)}function od(e){t.emitConfigChange({id:e.id,selectionEncoded:e.selection_encoded,selectedString:e.selected_string,code:e.code,fullyConfigured:e.fully_configured,inBasket:e.in_basket,isDarksky:e.is_selection_dar
56ksky,isQuickship:e.is_selection_quickship,notes:e.notes,result:e})}let sd=Promise.resolve();function cd({spectypeId:e,code:t}){sd=sd.then(()=>ad($.buildSelection(e,t)))}function ld(){sd=sd.then(()=>ad(``)),t.emitReset(),$.resetConfigurator()}function ud(e){$.setFilters(e),t.emitFilterChange({darksky:$.isFilterByDarksky,quickship:$.isFilterByQuickship})}onMounted(async()=>{$.lang=t.config.lang||`en`,$.setFilters(t.config.filters),await ad(t.config.initialSelection??``),t.config.isVss&&(window.addEventListener(`message`,pd),window.parent.postMessage({message:`configuratorReady`,method:`configuratorReady`,output:[]},`*`))}),onUnmounted(()=>{t.config.isVss&&window.removeEventListener(`message`,pd)}),t.handleEvent(K.RESET,ld),t.handleEvent(K.SELECTION_SET,e=>{let t=typeof e==`string`?e:e?.selection??``;sd=sd.then(()=>ad(t))}),t.handleEvent(K.FILTER_SET,e=>ud(e??{}));function dd(){let e=$.result?.export_data??[],t=($.result?.configurator??[]).filter(e=>!e.hide_configurator_code),ed=0,td={};return t.forEach(t=>{let $=t.is_free_value?{code:t.free_value}:t.values.find(e=>e.selected),nd=$?$.code:``,rd=e.find(e=>e.code===t.code),id=rd?Array.isArray(rd.value)?rd.value.join(`,`):rd.value:``;t.separator===``?(ed--,td[ed].vodecodecode+=nd,td[ed].vodecodedisplay+=nd,td[ed].vodecodedata+=td[ed].vodecodedata===``?id:`,${id}`,ed++):(td[ed]={vodecodecode:nd,vodecodedisplay:nd,vodecodedata:id,vodecodenotes:``},ed++)}),td}function fd(e){return{message:e===`getSpecCodeJSON`?`processed`:`loaded`,method:e,output:dd()}}async function pd(e){if(e.data){if(e.data.method===`getSpecCodeJSON`)e.source?.postMessage(fd(e.data.method),e.origin);else if(e.data.method===`setSpecCodeJSON`){e.source?.postMessage({message:`received`,method:`setSpecCodeJSON`,output:[]},e.origin);let ed=await $.fetchVssConfiguration({apiVss:t.config.apiVss,project:t.config.project,id:$.result?.id,input:Object.values(e.data.input??{}),headers:t.config.headers});ed&&od(ed),e.source?.postMessage(fd(e.data.method),e.origin)}}}return(e,ad)=>(openBlock(),createElementBlock(`div`,{class:normalizeClass([`lmpg-configurator`,{"is-loading":unref($).isLoading}]),style:normalizeStyle(id.value)},[unref($).isLoading&&!unref($).result?(openBlock(),createElementBlock(`p`,ss,toDisplayString(unref(ed)(`loading`)),1)):unref($).error?(openBlock(),createElementBlock(`p`,cs,toDisplayString(unref(ed)(`error`)),1)):unref($).isConfigured?unref($).result&&!unref($).isEmpty?(openBlock(),createElementBlock(`section`,us,[unref(nd).code||unref(nd).reset||rd.value?(openBlock(),createElementBlock(`header`,ds,[unref(nd).code?(openBlock(),createElementBlock(`div`,fs,[createTextVNode(toDisplayString(unref($).selectedString||unref($).productCode)+` `,1),unref($).isFullyConfigured?(openBlock(),createElementBlock(`i`,ps,`check_circle`)):createCommentVNode(``,!0)])):createCommentVNode(``,!0),createBaseVNode(`div`,ms,[rd.value?(openBlock(),createElementBlock(`div`,hs,[unref($).isProductQuickship?(openBlock(),createElementBlock(Fragment,{key:0},[unref($).isSelectionQuickship?createCommentVNode(``,!0):(openBlock(),createBlock(rs,{key:0,title:unref(t).config.tooltips.quickship.title??unref(ed)(`quickshipTooltipTitle`,{label:unref(t).config.labels.quickship}),description:unref(t).config.tooltips.quickship.description??unref(ed)(`quickshipTooltipDesc`,{label:unref(t).config.labels.quickship})},null,8,[`title`,`description`])),createVNode(es,{active:unref($).isFilterByQuickship,disabled:!unref($).isSelectionQuickship,label:unref(t).config.filterLabels.quickship??unref(ed)(`filterBy`,{label:unref(t).config.labels.quickship}),icon:unref(t).config.icons.quickship,onToggle:ad[0]||=e=>ud({quickship:!unref($).isFilterByQuickship})},null,8,[`active`,`disabled`,`label`,`icon`])],64)):createCommentVNode(``,!0),unref($).isProductDarksky?(openBlock(),createElementBlock(Fragment,{key:1},[unref($).isSelectionDarksky?createCommentVNode(``,!0):(openBlock(),createBlock(rs,{key:0,title:unref(t).config.tooltips.darksky.title??unref(ed)(`darkskyTooltipTitle`),description:unref(t).config.tooltips.darksky.description??unref(ed)(`darkskyTooltipDesc`)},null,8,[`title`,`description`])),createVNode(es,{active:unref($).isFilterByDarksky,disabled:!unref($).isSelectionDarksky,label:unref(t).config.filterLabels.darksky??unref(ed)(`filterBy`,{label:unref(t).config.labels.darksky}),icon:unref(t).config.icons.darksky,onToggle:ad[1]||=e=>ud({darksky:!unref($).isFilterByDarksky})},null,8,[`active`,`disabled`,`label`,`icon`])],64)):createCommentVNode(``,!0)])):createCommentVNode(``,!0),unref(nd).reset?(openBlock(),createBlock(Xo,{key:1,disabled:!unref($).hasSelection,onReset:ld},null,8,[`disabled`])):createCommentVNode(``,!0)])])):createCommentVNode(``,!0),createBaseVNode(`div`,gs,[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value,(e,t)=>(openBlock(),createBlock(Jo,{key:e.id,spectype:e,first:t===0,notes:u
56nref($).notes,onSelect:cd},null,8,[`spectype`,`first`,`notes`]))),128))]),unref(nd).notes?(openBlock(),createBlock(os,{key:1,notes:unref($).notes},null,8,[`notes`])):createCommentVNode(``,!0)])):createCommentVNode(``,!0):(openBlock(),createElementBlock(`p`,ls,` Waiting for host configuration (productId + apiUrl)⦠`))],6))}},[[`__scopeId`,`data-v-003c59ce`]]);function vs(e={}){let t=Sa(e),$=createApp(_s);return $.use(aa()),$.provide(ba,t),typeof e.setup==`function`&&e.setup($),$.configuratorBridge=t,$}function ys(e,t={}){let $=vs(t);$.mount(e);let ed=$.unmount.bind($);return $.unmount=()=>{$.configuratorBridge?.destroy(),ed()},$.configuratorBridge?.emitReady(),$}var _sfc_main$7={name:`Product`,components:{ImageComponent:ImageComponent_default},props:{data:{type:Object,required:!0}},emits:[`configChange`],data(){return{configurator:null}},mounted(){this.mountConfigurator()},beforeUnmount(){this.configurator?.unmount?.()},methods:{mountConfigurator(){this.configurator=ys(this.$refs.configurator,{apiUrl:this.$globalData.configuratorApi,productId:this.data.id,project:global_default.project,lang:global_default.itemLocale||global_default.lang||`en`,region:global_default.region,unit:global_default.unit,initialSelection:this.data.selectionEncoded||``,displayOptions:{code:!1},onConfigChange:e=>this.$emit(`configChange`,e)})}}},_hoisted_1$7={class:`u-pt-g u-pb-g`},_hoisted_2$7={class:`product`},_hoisted_3$7={class:`u-display-flex`},_hoisted_4$6={class:`product__img`},_hoisted_5$4={class:`u-text-xlarge u-mb-1`},_hoisted_6$2={class:`u-text-small u-mb-0`},_hoisted_7$2={ref:`configurator`};function _sfc_render$7(e,t,$,ed,td,nd){let rd=resolveComponent(`ImageComponent`);return openBlock(),createElementBlock(`div`,_hoisted_1$7,[createBaseVNode(`div`,_hoisted_2$7,[createBaseVNode(`div`,_hoisted_3$7,[createBaseVNode(`div`,_hoisted_4$6,[createVNode(rd,{image:$.data.image,width:`100`,height:`56.25`},null,8,[`image`])]),createBaseVNode(`div`,null,[createBaseVNode(`p`,_hoisted_5$4,[createBaseVNode(`strong`,null,toDisplayString($.data.title),1)]),createBaseVNode(`p`,_hoisted_6$2,toDisplayString($.data.description),1)])]),t[0]||=createBaseVNode(`hr`,null,null,-1),createBaseVNode(`div`,_hoisted_7$2,null,512)])])}var Product_default=_plugin_vue_export_helper_default(_sfc_main$7,[[`render`,_sfc_render$7],[`__scopeId`,`data-v-d3e19b79`]]),_sfc_main$6={name:`Accessory`,props:{product:{type:Object,required:!0},selection:{type:Object,required:!1,default:null},disableAdd:{type:Boolean,required:!1,default:!1}},emits:[`add`,`remove`,`configChange`],data(){return{configurator:null}},computed:{isSelected(){return!!this.selection},isFullyConfigured(){return this.selection?.fullyConfigured===!0}},watch:{isSelected(e){e?this.$nextTick(()=>this.mountConfigurator()):this.unmountConfigurator()}},mounted(){this.isSelected?this.mountConfigurator():this.product.is_mandatory&&this.$emit(`add`,this.product)},beforeUnmount(){this.unmountConfigurator()},methods:{mountConfigurator(){this.configurator||!this.$refs.configurator||(this.configurator=ys(this.$refs.configurator,{apiUrl:this.$globalData.configuratorApi,productId:this.product.id,project:global_default.project,lang:global_default.itemLocale||global_default.lang||`en`,region:global_default.region,unit:global_default.unit,initialSelection:this.selection?.selectionEncoded||``,displayOptions:{code:!1,reset:!1},onConfigChange:e=>this.$emit(`configChange`,this.product,e)}))},unmountConfigurator(){this.configurator?.unmount?.(),this.configurator=null}}},_hoisted_1$6={class:`accessory`},_hoisted_2$6={class:`accessory__tools`},_hoisted_3$6={class:`accessory__img`},_hoisted_4$5={key:0,class:`accessory__mandatory`},_hoisted_5$3=[`src`,`alt`],_hoisted_6$1={key:0,class:`material-symbols u-color-success`},_hoisted_7$1={key:0,ref:`configurator`,class:`accessory__configurator`};function _sfc_render$6(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,_hoisted_1$6,[createBaseVNode(`div`,_hoisted_2$6,[!nd.isSelected&&!$.product.is_mandatory?(openBlock(),createElementBlock(`button`,{key:0,class:normalizeClass([`btn btn--accent`,{"is-disabled":$.disableAdd}]),onClick:t[0]||=t=>e.$emit(`add`,$.product)},toDisplayString(e.$i18n.global.add),3)):$.product.is_mandatory?createCommentVNode(``,!0):(openBlock(),createElementBlock(`button`,{key:1,class:`btn btn--secondary`,onClick:t[1]||=t=>e.$emit(`remove`,$.product)},toDisplayString(e.$i18n.global.remove),1)),createBaseVNode(`div`,_hoisted_3$6,[$.product.is_mandatory?(openBlock(),createElementBlock(`span`,_hoisted_4$5,toDisplayString(e.$i18n.accessory.mandatory),1)):createCommentVNode(``,!0),$.product.image?(openBlock(),createElementBlock(`img`,{key:1,src:$.product.image,alt:$.product.title},null,8,_hoisted_5$3)):createCommentVNode(``,!0)]),createBaseVNode(`strong`,null,[createTextVNode(toDisplayString($.product.title)+`\xA0 `,1),nd.isSelected&&nd.isFullyConfigured?(openBlock(),createElementBlock(`i`,_hoisted_6$1,`check_circle`)):createCommentVNode(``,!0)])]),nd.isSelected?(openBlock(),createElementBlock(`div`,_hoisted_7$1,null,512)):createCommentVNode(``,!0)])}var Accessory_default=_plugin_vue_export_helper_default(_sfc_main$6,[[`render`,_sfc_render$6],[`__scopeId`,`data-v-0bd3bbe4`]]),_sfc_main$5={name:`Accessories`,components:{Accessory:Accessory_default,LoaderBox:LoaderBox_default},props:{productId:{type:[Number,String],required:!0},selections:{type:Object,required:!1,default:()=>({})}},emits:[`accessoryAdd`,`accessoryRemove`,`accessoryConfigChange`],data(){return{groups:[],collapsed:[],loading:!1}},watch:{productId(){this.fetchAccessories()}},mounted(){this.fetchAccessories()},methods:{collapseGroup(e){this.collapsed[e]=!this.collapsed[e]},selectedCount(e){return e.products.filter(e=>this.selections[e.id]).length},disableGroup(e){let t=this.selectedCount(e);return e.is_multiple?e.choice_limit>0&&t>=e.choice_limit:t>0},async fetchAccessories(){this.groups=[],this.loading=!0;try{this.groups=(await this.$axios({method:`get`,url:this.$globalData.accessoriesApi,params:{id:this.productId,lang:global_default.itemLocale,region:global_default.region,unit:global_default.unit},headers:{Project:global_default.project}})).data.data?.accessories??[],this.groups.forEach((e,t)=>{this.collapsed[t]=!1})}catch(e){console.error(`error`,e)}this.loading=!1}}}
56,_hoisted_1$5={key:0,class:`accessories`},_hoisted_2$5=[`onClick`],_hoisted_3$5={key:1,class:`u-text-small`},_hoisted_4$4={class:`material-symbols`};function _sfc_render$5(e,t,$,ed,td,nd){let rd=resolveComponent(`LoaderBox`),id=resolveComponent(`Accessory`);return td.loading||td.groups.length?(openBlock(),createElementBlock(`div`,_hoisted_1$5,[td.loading?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode(`h3`,null,toDisplayString(e.$i18n.accessory.title),1),createVNode(rd,{height:`24px`,class:`u-mb-g`}),(openBlock(),createElementBlock(Fragment,null,renderList(3,e=>createVNode(rd,{key:e,height:`100px`,class:`u-mb-g`})),64))],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`h3`,null,toDisplayString(e.$i18n.accessory.title),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(td.groups,(ed,rd)=>(openBlock(),createElementBlock(`div`,{key:ed.title,class:`accessories__group`},[createBaseVNode(`h3`,{onClick:e=>nd.collapseGroup(rd)},[createTextVNode(toDisplayString(ed.title)+` `,1),ed.is_optional?createCommentVNode(``,!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(` (`+toDisplayString(e.$i18n.accessory.mandatory)+`) `,1)],64)),nd.selectedCount(ed)?(openBlock(),createElementBlock(`span`,_hoisted_3$5,` (`+toDisplayString(nd.selectedCount(ed))+` `+toDisplayString(nd.selectedCount(ed)>1?e.$i18n.accessory.selected_plural:e.$i18n.accessory.selected)+`) `,1)):createCommentVNode(``,!0),createBaseVNode(`i`,_hoisted_4$4,toDisplayString(td.collapsed[rd]?`unfold_more`:`unfold_less`),1)],8,_hoisted_2$5),td.collapsed[rd]?createCommentVNode(``,!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(ed.products,td=>(openBlock(),createBlock(id,{key:td.id,product:td,selection:$.selections[td.id]??null,"disable-add":nd.disableGroup(ed),onAdd:t[0]||=t=>e.$emit(`accessoryAdd`,t),onRemove:t[1]||=t=>e.$emit(`accessoryRemove`,t),onConfigChange:t[2]||=(t,$)=>e.$emit(`accessoryConfigChange`,t,$)},null,8,[`product`,`selection`,`disable-add`]))),128))]))),128))],64))])):createCommentVNode(``,!0)}var Accessories_default=_plugin_vue_export_helper_default(_sfc_main$5,[[`render`,_sfc_render$5],[`__scopeId`,`data-v-c79f0246`]]),_sfc_main$4={name:`Part`,components:{Tooltip:Tooltip_default,ProductCode:ProductCode_default,Product:Product_default,Accessories:Accessories_default},props:{index:{type:Number,required:!0},data:{type:Object,required:!0}},emits:[`configChange`,`accessoryAdd`,`accessoryRemove`,`accessoryConfigChange`],data(){return{isOpen:!1}},computed:{messages(){return getPartMessages(this.data,this.$i18n)}},watch:{"data.product"(e){this.isOpen=!!e}},created(){this.isOpen=this.data.product,eventBus.on(`scroll-to-part`,this.scrollToPart)},beforeUnmount(){eventBus.off(`scroll-to-part`,this.scrollToPart)},methods:{scrollToPart({index:e,force:t,isEdit:$}){if(e===this.index){let e=this.$refs[`part-${this.index}`];if($){let e=this.data;document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Edit Product`,eventLabel:`${e.product.title} > ${e.product.selectedString}`,additionalFields:[`system`,`part`],system:this.$globalData.systemId,part:e.title}}))}(t||e.getBoundingClientRect().top<96)&&e.scrollIntoView({behavior:`instant`})}},handleHeaderClick(){this.data.product?(this.isOpen=!this.isOpen,this.scrollToPart({index:this.index,force:!1,isEdit:!1})):this.$store.dispatch(`openAddProductModal`,{title:`<strong>${this.data.title}</strong> - ${this.$i18n.product.choose_product}`,part:this.data})}}},_hoisted_1$4={class:`u-pr-g u-position-relative`},_hoisted_2$4={key:2},_hoisted_3$4={class:`material-symbols`};function _sfc_render$4(e,t,$,ed,td,nd){let rd=resolveComponent(`Tooltip`),id=resolveComponent(`ProductCode`),ad=resolveComponent(`Product`),od=resolveComponent(`Accessories`);return openBlock(),createElementBlock(`div`,{ref:`part-${$.index}`,class:normalizeClass([`part`,{"is-disabled":$.data.isDisabled}])},[createBaseVNode(`div`,{class:normalizeClass([`part__header`,{"is-sticky":$.data.product,"is-open":td.isOpen}]),onClick:t[1]||=(...e)=>nd.handleHeaderClick&&nd.handleHeaderClick(...e)},[createBaseVNode(`div`,_hoisted_1$4,[$.data.product?(openBlock(),createBlock(rd,{key:0,content:nd.messages.join(`<br>`),class:`part__tooltip`},{default:withCtx(()=>[createBaseVNode(`i`,{class:normalizeClass([`material-symbols`,{"u-color-danger":nd.messages.length,"u-color-success":!nd.messages.length}])},toDisplayString(nd.messages.length?`error`:`check_circle`),3)]),_:1},8,[`content`])):createCommentVNode(``,!0),createBaseVNode(`h2`,null,toDisplayString($.data.title),1),$.data.product?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString($.data.product.title)+` - `,1),createVNode(id,{code:$.data.product.selectedString??``,"has-unresolved-dependencies":$.data.hasUnresolvedDependencies},null,8,[`code`,`has-unresolved-dependencies`])],64)):(openBlock(),createElementBlock(`p`,_hoisted_2$4,toDisplayString($.data.isDisabled?`N/A`:e.$i18n.product.add_product),1))]),$.data.product?(openBlock(),createElementBlock(`span`,{key:0,class:`part__remove`,onClick:t[0]||=withModifiers(t=>e.$store.dispatch(`openConfirmationModal`,{title:e.$i18n.product.remove_product,part:$.data}),[`stop`])},[createBaseVNode(`span`,null,toDisplayString(e.$i18n.global.remove),1),t[6]||=createBaseVNode(`i`,{class:`material-symbols`},`cancel`,-1)])):createCommentVNode(``,!0),createBaseVNode(`i`,_hoisted_3$4,toDisplayString($.data.product?`keyboard_arrow_down`:`add_circle`),1)],2),$.data.product&&td.isOpen?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(ad,{data:$.data.product,onConfigChange:t[2]||=t=>e.$emit(`configChange`,$.data,t)},null,8,[`data`]),createVNode(od,{"product-id":$.data.product.id,selections:$.data.accessories,onAccessoryAdd:t[3]||=t=>e.$emit(`accessoryAdd`,$.data,t),onAccessoryRemove:t[4]||=t=>e.$emit(`accessoryRemove`,$.data,t),onAccessoryConfigChange:t[5]||=(t,ed)=>e.$emit(`accessoryConfigChange`,$.data,t,ed)},null,8,[`product-id`,`selections`])],64)):createCommentVNode(``,!0)],2)}var Part_default=_plugin_vue_export_helper_default(_sfc_main$4,[[`render`,_sfc_render$4],[`__scopeId`,`data-v-e348eed8`]]),_sfc_main$3={name:`ModalComponent`,props:{title:{type:String,required:!0},maxWidth:{type:Number,required:!1,default:768}},emits:[`close`],mounted(){document.addEventListener(`scrollBehavior`,this.handleScrollBehavior)},beforeUnmount(){document.removeEventListener(`scrollBehavior`,this.handleScrollBehavior)},methods:{handleScrollBehavior(){this.$refs.modal.scrollTo(0,0)}}},_hoisted_1$3={ref:`modal`,class:`modal-component`},_hoisted_2$3={class:`modal-component__header`},_hoisted_3$3=[`innerHTML`],_hoisted_4$3={class:`modal-component__content`};function _sfc_render$3(e,t,$,ed,td,nd){return openBlock(),createElementBlock(`div`,_hoisted_1$3,[createBaseVNode(`div`,{class:`modal-component__container`,style:normalizeStyle(`max-width: ${$.maxWidth}px;`)},[createBaseVNode(`div`,_hoisted_2$3,[createBaseVNode(`h2`,{class:`u-mb-0`,innerHTML:$.title},null,8,_hoisted_3$3),createBaseVNode(`i`,{class:`material-symbols`,onClick:t[0]||=t=>e.$emit(`close`)}
56,` close `)]),createBaseVNode(`div`,_hoisted_4$3,[renderSlot(e.$slots,`default`,{},void 0,!0)])],4)],512)}var ModalComponent_default=_plugin_vue_export_helper_default(_sfc_main$3,[[`render`,_sfc_render$3],[`__scopeId`,`data-v-5925ad30`]]),require_js_cookie=__commonJSMin(((e,t)=>{(function($){var ed;if(typeof define==`function`&&define.amd&&(define($),ed=!0),typeof e==`object`&&(t.exports=$(),ed=!0),!ed){var td=window.Cookies,nd=window.Cookies=$();nd.noConflict=function(){return window.Cookies=td,nd}}})(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var $=arguments[e];for(var ed in $)t[ed]=$[ed]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function $(ed){function td(){}function nd(t,$,nd){if(!(typeof document>`u`)){nd=e({path:`/`},td.defaults,nd),typeof nd.expires==`number`&&(nd.expires=new Date(new Date*1+nd.expires*864e5)),nd.expires=nd.expires?nd.expires.toUTCString():``;try{var rd=JSON.stringify($);/^[\{\[]/.test(rd)&&($=rd)}catch{}$=ed.write?ed.write($,t):encodeURIComponent(String($)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var id=``;for(var ad in nd)nd[ad]&&(id+=`; `+ad,nd[ad]!==!0&&(id+=`=`+nd[ad].split(`;`)[0]));return document.cookie=t+`=`+$+id}}function rd(e,$){if(!(typeof document>`u`)){for(var td={},nd=document.cookie?document.cookie.split(`; `):[],rd=0;rd<nd.length;rd++){var id=nd[rd].split(`=`),ad=id.slice(1).join(`=`);!$&&ad.charAt(0)===`"`&&(ad=ad.slice(1,-1));try{var od=t(id[0]);if(ad=(ed.read||ed)(ad,od)||t(ad),$)try{ad=JSON.parse(ad)}catch{}if(td[od]=ad,e===od)break}catch{}}return e?td[e]:td}}return td.set=nd,td.get=function(e){return rd(e,!1)},td.getJSON=function(e){return rd(e,!0)},td.remove=function(t,$){nd(t,``,e($,{expires:-1}))},td.defaults={},td.withConverter=$,td}return $(function(){})})})),import_js_cookie=__toESM(require_js_cookie()),SCRIPT_URL=`https://www.google.com/recaptcha/api.js?render=explicit`,RESET_DELAY=1e3,POLL_DELAY=500,POLL_TIMEOUT=6e4,loading=null,widgetId=null,onToken=null;function waitForRender(e){if(window.grecaptcha?.render){e();return}setTimeout(()=>waitForRender(e),200)}function loadRecaptcha(e){return loading||(loading=new Promise(t=>{let $=()=>{let $=document.createElement(`div`);document.body.appendChild($),widgetId=window.grecaptcha.render($,{sitekey:e,size:`invisible`,callback:e=>onToken?.(e),"error-callback":()=>onToken?.(null)}),t()};if(window.grecaptcha?.render){$();return}let ed=document.createElement(`script`);ed.src=SCRIPT_URL,ed.onload=()=>waitForRender($),document.head.appendChild(ed)}),loading)}async function getRecaptchaToken(e){return await loadRecaptcha(e),new Promise(e=>{onToken=t=>{onToken=null,setTimeout(()=>window.grecaptcha.reset(widgetId),RESET_DELAY),e(t)},window.grecaptcha.execute(widgetId)})}function waitForDownload(e){return new Promise(t=>{let $=Date.now(),ed=setInterval(()=>{((0,import_js_cookie.get)(e)||Date.now()-$>POLL_TIMEOUT)&&(clearInterval(ed),t())},POLL_DELAY)})}async function downloadConfiguredSpecsheet(e,t,$){let ed=`download_${Date.now()}`,td=await getRecaptchaToken($);if(!td){console.error(`recaptcha error, the specsheet cannot be generated`);return}let nd=new URLSearchParams({id:e.product.id,selection:e.product.selectionEncoded??``,lang:global_default.itemLocale||global_default.lang||`en`,token:ed,"g-recaptcha-response":td}),rd=new URLSearchParams(window.location.search).has(`cmspreview`)?`&cmspreview`:``;document.dispatchEvent(new CustomEvent(`download-request`,{detail:{token:ed}})),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Download Configured Specsheet`,eventLabel:`${e.product.title} > ${e.product.selectedString}`,additionalFields:[`system`,`part`],system:t,part:e.title}})),window.open(`${global_default.paths.api}selector/pdf/download/configurator?${nd}${rd}`,`_self`),await waitForDownload(ed)}var _sfc_main$2={name:`SystemSummary`,components:{Tooltip:Tooltip_default,ImageComponent:ImageComponent_default,ProductCode:ProductCode_default},props:{data:{type:Object,required:!1,default:()=>({})}},emits:[`close`],data(){return{copied:!1,downloadingPartId:null}},computed:{partsWithProduct(){return this.data.parts.map((e,t)=>({...e,index:t,messages:getPartMessages(e,this.$i18n)}
56)).filter(e=>e.product)},messages(){return getSystemMessages(this.data.parts,this.$i18n)},isDownloadInProgress(){return this.downloadingPartId!==null},code(){let e=``;return this.partsWithProduct.forEach((t,$)=>{let{product:ed}=t;e+=($===0?``:`/`)+(ed.selectedString??``)}),e}},watch:{"data.assemblyIsComplete"(e){e&&document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Assembly Complete`,eventLabel:this.code,additionalFields:[`system`],system:this.$globalData.systemId}}))}},methods:{accessories(e){return Object.values(e.accessories??{})},handleCopyClick(e){document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Copy System Code to Clipboard`,eventLabel:e,additionalFields:[`system`],system:this.$globalData.systemId}})),navigator.clipboard.writeText(e),this.copied=!0,setTimeout(()=>{this.copied=!1},1500)},handleProductCodeCopied(e,t){let $=`Copy ${t?`Accessory`:`Product`} Code to Clipboard`,ed=[`system`,`part`,`product`];t||ed.pop(),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:$,eventLabel:t?`${t.title} > ${t.selectedString}`:`${e.product.title} > ${e.product.selectedString}`,additionalFields:ed,system:this.$globalData.systemId,part:e.title,product:`${e.product.title} > ${e.product.selectedString}`}}))},isDownloading(e){return this.downloadingPartId===e.id},hasConfiguredSpecsheet(e){return!!e.product.is_configured_specsheet},async handleSpecsheetClick(e){if(!this.isDownloadInProgress){this.downloadingPartId=e.id;try{await downloadConfiguredSpecsheet(e,this.$globalData.systemId,this.$globalData.recaptchaKey)}finally{this.downloadingPartId=null}}},handleEditClick(e){this.$emit(`close`),eventBus.emit(`scroll-to-part`,{index:e,force:!0,isEdit:!0})}}},_hoisted_1$2={class:`system-summary`},_hoisted_2$2={class:`material-symbols`},_hoisted_3$2={class:`system-summary__code`},_hoisted_4$2={class:`system-summary__list`},_hoisted_5$2={class:`system-summary__img`},_hoisted_6={class:`u-mb-0`},_hoisted_7={class:`u-text-small u-mb-0`},_hoisted_8={class:`system-summary__actions`},_hoisted_9=[`onClick`],_hoisted_10=[`disabled`,`onClick`],_hoisted_11={key:0,class:`material-symbols`},_hoisted_12={key:1};function _sfc_render$2(e,t,$,ed,td,nd){let rd=resolveComponent(`Tooltip`),id=resolveComponent(`ImageComponent`),ad=resolveComponent(`ProductCode`);return openBlock(),createElementBlock(`div`,_hoisted_1$2,[createBaseVNode(`div`,{class:normalizeClass([`alert`,$.data.assemblyIsComplete?`alert--success`:`alert--danger`])},[createBaseVNode(`i`,_hoisted_2$2,toDisplayString($.data.assemblyIsComplete?`check_circle`:`error`),1),createBaseVNode(`ul`,null,[createBaseVNode(`li`,null,[createBaseVNode(`strong`,null,toDisplayString($.data.assemblyIsComplete?e.$i18n.global.assembly_complete:e.$i18n.global.assembly_incomplete),1)]),(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.messages,(e,t)=>(openBlock(),createElementBlock(`li`,{key:t},toDisplayString(e),1))),128))])],2),createBaseVNode(`h3`,_hoisted_3$2,[createBaseVNode(`strong`,null,toDisplayString(e.$i18n.system_summary.system_code),1),createTextVNode(`: `+toDisplayString(nd.code)+` `,1),createVNode(rd,{content:td.copied?e.$i18n.system_summary.copied:e.$i18n.system_summary.copy_to_clipboard,class:normalizeClass({"is-copied":td.copied}),onClick:t[0]||=e=>nd.handleCopyClick(nd.code)},{default:withCtx(()=>t[1]||=[createBaseVNode(`i`,{class:`material-symbols`},`content_copy`,-1)]),_:1},8,[`content`,`class`])]),createBaseVNode(`div`,_hoisted_4$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.partsWithProduct,ed=>(openBlock(),createElementBlock(`div`,{key:ed.title},[createBaseVNode(`div`,_hoisted_5$2,[createVNode(rd,{content:ed.messages.join(`<br>`),class:`system-summary__tooltip`},{default:withCtx(()=>[createBaseVNode(`i`,{class:normalizeClass([`material-symbols u-color-danger`,{"u-color-success":!ed.messages.length}])},toDisplayString(ed.messages.length?`error`:`check_circle`),3)]),_:2},1032,[`content`]),createVNode(id,{image:$.data.image,width:`100`,height:`56.25`},null,8,[`image`])]),createBaseVNode(`div`,null,[createBaseVNode(`h3`,null,[createBaseVNode(`strong`,null,toDisplayString(ed.title),1)]),createBaseVNode(`p`,_hoisted_6,toDisplayString(ed.product.title),
561),createVNode(ad,{code:ed.product.selectedString??``,copyable:!0,"has-unresolved-dependencies":ed.hasUnresolvedDependencies,onCopied:e=>nd.handleProductCodeCopied(ed,null)},null,8,[`code`,`has-unresolved-dependencies`,`onCopied`]),(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.accessories(ed),e=>(openBlock(),createElementBlock(`div`,{key:e.id,class:`system-summary__accessory`},[createBaseVNode(`p`,_hoisted_7,toDisplayString(e.title),1),createVNode(ad,{code:e.selectedString??``,copyable:!0,onCopied:t=>nd.handleProductCodeCopied(ed,e)},null,8,[`code`,`onCopied`])]))),128))]),createBaseVNode(`div`,_hoisted_8,[createVNode(rd,{content:e.$i18n.global.edit,class:`u-ml-1`,onClick:e=>nd.handleEditClick(ed.index)},{default:withCtx(()=>t[2]||=[createBaseVNode(`i`,{class:`material-symbols`},`edit`,-1)]),_:2},1032,[`content`,`onClick`]),createVNode(rd,{content:e.$i18n.global.remove,class:`u-ml-1`,onClick:t=>e.$store.dispatch(`openConfirmationModal`,{title:e.$i18n.product.remove_product,part:ed})},{default:withCtx(()=>t[3]||=[createBaseVNode(`i`,{class:`material-symbols u-color-danger`},`cancel`,-1)]),_:2},1032,[`content`,`onClick`]),nd.hasConfiguredSpecsheet(ed)?(openBlock(),createElementBlock(`i`,{key:0,class:`material-symbols u-cursor-pointer u-ml-1`,style:normalizeStyle(nd.isDownloadInProgress?`opacity: 0.5; pointer-events: none;`:null),onClick:e=>nd.handleSpecsheetClick(ed)},` picture_as_pdf `,12,_hoisted_9)):createCommentVNode(``,!0),nd.hasConfiguredSpecsheet(ed)?(openBlock(),createElementBlock(`button`,{key:1,disabled:nd.isDownloadInProgress,class:normalizeClass([`btn btn--accent u-ml-1`,{"btn--downloading":nd.isDownloading(ed)}]),onClick:e=>nd.handleSpecsheetClick(ed)},[nd.isDownloading(ed)?(openBlock(),createElementBlock(`i`,_hoisted_11,`progress_activity`)):(openBlock(),createElementBlock(`span`,_hoisted_12,toDisplayString(e.$i18n.product.configured_specsheet),1))],10,_hoisted_10)):createCommentVNode(``,!0)])]))),128))])])}var SystemSummary_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`render`,_sfc_render$2],[`__scopeId`,`data-v-56ef23ec`]]),_sfc_main$1={Name:`NavComponent`,components:{ImageComponent:ImageComponent_default,Tooltip:Tooltip_default,ModalComponent:ModalComponent_default,SystemSummary:SystemSummary_default},props:{data:{type:Object,required:!1,default:()=>({})}},data(){return{summaryVisible:!1}},computed:{partsWithProduct(){return this.data.parts.map((e,t)=>({...e,index:t,messages:getPartMessages(e,this.$i18n)})).filter(e=>e.product)},messages(){return getSystemMessages(this.data.parts,this.$i18n)}},methods:{handleEditClick(e){eventBus.emit(`scroll-to-part`,{index:e,force:!0,isEdit:!0})}}},_hoisted_1$1={class:`nav-component`},_hoisted_2$1={class:`container`},_hoisted_3$1={class:`nav-component__track`},_hoisted_4$1={class:`nav-component__hover`},_hoisted_5$1={class:`material-symbols u-ml-1`};function _sfc_render$1(e,t,$,ed,td,nd){let rd=resolveComponent(`Tooltip`),id=resolveComponent(`ImageComponent`),ad=resolveComponent(`SystemSummary`),od=resolveComponent(`ModalComponent`);return openBlock(),createElementBlock(`div`,_hoisted_1$1,[createBaseVNode(`div`,_hoisted_2$1,[createBaseVNode(`div`,_hoisted_3$1,[createBaseVNode(`div`,null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.partsWithProduct,$=>(openBlock(),createElementBlock(`div`,{key:$.title,class:normalizeClass([`nav-component__img`,{"is-fully-configured":$.isFullyConfigured}])},[createBaseVNode(`div`,_hoisted_4$1,[createVNode(rd,{content:e.$i18n.global.edit,onClick:e=>nd.handleEditClick($.index)},{default:withCtx(()=>t[3]||=[createBaseVNode(`i`,{class:`material-symbols`},`edit`,-1)]),_:2},1032,[`content`,`onClick`]),createVNode(rd,{content:e.$i18n.global.remove,onClick:t=>e.$store.dispatch(`openConfirmationModal`,{title:e.$i18n.product.remove_product,part:$})},{default:withCtx(()=>t[4]||=[createBaseVNode(`i`,{class:`material-symbols u-color-danger`},`cancel`,-1)]),_:2},1032,[`content`,`onClick`])]),createVNode(rd,{content:$.messages.join(`<br>`)},{default:withCtx(()=>[createBaseVNode(`i`,{class:normalizeClass([`material-symbols u-color-danger`,{"u-color-success":$.isFullyConfigured}])},toDisplayString($.isFullyConfigured?`check_circle`:`error`),3)]),_:2},1032,[`content`]),createVNode(id,{image:$.product.image,width:`75`,height:`42.19`},null,8,[`image`])],2))),128))])]),createVNode(rd,{content:nd.messages.join(`<br>`),"is-top":!0,style:normalizeStyle($.data.assemblyIsComplete?`cursor: default`:null)},{default:withCtx(()=>[createBaseVNode(`p`,{class:normalizeClass({"is-complete":$.data.assemblyIsComplete})},[createBaseVNode(`span`,null,toDisplayString($.data.assemblyIsComplete?e.$i18n.global.assembly_complete:e.$i18n.global.assembly_incomplete),1),createBaseVNode(`i`,_hoisted_5$1,toDisplayString($.data.assemblyIsComplete?`check_circle`:`error`),1)],2)]),_:1},8,[`content`,`style`]),createBaseVNode(`button`,{class:`btn btn--accent`,onClick:t[0]||=e=>td.summaryVisible=!0},toDisplayString(e.$i18n.system_summary.title),1),withDirectives(createVNode(od,{title:`System Summary`,onClose:t[2]||=e=>td.summaryVisible=!1},{default:withCtx(()=>[createVNode(ad,{data:$.data,onClose:t[1]||=e=>td.summaryVisible=!1},null,8,[`data`])]),_:1},512),[[vShow,td.summaryVisible]])])])}var NavComponent_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`render`,_sfc_render$1],[`__scopeId`,`data-v-8cb9cd24`]]),scriptRel=`modulepreload`,assetsURL=function(e,t){return new URL(e,t).href},seen={},__vitePreload=function(e,t,$){let ed=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),td=document.querySelector(`meta[property=csp-nonce]`),nd=td?.nonce||td?.getAttribute(`nonce`);function rd(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}ed=rd(t.map(t=>{if(t=assetsURL(t,$),t in seen)return;seen[t]=!0;let ed=t.endsWith(`.css`),td=ed?`[rel="stylesheet"]`:``;if($)for(let $=e.length-1;$>=0;$--){let td=e[$];if(td.href===t&&(!ed||td.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${td}`))return;let rd=document.createElement(`link`);if(rd.rel=ed?`stylesheet`:scriptRel,ed||(rd.as=`script`),rd.crossOrigin=``,rd.href=t,nd&&rd.setAttribute(`nonce`,nd),document.head.appendChild(rd),ed)return new Promise((e,$)=>
56{rd.addEventListener(`load`,e),rd.addEventListener(`error`,()=>$(Error(`Unable to preload CSS for ${t}`)))})}))}function td(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return ed.then(t=>{for(let e of t||[])e.status===`rejected`&&td(e.reason);return e().catch(td)})},_sfc_main={name:`SystemBuilder`,components:{ComplianceFilter:ComplianceFilter_default,Tooltip:Tooltip_default,Part:Part_default,NavComponent:NavComponent_default,ModalComponent:ModalComponent_default},data(){return{system:null,searchFiltersMountScript:null,partProducts:{},partAccessories:{}}},computed:{data(){if(!this.system)return{assemblyIsComplete:!1,parts:[]};let e=this.system.parts.map(e=>{let t=this.partProducts[e.id]??null;return{...e,product:t,accessories:this.partAccessories[e.id]??{},isFullyConfigured:t?.fullyConfigured===!0,hasUnresolvedDependencies:t?.result?.has_unresolved_dependencies===!0,isDisabled:!t&&this.junctionMatches[e.id]?.length===0}});return{...this.system,parts:e,assemblyIsComplete:getSystemMessages(e,this.$i18n).length===0}},hasNav(){return this.data.parts.some(e=>e.product)},selectedPart(){return this.$store.state.addProductModal.part},junctionMatches(){return Object.fromEntries((this.system?.parts??[]).map(e=>[e.id,this.getJunctionMatches(e.id)]))},searchFiltersAttributes(){return{...this.$globalData.searchFilters,"data-immutable-filters":encodeURIComponent(JSON.stringify({systemjunction:this.selectedPart?this.junctionMatches[this.selectedPart.id]??[]:[]}))}}},watch:{selectedPart(e){if(e){this.mountSearchFilters();return}this.unmountSearchFilters()}},mounted(){this.fetchSystem(),document.addEventListener(`selectItem`,this.handleSelectItem)},beforeUnmount(){document.removeEventListener(`selectItem`,this.handleSelectItem),this.unmountSearchFilters()},methods:{async handleSelectItem(e){if(!this.selectedPart)return;let t=this.data.parts.findIndex(e=>e.id===this.selectedPart.id),{item:$}=e.detail;this.partProducts={...this.partProducts,[this.selectedPart.id]:$},document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Add Product`,eventLabel:$.title,additionalFields:[`system`,`part`],system:this.$globalData.systemId,part:this.selectedPart.title}})),this.setAccessories(this.selectedPart,{}),this.$store.dispatch(`closeAddProductModal`),await this.$nextTick(),eventBus.emit(`scroll-to-part`,{index:t,force:!0,isEdit:!1})},handleConfigChange(e,t){this.partProducts={...this.partProducts,[e.id]:{...this.partProducts[e.id],...t}}},removeProduct(e){document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Remove Product`,eventLabel:`${e.product.title} > ${e.product.selectedString}`,additionalFields:[`system`,`part`],system:this.$globalData.systemId,part:e.title}})),this.partProducts={...this.partProducts,[e.id]:null},this.setAccessories(e,{}),this.$store.dispatch(`closeConfirmationModal`)},handleAccessoryAdd(e,t){document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Add Accessory`,eventLabel:t.title,additionalFields:[`system`,`part`,`product`],system:this.$globalData.systemId,part:e.title,product:`${e.product.title} > ${e.product.selectedString}`}})),this.setAccessories(e,{...this.partAccessories[e.id],[t.id]:t})},handleAccessoryRemove(e,t){let $={...this.partAccessories[e.id]};document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`System Builder`,eventAction:`Remove Accessory`,eventLabel:`${t.title} > ${$[t.id].selectedString}`,additionalFields:[`system`,`part`,`product`],system:this.$globalData.systemId,part:e.title,product:`${e.product.title} > ${e.product.selectedString}`}})),delete $[t.id],this.setAccessories(e,$)},handleAccessoryConfigChange(e,t,$){this.setAccessories(e,{...this.partAccessories[e.id],[t.id]:{...this.partAccessories[e.id]?.[t.id],...$}})},setAccessories(e,t){this.partAccessories={...this.partAccessories,[e.id]:t}},getProductMatches(e){let t=this.partProducts[e];return t?(t.systems??[]).filter(t=>t.system_id===this.system?.id&&t.part_id===e).map(e=>e.match_id):null},getJunctionMatches(e){let t=[],$=[];return(this.system?.junctions??[]).filter(t=>t.first_part_id===e||t.second_part_id===e).forEach(ed=>{let td=ed.first_part_id===e?ed.second_part_id:ed.first_part_id,nd=ed.matches.map(e=>e.id),rd=this.getProductMatches(td);if(rd===null){t.push(...nd);return}let id=nd.filter(e=>rd.includes(e));id.length&&$.push(id.map(t=>`${t}_${e}`))}),t.length&&$.unshift(t.map(t=>`${t}_${e}`)),$},async mountSearchFilters(){await this.$nextTick();let{default:e}=await __vitePreload(async()=>{let{default:e}=await import(`./app.bundle-CfPAxoFN.js`);return{default:e}},[],import.meta.url);this.unmountSearchFilters(),this.searchFiltersMountScript=document.createElement(`script`),this.searchFiltersMountScript.src=e,document.body.appendChild(this.searchFiltersMountScript)},unmountSearchFilters(){let e=new URL(window.location.href),t=[...e.searchParams.keys()].filter(e=>e!==`cmspreview`);this.$refs.searchFilters?.__vue_app__?.unmount(),this.searchFiltersMountScript?.remove(),this.searchFiltersMountScript=null,t.length&&(t.forEach(t=>e.searchParams.delete(t)),window.history.replaceState({},``,e.toString()))},async fetchSystem(){try{this.system=(await this.$axios({method:`get`,url:this.$globalData.systemApi,params:{lang:global_default.itemLocale,region:global_default.region},headers:{Project:global_default.project}})).data.data}catch(e){console.error(`error`,e)}}}},_hoisted_1={class:`system-builder`},_hoisted_2={key:0},_hoisted_3={key:1,class:`system-builder__filters`},_hoisted_4={class:`search-filters-app-root`},_hoisted_5={class:`u-display-flex u-justify-content-center`};function _sfc_render(e,t,$,ed,td,nd){let rd=resolveComponent(`Tooltip`),id=resolveComponent(`ComplianceFilter`),ad=resolveComponent(`Part`),od=resolveComponent(`NavComponent`),sd=resolveComponent(`ModalComponent`);return openBlock(),createBlock(resolveDynamicComponent(e.$globalData.modal?`ModalComponent`:`div`),{class:normalizeClass({"system-builder
56-modal":e.$globalData.modal})},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1,[nd.data.title?(openBlock(),createElementBlock(`h2`,_hoisted_2,toDisplayString(nd.data.title),1)):createCommentVNode(``,!0),e.$store.state.complianceEnabled?(openBlock(),createElementBlock(`div`,_hoisted_3,[(openBlock(),createBlock(rd,{key:0,content:`<strong>${e.$i18n.darksky.filter_not_available}</strong><br>${e.$i18n.darksky.filter_tooltip_desc}`},{default:withCtx(()=>t[6]||=[createBaseVNode(`i`,{class:`material-symbols`},`info`,-1)]),_:1},8,[`content`])),createVNode(id,{checked:!1,disabled:!0,type:`darksky`,onComplianceFilterChanged:t[0]||=t=>e.$store.dispatch(`setComplianceFilter`,`darksky`)}),(openBlock(),createBlock(rd,{key:1,content:`<strong>${e.$i18n.quickship.filter_not_available}</strong><br>${e.$i18n.quickship.filter_tooltip_desc}`},{default:withCtx(()=>t[7]||=[createBaseVNode(`i`,{class:`material-symbols`},`info`,-1)]),_:1},8,[`content`])),createVNode(id,{checked:!1,disabled:!0,onComplianceFilterChanged:t[1]||=t=>e.$store.dispatch(`setComplianceFilter`,`quickship`)})])):createCommentVNode(``,!0),createBaseVNode(`div`,null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(nd.data.parts,(e,t)=>(openBlock(),createBlock(ad,{key:e.title,index:t,data:e,onConfigChange:nd.handleConfigChange,onAccessoryAdd:nd.handleAccessoryAdd,onAccessoryRemove:nd.handleAccessoryRemove,onAccessoryConfigChange:nd.handleAccessoryConfigChange},null,8,[`index`,`data`,`onConfigChange`,`onAccessoryAdd`,`onAccessoryRemove`,`onAccessoryConfigChange`]))),128))]),nd.hasNav?(openBlock(),createBlock(od,{key:2,data:nd.data},null,8,[`data`])):createCommentVNode(``,!0),e.$store.state.addProductModal.visible?(openBlock(),createBlock(sd,{key:3,title:e.$store.state.addProductModal.title??``,"max-width":1376,onClose:t[2]||=t=>e.$store.dispatch(`closeAddProductModal`)},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_4,[createBaseVNode(`div`,mergeProps({id:`app`,ref:`searchFilters`},nd.searchFiltersAttributes),null,16)])]),_:1},8,[`title`])):createCommentVNode(``,!0),e.$store.state.confirmationModal.visible?(openBlock(),createBlock(sd,{key:4,title:e.$store.state.confirmationModal.title,"max-width":480,onClose:t[5]||=t=>e.$store.dispatch(`closeConfirmationModal`)},{default:withCtx(()=>[createBaseVNode(`h3`,null,[createTextVNode(toDisplayString(e.$i18n.product.remove_confirmation1)+` `,1),createBaseVNode(`strong`,null,toDisplayString(e.$store.state.confirmationModal.part.product.title),1),createTextVNode(` `+toDisplayString(e.$i18n.product.remove_confirmation2)+` `,1),createBaseVNode(`strong`,null,toDisplayString(e.$store.state.confirmationModal.part.title),1),t[8]||=createTextVNode(`? `)]),createBaseVNode(`div`,_hoisted_5,[createBaseVNode(`button`,{class:`btn btn--danger u-mr-1`,onClick:t[3]||=t=>nd.removeProduct(e.$store.state.confirmationModal.part)},toDisplayString(e.$i18n.global.remove),1),createBaseVNode(`button`,{class:`btn btn--secondary`,onClick:t[4]||=t=>e.$store.dispatch(`closeConfirmationModal`)},toDisplayString(e.$i18n.global.cancel),1)])]),_:1},8,[`title`])):createCommentVNode(``,!0)])]),_:1},8,[`class`])}var SystemBuilder_default=_plugin_vue_export_helper_default(_sfc_main,[[`render`,_sfc_render],[`__scopeId`,`data-v-6dd0595e`]]),systemBuilder=document.querySelector(`system-builder`);if(systemBuilder){let e={};Object.entries(systemBuilder.dataset).forEach(([t,$])=>{[`i18n`,`searchFilters`].includes(t)?e[t]=JSON.parse($):e[t]=$});let t=createApp(SystemBuilder_default);t.use(store_default),t.config.globalProperties.$axios=import_axios.default,t.config.globalProperties.$globalData=e,t.config.globalProperties.$i18n=e.i18n,t.mount(systemBuilder)}var require_underscore_umd_min=__commonJSMin(((e,t)=>{init_dist$1(),(function($,ed){typeof e==`object`&&t!==void 0?t.exports=ed():typeof define==`function`&&define.amd?define(`underscore`,ed):($=typeof globalThis<`u`?globalThis:$||self,function(){var e=$._,t=$._=ed();t.noConflict=function(){return $._=e,t}}())})(e,(function(){var e=`1.13.1`,t=typeof self==`object`&&self.self===self&&self||typeof global==`object`&&global.global===global&&global||Function(`return this`)()||{},$=Array.prototype,ed=Object.prototype,td=typeof Symbol<`u`?Symbol.prototype:null,nd=$.push,rd=$.slice,id=ed.toString,ad=ed.hasOwnProperty,od=typeof ArrayBuffer<`u`,sd=typeof DataView<`u`,cd=Array.isArray,ld=Object.keys,ud=Object.create,dd=od&&ArrayBuffer.isView,fd=isNaN,pd=isFinite,md=!{toString:null}.propertyIsEnumerable(`toString`),hd=[`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleStr
56ing`],gd=2**53-1;function _d(e,t){return t=t==null?e.length-1:+t,function(){for(var $=Math.max(arguments.length-t,0),ed=Array($),td=0;td<$;td++)ed[td]=arguments[td+t];switch(t){case 0:return e.call(this,ed);case 1:return e.call(this,arguments[0],ed);case 2:return e.call(this,arguments[0],arguments[1],ed)}var nd=Array(t+1);for(td=0;td<t;td++)nd[td]=arguments[td];return nd[t]=ed,e.apply(this,nd)}}function vd(e){var t=typeof e;return t===`function`||t===`object`&&!!e}function yd(e){return e===void 0}function bd(e){return!0===e||!1===e||id.call(e)===`[object Boolean]`}function xd(e){var t=`[object `+e+`]`;return function(e){return id.call(e)===t}}var Sd=xd(`String`),Cd=xd(`Number`),wd=xd(`Date`),Td=xd(`RegExp`),Ed=xd(`Error`),Dd=xd(`Symbol`),Od=xd(`ArrayBuffer`),kd=xd(`Function`),Ad=t.document&&t.document.childNodes;typeof/./!=`function`&&typeof Int8Array!=`object`&&typeof Ad!=`function`&&(kd=function(e){return typeof e==`function`||!1});var jd=kd,Md=xd(`Object`),Nd=sd&&Md(new DataView(new ArrayBuffer(8))),Pd=typeof Map<`u`&&Md(new Map),Fd=xd(`DataView`),Id=Nd?function(e){return e!=null&&jd(e.getInt8)&&Od(e.buffer)}:Fd,Ld=cd||xd(`Array`);function Rd(e,t){return e!=null&&ad.call(e,t)}var zd=xd(`Arguments`);(function(){zd(arguments)||(zd=function(e){return Rd(e,`callee`)})})();var Bd=zd;function Vd(e){return Cd(e)&&fd(e)}function Hd(e){return function(){return e}}function Ud(e){return function(t){var $=e(t);return typeof $==`number`&&$>=0&&$<=gd}}function Wd(e){return function(t){return t?.[e]}}var Gd=Wd(`byteLength`),Kd=Ud(Gd),qd=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Jd=od?function(e){return dd?dd(e)&&!Id(e):Kd(e)&&qd.test(id.call(e))}:Hd(!1),Yd=Wd(`length`);function Xd(e,t){t=function(e){for(var t={},$=e.length,ed=0;ed<$;++ed)t[e[ed]]=!0;return{contains:function(e){return t[e]},push:function($){return t[$]=!0,e.push($)}}}(t);var $=hd.length,td=e.constructor,nd=jd(td)&&td.prototype||ed,rd=`constructor`;for(Rd(e,rd)&&!t.contains(rd)&&t.push(rd);$--;)(rd=hd[$])in e&&e[rd]!==nd[rd]&&!t.contains(rd)&&t.push(rd)}function Zd(e){if(!vd(e))return[];if(ld)return ld(e);var t=[];for(var $ in e)Rd(e,$)&&t.push($);return md&&Xd(e,t),t}function Qd(e,t){var $=Zd(t),ed=$.length;if(e==null)return!ed;for(var td=Object(e),nd=0;nd<ed;nd++){var rd=$[nd];if(t[rd]!==td[rd]||!(rd in td))return!1}return!0}function $d(e){return e instanceof $d?e:this instanceof $d?void(this._wrapped=e):new $d(e)}function ef(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Gd(e))}$d.VERSION=e,$d.prototype.value=function(){return this._wrapped},$d.prototype.valueOf=$d.prototype.toJSON=$d.prototype.value,$d.prototype.toString=function(){return String(this._wrapped)};var tf=`[object DataView]`;function nf(e,t,$,ed){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!=e)return t!=t;var nd=typeof e;return(nd===`function`||nd===`object`||typeof t==`object`)&&function e(t,$,ed,nd){t instanceof $d&&(t=t._wrapped),$ instanceof $d&&($=$._wrapped);var rd=id.call(t);if(rd!==id.call($))return!1;if(Nd&&rd==`[object Object]`&&Id(t)){if(!Id($))return!1;rd=tf}switch(rd){case`[object RegExp]`:case`[object String]`:return``+t==``+$;case`[object Number]`:return+t==+t?+t==0?1/t==1/$:+t==+$:+$!=+$;case`[object Date]`:case`[object Boolean]`:return+t==+$;case`[object Symbol]`:return td.valueOf.call(t)===td.valueOf.call($);case`[object ArrayBuffer]`:case tf:return e(ef(t),ef($),ed,nd)}var ad=rd===`[object Array]`;if(!ad&&Jd(t)){if(Gd(t)!==Gd($))return!1;if(t.buffer===$.buffer&&t.byteOffset===$.byteOffset)return!0;ad=!0}if(!ad){if(typeof t!=`object`||typeof $!=`object`)return!1;var od=t.constructor,sd=$.constructor;if(od!==sd&&!(jd(od)&&od instanceof od&&jd(sd)&&sd instanceof sd)&&`constructor`in t&&`constructor`in $)return!1}nd||=[];for(var cd=(ed||=[]).length;cd--;)if(ed[cd]===t)return nd[cd]===$;if(ed.push(t),nd.push($),ad){if((cd=t.length)!==$.length)return!1;for(;cd--;)if(!nf(t[cd],$[cd],ed,nd))return!1}else{var ld,ud=Zd(t);if(cd=ud.length,Zd($).length!==cd)return!1;for(;cd--;)if(ld=ud[cd],!Rd($,ld)||!nf(t[ld],$[ld],ed,nd))return!1}return ed.pop(),nd.pop(),!0}(e,t,$,ed)}function rf(e){if(!vd(e))return[];var t=[];for(var $ in e)t.push($);return md&&Xd(e,t),t}function af(e){var t=Yd(e);return function($){if($==null||Yd(rf($)))return!1;for(var ed=0;ed<t;ed++)if(!jd($[e[ed]]))return!1;return e!==df||!jd($[of])}}var of=`forEach`,sf=`has`,cf=[`clear`,`delete`],lf=[`get`,sf,`set`],uf=cf.concat(of,lf),df=cf.concat(lf),ff=[`add`].concat(cf,of,sf),pf=Pd?af(uf):xd(`Map`),mf=Pd?af(df):xd(`WeakMap`),hf=Pd?af(ff):xd(`Set`),gf=xd(`WeakSet`);function _f(e){for(var t=Zd(e),$=t.length,ed=Array($),td=0;td<$;td++)ed[td]=e[t[td]];return ed}function vf(e){for(var t={},$=Zd(e),ed=0,td=$.length;ed<td;ed++)t[e[$[ed]]]=$[ed];return t}function yf(e){var t=[];for(var $ in e)jd(e[$])&&t.push($);return t.sort()}function bf(e,t){return function($){var ed=arguments.length;if(t&&($=Object($)),ed<2||$==null)return $;for(var td=1;td<ed;td++)for(var nd=arguments[td],rd=e(nd),id=rd.length,ad=0;ad<id;ad++){var od=rd[ad];t&&$[od]!==void 0||($[od]=nd[od])}return $}}var xf=bf(rf),Sf=bf(Zd),Cf=bf(rf,!0);function wf(e){if(!vd(e))return{};if(ud)return ud(e);var t=function(){};t.prototype=e;var $=new t;return t.prototype=null,$}function Tf(e){return vd(e)?Ld(e)?e.slice():xf({},e):e}function Ef(e){return Ld(e)?e:[e]}function Df(e){return $d.toPath(e)}function Of(e,t){for(var $=t.length,ed=0;ed<$;ed++){if(e==null)return;e=e[t[ed]]}return $?e:void 0}function kf(e,t,$){var ed=Of(e,Df(t));return yd(ed)?$:ed}function Af(e){return e}function jf(e){return e=Sf({},e),function(t){return Qd(t,e)}}function Mf(e){return e=Df(e),function(t){return Of(t,e)}}function Nf(e,t,$){if(t===void 0)return e;switch($??3){case 1:return function($){return e.call(t,$)};case 3:return function($,ed,td){return e.call(t,$,ed,td)};case 4:return function($,ed,td,nd){return e.call(t,$,ed,td,nd)}}return function(){return e.apply(t,arguments)}}function Pf(e,t,$){return e==null?Af:jd(e)?Nf(e,t,$):vd(e)&&!Ld(e)?
56jf(e):Mf(e)}function Ff(e,t){return Pf(e,t,1/0)}function If(e,t,$){return $d.iteratee===Ff?Pf(e,t,$):$d.iteratee(e,t)}function Lf(){}function Rf(e,t){return t??(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}$d.toPath=Ef,$d.iteratee=Ff;var zf=Date.now||function(){return new Date().getTime()};function Bf(e){var t=function(t){return e[t]},$=`(?:`+Zd(e).join(`|`)+`)`,ed=RegExp($),td=RegExp($,`g`);return function(e){return e=e==null?``:``+e,ed.test(e)?e.replace(td,t):e}}var Vf={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"`":```},Hf=Bf(Vf),Uf=Bf(vf(Vf)),Wf=$d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Gf=/(.)^/,Kf={"'":`'`,"\\":`\\`,"\r":`r`,"\n":`n`,"\u2028":`u2028`,"\u2029":`u2029`},qf=/\\|'|\r|\n|\u2028|\u2029/g;function Jf(e){return`\\`+Kf[e]}var Yf=/^\s*(\w|\$)+\s*$/,Xf=0;function Zf(e,t,$,ed,td){if(!(ed instanceof t))return e.apply($,td);var nd=wf(e.prototype),rd=e.apply(nd,td);return vd(rd)?rd:nd}var Qf=_d((function(e,t){var $=Qf.placeholder,ed=function(){for(var td=0,nd=t.length,rd=Array(nd),id=0;id<nd;id++)rd[id]=t[id]===$?arguments[td++]:t[id];for(;td<arguments.length;)rd.push(arguments[td++]);return Zf(e,ed,this,this,rd)};return ed}));Qf.placeholder=$d;var $f=_d((function(e,t,$){if(!jd(e))throw TypeError(`Bind must be called on a function`);var ed=_d((function(td){return Zf(e,ed,t,this,$.concat(td))}));return ed})),em=Ud(Yd);function tm(e,t,$,ed){if(ed||=[],t||t===0){if(t<=0)return ed.concat(e)}else t=1/0;for(var td=ed.length,nd=0,rd=Yd(e);nd<rd;nd++){var id=e[nd];if(em(id)&&(Ld(id)||Bd(id)))if(t>1)tm(id,t-1,$,ed),td=ed.length;else for(var ad=0,od=id.length;ad<od;)ed[td++]=id[ad++];else $||(ed[td++]=id)}return ed}var nm=_d((function(e,t){var $=(t=tm(t,!1,!1)).length;if($<1)throw Error(`bindAll must be passed function names`);for(;$--;){var ed=t[$];e[ed]=$f(e[ed],e)}return e})),rm=_d((function(e,t,$){return setTimeout((function(){return e.apply(null,$)}),t)})),im=Qf(rm,$d,1);function am(e){return function(){return!e.apply(this,arguments)}}function om(e,t){var $;return function(){return--e>0&&($=t.apply(this,arguments)),e<=1&&(t=null),$}}var sm=Qf(om,2);function cm(e,t,$){t=If(t,$);for(var ed,td=Zd(e),nd=0,rd=td.length;nd<rd;nd++)if(t(e[ed=td[nd]],ed,e))return ed}function lm(e){return function(t,$,ed){$=If($,ed);for(var td=Yd(t),nd=e>0?0:td-1;nd>=0&&nd<td;nd+=e)if($(t[nd],nd,t))return nd;return-1}}var um=lm(1),dm=lm(-1);function fm(e,t,$,ed){for(var td=($=If($,ed,1))(t),nd=0,rd=Yd(e);nd<rd;){var id=Math.floor((nd+rd)/2);$(e[id])<td?nd=id+1:rd=id}return nd}function pm(e,t,$){return function(ed,td,nd){var id=0,ad=Yd(ed);if(typeof nd==`number`)e>0?id=nd>=0?nd:Math.max(nd+ad,id):ad=nd>=0?Math.min(nd+1,ad):nd+ad+1;else if($&&nd&&ad)return ed[nd=$(ed,td)]===td?nd:-1;if(td!=td)return(nd=t(rd.call(ed,id,ad),Vd))>=0?nd+id:-1;for(nd=e>0?id:ad-1;nd>=0&&nd<ad;nd+=e)if(ed[nd]===td)return nd;return-1}}var mm=pm(1,um,fm),hm=pm(-1,dm);function gm(e,t,$){var ed=(em(e)?um:cm)(e,t,$);if(ed!==void 0&&ed!==-1)return e[ed]}function _m(e,t,$){var ed,td;if(t=Nf(t,$),em(e))for(ed=0,td=e.length;ed<td;ed++)t(e[ed],ed,e);else{var nd=Zd(e);for(ed=0,td=nd.length;ed<td;ed++)t(e[nd[ed]],nd[ed],e)}return e}function vm(e,t,$){t=If(t,$);for(var ed=!em(e)&&Zd(e),td=(ed||e).length,nd=Array(td),rd=0;rd<td;rd++){var id=ed?ed[rd]:rd;nd[rd]=t(e[id],id,e)}return nd}function ym(e){var t=function(t,$,ed,td){var nd=!em(t)&&Zd(t),rd=(nd||t).length,id=e>0?0:rd-1;for(td||(ed=t[nd?nd[id]:id],id+=e);id>=0&&id<rd;id+=e){var ad=nd?nd[id]:id;ed=$(ed,t[ad],ad,t)}return ed};return function(e,$,ed,td){var nd=arguments.length>=3;return t(e,Nf($,td,4),ed,nd)}}var bm=ym(1),xm=ym(-1);function Sm(e,t,$){var ed=[];return t=If(t,$),_m(e,(function(e,$,td){t(e,$,td)&&ed.push(e)})),ed}function Cm(e,t,$){t=If(t,$);for(var ed=!em(e)&&Zd(e),td=(ed||e).length,nd=0;nd<td;nd++){var rd=ed?ed[nd]:nd;if(!t(e[rd],rd,e))return!1}return!0}function wm(e,t,$){t=If(t,$);for(var ed=!em(e)&&Zd(e),td=(ed||e).length,nd=0;nd<td;nd++){var rd=ed?ed[nd]:nd;if(t(e[rd],rd,e))return!0}return!1}function Tm(e,t,$,ed){return em(e)||(e=_f(e)),(typeof $!=`number`||ed)&&($=0),mm(e,t,$)>=0}var Em=_d((function(e,t,$){var ed,td;return jd(t)?td=t:(t=Df(t),ed=t.slice(0,-1),t=t[t.length-1]),vm(e,(function(e){var nd=td;if(!nd){if(ed&&ed.length&&(e=Of(e,ed)),e==null)return;nd=e[t]}return nd==null?nd:nd.apply(e,$)}))}));function Dm(e,t){return vm(e,Mf(t))}
56function Om(e,t,$){var ed,td,nd=-1/0,rd=-1/0;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null)for(var id=0,ad=(e=em(e)?e:_f(e)).length;id<ad;id++)(ed=e[id])!=null&&ed>nd&&(nd=ed);else t=If(t,$),_m(e,(function(e,$,ed){((td=t(e,$,ed))>rd||td===-1/0&&nd===-1/0)&&(nd=e,rd=td)}));return nd}function km(e,t,$){if(t==null||$)return em(e)||(e=_f(e)),e[Rf(e.length-1)];var ed=em(e)?Tf(e):_f(e),td=Yd(ed);t=Math.max(Math.min(t,td),0);for(var nd=td-1,rd=0;rd<t;rd++){var id=Rf(rd,nd),ad=ed[rd];ed[rd]=ed[id],ed[id]=ad}return ed.slice(0,t)}function Am(e,t){return function($,ed,td){var nd=t?[[],[]]:{};return ed=If(ed,td),_m($,(function(t,td){e(nd,t,ed(t,td,$))})),nd}}var jm=Am((function(e,t,$){Rd(e,$)?e[$].push(t):e[$]=[t]})),Mm=Am((function(e,t,$){e[$]=t})),Nm=Am((function(e,t,$){Rd(e,$)?e[$]++:e[$]=1})),Pm=Am((function(e,t,$){e[+!$].push(t)}),!0),Fm=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Im(e,t,$){return t in $}var Lm=_d((function(e,t){var $={},ed=t[0];if(e==null)return $;jd(ed)?(t.length>1&&(ed=Nf(ed,t[1])),t=rf(e)):(ed=Im,t=tm(t,!1,!1),e=Object(e));for(var td=0,nd=t.length;td<nd;td++){var rd=t[td],id=e[rd];ed(id,rd,e)&&($[rd]=id)}return $})),Rm=_d((function(e,t){var $,ed=t[0];return jd(ed)?(ed=am(ed),t.length>
561&&($=t[1])):(t=vm(tm(t,!1,!1),String),ed=function(e,$){return!Tm(t,$)}),Lm(e,ed,$)}));function zm(e,t,$){return rd.call(e,0,Math.max(0,e.length-(t==null||$?1:t)))}function Bm(e,t,$){return e==null||e.length<1?t==null||$?void 0:[]:t==null||$?e[0]:zm(e,e.length-t)}function Vm(e,t,$){return rd.call(e,t==null||$?1:t)}var Hm=_d((function(e,t){return t=tm(t,!0,!0),Sm(e,(function(e){return!Tm(t,e)}))})),Um=_d((function(e,t){return Hm(e,t)}));function Wm(e,t,$,ed){bd(t)||(ed=$,$=t,t=!1),$!=null&&($=If($,ed));for(var td=[],nd=[],rd=0,id=Yd(e);rd<id;rd++){var ad=e[rd],od=$?$(ad,rd,e):ad;t&&!$?(rd&&nd===od||td.push(ad),nd=od):$?Tm(nd,od)||(nd.push(od),td.push(ad)):Tm(td,ad)||td.push(ad)}return td}var Gm=_d((function(e){return Wm(tm(e,!0,!0))}));function Km(e){for(var t=e&&Om(e,Yd).length||0,$=Array(t),ed=0;ed<t;ed++)$[ed]=Dm(e,ed);return $}var qm=_d(Km);function Jm(e,t){return e._chain?$d(t).chain():t}function Ym(e){return _m(yf(e),(function(t){var $=$d[t]=e[t];$d.prototype[t]=function(){var e=[this._wrapped];return nd.apply(e,arguments),Jm(this,$.apply($d,e))}})),$d}_m([`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`],(function(e){var t=$[e];$d.prototype[e]=function(){var $=this._wrapped;return $!=null&&(t.apply($,arguments),e!==`shift`&&e!==`splice`||$.length!==0||delete $[0]),Jm(this,$)}})),_m([`concat`,`join`,`slice`],(function(e){var t=$[e];$d.prototype[e]=function(){var e=this._wrapped;return e!=null&&(e=t.apply(e,arguments)),Jm(this,e)}}));var Xm=Ym({__proto__:null,VERSION:e,restArguments:_d,isObject:vd,isNull:function(e){return e===null},isUndefined:yd,isBoolean:bd,isElement:function(e){return!(!e||e.nodeType!==1)},isString:Sd,isNumber:Cd,isDate:wd,isRegExp:Td,isError:Ed,isSymbol:Dd,isArrayBuffer:Od,isDataView:Id,isArray:Ld,isFunction:jd,isArguments:Bd,isFinite:function(e){return!Dd(e)&&pd(e)&&!isNaN(parseFloat(e))},isNaN:Vd,isTypedArray:Jd,isEmpty:function(e){if(e==null)return!0;var t=Yd(e);return typeof t==`number`&&(Ld(e)||Sd(e)||Bd(e))?t===0:Yd(Zd(e))===0},isMatch:Qd,isEqual:function(e,t){return nf(e,t)},isMap:pf,isWeakMap:mf,isSet:hf,isWeakSet:gf,keys:Zd,allKeys:rf,values:_f,pairs:function(e){for(var t=Zd(e),$=t.length,ed=Array($),td=0;td<$;td++)ed[td]=[t[td],e[t[td]]];return ed},invert:vf,functions:yf,methods:yf,extend:xf,extendOwn:Sf,assign:Sf,defaults:Cf,create:function(e,t){var $=wf(e);return t&&Sf($,t),$},clone:Tf,tap:function(e,t){return t(e),e},get:kf,has:function(e,t){for(var $=(t=Df(t)).length,ed=0;ed<$;ed++){var td=t[ed];if(!Rd(e,td))return!1;e=e[td]}return!!$}
56,mapObject:function(e,t,$){t=If(t,$);for(var ed=Zd(e),td=ed.length,nd={},rd=0;rd<td;rd++){var id=ed[rd];nd[id]=t(e[id],id,e)}return nd},identity:Af,constant:Hd,noop:Lf,toPath:Ef,property:Mf,propertyOf:function(e){return e==null?Lf:function(t){return kf(e,t)}},matcher:jf,matches:jf,times:function(e,t,$){var ed=Array(Math.max(0,e));t=Nf(t,$,1);for(var td=0;td<e;td++)ed[td]=t(td);return ed},random:Rf,now:zf,escape:Hf,unescape:Uf,templateSettings:Wf,template:function(e,t,$){!t&&$&&(t=$),t=Cf({},t,$d.templateSettings);var ed=RegExp([(t.escape||Gf).source,(t.interpolate||Gf).source,(t.evaluate||Gf).source].join(`|`)+`|$`,`g`),td=0,nd=`__p+='`;e.replace(ed,(function(t,$,ed,rd,id){return nd+=e.slice(td,id).replace(qf,Jf),td=id+t.length,$?nd+=`'+ 57((__t=(`+$+`))==null?'':_.escape(__t))+ 58'`:ed?nd+=`'+ 59((__t=(`+ed+`))==null?'':__t)+ 60'`:rd&&(nd+=`'; 61`+rd+` 62__p+='`),t})),nd+=`'; 63`;var rd,id=t.variable;if(id){if(!Yf.test(id))throw Error(`variable is not a bare identifier: `+id)}else nd=`with(obj||{}){ 64`+nd+`} 65`,id=`obj`;nd=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 66`+nd+`return __p; 67`;try{rd=Function(id,`_`,nd)}catch(e){throw e.source=nd,e}var ad=function(e){return rd.call(this,e,$d)};return ad.source=`function(`+id+`){ 68`+nd+`}`,ad},result:function(e,t,$){var ed=(t=Df(t)).length;if(!ed)return jd($)?$.call(e):$;for(var td=0;td<ed;td++){var nd=e?.[t[td]];nd===void 0&&(nd=$,td=ed),e=jd(nd)?nd.call(e):nd}return e},uniqueId:function(e){var t=++Xf+``;return e?e+t:t},chain:function(e){var t=$d(e);return t._chain=!0,t},iteratee:Ff,partial:Qf,bind:$f,bindAll:nm,memoize:function(e,t){var $=function(ed){var td=$.cache,nd=``+(t?t.apply(this,arguments):ed);return Rd(td,nd)||(td[nd]=e.apply(this,arguments)),td[nd]};return $.cache={},$},delay:rm,defer:im,throttle:function(e,t,$){var ed,td,nd,rd,id=0;$||={};var ad=function(){id=!1===$.leading?0:zf(),ed=null,rd=e.apply(td,nd),ed||(td=nd=null)},od=function(){var od=zf();id||!1!==$.leading||(id=od);var sd=t-(od-id);return td=this,nd=arguments,sd<=0||sd>t?(ed&&=(clearTimeout(ed),null),id=od,rd=e.apply(td,nd),ed||(td=nd=null)):ed||!1===$.trailing||(ed=setTimeout(ad,sd)),rd};return od.cancel=function(){clearTimeout(ed),id=0,ed=td=nd=null},od},debounce:function(e,t,$){var ed,td,nd,rd,id,ad=function(){var od=zf()-td;t>od?ed=setTimeout(ad,t-od):(ed=null,$||(rd=e.apply(id,nd)),ed||(nd=id=null))},od=_d((function(od){return id=this,nd=od,td=zf(),ed||(ed=setTimeout(ad,t),$&&(rd=e.apply(id,nd))),rd}));return od.cancel=function(){clearTimeout(ed),ed=nd=id=null},od},wrap:function(e,t){return Qf(t,e)},negate:am,compose:function(){var e=arguments,t=e.length-1;return function(){for(var $=t,ed=e[t].apply(this,arguments);$--;)ed=e[$].call(this,ed);return ed}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:om,once:sm,findKey:cm,findIndex:um,findLastIndex:dm,sortedIndex:fm,indexOf:mm,lastIndexOf:hm,find:gm,detect:gm,findWhere:function(e,t){return gm(e,jf(t))},each:_m,forEach:_m,map:vm,collect:vm,reduce:bm,foldl:bm,inject:bm,reduceRight:xm,foldr:xm,filter:Sm,select:Sm,reject:function(e,t,$){return Sm(e,am(If(t)),$)},every:Cm,all:Cm,some:wm,any:wm,contains:Tm,includes:Tm,include:Tm,invoke:Em,pluck:Dm,where:function(e,t){return Sm(e,jf(t))},max:Om,min:function(e,t,$){var ed,td,nd=1/0,rd=1/0;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null)for(var id=0,ad=(e=em(e)?e:_f(e)).length;id<ad;id++)(ed=e[id])!=null&&ed<nd&&(nd=ed);else t=If(t,$),_m(e,(function(e,$,ed){((td=t(e,$,ed))<rd||td===1/0&&nd===1/0)&&(nd=e,rd=td)}));return nd},shuffle:function(e){return km(e,1/0)},sample:km,sortBy:function(e,t,$){var ed=0;return t=If(t,$),Dm(vm(e,(function(e,$,td){return{value:e,index:ed++,criteria:t(e,$,td)}})).sort((function(e,t){var $=e.criteria,ed=t.criteria;if($!==ed){if($>ed||$===void 0)return 1;if($<ed||ed===void 0)return-1}return e.index-t.index})),`value`)},groupBy:jm,indexBy:Mm,countBy:Nm,partition:Pm,toArray:function(e){return e?Ld(e)?rd.call(e):Sd(e)?e.match(Fm):em(e)?vm(e,Af):_f(e):[]},size:function(e){return e==null?0:em(e)?e.length:Zd(e).length},pick:Lm,omit:Rm,first:Bm,head:Bm,take:Bm,initial:zm,last:function(e,t,$){return e==null||e.length<1?t==null||$?void 0:[]:t==null||$?e[e.length-1]:Vm(e,Math.max(0,e.length-t))},rest:Vm,tail:Vm,drop:Vm,compact:function(e){return Sm(e,Boolean)},flatten:function(e,t){return tm(e,t,!1)},without:Um,uniq:Wm,unique:Wm,union:Gm,intersection:function(e){for(var t=[],$=arguments.length,ed=0,td=Yd(e);ed<td;ed++){var nd=e[ed];if(!Tm(t,nd)){var rd;for(rd=1;rd<$&&Tm(arguments[rd],nd);rd++);rd===$&&t.push(nd)}}return t},difference:Hm,unzip:Km,transpose:Km,zip:qm,object:function(e,t){for(var $={},ed=0,td=Yd(e);ed<td;ed++)t?$[e[ed]]=t[ed]:$[e[ed][0]]=e[ed][1];return $},range:function(e,t,$){t??(t=e||0,e=0),$||=t<e?-1:1;for(var ed=Math.max(Math.ceil((t-e)/$),0),td=Array(ed),nd=0;nd<ed;nd++,e+=$)td[nd]=e;return td},chunk:function(e,t){if(t==null||t<1)return[];for(var $=[],ed=0,td=e.length;ed<td;)$.push(rd.call(e,ed,ed+=t));return $},mixin:Ym,default:$d});return Xm._=Xm,Xm}))})),require_events$1=__commonJSMin(((e,t)=>{t.exports={QUALITY_REQUESTED:`qualityRequested`,QUALITY_SELECTED:`qualitySelected`,PLAYER_SOURCES_CHANGED:`playerSourcesChanged`}})),require_QualityOption=__commonJSMin(((e,t)=>{var $=require_underscore_umd_min(),ed=require_events$1();t.exports=function(e){var t=e.getComponent(`MenuItem`);return class extends t{constructor(e,t){var ed=t.source;if(!$.isObject(ed))throw Error(`was not provided a "source" object, but rather: `+typeof ed);t=$.extend({selectable:!0,label:ed.label},t),super(e,t),this.source=ed}handleClick(e){super.handleClick(e),this.player().trigger(ed.QUALITY_REQUESTED,this.source)}}}})),require_QualitySelector=__commonJSMin(((e,t)=>{var $=require_underscore_umd_min(),ed=require_events$1(),td=require_QualityOption(),nd=`vjs-quality-changing`;t.exports=function(e){var t=e.getComponent(`MenuButton`),rd=td(e);class id extends t{constructor(e,t){super(e,t),e.on(ed.QUALITY_REQUESTED,function(t,$){this.setSelectedSource($),e.addClass(nd),e.one(`loadeddata`,function(){e.removeClass(nd)})}.bind(this)),e.on(ed.PLAYER_SOURCES_CHANGED,function(){this.update()}.bind(this)),e.on(ed.QUALITY_SELECTED,function(e,t){this.setSelectedSource(t)}.bind(this)),e.one(`ready`,function(){this.selectedSrc=e.src(),this.update()}.bind(this)),this.controlText(`Open quality selector menu`)}setSelectedSource(e){var t=e?e.src:void 0;this.selectedSrc!==t&&(this.selectedSrc=t,$.each(this.items,function(e){e.selected(e.source.src===t)}))}createItems(){var e=this.player(),t=e.currentSources();return!t||t.length<2?[]:$.map(t,function(t){return new rd(e,{source:t,selected:t.src===this.selectedSrc})}.bind(this))}buildWrapperCSSClass(){return`vjs-quality-selector `+super.buildWrapperCSSClass()}}return e.registerComponent(`QualitySelector`,id),id}})),require_SourceInterceptor=__commonJSMin(((e,t)=>{var $=require_underscore_umd_min(),ed=require_events$1();t.exports=function(e){e.use(`*`,function(e){return{setSource:function(t,td){var nd=e.currentSources(),rd,id;e._qualitySelectorSafeSeek&&e._qualitySelectorSafeSeek.onPlayerSourcesChange(),$.isEqual(nd,e._qualitySelectorPreviousSources)||(e.trigger(ed.PLAYER_SOURCES_CHANGED,nd),e._qualitySelectorPreviousSources=nd),rd=$.find(nd,function(e){return e.selected===!0||e.selected===`true`||e.selected===`selected`}),id=rd||t,e.trigger(ed.QUALITY_SELECTED,id),td(null,id)}}})}})),require_SafeSeek=__commonJSMin(((e,t)=>{t.exports=class{constructor(e,t){this._player=e,this._seekToTime=t,this._hasFinished=!1,this._keepThisInstanceWhenPlayerSourcesChange=!1,this._seekWhenSafe()}_seekWhenSafe(){this._player.readyState()<3?(this._seekFn=this._seek.bind(this),this._player.one(`canplay`,this._seekFn)):this._seek()}onPlayerSourcesChange(){this._keepThisInstanceWhenPlayerSourcesChange?this._keepThisInstanceWhenPlayerSourcesChange=!1:this.cancel()}onQualitySelectionChange(){this.hasFinished()||(this._keepThisInstanceWhenPlayerSourcesChange=!0)}_seek(){this._player.currentTime(this._seekToTime),this._keepThisInstanceWhenPlayerSourcesChange=!1,this._hasFinished=!0}hasFinished(){return this._hasFinished}cancel(){this._player.off(`canplay`,this._seekFn),this._keepThisInstanceWhenPlayerSourcesChange=!1,this._hasFinished=!0}}})),require_js=__commonJSMin(((e,t)=>{var $=require_underscore_umd_min(),ed=require_events$1(),td=require_QualitySelector(),nd=require_SourceInterceptor(),rd=require_SafeSeek();t.exports=function(e){e||=window.videojs,td(e),nd(e),e.hook(`setup`,function(e){function t(t,ed){var td=e.currentSources(),nd=e.currentTime(),id=e.playbackRate(),ad=e.paused(),od;$.each(td,function(e){e.selected=!1}),od=$.findWhere(td,{src:ed.src}),od.selected=!0,e._qualitySelectorSafeSeek&&e._qualitySelectorSafeSeek.onQualitySelectionChange(),e.src(td),e.ready(function(){(!e._qual
68itySelectorSafeSeek||e._qualitySelectorSafeSeek.hasFinished())&&(e._qualitySelectorSafeSeek=new rd(e,nd),e.playbackRate(id)),ad||e.play()})}e.on(ed.QUALITY_REQUESTED,t)})},t.exports.EVENTS=ed})),require_window=__commonJSMin(((e,t)=>{init_dist$1(),t.exports=typeof window<`u`?window:global===void 0?typeof self<`u`?self:{}:global})),require___vite_browser_external=__commonJSMin(((e,t)=>{t.exports={}})),require_document=__commonJSMin(((e,t)=>{init_dist$1();var $=global===void 0?typeof window<`u`?window:{}:global,ed=require___vite_browser_external(),td;typeof document<`u`?td=document:(td=$[`__GLOBAL_DOCUMENT_CACHE@4`],td||=$[`__GLOBAL_DOCUMENT_CACHE@4`]=ed),t.exports=td})),require_extends$1=__commonJSMin(((e,t)=>{function $(){return t.exports=$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)({}).hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e},t.exports.__esModule=!0,t.exports.default=t.exports,$.apply(null,arguments)}t.exports=$,t.exports.__esModule=!0,t.exports.default=t.exports})),require_is_function=__commonJSMin(((e,t)=>{t.exports=ed;var $=Object.prototype.toString;function ed(e){if(!e)return!1;var t=$.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}})),require_interceptors=__commonJSMin(((e,t)=>{function $(e,t){var $=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if($)return($=$.call(e)).next.bind($);if(Array.isArray(e)||($=ed(e))||t&&e&&typeof e.length==`number`){$&&(e=$);var td=0;return function(){return td>=e.length?{done:!0}:{done:!1,value:e[td++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ed(e,t){if(e){if(typeof e==`string`)return td(e,t);var $=Object.prototype.toString.call(e).slice(8,-1);if($===`Object`&&e.constructor&&($=e.constructor.name),$===`Map`||$===`Set`)return Array.from(e);if($===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var $=0,ed=Array(t);$<t;$++)ed[$]=e[$];return ed}t.exports=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var $=this.typeToInterceptorsMap_.get(e);return $.has(t)?!1:($.add(t),!0)},t.removeInterceptor=function(e,t){var $=this.typeToInterceptorsMap_.get(e);return $&&$.has(t)?($.delete(t),!0):!1},t.clearInterceptorsByType=function(e){return this.typeToInterceptorsMap_.get(e)?(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0):!1},t.clear=function(){return this.typeToInterceptorsMap_.size?(this.typeToInterceptorsMap_=new Map,!0):!1},t.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},t.execute=function(e,t){for(var ed=$(this.getForType(e)),td;!(td=ed()).done;){var nd=td.value;try{t=nd(t)}catch{}}return t},e}()})),require_retry=__commonJSMin(((e,t)=>{var $=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(e){this.maxAttempts_=e},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(e){this.delayFactor_=e},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(e){this.fuzzFactor_=e},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(e){this.initialDelay_=e},t.createRetry=function(e){var t=e===void 0?{}
69:e,$=t.maxAttempts,td=t.delayFactor,nd=t.fuzzFactor,rd=t.initialDelay;return new ed({maxAttempts:$||this.maxAttempts_,delayFactor:td||this.delayFactor_,fuzzFactor:nd||this.fuzzFactor_,initialDelay:rd||this.initialDelay_})},e}(),ed=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_+=e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();t.exports=$})),require_http_handler=__commonJSMin(((e,t)=>{var $=require_window(),ed=function(e,t){return t===void 0&&(t=!1),function(ed,nd,rd){if(ed){e(ed);return}if(nd.statusCode>=400&&nd.statusCode<=599){var id=rd;if(t)if($.TextDecoder){var ad=td(nd.headers&&nd.headers[`content-type`]);try{id=new TextDecoder(ad).decode(rd)}catch{}}else id=String.fromCharCode.apply(null,new Uint8Array(rd));e({cause:id});return}e(null,rd)}};function td(e){return e===void 0&&(e=``),e.toLowerCase().split(`;`).reduce(function(e,t){var $=t.split(`=`),ed=$[0],td=$[1];return ed.trim()===`charset`?td.trim():e},`utf-8`)}t.exports=ed})),require_lib$6=__commonJSMin(((e,t)=>{var $=require_window(),ed=require_extends$1(),td=require_is_function(),nd=require_interceptors(),rd=require_retry();cd.httpHandler=require_http_handler(),cd.requestInterceptorsStorage=new nd,cd.responseInterceptorsStorage=new nd,cd.retryManager=new rd;var id=function(e){var t={};return e&&e.trim().split(` 70`).forEach(function(e){var $=e.indexOf(`:`),ed=e.slice(0,$).trim().toLowerCase(),td=e.slice($+1).trim();t[ed]===void 0?t[ed]=td:Array.isArray(t[ed])?t[ed].push(td):t[ed]=[t[ed],td]}),t};t.exports=cd,t.exports.default=cd,cd.XMLHttpRequest=$.XMLHttpRequest||dd,cd.XDomainRequest=`withCredentials`in new cd.XMLHttpRequest?cd.XMLHttpRequest:$.XDomainRequest,ad([`get`,`put`,`post`,`patch`,`head`,`delete`],function(e){cd[e===`delete`?`del`:e]=function(t,$,ed){return $=sd(t,$,ed),$.method=e.toUpperCase(),ld($)}});function ad(e,t){for(var $=0;$<e.length;$++)t(e[$])}function od(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function sd(e,t,$){var nd=e;return td(t)?($=t,typeof e==`string`&&(nd={uri:e})):nd=ed({},t,{uri:e}),nd.callback=$,nd}function cd(e,t,$){return t=sd(e,t,$),ld(t)}function ld(e){if(e.callback===void 0)throw Error(`callback argument missing`);if(e.requestType&&cd.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},$=cd.requestInterceptorsStorage.execute(e.requestType,t);e.uri=$.uri,e.headers=$.headers,e.body=$.body,e.metadata=$.metadata,e.retry=$.retry,e.timeout=$.timeout}var ed=!1,td=function(t,$,td){ed||(ed=!0,e.callback(t,$,td))};function nd(){dd.readyState===4&&!cd.responseInterceptorsStorage.getIsEnabled()&&setTimeout(sd,0)}function rd(){var e=void 0;if(e=dd.response?dd.response:dd.responseText||ud(dd),yd)try{e=JSON.parse(e)}catch{}return e}function ad(t){if(clearTimeout(bd),clearTimeout(e.retryTimeout),t instanceof Error||(t=Error(``+(t||`Unknown XMLHttpRequest Error`))),t.statusCode=0,!pd&&cd.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=dd,ld(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&cd.responseInterceptorsStorage.getIsEnabled()){var $={headers:xd.headers||{},body:xd.body,responseUrl:dd.responseURL,responseType:dd.responseType},ed=cd.responseInterceptorsStorage.execute(e.requestType,$);xd.body=ed.body,xd.headers=ed.headers}return td(t,xd)}
70function sd(){if(!pd){var t;clearTimeout(bd),clearTimeout(e.retryTimeout),t=e.useXDR&&dd.status===void 0?200:dd.status===1223?204:dd.status;var $=xd,ed=null;if(t===0?ed=Error(`Internal XMLHttpRequest Error`):($={body:rd(),statusCode:t,method:hd,headers:{},url:md,rawRequest:dd},dd.getAllResponseHeaders&&($.headers=id(dd.getAllResponseHeaders()))),e.requestType&&cd.responseInterceptorsStorage.getIsEnabled()){var nd={headers:$.headers||{},body:$.body,responseUrl:dd.responseURL,responseType:dd.responseType},ad=cd.responseInterceptorsStorage.execute(e.requestType,nd);$.body=ad.body,$.headers=ad.headers}return td(ed,$,$.body)}}var dd=e.xhr||null;dd||=e.cors||e.useXDR?new cd.XDomainRequest:new cd.XMLHttpRequest;var fd,pd,md=dd.url=e.uri||e.url,hd=dd.method=e.method||`GET`,gd=e.body||e.data,_d=dd.headers=e.headers||{},vd=!!e.sync,yd=!1,bd,xd={body:void 0,headers:{},statusCode:0,method:hd,url:md,rawRequest:dd};if(`json`in e&&e.json!==!1&&(yd=!0,_d.accept||_d.Accept||(_d.Accept=`application/json`),hd!==`GET`&&hd!==`HEAD`&&(_d[`content-type`]||_d[`Content-Type`]||(_d[`Content-Type`]=`application/json`),gd=JSON.stringify(e.json===!0?gd:e.json))),dd.onreadystatechange=nd,dd.onload=sd,dd.onerror=ad,dd.onprogress=function(){},dd.onabort=function(){pd=!0,clearTimeout(e.retryTimeout)},dd.ontimeout=ad,dd.open(hd,md,!vd,e.username,e.password),vd||(dd.withCredentials=!!e.withCredentials),!vd&&e.timeout>0&&(bd=setTimeout(function(){if(!pd){pd=!0,dd.abort(`timeout`);var e=Error(`XMLHttpRequest timeout`);e.code=`ETIMEDOUT`,ad(e)}},e.timeout)),dd.setRequestHeader)for(fd in _d)_d.hasOwnProperty(fd)&&dd.setRequestHeader(fd,_d[fd]);else if(e.headers&&!od(e.headers))throw Error(`Headers cannot be set on an XDomainRequest object`);return`responseType`in e&&(dd.responseType=e.responseType),`beforeSend`in e&&typeof e.beforeSend==`function`&&e.beforeSend(dd),dd.send(gd||null),dd}function ud(e){try{if(e.responseType===`document`)return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName===`parsererror`;if(e.responseType===``&&!t)return e.responseXML}catch{}return null}function dd(){}})),require_vtt=__commonJSMin(((e,t)=>{var $=require_document(),ed=Object.create||(function(){function e(){}return function(t){if(arguments.length!==1)throw Error(`Object.create shim only accepts one parameter.`);return e.prototype=t,new e}})();function td(e,t){this.name=`ParsingError`,this.code=e.code,this.message=t||e.message}td.prototype=ed(Error.prototype),td.prototype.constructor=td,td.Errors={BadSignature:{code:0,message:`Malformed WebVTT signature.`},BadTimeStamp:{code:1,message:`Malformed time stamp.`}};function nd(e){function t(e,t,$,ed){return(e|0)*3600+(t|0)*60+($|0)+(ed|0)/1e3}var $=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return $?$[3]?t($[1],$[2],$[3].replace(`:`,``),$[4]):$[1]>59?t($[1],$[2],0,$[4]):t(0,$[1],$[2],$[4]):null}function rd(){this.values=ed(null)}rd.prototype={set:function(e,t){!this.get(e)&&t!==``&&(this.values[e]=t)},get:function(e,t,$){return $?this.has(e)?this.values[e]:t[$]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,$){for(var ed=0;ed<$.length;++ed)if(t===$[ed]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(e,t),!0):!1}};function id(e,t,$,ed){var td=ed?e.split(ed):[e];for(var nd in td)if(typeof td[nd]==`string`){var rd=td[nd].split($);rd.length===2&&t(rd[0].trim(),rd[1].trim())}}function ad(e,t,$){var ed=e;function ad(){var t=nd(e);if(t===null)throw new td(td.Errors.BadTimeStamp,`Malformed timestamp: `+ed);return e=e.replace(/^[^\sa-zA-Z-]+/,``),t}function od(e,t){var ed=new rd;id(e,function(e,t){switch(e){case`region`:for(var td=$.length-1;td>=0;td--)if($[td].id===t){ed.set(e,$[td].region);break}break;case`vertical`:ed.alt(e,t,[`rl`,`lr`]);break;case`line`:var nd=t.split(`,`),rd=nd[0];ed.integer(e,rd),ed.percent(e,rd)&&ed.set(`snapToLines`,!1),ed.alt(e,rd,[`auto`]),nd.length===2&&ed.alt(`lineAlign`,nd[1],[`start`,`center`,`end`]);break;case`position`:nd=t.split(`,`),ed.percent(e,nd[0]),nd.length===2&&ed.alt(`positionAlign`,nd[1],[`start`,`center`,`end`]);break;case`size`:ed.percent(e,t);break;case`align`:ed.alt(e,t,[`start`,`center`,`end`,`left`,`right`]);break}},/:/,/\s/),t.region=ed.get(`region`,null),t.vertical=ed.get(`vertical`,``);try{t.line=ed.get(`line`,`auto`)}catch{}t.lineAlign=ed.get(`lineAlign`,`start`),t.snapToLines=ed.get(`snapToLines`,!0),t.size=ed.get(`size`,100);try{t.align=ed.get(`align`,`center`)}catch{t.align=ed.get(`align`,`middle`)}try{t.position=ed.get(`position`,`auto`)}catch{t.position=ed.get(`position`,{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=ed.get(`positionAlign`,{start:`start`,left:`start`,center:`center`,middle:`center`,end:`end`,right:`end`},t.align)}function sd(){e=e.replace(/^\s+/,``)}if(sd(),t.startTime=ad(),sd(),e.substr(0,3)!==`-->`)throw new td(td.Errors.BadTimeStamp,`Malformed time stamp (time stamps must be separated by '-->'): `+ed);e=e.substr(3),sd(),t.endTime=ad(),sd(),od(e,t)}var od=$.createElement&&$.createElement(`textarea`),sd={c:`span`,i:`i`,b:`b`,u:`u`,ruby:`ruby`,rt:`rt`,v:`span`,lang:`span`},cd={white:`rgba(255,255,255,1)`,lime:`rgba(0,255,0,1)`,cyan:`rgba(0,255,255,1)`,red:`rgba(255,0,0,1)`,yellow:`rgba(255,255,0,1)`,magenta:`rgba(255,0,255,1)`,blue:`rgba(0,0,255,1)`,black:`rgba(0,0,0,1)`},ld={v:`title`,lang:`lang`},ud={rt:`ruby`};function dd(e,t){function $(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var $=t.match(/^([^<]*)(<[^>
70]*>?)?/);return e($[1]?$[1]:$[2])}function ed(e){return od.innerHTML=e,e=od.textContent,od.textContent=``,e}function td(e,t){return!ud[t.localName]||ud[t.localName]===e.localName}function rd(t,$){var ed=sd[t];if(!ed)return null;var td=e.document.createElement(ed),nd=ld[t];return nd&&$&&(td[nd]=$.trim()),td}for(var id=e.document.createElement(`div`),ad=id,dd,fd=[];(dd=$())!==null;){if(dd[0]===`<`){if(dd[1]===`/`){fd.length&&fd[fd.length-1]===dd.substr(2).replace(`>`,``)&&(fd.pop(),ad=ad.parentNode);continue}var pd=nd(dd.substr(1,dd.length-2)),md;if(pd){md=e.document.createProcessingInstruction(`timestamp`,pd),ad.appendChild(md);continue}var hd=dd.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!hd||(md=rd(hd[1],hd[3]),!md)||!td(ad,md))continue;if(hd[2]){var gd=hd[2].split(`.`);gd.forEach(function(e){var t=/^bg_/.test(e),$=t?e.slice(3):e;if(cd.hasOwnProperty($)){var ed=t?`background-color`:`color`,td=cd[$];md.style[ed]=td}}),md.className=gd.join(` `)}fd.push(hd[1]),ad.appendChild(md),ad=md;continue}ad.appendChild(e.document.createTextNode(ed(dd)))}return id}var fd=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function pd(e){for(var t=0;t<fd.length;t++){var $=fd[t];if(e>=$[0]&&e<=$[1])return!0}return!1}function md(e){var t=[],$=``,ed;if(!e||!e.childNodes)return`ltr`;function td(e,t){for(var $=t.childNodes.length-1;$>=0;$--)e.push(t.childNodes[$])}function nd(e){if(!e||!e.length)return null;var t=e.pop(),$=t.textContent||t.innerText;if($){var ed=$.match(/^.*(\n|\r)/);return ed?(e.length=0,ed[0]):$}if(t.tagName===`ruby`)return nd(e);if(t.childNodes)return td(e,t),nd(e)}for(td(t,e);$=nd(t);)for(var rd=0;rd<$.length;rd++)if(ed=$.charCodeAt(rd),pd(ed))return`rtl`;return`ltr`}function hd(e){if(typeof e.line==`number`&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,$=t.textTrackList,ed=0,td=0;td<$.length&&$[td]!==t;td++)$[td].mode===`showing`&&ed++;return++ed*-1}function gd(){}gd.prototype.applyStyles=function(e,t){for(var $ in t||=this.div,e)e.hasOwnProperty($)&&(t.style[$]=e[$])},gd.prototype.formatStyle=function(e,t){return e===0?0:e+t};function _d(e,t,$){gd.call(this),this.cue=t,this.cueDiv=dd(e,t.text);var ed={color:`rgba(255, 255, 255, 1)`,backgroundColor:`rgba(0, 0, 0, 0.8)`,position:`relative`,left:0,right:0,top:0,bottom:0,display:`inline`,writingMode:t.vertical===``?`horizontal-tb`:t.vertical===`lr`?`vertical-lr`:`vertical-rl`,unicodeBidi:`plaintext`};this.applyStyles(ed,this.cueDiv),this.div=e.document.createElement(`div`),ed={direction:md(this.cueDiv),writingMode:t.vertical===``?`horizontal-tb`:t.vertical===`lr`?`vertical-lr`:`vertical-rl`,unicodeBidi:`plaintext`,textAlign:t.align===`middle`?`center`:t.align,font:$.font,whiteSpace:`pre-line`,position:`absolute`},this.applyStyles(ed),this.div.appendChild(this.cueDiv);var td=0;switch(t.positionAlign){case`start`:case`line-left`:td=t.position;break;case`center`:td=t.position-t.size/2;break;case`end`:case`line-right`:td=t.position-t.size;break}t.vertical===``?this.applyStyles({left:this.formatStyle(td,`%`),width:this.formatStyle(t.size,`%`)}):this.applyStyles({top:this.formatStyle(td,`%`),height:this.formatStyle(t.size,`%`)}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,`px`),bottom:this.formatStyle(e.bottom,`px`),left:this.formatStyle(e.left,`px`),right:this.formatStyle(e.right,`px`),height:this.formatStyle(e.height,`px`),width:this.formatStyle(e.width,`px`)})}}_d.prototype=ed(gd.prototype),_d.prototype.constructor=_d;function vd(e){var t,$,ed,td;
70if(e.div){$=e.div.offsetHeight,ed=e.div.offsetWidth,td=e.div.offsetTop;var nd=(nd=e.div.childNodes)&&(nd=nd[0])&&nd.getClientRects&&nd.getClientRects();e=e.div.getBoundingClientRect(),t=nd?Math.max(nd[0]&&nd[0].height||0,e.height/nd.length):0}this.left=e.left,this.right=e.right,this.top=e.top||td,this.height=e.height||$,this.bottom=e.bottom||td+(e.height||$),this.width=e.width||ed,this.lineHeight=t===void 0?e.lineHeight:t}vd.prototype.move=function(e,t){switch(t=t===void 0?this.lineHeight:t,e){case`+x`:this.left+=t,this.right+=t;break;case`-x`:this.left-=t,this.right-=t;break;case`+y`:this.top+=t,this.bottom+=t;break;case`-y`:this.top-=t,this.bottom-=t;break}},vd.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},vd.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},vd.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},vd.prototype.overlapsOppositeAxis=function(e,t){switch(t){case`+x`:return this.left<e.left;case`-x`:return this.right>e.right;case`+y`:return this.top<e.top;case`-y`:return this.bottom>e.bottom}},vd.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},vd.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},vd.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,$=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,ed=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||ed,height:e.height||t,bottom:e.bottom||ed+(e.height||t),width:e.width||$}};function yd(e,t,$,ed){function td(e,t){for(var td,nd=new vd(e),rd=1,id=0;id<t.length;id++){for(;e.overlapsOppositeAxis($,t[id])||e.within($)&&e.overlapsAny(ed);)e.move(t[id]);if(e.within($))return e;var ad=e.intersectPercentage($);rd>ad&&(td=new vd(e),rd=ad),e=new vd(nd)}return td||nd}var nd=new vd(t),rd=t.cue,id=hd(rd),ad=[];if(rd.snapToLines){var od;switch(rd.vertical){case``:ad=[`+y`,`-y`],od=`height`;break;case`rl`:ad=[`+x`,`-x`],od=`width`;break;case`lr`:ad=[`-x`,`+x`],od=`width`;break}var sd=nd.lineHeight,cd=sd*Math.round(id),ld=$[od]+sd,ud=ad[0];Math.abs(cd)>ld&&(cd=cd<0?-1:1,cd*=Math.ceil(ld/sd)*sd),id<0&&(cd+=rd.vertical===``?$.height:$.width,ad=ad.reverse()),nd.move(ud,cd)}else{var dd=nd.lineHeight/$.height*100;switch(rd.lineAlign){case`center`:id-=dd/2;break;case`end`:id-=dd;break}switch(rd.vertical){case``:t.applyStyles({top:t.formatStyle(id,`%`)});break;case`rl`:t.applyStyles({left:t.formatStyle(id,`%`)});break;case`lr`:t.applyStyles({right:t.formatStyle(id,`%`)});break}ad=[`+y`,`-x`,`+x`,`-y`],nd=new vd(t)}var fd=td(nd,ad);t.move(fd.toCSSCompatValues($))}function bd(){}bd.StringDecoder=function(){return{decode:function(e){if(!e)return``;if(typeof e!=`string`)throw Error(`Error - expected string data.`);return decodeURIComponent(encodeURIComponent(e))}}},bd.convertCueToDOMTree=function(e,t){return!e||!t?null:dd(e,t)};var xd=.05,Sd=`sans-serif`,Cd=`1.5%`;bd.processCues=function(e,t,$){if(!e||!t||!$)return null;for(;$.firstChild;)$.removeChild($.firstChild);var ed=e.document.createElement(`div`);ed.style.position=`absolute`,ed.style.left=`0`,ed.style.right=`0`,ed.style.top=`0`,ed.style.bottom=`0`,ed.style.margin=Cd,$.appendChild(ed);function td(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(!td(t)){for(var nd=0;nd<t.length;nd++)ed.appendChild(t[nd].displayState);return}var rd=[],id=vd.getSimpleBoxPosition(ed),ad={font:Math.round(id.height*xd*100)/100+`px `+Sd};(function(){for(var $,td,nd=0;nd<t.length;nd++)td=t[nd],$=new _d(e,td,ad),ed.appendChild($.div),yd(e,$,id,rd),td.displayState=$.div,rd.push(vd.getSimpleBoxPosition($))})()},bd.Parser=function(e,t,$){$||($=t,t={}),t||={},this.window=e,this.vttjs=t,this.state=`INITIAL`,this.buffer=``,this.decoder=$||new TextDecoder(`utf8`),this.regionList=[]},bd.Parser.prototype={reportOrThrowError:function(e){if(e instanceof td)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function $(){for(var e=t.buffer,$=0;$<e.length&&e[$]!==`\r`&&e[$]!==` 71`;)++$;var ed=e.substr(0,$);return e[$]===`\r`&&++$,e[$]===` 72`&&++$,t.buffer=e.substr($),ed}function ed(e){var $=new rd;if(id(e,function(e,t){switch(e){case`id`:$.set(e,t);break;
72case`width`:$.percent(e,t);break;case`lines`:$.integer(e,t);break;case`regionanchor`:case`viewportanchor`:var ed=t.split(`,`);if(ed.length!==2)break;var td=new rd;if(td.percent(`x`,ed[0]),td.percent(`y`,ed[1]),!td.has(`x`)||!td.has(`y`))break;$.set(e+`X`,td.get(`x`)),$.set(e+`Y`,td.get(`y`));break;case`scroll`:$.alt(e,t,[`up`]);break}},/=/,/\s/),$.has(`id`)){var ed=new(t.vttjs.VTTRegion||t.window.VTTRegion);ed.width=$.get(`width`,100),ed.lines=$.get(`lines`,3),ed.regionAnchorX=$.get(`regionanchorX`,0),ed.regionAnchorY=$.get(`regionanchorY`,100),ed.viewportAnchorX=$.get(`viewportanchorX`,0),ed.viewportAnchorY=$.get(`viewportanchorY`,100),ed.scroll=$.get(`scroll`,``),t.onregion&&t.onregion(ed),t.regionList.push({id:$.get(`id`),region:ed})}}function od(e){var $=new rd;id(e,function(e,t){switch(e){case`MPEGT`:$.integer(e+`S`,t);break;case`LOCA`:$.set(e+`L`,nd(t));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:$.get(`MPEGTS`),LOCAL:$.get(`LOCAL`)})}function sd(e){e.match(/X-TIMESTAMP-MAP/)?id(e,function(e,t){switch(e){case`X-TIMESTAMP-MAP`:od(t);break}},/=/):id(e,function(e,t){switch(e){case`Region`:ed(t);break}},/:/)}try{var cd;if(t.state===`INITIAL`){if(!/\r\n|\n/.test(t.buffer))return this;cd=$();var ld=cd.match(/^WEBVTT([ \t].*)?$/);if(!ld||!ld[0])throw new td(td.Errors.BadSignature);t.state=`HEADER`}for(var ud=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(ud?ud=!1:cd=$(),t.state){case`HEADER`:/:/.test(cd)?sd(cd):cd||(t.state=`ID`);continue;case`NOTE`:cd||(t.state=`ID`);continue;case`ID`:if(/^NOTE($|[ \t])/.test(cd)){t.state=`NOTE`;break}if(!cd)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,``);try{t.cue.align=`center`}catch{t.cue.align=`middle`}if(t.state=`CUE`,cd.indexOf(`-->`)===-1){t.cue.id=cd;continue}case`CUE`:try{ad(cd,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state=`BADCUE`;continue}t.state=`CUETEXT`;continue;case`CUETEXT`:var dd=cd.indexOf(`-->`)!==-1;if(!cd||dd&&(ud=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state=`ID`;continue}t.cue.text&&(t.cue.text+=` 73`),t.cue.text+=cd.replace(/\u2028/g,` 74`).replace(/u2029/g,` 75`);continue;case`BADCUE`:cd||(t.state=`ID`);continue}}}catch(e){t.reportOrThrowError(e),t.state===`CUETEXT`&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state===`INITIAL`?`BADWEBVTT`:`BADCUE`}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state===`HEADER`)&&(e.buffer+=` 76 77`,e.parse()),e.state===`INITIAL`)throw new td(td.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},t.exports=bd})),require_vttcue=__commonJSMin(((e,t)=>{var $=`auto`,ed={"":1,lr:1,rl:1},td={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function nd(e){return typeof e==`string`&&ed[e.toLowerCase()]?e.toLowerCase():!1}function rd(e){return typeof e==`string`&&td[e.toLowerCase()]?e.toLowerCase():!1}function id(e,t,ed){this.hasBeenReset=!1;var td=``,id=!1,ad=e,od=t,sd=ed,cd=null,ld=``,ud=!0,dd=`auto`,fd=`start`,pd=`auto`,md=`auto`,hd=100,gd=`center`;Object.defineProperties(this,{id:{enumerable:!0,get:function(){return td},set:function(e){td=``+e}},pauseOnExit:{enumerable:!0,get:function(){return id},set:function(e){id=!!e}},startTime:{enumerable:!0,get:function(){return ad},set:function(e){if(typeof e!=`number`)throw TypeError(`Start time must be set to a number.`);ad=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return od},set:function(e){if(typeof e!=`number`)throw TypeError(`End time must be set to a number.`);od=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return sd},set:function(e){sd=``+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return cd},set:function(e){cd=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return ld},set:function(e){var t=nd(e);if(t===!1)throw SyntaxError(`Vertical: an invalid or illegal direction string was specified.`);ld=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return ud},set:function(e){ud=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return dd},set:function(e){if(typeof e!=`number`&&e!==$)throw SyntaxError(`Line: an invali
77d number or illegal string was specified.`);dd=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return fd},set:function(e){var t=rd(e);t?(fd=t,this.hasBeenReset=!0):console.warn(`lineAlign: an invalid or illegal string was specified.`)}},position:{enumerable:!0,get:function(){return pd},set:function(e){if(e<0||e>100)throw Error(`Position must be between 0 and 100.`);pd=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return md},set:function(e){var t=rd(e);t?(md=t,this.hasBeenReset=!0):console.warn(`positionAlign: an invalid or illegal string was specified.`)}},size:{enumerable:!0,get:function(){return hd},set:function(e){if(e<0||e>100)throw Error(`Size must be between 0 and 100.`);hd=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return gd},set:function(e){var t=rd(e);if(!t)throw SyntaxError(`align: an invalid or illegal alignment string was specified.`);gd=t,this.hasBeenReset=!0}}}),this.displayState=void 0}id.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=id})),require_vttregion=__commonJSMin(((e,t)=>{var $={"":!0,up:!0};function ed(e){return typeof e==`string`&&$[e.toLowerCase()]?e.toLowerCase():!1}function td(e){return typeof e==`number`&&e>=0&&e<=100}function nd(){var e=100,t=3,$=0,nd=100,rd=0,id=100,ad=``;Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!td(t))throw Error(`Width must be between 0 and 100.`);e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if(typeof e!=`number`)throw TypeError(`Lines must be set to a number.`);t=e}},regionAnchorY:{enumerable:!0,get:function(){return nd},set:function(e){if(!td(e))throw Error(`RegionAnchorX must be between 0 and 100.`);nd=e}},regionAnchorX:{enumerable:!0,get:function(){return $},set:function(e){if(!td(e))throw Error(`RegionAnchorY must be between 0 and 100.`);$=e}},viewportAnchorY:{enumerable:!0,get:function(){return id},set:function(e){if(!td(e))throw Error(`ViewportAnchorY must be between 0 and 100.`);id=e}},viewportAnchorX:{enumerable:!0,get:function(){return rd},set:function(e){if(!td(e))throw Error(`ViewportAnchorX must be between 0 and 100.`);rd=e}},scroll:{enumerable:!0,get:function(){return ad},set:function(e){var t=ed(e);t===!1?console.warn(`Scroll: an invalid or illegal string was specified.`):ad=t}}})}t.exports=nd})),require_browser_index=__commonJSMin(((e,t)=>{var $=require_window(),ed=t.exports={WebVTT:require_vtt(),VTTCue:require_vttcue(),VTTRegion:require_vttregion()};$.vttjs=ed,$.WebVTT=ed.WebVTT;var td=ed.VTTCue,nd=ed.VTTRegion,rd=$.VTTCue,id=$.VTTRegion;ed.shim=function(){$.VTTCue=td,$.VTTRegion=nd},ed.restore=function(){$.VTTCue=rd,$.VTTRegion=id},$.VTTCue||ed.shim()}));function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)({}).hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e},_extends$2.apply(null,arguments)}var init_extends=__esmMin((()=>{})),import_window$7,DEFAULT_LOCATION$1,resolveUrl$2,init_resolve_url$1=__esmMin((()=>{import_window$7=__toESM(require_window()),DEFAULT_LOCATION$1=`https://example.com`,resolveUrl$2=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=import_window$7.default.location&&import_window$7.default.location.href||``);var $=/^\/\//.test(e),ed=!import_window$7.default.location&&!/\/\//i.test(e);e=new import_window$7.default.URL(e,import_window$7.default.location||DEFAULT_LOCATION$1);var td=new URL(t,e);return ed?td.href.slice(DEFAULT_LOCATION$1.length):$?td.href.slice(td.protocol.length):td.href}})),Stream,init_stream=__esmMin((()=>{Stream=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var $=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice($,1),$>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(arguments.length===2)for(var $=t.length,ed=0;ed<$;++ed)t[ed].call(this,arguments[1]);
77else for(var td=Array.prototype.slice.call(arguments,1),nd=t.length,rd=0;rd<nd;++rd)t[rd].apply(this,td)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on(`data`,function(t){e.push(t)})},e}()}));function decodeB64ToUint8Array$1(e){for(var t=atob$1(e),$=new Uint8Array(t.length),ed=0;ed<t.length;ed++)$[ed]=t.charCodeAt(ed);return $}var import_window$6,atob$1,init_decode_b64_to_uint8_array$1=__esmMin((()=>{init_dist$2(),import_window$6=__toESM(require_window()),atob$1=function(e){return import_window$6.default.atob?import_window$6.default.atob(e):Buffer.from(e,`base64`).toString(`binary`)}})),LineStream,TAB,parseByterange,attributeSeparator,parseAttributes$1,parseResolution,ParseStream,camelCase,camelCaseKeys,setHoldBack,Parser,init_m3u8_parser_es=__esmMin((()=>{init_stream(),init_extends(),init_decode_b64_to_uint8_array$1(),LineStream=class extends Stream{constructor(){super(),this.buffer=``}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf(` 78`);t>-1;t=this.buffer.indexOf(` 79`))this.trigger(`data`,this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}},TAB=` `,parseByterange=function(e){let t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||``),$={};return t[1]&&($.length=parseInt(t[1],10)),t[2]&&($.offset=parseInt(t[2],10)),$},attributeSeparator=function(){return RegExp(`(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))`)},parseAttributes$1=function(e){let t={};if(!e)return t;let $=e.split(attributeSeparator()),ed=$.length,td;for(;ed--;)$[ed]!==``&&(td=/([^=]*)=(.*)/.exec($[ed]).slice(1),td[0]=td[0].replace(/^\s+|\s+$/g,``),td[1]=td[1].replace(/^\s+|\s+$/g,``),td[1]=td[1].replace(/^['"](.*)['"]$/g,`$1`),t[td[0]]=td[1]);return t},parseResolution=e=>{let t=e.split(`x`),$={};return t[0]&&($.width=parseInt(t[0],10)),t[1]&&($.height=parseInt(t[1],10)),$},ParseStream=class extends Stream{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,$;if(e=e.trim(),e.length!==0){if(e[0]!==`#`){this.trigger(`data`,{type:`uri`,uri:e});return}this.tagMappers.reduce((t,$)=>{let ed=$(e);return ed===e?t:t.concat([ed])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(e.indexOf(`#EXT`)!==0){this.trigger(`data`,{type:`comment`,text:e.slice(1)});return}if(e=e.replace(`\r`,``),t=/^#EXTM3U/.exec(e),t){this.trigger(`data`,{type:`tag`,tagType:`m3u`});return}if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t){$={type:`tag`,tagType:`inf`},t[1]&&($.duration=parseFloat(t[1])),t[2]&&($.title=t[2]),this.trigger(`data`,$);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t){$={type:`tag`,tagType:`targetduration`},t[1]&&($.duration=parseInt(t[1],10)),this.trigger(`data`,$);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t){$={type:`tag`,tagType:`version`},t[1]&&($.version=parseInt(t[1],10)),this.trigger(`data`,$);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t){$={type:`tag`,tagType:`media-sequence`},t[1]&&($.number=parseInt(t[1],10)),this.trigger(`data`,$);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t){$={type:`tag`,tagType:`discontinuity-sequence`},t[1]&&($.number=parseInt(t[1],10)),this.trigger(`data`,$);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t){$={type:`tag`,tagType:`playlist-type`},t[1]&&($.playlistType=t[1]),this.trigger(`data`,$);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t){$=_extends$2(parseByterange(t[1]),{type:`tag`,tagType:`byterange`}),this.trigger(`data`,$);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t){$={type:`tag`,tagType:`allow-cache`},t[1]&&($.allowed=!/NO/.test(t[1])),this.trigger(`data`,$);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if($={type:`tag`,tagType:`map`},t[1]){let e=parseAttributes$1(t[1]);e.URI&&($.uri=e.URI),e.BYTERANGE&&($.byterange=parseByterange(e.BYTERANGE))}this.trigger(`data`,$);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t){$={type:`tag`,tagType:`stream-inf`},t[1]&&($.attributes=parseAttributes$1(t[1]),$.attributes.RESOLUTION&&($.attributes.RESOLUTION=parseResolution($.attributes.RESOLUTION)),$.attributes.BANDWIDTH&&($.attributes.BANDWIDTH=parseInt($.attributes.BANDWIDTH,10)),$.attributes[`FRAME-RATE`]&&($.attributes[`FRAME-RATE`]=parseFloat($.attributes[`FRAME-RATE`])),$.attributes[`PROGRAM-ID`]&&($.attributes[`PROGRAM-ID`]=parseInt($.attributes[`PROGRAM-ID`],10))),this.trigger(`data`,$);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t){$={type:`tag`,tagType:`media`},t[1]&&($.attributes=parseAttributes$1(t[1])),this.trigger(`data`,$);return}if(t=/^#EXT-X-ENDLIST/.exec(e),t){this.trigger(`data`,{type:`tag`,tagType:`endlist`});return}if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t){this.trigger(`data`,{type:`tag`,tagType:`discontinuity`});return}if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t){$={type:`tag`,tagType:`program-date-time`}
79,t[1]&&($.dateTimeString=t[1],$.dateTimeObject=new Date(t[1])),this.trigger(`data`,$);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t){$={type:`tag`,tagType:`key`},t[1]&&($.attributes=parseAttributes$1(t[1]),$.attributes.IV&&($.attributes.IV.substring(0,2).toLowerCase()===`0x`&&($.attributes.IV=$.attributes.IV.substring(2)),$.attributes.IV=$.attributes.IV.match(/.{8}/g),$.attributes.IV[0]=parseInt($.attributes.IV[0],16),$.attributes.IV[1]=parseInt($.attributes.IV[1],16),$.attributes.IV[2]=parseInt($.attributes.IV[2],16),$.attributes.IV[3]=parseInt($.attributes.IV[3],16),$.attributes.IV=new Uint32Array($.attributes.IV))),this.trigger(`data`,$);return}if(t=/^#EXT-X-START:(.*)$/.exec(e),t){$={type:`tag`,tagType:`start`},t[1]&&($.attributes=parseAttributes$1(t[1]),$.attributes[`TIME-OFFSET`]=parseFloat($.attributes[`TIME-OFFSET`]),$.attributes.PRECISE=/YES/.test($.attributes.PRECISE)),this.trigger(`data`,$);return}if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t){$={type:`tag`,tagType:`cue-out-cont`},t[1]?$.data=t[1]:$.data=``,this.trigger(`data`,$);return}if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t){$={type:`tag`,tagType:`cue-out`},t[1]?$.data=t[1]:$.data=``,this.trigger(`data`,$);return}if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t){$={type:`tag`,tagType:`cue-in`},t[1]?$.data=t[1]:$.data=``,this.trigger(`data`,$);return}if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`skip`},$.attributes=parseAttributes$1(t[1]),$.attributes.hasOwnProperty(`SKIPPED-SEGMENTS`)&&($.attributes[`SKIPPED-SEGMENTS`]=parseInt($.attributes[`SKIPPED-SEGMENTS`],10)),$.attributes.hasOwnProperty(`RECENTLY-REMOVED-DATERANGES`)&&($.attributes[`RECENTLY-REMOVED-DATERANGES`]=$.attributes[`RECENTLY-REMOVED-DATERANGES`].split(TAB)),this.trigger(`data`,$);return}if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`part`},$.attributes=parseAttributes$1(t[1]),[`DURATION`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=parseFloat($.attributes[e]))}),[`INDEPENDENT`,`GAP`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=/YES/.test($.attributes[e]))}),$.attributes.hasOwnProperty(`BYTERANGE`)&&($.attributes.byterange=parseByterange($.attributes.BYTERANGE)),this.trigger(`data`,$);return}if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`server-control`},$.attributes=parseAttributes$1(t[1]),[`CAN-SKIP-UNTIL`,`PART-HOLD-BACK`,`HOLD-BACK`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=parseFloat($.attributes[e]))}),[`CAN-SKIP-DATERANGES`,`CAN-BLOCK-RELOAD`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=/YES/.test($.attributes[e]))}),this.trigger(`data`,$);return}if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`part-inf`},$.attributes=parseAttributes$1(t[1]),[`PART-TARGET`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=parseFloat($.attributes[e]))}),this.trigger(`data`,$);return}if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`preload-hint`},$.attributes=parseAttributes$1(t[1]),[`BYTERANGE-START`,`BYTERANGE-LENGTH`].forEach(function(e){if($.attributes.hasOwnProperty(e)){$.attributes[e]=parseInt($.attributes[e],10);let t=e===`BYTERANGE-LENGTH`?`length`:`offset`;$.attributes.byterange=$.attributes.byterange||{},$.attributes.byterange[t]=$.attributes[e],delete $.attributes[e]}}),this.trigger(`data`,$);return}if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`rendition-report`},$.attributes=parseAttributes$1(t[1]),[`LAST-MSN`,`LAST-PART`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=parseInt($.attributes[e],10))}),this.trigger(`data`,$);return}if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){$={type:`tag`,tagType:`daterange`},$.attributes=parseAttributes$1(t[1]),[`ID`,`CLASS`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=String($.attributes[e]))}),[`START-DATE`,`END-DATE`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=new Date($.attributes[e]))}),[`DURATION`,`PLANNED-DURATION`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=parseFloat($.attributes[e]))}),[`END-ON-NEXT`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=/YES/i.test($.attributes[e]))}),[`SCTE35-CMD`,` SCTE35-OUT`,`SCTE35-IN`].forEach(function(e){$.attributes.hasOwnProperty(e)&&($.attributes[e]=$.attributes[e].toString(16))});let e=/^X-([A-Z]+-)+[A-Z]+$/;
79for(let t in $.attributes){if(!e.test(t))continue;let ed=/[0-9A-Fa-f]{6}/g.test($.attributes[t]),td=/^\d+(\.\d+)?$/.test($.attributes[t]);$.attributes[t]=ed?$.attributes[t].toString(16):td?parseFloat($.attributes[t]):String($.attributes[t])}this.trigger(`data`,$);return}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t){this.trigger(`data`,{type:`tag`,tagType:`independent-segments`});return}if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t){this.trigger(`data`,{type:`tag`,tagType:`i-frames-only`});return}if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t){$={type:`tag`,tagType:`content-steering`},$.attributes=parseAttributes$1(t[1]),this.trigger(`data`,$);return}if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t){$={type:`tag`,tagType:`i-frame-playlist`},$.attributes=parseAttributes$1(t[1]),$.attributes.URI&&($.uri=$.attributes.URI),$.attributes.BANDWIDTH&&($.attributes.BANDWIDTH=parseInt($.attributes.BANDWIDTH,10)),$.attributes.RESOLUTION&&($.attributes.RESOLUTION=parseResolution($.attributes.RESOLUTION)),$.attributes[`AVERAGE-BANDWIDTH`]&&($.attributes[`AVERAGE-BANDWIDTH`]=parseInt($.attributes[`AVERAGE-BANDWIDTH`],10)),$.attributes[`FRAME-RATE`]&&($.attributes[`FRAME-RATE`]=parseFloat($.attributes[`FRAME-RATE`])),this.trigger(`data`,$);return}if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t){$={type:`tag`,tagType:`define`},$.attributes=parseAttributes$1(t[1]),this.trigger(`data`,$);return}this.trigger(`data`,{type:`tag`,data:e.slice(4)})})}}addParser({expression:e,customType:t,dataParser:$,segment:ed}){typeof $!=`function`&&($=e=>e),this.customParsers.push(td=>{if(e.exec(td))return this.trigger(`data`,{type:`custom`,data:$(td),customType:t,segment:ed}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push($=>e.test($)?t($):$)}},camelCase=e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),camelCaseKeys=function(e){let t={};return Object.keys(e).forEach(function($){t[camelCase($)]=e[$]}),t},setHoldBack=function(e){let{serverControl:t,targetDuration:$,partTargetDuration:ed}=e;if(!t)return;let td=`#EXT-X-SERVER-CONTROL`,nd=`holdBack`,rd=`partHoldBack`,id=$&&$*3,ad=ed&&ed*2;$&&!t.hasOwnProperty(nd)&&(t[nd]=id,this.trigger(`info`,{message:`${td} defaulting HOLD-BACK to targetDuration * 3 (${id}).`})),id&&t[nd]<id&&(this.trigger(`warn`,{message:`${td} clamping HOLD-BACK (${t[nd]}) to targetDuration * 3 (${id})`}),t[nd]=id),ed&&!t.hasOwnProperty(rd)&&(t[rd]=ed*3,this.trigger(`info`,{message:`${td} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[rd]}).`})),ed&&t[rd]<ad&&(this.trigger(`warn`,{message:`${td} clamping PART-HOLD-BACK (${t[rd]}) to partTargetDuration * 2 (${ad}).`}),t[rd]=ad)},Parser=class extends Stream{constructor(e={}){super(),this.lineStream=new LineStream,this.parseStream=new ParseStream,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,`https://a.com`).searchParams,this.lastProgramDateTime=null;let t=this,$=[],ed={},td,nd,rd=!1,id=function(){},ad={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},od=`urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed`,sd=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let cd=0,ld=0,ud={};this.on(`end`,()=>{ed.uri||!ed.parts&&!ed.preloadHints||(!ed.map&&td&&(ed.map=td),!ed.key&&nd&&(ed.key=nd),!ed.timeline&&typeof sd==`number`&&(ed.timeline=sd),this.manifest.preloadSegment=ed)}),this.parseStream.on(`data`,function(e){let od,dd;if(t.manifest.definitions){for(let $ in t.manifest.definitions)if(e.uri&&=e.uri.replace(`{$${$}}`,t.manifest.definitions[$]),e.attributes)for(let ed in e.attributes)typeof e.attributes[ed]==`string`&&(e.attributes[ed]=e.attributes[ed].replace(`{$${$}}`,t.manifest.definitions[$]))}({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,`allowed`in e||(this.trigger(`info`,{message:`defaulting allowCache to YES`}),this.manifest.allowCache=!0)},byterange(){let t={};`length`in e&&(ed.byterange=t,t.length=e.length,`offset`in e||(e.offset=cd)),`offset`in e&&(ed.byterange=t,t.offset=e.offset),cd=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){`mediaSequence`in this.manifest||(this.manifest.mediaSequence=0,this.trigger(`info`,{message:`defaulting media sequence to zero`})),`discontinuitySequence`in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger(`info`,{message:`defaulting discontinuity sequence to zero`})),e.title&&(ed.title=e.title),e.duration>0&&(ed.duration=e.duration),e.duration===0&&(ed.duration=.01,this.trigger(`info`,{message:`updating zero segment duration to a small value`})),this.manifest.segments=$},key(){if(!e.attributes){this.trigger(`warn`,{message:`ignoring key declaration without attribute list`});return}if(e.attributes.METHOD===`NONE`){nd=null;return}if(!e.attributes.URI){this.trigger(`warn`,{message:`ignoring key declaration without URI`});return}if(e.attributes.KEYFORMAT===`com.apple.streamingkeydelivery`){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection[`com.apple.fps.1_0`]={attributes:e.attributes};return}if(e.attributes.KEYFORMAT===`com.microsoft.playready`){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection[`com.microsoft.playready`]={uri:e.attributes.URI};return}if(e.attributes.KEYFORMAT===`urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed`){if([`SAMPLE-AES`,`SAMPLE-AES-CTR`,`SAMPLE-AES-CENC`].indexOf(e.attributes.METHOD)===-1){this.trigger(`warn`,{message:`invalid key method provided for Widevine`});return}if(e.attributes.METHOD===`SAMPLE-AES-CENC`&&this.trigger(`warn`,{message:`SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead`}),e.attributes.URI.substring(0,23)!==`data:text/plain;base64,`){this.trigger(`warn`,{message:`invalid key URI provided for Widevine`});return}if(!(e.attributes.KEYID&&e.attributes.KEYID.substring(0,2)===`0x`)){this.trigger(`warn`,{message:`invalid key ID provided for Widevine`});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection[`com.widevine.alpha`]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:decodeB64ToUint8Array$1(e.attributes.URI.split(`,`)[1])};return}e.attributes.METHOD||this.trigger(`warn`,{message:`defaulting key method to AES-128`}),nd={method:e.attributes.METHOD||`AES-128`,uri:e.attributes.URI},e.attributes.IV!==void 0&&(nd.iv=e.attributes.IV)},"media-sequence"(){if(!isFinite(e.number)){this.trigger(`warn`,{message:`ignoring invalid media sequence: `+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence"(){if(!isFinite(e.number)){this.trigger(`warn`,{message:`ignoring invalid discontinuity sequence: `+e.number});return}this.manifest.discontinuitySequence=e.number,sd=e.number},"playlist-type"(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger(`warn`,{message:`ignoring unknown playlist type: `+e.playlist});return}this.manifest.playlistType=e.playlistType},map(){td={}
79,e.uri&&(td.uri=e.uri),e.byterange&&(td.byterange=e.byterange),nd&&(td.key=nd)},"stream-inf"(){if(this.manifest.playlists=$,this.manifest.mediaGroups=this.manifest.mediaGroups||ad,!e.attributes){this.trigger(`warn`,{message:`ignoring empty stream-inf attributes`});return}ed.attributes||={},_extends$2(ed.attributes,e.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||ad,!(e.attributes&&e.attributes.TYPE&&e.attributes[`GROUP-ID`]&&e.attributes.NAME)){this.trigger(`warn`,{message:`ignoring incomplete or missing media group`});return}let t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes[`GROUP-ID`]]=t[e.attributes[`GROUP-ID`]]||{},od=t[e.attributes[`GROUP-ID`]],dd={default:/yes/i.test(e.attributes.DEFAULT)},dd.default?dd.autoselect=!0:dd.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(dd.language=e.attributes.LANGUAGE),e.attributes.URI&&(dd.uri=e.attributes.URI),e.attributes[`INSTREAM-ID`]&&(dd.instreamId=e.attributes[`INSTREAM-ID`]),e.attributes.CHARACTERISTICS&&(dd.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(dd.forced=/yes/i.test(e.attributes.FORCED)),od[e.attributes.NAME]=dd},discontinuity(){sd+=1,ed.discontinuity=!0,this.manifest.discontinuityStarts.push($.length)},"program-date-time"(){this.manifest.dateTimeString===void 0&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),ed.dateTimeString=e.dateTimeString,ed.dateTimeObject=e.dateTimeObject;let{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),t===null&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-t.duration*1e3,t.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(e.duration)||e.duration<0){this.trigger(`warn`,{message:`ignoring invalid target duration: `+e.duration});return}this.manifest.targetDuration=e.duration,setHoldBack.call(this,this.manifest)},start(){if(!e.attributes||isNaN(e.attributes[`TIME-OFFSET`])){this.trigger(`warn`,{message:`ignoring start declaration without appropriate attribute list`});return}this.manifest.start={timeOffset:e.attributes[`TIME-OFFSET`],precise:e.attributes.PRECISE}},"cue-out"(){ed.cueOut=e.data},"cue-out-cont"(){ed.cueOutCont=e.data},"cue-in"(){ed.cueIn=e.data},skip(){this.manifest.skip=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_(`#EXT-X-SKIP`,e.attributes,[`SKIPPED-SEGMENTS`])},part(){rd=!0;let t=this.manifest.segments.length,$=camelCaseKeys(e.attributes);ed.parts=ed.parts||[],ed.parts.push($),$.byterange&&($.byterange.hasOwnProperty(`offset`)||($.byterange.offset=ld),ld=$.byterange.offset+$.byterange.length);let td=ed.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${td} for segment #${t}`,e.attributes,[`URI`,`DURATION`]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty(`lastPart`)||this.trigger(`warn`,{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){let t=this.manifest.serverControl=camelCaseKeys(e.attributes);t.hasOwnProperty(`canBlockReload`)||(t.canBlockReload=!1,this.trigger(`info`,{message:`#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false`})),setHoldBack.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty(`canSkipUntil`)&&this.trigger(`warn`,{message:`#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set`})},"preload-hint"(){let t=this.manifest.segments.length,$=camelCaseKeys(e.attributes),td=$.type&&$.type===`PART`;ed.preloadHints=ed.preloadHints||[],ed.preloadHints.push($),$.byterange&&($.byterange.hasOwnProperty(`offset`)||($.byterange.offset=td?ld:0,td&&(ld=$.byterange.offset+$.byterange.length)));let nd=ed.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${nd} for segment #${t}`,e.attributes,[`TYPE`,`URI`]),$.type)for(let e=0;e<ed.preloadHints.length-1;e++){let td=ed.preloadHints[e];td.type&&td.type===$.type&&this.trigger(`warn`,{message:`#EXT-X-PRELOAD-HINT #${nd} for segment #${t} has the same TYPE ${$.type} as preload hint #${e}`})}},"rendition-report"(){let t=camelCaseKeys(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);let $=this.manifest.renditionReports.length-1,ed=[`LAST-MSN`,`URI`];
79rd&&ed.push(`LAST-PART`),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${$}`,e.attributes,ed)},"part-inf"(){this.manifest.partInf=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_(`#EXT-X-PART-INF`,e.attributes,[`PART-TARGET`]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),setHoldBack.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(camelCaseKeys(e.attributes));let t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,[`ID`,`START-DATE`]);let $=this.manifest.dateRanges[t];$.endDate&&$.startDate&&new Date($.endDate)<new Date($.startDate)&&this.trigger(`warn`,{message:`EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE`}),$.duration&&$.duration<0&&this.trigger(`warn`,{message:`EXT-X-DATERANGE DURATION must not be negative`}),$.plannedDuration&&$.plannedDuration<0&&this.trigger(`warn`,{message:`EXT-X-DATERANGE PLANNED-DURATION must not be negative`});let ed=!!$.endOnNext;if(ed&&!$.class&&this.trigger(`warn`,{message:`EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute`}),ed&&($.duration||$.endDate)&&this.trigger(`warn`,{message:`EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes`}),$.duration&&$.endDate){let e=$.startDate.getTime()+$.duration*1e3;this.manifest.dateRanges[t].endDate=new Date(e)}if(!ud[$.id])ud[$.id]=$;else{for(let e in ud[$.id])if($[e]&&JSON.stringify(ud[$.id][e])!==JSON.stringify($[e])){this.trigger(`warn`,{message:`EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values`});break}let e=this.manifest.dateRanges.findIndex(e=>e.id===$.id);this.manifest.dateRanges[e]=_extends$2(this.manifest.dateRanges[e],$),ud[$.id]=_extends$2(ud[$.id],$),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_(`#EXT-X-CONTENT-STEERING`,e.attributes,[`SERVER-URI`])},define(){this.manifest.definitions=this.manifest.definitions||{};let t=(e,t)=>{if(e in this.manifest.definitions){this.trigger(`error`,{message:`EXT-X-DEFINE: Duplicate name ${e}`});return}this.manifest.definitions[e]=t};if(`QUERYPARAM`in e.attributes){if(`NAME`in e.attributes||`IMPORT`in e.attributes){this.trigger(`error`,{message:`EXT-X-DEFINE: Invalid attributes`});return}let $=this.params.get(e.attributes.QUERYPARAM);if(!$){this.trigger(`error`,{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`});return}t(e.attributes.QUERYPARAM,decodeURIComponent($));return}if(`NAME`in e.attributes){if(`IMPORT`in e.attributes){this.trigger(`error`,{message:`EXT-X-DEFINE: Invalid attributes`});return}if(!(`VALUE`in e.attributes)||typeof e.attributes.VALUE!=`string`){this.trigger(`error`,{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`});return}t(e.attributes.NAME,e.attributes.VALUE);return}if(`IMPORT`in e.attributes){if(!this.mainDefinitions[e.attributes.IMPORT]){this.trigger(`error`,{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]);return}this.trigger(`error`,{message:`EXT-X-DEFINE: No attribute`})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:sd}),this.warnOnMissingAttributes_(`#EXT-X-I-FRAME-STREAM-INF`,e.attributes,[`BANDWIDTH`,`URI`])}}[e.tagType]||id).call(t)},uri(){ed.uri=e.uri,$.push(ed),this.manifest.targetDuration&&!(`duration`in ed)&&(this.trigger(`warn`,{message:`defaulting segment duration to the target duration`}),ed.duration=this.manifest.targetDuration),nd&&(ed.key=nd),ed.timeline=sd,td&&(ed.map=td),ld=0,this.lastProgramDateTime!==null&&(ed.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=ed.duration*1e3),ed={}},comment(){},custom(){e.segment?(ed.custom=ed.custom||{},ed.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger(`warn`,{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,$){let ed=[];$.forEach(function(e){t.hasOwnProperty(e)||ed.push(e)}),ed.length&&this.trigger(`warn`,{message:`${e} lacks required attribute(s): ${ed.join(`, `)}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(` 80`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger(`warn`,{message:`A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag`}),this.lastProgramDateTime=null,this.trigger(`end`)}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}})),import_window$5,regexs,mediaTypes,upperMediaTypes,translateLegacyCodec,parseCodecs,codecsFromDefault,isAudioCodec,isTextCodec,getMimeForCodec,browserSupportsCodec,muxerSupportsCodec,DEFAULT_AUDIO_CODEC,DEFAULT_VIDEO_CODEC,init_codecs=__esmMin((()=>{import_window$5=__toESM(require_window()),regexs={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},mediaTypes=[`video`,`audio`,`text`],upperMediaTypes=[`Video`,`Audio`,`Text`],translateLegacyCodec=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,$){var ed=(`00`+Number(t).toString(16)).slice(-2),td=(`00`+Number($).toString(16)).slice(-2);return`avc1.`+ed+`00`+td})},parseCodecs=function(e){e===void 0&&(e=``);var t=e.split(`,`),$=[];return t.forEach(function(e){e=e.trim();var t;
80mediaTypes.forEach(function(ed){var td=regexs[ed].exec(e.toLowerCase());if(!(!td||td.length<=1)){t=ed;var nd=e.substring(0,td[1].length),rd=e.replace(nd,``);$.push({type:nd,details:rd,mediaType:ed})}}),t||$.push({type:e,details:``,mediaType:`unknown`})}),$},codecsFromDefault=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var $=e.mediaGroups.AUDIO[t];if(!$)return null;for(var ed in $){var td=$[ed];if(td.default&&td.playlists)return parseCodecs(td.playlists[0].attributes.CODECS)}return null},isAudioCodec=function(e){return e===void 0&&(e=``),regexs.audio.test(e.trim().toLowerCase())},isTextCodec=function(e){return e===void 0&&(e=``),regexs.text.test(e.trim().toLowerCase())},getMimeForCodec=function(e){if(!(!e||typeof e!=`string`)){var t=e.toLowerCase().split(`,`).map(function(e){return translateLegacyCodec(e.trim())}),$=`video`;t.length===1&&isAudioCodec(t[0])?$=`audio`:t.length===1&&isTextCodec(t[0])&&($=`application`);var ed=`mp4`;return t.every(function(e){return regexs.mp4.test(e)})?ed=`mp4`:t.every(function(e){return regexs.webm.test(e)})?ed=`webm`:t.every(function(e){return regexs.ogg.test(e)})&&(ed=`ogg`),$+`/`+ed+`;codecs="`+e+`"`}},browserSupportsCodec=function(e,t){return e===void 0&&(e=``),t===void 0&&(t=!1),import_window$5.default.MediaSource&&import_window$5.default.MediaSource.isTypeSupported&&import_window$5.default.MediaSource.isTypeSupported(getMimeForCodec(e))||t&&import_window$5.default.ManagedMediaSource&&import_window$5.default.ManagedMediaSource.isTypeSupported&&import_window$5.default.ManagedMediaSource.isTypeSupported(getMimeForCodec(e))||!1},muxerSupportsCodec=function(e){return e===void 0&&(e=``),e.toLowerCase().split(`,`).every(function(e){e=e.trim();for(var t=0;t<upperMediaTypes.length;t++)if(regexs[`muxer`+upperMediaTypes[t]].test(e))return!0;return!1})}})),MPEGURL_REGEX,DASH_REGEX,simpleTypeFromSourceType,init_media_types=__esmMin((()=>{MPEGURL_REGEX=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,DASH_REGEX=/^application\/dash\+xml/i,simpleTypeFromSourceType=function(e){return MPEGURL_REGEX.test(e)?`hls`:DASH_REGEX.test(e)?`dash`:e===`application/vnd.videojs.vhs+json`?`vhs-json`:null}})),import_window$4,countBits,countBytes,isArrayBufferView,isTypedArray,toUint8,BigInt$1,BYTE_TABLE,ENDIANNESS,bytesToNumber,numberToBytes,bytesToString,stringToBytes,concatTypedArrays,bytesMatch,init_byte_helpers=__esmMin((()=>{import_window$4=__toESM(require_window()),countBits=function(e){return e.toString(2).length},countBytes=function(e){return Math.ceil(countBits(e)/8)},isArrayBufferView=function(e){return ArrayBuffer.isView===`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},isTypedArray=function(e){return isArrayBufferView(e)},toUint8=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!isTypedArray(e)&&!(e instanceof ArrayBuffer)&&(e=typeof e!=`number`||typeof e==`number`&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},BigInt$1=import_window$4.default.BigInt||Number,BYTE_TABLE=[BigInt$1(`0x1`),BigInt$1(`0x100`),BigInt$1(`0x10000`),BigInt$1(`0x1000000`),BigInt$1(`0x100000000`),BigInt$1(`0x10000000000`),BigInt$1(`0x1000000000000`),BigInt$1(`0x100000000000000`),BigInt$1(`0x10000000000000000`)],function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return t[0]===255?`big`:t[0]===204?`little`:`unknown`}(),bytesToNumber=function(e,t){var $=t===void 0?{}:t,ed=$.signed,td=ed===void 0?!1:ed,nd=$.le,rd=nd===void 0?!1:nd;e=toUint8(e);var id=rd?`reduce`:`reduceRight`,ad=(e[id]?e[id]:Array.prototype[id]).call(e,function(t,$,ed){var td=rd?ed:Math.abs(ed+1-e.length);return t+BigInt$1($)*BYTE_TABLE[td]},BigInt$1(0));if(td){var od=BYTE_TABLE[e.length]/BigInt$1(2)-BigInt$1(1);ad=BigInt$1(ad),ad>od&&(ad-=od,ad-=od,ad-=BigInt$1(2))}return Number(ad)},numberToBytes=function(e,t){var $=(t===void 0?{}:t).le,ed=$===void 0?!1:$;(typeof e!=`bigint`&&typeof e!=`number`||typeof e==`number`&&e!==e)&&(e=0),e=BigInt$1(e);for(var td=countBytes(e),nd=new Uint8Array(new ArrayBuffer(td)),rd=0;rd<td;rd++){var id=ed?rd:Math.abs(rd+1-nd.length);nd[id]=Number(e/BYTE_TABLE[rd]&BigInt$1(255)),e<0&&(nd[id]=Math.abs(~nd[id]),nd[id]-=rd===0?1:2)}return nd},bytesToString=function(e){if(!e)return``;e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,toUint8(e));try{return decodeURIComponent(escape(t))}catch{}return t},stringToBytes=function(e,t){if(typeof e!=`string`&&e&&typeof e.toString==`function`&&(e=e.toString()),typeof e!=`string`)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var $=new Uint8Array(e.length),ed=0;ed<e.length;ed++)$[ed]=e.charCodeAt(ed);return $},concatTypedArrays=function(){var e=[...arguments];if(e=e.filter(function(e){return e&&(e.byteLength||e.length)&&typeof e!=`string`}),e.length<=1)return toUint8(e[0]);var t=e.reduce(function(e,t,$){return e+(t.byteLength||t.length)},0),$=new Uint8Array(t),ed=0;return e.forEach(function(e){e=toUint8(e),$.set(e,ed),ed+=e.byteLength}),$},bytesMatch=function(e,t,$){var ed=$===void 0?{}:$,td=ed.offset,nd=td===void 0?0:td,rd=ed.mask,id=rd===void 0?[]:rd;e=toUint8(e),t=toUint8(t);var ad=t.every?t.every:Array.prototype.every;return t.length&&e.length-nd>=t.length&&ad.call(t,function(t,$){return t===(id[$]?id[$]&e[nd+$]:e[nd+$])})}})),require_url_toolkit=__commonJSMin(((e,t)=>{(function($){var ed=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,td=/^(?=([^\/?#]*))\1([^]*)$/,nd=/(?:\/|^)\.(?=\/)/g,rd=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,id={buildAbsoluteURL:function(e,t,$){if($||={},e=e.trim(),t=t.trim(),!t){if(!$.alwaysNormalize)return e;var ed=id.parseURL(e);if(!ed)throw Error(`Error trying to parse base URL.`);return ed.path=id.normalizePath(ed.path),id.buildURLFromParts(ed)}var nd=id.parseURL(t);if(!nd)throw Error(`Error trying to parse relative URL.`);if(nd.scheme)return $.alwaysNormalize?(nd.path=id.normalizePath(nd.path),id.buildURLFromParts(nd)):t;var rd=id.parseURL(e);if(!rd)throw Error(`Error trying to parse base URL.`);if(!rd.netLoc&&rd.path&&rd.path[0]!==`/`){var ad=td.exec(rd.path);rd.netLoc=ad[1],rd.path=ad[2]}rd.netLoc&&!rd.path&&(rd.path=`/`);var od={scheme:rd.scheme,netLoc:nd.netLoc,path:null,params:nd.params,query:nd.query,fragment:nd.fragment};if(!nd.netLoc&&(od.netLoc=rd.netLoc,nd.path[0]!==`/`))if(!nd.path)od.path=rd.path,nd.params||(od.params=rd.params,nd.query||(od.query=rd.query));else{var sd=rd.path,cd=sd.substring(0,sd.lastIndexOf(`/`)+1)+nd.path;od.path=id.normalizePath(cd)}return od.path===null&&(od.path=$.alwaysNormalize?id.normalizePath(nd.path):nd.path),id.buildURLFromParts(od)},parseURL:function(e){var t=ed.exec(e);return t?{scheme:t[1]||``,netLoc:t[2]||``,path:t[3]||``,params:t[4]||``,query:t[5]||``,fragment:t[6]||``}:null},normalizePath:function(e){for(e=e.split(``).reverse().join(``).replace(nd,``);e.length!==(e=e.replace(rd,``)).length;);return e.split(``).reverse().join(``)},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};typeof e==`object`&&typeof t==`object`?t.exports=id:typeof define==`function`&&define.amd?define([],function(){return id}):typeof e==`object`?e.URLToolkit=id:$.URLToolkit=id})(e)})),import_url_toolkit,import_window$3,DEFAULT_LOCATION,resolveUrl$1,init_resolve_url=__esmMin((()=>{import_url_toolkit=__toESM(require_url_toolkit()),import_window$3=__toESM(require_window()),DEFAULT_LOCATION=`http://example.com`,resolveUrl$1=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=import_window$3.default.location&&import_window$3.default.location.href||``);var $=typeof import_window$3.default.URL==`function`,ed=/^\/\//.test(e),td=!import_window$3.default.location&&!/\/\//i.test(e);
80if($?e=new import_window$3.default.URL(e,import_window$3.default.location||DEFAULT_LOCATION):/\/\//i.test(e)||(e=import_url_toolkit.default.buildAbsoluteURL(import_window$3.default.location&&import_window$3.default.location.href||``,e)),$){var nd=new URL(t,e);return td?nd.href.slice(DEFAULT_LOCATION.length):ed?nd.href.slice(nd.protocol.length):nd.href}return import_url_toolkit.default.buildAbsoluteURL(e,t)}})),forEachMediaGroup$1,init_media_groups=__esmMin((()=>{forEachMediaGroup$1=function(e,t,$){t.forEach(function(t){for(var ed in e.mediaGroups[t])for(var td in e.mediaGroups[t][ed]){var nd=e.mediaGroups[t][ed][td];$(nd,t,ed,td)}})}}));function decodeB64ToUint8Array(e){for(var t=atob(e),$=new Uint8Array(t.length),ed=0;ed<t.length;ed++)$[ed]=t.charCodeAt(ed);return $}var import_window$2,atob,init_decode_b64_to_uint8_array=__esmMin((()=>{init_dist$2(),import_window$2=__toESM(require_window()),atob=function(e){return import_window$2.default.atob?import_window$2.default.atob(e):Buffer.from(e,`base64`).toString(`binary`)}})),require_conventions=__commonJSMin((e=>{function t(e,t,$){if($===void 0&&($=Array.prototype),e&&typeof $.find==`function`)return $.find.call(e,t);for(var ed=0;ed<e.length;ed++)if(Object.prototype.hasOwnProperty.call(e,ed)){var td=e[ed];if(t.call(void 0,td,ed,e))return td}}function $(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze==`function`?t.freeze(e):e}function ed(e,t){if(typeof e!=`object`||!e)throw TypeError(`target is not an object`);for(var $ in t)Object.prototype.hasOwnProperty.call(t,$)&&(e[$]=t[$]);return e}var td=$({HTML:`text/html`,isHTML:function(e){return e===td.HTML},XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),nd=$({HTML:`http://www.w3.org/1999/xhtml`,isHTML:function(e){return e===nd.HTML},SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`});e.assign=ed,e.find=t,e.freeze=$,e.MIME_TYPE=td,e.NAMESPACE=nd})),require_dom=__commonJSMin((e=>{var t=require_conventions(),$=t.find,ed=t.NAMESPACE;function td(e){return e!==``}function nd(e){return e?e.split(/[\t\n\f\r ]+/).filter(td):[]}function rd(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function id(e){if(!e)return[];var t=nd(e);return Object.keys(t.reduce(rd,{}))}function ad(e){return function(t){return e&&e.indexOf(t)!==-1}}function od(e,t){for(var $ in e)Object.prototype.hasOwnProperty.call(e,$)&&(t[$]=e[$])}function sd(e,t){var $=e.prototype;if(!($ instanceof t)){function ed(){}ed.prototype=t.prototype,ed=new ed,od($,ed),e.prototype=$=ed}$.constructor!=e&&(typeof e!=`function`&&console.error(`unknown Class:`+e),$.constructor=e)}var cd={},ld=cd.ELEMENT_NODE=1,ud=cd.ATTRIBUTE_NODE=2,dd=cd.TEXT_NODE=3,fd=cd.CDATA_SECTION_NODE=4,pd=cd.ENTITY_REFERENCE_NODE=5,md=cd.ENTITY_NODE=6,hd=cd.PROCESSING_INSTRUCTION_NODE=7,gd=cd.COMMENT_NODE=8,_d=cd.DOCUMENT_NODE=9,vd=cd.DOCUMENT_TYPE_NODE=10,yd=cd.DOCUMENT_FRAGMENT_NODE=11,bd=cd.NOTATION_NODE=12,xd={},Sd={};xd.INDEX_SIZE_ERR=(Sd[1]=`Index size error`,1),xd.DOMSTRING_SIZE_ERR=(Sd[2]=`DOMString size error`,2);var Cd=xd.HIERARCHY_REQUEST_ERR=(Sd[3]=`Hierarchy request error`,3);xd.WRONG_DOCUMENT_ERR=(Sd[4]=`Wrong document`,4),xd.INVALID_CHARACTER_ERR=(Sd[5]=`Invalid character`,5),xd.NO_DATA_ALLOWED_ERR=(Sd[6]=`No data allowed`,6),xd.NO_MODIFICATION_ALLOWED_ERR=(Sd[7]=`No modification allowed`,7);var wd=xd.NOT_FOUND_ERR=(Sd[8]=`Not found`,8);xd.NOT_SUPPORTED_ERR=(Sd[9]=`Not supported`,9);var Td=xd.INUSE_ATTRIBUTE_ERR=(Sd[10]=`Attribute in use`,10);xd.INVALID_STATE_ERR=(Sd[11]=`Invalid state`,11),xd.SYNTAX_ERR=(Sd[12]=`Syntax error`,12),xd.INVALID_MODIFICATION_ERR=(Sd[13]=`Invalid modification`,13),xd.NAMESPACE_ERR=(Sd[14]=`Invalid namespace`,14),xd.INVALID_ACCESS_ERR=(Sd[15]=`Invalid access`,15);function Ed(e,t){if(t instanceof Error)var $=t;else $=this,Error.call(this,Sd[e]),this.message=Sd[e],Error.captureStackTrace&&Error.captureStackTrace(this,Ed);return $.code=e,t&&(this.message=this.message+`: `+t),$}Ed.prototype=Error.prototype,od(xd,Ed);function Dd(){}Dd.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var $=[],ed=0;ed<this.length;ed++)vf(this[ed],$,e,t);return $.join(``)},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function Od(e,t){this._node=e,this._refresh=t,kd(this)}function kd(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var $=e._refresh(e._node);
80if(xf(e,`length`,$.length),!e.$$length||$.length<e.$$length)for(var ed=$.length;ed in e;ed++)Object.prototype.hasOwnProperty.call(e,ed)&&delete e[ed];od($,e),e._inc=t}}Od.prototype.item=function(e){return kd(this),this[e]||null},sd(Od,Dd);function Ad(){}function jd(e,t){for(var $=e.length;$--;)if(e[$]===t)return $}function Md(e,t,$,ed){if(ed?t[jd(t,ed)]=$:t[t.length++]=$,e){$.ownerElement=e;var td=e.ownerDocument;td&&(ed&&Bd(td,e,ed),zd(td,e,$))}}function Nd(e,t,$){var ed=jd(t,$);if(ed>=0){for(var td=t.length-1;ed<td;)t[ed]=t[++ed];if(t.length=td,e){var nd=e.ownerDocument;nd&&(Bd(nd,e,$),$.ownerElement=null)}}else throw new Ed(wd,Error(e.tagName+`@`+$))}Ad.prototype={length:0,item:Dd.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var $=this[t];if($.nodeName==e)return $}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Ed(Td);var $=this.getNamedItem(e.nodeName);return Md(this._ownerElement,this,e,$),$},setNamedItemNS:function(e){var t=e.ownerElement,$;if(t&&t!=this._ownerElement)throw new Ed(Td);return $=this.getNamedItemNS(e.namespaceURI,e.localName),Md(this._ownerElement,this,e,$),$},removeNamedItem:function(e){var t=this.getNamedItem(e);return Nd(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var $=this.getNamedItemNS(e,t);return Nd(this._ownerElement,this,$),$},getNamedItemNS:function(e,t){for(var $=this.length;$--;){var ed=this[$];if(ed.localName==t&&ed.namespaceURI==e)return ed}return null}};function Pd(){}Pd.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,$){var ed=new Rd;if(ed.implementation=this,ed.childNodes=new Dd,ed.doctype=$||null,$&&ed.appendChild($),t){var td=ed.createElementNS(e,t);ed.appendChild(td)}return ed},createDocumentType:function(e,t,$){var ed=new cf;return ed.name=e,ed.nodeName=e,ed.publicId=t||``,ed.systemId=$||``,ed}};function Fd(){}Fd.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return $d(this,e,t)},replaceChild:function(e,t){$d(this,e,t,Qd),t&&this.removeChild(t)},removeChild:function(e){return Hd(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return bf(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==dd&&e.nodeType==dd?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var $=t._nsMap;if($){for(var ed in $)if(Object.prototype.hasOwnProperty.call($,ed)&&$[ed]===e)return ed}t=t.nodeType==ud?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var $=t._nsMap;if($&&Object.prototype.hasOwnProperty.call($,e))return $[e];t=t.nodeType==ud?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null}};function Id(e){return e==`<`&&`<`||e==`>`&&`>`||e==`&`&&`&`||e==`"`&&`"`||`&#`+e.charCodeAt()+`;`}od(cd,Fd),od(cd,Fd.prototype);function Ld(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Ld(e,t))return!0;while(e=e.nextSibling)}function Rd(){this.ownerDocument=this}function zd(e,t,$){e&&e._inc++,$.namespaceURI===ed.XMLNS&&(t._nsMap[$.prefix?$.localName:``]=$.value)}function Bd(e,t,$,td){e&&e._inc++,$.namespaceURI===ed.XMLNS&&delete t._nsMap[$.prefix?$.localName:``]}function Vd(e,t,$){if(e&&e._inc){e._inc++;var ed=t.childNodes;if($)ed[ed.length++]=$;else{for(var td=t.firstChild,nd=0;td;)ed[nd++]=td,td=td.nextSibling;ed.length=nd,delete ed[ed.length]}}}function Hd(e,t){var $=t.previousSibling,ed=t.nextSibling;return $?$.nextSibling=ed:e.firstChild=ed,ed?ed.previousSibling=$:e.lastChild=$,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Vd(e.ownerDocument,e),t}function Ud(e){return e&&(e.nodeType===Fd.DOCUMENT_NODE||e.nodeType===Fd.DOCUMENT_FRAGMENT_NODE||e.nodeType===Fd.ELEMENT_NODE)}function Wd(e){return e&&(Kd(e)||qd(e)||Gd(e)||e.nodeType===Fd.DOCUMENT_FRAGMENT_NODE||e.nodeType===Fd.COMMENT_NODE||e.nodeType===Fd.PROCESSING_INSTRUCTION_NODE)}function Gd(e){return e&&e.nodeType===Fd.DOCUMENT_TYPE_NODE}function Kd(e){return e&&e.nodeType===Fd.ELEMENT_NODE}function qd(e){return e&&e.nodeType===Fd.TEXT_NODE}function Jd(e,t){var ed=e.childNodes||[];if($(ed,Kd)||Gd(t))return!1;var td=$(ed,Gd);return!(t&&td&&ed.indexOf(td)>ed.indexOf(t))}function Yd(e,t){var ed=e.childNodes||[];function td(e){return Kd(e)&&e!==t}if($(ed,td))return!1;var nd=$(ed,Gd);return!(t&&nd&&ed.indexOf(nd)>ed.indexOf(t))}function Xd(e,t,$){if(!Ud(e))throw new Ed(Cd,`Unexpected parent node type `+e.nodeType);if($&&$.parentNode!==e)throw new Ed(wd,`child not in parent`);if(!Wd(t)||Gd(t)&&e.nodeType!==Fd.DOCUMENT_NODE)throw new Ed(Cd,`Unexpected node type `+t.nodeType+` for parent node type `+e.nodeType)}function Zd(e,t,ed){var td=e.childNodes||[],nd=t.childNodes||[];
vendor: 4,863 bytes, line 80
80if(t.nodeType===Fd.DOCUMENT_FRAGMENT_NODE){var rd=nd.filter(Kd);if(rd.length>1||$(nd,qd))throw new Ed(Cd,`More than one element or text in fragment`);if(rd.length===1&&!Jd(e,ed))throw new Ed(Cd,`Element in fragment can not be inserted before doctype`)}if(Kd(t)&&!Jd(e,ed))throw new Ed(Cd,`Only one element can be added and only after doctype`);if(Gd(t)){if($(td,Gd))throw new Ed(Cd,`Only one doctype is allowed`);var id=$(td,Kd);if(ed&&td.indexOf(id)<td.indexOf(ed))throw new Ed(Cd,`Doctype can only be inserted before an element`);if(!ed&&id)throw new Ed(Cd,`Doctype can not be appended since element is present`)}}function Qd(e,t,ed){var td=e.childNodes||[],nd=t.childNodes||[];if(t.nodeType===Fd.DOCUMENT_FRAGMENT_NODE){var rd=nd.filter(Kd);if(rd.length>1||$(nd,qd))throw new Ed(Cd,`More than one element or text in fragment`);if(rd.length===1&&!Yd(e,ed))throw new Ed(Cd,`Element in fragment can not be inserted before doctype`)}if(Kd(t)&&!Yd(e,ed))throw new Ed(Cd,`Only one element can be added and only after doctype`);if(Gd(t)){function e(e){return Gd(e)&&e!==ed}if($(td,e))throw new Ed(Cd,`Only one doctype is allowed`);var id=$(td,Kd);if(ed&&td.indexOf(id)<td.indexOf(ed))throw new Ed(Cd,`Doctype can only be inserted before an element`)}}function $d(e,t,$,ed){Xd(e,t,$),e.nodeType===Fd.DOCUMENT_NODE&&(ed||Zd)(e,t,$);var td=t.parentNode;if(td&&td.removeChild(t),t.nodeType===yd){var nd=t.firstChild;if(nd==null)return t;var rd=t.lastChild}else nd=rd=t;var id=$?$.previousSibling:e.lastChild;nd.previousSibling=id,rd.nextSibling=$,id?id.nextSibling=nd:e.firstChild=nd,$==null?e.lastChild=rd:$.previousSibling=rd;do nd.parentNode=e;while(nd!==rd&&(nd=nd.nextSibling));return Vd(e.ownerDocument||e,e),t.nodeType==yd&&(t.firstChild=t.lastChild=null),t}function ef(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,Vd(e.ownerDocument,e,t),t}Rd.prototype={nodeName:`#document`,nodeType:_d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==yd){for(var $=e.firstChild;$;){var ed=$.nextSibling;this.insertBefore($,t),$=ed}return e}return $d(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===ld&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Hd(this,e)},replaceChild:function(e,t){$d(this,e,t,Qd),e.ownerDocument=this,t&&this.removeChild(t),Kd(e)&&(this.documentElement=e)},importNode:function(e,t){return yf(this,e,t)},getElementById:function(e){var t=null;return Ld(this.documentElement,function($){if($.nodeType==ld&&$.getAttribute(`id`)==e)return t=$,!0}),t},getElementsByClassName:function(e){var t=id(e);return new Od(this,function($){var ed=[];return t.length>0&&Ld($.documentElement,function(td){if(td!==$&&td.nodeType===ld){var nd=td.getAttribute(`class`);if(nd){var rd=e===nd;if(!rd){var od=id(nd);rd=t.every(ad(od))}rd&&ed.push(td)}}}),ed})},createElement:function(e){var t=new tf;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Dd;var $=t.attributes=new Ad;return $._ownerElement=t,t},createDocumentFragment:function(){var e=new ff;return e.ownerDocument=this,e.childNodes=new Dd,e},createTextNode:function(e){var t=new af;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new of;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new sf;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var $=new pf;return $.ownerDocument=this,$.tagName=$.nodeName=$.target=e,$.nodeValue=$.data=t,$},createAttribute:function(e){var t=new nf;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new df;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var $=new tf,ed=t.split(`:`),td=$.attributes=new Ad;return $.childNodes=new Dd,$.ownerDocument=this,$.nodeName=t,$.tagName=t,$.namespaceURI=e,ed.length==2?($.prefix=ed[0],$.localName=ed[1]):$.localName=t,td._ownerElement=$,$},createAttributeNS:function(e,t){var $=new nf,ed=t.split(`:`);return $.ownerDocument=this,$.nodeName=t,$.name=t,$.namespaceURI=e,$.specified=!0,ed.length==2?($.prefix=ed[0],$.localName=ed[1]):$.localName=t,$}},sd(Rd,Fd);function tf(){this._nsMap={}}tf.prototype={nodeType:ld,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||``},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var $=this.ownerDocument.createAttribute(e);$.value=$.nodeValue=``+t,this.setAttributeNode($)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
80,appendChild:function(e){return e.nodeType===yd?this.insertBefore(e,null):ef(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var $=this.getAttributeNodeNS(e,t);$&&this.removeAttributeNode($)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var $=this.getAttributeNodeNS(e,t);return $&&$.value||``},setAttributeNS:function(e,t,$){var ed=this.ownerDocument.createAttributeNS(e,t);ed.value=ed.nodeValue=``+$,this.setAttributeNode(ed)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Od(this,function(t){var $=[];return Ld(t,function(ed){ed!==t&&ed.nodeType==ld&&(e===`*`||ed.tagName==e)&&$.push(ed)}),$})},getElementsByTagNameNS:function(e,t){return new Od(this,function($){var ed=[];return Ld($,function(td){td!==$&&td.nodeType===ld&&(e===`*`||td.namespaceURI===e)&&(t===`*`||td.localName==t)&&ed.push(td)}),ed})}},Rd.prototype.getElementsByTagName=tf.prototype.getElementsByTagName,Rd.prototype.getElementsByTagNameNS=tf.prototype.getElementsByTagNameNS,sd(tf,Fd);function nf(){}nf.prototype.nodeType=ud,sd(nf,Fd);function rf(){}rf.prototype={data:``,substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(Sd[Cd])},deleteData:function(e,t){this.replaceData(e,t,``)},replaceData:function(e,t,$){var ed=this.data.substring(0,e),td=this.data.substring(e+t);$=ed+$+td,this.nodeValue=this.data=$,this.length=$.length}},sd(rf,Fd);function af(){}af.prototype={nodeName:`#text`,nodeType:dd,splitText:function(e){var t=this.data,$=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var ed=this.ownerDocument.createTextNode($);return this.parentNode&&this.parentNode.insertBefore(ed,this.nextSibling),ed}},sd(af,rf);function of(){}of.prototype={nodeName:`#comment`,nodeType:gd},sd(of,rf);function sf(){}sf.prototype={nodeName:`#cdata-section`,nodeType:fd},sd(sf,rf);function cf(){}cf.prototype.nodeType=vd,sd(cf,Fd);function lf(){}lf.prototype.nodeType=bd,sd(lf,Fd);function uf(){}uf.prototype.nodeType=md,sd(uf,Fd);function df(){}df.prototype.nodeType=pd,sd(df,Fd);function ff(){}ff.prototype.nodeName=`#document-fragment`,ff.prototype.nodeType=yd,sd(ff,Fd);function pf(){}pf.prototype.nodeType=hd,sd(pf,Fd);function mf(){}mf.prototype.serializeToString=function(e,t,$){return hf.call(e,t,$)},Fd.prototype.toString=hf;function hf(e,t){var $=[],ed=this.nodeType==9&&this.documentElement||this,td=ed.prefix,nd=ed.namespaceURI;if(nd&&td==null){var td=ed.lookupPrefix(nd);if(td==null)var rd=[{namespace:nd,prefix:null}]}return vf(this,$,e,t,rd),$.join(``)}function gf(e,t,$){var td=e.prefix||``,nd=e.namespaceURI;if(!nd||td===`xml`&&nd===ed.XML||nd===ed.XMLNS)return!1;for(var rd=$.length;rd--;){var id=$[rd];if(id.prefix===td)return id.namespace!==nd}return!0}function _f(e,t,$){e.push(` `,t,`="`,$.replace(/[<>&"\t\n\r]/g,Id),`"`)}function vf(e,t,$,td,nd){if(nd||=[],td)if(e=td(e),e){if(typeof e==`string`){t.push(e);return}}else return;switch(e.nodeType){case ld:var rd=e.attributes,id=rd.length,ad=e.firstChild,od=e.tagName;$=ed.isHTML(e.namespaceURI)||$;var sd=od;if(!$&&!e.prefix&&e.namespaceURI){for(var cd,md=0;md<rd.length;md++)if(rd.item(md).name===`xmlns`){cd=rd.item(md).value;break}if(!cd)for(var bd=nd.length-1;bd>=0;bd--){var xd=nd[bd];if(xd.prefix===``&&xd.namespace===e.namespaceURI){cd=xd.namespace;break}}if(cd!==e.namespaceURI)for(var bd=nd.length-1;bd>=0;bd--){var xd=nd[bd];if(xd.namespace===e.namespaceURI){xd.prefix&&(sd=xd.prefix+`:`+od);break}}}t.push(`<`,sd);for(var Sd=0;Sd<id;Sd++){var Cd=rd.item(Sd);Cd.prefix==`xmlns`?nd.push({prefix:Cd.localName,namespace:Cd.value}):Cd.nodeName==`xmlns`&&nd.push({prefix:``,namespace:Cd.value})}for(var Sd=0;Sd<id;Sd++){var Cd=rd.item(Sd);if(gf(Cd,$,nd)){var wd=Cd.prefix||``,Td=Cd.namespaceURI;_f(t,wd?`xmlns:`+wd:`xmlns`,Td),nd.push({prefix:wd,namespace:Td})}vf(Cd,t,$,td,nd)}if(od===sd&&gf(e,$,nd)){var wd=e.prefix||``,Td=e.namespaceURI;_f(t,wd?`xmlns:`+wd:`xmlns`,Td),nd.push({prefix:wd,namespace:Td})}if(ad||$&&!/^(?:meta|link|img|br|hr|input)$/i.test(od)){if(t.push(`>`),$&&/^script$/i.test(od))for(;ad;)ad.data?t.push(ad.data):vf(ad,t,$,td,nd.slice()),ad=ad.nextSibling;else for(;ad;)vf(ad,t,$,td,nd.slice()),ad=ad.nextSibling;t.push(`</`,sd,`>`)}else t.push(`/>`);return;case _d:case yd:for(var ad=e.firstChild;ad;)vf(ad,t,$,td,nd.slice()),ad=ad.nextSibling;return;case ud:return _f(t,e.name,e.value);case dd:return t.push(e.data.replace(/[<&>]/g,Id));case fd:return t.push(`<![CDATA[`,e.data,`]]>`);case gd:return t.push(`<!--`,e.data,`-->`);case vd:var Ed=e.publicId,Dd=e.systemId;if(t.push(`<!DOCTYPE `,e.name),Ed)t.push(` PUBLIC `,Ed),Dd&&Dd!=`.`&&t.push(` `,Dd),t.push(`>`);else if(Dd&&Dd!=`.`)t.push(` SYSTEM `,Dd,`>`);else{var Od=e.internalSubset;Od&&t.push(` [`,Od,`]`),t.push(`>`)}return;case hd:return t.push(`<?`,e.target,` `,e.data,`?>`);case pd:return t.push(`&`,e.nodeName,`;`);default:t.push(`??`,e.nodeName)}}function yf(e,t,$){var ed;switch(t.nodeType){case ld:ed=t.cloneNode(!1),ed.ownerDocument=e;case yd:break;case ud:$=!0;break}if(ed||=t.cloneNode(!1),ed.ownerDocument=e,ed.parentNode=null,$)for(var td=t.firstChild;td;)ed.appendChild(yf(e,td,$)),td=td.nextSibling;return ed}function bf(e,t,$){var ed=new t.constructor;for(var td in t)if(Object.prototype.hasOwnProperty.call(t,td)){var nd=t[td];typeof nd!=`object`&&nd!=ed[td]&&(ed[td]=nd)}switch(t.childNodes&&(ed.childNodes=new Dd),ed.ownerDocument=e,ed.nodeType){case ld:var rd=t.attributes,id=ed.attributes=new Ad,ad=rd.length;id._ownerElement=ed;for(var od=0;od<ad;od++)ed.setAttributeNode(bf(e,rd.item(od),!0));break;case ud:$=!0}if($)for(var sd=t.firstChild;sd;)ed.appendChild(bf(e,sd,$)),sd=sd.nextSibling;return ed}function xf(e,t,$){e[t]=$}try{if(Object.defineProperty){Object.defineProperty(Od.prototype,`length`,{get:function(){return kd(this),this.$$length}}),Object.defineProperty(Fd.prototype,`textContent`,{get:function(){return e(this)},set:function(e){switch(this.nodeType){case ld:case yd:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}});function e(t){switch(t.nodeType){case ld:case yd:var $=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&$.push(e(t)),t=t.nextSibling;return $.join(``);default:return t.nodeValue}}xf=function(e,t,$){e[`$$`+t]=$}}}catch{}e.DocumentType=cf,e.DOMException=Ed,e.DOMImplementation=Pd,e.Element=tf,e.Node=Fd,e.NodeList=Dd,e.XMLSerializer
80=mf})),require_entities=__commonJSMin((e=>{var t=require_conventions().freeze;e.XML_ENTITIES=t({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),e.HTML_ENTITIES=t({Aacute:`Ã`,aacute:`á`,Abreve:`Ä`,abreve:`Ä`,ac:`â¾`,acd:`â¿`,acE:`â¾Ì³`,Acirc:`Ã`,acirc:`â`,acute:`´`,Acy:`Ð`,acy:`а`,AElig:`Ã`,aelig:`æ`,af:`â¡`,Afr:`ð`,afr:`ð`,Agrave:`Ã`,agrave:`à `,alefsym:`âµ`,aleph:`âµ`,Alpha:`Î`,alpha:`α`,Amacr:`Ä`,amacr:`Ä`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`â©`,and:`â§`,andand:`â©`,andd:`â©`,andslope:`â©`,andv:`â©`,ang:`â `,ange:`⦤`,angle:`â `,angmsd:`â¡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`â¦`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`â`,angrtvb:`â¾`,angrtvbd:`â¦`,angsph:`â¢`,angst:`Ã
`,angzarr:`â¼`,Aogon:`Ä`,aogon:`Ä
`,Aopf:`ð¸`,aopf:`ð`,ap:`â`,apacir:`⩯`,apE:`â©°`,ape:`â`,apid:`â`,apos:`'`,ApplyFunction:`â¡`,approx:`â`,approxeq:`â`,Aring:`Ã
`,aring:`Ã¥`,Ascr:`ð`,ascr:`ð¶`,Assign:`â`,ast:`*`,asymp:`â`,asympeq:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ã`,auml:`ä`,awconint:`â³`,awint:`â¨`,backcong:`â`,backepsilon:`϶`,backprime:`âµ`,backsim:`â½`,backsimeq:`â`,Backslash:`â`,Barv:`â«§`,barvee:`â½`,Barwed:`â`,barwed:`â
`,barwedge:`â
`,bbrk:`âµ`,bbrktbrk:`â¶`,bcong:`â`,Bcy:`Ð`,bcy:`б`,bdquo:`â`,becaus:`âµ`,Because:`âµ`,because:`âµ`,bemptyv:`⦰`,bepsi:`϶`,bernou:`â¬`,Bernoullis:`â¬`,Beta:`Î`,beta:`β`,beth:`â¶`,between:`â¬`,Bfr:`ð
`,bfr:`ð`,bigcap:`â`,bigcirc:`â¯`,bigcup:`â`,bigodot:`â¨`,bigoplus:`â¨`,bigotimes:`â¨`,bigsqcup:`â¨`,bigstar:`â
`,bigtri
80angledown:`â½`,bigtriangleup:`â³`,biguplus:`â¨`,bigvee:`â`,bigwedge:`â`,bkarow:`â¤`,blacklozenge:`â§«`,blacksquare:`âª`,blacktriangle:`â´`,blacktriangledown:`â¾`,blacktriangleleft:`â`,blacktriangleright:`â¸`,blank:`â£`,blk12:`â`,blk14:`â`,blk34:`â`,block:`â`,bne:`=â¥`,bnequiv:`â¡â¥`,bNot:`â«`,bnot:`â`,Bopf:`ð¹`,bopf:`ð`,bot:`â¥`,bottom:`â¥`,bowtie:`â`,boxbox:`â§`,boxDL:`â`,boxDl:`â`,boxdL:`â`,boxdl:`â`,boxDR:`â`,boxDr:`â`,boxdR:`â`,boxdr:`â`,boxH:`â`,boxh:`â`,boxHD:`â¦`,boxHd:`â¤`,boxhD:`â¥`,boxhd:`â¬`,boxHU:`â©`,boxHu:`â§`,boxhU:`â¨`,boxhu:`â´`,boxminus:`â`,boxplus:`â`,boxtimes:`â `,boxUL:`â`,boxUl:`â`,boxuL:`â`,boxul:`â`,boxUR:`â`,boxUr:`â`,boxuR:`â`,boxur:`â`,boxV:`â`,boxv:`â`,boxVH:`â¬`,boxVh:`â«`,boxvH:`âª`,boxvh:`â¼`,boxVL:`â£`,boxVl:`â¢`,boxvL:`â¡`,boxvl:`â¤`,boxVR:`â `,boxVr:`â`,boxvR:`â`,boxvr:`â`,bprime:`âµ`,Breve:`Ë`,breve:`Ë`,brvbar:`¦`,Bscr:`â¬`,bscr:`ð·`,bsemi:`â`,bsim:`â½`,bsime:`â`,bsol:`\\`,bsolb:`â§
`,bsolhsub:`â`,bull:`â¢`,bullet:`â¢`,bump:`â`,bumpE:`⪮`,bumpe:`â`,Bumpeq:`â`,bumpeq:`â`,Cacute:`Ä`,cacute:`Ä`,Cap:`â`,cap:`â©`,capand:`â©`,capbrcup:`â©`,capcap:`â©`,capcup:`â©`,capdot:`â©`,CapitalDifferentialD:`â
`,caps:`â©ï¸`,caret:`â`,caron:`Ë`,Cayleys:`â`,ccaps:`â©`,Ccaron:`Ä`,ccaron:`Ä`,Ccedil
80:`Ã`,ccedil:`ç`,Ccirc:`Ä`,ccirc:`Ä`,Cconint:`â°`,ccups:`â©`,ccupssm:`â©`,Cdot:`Ä`,cdot:`Ä`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`â`,cfr:`ð `,CHcy:`Ч`,chcy:`Ñ`,check:`â`,checkmark:`â`,Chi:`Χ`,chi:`Ï`,cir:`â`,circ:`Ë`,circeq:`â`,circlearrowleft:`âº`,circlearrowright:`â»`,circledast:`â`,circledcirc:`â`,circleddash:`â`,CircleDot:`â`,circledR:`®`,circledS:`â`,CircleMinus:`â`,CirclePlus:`â`,CircleTimes:`â`,cirE:`â§`,cire:`â`,cirfnint:`â¨`,cirmid:`⫯`,cirscir:`â§`,ClockwiseContourIntegral:`â²`,CloseCurlyDoubleQuote:`â`,CloseCurlyQuote:`â`,clubs:`â£`,clubsuit:`â£`,Colon:`â·`,colon:`:`,Colone:`â©´`,colone:`â`,coloneq:`â`,comma:`,`,commat:`@`,comp:`â`,compfn:`â`,complement:`â`,complexes:`â`,cong:`â
`,congdot:`â©`,Congruent:`â¡`,Conint:`â¯`,conint:`â®`,ContourIntegral:`â®`,Copf:`â`,copf:`ð`,coprod:`â`,Coproduct:`â`,COPY:`©`,copy:`©`,copysr:`â`,CounterClockwiseContourIntegral:`â³`,crarr:`âµ`,Cross:`⨯`,cross:`â`,Cscr:`ð`,cscr:`ð¸`,csub:`â«`,csube:`â«`,csup:`â«`,csupe:`â«`,ctdot:`â¯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`â`,cuesc:`â`,cularr:`â¶`,cularrp:`⤽`,Cup:`â`,cup:`âª`,cupbrcap:`â©`,CupCap:`â`,cupcap:`â©`,cupcup:`â©`,cupdot:`â`,cupor:`â©
`,cups:`âªï¸`,curarr:`â·`,curarrm:`⤼`,curlyeqprec:`â`,curlyeqsucc:`â`,curlyvee:`â`,curlywedge:`â`,curren:`¤`,curvearrowleft:`â¶`,curvearrowright:`â·`,cuvee:`â`,cuwed:`â`,cwconint:`â²`,cwint:`â±`,cylcty:`â`,Dagger:`â¡`,dagger:`â `,daleth:`â¸`,Darr:`â¡`,dArr:`â`,darr:`â`,dash:`â`,Dashv:`⫤`,dashv:`â£`,dbkarow:`â¤`,dblac:`Ë`,Dcaron:`Ä`,dcaron:`Ä`,Dcy:`Ð`,dcy:`д`,DD:`â
`,dd:`â
`,ddagger:`â¡`,ddarr:`â`,DDotrahd:`â¤`,ddotseq:`â©·`,deg:`°`,Del:`â`,Delta:`Î`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`ð`,dfr:`ð¡`,dHar:`⥥`,dharl:`â`,dharr:`â`,DiacriticalAcute:`´`,DiacriticalDot:`Ë`,DiacriticalDoubleAcute:`Ë`,DiacriticalGrave:"`",DiacriticalTilde:`Ë`,diam:`â`,Diamond:`â`,diamond:`â`,diamondsuit:`â¦`,diams:`â¦`,die:`¨`,DifferentialD:`â
`,digamma:`Ï`,disin:`â²`,div:`÷`,divide:`÷`,divideontimes:`â`,divonx:`â`,DJcy:`Ð`,djcy:`Ñ`,dlcorn:`â`,dlcrop:`â`,dollar:`$`,Dopf:`ð»`,dopf:`ð`,Dot:`¨`,dot:`Ë`,DotDot:`â`,doteq:`â`,doteqdot:`â`,DotEqual:`â`,dotminus:`â¸`,dotplus:`â`,dotsquare:`â¡`,doublebarwedge:`â`,DoubleContourIntegral:`â¯`,DoubleDot:`¨`,DoubleDownArrow:`â`,DoubleLeftArrow:`â`,DoubleLeftRightArrow:`â`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`â¸`,DoubleLongLeftRightArrow:`âº`,DoubleLongRightArrow:`â¹`,DoubleRightArrow:`â`,DoubleRightTee:`â¨`,DoubleUpArrow:`â`,DoubleUpDownArrow:`â`,DoubleVerticalBar:`â¥`,DownArrow:`â`,Downarrow:`â`,downarrow:`â`,DownArrowBar:`â¤`,DownArrowUpArrow:`âµ`,DownBreve:`Ì`,downdownarrows:`â`,downharpoonleft:`â`,downharpoonright:`â`,DownLeftRightVector:`â¥`,DownLeftTeeVector:`â¥`,DownLeftVector:`â½`,DownLeftVectorBar:`â¥`,DownRightTeeVector:`â¥`,DownRightVector:`â`,DownRightVectorBar:`â¥`,DownTee:`â¤`,DownTeeArrow:`â§`,drbkarow:`â¤`,drcorn:`â`,drcrop:`â`,Dscr:`ð`,dscr:`ð¹`,DScy:`Ð
`,dscy:`Ñ`,dsol:`â§¶`,Dstrok:`Ä`,dstrok:`Ä`,dtdot:`â±`,dtri:`â¿`,dtrif:`â¾`,duarr:`âµ`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Ð`,dzcy:`Ñ`,dzigrarr:`â¿`,Eacute:`Ã`,eacute:`é`,easter:`â©®`,Ecaron:`Ä`,ecaron:`Ä`,ecir:`â`,Ecirc:`Ã`,ecirc:`ê`,ecolon:`â`,Ecy:`Ð`,ecy:`Ñ`,eDDot:`â©·`,Edot:`Ä`,eDot:`â`,edot:`Ä`,ee:`â
`,efDot:`â`,Efr:`ð`,efr:`ð¢`,eg:`âª`,Egrave:`Ã`,egrave:`è`,egs:`âª`,egsdot:`âª`,el:`âª`,Element:`â`,elinters:`â§`,ell:`â`,els:`âª`,elsdot:`âª`,Emacr:`Ä`,emacr:`Ä`,empty:`â
`,emptyset:`â
`,EmptySmallSquare:`â»`,emptyv:`â
`,EmptyVerySmallSquare:`â«`,emsp:`â`,emsp13:`â`,emsp14:`â
`,ENG:`Å`,eng:`Å`,ensp:`â`,Eogon:`Ä`,eogon:`Ä`,Eopf:`ð¼`,eopf:`ð`,epar:`â`,eparsl:`â§£`,eplus:`⩱`,epsi:`ε`,Epsilon:`Î`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`â`,eqcolon:`â`,eqsim:`â`,eqslantgtr:`âª`,eqslantless:`âª`,Equal:`⩵`,equals:`=`,EqualTilde:`â`,equest:`â`,Equilibrium:`â`,equiv:`â¡`,equivDD:`⩸`,eqvparsl:`â§¥`,erarr:`⥱`,erDot:`â`,Escr:`â°`,escr:`â¯`,esdot:`â`,Esim:`⩳`,esim:`â`,Eta:`Î`,eta:`η`,ETH:`Ã`,eth:`ð`,Euml:`Ã`,euml:`ë`,euro:`â¬`,excl:`!`,exist:`â`,Exists:`â`,expectation:`â°`,ExponentialE:`â
`,exponentiale:`â
`,fallingdotseq:`â`,Fcy:`Ф`,fcy:`Ñ`,female:`â`,ffilig:`ï¬`,fflig:`ï¬`,ffllig:`ï¬`,Ffr:`ð`,ffr:`ð£`,filig:`ï¬`,FilledSmallSquare:`â¼`,FilledVerySmallSquare:`âª`,fjlig:`fj`,flat:`â`,fllig:`ï¬`,fltns:`â±`,fnof:`Æ`,Fopf:`ð½`,fo
80pf:`ð`,ForAll:`â`,forall:`â`,fork:`â`,forkv:`â«`,Fouriertrf:`â±`,fpartint:`â¨`,frac12:`½`,frac13:`â
`,frac14:`¼`,frac15:`â
`,frac16:`â
`,frac18:`â
`,frac23:`â
`,frac25:`â
`,frac34:`¾`,frac35:`â
`,frac38:`â
`,frac45:`â
`,frac56:`â
`,frac58:`â
`,frac78:`â
`,frasl:`â`,frown:`â¢`,Fscr:`â±`,fscr:`ð»`,gacute:`ǵ`,Gamma:`Î`,gamma:`γ`,Gammad:`Ï`,gammad:`Ï`,gap:`âª`,Gbreve:`Ä`,gbreve:`Ä`,Gcedil:`Ä¢`,Gcirc:`Ä`,gcirc:`Ä`,Gcy:`Ð`,gcy:`г`,Gdot:`Ä `,gdot:`Ä¡`,gE:`â§`,ge:`â¥`,gEl:`âª`,gel:`â`,geq:`â¥`,geqq:`â§`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`âª`,gesdoto:`âª`,gesdotol:`âª`,gesl:`âï¸`,gesles:`âª`,Gfr:`ð`,gfr:`ð¤`,Gg:`â`,gg:`â«`,ggg:`â`,gimel:`â·`,GJcy:`Ð`,gjcy:`Ñ`,gl:`â·`,gla:`⪥`,glE:`âª`,glj:`⪤`,gnap:`âª`,gnapprox:`âª`,gnE:`â©`,gne:`âª`,gneq:`âª`,gneqq:`â©`,gnsim:`â§`,Gopf:`ð¾`,gopf:`ð`,grave:"`",GreaterEqual:`â¥`,GreaterEqualLess:`â`,GreaterFullEqual:`â§`,GreaterGreater:`⪢`,GreaterLess:`â·`,GreaterSlantEqual:`⩾`,GreaterTilde:`â³`,Gscr:`ð¢`,gscr:`â`,gsim:`â³`,gsime:`âª`,gsiml:`âª`,Gt:`â«`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`â`,gtlPar:`â¦`,gtquest:`⩼`,gtrapprox:`âª`,gtrarr:`⥸`,gtrdot:`â`,gtreqless:`â`,gtreqqless:`âª`,gtrless:`â·`,gtrsim:`â³`,gvertneqq:`â©ï¸`,gvnE:`â©ï¸`,Hacek:`Ë`,hairsp:`â`,half:`½`,hamilt:`â`,HARDcy:`Ъ`,hardcy:`Ñ`,hArr:`â`,harr:`â`,harrcir:`â¥`,harrw:`â`,Hat:`^`,hbar:`â`,Hcirc:`Ĥ`,hcirc:`Ä¥`,hearts:`â¥`,heartsuit:`â¥`,hellip:`â¦`,hercon:`â¹`,Hfr:`â`,hfr:`ð¥`,HilbertSpace:`â`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`â¿`,homtht:`â»`,hookleftarrow:`â©`,hookrightarrow:`âª`,Hopf:`â`,hopf:`ð`,horbar:`â`,HorizontalLine:`â`,Hscr:`â`,hscr:`ð½`,hslash:`â`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`â`,HumpEqual:`â`,hybull:`â`,hyphen:`â`,Iacute:`Ã`,iacute:`Ã`,ic:`â£`,Icirc:`Ã`,icirc:`î`,Icy:`Ð`,icy:`и`,Idot:`İ`,IEcy:`Ð`,iecy:`е`,iexcl:`¡`,iff:`â`,Ifr:`â`,ifr:`ð¦`,Igrave:`Ã`,igrave:`ì`,ii:`â
`,iiiint:`â¨`,iiint:`â`,iinfin:`â§`,iiota:`â©`,IJlig:`IJ`,ijlig:`ij`,Im:`â`,Imacr:`Ī`,imacr:`Ä«`,image:`â`,ImaginaryI:`â
`,imagline:`â`,imagpart:`â`,imath:`ı`,imof:`â·`,imped:`Ƶ`,Implies:`â`,in:`â`,incare:`â
`,infin:`â`,infintie:`â§`,inodot:`ı`,Int:`â¬`,int:`â«`,intcal:`âº`,integers:`â¤`,Integral:`â«`,intercal:`âº`,Intersection:`â`,intlarhk:`â¨`,intprod:`⨼`,InvisibleComma:`â£`,InvisibleTimes:`â¢`,IOcy:`Ð`,iocy:`Ñ`,Iogon:`Ä®`,iogon:`į`,Iopf:`ð`,iopf:`ð`,Iota:`Î`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`â`,iscr:`ð¾`,isin:`â`,isindot:`âµ`,isinE:`â¹`,isins:`â´`,isinsv:`â³`,isinv:`â`,it:`â¢`,Itilde:`Ĩ`,itilde:`Ä©`,Iukcy:`Ð`,iukcy:`Ñ`,Iuml:`Ã`,iuml:`ï`,Jcirc:`Ä´`,jcirc:`ĵ`,Jcy:`Ð`,jcy:`й`,Jfr:`ð`,jfr:`ð§`,jmath:`È·`,Jopf:`ð`,jopf:`ð`,Jscr:`ð¥`,jscr:`ð¿`,Jsercy:`Ð`,jsercy:`Ñ`,Jukcy:`Ð`,jukcy:`Ñ`,Kappa:`Î`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`Ä·`,Kcy:`Ð`,kcy:`к`,Kfr:`ð`,kfr:`ð¨`,kgreen:`ĸ`,KHcy:`Ð¥`,khcy:`Ñ
`,KJcy:`Ð`,kjcy:`Ñ`,Kopf:`ð`,kopf:`ð`,Kscr:`ð¦`,kscr:`ð`,lAarr:`â`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`â`,Lambda:`Î`,lambda:`λ`,Lang:`âª`,lang:`â¨`,langd:`â¦`,langle:`â¨`,lap:`âª
`,Laplacetrf:`â`,laquo:`«`,Larr:`â`,lArr:`â`,larr:`â`,larrb:`â¤`,larrbfs:`â¤`,larrfs:`â¤`,larrhk:`â©`,larrlp:`â«`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`â¢`,lat:`⪫`,lAtail:`â¤`,latail:`â¤`,late:`âª`,lates:`âªï¸`,lBarr:`â¤`,lbarr:`â¤`,lbbrk:`â²`,lbrace:`{`,lbrack:`[`,lbrke:`â¦`,lbrksld:`â¦`,lbrkslu:`â¦`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ä»`,lcedil:`ļ`,lceil:`â`,lcub:`{`,Lcy:`Ð`,lcy:`л`,ldca:`⤶`,ldquo:`â`,ldquor:`â`,ldrdhar:`⥧`,ldrushar:`â¥`,ldsh:`â²`,lE:`â¦`,le:`â¤`,LeftAngleBracket:`â¨`,LeftArrow:`â`,Leftarrow:`â`,leftarrow:`â`,LeftArrowBar:`â¤`,LeftArrowRightArrow:`â`,leftarrowtail:`â¢`,LeftCeiling:`â`,LeftDoubleBracket:`â¦`,LeftDownTeeVector:`⥡`,LeftDownVector:`â`,LeftDownVectorBar:`â¥`,LeftFloor:`â`,leftharpoondown:`â½`,leftharpoonup:`â¼`,leftleftarrows:`â`,LeftRightArrow:`â`,Leftrightarrow:`â`,leftrightarrow:`â`,leftrightarrows:`â`,leftrightharpoons:`â`,leftrightsquigarrow:`â`,LeftRightVector:`â¥`,LeftTee:`â£`,LeftTeeArrow:`â¤`,LeftTeeVector:`â¥`,leftthreetimes:`â`,LeftTriangle:`â²`,LeftTriangleBar:`â§`,LeftTriangleEqual:`â´`,LeftUpDownVector:`â¥`,LeftUpTeeVector:`⥠`,LeftUpVector:`â
80¿`,LeftUpVectorBar:`â¥`,LeftVector:`â¼`,LeftVectorBar:`â¥`,lEg:`âª`,leg:`â`,leq:`â¤`,leqq:`â¦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`â©¿`,lesdoto:`âª`,lesdotor:`âª`,lesg:`âï¸`,lesges:`âª`,lessapprox:`âª
`,lessdot:`â`,lesseqgtr:`â`,lesseqqgtr:`âª`,LessEqualGreater:`â`,LessFullEqual:`â¦`,LessGreater:`â¶`,lessgtr:`â¶`,LessLess:`⪡`,lesssim:`â²`,LessSlantEqual:`⩽`,LessTilde:`â²`,lfisht:`⥼`,lfloor:`â`,Lfr:`ð`,lfr:`ð©`,lg:`â¶`,lgE:`âª`,lHar:`⥢`,lhard:`â½`,lharu:`â¼`,lharul:`⥪`,lhblk:`â`,LJcy:`Ð`,ljcy:`Ñ`,Ll:`â`,ll:`âª`,llarr:`â`,llcorner:`â`,Lleftarrow:`â`,llhard:`⥫`,lltri:`âº`,Lmidot:`Ä¿`,lmidot:`Å`,lmoust:`â°`,lmoustache:`â°`,lnap:`âª`,lnapprox:`âª`,lnE:`â¨`,lne:`âª`,lneq:`âª`,lneqq:`â¨`,lnsim:`â¦`,loang:`â¬`,loarr:`â½`,lobrk:`â¦`,LongLeftArrow:`âµ`,Longleftarrow:`â¸`,longleftarrow:`âµ`,LongLeftRightArrow:`â·`,Longleftrightarrow:`âº`,longleftrightarrow:`â·`,longmapsto:`â¼`,LongRightArrow:`â¶`,Longrightarrow:`â¹`,longrightarrow:`â¶`,looparrowleft:`â«`,looparrowright:`â¬`,lop
80ar:`⦠`,Lopf:`ð`,lopf:`ð`,loplus:`â¨`,lotimes:`⨴`,lowast:`â`,lowbar:`_`,LowerLeftArrow:`â`,LowerRightArrow:`â`,loz:`â`,lozenge:`â`,lozf:`â§«`,lpar:`(`,lparlt:`â¦`,lrarr:`â`,lrcorner:`â`,lrhar:`â`,lrhard:`â¥`,lrm:`â`,lrtri:`â¿`,lsaquo:`â¹`,Lscr:`â`,lscr:`ð`,Lsh:`â°`,lsh:`â°`,lsim:`â²`,lsime:`âª`,lsimg:`âª`,lsqb:`[`,lsquo:`â`,lsquor:`â`,Lstrok:`Å`,lstrok:`Å`,Lt:`âª`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`â`,lthree:`â`,ltimes:`â`,ltlarr:`⥶`,ltquest:`â©»`,ltri:`â`,ltrie:`â´`,ltrif:`â`,ltrPar:`â¦`,lurdshar:`â¥`,luruhar:`⥦`,lvertneqq:`â¨ï¸`,lvnE:`â¨ï¸`,macr:`¯`,male:`â`,malt:`â `,maltese:`â `,Map:`⤠`,map:`â¦`,mapsto:`â¦`,mapstodown:`â§`,mapstoleft:`â¤`,mapstoup:`â¥`,marker:`â®`,mcomma:`⨩`,Mcy:`Ð`,mcy:`м`,mdash:`â`,mDDot:`âº`,measuredangle:`â¡`,MediumSpace:`â`,Mellintrf:`â³`,Mfr:`ð`,mfr:`ðª`,mho:`â§`,micro:`µ`,mid:`â£`,midast:`*`,midcir:`â«°`,middot:`·`,minus:`â`,minusb:`â`,minusd:`â¸`,minusdu:`⨪`,MinusPlus:`â`,mlcp:`â«`,mldr:`â¦`,mnplus:`â`,models:`â§`,Mopf:`ð`,mopf:`ð`,mp:`â`,Mscr:`â³`,mscr:`ð`,mstpos:`â¾`,Mu:`Î`,mu:`μ`,multimap:`â¸`,mumap:`â¸`,nabla:`â`,Nacute:`Å`,nacute:`Å`,nang:`â â`,nap:`â`,napE:`⩰̸`,napid:`â̸`,napos:`Å`,napprox:`â`,natur:`â®`,natural:`â®`,naturals:`â`,nbsp:`\xA0`,nbump:`â̸`,nbumpe:`â̸`,ncap:`â©`,Ncaron:`Å`,ncaron:`Å`,Ncedil:`Å `,ncedil:`Å`,ncong:`â`,ncongdot:`â©Ì¸`,ncup:`â©`,Ncy:`Ð`,ncy:`н`,ndash:`â`,ne:`â `,nearhk:`⤤`,neArr:`â`,nearr:`â`,nearrow:`â`,nedot:`â̸`,NegativeMediumSpace:`â`,NegativeThickSpace:`â`,NegativeThinSpace:`â`,NegativeVeryThinSpace:`â`,nequiv:`â¢`,nesear:`⤨`,nesim:`â̸`,NestedGreaterGreater:`â«`,NestedLessLess:`âª`,NewLine:` 81`,nexist:`â`,nexists:`â`,Nfr:`ð`,nfr:`ð«`,ngE:`â§Ì¸`,nge:`â±`,ngeq:`â±`,ngeqq:`â§Ì¸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`â̸`,ngsim:`âµ`,nGt:`â«â`,ngt:`â¯`,ngtr:`â¯`,nGtv:`â«Ì¸`,nhArr:`â`,nharr:`â®`,nhpar:`⫲`,ni:`â`,nis:`â¼`,nisd:`âº`,niv:`â`,NJcy:`Ð`,njcy:`Ñ`,nlArr:`â`,nlarr:`â`,nldr:`â¥`,nlE:`â¦Ì¸`,nle:`â°`,nLeftarrow:`â`,nleftarrow:`â`,nLeftrightarrow:`â`,nleftrightarrow:`â®`,nleq:`â°`,nleqq:`â¦Ì¸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`â®`,nLl:`â̸`,nlsim:`â´`,nLt:`âªâ`,nlt:`â®`,nltri:`âª`,nltrie:`â¬`,nLtv:`âªÌ¸`,nmid:`â¤`,NoBreak:`â `,NonBreakingSpace:`\xA0`,Nopf:`â`,nopf:`ð`,Not:`⫬`,not:`¬`,NotCongruent:`â¢`,NotCupCap:`â`,NotDoubleVerticalBar:`â¦`,NotElement:`â`,NotEqual:`â `,NotEqualTilde:`â̸`,NotExists:`â`,NotGreater:`â¯`,NotGreaterEqual:`â±`,NotGreaterFullEqual:`â§Ì¸`,NotGreaterGreater:`â«Ì¸`,NotGreaterLess:`â¹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`âµ`,NotHumpDownHump:`â̸`,NotHumpEqual:`â̸`,notin:`â`,notindot:`âµÌ¸`,notinE:`â¹Ì¸`,notinva:`â`,notinvb:`â·`,notinvc:`â¶`,NotLeftTriangle:`âª`,NotLeftTriangleBar:`â§Ì¸`,NotLeftTriangleEqual:`â¬`,NotLess:`â®`,NotLessEqual:`â°`,NotLessGreater:`â¸`,NotLessLess:`âªÌ¸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`â´`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`â`,notniva:`â`,notnivb:`â¾`,notnivc:`â½`,NotPrecedes:`â`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`â `,NotReverseElement:`â`,NotRightTriangle:`â«`,NotRightTriangleBar:`â§Ì¸`,NotRightTriangleEqual:`â`,NotSquareSubset:`â̸`,NotSquareSubsetEqual:`â¢`,NotSquareSuperset:`â̸`,NotSquareSupersetEqual:`â£`,NotSubset:`ââ`,NotSubsetEqual:`â`,NotSucceeds:`â`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`â¡`,NotSucceedsTilde:`â¿Ì¸`,NotSuperset:`ââ`,NotSupersetEqual:`â`,NotTilde:`â`,NotTildeEqual:`â`,NotTildeFullEqual:`â`,NotTildeTilde:`â`,NotVerticalBar:`â¤`,npar:`â¦`,nparallel:`â¦`,nparsl:`⫽â¥`,npart:`â̸`,npolint:`â¨`,npr:`â`,nprcue:`â `,npre:`⪯̸`,nprec:`â`,npreceq:`⪯̸`,nrArr:`â`,nrarr:`â`,nrarrc:`⤳̸`,nrarrw:`â̸`,nRightarrow:`â`,nrightarrow:`â`,nrtri:`â«`,nrtrie:`â`,nsc:`â`,nsccue:`â¡`,nsce:`⪰̸`,Nscr:`ð©`,nscr:`ð`,nshortmid:`â¤`,nshortparallel:`â¦`,nsim:`â`,nsime:`â`,nsimeq:`â`,nsmid:`â¤`,nspar:`â¦`,nsqsube:`â¢`,nsqsupe:`â£`,nsub:`â`,nsubE:`⫠̸`,nsube:`â`,nsubset:`ââ`,nsubseteq:`â`,nsubseteqq:`⫠̸`,nsucc:`â`,nsucceq:`⪰̸`,nsup:`â `,nsupE:`â«Ì¸`,nsupe:`â`,nsupset:`ââ`,nsupseteq:`â`,nsupseteqq:`â«Ì¸`,ntgl:`â¹`,Ntilde:`Ã`,ntilde:`ñ`,ntlg:`â¸`,ntriangleleft:`âª`,ntrianglelefteq:`â¬`,ntriangleright:`â«`,ntrianglerighteq:`â`,Nu:`Î`,nu:`ν`,num:`#`,numero:`â`,numsp:`â`,nvap:`ââ`,nVDash:`â¯`,nVdash:`â®`,nvDash:`â`,nvdash:`â¬`,nvge:`â¥â`,nvgt:`>â`,nvHarr:`â¤`,nvinfin:`â§`,nvlArr:`â¤`,nvle:`â¤â`,nvlt:`<â`,nvltrie:`â´â`,nvrArr:`â¤`,nvrtrie:`âµâ`,nvsim:`â¼â`,nwarhk:`⤣`,nwArr:`â`,nwarr:`â`,nwarrow:`â`,nwnear:`⤧`,Oacute:`Ã`,oacute:`ó`,oast:`â`,ocir:`â`,Ocirc:`Ã`,ocirc:`ô`,Ocy:`Ð`,ocy:`о`,odash:`â`,Odblac:`Å`,odblac:`Å`,odiv:`⨸`,odot:`â`,odsold:`⦼`,OElig:`Å`,oelig:`Å`,ofcir:`⦿`,Ofr:`ð`,ofr:`ð¬`,ogon:`Ë`,Ograve:`Ã`,ograve:`ò`,ogt:`â§`,ohbar:`⦵`,ohm:`Ω`,oint:`â®`,olarr:`âº`,olcir:`⦾`,olcross:`⦻`,oline:`â¾`,olt:`â§`,Omacr:`Å`,omacr:`Å`,Omega:`Ω`,omega:`Ï`,Omicron:`Î`,omicron:`ο`,omid:`⦶`,ominus:`â`,Oopf:`ð`,oopf:`ð `,opar:`⦷`,OpenCurlyDoubleQuote:`â`,OpenCurlyQuote:`â`,operp:`⦹`,oplus:`â`,Or:`â©`,or:`â¨`,orarr:`â»`,ord:`â©`,order:`â´`,orderof:`â´`,ordf:`ª`,ordm:`º`,origof:`â¶`,oror:`â©`,orslope:`â©`,orv:`â©`,oS:`â`,Oscr:`ðª`,oscr:`â´`,Oslash:`Ã`,oslash:`ø`,osol:`â`,Otilde:`Ã`,otilde:`õ`,Otimes:`⨷`,otimes:`â`,otimesas:`⨶`,Ouml:`Ã`,ouml:`ö`,ovbar:`â½`,OverBar:`â¾`,OverBrace:`â`,OverBracket:`â´`,OverParenthesis:`â`,par:`â¥`,para:`¶`,parallel:`â¥`,parsim:`⫳`,parsl:`⫽`,part:`â`,PartialD:`â`,Pcy:`Ð`,pcy:`п`,percnt:`%`,period:`.`,permil:`â°`,perp:`â¥`,pertenk:`â±`,Pfr:`ð`,pfr:`ð`,Phi:`Φ`,phi:`Ï`,phiv:`Ï`,phmmat:`â³`,phone:`â`,P
81i:`Î `,pi:`Ï`,pitchfork:`â`,piv:`Ï`,planck:`â`,planckh:`â`,plankv:`â`,plus:`+`,plusacir:`⨣`,plusb:`â`,pluscir:`⨢`,plusdo:`â`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`â`,pointint:`â¨`,Popf:`â`,popf:`ð¡`,pound:`£`,Pr:`⪻`,pr:`âº`,prap:`⪷`,prcue:`â¼`,prE:`⪳`,pre:`⪯`,prec:`âº`,precapprox:`⪷`,preccurlyeq:`â¼`,Precedes:`âº`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`â¼`,PrecedesTilde:`â¾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`â¨`,precsim:`â¾`,Prime:`â³`,prime:`â²`,primes:`â`,prnap:`⪹`,prnE:`⪵`,prnsim:`â¨`,prod:`â`,Product:`â`,profalar:`â®`,profline:`â`,profsurf:`â`,prop:`â`,Proportion:`â·`,Proportional:`â`,propto:`â`,prsim:`â¾`,prurel:`â°`,Pscr:`ð«`,pscr:`ð
`,Psi:`Ψ`,psi:`Ï`,puncsp:`â`,Qfr:`ð`,qfr:`ð®`,qint:`â¨`,Qopf:`â`,qopf:`ð¢`,qprime:`â`,Qscr:`ð¬`,qscr:`ð`,quaternions:`â`,quatint:`â¨`,quest:`?`,questeq:`â`,QUOT:`"`,quot:`"`,rAarr:`â`,race:`â½Ì±`,Racute:`Å`,racute:`Å`,radic:`â`,raemptyv:`⦳`,Rang:`â«`,rang:`â©`,rangd:`â¦`,range:`⦥`,rangle:`â©`,raquo:`»`,Rarr:`â `,rArr:`â`,rarr:`â`,rarrap:`⥵`,rarrb:`â¥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`â¤`,rarrhk:`âª`,rarrlp:`â¬`,rarrpl:`â¥
`,rarrsim:`⥴`,Rarrtl:`â¤`,rarrtl:`â£`,rarrw:`â`,rAtail:`â¤`,ratail:`â¤`,ratio:`â¶`,rationals:`â`,RBarr:`â¤`,rBarr:`â¤`,rbarr:`â¤`,rbbrk:`â³`,rbrace:`}`,rbrack:`]`,rbrke:`â¦`,rbrksld:`â¦`,rbrkslu:`â¦`,Rcaron:`Å`,rcaron:`Å`,Rcedil:`Å`,rcedil:`Å`,rceil:`â`,rcub:`}`,Rcy:`Ð `,rcy:`Ñ`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`â`,rdquor:`â`,rdsh:`â³`,Re:`â`,real:`â`,realine:`â`,realpart:`â`,reals:`â`,rect:`â`,REG:`®`,reg:`®`,ReverseElement:`â`,ReverseEquilibrium:`â`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`â`,Rfr:`â`,rfr:`ð¯`,rHar:`⥤`,rhard:`â`,rharu:`â`,rharul:`⥬`,Rho:`Ρ`,rho:`Ï`,rhov:`ϱ`,RightAngleBracket:`â©`,RightArrow:`â`,Rightarrow:`â`,rightarrow:`â`,RightArrowBar:`â¥`,RightArrowLeftArrow:`â`,rightarrowtail:`â£`,RightCeiling:`â`,RightDoubleBracket:`â§`,RightDownTeeVector:`â¥`,RightDownVector:`â`,RightDownVectorBar:`â¥`,RightFloor:`â`,rightharpoondown:`â`,rightharpoonup:`â`,rightleftarrows:`â`,rightleftharpoons:`â`,rightrightarrows:`â`,rightsquigarrow:`â`,RightTee:`â¢`,RightTeeArrow:`â¦`,RightTeeVector:`â¥`,rightthreetimes:`â`,RightTriangle:`â³`,RightTriangleBar:`â§`,RightTriangleEqual:`âµ`,RightUpDownVector:`â¥`,RightUpTeeVector:`â¥`,RightUpVector:`â
81¾`,RightUpVectorBar:`â¥`,RightVector:`â`,RightVectorBar:`â¥`,ring:`Ë`,risingdotseq:`â`,rlarr:`â`,rlhar:`â`,rlm:`â`,rmoust:`â±`,rmoustache:`â±`,rnmid:`â«®`,roang:`â`,roarr:`â¾`,robrk:`â§`,ropar:`â¦`,Ropf:`â`,ropf:`ð£`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`â¦`,rppolint:`â¨`,rrarr:`â`,Rrightarrow:`â`,rsaquo:`âº`,Rscr:`â`,rscr:`ð`,Rsh:`â±`,rsh:`â±`,rsqb:`]`,rsquo:`â`,rsquor:`â`,rthree:`â`,rtimes:`â`,rtri:`â¹`,rtrie:`âµ`,rtrif:`â¸`,rtriltri:`â§`,RuleDelayed:`â§´`,ruluhar:`⥨`,rx:`â`,Sacute:`Å`,sacute:`Å`,sbquo:`â`,Sc:`⪼`,sc:`â»`,scap:`⪸`,Scaron:`Å `,scaron:`Å¡`,sccue:`â½`,scE:`⪴`,sce:`⪰`,Scedil:`Å`,scedil:`Å`,Scirc:`Å`,scirc:`Å`,scnap:`⪺`,scnE:`⪶`,scnsim:`â©`,scpolint:`â¨`,scsim:`â¿`,Scy:`С`,scy:`Ñ`,sdot:`â
`,sdotb:`â¡`,sdote:`⩦`,searhk:`⤥`,seArr:`â`,searr:`â`,searrow:`â`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`â`,setmn:`â`,sext:`â¶`,Sfr:`ð`,sfr:`ð°`,sfrown:`â¢`,sharp:`â¯`,SHCHcy:`Щ`,shchcy:`Ñ`,SHcy:`Ш`,shcy:`Ñ`,ShortDownArrow:`â`,ShortLeftArrow:`â`,shortmid:`â£`,shortparallel:`â¥`,ShortRightArrow:`â`,ShortUpArrow:`â`,shy:`Â`,Sigma:`Σ`,sigma:`Ï`,sigmaf:`Ï`,sigmav:`Ï`,sim:`â¼`,simdot:`⩪`,sime:`â`,simeq:`â`,simg:`âª`,simgE:`⪠`,siml:`âª`,simlE:`âª`,simne:`â`,simplus:`⨤`,simrarr:`⥲`,slarr:`â`,SmallCircle:`â`,smallsetminus:`â`,smashp:`⨳`,smeparsl:`⧤`,smid:`â£`,smile:`â£`,smt:`⪪`,smte:`⪬`,smtes:`⪬ï¸`,SOFTcy:`Ь`,softcy:`Ñ`,sol:`/`,solb:`â§`,solbar:`â¿`,Sopf:`ð`,sopf:`ð¤`,spades:`â `,spadesuit:`â `,spar:`â¥`,sqcap:`â`,sqcaps:`âï¸`,sqcup:`â`,sqcups:`âï¸`,Sqrt:`â`,sqsub:`â`,sqsube:`â`,sqsubset:`â`,sqsubseteq:`â`,sqsup:`â`,sqsupe:`â`,sqsupset:`â`,sqsupseteq:`â`,squ:`â¡`,Square:`â¡`,square:`â¡`,SquareIntersection:`â`,SquareSubset:`â`,SquareSubsetEqual:`â`,SquareSuperset:`â`,SquareSupersetEqual:`â`,SquareUnion:`â`,squarf:`âª`,squf:`âª`,srarr:`â`,Sscr:`ð®`,sscr:`ð`,ssetmn:`â`,ssmile:`â£`,sstarf:`â`,Star:`â`,star:`â`,starf:`â
`,straightepsilon:`ϵ`,straightphi:`Ï`,strns:`¯`,Sub:`â`,sub:`â`,subdot:`⪽`,subE:`â«
`,sube:`â`,subedot:`â«`,submult:`â«`,subnE:`â«`,subne:`â`,subplus:`⪿`,subrarr:`⥹`,Subset:`â`,subset:`â`,subseteq:`â`,subseteqq:`â«
`,SubsetEqual:`â`,subsetneq:`â`,subsetneqq:`â«`,subsim:`â«`,subsub:`â«`,subsup:`â«`,succ:`â»`,succapprox:`⪸`,succcurlyeq:`â½`,Succeeds:`â»`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`â½`,SucceedsTilde:`â¿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`â©`,succsim:`â¿`,SuchThat:`â`,Sum:`â`,sum:`â`,sung:`âª`,Sup:`â`,sup:`â`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`â«`,supE:`â«`,supe:`â`,supedot:`â«`,Superset:`â`,SupersetEqual:`â`,suphsol:`â`,suphsub:`â«`,suplarr:`⥻`,supmult:`â«`,supnE:`â«`,supne:`â`,supplus:`â«`,Supset:`â`,supset:`â`,supseteq:`â`,supseteqq:`â«`,supsetneq:`â`,supsetneqq:`â«`,supsim:`â«`,supsub:`â«`,supsup:`â«`,swarhk:`⤦`,swArr:`â`,swarr:`â`,swarrow:`â`,swnwar:`⤪`,szlig:`Ã`,Tab:` `,target:`â`,Tau:`Τ`,tau:`Ï`,tbrk:`â´`,Tcaron:`Ť`,tcaron:`Å¥`,Tcedil:`Å¢`,tcedil:`Å£`,Tcy:`Т`,tcy:`Ñ`,tdot:`â`,telrec:`â`,Tfr:`ð`,tfr:`ð±`,there4:`â´`,Therefore:`â´`,therefore:`â´`,Theta:`Î`,theta:`θ`,thetasym:`Ï`,thetav:`Ï`,thickapprox:`â`,thicksim:`â¼`,ThickSpace:`ââ`,thinsp:`â`,ThinSpace:`â`,thkap:`â`,thksim:`â¼`,THORN:`Ã`,thorn:`þ`,Tilde:`â¼`,tilde:`Ë`,TildeEqual:`â`,TildeFullEqual:`â
`,TildeTilde:`â`,times:`Ã`,timesb:`â `,timesbar:`⨱`,timesd:`⨰`,tint:`â`,toea:`⤨`,top:`â¤`,topbot:`â¶`,topcir:`⫱`,Topf:`ð`,topf:`ð¥`,topfork:`â«`,tosa:`⤩`,tprime:`â´`,TRADE:`â¢`,trade:`â¢`,triangle:`âµ`,triangledown:`â¿`,triangleleft:`â`,trianglelefteq:`â´`,triangleq:`â`,triangleright:`â¹`,trianglerighteq:`âµ`,tridot:`â¬`,trie:`â`,triminus:`⨺`,TripleDot:`â`,triplus:`⨹`,trisb:`â§`,tritime:`⨻`,trpezium:`â¢`,Tscr:`ð¯`,tscr:`ð`,TScy:`Ц`,tscy:`Ñ`,TSHcy:`Ð`,tshcy:`Ñ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`â¬`,twoheadleftarrow:`â`,twoheadrightarrow:`â `,Uacute:`Ã`,uacute:`ú`,Uarr:`â`,uArr:`â`,uarr:`â`,Uarrocir:`â¥`,Ubrcy:`Ð`,ubrcy:`Ñ`,Ubreve:`Ŭ`,ubreve:`Å`,Ucirc:`Ã`,ucirc:`û`,Ucy:`У`,ucy:`Ñ`,udarr:`â
`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`ð`,ufr:`ð²`,Ugrave:`Ã`,ugrave:`ù`,uHar:`⥣`,uharl:`â¿`,uharr:`â¾`,uhblk:`â`,ulcorn:`â`,ulcorner:`â`,ulcrop:`â`,ultri:`â¸`,Umacr:`Ū`,umacr:`Å«`,uml:`¨`,UnderBar:`_`,UnderBrace:`â`,UnderBracket:`âµ`,UnderParenthesis:`â`,
81Union:`â`,UnionPlus:`â`,Uogon:`Ų`,uogon:`ų`,Uopf:`ð`,uopf:`ð¦`,UpArrow:`â`,Uparrow:`â`,uparrow:`â`,UpArrowBar:`â¤`,UpArrowDownArrow:`â
`,UpDownArrow:`â`,Updownarrow:`â`,updownarrow:`â`,UpEquilibrium:`⥮`,upharpoonleft:`â¿`,upharpoonright:`â¾`,uplus:`â`,UpperLeftArrow:`â`,UpperRightArrow:`â`,Upsi:`Ï`,upsi:`Ï
`,upsih:`Ï`,Upsilon:`Î¥`,upsilon:`Ï
`,UpTee:`â¥`,UpTeeArrow:`â¥`,upuparrows:`â`,urcorn:`â`,urcorner:`â`,urcrop:`â`,Uring:`Å®`,uring:`ů`,urtri:`â¹`,Uscr:`ð°`,uscr:`ð`,utdot:`â°`,Utilde:`Ũ`,utilde:`Å©`,utri:`âµ`,utrif:`â´`,uuarr:`â`,Uuml:`Ã`,uuml:`ü`,uwangle:`⦧`,vangrt:`â¦`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`â
`,varphi:`Ï`,varpi:`Ï`,varpropto:`â`,vArr:`â`,varr:`â`,varrho:`ϱ`,varsigma:`Ï`,varsubsetneq:`âï¸`,varsubsetneqq:`â«ï¸`,varsupsetneq:`âï¸`,varsupsetneqq:`â«ï¸`,vartheta:`Ï`,vartriangleleft:`â²`,vartriangleright:`â³`,Vbar:`â««`,vBar:`⫨`,vBarv:`â«©`,Vcy:`Ð`,vcy:`в`,VDash:`â«`,Vdash:`â©`,vDash:`â¨`,vdash:`â¢`,Vdashl:`⫦`,Vee:`â`,vee:`â¨`,veebar:`â»`,veeeq:`â`,vellip:`â®`,Verbar:`â`,verbar:`|`,Vert:`â`,vert:`|`,VerticalBar:`â£`,VerticalLine:`|`,VerticalSeparator:`â`,VerticalTilde:`â`,VeryThinSpace:`â`,Vfr:`ð`,vfr:`ð³`,vltri:`â²`,vnsub:`ââ`,vnsup:`ââ`,Vopf:`ð`,vopf:`ð§`,vprop:`â`,vrtri:`â³`,Vscr:`ð±`,vscr:`ð`,vsubnE:`â«ï¸`,vsubne:`âï¸`,vsupnE:`â«ï¸`,vsupne:`âï¸`,Vvdash:`âª`,vzigzag:`â¦`,Wcirc:`Å´`,wcirc:`ŵ`,wedbar:`â©`,Wedge:`â`,wedge:`â§`,wedgeq:`â`,weierp:`â`,Wfr:`ð`,wfr:`ð´`,Wopf:`ð`,wopf:`ð¨`,wp:`â`,wr:`â`,wreath:`â`,Wscr:`ð²`,wscr:`ð`,xcap:`â`,xcirc:`â¯`,xcup:`â`,xdtri:`â½`,Xfr:`ð`,xfr:`ðµ`,xhArr:`âº`,xharr:`â·`,Xi:`Î`,xi:`ξ`,xlArr:`â¸`,xlarr:`âµ`,xmap:`â¼`,xnis:`â»`,xodot:`â¨`,Xopf:`ð`,xopf:`ð©`,xoplus:`â¨`,xotime:`â¨`,xrArr:`â¹`,xrarr:`â¶`,Xscr:`ð³`,xscr:`ð`,xsqcup:`â¨`,xuplus:`â¨`,xutri:`â³`,xvee:`â`,xwedge:`â`,Yacute:`Ã`,yacute:`ý`,YAcy:`Я`,yacy:`Ñ`,Ycirc:`Ŷ`,ycirc:`Å·`,Ycy:`Ы`,ycy:`Ñ`,yen:`Â¥`,Yfr:`ð`,yfr:`ð¶`,YIcy:`Ð`,yicy:`Ñ`,Yopf:`ð`,yopf:`ðª`,Yscr:`ð´`,yscr:`ð`,YUcy:`Ю`,yucy:`Ñ`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`Ð`,zcy:`з`,Zdot:`Å»`,zdot:`ż`,zeetrf:`â¨`,ZeroWidthSpace:`â`,Zeta:`Î`,zeta:`ζ`,Zfr:`â¨`,zfr:`ð·`,ZHcy:`Ð`,zhcy:`ж`,zigrarr:`â`,Zopf:`â¤`,zopf:`ð«`,Zscr:`ðµ`,zscr:`ð`,zwj:`â`,zwnj:`â`}),e.entityMap=e.HTML_ENTITIES})),require_sax=__commonJSMin((e=>{var t=require_conventions().NAMESPACE,$=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ed=RegExp(`[\\-\\.0-9`+$.source.slice(1,-1)+`\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`),td=RegExp(`^`+$.source+ed.source+`*(?::`+$.source+ed.source+`*)?$`),nd=0,rd=1,id=2,ad=3,od=4,sd=5,cd=6,ld=7;function ud(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,ud)}ud.prototype=Error(),ud.prototype.name=ud.name;function dd(){}dd.prototype={parse:function(e,t,$){var ed=this.domBuilder;ed.startDocument(),vd(t,t={}),fd(e,t,$,ed,this.errorHandler),ed.endDocument()}};function fd(e,$,ed,td,nd){function rd(e){if(e>65535){e-=65536;var t=55296+(e>>10),$=56320+(e&1023);return String.fromCharCode(t,$)}else return String.fromCharCode(e)}function id(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(ed,t)?ed[t]:t.charAt(0)===`#`?rd(parseInt(t.substr(1).replace(`x`,`0x`))):(nd.error(`entity not found:`+e),e)}function ad(t){if(t>Sd){var $=e.substring(Sd,t).replace(/&#?\w+;/g,id);dd&&od(Sd),td.characters($,0,t-Sd),Sd=t}}function od(t,$){for(;t>=cd&&($=ld.exec(e));)sd=$.index,cd=sd+$[0].length,dd.lineNumber++;dd.columnNumber=t-sd+1}for(var sd=0,cd=0,ld=/.*(?:\r\n?|\n)|.*$/g,dd=td.locator,fd=[{currentNSMap:$}],vd={},Sd=0;;){try{var Cd=e.indexOf(`<`,Sd);if(Cd<0){if(!e.substr(Sd).match(/^\s*$/)){var wd=td.doc,Td=wd.createTextNode(e.substr(Sd));wd.appendChild(Td),td.currentElement=Td}return}switch(Cd>Sd&&ad(Cd),e.charAt(Cd+1)){case`/`:var Ed=e.indexOf(`>`,Cd+3),Dd=e.substring(Cd+2,Ed).replace(/[ \t\n\r]+$/g,``),Od=fd.pop();Ed<0?(Dd=e.substring(Cd+2).replace(/[\s<].*/,``),nd.error(`end tag name: `+Dd+` is not complete:`+Od.tagName),Ed=Cd+1+Dd.length):Dd.match(/\s</)&&(Dd=Dd.replace(/[\s<].*/,``),nd.error(`end tag name: `+Dd+` maybe not complete`),Ed=Cd+1+Dd.length);var kd=Od.localNSMap,Ad=Od.tagName==Dd;if(Ad||Od.tagName&&Od.tagName.toLowerCase()==Dd.toLowerCase()){if(td.endElement(Od.uri,Od.localName,Dd),kd)for(var jd in kd)Object.prototype.hasOwnProperty.call(kd,jd)&&td.endPrefixMapping(jd);Ad||nd.fatalError(`end tag name: `+Dd+` is not match the current start tagName:`+Od.tagName)}else fd.push(Od);Ed++;break;case`?`:dd&&od(Cd),Ed=bd(e,Cd,td);break;case`!`:dd&&od(Cd),Ed=yd(e,Cd,td,nd);break;default:dd&&od(Cd);var Md=new xd,Nd=fd[fd.length-1].currentNSMap,Ed=md(e,Cd,Md,Nd,id,nd),Pd=Md.length;if(!Md.closed&&_d(e,Ed,Md.tagName,vd)&&(Md.closed=!0,ed.nbsp||nd.warning(`unclosed xml attribute`)),dd&&Pd){for(var Fd=pd(dd,{}),Id=0;Id<Pd;Id++){var Ld=Md[Id];od(Ld.offset),Ld.locator=pd(dd,{})}td.locator=Fd,hd(Md,td,Nd)&&fd.push(Md),td.locator=dd}else hd(Md,td,Nd)&&fd.push(Md);t.isHTML(Md.uri)&&!Md.closed?Ed=gd(e,Ed,Md.tagName,id,td):Ed++}}catch(e){if(e instanceof ud)throw e;nd.error(`element parse error: `+e),Ed=-1}Ed>
vendor: 10,216 bytes, lines 81-84
81Sd?Sd=Ed:ad(Math.max(Cd,Sd)+1)}}function pd(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function md(e,$,ed,td,ud,dd){function fd(e,t,$){ed.attributeNames.hasOwnProperty(e)&&dd.fatalError(`Attribute `+e+` redefined`),ed.addValue(e,t.replace(/[\t\n\r]/g,` `).replace(/&#?\w+;/g,ud),$)}for(var pd,md,hd=++$,gd=nd;;){var _d=e.charAt(hd);switch(_d){case`=`:if(gd===rd)pd=e.slice($,hd),gd=ad;else if(gd===id)gd=ad;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(gd===ad||gd===rd)if(gd===rd&&(dd.warning(`attribute value must after "="`),pd=e.slice($,hd)),$=hd+1,hd=e.indexOf(_d,$),hd>0)md=e.slice($,hd),fd(pd,md,$-1),gd=sd;else throw Error(`attribute value no end '`+_d+`' match`);else if(gd==od)md=e.slice($,hd),fd(pd,md,$),dd.warning(`attribute "`+pd+`" missed start quot(`+_d+`)!!`),$=hd+1,gd=sd;else throw Error(`attribute value must after "="`);break;case`/`:switch(gd){case nd:ed.setTagName(e.slice($,hd));case sd:case cd:case ld:gd=ld,ed.closed=!0;case od:case rd:break;case id:ed.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return dd.error(`unexpected end of input`),gd==nd&&ed.setTagName(e.slice($,hd)),hd;case`>`:switch(gd){case nd:ed.setTagName(e.slice($,hd));case sd:case cd:case ld:break;case od:case rd:md=e.slice($,hd),md.slice(-1)===`/`&&(ed.closed=!0,md=md.slice(0,-1));case id:gd===id&&(md=pd),gd==od?(dd.warning(`attribute "`+md+`" missed quot(")!`),fd(pd,md,$)):((!t.isHTML(td[``])||!md.match(/^(?:disabled|checked|selected)$/i))&&dd.warning(`attribute "`+md+`" missed value!! "`+md+`" instead!!`),fd(md,md,$));break;case ad:throw Error(`attribute value missed!!`)}return hd;case`Â`:_d=` `;default:if(_d<=` `)switch(gd){case nd:ed.setTagName(e.slice($,hd)),gd=cd;break;case rd:pd=e.slice($,hd),gd=id;break;case od:var md=e.slice($,hd);dd.warning(`attribute "`+md+`" missed quot(")!!`),fd(pd,md,$);case sd:gd=cd;break}else switch(gd){case id:ed.tagName,(!t.isHTML(td[``])||!pd.match(/^(?:disabled|checked|selected)$/i))&&dd.warning(`attribute "`+pd+`" missed value!! "`+pd+`" instead2!!`),fd(pd,pd,$),$=hd,gd=rd;break;case sd:dd.warning(`attribute space is required"`+pd+`"!!`);case cd:gd=rd,$=hd;break;case ad:gd=od,$=hd;break;case ld:throw Error(`elements closed character '/' and '>' must be connected to`)}}hd++}}function hd(e,$,ed){for(var td=e.tagName,nd=null,rd=e.length;rd--;){var id=e[rd],ad=id.qName,od=id.value,sd=ad.indexOf(`:`);if(sd>0)var cd=id.prefix=ad.slice(0,sd),ld=ad.slice(sd+1),ud=cd===`xmlns`&&ld;else ld=ad,cd=null,ud=ad===`xmlns`&&``;id.localName=ld,ud!==!1&&(nd??(nd={},vd(ed,ed={})),ed[ud]=nd[ud]=od,id.uri=t.XMLNS,$.startPrefixMapping(ud,od))}for(var rd=e.length;rd--;){id=e[rd];var cd=id.prefix;cd&&(cd===`xml`&&(id.uri=t.XML),cd!==`xmlns`&&(id.uri=ed[cd||``]))}var sd=td.indexOf(`:`);sd>0?(cd=e.prefix=td.slice(0,sd),ld=e.localName=td.slice(sd+1)):(cd=null,ld=e.localName=td);var dd=e.uri=ed[cd||``];if($.startElement(dd,ld,td,e),e.closed){if($.endElement(dd,ld,td),nd)for(cd in nd)Object.prototype.hasOwnProperty.call(nd,cd)&&$.endPrefixMapping(cd)}else return e.currentNSMap=ed,e.localNSMap=nd,!0}function gd(e,t,$,ed,td){if(/^(?:script|textarea)$/i.test($)){var nd=e.indexOf(`</`+$+`>`,t),rd=e.substring(t+1,nd);if(/[&<]/.test(rd))return/^script$/i.test($)?(td.characters(rd,0,rd.length),nd):(rd=rd.replace(/&#?\w+;/g,ed),td.characters(rd,0,rd.length),nd)}return t+1}function _d(e,t,$,ed){var td=ed[$];return td??(td=e.lastIndexOf(`</`+$+`>`),td<t&&(td=e.lastIndexOf(`</`+$)),ed[$]=td),td<t}function vd(e,t){for(var $ in e)Object.prototype.hasOwnProperty.call(e,$)&&(t[$]=e[$])}function yd(e,t,$,ed){switch(e.charAt(t+2)){case`-`:if(e.charAt(t+3)===`-`){var td=e.indexOf(`-->`,t+4);return td>t?($.comment(e,t+4,td-t-4),td+3):(ed.error(`Unclosed comment`),-1)}else return-1;default:if(e.substr(t+3,6)==`CDATA[`){var td=e.indexOf(`]]>`,t+9);return $.startCDATA(),$.characters(e,t+9,td-t-9),$.endCDATA(),td+3}var nd=Sd(e,t),rd=nd.length;if(rd>1&&/!doctype/i.test(nd[0][0])){var id=nd[1][0],ad=!1,od=!1;rd>3&&(/^public$/i.test(nd[2][0])?(ad=nd[3][0],od=rd>4&&nd[4][0]):/^system$/i.test(nd[2][0])&&(od=nd[3][0]));var sd=nd[rd-1];return $.startDTD(id,ad,od),$.endDTD(),sd.index+sd[0].length}}return-1}function bd(e,t,$){var ed=e.indexOf(`?>`,t);if(ed){var td=e.substring(t,ed).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return td?(td[0].length,$.processingInstruction(td[1],td[2]),ed+2):-1}return-1}function xd(){this.attributeNames={}}xd.prototype={setTagName:function(e){if(!td.test(e))throw Error(`invalid tagName:`+e);this.tagName=e},addValue:function(e,t,$){if(!td.test(e))throw Error(`invalid attribute:`+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:$}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function Sd(e,t){var $,ed=[],td=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(td.lastIndex=t,td.exec(e);$=td.exec(e);)if(ed.push($),$[1])return ed}e.XMLReader=dd,e.ParseError=ud})),require_dom_parser=__commonJSMin((e=>{var t=require_conventions(),$=require_dom(),ed=require_entities(),td=require_sax(),nd=$.DOMImplementation,rd=t.NAMESPACE,id=td.ParseError,ad=td.XMLReader;function od(e){return e.replace(/\r[\n\u0085]/g,` 82`).replace(/[\r\u0085\u2028]/g,` 83`)}function sd(e){this.options=e||{locator:{}}}sd.prototype.parseFromString=function(e,t){var $=this.options,td=new ad,nd=$.domBuilder||new ld,id=$.errorHandler,sd=$.locator,ud=$.xmlns||{},dd=/\/x?html?$/.test(t),fd=dd?ed.HTML_ENTITIES:ed.XML_ENTITIES;sd&&nd.setDocumentLocator(sd),td.errorHandler=cd(id,nd,sd),td.domBuilder=$.domBuilder||nd,dd&&(ud[``]=rd.HTML),ud.xml=ud.xml||rd.XML;var pd=$.normalizeLineEndings||od;return e&&typeof e==`string`?td.parse(pd(e),ud,fd):td.errorHandler.error(`invalid doc source`),nd.doc};function cd(e,t,$){if(!e){if(t instanceof ld)return t;e=t}var ed={},td=e instanceof Function;$||={};function nd(t){var nd=e[t];!nd&&td&&(nd=e.length==2?function($){e(t,$)}:e),ed[t]=nd&&function(e){nd(`[xmldom `+t+`] `+e+dd($))}||function(){}}return nd(`warning`),nd(`error`),nd(`fatalError`),ed}function ld(){this.cdata=!1}function ud(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}ld.prototype={startDocument:function(){this.doc=new nd().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,$,ed){var td=this.doc,nd=td.createElementNS(e,$||t),rd=ed.length;pd(this,nd),this.currentElement=nd,this.locator&&ud(this.locator,nd);for(var id=0;id<rd;id++){var e=ed.getURI(id),ad=ed.getValue(id),$=ed.getQName(id),od=td.createAttributeNS(e,$);this.locator&&ud(ed.getLocator(id),od),od.value=od.nodeValue=ad,nd.setAttributeNode(od)}},endElement:function(e,t,$){var ed=this.currentElement;ed.tagName,this.currentElement=ed.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var $=this.doc.createProcessingInstruction(e,t);this.locator&&ud(this.locator,$),pd(this,$)},ignorableWhitespace:function(e,t,$){},characters:function(e,t,$){if(e=fd.apply(this,arguments),e){if(this.cdata)var ed=this.doc.createCDATASection(e);else var ed=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(ed):/^\s*$/.test(e)&&this.doc.appendChild(ed),this.locator&&ud(this.locator,ed)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,$){e=fd.apply(this,arguments);var ed=this.doc.createComment(e);this.locator&&ud(this.locator,ed),pd(this,ed)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,$){var ed=this.doc.implementation;if(ed&&ed.createDocumentType){var td=ed.createDocumentType(e,t,$);this.locator&&ud(this.locator,td),pd(this,td),this.doc.doctype=td}},warning:function(e){console.warn(`[xmldom warning] `+e,dd(this.locator))},error:function(e){console.error(`[xmldom error] `+e,dd(this.locator))},fatalError:function(e){throw new id(e,this.locator)}};function dd(e){if(e)return` 84@`+(e.systemId||``)+`#[line:`+e.lineNumber+`,col:`+e.columnNumber+`]`}function fd(e,t,$){return typeof e==`string`?e.substr(t,$):e.length>=t+$||t?new java.lang.String(e,t,$)+``:e}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(e){ld.prototype[e]=function(){return null}});function pd(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}e.__DOMHandler=ld,e.normalizeLineEndings=od,e.DOMParser=sd})),require_lib$5=__commonJSMin((e=>{var t=require_dom();e.DOMImplementation=t.DOMImplementation,e.XMLSerializer=t.XMLSerializer,e.DOMParser=require_dom_parser().DOMParser})),import_window$1,import_lib$6,isObject$3,merge$2,values$1,range,flatten,from,findIndexes,union,errors,urlTypeToSegment,byteRangeToString,parseEndNumber,segmentRange,toSegments,parseByDuration,segmentsFromBase,addSidxSegmentsToPlaylist$1,SUPPORTED_MEDIA_TYPES,TIME_FUDGE,getUniqueTimelineStarts,findPlaylistWithName,getMediaGroupPlaylists,updateMediaSequenceForPlaylist,updateSequenceNumbers,positionManifestOnTimeline,generateSidxKey,mergeDiscontiguousPlaylists,addSidxSegmentsToPlaylist,addSidxSegmentsToPlaylists,formatAudioPlaylist,formatVttPlaylist,organizeAudioPlaylists,organizeVttPlaylists,organizeCaptionServices,formatVideoPlaylist,videoOnly,audioOnly,vttOnly,addMediaSequenceValues,flattenMediaGroupPlaylists,toM3u8,getLiveRValue,parseByTimeline,identifierPattern,identifierReplacement,constructTemplateUrl,parseTemplateInfo,segmentsFromTemplate,SegmentURLToSegmentObject,segmentsFromList,generateSegments,toPlaylists,findChildren,getContent,parseDivisionValue,parseDuration,parseDate,parsers,parseAttributes,keySystemsMap,buildBaseUrls,getSegmentInformation,inheritBaseUrls,generateKeySystemInformation,parseCaptionServiceMetadata,toEventStream,toRepresentations,toAdaptationSets,generateContentSteeringInformation,getPeriodStart,inheritAttributes,str
84ingToMpdXml,parseUTCTimingScheme,parse,parseUTCTiming,init_mpd_parser_es=__esmMin((()=>{init_resolve_url(),import_window$1=__toESM(require_window()),init_media_groups(),init_decode_b64_to_uint8_array(),import_lib$6=require_lib$5(),isObject$3=e=>!!e&&typeof e==`object`,merge$2=(...e)=>e.reduce((e,t)=>(typeof t==`object`&&Object.keys(t).forEach($=>{Array.isArray(e[$])&&Array.isArray(t[$])?e[$]=e[$].concat(t[$]):isObject$3(e[$])&&isObject$3(t[$])?e[$]=merge$2(e[$],t[$]):e[$]=t[$]}),e),{}),values$1=e=>Object.keys(e).map(t=>e[t]),range=(e,t)=>{let $=[];for(let ed=e;ed<t;ed++)$.push(ed);return $},flatten=e=>e.reduce((e,t)=>e.concat(t),[]),from=e=>{if(!e.length)return[];let t=[];for(let $=0;$<e.length;$++)t.push(e[$]);return t},findIndexes=(e,t)=>e.reduce((e,$,ed)=>($[t]&&e.push(ed),e),[]),union=(e,t)=>values$1(e.reduce((e,$)=>($.forEach($=>{e[t($)]=$}),e),{})),errors={INVALID_NUMBER_OF_PERIOD:`INVALID_NUMBER_OF_PERIOD`,INVALID_NUMBER_OF_CONTENT_STEERING:`INVALID_NUMBER_OF_CONTENT_STEERING`,DASH_EMPTY_MANIFEST:`DASH_EMPTY_MANIFEST`,DASH_INVALID_XML:`DASH_INVALID_XML`,NO_BASE_URL:`NO_BASE_URL`,MISSING_SEGMENT_INFORMATION:`MISSING_SEGMENT_INFORMATION`,SEGMENT_TIME_UNSPECIFIED:`SEGMENT_TIME_UNSPECIFIED`,UNSUPPORTED_UTC_TIMING_SCHEME:`UNSUPPORTED_UTC_TIMING_SCHEME`},urlTypeToSegment=({baseUrl:e=``,source:t=``,range:$=``,indexRange:ed=``})=>{let td={uri:t,resolvedUri:resolveUrl$1(e||``,t)};if($||ed){let e=($||ed).split(`-`),t=import_window$1.default.BigInt?import_window$1.default.BigInt(e[0]):parseInt(e[0],10),nd=import_window$1.default.BigInt?import_window$1.default.BigInt(e[1]):parseInt(e[1],10);t<2**53-1&&typeof t==`bigint`&&(t=Number(t)),nd<2**53-1&&typeof nd==`bigint`&&(nd=Number(nd));let rd;rd=typeof nd==`bigint`||typeof t==`bigint`?import_window$1.default.BigInt(nd)-import_window$1.default.BigInt(t)+import_window$1.default.BigInt(1):nd-t+1,typeof rd==`bigint`&&rd<2**53-1&&(rd=Number(rd)),td.byterange={length:rd,offset:t}}return td},byteRangeToString=e=>{let t;return t=typeof e.offset==`bigint`||typeof e.length==`bigint`?import_window$1.default.BigInt(e.offset)+import_window$1.default.BigInt(e.length)-import_window$1.default.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},parseEndNumber=e=>(e&&typeof e!=`number`&&(e=parseInt(e,10)),isNaN(e)?null:e),segmentRange={static(e){let{duration:t,timescale:$=1,sourceDuration:ed,periodDuration:td}=e,nd=parseEndNumber(e.endNumber),rd=t/$;return typeof nd==`number`?{start:0,end:nd}:typeof td==`number`?{start:0,end:td/rd}:{start:0,end:ed/rd}},dynamic(e){let{NOW:t,clientOffset:$,availabilityStartTime:ed,timescale:td=1,duration:nd,periodStart:rd=0,minimumUpdatePeriod:id=0,timeShiftBufferDepth:ad=1/0}=e,od=parseEndNumber(e.endNumber),sd=(t+$)/1e3,cd=ed+rd,ld=sd+id-cd,ud=Math.ceil(ld*td/nd),dd=Math.floor((sd-cd-ad)*td/nd),fd=Math.floor((sd-cd)*td/nd);return{start:Math.max(0,dd),end:typeof od==`number`?od:Math.min(ud,fd)}}},toSegments=e=>t=>{let{duration:$,timescale:ed=1,periodStart:td,startNumber:nd=1}=e;return{number:nd+t,duration:$/ed,timeline:td,time:t*$}},parseByDuration=e=>{let{type:t,duration:$,timescale:ed=1,periodDuration:td,sourceDuration:nd}=e,{start:rd,end:id}=segmentRange[t](e),ad=range(rd,id).map(toSegments(e));if(t===`static`){let e=ad.length-1,t=typeof td==`number`?td:nd;ad[e].duration=t-$/ed*e}return ad},segmentsFromBase=e=>{let{baseUrl:t,initialization:$={},sourceDuration:ed,indexRange:td=``,periodStart:nd,presentationTime:rd,number:id=0,duration:ad}=e;if(!t)throw Error(errors.NO_BASE_URL);let od=urlTypeToSegment({baseUrl:t,source:$.sourceURL,range:$.range}),sd=urlTypeToSegment({baseUrl:t,source:t,indexRange:td});if(sd.map=od,ad){let t=parseByDuration(e);t.length&&(sd.duration=t[0].duration,sd.timeline=t[0].timeline)}else ed&&(sd.duration=ed,sd.timeline=nd);return sd.presentationTime=rd||nd,sd.number=id,[sd]},addSidxSegmentsToPlaylist$1=(e,t,$)=>{let ed=e.sidx.map?e.sidx.map:null,td=e.sidx.duration,nd=e.timeline||0,rd=e.sidx.byterange,id=rd.offset+rd.length,ad=t.timescale,od=t.references.filter(e=>
84e.referenceType!==1),sd=[],cd=e.endList?`static`:`dynamic`,ld=e.sidx.timeline,ud=ld,dd=e.mediaSequence||0,fd;fd=typeof t.firstOffset==`bigint`?import_window$1.default.BigInt(id)+t.firstOffset:id+t.firstOffset;for(let e=0;e<od.length;e++){let rd=t.references[e],id=rd.referencedSize,od=rd.subsegmentDuration,pd;pd=typeof fd==`bigint`?fd+import_window$1.default.BigInt(id)-import_window$1.default.BigInt(1):fd+id-1;let md=`${fd}-${pd}`,hd=segmentsFromBase({baseUrl:$,timescale:ad,timeline:nd,periodStart:ld,presentationTime:ud,number:dd,duration:od,sourceDuration:td,indexRange:md,type:cd})[0];ed&&(hd.map=ed),sd.push(hd),typeof fd==`bigint`?fd+=import_window$1.default.BigInt(id):fd+=id,ud+=od/ad,dd++}return e.segments=sd,e},SUPPORTED_MEDIA_TYPES=[`AUDIO`,`SUBTITLES`],TIME_FUDGE=1/60,getUniqueTimelineStarts=e=>union(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),findPlaylistWithName=(e,t)=>{for(let $=0;$<e.length;$++)if(e[$].attributes.NAME===t)return e[$];return null},getMediaGroupPlaylists=e=>{let t=[];return forEachMediaGroup$1(e,SUPPORTED_MEDIA_TYPES,(e,$,ed,td)=>{t=t.concat(e.playlists||[])}),t},updateMediaSequenceForPlaylist=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,$)=>{t.number=e.mediaSequence+$})},updateSequenceNumbers=({oldPlaylists:e,newPlaylists:t,timelineStarts:$})=>{t.forEach(t=>{t.discontinuitySequence=$.findIndex(function({timeline:e}){return e===t.timeline});let ed=findPlaylistWithName(e,t.attributes.NAME);if(!ed||t.sidx)return;let td=t.segments[0],nd=ed.segments.findIndex(function(e){return Math.abs(e.presentationTime-td.presentationTime)<TIME_FUDGE});if(nd===-1){updateMediaSequenceForPlaylist({playlist:t,mediaSequence:ed.mediaSequence+ed.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!ed.segments.length&&t.timeline>ed.timeline||ed.segments.length&&t.timeline>ed.segments[ed.segments.length-1].timeline)&&t.discontinuitySequence--;return}ed.segments[nd].discontinuity&&!td.discontinuity&&(td.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),updateMediaSequenceForPlaylist({playlist:t,mediaSequence:ed.segments[nd].number})})},positionManifestOnTimeline=({oldManifest:e,newManifest:t})=>{let $=e.playlists.concat(getMediaGroupPlaylists(e)),ed=t.playlists.concat(getMediaGroupPlaylists(t));return t.timelineStarts=getUniqueTimelineStarts([e.timelineStarts,t.timelineStarts]),updateSequenceNumbers({oldPlaylists:$,newPlaylists:ed,timelineStarts:t.timelineStarts}),t},generateSidxKey=e=>e&&e.uri+`-`+byteRangeToString(e.byterange),mergeDiscontiguousPlaylists=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),$=[];return Object.values(t).forEach(e=>{let t=values$1(e.reduce((e,t)=>{let $=t.attributes.id+(t.attributes.lang||``);return e[$]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[$].segments.push(...t.segments)),t.attributes.contentProtection&&(e[$].attributes.contentProtection=t.attributes.contentProtection)):(e[$]=t,e[$].attributes.timelineStarts=[]),e[$].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));$=$.concat(t)}),$.map(e=>(e.discontinuityStarts=findIndexes(e.segments||[],`discontinuity`),e))},addSidxSegmentsToPlaylist=(e,t)=>
84{let $=generateSidxKey(e.sidx),ed=$&&t[$]&&t[$].sidx;return ed&&addSidxSegmentsToPlaylist$1(e,ed,e.sidx.resolvedUri),e},addSidxSegmentsToPlaylists=(e,t={})=>{if(!Object.keys(t).length)return e;for(let $ in e)e[$]=addSidxSegmentsToPlaylist(e[$],t);return e},formatAudioPlaylist=({attributes:e,segments:t,sidx:$,mediaSequence:ed,discontinuitySequence:td,discontinuityStarts:nd},rd)=>{let id={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuitySequence:td,discontinuityStarts:nd,timelineStarts:e.timelineStarts,mediaSequence:ed,segments:t};return e.contentProtection&&(id.contentProtection=e.contentProtection),e.serviceLocation&&(id.attributes.serviceLocation=e.serviceLocation),$&&(id.sidx=$),rd&&(id.attributes.AUDIO=`audio`,id.attributes.SUBTITLES=`subs`),id},formatVttPlaylist=({attributes:e,segments:t,mediaSequence:$,discontinuityStarts:ed,discontinuitySequence:td})=>{t===void 0&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||``,duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let nd={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(nd.CODECS=e.codecs);let rd={attributes:nd,uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:ed,discontinuitySequence:td,mediaSequence:$,segments:t};return e.serviceLocation&&(rd.attributes.serviceLocation=e.serviceLocation),rd},organizeAudioPlaylists=(e,t={},$=!1)=>{let ed,td=e.reduce((e,td)=>{let nd=td.attributes.role&&td.attributes.role.value||``,rd=td.attributes.lang||``,id=td.attributes.label||`main`;if(rd&&!td.attributes.label){let e=nd?` (${nd})`:``;id=`${td.attributes.lang}${e}`}e[id]||(e[id]={language:rd,autoselect:!0,default:nd===`main`,playlists:[],uri:``});let ad=addSidxSegmentsToPlaylist(formatAudioPlaylist(td,$),t);return e[id].playlists.push(ad),ed===void 0&&nd===`main`&&(ed=td,ed.default=!0),e},{});if(!ed){let e=Object.keys(td)[0];td[e].default=!0}return td},organizeVttPlaylists=(e,t={})=>e.reduce((e,$)=>
84{let ed=$.attributes.label||$.attributes.lang||`text`,td=$.attributes.lang||`und`;return e[ed]||(e[ed]={language:td,default:!1,autoselect:!1,playlists:[],uri:``}),e[ed].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist($),t)),e},{}),organizeCaptionServices=e=>e.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:$,language:ed}=t;e[ed]={autoselect:!1,default:!1,instreamId:$,language:ed},t.hasOwnProperty(`aspectRatio`)&&(e[ed].aspectRatio=t.aspectRatio),t.hasOwnProperty(`easyReader`)&&(e[ed].easyReader=t.easyReader),t.hasOwnProperty(`3D`)&&(e[ed][`3D`]=t[`3D`])}),e),{}),formatVideoPlaylist=({attributes:e,segments:t,sidx:$,discontinuityStarts:ed})=>{let td={attributes:{NAME:e.id,AUDIO:`audio`,SUBTITLES:`subs`,RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:``,endList:e.type===`static`,timeline:e.periodStart,resolvedUri:e.baseUrl||``,targetDuration:e.duration,discontinuityStarts:ed,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(td.attributes[`FRAME-RATE`]=e.frameRate),e.contentProtection&&(td.contentProtection=e.contentProtection),e.serviceLocation&&(td.attributes.serviceLocation=e.serviceLocation),$&&(td.sidx=$),td},videoOnly=({attributes:e})=>e.mimeType===`video/mp4`||e.mimeType===`video/webm`||e.contentType===`video`,audioOnly=({attributes:e})=>e.mimeType===`audio/mp4`||e.mimeType===`audio/webm`||e.contentType===`audio`,vttOnly=({attributes:e})=>e.mimeType===`text/vtt`||e.contentType===`text`,addMediaSequenceValues=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},flattenMediaGroupPlaylists=e=>e?Object.keys(e).reduce((t,$)=>{let ed=e[$];return t.concat(ed.playlists)},[]):[],toM3u8=({dashPlaylists:e,locations:t,contentSteering:$,sidxMapping:ed={},previousManifest:td,eventStream:nd})=>{if(!e.length)return{};let{sourceDuration:rd,type:id,suggestedPresentationDelay:ad,minimumUpdatePeriod:od}=e[0].attributes,sd=mergeDiscontiguousPlaylists(e.filter(videoOnly)).map(formatVideoPlaylist),cd=mergeDiscontiguousPlaylists(e.filter(audioOnly)),ld=mergeDiscontiguousPlaylists(e.filter(vttOnly)),ud=e.map(e=>e.attributes.captionServices).filter(Boolean),dd={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:``,duration:rd,playlists:addSidxSegmentsToPlaylists(sd,ed)};od>=0&&(dd.minimumUpdatePeriod=od*1e3),t&&(dd.locations=t),$&&(dd.contentSteering=$),id===`dynamic`&&(dd.suggestedPresentationDelay=ad),nd&&nd.length>0&&(dd.eventStream=nd);let fd=dd.playlists.length===0,pd=cd.length?organizeAudioPlaylists(cd,ed,fd):null,md=ld.length?organizeVttPlaylists(ld,ed):null,hd=sd.concat(flattenMediaGroupPlaylists(pd),flattenMediaGroupPlaylists(md));return dd.timelineStarts=getUniqueTimelineStarts(hd.map(({timelineStarts:e})=>e)),addMediaSequenceValues(hd,dd.timelineStarts),pd&&(dd.mediaGroups.AUDIO.audio=pd),md&&(dd.mediaGroups.SUBTITLES.subs=md),ud.length&&(dd.mediaGroups[`CLOSED-CAPTIONS`].cc=organizeCaptionServices(ud)),td?positionManifestOnTimeline({oldManifest:td,newManifest:dd}):dd},getLiveRValue=(e,t,$)=>{let{NOW:ed,clientOffset:td,availabilityStartTime:nd,timescale:rd=1,periodStart:id=0,minimumUpdatePeriod:ad=0}=e,od=(ed+td)/1e3,sd=nd+id,cd=od+ad-sd;return Math.ceil((cd*rd-t)/$)},parseByTimeline=(e,t)=>{let{type:$,minimumUpdatePeriod:ed=0,media:td=``,sourceDuration:nd,timescale:rd=1,startNumber:id=1,periodStart:ad}=e,od=[],sd=-1;for(let cd=0;cd<t.length;cd++){let ld=t[cd],ud=ld.d,dd=ld.r||0,fd=ld.t||0;sd<0&&(sd=fd),fd&&fd>sd&&(sd=fd);let pd;if(dd<0){let id=cd+1;pd=id===t.length?$===`dynamic`&&ed>0&&td.indexOf(`$Number$`)>0?getLiveRValue(e,sd,ud):(nd*rd-sd)/ud:(t[id].t-sd)/ud}else pd=dd+1;let md=id+od.length+pd,hd=id+od.length;for(;hd<md;)od.push({number:hd,duration:ud/rd,time:sd,timeline:ad}),sd+=ud,hd++}return od},identifierPattern=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,identifierReplacement=e=>(t,$,ed,td)=>{if(t===`$$`)return`$`;if(e[$]===void 0)return t;let nd=``+e[$];return $===`RepresentationID`||(td=ed?parseInt(td,10):1,nd.length>=td)?nd:`${Array(td-nd.length+1).join(`0`)}${nd}`},constructTemplateUrl=(e,t)=>
84e.replace(identifierPattern,identifierReplacement(t)),parseTemplateInfo=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?parseByDuration(e):parseByTimeline(e,t),segmentsFromTemplate=(e,t)=>{let $={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:ed={sourceURL:``,range:``}}=e,td=urlTypeToSegment({baseUrl:e.baseUrl,source:constructTemplateUrl(ed.sourceURL,$),range:ed.range});return parseTemplateInfo(e,t).map(t=>{$.Number=t.number,$.Time=t.time;let ed=constructTemplateUrl(e.media||``,$),nd=e.timescale||1,rd=e.presentationTimeOffset||0,id=e.periodStart+(t.time-rd)/nd;return{uri:ed,timeline:t.timeline,duration:t.duration,resolvedUri:resolveUrl$1(e.baseUrl||``,ed),map:td,number:t.number,presentationTime:id}})},SegmentURLToSegmentObject=(e,t)=>{let{baseUrl:$,initialization:ed={}}=e,td=urlTypeToSegment({baseUrl:$,source:ed.sourceURL,range:ed.range}),nd=urlTypeToSegment({baseUrl:$,source:t.media,range:t.mediaRange});return nd.map=td,nd},segmentsFromList=(e,t)=>{let{duration:$,segmentUrls:ed=[],periodStart:td}=e;if(!$&&!t||$&&t)throw Error(errors.SEGMENT_TIME_UNSPECIFIED);let nd=ed.map(t=>SegmentURLToSegmentObject(e,t)),rd;return $&&(rd=parseByDuration(e)),t&&(rd=parseByTimeline(e,t)),rd.map((t,$)=>{if(nd[$]){let ed=nd[$],rd=e.timescale||1,id=e.presentationTimeOffset||0;return ed.timeline=t.timeline,ed.duration=t.duration,ed.number=t.number,ed.presentationTime=td+(t.time-id)/rd,ed}}).filter(e=>e)},generateSegments=({attributes:e,segmentInfo:t})=>{let $,ed;t.template?(ed=segmentsFromTemplate,$=merge$2(e,t.template)):t.base?(ed=segmentsFromBase,$=merge$2(e,t.base)):t.list&&(ed=segmentsFromList,$=merge$2(e,t.list));let td={attributes:e};if(!ed)return td;let nd=ed($,t.segmentTimeline);if($.duration){let{duration:e,timescale:t=1}=$;$.duration=e/t}else nd.length?$.duration=nd.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):$.duration=0;return td.attributes=$,td.segments=nd,t.base&&$.indexRange&&(td.sidx=nd[0],td.segments=[]),td},toPlaylists=e=>e.map(generateSegments),findChildren=(e,t)=>from(e.childNodes).filter(({tagName:e})=>e===t),getContent=e=>e.textContent.trim(),parseDivisionValue=e=>parseFloat(e.split(`/`).reduce((e,t)=>e/t)),parseDuration=e=>{let t=365*24*60*60,$=720*60*60,ed=1440*60,td=3600,nd=60,rd=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!rd)return 0;let[id,ad,od,sd,cd,ld]=rd.slice(1);return parseFloat(id||0)*31536e3+parseFloat(ad||0)*2592e3+parseFloat(od||0)*86400+parseFloat(sd||0)*3600+parseFloat(cd||0)*60+parseFloat(ld||0)},parseDate=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+=`Z`),Date.parse(e)),parsers={mediaPresentationDuration(e){return parseDuration(e)},availabilityStartTime(e){return parseDate(e)/1e3},minimumUpdatePeriod(e){return parseDuration(e)},suggestedPresentationDelay(e){return parseDuration(e)},type(e){return e},timeShiftBufferDepth(e){return parseDuration(e)},start(e){return parseDuration(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return parseDivisionValue(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){let t=parseInt(e,10);return isNaN(t)?parseDuration(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},DEFAULT(e){return e}},parseAttributes=e=>e&&e.attributes?from(e.attributes).reduce((e,t)=>{let $=parsers[t.name]||parsers.DEFAULT;return e[t.name]=$(t.value),e},{}):{},keySystemsMap={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":`org.w3.clearkey`,"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":`com.widevine.alpha`,"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":`com.microsoft.playready`,"urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":`com.adobe.primetime`,"urn:mpeg:dash:mp4protection:2011":`mp4protection`},buildBaseUrls=(e,t)=>t.length?flatten(e.map(function(e){return t.map(function(t){let $=getContent(t),ed=resolveUrl$1(e.baseUrl,$),td=merge$2(parseAttributes(t),{baseUrl:ed});return ed!==$&&!td.serviceLocation&&e.serviceLocation&&(td.serviceLocation=e.serviceLocation),td})})):e,getSegmentInformation=e=>{let t=findChildren(e,`SegmentTemplate`)[0],$=findChildren(e,`SegmentList`)[0],ed=$&&findC
84hildren($,`SegmentURL`).map(e=>merge$2({tag:`SegmentURL`},parseAttributes(e))),td=findChildren(e,`SegmentBase`)[0],nd=$||t,rd=nd&&findChildren(nd,`SegmentTimeline`)[0],id=$||td||t,ad=id&&findChildren(id,`Initialization`)[0],od=t&&parseAttributes(t);od&&ad?od.initialization=ad&&parseAttributes(ad):od&&od.initialization&&(od.initialization={sourceURL:od.initialization});let sd={template:od,segmentTimeline:rd&&findChildren(rd,`S`).map(e=>parseAttributes(e)),list:$&&merge$2(parseAttributes($),{segmentUrls:ed,initialization:parseAttributes(ad)}),base:td&&merge$2(parseAttributes(td),{initialization:parseAttributes(ad)})};return Object.keys(sd).forEach(e=>{sd[e]||delete sd[e]}),sd},inheritBaseUrls=(e,t,$)=>ed=>{let td=buildBaseUrls(t,findChildren(ed,`BaseURL`)),nd=merge$2(e,parseAttributes(ed)),rd=getSegmentInformation(ed);return td.map(e=>({segmentInfo:merge$2($,rd),attributes:merge$2(nd,e)}))},generateKeySystemInformation=e=>e.reduce((e,t)=>{let $=parseAttributes(t);$.schemeIdUri&&=$.schemeIdUri.toLowerCase();let ed=keySystemsMap[$.schemeIdUri];if(ed){e[ed]={attributes:$};let td=findChildren(t,`cenc:pssh`)[0];if(td){let t=getContent(td);e[ed].pssh=t&&decodeB64ToUint8Array(t)}}return e},{}),parseCaptionServiceMetadata=e=>{if(e.schemeIdUri===`urn:scte:dash:cc:cea-608:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t,$;return $=e,/^CC\d=/.test(e)?[t,$]=e.split(`=`):/^CC\d$/.test(e)&&(t=e),{channel:t,language:$}});if(e.schemeIdUri===`urn:scte:dash:cc:cea-708:2015`)return(typeof e.value==`string`?e.value.split(`;`):[]).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[$,ed=``]=e.split(`=`);t.channel=$,t.language=e,ed.split(`,`).forEach(e=>{let[$,ed]=e.split(`:`);$===`lang`?t.language=ed:$===`er`?t.easyReader=Number(ed):$===`war`?t.aspectRatio=Number(ed):$===`3D`&&(t[`3D`]=Number(ed))})}else t.language=e;return t.channel&&=`SERVICE`+t.channel,t})},toEventStream=e=>flatten(findChildren(e.node,`EventStream`).map(t=>{let $=parseAttributes(t),ed=$.schemeIdUri;return findChildren(t,`Event`).map(t=>{let td=parseAttributes(t),nd=td.presentationTime||0,rd=$.timescale||1,id=td.duration||0,ad=nd/rd+e.attributes.start;return{schemeIdUri:ed,value:$.value,id:td.id,start:ad,end:ad+id/rd,messageData:getContent(t)||td.messageData,contentEncoding:$.contentEncoding,presentationTimeOffset:$.presentationTimeOffset||0}})})),toRepresentations=(e,t,$)=>
84ed=>{let td=parseAttributes(ed),nd=buildBaseUrls(t,findChildren(ed,`BaseURL`)),rd=findChildren(ed,`Role`)[0],id=merge$2(e,td,{role:parseAttributes(rd)}),ad=findChildren(ed,`Accessibility`)[0],od=parseCaptionServiceMetadata(parseAttributes(ad));od&&(id=merge$2(id,{captionServices:od}));let sd=findChildren(ed,`Label`)[0];if(sd&&sd.childNodes.length){let e=sd.childNodes[0].nodeValue.trim();id=merge$2(id,{label:e})}let cd=generateKeySystemInformation(findChildren(ed,`ContentProtection`));Object.keys(cd).length&&(id=merge$2(id,{contentProtection:cd}));let ld=getSegmentInformation(ed),ud=findChildren(ed,`Representation`),dd=merge$2($,ld);return flatten(ud.map(inheritBaseUrls(id,nd,dd)))},toAdaptationSets=(e,t)=>($,ed)=>{let td=buildBaseUrls(t,findChildren($.node,`BaseURL`)),nd=merge$2(e,{periodStart:$.attributes.start});typeof $.attributes.duration==`number`&&(nd.periodDuration=$.attributes.duration);let rd=findChildren($.node,`AdaptationSet`),id=getSegmentInformation($.node);return flatten(rd.map(toRepresentations(nd,td,id)))},generateContentSteeringInformation=(e,t)=>{if(e.length>1&&t({type:`warn`,message:`The MPD manifest should contain no more than one ContentSteering tag`}),!e.length)return null;let $=merge$2({serverURL:getContent(e[0])},parseAttributes(e[0]));return $.queryBeforeStart=$.queryBeforeStart===`true`,$},getPeriodStart=({attributes:e,priorPeriodAttributes:t,mpdType:$})=>typeof e.start==`number`?e.start:t&&typeof t.start==`number`&&typeof t.duration==`number`?t.start+t.duration:!t&&$===`static`?0:null,inheritAttributes=(e,t={})=>{let{manifestUri:$=``,NOW:ed=Date.now(),clientOffset:td=0,eventHandler:nd=function(){}}=t,rd=findChildren(e,`Period`);if(!rd.length)throw Error(errors.INVALID_NUMBER_OF_PERIOD);let id=findChildren(e,`Location`),ad=parseAttributes(e),od=buildBaseUrls([{baseUrl:$}],findChildren(e,`BaseURL`)),sd=findChildren(e,`ContentSteering`);ad.type=ad.type||`static`,ad.sourceDuration=ad.mediaPresentationDuration||0,ad.NOW=ed,ad.clientOffset=td,id.length&&(ad.locations=id.map(getContent));let cd=[];return rd.forEach((e,t)=>{let $=parseAttributes(e),ed=cd[t-1];$.start=getPeriodStart({attributes:$,priorPeriodAttributes:ed?ed.attributes:null,mpdType:ad.type}),cd.push({node:e,attributes:$})}),{locations:ad.locations,contentSteeringInfo:generateContentSteeringInformation(sd,nd),representationInfo:flatten(cd.map(toAdaptationSets(ad,od))),eventStream:flatten(cd.map(toEventStream))}},stringToMpdXml=e=>{if(e===``)throw Error(errors.DASH_EMPTY_MANIFEST);let t=new import_lib$6.DOMParser,$,ed;try{$=t.parseFromString(e,`application/xml`),ed=$&&$.documentElement.tagName===`MPD`?$.documentElement:null}catch{}if(!ed||ed&&ed.getElementsByTagName(`parsererror`).length>0)throw Error(errors.DASH_INVALID_XML);return ed},parseUTCTimingScheme=e=>{let t=findChildren(e,`UTCTiming`)[0];if(!t)return null;let $=parseAttributes(t);switch($.schemeIdUri){case`urn:mpeg:dash:utc:http-head:2014`:case`urn:mpeg:dash:utc:http-head:2012`:$.method=`HEAD`;break;case`urn:mpeg:dash:utc:http-xsdate:2014`:case`urn:mpeg:dash:utc:http-iso:2014`:case`urn:mpeg:dash:utc:http-xsdate:2012`:case`urn:mpeg:dash:utc:http-iso:2012`:$.method=`GET`;break;case`urn:mpeg:dash:utc:direct:2014`:case`urn:mpeg:dash:utc:direct:2012`:$.method=`DIRECT`,$.value=Date.parse($.value);break;default:throw Error(errors.UNSUPPORTED_UTC_TIMING_SCHEME)}return $},parse=(e,t={})=>{let $=inheritAttributes(stringToMpdXml(e),t);return toM3u8({dashPlaylists:toPlaylists($.representationInfo),locations:$.locations,contentSteering:$.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:$.eventStream})},parseUTCTiming=e=>parseUTCTimingScheme(stringToMpdXml(e))})),require_numbers=__commonJSMin(((e,t)=>{var $=2**32;t.exports={getUint64:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),ed;return t.getBigUint64?(ed=t.getBigUint64(0),ed<2**53-1?Number(ed):ed):t.getUint32(0)*$+t.getUint32(4)},MAX_UINT32:$}})),require_parse_sidx=__commonJSMin(((e,t)=>{var $=require_numbers().getUint64;t.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),ed={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},td=12;ed.version===0?(ed.earliestPresentationTime=t.getUint32(td),ed.firstOffset=t.getUint32(td+4),td+=8):(ed.earliestPresentationTime=$(e.subarray(td)),ed.firstOffset=$(e.subarray(td+8)),td+=16),td+=2;var nd=t.getUint16(td);for(td+=2;nd>0;td+=12,nd--)ed.references.push({referenceType:(e[td]&128)>>>7,referencedSize:t.getUint32(td)&2147483647,subsegmentDuration:t.getUint32(td+4),startsWithSap:!!(e[td+8]&128),sapType:(e[td+8]&112)>>>4,sapDeltaTime:t.getUint32(td+8)&268435455});return ed}})),ID3,getId3Size,getId3Offset,init_id3_helpers=__esmMin((()=>{init_byte_helpers(),ID3=toUint8([73,68,51]),getId3Size=function(e,t){t===void 0&&(t=0),e=toUint8(e);var $=e[t+5],ed=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return($&16)>>4?ed+20:ed+10},getId3Offset=function e(t,$){return $===void 0&&($=0),t=toUint8(t),t.length-$<10||!bytesMatch(t,ID3,{offset:$}
84)?$:($+=getId3Size(t,$),e(t,$))}})),init_codec_helpers=__esmMin((()=>{init_byte_helpers()})),OPUS_HEAD,init_opus_helpers=__esmMin((()=>{new Uint8Array([79,112,117,115,72,101,97,100])})),normalizePath$1,normalizePaths$1,DESCRIPTORS,parseDescriptors,findBox,init_mp4_helpers=__esmMin((()=>{init_byte_helpers(),init_codec_helpers(),init_opus_helpers(),normalizePath$1=function(e){return typeof e==`string`?stringToBytes(e):e},normalizePaths$1=function(e){return Array.isArray(e)?e.map(function(e){return normalizePath$1(e)}):[normalizePath$1(e)]},parseDescriptors=function(e){e=toUint8(e);for(var t=[],$=0;e.length>$;){var ed=e[$],td=0,nd=0;nd++;var rd=e[nd];for(nd++;rd&128;)td=(rd&127)<<7,rd=e[nd],nd++;td+=rd&127;for(var id=0;id<DESCRIPTORS.length;id++){var ad=DESCRIPTORS[id],od=ad.id,sd=ad.parser;if(ed===od){t.push(sd(e.subarray(nd,nd+td)));break}}$+=td+nd}return t},DESCRIPTORS=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:``};if(t.flags&128&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.flags&64){var $=e[t.size];t.url=bytesToString(e.subarray(t.size+1,t.size+1+$)),t.size+=$}return t.flags&32&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=parseDescriptors(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:parseDescriptors(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}],findBox=function e(t,$,ed){ed===void 0&&(ed=!1),$=normalizePaths$1($),t=toUint8(t);var td=[];if(!$.length)return td;for(var nd=0;nd<t.length;){var rd=(t[nd]<<24|t[nd+1]<<16|t[nd+2]<<8|t[nd+3])>>>0,id=t.subarray(nd+4,nd+8);if(rd===0)break;var ad=nd+rd;if(ad>t.length){if(ed)break;ad=t.length}var od=t.subarray(nd+8,ad);bytesMatch(id,$[0])&&($.length===1?td.push(od):td.push.apply(td,e(od,$.slice(1),ed))),nd=ad}return td}})),EBML_TAGS,LENGTH_TABLE,getLength,getvint,normalizePath,normalizePaths,getInfinityDataSize,findEbml,init_ebml_helpers=__esmMin((()=>{init_byte_helpers(),init_codec_helpers(),EBML_TAGS={EBML:toUint8([26,69,223,163]),DocType:toUint8([66,130]),Segment:toUint8([24,83,128,103]),SegmentInfo:toUint8([21,73,169,102]),Tracks:toUint8([22,84,174,107]),Track:toUint8([174]),TrackNumber:toUint8([215]),DefaultDuration:toUint8([35,227,131]),TrackEntry:toUint8([174]),TrackType:toUint8([131]),FlagDefault:toUint8([136]),CodecID:toUint8([134]),CodecPrivate:toUint8([99,162]),VideoTrack:toUint8([224]),AudioTrack:toUint8([225]),Cluster:toUint8([31,67,182,117]),Timestamp:toUint8([231]),TimestampScale:toUint8([42,215,177]),BlockGroup:toUint8([160]),BlockDuration:toUint8([155]),Block:toUint8([161]),SimpleBlock:toUint8([163])},LENGTH_TABLE=[128,64,32,16,8,4,2,1],getLength=function(e){for(var t=1,$=0;$<LENGTH_TABLE.length&&!(e&LENGTH_TABLE[$]);$++)t++;return t},getvint=function(e,t,$,ed){$===void 0&&($=!0),ed===void 0&&(ed=!1);var td=getLength(e[t]),nd=e.subarray(t,t+td);return $&&(nd=Array.prototype.slice.call(e,t,t+td),nd[0]^=LENGTH_TABLE[td-1]),{length:td,value:bytesToNumber(nd,{signed:ed}),bytes:nd}},normalizePath=function e(t){return typeof t==`string`?t.match(/.{1,2}/g).map(function(t){return e(t)}):typeof t==`number`?numberToBytes(t):t},normalizePaths=function(e){return Array.isArray(e)?e.map(function(e){return normalizePath(e)}):[normalizePath(e)]},getInfinityDataSize=function e(t,$,ed){if(ed>=$.length)return $.length;var td=getvint($,ed,!1);if(bytesMatch(t.bytes,td.bytes))return ed;var nd=getvint($,ed+td.length);return e(t,$,ed+nd.length+nd.value+td.length)},findEbml=function e(t,$){$=normalizePaths($),t=toUint8(t);var ed=[];if(!$.length)return ed;for(var td=0;td<t.length;){var nd=getvint(t,td,!1),rd=getvint(t,td+nd.length),id=td+nd.length+rd.length;rd.value===127&&(rd.value=getInfinityDataSize(nd,t,id),rd.value!==t.length&&(rd.value-=id));var ad=id+rd.value>t.length?t.length:id+rd.value,od=t.subarray(id,ad);bytesMatch($[0],nd.bytes)&&($.length===1?ed.push(od):ed=ed.concat(e(od,$.slice(1))));var sd=nd.length+rd.length+od.length;td+=sd}return ed}})),NAL_TYPE_ONE,NAL_TYPE_TWO,EMULATION_PREVENTION,discardEmulationPreventionBytes,findNal,findH2
8464Nal,findH265Nal,init_nal_helpers=__esmMin((()=>{init_byte_helpers(),NAL_TYPE_ONE=toUint8([0,0,0,1]),NAL_TYPE_TWO=toUint8([0,0,1]),EMULATION_PREVENTION=toUint8([0,0,3]),discardEmulationPreventionBytes=function(e){for(var t=[],$=1;$<e.length-2;)bytesMatch(e.subarray($,$+3),EMULATION_PREVENTION)&&(t.push($+2),$++),$++;if(t.length===0)return e;var ed=e.length-t.length,td=new Uint8Array(ed),nd=0;for($=0;$<ed;nd++,$++)nd===t[0]&&(nd++,t.shift()),td[$]=e[nd];return td},findNal=function(e,t,$,ed){ed===void 0&&(ed=1/0),e=toUint8(e),$=[].concat($);for(var td=0,nd,rd=0;td<e.length&&(rd<ed||nd);){var id=void 0;if(bytesMatch(e.subarray(td),NAL_TYPE_ONE)?id=4:bytesMatch(e.subarray(td),NAL_TYPE_TWO)&&(id=3),!id){td++;continue}if(rd++,nd)return discardEmulationPreventionBytes(e.subarray(nd,td));var ad=void 0;t===`h264`?ad=e[td+id]&31:t===`h265`&&(ad=e[td+id]>>1&63),$.indexOf(ad)!==-1&&(nd=td+id),td+=id+(t===`h264`?1:2)}return e.subarray(0,0)},findH264Nal=function(e,t,$){return findNal(e,`h264`,t,$)},findH265Nal=function(e,t,$){return findNal(e,`h265`,t,$)}})),CONSTANTS,_isLikely,isLikelyTypes,isLikely,detectContainerForBytes,isLikelyFmp4MediaSegment,init_containers=__esmMin((()=>{init_byte_helpers(),init_mp4_helpers(),init_ebml_helpers(),init_id3_helpers(),init_nal_helpers(),CONSTANTS={webm:toUint8([119,101,98,109]),matroska:toUint8([109,97,116,114,111,115,107,97]),flac:toUint8([102,76,97,67]),ogg:toUint8([79,103,103,83]),ac3:toUint8([11,119]),riff:toUint8([82,73,70,70]),avi:toUint8([65,86,73]),wav:toUint8([87,65,86,69]),"3gp":toUint8([102,116,121,112,51,103]),mp4:toUint8([102,116,121,112]),fmp4:toUint8([115,116,121,112]),mov:toUint8([102,116,121,112,113,116]),moov:toUint8([109,111,111,118]),moof:toUint8([109,111,111,102])},_isLikely={aac:function(e){return bytesMatch(e,[255,16],{offset:getId3Offset(e),mask:[255,22]})},mp3:function(e){return bytesMatch(e,[255,2],{offset:getId3Offset(e),mask:[255,6]})}
84,webm:function(e){var t=findEbml(e,[EBML_TAGS.EBML,EBML_TAGS.DocType])[0];return bytesMatch(t,CONSTANTS.webm)},mkv:function(e){var t=findEbml(e,[EBML_TAGS.EBML,EBML_TAGS.DocType])[0];return bytesMatch(t,CONSTANTS.matroska)},mp4:function(e){if(_isLikely[`3gp`](e)||_isLikely.mov(e))return!1;if(bytesMatch(e,CONSTANTS.mp4,{offset:4})||bytesMatch(e,CONSTANTS.fmp4,{offset:4})||bytesMatch(e,CONSTANTS.moof,{offset:4})||bytesMatch(e,CONSTANTS.moov,{offset:4}))return!0},mov:function(e){return bytesMatch(e,CONSTANTS.mov,{offset:4})},"3gp":function(e){return bytesMatch(e,CONSTANTS[`3gp`],{offset:4})},ac3:function(e){var t=getId3Offset(e);return bytesMatch(e,CONSTANTS.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var t=0;t+188<e.length&&t<188;){if(e[t]===71&&e[t+188]===71)return!0;t+=1}return!1},flac:function(e){var t=getId3Offset(e);return bytesMatch(e,CONSTANTS.flac,{offset:t})},ogg:function(e){return bytesMatch(e,CONSTANTS.ogg)},avi:function(e){return bytesMatch(e,CONSTANTS.riff)&&bytesMatch(e,CONSTANTS.avi,{offset:8})},wav:function(e){return bytesMatch(e,CONSTANTS.riff)&&bytesMatch(e,CONSTANTS.wav,{offset:8})},h264:function(e){return findH264Nal(e,7,3).length},h265:function(e){return findH265Nal(e,[32,33],3).length}},isLikelyTypes=Object.keys(_isLikely).filter(function(e){return e!==`ts`&&e!==`h264`&&e!==`h265`}).concat([`ts`,`h264`,`h265`]),isLikelyTypes.forEach(function(e){var t=_isLikely[e];_isLikely[e]=function(e){return t(toUint8(e))}}),isLikely=_isLikely,detectContainerForBytes=function(e){e=toUint8(e);for(var t=0;t<isLikelyTypes.length;t++){var $=isLikelyTypes[t];if(isLikely[$](e))return $}return``},isLikelyFmp4MediaSegment=function(e){return findBox(e,[`moof`]).length>0}})),require_clock=__commonJSMin(((e,t)=>{var $=9e4,ed=function(e){return e*$},td=function(e,t){return e*t},nd=function(e){return e/$},rd=function(e,t){return e/t};t.exports={ONE_SECOND_IN_TS:$,secondsToVideoTs:ed,secondsToAudioTs:td,videoTsToSeconds:nd,audioTsToSeconds:rd,audioTsToVideoTs:function(e,t){return ed(rd(e,t))},videoTsToAudioTs:function(e,t){return td(nd(e),t)},metadataTsToSeconds:function(e,t,$){return nd($?e:e-t)}}})),video_es_exports=__exportAll({default:()=>videojs});function createLogger$1$1(e,t=`:`,$=``){let ed=`info`,td;function nd(...e){td(`log`,ed,e)}return td=LogByTypeFactory(e,nd,$),nd.createLogger=(ed,td,nd)=>{let rd=td===void 0?t:td,id=nd===void 0?$:nd;return createLogger$1$1(`${e} ${rd} ${ed}`,rd,id)},nd.createNewLogger=(e,t,$)=>createLogger$1$1(e,t,$),nd.levels={all:`debug|log|warn|error`,off:``,debug:`debug|log|warn|error`,info:`log|warn|error`,warn:`warn|error`,error:`error`,DEFAULT:ed},nd.level=e=>{if(typeof e==`string`){if(!nd.levels.hasOwnProperty(e))throw Error(`"${e}" in not a valid log level`);ed=e}return ed},nd.history=()=>history$2?[].concat(history$2):[],nd.history.filter=e=>(history$2||[]).filter(t=>RegExp(`.*${e}.*`).test(t[0])),nd.history.clear=()=>{history$2&&(history$2.length=0)},nd.history.disable=()=>{history$2!==null&&(history$2.length=0,history$2=null)},nd.history.enable=()=>{history$2===null&&(history$2=[])},nd.error=(...e)=>td(`error`,ed,e),nd.warn=(...e)=>td(`warn`,ed,e),nd.debug=(...e)=>td(`debug`,ed,e),nd}function each(e,t){keys$1(e).forEach($=>t(e[$],$))}function reduce(e,t,$=0){return keys$1(e).reduce(($,ed)=>t($,e[ed],ed),$)}function isObject$2(e){return!!e&&typeof e==`object`}function isPlain(e){return isObject$2(e)&&toString.call(e)===`[object Object]`&&e.constructor===Object}function merge$1(...e){let t={};return e.forEach(e=>{e&&each(e,(e,$)=>{if(!isPlain(e)){t[$]=e;return}isPlain(t[$])||(t[$]={}),t[$]=merge$1(t[$],e)})}),t}function values(e={}){let t=[];for(let $ in e)if(e.hasOwnProperty($)){let ed=e[$];t.push(ed)}return t}function defineLazyProperty(e,t,$,ed=!0){let td=$=>Object.defineProperty(e,t,{value:$,enumerable:!0,writable:!0}),nd={configurable:!0,enumerable:!0,get(){let e=$();return td(e),e}};return ed&&(nd.set=td),Object.defineProperty(e,t,nd)}function isNonBlankString(e){return typeof e==`string`&&!!e.trim()}function throwIfWhitespace(e){if(e.indexOf(` `)>=0)throw Error(`class has illegal whitespace characters`)}function isReal(){return import_document.default===import_window.default.document}function isEl(e){return isObject$2(e)&&e.nodeType===1}function isInFrame(){try{return import_window.default.parent!==import_window.default.self}catch{return!0}}function createQuerier(e){return function(t,$){if(!isNonBlankString(t))return import_document.default[e](null);isNonBlankString($)&&($=import_document.default.querySelector($));let ed=isEl($)?$:import_document.default;return ed[e]&&ed[e](t)}}function createEl(e=`div`,t={},$={},ed){let td=import_document.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){let $=t[e];e===`textContent`?textContent(td,$):(td[e]!==$||e===`tabIndex`)&&(td[e]=$)}),Object.getOwnPropertyNames($).forEach(function(e){td.setAttribute(e,$[e])}),ed&&appendContent(td,ed),td}function textContent(e,t){return e.textContent===void 0?e.innerText=t:e.textContent=t,e}function prependTo(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function hasClass(e,t){return throwIfWhitespace(t),e.classList.contains(t)}function addClass(e,...t){return e.classList.add(...t.reduce((e,t)=>
84e.concat(t.split(/\s+/)),[])),e}function removeClass(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(log$1.warn(`removeClass was called with an element that doesn't exist`),null)}function toggleClass(e,t,$){return typeof $==`function`&&($=$(e,t)),typeof $!=`boolean`&&($=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,$)),e}function setAttributes(e,t){Object.getOwnPropertyNames(t).forEach(function($){let ed=t[$];ed==null||ed===!1?e.removeAttribute($):e.setAttribute($,ed===!0?``:ed)})}function getAttributes(e){let t={},$=[`autoplay`,`controls`,`playsinline`,`loop`,`muted`,`default`,`defaultMuted`];if(e&&e.attributes&&e.attributes.length>0){let ed=e.attributes;for(let e=ed.length-1;e>=0;e--){let td=ed[e].name,nd=ed[e].value;$.includes(td)&&(nd=nd!==null),t[td]=nd}}return t}function getAttribute(e,t){return e.getAttribute(t)}function setAttribute(e,t,$){e.setAttribute(t,$)}function removeAttribute(e,t){e.removeAttribute(t)}function blockTextSelection(){import_document.default.body.focus(),import_document.default.onselectstart=function(){return!1}}function unblockTextSelection(){import_document.default.onselectstart=function(){return!0}}function getBoundingClientRect(e){if(e&&e.getBoundingClientRect&&e.parentNode){let t=e.getBoundingClientRect(),$={};return[`bottom`,`height`,`left`,`right`,`top`,`width`].forEach(e=>{t[e]!==void 0&&($[e]=t[e])}),$.height||=parseFloat(computedStyle(e,`height`)),$.width||=parseFloat(computedStyle(e,`width`)),$}}function findPosition(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};let t=e.offsetWidth,$=e.offsetHeight,ed=0,td=0;for(;e.offsetParent&&e!==import_document.default[FullscreenApi.fullscreenElement];)ed+=e.offsetLeft,td+=e.offsetTop,e=e.offsetParent;return{left:ed,top:td,width:t,height:$}}function getPointerPosition(e,t){let $={x:0,y:0};if(IS_IOS){let t=e;for(;t&&t.nodeName.toLowerCase()!==`html`;){let e=computedStyle(t,`transform`);
84if(/^matrix/.test(e)){let t=e.slice(7,-1).split(/,\s/).map(Number);$.x+=t[4],$.y+=t[5]}else if(/^matrix3d/.test(e)){let t=e.slice(9,-1).split(/,\s/).map(Number);$.x+=t[12],$.y+=t[13]}if(t.assignedSlot&&t.assignedSlot.parentElement&&import_window.default.WebKitCSSMatrix){let e=import_window.default.getComputedStyle(t.assignedSlot.parentElement).transform,ed=new import_window.default.WebKitCSSMatrix(e);$.x+=ed.m41,$.y+=ed.m42}t=t.parentNode||t.host}}let ed={},td=findPosition(t.target),nd=findPosition(e),rd=nd.width,id=nd.height,ad=t.offsetY-(nd.top-td.top),od=t.offsetX-(nd.left-td.left);return t.changedTouches&&(od=t.changedTouches[0].pageX-nd.left,ad=t.changedTouches[0].pageY+nd.top,IS_IOS&&(od-=$.x,ad-=$.y)),ed.y=1-Math.max(0,Math.min(1,ad/id)),ed.x=Math.max(0,Math.min(1,od/rd)),ed}function isTextNode(e){return isObject$2(e)&&e.nodeType===3}function emptyEl(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function normalizeContent(e){return typeof e==`function`&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`function`&&(e=e()),isEl(e)||isTextNode(e))return e;if(typeof e==`string`&&/\S/.test(e))return import_document.default.createTextNode(e)}).filter(e=>e)}function appendContent(e,t){return normalizeContent(t).forEach(t=>e.appendChild(t)),e}function insertContent(e,t){return appendContent(emptyEl(e),t)}function isSingleLeftClick(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type===`mouseup`&&e.button===0&&e.buttons===0||e.type===`mousedown`&&e.button===0&&e.buttons===0?!0:!(e.button!==0||e.buttons!==1)}function computedStyle(e,t){if(!e||!t)return``;if(typeof import_window.default.getComputedStyle==`function`){let $;try{$=import_window.default.getComputedStyle(e)}catch{return``}return $?$.getPropertyValue(t)||$[t]:``}return``}function copyStyleSheetsToWindow(e){[...import_document.default.styleSheets].forEach(t=>{try{let $=[...t.cssRules].map(e=>e.cssText).join(``),ed=import_document.default.createElement(`style`);ed.textContent=$,e.document.head.appendChild(ed)}catch{let $=import_document.default.createElement(`link`);$.rel=`stylesheet`,$.type=t.type,$.media=t.media.mediaText,$.href=t.href,e.document.head.appendChild($)}})}function autoSetupTimeout(e,t){isReal()&&(t&&(videojs$1=t),import_window.default.setTimeout(autoSetup,e))}function setWindowLoaded(){_windowLoaded=!0,import_window.default.removeEventListener(`load`,setWindowLoaded)}function newGUID(){return _guid++}function _cleanUpEvents(e,t){if(!DomData.has(e))return;let $=DomData.get(e);$.handlers[t].length===0&&(delete $.handlers[t],e.removeEventListener?e.removeEventListener(t,$.dispatcher,!1):e.detachEvent&&e.detachEvent(`on`+t,$.dispatcher)),Object.getOwnPropertyNames($.handlers).length<=0&&(delete $.handlers,delete $.dispatcher,delete $.disabled),Object.getOwnPropertyNames($).length===0&&DomData.delete(e)}function _handleMultipleEvents(e,t,$,ed){$.forEach(function($){e(t,$,ed)})}function fixEvent(e){if(e.fixed_)return e;function t(){return!0}function $(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){let ed=e||import_window.default.event;e={};let td=[`layerX`,`layerY`,`keyLocation`,`path`,`webkitMovementX`,`webkitMovementY`,`mozPressure`,`mozInputSource`];for(let t in ed)td.includes(t)||t===`returnValue`&&ed.preventDefault||(e[t]=ed[t]);if(e.target||=e.srcElement||import_document.default,e.relatedTarget||=e.fromElement===e.target?e.toElement:e.fromElement,e.preventDefault=function(){ed.preventDefault&&ed.preventDefault(),e.returnValue=!1,ed.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){ed.stopPropagation&&ed.stopPropagation(),e.cancelBubble=!0,ed.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=$,e.stopImmediatePropagation=function(){ed.stopImmediatePropagation&&ed.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=$,e.clientX!==null&&e.clientX!==void 0){let t=import_document.default.documentElement,$=import_document.default.body;e.pageX=e.clientX+(t&&t.scrollLeft||$&&$.scrollLeft||0)-(t&&t.clientLeft||$&&$.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||$&&$.scrollTop||0)-(t&&t.clientTop||$&&$.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}function on(e,t,$){if(Array.isArray(t))return _handleMultipleEvents(on,e,t,$);DomData.has(e)||DomData.set(e,{});let ed=DomData.get(e);if(ed.handlers||={},ed.handlers[t]||(ed.handlers[t]=[]),$.guid||=newGUID(),ed.handlers[t].push($),ed.dispatcher||=(ed.disabled=!1,function(t,$){if(ed.disabled)return;t=fixEvent(t);let td=ed.handlers[t.type];if(td){let ed=td.slice(0);for(let td=0,nd=ed.length;td<nd&&!t.isImmediatePropagationStopped();td++)try{ed[td].call(e,t,$)}catch(e){log$1.error(e)}}}),ed.handlers[t].length===1)if(e.addEventListener){let $=!1;supportsPassive()&&passiveEvents.indexOf(t)>-1&&($={passive:!0}),e.addEventListener(t,ed.dispatcher,$)}else e.attachEvent&&e.attachEvent(`on`+t,ed.dispatcher)}function off(e,t,$){if(!DomData.has(e))return;let ed=DomData.get(e);if(!ed.handlers)return;if(Array.isArray(t))return _handleMultipleEvents(off,e,t,$);let td=function(e,t){ed.handlers[t]=[],_cleanUpEvents(e,t)};if(t===void 0){for(let t in ed.handlers)Object.prototype.hasOwnProperty.call(ed.handlers||{},t)&&td(e,t);return}let nd=ed.handlers[t];if(nd){if(!$){td(e,t);return}if($.guid)for(let e=0;e<nd.length;e++)nd[e].guid===$.guid&&nd.splice(e--,1);_cleanUpEvents(e,t)}}function trigger(e,t,$){let ed=DomData.has(e)?DomData.get(e):{},td=e.parentNode||e.ownerDocument;if(typeof t==`string`?t={type:t,target:e}:t.target||=e,t=fixEvent(t),ed.dispatcher&&ed.dispatcher.call(e,t,$),td&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,td,t,$);else if(!td&&!t.defaultPrevented&&t.target&&t.target[t.type]){DomData.has(t.target)||DomData.set(t.target,{});let e=DomData.get(t.target);t.target[t.type]&&(e.disabled=!0,typeof t.target[t.type]==`function`&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function one(e,t,$){if(Array.isArray(t))return _handleMultipleEvents(one,e,t,$);let ed=function(){off(e,t,ed),$.apply(this,arguments)};ed.guid=$.guid=$.guid||newGUID(),on(e,t,ed)}function any(e,t,$){let ed=function(){off(e,t,ed),$.apply(this,arguments)};ed.guid=$.guid=$.guid||newGUID(),on(e,t,ed)}function evented(e,t={}){let{eventBusKey:$}=t;if($){if(!e[$].nodeName)throw Error(`The eventBusKey "${$}" does not refer to an element.`);e.eventBusEl_=e[$]}else e.eventBusEl_=createEl(`span`,{className:`vjs-event-bus`});return Object.assign(e,EventedMixin),e.eventedCallbacks&&e.eventedCallbacks.forEach(e
84=>{e()}),e.on(`dispose`,()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&DomData.has(e)&&DomData.delete(e)}),import_window.default.setTimeout(()=>{e.eventBusEl_=null},0)}),e}function stateful(e,t){return Object.assign(e,StatefulMixin),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged==`function`&&isEvented(e)&&e.on(`statechanged`,e.handleStateChanged),e}function rangeCheck(e,t,$){if(typeof t!=`number`||t<0||t>$)throw Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${$}).`)}function getRange(e,t,$,ed){return rangeCheck(e,ed,$.length-1),$[ed][t]}function createTimeRangesObj(e){let t;return t=e===void 0||e.length===0?{length:0,start(){throw Error(`This TimeRanges object is empty`)},end(){throw Error(`This TimeRanges object is empty`)}}:{length:e.length,start:getRange.bind(null,`start`,0,e),end:getRange.bind(null,`end`,1,e)},import_window.default.Symbol&&import_window.default.Symbol.iterator&&(t[import_window.default.Symbol.iterator]=()=>(e||[]).values()),t}function createTimeRanges$1(e,t){return Array.isArray(e)?createTimeRangesObj(e):e===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[e,t]])}function setFormatTime(e){implementation=e}function resetFormatTime(){implementation=defaultImplementation}function formatTime(e,t=e){return implementation(e,t)}function bufferedPercent(e,t){let $=0,ed,td;if(!t)return 0;(!e||!e.length)&&(e=createTimeRanges$1(0,0));for(let nd=0;nd<e.length;nd++)ed=e.start(nd),td=e.end(nd),td>t&&(td=t),$+=td-ed;return $/t}function MediaError(e){if(e instanceof MediaError)return e;typeof e==`number`?this.code=e:typeof e==`string`?this.message=e:isObject$2(e)&&(typeof e.code==`number`&&(this.code=e.code),Object.assign(this,e)),this.message||=MediaError.defaultMessages[this.code]||``}function isPromise(e){return e!=null&&typeof e.then==`function`}function silencePromise(e){isPromise(e)&&e.then(null,e=>{})}function createTrackHelper(e,t,$,ed,td={}){let nd=e.textTracks();td.kind=t,$&&(td.label=$),ed&&(td.language=ed),td.tech=e;let rd=new ALL.text.TrackClass(td);return nd.addTrack(rd),rd}function use(e,t){middlewares[e]=middlewares[e]||[],middlewares[e].push(t)}function setSource(e,t,$){e.setTimeout(()=>setSourceHelper(t,middlewares[t.type],$,e),1)}function setTech(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function get$2(e,t,$){return e.reduceRight(middlewareIterator($),t[$]())}function set(e,t,$,ed){return t[$](e.reduce(middlewareIterator($),ed))}function mediate(e,t,$,ed=null){let td=`call`+toTitleCase$1($),nd=e.reduce(middlewareIterator(td),ed),rd=nd===TERMINATOR,id=rd?null:t[$](nd);return executeRight(e,$,id,rd),id}function middlewareIterator(e){return(t,$)=>t===TERMINATOR?TERMINATOR:$[e]?$[e](t):t}function executeRight(e,t,$,ed){for(let td=e.length-1;td>=0;td--){let nd=e[td];nd[t]&&nd[t](ed,$)}}function clearCacheForPlayer(e){middlewareInstances.hasOwnProperty(e.id())&&delete middlewareInstances[e.id()]}function getOrCreateFactory(e,t){let $=middlewareInstances[e.id()],ed=null;if($==null)return ed=t(e),middlewareInstances[e.id()]=[[t,ed]],ed;for(let e=0;e<$.length;e++){let[td,nd]=$[e];td===t&&(ed=nd)}return ed===null&&(ed=t(e),$.push([t,ed])),ed}function setSourceHelper(e={},t=[],$,ed,td=[],nd=!1){let[rd,...id]=t;if(typeof rd==`string`)setSourceHelper(e,middlewares[rd],$,ed,td,nd);else if(rd){let t=getOrCreateFactory(ed,rd);if(!t.setSource)return td.push(t),setSourceHelper(e,id,$,ed,td,nd);t.setSource(Object.assign({},e),function(rd,ad){if(rd)return setSourceHelper(e,id,$,ed,td,nd);td.push(t),setSourceHelper(ad,e.type===ad.type?id:middlewares[ad.type],$,ed,td,nd)})}else id.length?setSourceHelper(e,id,$,ed,td,nd):nd?$(e,td):setSourceHelper(e,middlewares[`*`],$,ed,td,!0)}function fixSource(e){if(!e.type){let t=getMimetype(e.src);t&&(e.type=t)}return e}function constructColor(e,t){let $;if(e.length===4)$=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(e.length===7)$=e.slice(1);else throw Error(`Invalid color code provided, `+e+`; must be formatted as e.g. #f0e or #f604e2.`);return`rgba(`+parseInt($.slice(0,2),16)+`,`+parseInt($.slice(2,4),16)+`,`+parseInt($.slice(4,6),16)+`,`+t+`)`}function tryUpdateStyle(e,t,$){try{e.style[t]=$}catch{return}}function getCSSPositionValue(e){return e?`${e}px`:``}function clamp(e,t,$){return e=Number(e),Math.min($,Math.max(t,isNaN(e)?t:e))}function parseOptionValue(e,t){if(t&&(e=t(e)),e&&e!==`none`)return e}function getSelectedOptionValue(e,t){let $=e.options[e.options.selectedIndex].value;return parseOptionValue($,t)}function setSelectedOption(e,t,$){if(t){for(let ed=0;ed<e.options.length;ed++)if(parseOptionValue(e.options[ed].value,$)===t){e.selectedIndex=ed;break}}}function deprecate(e,t){let $=!1;return function(...ed){return $||log$1.warn(e),$=!0,t.apply(this,ed)}}function deprecateForMajor(e,t,$,ed){return deprecate(`${t} is deprecated and will be removed in ${e}.0; please use ${$} instead.`,ed)}function videojs(e,t,$){let ed=videojs.getPlayer(e);if(ed)return t&&log$1.warn(`Player "${e}" is already initialised. Options will not be applied.`),$&&ed.ready($),ed;let td=typeof e==`string`?$$21(`#`+normalizeId(e)):e;if(!isEl(td))throw TypeError(`The element or ID supplied is not val
84id. (videojs)`);let nd=`getRootNode`in td&&td.getRootNode()instanceof import_window.default.ShadowRoot?td.getRootNode():td.ownerDocument.body;return(!td.ownerDocument.defaultView||!nd.contains(td))&&log$1.warn(`The element supplied is not included in the DOM`),t||={},t.restoreEl===!0&&(t.restoreEl=(td.parentNode&&td.parentNode.hasAttribute&&td.parentNode.hasAttribute(`data-vjs-player`)?td.parentNode:td).cloneNode(!0)),hooks(`beforesetup`).forEach(e=>{let $=e(td,merge$1(t));if(!isObject$2($)||Array.isArray($)){log$1.error(`please return an object in beforesetup hooks`);return}t=merge$1(t,$)}),ed=new(Component$1$1.getComponent(`Player`))(td,t,$),hooks(`setup`).forEach(e=>e(ed)),ed}function merge(...e){let t=videojs.obj||videojs;return(t.merge||t.mergeOptions).apply(t,e)}function createTimeRanges(...e){let t=videojs.time||videojs;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}function bufferedRangesToString(e){if(e.length===0)return`Buffered Ranges are empty`;let t=`Buffered Ranges: 85`;for(let $=0;$<e.length;$++){let ed=e.start($),td=e.end($);t+=`${ed} --> ${td}. Duration (${td-ed})\n`}return t}function compactSegmentUrlDescription(e){try{return new URL(e).pathname.split(`/`).slice(-2).join(`/`)}catch{return``}}function noop(){}var import_window,import_document,import_lib$5,import_browser_index,import_parse_sidx,import_clock,version$6,hooks_,hooks,hook,removeHook,hookOnce,FullscreenApi,apiMap,specApi,browserApi,history$2,LogByTypeFactory,log$1,createLogger$5,toString,keys$1,Obj,IS_IPOD,IOS_VERSION,IS_ANDROID,ANDROID_VERSION,IS_FIREFOX,IS_EDGE,IS_CHROMIUM,IS_CHROME,CHROMIUM_VERSION,CHROME_VERSION,IS_CHROMECAST_RECEIVER,IE_VERSION,IS_SAFARI,IS_WINDOWS,IS_IPAD,IS_IPHONE,IS_TIZEN,IS_WEBOS,IS_SMART_TV,TOUCH_ENABLED,UAD,IS_IOS,IS_ANY_SAFARI,browser$1,$$21,$$,Dom,_windowLoaded,videojs$1,autoSetup,createStyleElement,setTextContent,DomData,_guid,_supportsPassive,supportsPassive,passiveEvents,Events,UPDATE_REFRESH_INTERVAL,bind_,throttle,debounce$1,Fn,EVENT_MAP,EventTarget$2,objName,isEvented,addEventedCallback,isValidEventType,validateTarget,validateEventType,validateListener,normalizeListenArgs,listen,EventedMixin,StatefulMixin,toLowerCase,toTitleCase$1,titleCaseEquals,Str,Component$1$1,defaultImplementation,implementation,Time,trackToJson,textTracksToJson,jsonToTextTracks,textTrackConverter,MODAL_CLASS_NAME,ModalDialog,TrackList,disableOthers$1,AudioTrackList,disableOthers,VideoTrackList,TextTrackList,HtmlTrackElementList,TextTrackCueList,VideoTrackKind,AudioTrackKind,TextTrackKind,TextTrackMode,Track,parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin,Url,parseCues,loadTrack,TextTrack,AudioTrack,VideoTrack,HTMLTrackElement,NORMAL,REMOTE,ALL,Tech,middlewares,middlewareInstances,TERMINATOR,allowedGetters,allowedSetters,allowedMediators,MimetypesKind,getMimetype,findMimetype,filterSource,icons,backKeyCode,SpatialNavKeyCodes,STEP_SECONDS,SpatialNavigation,MediaLoader,ClickableComponent,PosterImage,darkGray,lightGray,fontMap,TextTrackDisplay,LoadingSpinner,Button,BigPlayButton,CloseButton,PlayToggle,TimeDisplay,CurrentTimeDisplay,DurationDisplay,TimeDivider,RemainingTimeDisplay,LiveDisplay,SeekToLive,Num,Slider,percentify,LoadProgressBar,TimeTooltip,PlayProgressBar,MouseTimeDisplay,SeekBar,ProgressControl,PictureInPictureToggle,FullscreenToggle,checkVolumeSupport,VolumeLevel,VolumeLevelTooltip,MouseVolumeLevelDisplay,VolumeBar,VolumeControl,checkMuteSupport,MuteToggle,VolumePanel,SkipForward,SkipBackward,Menu,MenuButton,TrackButton,MenuItem,TextTrackMenuItem,OffTextTrackMenuItem,TextTrackButton,ChaptersTrackMenuItem,ChaptersButton,DescriptionsButton,SubtitlesButton,CaptionSettingsMenuItem,CaptionsButton,SubsCapsMenuItem,SubsCapsButton,AudioTrackMenuItem,AudioTrackButton,PlaybackRateMenuItem,PlaybackRateMenuButton,Spacer,CustomControlSpacer,ControlBar,ErrorDisplay,TextTrackSelect,TextTrackFieldset,TextTrackSettingsColors,TextTrackSettingsFont,TrackSettingsControls,LOCAL_STORAGE_KEY$1,COLOR_BLACK,COLOR_BLUE,COLOR_CYAN,COLOR_GREEN,COLOR_MAGENTA,COLOR_RED,COLOR_WHITE,COLOR_YELLOW,OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS,selectConfigs,TextTrackSettings,ResizeManager,defaults$1,LiveTracker,TitleBar,defaults$2,TransientButton,sourcesetLoad,innerHTMLDescriptorPolyfill,getDescriptor,getInnerHTMLDescriptor,firstSourceWatch,srcDescriptorPolyfill,getSrcDescriptor,setupSourceset,Html5,TECH_EVENTS_RETRIGGER,TECH_EVENTS_QUEUE,BREAKPOINT_ORDER,BREAKPOINT_CLASSES,DEFAULT_BREAKPOINTS,Player$1,navigator$1,BASE_PLUGIN_NAME,PLUGIN_CACHE_KEY,pluginStorage,pluginExists,getPlugin,markPluginAsActive,triggerSetupEvent,createBasicPlugin,createPluginFactory,Plugin,VjsErrors,normalizeId,QualityLevel,QualityLevelList,version$5,initPlugin$1,qualityLevels,resolveUrl,resolveManifestRedirect,logger,TIME_FUDGE_FACTOR,SAFE_TIME_DELTA,filterRanges,findRange,findNextRange,findGaps,bufferIntersection,printableRange,timeUntilRebuffer,timeRangesToArray,isRangeDifferent,lastBufferedEnd,timeAheadOf,segmentDurationWithParts,getPartsAndSegments,getLastParts,getKnownPartCount,liveEdgeDelay,backwardDuration,forwardDuration,intervalDuration,duration,sumDurations,playlistEnd,seekable,getMediaInfoForTime,isExcluded,isIncompatible,isEnabled,isDisabled,isAes,hasAttribute,estimateSegmentRequestTime,isLowestEnabledRendition,playlistMatch,someAudioVariant,isAudioOnly,Playlist,log,createPlaylistID,groupID,parseManifest,forEachMediaGroup,setupMediaPlaylist,setupMediaPlaylists,resolveMediaGroupUris,mainForMedia,addPropertiesToMain,DateRangesStorage,QUOTA_EXCEEDED_ERR,getStreamingNetworkErrorMetadata,logFn$1,getCodecs,isMaat,isMuxed,unwrapCodecList,codecCount,codecsForPlaylist,EventTarget$1,addLLHLSQueryDirectives,updateSegment,updateSegments,resolveSegmentUris,getAllSegments,isPlaylistUnchanged,updateMain$1,refreshDelay,playlistMetadataPayload,PlaylistLoader,callbackWrapper,callAllRequestHooks,callAllResponseHooks,xhrFactory,byterangeStr,segmentXhrHeaders,textRange,formatHexString,formatAsciiString,createTransferableMessage,initSegmentId,segmentKeyId,hexDump,tagDump,textRanges,utils,SEGMENT_END_FUDGE_PERCENT,playerTimeToProgramTime,originalSegmentVideoDuration,findSegmentForProgramTime,findSegmentForPlayerTime,getOffsetFromTimestamp,verifyProgramDateTimeTags,getProgramTime,seekToProgramTime,callbackOnCompleted,containerRequest,EventTarget$3,dashPlaylistUnchanged,dashGroupId,parseMainXml,removeOldMediaGroupLabels,updateMain,equivalentSidx,compareSidxEntry,filterChangedSid
85xMappings,DashPlaylistLoader,Config,stringToArrayBuffer,browserWorkerPolyFill,createObjectURL,factory,transform,getWorkerString,TransmuxWorker,handleData_,handleDone_,handleGopInfo_,processTransmux,dequeue,processAction,enqueueAction,reset,endTimeline,transmux,createTransmuxer,segmentTransmuxer,workerCallback,REQUEST_ERRORS,WEB_VTT_CODEC,abortAll,getRequestStats,getProgressStats,handleErrors,handleKeyResponse,initMp4Text,parseMp4TextSegment,parseInitSegment,handleInitSegmentResponse,handleSegmentResponse,transmuxAndNotify,handleSegmentBytes,decrypt,decryptSegment,waitForCompletion,handleLoadEnd,handleProgress,mediaSegmentRequest,logFn,representationToString,safeGetComputedStyle,stableSort,comparePlaylistBandwidth,comparePlaylistResolution,simpleSelector,lastBandwidthSelector,movingAverageBandwidthSelector,minRebufferMaxBandwidthSelector,lowestBitrateCompatibleVariantSelector,concatSegments,createCaptionsTrackIfNotExists,addCaptionData,deprecateOldCue,addMetadata,dateRangeAttr,dateRangeKeysToOmit,addDateRangeMetadata,createMetadataTrackIfNotExists,removeCuesFromTrack,removeDuplicateCuesFromTrack,gopsSafeToAlignWith,updateGopBuffer,removeGopBuffer,shallowEqual$1,getSyncSegmentCandidate,MIN_BACK_BUFFER,CHECK_BUFFER_DELAY,finite,MIN_SEGMENT_DURATION_TO_SAVE_STATS,illegalMediaSwitch,safeBackBufferTrimTime,segmentInfoString,timingInfoPropertyForMedia,timestampOffsetForSegment,shouldWaitForTimelineChange,shouldFixBadTimelineChanges,isAudioTimelineBehind,checkAndFixTimelines,mediaDuration,segmentTooLong,getTroublesomeSegmentDurationMessage,segmentInfoPayload,SegmentLoader,toTitleCase,bufferTypes,updating,nextQueueIndexOfType,shiftQueue,cleanupBuffer,inSourceBuffers,actions,pushQueue,onUpdateend,SourceUpdater,uint8ToUtf8,bufferToHexString,VTT_LINE_TERMINATORS,NoVttJsError,VTTSegmentLoader,findAdCue,updateAdCues,SyncInfo,SyncInfoData,MediaSequenceSync,DependantMediaSequenceSync,MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC,syncPointStrategies,SyncController,TimelineChangeController,Decrypter,audioTrackKind_,stopLoaders,startLoaders,onGroupChanged,onGroupChanging,onTrackChanged,onError,setupListeners,initialize,groupMatch,activeGroup,activeTrack,getActiveGroup,setupMediaGroups,createMediaTypes,SteeringManifest,ContentSteeringController,debounce,ABORT_EARLY_EXCLUSION_SECONDS,Vhs$1,loaderStats,sumLoaderStat,shouldSwitchToMedia,PlaylistController,enableFunction,Representation,renditionSelectionMixin,timerCancelEvents,PlaybackWatcher,defaultOptions$1,initPlugin,reloadSourceOnError,version$4,version$3,version$2,version$1,version$7,Vhs,LOCAL_STORAGE_KEY,handleVhsMediaChange,handleVhsLoadedMetadata,emeKeySystems,getAllPsshKeySystemsOptions,waitForKeySessionCreation,setupEmeOptions,getVhsLocalStorage,updateVhsLocalStorage,expandDataUri,addOnRequestHook,addOnResponseHook,removeOnRequestHook,removeOnResponseHook,Component$54,VhsHandler,VhsSourceHandler,supportsNativeMediaSources,init_video_es=__esmMin((()=>{init_dist$1(),import_window=__toESM(require_window()),import_document=__toESM(require_document()),import_lib$5=__toESM(require_lib$6()),import_browser_index=__toESM(require_browser_index()),init_extends(),init_resolve_url$1(),init_m3u8_parser_es(),init_codecs(),init_media_types(),init_byte_helpers(),init_mpd_parser_es(),import_parse_sidx=__toESM(require_parse_sidx()),init_id3_helpers(),init_containers(),import_clock=require_clock(),version$6=`8.23.3`,hooks_={},hooks=function(e,t){return hooks_[e]=hooks_[e]||[],t&&(hooks_[e]=hooks_[e].concat(t)),hooks_[e]},hook=function(e,t){hooks(e,t)},removeHook=function(e,t){let $=hooks(e).indexOf(t);return $<=-1?!1:(hooks_[e]=hooks_[e].slice(),hooks_[e].splice($,1),!0)},hookOnce=function(e,t){hooks(e,[].concat(t).map(t=>{let $=(...ed)=>(removeHook(e,$),t(...ed));return $}))},FullscreenApi={prefixed:!0},apiMap=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`,`fullscreen`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`,`-webkit-full-screen`]],specApi=apiMap[0];for(let e=0;e<apiMap.length;e++)if(apiMap[e][1]in import_document.default){browserApi=apiMap[e];break}if(browserApi){for(let e=0;e<browserApi.length;e++)FullscreenApi[specApi[e]]=browserApi[e];FullscreenApi.prefixed=browserApi[0]!==specApi[0]}if(history$2=[],LogByTypeFactory=(e,t,$)=>
85(ed,td,nd)=>{let rd=t.levels[td],id=RegExp(`^(${rd})$`),ad=e;if(ed!==`log`&&nd.unshift(ed.toUpperCase()+`:`),$&&(ad=`%c${e}`,nd.unshift($)),nd.unshift(ad+`:`),history$2){history$2.push([].concat(nd));let e=history$2.length-1e3;history$2.splice(0,e>0?e:0)}if(!import_window.default.console)return;let od=import_window.default.console[ed];!od&&ed===`debug`&&(od=import_window.default.console.info||import_window.default.console.log),!(!od||!rd||!id.test(ed))&&od[Array.isArray(nd)?`apply`:`call`](import_window.default.console,nd)},log$1=createLogger$1$1(`VIDEOJS`),createLogger$5=log$1.createLogger,toString=Object.prototype.toString,keys$1=function(e){return isObject$2(e)?Object.keys(e):[]},Obj=Object.freeze({__proto__:null,each,reduce,isObject:isObject$2,isPlain,merge:merge$1,values,defineLazyProperty}),IS_IPOD=!1,IOS_VERSION=null,IS_ANDROID=!1,IS_FIREFOX=!1,IS_EDGE=!1,IS_CHROMIUM=!1,IS_CHROME=!1,CHROMIUM_VERSION=null,CHROME_VERSION=null,IS_CHROMECAST_RECEIVER=!!(import_window.default.cast&&import_window.default.cast.framework&&import_window.default.cast.framework.CastReceiverContext),IE_VERSION=null,IS_SAFARI=!1,IS_WINDOWS=!1,IS_IPAD=!1,IS_IPHONE=!1,IS_TIZEN=!1,IS_WEBOS=!1,IS_SMART_TV=!1,TOUCH_ENABLED=!!(isReal()&&(`ontouchstart`in import_window.default||import_window.default.navigator.maxTouchPoints||import_window.default.DocumentTouch&&import_window.default.document instanceof import_window.default.DocumentTouch)),UAD=import_window.default.navigator&&import_window.default.navigator.userAgentData,UAD&&UAD.platform&&UAD.brands&&(IS_ANDROID=UAD.platform===`Android`,IS_EDGE=!!UAD.brands.find(e=>e.brand===`Microsoft Edge`),IS_CHROMIUM=!!UAD.brands.find(e=>e.brand===`Chromium`),IS_CHROME=!IS_EDGE&&IS_CHROMIUM,CHROMIUM_VERSION=CHROME_VERSION=(UAD.brands.find(e=>e.brand===`Chromium`)||{}).version||null,IS_WINDOWS=UAD.platform===`Windows`),!IS_CHROMIUM){let e=import_window.default.navigator&&import_window.default.navigator.userAgent||``;IS_IPOD=/iPod/i.test(e),IOS_VERSION=function(){let t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),IS_ANDROID=/Android/i.test(e),ANDROID_VERSION=function(){let t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;let $=t[1]&&parseFloat(t[1]),ed=t[2]&&parseFloat(t[2]);return $&&ed?parseFloat(t[1]+`.`+t[2]):$||null}(),IS_FIREFOX=/Firefox/i.test(e),IS_EDGE=/Edg/i.test(e),IS_CHROMIUM=/Chrome/i.test(e)||/CriOS/i.test(e),IS_CHROME=!IS_EDGE&&IS_CHROMIUM,CHROMIUM_VERSION=CHROME_VERSION=function(){let t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),IE_VERSION=function(){let t=/MSIE\s(\d+)\.\d/.exec(e),$=t&&parseFloat(t[1]);return!$&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&($=11),$}(),IS_TIZEN=/Tizen/i.test(e),IS_WEBOS=/Web0S/i.test(e),IS_SMART_TV=IS_TIZEN||IS_WEBOS,IS_SAFARI=/Safari/i.test(e)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_SMART_TV,IS_WINDOWS=/Windows/i.test(e),IS_IPAD=/iPad/i.test(e)||IS_SAFARI&&TOUCH_ENABLED&&
85!/iPhone/i.test(e),IS_IPHONE=/iPhone/i.test(e)&&!IS_IPAD}IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IS_ANY_SAFARI=(IS_SAFARI||IS_IOS)&&!IS_CHROME,browser$1=Object.freeze({__proto__:null,get IS_IPOD(){return IS_IPOD},get IOS_VERSION(){return IOS_VERSION},get IS_ANDROID(){return IS_ANDROID},get ANDROID_VERSION(){return ANDROID_VERSION},get IS_FIREFOX(){return IS_FIREFOX},get IS_EDGE(){return IS_EDGE},get IS_CHROMIUM(){return IS_CHROMIUM},get IS_CHROME(){return IS_CHROME},get CHROMIUM_VERSION(){return CHROMIUM_VERSION},get CHROME_VERSION(){return CHROME_VERSION},IS_CHROMECAST_RECEIVER,get IE_VERSION(){return IE_VERSION},get IS_SAFARI(){return IS_SAFARI},get IS_WINDOWS(){return IS_WINDOWS},get IS_IPAD(){return IS_IPAD},get IS_IPHONE(){return IS_IPHONE},get IS_TIZEN(){return IS_TIZEN},get IS_WEBOS(){return IS_WEBOS},get IS_SMART_TV(){return IS_SMART_TV},TOUCH_ENABLED,IS_IOS,IS_ANY_SAFARI}),$$21=createQuerier(`querySelector`),$$=createQuerier(`querySelectorAll`),Dom=Object.freeze({__proto__:null,isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$:$$21,$$,computedStyle,copyStyleSheetsToWindow}),_windowLoaded=!1,autoSetup=function(){if(videojs$1.options.autoSetup===!1)return;let e=Array.prototype.slice.call(import_document.default.getElementsByTagName(`video`)),t=Array.prototype.slice.call(import_document.default.getElementsByTagName(`audio`)),$=Array.prototype.slice.call(import_document.default.getElementsByTagName(`video-js`)),ed=e.concat(t,$);if(ed&&ed.length>0)for(let e=0,t=ed.length;e<t;e++){let t=ed[e];if(t&&t.getAttribute)t.player===void 0&&t.getAttribute(`data-setup`)!==null&&videojs$1(t);else{autoSetupTimeout(1);break}}else _windowLoaded||autoSetupTimeout(1)},isReal()&&(import_document.default.readyState===`complete`?setWindowLoaded():import_window.default.addEventListener(`load`,setWindowLoaded)),createStyleElement=function(e){let t=import_document.default.createElement(`style`);return t.className=e,t},setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},DomData=new WeakMap,_guid=3,supportsPassive=function(){if(typeof _supportsPassive!=`boolean`){_supportsPassive=!1;try{let e=Object.defineProperty({},`passive`,{get(){_supportsPassive=!0}});import_window.default.addEventListener(`test`,null,e),import_window.default.removeEventListener(`test`,null,e)}catch{}}return _supportsPassive},passiveEvents=[`touchstart`,`touchmove`],Events=Object.freeze({__proto__:null,fixEvent,on,off,trigger,one,any}),UPDATE_REFRESH_INTERVAL=30,bind_=function(e,t,$){t.guid||=newGUID();let ed=t.bind(e);return ed.guid=$?$+`_`+t.guid:t.guid,ed},throttle=function(e,t){let $=import_window.default.performance.now();return function(...ed){let td=import_window.default.performance.now();td-$>=t&&(e(...ed),$=td)}},debounce$1=function(e,t,$,ed=import_window.default){let td,nd=()=>{ed.clearTimeout(td),td=null},rd=function(){let nd=this,rd=arguments,id=function(){td=null,id=null,$||e.apply(nd,rd)};!td&&$&&e.apply(nd,rd),ed.clearTimeout(td),td=ed.setTimeout(id,t)};return rd.cancel=nd,rd},Fn=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL,bind_,throttle,debounce:debounce$1}),EventTarget$2=class{on(e,t){let $=this.addEventListener;this.addEventListener=()=>{},on(this,e,t),this.addEventListener=$}off(e,t){off(this,e,t)}one(e,t){let $=this.addEventListener;this.addEventListener=()=>{},one(this,e,t),this.addEventListener=$}any(e,t){let $=this.addEventListener;this.addEventListener=()=>{},any(this,e,t),this.addEventListener=$}trigger(e){let t=e.type||e;typeof e==`string`&&(e={type:t}),e=fixEvent(e),this.allowedEvents_[t]&&this[`on`+t]&&this[`on`+t](e),trigger(this,e)}queueTrigger(e){EVENT_MAP||=new Map;let t=e.type||e,$=EVENT_MAP.get(this);$||($=new Map,EVENT_MAP.set(this,$));let ed=$.get(t);$.delete(t),import_window.default.clearTimeout(ed);let td=import_window.default.setTimeout(()=>{$.delete(t),$.size===0&&($=null,EVENT_MAP.delete(this)),this.trigger(e)},0);$.set(t,td)}},EventTarget$2.prototype.allowedEvents_={},EventTarget$2.prototype.addEventListener=EventTarget$2.prototype.on,EventTarget$2.prototype.removeEventListener=EventTarget$2.prototype.off,EventTarget$2.prototype.dispatchEvent=EventTarget$2.prototype.trigger,objName=e=>typeof e.name==`function`?e.name():typeof e.name==`string`?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,isEvented=e=>e instanceof EventTarget$2||!!e.eventBusEl_&&[`on`,`one`,`off`,`trigger`].every(t=>typeof e[t]==`function`),addEventedCallback=(e,t)=>{isEvented(e)?t():(e.eventedCallbacks||=[],e.eventedCallbacks.push(t))},isValidEventType=e=>typeof e==`string`&&/\S/.test(e)||Array.isArray(e)&&!!e.length,validateTarget=(e,t,$)=>
85{if(!e||!e.nodeName&&!isEvented(e))throw Error(`Invalid target for ${objName(t)}#${$}; must be a DOM node or evented object.`)},validateEventType=(e,t,$)=>{if(!isValidEventType(e))throw Error(`Invalid event type for ${objName(t)}#${$}; must be a non-empty string or array.`)},validateListener=(e,t,$)=>{if(typeof e!=`function`)throw Error(`Invalid listener for ${objName(t)}#${$}; must be a function.`)},normalizeListenArgs=(e,t,$)=>{let ed=t.length<3||t[0]===e||t[0]===e.eventBusEl_,td,nd,rd;return ed?(td=e.eventBusEl_,t.length>=3&&t.shift(),[nd,rd]=t):(td=t[0],nd=t[1],rd=t[2]),validateTarget(td,e,$),validateEventType(nd,e,$),validateListener(rd,e,$),rd=bind_(e,rd),{isTargetingSelf:ed,target:td,type:nd,listener:rd}},listen=(e,t,$,ed)=>{validateTarget(e,e,t),e.nodeName?Events[t](e,$,ed):e[t]($,ed)},EventedMixin={on(...e){let{isTargetingSelf:t,target:$,type:ed,listener:td}=normalizeListenArgs(this,e,`on`);if(listen($,`on`,ed,td),!t){let e=()=>this.off($,ed,td);e.guid=td.guid;let t=()=>this.off(`dispose`,e);t.guid=td.guid,listen(this,`on`,`dispose`,e),listen($,`on`,`dispose`,t)}},one(...e){let{isTargetingSelf:t,target:$,type:ed,listener:td}=normalizeListenArgs(this,e,`one`);if(t)listen($,`one`,ed,td);else{let e=(...t)=>{this.off($,ed,e),td.apply(null,t)};e.guid=td.guid,listen($,`one`,ed,e)}},any(...e){let{isTargetingSelf:t,target:$,type:ed,listener:td}=normalizeListenArgs(this,e,`any`);if(t)listen($,`any`,ed,td);else{let e=(...t)=>{this.off($,ed,e),td.apply(null,t)};e.guid=td.guid,listen($,`any`,ed,e)}},off(e,t,$){if(!e||isValidEventType(e))off(this.eventBusEl_,e,t);else{let ed=e,td=t;validateTarget(ed,this,`off`),validateEventType(td,this,`off`),validateListener($,this,`off`),$=bind_(this,$),this.off(`dispose`,$),ed.nodeName?(off(ed,td,$),off(ed,`dispose`,$)):isEvented(ed)&&(ed.off(td,$),ed.off(`dispose`,$))}},trigger(e,t){if(validateTarget(this.eventBusEl_,this,`trigger`),!isValidEventType(e&&typeof e!=`string`?e.type:e))throw Error(`Invalid event type for ${objName(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return trigger(this.eventBusEl_,e,t)}},StatefulMixin={state:{},setState(e){typeof e==`function`&&(e=e());let t;return each(e,(e,$)=>{this.state[$]!==e&&(t||={},t[$]={from:this.state[$],to:e}),this.state[$]=e}),t&&isEvented(this)&&this.trigger({changes:t,type:`statechanged`}),t}},toLowerCase=function(e){return typeof e==`string`?e.replace(/./,e=>e.toLowerCase()):e},toTitleCase$1=function(e){return typeof e==`string`?e.replace(/./,e=>e.toUpperCase()):e},titleCaseEquals=function(e,t){return toTitleCase$1(e)===toTitleCase$1(t)},Str=Object.freeze({__proto__:null,toLowerCase,toTitleCase:toTitleCase$1,titleCaseEquals}),Component$1$1=class e{constructor(e,t,$){!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=merge$1({},this.options_),t=this.options_=merge$1(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||=`${e&&e.id&&e.id()||`no_player`}_component_${newGUID()}`,this.name_=t.name||null,t.el?this.el_=t.el:t.createEl!==!1&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(` `).forEach(e=>this.addClass(e)),[`on`,`off`,`one`,`any`,`trigger`].forEach(e=>{this[e]=void 0}),t.evented!==!1&&(evented(this,{eventBusKey:this.el_?`el_`:null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,`languagechange`,this.handleLanguagechange)),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,t.initChildren!==!1&&this.initChildren(),this.ready($),t.reportTouchActivity!==!1&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:`dispose`,bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&=(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e&&(this.options_=merge$1(this.options_,e)),this.options_}el(){return this.el_}createEl(e,t,$){return createEl(e,t,$)}localize(e,t,$=e){let ed=this.player_.language&&this.player_.language(),td=this.player_.languages&&this.player_.languages(),nd=td&&td[ed],rd=ed&&ed.split(`-`)[0],id=td&&td[rd],ad=$;return nd&&nd[e]?ad=nd[e]:id&&id[e]&&(ad=id[e]),t&&(ad=ad.replace(/\{(\d+)\}/g,function(e,$){let ed=t[$-1],td=ed;return ed===void 0&&(td=e),td})),ad}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}
85getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let $=0;$<e.length;$++)if(t=t.getChild(e[$]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;let $=`http://www.w3.org/2000/svg`,ed=createEl(`span`,{className:`vjs-icon-placeholder vjs-svg-icon`},{"aria-hidden":`true`}),td=import_document.default.createElementNS($,`svg`);td.setAttributeNS(null,`viewBox`,`0 0 512 512`);let nd=import_document.default.createElementNS($,`use`);return td.appendChild(nd),nd.setAttributeNS(null,`href`,`#vjs-icon-${e}`),ed.appendChild(td),this.iconIsSet_?t.replaceChild(ed,t.querySelector(`.vjs-icon-placeholder`)):t.appendChild(ed),this.iconIsSet_=!0,ed}addChild(t,$={},ed=this.children_.length){let td,nd;if(typeof t==`string`){nd=toTitleCase$1(t);let ed=$.componentClass||nd;$.name=nd;let rd=e.getComponent(ed);if(!rd)throw Error(`Component ${ed} does not exist`);if(typeof rd!=`function`)return null;td=new rd(this.player_||this,$)}else td=t;if(td.parentComponent_&&td.parentComponent_.removeChild(td),this.children_.splice(ed,0,td),td.parentComponent_=this,typeof td.id==`function`&&(this.childIndex_[td.id()]=td),nd||=td.name&&toTitleCase$1(td.name()),nd&&(this.childNameIndex_[nd]=td,this.childNameIndex_[toLowerCase(nd)]=td),typeof td.el==`function`&&td.el()){let e=null;this.children_[ed+1]&&(this.children_[ed+1].el_?e=this.children_[ed+1].el_:isEl(this.children_[ed+1])&&(e=this.children_[ed+1])),this.contentEl().insertBefore(td.el(),e)}return td}removeChild(e){if(typeof e==`string`&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let $=this.children_.length-1;$>=0;$--)if(this.children_[$]===e){t=!0,this.children_.splice($,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[toTitleCase$1(e.name())]=null,this.childNameIndex_[toLowerCase(e.name())]=null;let $=e.el();$&&$.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){let t=this.options_.children;if(t){let $=this.options_,ed=e=>{let t=e.name,ed=e.opts;if($[t]!==void 0&&(ed=$[t]),ed===!1)return;ed===!0&&(ed={}),ed.playerOptions=this.options_.playerOptions;let td=this.addChild(t,ed);td&&(this[t]=td)},td,nd=e.getComponent(`Tech`);td=Array.isArray(t)?t:Object.keys(t),td.concat(Object.keys(this.options_).filter(function(e){return!td.some(function(t){return typeof t==`string`?e===t:e===t.name})})).map(e=>{let $,ed;return typeof e==`string`?($=e,ed=t[$]||this.options_[$]||{}):($=e.name,ed=e),{name:$,opts:ed}}).filter(t=>{let $=e.getComponent(t.opts.componentClass||toTitleCase$1(t.name));return $&&!nd.isTech($)}).forEach(ed)}}buildCSSClass(){return``}ready(e,t=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){let e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger(`ready`)},1)}$(e,t){return $$21(e,t||this.contentEl())}$$(e,t){return $$(e,t||this.contentEl())}hasClass(e){return hasClass(this.el_,e)}addClass(...e){addClass(this.el_,...e)}removeClass(...e){removeClass(this.el_,...e)}toggleClass(e,t){toggleClass(this.el_,e,t)}show(){this.removeClass(`vjs-hidden`)}hide(){this.addClass(`vjs-hidden`)}lockShowing(){this.addClass(`vjs-lock-showing`)}unlockShowing(){this.removeClass(`vjs-lock-showing`)}getAttribute(e){return getAttribute(this.el_,e)}setAttribute(e,t){setAttribute(this.el_,e,t)}removeAttribute(e){removeAttribute(this.el_,e)}width(e,t){return this.dimension(`width`,e,t)}height(e,t){return this.dimension(`height`,e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,$){if(t!==void 0){(t===null||t!==t)&&(t=0),(``+t).indexOf(`%`)!==-1||(``+t).indexOf(`px`)!==-1?this.el_.style[e]=t:t===`auto`?this.el_.style[e]=``:this.el_.style[e]=t+`px`,$||this.trigger(`componentresize`);return}if(!this.el_)return 0;let ed=this.el_.style[e],td=ed.indexOf(`px`);return parseInt(td===-1?this.el_[`offset`+toTitleCase$1(e)]:ed.slice(0,td),10)}currentDimension(e){let t=0;if(e!==`width`&&e!==`height`)throw Error(`currentDimension only accepts width or height value`);if(t=computedStyle(this.el_,e),t=parseFloat(t),t===0||isNaN(t)){let $=`offset${toTitleCase$1(e)}`;t=this.el_[$]}return t}currentDimensions(){return{width:this.currentDimension(`width`),height:this.currentDimension(`height`)}}currentWidth(){return this.currentDimension(`width`)}currentHeight(){return this.currentDimension(`height`)}getPositions(){let e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(e.key!==`Tab`&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null,$=10,ed=200,td;this.on(`touchstart`,function($){$.touches.length===1&&(t={pageX:$.touches[0].pageX,pageY:$.touches[0].pageY},e=import_window.default.performance.now(),td=!0)}),this.on(`touchmove`,function(e){if(e.touches.length>1)td=!1;else if(t){let $=e.touches[0].pageX-t.pageX,ed=e.touches[0].pageY-t.pageY;Math.sqrt($*$+ed*ed)>10&&(td=!1)}});let nd=function(){td=!1};this.on(`touchleave`,nd),this.on(`touchcancel`,nd),this.on(`touchend`,function($){t=null,td===!0&&import_window.default.performance.now()-e<200&&($.preventDefault(),this.trigger(`tap`))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;let e=bind_(this.player(),this.player().reportUserActivity),t;this.on(`touchstart`,function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});let $=function($){e(),this.clearInterval(t)};this.on(`touchmove`,e),this.on(`touchend`,$),this.on(`touchcancel`,$)}setTimeout(e,t){var $;return e=bind_(this,e),this.clearTimersOnDispose_(),$=import_window.default.setTimeout(()=>{this.setTimeoutIds_.has($)&&this.setTimeoutIds_.delete($),e()},t),this.setTimeoutIds_.add($),$}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),import_window.default.clearTimeout(e)),e}setInterval(e,t){e=bind_(this,e),this.clearTimersOnDispose_();let $=import_window.default.setInterval(e,t);return this.setIntervalIds_.add($),$}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),import_window.default.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var t;return e=bind_(this,e),t=import_window.default.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=bind_(this,t);let $=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,$),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),import_window.default.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one(`dispose`,()=>{[[`namedRafs_`,`cancelNamedAnimationFrame`],[`rafIds_`,`cancelAnimationFrame`],[`setTimeoutIds_`,`clearTimeout`],[`setIntervalIds_`,`clearInterval`]].forEac
85h(([e,t])=>{this[e].forEach((e,$)=>this[t]($))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(e){let t=import_window.default.getComputedStyle(e,null),$=t.getPropertyValue(`visibility`);return t.getPropertyValue(`display`)!==`none`&&![`hidden`,`collapse`].includes($)}function $(e){return!(!t(e.parentElement)||!t(e)||e.style.opacity===`0`||import_window.default.getComputedStyle(e).height===`0px`||import_window.default.getComputedStyle(e).width===`0px`)}function ed(e){if(e.offsetWidth+e.offsetHeight+e.getBoundingClientRect().height+e.getBoundingClientRect().width===0)return!1;let t={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2};if(t.x<0||t.x>(import_document.default.documentElement.clientWidth||import_window.default.innerWidth)||t.y<0||t.y>(import_document.default.documentElement.clientHeight||import_window.default.innerHeight))return!1;let $=import_document.default.elementFromPoint(t.x,t.y);for(;$;){if($===e)return!0;if($.parentNode)$=$.parentNode;else return!1}}return e||=this.el(),!!(ed(e)&&$(e)&&(!e.parentElement||e.tabIndex>=0))}static registerComponent(t,$){if(typeof t!=`string`||!t)throw Error(`Illegal component name, "${t}"; must be a non-empty string.`);let ed=e.getComponent(`Tech`),td=ed&&ed.isTech($),nd=e===$||e.prototype.isPrototypeOf($.prototype);if(td||!nd){let e;throw e=td?`techs must be registered using Tech.registerTech()`:`must be a Component subclass`,Error(`Illegal component, "${t}"; ${e}.`)}t=toTitleCase$1(t),e.components_||={};let rd=e.getComponent(`Player`);if(t===`Player`&&rd&&rd.players){let e=rd.players,t=Object.keys(e);if(e&&t.length>0){for(let $=0;$<t.length;$++)if(e[t[$]]!==null)throw Error(`Can not register Player component after player has been created.`)}}return e.components_[t]=$,e.components_[toLowerCase(t)]=$,$}static getComponent(t){if(!(!t||!e.components_))return e.components_[t]}},Component$1$1.registerComponent(`Component`,Component$1$1),defaultImplementation=function(e,t){e=e<0?0:e;let $=Math.floor(e%60),ed=Math.floor(e/60%60),td=Math.floor(e/3600),nd=Math.floor(t/60%60),rd=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(td=ed=$=`-`),td=td>0||rd>0?td+`:`:``,ed=((td||nd>=10)&&ed<10?`0`+ed:ed)+`:`,$=$<10?`0`+$:$,td+ed+$},implementation=defaultImplementation,Time=Object.freeze({__proto__:null,createTimeRanges:createTimeRanges$1,createTimeRange:createTimeRanges$1,setFormatTime,resetFormatTime,formatTime}),MediaError.prototype.code=0,MediaError.prototype.message=``,MediaError.prototype.status=null,MediaError.prototype.metadata=null,MediaError.errorTypes=[`MEDIA_ERR_CUSTOM`,`MEDIA_ERR_ABORTED`,`MEDIA_ERR_NETWORK`,`MEDIA_ERR_DECODE`,`MEDIA_ERR_SRC_NOT_SUPPORTED`,`MEDIA_ERR_ENCRYPTED`],MediaError.defaultMessages={1:`You aborted the media playback`,2:`A network error caused the media download to fail part-way.`,3:`The media playback was aborted due to a corruption problem or because the media used features your browser did not support.`,4:`The media could not be loaded, either because the server or network failed or because the format is not supported.`,5:`The media is encrypted and we do not have the keys to decrypt it.`},MediaError.MEDIA_ERR_CUSTOM=0,MediaError.prototype.MEDIA_ERR_CUSTOM=0,MediaError.MEDIA_ERR_ABORTED=1,MediaError.prototype.MEDIA_ERR_ABORTED=1,MediaError.MEDIA_ERR_NETWORK=2,MediaError.prototype.MEDIA_ERR_NETWORK=2,MediaError.MEDIA_ERR_DECODE=3,MediaError.prototype.MEDIA_ERR_DECODE=3,MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED=4,MediaError.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,MediaError.MEDIA_ERR_ENCRYPTED=5,MediaError.prototype.MEDIA_ERR_ENCRYPTED=5,trackToJson=function(e){return[`kind`,`label`,`language`,`id`,`inBandMetadataTrackDispatchType`,`mode`,`src`].reduce((t,$,ed)=>(e[$]&&(t[$]=e[$]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},textTracksToJson=function(e){let t=e.$$(`track`),$=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){let t=trackToJson(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return $.indexOf(e)===-1}).map(trackToJson))},jsonToTextTracks=function(e,t){return e.forEach(function(e){let $=t.addRemoteTextTrack(e).track;
85!e.src&&e.cues&&e.cues.forEach(e=>$.addCue(e))}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson},MODAL_CLASS_NAME=`vjs-modal-dialog`,ModalDialog=class extends Component$1$1{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=createEl(`div`,{className:`${MODAL_CLASS_NAME}-content`},{role:`document`}),this.descEl_=createEl(`p`,{className:`${MODAL_CLASS_NAME}-description vjs-control-text`,id:this.el().getAttribute(`aria-describedby`)}),textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl(`div`,{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":`true`,"aria-label":this.label(),role:`dialog`,"aria-live":`polite`})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${MODAL_CLASS_NAME} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||`Modal Window`)}description(){let e=this.options_.description||this.localize(`This is a modal window.`);return this.closeable()&&(e+=` `+this.localize(`This modal can be closed by pressing the Escape key or activating the close button.`)),e}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}let e=this.player();this.trigger(`beforemodalopen`),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on(`keydown`,this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute(`aria-hidden`,`false`),this.trigger(`modalopen`),this.hasBeenOpened_=!0}opened(e){return typeof e==`boolean`&&this[e?`open`:`close`](),this.opened_}close(){if(!this.opened_)return;let e=this.player();this.trigger(`beforemodalclose`),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off(`keydown`,this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute(`aria-hidden`,`true`),this.trigger({type:`modalclose`,bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e==`boolean`){let t=this.closeable_=!!e,$=this.getChild(`closeButton`);if(t&&!$){let e=this.contentEl_;this.contentEl_=this.el_,$=this.addChild(`closeButton`,{controlText:`Close Modal Dialog`}),this.contentEl_=e,this.on($,`close`,this.close_)}!t&&$&&(this.off($,`close`,this.close_),this.removeChild($),$.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){let t=this.contentEl(),$=t.parentNode,ed=t.nextSibling;this.trigger(`beforemodalfill`),this.hasBeenFilled_=!0,$.removeChild(t),this.empty(),insertContent(t,e),this.trigger(`modalfill`),ed?$.insertBefore(t,ed):$.appendChild(t);let td=this.getChild(`closeButton`);td&&$.appendChild(td.el_),this.trigger(`aftermodalfill`)}empty(){this.trigger(`beforemodalempty`),emptyEl(this.contentEl()),this.trigger(`modalempty`)}content(e){return e!==void 0&&(this.content_=e),this.content_}conditionalFocus_(){let e=import_document.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&=(this.previouslyActiveEl_.focus(),null)}handleKeyDown(e){if(this.trigger({type:`modalKeydown`,originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),e.key===`Escape`&&this.closeable()){e.preventDefault(),this.close();return}if(e.key!==`Tab`)return;let t=this.focusableEls_(),$=this.el_.querySelector(`:focus`),ed;for(let e=0;e<t.length;e++)if($===t[e]){ed=e;break}import_document.default.activeElement===this.el_&&(ed=0),e.shiftKey&&ed===0?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&ed===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){let e=this.el_.querySelectorAll(`*`);return Array.prototype.filter.call(e,e=>(e instanceof import_window.default.HTMLAnchorElement||e instanceof import_window.default.HTMLAreaElement)&&e.hasAttribute(`href`)||(e instanceof import_window.default.HTMLInputElement||e instanceof import_window.default.HTMLSelectElement||e instanceof import_window.default.HTMLTextAreaElement||e instanceof import_window.default.HTMLButtonElement)&&!e.hasAttribute(`disabled`)||e instanceof import_window.default.HTMLIFrameElement||e instanceof import_window.default.HTMLObjectElement||e instanceof import_window.default.HTMLEmbedElement||e.hasAttribute(`tabindex`)&&e.getAttribute(`tabindex`)!==-1||e.hasAttribute(`contenteditable`))}}
85,ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component$1$1.registerComponent(`ModalDialog`,ModalDialog),TrackList=class extends EventTarget$2{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,`length`,{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){let t=this.tracks_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:`addtrack`,target:this})),e.labelchange_=()=>{this.trigger({track:e,type:`labelchange`,target:this})},isEvented(e)&&e.addEventListener(`labelchange`,e.labelchange_)}removeTrack(e){let t;for(let $=0,ed=this.length;$<ed;$++)if(this[$]===e){t=this[$],t.off&&t.off(),this.tracks_.splice($,1);break}t&&this.trigger({track:t,type:`removetrack`,target:this})}getTrackById(e){let t=null;for(let $=0,ed=this.length;$<ed;$++){let ed=this[$];if(ed.id===e){t=ed;break}}return t}},TrackList.prototype.allowedEvents_={change:`change`,addtrack:`addtrack`,removetrack:`removetrack`,labelchange:`labelchange`};for(let e in TrackList.prototype.allowedEvents_)TrackList.prototype[`on`+e]=null;if(disableOthers$1=function(e,t){for(let $=0;$<e.length;$++)!Object.keys(e[$]).length||t.id===e[$].id||(e[$].enabled=!1)},AudioTrackList=class extends TrackList{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){disableOthers$1(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&disableOthers$1(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,disableOthers$1(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`enabledchange`,e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener(`enabledchange`,e.enabledChange_),e.enabledChange_=null)}},disableOthers=function(e,t){for(let $=0;$<e.length;$++)!Object.keys(e[$]).length||t.id===e[$].id||(e[$].selected=!1)},VideoTrackList=class extends TrackList{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){disableOthers(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,`selectedIndex`,{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&disableOthers(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,disableOthers(this,e),this.changing_=!1,this.trigger(`change`))},e.addEventListener(`selectedchange`,e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener(`selectedchange`,e.selectedChange_),e.selectedChange_=null)}},TextTrackList=class extends TrackList{addTrack(e){super.addTrack(e),this.queueChange_||=()=>this.queueTrigger(`change`),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger(`selectedlanguagechange`)),e.addEventListener(`modechange`,this.queueChange_),[`metadata`,`chapters`].indexOf(e.kind)===-1&&e.addEventListener(`modechange`,this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener(`modechange`,this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener(`modechange`,this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}},HtmlTrackElementList=class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,`length`,{get(){return this.trackElements_.length}});for(let t=0,$=e.length;t<$;t++)this.addTrackElement_(e[t])}addTrackElement_(e){let t=this.trackElements_.length;``+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let $=0,ed=this.trackElements_.length;$<ed;$++)if(e===this.trackElements_[$].track){t=this.trackElements_[$];break}return t}removeTrackElement_(e){for(let t=0,$=this.trackElements_.length;t<$;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&typeof this.trackElements_[t].track.off==`function`&&this.trackElements_[t].track.off(),typeof this.trackElements_[t].off==`function`&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TextTrackCueList=class e{constructor(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,`length`,{get(){return this.length_}})}setCues_(e){let t=this.length||0,$=0,ed=e.length;this.cues_=e,this.length_=e.length;let td=function(e){``+e in this||Object.defineProperty(this,``+e,{get(){return this.cues_[e]}})};if(t<ed)for($=t;$<ed;$++)td.call(this,$)}getCueById(e){let t=null;for(let $=0,ed=this.length;$<ed;$++){let ed=this[$];if(ed.id===e){t=ed;break}}return t}},VideoTrackKind={alternative:`alternative`,captions:`captions`,main:`main`,sign:`sign`,subt
85itles:`subtitles`,commentary:`commentary`},AudioTrackKind={alternative:`alternative`,descriptions:`descriptions`,main:`main`,"main-desc":`main-desc`,translation:`translation`,commentary:`commentary`},TextTrackKind={subtitles:`subtitles`,captions:`captions`,descriptions:`descriptions`,chapters:`chapters`,metadata:`metadata`},TextTrackMode={disabled:`disabled`,hidden:`hidden`,showing:`showing`},Track=class extends EventTarget$2{constructor(e={}){super();let t={id:e.id||`vjs_track_`+newGUID(),kind:e.kind||``,language:e.language||``},$=e.label||``;for(let e in t)Object.defineProperty(this,e,{get(){return t[e]},set(){}});Object.defineProperty(this,`label`,{get(){return $},set(e){e!==$&&($=e,this.trigger(`labelchange`))}})}},parseUrl=function(e){return new URL(e,import_document.default.baseURI)},getAbsoluteURL=function(e){return new URL(e,import_document.default.baseURI).href},getFileExtension=function(e){if(typeof e==`string`){let t=e.split(`?`)[0].replace(/\/+$/,``).match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():``}return``},isCrossOrigin=function(e,t=import_window.default.location){return parseUrl(e).origin!==t.origin},Url=Object.freeze({__proto__:null,parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),parseCues=function(e,t){let $=new import_window.default.WebVTT.Parser(import_window.default,import_window.default.vttjs,import_window.default.WebVTT.StringDecoder()),ed=[];$.oncue=function(e){t.addCue(e)},$.onparsingerror=function(e){ed.push(e)},$.onflush=function(){t.trigger({type:`loadeddata`,target:t})},$.parse(e),ed.length>0&&(import_window.default.console&&import_window.default.console.groupCollapsed&&import_window.default.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),ed.forEach(e=>log$1.error(e)),import_window.default.console&&import_window.default.console.groupEnd&&import_window.default.console.groupEnd()),$.flush()},loadTrack=function(e,t){let $={uri:e},ed=isCrossOrigin(e);ed&&($.cors=ed);let td=t.tech_.crossOrigin()===`use-credentials`;td&&($.withCredentials=td),(0,import_lib$5.default)($,bind_(this,function(e,$,ed){if(e)return log$1.error(e,$);t.loaded_=!0,typeof import_window.default.WebVTT==`function`?parseCues(ed,t):t.tech_&&t.tech_.any([`vttjsloaded`,`vttjserror`],e=>{if(e.type===`vttjserror`){log$1.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return parseCues(ed,t)})}))},TextTrack=class extends Track{constructor(e={}){if(!e.tech)throw Error(`A tech was not provided.`);let t=merge$1(e,{kind:TextTrackKind[e.kind]||`subtitles`,language:e.language||e.srclang||``}),$=TextTrackMode[t.mode]||`disabled`,ed=t.default;(t.kind===`metadata`||t.kind===`chapters`)&&($=`hidden`),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;let td=new TextTrackCueList(this.cues_),nd=new TextTrackCueList(this.activeCues_),rd=!1;this.timeupdateHandler=bind_(this,function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,rd&&=(this.trigger(`cuechange`),!1),e.type!==`timeupdate`&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),this.tech_.one(`dispose`,()=>{this.stopTracking()}),$!==`disabled`&&this.startTracking(),Object.defineProperties(this,{default:{get(){return ed},set(){}},mode:{get(){return $},set(e){TextTrackMode[e]&&$!==e&&($=e,!this.preload_&&$!==`disabled`&&this.cues.length===0&&loadTrack(this.src,this),this.stopTracking(),$!==`disabled`&&this.startTracking(),this.trigger(`modechange`))}},cues:{get(){return this.loaded_?td:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return nd;let e=this.tech_.currentTime(),t=[];for(let $=0,ed=this.cues.length;$<ed;$++){let ed=this.cues[$];ed.startTime<=e&&ed.endTime>=e&&t.push(ed)}if(rd=!1,t.length!==this.activeCues_.length)rd=!0;else for(let e=0;e<t.length;e++)this.activeCues_.indexOf(t[e])===-1&&(rd=!0);return this.activeCues_=t,nd.setCues_(this.activeCues_),nd},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||t.kind!==`subtitles`&&t.kind!==`captions`)&&loadTrack(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on(`timeupdate`,this.timeupdateHandler)}stopTracking(){this.rvf_&&=(this.tech_.cancelVideoFrameCallback(this.rvf_),void 0),this.tech_.off(`timeupdate`,this.timeupdateHandler)}addCue(e){let t=e;if(!(`getCueAsHTML`in t)){t=new import_window.default.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(let $ in e)$ in t||(t[$]=e[$]);t.id=e.id,t.originalCue_=e}let $=this.tech_.textTracks();for(let e=0;e<$.length;e++)$[e]!==this&&$[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return textTrackConverter.trackToJson(this)}removeCue(e){let t=this.cues_.length;for(;t--;){let $=this.cues_[t];if($===e||$.originalCue_&&$.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}},TextTrack.prototype.allowedEvents_={cuechange:`cuechange`},AudioTrack=class extends Track{constructor(e={}){let t=merge$1(e,{kind:AudioTrackKind[e.kind]||``});super(t);let $=!1;Object.defineProperty(this,`enabled`,{get(){return $},set(e){typeof e!=`boolean`||e===$||($=e,this.trigger(`enabledchange`))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}},VideoTrack=class extends Track{constructor(e={}){let t=merge$1(e,{kind:VideoTrackKind[e.kind]||``});super(t);let $=!1;Object.defineProperty(this,`selected`,{get(){return $},set(e){typeof e!=`boolean`||e===$||($=e,this.trigger(`selectedchange`))}}),t.selected&&(this.selected=t.selected)}}
85,HTMLTrackElement=class e extends EventTarget$2{constructor(t={}){super();let $,ed=new TextTrack(t);this.kind=ed.kind,this.src=ed.src,this.srclang=ed.language,this.label=ed.label,this.default=ed.default,Object.defineProperties(this,{readyState:{get(){return $}},track:{get(){return ed}}}),$=e.NONE,ed.addEventListener(`loadeddata`,()=>{$=e.LOADED,this.trigger({type:`load`,target:this})})}},HTMLTrackElement.prototype.allowedEvents_={load:`load`},HTMLTrackElement.NONE=0,HTMLTrackElement.LOADING=1,HTMLTrackElement.LOADED=2,HTMLTrackElement.ERROR=3,NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:`Audio`},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:`Video`},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:`Text`}},Object.keys(NORMAL).forEach(function(e){NORMAL[e].getterName=`${e}Tracks`,NORMAL[e].privateName=`${e}Tracks_`}),REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:`RemoteText`,getterName:`remoteTextTracks`,privateName:`remoteTextTracks_`},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:`RemoteTextTrackEls`,getterName:`remoteTextTrackEls`,privateName:`remoteTextTrackEls_`}},ALL=Object.assign({},NORMAL,REMOTE),REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names,NORMAL.names),Tech=class e extends Component$1$1{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on(`playing`,function(){this.hasStarted_=!0}),this.on(`loadstart`,function(){this.hasStarted_=!1}),ALL.names.forEach(t=>{let $=ALL[t];e&&e[$.getterName]&&(this[$.privateName]=e[$.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),[`Text`,`Audio`,`Video`].forEach(t=>{e[`native${t}Tracks`]===!1&&(this[`featuresNative${t}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new ALL.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||`Unknown Tech`)}triggerSourceset(e){this.isReady_||this.one(`ready`,()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:`sourceset`})}manualProgressOn(){this.on(`durationchange`,this.onDurationChange_),this.manualProgress=!0,this.one(`ready`,this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off(`durationchange`,this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind_(this,function(){let e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger(`progress`),this.bufferedPercent_=e,e===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return createTimeRanges$1(0,0)}bufferedPercent(){return bufferedPercent(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on(`play`,this.trackCurrentTime_),this.on(`pause`,this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off(`play`,this.trackCurrentTime_),this.off(`pause`,this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
85clearTracks(e){e=[].concat(e),e.forEach(e=>{let t=this[`${e}Tracks`]()||[],$=t.length;for(;$--;){let ed=t[$];e===`text`&&this.removeRemoteTextTrack(ed),t.removeTrack(ed)}})}cleanupAutoTextTracks(){let e=this.autoRemoteTextTracks_||[],t=e.length;for(;t--;){let $=e[t];this.removeRemoteTextTrack($)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new MediaError(e),this.trigger(`error`)),this.error_}played(){return this.hasStarted_?createTimeRanges$1(0,0):createTimeRanges$1()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}initTrackListeners(){NORMAL.names.forEach(e=>{let t=NORMAL[e],$=()=>{this.trigger(`${e}trackchange`)},ed=this[t.getterName]();ed.addEventListener(`removetrack`,$),ed.addEventListener(`addtrack`,$),this.on(`dispose`,()=>{ed.removeEventListener(`removetrack`,$),ed.removeEventListener(`addtrack`,$)})})}addWebVttScript_(){if(!import_window.default.WebVTT)if(import_document.default.body.contains(this.el())){if(!this.options_[`vtt.js`]&&isPlain(import_browser_index.default)&&Object.keys(import_browser_index.default).length>0){this.trigger(`vttjsloaded`);return}let e=import_document.default.createElement(`script`);e.src=this.options_[`vtt.js`]||`https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js`,e.onload=()=>{this.trigger(`vttjsloaded`)},e.onerror=()=>{this.trigger(`vttjserror`)},this.on(`dispose`,()=>{e.onload=null,e.onerror=null}),import_window.default.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){let e=this.textTracks(),t=this.remoteTextTracks(),$=t=>e.addTrack(t.track),ed=t=>e.removeTrack(t.track);t.on(`addtrack`,$),t.on(`removetrack`,ed),this.addWebVttScript_();let td=()=>this.trigger(`texttrackchange`),nd=()=>{td();for(let t=0;t<e.length;t++){let $=e[t];$.removeEventListener(`cuechange`,td),$.mode===`showing`&&$.addEventListener(`cuechange`,td)}};nd(),e.addEventListener(`change`,nd),e.addEventListener(`addtrack`,nd),e.addEventListener(`removetrack`,nd),this.on(`dispose`,function(){t.off(`addtrack`,$),t.off(`removetrack`,ed),e.removeEventListener(`change`,nd),e.removeEventListener(`addtrack`,nd),e.removeEventListener(`removetrack`,nd);for(let t=0;t<e.length;t++)e[t].removeEventListener(`cuechange`,td)})}addTextTrack(e,t,$){if(!e)throw Error(`TextTrack kind is required but was not provided`);return createTrackHelper(this,e,t,$)}createRemoteTextTrack(e){let t=merge$1(e,{tech:this});return new REMOTE.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){let $=this.createRemoteTextTrack(e);return typeof t!=`boolean`&&(t=!1),this.remoteTextTrackEls().addTrackElement_($),this.remoteTextTracks().addTrack($.track),t===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack($.track)),$}removeRemoteTextTrack(e){let t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){let t=newGUID();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one(`playing`,()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return``}static canPlayType(e){return``}static canPlaySource(t,$){return e.canPlayType(t.type)}static isTech(t){return t.prototype instanceof e||t instanceof e||t===e}static registerTech(t,$){if(e.techs_||={},!e.isTech($))throw Error(`Tech ${t} must be a Tech`);if(!e.canPlayType)throw Error(`Techs must have a static canPlayType method on them`);if(!e.canPlaySource)throw Error(`Techs must have a static canPlaySource method on them`);return t=toTitleCase$1(t),e.techs_[t]=$,e.techs_[toLowerCase(t)]=$,t!==`Tech`&&e.defaultTechOrder_.push(t),$}static getTech(t){if(t){if(e.techs_&&e.techs_[t])return e.techs_[t];if(t=toTitleCase$1(t),import_window.default&&import_window.default.videojs&&import_window.default.videojs[t])return log$1.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),import_window.default.videojs[t]}}}
85,ALL.names.forEach(function(e){let t=ALL[e];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresSourceset=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.prototype.featuresVideoFrameCallback=!1,Tech.withSourceHandlers=function(e){e.registerSourceHandler=function(t,$){let ed=e.sourceHandlers;ed||=e.sourceHandlers=[],$===void 0&&($=ed.length),ed.splice($,0,t)},e.canPlayType=function(t){let $=e.sourceHandlers||[],ed;for(let e=0;e<$.length;e++)if(ed=$[e].canPlayType(t),ed)return ed;return``},e.selectSourceHandler=function(t,$){let ed=e.sourceHandlers||[],td;for(let e=0;e<ed.length;e++)if(td=ed[e].canHandleSource(t,$),td)return ed[e];return null},e.canPlaySource=function(t,$){let ed=e.selectSourceHandler(t,$);return ed?ed.canHandleSource(t,$):``},[`seekable`,`seeking`,`duration`].forEach(function(e){let t=this[e];typeof t==`function`&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){let $=e.selectSourceHandler(t,this.options_);$||(e.nativeSourceHandler?$=e.nativeSourceHandler:log$1.error(`No source handler found for the current source.`)),this.disposeSourceHandler(),this.off(`dispose`,this.disposeSourceHandler_),$!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=$.handleSource(t,this,this.options_),this.one(`dispose`,this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&=(this.clearTracks([`audio`,`video`]),null),this.cleanupAutoTextTracks(),this.sourceHandler_&&=(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),null)}},Component$1$1.registerComponent(`Tech`,Tech),Tech.registerTech(`Tech`,Tech),Tech.defaultTechOrder_=[],middlewares={},middlewareInstances={},TERMINATOR={},allowedGetters={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},allowedSetters={setCurrentTime:1,setMuted:1,setVolume:1},allowedMediators={play:1,pause:1},MimetypesKind={opus:`video/ogg`,ogv:`video/ogg`,mp4:`video/mp4`,mov:`video/mp4`,m4v:`video/mp4`,mkv:`video/x-matroska`,m4a:`audio/mp4`,mp3:`audio/mpeg`,aac:`audio/aac`,caf:`audio/x-caf`,flac:`audio/flac`,oga:`audio/ogg`,wav:`audio/wav`,m3u8:`application/x-mpegURL`,mpd:`application/dash+xml`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,png:`image/png`,svg:`image/svg+xml`,webp:`image/webp`},getMimetype=function(e=``){return MimetypesKind[getFileExtension(e).toLowerCase()]||``},findMimetype=(e,t)=>{if(!t)return``;if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;let $=e.cache_.sources.filter(e=>e.src===t);if($.length)return $[0].type;let ed=e.$$(`source`);for(let e=0;e<ed.length;e++){let $=ed[e];if($.type&&$.src&&$.src===t)return $.type}return getMimetype(t)},filterSource=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=filterSource(e),Array.isArray(e)?t=t.concat(e):isObject$2(e)&&t.push(e)}),e=t}else e=typeof e==`string`&&e.trim()?[fixSource({src:e})]:isObject$2(e)&&typeof e.src==`string`&&e.src&&e.src.trim()?[fixSource(e)]:[];return e},icons=`<svg xmlns="http://www.w3.org/2000/svg"> 86 <defs> 87 <symbol viewBox="0 0 48 48" id="vjs-icon-play"> 88 <path d="M16 10v28l22-14z"></path> 89 </symbol> 90 <symbol viewBox="0 0 48 48" id="vjs-icon-pause"> 91 <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path> 92 </symbol> 93 <symbol viewBox="0 0 48 48" id="vjs-icon-audio"> 94 <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path> 95 </symbol> 96 <symbol viewBox="0 0 48 48" id="vjs-icon-captions"> 97 <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path> 98 </symbol> 99 <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles"> 100 <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path> 101 </symbol> 102 <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter"> 103 <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path> 104 </symbol> 105 <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit"> 106 <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path> 107 </symbol> 108 <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle"> 109 <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path> 110 </symbol> 111 <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute"> 112 <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path> 113 </symbol> 114 <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low"> 115 <path d="M14 18v12h8l10 10V8L22 18h-8z"></path> 116 </symbol> 117 <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium"> 118 <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path> 119 </symbol> 120 <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
121 <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path> 122 </symbol> 123 <symbol viewBox="0 0 48 48" id="vjs-icon-spinner"> 124 <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path> 125 </symbol> 126 <symbol viewBox="0 0 24 24" id="vjs-icon-hd"> 127 <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path> 128 </symbol> 129 <symbol viewBox="0 0 48 48" id="vjs-icon-chapters"> 130 <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path> 131 </symbol> 132 <symbol viewBox="0 0 40 40" id="vjs-icon-downloading"> 133 <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path> 134 </symbol> 135 <symbol viewBox="0 0 48 48" id="vjs-icon-file-download"> 136 <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path> 137 </symbol> 138 <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done"> 139 <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path> 140 </symbol> 141 <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off"> 142 <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path> 143 </symbol> 144 <symbol viewBox="0 0 48 48" id="vjs-icon-share"> 145 <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path> 146 </symbol> 147 <symbol viewBox="0 0 48 48" id="vjs-icon-cog"> 148 <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path> 149 </symbol> 150 <symbol viewBox="0 0 48 48" id="vjs-icon-square"> 151 <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path> 152 </symbol> 153 <symbol viewBox="0 0 48 48" id="vjs-icon-circle"> 154 <circle cx="24" cy="24" r="20"></circle> 155 </symbol> 156 <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline"> 157 <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path> 158 </symbol> 159 <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle"> 160 <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path> 161 </symbol> 162 <symbol viewBox="0 0 48 48" id="vjs-icon-cancel"> 163 <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path> 164 </symbol> 165 <symbol viewBox="0 0 48 48" id="vjs-icon-replay"> 166 <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-
1667.16 16-16-7.16-16-16-16z"></path> 167 </symbol> 168 <symbol viewBox="0 0 48 48" id="vjs-icon-repeat"> 169 <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path> 170 </symbol> 171 <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5"> 172 <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path> 173 </symbol> 174 <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10"> 175 <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path> 176 </symbol> 177 <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30"> 178 <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path> 179 </symbol> 180 <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5"> 181 <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path> 182 </symbol> 183 <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10"> 184 <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path> 185 </symbol> 186 <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30"> 187 <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path> 188 </symbol> 189 <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description"> 190 <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g> 191 </symbol> 192 <symbol viewBox="0 0 48 48" id="vjs-icon-next-item"> 193 <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path> 194 </symbol> 195 <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item"> 196 <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path> 197 </symbol>
198 <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle"> 199 <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path> 200 </symbol> 201 <symbol viewBox="0 0 48 48" id="vjs-icon-cast"> 202 <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path> 203 </symbol> 204 <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter"> 205 <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path> 206 </symbol> 207 <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit"> 208 <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path> 209 <path fill="none" d="M-1-3h24v24H-1z"></path> 210 </symbol> 211 <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook"> 212 <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path> 213 </symbol> 214 <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin"> 215 <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path> 216 </symbol> 217 <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter"> 218 <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/> 219 </symbol> 220 <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr"> 221 <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path> 222 </symbol> 223 <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest"> 224 <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path> 225 </symbol> 226 </defs> 227</svg>`,backKeyCode=IS_TIZEN?10009:IS_WEBOS?461:8,SpatialNavKeyCodes={codes:{play:415,pause:19,ff:417,rw:412,back:backKeyCode},names:{415:`play`,19:`pause`,417:`ff`,412:`rw`,[backKeyCode]:`back`},isEventKey(e,t){return t=t.toLowerCase(),!!(this.names[e.keyCode]&&this.names[e.keyCode]===t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){let t=this.codes[e.code];return this.names[t]}return null}},STEP_SECONDS=5,SpatialNavigation=class extends EventTarget$2{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on(`keydown`,this.onKeyDown_),this.player_.on(`modalKeydown`,this.onKeyDown_),this.player_.on(`loadedmetadata`,()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on(`modalclose`,()=>{this.refocusComponent()}),this.player_.on(`focusin`,this.handlePlayerFocus_.bind(this)),this.player_.on(`focusout`,this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on(`aftermodalfill`,()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off(`keydown`,this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){let t=e.originalEvent?e.originalEvent:e;if([`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`].includes(t.key)){if(this.isPaused_)return;t.preventDefault();let e=t.key.substring(5).toLowerCase();this.move(e)}
227else if(SpatialNavKeyCodes.isEventKey(t,`play`)||SpatialNavKeyCodes.isEventKey(t,`pause`)||SpatialNavKeyCodes.isEventKey(t,`ff`)||SpatialNavKeyCodes.isEventKey(t,`rw`)){t.preventDefault();let e=SpatialNavKeyCodes.getEventName(t);this.performMediaAction_(e)}else SpatialNavKeyCodes.isEventKey(t,`Back`)&&e.target&&typeof e.target.closeable==`function`&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case`play`:this.player_.paused()&&this.player_.play();break;case`pause`:this.player_.paused()||this.player_.pause();break;case`ff`:this.userSeek_(this.player_.currentTime()+STEP_SECONDS);break;case`rw`:this.userSeek_(this.player_.currentTime()-STEP_SECONDS);break}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){let t=e.relatedTarget,$=null,ed=this.getCurrentComponent(e.target);t&&($=!!t.closest(`.video-js`),t.classList.contains(`vjs-text-track-settings`)&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!$||!t)&&(ed&&ed.name()===`CloseButton`?this.refocusComponent():(this.pause(),ed&&ed.el()&&(this.lastFocusedComponent_=ed)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){let e=this.player_,t=[];function $(e){for(let ed of e)ed.hasOwnProperty(`el_`)&&ed.getIsFocusable()&&ed.getIsAvailableToBeFocused(ed.el())&&t.pu
227sh(ed),ed.hasOwnProperty(`children_`)&&ed.children_.length>0&&$(ed.children_)}return e.children_.forEach(e=>{if(e.hasOwnProperty(`el_`))if(e.getIsFocusable&&e.getIsAvailableToBeFocused&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())){t.push(e);return}else e.hasOwnProperty(`children_`)&&e.children_.length>0?$(e.children_):e.hasOwnProperty(`items`)&&e.items.length>0?$(e.items):this.findSuitableDOMChild(e)&&t.push(e);if(e.name_===`ErrorDisplay`&&e.opened_){let $=e.el_.querySelector(`.vjs-errors-ok-button-container`);$&&$.querySelectorAll(`button`).forEach((e,$)=>{t.push({name:()=>`ModalButton`+($+1),el:()=>e,getPositions:()=>{let t=e.getBoundingClientRect();return{boundingClientRect:{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},center:{x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:e=>!0,focus:()=>e.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){function t($){if(e.getIsFocusable($)&&e.getIsAvailableToBeFocused($))return $;for(let e=0;e<$.children.length;e++){let ed=$.children[e],td=t(ed);if(td)return td}return null}return e.el()?t(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();let t=e||document.activeElement;if(this.focusableComponents.length){for(let e of this.focusableComponents)if(e.el()===t)return e}}add(e){let t=[...this.focusableComponents];e.hasOwnProperty(`el_`)&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:`focusableComponentsChanged`,focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name()){this.focusableComponents.splice(t,1),this.trigger({type:`focusableComponentsChanged`,focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:`focusableComponentsChanged`,focusableComponents:this.focusableComponents}))}move(e){let t=this.getCurrentComponent();if(!t)return;let $=t.getPositions(),ed=this.focusableComponents.filter(ed=>ed!==t&&this.isInDirection_($.boundingClientRect,ed.getPositions().boundingClientRect,e)),td=this.findBestCandidate_($.center,ed,e);td?this.focus(td):this.trigger({type:`endOfFocusableComponents`,direction:e,focu
227sedComponent:t})}findBestCandidate_(e,t,$){let ed=1/0,td=null;for(let nd of t){let t=nd.getPositions().center,rd=this.calculateDistance_(e,t,$);rd<ed&&(ed=rd,td=nd)}return td}isInDirection_(e,t,$){switch($){case`right`:return t.left>=e.right;case`left`:return t.right<=e.left;case`down`:return t.top>=e.bottom;case`up`:return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name()){this.focus(this.focusableComponents[e]);return}}else this.focus(this.updateFocusableComponents()[0])}focus(e){typeof e==`object`&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,$){let ed=Math.abs(e.x-t.x),td=Math.abs(e.y-t.y),nd;switch($){case`right`:case`left`:nd=ed+td*100;break;case`up`:nd=td*2+ed*.5;break;case`down`:nd=td*5+ed;break;default:nd=ed+td}return nd}searchForTrackSelect_(){let e=this;for(let t of e.updateFocusableComponents())if(t.constructor.name===`TextTrackSelect`){e.focus(t);break}}},MediaLoader=class extends Component$1$1{constructor(e,t,$){let ed=merge$1({createEl:!1},t);if(super(e,ed,$),!t.playerOptions.sources||t.playerOptions.sources.length===0)for(let $=0,ed=t.playerOptions.techOrder;$<ed.length;$++){let t=toTitleCase$1(ed[$]),td=Tech.getTech(t);if(t||(td=Component$1$1.getComponent(t)),td&&td.isSupported()){e.loadTech_(t);break}}else e.src(t.playerOptions.sources)}},Component$1$1.registerComponent(`MediaLoader`,MediaLoader),ClickableComponent=class extends Component$1$1{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e=`div`,t={},$={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),e===`button`&&log$1.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),$=Object.assign({role:`button`},$),this.tabIndex_=t.tabIndex;let ed=createEl(e,t,$);return this.player_.options_.experimentalSvgIcons||ed.appendChild(createEl(`span`,{className:`vjs-icon-placeholder`},{"aria-hidden":!0})),this.createControlTextEl(ed),ed}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=createEl(`span`,{className:`vjs-control-text`},{"aria-live":`polite`}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(e===void 0)return this.controlText_||`Need Text`;let $=this.localize(e);this.controlText_=e,textContent(this.controlTextEl_,$),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&t.setAttribute(`title`,$)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass(`vjs-disabled`),this.el_.setAttribute(`aria-disabled`,`false`),this.tabIndex_!==void 0&&this.el_.setAttribute(`tabIndex`,this.tabIndex_),this.on([`tap`,`click`],this.handleClick_),this.on(`keydown`,this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass(`vjs-disabled`),this.el_.setAttribute(`aria-disabled`,`true`),this.tabIndex_!==void 0&&this.el_.removeAttribute(`tabIndex`),this.off(`mouseover`,this.handleMouseOver_),this.off(`mouseout`,this.handleMouseOut_),this.off([`tap`,`click`],this.handleClick_),this.off(`keydown`,this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){e.key===` `||e.key===`Enter`?(e.preventDefault(),e.stopPropagation(),this.trigger(`click`)):super.handleKeyDown(e)}},Component$1$1.registerComponent(`ClickableComponent`,ClickableComponent),PosterImage=class extends ClickableComponent{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on(`posterchange`,this.update_)}dispose(){this.player().off(`posterchange`,this.update_),super.dispose()}createEl(){return createEl(`div`,{className:`vjs-poster`})}crossOrigin(e){if(e===void 0)return this.$(`img`)?this.$(`img`).crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(e!==null&&e!==`anonymous`&&e!==`use-credentials`){this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`);return}this.$(`img`)&&(this.$(`img`).crossOrigin=e)}update(e){let t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent=``;return}this.$(`img`)||this.el_.appendChild(createEl(`picture`,{className:`vjs-poster`,tabIndex:-1},{},createEl(`img`,{loading:`lazy`,crossOrigin:this.crossOrigin()},{alt:``}))),this.$(`img`).src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause())}},PosterImage.prototype.crossorigin=PosterImage.prototype.crossOrigin,Component$1$1.registerComponent(`PosterImage`,PosterImage),darkGray=`#222`,lightGray=`#ccc`,fontMap={monospace:`monospace`,sansSerif:`sans-serif`,serif:`serif`,monospaceSansSerif:`"Andale Mono", "Lucida Console", monospace`,monospaceSerif:`"Courier New", monospace`,proportionalSansSerif:`sans-serif`,proportionalSerif:`serif`,casual:`"Comic Sans MS", Impact, fantasy`,script:`"Monotype Corsiva", cursive`,smallcaps:`"Andale Mono", "Lucida Console", monospace, sans-serif`},TextTrackDisplay=class extends Component$1$1{constructor(e,t,$){super(e,t,$);let ed=e=>this.updateDisplay(e),td=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on(`loadstart`,e=>this.toggleDisplay(e)),e.on(`useractive`,ed),e.on(`userinactive`,ed),e.on(`texttrackchange`,ed),e.on(`loadedmetadata`,e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(bind_(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on(`fullscreenchange`,td),e.on(`playerresize`,td);let t=import_window.default.screen.orientation||import_window.default,$=import_window.default.screen.orientation?`change`:`orientationchange`;t.addEventListener($,td),e.on(`dispose`,()=>t.removeEventListener($,td));let ed=this.options_.playerOptions.tracks||[];for(let e=0;e<ed.length;e++)this.player_.addRemoteTextTrack(ed[e],!0);this.preselectTrack()}))}preselectTrack(){let e={captions:1,subtitles:1},t=this.player_.textTracks(),$=this.player_.cache_.selectedLanguage,ed,td,nd;for(let rd=0;rd<t.length;rd++){let id=t[rd];$&&$.enabled&&$.language&&$.language===id.language&&id.kind in e?id.
227kind===$.kind?nd=id:nd||=id:$&&!$.enabled?(nd=null,ed=null,td=null):id.default&&(id.kind===`descriptions`&&!ed?ed=id:id.kind in e&&!td&&(td=id))}nd?nd.mode=`showing`:td?td.mode=`showing`:ed&&(ed.mode=`showing`)}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl(`div`,{className:`vjs-text-track-display`},{translate:`yes`,"aria-live":`off`,"aria-atomic":`true`})}clearDisplay(){typeof import_window.default.WebVTT==`function`&&import_window.default.WebVTT.processCues(import_window.default,[],this.el_)}updateDisplay(){let e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){let t=[];for(let $=0;$<e.length;++$){let ed=e[$];ed.mode===`showing`&&t.push(ed)}this.updateForTrack(t);return}let $=null,ed=null,td=e.length;for(;td--;){let t=e[td];t.mode===`showing`&&(t.kind===`descriptions`?$=t:ed=t)}if(ed?(this.getAttribute(`aria-live`)!==`off`&&this.setAttribute(`aria-live`,`off`),this.updateForTrack(ed)):$&&(this.getAttribute(`aria-live`)!==`assertive`&&this.setAttribute(`aria-live`,`assertive`),this.updateForTrack($)),!import_window.default.CSS.supports(`inset`,`10px`)){let e=this.el_,t=e.querySelectorAll(`.vjs-text-track-cue`),$=this.player_.controlBar.el_.getBoundingClientRect().height,ed=this.player_.el_.getBoundingClientRect().height;e.style=``,tryUpdateStyle(e,`position`,`relative`),tryUpdateStyle(e,`height`,ed-$+`px`),tryUpdateStyle(e,`top`,`unset`),IS_SMART_TV?tryUpdateStyle(e,`bottom`,ed+`px`):tryUpdateStyle(e,`bottom`,`0px`),t.length>0&&t.forEach(e=>{if(e.style.inset){let t=e.style.inset.split(` `);t.length===3&&Object.assign(e.style,{top:t[0],right:t[1],bottom:t[2],left:`unset`})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||!import_window.default.CSS.supports(`inset-inline: 10px`))return;let e=this.player_.currentWidth(),t=this.player_.currentHeight(),$=e/t,ed=this.player_.videoWidth()/this.player_.videoHeight(),td=0,nd=0;Math.abs($-ed)>.1&&($>ed?td=Math.round((e-t*ed)/2):nd=Math.round((t-e/ed)/2)),tryUpdateStyle(this.el_,`insetInline`,getCSSPositionValue(td)),tryUpdateStyle(this.el_,`insetBlock`,getCSSPositionValue(nd))}updateDisplayState(e){let t=this.player_.textTrackSettings.getValues(),$=e.activeCues,ed=$.length;for(;ed--;){let e=$[ed];if(!e)continue;let td=e.displayState;if(t.color&&(td.firstChild.style.color=t.color),t.textOpacity&&tryUpdateStyle(td.firstChild,`color`,constructColor(t.color||`#fff`,t.textOpacity)),t.backgroundColor&&(td.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&tryUpdateStyle(td.firstChild,`backgroundColor`,constructColor(t.backgroundColor||`#000`,t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?tryUpdateStyle(td,`backgroundColor`,constructColor(t.windowColor,t.windowOpacity)):td.style.backgroundColor=t.windowColor),t.edgeStyle&&(t.edgeStyle===`dropshadow`?td.firstChild.style.textShadow=`2px 2px 3px ${darkGray}, 2px 2px 4px ${darkGray}, 2px 2px 5px ${darkGray}`:t.edgeStyle===`raised`?td.firstChild.style.textShadow=`1px 1px ${darkGray}, 2px 2px ${darkGray}, 3px 3px ${darkGray}`:t.edgeStyle===`depressed`?td.firstChild.style.textShadow=`1px 1px ${lightGray}, 0 1px ${lightGray}, -1px -1px ${darkGray}, 0 -1px ${darkGray}`:t.edgeStyle===`uniform`&&(td.firstChild.style.textShadow=`0 0 4px ${darkGray}, 0 0 4px ${darkGray}, 0 0 4px ${darkGray}, 0 0 4px ${darkGray}`)),t.fontPercent&&t.fontPercent!==1){let e=import_window.default.parseFloat(td.style.fontSize);td.style.fontSize=e*t.fontPercent+`px`,td.style.height=`auto`,td.style.top=`auto`}t.fontFamily&&t.fontFamily!==`default`&&(t.fontFamily===`small-caps`?td.firstChild.style.fontVariant=`small-caps`:td.firstChild.style.fontFamily=fontMap[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof import_window.default.WebVTT!=`function`||e.every(e=>!e.activeCues))return;let t=[];for(let $=0;$<e.length;++$){let ed=e[$];for(let e=0;e<ed.activeCues.length;++e)t.push(ed.activeCues[e])}import_window.default.WebVTT.processCues(import_window.default,t,this.el_);for(let t=0;t<e.length;++t){let $=e[t];for(let e=0;e<$.activeCues.length;++e){let ed=$.activeCues[e].displayState;addClass(ed,`vjs-text-track-cue`,`vjs-text-track-cue-`+($.language?$.language:t)),$.language&&setAttribute(ed,`lang`,$.language)}this.player_.textTrackSettings&&this.updateDisplayState($)}}},Component$1$1.registerComponent(`TextTrackDisplay`,TextTrackDisplay),LoadingSpinner=class extends Component$1$1{createEl(){let e=this.player_.isAudio(),t=this.localize(e?`Audio Player`:`Video Player`),$=createEl(`span`,{className:`vjs-control-text`,textContent:this.localize(`{1} is loading.`,[t])}),ed=super.createEl(`div`,{className:`vjs-loading-spinner`,dir:`ltr`});return ed.appendChild($),ed}handleLanguagechange(){this.$(`.vjs-control-text`).textContent=this.localize(`{1} is loading.`,[this.player_.isAudio()?`Audio Player`:`Video Player`])}},Component$1$1.registerComponent(`LoadingSpinner`,LoadingSpinner),Button=class extends ClickableComponent{createEl(e,t={},$={}){e=`button`,t=Object.assign({className:this.buildCSSClass()},t),$=Object.assign({type:`button`},$);let ed=createEl(e,t,$);return this.player_.options_.experimentalSvgIcons||ed.appendChild(createEl(`span`,{className:`vjs-icon-placeholder`},{"aria-hidden":!0})),this.createControlTextEl(ed),ed}addChild(e,t={}){let $=this.constructor.name;return log$1.warn(`Adding an actionable (user controllable) child to a Button (${$}) is not supported; use a ClickableComponent instead.`),Component$1$1.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute(`disabled`)}disable(){super.disable(),this.el_.setAttribute(`disabled`,`disabled`)}handleKeyDown(e){if(e.key===` `||e.key===`Enter`){e.stopPropagation();return}super.handleKeyDown(e)}},Component$1$1.registerComponent(`Button`,Button),BigPlayButton=class extends Button{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon(`play`),this.on(`mousedown`,e=>this.handleMouseDown(e))}buildCSSClass(){return`vjs-big-play-button`}handleClick(e){let t=this.player_.play();
227if(e.type===`tap`||this.mouseused_&&`clientX`in e&&`clientY`in e){silencePromise(t),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}let $=this.player_.getChild(`controlBar`),ed=$&&$.getChild(`playToggle`);if(!ed){this.player_.tech(!0).focus();return}let td=()=>ed.focus();isPromise(t)?t.then(td,()=>{}):this.setTimeout(td,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}},BigPlayButton.prototype.controlText_=`Play Video`,Component$1$1.registerComponent(`BigPlayButton`,BigPlayButton),CloseButton=class extends Button{constructor(e,t){super(e,t),this.setIcon(`cancel`),this.controlText(t&&t.controlText||this.localize(`Close`))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:`close`,bubbles:!1})}handleKeyDown(e){e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),this.trigger(`click`)):super.handleKeyDown(e)}},Component$1$1.registerComponent(`CloseButton`,CloseButton),PlayToggle=class extends Button{constructor(e,t={}){super(e,t),t.replay=t.replay===void 0||t.replay,this.setIcon(`play`),this.on(e,`play`,e=>this.handlePlay(e)),this.on(e,`pause`,e=>this.handlePause(e)),t.replay&&this.on(e,`ended`,e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass(`vjs-ended`),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass(`vjs-ended`,`vjs-paused`),this.addClass(`vjs-playing`),this.setIcon(`pause`),this.controlText(`Pause`)}handlePause(e){this.removeClass(`vjs-playing`),this.addClass(`vjs-paused`),this.setIcon(`play`),this.controlText(`Play`)}handleEnded(e){this.removeClass(`vjs-playing`),this.addClass(`vjs-ended`),this.setIcon(`replay`),this.controlText(`Replay`),this.one(this.player_,`seeked`,e=>this.handleSeeked(e))}},PlayToggle.prototype.controlText_=`Play`,Component$1$1.registerComponent(`PlayToggle`,PlayToggle),TimeDisplay=class extends Component$1$1{constructor(e,t){super(e,t),this.on(e,[`timeupdate`,`ended`,`seeking`],e=>this.update(e)),this.updateTextNode_()}createEl(){let e=this.buildCSSClass(),t=super.createEl(`div`,{className:`${e} vjs-time-control vjs-control`}),$=createEl(`span`,{className:`vjs-control-text`,textContent:`${this.localize(this.labelText_)}\u00a0`},{role:`presentation`});return t.appendChild($),this.contentEl_=createEl(`span`,{className:`${e}-display`},{role:`presentation`}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&e.type===`seeking`||this.updateContent(e)}updateTextNode_(e=0){e=formatTime(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame(`TimeDisplay#updateTextNode_`,()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,log$1.warn(`TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.`)),this.textNode_=import_document.default.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}},TimeDisplay.prototype.labelText_=`Time`,TimeDisplay.prototype.controlText_=`Time`,Component$1$1.registerComponent(`TimeDisplay`,TimeDisplay),CurrentTimeDisplay=class extends TimeDisplay{buildCSSClass(){return`vjs-current-time`}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():e&&e.target&&typeof e.target.pendingSeekTime==`function`?e.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}},CurrentTimeDisplay.prototype.labelText_=`Current Time`,CurrentTimeDisplay.prototype.controlText_=`Current Time`,Component$1$1.registerComponent(`CurrentTimeDisplay`,CurrentTimeDisplay),DurationDisplay=class extends TimeDisplay{constructor(e,t){super(e,t);let $=e=>this.updateContent(e);this.on(e,`durationchange`,$),this.on(e,`loadstart`,$),this.on(e,`loadedmetadata`,$)}buildCSSClass(){return`vjs-duration`}updateContent(e){let t=this.player_.duration();this.updateTextNode_(t)}},DurationDisplay.prototype.labelText_=`Duration`,DurationDisplay.prototype.controlText_=`Duration`,Component$1$1.registerComponent(`DurationDisplay`,DurationDisplay),TimeDivider=class extends Component$1$1{createEl(){let e=super.createEl(`div`,{className:`vjs-time-control vjs-time-divider`},{"aria-hidden":!0}),t=super.createEl(`div`),$=super.createEl(`span`,{textContent:`/`});return t.appendChild($),e.appendChild(t),e}},Component$1$1.registerComponent(`TimeDivider`,TimeDivider),RemainingTimeDisplay=class extends TimeDisplay{constructor(e,t){super(e,t),this.on(e,`durationchange`,e=>this.updateContent(e))}buildCSSClass(){return`vjs-remaining-time`}createEl(){let e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(createEl(`span`,{},{"aria-hidden":!0},`-`),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!=`number`)return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}},RemainingTimeDisplay.prototype.labelText_=`Remaining Time`,RemainingTimeDisplay.prototype.controlText_=`Remaining Time`,Component$1$1.registerComponent(`RemainingTimeDisplay`,RemainingTimeDisplay),LiveDisplay=class extends Component$1$1{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),`durationchange`,e=>this.updateShowing(e))}createEl(){let e=super.createEl(`div`,{className:`vjs-live-control vjs-control`});return this.contentEl_=createEl(`div`,{className:`vjs-live-display`},{"aria-live":`off`}),this.contentEl_.appendChild(createEl(`span`,{className:`vjs-control-text`,textContent:`${this.localize(`Stream Type`)}\u00a0`})),this.contentEl_.appendChild(import_document.default.createTextNode(this.localize(`LIVE`))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}},Component$1$1.registerComponent(`LiveDisplay`,LiveDisplay),SeekToLive=class extends Button{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,`liveedgechange`,this.updateLiveEdgeStatusHandler_))}createEl(){let e=super.createEl(`button`,{className:`vjs-seek-to-live-control vjs-control`});return this.setIcon(`circle`,e),this.textEl_=createEl(`span`,{className:`vjs-seek-to-live-text`,textContent:this.localize(`LIVE`)},{"aria-hidden":`true`}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute(`aria-disabled`,!0),this.addClass(`vjs-at-live-edge`),this.controlText(`Seek to live, currently playing live`)):(this.setAttribute(`aria-disabled`,!1),this.removeClass(`vjs-at-live-edge`),this.controlText(`Seek to live, currently behind live`))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,`liveedgechange`,this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}},SeekToLive.prototype.controlText_=`Seek to live, currently playing live`,Component$1$1.registerComponent(`SeekToLive`,SeekToLive),Num=Object.freeze({__proto__:null,clamp}),Slider=class extends Component$1$1{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on(`mousedown`,this.handleMouseDown_),this.on(`touchstart`,this.handleMouseDown_),this.on(`keydown`,this.handleKeyDown_),this.on(`click`,this.handleClick_),this.on(this.player_,`controlsvisible`,this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass(`disabled`),this.setAttribute(`tabindex`,0),this.enabled_=!0)}disable(){if(!this.enabled())return;let e=this.bar.el_.ownerDocument;this.off(`mousedown`,this.handleMouseDown_),this.off(`touchstart`,this.handleMouseDown_),this.off(`ke
227ydown`,this.handleKeyDown_),this.off(`click`,this.handleClick_),this.off(this.player_,`controlsvisible`,this.update_),this.off(e,`mousemove`,this.handleMouseMove_),this.off(e,`mouseup`,this.handleMouseUp_),this.off(e,`touchmove`,this.handleMouseMove_),this.off(e,`touchend`,this.handleMouseUp_),this.removeAttribute(`tabindex`),this.addClass(`disabled`),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},$={}){return t.className+=` vjs-slider`,t=Object.assign({tabIndex:0},t),$=Object.assign({role:`slider`,"aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},$),super.createEl(e,t,$)}handleMouseDown(e){let t=this.bar.el_.ownerDocument;e.type===`mousedown`&&e.preventDefault(),e.type===`touchstart`&&!IS_CHROME&&e.preventDefault(),blockTextSelection(),this.addClass(`vjs-sliding`),this.trigger(`slideractive`),this.on(t,`mousemove`,this.handleMouseMove_),this.on(t,`mouseup`,this.handleMouseUp_),this.on(t,`touchmove`,this.handleMouseMove_),this.on(t,`touchend`,this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){let t=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass(`vjs-sliding`),this.trigger(`sliderinactive`),this.off(t,`mousemove`,this.handleMouseMove_),this.off(t,`mouseup`,this.handleMouseUp_),this.off(t,`touchmove`,this.handleMouseMove_),this.off(t,`touchend`,this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;let e=this.getProgress();return e===this.progress_?e:(this.progress_=e,this.requestNamedAnimationFrame(`Slider#update`,()=>{let t=this.vertical()?`height`:`width`;this.bar.el().style[t]=(e*100).toFixed(2)+`%`}),e)}getProgress(){return Number(clamp(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){let t=getPointerPosition(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){let t=this.options_.playerOptions.spatialNavigation,$=t&&t.enabled,ed=t&&t.horizontalSeek;$?ed&&e.key===`ArrowLeft`||!ed&&e.key===`ArrowDown`?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ed&&e.key===`ArrowRight`||!ed&&e.key===`ArrowUp`?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(this.pendingSeekTime()&&(this.pendingSeekTime(null),this.userSeek_(this.player_.currentTime())),super.handleKeyDown(e)):e.key===`ArrowLeft`||e.key===`ArrowDown`?(e.preventDefault(),e.stopPropagation(),this.stepBack()):e.key===`ArrowUp`||e.key===`ArrowRight`?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass(`vjs-slider-vertical`):this.addClass(`vjs-slider-horizontal`)}},Component$1$1.registerComponent(`Slider`,Slider),percentify=(e,t)=>
227clamp(e/t*100,0,100).toFixed(2)+`%`,LoadProgressBar=class extends Component$1$1{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,`progress`,e=>this.update(e))}createEl(){let e=super.createEl(`div`,{className:`vjs-load-progress`}),t=createEl(`span`,{className:`vjs-control-text`}),$=createEl(`span`,{textContent:this.localize(`Loaded`)}),ed=import_document.default.createTextNode(`: `);return this.percentageEl_=createEl(`span`,{className:`vjs-control-text-loaded-percentage`,textContent:`0%`}),e.appendChild(t),t.appendChild($),t.appendChild(ed),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame(`LoadProgressBar#update`,()=>{let e=this.player_.liveTracker,t=this.player_.buffered(),$=e&&e.isLive()?e.seekableEnd():this.player_.duration(),ed=this.player_.bufferedEnd(),td=this.partEls_,nd=percentify(ed,$);this.percent_!==nd&&(this.el_.style.width=nd,textContent(this.percentageEl_,nd),this.percent_=nd);for(let e=0;e<t.length;e++){let $=t.start(e),nd=t.end(e),rd=td[e];rd||(rd=this.el_.appendChild(createEl()),td[e]=rd),!(rd.dataset.start===$&&rd.dataset.end===nd)&&(rd.dataset.start=$,rd.dataset.end=nd,rd.style.left=percentify($,ed),rd.style.width=percentify(nd-$,ed))}for(let e=td.length;e>t.length;e--)this.el_.removeChild(td[e-1]);td.length=t.length})}},Component$1$1.registerComponent(`LoadProgressBar`,LoadProgressBar),TimeTooltip=class extends Component$1$1{constructor(e,t){super(e,t),this.update=throttle(bind_(this,this.update),UPDATE_REFRESH_INTERVAL)}createEl(){return super.createEl(`div`,{className:`vjs-time-tooltip`},{"aria-hidden":`true`})}update(e,t,$){let ed=findPosition(this.el_),td=getBoundingClientRect(this.player_.el()),nd=e.width*t;if(!td||!ed)return;let rd=e.left-td.left+nd,id=e.width-nd+(td.right-e.right);id||(id=e.width-nd,rd=nd);let ad=ed.width/2;rd<ad?ad+=ad-rd:id<ad&&(ad=id),ad<0?ad=0:ad>ed.width&&(ad=ed.width),ad=Math.round(ad),this.el_.style.right=`-${ad}px`,this.write($)}write(e){textContent(this.el_,e)}updateTime(e,t,$,ed){this.requestNamedAnimationFrame(`TimeTooltip#updateTime`,()=>{let td,nd=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){let e=this.player_.liveTracker.liveWindow(),$=e-t*e;td=($<1?``:`-`)+formatTime($,e)}else td=formatTime($,nd);this.update(e,t,td),ed&&ed()})}},Component$1$1.registerComponent(`TimeTooltip`,TimeTooltip),PlayProgressBar=class extends Component$1$1{constructor(e,t){super(e,t),this.setIcon(`circle`),this.update=throttle(bind_(this,this.update),UPDATE_REFRESH_INTERVAL)}createEl(){return super.createEl(`div`,{className:`vjs-play-progress vjs-slider-bar`},{"aria-hidden":`true`})}update(e,t,$){let ed=this.getChild(`timeTooltip`);if(!ed)return;let td=$&&$.target&&typeof $.target.pendingSeekTime==`function`?$.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();ed.updateTime(e,t,td)}},PlayProgressBar.prototype.options_={children:[]},!IS_IOS&&!IS_ANDROID&&PlayProgressBar.prototype.options_.children.push(`timeTooltip`),Component$1$1.registerComponent(`PlayProgressBar`,PlayProgressBar),MouseTimeDisplay=class extends Component$1$1{constructor(e,t){super(e,t),this.update=throttle(bind_(this,this.update),UPDATE_REFRESH_INTERVAL)}createEl(){return super.createEl(`div`,{className:`vjs-mouse-display`})}update(e,t){let $=t*this.player_.duration();this.getChild(`timeTooltip`).updateTime(e,t,$,()=>{this.el_.style.left=`${e.width*t}px`})}},MouseTimeDisplay.prototype.options_={children:[`timeTooltip`]},Component$1$1.registerComponent(`MouseTimeDisplay`,MouseTimeDisplay),SeekBar=class e extends Slider{constructor(t,$){$=merge$1(e.prototype.options_,$),$.children=[...$.children];let ed=t.options_.disableSeekWhileScrubbingOnMobile&&(IS_IOS||IS_ANDROID)||t.options_.disableSeekWhileScrubbingOnSTV;(!IS_IOS&&!IS_ANDROID||ed)&&$.children.splice(1,0,`mouseTimeDisplay`),super(t,$),this.shouldDisableSeekWhileScrubbing_=ed,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=bind_(this,this.update),this.update=throttle(this.update_,UPDATE_REFRESH_INTERVAL),this.on(this.player_,[`durationchange`,`timeupdate`],this.update),this.on(this.player_,[`ended`],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,`liveedgechange`,this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,[`playing`],this.enableIntervalHandler_),this.on(this.player_,[`ended`,`pause`,`waiting`],this.disableIntervalHandler_),`hidden`in import_document.default&&`visibilityState`in import_document.default&&this.on(import_document.default,`visibilitychange`,this.toggleVisibility_)}toggleVisibility_(e){import_document.default.visibilityState===`hidden`?(this.cancelNamedAnimationFrame(`SeekBar#update`),this.cancelNamedAnimationFrame(`Slider#update`),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||=this.setInterval(this.update,UPDATE_REFRESH_INTERVAL)}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&e.type!==`ended`||(this.updateInterval&&=(this.clearInterval(this.updateInterval),null))}createEl(){return super.createEl(`div`,{className:`vjs-progress-holder`},{"aria-label":this.localize(`Progress Bar`)})}update(e){if(import_document.default.visibilityState===`hidden`)return;
227let t=super.update();return this.requestNamedAnimationFrame(`SeekBar#update`,()=>{let $=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),ed=this.player_.liveTracker,td=this.player_.duration();ed&&ed.isLive()&&(td=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute(`aria-valuenow`,(t*100).toFixed(2)),this.percent_=t),(this.currentTime_!==$||this.duration_!==td)&&(this.el_.setAttribute(`aria-valuetext`,this.localize(`progress bar timing: currentTime={1} duration={2}`,[formatTime($,td),formatTime(td,td)],`{1} of {2}`)),this.currentTime_=$,this.duration_=td),this.bar&&this.bar.update(getBoundingClientRect(this.el()),this.getProgress(),e)}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}pendingSeekTime(e){if(e!==void 0)if(e!==null){let t=this.player_.duration();this.pendingSeekTime_=Math.max(0,Math.min(e,t))}else this.pendingSeekTime_=null;return this.pendingSeekTime_}getPercent(){if(this.pendingSeekTime()!==null)return this.pendingSeekTime()/this.player_.duration();let e=this.getCurrentTime_(),t,$=this.player_.liveTracker;return $&&$.isLive()?(t=(e-$.seekableStart())/$.liveWindow(),$.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){isSingleLeftClick(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbing_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!isSingleLeftClick(e)||isNaN(this.player_.duration()))return;!t&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let $,ed=this.calculateDistance(e),td=this.player_.liveTracker;if(!td||!td.isLive())$=ed*this.player_.duration(),$===this.player_.duration()&&($-=.1);else{if(ed>=.99){td.seekToLiveEdge();return}let e=td.seekableStart(),t=td.liveCurrentTime();if($=e+ed*td.liveWindow(),$>=t&&($=t),$<=e&&($=e+.1),$===1/0)return}this.shouldDisableSeekWhileScrubbing_?this.pendingSeekTime($):this.userSeek_($),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();let e=this.getChild(`mouseTimeDisplay`);e&&e.show()}disable(){super.disable();let e=this.getChild(`mouseTimeDisplay`);e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.pendingSeekTime()!==null&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0}),this.videoWasPlaying?silencePromise(this.player_.play()):this.update_()}handlePendingSeek_(e){this.player_.paused()||this.player_.pause();let t=this.pendingSeekTime()===null?this.player_.currentTime():this.pendingSeekTime();this.pendingSeekTime(t+e),this.player_.trigger({type:`timeupdate`,target:this,manuallyTriggered:!0})}stepForward(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(this.options().stepSeconds):this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(-this.options().stepSeconds):this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){this.pendingSeekTime()!==null&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){let t=this.player_.liveTracker;if(e.key===` `||e.key===`Enter`)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(e.key===`Home`)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(e.key===`End`)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();let $=parseInt(e.key,10)*.1;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*$):this.userSeek_(this.player_.duration()*$)}else e.key===`PageDown`?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):e.key===`PageUp`?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,[`durationchange`,`timeupdate`],this.update),this.off(this.player_,[`ended`],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,`liveedgechange`,this.update),this.off(this.player_,[`playing`],this.enableIntervalHandler_),this.off(this.player_,[`ended`,`pause`,`waiting`],this.disableIntervalHandler_),`hidden`in import_document.default&&`visibilityState`in import_document.default&&this.off(import_document.default,`visibilitychange`,this.toggleVisibility_),super.dispose()}},SeekBar.prototype.options_={children:[`loadProgressBar`,`playProgressBar`],barName:`playProgressBar`,stepSeconds:5,pageMultiplier:12},Component$1$1.registerComponent(`SeekBar`,SeekBar),ProgressControl
227=class extends Component$1$1{constructor(e,t){super(e,t),this.handleMouseMove=throttle(bind_(this,this.handleMouseMove),UPDATE_REFRESH_INTERVAL),this.throttledHandleMouseSeek=throttle(bind_(this,this.handleMouseSeek),UPDATE_REFRESH_INTERVAL),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl(`div`,{className:`vjs-progress-control vjs-control`})}handleMouseMove(e){let t=this.getChild(`seekBar`);if(!t)return;let $=t.getChild(`playProgressBar`),ed=t.getChild(`mouseTimeDisplay`);if(!$&&!ed)return;let td=t.el(),nd=findPosition(td),rd=getPointerPosition(td,e).x;rd=clamp(rd,0,1),ed&&ed.update(nd,rd),$&&$.update(nd,t.getProgress())}handleMouseSeek(e){let t=this.getChild(`seekBar`);t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off([`mousedown`,`touchstart`],this.handleMouseDownHandler_),this.off(this.el_,[`mousemove`,`touchmove`],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass(`disabled`),this.enabled_=!1,this.player_.scrubbing())){let e=this.getChild(`seekBar`);this.player_.scrubbing(!1),e.videoWasPlaying&&silencePromise(this.player_.play())}}
227enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on([`mousedown`,`touchstart`],this.handleMouseDownHandler_),this.on(this.el_,[`mousemove`,`touchmove`],this.handleMouseMove),this.removeClass(`disabled`),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){let e=this.el_.ownerDocument;this.off(e,`mousemove`,this.throttledHandleMouseSeek),this.off(e,`touchmove`,this.throttledHandleMouseSeek),this.off(e,`mouseup`,this.handleMouseUpHandler_),this.off(e,`touchend`,this.handleMouseUpHandler_)}handleMouseDown(e){let t=this.el_.ownerDocument,$=this.getChild(`seekBar`);$&&$.handleMouseDown(e),this.on(t,`mousemove`,this.throttledHandleMouseSeek),this.on(t,`touchmove`,this.throttledHandleMouseSeek),this.on(t,`mouseup`,this.handleMouseUpHandler_),this.on(t,`touchend`,this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.getChild(`seekBar`);t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}},ProgressControl.prototype.options_={children:[`seekBar`]},Component$1$1.registerComponent(`ProgressControl`,ProgressControl),PictureInPictureToggle=class extends Button{constructor(e,t){super(e,t),this.setIcon(`picture-in-picture-enter`),this.on(e,[`enterpictureinpicture`,`leavepictureinpicture`],e=>this.handlePictureInPictureChange(e)),this.on(e,[`disablepictureinpicturechanged`,`loadedmetadata`],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,[`loadedmetadata`,`audioonlymodechange`,`audiopostermodechange`],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)===`audio`||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){import_document.default.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&`documentPictureInPicture`in import_window.default?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon(`picture-in-picture-exit`),this.controlText(`Exit Picture-in-Picture`)):(this.setIcon(`picture-in-picture-enter`),this.controlText(`Picture-in-Picture`)),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof import_document.default.exitPictureInPicture==`function`&&super.show()}},PictureInPictureToggle.prototype.controlText_=`Picture-in-Picture`,Component$1$1.registerComponent(`PictureInPictureToggle`,PictureInPictureToggle),FullscreenToggle=class extends Button{constructor(e,t){super(e,t),this.setIcon(`fullscreen-enter`),this.on(e,`fullscreenchange`,e=>this.handleFullscreenChange(e)),import_document.default[e.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText(`Exit Fullscreen`),this.setIcon(`fullscreen-exit`)):(this.controlText(`Fullscreen`),this.setIcon(`fullscreen-enter`))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}},FullscreenToggle.prototype.controlText_=`Fullscreen`,Component$1$1.registerComponent(`FullscreenToggle`,FullscreenToggle),checkVolumeSupport=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass(`vjs-hidden`),e.on(t,`loadstart`,function(){t.tech_.featuresVolumeControl?e.removeClass(`vjs-hidden`):e.addClass(`vjs-hidden`)})},VolumeLevel=class extends Component$1$1{createEl(){let e=super.createEl(`div`,{className:`vjs-volume-level`});return this.setIcon(`circle`,e),e.appendChild(super.createEl(`span`,{className:`vjs-control-text`})),e}},Component$1$1.registerComponent(`VolumeLevel`,VolumeLevel),VolumeLevelTooltip=class extends Component$1$1{constructor(e,t){super(e,t),this.update=throttle(bind_(this,this.update),UPDATE_REFRESH_INTERVAL)}createEl(){return super.createEl(`div`,{className:`vjs-volume-tooltip`},{"aria-hidden":`true`})}update(e,t,$,ed){if(!$){let $=getBoundingClientRect(this.el_),ed=getBoundingClientRect(this.player_.el()),td=e.width*t;if(!ed||!$)return;let nd=e.left-ed.left+td,rd=e.width-td+(ed.right-e.right),id=$.width/2;nd<id?id+=id-nd:rd<id&&(id=rd),id<0?id=0:id>$.width&&(id=$.width),this.el_.style.right=`-${id}px`}this.write(`${ed}%`)}write(e){textContent(this.el_,e)}updateVolume(e,t,$,ed,td){this.requestNamedAnimationFrame(`VolumeLevelTooltip#updateVolume`,()=>{this.update(e,t,$,ed.toFixed(0)),td&&td()})}},Component$1$1.registerComponent(`VolumeLevelTooltip`,VolumeLevelTooltip),MouseVolumeLevelDisplay=class extends Component$1$1{constructor(e,t){super(e,t),this.update=throttle(bind_(this,this.update),UPDATE_REFRESH_INTERVAL)}createEl(){return super.createEl(`div`,{className:`vjs-mouse-display`})}update(e,t,$){let ed=100*t;this.getChild(`volumeLevelTooltip`).updateVolume(e,t,$,ed,()=>{$?this.el_.style.bottom=`${e.height*t}px`:this.el_.style.left=`${e.width*t}px`})}},MouseVolumeLevelDisplay.prototype.options_={children:[`volumeLevelTooltip`]},Component$1$1.registerComponent(`MouseVolumeLevelDisplay`,MouseVolumeLevelDisplay),VolumeBar=class extends Slider{constructor(e,t){super(e,t),this.on(`slideractive`,e=>this.updateLastVolume_(e)),this.on(e,`volumechange`,e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl(`div`,{className:`vjs-volume-bar vjs-slider-bar`},{"aria-label":this.localize(`Volume Level`),"aria-live":`polite`})}handleMouseDown(e){isSingleLeftClick(e)&&super.handleMouseDown(e)}handleMouseMove(e){let t=this.getChild(`mouseVolumeLevelDisplay`);if(t){let $=this.el(),ed=getBoundingClientRect($),td=this.vertical(),nd=getPointerPosition($,e);nd=td?nd.y:nd.x,nd=clamp(nd,0,1),t.update(ed,nd,td)}isSingleLeftClick(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){let t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute(`aria-valuenow`,t),this.el_.setAttribute(`aria-valuetext`,t+`%`)}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){let e=this.player_.volume();this.one(`sliderinactive`,()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}},VolumeBar.prototype.options_={children:[`volumeLevel`],barName:`volumeLevel`},!IS_IOS&&!IS_ANDROID&&VolumeBar.prototype.options_.children.splice(0,0,`mouseVolumeLevelDisplay`),VolumeBar.prototype.playerEvent=`volumechange`,Component$1$1.registerComponent(`VolumeBar`,VolumeBar),VolumeControl=class extends Component$1$1{constructor(e,t={}){t.vertical=t.vertical||!1,(t.volumeBar===void 0||isPlain(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),checkVolumeSupport(this,e),this.throttledHandleMouseMove=throttle(bind_(this,this.handleMouseMove),UPDATE_REFRESH_INTERVAL),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on(`mousedown`,e=>this.handleMouseDown(e)),this.on(`touchstart`,e=>this.handleMouseDown(e)),this.on(`mousemove`,e=>this.handleMouseMove(e)),this.on(this.volumeBar,[`focus`,`slideractive`],()=>{this.volumeBar.addClass(`vjs-slider-active`),this.addClass(`vjs-slider-active`),this.trigger(`slideractive`)}),this.on(this.volumeBar,[`blur`,`sliderinactive`],()=>{this.volumeBar.removeClass(`vjs-slider-active`),this.removeClass(`vjs-slider-active`),this.trigger(`sliderinactive`)})}createEl(){let e=`vjs-volume-horizontal`;return this.options_.vertical&&(e=`vjs-volume-vertical`),super.createEl(`div`,{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){let t=this.el_.ownerDocument;this.on(t,`mousemove`,this.throttledHandleMouseMove),this.on(t,`touchmove`,this.throttledHandleMouseMove),this.on(t,`mouseup`,this.handleMouseUpHandler_),this.on(t,`touchend`,this.handleMouseUpHandler_)}handleMouseUp(e){let t=this.el_.ownerDocument;this.off(t,`mousemove`,this.throttledHandleMouseMove),this.off(t,`touchmove`,this.throttledHandleMouseMove),this.off(t,`mouseup`,this.handleMouseUpHandler_),this.off(t,`touchend`,this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}},VolumeControl.prototype.options_={children:[`volumeBar`]},Component$1$1.registerComponent(`VolumeControl`,VolumeControl),checkMuteSupport=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass(`vjs-hidden`),e.on(t,`loadstart`,function(){t.tech_.featuresMuteControl?e.removeClass(`vjs-hidden`):e.addClass(`vjs-hidden`)})},MuteToggle=class extends Button{constructor(e,t){super(e,t),checkMuteSupport(this,e),this.on(e,[`loadstart`,`volumechange`],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){let t=this.player_.volume(),$=this.player_.lastVolume_();if(t===0){let e=$<.1?.1:$;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){let e=this.player_.volume(),t=3;this.setIcon(`volume-high`),IS_IOS&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon(`volume-mute`),t=0):e<.33?(this.setIcon(`volume-low`),t=1):e<.67&&(this.setIcon(`volume-medium`),t=2),removeClass(this.el_,[0,1,2,3].reduce((e,t)=>
227e+`${t?` `:``}vjs-vol-${t}`,``)),addClass(this.el_,`vjs-vol-${t}`)}updateControlText_(){let e=this.player_.muted()||this.player_.volume()===0?`Unmute`:`Mute`;this.controlText()!==e&&this.controlText(e)}},MuteToggle.prototype.controlText_=`Mute`,Component$1$1.registerComponent(`MuteToggle`,MuteToggle),VolumePanel=class extends Component$1$1{constructor(e,t={}){t.inline===void 0?t.inline=!0:t.inline=t.inline,(t.volumeControl===void 0||isPlain(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,[`loadstart`],e=>this.volumePanelState_(e)),this.on(this.muteToggle,`keyup`,e=>this.handleKeyPress(e)),this.on(this.volumeControl,`keyup`,e=>this.handleVolumeControlKeyUp(e)),this.on(`keydown`,e=>this.handleKeyPress(e)),this.on(`mouseover`,e=>this.handleMouseOver(e)),this.on(`mouseout`,e=>this.handleMouseOut(e)),this.on(this.volumeControl,[`slideractive`],this.sliderActive_),this.on(this.volumeControl,[`sliderinactive`],this.sliderInactive_)}sliderActive_(){this.addClass(`vjs-slider-active`)}sliderInactive_(){this.removeClass(`vjs-slider-active`)}volumePanelState_(){this.volumeControl.hasClass(`vjs-hidden`)&&this.muteToggle.hasClass(`vjs-hidden`)&&this.addClass(`vjs-hidden`),this.volumeControl.hasClass(`vjs-hidden`)&&!this.muteToggle.hasClass(`vjs-hidden`)&&this.addClass(`vjs-mute-toggle-only`)}createEl(){let e=`vjs-volume-panel-horizontal`;return this.options_.inline||(e=`vjs-volume-panel-vertical`),super.createEl(`div`,{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){e.key===`Escape`&&this.muteToggle.focus()}handleMouseOver(e){this.addClass(`vjs-hover`),on(import_document.default,`keyup`,this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass(`vjs-hover`),off(import_document.default,`keyup`,this.handleKeyPressHandler_)}handleKeyPress(e){e.key===`Escape`&&this.handleMouseOut()}},VolumePanel.prototype.options_={children:[`muteToggle`,`volumeControl`]},Component$1$1.registerComponent(`VolumePanel`,VolumePanel),SkipForward=class extends Button{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize(`Skip forward {1} seconds`,[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;let t=this.player_.currentTime(),$=this.player_.liveTracker,ed=$&&$.isLive()?$.seekableEnd():this.player_.duration(),td;td=t+this.skipTime<=ed?t+this.skipTime:ed,this.player_.currentTime(td)}handleLanguagechange(){this.controlText(this.localize(`Skip forward {1} seconds`,[this.skipTime]))}},SkipForward.prototype.controlText_=`Skip Forward`,Component$1$1.registerComponent(`SkipForward`,SkipForward),SkipBackward=class extends Button{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize(`Skip backward {1} seconds`,[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){let e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){let t=this.player_.currentTime(),$=this.player_.liveTracker,ed=$&&$.isLive()&&$.seekableStart(),td;td=ed&&t-this.skipTime<=ed?ed:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(td)}handleLanguagechange(){this.controlText(this.localize(`Skip backward {1} seconds`,[this.skipTime]))}},SkipBackward.prototype.controlText_=`Skip Backward`,Component$1$1.registerComponent(`SkipBackward`,SkipBackward),Menu=class extends Component$1$1{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on(`keydown`,e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Component$1$1&&(this.on(e,`blur`,this.boundHandleBlur_),this.on(e,[`tap`,`click`],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Component$1$1&&(this.off(e,`blur`,this.boundHandleBlur_),this.off(e,[`tap`,`click`],this.boundHandleTapClick_))}removeChild(e){typeof e==`string`&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){let t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){this.contentEl_=createEl(this.options_.contentElType||`ul`,{className:`vjs-menu-content`}),this.contentEl_.setAttribute(`role`,`menu`);let e=super.createEl(`div`,{append:this.contentEl_,className:`vjs-menu`});return e.appendChild(this.contentEl_),on(e,`click`,function(e){e.preventDefault(),e.stopImmediatePropagation()}),e}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){let t=e.relatedTarget||import_document.default.activeElement;if(!this.children().some(e=>e.el()===t)){let e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();let t=this.children();if(!Array.isArray(t))return;let $=t.filter(t=>t.el()===e.target)[0];if(!$)return;$.name()!==`CaptionSettingsMenuItem`&&this.menuButton_.focus()}}
227handleKeyDown(e){e.key===`ArrowLeft`||e.key===`ArrowDown`?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(e.key===`ArrowRight`||e.key===`ArrowUp`)&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){let t=this.children().slice();t.length&&t[0].hasClass(`vjs-menu-title`)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}},Component$1$1.registerComponent(`Menu`,Menu),MenuButton=class extends Component$1$1{constructor(e,t={}){super(e,t),this.menuButton_=new Button(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute(`aria-haspopup`,`true`);let $=Button.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+` `+$,this.menuButton_.removeClass(`vjs-control`),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;let ed=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,`tap`,ed),this.on(this.menuButton_,`click`,ed),this.on(this.menuButton_,`keydown`,e=>this.handleKeyDown(e)),this.on(this.menuButton_,`mouseenter`,()=>{this.addClass(`vjs-hover`),this.menu.show(),on(import_document.default,`keyup`,this.handleMenuKeyUp_)}),this.on(`mouseleave`,e=>this.handleMouseLeave(e)),this.on(`keydown`,e=>this.handleSubmenuKeyDown(e))}update(){let e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute(`aria-expanded`,`false`),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute(`role`)):(this.show(),this.menu.contentEl_.setAttribute(`role`,`menu`))}createMenu(){let e=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){let t=createEl(`li`,{className:`vjs-menu-title`,textContent:toTitleCase$1(this.options_.title),tabIndex:-1}),$=new Component$1$1(this.player_,{el:t});e.addItem($)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl(`div`,{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e=`vjs-menu-button`;this.options_.inline===!0?e+=`-inline`:e+=`-popup`;let t=Button.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${super.buildCSSClass()}`}buildCSSClass(){let e=`vjs-menu-button`;return this.options_.inline===!0?e+=`-inline`:e+=`-popup`,`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass(`vjs-hover`),off(import_document.default,`keyup`,this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){e.key===`Escape`||e.key===`Tab`?(this.buttonPressed_&&this.unpressButton(),!e.key===`Tab`&&(e.preventDefault(),this.menuButton_.focus())):(e.key===`Up`||e.key===`Down`&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(e.key===`Escape`||e.key===`Tab`)&&this.removeClass(`vjs-hover`)}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(e.key===`Escape`||e.key===`Tab`)&&(this.buttonPressed_&&this.unpressButton(),!e.key===`Tab`&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute(`aria-expanded`,`true`),IS_IOS&&isInFrame())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute(`aria-expanded`,`false`))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass(`vjs-disabled`),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass(`vjs-disabled`),this.menuButton_.enable()}},Component$1$1.registerComponent(`MenuButton`,MenuButton),TrackButton=class extends MenuButton{constructor(e,t){let $=t.tracks;
227if(super(e,t),this.items.length<=1&&this.hide(),!$)return;let ed=bind_(this,this.update);$.addEventListener(`removetrack`,ed),$.addEventListener(`addtrack`,ed),$.addEventListener(`labelchange`,ed),this.player_.on(`ready`,ed),this.player_.on(`dispose`,function(){$.removeEventListener(`removetrack`,ed),$.removeEventListener(`addtrack`,ed),$.removeEventListener(`labelchange`,ed)})}},Component$1$1.registerComponent(`TrackButton`,TrackButton),MenuItem=class extends ClickableComponent{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute(`role`,`menuitemcheckbox`):this.el_.setAttribute(`role`,`menuitemradio`):this.el_.setAttribute(`role`,`menuitem`)}createEl(e,t,$){this.nonIconControl=!0;let ed=super.createEl(`li`,Object.assign({className:`vjs-menu-item`,tabIndex:-1},t),$),td=createEl(`span`,{className:`vjs-menu-item-text`,textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?ed.appendChild(td):ed.replaceChild(td,ed.querySelector(`.vjs-icon-placeholder`)),ed}handleKeyDown(e){[`Tab`,`Escape`,`ArrowUp`,`ArrowLeft`,`ArrowRight`,`ArrowDown`].includes(e.key)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass(`vjs-selected`),this.el_.setAttribute(`aria-checked`,`true`),this.controlText(`, selected`),this.isSelected_=!0):(this.removeClass(`vjs-selected`),this.el_.setAttribute(`aria-checked`,`false`),this.controlText(``),this.isSelected_=!1))}},Component$1$1.registerComponent(`MenuItem`,MenuItem),TextTrackMenuItem=class extends MenuItem{constructor(e,t){let $=t.track,ed=e.textTracks();t.label=$.label||$.language||`Unknown`,t.selected=$.mode===`showing`,super(e,t),this.track=$,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);let td=(...e)=>{this.handleTracksChange.apply(this,e)},nd=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on([`loadstart`,`texttrackchange`],td),ed.addEventListener(`change`,td),ed.addEventListener(`selectedlanguagechange`,nd),this.on(`dispose`,function(){e.off([`loadstart`,`texttrackchange`],td),ed.removeEventListener(`change`,td),ed.removeEventListener(`selectedlanguagechange`,nd)}),ed.onchange===void 0){let e;this.on([`tap`,`click`],function(){if(typeof import_window.default.Event!=`object`)try{e=new import_window.default.Event(`change`)}catch{}e||(e=import_document.default.createEvent(`Event`),e.initEvent(`change`,!0,!0)),ed.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){let t=this.track,$=this.player_.textTracks();if(super.handleClick(e),$)for(let e=0;e<$.length;e++){let ed=$[e];this.kinds.indexOf(ed.kind)!==-1&&(ed===t?ed.mode!==`showing`&&(ed.mode=`showing`):ed.mode!==`disabled`&&(ed.mode=`disabled`))}}handleTracksChange(e){let t=this.track.mode===`showing`;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if(this.track.mode===`showing`){let e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}},Component$1$1.registerComponent(`TextTrackMenuItem`,TextTrackMenuItem),OffTextTrackMenuItem=class extends TextTrackMenuItem{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:`disabled`},t.kinds||=[t.kind],t.label?t.track.label=t.label:t.track.label=t.kinds.join(` and `)+` off`,t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){let t=this.player().textTracks(),$=!0;for(let e=0,ed=t.length;e<ed;e++){let ed=t[e];if(this.options_.kinds.indexOf(ed.kind)>-1&&ed.mode===`showing`){$=!1;break}}$!==this.isSelected_&&this.selected($)}handleSelectedLanguageChange(e){let t=this.player().textTracks(),$=!0;for(let e=0,ed=t.length;e<ed;e++){let ed=t[e];if([`captions`,`descriptions`,`subtitles`].indexOf(ed.kind)>-1&&ed.mode===`showing`){$=!1;break}}$&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(`.vjs-menu-item-text`).textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}},Component$1$1.registerComponent(`OffTextTrackMenuItem`,OffTextTrackMenuItem),TextTrackButton=class extends TrackButton{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=TextTrackMenuItem){let $;this.label_&&($=`${this.label_} off`),e.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:$})),this.hideThreshold_+=1;let ed=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let $=0;$<ed.length;$++){let td=ed[$];if(this.kinds_.indexOf(td.kind)>-1){let $=new t(this.player_,{track:td,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});$.addClass(`vjs-${td.kind}-menu-item`),e.push($)}}return e}},Component$1$1.registerComponent(`TextTrackButton`,TextTrackButton),ChaptersTrackMenuItem=class extends MenuItem{constructor(e,t){let $=t.track,ed=t.cue,td=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=ed.text,t.selected=ed.startTime<=td&&td<ed.endTime,super(e,t),this.track=$,this.cue=ed}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}},Component$1$1.registerComponent(`ChaptersTrackMenuItem`,ChaptersTrackMenuItem),ChaptersButton=class extends TextTrackButton{constructor(e,t,$){super(e,t,$),this.setIcon(`chapters`),this.selectCurrentItem_=()=>
227{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&e.track.kind!==`chapters`)return;let t=this.findChaptersTrack();t===this.track_?(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update():(this.setTrack(t),super.update())}setTrack(e){if(this.track_!==e){if(this.updateHandler_||=this.update.bind(this),this.track_){let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener(`load`,this.updateHandler_),this.track_.removeEventListener(`cuechange`,this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode=`hidden`;let e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener(`load`,this.updateHandler_),this.track_.addEventListener(`cuechange`,this.selectCurrentItem_)}}}findChaptersTrack(){let e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){let $=e[t];if($.kind===this.kind_)return $}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase$1(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){let e=[];
227if(!this.track_)return e;let t=this.track_.cues;if(!t)return e;for(let $=0,ed=t.length;$<ed;$++){let ed=t[$],td=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:ed});e.push(td)}return e}},ChaptersButton.prototype.kind_=`chapters`,ChaptersButton.prototype.controlText_=`Chapters`,Component$1$1.registerComponent(`ChaptersButton`,ChaptersButton),DescriptionsButton=class extends TextTrackButton{constructor(e,t,$){super(e,t,$),this.setIcon(`audio-description`);let ed=e.textTracks(),td=bind_(this,this.handleTracksChange);ed.addEventListener(`change`,td),this.on(`dispose`,function(){ed.removeEventListener(`change`,td)})}handleTracksChange(e){let t=this.player().textTracks(),$=!1;for(let e=0,ed=t.length;e<ed;e++){let ed=t[e];if(ed.kind!==this.kind_&&ed.mode===`showing`){$=!0;break}}$?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}},DescriptionsButton.prototype.kind_=`descriptions`,DescriptionsButton.prototype.controlText_=`Descriptions`,Component$1$1.registerComponent(`DescriptionsButton`,DescriptionsButton),SubtitlesButton=class extends TextTrackButton{constructor(e,t,$){super(e,t,$),this.setIcon(`subtitles`)}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}},SubtitlesButton.prototype.kind_=`subtitles`,SubtitlesButton.prototype.controlText_=`Subtitles`,Component$1$1.registerComponent(`SubtitlesButton`,SubtitlesButton),CaptionSettingsMenuItem=class extends TextTrackMenuItem{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+` settings`,selectable:!1,default:!1,mode:`disabled`},t.selectable=!1,t.name=`CaptionSettingsMenuItem`,super(e,t),this.addClass(`vjs-texttrack-settings`),this.controlText(`, opens `+t.kind+` settings dialog`)}handleClick(e){this.player().getChild(`textTrackSettings`).open()}handleLanguagechange(){this.$(`.vjs-menu-item-text`).textContent=this.player_.localize(this.options_.kind+` settings`),super.handleLanguagechange()}},Component$1$1.registerComponent(`CaptionSettingsMenuItem`,CaptionSettingsMenuItem),CaptionsButton=class extends TextTrackButton{constructor(e,t,$){super(e,t,$),this.setIcon(`captions`)}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild(`textTrackSettings`)&&(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}},CaptionsButton.prototype.kind_=`captions`,CaptionsButton.prototype.controlText_=`Captions`,Component$1$1.registerComponent(`CaptionsButton`,CaptionsButton),SubsCapsMenuItem=class extends TextTrackMenuItem{createEl(e,t,$){let ed=super.createEl(e,t,$),td=ed.querySelector(`.vjs-menu-item-text`);return this.options_.track.kind===`captions`&&(this.player_.options_.experimentalSvgIcons?this.setIcon(`captions`,ed):td.appendChild(createEl(`span`,{className:`vjs-icon-placeholder`},{"aria-hidden":!0})),td.appendChild(createEl(`span`,{className:`vjs-control-text`,textContent:` ${this.localize(`Captions`)}`}))),ed}},Component$1$1.registerComponent(`SubsCapsMenuItem`,SubsCapsMenuItem),SubsCapsButton=class extends TextTrackButton{constructor(e,t={}){super(e,t),this.label_=`subtitles`,this.setIcon(`subtitles`),[`en`,`en-us`,`en-ca`,`fr-ca`].indexOf(this.player_.language_)>-1&&(this.label_=`captions`,this.setIcon(`captions`)),this.menuButton_.controlText(toTitleCase$1(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild(`textTrackSettings`)&&(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,SubsCapsMenuItem),e}},SubsCapsButton.prototype.kinds_=[`captions`,`subtitles`],SubsCapsButton.prototype.controlText_=`Subtitles`,Component$1$1.registerComponent(`SubsCapsButton`,SubsCapsButton),AudioTrackMenuItem=class extends MenuItem{constructor(e,t){let $=t.track,ed=e.audioTracks();t.label=$.label||$.language||`Unknown`,t.selected=$.enabled,super(e,t),this.track=$,this.addClass(`vjs-${$.kind}-menu-item`);let td=(...e)=>{this.handleTracksChange.apply(this,e)};ed.addEventListener(`change`,td),this.on(`dispose`,()=>{ed.removeEventListener(`change`,td)})}createEl(e,t,$){let ed=super.createEl(e,t,$),td=ed.querySelector(`.vjs-menu-item-text`);return[`main-desc`,`descriptions`].indexOf(this.options_.track.kind)>=0&&(td.appendChild(createEl(`span`,{className:`vjs-icon-placeholder`},{"aria-hidden":!0})),td.appendChild(createEl(`span`,{className:`vjs-control-text`,textContent:` `+this.localize(`Descriptions`)}))),ed}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){let e=this.player_.audioTracks();for(let t=0;t<e.length;t++){let $=e[t];$!==this.track&&($.enabled=$===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}},Component$1$1.registerComponent(`AudioTrackMenuItem`,AudioTrackMenuItem),AudioTrackButton=class extends TrackButton{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon(`audio`)}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;let t=this.player_.audioTracks();for(let $=0;$<t.length;$++){let ed=t[$];e.push(new AudioTrackMenuItem(this.player_,{track:ed,selectable:!0,multiSelectable:!1}))}return e}},AudioTrackButton.prototype.controlText_=`Audio Track`,Component$1$1.registerComponent(`AudioTrackButton`,AudioTrackButton),PlaybackRateMenuItem=class extends MenuItem{constructor(e,t){let $=t.rate,ed=parseFloat($,10);t.label=$,t.selected=ed===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=$,this.rate=ed,this.on(e,`ratechange`,e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}},PlaybackRateMenuItem.prototype.contentElType=`button`,Component$1$1.registerComponent(`PlaybackRateMenuItem`,PlaybackRateMenuItem),PlaybackRateMenuButton=class extends MenuButton{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute(`aria-describedby`,this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,`loadstart`,e=>this.updateVisibility(e)),this.on(e,`ratechange`,e=>this.updateLabel(e)),this.on(e,`playbackrateschange`,e=>this.handlePlaybackRateschange(e))}createEl(){let e=super.createEl();return this.labelElId_=`vjs-playback-rate-value-label-`+this.id_,this.labelEl_=createEl(`div`,{className:`vjs-playback-rate-value`,id:this.labelElId_,textContent:`1x`}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){let e=this.playbackRates(),t=[];for(let $=e.length-1;$>=0;$--)t.push(new PlaybackRateMenuItem(this.player(),{rate:e[$]+`x`}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){let e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass(`vjs-hidden`):this.addClass(`vjs-hidden`)}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+`x`)}},PlaybackRateMenuButton.prototype.controlText_=`Playback Rate`,Component$1$1.registerComponent(`PlaybackRateMenuButton`,PlaybackRateMenuButton),Spacer=class extends Component$1$1{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e=`div`,t={},$={}){return t.className||=this.buildCSSClass(),super.createEl(e,t,$)}},Component$1$1.registerComponent(`Spacer`,Spacer),CustomControlSpacer=class extends Spacer{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl(`div`,{className:this.buildCSSClass(),textContent:`\xA0`})}},Component$1$1.registerComponent(`CustomControlSpacer`,CustomControlSpacer),ControlBar=class extends Component$1$1{createEl(){return super.createEl(`div`,{className:`vjs-control-bar`,dir:`ltr`})}},ControlBar.prototype.options_={children:[`playToggle`,`skipBackward`,`skipForward`,`volumePanel`,`currentTimeDisplay`,`timeDivider`,`durationDisplay`,`progressControl`,`liveDisplay`,`seekToLive`,`remainingTimeDisplay`,`customControlSpacer`,`playbackRateMenuButton`,`chaptersButton`,`descriptionsButton`,`subsCapsButton`,`audioTrackButton`,`pictureInPictureToggle`,`fullscreenToggle`]},Component$1$1.registerComponent(`ControlBar`,ControlBar),ErrorDisplay=class extends ModalDialog{constructor(e,t){super(e,t),this.on(e,`error`,e=>{this.open(e)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){let e=this.player().error();return e?this.localize(e.message):``}},ErrorDisplay.prototype.options_=Object.assign({}
227,ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component$1$1.registerComponent(`ErrorDisplay`,ErrorDisplay),TextTrackSelect=class extends Component$1$1{constructor(e,t={}){super(e,t),this.el_.setAttribute(`aria-labelledby`,this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(` `).trim(),createEl(`select`,{id:this.options_.id},{},this.options_.SelectOptions.map(e=>{let t=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${newGUID()}`)+`-`+e[1].replace(/\W+/g,``),$=createEl(`option`,{id:t,value:this.localize(e[0]),textContent:this.localize(e[1])});return $.setAttribute(`aria-labelledby`,`${this.selectLabelledbyIds} ${t}`),$}))}},Component$1$1.registerComponent(`TextTrackSelect`,TextTrackSelect),TextTrackFieldset=class extends Component$1$1{constructor(e,t={}){super(e,t);let $=createEl(`legend`,{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild($);let ed=this.options_.selects;for(let t of ed){let $=this.options_.selectConfigs[t],ed=$.className,td=$.id.replace(`%s`,this.options_.id_),nd=null,rd=`vjs_select_${newGUID()}`;if(this.options_.type===`colors`){nd=createEl(`span`,{className:ed});let e=createEl(`label`,{id:td,className:`vjs-label`,textContent:this.localize($.label)});e.setAttribute(`for`,rd),nd.appendChild(e)}let id=new TextTrackSelect(e,{SelectOptions:$.options,legendId:this.options_.legendId,id:rd,labelId:td});this.addChild(id),this.options_.type===`colors`&&(nd.appendChild(id.el()),this.el().appendChild(nd))}}createEl(){return createEl(`fieldset`,{className:this.options_.className})}},Component$1$1.registerComponent(`TextTrackFieldset`,TextTrackFieldset),TextTrackSettingsColors=class extends Component$1$1{constructor(e,t={}){super(e,t);let $=this.options_.textTrackComponentid,ed=new TextTrackFieldset(e,{id_:$,legendId:`captions-text-legend-${$}`,legendText:this.localize(`Text`),className:`vjs-fg vjs-track-setting`,selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:`colors`});this.addChild(ed);let td=new TextTrackFieldset(e,{id_:$,legendId:`captions-background-${$}`,legendText:this.localize(`Text Background`),className:`vjs-bg vjs-track-setting`,selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:`colors`});this.addChild(td);let nd=new TextTrackFieldset(e,{id_:$,legendId:`captions-window-${$}`,legendText:this.localize(`Caption Area Background`),className:`vjs-window vjs-track-setting`,selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:`colors`});this.addChild(nd)}createEl(){return createEl(`div`,{className:`vjs-track-settings-colors`})}},Component$1$1.registerComponent(`TextTrackSettingsColors`,TextTrackSettingsColors),TextTrackSettingsFont=class extends Component$1$1{constructor(e,t={}){super(e,t);let $=this.options_.textTrackComponentid,ed=new TextTrackFieldset(e,{id_:$,legendId:`captions-font-size-${$}`,legendText:`Font Size`,className:`vjs-font-percent vjs-track-setting`,selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:`font`});this.addChild(ed);let td=new TextTrackFieldset(e,{id_:$,legendId:`captions-edge-style-${$}`,legendText:this.localize(`Text Edge Style`),className:`vjs-edge-style vjs-track-setting`,selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:`font`});this.addChild(td);let nd=new TextTrackFieldset(e,{id_:$,legendId:`captions-font-family-${$}`,legendText:this.localize(`Font Family`),className:`vjs-font-family vjs-track-setting`,selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:`font`});this.addChild(nd)}createEl(){return createEl(`div`,{className:`vjs-track-settings-font`})}},Component$1$1.registerComponent(`TextTrackSettingsFont`,TextTrackSettingsFont),TrackSettingsControls=class extends Component$1$1{constructor(e,t={}){super(e,t);let $=new Button(e,{controlText:this.localize(`restore all settings to the default values`),className:`vjs-default-button`});$.el().classList.remove(`vjs-control`,`vjs-button`),$.el().textContent=this.localize(`Reset`),this.addChild($);let ed=this.localize(`Done`),td=new Button(e,{controlText:ed,className:`vjs-done-button`});td.el().classList.remove(`vjs-control`,`vjs-button`),td.el().textContent=ed,this.addChild(td)}createEl(){return createEl(`div`,{className:`vjs-track-settings-controls`})}}
227,Component$1$1.registerComponent(`TrackSettingsControls`,TrackSettingsControls),LOCAL_STORAGE_KEY$1=`vjs-text-track-settings`,COLOR_BLACK=[`#000`,`Black`],COLOR_BLUE=[`#00F`,`Blue`],COLOR_CYAN=[`#0FF`,`Cyan`],COLOR_GREEN=[`#0F0`,`Green`],COLOR_MAGENTA=[`#F0F`,`Magenta`],COLOR_RED=[`#F00`,`Red`],COLOR_WHITE=[`#FFF`,`White`],COLOR_YELLOW=[`#FF0`,`Yellow`],OPACITY_OPAQUE=[`1`,`Opaque`],OPACITY_SEMI=[`0.5`,`Semi-Transparent`],OPACITY_TRANS=[`0`,`Transparent`],selectConfigs={backgroundColor:{selector:`.vjs-bg-color > select`,id:`captions-background-color-%s`,label:`Color`,options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN],className:`vjs-bg-color`},backgroundOpacity:{selector:`.vjs-bg-opacity > select`,id:`captions-background-opacity-%s`,label:`Opacity`,options:[OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS],className:`vjs-bg-opacity vjs-opacity`},color:{selector:`.vjs-text-color > select`,id:`captions-foreground-color-%s`,label:`Color`,options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN],className:`vjs-text-color`},edgeStyle:{selector:`.vjs-edge-style > select`,id:``,label:`Text Edge Style`,options:[[`none`,`None`],[`raised`,`Raised`],[`depressed`,`Depressed`],[`uniform`,`Uniform`],[`dropshadow`,`Drop shadow`]]},fontFamily:{selector:`.vjs-font-family > select`,id:``,label:`Font Family`,options:[[`proportionalSansSerif`,`Proportional Sans-Serif`],[`monospaceSansSerif`,`Monospace Sans-Serif`],[`proportionalSerif`,`Proportional Serif`],[`monospaceSerif`,`Monospace Serif`],[`casual`,`Casual`],[`script`,`Script`],[`small-caps`,`Small Caps`]]},fontPercent:{selector:`.vjs-font-percent > select`,id:``,label:`Font Size`,options:[[`0.50`,`50%`],[`0.75`,`75%`],[`1.00`,`100%`],[`1.25`,`125%`],[`1.50`,`150%`],[`1.75`,`175%`],[`2.00`,`200%`],[`3.00`,`300%`],[`4.00`,`400%`]],default:2,parser:e=>e===`1.00`?null:Number(e)},textOpacity:{selector:`.vjs-text-opacity > select`,id:`captions-foreground-opacity-%s`,label:`Opacity`,options:[OPACITY_OPAQUE,OPACITY_SEMI],className:`vjs-text-opacity vjs-opacity`},windowColor:{selector:`.vjs-window-color > select`,id:`captions-window-color-%s`,label:`Color`,className:`vjs-window-color`},windowOpacity:{selector:`.vjs-window-opacity > select`,id:`captions-window-opacity-%s`,label:`Opacity`,options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE],className:`vjs-window-opacity vjs-opacity`}},selectConfigs.windowColor.options=selectConfigs.backgroundColor.options,TextTrackSettings=class extends ModalDialog{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=createEl(`p`,{className:`vjs-control-text`,textContent:this.localize(`End of dialog window.`)}),this.el().appendChild(this.endDialog),this.setDefaults(),t.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){let t=new TextTrackSettingsColors(e,{textTrackComponentid:this.id_,selectConfigs,fieldSets:[[`color`,`textOpacity`],[`backgroundColor`,`backgroundOpacity`],[`windowColor`,`windowOpacity`]]});this.addChild(t);let $=new TextTrackSettingsFont(e,{textTrackComponentid:this.id_,selectConfigs,fieldSets:[[`fontPercent`],[`edgeStyle`],[`fontFamily`]]});this.addChild($);let ed=new TrackSettingsControls(e);this.addChild(ed)}bindFunctionsToSelectsAndButtons(){this.on(this.$(`.vjs-done-button`),[`
227click`,`tap`],()=>{this.saveSettings(),this.close()}),this.on(this.$(`.vjs-default-button`),[`click`,`tap`],()=>{this.setDefaults(),this.updateDisplay()}),each(selectConfigs,e=>{this.on(this.$(e.selector),`change`,this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize(`Caption Settings Dialog`)}description(){return this.localize(`Beginning of dialog window. Escape will cancel and close the window.`)}buildCSSClass(){return super.buildCSSClass()+` vjs-text-track-settings`}getValues(){return reduce(selectConfigs,(e,t,$)=>{let ed=getSelectedOptionValue(this.$(t.selector),t.parser);return ed!==void 0&&(e[$]=ed),e},{})}setValues(e){each(selectConfigs,(t,$)=>{setSelectedOption(this.$(t.selector),e[$],t.parser)})}setDefaults(){each(selectConfigs,e=>{let t=e.hasOwnProperty(`default`)?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(import_window.default.localStorage.getItem(LOCAL_STORAGE_KEY$1))}catch(e){log$1.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;let e=this.getValues();try{Object.keys(e).length?import_window.default.localStorage.setItem(LOCAL_STORAGE_KEY$1,JSON.stringify(e)):import_window.default.localStorage.removeItem(LOCAL_STORAGE_KEY$1)}catch(e){log$1.warn(e)}}updateDisplay(){let e=this.player_.getChild(`textTrackDisplay`);e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}},Component$1$1.registerComponent(`TextTrackSettings`,TextTrackSettings),ResizeManager=class extends Component$1$1{constructor(e,t){let $=t.ResizeObserver||import_window.default.ResizeObserver;t.ResizeObserver===null&&($=!1);let ed=merge$1({createEl:!$,reportTouchActivity:!1},t);super(e,ed),this.ResizeObserver=t.ResizeObserver||import_window.default.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=debounce$1(()=>{this.resizeHandler()},100,!1,this),$?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;let e=this.debouncedHandler_,t=this.unloadListener_=function(){off(this,`resize`,e),off(this,`unload`,t),t=null};on(this.el_.contentWindow,`unload`,t),on(this.el_.contentWindow,`resize`,e)},this.one(`load`,this.loadListener_))}createEl(){return super.createEl(`iframe`,{className:`vjs-resize-manager`,tabIndex:-1,title:this.localize(`No content`)},{"aria-hidden":`true`})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger(`playerresize`)}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off(`load`,this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}},Component$1$1.registerComponent(`ResizeManager`,ResizeManager),defaults$1={trackingThreshold:20,liveTolerance:15},LiveTracker=class extends Component$1$1{constructor(e,t){let $=merge$1(defaults$1,t,{createEl:!1});super(e,$),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,`durationchange`,e=>this.handleDurationchange(e)),this.on(this.player_,`canplay`,()=>this.toggleTracking())}trackLive_(){let e=this.player_.seekable();if(!e||!e.length)return;let t=Number(import_window.default.performance.now().toFixed(4)),$=this.lastTime_===-1?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+$;let ed=this.liveCurrentTime(),td=this.player_.currentTime(),nd=this.player_.paused()||this.seekedBehindLive_||Math.abs(ed-td)>this.options_.liveTolerance;(!this.timeupdateSeen_||ed===1/0)&&(nd=!1),nd!==this.behindLiveEdge_&&(this.behindLiveEdge_=nd,this.trigger(`liveedgechange`))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass(`vjs-liveui`),this.startTracking()):(this.player_.removeClass(`vjs-liveui`),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||=this.player_.hasStarted(),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,UPDATE_REFRESH_INTERVAL),this.trackLive_(),this.on(this.player_,[`play`,`pause`],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,`seeked`,this.handleSeeked_):(this.one(this.player_,`play`,this.handlePlay_),this.one(this.player_,`timeupdate`,this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,`seeked`,this.handleSeeked_)}handleSeeked(){let e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,`timeupdate`,this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,[`play`,`pause`],this.trackLiveHandler_),this.off(this.player_,`seeked`,this.handleSeeked_),this.off(this.player_,`play`,this.handlePlay_),this.off(this.player_,`timeupdate`,this.handleFirstTimeupdate_),this.off(this.player_,`timeupdate`,this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger(`liveedgechange`))}seekableEnd(){let e=this.player_.seekable(),t=[],$=e?e.length:0;for(;$--;)t.push(e.end($));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){let e=this.player_.seekable(),t=[],$=e?e.length:0;for(;$--;)t.push(e.start($));return t.length?t.sort()[0]:0}
227liveWindow(){let e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){let e=this.seekableEnd();return this.lastSeekEnd_!==-1&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_==`number`}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}},Component$1$1.registerComponent(`LiveTracker`,LiveTracker),TitleBar=class extends Component$1$1{constructor(e,t){super(e,t),this.on(`statechanged`,e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:createEl(`div`,{className:`vjs-title-bar-title`,id:`vjs-title-bar-title-${newGUID()}`}),description:createEl(`div`,{className:`vjs-title-bar-description`,id:`vjs-title-bar-description-${newGUID()}`})},createEl(`div`,{className:`vjs-title-bar`},{},values(this.els))}updateDom_(){let e=this.player_.tech_,t=e&&e.el_,$={title:`aria-labelledby`,description:`aria-describedby`};[`title`,`description`].forEach(e=>{let ed=this.state[e],td=this.els[e],nd=$[e];emptyEl(td),ed&&textContent(td,ed),t&&(t.removeAttribute(nd),ed&&t.setAttribute(nd,td.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){let e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute(`aria-labelledby`),t.removeAttribute(`aria-describedby`)),super.dispose(),this.els=null}},Component$1$1.registerComponent(`TitleBar`,TitleBar),defaults$2={initialDisplay:4e3,position:[],takeFocus:!1},TransientButton=class extends Button{constructor(e,t){t=merge$1(defaults$2,t),super(e,t),this.controlText(t.controlText),this.hide(),this.on(this.player_,[`useractive`,`userinactive`],e=>{this.removeClass(`force-display`)})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(` `)}`}createEl(){let e=createEl(`button`,{},{type:`button`,class:this.buildCSSClass()},createEl(`span`));return this.controlTextEl_=e.querySelector(`span`),e}show(){super.show(),this.addClass(`force-display`),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass(`force-display`)},this.options_.initialDisplay)}hide(){this.removeClass(`force-display`),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}},Component$1$1.registerComponent(`TransientButton`,TransientButton),sourcesetLoad=e=>{let t=e.el();if(t.hasAttribute(`src`))return e.triggerSourceset(t.src),!0;let $=e.$$(`source`),ed=[],td=``;if(!$.length)return!1;for(let e=0;e<$.length;e++){let t=$[e].src;t&&ed.indexOf(t)===-1&&ed.push(t)}return ed.length?(ed.length===1&&(td=ed[0]),e.triggerSourceset(td),!0):!1},innerHTMLDescriptorPolyfill=Object.defineProperty({},`innerHTML`,{get(){return this.cloneNode(!0).innerHTML},set(e){let t=import_document.default.createElement(this.nodeName.toLowerCase());t.innerHTML=e;let $=import_document.default.createDocumentFragment();for(;t.childNodes.length;)$.appendChild(t.childNodes[0]);return this.innerText=``,import_window.default.Element.prototype.appendChild.call(this,$),this.innerHTML}}),getDescriptor=(e,t)=>{let $={};for(let ed=0;ed<e.length&&($=Object.getOwnPropertyDescriptor(e[ed],t),!($&&$.set&&$.get));ed++);return $.enumerable=!0,$.configurable=!0,$},getInnerHTMLDescriptor=e=>getDescriptor([e.el(),import_window.default.HTMLMediaElement.prototype,import_window.default.Element.prototype,innerHTMLDescriptorPolyfill],`innerHTML`),firstSourceWatch=function(e){let t=e.el();if(t.resetSourceWatch_)return;let $={},ed=getInnerHTMLDescriptor(e),td=$=>(...ed)=>{let td=$.apply(t,ed);return sourcesetLoad(e),td};[`append`,`appendChild`,`insertAdjacentHTML`].forEach(e=>{t[e]&&($[e]=t[e],t[e]=td($[e]))}),Object.defineProperty(t,`innerHTML`,merge$1(ed,{set:td(ed.set)})),t.resetSourceWatch_=()=>
227{t.resetSourceWatch_=null,Object.keys($).forEach(e=>{t[e]=$[e]}),Object.defineProperty(t,`innerHTML`,ed)},e.one(`sourceset`,t.resetSourceWatch_)},srcDescriptorPolyfill=Object.defineProperty({},`src`,{get(){return this.hasAttribute(`src`)?getAbsoluteURL(import_window.default.Element.prototype.getAttribute.call(this,`src`)):``},set(e){return import_window.default.Element.prototype.setAttribute.call(this,`src`,e),e}}),getSrcDescriptor=e=>getDescriptor([e.el(),import_window.default.HTMLMediaElement.prototype,srcDescriptorPolyfill],`src`),setupSourceset=function(e){if(!e.featuresSourceset)return;let t=e.el();if(t.resetSourceset_)return;let $=getSrcDescriptor(e),ed=t.setAttribute,td=t.load;Object.defineProperty(t,`src`,merge$1($,{set:ed=>{let td=$.set.call(t,ed);return e.triggerSourceset(t.src),td}})),t.setAttribute=($,td)=>{let nd=ed.call(t,$,td);return/src/i.test($)&&e.triggerSourceset(t.src),nd},t.load=()=>{let $=td.call(t);return sourcesetLoad(e)||(e.triggerSourceset(``),firstSourceWatch(e)),$},t.currentSrc?e.triggerSourceset(t.currentSrc):sourcesetLoad(e)||firstSourceWatch(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=td,t.setAttribute=ed,Object.defineProperty(t,`src`,$),t.resetSourceWatch_&&t.resetSourceWatch_()}},Html5=class e extends Tech{constructor(e,t){super(e,t);let $=e.source,ed=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName===`VIDEO`,$&&(this.el_.currentSrc!==$.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource($):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){let e=this.el_.childNodes,t=e.length,$=[];for(;t--;){let td=e[t];td.nodeName.toLowerCase()===`track`&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(td),this.remoteTextTracks().addTrack(td.track),this.textTracks().addTrack(td.track),!ed&&!this.el_.hasAttribute(`crossorigin`)&&isCrossOrigin(td.src)&&(ed=!0)):$.push(td))}for(let e=0;e<$.length;e++)this.el_.removeChild($[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&ed&&log$1.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. 228This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){setupSourceset(this)}restoreMetadataTracksInIOSNativePlayer_(){let e=this.textTracks(),t,$=()=>{t=[];for(let $=0;$<e.length;$++){let ed=e[$];ed.kind===`metadata`&&t.push({track:ed,storedMode:ed.mode})}};$(),e.addEventListener(`change`,$),this.on(`dispose`,()=>e.removeEventListener(`change`,$));let ed=()=>{for(let e=0;e<t.length;e++){let $=t[e];$.track.mode===`disabled`&&$.track.mode!==$.storedMode&&($.track.mode=$.storedMode)}e.removeEventListener(`change`,ed)};this.on(`webkitbeginfullscreen`,()=>{e.removeEventListener(`change`,$),e.removeEventListener(`change`,ed),e.addEventListener(`change`,ed)}),this.on(`webkitendfullscreen`,()=>{e.removeEventListener(`change`,$),e.addEventListener(`change`,$),e.removeEventListener(`change`,ed)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;let $=e.toLowerCase();this[`${$}TracksListeners_`]&&Object.keys(this[`${$}TracksListeners_`]).forEach(e=>{this.el()[`${$}Tracks`].removeEventListener(e,this[`${$}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${$}TracksListeners_`]=null,this.proxyNativeTracksForType_($)}overrideNativeAudioTracks(e){this.overrideNative_(`Audio`,e)}overrideNativeVideoTracks(e){this.overrideNative_(`Video`,e)}proxyNativeTracksForType_(e){let t=NORMAL[e],$=this.el()[t.getterName],ed=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!$||!$.addEventListener)return;let td={change:t=>{let $={type:`change`,target:ed,currentTarget:ed,srcElement:ed};ed.trigger($),e===`text`&&this[REMOTE.remoteText.getterName]().trigger($)},addtrack(e){ed.addTrack(e.track)},removetrack(e){ed.removeTrack(e.track)}},nd=function(){let e=[];for(let t=0;t<ed.length;t++){let td=!1;for(let e=0;e<$.length;e++)if($[e]===ed[t]){td=!0;break}td||e.push(ed[t])}for(;e.length;)ed.removeTrack(e.shift())};
228this[t.getterName+`Listeners_`]=td,Object.keys(td).forEach(e=>{let t=td[e];$.addEventListener(e,t),this.on(`dispose`,ed=>$.removeEventListener(e,t))}),this.on(`loadstart`,nd),this.on(`dispose`,e=>this.off(`loadstart`,nd))}proxyNativeTracks_(){NORMAL.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let t=this.options_.tag;if(!t||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(t){let $=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore($,t),e.disposeMediaElement(t),t=$}else{t=import_document.default.createElement(`video`);let e=merge$1({},this.options_.tag&&getAttributes(this.options_.tag));(!TOUCH_ENABLED||this.options_.nativeControlsForTouch!==!0)&&delete e.controls,setAttributes(t,Object.assign(e,{id:this.options_.techId,class:`vjs-tech`}))}t.playerId=this.options_.playerId}this.options_.preload!==void 0&&setAttribute(t,`preload`,this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);let $=[`loop`,`muted`,`playsinline`,`autoplay`];for(let e=0;e<$.length;e++){let ed=$[e],td=this.options_[ed];td!==void 0&&(td?setAttribute(t,ed,ed):removeAttribute(t,ed),t[ed]=td)}return t}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let e=!1,t=function(){e=!0};this.on(`loadstart`,t);let $=function(){e||this.trigger(`loadstart`)};this.on(`loadedmetadata`,$),this.ready(function(){this.off(`loadstart`,t),this.off(`loadedmetadata`,$),e||this.trigger(`loadstart`)});return}let t=[`loadstart`];t.push(`loadedmetadata`),e.readyState>=2&&t.push(`loadeddata`),e.readyState>=3&&t.push(`canplay`),e.readyState>=4&&t.push(`canplaythrough`),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&IS_ANY_SAFARI?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){log$1(e,`Video is not ready. (Video.js)`)}}duration(){if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){let e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger(`durationchange`),this.off(`timeupdate`,e))};return this.on(`timeupdate`,e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!(`webkitDisplayingFullscreen`in this.el_))return;let e=function(){this.trigger(`fullscreenchange`,{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){`webkitPresentationMode`in this.el_&&this.el_.webkitPresentationMode!==`picture-in-picture`&&(this.one(`webkitendfullscreen`,e),this.trigger(`fullscreenchange`,{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on(`webkitbeginfullscreen`,t),this.on(`dispose`,()=>{this.off(`webkitbeginfullscreen`,t),this.off(`webkitendfullscreen`,e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen==`function`}enterFullScreen(){let e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)silencePromise(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger(`fullscreenerror`,e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger(`fullscreenerror`,e)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger(`fullscreenerror`,Error(`The video is not fullscreen`));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(e===void 0)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return log$1.error(`Invalid source URL.`),!1;let $={src:e};t&&($.type=t);let ed=createEl(`source`,{},$);return this.el_.appendChild(ed),!0}removeSourceElement(e){if(!e)return log$1.error(`Source URL is required to remove the source element.`),!1;let t=this.el_.querySelectorAll(`source`);for(let $ of t)if($.src===e)return this.el_.removeChild($),!0;return log$1.warn(`No matching source element found with src: ${e}`),!1}reset(){e.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,$){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,$):super.addTextTrack(e,t,$)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);let t=import_document.default.createElement(`track`);return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){let $=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild($),$}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){let t=this.$$(`track`),$=t.length;for(;$--;)(e===t[$]||e===t[$].track)&&this.el().removeChild(t[$])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality==`function`)return this.el().getVideoPlaybackQuality();let e={};return this.el().webkitDroppedFrameCount!==void 0&&this.el().webkitDecodedFrameCount!==void 0&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),import_window.default.performance&&(e.creationTime=import_window.default.performance.now()),e}},defineLazyProperty(Html5,`TEST_VID`,function(){if(!isReal())return;let e=import_document.default.createElement(`video`),t=import_document.default.createElement(`track`);return t.kind=`captions`,t.srclang=`en`,t.label=`English`,e.appendChild(t),e}
228),Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch{return!1}return!!(Html5.TEST_VID&&Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(e){return Html5.TEST_VID.canPlayType(e)},Html5.canPlaySource=function(e,t){return Html5.canPlayType(e.type)},Html5.canControlVolume=function(){try{let e=Html5.TEST_VID.volume;Html5.TEST_VID.volume=e/2+.1;let t=e!==Html5.TEST_VID.volume;return t&&IS_IOS?(import_window.default.setTimeout(()=>{Html5&&Html5.prototype&&(Html5.prototype.featuresVolumeControl=e!==Html5.TEST_VID.volume)}),!1):t}catch{return!1}},Html5.canMuteVolume=function(){try{let e=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!e,Html5.TEST_VID.muted?setAttribute(Html5.TEST_VID,`muted`,`muted`):removeAttribute(Html5.TEST_VID,`muted`,`muted`),e!==Html5.TEST_VID.muted}catch{return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{let e=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=e/2+.1,e!==Html5.TEST_VID.playbackRate}catch{return!1}},Html5.canOverrideAttributes=function(){try{let e=()=>{};Object.defineProperty(import_document.default.createElement(`video`),`src`,{get:e,set:e}),Object.defineProperty(import_document.default.createElement(`audio`),`src`,{get:e,set:e}),Object.defineProperty(import_document.default.createElement(`video`),`innerHTML`,{get:e,set:e}),Object.defineProperty(import_document.default.createElement(`audio`),`innerHTML`,{get:e,set:e})}catch{return!1}return!0},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI||IS_IOS&&IS_CHROME},Html5.supportsNativeVideoTracks=function(){return!!(Html5.TEST_VID&&Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!!(Html5.TEST_VID&&Html5.TEST_VID.audioTracks)},Html5.Events=[`loadstart`,`suspend`,`abort`,`error`,`emptied`,`stalled`,`loadedmetadata`,`loadeddata`,`canplay`,`canplaythrough`,`playing`,`waiting`,`seeking`,`seeked`,`ended`,`durationchange`,`timeupdate`,`progress`,`play`,`pause`,`ratechange`,`resize`,`volumechange`],[[`featuresMuteControl`,`canMuteVolume`],[`featuresPlaybackRate`,`canControlPlaybackRate`],[`featuresSourceset`,`canOverrideAttributes`],[`featuresNativeTextTracks`,`supportsNativeTextTracks`],[`featuresNativeVideoTracks`,`supportsNativeVideoTracks`],[`featuresNativeAudioTracks`,`supportsNativeAudioTracks`]].forEach(function([e,t]){defineLazyProperty(Html5.prototype,e,()=>Html5[t](),!0)}),Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresVideoFrameCallback=!!(Html5.TEST_VID&&Html5.TEST_VID.requestVideoFrameCallback),Html5.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute(`src`),typeof e.load==`function`&&(function(){try{e.load()}catch{}})()}},Html5.resetMediaElement=function(e){if(!e)return;let t=e.querySelectorAll(`source`),$=t.length;for(;$--;)e.removeChild(t[$]);e.removeAttribute(`src`),typeof e.load==`function`&&(function(){try{e.load()}catch{}})()},[`muted`,`defaultMuted`,`autoplay`,`controls`,`loop`,`playsinline`].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),[`muted`,`defaultMuted`,`autoplay`,`loop`,`playsinline`].forEach(function(e){Html5.prototype[`set`+toTitleCase$1(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),[`paused`,`currentTime`,`buffered`,`volume`,`poster`,`preload`,`error`,`seeking`,`seekable`,`ended`,`playbackRate`,`defaultPlaybackRate`,`disablePictureInPicture`,`played`,`networkState`,`readyState`,`videoWidth`,`videoHeight`,`crossOrigin`].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]}}),[`volume`,`src`,`poster`,`preload`,`playbackRate`,`defaultPlaybackRate`,`disablePictureInPicture`,`crossOrigin`].forEach(function(e){Html5.prototype[`set`+toTitleCase$1(e)]=function(t){this.el_[e]=t}}),[`pause`,`load`,`play`].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(e){try{return Html5.TEST_
228VID.canPlayType(e)}catch{return``}},Html5.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Html5.nativeSourceHandler.canPlayType(e.type);if(e.src){let t=getFileExtension(e.src);return Html5.nativeSourceHandler.canPlayType(`video/${t}`)}return``},Html5.nativeSourceHandler.handleSource=function(e,t,$){t.setSrc(e.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech(`Html5`,Html5),TECH_EVENTS_RETRIGGER=[`progress`,`abort`,`suspend`,`emptied`,`stalled`,`loadedmetadata`,`loadeddata`,`timeupdate`,`resize`,`volumechange`,`texttrackchange`],TECH_EVENTS_QUEUE={canplay:`CanPlay`,canplaythrough:`CanPlayThrough`,playing:`Playing`,seeked:`Seeked`},BREAKPOINT_ORDER=[`tiny`,`xsmall`,`small`,`medium`,`large`,`xlarge`,`huge`],BREAKPOINT_CLASSES={},BREAKPOINT_ORDER.forEach(e=>{BREAKPOINT_CLASSES[e]=`vjs-layout-${e.charAt(0)===`x`?`x-${e.substring(1)}`:e}`}),DEFAULT_BREAKPOINTS={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Player$1=class e extends Component$1$1{constructor(t,$,ed){if(t.id=t.id||$.id||`vjs_video_${newGUID()}`,$=Object.assign(e.getTagSettings(t),$),$.initChildren=!1,$.createEl=!1,$.evented=!1,$.reportTouchActivity=!1,!$.language){let e=t.closest(`[lang]`);e&&($.language=e.getAttribute(`lang`))}if(super(null,$,ed),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.boundUpdatePlayerHeightOnAudioOnlyMode_=e=>this.updatePlayerHeightOnAudioOnlyMode_(e),this.isFullscreen_=!1,this.log=createLogger$5(this.id_),this.fsApi_=FullscreenApi,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error(`No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?`);if(this.tag=t,this.tagAttributes=t&&getAttributes(t),this.language(this.options_.language),$.languages){let e={};Object.getOwnPropertyNames($.languages).forEach(function(t){e[t.toLowerCase()]=$.languages[t]}),this.languages_=e}else this.languages_=e.prototype.options_.languages;this.resetCache_(),this.poster_=$.poster||``,this.controls_=!!$.controls,t.controls=!1,t.removeAttribute(`controls`),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],t.hasAttribute(`autoplay`)?this.autoplay(!0):this.autoplay(this.options_.autoplay),$.plugins&&Object.keys($.plugins).forEach(e=>{if(typeof this[e]!=`function`)throw Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),evented(this,{eventBusKey:`el_`}),this.fsApi_.requestFullscreen&&(on(import_document.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on([`playerreset`,`resize`],this.boundUpdateStyleEl_);let td=merge$1(this.options_);if($.plugins&&Object.keys($.plugins).forEach(e=>{this[e]($.plugins[e])}),$.debug&&this.debug(!0),this.options_.playerOptions=td,this.middleware_=[],this.playbackRates($.playbackRates),$.experimentalSvgIcons){let e=new import_window.default.DOMParser().parseFromString(icons,`image/svg+xml`);if(e.querySelector(`parsererror`))log$1.warn(`Failed to load SVG Icons. Falling back to Font Icons.`),this.options_.experimentalSvgIcons=null;else{let t=e.documentElement;t.style.display=`none`,this.el_.appendChild(t),this.addClass(`vjs-svg-icons-enabled`)}}this.initChildren(),this.isAudio(t.nodeName.toLowerCase()===`audio`),this.controls()?this.addClass(`vjs-controls-enabled`):this.addClass(`vjs-controls-disabled`),this.el_.setAttribute(`role`,`region`),this.isAudio()?this.el_.setAttribute(`aria-label`,this.localize(`Audio Player`)):this.el_.setAttribute(`aria-label`,this.localize(`Video Player`)),this.isAudio()&&this.addClass(`vjs-audio`),$.spatialNavigation&&$.spatialNavigation.enabled&&(this.spatialNavigation=new SpatialNavigation(this),this.addClass(`vjs-spatial-navigation-enabled`)),TOUCH_ENABLED&&this.addClass(`vjs-touch-enabled`),IS_IOS||this.addClass(`vjs-workinghover`),e.players[this.id_]=this;let nd=version$6.split(`.`)[0];this.addClass(`vjs-v${nd}`),this.userActive(!0),this.reportUserActivity(),this.one(`play`,e=>this.listenForUserActivity_(e)),this.on(`keydown`,e=>this.handleKeyDown(e)),this.on(`languagechange`,e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on(`ready`,()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger(`dispose`),this.off(`dispose`),off(import_document.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),off(import_document.default,`keydown`,this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=``),this.playerElIngest_&&=null,this.tag&&=null,clearCacheForPlayer(this),ALL.names.forEac
228h(e=>{let t=ALL[e],$=this[t.getterName]();$&&$.off&&$.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,t,$=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute(`data-vjs-player`),ed=this.tag.tagName.toLowerCase()===`video-js`;$?t=this.el_=e.parentNode:ed||(t=this.el_=super.createEl(`div`));let td=getAttributes(e);if(ed){for(t=this.el_=e,e=this.tag=import_document.default.createElement(`video`);t.children.length;)e.appendChild(t.firstChild);hasClass(t,`video-js`)||addClass(t,`video-js`),t.appendChild(e),$=this.playerElIngest_=t,Object.keys(t).forEach($=>{try{e[$]=t[$]}catch{}})}e.setAttribute(`tabindex`,`-1`),td.tabindex=`-1`,IS_CHROME&&IS_WINDOWS&&(e.setAttribute(`role`,`application`),td.role=`application`),e.removeAttribute(`width`),e.removeAttribute(`height`),`width`in td&&delete td.width,`height`in td&&delete td.height,Object.getOwnPropertyNames(td).forEach(function($){ed&&$===`class`||t.setAttribute($,td[$]),ed&&e.setAttribute($,td[$])}),e.playerId=e.id,e.id+=`_html5_api`,e.className=`vjs-tech`,e.player=t.player=this,this.addClass(`vjs-paused`);let nd=[`IS_SMART_TV`,`IS_TIZEN`,`IS_WEBOS`,`IS_ANDROID`,`IS_IPAD`,`IS_IPHONE`,`IS_CHROMECAST_RECEIVER`].filter(e=>browser$1[e]).map(e=>`vjs-device-`+e.substring(3).toLowerCase().replace(/\_/g,`-`));if(this.addClass(...nd),import_window.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement(`vjs-styles-dimensions`);let e=$$21(`.vjs-styles-defaults`),t=$$21(`head`);t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);let rd=e.getElementsByTagName(`a`);for(let e=0;e<rd.length;e++){let t=rd.item(e);addClass(t,`vjs-hidden`),t.setAttribute(`hidden`,`hidden`)}return e.initNetworkState_=e.networkState,e.parentNode&&!$&&e.parentNode.insertBefore(t,e),prependTo(e,t),this.children_.unshift(e),this.el_.setAttribute(`lang`,this.language_),this.el_.setAttribute(`translate`,`no`),this.el_=t,t}crossOrigin(e){if(e===void 0)return this.techGet_(`crossOrigin`);if(e!==null&&e!==`anonymous`&&e!==`use-credentials`){log$1.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_(`setCrossOrigin`,e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension(`width`,e)}height(e){return this.dimension(`height`,e)}dimension(e,t){let $=e+`_`;if(t===void 0)return this[$]||0;if(t===``||t===`auto`){this[$]=void 0,this.updateStyleEl_();return}let ed=parseFloat(t);if(isNaN(ed)){log$1.error(`Improper value "${t}" supplied for for ${e}`);return}this[$]=ed,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,isEvented(this)&&this.off([`playerreset`,`resize`],this.boundUpdateStyleEl_),e?(this.addClass(`vjs-fluid`),this.fill(!1),addEventedCallback(this,()=>{this.on([`playerreset`,`resize`],this.boundUpdateStyleEl_)})):this.removeClass(`vjs-fluid`),this.updateStyleEl_()}fill(e){if(e===void 0)return!!this.fill_;this.fill_=!!e,e?(this.addClass(`vjs-fill`),this.fluid(!1)):this.removeClass(`vjs-fill`)}aspectRatio(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw Error(`Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.`);this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(import_window.default.VIDEOJS_NO_DYNAMIC_STYLE===!0){let e=typeof this.width_==`number`?this.width_:this.options_.width,t=typeof this.height_==`number`?this.height_:this.options_.height,$=this.tech_&&this.tech_.el();$&&(e>=0&&($.width=e),t>=0&&($.height=t));return}let e,t,$,ed;$=this.aspectRatio_!==void 0&&this.aspectRatio_!==`auto`?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+`:`+this.videoHeight():`16:9`;let td=$.split(`:`),nd=td[1]/td[0];e=this.width_===void 0?this.height_===void 0?this.videoWidth()||300:this.height_/nd:this.width_,t=this.height_===void 0?e*nd:this.height_,ed=/^[^a-zA-Z]/.test(this.id())?`dimensions-`+this.id():this.id()+`-dimensions`,this.addClass(ed),setTextContent(this.styleEl_,` 229 .${ed} { 230 width: ${e}px; 231 height: ${t}px; 232 } 233 234 .${ed}.vjs-fluid:not(.vjs-audio-only-mode) { 235 padding-top: ${nd*100}%; 236 } 237 `)}loadTech_(e,t){this.tech_&&this.unloadTech_();let $=toTitleCase$1(e),ed=e.charAt(0).toLowerCase()+e.slice(1);$!==`Html5`&&this.tag&&(Tech.getTech(`Html5`).disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=$,this.isReady_=!1;let td=this.autoplay();(typeof this.autoplay()==`string`||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(td=!1);let nd={source:t,autoplay:td,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${ed}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_[`vtt.js`],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
237ALL.names.forEach(e=>{let t=ALL[e];nd[t.getterName]=this[t.privateName]}),Object.assign(nd,this.options_[$]),Object.assign(nd,this.options_[ed]),Object.assign(nd,this.options_[e.toLowerCase()]),this.tag&&(nd.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(nd.startTime=this.cache_.currentTime);let rd=Tech.getTech(e);if(!rd)throw Error(`No Tech named '${$}' exists! '${$}' should be registered using videojs.registerTech()'`);this.tech_=new rd(nd),this.tech_.ready(bind_(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${toTitleCase$1(e)}_`](t))}),Object.keys(TECH_EVENTS_QUEUE).forEach(e=>{this.on(this.tech_,e,t=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${TECH_EVENTS_QUEUE[e]}_`].bind(this),event:t});return}this[`handleTech${TECH_EVENTS_QUEUE[e]}_`](t)})}),this.on(this.tech_,`loadstart`,e=>this.handleTechLoadStart_(e)),this.on(this.tech_,`sourceset`,e=>this.handleTechSourceset_(e)),this.on(this.tech_,`waiting`,e=>this.handleTechWaiting_(e)),this.on(this.tech_,`ended`,e=>this.handleTechEnded_(e)),this.on(this.tech_,`seeking`,e=>this.handleTechSeeking_(e)),this.on(this.tech_,`play`,e=>this.handleTechPlay_(e)),this.on(this.tech_,`pause`,e=>this.handleTechPause_(e)),this.on(this.tech_,`durationchange`,e=>this.handleTechDurationChange_(e)),this.on(this.tech_,`fullscreenchange`,(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,`fullscreenerror`,(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,`enterpictureinpicture`,e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,`leavepictureinpicture`,e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,`error`,e=>this.handleTechError_(e)),this.on(this.tech_,`posterchange`,e=>this.handleTechPosterChange_(e)),this.on(this.tech_,`textdata`,e=>this.handleTechTextData_(e)),this.on(this.tech_,`ratechange`,e=>this.handleTechRateChange_(e)),this.on(this.tech_,`loadedmetadata`,this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_(`controls`)),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&($!==`Html5`||!this.tag)&&prependTo(this.tech_.el(),this.el()),this.tag&&=(this.tag.player=null,null)}unloadTech_(){ALL.names.forEach(e=>{let t=ALL[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_=``,this.trigger(`posterchange`)),this.isPosterFromTech_=!1}tech(e){return e===void 0&&log$1.warn(`Using the tech directly can be dangerous. I hope you know
237what you're doing. 238See https://github.com/videojs/video.js/issues/2617 for more info. 239`),this.tech_}version(){return{"video.js":version$6}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,`click`,this.boundHandleTechClick_),this.on(this.tech_,`dblclick`,this.boundHandleTechDoubleClick_),this.on(this.tech_,`touchstart`,this.boundHandleTechTouchStart_),this.on(this.tech_,`touchmove`,this.boundHandleTechTouchMove_),this.on(this.tech_,`touchend`,this.boundHandleTechTouchEnd_),this.on(this.tech_,`tap`,this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,`tap`,this.boundHandleTechTap_),this.off(this.tech_,`touchstart`,this.boundHandleTechTouchStart_),this.off(this.tech_,`touchmove`,this.boundHandleTechTouchMove_),this.off(this.tech_,`touchend`,this.boundHandleTechTouchEnd_),this.off(this.tech_,`click`,this.boundHandleTechClick_),this.off(this.tech_,`dblclick`,this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_(`setVolume`,this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass(`vjs-ended`,`vjs-seeking`),this.error(null),this.handleTechDurationChange_(),this.paused()&&this.hasStarted(!1),this.trigger(`loadstart`),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?`play`:this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!=`string`)return;let t=()=>{let e=this.muted();this.muted(!0);let t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);let $=this.play();if(isPromise($))return $.catch(e=>{throw t(),Error(`Rejection at manualAutoplay. Restoring muted value. ${e||``}`)})},$;if(e===`any`&&!this.muted()?($=this.play(),isPromise($)&&($=$.catch(t))):$=e===`muted`&&!this.muted()?t():this.play(),isPromise($))return $.then(()=>{this.trigger({type:`autoplay-success`,autoplay:e})}).catch(()=>{this.trigger({type:`autoplay-failure`,autoplay:e})})}updateSourceCaches_(e=``){let t=e,$=``;typeof t!=`string`&&(t=e.src,$=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!$&&($=findMimetype(this,t)),this.cache_.source=merge$1({},e,{src:t,type:$});let ed=this.cache_.sources.filter(e=>e.src&&e.src===t),td=[],nd=this.$$(`source`),rd=[];for(let e=0;e<nd.length;e++){let $=getAttributes(nd[e]);td.push($),$.src&&$.src===t&&rd.push($.src)}rd.length&&!ed.length?this.cache_.sources=td:ed.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e),$=this.currentSource().src,ed=e.src;$&&!/^blob:/.test($)&&/^blob:/.test(ed)&&(!this.lastSource_||this.lastSource_.tech!==ed&&this.lastSource_.player!==$)&&(t=()=>{}),t(ed),e.src||this.tech_.any([`sourceset`,`loadstart`],e=>{if(e.type===`sourceset`)return;let t=this.techGet_(`currentSrc`);this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:`sourceset`})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass(`vjs-has-started`):this.removeClass(`vjs-has-started`))}handleTechPlay_(){this.removeClass(`vjs-ended`,`vjs-paused`),this.addClass(`vjs-playing`),this.hasStarted(!0),this.trigger(`play`)}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger(`ratechange`)}handleTechWaiting_(){this.addClass(`vjs-waiting`),this.trigger(`waiting`);let e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass(`vjs-waiting`),this.off(`timeupdate`,t))};this.on(`timeupdate`,t)}handleTechCanPlay_(){this.removeClass(`vjs-waiting`),this.trigger(`canplay`)}handleTechCanPlayThrough_(){this.removeClass(`vjs-waiting`),this.trigger(`canplaythrough`)}handleTechPlaying_(){this.removeClass(`vjs-waiting`),this.trigger(`playing`)}handleTechSeeking_(){this.addClass(`vjs-seeking`),this.trigger(`seeking`)}handleTechSeeked_(){this.removeClass(`vjs-seeking`,`vjs-ended`),this.trigger(`seeked`)}handleTechPause_(){this.removeClass(`vjs-playing`),this.addClass(`vjs-paused`),this.trigger(`pause`)}
239handleTechEnded_(){this.addClass(`vjs-ended`),this.removeClass(`vjs-waiting`),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger(`ended`)}handleTechDurationChange_(){this.duration(this.techGet_(`duration`))}handleTechClick_(e){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click==`function`?this.options_.userActions.click.call(this,e):this.paused()?silencePromise(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(`.vjs-control-bar, .vjs-modal-dialog`),t=>t.contains(e.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick==`function`?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!import_document.default.pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass(`vjs-fullscreen`):this.removeClass(`vjs-fullscreen`)}documentFullscreenChange_(e){let t=e.target.player;if(t&&t!==this)return;let $=this.el(),ed=import_document.default[this.fsApi_.fullscreenElement]===$;!ed&&$.matches&&(ed=$.matches(`:`+this.fsApi_.fullscreen)),this.isFullscreen(ed)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass(`vjs-ios-native-fs`),this.tech_.one(`webkitendfullscreen`,()=>{this.removeClass(`vjs-ios-native-fs`)})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger(`fullscreenerror`,t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass(`vjs-picture-in-picture`):this.removeClass(`vjs-picture-in-picture`)}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){let e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger(`textdata`,e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:``,source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in allowedSetters)return set(this.middleware_,this.tech_,e,t);if(e in allowedMediators)return mediate(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw log$1(e),e}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in allowedGetters)return get$2(this.middleware_,this.tech_,e);if(e in allowedMediators)return mediate(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){throw this.tech_[e]===void 0?(log$1(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t):t.name===`TypeError`?(log$1(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t):(log$1(t),t)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=silencePromise){this.playCallbacks_.push(e);let t=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),$=!!(IS_ANY_SAFARI||IS_IOS);if(this.waitToPlay_&&=(this.off([`ready`,`loadstart`],this.waitToPlay_),null),!this.isReady_||!t){this.waitToPlay_=e=>{this.play_()},this.one([`ready`,`loadstart`],this.waitToPlay_),!t&&$&&this.load();return}let ed=this.techGet_(`play`);$&&this.hasClass(`vjs-ended`)&&this.resetProgressBar_(),ed===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(ed)}runPlayTerminatedQueue_(){let e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){let t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_(`pause`)}paused(){return this.techGet_(`paused`)!==!1}played(){return this.techGet_(`played`)||createTimeRanges$1(0,0)}scrubbing(e){if(e===void 0)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_(`setScrubbing`,this.scrubbing_),e?this.addClass(`vjs-scrubbing`):this.removeClass(`vjs-scrubbing`)}currentTime(e){if(e===void 0)return this.cache_.currentTime=this.techGet_(`currentTime`)||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off(`canplay`,this.boundApplyInitTime_),this.one(`canplay`,this.boundApplyInitTime_);return}this.techCall_(`setCurrentTime`,e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(e===void 0)return this.cache_.duration===void 0?NaN:this.cache_.duration;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass(`vjs-live`):this.removeClass(`vjs-live`),isNaN(e)||this.trigger(`durationchange`))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_(`buffered`);return(!e||!e.length)&&(e=createTimeRanges$1(0,0)),e}seekable(){let e=this.techGet_(`seekable`);return(!e||!e.length)&&(e=createTimeRanges$1(0,0)),e}seeking(){return this.techGet_(`seeking`)}ended(){return this.techGet_(`ended`)}networkState(){return this.techGet_(`networkState`)}readyState(){return this.techGet_(`readyState`)}bufferedPercent(){return bufferedPercent(this.buffered(),this.duration())}bufferedEnd(){let e=this.buffered(),t=this.duration(),$=e.end(e.length-1);return $>t&&($=t),$}volume(e){let t;if(e!==void 0){t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_(`setVolume`,t),t>0&&this.lastVolume_(t);return}return t=parseFloat(this.techGet_(`volume`)),isNaN(t)?1:t}muted(e){if(e!==void 0){this.techCall_(`setMuted`,e);return}return this.techGet_(`muted`)||!1}defaultMuted(e){return e!==void 0&&this.techCall_(`setDefaultMuted`,e),this.techGet_(`defaultMuted`)||!1}lastVolume_(e){if(e!==void 0&&e!==0){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_(`supportsFullScreen`)||!1}isFullscreen(e){if(e!==void 0){let t=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger(`fullscreenchange`),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();let t=this;return new Promise(($,ed)=>{function td(){t.off(`fullscreenerror`,rd),t.off(`fullscreenchange`,nd)}
239function nd(){td(),$()}function rd(e,t){td(),ed(t)}t.one(`fullscreenchange`,nd),t.one(`fullscreenerror`,rd);let id=t.requestFullscreenHelper_(e);id&&(id.then(td,td),id.then($,ed))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(t=e)),this.fsApi_.requestFullscreen){let e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_(`enterFullScreen`):this.enterFullWindow()}exitFullscreen(){let e=this;return new Promise((t,$)=>{function ed(){e.off(`fullscreenerror`,nd),e.off(`fullscreenchange`,td)}function td(){ed(),t()}function nd(e,t){ed(),$(t)}e.one(`fullscreenchange`,td),e.one(`fullscreenerror`,nd);let rd=e.exitFullscreenHelper_();rd&&(rd.then(ed,ed),rd.then(t,$))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){let e=import_document.default[this.fsApi_.exitFullscreen]();return e&&silencePromise(e.then(()=>this.isFullscreen(!1))),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_(`exitFullScreen`):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=import_document.default.documentElement.style.overflow,on(import_document.default,`keydown`,this.boundFullWindowOnEscKey_),import_document.default.documentElement.style.overflow=`hidden`,addClass(import_document.default.body,`vjs-full-window`),this.trigger(`enterFullWindow`)}fullWindowOnEscKey(e){e.key===`Escape`&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,off(import_document.default,`keydown`,this.boundFullWindowOnEscKey_),import_document.default.documentElement.style.overflow=this.docOrigOverflow,removeClass(import_document.default.body,`vjs-full-window`),this.trigger(`exitFullWindow`)}disablePictureInPicture(e){if(e===void 0)return this.techGet_(`disablePictureInPicture`);this.techCall_(`setDisablePictureInPicture`,e),this.options_.disablePictureInPicture=e,this.trigger(`disablepictureinpicturechanged`)}isInPictureInPicture(e){if(e!==void 0){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&import_window.default.documentPictureInPicture){let e=import_document.default.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add(`vjs-pip-container`),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(createEl(`p`,{className:`vjs-pip-text`},{},this.localize(`Playing in picture-in-picture`))),import_window.default.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(copyStyleSheetsToWindow(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add(`vjs-pip-window`),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:`enterpictureinpicture`,pipWindow:t}),t.addEventListener(`pagehide`,t=>{let $=t.target.querySelector(`.video-js`);e.parentNode.replaceChild($,e),this.player_.isInPictureInPicture(!1),this.player_.trigger(`leavepictureinpicture`)}),t))}return`pictureInPictureEnabled`in import_document.default&&this.disablePictureInPicture()===!1?this.techGet_(`requestPictureInPicture`):Promise.reject(`No PiP mode is available`)}exitPictureInPicture(){if(import_window.default.documentPictureInPicture&&import_window.default.documentPictureInPicture.window)return import_window.default.documentPictureInPicture.window.close(),Promise.resolve();if(`pictureInPictureEnabled`in import_document.default)return import_document.default.exitPictureInPicture()}handleKeyDown(e){let{userActions:t}=this.options_;!t||!t.hotkeys||(e=>{let t=e.tagName.toLowerCase();return e.isContentEditable?!0:t===`input`?[`button`,`checkbox`,`hidden`,`radio`,`reset`,`submit`].indexOf(e.type)===-1:[`textarea`].indexOf(t)!==-1})(this.el_.ownerDocument.activeElement)||(typeof t.hotkeys==`function`?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){let{fullscreenKey:t=t=>e.key.toLowerCase()===`f`,muteKey:$=t=>e.key.toLowerCase()===`m`,playPauseKey:ed=t=>e.key.toLowerCase()===`k`||e.key.toLowerCase()===` `}=this.options_.userActions?this.options_.userActions.hotkeys:{};if(t.call(this,e)){e.preventDefault(),e.stopPropagation();let t=Component$1$1.getComponent(`FullscreenToggle`);import_document.default[this.fsApi_.fullscreenEnabled]!==!1&&t.prototype.handleClick.call(this,e)}else $.call(this,e)?(e.preventDefault(),e.stopPropagation(),Component$1$1.getComponent(`MuteToggle`).prototype.handleClick.call(this,e)):ed.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Component$1$1.getComponent(`PlayToggle`).prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let $=0,ed=this.options_.techOrder;$<ed.length;$++){let td=ed[$],nd=Tech.getTech(td);if(nd||=Component$1$1.getComponent(td),!nd){log$1.error(`The "${td}" tech is undefined. Skipped browser support check for that tech.`);continue}if(nd.isSupported()&&(t=nd.canPlayType(e),t))return t}return``}selectSource(e){let t=this.options_.techOrder.map(e=>[e,Tech.getTech(e)]).filter(([e,t])=>t?t.isSupported():(log$1.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),$=function(e,t,$){let ed;return e.some(e=>
239t.some(t=>{if(ed=$(e,t),ed)return!0})),ed},ed,td=e=>(t,$)=>e($,t),nd=([e,t],$)=>{if(t.canPlaySource($,this.options_[e.toLowerCase()]))return{source:$,tech:e}};return ed=this.options_.sourceOrder?$(e,t,td(nd)):$(t,e,nd),ed||!1}handleSrc_(e,t){if(e===void 0)return this.cache_.src||``;this.resetRetryOnError_&&this.resetRetryOnError_();let $=filterSource(e);if(!$.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,t||(this.cache_.sources=$),this.updateSourceCaches_($[0]),setSource(this,$[0],(e,ed)=>{if(this.middleware_=ed,t||(this.cache_.sources=$),this.updateSourceCaches_(e),this.src_(e)){if($.length>1)return this.handleSrc_($.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}setTech(ed,this.tech_)}),$.length>1){let e=()=>{this.error(null),this.handleSrc_($.slice(1),!0)},t=()=>{this.off(`error`,e)};this.one(`error`,e),this.one(`playing`,t),this.resetRetryOnError_=()=>{this.off(`error`,e),this.off(`playing`,t)}}}src(e){return this.handleSrc_(e,!1)}src_(e){let t=this.selectSource([e]);return t?titleCaseEquals(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty(`setSource`)?this.techCall_(`setSource`,e):this.techCall_(`src`,e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}addSourceElement(e,t){return this.tech_?this.tech_.addSourceElement(e,t):!1}removeSourceElement(e){return this.tech_?this.tech_.removeSourceElement(e):!1}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_(`load`)}reset(){this.paused()?this.doReset_():silencePromise(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks(`text`),this.removeClass(`vjs-playing`),this.addClass(`vjs-paused`),this.resetCache_(),this.poster(``),this.loadTech_(this.options_.techOrder[0],null),this.techCall_(`reset`),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),isEvented(this)&&this.trigger(`playerreset`)}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);let{currentTimeDisplay:e,durationDisplay:t,progressControl:$,remainingTimeDisplay:ed}=this.controlBar||{},{seekBar:td}=$||{};e&&e.updateContent(),t&&t.updateContent(),ed&&ed.updateContent(),td&&(td.update(),td.loadProgressBar&&td.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger(`volumechange`)}currentSources(){let e=this.currentSource(),t=[];return Object.keys(e).length!==0&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||``}currentType(){return this.currentSource()&&this.currentSource().type||``}preload(e){if(e!==void 0){this.techCall_(`setPreload`,e),this.options_.preload=e;return}return this.techGet_(`preload`)}autoplay(e){if(e===void 0)return this.options_.autoplay||!1;let t;typeof e==`string`&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e==`string`?e:`play`),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=t===void 0?this.options_.autoplay:t,this.tech_&&this.techCall_(`setAutoplay`,t)}playsinline(e){return e!==void 0&&(this.techCall_(`setPlaysinline`,e),this.options_.playsinline=e),this.techGet_(`playsinline`)}loop(e){if(e!==void 0){this.techCall_(`setLoop`,e),this.options_.loop=e;return}return this.techGet_(`loop`)}poster(e){if(e===void 0)return this.poster_;e||=``,e!==this.poster_&&(this.poster_=e,this.techCall_(`setPoster`,e),this.isPosterFromTech_=!1,this.trigger(`posterchange`))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){let e=this.tech_.poster()||``;e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger(`posterchange`))}}
239controls(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_(`setControls`,e),this.controls_?(this.removeClass(`vjs-controls-disabled`),this.addClass(`vjs-controls-enabled`),this.trigger(`controlsenabled`),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass(`vjs-controls-enabled`),this.addClass(`vjs-controls-disabled`),this.trigger(`controlsdisabled`),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass(`vjs-using-native-controls`),this.trigger(`usingnativecontrols`)):(this.removeClass(`vjs-using-native-controls`),this.trigger(`usingcustomcontrols`)))}error(e){if(e===void 0)return this.error_||null;if(hooks(`beforeerror`).forEach(t=>{let $=t(this,e);if(!(isObject$2($)&&!Array.isArray($)||typeof $==`string`||typeof $==`number`||$===null)){this.log.error(`please return a value that MediaError expects in beforeerror hooks`);return}e=$}),this.options_.suppressNotSupportedError&&e&&e.code===4){let t=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any([`click`,`touchstart`],t),this.one(`loadstart`,function(){this.off([`click`,`touchstart`],t)});return}if(e===null){this.error_=null,this.removeClass(`vjs-error`),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new MediaError(e),this.addClass(`vjs-error`),log$1.error(`(CODE:${this.error_.code} ${MediaError.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger(`error`),hooks(`error`).forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(e===void 0)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass(`vjs-user-inactive`),this.addClass(`vjs-user-active`),this.trigger(`useractive`);return}this.tech_&&this.tech_.one(`mousemove`,function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass(`vjs-user-active`),this.addClass(`vjs-user-inactive`),this.trigger(`userinactive`)}}listenForUserActivity_(){let e,t,$,ed=bind_(this,this.reportUserActivity),td=function(e){(e.screenX!==t||e.screenY!==$)&&(t=e.screenX,$=e.screenY,ed())},nd=function(){ed(),this.clearInterval(e),e=this.setInterval(ed,250)},rd=function(t){ed(),this.clearInterval(e)};this.on(`mousedown`,nd),this.on(`mousemove`,td),this.on(`mouseup`,rd),this.on(`mouseleave`,rd);let id=this.getChild(`controlBar`);id&&!IS_IOS&&!IS_ANDROID&&(id.on(`mouseenter`,function(e){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),id.on(`mouseleave`,function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on(`keydown`,ed),this.on(`keyup`,ed);let ad;this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(ad);let e=this.options_.inactivityTimeout;e<=0||(ad=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){if(e!==void 0){this.techCall_(`setPlaybackRate`,e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_(`playbackRate`):1}defaultPlaybackRate(e){return e===void 0?this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_(`defaultPlaybackRate`):1:this.techCall_(`setDefaultPlaybackRate`,e)}isAudio(e){if(e!==void 0){this.isAudio_=!!e;return}return!!this.isAudio_}updatePlayerHeightOnAudioOnlyMode_(){let e=this.getChild(`ControlBar`);!e||this.audioOnlyCache_.controlBarHeight===e.currentHeight()||(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass(`vjs-audio-only-mode`);let e=this.children(),t=this.getChild(`ControlBar`),$=t&&t.currentHeight();
239e.forEach(e=>{e!==t&&e.el_&&!e.hasClass(`vjs-hidden`)&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=$,this.on(`playerresize`,this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height($),this.trigger(`audioonlymodechange`)}disableAudioOnlyUI_(){this.removeClass(`vjs-audio-only-mode`),this.off(`playerresize`,this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger(`audioonlymodechange`)}audioOnlyMode(e){if(typeof e!=`boolean`||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){let e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass(`vjs-audio-poster-mode`),this.trigger(`audiopostermodechange`)}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass(`vjs-audio-poster-mode`),this.trigger(`audiopostermodechange`)}audioPosterMode(e){return typeof e!=`boolean`||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,$){if(this.tech_)return this.tech_.addTextTrack(e,t,$)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||=e,this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_(`getVideoPlaybackQuality`)}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(e===void 0)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),isEvented(this)&&this.trigger(`languagechange`))}languages(){return merge$1(e.prototype.options_.languages,this.languages_)}toJSON(){let e=merge$1(this.options_),t=e.tracks;e.tracks=[];for(let $=0;$<t.length;$++){let ed=t[$];ed=merge$1(ed),ed.player=void 0,e.tracks[$]=ed}return e}createModal(e,t){t||={},t.content=e||``;let $=new ModalDialog(this,t);return this.addChild($),$.on(`dispose`,()=>{this.removeChild($)}),$.open(),$}updateCurrentBreakpoint_(){if(!this.responsive())return;let e=this.currentBreakpoint(),t=this.currentWidth();for(let $=0;$<BREAKPOINT_ORDER.length;$++){let ed=BREAKPOINT_ORDER[$];if(t<=this.breakpoints_[ed]){if(e===ed)return;e&&this.removeClass(BREAKPOINT_CLASSES[e]),this.addClass(BREAKPOINT_CLASSES[ed]),this.breakpoint_=ed;break}}}removeCurrentBreakpoint_(){let e=this.currentBreakpointClass();this.breakpoint_=``,e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.breakpoint_=``,this.breakpoints_=Object.assign({},DEFAULT_BREAKPOINTS,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=!!e;let t=this.responsive_;if(e!==t)return this.responsive_=e,e?(this.on(`playerresize`,this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off(`playerresize`,this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return BREAKPOINT_CLASSES[this.breakpoint_]||``}loadMedia(e,t){if(!e||typeof e!=`object`)return;let $=this.crossOrigin();this.reset(),this.cache_.media=merge$1(e);let{artist:ed,artwork:td,description:nd,poster:rd,src:id,textTracks:ad,title:od}=this.cache_.media;!td&&rd&&(this.cache_.media.artwork=[{src:rd,type:getMimetype(rd)}]),$&&this.crossOrigin($),id&&this.src(id),rd&&this.poster(rd),Array.isArray(ad)&&ad.forEac
239h(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:od,description:nd||ed||``}),this.ready(t)}getMedia(){if(!this.cache_.media){let e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:getMimetype(t.poster)}]),t}return merge$1(this.cache_.media)}static getTagSettings(e){let t={sources:[],tracks:[]},$=getAttributes(e),ed=$[`data-setup`];if(hasClass(e,`vjs-fill`)&&($.fill=!0),hasClass(e,`vjs-fluid`)&&($.fluid=!0),ed!==null)try{Object.assign($,JSON.parse(ed||`{}`))}catch(e){log$1.error(`data-setup`,e)}if(Object.assign(t,$),e.hasChildNodes()){let $=e.childNodes;for(let e=0,ed=$.length;e<ed;e++){let ed=$[e],td=ed.nodeName.toLowerCase();td===`source`?t.sources.push(getAttributes(ed)):td===`track`&&t.tracks.push(getAttributes(ed))}}return t}debug(e){if(e===void 0)return this.debugEnabled_;e?(this.trigger(`debugon`),this.previousLogLevel_=this.log.level,this.log.level(`debug`),this.debugEnabled_=!0):(this.trigger(`debugoff`),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(e===void 0)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>typeof e==`number`)&&(this.cache_.playbackRates=e,this.trigger(`playbackrateschange`))}},Player$1.prototype.videoTracks=()=>{},Player$1.prototype.audioTracks=()=>{},Player$1.prototype.textTracks=()=>{},Player$1.prototype.remoteTextTracks=()=>{},Player$1.prototype.remoteTextTrackEls=()=>{},ALL.names.forEach(function(e){let t=ALL[e];Player$1.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player$1.prototype.crossorigin=Player$1.prototype.crossOrigin,Player$1.players={},navigator$1=import_window.default.navigator,Player$1.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:[`mediaLoader`,`posterImage`,`titleBar`,`textTrackDisplay`,`loadingSpinner`,`bigPlayButton`,`liveTracker`,`controlBar`,`errorDisplay`,`textTrackSettings`,`resizeManager`],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||`en`,languages:{},notSupportedMessage:`No compatible source was found for this media.`,normalizeAutoplay:!1,fullscreen:{options:{navigationUI:`hide`}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1,disableSeekWhileScrubbingOnSTV:!1},TECH_EVENTS_RETRIGGER.forEach(function(e){Player$1.prototype[`handleTech${toTitleCase$1(e)}_`]=function(){return this.trigger(e)}}),Component$1$1.registerComponent(`Player`,Player$1),BASE_PLUGIN_NAME=`plugin`,PLUGIN_CACHE_KEY=`activePlugins_`,pluginStorage={},pluginExists=e=>pluginStorage.hasOwnProperty(e),getPlugin=e=>pluginExists(e)?pluginStorage[e]:void 0,markPluginAsActive=(e,t)=>{e[PLUGIN_CACHE_KEY]=e[PLUGIN_CACHE_KEY]||{},e[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=(e,t,$)=>{let ed=($?`before`:``)+`pluginsetup`;e.trigger(ed,t),e.trigger(ed+`:`+t.name,t)},createBasicPlugin=function(e,t){let $=function(){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);let $=t.apply(this,arguments);return markPluginAsActive(this,e),triggerSetupEvent(this,{name:e,plugin:t,instance:$}),$};return Object.keys(t).forEach(function(e){$[e]=t[e]}),$},createPluginFactory=(e,t)=>(t.prototype.name=e,function(...$){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);let ed=new t(this,...$);return this[e]=()=>ed,triggerSetupEvent(this,ed.getEventHash()),ed}),Plugin=class e{constructor(t){if(this.constructor===e)throw Error(`Plugin must be sub-classed; not directly instantiated.`);this.player=t,this.log||=this.player.log.createLogger(this.name),evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=this.dispose.bind(this),t.on(`dispose`,this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return trigger(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){let{name:e,player:t}=this;this.trigger(`dispose`),this.off(),t.off(`dispose`,this.dispose),t[PLUGIN_CACHE_KEY][e]=!1,this.player=this.state=null,t[e]=createPluginFactory(e,pluginStorage[e])}static isBasic(t){let $=typeof t==`string`?getPlugin(t):t;return typeof $==`function`&&!e.prototype.isPrototypeOf($.prototype)}static registerPlugin(t,$){if(typeof t!=`string`)throw Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(pluginExists(t))log$1.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(Player$1.prototype.hasOwnProperty(t))throw Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if(typeof $!=`function`)throw Error(`Illegal plugin for "${t}", must be a function, was ${typeof $}.`);return pluginStorage[t]=$,t!==BASE_PLUGIN_NAME&&(e.isBasic($)?Player$1.prototype[t]=createBasicPlugin(t,$):Player$1.prototype[t]=createPluginFactory(t,$)),$}static deregisterPlugin(e){if(e===BASE_PLUGIN_NAME)throw Error(`Cannot de-register base plugin.`);pluginExists(e)&&(delete pluginStorage[e],delete Player$1.prototype[e])}static getPlugins(e=Object.keys(pluginStorage)){let t;
239return e.forEach(e=>{let $=getPlugin(e);$&&(t||={},t[e]=$)}),t}static getPluginVersion(e){let t=getPlugin(e);return t&&t.VERSION||``}},Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player$1.prototype.usingPlugin=function(e){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][e]===!0},Player$1.prototype.hasPlugin=function(e){return!!pluginExists(e)},VjsErrors={NetworkBadStatus:`networkbadstatus`,NetworkRequestFailed:`networkrequestfailed`,NetworkRequestAborted:`networkrequestaborted`,NetworkRequestTimeout:`networkrequesttimeout`,NetworkBodyParserFailed:`networkbodyparserfailed`,StreamingHlsPlaylistParserError:`streaminghlsplaylistparsererror`,StreamingDashManifestParserError:`streamingdashmanifestparsererror`,StreamingContentSteeringParserError:`streamingcontentsteeringparsererror`,StreamingVttParserError:`streamingvttparsererror`,StreamingFailedToSelectNextSegment:`streamingfailedtoselectnextsegment`,StreamingFailedToDecryptSegment:`streamingfailedtodecryptsegment`,StreamingFailedToTransmuxSegment:`streamingfailedtotransmuxsegment`,StreamingFailedToAppendSegment:`streamingfailedtoappendsegment`,StreamingCodecsChangeError:`streamingcodecschangeerror`},normalizeId=e=>
239e.indexOf(`#`)===0?e.slice(1):e,videojs.hooks_=hooks_,videojs.hooks=hooks,videojs.hook=hook,videojs.hookOnce=hookOnce,videojs.removeHook=removeHook,import_window.default.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){let e=$$21(`.vjs-styles-defaults`);if(!e){e=createStyleElement(`vjs-styles-defaults`);let t=$$21(`head`);t&&t.insertBefore(e,t.firstChild),setTextContent(e,` 240 .video-js { 241 width: 300px; 242 height: 150px; 243 } 244 245 .vjs-fluid:not(.vjs-audio-only-mode) { 246 padding-top: 56.25% 247 } 248 `)}}autoSetupTimeout(1,videojs),videojs.VERSION=version$6,videojs.options=Player$1.prototype.options_,videojs.getPlayers=()=>Player$1.players,videojs.getPlayer=e=>{let t=Player$1.players,$;if(typeof e==`string`){let ed=normalizeId(e),td=t[ed];if(td)return td;$=$$21(`#`+ed)}else $=e;if(isEl($)){let{player:e,playerId:ed}=$;if(e||t[ed])return e||t[ed]}},videojs.getAllPlayers=()=>Object.keys(Player$1.players).map(e=>Player$1.players[e]).filter(Boolean),videojs.players=Player$1.players,videojs.getComponent=Component$1$1.getComponent,videojs.registerComponent=(e,t)=>(Tech.isTech(t)&&log$1.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Component$1$1.registerComponent.call(Component$1$1,e,t)),videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,Object.defineProperty(videojs,`middleware`,{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(videojs.middleware,`TERMINATOR`,{value:TERMINATOR,writeable:!1,enumerable:!0}),videojs.browser=browser$1,videojs.obj=Obj,videojs.mergeOptions=deprecateForMajor(9,`videojs.mergeOptions`,`videojs.obj.merge`,merge$1),videojs.defineLazyProperty=deprecateForMajor(9,`videojs.defineLazyProperty`,`videojs.obj.defineLazyProperty`,defineLazyProperty),videojs.bind=deprecateForMajor(9,`videojs.bind`,`native Function.prototype.bind`,bind_),videojs.registerPlugin=Plugin.registerPlugin,videojs.deregisterPlugin=Plugin.deregisterPlugin,videojs.plugin=(e,t)=>(log$1.warn(`videojs.plugin() is deprecated; use videojs.registerPlugin() instead`),Plugin.registerPlugin(e,t)),videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(e,t){return e=(``+e).toLowerCase(),videojs.options.languages=merge$1(videojs.options.languages,{[e]:t}),videojs.options.languages[e]},videojs.log=log$1,videojs.createLogger=createLogger$5,videojs.time=Time,videojs.createTimeRange=deprecateForMajor(9,`videojs.createTimeRange`,`videojs.time.createTimeRanges`,createTimeRanges$1),videojs.createTimeRanges=deprecateForMajor(9,`videojs.createTimeRanges`,`videojs.time.createTimeRanges`,createTimeRanges$1),videojs.formatTime=deprecateForMajor(9,`videojs.formatTime`,`videojs.time.formatTime`,formatTime),videojs.setFormatTime=deprecateForMajor(9,`videojs.setFormatTime`,`videojs.time.setFormatTime`,setFormatTime),videojs.resetFormatTime=deprecateForMajor(9,`videojs.resetFormatTime`,`videojs.time.resetFormatTime`,resetFormatTime),videojs.parseUrl=deprecateForMajor(9,`videojs.parseUrl`,`videojs.url.parseUrl`,parseUrl),videojs.isCrossOrigin=deprecateForMajor(9,`videojs.isCrossOrigin`,`videojs.url.isCrossOrigin`,isCrossOrigin),videojs.EventTarget=EventTarget$2,videojs.any=any,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=import_lib$5.default,videojs.TrackList=TrackList,videojs.TextTrack=TextTrack,videojs.TextTrackList=TextTrackList,videojs.AudioTrack=AudioTrack,videojs.AudioTrackList=AudioTrackList,videojs.VideoTrack=VideoTrack,videojs.VideoTrackList=VideoTrackList,[`isEl`,`isTextNode`,`createEl`,`hasClass`,`addClass`,`removeClass`,`toggleClass`,`setAttributes`,`getAttributes`,`emptyEl`,`appendContent`,`insertContent`].forEach(e=>{videojs[e]=function(){return log$1.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),Dom[e].apply(null,arguments)}}),videojs.computedStyle=deprecateForMajor(9,`videojs.computedStyle`,`videojs.dom.computedStyle`,computedStyle),videojs.dom=Dom,videojs.fn=Fn,videojs.num=Num,videojs.str=Str,videojs.url=Url,videojs.Error=VjsErrors,QualityLevel=class{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,`enabled`,{get(){return t.enabled_()},set(e){t.enabled_(e)}}),t}},QualityLevelList=class extends videojs.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,`selectedIndex`,{get(){return e.selectedIndex_}}),Object.defineProperty(e,`length`,{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;let $=this.levels_.length;return t=new QualityLevel(e),``+$ in this||Object.defineProperty(this,$,{get(){return this.levels_[$]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:`addqualitylevel`}),t}removeQualityLevel(e){let t=null;for(let $=0,ed=this.length;$<ed;$++)if(this[$]===e){t=this.levels_.splice($,1)[0],this.selectedIndex_===$?this.selectedIndex_=-1:this.selectedIndex_>$&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:`removequalitylevel`}),t}getQualityLevelById(e){for(let t=0,$=this.length;t<$;t++){let $=this[t];if($.id===e)return $}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}},QualityLevelList.prototype.allowedEvents_={change:`change`,addqualitylevel:`addqualitylevel`,removequalitylevel:`removequalitylevel`};for(let e in QualityLevelList.prototype.allowedEvents_)QualityLevelList.prototype[`on`+e]=null;version$5=`4.1.0`,initPlugin$1=function(e,t){let $=e.qualityLevels,ed=new QualityLevelList,td=function(){ed.dispose(),e.qualityLevels=$,e.off(`dispose`,td)};return e.on(`dispose`,td),e.qualityLevels=()=>ed,e.qualityLevels.VERSION=version$5,ed},qualityLevels=function(e){return initPlugin$1(this,videojs.obj.merge({},e))},videojs.registerPlugin(`qualityLevels`,qualityLevels),qualityLevels.VERSION=version$5,resolveUrl=resolveUrl$2,resolveManifestRedirect=(e,t)=>
248t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,logger=e=>videojs.log.debug?videojs.log.debug.bind(videojs,`VHS:`,`${e} >`):function(){},TIME_FUDGE_FACTOR=1/30,SAFE_TIME_DELTA=TIME_FUDGE_FACTOR*3,filterRanges=function(e,t){let $=[],ed;if(e&&e.length)for(ed=0;ed<e.length;ed++)t(e.start(ed),e.end(ed))&&$.push([e.start(ed),e.end(ed)]);return createTimeRanges($)},findRange=function(e,t){return filterRanges(e,function(e,$){return e-SAFE_TIME_DELTA<=t&&$+SAFE_TIME_DELTA>=t})},findNextRange=function(e,t){return filterRanges(e,function(e){return e-TIME_FUDGE_FACTOR>=t})},findGaps=function(e){if(e.length<2)return createTimeRanges();let t=[];for(let $=1;$<e.length;$++){let ed=e.end($-1),td=e.start($);t.push([ed,td])}return createTimeRanges(t)},bufferIntersection=function(e,t){let $=null,ed=null,td=0,nd=[],rd=[];if(!e||!e.length||!t||!t.length)return createTimeRanges();let id=e.length;for(;id--;)nd.push({time:e.start(id),type:`start`}),nd.push({time:e.end(id),type:`end`});for(id=t.length;id--;)nd.push({time:t.start(id),type:`start`}),nd.push({time:t.end(id),type:`end`});for(nd.sort(function(e,t){return e.time-t.time}),id=0;id<nd.length;id++)nd[id].type===`start`?(td++,td===2&&($=nd[id].time)):nd[id].type===`end`&&(td--,td===1&&(ed=nd[id].time)),$!==null&&ed!==null&&(rd.push([$,ed]),$=null,ed=null);return createTimeRanges(rd)},printableRange=e=>{let t=[];if(!e||!e.length)return``;for(let $=0;$<e.length;$++)t.push(e.start($)+` => `+e.end($));return t.join(`, `)},timeUntilRebuffer=function(e,t,$=1){return((e.length?e.end(e.length-1):0)-t)/$},timeRangesToArray=e=>{let t=[];for(let $=0;$<e.length;$++)t.push({start:e.start($),end:e.end($)});return t},isRangeDifferent=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let $=0;$<e.length;$++)if(e.start($)!==t.start($)||e.end($)!==t.end($))return!0;return!1},lastBufferedEnd=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},timeAheadOf=function(e,t){let $=0;if(!e||!e.length)return $;for(let ed=0;ed<e.length;ed++){let td=e.start(ed),nd=e.end(ed);if(!(t>nd)){if(t>td&&t<=nd){$+=nd-t;continue}$+=nd-td}}return $},segmentDurationWithParts=(e,t)=>{if(!t.preload)return t.duration;let $=0;return(t.parts||[]).forEach(function(e){$+=e.duration}),(t.preloadHints||[]).forEach(function(t){t.type===`PART`&&($+=e.partTargetDuration)}),$},getPartsAndSegments=e=>(e.segments||[]).reduce((e,t,$)=>(t.parts?t.parts.forEach(function(ed,td){e.push({duration:ed.duration,segmentIndex:$,partIndex:td,part:ed,segment:t})}):e.push({duration:t.duration,segmentIndex:$,partIndex:null,segment:t,part:null}),e),[]),getLastParts=e=>{let t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},getKnownPartCount=({preloadSegment:e})=>{if(!e)return;let{parts:t,preloadHints:$}=e,ed=($||[]).reduce((e,t)=>e+ +(t.type===`PART`),0);return ed+=t&&t.length?t.length:0,ed},liveEdgeDelay=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;let $=getLastParts(t).length>0;return $&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:$&&t.partTargetDuration?t.partTargetDuration*3:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?t.targetDuration*3:0},backwardDuration=function(e,t){let $=0,ed=t-e.mediaSequence,td=e.segments[ed];if(td){if(td.start!==void 0)return{result:td.start,precise:!0};if(td.end!==void 0)return{result:td.end-td.duration,precise:!0}}for(;ed--;){if(td=e.segments[ed],td.end!==void 0)return{result:$+td.end,precise:!0};if($+=segmentDurationWithParts(e,td),td.start!==void 0)return{result:$+td.start,precise:!0}}return{result:$,precise:!1}},forwardDuration=function(e,t){let $=0,ed,td=t-e.mediaSequence;for(;td<e.segments.length;td++){if(ed=e.segments[td],ed.start!==void 0)return{result:ed.start-$,precise:!0};if($+=segmentDurationWithParts(e,ed),ed.end!==void 0)return{result:ed.end-$,precise:!0}}return{result:-1,precise:!1}},intervalDuration=function(e,t,$){if(t===void 0&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;let ed=backwardDuration(e,t);if(ed.precise)return ed.result;let td=forwardDuration(e,t);return td.precise?td.result:ed.result+$},duration=function(e,t,$){if(!e)return 0;if(typeof $!=`number`&&($=0),t===void 0){if(e.totalDuration)return e.totalDuration;if(!e.endList)return import_window.default.Infinity}return intervalDuration(e,t,$)},sumDurations=function({defaultDuration:e,durationList:t,startIndex:$,endIndex:ed}){let td=0;if($>ed&&([$,ed]=[ed,$]),$<0){for(let t=$;t<Math.min(0,ed);t++)td+=e;$=0}for(let e=$;e<ed;e++)td+=t[e].duration;return td},playlistEnd=function(e,t,$,ed){if(!e||!e.segments)return null;if(e.endList)return duration(e);if(t===null)return null;t||=0;let td=intervalDuration(e,e.mediaSequence+e.segments.length,t);return $&&(ed=typeof ed==`number`?ed:liveEdgeDelay(null,e),td-=ed),Math.max(0,td)},seekable=function(e,t,$){let ed=!0,td=t||0,nd=playlistEnd(e,t,!0,$);return nd===null?createTimeRanges():(nd<td&&(nd=td),createTimeRanges(td,nd))},getMediaInfoForTime=function({playlist:e,currentTime:t,startingSegmentIndex:$,startingPartIndex:ed,startTime:td,exactManifestTimings:nd}){let rd=t-td,id=getPartsAndSegments(e),ad=0;for(let e=0;e<id.length;e++){let t=id[e];if($===t.segmentIndex&&!(typeof ed==`number`&&typeof t.partIndex==`number`&&ed!==t.partIndex)){ad=e;break}}if(rd<0){if(ad>0)for(let t=ad-1;t>=0;t--){let $=id[t];if(rd+=$.duration,nd){if(rd<0)continue}else if(rd+TIME_FUDGE_FACTOR<=0)continue;return{partIndex:$.partIndex,segmentIndex:$.segmentIndex,startTime:td-sumDurations({defaultDuration:e.targetDuration,durationList:id,startIndex:ad,endIndex:t})}}return{partIndex:id[0]&&id[0].partIndex||null,segmentIndex:id[0]&&id[0].segmentIndex||0,startTime:t}}if(ad<0){for(let $=ad;$<0;$++)if(rd-=e.targetDuration,rd<0)return{partIndex:id[0]&&id[0].partIndex||null,segmentIndex:id[0]&&id[0].segmentIndex||0,startTime:t};ad=0}for(let t=ad;t<id.length;t++){let $=id[t];rd-=$.duration;let ed=$.duration>TIME_FUDGE_FACTOR,od=rd===0,sd=ed&&rd+TIME_FUDGE_FACTOR>=0;if(!((od||sd)&&t!==id.length-1)){if(nd){if(rd>0)continue}else if(rd-TIME_FUDGE_FACTOR>=0)continue;return{partIndex:$.partIndex,segmentIndex:$.segmentIndex,startTime:td+sumDurations({defaultDuration:e.targetDuration,durationList:id,startIndex:ad,endIndex:t})}}}return{segmentIndex:id[id.length-1].segmentIndex,partIndex:id[id.length-1].partIndex,startTime:t}},isExcluded=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},isIncompatible=function(e){return e.excludeUntil&&e.excludeUntil===1/0},isEnabled=function(e){let t=isExcluded(e);return!e.disabled&&!t},isDisabled=function(e){return e.disabled},isAes=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute=function(e,t){return t.attributes&&t.attributes[e]},estimateSegmentRequestTime=function(e,t,$,ed=0){return hasAttribute(`BANDWIDTH`,$)?(e*$.attributes.BANDWIDTH-ed*8)/t:NaN},isLowestEnabledRendition=(e,t)=>{if(e.playlists.length===1)return!0;let $=t.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(e=>isEnabled(e)?(e.attributes.BANDWIDTH||0)<$:!1).length===0},playlistMatch=(e,t)=>!e&&!t||!e&&t||e&&!t?!1:!!(e===t||e.id&&t.id&&e.id===t.id||e.resolvedUri&&t.resolvedUri&&e.resolvedUri===t.resolvedUri||e.uri&&t.uri&&e.uri===t.uri),someAudioVariant=function(e,t){let $=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},ed=!1;for(let e in $){for(let td in $[e])if(ed=t($[e][td]),ed)break;if(ed)break}return!!ed},isAudioOnly=e=>{if(!e||!e.playlists||!e.playlists.length)return someAudioVariant(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){let $=e.playlists[t],ed=$.attributes&&$.attributes.CODECS;if(!(ed&&ed.split(`,`).every(e=>isAudioCodec(e)))&&!someAudioVariant(e,e=>playlistMatch($,e)))return!1}return!0},Playlist={liveEdgeDelay,duration,seekable,getMediaInfoForTime,isEnabled,isDisabled,isExcluded,isIncompatible,playlistEnd,isAes,hasAttribute,estimateSegmentRequestTime,isLowestEnabledRendition,isAudioOnly,playlistMatch,segmentDurationWithParts},{log}=videojs,createPlaylistID=(e,t)=>`${e}-${t}`,groupID=(e,t,$)=>
248`placeholder-uri-${e}-${t}-${$}`,parseManifest=({onwarn:e,oninfo:t,manifestString:$,customTagParsers:ed=[],customTagMappers:td=[],llhls:nd})=>{let rd=new Parser;e&&rd.on(`warn`,e),t&&rd.on(`info`,t),ed.forEach(e=>rd.addParser(e)),td.forEach(e=>rd.addTagMapper(e)),rd.push($),rd.end();let id=rd.manifest;if(nd||([`preloadSegment`,`skip`,`serverControl`,`renditionReports`,`partInf`,`partTargetDuration`].forEach(function(e){id.hasOwnProperty(e)&&delete id[e]}),id.segments&&id.segments.forEach(function(e){[`parts`,`preloadHints`].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!id.targetDuration){let t=10;id.segments&&id.segments.length&&(t=id.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),id.targetDuration=t}let ad=getLastParts(id);if(ad.length&&!id.partTargetDuration){let t=ad.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),log.error(`LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.`)),id.partTargetDuration=t}return id},forEachMediaGroup=(e,t)=>{e.mediaGroups&&[`AUDIO`,`SUBTITLES`].forEach($=>{if(e.mediaGroups[$])for(let ed in e.mediaGroups[$])for(let td in e.mediaGroups[$][ed]){let nd=e.mediaGroups[$][ed][td];t(nd,$,ed,td)}})},setupMediaPlaylist=({playlist:e,uri:t,id:$})=>{e.id=$,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},setupMediaPlaylists=e=>{let t=e.playlists.length;for(;t--;){let $=e.playlists[t];setupMediaPlaylist({playlist:$,id:createPlaylistID(t,$.uri)}),$.resolvedUri=resolveUrl(e.uri,$.uri),e.playlists[$.id]=$,e.playlists[$.uri]=$,$.attributes.BANDWIDTH||log.warn(`Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.`)}},resolveMediaGroupUris=e=>{forEachMediaGroup(e,t=>{t.uri&&(t.resolvedUri=resolveUrl(e.uri,t.uri))})},mainForMedia=(e,t)=>{let $=createPlaylistID(0,t),ed={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:import_window.default.location.href,resolvedUri:import_window.default.location.href,playlists:[{uri:t,id:$,resolvedUri:t,attributes:{}}]};return ed.playlists[$]=ed.playlists[0],ed.playlists[t]=ed.playlists[0],ed},addPropertiesToMain=(e,t,$=groupID)=>{e.uri=t;for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){let $=`placeholder-uri-${t}`;e.playlists[t].uri=$}let ed=isAudioOnly(e);forEachMediaGroup(e,(t,td,nd,rd)=>{if(!t.playlists||!t.playlists.length){if(ed&&td===`AUDIO`&&!t.uri)for(let t=0;t<e.playlists.length;t++){let $=e.playlists[t];if($.attributes&&$.attributes.AUDIO&&$.attributes.AUDIO===nd)return}t.playlists=[_extends$2({},t)]}
248t.playlists.forEach(function(t,ed){let id=$(td,nd,rd,t),ad=createPlaylistID(ed,id);t.uri?t.resolvedUri=t.resolvedUri||resolveUrl(e.uri,t.uri):(t.uri=ed===0?id:ad,t.resolvedUri=t.uri),t.id=t.id||ad,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),setupMediaPlaylists(e),resolveMediaGroupUris(e)},DateRangesStorage=class{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;let[t]=e;t.programDateTime!==void 0&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;let[t]=e,$=t.startDate.getTime();this.trimProcessedDateRanges_($),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];let e={},t=[];this.pendingDateRanges_.forEach(($,ed)=>{this.processedDateRanges_.has(ed)||($.startTime=$.startDate.getTime()/1e3-this.offset_,$.processDateRange=()=>this.processDateRange($),t.push($),$.class&&(e[$.class]?$.classListIndex=e[$.class].push($)-1:(e[$.class]=[$],$.classListIndex=0)))});for(let $ of t){let t=e[$.class]||[];$.endDate?$.endTime=$.endDate.getTime()/1e3-this.offset_:$.endOnNext&&t[$.classListIndex+1]?$.endTime=t[$.classListIndex+1].startTime:$.duration?$.endTime=$.startTime+$.duration:$.plannedDuration?$.endTime=$.startTime+$.plannedDuration:$.endTime=$.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,$)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete($)})}},QUOTA_EXCEEDED_ERR=22,getStreamingNetworkErrorMetadata=({requestType:e,request:t,error:$,parseFailure:ed})=>{let td=t.status<200||t.status>299,nd=t.status>=400&&t.status<=499,rd={uri:t.uri,requestType:e},id=td&&!nd||ed;return $&&nd?(rd.error=_extends$2({},$),rd.errorType=videojs.Error.NetworkRequestFailed):t.aborted?rd.errorType=videojs.Error.NetworkRequestAborted:t.timedout?rd.erroType=videojs.Error.NetworkRequestTimeout:id&&(rd.errorType=ed?videojs.Error.NetworkBodyParserFailed:videojs.Error.NetworkBadStatus,rd.status=t.status,rd.headers=t.headers),rd},logFn$1=logger(`CodecUtils`),getCodecs=function(e){let t=e.attributes||{};if(t.CODECS)return parseCodecs(t.CODECS)},isMaat=(e,t)=>{let $=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&$.AUDIO&&e.mediaGroups.AUDIO[$.AUDIO]},isMuxed=(e,t)=>{if(!isMaat(e,t))return!0;let $=t.attributes||{},ed=e.mediaGroups.AUDIO[$.AUDIO];for(let e in ed)if(!ed[e].uri&&!ed[e].playlists)return!0;return!1},unwrapCodecList=function(e){let t={};return e.forEach(({mediaType:e,type:$,details:ed})=>{t[e]=t[e]||[],t[e].push(translateLegacyCodec(`${$}${ed}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1){logFn$1(`multiple ${e} codecs found as attributes: ${t[e].join(`, `)}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),t[e]=null;return}t[e]=t[e][0]}),t},codecCount=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},codecsForPlaylist=function(e,t){let $=t.attributes||{},ed=unwrapCodecList(getCodecs(t)||[]);if(isMaat(e,t)&&!ed.audio&&!isMuxed(e,t)){let t=unwrapCodecList(codecsFromDefault(e,$.AUDIO)||[]);t.audio&&(ed.audio=t.audio)}return ed},{EventTarget:EventTarget$1}=videojs,addLLHLSQueryDirectives=(e,t)=>{if(t.endList||!t.serverControl)return e;let $={};if(t.serverControl.canBlockReload){let{preloadSegment:e}=t,ed=t.mediaSequence+t.segments.length;if(e){let td=e.parts||[],nd=getKnownPartCount(t)-1;nd>-1&&nd!==td.length-1&&($._HLS_part=nd),(nd>-1||td.length)&&ed--}$._HLS_msn=ed}if(t.serverControl&&t.serverControl.canSkipUntil&&($._HLS_skip=t.serverControl.canSkipDateranges?`v2`:`YES`),Object.keys($).length){let t=new import_window.default.URL(e);[`_HLS_skip`,`_HLS_msn`,`_HLS_part`].forEach(function(e){$.hasOwnProperty(e)&&t.searchParams.set(e,$[e])}),e=t.toString()}return e},updateSegment=(e,t)=>{if(!e)return t;let $=merge(e,t);if(e.preloadHints&&!t.preloadHints&&delete $.preloadHints,e.parts&&!t.parts)delete $.parts;else if(e.parts&&t.parts)for(let ed=0;ed<t.parts.length;ed++)e.parts&&e.parts[ed]&&($.parts[ed]=merge(e.parts[ed],t.parts[ed]));return!e.skipped&&t.skipped&&($.skipped=!1),e.preload&&!t.preload&&($.preload=!1),$},updateSegments=(e,t,$)=>
248{let ed=e.slice(),td=t.slice();$||=0;let nd=[],rd;for(let e=0;e<td.length;e++){let t=ed[e+$],id=td[e];t?(rd=t.map||rd,nd.push(updateSegment(t,id))):(rd&&!id.map&&(id.map=rd),nd.push(id))}return nd},resolveSegmentUris=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=resolveUrl(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=resolveUrl(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=resolveUrl(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=resolveUrl(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||=resolveUrl(t,e.uri)}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||=resolveUrl(t,e.uri)})},getAllSegments=function(e){let t=e.segments||[],$=e.preloadSegment;if($&&$.parts&&$.parts.length){if($.preloadHints){for(let e=0;e<$.preloadHints.length;e++)if($.preloadHints[e].type===`MAP`)return t}$.duration=e.targetDuration,$.preload=!0,t.push($)}return t},isPlaylistUnchanged=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,updateMain$1=(e,t,$=isPlaylistUnchanged)=>{let ed=merge(e,{}),td=ed.playlists[t.id];if(!td||$(td,t))return null;t.segments=getAllSegments(t);let nd=merge(td,t);if(nd.preloadSegment&&!t.preloadSegment&&delete nd.preloadSegment,td.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}nd.segments=updateSegments(td.segments,t.segments,t.mediaSequence-td.mediaSequence)}nd.segments.forEach(e=>{resolveSegmentUris(e,nd.resolvedUri)});for(let e=0;e<ed.playlists.length;e++)ed.playlists[e].id===t.id&&(ed.playlists[e]=nd);return ed.playlists[t.id]=nd,ed.playlists[t.uri]=nd,forEachMediaGroup(e,(e,$,ed,td)=>{if(e.playlists)for(let $=0;$<e.playlists.length;$++)t.id===e.playlists[$].id&&(e.playlists[$]=nd)}),ed},refreshDelay=(e,t)=>{let $=e.segments||[],ed=$[$.length-1],td=ed&&ed.parts&&ed.parts[ed.parts.length-1],nd=td&&td.duration||ed&&ed.duration;return t&&nd?nd*1e3:(e.partTargetDuration||e.targetDuration||10)*500},playlistMetadataPayload=(e,t,$)=>{if(!e)return;let ed=[];return e.forEach(e=>{if(!e.attributes)return;let{BANDWIDTH:t,RESOLUTION:$,CODECS:td}=e.attributes;ed.push({id:e.id,bandwidth:t,resolution:$,codecs:td})}),{type:t,isLive:$,renditions:ed}},PlaylistLoader=class extends EventTarget$1{constructor(e,t,$={}){if(super(),!e)throw Error(`A non-empty playlist URL or object is required`);this.logger_=logger(`PlaylistLoader`);let{withCredentials:ed=!1}=$;this.src=e,this.vhs_=t,this.withCredentials=ed,this.addDateRangesToTextTrack_=$.addDateRangesToTextTrack;let td=t.options_;this.customTagParsers=td&&td.customTagParsers||[],this.customTagMappers=td&&td.customTagMappers||[],this.llhls=td&&td.llhls,this.dateRangesStorage_=new DateRangesStorage,this.state=`HAVE_NOTHING`,this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on(`mediaupdatetimeout`,this.handleMediaupdatetimeout_),this.on(`loadedplaylist`,this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){let e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);let t=this.dateRangesStorage_.getDateRangesToProcess();!t.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if(this.state!==`HAVE_METADATA`)return;let e=this.media(),t=resolveUrl(this.main.uri,e.uri);this.llhls&&(t=addLLHLSQueryDirectives(t,e)),this.state=`HAVE_CURRENT_METADATA`,this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:`hls-playlist`},(e,t)=>{if(this.request){if(e)return this.playlistRequestError(this.request,this.media(),`HAVE_METADATA`);this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,t,$){let{uri:ed,id:td}=t;this.request=null,$&&(this.state=$),this.error={playlist:this.main.playlists[td],status:e.status,message:`HLS playlist request error at URL: ${ed}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:getStreamingNetworkErrorMetadata({requestType:e.requestType,request:e,error:e.error})},this.trigger(`error`)}parseManifest_({url:e,manifestString:t}){try{let $=parseManifest({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return!$.playlists||!$.playlists.length||this.excludeAudioOnlyVariants($.playlists),$}catch(e){this.error=e,this.error.metadata={errorType:videojs.Error.StreamingHlsPlaylistParserError,error:e}}}excludeAudioOnlyVariants(e){let t=e=>{let{width:t,height:$}=(e.attributes||{}).RESOLUTION||{};return t&&$?!0:!!unwrapCodecList(getCodecs(e)||[]).video};
248e.some(t)&&e.forEach(e=>{t(e)||(e.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:$,id:ed}){this.request=null,this.state=`HAVE_METADATA`;let td={playlistInfo:{type:`media`,uri:$}};this.trigger({type:`playlistparsestart`,metadata:td});let nd=t||this.parseManifest_({url:$,manifestString:e});nd.lastRequest=Date.now(),setupMediaPlaylist({playlist:nd,uri:$,id:ed});let rd=updateMain$1(this.main,nd);this.targetDuration=nd.partTargetDuration||nd.targetDuration,this.pendingMedia_=null,rd?(this.main=rd,this.media_=this.main.playlists[ed]):this.trigger(`playlistunchanged`),this.updateMediaUpdateTimeout_(refreshDelay(this.media(),!!rd)),td.parsedPlaylist=playlistMetadataPayload(this.main.playlists,td.playlistInfo.type,!this.media_.endList),this.trigger({type:`playlistparsecomplete`,metadata:td}),this.trigger(`loadedplaylist`)}dispose(){this.trigger(`dispose`),this.stopRequest(),import_window.default.clearTimeout(this.mediaUpdateTimeout),import_window.default.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new DateRangesStorage,this.off()}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if(this.state===`HAVE_NOTHING`)throw Error(`Cannot switch media playlist from `+this.state);if(typeof e==`string`){if(!this.main.playlists[e])throw Error(`Unknown playlist URI: `+e);e=this.main.playlists[e]}if(import_window.default.clearTimeout(this.finalRenditionTimeout),t){let t=(e.partTargetDuration||e.targetDuration)/2*1e3||5*1e3;this.finalRenditionTimeout=import_window.default.setTimeout(this.media.bind(this,e,!1),t);return}let $=this.state,ed=!this.media_||e.id!==this.media_.id,td=this.main.playlists[e.id];if(td&&td.endList||e.endList&&e.segments.length){this.request&&=(this.request.onreadystatechange=null,this.request.abort(),null),this.state=`HAVE_METADATA`,this.media_=e,ed&&(this.trigger(`mediachanging`),$===`HAVE_MAIN_MANIFEST`?this.trigger(`loadedmetadata`):this.trigger(`mediachange`));return}if(this.updateMediaUpdateTimeout_(refreshDelay(e,!0)),!ed)return;if(this.state=`SWITCHING_MEDIA`,this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger(`mediachanging`),this.pendingMedia_=e;let nd={playlistInfo:{type:`media`,uri:e.uri}};this.trigger({type:`playlistrequeststart`,metadata:nd}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:`hls-playlist`},(t,ed)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=resolveManifestRedirect(e.resolvedUri,ed),t)return this.playlistRequestError(this.request,e,$);this.trigger({type:`playlistrequestcomplete`,metadata:nd}),this.haveMetadata({playlistString:ed.responseText,url:e.uri,id:e.id}),$===`HAVE_MAIN_MANIFEST`?this.trigger(`loadedmetadata`):this.trigger(`mediachange`)}})}pause(){this.mediaUpdateTimeout&&=(import_window.default.clearTimeout(this.mediaUpdateTimeout),null),this.stopRequest(),this.state===`HAVE_NOTHING`&&(this.started=!1),this.state===`SWITCHING_MEDIA`?this.media_?this.state=`HAVE_METADATA`:this.state=`HAVE_MAIN_MANIFEST`:this.state===`HAVE_CURRENT_METADATA`&&(this.state=`HAVE_METADATA`)}load(e){this.mediaUpdateTimeout&&=(import_window.default.clearTimeout(this.mediaUpdateTimeout),null);let t=this.media();if(e){let e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5*1e3;this.mediaUpdateTimeout=import_window.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e);return}if(!this.started){this.start();return}t&&!t.endList?this.trigger(`mediaupdatetimeout`):this.trigger(`loadedplaylist`)}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&=(import_window.default.clearTimeout(this.mediaUpdateTimeout),null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=import_window.default.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger(`mediaupdatetimeout`),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,typeof this.src==`object`){this.src.uri||(this.src.uri=import_window.default.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}let e={playlistInfo:{type:`multivariant`,uri:this.src}};this.trigger({type:`playlistrequeststart`,metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:`hls-playlist`},(t,$)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:$.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:$.responseText,code:2,metadata:getStreamingNetworkErrorMetadata({requestType:$.requestType,request:$,error:t})},this.state===`HAVE_NOTHING`&&(this.started=!1),this.trigger(`error`);this.trigger({type:`playlistrequestcomplete`,metadata:e}),this.src=resolveManifestRedirect(this.src,$),this.trigger({type:`playlistparsestart`,metadata:e});let ed=this.parseManifest_({manifestString:$.responseText,url:this.src});e.parsedPlaylist=playlistMetadataPayload(ed.playlists,e.playlistInfo.type,!1),this.trigger({type:`playlistparsecomplete`,metadata:e}),this.setupInitialPlaylist(ed)})}srcUri(){return typeof this.src==`string`?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state=`HAVE_MAIN_MANIFEST`,e.playlists){this.main=e,addPropertiesToMain(this.main,this.srcUri()),e.playlists.forEac
248h(e=>{e.segments=getAllSegments(e),e.segments.forEach(t=>{resolveSegmentUris(t,e.resolvedUri)})}),this.trigger(`loadedplaylist`),this.request||this.media(this.main.playlists[0]);return}let t=this.srcUri()||import_window.default.location.href;this.main=mainForMedia(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger(`loadedmetadata`)}updateOrDeleteClone(e,t){let $=this.main,ed=e.ID,td=$.playlists.length;for(;td--;){let nd=$.playlists[td];if(nd.attributes[`PATHWAY-ID`]===ed){let rd=nd.resolvedUri,id=nd.id;if(t){let t=this.createCloneURI_(nd.resolvedUri,e),rd=createPlaylistID(ed,t),id=this.createCloneAttributes_(ed,nd.attributes),ad=this.createClonePlaylist_(nd,rd,e,id);$.playlists[td]=ad,$.playlists[rd]=ad,$.playlists[t]=ad}else $.playlists.splice(td,1);delete $.playlists[id],delete $.playlists[rd]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){let $=this.main,ed=e.ID;[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(e=>{if(!(!$.mediaGroups[e]||!$.mediaGroups[e][ed])){for(let t in $.mediaGroups[e])if(t===ed){for(let ed in $.mediaGroups[e][t])$.mediaGroups[e][t][ed].playlists.forEac
248h((e,t)=>{let ed=$.playlists[e.id],td=ed.id,nd=ed.resolvedUri;delete $.playlists[td],delete $.playlists[nd]});delete $.mediaGroups[e][t]}}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){let $=this.main,ed=$.playlists.length,td=this.createCloneURI_(t.resolvedUri,e),nd=createPlaylistID(e.ID,td),rd=this.createCloneAttributes_(e.ID,t.attributes),id=this.createClonePlaylist_(t,nd,e,rd);$.playlists[ed]=id,$.playlists[nd]=id,$.playlists[td]=id,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){let t=e.ID,$=e[`BASE-ID`],ed=this.main;[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(td=>{if(!(!ed.mediaGroups[td]||ed.mediaGroups[td][t]))for(let nd in ed.mediaGroups[td]){if(nd===$)ed.mediaGroups[td][t]={};else continue;for(let $ in ed.mediaGroups[td][nd]){let rd=ed.mediaGroups[td][nd][$];ed.mediaGroups[td][t][$]=_extends$2({},rd);let id=ed.mediaGroups[td][t][$],ad=this.createCloneURI_(rd.resolvedUri,e);id.resolvedUri=ad,id.uri=ad,id.playlists=[],rd.playlists.forEach((nd,rd)=>{let ad=ed.playlists[nd.id],od=createPlaylistID(t,groupID(td,t,$));if(ad&&!ed.playlists[od]){let t=this.createClonePlaylist_(ad,od,e),$=t.resolvedUri;ed.playlists[od]=t,ed.playlists[$]=t}id.playlists[rd]=this.createClonePlaylist_(nd,od,e)})}}})}createClonePlaylist_(e,t,$,ed){let td=this.createCloneURI_(e.resolvedUri,$),nd={resolvedUri:td,uri:td,id:t};return e.segments&&(nd.segments=[]),ed&&(nd.attributes=ed),merge(e,nd)}createCloneURI_(e,t){let $=new URL(e);$.hostname=t[`URI-REPLACEMENT`].HOST;let ed=t[`URI-REPLACEMENT`].PARAMS;for(let e of Object.keys(ed))$.searchParams.set(e,ed[e]);return $.href}createCloneAttributes_(e,t){let $={"PATHWAY-ID":e};return[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(ed=>{t[ed]&&($[ed]=e)}),$}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let $ in e.contentProtection){let ed=e.contentProtection[$].attributes.keyId;ed&&t.add(ed.toLowerCase())}return t}}},callbackWrapper=function(e,t,$,ed){let td=e.responseType===`arraybuffer`?e.response:e.responseText;!t&&td&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=td.byteLength||td.length,e.bandwidth||=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3)),$.headers&&(e.responseHeaders=$.headers),t&&t.code===`ETIMEDOUT`&&(e.timedout=!0),!t&&!e.aborted&&$.statusCode!==200&&$.statusCode!==206&&$.statusCode!==0&&(t=Error(`XHR Failed with a response of: `+(e&&(td||e.responseText)))),ed(t,e)},callAllRequestHooks=(e,t)=>{if(!e||!e.size)return;let $=t;return e.forEach(e=>{$=e($)}),$},callAllResponseHooks=(e,t,$,ed)=>{!e||!e.size||e.forEach(e=>{e(t,$,ed)})},xhrFactory=function(){let e=function e(t,$){t=merge({timeout:45e3},t);let ed=e.beforeRequest||videojs.Vhs.xhr.beforeRequest,td=e._requestCallbackSet||videojs.Vhs.xhr._requestCallbackSet||new Set,nd=e._responseCallbackSet||videojs.Vhs.xhr._responseCallbackSet;ed&&typeof ed==`function`&&(videojs.log.warn(`beforeRequest is deprecated, use onRequest instead.`),td.add(ed));let rd=videojs.Vhs.xhr.original===!0?videojs.xhr:videojs.Vhs.xhr,id=callAllRequestHooks(td,t);td.delete(ed);let ad=rd(id||t,function(e,t){return callAllResponseHooks(nd,ad,e,t),callbackWrapper(ad,e,t,$)}),od=ad.abort;return ad.abort=function(){return ad.aborted=!0,od.apply(ad,arguments)},ad.uri=t.uri,ad.requestType=t.requestType,ad.requestTime=Date.now(),ad};return e.original=!0,e},byterangeStr=function(e){let t,$=e.offset;return t=typeof e.offset==`bigint`||typeof e.length==`bigint`?import_window.default.BigInt(e.offset)+import_window.default.BigInt(e.length)-import_window.default.BigInt(1):e.offset+e.length-1,`bytes=`+$+`-`+t},segmentXhrHeaders=function(e){let t={};return e.byterange&&(t.Range=byterangeStr(e.byterange)),t},textRange=function(e,t){return e.start(t)+`-`+e.end(t)},formatHexString=function(e,t){let $=e.toString(16);return`00`.substring(0,2-$.length)+$+(t%2?` `:``)},formatAsciiString=function(e){return e>=32&&e<126?String.fromCharCode(e):`.`},createTransferableMessage=function(e){let t={};return Object.keys(e).forEach($=>{let ed=e[$];isArrayBufferView(ed)?t[$]={bytes:ed.buffer,byteOffset:ed.byteOffset,byteLength:ed.byteLength}:t[$]=ed}),t},initSegmentId=function(e){let t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(`,`)},segmentKeyId=function(e){return e.resolvedUri},hexDump=e=>{let t=Array.prototype.slice.call(e),$=16,ed=``,td,nd;for(let e=0;e<t.length/16;e++)td=t.slice(e*16,e*16+16).map(formatHexString).join(``),nd=t.slice(e*16,e*16+16).map(formatAsciiString).join(``),ed+=td+` `+nd+` 249`;return ed},tagDump=({bytes:e})=>hexDump(e),textRanges=e=>{let t=``,$;for($=0;$<e.length;$++)t+=textRange(e,$)+` `;return t},utils=Object.freeze({__proto__:null,createTransferableMessage,initSegmentId,segmentKeyId,hexDump,tagDump,textRanges}),SEGMENT_END_FUDGE_PERCENT=.25,playerTimeToProgramTime=(e,t)=>
249{if(!t.dateTimeObject)return null;let $=t.videoTimingInfo.transmuxerPrependedSeconds,ed=e-(t.videoTimingInfo.transmuxedPresentationStart+$);return new Date(t.dateTimeObject.getTime()+ed*1e3)},originalSegmentVideoDuration=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,findSegmentForProgramTime=(e,t)=>{let $;try{$=new Date(e)}catch{return null}if(!t||!t.segments||t.segments.length===0)return null;let ed=t.segments[0];if($<new Date(ed.dateTimeObject))return null;for(let e=0;e<t.segments.length-1;e++){ed=t.segments[e];let td=new Date(t.segments[e+1].dateTimeObject);if($<td)break}let td=t.segments[t.segments.length-1],nd=td.dateTimeObject,rd=td.videoTimingInfo?originalSegmentVideoDuration(td.videoTimingInfo):td.duration+td.duration*SEGMENT_END_FUDGE_PERCENT,id=new Date(nd.getTime()+rd*1e3);return $>id?null:($>new Date(nd)&&(ed=td),{segment:ed,estimatedStart:ed.videoTimingInfo?ed.videoTimingInfo.transmuxedPresentationStart:Playlist.duration(t,t.mediaSequence+t.segments.indexOf(ed)),type:ed.videoTimingInfo?`accurate`:`estimate`})},findSegmentForPlayerTime=(e,t)=>{if(!t||!t.segments||t.segments.length===0)return null;let $=0,ed;for(let td=0;td<t.segments.length&&(ed=t.segments[td],$=ed.videoTimingInfo?ed.videoTimingInfo.transmuxedPresentationEnd:$+ed.duration,!(e<=$));td++);let td=t.segments[t.segments.length-1];if(td.videoTimingInfo&&td.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>$){if(e>$+td.duration*SEGMENT_END_FUDGE_PERCENT)return null;ed=td}return{segment:ed,estimatedStart:ed.videoTimingInfo?ed.videoTimingInfo.transmuxedPresentationStart:$-ed.duration,type:ed.videoTimingInfo?`accurate`:`estimate`}},getOffsetFromTimestamp=(e,t)=>{let $,ed;try{$=new Date(e),ed=new Date(t)}catch{}let td=$.getTime();return(ed.getTime()-td)/1e3},verifyProgramDateTimeTags=e=>{if(!e.segments||e.segments.length===0)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},getProgramTime=({playlist:e,time:t=void 0,callback:$})=>{if(!$)throw Error(`getProgramTime: callback must be provided`);if(!e||t===void 0)return $({message:`getProgramTime: playlist and time must be provided`});let ed=findSegmentForPlayerTime(t,e);if(!ed)return $({message:`valid programTime was not found`});if(ed.type===`estimate`)return $({message:`Accurate programTime could not be determined. Please seek to e.seekTime and try again`,seekTime:ed.estimatedStart});let td={mediaSeconds:t},nd=playerTimeToProgramTime(t,ed.segment);return nd&&(td.programDateTime=nd.toISOString()),$(null,td)},seekToProgramTime=({programTime:e,playlist:t,retryCount:$=2,seekTo:ed,pauseAfterSeek:td=!0,tech:nd,callback:rd})=>{if(!rd)throw Error(`seekToProgramTime: callback must be provided`);if(e===void 0||!t||!ed)return rd({message:`seekToProgramTime: programTime, seekTo and playlist must be provided`});if(!t.endList&&!nd.hasStarted_)return rd({message:`player must be playing a live stream to start buffering`});if(!verifyProgramDateTimeTags(t))return rd({message:`programDateTime tags must be provided in the manifest `+t.resolvedUri});let id=findSegmentForProgramTime(e,t);if(!id)return rd({message:`${e} was not found in the stream`});let ad=id.segment,od=getOffsetFromTimestamp(ad.dateTimeObject,e);if(id.type===`estimate`){if($===0)return rd({message:`${e} is not buffered yet. Try again`});ed(id.estimatedStart+od),nd.one(`seeked`,()=>{seekToProgramTime({programTime:e,playlist:t,retryCount:$-1,seekTo:ed,pauseAfterSeek:td,tech:nd,callback:rd})});return}let sd=ad.start+od;nd.one(`seeked`,()=>rd(null,nd.currentTime())),td&&nd.pause(),ed(sd)},callbackOnCompleted=(e,t)=>{if(e.readyState===4)return t()},containerRequest=(e,t,$,ed)=>{let td=[],nd,rd=!1,id=function(e,t,ed,td){return t.abort(),rd=!0,$(e,t,ed,td)},ad=function(e,t){if(rd)return;if(e)return e.metadata=getStreamingNetworkErrorMetadata({requestType:ed,request:t,error:e}),id(e,t,``,td);let $=t.responseText.substring(td&&td.byteLength||0,t.responseText.length);if(td=concatTypedArrays(td,stringToBytes($,!0)),nd||=getId3Offset(td),td.length<10||nd&&td.length<nd+2)return callbackOnCompleted(t,()=>id(e,t,``,td));let ad=detectContainerForBytes(td);return ad===`ts`&&td.length<188||!ad&&td.length<376?callbackOnCompleted(t,()=>id(e,t,``,td)):id(null,t,ad,td)},od=t({uri:e,beforeSend(e){e.overrideMimeType(`text/plain;
249 charset=x-user-defined`),e.addEventListener(`progress`,function({total:t,loaded:$}){return callbackWrapper(e,null,{statusCode:e.status},ad)})}},function(e,t){return callbackWrapper(od,e,t,ad)});return od},{EventTarget:EventTarget$3}=videojs,dashPlaylistUnchanged=function(e,t){if(!isPlaylistUnchanged(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length)||!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let $=0;$<e.segments.length;$++){let ed=e.segments[$],td=t.segments[$];if(ed.uri!==td.uri)return!1;if(!ed.byterange&&!td.byterange)continue;let nd=ed.byterange,rd=td.byterange;if(nd&&!rd||!nd&&rd||nd.offset!==rd.offset||nd.length!==rd.length)return!1}return!0},dashGroupId=(e,t,$,ed)=>`placeholder-uri-${e}-${t}-${ed.attributes.NAME||$}`,parseMainXml=({mainXml:e,srcUrl:t,clientOffset:$,sidxMapping:ed,previousManifest:td})=>{let nd=parse(e,{manifestUri:t,clientOffset:$,sidxMapping:ed,previousManifest:td});return addPropertiesToMain(nd,t,dashGroupId),nd},removeOldMediaGroupLabels=(e,t)=>{forEachMediaGroup(e,($,ed,td,nd)=>{(!t.mediaGroups[ed][td]||!(nd in t.mediaGroups[ed][td]))&&delete e.mediaGroups[ed][td][nd]})},updateMain=(e,t,$)=>
249{let ed=!0,td=merge(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){let nd=t.playlists[e];if(nd.sidx){let e=generateSidxKey(nd.sidx);$&&$[e]&&$[e].sidx&&addSidxSegmentsToPlaylist$1(nd,$[e].sidx,nd.sidx.resolvedUri)}let rd=updateMain$1(td,nd,dashPlaylistUnchanged);rd&&(td=rd,ed=!1)}return forEachMediaGroup(t,(e,t,$,nd)=>{if(e.playlists&&e.playlists.length){let rd=e.playlists[0].id,id=updateMain$1(td,e.playlists[0],dashPlaylistUnchanged);id&&(td=id,nd in td.mediaGroups[t][$]||(td.mediaGroups[t][$][nd]=e),td.mediaGroups[t][$][nd].playlists[0]=td.playlists[rd],ed=!1)}}),removeOldMediaGroupLabels(td,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(ed=!1),ed?null:td},equivalentSidx=(e,t)=>(!e.map&&!t.map||!!(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,compareSidxEntry=(e,t)=>{let $={};for(let ed in e){let td=e[ed].sidx;if(td){let e=generateSidxKey(td);if(!t[e])break;let ed=t[e].sidxInfo;equivalentSidx(ed,td)&&($[e]=t[e])}}return $},filterChangedSidxMappings=(e,t)=>{let $=compareSidxEntry(e.playlists,t);return forEachMediaGroup(e,(e,ed,td,nd)=>{if(e.playlists&&e.playlists.length){let ed=e.playlists;$=merge($,compareSidxEntry(ed,t))}}),$},DashPlaylistLoader=class extends EventTarget$3{constructor(e,t,$={},ed){super(),this.isPaused_=!0,this.mainPlaylistLoader_=ed||this,ed||(this.isMain_=!0);let{withCredentials:td=!1}=$;if(this.vhs_=t,this.withCredentials=td,this.addMetadataToTextTrack=$.addMetadataToTextTrack,!e)throw Error(`A non-empty playlist URL or object is required`);this.on(`minimumUpdatePeriod`,()=>{this.refreshXml_()}),this.on(`mediaupdatetimeout`,()=>{this.refreshMedia_(this.media().id)}),this.state=`HAVE_NOTHING`,this.loadedPlaylists_={},this.logger_=logger(`DashPlaylistLoader`),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,$){if(!this.request)return!0;if(this.request=null,e)return this.error=typeof e==`object`&&!(e instanceof Error)?e:{status:t.status,message:`DASH request error at URL: `+t.uri,response:t.response,code:2,metadata:e.metadata},$&&(this.state=$),this.trigger(`error`),!0}addSidxSegments_(e,t,$){let ed=e.sidx&&generateSidxKey(e.sidx);if(!e.sidx||!ed||this.mainPlaylistLoader_.sidxMapping_[ed]){import_window.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=import_window.default.setTimeout(()=>$(!1),0);return}let td=resolveManifestRedirect(e.sidx.resolvedUri),nd=(td,nd)=>{if(this.requestErrored_(td,nd,t))return;let rd=this.mainPlaylistLoader_.sidxMapping_,{requestType:id}=nd,ad;try{ad=(0,import_parse_sidx.default)(toUint8(nd.response).subarray(8))}catch(e){e.metadata=getStreamingNetworkErrorMetadata({requestType:id,request:nd,parseFailure:!0}),this.requestErrored_(e,nd,t);return}return rd[ed]={sidxInfo:e.sidx,sidx:ad},addSidxSegmentsToPlaylist$1(e,ad,e.sidx.resolvedUri),$(!0)};this.request=containerRequest(td,this.vhs_.xhr,(t,$,ed,rd)=>{if(t)return nd(t,$);if(!ed||ed!==`mp4`){let t=ed||`unknown`;return nd({status:$.status,message:`Unsupported ${t} container type for sidx segment at URL: ${td}`,response:``,playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},$)}let{offset:id,length:ad}=e.sidx.byterange;if(rd.length>=ad+id)return nd(t,{response:rd.subarray(id,id+ad),status:$.status,uri:$.uri});this.request=this.vhs_.xhr({uri:td,responseType:`arraybuffer`,requestType:`dash-sidx`,headers:segmentXhrHeaders({byterange:e.sidx.byterange})},nd)},`dash-sidx`)}dispose(){this.isPaused_=!0,this.trigger(`dispose`),this.stopRequest(),this.loadedPlaylists_={},import_window.default.clearTimeout(this.minimumUpdatePeriodTimeout_),import_window.default.clearTimeout(this.mediaRequest_),import_window.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off(`loadedmetadata`,this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){let e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if(this.state===`HAVE_NOTHING`)throw Error(`Cannot switch media playlist from `+this.state);let t=this.state;if(typeof e==`string`){if(!this.mainPlaylistLoader_.main.playlists[e])throw Error(`Unknown playlist URI: `+e);e=this.mainPlaylistLoader_.main.playlists[e]}let $=!this.media_||e.id!==this.media_.id;if($&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state=`HAVE_METADATA`,this.media_=e,$&&(this.trigger(`mediachanging`),this.trigger(`mediachange`));return}$&&(this.media_&&this.trigger(`mediachanging`),this.addSidxSegments_(e,t,$=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state=`HAVE_METADATA`,this.loadedPlaylists_[t.id]=t,import_window.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.id),e===`HAVE_MAIN_MANIFEST`?this.trigger(`loadedmetadata`):this.trigger(`mediachange`)}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off(`loadedmetadata`,this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),import_window.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(import_window.default.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state===`HAVE_NOTHING`&&(this.started=!1)}load(e){this.isPaused_=!1,import_window.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;let t=this.media();if(e){let e=t?t.targetDuration/2*1e3:5*1e3;this.mediaUpdateTimeout=import_window.default.setTimeout(()=>this.load(),e);return}if(!this.started){this.start();return}t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger(`minimumUpdatePeriod`),this.updateMinimumUpdatePeriodTimeout_()),this.trigger(`mediaupdatetimeout`)):this.trigger(`loadedplaylist`)}
249start(){if(this.started=!0,!this.isMain_){import_window.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=import_window.default.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,t)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){let t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:`manifestrequeststart`,metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:`dash-manifest`},($,ed)=>{if($){let{requestType:e}=ed;$.metadata=getStreamingNetworkErrorMetadata({requestType:e,request:ed,error:$})}if(this.requestErrored_($,ed)){this.state===`HAVE_NOTHING`&&(this.started=!1);return}this.trigger({type:`manifestrequestcomplete`,metadata:t});let td=ed.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=ed.responseText,ed.responseHeaders&&ed.responseHeaders.date?this.mainLoaded_=Date.parse(ed.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=resolveManifestRedirect(this.mainPlaylistLoader_.srcUrl,ed),td){this.handleMain_(),this.syncClientServerClock_(()=>e(ed,td));return}return e(ed,td)})}syncClientServerClock_(e){let t=parseUTCTiming(this.mainPlaylistLoader_.mainXml_);if(t===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(t.method===`DIRECT`)return this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e();this.request=this.vhs_.xhr({uri:resolveUrl(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:`dash-clock-sync`},($,ed)=>{if(!this.request)return;if($){let{requestType:t}=ed;return this.error.metadata=getStreamingNetworkErrorMetadata({requestType:t,request:ed,error:$}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let td;td=t.method===`HEAD`?!ed.responseHeaders||!ed.responseHeaders.date?this.mainLoaded_:Date.parse(ed.responseHeaders.date):Date.parse(ed.responseText),this.mainPlaylistLoader_.clientOffset_=td-Date.now(),e()})}haveMain_(){this.state=`HAVE_MAIN_MANIFEST`,this.isMain_?this.trigger(`loadedplaylist`):this.media_||this.media(this.childPlaylist_)}handleMain_(){import_window.default.clearTimeout(this.mediaRequest_),this.mediaRequest_=null;let e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:`manifestparsestart`,metadata:t});let $;try{$=parseMainXml({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(e){this.error=e,this.error.metadata={errorType:videojs.Error.StreamingDashManifestParserError,error:e},this.trigger(`error`)}e&&($=updateMain(e,$,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=$||e;let ed=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(ed&&ed!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=ed),(!e||$&&$.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_($),$){let{duration:e,endList:ed}=$,td=[];
249$.playlists.forEach(e=>{td.push({id:e.id,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS})}),t.parsedManifest={duration:e,isLive:!ed,renditions:td},this.trigger({type:`manifestparsecomplete`,metadata:t})}return!!$}updateMinimumUpdatePeriodTimeout_(){let e=this.mainPlaylistLoader_;e.createMupOnMedia_&&=(e.off(`loadedmetadata`,e.createMupOnMedia_),null),e.minimumUpdatePeriodTimeout_&&=(import_window.default.clearTimeout(e.minimumUpdatePeriodTimeout_),null);let t=e.main&&e.main.minimumUpdatePeriod;if(t===0&&(e.media()?t=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one(`loadedmetadata`,e.createMupOnMedia_))),typeof t!=`number`||t<=0){t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`);return}this.createMUPTimeout_(t)}createMUPTimeout_(e){let t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=import_window.default.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger(`minimumUpdatePeriod`),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&=this.mainPlaylistLoader_.main.playlists[this.media_.id],this.mainPlaylistLoader_.sidxMapping_=filterChangedSidxMappings(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw Error(`refreshMedia_ must take a media id`);this.media_&&this.isMain_&&this.handleMain_();let t=this.mainPlaylistLoader_.main.playlists,$=!this.media_||this.media_!==t[e];if($?this.media_=t[e]:this.trigger(`playlistunchanged`),!this.mediaUpdateTimeout){let e=()=>{this.media().endList||(this.mediaUpdateTimeout=import_window.default.setTimeout(()=>{this.trigger(`mediaupdatetimeout`),e()},refreshDelay(this.media(),!!$)))};e()}this.trigger(`loadedplaylist`)}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){let e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack(`EventStream`,e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){let t=new Set;for(let $ in e.contentProtection){let ed=e.contentProtection[$].attributes[`cenc:default_KID`];ed&&t.add(ed.replace(/-/g,``).toLowerCase())}return t}}},Config={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},stringToArrayBuffer=e=>{let t=new Uint8Array(new ArrayBuffer(e.length));for(let $=0;$<e.length;$++)t[$]=e.charCodeAt($);return t.buffer},browserWorkerPolyFill=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},createObjectURL=function(e){try{return URL.createObjectURL(new Blob([e],{type:`application/javascript`}))}catch{let t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},factory=function(e){return function(){let t=createObjectURL(e),$=browserWorkerPolyFill(new Worker(t));$.objURL=t;let ed=$.terminate;return $.on=$.addEventListener,$.off=$.removeEventListener,$.terminate=function(){return URL.revokeObjectURL(t),ed.call(this)},$}},transform=function(e){return`var browserWorkerPolyFill = ${browserWorkerPolyFill.toString()};\nbrowserWorkerPolyFill(self); 250`+e},getWorkerString=function(e){return e.toString().replace(/^function.+?{/,``).slice(0,-1)},TransmuxWorker=factory(transform(getWorkerString(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:global===void 0?typeof self<`u`?self:{}:global,t=function(){this.init=function(){var e={};this.on=function(t,$){e[t]||(e[t]=[]),e[t]=e[t].concat($)},this.off=function(t,$){var ed;return e[t]?(ed=e[t].indexOf($),e[t]=e[t].slice(),e[t].splice(ed,1),ed>-1):!1},this.trigger=function(t){var $=e[t],ed,td,nd;if($)if(arguments.length===2)for(td=$.length,ed=0;ed<td;++ed)$[ed].call(this,arguments[1]);else{for(nd=[],ed=arguments.length,ed=1;ed<arguments.length;++ed)nd.push(arguments[ed]);for(td=$.length,ed=0;ed<td;++ed)$[ed].apply(this,nd)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on(`data`,function(t){e.push(t)}),this.on(`done`,function(t){e.flush(t)}),this.on(`partialdone`,function(t){e.partialFlush(t)}),this.on(`endedtimeline`,function(t){e.endTimeline(t)}),this.on(`reset`,function(t){e.reset(t)}),e},t.prototype.push=function(e){this.trigger(`data`,e)},t.prototype.flush=function(e){this.trigger(`done`,e)},t.prototype.partialFlush=function(e){this.trigger(`partialdone`,e)},t.prototype.endTimeline=function(e){this.trigger(`endedtimeline`,e)},t.prototype.reset=function(e){this.trigger(`reset`,e)};var $=t,ed=2**32,td={getUint64:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$;return t.getBigUint64?($=t.getBigUint64(0),$<2**53-1?Number($):$):t.getUint32(0)*ed+t.getUint32(4)},MAX_UINT32:ed},nd=td.MAX_UINT32,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd;(function(){var e;if(Td={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>`u`)){for(e in Td)Td.hasOwnProperty(e)&&(Td[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);Ed=new Uint8Array([105,115,111,109]),Od=new Uint8Array([97,118,99,49]),Dd=new Uint8Array([0,0,0,1]),kd=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ad=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),jd={video:kd,audio:Ad},Pd=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Nd=new Uint8Array([0,0,0,0,0,0,0,0]),Fd=new Uint8Array([0,0,0,0,0,0,0,0]),Id=Fd,Ld=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Rd=Fd,Md=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),rd=function(e){var t=[],$=0,ed,td,nd;for(ed=1;ed<arguments.length;ed++)t.push(arguments[ed]);for(ed=t.length;ed--;
250)$+=t[ed].byteLength;for(td=new Uint8Array($+8),nd=new DataView(td.buffer,td.byteOffset,td.byteLength),nd.setUint32(0,td.byteLength),td.set(e,4),ed=0,$=8;ed<t.length;ed++)td.set(t[ed],$),$+=t[ed].byteLength;return td},id=function(){return rd(Td.dinf,rd(Td.dref,Pd))},ad=function(e){return rd(Td.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},od=function(){return rd(Td.ftyp,Ed,Dd,Ed,Od)},vd=function(e){return rd(Td.hdlr,jd[e])},sd=function(e){return rd(Td.mdat,e)},_d=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,e.duration&255,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=e.samplerate&255),rd(Td.mdhd,t)},gd=function(e){return rd(Td.mdia,_d(e),vd(e.type),ld(e))},cd=function(e){return rd(Td.mfhd,new Uint8Array([0,0,0,0,(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255]))},ld=function(e){return rd(Td.minf,e.type===`video`?rd(Td.vmhd,Md):rd(Td.smhd,Nd),id(),bd(e))},ud=function(e,t){for(var $=[],ed=t.length;ed--;)$[ed]=Sd(t[ed]);return rd.apply(null,[Td.moof,cd(e)].concat($))},dd=function(e){for(var t=e.length,$=[];t--;)$[t]=md(e[t]);return rd.apply(null,[Td.moov,pd(4294967295)].concat($,fd(e)))},fd=function(e){for(var t=e.length,$=[];t--;)$[t]=Cd(e[t]);return rd.apply(null,[Td.mvex].concat($))},pd=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return rd(Td.mvhd,t)},yd=function(e){var t=e.samples||[],$=new Uint8Array(4+t.length),ed,td;for(td=0;td<t.length;td++)ed=t[td].flags,$[td+4]=ed.dependsOn<<4|ed.isDependedOn<<2|ed.hasRedundancy;return rd(Td.sdtp,$)},bd=function(e){return rd(Td.stbl,xd(e),rd(Td.stts,Rd),rd(Td.stsc,Id),rd(Td.stsz,Ld),rd(Td.stco,Fd))},(function(){var e,t;xd=function($){return rd(Td.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),$.type===`video`?e($):t($))},e=function(e){var t=e.sps||[],$=e.pps||[],ed=[],td=[],nd,id;for(nd=0;nd<t.length;nd++)ed.push((t[nd].byteLength&65280)>>>8),ed.push(t[nd].byteLength&255),ed=ed.concat(Array.prototype.slice.call(t[nd]));for(nd=0;nd<$.length;nd++)td.push(($[nd].byteLength&65280)>>>8),td.push($[nd].byteLength&255),td=td.concat(Array.prototype.slice.call($[nd]));if(id=[Td.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(e.width&65280)>>8,e.width&255,(e.height&65280)>>8,e.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),rd(Td.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255,t.length].concat(ed,[$.length],td))),rd(Td.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var ad=e.sarRatio[0],od=e.sarRatio[1];id.push(rd(Td.pasp,new Uint8Array([(ad&4278190080)>>24,(ad&16711680)>>16,(ad&65280)>>8,ad&255,(od&4278190080)>>24,(od&16711680)>>16,(od&65280)>>8,od&255])))}return rd.apply(null,id)},t=function(e){return rd(Td.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(e.channelcount&65280)>>8,e.channelcount&255,(e.samplesize&65280)>>8,e.samplesize&255,0,0,0,0,(e.samplerate&65280)>>8,e.samplerate&255,0,0]),ad(e))}})(),hd=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(e.id&4278190080)>>24,(e.id&16711680)>>16,(e.id&65280)>>8,e.id&255,0,0,0,0,(e.duration&4278190080)>>24,(e.duration&16711680)>>16,(e.duration&65280)>>8,e.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(e.width&65280)>>8,e.width&255,0,0,(e.height&65280)>>8,e.height&255,0,0]);return rd(Td.tkhd,t)},Sd=function(e){var t=rd(Td.tfhd,new Uint8Array([0,0,0,58,(e.id&4278190080)>>24,(e.id&16711680)>>16,(e.id&65280)>>8,e.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),$,ed,td,id,ad=Math.floor(e.baseMediaDecodeTime/nd),od=Math.floor(e.baseMediaDecodeTime%nd);return $=rd(Td.tfdt,new Uint8Array([1,0,0,0,ad>>>24&255,ad>>>16&255,ad>>>8&255,ad&255,od>>>24&255,od>>>16&255,od>>>8&255,od&255])),id=92,e.type===`audio`?(ed=wd(e,id),rd(Td.traf,t,$,ed)):(td=yd(e),ed=wd(e,td.length+id),rd(Td.traf,t,$,ed,td))},md=function(e){return e.duration=e.duration||4294967295,rd(Td.trak,hd(e),gd(e))},Cd=function(e){var t=new Uint8Array([0,0,0,0,(e.id&4278190080)>>24,(e.id&16711680)>>16,(e.id&65280)>>8,e.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.type!==`video`&&(t[t.length-1]=0),rd(Td.trex,t)},(function(){var e,t,$=function(e,t){var $=0,ed=0,td=0,nd=0;return e.length&&(e[0].duration!==void 0&&($=1),e[0].size!==void 0&&(ed=2),e[0].flags!==void 0&&(td=4),e[0].compositionTimeOffset!==void 0&&(nd=8)),[0,0,$|ed|td|nd,1,(e.length&4278190080)>>>24,(e.length&16711680)>>>16,(e.length&65280)>>>8,e.length&255,(t&4278190080)>>>24,(t&16711680)>>>16,(t&65280)>>>8,t&255]};t=function(e,t){var ed,td,nd,id=e.samples||[],ad,od;for(t+=20+16*id.length,nd=$(id,t),td=new Uint8Array(nd.length+id.length*16),td.set(nd),ed=nd.length,od=0;od<id.length;od++)ad=id[od],td[ed++]=(ad.duration&4278190080)>>>24,td[ed++]=(ad.duration&16711680)>>>16,td[ed++]=(ad.duration&65280)>>>8,td[ed++]=ad.duration&255,td[ed++]=(ad.size&4278190080)>>>24,td[ed++]=(ad.size&16711680)>>>16,td[ed++]=(ad.size&65280)>>>8,td[ed++]=ad.size&255,td[ed++]=ad.flags.isLeading<<2|ad.flags.dependsOn,td[ed++]=ad.flags.isDependedOn<<6|ad.flags.hasRedundancy<<4|ad.flags.paddingValue<<1|ad.flags.isNonSyncSample,td[ed++]=ad.flags.degradationPriority&61440,td[ed++]=ad.flags.degradationPriority&15,td[ed++]=(ad.compositionTimeOffset&4278190080)>>>24,td[ed++]=(ad.compositionTimeOffset&16711680)>>>16,td[ed++]=(ad.compositionTimeOffset&65280)>>>8,td[ed++]=ad.compositionTimeOffset&255;return rd(Td.trun,td)},e=function(e,t){var ed,td,nd,id=e.samples||[],ad,od;for(t+=20+8*id.length,nd=$(id,t),ed=new Uint8Array(nd.length+id.length*8),ed.set(nd),td=nd.length,od=0;od<id.length;od++)ad=id[od],ed[td++]=(ad.duration&4278190080)>>>24,ed[td++]=(ad.duration&16711680)>>>16,ed[td++]=(ad.duration&65280)>>>8,ed[td++]=ad.duration&255,ed[td++]=(ad.size&4278190080)>>>24,ed[td++]=(ad.size&16711680)>>>16,ed[td++]=(ad.size&65280)>>>8,ed[td++]=ad.size&255;return rd(Td.trun,ed)},wd=function($,ed){return $.type===`audio`?e($,ed):t($,ed)}})();var zd={ftyp:od,mdat:sd,moof:ud,moov:dd,initSegment:function(e){var t=od(),$=dd(e),ed=new Uint8Array(t.byteLength+$.byteLength);return ed.set(t),ed.set($,t.byteLength),ed}},Bd=function(e){var t,$,ed=[],td=[];for(td.byteLength=0,td.nalCount=0,td.duration=0,ed.byteLength=0,t=0;t<e.length;t++)$=e[t],$.nalUnitType===`access_unit_delimiter_rbsp`?(ed.length&&(ed.duration=$.dts-ed.dts,td.byteLength+=ed.byteLength,td.nalCount+=ed.length,td.duration+=ed.duration,td.push(ed)),ed=[$],ed.byteLength=$.data.byteLength,ed.pts=$.pts,ed.dts=$.dts):($.nalUnitType===`slice_layer_without_partitioning_rbsp_idr`&&(ed.keyFrame=!0),ed.duration=$.dts-ed.dts,ed.byteLength+=$.data.byteLength,ed.push($));return td.length&&(!ed.duration||ed.duration<=0)&&(ed.duration=td[td.length-1].duration),td.byteLength+=ed.byteLength,td.nalCount+=ed.length,td.duration+=ed.duration,td.push(ed),td},Vd=function(e){var t,$,ed=[],td=[];for(ed.byteLength=0,ed.nalCount=0,ed.duration=0,ed.pts=e[0].pts,ed.dts=e[0].dts,td.byteLength=0,td.nalCount=0,td.duration=0,td.pts=e[0].pts,td.dts=e[0].dts,t=0;t<e.length;t++)$=e[t],$.keyFrame?(ed.length&&(td.push(ed),td.byteLength+=ed.byteLength,td.nalCount+=ed.nalCount,td.duration+=ed.duration),ed=[$],ed.nalCount=$.length,ed.byteLength=$.byteLength,ed.pts=$.pts,ed.dts=$.dts,ed.duration=$.duration):(ed.duration+=$.duration,ed.nalCount+=$.length,ed.byteLength+=$.byteLength,ed.push($));return td.length&&ed.duration<=0&&(ed.duration=td[td.length-1].duration),td.byteLength+=ed.byteLength,td.nalCount+=ed.nalCount,td.duration+=ed.duration,td.push(ed),td},Hd=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},Ud=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Wd=function(e,t){var $=Ud();return $.dataOffset=t,$.compositionTimeOffset=e.pts-e.dts,$.duration=e.duration,$.size=4*e.length,$.size+=e.byteLength,e.keyFrame&&($.flags.dependsOn=2,$.flags.isNonSyncSample=0),$},Gd={groupNalsIntoFrames:Bd,groupFramesIntoGops:Vd,extendFirstKeyFrame:Hd,generateSampleTable:function(e,t){var $,ed,td,nd,rd,id=t||0,ad=[];for($=0;$<e.length;$++)for(nd=e[$],ed=0;ed<nd.length;
250ed++)rd=nd[ed],td=Wd(rd,id),id+=td.size,ad.push(td);return ad},concatenateNalData:function(e){var t,$,ed,td,nd,rd,id=0,ad=e.byteLength+4*e.nalCount,od=new Uint8Array(ad),sd=new DataView(od.buffer);for(t=0;t<e.length;t++)for(td=e[t],$=0;$<td.length;$++)for(nd=td[$],ed=0;ed<nd.length;ed++)rd=nd[ed],sd.setUint32(id,rd.data.byteLength),id+=4,od.set(rd.data,id),id+=rd.data.byteLength;return od},generateSampleTableForFrame:function(e,t){var $,ed=t||0,td=[];return $=Wd(e,ed),td.push($),td},concatenateNalDataForFrame:function(e){var t,$,ed=0,td=e.byteLength+4*e.length,nd=new Uint8Array(td),rd=new DataView(nd.buffer);for(t=0;t<e.length;t++)$=e[t],rd.setUint32(ed,$.data.byteLength),ed+=4,nd.set($.data,ed),ed+=$.data.byteLength;return nd}},Kd=[33,16,5,32,164,27],qd=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Jd=function(e){for(var t=[];e--;)t.push(0);return t},Yd=function(e){return Object.keys(e).reduce(function(t,$){return t[$]=new Uint8Array(e[$].reduce(function(e,t){return e.concat(t)},[])),t},{})},Xd,Zd=function(){return Xd||=Yd({96e3:[Kd,[227,64],Jd(154),[56]],88200:[Kd,[231],Jd(170),[56]],64e3:[Kd,[248,192],Jd(240),[56]],48e3:[Kd,[255,192],Jd(268),[55,148,128],Jd(54),[112]],44100:[Kd,[255,192],Jd(268),[55,163,128],Jd(84),[112]],32e3:[Kd,[255,192],Jd(268),[55,234],Jd(226),[112]],24e3:[Kd,[255,192],Jd(268),[55,255,128],Jd(268),[111,112],Jd(126),[224]],16e3:[Kd,[255,192],Jd(268),[55,255,128],Jd(268),[111,255],Jd(269),[223,108],Jd(195),[1,192]],12e3:[qd,Jd(268),[3,127,248],Jd(268),[6,255,240],Jd(268),[13,255,224],Jd(268),[27,253,128],Jd(259),[56]],11025:[qd,Jd(268),[3,127,248],Jd(268),[6,255,240],Jd(268),[13,255,224],Jd(268),[27,255,192],Jd(268),[55,175,128],Jd(108),[112]],8e3:[qd,Jd(268),[3,121,16],Jd(47),[7]]}),Xd},Qd=9e4,$d=function(e){return e*Qd},ef=function(e,t){return e*t},tf=function(e){return e/Qd},nf=function(e,t){return e/t},rf={ONE_SECOND_IN_TS:Qd,secondsToVideoTs:$d,secondsToAudioTs:ef,videoTsToSeconds:tf,audioTsToSeconds:nf,audioTsToVideoTs:function(e,t){return $d(nf(e,t))},videoTsToAudioTs:function(e,t){return ef(tf(e),t)},metadataTsToSeconds:function(e,t,$){return tf($?e:e-t)}},af=Zd,of=rf,sf=function(e){var t,$,ed=0;for(t=0;t<e.length;t++)$=e[t],ed+=$.data.byteLength;return ed},cf={prefixWithSilence:function(e,t,$,ed){var td,nd=0,rd=0,id=0,ad=0,od,sd,cd;if(t.length&&(td=of.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),nd=Math.ceil(of.ONE_SECOND_IN_TS/(e.samplerate/1024)),$&&ed&&(rd=td-Math.max($,ed),id=Math.floor(rd/nd),ad=id*nd),!(id<1||ad>of.ONE_SECOND_IN_TS/2))){for(od=af()[e.samplerate],od||=t[0].data,sd=0;sd<id;sd++)cd=t[0],t.splice(0,0,{data:od,dts:cd.dts-nd,pts:cd.pts-nd});return e.baseMediaDecodeTime-=Math.floor(of.videoTsToAudioTs(ad,e.samplerate)),ad}},trimAdtsFramesByEarliestDts:function(e,t,$){return t.minSegmentDts>=$?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=$?(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0):!1}))},generateSampleTable:function(e){var t,$,ed=[];for(t=0;t<e.length;t++)$=e[t],ed.push({size:$.data.byteLength,duration:1024});return ed},concatenateFrameData:function(e){var t,$,ed=0,td=new Uint8Array(sf(e));for(t=0;t<e.length;t++)$=e[t],td.set($.data,ed),ed+=$.data.byteLength;return td}},lf=rf.ONE_SECOND_IN_TS,uf={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var $,ed,td=e.minSegmentDts;return t||(td-=e.timelineStartInfo.dts),$=e.timelineStartInfo.baseMediaDecodeTime,$+=td,$=Math.max(0,$),e.type===`audio`&&(ed=e.samplerate/lf,$*=ed,$=Math.floor($)),$},collectDtsInfo:function(e,t){typeof t.pts==`number`&&(e.timelineStartInfo.pts===void 0&&(e.timelineStartInfo.pts=t.pts),e.minSegmentPts===void 0?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),e.maxSegmentPts===void 0?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),typeof t.dts==`number`&&(e.timelineStartInfo.dts===void 0&&(e.timelineStartInfo.dts=t.dts),e.minSegmentDts===void 0?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.maxSegmentDts===void 0?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},df=4,ff=128,pf={parseSei:function(e){for(var t=0,$={payloadType:-1,payloadSize:0},ed=0,td=0;t<e.byteLength&&e[t]!==ff;){for(;e[t]===255;)ed+=255,t++;for(ed+=e[t++];e[t]===255;)td+=255,t++;if(td+=e[t++],!$.payload&&ed===df)if(String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])===`GA94`){$.payloadType=ed,$.payloadSize=td,$.payload=e.subarray(t,t+td);break}else $.payload=void 0;t+=td,ed=0,td=0}return $},parseUserData:function(e){return e.payload[0]!==181||(e.payload[1]<<8|e.payload[2])!=49||String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])!==`GA94`||e.payload[7]!==3?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var $=[],ed,td,nd,rd;if(!(t[0]&64))return $;for(td=t[0]&31,ed=0;ed<td;ed++)nd=ed*3,rd={type:t[nd+2]&3,pts:e}
250,t[nd+2]&4&&(rd.ccData=t[nd+3]<<8|t[nd+4],$.push(rd));return $},discardEmulationPreventionBytes:function(e){for(var t=e.byteLength,$=[],ed=1,td,nd;ed<t-2;)e[ed]===0&&e[ed+1]===0&&e[ed+2]===3?($.push(ed+2),ed+=2):ed++;if($.length===0)return e;td=t-$.length,nd=new Uint8Array(td);var rd=0;for(ed=0;ed<td;rd++,ed++)rd===$[0]&&(rd++,$.shift()),nd[ed]=e[rd];return nd},USER_DATA_REGISTERED_ITU_T_T35:df},mf=$,hf=pf,gf=function(e){e||={},gf.prototype.init.call(this),this.parse708captions_=typeof e.parse708captions==`boolean`?e.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new Of(0,0),new Of(0,1),new Of(1,0),new Of(1,1)],this.parse708captions_&&(this.cc708Stream_=new Sf({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on(`data`,this.trigger.bind(this,`data`)),e.on(`partialdone`,this.trigger.bind(this,`partialdone`)),e.on(`done`,this.trigger.bind(this,`done`))},this),this.parse708captions_&&(this.cc708Stream_.on(`data`,this.trigger.bind(this,`data`)),this.cc708Stream_.on(`partialdone`,this.trigger.bind(this,`partialdone`)),this.cc708Stream_.on(`done`,this.trigger.bind(this,`done`)))};gf.prototype=new mf,gf.prototype.push=function(e){var t,$,ed;if(e.nalUnitType===`sei_rbsp`&&(t=hf.parseSei(e.escapedRBSP),t.payload&&t.payloadType===hf.USER_DATA_REGISTERED_ITU_T_T35&&($=hf.parseUserData(t),$))){if(e.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}ed=hf.parseCaptionPackets(e.pts,$),this.captionPackets_=this.captionPackets_.concat(ed),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},gf.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return e===`flush`?t.flush():t.partialFlush()},this)},gf.prototype.flushStream=function(e){if(!this.captionPackets_.length){this.flushCCStreams(e);return}this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)},gf.prototype.flush=function(){return this.flushStream(`flush`)},gf.prototype.partialFlush=function(){return this.flushStream(`partialFlush`)},gf.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},gf.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),this.activeCea608Channel_[e.type]!==null&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},gf.prototype.setsChannel1Active=function(e){return(e.ccData&30720)==4096},gf.prototype.setsChannel2Active=function(e){return(e.ccData&30720)==6144},gf.prototype.setsTextOrXDSActive=function(e){return(e.ccData&28928)==256||(e.ccData&30974)==4138||(e.ccData&30974)==6186},gf.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var _f={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},vf=function(e){var t=_f[e]||e;return e&4096&&e===t?``:String.fromCharCode(t)},yf=function(e){return 32<=e&&e<=127||160<=e&&e<=255},bf=function(e){this.windowNum=e,this.reset()};bf.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},bf.prototype.getText=function(){return this.rows.join(` 251`)},bf.prototype.clearText=function(){this.rows=[``],this.rowIdx=0},bf.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow==`function`&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(``),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},bf.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]===``:!1},bf.prototype.addText=function(e){this.rows[this.rowIdx]+=e},bf.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var xf=function(e,t,$){this.serviceNum=e,this.text=``,this.currentWindow=new bf(-1),this.windows=[],this.stream=$,typeof t==`string`&&this.createTextDecoder(t)};xf.prototype.init=function(e,t){this.startPts=e;for(var $=0;$<8;$++)this.windows[$]=new bf($),typeof t==`function`&&(this.windows[$].beforeRowOverflow=t)},xf.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},xf.prototype.createTextDecoder=function(e){if(typeof TextDecoder>`u`)this.stream.trigger(`log`,{level:`warn`,message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger(`log`,{level:`warn`,message:`TextDecoder could not be created with `+e+` encoding. `+t})}};var Sf=function(e){e||={},Sf.prototype.init.call(this);var t=this,$=e.captionServices||{},ed={},td;
251Object.keys($).forEach(e=>{td=$[e],/^SERVICE/.test(e)&&(ed[e]=td.encoding)}),this.serviceEncodings=ed,this.current708Packet=null,this.services={},this.push=function(e){e.type===3?(t.new708Packet(),t.add708Bytes(e)):(t.current708Packet===null&&t.new708Packet(),t.add708Bytes(e))}};Sf.prototype=new mf,Sf.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Sf.prototype.add708Bytes=function(e){var t=e.ccData,$=t>>>8,ed=t&255;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push($),this.current708Packet.data.push(ed)},Sf.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,$=null,ed=null,td=0,nd=t[td++];for(e.seq=nd>>6,e.sizeCode=nd&63;td<t.length;td++)nd=t[td++],$=nd>>5,ed=nd&31,$===7&&ed>0&&(nd=t[td++],$=nd),this.pushServiceBlock($,td,ed),ed>0&&(td+=ed-1)},Sf.prototype.pushServiceBlock=function(e,t,$){var ed,td=t,nd=this.current708Packet.data,rd=this.services[e];for(rd||=this.initService(e,td);td<t+$&&td<nd.length;td++)ed=nd[td],yf(ed)?td=this.handleText(td,rd):ed===24?td=this.multiByteCharacter(td,rd):ed===16?td=this.extendedCommands(td,rd):128<=ed&&ed<=135?td=this.setCurrentWindow(td,rd):152<=ed&&ed<=159?td=this.defineWindow(td,rd):ed===136?td=this.clearWindows(td,rd):ed===140?td=this.deleteWindows(td,rd):ed===137?td=this.displayWindows(td,rd):ed===138?td=this.hideWindows(td,rd):ed===139?td=this.toggleWindows(td,rd):ed===151?td=this.setWindowAttributes(td,rd):ed===144?td=this.setPenAttributes(td,rd):ed===145?td=this.setPenColor(td,rd):ed===146?td=this.setPenLocation(td,rd):ed===143?rd=this.reset(td,rd):ed===8?rd.currentWindow.backspace():ed===12?rd.currentWindow.clearText():ed===13?rd.currentWindow.pendingNewLine=!0:ed===14?rd.currentWindow.clearText():ed===141&&td++},Sf.prototype.extendedCommands=function(e,t){var $=this.current708Packet.data[++e];return yf($)&&(e=this.handleText(e,t,{isExtended:!0})),e},Sf.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Sf.prototype.initService=function(e,t){var $=`SERVICE`+e,ed=this,$,td;return $ in this.serviceEncodings&&(td=this.serviceEncodings[$]),this.services[e]=new xf(e,td,ed),this.services[e].init(this.getPts(t),function(t){ed.flushDisplayed(t,ed.services[e])}),this.services[e]},Sf.prototype.handleText=function(e,t,$){var ed=$&&$.isExtended,td=$&&$.isMultiByte,nd=this.current708Packet.data,rd=ed?4096:0,id=nd[e],ad=nd[e+1],od=t.currentWindow,sd,cd;function ld(e){return e.map(e=>(`0`+(e&255).toString(16)).slice(-2)).join(``)}if(td?(cd=[id,ad],e++):cd=[id],t.textDecoder_&&!ed)sd=t.textDecoder_.decode(new Uint8Array(cd));else if(td){let e=ld(cd);sd=String.fromCharCode(parseInt(e,16))}else sd=vf(rd|id);return od.pendingNewLine&&!od.isEmpty()&&od.newLine(this.getPts(e)),od.pendingNewLine=!1,od.addText(sd),e},Sf.prototype.multiByteCharacter=function(e,t){var $=this.current708Packet.data,ed=$[e+1],td=$[e+2];return yf(ed)&&yf(td)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Sf.prototype.setCurrentWindow=function(e,t){var $=this.current708Packet.data[e]&7;return t.setCurrentWindow($),e},Sf.prototype.defineWindow=function(e,t){var $=this.current708Packet.data,ed=$[e],td=ed&7;t.setCurrentWindow(td);var nd=t.currentWindow;return ed=$[++e],nd.visible=(ed&32)>>5,nd.rowLock=(ed&16)>>4,nd.columnLock=(ed&8)>>3,nd.priority=ed&7,ed=$[++e],nd.relativePositioning=(ed&128)>>7,nd.anchorVertical=ed&127,ed=$[++e],nd.anchorHorizontal=ed,ed=$[++e],nd.anchorPoint=(ed&240)>>4,nd.rowCount=ed&15,ed=$[++e],nd.columnCount=ed&63,ed=$[++e],nd.windowStyle=(ed&56)>>3,nd.penStyle=ed&7,nd.virtualRowCount=nd.rowCount+1,e},Sf.prototype.setWindowAttributes=function(e,t){var $=this.current708Packet.data,ed=$[e],td=t.currentWindow.winAttr;return ed=$[++e],td.fillOpacity=(ed&192)>>6,td.fillRed=(ed&48)>>4,td.fillGreen=(ed&12)>>2,td.fillBlue=ed&3,ed=$[++e],td.borderType=(ed&192)>>6,td.borderRed=(ed&48)>>4,td.borderGreen=(ed&12)>>2,td.borderBlue=ed&3,ed=$[++e],td.borderType+=(ed&128)>>5,td.wordWrap=(ed&64)>>6,td.printDirection=(ed&48)>>4,td.scrollDirection=(ed&12)>>2,td.justify=ed&3,ed=$[++e],td.effectSpeed=(ed&240)>>4,td.effectDirection=(ed&12)>>2,td.displayEffect=ed&3,e},Sf.prototype.flushDisplayed=function(e,t){for(var $=[],ed=0;ed<8;ed++)t.windows[ed].visible&&!t.windows[ed].isEmpty()&&$.push(t.windows[ed].getText());t.endPts=e,t.text=$.join(` 252 253`),this.pushCaption(t),t.startPts=e},Sf.prototype.pushCaption=function(e){e.text!==``&&(this.trigger(`data`,{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
253:`cc708_`+e.serviceNum}),e.text=``,e.startPts=e.endPts)},Sf.prototype.displayWindows=function(e,t){var $=this.current708Packet.data[++e],ed=this.getPts(e);this.flushDisplayed(ed,t);for(var td=0;td<8;td++)$&1<<td&&(t.windows[td].visible=1);return e},Sf.prototype.hideWindows=function(e,t){var $=this.current708Packet.data[++e],ed=this.getPts(e);this.flushDisplayed(ed,t);for(var td=0;td<8;td++)$&1<<td&&(t.windows[td].visible=0);return e},Sf.prototype.toggleWindows=function(e,t){var $=this.current708Packet.data[++e],ed=this.getPts(e);this.flushDisplayed(ed,t);for(var td=0;td<8;td++)$&1<<td&&(t.windows[td].visible^=1);return e},Sf.prototype.clearWindows=function(e,t){var $=this.current708Packet.data[++e],ed=this.getPts(e);this.flushDisplayed(ed,t);for(var td=0;td<8;td++)$&1<<td&&t.windows[td].clearText();return e},Sf.prototype.deleteWindows=function(e,t){var $=this.current708Packet.data[++e],ed=this.getPts(e);this.flushDisplayed(ed,t);for(var td=0;td<8;td++)$&1<<td&&t.windows[td].reset();return e},Sf.prototype.setPenAttributes=function(e,t){var $=this.current708Packet.data,ed=$[e],td=t.currentWindow.penAttr;return ed=$[++e],td.textTag=(ed&240)>>4,td.offset=(ed&12)>>2,td.penSize=ed&3,ed=$[++e],td.italics=(ed&128)>>7,td.underline=(ed&64)>>6,td.edgeType=(ed&56)>>3,td.fontStyle=ed&7,e},Sf.prototype.setPenColor=function(e,t){var $=this.current708Packet.data,ed=$[e],td=t.currentWindow.penColor;return ed=$[++e],td.fgOpacity=(ed&192)>>6,td.fgRed=(ed&48)>>4,td.fgGreen=(ed&12)>>2,td.fgBlue=ed&3,ed=$[++e],td.bgOpacity=(ed&192)>>6,td.bgRed=(ed&48)>>4,td.bgGreen=(ed&12)>>2,td.bgBlue=ed&3,ed=$[++e],td.edgeRed=(ed&48)>>4,td.edgeGreen=(ed&12)>>2,td.edgeBlue=ed&3,e},Sf.prototype.setPenLocation=function(e,t){var $=this.current708Packet.data,ed=$[e],td=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,ed=$[++e],td.row=ed&15,ed=$[++e],td.column=ed&63,e},Sf.prototype.reset=function(e,t){var $=this.getPts(e);return this.flushDisplayed($,t),this.initService(t.serviceNum,e)};var Cf={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},wf=function(e){return e===null?``:(e=Cf[e]||e,String.fromCharCode(e))},Tf=14,Ef=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Df=function(){for(var e=[],t=Tf+1;t--;)e.push({text:``,indent:0,offset:0});return e},Of=function(e,t){Of.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_=`CC`+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t=e.ccData&32639,$,ed,td,nd;if(t===this.lastControlCode_){this.lastControlCode_=null;return}if((t&61440)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),ed=t>>>8,td=t&255,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_=`popOn`;else if(t===this.END_OF_CAPTION_)this.mode_=`popOn`,this.clearFormatting(e.pts),this.flushDisplayed(e.pts),$=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=$,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)this.mode_===`popOn`?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Df();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Df();else if(t===this.RESUME_DIRECT_CAPTIONING_)this.mode_!==`paintOn`&&(this.flushDisplayed(e.pts),this.displayed_=Df()),this.mode_=`paintOn`,this.startPts_=e.pts;else if(this.isSpecialCharacter(ed,td))ed=(ed&3)<<8,nd=wf(ed|td),this[this.mode_](e.pts,nd),this.column_++;else if(this.isExtCharacter(ed,td))this.mode_===`popOn`?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),ed=(ed&3)<<8,nd=wf(ed|td),this[this.mode_](e.pts,nd),this.column_++;else if(this.isMidRowCode(ed,td))this.clearFormatting(e.pts),this[this.mode_](e.pts,` `),this.column_++,(td&14)==14&&this.addFormatting(e.pts,[`i`]),(td&1)==1&&this.addFormatting(e.pts,[`u`]);else if(this.isOffsetControlCode(ed,td)){let e=td&3;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(ed,td)){var rd=Ef.indexOf(t&7968);
253if(this.mode_===`rollUp`&&(rd-this.rollUpRows_+1<0&&(rd=this.rollUpRows_-1),this.setRollUp(e.pts,rd)),rd!==this.row_&&rd>=0&&rd<=14&&(this.clearFormatting(e.pts),this.row_=rd),td&1&&this.formatting_.indexOf(`u`)===-1&&this.addFormatting(e.pts,[`u`]),(t&16)==16){let e=(t&14)>>1;this.column_=e*4,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(td)&&(td&14)==14&&this.addFormatting(e.pts,[`i`])}else this.isNormalChar(ed)&&(td===0&&(td=null),nd=wf(ed),nd+=wf(td),this[this.mode_](e.pts,nd),this.column_+=nd.length)}};Of.prototype=new mf,Of.prototype.flushDisplayed=function(e){let t=e=>{this.trigger(`log`,{level:`warn`,message:`Skipping a malformed 608 caption at index `+e+`.`})},$=[];this.displayed_.forEach((e,ed)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch{t(ed)}e.text.length&&$.push({text:e.text,line:ed+1,position:10+Math.min(70,e.indent*10)+e.offset*2.5})}else e??t(ed)}),$.length&&this.trigger(`data`,{startPts:this.startPts_,endPts:e,content:$,stream:this.name_})},Of.prototype.reset=function(){this.mode_=`popOn`,this.topRow_=0,this.startPts_=0,this.displayed_=Df(),this.nonDisplayed_=Df(),this.lastControlCode_=null,this.column_=0,this.row_=Tf,this.rollUpRows_=2,this.formatting_=[]},Of.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},Of.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Of.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Of.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Of.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Of.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Of.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Of.prototype.isNormalChar=function(e){return e>=32&&e<=127},Of.prototype.setRollUp=function(e,t){if(this.mode_!==`rollUp`&&(this.row_=Tf,this.mode_=`rollUp`,this.flushDisplayed(e),this.nonDisplayed_=Df(),this.displayed_=Df()),t!==void 0&&t!==this.row_)for(var $=0;$<this.rollUpRows_;$++)this.displayed_[t-$]=this.displayed_[this.row_-$],this.displayed_[this.row_-$]={text:``,indent:0,offset:0};t===void 0&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Of.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var $=t.reduce(function(e,t){return e+`<`+t+`>`},``);this[this.mode_](e,$)},Of.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+`</`+t+`>`},``);this.formatting_=[],this[this.mode_](e,t)}},Of.prototype.popOn=function(e,t){var $=this.nonDisplayed_[this.row_].text;$+=t,this.nonDisplayed_[this.row_].text=$},Of.prototype.rollUp=function(e,t){var $=this.displayed_[this.row_].text;$+=t,this.displayed_[this.row_].text=$},Of.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:``,indent:0,offset:0};for(e=this.row_+1;e<Tf+1;e++)this.displayed_[e]={text:``,indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:``,indent:0,offset:0}},Of.prototype.paintOn=function(e,t){var $=this.displayed_[this.row_].text;$+=t,this.displayed_[this.row_].text=$};var kf={CaptionStream:gf,Cea608Stream:Of,Cea708Stream:Sf},Af={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},jf=$,Mf=8589934592,Nf=4294967296,Pf=`shared`,Ff=function(e,t){var $=1;for(e>t&&($=-1);Math.abs(t-e)>Nf;)e+=$*Mf;return e},If=function(e){var t,$;If.prototype.init.call(this),this.type_=e||Pf,this.push=function(e){if(e.type===`metadata`){this.trigger(`data`,e);return}this.type_!==Pf&&e.type!==this.type_||($===void 0&&($=e.dts),e.dts=Ff(e.dts,$),e.pts=Ff(e.pts,$),t=e.dts,this.trigger(`data`,e))},this.flush=function(){$=t,this.trigger(`done`)},this.endTimeline=function(){this.flush(),this.trigger(`endedtimeline`)},this.discontinuity=function(){$=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger(`reset`)}};If.prototype=new jf;var Lf={TimestampRolloverStream:If,handleRollover:Ff},Rf={typedArrayIndexOf:(e,t,$)=>
253{if(!e)return-1;for(var ed=$;ed<e.length;ed++)if(e[ed]===t)return ed;return-1}}.typedArrayIndexOf,zf={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},Bf=function(e,t,$){var ed,td=``;for(ed=t;ed<$;ed++)td+=`%`+(`00`+e[ed].toString(16)).slice(-2);return td},Vf=function(e,t,$){return decodeURIComponent(Bf(e,t,$))},Hf=function(e,t,$){return unescape(Bf(e,t,$))},Uf=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Wf={APIC:function(e){var t=1,$,ed;e.data[0]===zf.Utf8&&($=Rf(e.data,0,t),!($<0)&&(e.mimeType=Hf(e.data,t,$),t=$+1,e.pictureType=e.data[t],t++,ed=Rf(e.data,0,t),!(ed<0)&&(e.description=Vf(e.data,t,ed),t=ed+1,e.mimeType===`-->`?e.url=Hf(e.data,t,e.data.length):e.pictureData=e.data.subarray(t,e.data.length))))},"T*":function(e){e.data[0]===zf.Utf8&&(e.value=Vf(e.data,1,e.data.length).replace(/\0*$/,``),e.values=e.value.split(`\0`))},TXXX:function(e){var t;e.data[0]===zf.Utf8&&(t=Rf(e.data,0,1),t!==-1&&(e.description=Vf(e.data,1,t),e.value=Vf(e.data,t+1,e.data.length).replace(/\0*$/,``),e.data=e.value))},"W*":function(e){e.url=Hf(e.data,0,e.data.length).replace(/\0.*$/,``)},WXXX:function(e){var t;e.data[0]===zf.Utf8&&(t=Rf(e.data,0,1),t!==-1&&(e.description=Vf(e.data,1,t),e.url=Hf(e.data,t+1,e.data.length).replace(/\0.*$/,``)))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(e.data[t]===0){e.owner=Hf(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},Gf={parseId3Frames:function(e){var t,$,ed=10,td=0,nd=[];if(!(e.length<10||e[0]!==73||e[1]!==68||e[2]!==51)){td=Uf(e.subarray(6,10)),td+=10,e[5]&64&&(ed+=4,ed+=Uf(e.subarray(10,14)),td-=Uf(e.subarray(16,20)));do{if(t=Uf(e.subarray(ed+4,ed+8)),t<1)break;$=String.fromCharCode(e[ed],e[ed+1],e[ed+2],e[ed+3]);var rd={id:$,data:e.subarray(ed+10,ed+t+10)};rd.key=rd.id,Wf[rd.id]?Wf[rd.id](rd):rd.id[0]===`T`?Wf[`T*`](rd):rd.id[0]===`W`&&Wf[`W*`](rd),nd.push(rd),ed+=10,ed+=t}while(ed<td);return nd}},parseSyncSafeInteger:Uf,frameParsers:Wf},Kf=$,qf=Af,Jf=Gf,Yf=function(e){var t={descriptor:e&&e.descriptor},$=0,ed=[],td=0,nd;if(Yf.prototype.init.call(this),this.dispatchType=qf.METADATA_STREAM_TYPE.toString(16),t.descriptor)for(nd=0;nd<t.descriptor.length;nd++)this.dispatchType+=(`00`+t.descriptor[nd].toString(16)).slice(-2);this.push=function(e){var t,nd,rd,id,ad,od;if(e.type===`timed-metadata`){if(e.dataAlignmentIndicator&&(td=0,ed.length=0),ed.length===0&&(e.data.length<10||e.data[0]!==73||e.data[1]!==68||e.data[2]!==51)){this.trigger(`log`,{level:`warn`,message:`Skipping unrecognized metadata packet`});return}if(ed.push(e),td+=e.data.byteLength,ed.length===1&&($=Jf.parseSyncSafeInteger(e.data.subarray(6,10)),$+=10),!(td<$)){for(t={data:new Uint8Array($),frames:[],pts:ed[0].pts,dts:ed[0].dts},ad=0;ad<$;)t.data.set(ed[0].data.subarray(0,$-ad),ad),ad+=ed[0].data.byteLength,td-=ed[0].data.byteLength,ed.shift();nd=10,t.data[5]&64&&(nd+=4,nd+=Jf.parseSyncSafeInteger(t.data.subarray(10,14)),$-=Jf.parseSyncSafeInteger(t.data.subarray(16,20)));do{if(rd=Jf.parseSyncSafeInteger(t.data.subarray(nd+4,nd+8)),rd<1){this.trigger(`log`,{level:`warn`,message:`Malformed ID3 frame encountered. Skipping remaining metadata parsing.`});break}if(od=String.fromCharCode(t.data[nd],t.data[nd+1],t.data[nd+2],t.data[nd+3]),id={id:od,data:t.data.subarray(nd+10,nd+rd+10)},id.key=id.id,Jf.frameParsers[id.id]?Jf.frameParsers[id.id](id):id.id[0]===`T`?Jf.frameParsers[`T*`](id):id.id[0]===`W`&&Jf.frameParsers[`W*`](id),id.owner===`com.apple.streaming.transportStreamTimestamp`){var sd=id.data,cd=(sd[3]&1)<<30|sd[4]<<22|sd[5]<<14|sd[6]<<6|sd[7]>>>2;cd*=4,cd+=sd[7]&3,id.timeStamp=cd,t.pts===void 0&&t.dts===void 0&&(t.pts=id.timeStamp,t.dts=id.timeStamp),this.trigger(`timestamp`,id)}t.frames.push(id),nd+=10,nd+=rd}while(nd<$);this.trigger(`data`,t)}}}};Yf.prototype=new Kf;var Xf=Yf,Zf=$,Qf=kf,$f=Af,em=Lf.TimestampRolloverStream,tm,nm,rm,im=188,am=71;tm=function(){var e=new Uint8Array(im),t=0;tm.prototype.init.call(this),this.push=function($){var ed=0,td=im,nd;for(t?(nd=new Uint8Array($.byteLength+t),nd.set(e.subarray(0,t)),nd.set($,t),t=0):nd=$;td<nd.byteLength;){if(nd[ed]===am&&nd[td]===am){this.trigger(`data`,nd.subarray(ed,td)),ed+=im,td+=im;continue}ed++,td++}ed<nd.byteLength&&(e.set(nd.subarray(ed),0),t=nd.byteLength-ed)},this.flush=function(){t===im&&e[0]===am&&(this.trigger(`data`,e),t=0),this.trigger(`done`)},this.endTimeline=function(){this.flush(),this.trigger(`endedtimeline`)},this.reset=function(){t=0,this.trigger(`reset`)}},tm.prototype=new Zf,nm=function(){var e,t,$,ed;nm.prototype.init.call(this),ed=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,ed){var td=0;ed.payloadUnitStartIndicator&&(td+=e[td]+1),ed.type===`pat`?t(e.subarray(td),ed):$(e.subarray(td),ed)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],ed.pmtPid=(e[10]&31)<<8|e[11],t.pmtPid=ed.pmtPid},$=function(e,t){var $,td,nd,rd;if(e[5]&1){for(ed.programMapTable={video:null,audio:null,"timed-metadata":{}},$=(e[1]&15)<<8|e[2],td=3+$-4,nd=(e[10]&15)<<8|e[11],rd=12+nd;rd<td;){var id=e[rd],ad=(e[rd+1]&31)<<8|e[rd+2];id===$f.H264_STREAM_TYPE&&ed.programMapTable.video===null?ed.programMapTable.video=ad:id===$f.ADTS_STREAM_TYPE&&ed.programMapTable.audio===null?ed.programMapTable.audio=ad:id===$f.METADATA_STREAM_TYPE&&(ed.programMapTable[`timed-metadata`][ad]=id),rd+=((e[rd+3]&15)<<8|e[rd+4])+5}t.programMapTable=ed.programMapTable}},this.push=function(t){var $={},ed=4;if($.payloadUnitStartIndicator=!!(t[1]&64),$.pid=t[1]&31,$.pid<<=8,$.pid|=t[2],(t[3]&48)>>>4>
2531&&(ed+=t[ed]+1),$.pid===0)$.type=`pat`,e(t.subarray(ed),$),this.trigger(`data`,$);else if($.pid===this.pmtPid)for($.type=`pmt`,e(t.subarray(ed),$),this.trigger(`data`,$);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([t,ed,$]):this.processPes_(t,ed,$)},this.processPes_=function(e,t,$){$.pid===this.programMapTable.video?$.streamType=$f.H264_STREAM_TYPE:$.pid===this.programMapTable.audio?$.streamType=$f.ADTS_STREAM_TYPE:$.streamType=this.programMapTable[`timed-metadata`][$.pid],$.type=`pes`,$.data=e.subarray(t),this.trigger(`data`,$)}},nm.prototype=new Zf,nm.STREAM_TYPES={h264:27,adts:15},rm=function(){var e=this,t=!1,$={data:[],size:0},ed={data:[],size:0},td={data:[],size:0},nd,rd=function(e,t){var $;let ed=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,ed===1&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(e[6]&4)!=0,$=e[7],$&192&&(t.pts=(e[9]&14)<<27|(e[10]&255)<<20|(e[11]&254)<<12|(e[12]&255)<<5|(e[13]&254)>>>3,t.pts*=4,t.pts+=(e[13]&6)>>>1,t.dts=t.pts,$&64&&(t.dts=(e[14]&14)<<27|(e[15]&255)<<20|(e[16]&254)<<12|(e[17]&255)<<5|(e[18]&254)>>>3,t.dts*=4,t.dts+=(e[18]&6)>>>1)),t.data=e.subarray(9+e[8]))},id=function(t,$,ed){var td=new Uint8Array(t.size),nd={type:$},id=0,ad=0,od=!1,sd;if(!(!t.data.length||t.size<9)){for(nd.trackId=t.data[0].pid,id=0;id<t.data.length;id++)sd=t.data[id],td.set(sd.data,ad),ad+=sd.data.byteLength;rd(td,nd),od=$===`video`||nd.packetLength<=t.size,(ed||od)&&(t.size=0,t.data.length=0),od&&e.trigger(`data`,nd)}};rm.prototype.init.call(this),this.push=function(rd){({pat:function(){},pes:function(){var e,t;switch(rd.streamType){case $f.H264_STREAM_TYPE:e=$,t=`video`;break;case $f.ADTS_STREAM_TYPE:e=ed,t=`audio`;break;case $f.METADATA_STREAM_TYPE:e=td,t=`timed-metadata`;break;default:return}rd.payloadUnitStartIndicator&&id(e,t,!0),e.data.push(rd),e.size+=rd.data.byteLength},pmt:function(){var $={type:`metadata`,tracks:[]};nd=rd.programMapTable,nd.video!==null&&$.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+nd.video,codec:`avc`,type:`video`}),nd.audio!==null&&$.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+nd.audio,codec:`adts`,type:`audio`}),t=!0,e.trigger(`data`,$)}})[rd.type]()},this.reset=function(){$.size=0,$.data.length=0,ed.size=0,ed.data.length=0,this.trigger(`reset`)},this.flushStreams_=function(){id($,`video`),id(ed,`audio`),id(td,`timed-metadata`)},this.flush=function(){if(!t&&nd){var $={type:`metadata`,tracks:[]};nd.video!==null&&$.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+nd.video,codec:`avc`,type:`video`}),nd.audio!==null&&$.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+nd.audio,codec:`adts`,type:`audio`}),e.trigger(`data`,$)}t=!1,this.flushStreams_(),this.trigger(`done`)}},rm.prototype=new Zf;var om={PAT_PID:0,MP2T_PACKET_LENGTH:im,TransportPacketStream:tm,TransportParseStream:nm,ElementaryStream:rm,TimestampRolloverStream:em,CaptionStream:Qf.CaptionStream,Cea608Stream:Qf.Cea608Stream,Cea708Stream:Qf.Cea708Stream,MetadataStream:Xf};for(var sm in $f)$f.hasOwnProperty(sm)&&(om[sm]=$f[sm]);var cm=om,lm=$,um=rf.ONE_SECOND_IN_TS,dm,fm=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];dm=function(e){var t,$=0;dm.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger(`log`,{level:`warn`,message:`adts ski
253ping bytes ${e} to ${t} in frame ${$} outside syncword`})},this.push=function(ed){var td=0,nd,rd,id,ad,od;if(e||($=0),ed.type===`audio`){t&&t.length?(id=t,t=new Uint8Array(id.byteLength+ed.data.byteLength),t.set(id),t.set(ed.data,id.byteLength)):t=ed.data;for(var sd;td+7<t.length;){if(t[td]!==255||(t[td+1]&246)!=240){typeof sd!=`number`&&(sd=td),td++;continue}if(typeof sd==`number`&&(this.skipWarn_(sd,td),sd=null),rd=(~t[td+1]&1)*2,nd=(t[td+3]&3)<<11|t[td+4]<<3|(t[td+5]&224)>>5,ad=((t[td+6]&3)+1)*1024,od=ad*um/fm[(t[td+2]&60)>>>2],t.byteLength-td<nd)break;this.trigger(`data`,{pts:ed.pts+$*od,dts:ed.dts+$*od,sampleCount:ad,audioobjecttype:(t[td+2]>>>6&3)+1,channelcount:(t[td+2]&1)<<2|(t[td+3]&192)>>>6,samplerate:fm[(t[td+2]&60)>>>2],samplingfrequencyindex:(t[td+2]&60)>>>2,samplesize:16,data:t.subarray(td+7+rd,td+nd)}),$++,td+=nd}typeof sd==`number`&&(this.skipWarn_(sd,td),sd=null),t=t.subarray(td)}},this.flush=function(){$=0,this.trigger(`done`)},this.reset=function(){t=void 0,this.trigger(`reset`)},this.endTimeline=function(){t=void 0,this.trigger(`endedtimeline`)}},dm.prototype=new lm;var pm=dm,mm=function(e){var t=e.byteLength,$=0,ed=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+ed},this.loadWord=function(){var td=e.byteLength-t,nd=new Uint8Array(4),rd=Math.min(4,t);if(rd===0)throw Error(`no bytes available`);nd.set(e.subarray(td,td+rd)),$=new DataView(nd.buffer).getUint32(0),ed=rd*8,t-=rd},this.skipBits=function(e){var td;ed>e?($<<=e,ed-=e):(e-=ed,td=Math.floor(e/8),e-=td*8,t-=td,this.loadWord(),$<<=e,ed-=e)},this.readBits=function(e){var td=Math.min(ed,e),nd=$>>>32-td;return ed-=td,ed>0?$<<=td:t>0&&this.loadWord(),td=e-td,td>0?nd<<td|this.readBits(td):nd},this.skipLeadingZeros=function(){var e;for(e=0;e<ed;++e)if($&2147483648>>>e)return $<<=e,ed-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},hm=$,gm=mm,_m,vm=function(){var e=0,t,$;vm.prototype.init.call(this),this.push=function(ed){var td;$?(td=new Uint8Array($.byteLength+ed.data.byteLength),td.set($),td.set(ed.data,$.byteLength),$=td):$=ed.data;for(var nd=$.byteLength;e<nd-3;e++)if($[e+2]===1){t=e+5;break}for(;t<nd;)switch($[t]){case 0:if($[t-1]!==0){t+=2;break}else if($[t-2]!==0){t++;break}e+3!==t-2&&this.trigger(`data`,$.subarray(e+3,t-2));do t++;while($[t]!==1&&t<nd);e=t-2,t+=3;break;case 1:if($[t-1]!==0||$[t-2]!==0){t+=3;break}this.trigger(`data`,$.subarray(e+3,t-2)),e=t-2,t+=3;break;default:t+=3;break}$=$.subarray(e),t-=e,e=0},this.reset=function(){$=null,e=0,this.trigger(`reset`)},this.flush=function(){$&&$.byteLength>3&&this.trigger(`data`,$.subarray(e+3)),$=null,e=0,this.trigger(`done`)},this.endTimeline=function(){this.flush(),this.trigger(`endedtimeline`)}},ym;vm.prototype=new hm,ym={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},_m=function(){var e=new vm,t,$,ed,td,nd,rd,id;_m.prototype.init.call(this),t=this,this.push=function(t){t.type===`video`&&($=t.trackId,ed=t.pts,td=t.dts,e.push(t))},e.on(`data`,function(e){var id={trackId:$,pts:ed,dts:td,data:e,nalUnitTypeCode:e[0]&31};switch(id.nalUnitTypeCode){case 5:id.nalUnitType=`slice_layer_without_partitioning_rbsp_idr`;break;case 6:id.nalUnitType=`sei_rbsp`,id.escapedRBSP=nd(e.subarray(1));break;case 7:id.nalUnitType=`seq_parameter_set_rbsp`,id.escapedRBSP=nd(e.subarray(1)),id.config=rd(id.escapedRBSP);break;case 8:id.nalUnitType=`pic_parameter_set_rbsp`;break;case 9:id.nalUnitType=`access_unit_delimiter_rbsp`;break}t.trigger(`data`,id)}),e.on(`done`,function(){t.trigger(`done`)}),e.on(`partialdone`,function(){t.trigger(`partialdone`)}),e.on(`reset`,function(){t.trigger(`reset`)}),e.on(`endedtimeline`,function(){t.trigger(`endedtimeline`)}),this.flush=function(){e.flush()},this.partialFlush=function(){e.partialFlush()},this.reset=function(){e.reset()},this.endTimeline=function(){e.endTimeline()},id=function(e,t){var $=8,ed=8,td,nd;for(td=0;td<e;td++)ed!==0&&(nd=t.readExpGolomb(),ed=($+nd+256)%256),$=ed===0?$:ed},nd=function(e){for(var t=e.byteLength,$=[],ed=1,td,nd;ed<t-2;
253)e[ed]===0&&e[ed+1]===0&&e[ed+2]===3?($.push(ed+2),ed+=2):ed++;if($.length===0)return e;td=t-$.length,nd=new Uint8Array(td);var rd=0;for(ed=0;ed<td;rd++,ed++)rd===$[0]&&(rd++,$.shift()),nd[ed]=e[rd];return nd},rd=function(e){var t=0,$=0,ed=0,td=0,nd,rd,ad,od,sd,cd,ld,ud,dd,fd,pd,md=[1,1],hd,gd;if(nd=new gm(e),rd=nd.readUnsignedByte(),od=nd.readUnsignedByte(),ad=nd.readUnsignedByte(),nd.skipUnsignedExpGolomb(),ym[rd]&&(sd=nd.readUnsignedExpGolomb(),sd===3&&nd.skipBits(1),nd.skipUnsignedExpGolomb(),nd.skipUnsignedExpGolomb(),nd.skipBits(1),nd.readBoolean()))for(pd=sd===3?12:8,gd=0;gd<pd;gd++)nd.readBoolean()&&id(gd<6?16:64,nd);if(nd.skipUnsignedExpGolomb(),cd=nd.readUnsignedExpGolomb(),cd===0)nd.readUnsignedExpGolomb();else if(cd===1)for(nd.skipBits(1),nd.skipExpGolomb(),nd.skipExpGolomb(),ld=nd.readUnsignedExpGolomb(),gd=0;gd<ld;gd++)nd.skipExpGolomb();if(nd.skipUnsignedExpGolomb(),nd.skipBits(1),ud=nd.readUnsignedExpGolomb(),dd=nd.readUnsignedExpGolomb(),fd=nd.readBits(1),fd===0&&nd.skipBits(1),nd.skipBits(1),nd.readBoolean()&&(t=nd.readUnsignedExpGolomb(),$=nd.readUnsignedExpGolomb(),ed=nd.readUnsignedExpGolomb(),td=nd.readUnsignedExpGolomb()),nd.readBoolean()&&nd.readBoolean()){switch(hd=nd.readUnsignedByte(),hd){case 1:md=[1,1];break;case 2:md=[12,11];break;case 3:md=[10,11];break;case 4:md=[16,11];break;case 5:md=[40,33];break;case 6:md=[24,11];break;case 7:md=[20,11];break;case 8:md=[32,11];break;case 9:md=[80,33];break;case 10:md=[18,11];break;case 11:md=[15,11];break;case 12:md=[64,33];break;case 13:md=[160,99];break;case 14:md=[4,3];break;case 15:md=[3,2];break;case 16:md=[2,1];break;case 255:md=[nd.readUnsignedByte()<<8|nd.readUnsignedByte(),nd.readUnsignedByte()<<8|nd.readUnsignedByte()];break}md&&md[0]/md[1]}return{profileIdc:rd,levelIdc:ad,profileCompatibility:od,width:(ud+1)*16-t*2-$*2,height:(2-fd)*(dd+1)*16-ed*2-td*2,sarRatio:md}}},_m.prototype=new hm;var bm={H264Stream:_m,NalByteStream:vm},xm=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Sm=function(e,t){var $=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],ed=(e[t+5]&16)>>4;return $=$>=0?$:0,ed?$+20:$+10},Cm=function(e,t){return e.length-t<10||e[t]!==73||e[t+1]!==68||e[t+2]!==51?t:(t+=Sm(e,t),Cm(e,t))},wm=function(e){var t=Cm(e,0);return e.length>=t+2&&(e[t]&255)==255&&(e[t+1]&240)==240&&(e[t+1]&22)==16},Tm=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Em=function(e,t,$){var ed,td=``;for(ed=t;ed<$;ed++)td+=`%`+(`00`+e[ed].toString(16)).slice(-2);return td},Dm=function(e,t,$){return unescape(Em(e,t,$))},Om={isLikelyAacData:wm,parseId3TagSize:Sm,parseAdtsSize:function(e,t){var $=(e[t+5]&224)>>5,ed=e[t+4]<<3;return e[t+3]&6144|ed|$},parseType:function(e,t){return e[t]===73&&e[t+1]===68&&e[t+2]===51?`timed-metadata`:e[t]&!0&&(e[t+1]&240)==240?`audio`:null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(e[t]!==255||(e[t+1]&246)!=240){t++;continue}return xm[(e[t+2]&60)>>>2]}return null},parseAacTimestamp:function(e){var t=10,$,ed,td;e[5]&64&&(t+=4,t+=Tm(e.subarray(10,14)));do{if($=Tm(e.subarray(t+4,t+8)),$<1)return null;if(td=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),td===`PRIV`){ed=e.subarray(t+10,t+$+10);for(var nd=0;nd<ed.byteLength;nd++)if(ed[nd]===0){if(Dm(ed,0,nd)===`com.apple.streaming.transportStreamTimestamp`){var rd=ed.subarray(nd+1),id=(rd[3]&1)<<30|rd[4]<<22|rd[5]<<14|rd[6]<<6|rd[7]>>>2;return id*=4,id+=rd[7]&3,id}break}}t+=10,t+=$}while(t<e.byteLength);return null}},km=$,Am=Om,jm=function(){var e=new Uint8Array,t=0;jm.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function($){var ed=0,td=0,nd,rd,id,ad;for(e.length?(ad=e.length,e=new Uint8Array($.byteLength+ad),e.set(e.subarray(0,ad)),e.set($,ad)):e=$;e.length-td>=3;){if(e[td]===73&&e[td+1]===68&&e[td+2]===51){if(e.length-td<10||(ed=Am.parseId3TagSize(e,td),td+ed>e.length))break;rd={type:`timed-metadata`,data:e.subarray(td,td+ed)},this.trigger(`data`,rd),td+=ed;continue}else if((e[td]&255)==255&&(e[td+1]&240)==240){if(e.length-td<7||(ed=Am.parseAdtsSize(e,td),td+ed>e.length))break;id={type:`audio`,data:e.subarray(td,td+ed),pts:t,dts:t},this.trigger(`data`,id),td+=ed;continue}td++}nd=e.length-td,e=nd>0?e.subarray(td):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger(`reset`)},this.endTimeline=function(){e=new Uint8Array,this.trigger(`endedtimeline`)}};jm.prototype=new km;var Mm=jm,Nm=[`audioobjecttype`,`channelcount`,`samplerate`,`samplingfrequencyindex`,`samplesize`],Pm=[`width`,`height`,`profileIdc`,`levelIdc`,`profileCompatibility`,`sarRatio`],Fm=$,Im=zd,Lm=Gd,Rm=cf,zm=uf,Bm=cm,Vm=rf,Hm=pm,Um=bm.H264Stream,Wm=Mm,Gm=Om.isLikelyAacData,Km=rf.ONE_SECOND_IN_TS,qm=Nm,Jm=Pm,Ym,Xm,Zm,Qm,$m=function(e,t){t.stream=e,this.trigger(`log`,t)},eh=function(e,t){for(var $=Object.keys(t),ed=0;ed<$.length;ed++){var td=$[ed];td===`headOfPipeline`||!t[td].on||t[td].on(`log`,$m.bind(e,td))}},th=function(e,t){var $;if(e.length!==t.length)return!1;for($=0;$<e.length;$++)if(e[$]!==t[$])return!1;return!0},nh=function(e,t,$,ed,td,nd){var rd=$-t,id=ed-t,ad=td-$;return{start:{dts:e,pts:e+rd},end:{dts:e+id,pts:e+ad},prependedContentDuration:nd,baseMediaDecodeTime:e}};Xm=function(e,t){var $=[],ed,td=0,nd=0,rd=1/0;t||={},ed=t.firstSequenceNumber||0,Xm.prototype.init.call(this),this.push=function(t){zm.collectDtsInfo(e,t),e&&qm.forEach(function($){e[$]=t[$]}),$.push(t)},this.setEarliestDts=function(e){td=e},this.setVideoBaseMediaDecodeTime=function(e){rd=e},this.setAudioAppendStart=function(e){nd=e},this.flush=function(){var id,ad,od,sd,cd,ld,ud;if($.length===0){this.trigger(`done`,`AudioSegmentStream`);return}id=Rm.trimAdtsFramesByEarliestDts($,e,td),e.baseMediaDecodeTime=zm.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),ud=Rm.prefixWithSilence(e,id,nd,rd),e.samples=Rm.generateSampleTable(id),od=Im.mdat(Rm.concatenateFrameData(id)),$=[],ad=Im.moof(ed,[e]),sd=new Uint8Array(ad.byteLength+od.byteLength),ed++,sd.set(ad),sd.set(od,ad.byteLength),zm.clearDtsInfo(e),cd=Math.ceil(Km*1024/e.samplerate),id.length&&(ld=id.length*cd,this.trigger(`segmentTimingInfo`,nh(Vm.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),id[0].dts,id[0].pts,id[0].dts+ld,id[0].pts+ld,ud||0)),this.trigger(`timingInfo`,{start:id[0].pts,end:id[0].pts+ld})),this.trigger(`data`,{track:e,boxes:sd}),this.trigger(`done`,`AudioSegmentStream`)},this.reset=function(){zm.clearDtsInfo(e),$=[],this.trigger(`reset`)}},Xm.prototype=new Fm,Ym=function(e,t){var $,ed=[],td=[],nd,rd;t||={},$=t.firstSequenceNumber||0,Ym.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){zm.collectDtsInfo(e,t),t.n
253alUnitType===`seq_parameter_set_rbsp`&&!nd&&(nd=t.config,e.sps=[t.data],Jm.forEach(function(t){e[t]=nd[t]},this)),t.nalUnitType===`pic_parameter_set_rbsp`&&!rd&&(rd=t.data,e.pps=[t.data]),ed.push(t)},this.flush=function(){for(var nd,rd,id,ad,od,sd,cd=0,ld,ud;ed.length&&ed[0].nalUnitType!==`access_unit_delimiter_rbsp`;)ed.shift();if(ed.length===0){this.resetStream_(),this.trigger(`done`,`VideoSegmentStream`);return}if(nd=Lm.groupNalsIntoFrames(ed),id=Lm.groupFramesIntoGops(nd),id[0][0].keyFrame||(rd=this.getGopForFusion_(ed[0],e),rd?(cd=rd.duration,id.unshift(rd),id.byteLength+=rd.byteLength,id.nalCount+=rd.nalCount,id.pts=rd.pts,id.dts=rd.dts,id.duration+=rd.duration):id=Lm.extendFirstKeyFrame(id)),td.length){var dd=t.alignGopsAtEnd?this.alignGopsAtEnd_(id):this.alignGopsAtStart_(id);if(!dd){this.gopCache_.unshift({gop:id.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),ed=[],this.resetStream_(),this.trigger(`done`,`VideoSegmentStream`);return}zm.clearDtsInfo(e),id=dd}zm.collectDtsInfo(e,id),e.samples=Lm.generateSampleTable(id),od=Im.mdat(Lm.concatenateNalData(id)),e.baseMediaDecodeTime=zm.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger(`processedGopsInfo`,id.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),ld=id[0],ud=id[id.length-1],this.trigger(`segmentTimingInfo`,nh(e.baseMediaDecodeTime,ld.dts,ld.pts,ud.dts+ud.duration,ud.pts+ud.duration,cd)),this.trigger(`timingInfo`,{start:id[0].pts,end:id[id.length-1].pts+id[id.length-1].duration}),this.gopCache_.unshift({gop:id.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),ed=[],this.trigger(`baseMediaDecodeTime`,e.baseMediaDecodeTime),this.trigger(`timelineStartInfo`,e.timelineStartInfo),ad=Im.moof($,[e]),sd=new Uint8Array(ad.byteLength+od.byteLength),$++,sd.set(ad),sd.set(od,ad.byteLength),this.trigger(`data`,{track:e,boxes:sd}),this.resetStream_(),this.trigger(`done`,`VideoSegmentStream`)},this.reset=function(){this.resetStream_(),ed=[],this.gopCache_.length=0,td.length=0,this.trigger(`reset`)},this.resetStream_=function(){zm.clearDtsInfo(e),nd=void 0,rd=void 0},this.getGopForFusion_=function(t){var $=45e3,ed=1e4,td=1/0,nd,rd,id,ad,od;for(od=0;od<this.gopCache_.length;od++)ad=this.gopCache_[od],id=ad.gop,!(!(e.pps&&th(e.pps[0],ad.pps[0]))||!(e.sps&&th(e.sps[0],ad.sps[0])))&&(id.dts<e.timelineStartInfo.dts||(nd=t.dts-id.dts-id.duration,nd>=-ed&&nd<=$&&(!rd||td>nd)&&(rd=ad,td=nd)));return rd?rd.gop:null},this.alignGopsAtStart_=function(e){var t,$,ed,nd,rd=e.byteLength,id=e.nalCount,ad=e.duration,od;for(t=$=0;t<td.length&&$<e.length&&(ed=td[t],nd=e[$],ed.pts!==nd.pts);){if(nd.pts>ed.pts){t++;continue}$++,rd-=nd.byteLength,id-=nd.nalCount,ad-=nd.duration}return $===0?e:$===e.length?null:(od=e.slice($),od.byteLength=rd,od.duration=ad,od.nalCount=id,od.pts=od[0].pts,od.dts=od[0].dts,od)},this.alignGopsAtEnd_=function(e){for(var t=td.length-1,$=e.length-1,ed,nd,rd=null,id=!1;t>=0&&$>=0;){if(ed=td[t],nd=e[$],ed.pts===nd.pts){id=!0;break}if(ed.pts>nd.pts){t--;continue}t===td.length-1&&(rd=$),$--}if(!id&&rd===null)return null;var ad=id?$:rd;if(ad===0)return e;var od=e.slice(ad),sd=od.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return od.byteLength=sd.byteLength,od.duration=sd.duration,od.nalCount=sd.nalCount,od.pts=od[0].pts,od.dts=od[0].dts,od},this.alignGopsWith=function(e){td=e}},Ym.prototype=new Fm,Qm=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e||={},e.remux===void 0?this.remuxTracks=!0:this.remuxTracks=!!e.remux,typeof e.keepOriginalTimestamps==`boolean`?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Qm.prototype.init.call(this),this.push=function(e){if(e.content||e.text)return this.pendingCaptions.push(e);if(e.frames)return this.pendingMetadata.push(e);this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,e.track.type===`video`&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),e.track.type===`audio`&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))}},Qm.prototype=new Fm,Qm.prototype.flush=function(e){var t=0,$={captions:[],captionStream
253s:{},metadata:[],info:{}},ed,td,nd,rd=0,id;if(this.pendingTracks.length<this.numberOfTracks){if(e!==`VideoSegmentStream`&&e!==`AudioSegmentStream`||this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger(`done`),this.emittedTracks=0);return}}if(this.videoTrack?(rd=this.videoTrack.timelineStartInfo.pts,Jm.forEach(function(e){$.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(rd=this.audioTrack.timelineStartInfo.pts,qm.forEach(function(e){$.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?$.type=this.pendingTracks[0].type:$.type=`combined`,this.emittedTracks+=this.pendingTracks.length,nd=Im.initSegment(this.pendingTracks),$.initSegment=new Uint8Array(nd.byteLength),$.initSegment.set(nd),$.data=new Uint8Array(this.pendingBytes),id=0;id<this.pendingBoxes.length;id++)$.data.set(this.pendingBoxes[id],t),t+=this.pendingBoxes[id].byteLength;for(id=0;id<this.pendingCaptions.length;id++)ed=this.pendingCaptions[id],ed.startTime=Vm.metadataTsToSeconds(ed.startPts,rd,this.keepOriginalTimestamps),ed.endTime=Vm.metadataTsToSeconds(ed.endPts,rd,this.keepOriginalTimestamps),$.captionStreams[ed.stream]=!0,$.captions.push(ed);for(id=0;id<this.pendingMetadata.length;id++)td=this.pendingMetadata[id],td.cueTime=Vm.metadataTsToSeconds(td.pts,rd,this.keepOriginalTimestamps),$.metadata.push(td);for($.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger(`data`,$),id=0;id<$.captions.length;id++)ed=$.captions[id],this.trigger(`caption`,ed);for(id=0;id<$.metadata.length;id++)td=$.metadata[id],this.trigger(`id3Frame`,td)}this.emittedTracks>=this.numberOfTracks&&(this.trigger(`done`),this.emittedTracks=0)},Qm.prototype.setRemux=function(e){this.remuxTracks=e},Zm=function(e){var t=this,$=!0,ed,td;Zm.prototype.init.call(this),e||={},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var $={};this.transmuxPipeline_=$,$.type=`aac`,$.metadataStream=new Bm.MetadataStream,$.aacStream=new Wm,$.audioTimestampRolloverStream=new Bm.TimestampRolloverStream(`audio`),$.timedMetadataTimestampRolloverStream=new Bm.TimestampRolloverStream(`timed-metadata`),$.adtsStream=new Hm,$.coalesceStream=new Qm(e,$.metadataStream),$.headOfPipeline=$.aacStream,$.aacStream.pipe($.audioTimestampRolloverStream).pipe($.adtsStream),$.aacStream.pipe($.timedMetadataTimestampRolloverStream).pipe($.metadataStream).pipe($.coalesceStream),$.metadataStream.on(`timestamp`,function(e){$.aacStream.setTimestamp(e.timeStamp)}),$.aacStream.on(`data`,function(nd){nd.type!==`timed-metadata`&&nd.type!==`audio`||$.audioSegmentStream||(td||={timelineStartInfo:{baseMediaDecodeTime:t.baseMediaDecodeTime},codec:`adts`,type:`audio`},$.coalesceStream.numberOfTracks++,$.audioSegmentStream=new Xm(td,e),$.audioSegmentStream.on(`log`,t.getLogTrigger_(`audioSegmentStream`)),$.audioSegmentStream.on(`timingInfo`,t.trigger.bind(t,`audioTimingInfo`)),$.adtsStream.pipe($.audioSegmentStream).pipe($.coalesceStream),t.trigger(`trackinfo`,{hasAudio:!!td,hasVideo:!!ed}))}),$.coalesceStream.on(`data`,this.trigger.bind(this,`data`)),$.coalesceStream.on(`done`,this.trigger.bind(this,`done`)),eh(this,$)},this.setupTsPipeline=function(){var $={};this.transmuxPipeline_=$,$.type=`ts`,$.metadataStream=new Bm.MetadataStream,$.packetStream=new Bm.TransportPacketStream,$.parseStream=new Bm.TransportParseStream,$.elementaryStream=new Bm.ElementaryStream,$.timestampRolloverStream=new Bm.TimestampRolloverStream,$.adtsStream=new Hm,$.h264Stream=new Um,$.captionStream=new Bm.CaptionStream(e),$.coalesceStream=new Qm(e,$.metadataStream),$.headOfPipeline=$.packetStream,$.packetStream.pipe($.parseStream).pipe($.elementaryStream).pipe($.timestampRolloverStream),$.timestampRolloverStream.pipe($.h264Stream),$.timestampRolloverStream.pipe($.adtsStream),$.timestampRolloverStream.pipe($.metadataStream).pipe($.coalesceStream),$.h264Stream.pipe($.captionStream).pipe($.coalesceStream),$.elementaryStream.on(`data`,function(nd){var rd;if(nd.type===`metadata`){for(rd=nd.tracks.length;rd--;)!ed&&nd.tracks[rd].type===`video`?(ed=nd.tracks[rd],ed.timelineStartInfo.baseMediaDecodeTime=t.baseMediaDecodeTime):!td&&nd.tracks[rd].type===`audio`&&(td=nd.tracks[rd],td.timelineStartInfo.baseMediaDecodeTime=t.baseMediaDecodeTime);ed&&!$.videoSegmentStream&&($.coalesceStream.numberOfTracks++,$.videoSegmentStream=new Ym(ed,e),$.videoSegmentStream.on(`log`,t.getLogTrigger_(`videoSegmentStream`)),$.videoSegmentStream.on(`timelineStartInfo`,function(ed){td&&!e.keepOriginalTimestamps&&(td.timelineStartInfo=ed,$.audioSegmentStream.setEarliestDts(ed.dts-t.baseMediaDecodeTime))}),$.videoSegmentStream.on(`processedGopsInfo`,t.trigger.bind(t,`gopInfo`)),$.videoSegmentStream.on(`segmentTimingInfo`,t.trigger.bind(t,`videoSegmentTimingInfo`)),$.videoSegmentStream.on(`baseMediaDecodeTime`,function(e){td&&$.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),$.videoSegmentStream.on(`timingInfo`,t.trigger.bind(t,`videoTimingInfo`)),$.h264Stream.pipe($.videoSegmentStream).pipe($.coalesceStream)),td&&!$.audioSegmentStream&&($.coalesceStream.numberOfTracks++,$.audioSegmentStream=new Xm(td,e),$.audioSegmentStream.on(`log`,t.getLogTrigger_(`audioSegmentStream`)),$.audioSegmentStream.on(`timingInfo`,t.trigger.bind(t,`audioTimingInfo`)),$.audioSegmentStream.on(`segmentTimingInfo`,t.trigger.bind(t,`audioSegmentTimingInfo`)),$.adtsStream.pipe($.audioSegmentStream).pipe($.coalesceStream)),t.trigger(`trackinfo`,{hasAudio:!!td,hasVideo:!!ed})}}),$.coalesceStream.on(`data`,this.trigger.bind(this,`data`)),$.coalesceStream.on(`id3Frame`,function(e){e.dispatchType=$.metadataStream.dispatchType,t.trigger(`id3Frame`,e)}),$.coalesceStream.on(`caption`,this.trigger.bind(this,`caption`)),$.coalesceStream.on(`done`,this.trigger.bind(this,`done`)),eh(this,$)},this.setBaseMediaDecodeTime=function(t){var $=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=t),td&&(td.timelineStartInfo.dts=void 0,td.timelineStartInfo.pts=void 0,zm.clearDtsInfo(td),$.audioTimestampRolloverStream&&$.audioTimestampRolloverStream.discontinuity()),ed&&($.videoSegmentStream&&($.videoSegmentStream.gopCache_=[]),ed.timelineStartInfo.dts=void 0,ed.timelineStartInfo.pts=void 0,zm.clearDtsInfo(ed),$.captionStream.reset()),$.timestampRolloverStream&&$.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){td&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var $=this.transmuxPipeline_;e.remux=t,$&&$.coalesceStream&&$.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){ed&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function($){$.stream=e,t.trigger(`log`,$)}},this.push=function(e){if($){var t=Gm(e);t&&this.transmuxPipeline_.type!==`aac`?this.setupAacPipeline():!t&&this.transmuxPipeline_.type!==`ts`&&this.setupTsPipeline(),$=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){$=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Zm.prototype=new Fm;var rh={Transmuxer:Zm,VideoSegmentStream:Ym,AudioSegmentStream:Xm,AUDIO_PROPERTIES:qm,V
253IDEO_PROPERTIES:Jm,generateSegmentTimingInfo:nh},ih={toUnsigned:function(e){return e>>>0},toHexString:function(e){return(`00`+e.toString(16)).slice(-2)}},ah=function(e){var t=``;return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t},oh=ih.toUnsigned,sh=ah,ch=function(e,t){var $=[],ed,td,nd,rd,id;if(!t.length)return null;for(ed=0;ed<e.byteLength;)td=oh(e[ed]<<24|e[ed+1]<<16|e[ed+2]<<8|e[ed+3]),nd=sh(e.subarray(ed+4,ed+8)),rd=td>1?ed+td:e.byteLength,nd===t[0]&&(t.length===1?$.push(e.subarray(ed+8,rd)):(id=ch(e.subarray(ed+8,rd),t.slice(1)),id.length&&($=$.concat(id)))),ed=rd;return $},lh=ch,uh=ih.toUnsigned,dh=td.getUint64,fh=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return t.version===1?t.baseMediaDecodeTime=dh(e.subarray(4)):t.baseMediaDecodeTime=uh(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ph=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},ed=$.flags[2]&1,td=$.flags[2]&2,nd=$.flags[2]&8,rd=$.flags[2]&16,id=$.flags[2]&32,ad=$.flags[0]&65536,od=$.flags[0]&131072,sd=8;return ed&&(sd+=4,$.baseDataOffset=t.getUint32(12),sd+=4),td&&($.sampleDescriptionIndex=t.getUint32(sd),sd+=4),nd&&($.defaultSampleDuration=t.getUint32(sd),sd+=4),rd&&($.defaultSampleSize=t.getUint32(sd),sd+=4),id&&($.defaultSampleFlags=t.getUint32(sd)),ad&&($.durationIsEmpty=!0),!ed&&od&&($.baseDataOffsetIsMoof=!0),$},mh=td.getUint64,hh=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},ed=12;$.version===0?($.earliestPresentationTime=t.getUint32(ed),$.firstOffset=t.getUint32(ed+4),ed+=8):($.earliestPresentationTime=mh(e.subarray(ed)),$.firstOffset=mh(e.subarray(ed+8)),ed+=16),ed+=2;var td=t.getUint16(ed);for(ed+=2;td>0;ed+=12,td--)$.references.push({referenceType:(e[ed]&128)>>>7,referencedSize:t.getUint32(ed)&2147483647,subsegmentDuration:t.getUint32(ed+4),startsWithSap:!!(e[ed+8]&128),sapType:(e[ed+8]&112)>>>4,sapDeltaTime:t.getUint32(ed+8)&268435455});return $},gh=function(e){return{isLeading:(e[0]&12)>>>2,dependsOn:e[0]&3,isDependedOn:(e[1]&192)>>>6,hasRedundancy:(e[1]&48)>>>4,paddingValue:(e[1]&14)>>>1,isNonSyncSample:e[1]&1,degradationPriority:e[2]<<8|e[3]}},_h=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},$=new DataView(e.buffer,e.byteOffset,e.byteLength),ed=t.flags[2]&1,td=t.flags[2]&4,nd=t.flags[1]&1,rd=t.flags[1]&2,id=t.flags[1]&4,ad=t.flags[1]&8,od=$.getUint32(4),sd=8,cd;for(ed&&(t.dataOffset=$.getInt32(sd),sd+=4),td&&od&&(cd={flags:gh(e.subarray(sd,sd+4))},sd+=4,nd&&(cd.duration=$.getUint32(sd),sd+=4),rd&&(cd.size=$.getUint32(sd),sd+=4),ad&&(t.version===1?cd.compositionTimeOffset=$.getInt32(sd):cd.compositionTimeOffset=$.getUint32(sd),sd+=4),t.samples.push(cd),od--);od--;)cd={},nd&&(cd.duration=$.getUint32(sd),sd+=4),rd&&(cd.size=$.getUint32(sd),sd+=4),id&&(cd.flags=gh(e.subarray(sd,sd+4)),sd+=4),ad&&(t.version===1?cd.compositionTimeOffset=$.getInt32(sd):cd.compositionTimeOffset=$.getUint32(sd),sd+=4),t.samples.push(cd);return t},vh=td.getUint64,yh,bh,xh=function(e){return new Date(e*1e3-20828448e5)},Sh=ah,Ch=lh,wh=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$=[],ed,td;for(ed=0;ed+4<e.length;ed+=td){if(td=t.getUint32(ed),ed+=4,td<=0){$.push(`<span style='color:red;'>MALFORMED DATA</span>`);continue}switch(e[ed]&31){case 1:$.push(`slice_layer_without_partitioning_rbsp`);break;case 5:$.push(`slice_layer_without_partitioning_rbsp_idr`);break;case 6:$.push(`sei_rbsp`);break;case 7:$.push(`seq_parameter_set_rbsp`);break;case 8:$.push(`pic_parameter_set_rbsp`);break;case 9:$.push(`access_unit_delimiter_rbsp`);break;default:$.push(`UNKNOWN NAL - `+e[ed]&31);break}}return $},Th={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:yh(e.subarray(78,e.byteLength))}},avcC:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:e[4]&3,sps:[],pps:[]},ed=e[5]&31,td,nd,rd=6,id;for(id=0;id<ed;id++)nd=t.getUint16(rd),rd+=2,$.sps.push(new Uint8Array(e.subarray(rd,rd+nd))),rd+=nd;for(td=e[rd],rd++,id=0;id<td;id++)nd=t.getUint16(rd),rd+=2,$.pps.push(new Uint8Array(e.subarray(rd,rd+nd))),rd+=nd;return $},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},edts:function(e){return{boxes:yh(e)}},elst:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),edits:[]},ed=t.getUint32(4),td;for(td=8;ed;ed--)$.version===0?($.edits.push({segmentDuration:t.getUint32(td),mediaTime:t.getInt32(td+4),mediaRate:t.getUint16(td+8)+t.getUint16(td+10)/(256*256)}),td+=12):($.edits.push({segmentDuration:vh(e.subarray(td)),mediaTime:vh(e.subarray(td+8)),mediaRate:t.getUint16(td+16)+t.getUint16(td+18)/(256*256)}),td+=20);return $},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:e[8]&31,decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(e[26]&7)<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={majorBrand:Sh(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},ed=8;ed<e.byteLength;)$.compatibleBrands.push(Sh(e.subarray(ed,ed+4))),ed+=4;return $},dinf:function(e){return{boxes:yh(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:yh(e.subarray(8))}},hdlr:function(e){var t={version:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:Sh(e.subarray(8,12)),name:``},$=8;for($=24;$<e.byteLength;$++){if(e[$]===0){$++;break}t.name+=String.fromCharCode(e[$])}return t.name=decodeURIComponent(escape(t.name)),t},mdat:function(e){return{byteLength:e.byteLength,nals:wh(e)}},mdhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$=4,ed,td={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:``};return td.version===1?($+=4,td.creationTime=xh(t.getUint32($)),$+=8,td.modificationTime=xh(t.getUint32($)),$+=4,td.timescale=t.getUint32($),$+=8,td.duration=t.getUint32($)):(td.creationTime=xh(t.getUint32($)),$+=4,td.modificationTime=xh(t.getUint32($)),$+=4,td.timescale=t.getUint32($),$+=4,td.duration=t.getUint32($)),$+=4,ed=t.getUint16($),td.language+=String.fromCharCode((ed>>10)+96),td.language+=String.fromCharCode(((ed&992)>>5)+96),td.language+=String.fromCharCode((ed&31)+96),td},mdia:function(e){return{boxes:yh(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:yh(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&($.streamDescriptor=yh(e.subarray(28))[0]),$},moof:function(e){return{boxes:yh(e)}},moov:function(e){return{boxes:yh(e)}},mvex:function(e){return{boxes:yh(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$=4,ed={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return ed.version===1?($+=4,ed.creationTime=xh(t.getUint32($)),$+=8,ed.modificationTime=xh(t.getUint32($)),$+=4,ed.timescale=t.getUint32($),$+=8,ed.duration=t.getUint32($)):(ed.creationTime=xh(t.getUint32($)),$+=4,ed.modificationTime=xh(t.getUint32($)),$+=4,ed.timescale=t.getUint32($),$+=4,ed.duration=t.getUint32($)),$+=4,ed.rate=t.getUint16($)+t.getUint16($+2)/16,$+=4,ed.volume=t.getUint8($)+t.getUint8($+1)/8,$+=2,$+=2,$+=8,ed.matrix=new Uint32Array(e.subarray($,$+36)),$+=36,$+=24,ed.nextTrackId=t.getUint32($),ed},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},$;for($=4;$<e.byteLength;$++)t.samples.push({dependsOn:(e[$]&48)>>4,isDependedOn:(e[$]&12)>>2,hasRedundancy:e[$]&3});return t},sidx:hh,smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:yh(e)}},ctts:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),compositionOffsets:[]},ed=t.getUint32(4),td;for(td=8;ed;
253td+=8,ed--)$.compositionOffsets.push({sampleCount:t.getUint32(td),sampleOffset:t[$.version===0?`getUint32`:`getInt32`](td+4)});return $},stss:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),syncSamples:[]},ed=t.getUint32(4),td;for(td=8;ed;td+=4,ed--)$.syncSamples.push(t.getUint32(td));return $},stco:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},ed=t.getUint32(4),td;for(td=8;ed;td+=4,ed--)$.chunkOffsets.push(t.getUint32(td));return $},stsc:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$=t.getUint32(4),ed={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]},td;for(td=8;$;td+=12,$--)ed.sampleToChunks.push({firstChunk:t.getUint32(td),samplesPerChunk:t.getUint32(td+4),sampleDescriptionIndex:t.getUint32(td+8)});return ed},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:yh(e.subarray(8))}},stsz:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:t.getUint32(4),entries:[]},ed;for(ed=12;ed<e.byteLength;ed+=4)$.entries.push(t.getUint32(ed));return $},stts:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},ed=t.getUint32(4),td;for(td=8;ed;td+=8,ed--)$.timeToSamples.push({sampleCount:t.getUint32(td),sampleDelta:t.getUint32(td+4)});return $},styp:function(e){return Th.ftyp(e)},tfdt:fh,tfhd:ph,tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),$=4,ed={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return ed.version===1?($+=4,ed.creationTime=xh(t.getUint32($)),$+=8,ed.modificationTime=xh(t.getUint32($)),$+=4,ed.trackId=t.getUint32($),$+=4,$+=8,ed.duration=t.getUint32($)):(ed.creationTime=xh(t.getUint32($)),$+=4,ed.modificationTime=xh(t.getUint32($)),$+=4,ed.trackId=t.getUint32($),$+=4,$+=4,ed.duration=t.getUint32($)),$+=4,$+=8,ed.layer=t.getUint16($),$+=2,ed.alternateGroup=t.getUint16($),$+=2,ed.volume=t.getUint8($)+t.getUint8($+1)/8,$+=2,$+=2,ed.matrix=new Uint32Array(e.subarray($,$+36)),$+=36,ed.width=t.getUint16($)+t.getUint16($+2)/65536,$+=4,ed.height=t.getUint16($)+t.getUint16($+2)/65536,ed},traf:function(e){return{boxes:yh(e)}},trak:function(e){return{boxes:yh(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:e[20]&3,sampleIsDependedOn:(e[21]&192)>>6,sampleHasRedundancy:(e[21]&48)>>4,samplePaddingValue:(e[21]&14)>>1,sampleIsDifferenceSample:!!(e[21]&1),sampleDegradationPriority:t.getUint16(22)}},trun:_h,"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};yh=function(e){for(var t=0,$=[],ed,td,nd,rd,id,ad=new ArrayBuffer(e.length),od=new Uint8Array(ad),sd=0;sd<e.length;++sd)od[sd]=e[sd];for(ed=new DataView(ad);t<e.byteLength;)td=ed.getUint32(t),nd=Sh(e.subarray(t+4,t+8)),rd=td>1?t+td:e.byteLength,id=(Th[nd]||function(e){return{data:e}})(e.subarray(t+8,rd)),id.size=td,id.type=nd,$.push(id),t=rd;return $},bh=function(e,t){var $;return t||=0,$=Array(t*2+1).join(` `),e.map(function(e,ed){return $+e.type+` 254`+Object.keys(e).filter(function(e){return e!==`type`&&e!==`boxes`}).map(function(t){var ed=$+` `+t+`: `,td=e[t];if(td instanceof Uint8Array||td instanceof Uint32Array){var nd=Array.prototype.slice.call(new Uint8Array(td.buffer,td.byteOffset,td.byteLength)).map(function(e){return` `+(`00`+e.toString(16)).slice(-2)}).join(``).match(/.{1,24}/g);return nd?nd.length===1?ed+`<`+nd.join(``).slice(1)+`>`:ed+`< 255`+nd.map(function(e){return $+` `+e}).join(` 256`)+` 257`+$+` >`:ed+`<>`}return ed+JSON.stringify(td,null,2).split(` 258`).map(function(e,t){return t===0?e:$+` `+e}).join(` 259`)}).join(` 260`)+(e.boxes?` 261`+bh(e.boxes,t+1):``)}).join(` 262`)};var Eh={inspect:yh,textify:bh,parseType:Sh,findBox:Ch,parseTraf:Th.traf,parseTfdt:Th.tfdt,parseHdlr:Th.hdlr,parseTfhd:Th.tfhd,parseTrun:Th.trun,parseSidx:Th.sidx},Dh={uint8ToCString:function(e){for(var t=0,$=String.fromCharCode(e[t]),ed=``;$!==`\0`;)ed+=$,t++,$=String.fromCharCode(e[t]);return ed+=$,ed}}.uint8ToCString,Oh=td.getUint64,kh=function(e){var t=4,$=e[0],ed,td,nd,rd,id,ad,od,sd;if($===0){ed=Dh(e.subarray(t)),t+=ed.length,td=Dh(e.subarray(t)),t+=td.length;var cd=new DataView(e.buffer);nd=cd.getUint32(t),t+=4,id=cd.getUint32(t),t+=4,ad=cd.getUint32(t),t+=4,od=cd.getUint32(t),t+=4}else if($===1){var cd=new DataView(e.buffer);nd=cd.getUint32(t),t+=4,rd=Oh(e.subarray(t)),t+=8,ad=cd.getUint32(t),t+=4,od=cd.getUint32(t),t+=4,ed=Dh(e.subarray(t)),t+=ed.length,td=Dh(e.subarray(t)),t+=td.length}sd=new Uint8Array(e.subarray(t,e.byteLength));
262var ld={scheme_id_uri:ed,value:td,timescale:nd||1,presentation_time:rd,presentation_time_delta:id,event_duration:ad,id:od,message_data:sd};return jh($,ld)?ld:void 0},Ah=function(e,t,$,ed){return e||e===0?e/t:ed+$/t},jh=function(e,t){var $=t.scheme_id_uri!==`\0`,ed=e===0&&Mh(t.presentation_time_delta)&&$,td=e===1&&Mh(t.presentation_time)&&$;return!(e>1)&&ed||td},Mh=function(e){return e!==void 0||e!==null},Nh={parseEmsgBox:kh,scaleTime:Ah},Ph=typeof window<`u`?window:e===void 0?typeof self<`u`?self:{}:e,Fh=ih.toUnsigned,Ih=ih.toHexString,Lh=lh,Rh=ah,zh=Nh,Bh=ph,Vh=_h,Hh=fh,Uh=td.getUint64,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh=Ph,Qh=Gf.parseId3Frames;Wh=function(e){return Lh(e,[`moov`,`trak`]).reduce(function(e,t){var $=Lh(t,[`tkhd`])[0],ed,td,nd,rd;return!$||(ed=$[0],td=ed===0?12:20,nd=Fh($[td]<<24|$[td+1]<<16|$[td+2]<<8|$[td+3]),rd=Lh(t,[`mdia`,`mdhd`])[0],!rd)?null:(ed=rd[0],td=ed===0?12:20,e[nd]=Fh(rd[td]<<24|rd[td+1]<<16|rd[td+2]<<8|rd[td+3]),e)},{})},Gh=function(e,t){var $=Lh(t,[`moof`,`traf`]).reduce(function(t,$){var ed=Lh($,[`tfhd`])[0],td=e[Fh(ed[4]<<24|ed[5]<<16|ed[6]<<8|ed[7])]||9e4,nd=Lh($,[`tfdt`])[0],rd=new DataView(nd.buffer,nd.byteOffset,nd.byteLength),id=nd[0]===1?Uh(nd.subarray(4,12)):rd.getUint32(4);let ad;return typeof id==`bigint`?ad=id/Zh.BigInt(td):typeof id==`number`&&!isNaN(id)&&(ad=id/td),ad<2**53-1&&(ad=Number(ad)),ad<t&&(t=ad),t},1/0);return typeof $==`bigint`||isFinite($)?$:0},Kh=function(e,t){var $=Lh(t,[`moof`,`traf`]),ed=0,td=0,nd;if($&&$.length){var rd=Lh($[0],[`tfhd`])[0],id=Lh($[0],[`trun`])[0],ad=Lh($[0],[`tfdt`])[0];if(rd&&(nd=Bh(rd).trackId),ad&&(ed=Hh(ad).baseMediaDecodeTime),id){var od=Vh(id);od.samples&&od.samples.length&&(td=od.samples[0].compositionTimeOffset||0)}}var sd=e[nd]||9e4;typeof ed==`bigint`&&(td=Zh.BigInt(td),sd=Zh.BigInt(sd));var cd=(ed+td)/sd;return typeof cd==`bigint`&&cd<2**53-1&&(cd=Number(cd)),cd},qh=function(e){var t=Lh(e,[`moov`,`trak`]),$=[];return t.forEach(function(e){var t=Lh(e,[`mdia`,`hdlr`]),ed=Lh(e,[`tkhd`]);t.forEach(function(e,t){var td=Rh(e.subarray(8,12)),nd=ed[t],rd,id,ad;td===`vide`&&(rd=new DataView(nd.buffer,nd.byteOffset,nd.byteLength),id=rd.getUint8(0),ad=id===0?rd.getUint32(12):rd.getUint32(20),$.push(ad))})}),$},Yh=function(e){var t=e[0]===0?12:20;return Fh(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Jh=function(e){var t=Lh(e,[`moov`,`trak`]),$=[];return t.forEach(function(e){var t={},ed=Lh(e,[`tkhd`])[0],td,nd;ed&&(td=new DataView(ed.buffer,ed.byteOffset,ed.byteLength),nd=td.getUint8(0),t.id=nd===0?td.getUint32(12):td.getUint32(20));var rd=Lh(e,[`mdia`,`hdlr`])[0];if(rd){var id=Rh(rd.subarray(8,12));id===`vide`?t.type=`video`:id===`soun`?t.type=`audio`:t.type=id}var ad=Lh(e,[`mdia`,`minf`,`stbl`,`stsd`])[0];if(ad){var od=ad.subarray(8);t.codec=Rh(od.subarray(4,8));var sd=Lh(od,[t.codec])[0],cd,ld;sd&&(/^[asm]vc[1-9]$/i.test(t.codec)?(cd=sd.subarray(78),ld=Rh(cd.subarray(4,8)),ld===`avcC`&&cd.length>11?(t.codec+=`.`,t.codec+=Ih(cd[9]),t.codec+=Ih(cd[10]),t.codec+=Ih(cd[11])):t.codec=`avc1.4d400d`):/^mp4[a,v]$/i.test(t.codec)?(cd=sd.subarray(28),ld=Rh(cd.subarray(4,8)),ld===`esds`&&cd.length>20&&cd[19]!==0?(t.codec+=`.`+Ih(cd[19]),t.codec+=`.`+Ih(cd[20]>>>2&63).replace(/^0/,``)):t.codec=`mp4a.40.2`):t.codec=t.codec.toLowerCase())}var ud=Lh(e,[`mdia`,`mdhd`])[0];ud&&(t.timescale=Yh(ud)),$.push(t)}),$},Xh=function(e,t=0){return Lh(e,[`emsg`]).map(e=>{var $=zh.parseEmsgBox(new Uint8Array(e)),ed=Qh($.message_data);return{cueTime:zh.scaleTime($.presentation_time,$.timescale,$.presentation_time_delta,t),duration:zh.scaleTime($.event_duration,$.timescale),frames:ed}})};var $h={findBox:Lh,parseType:Rh,timescale:Wh,startTime:Gh,compositionStartTime:Kh,videoTrackIds:qh,tracks:Jh,getTimescaleFromMediaHeader:Yh,getEmsgID3:Xh};let{parseTrun:eg}=Eh,{findBox:tg}=$h;var ng=Ph,rg={getMdatTrafPairs:function(e){var t=tg(e,[`moof`,`traf`]),$=tg(e,[`mdat`]),ed=[];return $.forEach(function(e,$){var td=t[$];ed.push({mdat:e,traf:td})}),ed},parseSamples:function(e,t,$){var ed=t,td=$.defaultSampleDuration||0,nd=$.defaultSampleSize||0,rd=$.trackId,id=[];return e.forEach(function(e){var t=eg(e).samples;t.forEach(function(e){e.duration===void 0&&(e.duration=td),e.size===void 0&&(e.size=nd),e.trackId=rd,e.dts=ed,e.compositionTimeOffset===void 0&&(e.compositionTimeOffset=0),typeof ed==`bigint`?(e.pts=ed+ng.BigInt(e.compositionTimeOffset),ed+=ng.BigInt(e.duration)):(e.pts=ed+e.compositionTimeOffset,ed+=e.duration)}),id=id.concat(t)}),id}},ig=pf.discardEmulationPreventionBytes,ag=kf.CaptionStream,og=lh,sg=fh,cg=ph,{getMdatTrafPairs:lg,parseSamples:ug}=rg,dg=function(e,t){for(var $=e,ed=0;ed<t.length;ed++){var td=t[ed];if($<td.size)return td;$-=td.size}return null},fg=function(e,t,$){var ed=new DataView(e.buffer,e.byteOffset,e.byteLength),td={logs:[],seiNals:[]},nd,rd,id,ad;for(rd=0;rd+4<e.length;rd+=id)if(id=ed.getUint32(rd),rd+=4,!(id<=0))switch(e[rd]&31){case 6:var od=e.subarray(rd+1,rd+1+id),sd=dg(rd,t);
262if(nd={nalUnitType:`sei_rbsp`,size:id,data:od,escapedRBSP:ig(od),trackId:$},sd)nd.pts=sd.pts,nd.dts=sd.dts,ad=sd;else if(ad)nd.pts=ad.pts,nd.dts=ad.dts;else{td.logs.push({level:`warn`,message:`We've encountered a nal unit without data at `+rd+` for trackId `+$+`. See mux.js#223.`});break}td.seiNals.push(nd);break}return td},pg=function(e,t){var $={};return lg(e).forEach(function(e){var ed=e.mdat,td=e.traf,nd=cg(og(td,[`tfhd`])[0]),rd=nd.trackId,id=og(td,[`tfdt`]),ad=id.length>0?sg(id[0]).baseMediaDecodeTime:0,od=og(td,[`trun`]),sd,cd;t===rd&&od.length>0&&(sd=ug(od,ad,nd),cd=fg(ed,sd,rd),$[rd]||($[rd]={seiNals:[],logs:[]}),$[rd].seiNals=$[rd].seiNals.concat(cd.seiNals),$[rd].logs=$[rd].logs.concat(cd.logs))}),$},mg=function(e,t,$){var ed;if(t===null)return null;ed=pg(e,t);var td=ed[t]||{};return{seiNals:td.seiNals,logs:td.logs,timescale:$}},hg=function(){var e=!1,t,$,ed,td,nd,rd;this.isInitialized=function(){return e},this.init=function($){t=new ag,e=!0,rd=$?$.isPartial:!1,t.on(`data`,function(e){e.startTime=e.startPts/td,e.endTime=e.endPts/td,nd.captions.push(e),nd.captionStreams[e.stream]=!0}),t.on(`log`,function(e){nd.logs.push(e)})},this.isNewInit=function(e,t){return e&&e.length===0||t&&typeof t==`object`&&Object.keys(t).length===0?!1:ed!==e[0]||td!==t[ed]},this.parse=function(e,t,rd){var id;if(!this.isInitialized()||!t||!rd)return null;if(this.isNewInit(t,rd))ed=t[0],td=rd[ed];else if(ed===null||!td)return $.push(e),null;for(;$.length>0;){var ad=$.shift();this.parse(ad,t,rd)}return id=mg(e,ed,td),id&&id.logs&&(nd.logs=nd.logs.concat(id.logs)),id===null||!id.seiNals?nd.logs.length?{logs:nd.logs,captions:[],captionStreams:[]}:null:(this.pushNals(id.seiNals),this.flushStream(),nd)},this.pushNals=function(e){if(!this.isInitialized()||!e||e.length===0)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;rd?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){nd.captions=[],nd.captionStreams={},nd.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){$=[],ed=null,td=null,nd?this.clearParsedCaptions():nd={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};let{parseTfdt:gg}=Eh,_g=lh,{getTimescaleFromMediaHeader:vg}=$h,{parseSamples:yg,getMdatTrafPairs:bg}=rg;var xg=function(){let e=9e4;this.init=function(t){let $=_g(t,[`moov`,`trak`,`mdia`,`mdhd`])[0];$&&(e=vg($))},this.parseSegment=function(t){let $=[],ed=bg(t),td=0;return ed.forEach(function(t){let ed=t.mdat,nd=t.traf,rd=_g(nd,[`tfdt`])[0],id=_g(nd,[`tfhd`])[0],ad=_g(nd,[`trun`]);if(rd&&(td=gg(rd).baseMediaDecodeTime),ad.length&&id){let t=yg(ad,td,id),nd=0;t.forEach(function(t){let td=new TextDecoder(`utf-8`),rd=ed.slice(nd,nd+t.size);if(_g(rd,[`vtte`])[0]){nd+=t.size;return}_g(rd,[`vttc`]).forEach(function(ed){let nd=_g(ed,[`payl`])[0],rd=_g(ed,[`sttg`])[0],id=t.pts/e,ad=(t.pts+t.duration)/e,od,sd;if(nd)try{od=td.decode(nd)}catch(e){console.error(e)}if(rd)try{sd=td.decode(rd)}catch(e){console.error(e)}t.duration&&od&&$.push({cueText:od,start:id,end:ad,settings:sd})}),nd+=t.size})}}),$}},Sg=Af,Cg=function(e){var t=e[1]&31;return t<<=8,t|=e[2],t},wg=function(e){return!!(e[1]&64)},Tg=function(e){var t=0;return(e[3]&48)>>>4>1&&(t+=e[4]+1),t},Eg=function(e,t){var $=Cg(e);return $===0?`pat`:$===t?`pmt`:t?`pes`:null},Dg=function(e){var t=wg(e),$=4+Tg(e);return t&&($+=e[$]+1),(e[$+10]&31)<<8|e[$+11]},Og=function(e){var t={},$=wg(e),ed=4+Tg(e);if($&&(ed+=e[ed]+1),e[ed+5]&1){for(var td=3+((e[ed+1]&15)<<8|e[ed+2])-4,nd=12+((e[ed+10]&15)<<8|e[ed+11]);nd<td;){var rd=ed+nd;t[(e[rd+1]&31)<<8|e[rd+2]]=e[rd],nd+=((e[rd+3]&15)<<8|e[rd+4])+5}return t}},kg=function(e,t){switch(t[Cg(e)]){case Sg.H264_STREAM_TYPE:return`video`;case Sg.ADTS_STREAM_TYPE:return`audio`;case Sg.METADATA_STREAM_TYPE:return`timed-metadata`;default:return null}},Ag=function(e){if(!wg(e))return null;var t=4+Tg(e);if(t>=e.byteLength)return null;var $=null,ed=e[t+7];return ed&192&&($={},$.pts=(e[t+9]&14)<<27|(e[t+10]&255)<<20|(e[t+11]&254)<<12|(e[t+12]&255)<<5|(e[t+13]&254)>>>3,$.pts*=4,$.pts+=(e[t+13]&6)>>>1,$.dts=$.pts,ed&64&&($.dts=(e[t+14]&14)<<27|(e[t+15]&255)<<20|(e[t+16]&254)<<12|(e[t+17]&255)<<5|(e[t+18]&254)>>>3,$.dts*=4,$.dts+=(e[t+18]&6)>>>1)),$},jg=function(e){switch(e){case 5:return`slice_layer_without_partitioning_rbsp_idr`;case 6:return`sei_rbsp`;case 7:return`seq_parameter_set_rbsp`;case 8:return`pic_parameter_set_rbsp`;case 9:return`access_unit_delimiter_rbsp`;default:return null}},Mg={parseType:Eg,parsePat:Dg,parsePmt:Og,parsePayloadUnitStartIndicator:wg,parsePesType:kg,parsePesTime:Ag,videoPacketContainsKeyFrame:function(e){for(var t=4+Tg(e),$=e.subarray(t),ed=0,td=0,nd=!1,rd;td<$.byteLength-3;td++)if($[td+2]===1){ed=td+5;break}for(;ed<$.byteLength;)switch($[ed]){case 0:if($[ed-1]!==0){ed+=2;break}else if($[ed-2]!==0){ed++;break}td+3!==ed-2&&(rd=jg($[td+3]&31),rd===`slice_layer_without_partitioning_rbsp_idr`&&(nd=!0));do ed++;while($[ed]!==1&&ed<$.length);td=ed-2,ed+=3;break;case 1:if($[ed-1]!==0||$[ed-2]!==0){ed+=3;break}rd=jg($[td+3]&31),rd===`slice_layer_without_partitioning_rbsp_idr`&&(nd=!0),td=ed-2,ed+=3;break;default:ed+=3;break}return $=$.subarray(td),ed-=td,td=0,$&&$.byteLength>3&&(rd=jg($[td+3]&31),rd===`slice_layer_without_partitioning_rbsp_idr`&&(nd=!0)),nd}}
262,Ng=Af,Pg=Lf.handleRollover,Fg={};Fg.ts=Mg,Fg.aac=Om;var Ig=rf.ONE_SECOND_IN_TS,Lg=188,Rg=71,zg=function(e,t){for(var $=0,ed=Lg,td,nd;ed<e.byteLength;){if(e[$]===Rg&&e[ed]===Rg){switch(td=e.subarray($,ed),nd=Fg.ts.parseType(td,t.pid),nd){case`pat`:t.pid=Fg.ts.parsePat(td);break;case`pmt`:var rd=Fg.ts.parsePmt(td);t.table=t.table||{},Object.keys(rd).forEach(function(e){t.table[e]=rd[e]});break}$+=Lg,ed+=Lg;continue}$++,ed++}},Bg=function(e,t,$){for(var ed=0,td=Lg,nd,rd,id,ad,od,sd=!1;td<=e.byteLength;){if(e[ed]===Rg&&(e[td]===Rg||td===e.byteLength)){switch(nd=e.subarray(ed,td),rd=Fg.ts.parseType(nd,t.pid),rd){case`pes`:id=Fg.ts.parsePesType(nd,t.table),ad=Fg.ts.parsePayloadUnitStartIndicator(nd),id===`audio`&&ad&&(od=Fg.ts.parsePesTime(nd),od&&(od.type=`audio`,$.audio.push(od),sd=!0));break}if(sd)break;ed+=Lg,td+=Lg;continue}ed++,td++}for(td=e.byteLength,ed=td-Lg,sd=!1;ed>=0;){if(e[ed]===Rg&&(e[td]===Rg||td===e.byteLength)){switch(nd=e.subarray(ed,td),rd=Fg.ts.parseType(nd,t.pid),rd){case`pes`:id=Fg.ts.parsePesType(nd,t.table),ad=Fg.ts.parsePayloadUnitStartIndicator(nd),id===`audio`&&ad&&(od=Fg.ts.parsePesTime(nd),od&&(od.type=`audio`,$.audio.push(od),sd=!0));break}if(sd)break;ed-=Lg,td-=Lg;continue}ed--,td--}},Vg=function(e,t,$){for(var ed=0,td=Lg,nd,rd,id,ad,od,sd,cd,ld,ud=!1,dd={data:[],size:0};td<e.byteLength;){if(e[ed]===Rg&&e[td]===Rg){switch(nd=e.subarray(ed,td),rd=Fg.ts.parseType(nd,t.pid),rd){case`pes`:if(id=Fg.ts.parsePesType(nd,t.table),ad=Fg.ts.parsePayloadUnitStartIndicator(nd),id===`video`&&(ad&&!ud&&(od=Fg.ts.parsePesTime(nd),od&&(od.type=`video`,$.video.push(od),ud=!0)),!$.firstKeyFrame)){if(ad&&dd.size!==0){for(sd=new Uint8Array(dd.size),cd=0;dd.data.length;)ld=dd.data.shift(),sd.set(ld,cd),cd+=ld.byteLength;if(Fg.ts.videoPacketContainsKeyFrame(sd)){var fd=Fg.ts.parsePesTime(sd);fd?($.firstKeyFrame=fd,$.firstKeyFrame.type=`video`):console.warn(`Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.`)}dd.size=0}dd.data.push(nd),dd.size+=nd.byteLength}break}if(ud&&$.firstKeyFrame)break;ed+=Lg,td+=Lg;continue}ed++,td++}for(td=e.byteLength,ed=td-Lg,ud=!1;ed>=0;){if(e[ed]===Rg&&e[td]===Rg){switch(nd=e.subarray(ed,td),rd=Fg.ts.parseType(nd,t.pid),rd){case`pes`:id=Fg.ts.parsePesType(nd,t.table),ad=Fg.ts.parsePayloadUnitStartIndicator(nd),id===`video`&&ad&&(od=Fg.ts.parsePesTime(nd),od&&(od.type=`video`,$.video.push(od),ud=!0));break}if(ud)break;ed-=Lg,td-=Lg;continue}ed--,td--}},Hg=function(e,t){if(e.audio&&e.audio.length){var $=t;($===void 0||isNaN($))&&($=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Pg(e.dts,$),e.pts=Pg(e.pts,$),e.dtsTime=e.dts/Ig,e.ptsTime=e.pts/Ig})}if(e.video&&e.video.length){var ed=t;if((ed===void 0||isNaN(ed))&&(ed=e.video[0].dts),e.video.forEach(function(e){e.dts=Pg(e.dts,ed),e.pts=Pg(e.pts,ed),e.dtsTime=e.dts/Ig,e.ptsTime=e.pts/Ig}),e.firstKeyFrame){var td=e.firstKeyFrame;td.dts=Pg(td.dts,ed),td.pts=Pg(td.pts,ed),td.dtsTime=td.dts/Ig,td.ptsTime=td.pts/Ig}}},Ug=function(e){for(var t=!1,$=0,ed=null,td=null,nd=0,rd=0,id;e.length-rd>=3;){switch(Fg.aac.parseType(e,rd)){case`timed-metadata`:if(e.length-rd<10){t=!0;break}if(nd=Fg.aac.parseId3TagSize(e,rd),nd>e.length){t=!0;break}td===null&&(id=e.subarray(rd,rd+nd),td=Fg.aac.parseAacTimestamp(id)),rd+=nd;break;case`audio`:if(e.length-rd<7){t=!0;break}if(nd=Fg.aac.parseAdtsSize(e,rd),nd>e.length){t=!0;break}ed===null&&(id=e.subarray(rd,rd+nd),ed=Fg.aac.parseSampleRate(id)),$++,rd+=nd;break;default:rd++;break}if(t)return null}if(ed===null||td===null)return null;var ad=Ig/ed;return{audio:[{type:`audio`,dts:td,pts:td},{type:`audio`,dts:td+$*1024*ad,pts:td+$*1024*ad}]}},Wg=function(e){var t={pid:null,table:null},$={};for(var ed in zg(e,t),t.table)if(t.table.hasOwnProperty(ed))switch(t.table[ed]){case Ng.H264_STREAM_TYPE:$.video=[],Vg(e,t,$),$.video.length===0&&delete $.video;break;case Ng.ADTS_STREAM_TYPE:$.audio=[],Bg(e,t,$),$.audio.length===0&&delete $.audio;break}return $},Gg={inspect:function(e,t){var $=Fg.aac.isLikelyAacData(e)?Ug(e):Wg(e);return!$||!$.audio&&!$.video?null:(Hg($,t),$)},parseAudioPes_:Bg};let Kg=function(e,t){t.on(`data`,function(t){let $=t.initSegment;t.initSegment={data:$.buffer,byteOffset:$.byteOffset,byteLength:$.byteLength};let ed=t.data;t.data=ed.buffer,e.postMessage({action:`data`,segment:t,byteOffset:ed.byteOffset,byteLength:ed.byteLength},[t.data])}),t.on(`done`,function(t){e.postMessage({action:`done`})}),t.on(`gopInfo`,function(t){e.postMessage({action:`gopInfo`,gopInfo:t})}),t.on(`videoSegmentTimingInfo`,function(t){let $={start:{decode:rf.videoTsToSeconds(t.start.dts),presentation:rf.videoTsToSeconds(t.start.pts)},end:{decode:rf.videoTsToSeconds(t.end.dts),presentation:rf.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:rf.videoTsToSeconds(t.baseMediaDecodeTime)};
262t.prependedContentDuration&&($.prependedContentDuration=rf.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:`videoSegmentTimingInfo`,videoSegmentTimingInfo:$})}),t.on(`audioSegmentTimingInfo`,function(t){let $={start:{decode:rf.videoTsToSeconds(t.start.dts),presentation:rf.videoTsToSeconds(t.start.pts)},end:{decode:rf.videoTsToSeconds(t.end.dts),presentation:rf.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:rf.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&($.prependedContentDuration=rf.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:`audioSegmentTimingInfo`,audioSegmentTimingInfo:$})}),t.on(`id3Frame`,function(t){e.postMessage({action:`id3Frame`,id3Frame:t})}),t.on(`caption`,function(t){e.postMessage({action:`caption`,caption:t})}),t.on(`trackinfo`,function(t){e.postMessage({action:`trackinfo`,trackInfo:t})}),t.on(`audioTimingInfo`,function(t){e.postMessage({action:`audioTimingInfo`,audioTimingInfo:{start:rf.videoTsToSeconds(t.start),end:rf.videoTsToSeconds(t.end)}})}),t.on(`videoTimingInfo`,function(t){e.postMessage({action:`videoTimingInfo`,videoTimingInfo:{start:rf.videoTsToSeconds(t.start),end:rf.videoTsToSeconds(t.end)}})}),t.on(`log`,function(t){e.postMessage({action:`log`,log:t})})};class qg{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new rh.Transmuxer(this.options),Kg(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new hg,this.captionParser.init());let t=new Uint8Array(e.data,e.byteOffset,e.byteLength),$=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:`mp4Captions`,captions:$&&$.captions||[],logs:$&&$.logs||[],data:t.buffer},[t.buffer])}initMp4WebVttParser(e){this.webVttParser||=new xg;let t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.webVttParser.init(t)}getMp4WebVttText(e){this.webVttParser||=new xg;let t=new Uint8Array(e.data,e.byteOffset,e.byteLength),$=this.webVttParser.parseSegment(t);this.self.postMessage({action:`getMp4WebVttText`,mp4VttCues:$||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){let $=$h.startTime(e,t);this.self.postMessage({action:`probeMp4StartTime`,startTime:$,data:t},[t.buffer])}probeMp4Tracks({data:e}){let t=$h.tracks(e);this.self.postMessage({action:`probeMp4Tracks`,tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){let $=$h.getEmsgID3(e,t);this.self.postMessage({action:`probeEmsgID3`,id3Frames:$,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){let $=typeof t==`number`&&!isNaN(t)?t*rf.ONE_SECOND_IN_TS:void 0,ed=Gg.inspect(e,$),td=null;ed&&(td={hasVideo:ed.video&&ed.video.length===2||!1,hasAudio:ed.audio&&ed.audio.length===2||!1},td.hasVideo&&(td.videoStart=ed.video[0].ptsTime),td.hasAudio&&(td.audioStart=ed.audio[0].ptsTime)),this.self.postMessage({action:`probeTs`,result:td,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){let t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){let t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(rf.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(rf.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:`done`,type:`transmuxed`})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:`endedtimeline`,type:`transmuxed`})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){if(e.data.action===`init`&&e.data.options){this.messageHandlers=new qg(self,e.data.options);return}this.messageHandlers||=new qg(self),e.data&&e.data.action&&e.data.action!==`init`&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}}))),handleData_=(e,t,$)=>
262{let{type:ed,initSegment:td,captions:nd,captionStreams:rd,metadata:id,videoFrameDtsTime:ad,videoFramePtsTime:od}=e.data.segment;t.buffer.push({captions:nd,captionStreams:rd,metadata:id});let sd=e.data.segment.boxes||{data:e.data.segment.data},cd={type:ed,data:new Uint8Array(sd.data,sd.data.byteOffset,sd.data.byteLength),initSegment:new Uint8Array(td.data,td.byteOffset,td.byteLength)};ad!==void 0&&(cd.videoFrameDtsTime=ad),od!==void 0&&(cd.videoFramePtsTime=od),$(cd)},handleDone_=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},handleGopInfo_=(e,t)=>{t.gopInfo=e.data.gopInfo},processTransmux=e=>{let{transmuxer:t,bytes:$,audioAppendStart:ed,gopsToAlignWith:td,remux:nd,onData:rd,onTrackInfo:id,onAudioTimingInfo:ad,onVideoTimingInfo:od,onVideoSegmentTimingInfo:sd,onAudioSegmentTimingInfo:cd,onId3:ld,onCaptions:ud,onDone:dd,onEndedTimeline:fd,onTransmuxerLog:pd,isEndOfTimeline:md,segment:hd,triggerSegmentEventFn:gd}=e,_d={buffer:[]},vd=md;if(t.onmessage=$=>{t.currentTransmux===e&&($.data.action===`data`&&handleData_($,_d,rd),$.data.action===`trackinfo`&&id($.data.trackInfo),$.data.action===`gopInfo`&&handleGopInfo_($,_d),$.data.action===`audioTimingInfo`&&ad($.data.audioTimingInfo),$.data.action===`videoTimingInfo`&&od($.data.videoTimingInfo),$.data.action===`videoSegmentTimingInfo`&&sd($.data.videoSegmentTimingInfo),$.data.action===`audioSegmentTimingInfo`&&cd($.data.audioSegmentTimingInfo),$.data.action===`id3Frame`&&ld([$.data.id3Frame],$.data.id3Frame.dispatchType),$.data.action===`caption`&&ud($.data.caption),$.data.action===`endedtimeline`&&(vd=!1,fd()),$.data.action===`log`&&pd($.data.log),$.data.type===`transmuxed`&&(vd||(t.onmessage=null,handleDone_({transmuxedData:_d,callback:dd}),dequeue(t))))},t.onerror=()=>{dd(null,{message:`Received an error message from the transmuxer worker`,metadata:{errorType:videojs.Error.StreamingFailedToTransmuxSegment,segmentInfo:segmentInfoPayload({segment:hd})}})},ed&&t.postMessage({action:`setAudioAppendStart`,appendStart:ed}),Array.isArray(td)&&t.postMessage({action:`alignGopsWith`,gopsToAlignWith:td}),nd!==void 0&&t.postMessage({action:`setRemux`,remux:nd}),$.byteLength){let e=$ instanceof ArrayBuffer?$:$.buffer,ed=$ instanceof ArrayBuffer?0:$.byteOffset;gd({type:`segmenttransmuxingstart`,segment:hd}),t.postMessage({action:`push`,data:e,byteOffset:ed,byteLength:$.byteLength},[e])}md&&t.postMessage({action:`endTimeline`}),t.postMessage({action:`flush`})},dequeue=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux==`function`?e.currentTransmux():processTransmux(e.currentTransmux))},processAction=(e,t)=>{e.postMessage({action:t}),dequeue(e)},enqueueAction=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,processAction(t,e);return}t.transmuxQueue.push(processAction.bind(null,t,e))},reset=e=>{enqueueAction(`reset`,e)},endTimeline=e=>{enqueueAction(`endTimeline`,e)},transmux=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,processTransmux(e);return}e.transmuxer.transmuxQueue.push(e)},createTransmuxer=e=>{let t=new TransmuxWorker;t.currentTransmux=null,t.transmuxQueue=[];let $=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,$.call(t)),t.postMessage({action:`init`,options:e}),t},segmentTransmuxer={reset,endTimeline,transmux,createTransmuxer},workerCallback=function(e){let t=e.transmuxer,$=e.endAction||e.action,ed=e.callback,td=_extends$2({},e,{endAction:null,transmuxer:null,callback:null}),nd=td=>{td.data.action===$&&(t.removeEventListener(`message`,nd),td.data.data&&(td.data.data=new Uint8Array(td.data.data,e.byteOffset||0,e.byteLength||td.data.data.byteLength),e.data&&=td.data.data),ed(td.data))};if(t.addEventListener(`message`,nd),e.data){let $=e.data instanceof ArrayBuffer;td.byteOffset=$?0:e.data.byteOffset,td.byteLength=e.data.byteLength;let ed=[$?e.data:e.data.buffer];t.postMessage(td,ed)}else t.postMessage(td)},REQUEST_ERRORS={FAILURE:2,TIMEOUT:-101,ABORTED:-102},WEB_VTT_CODEC=`wvtt`,abortAll=e=>{e.forEach(e=>{e.abort()})},getRequestStats=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),getProgressStats=e=>{let t=e.target,$={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return $.bytesReceived=e.loaded,$.bandwidth=Math.floor($.bytesReceived/$.roundTripTime*8*1e3),$},handleErrors=(e,t)=>{let{requestType:$}=t,ed=getStreamingNetworkErrorMetadata({requestType:$,request:t,error:e});return t.timedout?{status:t.status,message:`HLS request timed-out at URL: `+t.uri,code:REQUEST_ERRORS.TIMEOUT,xhr:t,metadata:ed}:t.aborted?{status:t.status,message:`HLS request aborted at URL: `+t.uri,code:REQUEST_ERRORS.ABORTED,xhr:t,metadata:ed}:e?{status:t.status,message:`HLS request errored at URL: `+t.uri,code:REQUEST_ERRORS.FAILURE,xhr:t,metadata:ed}:t.responseType===`arraybuffer`&&t.response.byteLength===0?{status:t.status,message:`Empty HLS response at URL: `+t.uri,code:REQUEST_ERRORS.FAILURE,xhr:t,metadata:ed}:null},handleKeyResponse=(e,t,$,ed)=>(td,nd)=>{let rd=nd.response,id=handleErrors(td,nd);if(id)return $(id,e);if(rd.byteLength!==16)return $({status:nd.status,message:`Invalid HLS key at URL: `+nd.uri,code:REQUEST_ERRORS.FAILURE,xhr:nd},e);let ad=new DataView(rd),od=new Uint32Array([ad.getUint32(0),ad.getUint32(4),ad.getUint32(8),ad.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=od;return ed({type:`segmentkeyloadcomplete`,segment:e,keyInfo:{uri:nd.uri}}),$(null,e)},initMp4Text=(e,t)=>
262{t===WEB_VTT_CODEC&&e.transmuxer.postMessage({action:`initMp4WebVttParser`,data:e.map.bytes})},parseMp4TextSegment=(e,t,$)=>{t===WEB_VTT_CODEC&&workerCallback({action:`getMp4WebVttText`,data:e.bytes,transmuxer:e.transmuxer,callback:({data:t,mp4VttCues:ed})=>{e.bytes=t,$(null,e,{mp4VttCues:ed})}})},parseInitSegment=(e,t)=>{let $=detectContainerForBytes(e.map.bytes);if($!==`mp4`){let ed=e.map.resolvedUri||e.map.uri,td=$||`unknown`;return t({internal:!0,message:`Found unsupported ${td} container for initialization segment at URL: ${ed}`,code:REQUEST_ERRORS.FAILURE,metadata:{mediaType:td}})}workerCallback({action:`probeMp4Tracks`,data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:$,data:ed})=>(e.map.bytes=ed,$.forEach(function(t){e.map.tracks=e.map.tracks||{},!e.map.tracks[t.type]&&(e.map.tracks[t.type]=t,typeof t.id==`number`&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale),t.type===`text`&&initMp4Text(e,t.codec))}),t(null))})},handleInitSegmentResponse=({segment:e,finishProcessingFn:t,triggerSegmentEventFn:$})=>(ed,td)=>{let nd=handleErrors(ed,td);if(nd)return t(nd,e);let rd=new Uint8Array(td.response);if($({type:`segmentloaded`,segment:e}),e.map.key)return e.map.encryptedBytes=rd,t(null,e);e.map.bytes=rd,parseInitSegment(e,function($){if($)return $.xhr=td,$.status=td.status,t($,e);t(null,e)})},handleSegmentResponse=({segment:e,finishProcessingFn:t,responseType:$,triggerSegmentEventFn:ed})=>(td,nd)=>{let rd=handleErrors(td,nd);if(rd)return t(rd,e);ed({type:`segmentloaded`,segment:e});let id=$===`arraybuffer`||!nd.responseText?nd.response:stringToArrayBuffer(nd.responseText.substring(e.lastReachedChar||0));return e.stats=getRequestStats(nd),e.key?e.encryptedBytes=new Uint8Array(id):e.bytes=new Uint8Array(id),t(null,e)},transmuxAndNotify=({segment:e,bytes:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})=>{let dd=e.map&&e.map.tracks||{},fd=!!(dd.audio&&dd.video),pd=ed.bind(null,e,`audio`,`start`),md=ed.bind(null,e,`audio`,`end`),hd=ed.bind(null,e,`video`,`start`),gd=ed.bind(null,e,`video`,`end`),_d=()=>transmux({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:fd,onData:t=>{t.type=t.type===`combined`?`video`:t.type,sd(e,t)},onTrackInfo:t=>{$&&(fd&&(t.isMuxed=!0),$(e,t))},onAudioTimingInfo:e=>{pd&&e.start!==void 0&&(pd(e.start),pd=null),md&&e.end!==void 0&&md(e.end)},onVideoTimingInfo:e=>{hd&&e.start!==void 0&&(hd(e.start),hd=null),gd&&e.end!==void 0&&gd(e.end)},onVideoSegmentTimingInfo:t=>{ud({type:`segmenttransmuxingtiminginfoavailable`,segment:e,timingInfo:{pts:{start:t.start.presentation,end:t.end.presentation},dts:{start:t.start.decode,end:t.end.decode}}}),td(t)},onAudioSegmentTimingInfo:t=>{ud({type:`segmenttransmuxingtiminginfoavailable`,segment:e,timingInfo:{pts:{start:t.start.pts,end:t.end.pts},dts:{start:t.start.dts,end:t.end.dts}}}),nd(t)},onId3:(t,$)=>{rd(e,t,$)},onCaptions:t=>{id(e,[t])},isEndOfTimeline:ad,onEndedTimeline:()=>{od()},onTransmuxerLog:ld,onDone:(t,$)=>{cd&&(t.type=t.type===`combined`?`video`:t.type,ud({type:`segmenttransmuxingcomplete`,segment:e}),cd($,e,t))},segment:e,triggerSegmentEventFn:ud});workerCallback({action:`probeTs`,transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:ed=>{e.bytes=t=ed.data;let td=ed.result;td&&($(e,{hasAudio:td.hasAudio,hasVideo:td.hasVideo,isMuxed:fd}),$=null),_d()}})},handleSegmentBytes=({segment:e,bytes:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})=>{let dd=new Uint8Array(t);if(isLikelyFmp4MediaSegment(dd)){e.isFmp4=!0;let{tracks:td}=e.map;if(td.text&&(!td.audio||!td.video)){sd(e,{data:dd,type:`text`}),parseMp4TextSegment(e,td.text.codec,cd);return}let nd={isFmp4:!0,hasVideo:!!td.video,hasAudio:!!td.audio};td.audio&&td.audio.codec&&td.audio.codec!==`enca`&&(nd.audioCodec=td.audio.codec),td.video&&td.video.codec&&td.video.codec!==`encv`&&(nd.videoCodec=td.video.codec),td.video&&td.audio&&(nd.isMuxed=!0),$(e,nd);let ad=(t,$)=>{sd(e,{data:dd,type:nd.hasAudio&&!nd.isMuxed?`audio`:`video`}),$&&$.length&&rd(e,$),t&&t.length&&id(e,t),cd(null,e,{})};workerCallback({action:`probeMp4StartTime`,timescales:e.map.timescales,data:dd,transmuxer:e.transmuxer,callback:({data:$,startTime:rd})=>{t=$.buffer,e.bytes=dd=$,nd.hasAudio&&!nd.isMuxed&&ed(e,`audio`,`start`,rd),nd.hasVideo&&ed(e,`video`,`start`,rd),workerCallback({action:`probeEmsgID3`,data:dd,transmuxer:e.transmuxer,offset:rd,callback:({emsgData:$,i
262d3Frames:ed})=>{if(t=$.buffer,e.bytes=dd=$,!td.video||!$.byteLength||!e.transmuxer){ad(void 0,ed);return}workerCallback({action:`pushMp4Captions`,endAction:`mp4Captions`,transmuxer:e.transmuxer,data:dd,timescales:e.map.timescales,trackIds:[td.video.id],callback:$=>{t=$.data.buffer,e.bytes=dd=$.data,$.logs.forEach(function(e){ld(merge(e,{stream:`mp4CaptionParser`}))}),ad($.captions,ed)}})}})}});return}if(!e.transmuxer){cd(null,e,{});return}if(e.container===void 0&&(e.container=detectContainerForBytes(dd)),e.container!==`ts`&&e.container!==`aac`){$(e,{hasAudio:!1,hasVideo:!1}),cd(null,e,{});return}transmuxAndNotify({segment:e,bytes:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})},decrypt=function({id:e,key:t,encryptedBytes:$,decryptionWorker:ed,segment:td,doneFn:nd},rd){let id=t=>{if(t.data.source===e){ed.removeEventListener(`message`,id);let e=t.data.decrypted;rd(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};ed.onerror=()=>{let e=`An error occurred in the decryption worker`,t=segmentInfoPayload({segment:td});nd({message:e,metadata:{error:Error(e),errorType:videojs.Error.StreamingFailedToDecryptSegment,segmentInfo:t,keyInfo:{uri:td.key.resolvedUri||td.map.key.resolvedUri}}},td)},ed.addEventListener(`message`,id);let ad;ad=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),ed.postMessage(createTransferableMessage({source:e,encrypted:$,key:ad,iv:t.iv}),[$.buffer,ad.buffer])},decryptSegment=({decryptionWorker:e,segment:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})=>{ud({type:`segmentdecryptionstart`}),decrypt({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:cd},e=>{t.bytes=e,ud({type:`segmentdecryptioncomplete`,segment:t}),handleSegmentBytes({segment:t,bytes:t.bytes,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})})},waitForCompletion=({activeXhrs:e,decryptionWorker:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})=>{let dd=0,fd=!1;return(pd,md)=>{if(!fd){if(pd)return fd=!0,abortAll(e),cd(pd,md);if(dd+=1,dd===e.length){let dd=function(){if(md.encryptedBytes)return decryptSegment({decryptionWorker:t,segment:md,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud});handleSegmentBytes({segment:md,bytes:md.bytes,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd,doneFn:cd,onTransmuxerLog:ld,triggerSegmentEventFn:ud})};if(md.endOfAllRequests=Date.now(),md.map&&md.map.encryptedBytes&&!md.map.bytes)return ud({type:`segmentdecryptionstart`,segment:md}),decrypt({decryptionWorker:t,id:md.requestId+`-init`,encryptedBytes:md.map.encryptedBytes,key:md.map.key,segment:md,doneFn:cd},t=>{md.map.bytes=t,ud({type:`segmentdecryptioncomplete`,segment:md}),parseInitSegment(md,t=>{if(t)return abortAll(e),cd(t,md);dd()})});dd()}}}},handleLoadEnd=({loadendState:e,abortFn:t})=>$=>{$.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},handleProgress=({segment:e,progressFn:t,trackInfoFn:$,timingInfoFn:ed,videoSegmentTimingInfoFn:td,audioSegmentTimingInfoFn:nd,id3Fn:rd,captionsFn:id,isEndOfTimeline:ad,endedTimelineFn:od,dataFn:sd})=>$=>
262{if(!$.target.aborted)return e.stats=merge(e.stats,getProgressStats($)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t($,e)},mediaSegmentRequest=({xhr:e,xhrOptions:t,decryptionWorker:$,segment:ed,abortFn:td,progressFn:nd,trackInfoFn:rd,timingInfoFn:id,videoSegmentTimingInfoFn:ad,audioSegmentTimingInfoFn:od,id3Fn:sd,captionsFn:cd,isEndOfTimeline:ld,endedTimelineFn:ud,dataFn:dd,doneFn:fd,onTransmuxerLog:pd,triggerSegmentEventFn:md})=>{let hd=[],gd=waitForCompletion({activeXhrs:hd,decryptionWorker:$,trackInfoFn:rd,timingInfoFn:id,videoSegmentTimingInfoFn:ad,audioSegmentTimingInfoFn:od,id3Fn:sd,captionsFn:cd,isEndOfTimeline:ld,endedTimelineFn:ud,dataFn:dd,doneFn:fd,onTransmuxerLog:pd,triggerSegmentEventFn:md});if(ed.key&&!ed.key.bytes){let $=[ed.key];ed.map&&!ed.map.bytes&&ed.map.key&&ed.map.key.resolvedUri===ed.key.resolvedUri&&$.push(ed.map.key);let td=merge(t,{uri:ed.key.resolvedUri,responseType:`arraybuffer`,requestType:`segment-key`}),nd=handleKeyResponse(ed,$,gd,md);md({type:`segmentkeyloadstart`,segment:ed,keyInfo:{uri:ed.key.resolvedUri}});let rd=e(td,nd);hd.push(rd)}if(ed.map&&!ed.map.bytes){if(ed.map.key&&(!ed.key||ed.key.resolvedUri!==ed.map.key.resolvedUri)){let $=merge(t,{uri:ed.map.key.resolvedUri,responseType:`arraybuffer`,requestType:`segment-key`}),td=handleKeyResponse(ed,[ed.map.key],gd,md);md({type:`segmentkeyloadstart`,segment:ed,keyInfo:{uri:ed.map.key.resolvedUri}});let nd=e($,td);hd.push(nd)}let $=merge(t,{uri:ed.map.resolvedUri,responseType:`arraybuffer`,headers:segmentXhrHeaders(ed.map),requestType:`segment-media-initialization`}),td=handleInitSegmentResponse({segment:ed,finishProcessingFn:gd,triggerSegmentEventFn:md});md({type:`segmentloadstart`,segment:ed});let nd=e($,td);hd.push(nd)}let _d=merge(t,{uri:ed.part&&ed.part.resolvedUri||ed.resolvedUri,responseType:`arraybuffer`,headers:segmentXhrHeaders(ed),requestType:`segment`}),vd=handleSegmentResponse({segment:ed,finishProcessingFn:gd,responseType:_d.responseType,triggerSegmentEventFn:md});md({type:`segmentloadstart`,segment:ed});let yd=e(_d,vd);yd.addEventListener(`progress`,handleProgress({segment:ed,progressFn:nd,trackInfoFn:rd,timingInfoFn:id,videoSegmentTimingInfoFn:ad,audioSegmentTimingInfoFn:od,id3Fn:sd,captionsFn:cd,isEndOfTimeline:ld,endedTimelineFn:ud,dataFn:dd})),hd.push(yd);let bd={};return hd.forEach(e=>{e.addEventListener(`loadend`,handleLoadEnd({loadendState:bd,abortFn:td}))}),()=>abortAll(hd)},logFn=logger(`PlaylistSelector`),representationToString=function(e){if(!e||!e.playlist)return;let t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||``})},safeGetComputedStyle=function(e,t){if(!e)return``;let $=import_window.default.getComputedStyle(e);return $?$[t]:``},stableSort=function(e,t){let $=e.slice();e.sort(function(e,ed){let td=t(e,ed);return td===0?$.indexOf(e)-$.indexOf(ed):td})},comparePlaylistBandwidth=function(e,t){let $,ed;return e.attributes.BANDWIDTH&&($=e.attributes.BANDWIDTH),$||=import_window.default.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(ed=t.attributes.BANDWIDTH),ed||=import_window.default.Number.MAX_VALUE,$-ed},comparePlaylistResolution=function(e,t){let $,ed;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&($=e.attributes.RESOLUTION.width),$||=import_window.default.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(ed=t.attributes.RESOLUTION.width),ed||=import_window.default.Number.MAX_VALUE,$===ed&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:$-ed},simpleSelector=function(e){let{main:t,bandwidth:$,playerWidth:ed,playerHeight:td,playerObjectFit:nd,limitRenditionByPlayerDimensions:rd,playlistController:id}=e;if(!t)return;let ad={bandwidth:$,width:ed,height:td,limitRenditionByPlayerDimensions:rd},od=t.playlists;Playlist.isAudioOnly(t)&&(od=id.getAudioTrackPlaylists_(),ad.audioOnly=!0);let sd=od.map(e=>{let t,$=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,ed=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t||=import_window.default.Number.MAX_VALUE,{bandwidth:t,width:$,height:ed,playlist:e}});stableSort(sd,(e,t)=>e.bandwidth-t.bandwidth),sd=sd.filter(e=>!Playlist.isIncompatible(e.playlist));let cd=sd.filter(e=>Playlist.isEnabled(e.playlist));cd.length||(cd=sd.filter(e=>!Playlist.isDisabled(e.playlist)));let ld=cd.filter(e=>e.bandwidth*Config.BANDWIDTH_VARIANCE<$),ud=ld[ld.length-1],dd=ld.filter(e=>e.bandwidth===ud.bandwidth)[0];if(rd===!1){let e=dd||cd[0]||sd[0];if(e&&e.playlist){let t=`sortedPlaylistReps`;return dd&&(t=`bandwidthBestRep`),cd[0]&&(t=`enabledPlaylistReps`),logFn(`choosing ${representationToString(e)} using ${t} with options`,ad),e.playlist}return logFn(`could not choose a playlist with options`,ad),null}let fd=ld.filter(e=>e.width&&e.height);stableSort(fd,(e,t)=>e.width-t.width);let pd=fd.filter(e=>e.width===ed&&e.height===td);ud=pd[pd.length-1];let md=pd.filter(e=>e.bandwidth===ud.bandwidth)[0],hd,gd,_d;md||(hd=fd.filter(e=>nd===`cover`?e.width>ed&&e.height>td:e.width>ed||e.height>td),gd=hd.filter(e=>e.width===hd[0].width&&e.height===hd[0].height),ud=gd[gd.length-1],_d=gd.filter(e=>e.bandwidth===ud.bandwidth)[0]);let vd;
262if(id.leastPixelDiffSelector){let e=fd.map(e=>(e.pixelDiff=Math.abs(e.width-ed)+Math.abs(e.height-td),e));stableSort(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),vd=e[0]}let yd=vd||_d||md||dd||cd[0]||sd[0];if(yd&&yd.playlist){let e=`sortedPlaylistReps`;return vd?e=`leastPixelDiffRep`:_d?e=`resolutionPlusOneRep`:md?e=`resolutionBestRep`:dd?e=`bandwidthBestRep`:cd[0]&&(e=`enabledPlaylistReps`),logFn(`choosing ${representationToString(yd)} using ${e} with options`,ad),yd.playlist}return logFn(`could not choose a playlist with options`,ad),null},lastBandwidthSelector=function(){let e=this.useDevicePixelRatio&&import_window.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),simpleSelector({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(safeGetComputedStyle(this.tech_.el(),`width`),10)*e,playerHeight:parseInt(safeGetComputedStyle(this.tech_.el(),`height`),10)*e,playerObjectFit:this.usePlayerObjectFit?safeGetComputedStyle(this.tech_.el(),`objectFit`):``,limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})},movingAverageBandwidthSelector=function(e){let t=-1,$=-1;if(e<0||e>1)throw Error(`Moving average bandwidth decay must be between 0 and 1.`);return function(){let ed=this.useDevicePixelRatio&&import_window.default.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(ed=this.customPixelRatio),t<0&&(t=this.systemBandwidth,$=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==$&&(t=e*this.systemBandwidth+(1-e)*t,$=this.systemBandwidth),simpleSelector({main:this.playlists.main,bandwidth:t,playerWidth:parseInt(safeGetComputedStyle(this.tech_.el(),`width`),10)*ed,playerHeight:parseInt(safeGetComputedStyle(this.tech_.el(),`height`),10)*ed,playerObjectFit:this.usePlayerObjectFit?safeGetComputedStyle(this.tech_.el(),`objectFit`):``,limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},minRebufferMaxBandwidthSelector=function(e){let{main:t,currentTime:$,bandwidth:ed,duration:td,segmentDuration:nd,timeUntilRebuffer:rd,currentTimeline:id,syncController:ad}=e,od=t.playlists.filter(e=>!Playlist.isIncompatible(e)),sd=od.filter(Playlist.isEnabled);sd.length||(sd=od.filter(e=>!Playlist.isDisabled(e)));let cd=sd.filter(Playlist.hasAttribute.bind(null,`BANDWIDTH`)).map(e=>{let t=ad.getSyncPoint(e,td,id,$)?1:2;return{playlist:e,rebufferingImpact:Playlist.estimateSegmentRequestTime(nd,ed,e)*t-rd}}),ld=cd.filter(e=>e.rebufferingImpact<=0);return stableSort(ld,(e,t)=>comparePlaylistBandwidth(t.playlist,e.playlist)),ld.length?ld[0]:(stableSort(cd,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),cd[0]||null)},lowestBitrateCompatibleVariantSelector=function(){let e=this.playlists.main.playlists.filter(Playlist.isEnabled);return stableSort(e,(e,t)=>comparePlaylistBandwidth(e,t)),e.filter(e=>!!codecsForPlaylist(this.playlists.main,e).video)[0]||null},concatSegments=e=>{let t=0,$;return e.bytes&&($=new Uint8Array(e.bytes),e.segments.forEach(e=>{$.set(e,t),t+=e.byteLength})),$},createCaptionsTrackIfNotExists=function(e,t,$){if(!e[$]){t.trigger({type:`usage`,name:`vhs-608`});let ed=$;/^cc708_/.test($)&&(ed=`SERVICE`+$.split(`_`)[1]);let td=t.textTracks().getTrackById(ed);if(td)e[$]=td;else{let td=t.options_.vhs&&t.options_.vhs.captionServices||{},nd=$,rd=$,id=!1,ad=td[ed];ad&&(nd=ad.label,rd=ad.language,id=ad.default),e[$]=t.addRemoteTextTrack({kind:`captions`,id:ed,default:id,label:nd,language:rd},!1).track}}},addCaptionData=function({inbandTextTracks:e,captionArray:t,timestampOffset:$}){if(!t)return;let ed=import_window.default.WebKitDataCue||import_window.default.VTTCue;t.forEach(t=>{let td=t.stream;t.content?t.content.forEach(nd=>{let rd=new ed(t.startTime+$,t.endTime+$,nd.text);rd.line=nd.line,rd.align=`left`,rd.position=nd.position,rd.positionAlign=`line-left`,e[td].addCue(rd)}):e[td].addCue(new ed(t.startTime+$,t.endTime+$,t.text))})},deprecateOldCue=function(e){Object.defineProperties(e.frame,{id:{get(){return videojs.log.warn(`cue.frame.id is deprecated. Use cue.value.key instead.`),e.value.key}},value:{get(){return videojs.log.warn(`cue.frame.value is deprecated. Use cue.value.data instead.`),e.value.data}},privateData:{get(){return videojs.log.warn(`cue.frame.privateData is deprecated. Use cue.value.data instead.`),e.value.data}}})},addMetadata=({inbandTextTracks:e,metadataArray:t,timestampOffset:$,videoDuration:ed})=>{if(!t)return;let td=import_window.default.WebKitDataCue||import_window.default.VTTCue,nd=e.metadataTrack_;
262if(!nd||(t.forEach(e=>{let t=e.cueTime+$;typeof t!=`number`||import_window.default.isNaN(t)||t<0||!(t<1/0)||!e.frames||!e.frames.length||e.frames.forEach(e=>{let $=new td(t,t,e.value||e.url||e.data||``);$.frame=e,$.value=e,deprecateOldCue($),nd.addCue($)})}),!nd.cues||!nd.cues.length))return;let rd=nd.cues,id=[];for(let e=0;e<rd.length;e++)rd[e]&&id.push(rd[e]);let ad=id.reduce((e,t)=>{let $=e[t.startTime]||[];return $.push(t),e[t.startTime]=$,e},{}),od=Object.keys(ad).sort((e,t)=>Number(e)-Number(t));od.forEach((e,t)=>{let $=ad[e],td=isFinite(ed)?ed:e,nd=Number(od[t+1])||td;$.forEach(e=>{e.endTime=nd})})},dateRangeAttr={id:`ID`,class:`CLASS`,startDate:`START-DATE`,duration:`DURATION`,endDate:`END-DATE`,endOnNext:`END-ON-NEXT`,plannedDuration:`PLANNED-DURATION`,scte35Out:`SCTE35-OUT`,scte35In:`SCTE35-IN`},dateRangeKeysToOmit=new Set([`id`,`class`,`startDate`,`duration`,`endDate`,`endOnNext`,`startTime`,`endTime`,`processDateRange`]),addDateRangeMetadata=({inbandTextTracks:e,dateRanges:t})=>{let $=e.metadataTrack_;if(!$)return;let ed=import_window.default.WebKitDataCue||import_window.default.VTTCue;t.forEach(e=>{for(let t of Object.keys(e)){if(dateRangeKeysToOmit.has(t))continue;let td=new ed(e.startTime,e.endTime,``);td.id=e.id,td.type=`com.apple.quicktime.HLS`,td.value={key:dateRangeAttr[t],data:e[t]},(t===`scte35Out`||t===`scte35In`)&&(td.value.data=new Uint8Array(td.value.data.match(/[\da-f]{2}/gi)).buffer),$.addCue(td)}e.processDateRange()})},createMetadataTrackIfNotExists=(e,t,$)=>{e.metadataTrack_||(e.metadataTrack_=$.addRemoteTextTrack({kind:`metadata`,label:`Timed Metadata`},!1).track,videojs.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},removeCuesFromTrack=function(e,t,$){let ed,td;if($&&$.cues)for(ed=$.cues.length;ed--;)td=$.cues[ed],td.startTime>=e&&td.endTime<=t&&$.removeCue(td)},removeDuplicateCuesFromTrack=function(e){let t=e.cues;if(!t)return;let $={};for(let ed=t.length-1;ed>=0;ed--){let td=t[ed],nd=`${td.startTime}-${td.endTime}-${td.text}`;$[nd]?e.removeCue(td):$[nd]=td}},gopsSafeToAlignWith=(e,t,$)=>
262{if(t==null||!e.length)return[];let ed=Math.ceil((t-$+3)*import_clock.ONE_SECOND_IN_TS),td;for(td=0;td<e.length&&!(e[td].pts>ed);td++);return e.slice(td)},updateGopBuffer=(e,t,$)=>{if(!t.length)return e;if($)return t.slice();let ed=t[0].pts,td=0;for(;td<e.length&&!(e[td].pts>=ed);td++);return e.slice(0,td).concat(t)},removeGopBuffer=(e,t,$,ed)=>{let td=Math.ceil((t-ed)*import_clock.ONE_SECOND_IN_TS),nd=Math.ceil(($-ed)*import_clock.ONE_SECOND_IN_TS),rd=e.slice(),id=e.length;for(;id--&&!(e[id].pts<=nd););if(id===-1)return rd;let ad=id+1;for(;ad--&&!(e[ad].pts<=td););return ad=Math.max(ad,0),rd.splice(ad,id-ad+1),rd},shallowEqual$1=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;let $=Object.keys(e).sort(),ed=Object.keys(t).sort();if($.length!==ed.length)return!1;for(let td=0;td<$.length;td++){let nd=$[td];if(nd!==ed[td]||e[nd]!==t[nd])return!1}return!0},getSyncSegmentCandidate=function(e,t,$){t||=[];let ed=[],td=0;for(let nd=0;nd<t.length;nd++){let rd=t[nd];if(e===rd.timeline&&(ed.push(nd),td+=rd.duration,td>$))return nd}return ed.length===0?0:ed[ed.length-1]},MIN_BACK_BUFFER=1,CHECK_BUFFER_DELAY=500,finite=e=>typeof e==`number`&&isFinite(e),MIN_SEGMENT_DURATION_TO_SAVE_STATS=1/60,illegalMediaSwitch=(e,t,$)=>e!==`main`||!t||!$?null:!$.hasAudio&&!$.hasVideo?`Neither audio nor video found in segment.`:t.hasVideo&&!$.hasVideo?`Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.`:!t.hasVideo&&$.hasVideo?`Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.`:null,safeBackBufferTrimTime=(e,t,$)=>{let ed=t-Config.BACK_BUFFER_LENGTH;e.length&&(ed=Math.max(ed,e.start(0)));let td=t-$;return Math.min(td,ed)},segmentInfoString=e=>{let{startOfSegment:t,duration:$,segment:ed,part:td,playlist:{mediaSequence:nd,id:rd,segments:id=[]},mediaIndex:ad,partIndex:od,timeline:sd}=e,cd=id.length-1,ld=`mediaIndex/partIndex increment`;e.getMediaInfoForTime?ld=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(ld=`getSyncSegmentCandidate (isSyncRequest)`),e.independent&&(ld+=` with independent ${e.independent}`);let ud=typeof od==`number`,dd=e.segment.uri?`segment`:`pre-segment`,fd=ud?getKnownPartCount({preloadSegment:ed})-1:0;return`${dd} [${nd+ad}/${nd+cd}]`+(ud?` part [${od}/${fd}]`:``)+` segment start/end [${ed.start} => ${ed.end}]`+(ud?` part start/end [${td.start} => ${td.end}]`:``)+` startOfSegment [${t}] duration [${$}] timeline [${sd}] selected by [${ld}] playlist [${rd}]`},timingInfoPropertyForMedia=e=>`${e}TimingInfo`,timestampOffsetForSegment=({segmentTimeline:e,currentTimeline:t,startOfSegment:$,buffered:ed,overrideCheck:td})=>!td&&e===t?null:e<t?$:ed.length?ed.end(ed.length-1):$,shouldWaitForTimelineChange=({timelineChangeController:e,currentTimeline:t,segmentTimeline:$,loaderType:ed,audioDisabled:td})=>{if(t===$)return!1;if(ed===`audio`){let t=e.lastTimelineChange({type:`main`});return!t||t.to!==$}if(ed===`main`&&td){let t=e.pendingTimelineChange({type:`audio`});return!(t&&t.to===$)}return!1},shouldFixBadTimelineChanges=e=>{if(!e)return!1;let t=e.pendingTimelineChange({type:`audio`}),$=e.pendingTimelineChange({type:`main`}),ed=t&&$,td=ed&&t.to!==$.to;return!!(ed&&t.from!==-1&&$.from!==-1&&td)},isAudioTimelineBehind=e=>{let t=e.timelineChangeController_.pendingTimelineChange({type:`audio`}),$=e.timelineChangeController_.pendingTimelineChange({type:`main`});return t&&$&&t.to<$.to},checkAndFixTimelines=e=>{let t=e.pendingSegment_;if(t&&shouldWaitForTimelineChange({timelineChangeController:e.timelineChangeController_,currentTimeline:e.currentTimeline_,segmentTimeline:t.timeline,loaderType:e.loaderType_,audioDisabled:e.audioDisabled_})&&shouldFixBadTimelineChanges(e.timelineChangeController_)){if(isAudioTimelineBehind(e)){e.timelineChangeController_.trigger(`audioTimelineBehind`);return}e.timelineChangeController_.trigger(`fixBadTimelineChange`)}},mediaDuration=e=>{let t=0;return[`video`,`audio`].forEach(function($){let ed=e[`${$}TimingInfo`];if(!ed)return;let{start:td,end:nd}=ed,rd;typeof td==`bigint`||typeof nd==`bigint`?rd=import_window.default.BigInt(nd)-import_window.default.BigInt(td):typeof td==`number`&&typeof nd==`number`&&(rd=nd-td),rd!==void 0&&rd>t&&(t=rd)}),typeof t==`bigint`&&t<2**53-1&&(t=Number(t)),t},segmentTooLong=({segmentDuration:e,maxDuration:t})=>e?Math.round(e)>t+TIME_FUDGE_FACTOR:!1,getTroublesomeSegmentDurationMessage=(e,t)=>
262{if(t!==`hls`)return null;let $=mediaDuration({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!$)return null;let ed=e.playlist.targetDuration,td=segmentTooLong({segmentDuration:$,maxDuration:ed*2}),nd=segmentTooLong({segmentDuration:$,maxDuration:ed}),rd=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${$} when the reported duration is ${e.duration} and the target duration is ${ed}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return td||nd?{severity:td?`warn`:`info`,message:rd}:null},segmentInfoPayload=({type:e,segment:t})=>{if(!t)return;let $=!!(t.key||t.map&&t.map.ke),ed=!!(t.map&&!t.map.bytes),td=t.startOfSegment===void 0?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:td,duration:t.duration,isEncrypted:$,isMediaInitialization:ed}},SegmentLoader=class extends videojs.EventTarget{constructor(e,t={}){if(super(),!e)throw TypeError(`Initialization settings are required`);if(typeof e.currentTime!=`function`)throw TypeError(`No currentTime getter specified`);if(!e.mediaSource)throw TypeError(`No MediaSource specified`);this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_=`INIT`,this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger(`syncinfoupdate`),this.syncController_.on(`syncinfoupdate`,this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener(`sourceopen`,()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=logger(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,`state`,{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger(`statechange`))}}),this.sourceUpdater_.on(`ready`,()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():checkAndFixTimelines(this)}),this.sourceUpdater_.on(`codecschange`,e=>{this.trigger(_extends$2({type:`codecschange`},e))}),this.loaderType_===`main`&&this.timelineChangeController_.on(`pendingtimelinechange`,()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():checkAndFixTimelines(this)}),this.loaderType_===`audio`&&this.timelineChangeController_.on(`timelinechange`,e=>{this.trigger(_extends$2({type:`timelinechange`},e)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():checkAndFixTimelines(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():checkAndFixTimelines(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}
262createTransmuxer_(){return segmentTransmuxer.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger(`dispose`),this.state=`DISPOSED`,this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&import_window.default.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off(`syncinfoupdate`,this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!==`WAITING`){this.pendingSegment_&&=null,this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);return}this.abort_(),this.state=`READY`,this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,import_window.default.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return this.state===`APPENDING`&&!this.pendingSegment_?(this.state=`READY`,!0):!this.pendingSegment_||this.pendingSegment_.requestId!==e}error(e){return e!==void 0&&(this.logger_(`error occurred:`,e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&segmentTransmuxer.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger(`ended`)}buffered_(){let e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return createTimeRanges();if(this.loaderType_===`main`){let{hasAudio:t,hasVideo:$,isMuxed:ed}=e;if($&&t&&!this.audioDisabled_&&!ed)return this.sourceUpdater_.buffered();if($)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;let $=initSegmentId(e),ed=this.initSegments_[$];return t&&!ed&&e.bytes&&(this.initSegments_[$]=ed={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),ed||e}segmentKey(e,t=!1){if(!e)return null;let $=segmentKeyId(e),ed=this.keyCache_[$];this.cacheEncryptionKeys_&&t&&!ed&&e.bytes&&(this.keyCache_[$]=ed={resolvedUri:e.resolvedUri,bytes:e.bytes});let td={resolvedUri:(ed||e).resolvedUri};return ed&&(td.bytes=ed.bytes),td}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if(this.state===`INIT`&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!==`READY`&&this.state!==`INIT`||(this.state=`READY`)}}init_(){return this.state=`READY`,this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e||this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;let $=this.playlist_,ed=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,this.state===`INIT`&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_===`main`&&this.syncController_.setDateTimeMappingForStart(e));let td=null;if($&&($.id?td=$.id:$.uri&&(td=$.uri)),this.logger_(`playlist update [${td} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update: 263currentTime: ${this.currentTime_()} 264bufferedEnd: ${lastBufferedEnd(this.buffered_())} 265`,this.mediaSequenceSync_.diagnostics)),this.trigger(`syncinfoupdate`),this.state===`INIT`&&this.couldBeginLoading_())return this.init_();if(!$||$.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration==`number`?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger(`playlistupdate`);return}let nd=e.mediaSequence-$.mediaSequence;if(this.logger_(`live window shift [${nd}]`),this.mediaIndex!==null)if(this.mediaIndex-=nd,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{let e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){let e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}ed&&(ed.mediaIndex-=nd,ed.mediaIndex<0?(ed.mediaIndex=null,ed.partIndex=null):(ed.mediaIndex>=0&&(ed.segment=e.segments[ed.mediaIndex]),ed.partIndex>=0&&ed.segment.parts&&(ed.part=ed.segment.parts[ed.partIndex]))),this.syncController_.saveExpiredSegmentInfo($,e)}pause(){this.checkBufferTimeout_&&=(import_window.default.clearTimeout(this.checkBufferTimeout_),null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:`clearAllMp4Captions`}),this.transmuxer_.postMessage({action:`reset`}))}
265resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&segmentTransmuxer.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;let e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_===`hls`&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:`clearParsedMp4Captions`})}remove(e,t,$=()=>{},ed=!1){if(t===1/0&&(t=this.duration_()),t<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_(`skipping remove because no source updater or starting media info`);return}let td=1,nd=()=>{td--,td===0&&$()};(ed||!this.audioDisabled_)&&(td++,this.sourceUpdater_.removeAudio(e,t,nd)),(ed||this.loaderType_===`main`)&&(this.gopBuffer_=removeGopBuffer(this.gopBuffer_,e,t,this.timeMapping_),td++,this.sourceUpdater_.removeVideo(e,t,nd));for(let $ in this.inbandTextTracks_)removeCuesFromTrack(e,t,this.inbandTextTracks_[$]);removeCuesFromTrack(e,t,this.segmentMetadataTrack_),nd()}monitorBuffer_(){this.checkBufferTimeout_&&import_window.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=import_window.default.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state===`READY`&&this.fillBuffer_(),this.checkBufferTimeout_&&import_window.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=import_window.default.setTimeout(this.monitorBufferTick_.bind(this),CHECK_BUFFER_DELAY)}fillBuffer_(){if(this.sourceUpdater_.updating())return;let e=this.chooseNextRequest_();if(!e)return;let t={segmentInfo:segmentInfoPayload({type:this.loaderType_,segment:e})};this.trigger({type:`segmentselected`,metadata:t}),typeof e.timestampOffset==`number`&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,$=this.partIndex){if(!t||!this.mediaSource_)return!1;let ed=typeof e==`number`&&t.segments[e],td=e+1===t.segments.length,nd=!ed||!ed.parts||$+1===ed.parts.length;return t.endList&&this.mediaSource_.readyState===`open`&&td&&nd}chooseNextRequest_(){let e=this.buffered_(),t=lastBufferedEnd(e)||0,$=timeAheadOf(e,this.currentTime_()),ed=!this.hasPlayed_()&&$>=1,td=$>=this.goalBufferLength_(),nd=this.playlist_.segments;if(!nd.length||ed||td)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);let rd={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(rd.isSyncRequest)rd.mediaIndex=getSyncSegmentCandidate(this.currentTimeline_,nd,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${rd.mediaIndex}`);else if(this.mediaIndex!==null){let e=nd[this.mediaIndex],$=typeof this.partIndex==`number`?this.partIndex:-1;rd.startOfSegment=e.end?e.end:t,e.parts&&e.parts[$+1]?(rd.mediaIndex=this.mediaIndex,rd.partIndex=$+1):rd.mediaIndex=this.mediaIndex+1}else{let e,$,ed,td=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch: 266For TargetTime: ${td}. 267CurrentTime: ${this.currentTime_()} 268BufferedEnd: ${t} 269Fetch At Buffer: ${this.fetchAtBuffer_} 270`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){let t=this.getSyncInfoFromMediaSequenceSync_(td);if(!t){let e=`No sync info found while using media sequence sync`;return this.error({message:e,metadata:{errorType:videojs.Error.StreamingFailedToSelectNextSegment,error:Error(e)}}),this.logger_(`chooseNextRequest_ - no sync info found using media sequence sync`),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${t.start} --> ${t.end})`),e=t.segmentIndex,$=t.partIndex,ed=t.start}else{this.logger_(`chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.`);let t=Playlist.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:td,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});e=t.segmentIndex,$=t.partIndex,ed=t.startTime}rd.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${td}`:`currentTime ${td}`,rd.mediaIndex=e,rd.startOfSegment=ed,rd.partIndex=$,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${rd.mediaIndex} `)}let id=nd[rd.mediaIndex],ad=id&&typeof rd.partIndex==`number`&&id.parts&&id.parts[rd.partIndex];if(!id||typeof rd.partIndex==`number`&&!ad)return null;typeof rd.partIndex!=`number`&&id.parts&&(rd.partIndex=0,ad=id.parts[0]);let od=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!$&&ad&&!od&&!ad.independent)if(rd.partIndex===0){let e=nd[rd.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(--rd.mediaIndex,rd.partIndex=e.parts.length-1,rd.independent=`previous segment`)}else id.parts[rd.partIndex-1].independent&&(--rd.partIndex,rd.independent=`previous part`);let sd=this.mediaSource_&&this.mediaSource_.readyState===`ended`;return rd.mediaIndex>=nd.length-1&&sd&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,rd.forceTimestampOffset=!0,this.logger_(`choose next request. Force timestamp offset after loader resync`)),this.generateSegmentInfo_(rd))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;let t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);let $=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!$)return null;if(!$.isAppended)return $;let ed=this.mediaSequenceSync_.getSyncInfoForTime($.end);return ed?(ed.isAppended&&this.logger_(`getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!`),ed):null}generateSegmentInfo_(e){let{independent:t,playlist:$,mediaIndex:ed,startOfSegment:td,isSyncRequest:nd,partIndex:rd,forceTimestampOffset:id,getMediaInfoForTime:ad}=e,od=$.segments[ed],sd=typeof rd==`number`&&od.parts[rd],cd={requestId:`segment-loader-`+Math.random(),uri:sd&&sd.resolvedUri||od.resolvedUri,mediaIndex:ed,partIndex:sd?rd:null,isSyncRequest:nd,startOfSegment:td,playlist:$,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:od.timeline,duration:sd&&sd.duration||od.duration,segment:od,part:sd,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:ad,independent:t},ld=id===void 0?this.isPendingTimestampOffset_:id;cd.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:od.timeline,currentTimeline:this.currentTimeline_,startOfSegment:td,buffered:this.buffered_(),overrideCheck:ld});
270let ud=lastBufferedEnd(this.sourceUpdater_.audioBuffered());return typeof ud==`number`&&(cd.audioAppendStart=ud-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(cd.gopsToAlignWith=gopsSafeToAlignWith(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),cd}timestampOffsetForSegment_(e){return timestampOffsetForSegment(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;let t=this.currentTime_(),$=e.bandwidth,ed=this.pendingSegment_.duration,td=Playlist.estimateSegmentRequestTime(ed,$,this.playlist_,e.bytesReceived),nd=timeUntilRebuffer(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(td<=nd)return;let rd=minRebufferMaxBandwidthSelector({main:this.vhs_.playlists.main,currentTime:t,bandwidth:$,duration:this.duration_(),segmentDuration:ed,timeUntilRebuffer:nd,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!rd)return;let id=td-nd-rd.rebufferingImpact,ad=.5;nd<=TIME_FUDGE_FACTOR&&(ad=1),!(!rd.playlist||rd.playlist.uri===this.playlist_.uri||id<ad)&&(this.bandwidth=rd.playlist.attributes.BANDWIDTH*Config.BANDWIDTH_VARIANCE+1,this.trigger(`earlyabort`))}handleAbort_(e){this.logger_(`Aborting ${segmentInfoString(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&this.trigger(`progress`)}handleTrackInfo_(e,t){let{hasAudio:$,hasVideo:ed}=t,td={segmentInfo:segmentInfoPayload({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:$,hasVideo:ed}};this.trigger({type:`segmenttransmuxingtrackinfoavailable`,metadata:td}),this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(t)||(t||={},shallowEqual$1(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_(`trackinfo update`,t),this.trigger(`trackinfo`)),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():checkAndFixTimelines(this))))}handleTimingInfo_(e,t,$,ed){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;let td=this.pendingSegment_,nd=timingInfoPropertyForMedia(t);td[nd]=td[nd]||{},td[nd][$]=ed,this.logger_(`timinginfo: ${t} - ${$} - ${ed}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():checkAndFixTimelines(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(t.length===0){this.logger_(`SegmentLoader received no captions from a caption event`);return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));return}let $=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),ed={};t.forEach(e=>{ed[e.stream]=ed[e.stream]||{startTime:1/0,captions:[],endTime:0};let t=ed[e.stream];t.startTime=Math.min(t.startTime,e.startTime+$),t.endTime=Math.max(t.endTime,e.endTime+$),t.captions.push(e)}),Object.keys(ed).forEach(e=>{let{startTime:t,endTime:td,captions:nd}=ed[e],rd=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${td} for ${e}`),createCaptionsTrackIfNotExists(rd,this.vhs_.tech_,e),removeCuesFromTrack(t,td,rd[e]),addCaptionData({captionArray:nd,inbandTextTracks:rd,timestampOffset:$})}),this.transmuxer_&&this.transmuxer_.postMessage({action:`clearParsedMp4Captions`})}handleId3_(e,t,$){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,$));return}this.addMetadataToTextTrack($,t,this.duration_())}}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){let e=this.callQueue_;
270this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){let e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if(this.loaderType_!==`audio`)return!0;let e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;let e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;let{hasAudio:$,hasVideo:ed,isMuxed:td}=t;return!(ed&&!e.videoTimingInfo||$&&!this.audioDisabled_&&!td&&!e.audioTimingInfo||shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){checkAndFixTimelines(this),this.callQueue_.push(this.handleData_.bind(this,e,t));return}let $=this.pendingSegment_;if(this.setTimeMapping_($.timeline),this.updateMediaSecondsLoaded_($.part||$.segment),this.mediaSource_.readyState!==`closed`){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),$.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),$.isFmp4=e.isFmp4,$.timingInfo=$.timingInfo||{},$.isFmp4)this.trigger(`fmp4`),$.timingInfo.start=$[timingInfoPropertyForMedia(t.type)].start;else{let e=this.getCurrentMediaInfo_(),t=this.loaderType_===`main`&&e&&e.hasVideo,ed;t&&(ed=$.videoTimingInfo.start),$.timingInfo.start=this.trueSegmentStart_({currentStart:$.timingInfo.start,playlist:$.playlist,mediaIndex:$.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:ed,videoTimingInfo:$.videoTimingInfo,audioTimingInfo:$.audioTimingInfo})}if(this.updateAppendInitSegmentStatus($,t.type),this.updateSourceBufferTimestampOffset_($),$.isSyncRequest){this.updateTimingInfoEnd_($),this.syncController_.saveSegmentTimingInfo({segmentInfo:$,shouldSaveTimelineMapping:this.loaderType_===`main`});let e=this.chooseNextRequest_();if(e.mediaIndex!==$.mediaIndex||e.partIndex!==$.partIndex){this.logger_(`sync segment was incorrect, not appending`);return}this.logger_(`sync segment was correct, appending`)}$.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_($,t)}}updateAppendInitSegmentStatus(e,t){this.loaderType_===`main`&&typeof e.timestampOffset==`number`&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:$,playlist:ed}){if($){let e=initSegmentId($);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap($,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=ed,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:$},ed){let td=this.sourceUpdater_.audioBuffered(),nd=this.sourceUpdater_.videoBuffered();td.length>1&&this.logger_(`On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: `+timeRangesToArray(td).join(`, `)),nd.length>1&&this.logger_(`On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: `+timeRangesToArray(nd).join(`, `));let rd=td.length?td.start(0):0,id=td.length?td.end(td.length-1):0,ad=nd.length?nd.start(0):0,od=nd.length?nd.end(nd.length-1):0;if(id-rd<=MIN_BACK_BUFFER&&od-ad<=MIN_BACK_BUFFER){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${$.byteLength}, audio buffer: ${timeRangesToArray(td).join(`, `)}, video buffer: ${timeRangesToArray(nd).join(`, `)}, `),this.error({message:`Quota exceeded error with append of a single segment of content`,excludeUntil:1/0}),this.trigger(`error`);return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:$}));let sd=this.currentTime_()-MIN_BACK_BUFFER;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${sd}`),this.remove(0,sd,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${MIN_BACK_BUFFER}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=import_window.default.setTimeout(()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, re-processing call queue`),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},MIN_BACK_BUFFER*1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:$},ed){if(ed){if(ed.code===QUOTA_EXCEEDED_ERR){this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:$});return}this.logger_(`Received non QUOTA_EXCEEDED_ERR on append`,ed),this.error({message:`${t} append of ${$.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:videojs.Error.StreamingFailedToAppendSegment}}),this.trigger(`appenderror`)}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:$,data:ed,bytes:td}){if(!td){let e=[ed],t=ed.byteLength;$&&(e.unshift($),t+=$.byteLength),td=concatSegments({bytes:t,segments:e})}let nd={segmentInfo:segmentInfoPayload({type:this.loaderType_,segment:e})};this.trigger({type:`segmentappendstart`,metadata:nd}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:td},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:td}))}handleSegmentTimingInfo_(e,t,$){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;let ed=this.pendingSegment_.segment,td=`${e}TimingInfo`;ed[td]||(ed[td]={}),ed[td].transmuxerPrependedSeconds=$.prependedContentDuration||0,ed[td].transmuxedPresentationStart=$.start.presentation,ed[td].transmuxedDecodeStart=$.start.decode,ed[td].transmuxedPresentationEnd=$.end.presentation,ed[td].transmuxedDecodeEnd=$.end.decode,ed[td].baseMediaDecodeTime=$.baseMediaDecodeTime}appendData_(e,t){let{type:$,data:ed}=t;if(!ed||!ed.byteLength||$===`audio`&&this.audioDisabled_)return;let td=this.getInitSegmentAndUpdateState_({type:$,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:$,initSegment:td,data:ed})}loadSegment_(e){if(this.state=`WAITING`,this.pendingSegment_=e,this.trimBackBuffer_(e),typeof e.timestampOffset==`number`&&this.transmuxer_&&this.transmuxer_.postMessage({action:`clearAllMp4Captions`}),!this.hasEnoughInfoToLoad_()){checkAndFixTimelines(this),this.loadQueue_.push(()=>{let t=_extends$2({},e,{forceTimestampOffset:!0});_extends$2(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:`reset`}),this.transmuxer_.postMessage({action:`setTimestampOffset`,timestampOffset:e.timestampOffset}));
270let t=this.createSimplifiedSegmentObj_(e),$=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),ed=this.mediaIndex!==null,td=e.timeline!==this.currentTimeline_&&e.timeline>0,nd=$||ed&&td;this.logger_(`Requesting 271${compactSegmentUrlDescription(e.uri)} 272${segmentInfoString(e)}`),t.map&&!t.map.bytes&&(this.logger_(`going to request init segment.`),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=mediaSegmentRequest({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,`video`,e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,`audio`,e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:nd,endedTimelineFn:()=>{this.logger_(`received endedtimeline callback`)},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:$,stream:ed})=>{this.logger_(`${segmentInfoString(e)} logged from transmuxer stream ${ed} as a ${$}: ${t}`)},triggerSegmentEventFn:({type:e,segment:t,keyInfo:$,trackInfo:ed,timingInfo:td})=>{let nd={segmentInfo:segmentInfoPayload({segment:t})};$&&(nd.keyInfo=$),ed&&(nd.trackInfo=ed),td&&(nd.timingInfo=td),this.trigger({type:e,metadata:nd})}})}trimBackBuffer_(e){let t=safeBackBufferTrimTime(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){let t=e.segment,$=e.part,ed=e.segment.key||e.segment.map&&e.segment.map.key,td=e.segment.map&&!e.segment.map.bytes,nd={resolvedUri:$?$.resolvedUri:t.resolvedUri,byterange:$?$.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:ed,isMediaInitialization:td},rd=e.playlist.segments[e.mediaIndex-1];if(rd&&rd.timeline===t.timeline&&(rd.videoTimingInfo?nd.baseStartTime=rd.videoTimingInfo.transmuxedDecodeEnd:rd.audioTimingInfo&&(nd.baseStartTime=rd.audioTimingInfo.transmuxedDecodeEnd)),t.key){let $=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);nd.key=this.segmentKey(t.key),nd.key.iv=$}return t.map&&(nd.map=this.initSegmentForMap(t.map)),nd}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<MIN_SEGMENT_DURATION_TO_SAVE_STATS){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${MIN_SEGMENT_DURATION_TO_SAVE_STATS}`);return}let $={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:`bandwidthupdated`,metadata:$}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger(`bandwidthupdate`),this.trigger(`timeout`)}segmentRequestFinished_(e,t,$){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,$));return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state=`READY`,e.code===REQUEST_ERRORS.ABORTED)return;if(this.pause(),e.code===REQUEST_ERRORS.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger(`error`);return}let ed=this.pendingSegment_;this.saveBandwidthRelatedStats_(ed.duration,t.stats),ed.endOfAllRequests=t.endOfAllRequests,$.gopInfo&&(this.gopBuffer_=updateGopBuffer(this.gopBuffer_,$.gopInfo,this.safeAppend_)),this.state=`APPENDING`,this.trigger(`appending`),this.waitForAppendsToComplete_(ed)}setTimeMapping_(e){let t=this.syncController_.mappingForTimeline(e);t!==null&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){typeof e.start==`number`&&typeof e.end==`number`?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_===`main`&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:$,firstVideoFrameTimeForData:ed,currentVideoTimestampOffset:td,useVideoTimingInfo:nd,videoTimingInfo:rd,audioTimingInfo:id}
272){if(e!==void 0)return e;if(!nd)return id.start;let ad=t.segments[$-1];return $===0||!ad||ad.start===void 0||ad.end!==ed+td?ed:rd.start}waitForAppendsToComplete_(e){let t=this.getCurrentMediaInfo_(e);if(!t){this.error({message:`No starting media returned, likely due to an unsupported media format.`,playlistExclusionDuration:1/0}),this.trigger(`error`);return}let{hasAudio:$,hasVideo:ed,isMuxed:td}=t,nd=this.loaderType_===`main`&&ed,rd=!this.audioDisabled_&&$&&!td;if(e.waitingOnAppends=0,!e.hasAppendedData_){!e.timingInfo&&typeof e.timestampOffset==`number`&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}nd&&e.waitingOnAppends++,rd&&e.waitingOnAppends++,nd&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),rd&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){let t=illegalMediaSwitch(this.loaderType_,this.getCurrentMediaInfo_(),e);return t?(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger(`error`),!0):!1}updateSourceBufferTimestampOffset_(e){if(e.timestampOffset===null||typeof e.timingInfo.start!=`number`||e.changedTimestampOffset||this.loaderType_!==`main`)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger(`timestampoffset`)}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:$}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart==`number`?e.transmuxedDecodeStart:t&&typeof t.transmuxedDecodeStart==`number`?t.transmuxedDecodeStart:$.start:$.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};let t=this.getMediaInfo_(),$=this.loaderType_===`main`&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;$&&(e.timingInfo.end=typeof $.end==`number`?$.end:$.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){let e={segmentInfo:segmentInfoPayload({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:`appendsdone`,metadata:e})}if(!this.pendingSegment_){this.state=`READY`,this.paused()||this.monitorBuffer_();return}let e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:this.loaderType_===`main`});let t=getTroublesomeSegmentDurationMessage(e,this.sourceType_);if(t&&(t.severity===`warn`?videojs.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state=`READY`,e.isSyncRequest&&(this.trigger(`syncinfoupdate`),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${segmentInfoString(e)}`);return}this.logger_(`Appended ${segmentInfoString(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),this.loaderType_===`main`&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:`audio`,from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger(`syncinfoupdate`);let $=e.segment,ed=e.part,td=$.end&&this.currentTime_()-$.end>e.playlist.targetDuration*3,nd=ed&&ed.end&&this.currentTime_()-ed.end>e.playlist.partTargetDuration*3;if(td||nd){this.logger_(`bad ${td?`segment`:`part`} ${segmentInfoString(e)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger(`bandwidthupdate`),this.trigger(`progress`),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
272(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger(`appended`),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<MIN_SEGMENT_DURATION_TO_SAVE_STATS){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${MIN_SEGMENT_DURATION_TO_SAVE_STATS}`);return}let t=this.throughput.rate,$=Date.now()-e.endOfAllRequests+1,ed=Math.floor(e.byteLength/$*8*1e3);this.throughput.rate+=(ed-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;let t=e.segment,$=t.start,ed=t.end;if(!finite($)||!finite(ed))return;removeCuesFromTrack($,ed,this.segmentMetadataTrack_);let td=import_window.default.WebKitDataCue||import_window.default.VTTCue,nd={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:$,end:ed},rd=new td($,ed,JSON.stringify(nd));rd.value=nd,this.segmentMetadataTrack_.addCue(rd)}},toTitleCase=function(e){return typeof e==`string`?e.replace(/./,e=>e.toUpperCase()):e},bufferTypes=[`video`,`audio`],updating=(e,t)=>{let $=t[`${e}Buffer`];return $&&$.updating||t.queuePending[e]},nextQueueIndexOfType=(e,t)=>{for(let $=0;$<t.length;$++){let ed=t[$];if(ed.type===`mediaSource`)return null;if(ed.type===e)return $}return null},shiftQueue=(e,t)=>{if(t.queue.length===0)return;let $=0,ed=t.queue[$];if(ed.type===`mediaSource`){!t.updating()&&t.mediaSource.readyState!==`closed`&&(t.queue.shift(),ed.action(t),ed.doneFn&&ed.doneFn(),shiftQueue(`audio`,t),shiftQueue(`video`,t));return}if(e!==`mediaSource`&&!(!t.ready()||t.mediaSource.readyState===`closed`||updating(e,t))){if(ed.type!==e){if($=nextQueueIndexOfType(e,t.queue),$===null)return;ed=t.queue[$]}if(t.queue.splice($,1),t.queuePending[e]=ed,ed.action(e,t),!ed.doneFn){t.queuePending[e]=null,shiftQueue(e,t);return}}},cleanupBuffer=(e,t)=>{let $=t[`${e}Buffer`],ed=toTitleCase(e);$&&($.removeEventListener(`updateend`,t[`on${ed}UpdateEnd_`]),$.removeEventListener(`error`,t[`on${ed}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},inSourceBuffers=(e,t)=>e&&t&&Array.prototype.indexOf.call(e.sourceBuffers,t)!==-1,actions={appendBuffer:(e,t,$)=>(ed,td)=>{let nd=td[`${ed}Buffer`];if(inSourceBuffers(td.mediaSource,nd)){td.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${ed}Buffer`);try{nd.appendBuffer(e)}catch(e){td.logger_(`Error with code ${e.code} `+(e.code===QUOTA_EXCEEDED_ERR?`(QUOTA_EXCEEDED_ERR) `:``)+`when appending segment ${t.mediaIndex} to ${ed}Buffer`),td.queuePending[ed]=null,$(e)}}},remove:(e,t)=>($,ed)=>{let td=ed[`${$}Buffer`];if(inSourceBuffers(ed.mediaSource,td)){ed.logger_(`Removing ${e} to ${t} from ${$}Buffer`);try{td.remove(e,t)}catch{ed.logger_(`Remove ${e} to ${t} from ${$}Buffer failed`)}}},timestampOffset:e=>(t,$)=>{let ed=$[`${t}Buffer`];inSourceBuffers($.mediaSource,ed)&&($.logger_(`Setting ${t}timestampOffset to ${e}`),ed.timestampOffset=e)},callback:e=>(t,$)=>{e()},endOfStream:e=>t=>{if(t.mediaSource.readyState===`open`){t.logger_(`Calling mediaSource endOfStream(${e||``})`);try{t.mediaSource.endOfStream(e)}catch(e){videojs.log.warn(`Failed to call media source endOfStream`,e)}}},duration:e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){videojs.log.warn(`Failed to set media source duration`,e)}},abort:()=>(e,t)=>{if(t.mediaSource.readyState!==`open`)return;let $=t[`${e}Buffer`];if(inSourceBuffers(t.mediaSource,$)){t.logger_(`calling abort on ${e}Buffer`);try{$.abort()}catch(t){videojs.log.warn(`Failed to abort on ${e}Buffer`,t)}}},addSourceBuffer:(e,t)=>$=>{let ed=toTitleCase(e),td=getMimeForCodec(t);$.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);let nd=$.mediaSource.addSourceBuffer(td);nd.addEventListener(`updateend`,$[`on${ed}UpdateEnd_`]),nd.addEventListener(`error`,$[`on${ed}Error_`]),$.codecs[e]=t,$[`${e}Buffer`]=nd},removeSourceBuffer:e=>t=>{let $=t[`${e}Buffer`];if(cleanupBuffer(e,t),inSourceBuffers(t.mediaSource,$)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer($)}catch(t){videojs.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},changeType:e=>(t,$)=>{let ed=$[`${t}Buffer`],td=getMimeForCodec(e);if(!inSourceBuffers($.mediaSource,ed))return;let nd=e.substring(0,e.indexOf(`.`)),rd=$.codecs[t];if(rd.substring(0,rd.indexOf(`.`))===nd)return;let id={codecsChangeInfo:{from:rd,to:e}};$.trigger({type:`codecschange`,metadata:id}),$.logger_(`changing ${t}Buffer codec from ${rd} to ${e}`);try{ed.changeType(td),$.codecs[t]=e}catch(e){id.errorType=videojs.Error.StreamingCodecsChangeError,id.error=e,e.metadata=id,$.error_=e,$.trigger(`error`),videojs.log.warn(`Failed to changeType on ${t}Buffer`,e)}}},pushQueue=({type:e,sourceUpdater:t,action:$,doneFn:ed,name:td})=>{t.queue.push({type:e,action:$,doneFn:ed,name:td}),shiftQueue(e,t)}
272,onUpdateend=(e,t)=>$=>{let ed=bufferedRangesToString(t[`${e}Buffered`]());if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,ed),t.queuePending[e]){let $=t.queuePending[e].doneFn;t.queuePending[e]=null,$&&$(t[`${e}Error_`])}shiftQueue(e,t)},SourceUpdater=class extends videojs.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>shiftQueue(`mediaSource`,this),this.mediaSource.addEventListener(`sourceopen`,this.sourceopenListener_),this.logger_=logger(`SourceUpdater`),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=onUpdateend(`video`,this),this.onAudioUpdateEnd_=onUpdateend(`audio`,this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger(`createdsourcebuffers`),this.triggerReady())}
272triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger(`ready`))}addSourceBuffer(e,t){pushQueue({type:`mediaSource`,sourceUpdater:this,action:actions.addSourceBuffer(e,t),name:`addSourceBuffer`})}abort(e){pushQueue({type:e,sourceUpdater:this,action:actions.abort(e),name:`abort`})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){videojs.log.error(`removeSourceBuffer is not supported!`);return}pushQueue({type:`mediaSource`,sourceUpdater:this,action:actions.removeSourceBuffer(e),name:`removeSourceBuffer`})}canRemoveSourceBuffer(){return!videojs.browser.IS_FIREFOX&&import_window.default.MediaSource&&import_window.default.MediaSource.prototype&&typeof import_window.default.MediaSource.prototype.removeSourceBuffer==`function`}static canChangeType(){return import_window.default.SourceBuffer&&import_window.default.SourceBuffer.prototype&&typeof import_window.default.SourceBuffer.prototype.changeType==`function`}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){if(!this.canChangeType()){videojs.log.error(`changeType is not supported!`);return}pushQueue({type:e,sourceUpdater:this,action:actions.changeType(t),name:`changeType`})}addOrChangeSourceBuffers(e){if(!e||typeof e!=`object`||Object.keys(e).length===0)throw Error(`Cannot addOrChangeSourceBuffers to undefined codecs`);Object.keys(e).forEach(t=>{let $=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,$);this.canChangeType()&&this.changeType(t,$)})}appendBuffer(e,t){let{segmentInfo:$,type:ed,bytes:td}=e;if(this.processedAppend_=!0,ed===`audio`&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,t]),this.logger_(`delayed audio append of ${td.length} until video append`);return}let nd=t;if(pushQueue({type:ed,sourceUpdater:this,action:actions.appendBuffer(td,$||{mediaIndex:-1},nd),doneFn:t,name:`appendBuffer`}),ed===`video`){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;let e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return inSourceBuffers(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:createTimeRanges()}videoBuffered(){return inSourceBuffers(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:createTimeRanges()}buffered(){let e=inSourceBuffers(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=inSourceBuffers(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():bufferIntersection(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=noop){pushQueue({type:`mediaSource`,sourceUpdater:this,action:actions.duration(e),name:`duration`,doneFn:t})}endOfStream(e=null,t=noop){typeof e!=`string`&&(e=void 0),pushQueue({type:`mediaSource`,sourceUpdater:this,action:actions.endOfStream(e),name:`endOfStream`,doneFn:t})}removeAudio(e,t,$=noop){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){$();return}pushQueue({type:`audio`,sourceUpdater:this,action:actions.remove(e,t),doneFn:$,name:`remove`})}removeVideo(e,t,$=noop){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){$();return}pushQueue({type:`video`,sourceUpdater:this,action:actions.remove(e,t),doneFn:$,name:`remove`})}updating(){return!!(updating(`audio`,this)||updating(`video`,this))}audioTimestampOffset(e){return e!==void 0&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(pushQueue({type:`audio`,sourceUpdater:this,action:actions.timestampOffset(e),name:`timestampOffset`}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return e!==void 0&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(pushQueue({type:`video`,sourceUpdater:this,action:actions.timestampOffset(e),name:`timestampOffset`}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&pushQueue({type:`audio`,sourceUpdater:this,action:actions.callback(e),name:`callback`})}videoQueueCallback(e){this.videoBuffer&&pushQueue({type:`video`,sourceUpdater:this,action:actions.callback(e),name:`callback`})}
272dispose(){this.trigger(`dispose`),bufferTypes.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>cleanupBuffer(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener(`sourceopen`,this.sourceopenListener_),this.off()}},uint8ToUtf8=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),bufferToHexString=e=>{let t=new Uint8Array(e);return Array.from(t).map(e=>e.toString(16).padStart(2,`0`)).join(``)},VTT_LINE_TERMINATORS=new Uint8Array(` 273 274`.split(``).map(e=>e.charCodeAt(0))),NoVttJsError=class extends Error{constructor(){super(`Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.`)}},VTTSegmentLoader=class extends SegmentLoader{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return createTimeRanges();let e=this.subtitlesTrack_.cues,t=e[0].startTime,$=e[e.length-1].startTime;return createTimeRanges([[t,$]])}initSegmentForMap(e,t=!1){if(!e)return null;let $=initSegmentId(e),ed=this.initSegments_[$];if(t&&!ed&&e.bytes){let t=VTT_LINE_TERMINATORS.byteLength+e.bytes.byteLength,td=new Uint8Array(t);td.set(e.bytes),td.set(VTT_LINE_TERMINATORS,e.bytes.byteLength),this.initSegments_[$]=ed={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:td}}return ed||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state=`READY`,this.resetEverything(),this.monitorBuffer_()}track(e){return e===void 0?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state===`INIT`&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,t){removeCuesFromTrack(e,t,this.subtitlesTrack_)}fillBuffer_(){let e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){this.syncController_.one(`timestampoffset`,()=>{this.state=`READY`,this.paused()||this.monitorBuffer_()}),this.state=`WAITING_ON_TIMELINE`;return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state=`READY`,this.pause(),this.trigger(`error`)}segmentRequestFinished_(e,t,$){if(!this.subtitlesTrack_){this.state=`READY`;return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state=`READY`,this.mediaRequestsAborted+=1;return}if(e){e.code===REQUEST_ERRORS.TIMEOUT&&this.handleTimeout_(),e.code===REQUEST_ERRORS.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}let ed=this.pendingSegment_,td=$.mp4VttCues&&$.mp4VttCues.length;td&&(ed.mp4VttCues=$.mp4VttCues),this.saveBandwidthRelatedStats_(ed.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state=`APPENDING`,this.trigger(`appending`);let nd=ed.segment;if(nd.map&&(nd.map.bytes=t.map.bytes),ed.bytes=t.bytes,typeof import_window.default.WebVTT!=`function`&&typeof this.loadVttJs==`function`){this.state=`WAITING_ON_VTTJS`,this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,$),()=>this.stopForError({message:`Error loading vtt.js`}));return}nd.requested=!0;try{this.parseVTTCues_(ed)}catch(e){this.stopForError({message:e.message,metadata:{errorType:videojs.Error.StreamingVttParserError,error:e}});return}if(td||this.updateTimeMapping_(ed,this.syncController_.timelines[ed.timeline],this.playlist_),ed.cues.length?ed.timingInfo={start:ed.cues[0].startTime,end:ed.cues[ed.cues.length-1].endTime}:ed.timingInfo={start:ed.startOfSegment,end:ed.startOfSegment+ed.duration},ed.isSyncRequest){this.trigger(`syncinfoupdate`),this.pendingSegment_=null,this.state=`READY`;return}ed.byteLength=ed.bytes.byteLength,this.mediaSecondsLoaded+=nd.duration,ed.cues.forEac
274h(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new import_window.default.VTTCue(e.startTime,e.endTime,e.text):e)}),removeDuplicateCuesFromTrack(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){let $=e&&e.type===`vtt`,ed=t&&t.type===`text`;$&&ed&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){let t=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach($=>{let ed=$.start+t,td=$.end+t,nd=new import_window.default.VTTCue(ed,td,$.cueText);$.settings&&$.settings.split(` `).forEach(e=>{let t=e.split(`:`),$=t[0],ed=t[1];nd[$]=isNaN(ed)?ed:Number(ed)}),e.cues.push(nd)})}parseVTTCues_(e){let t,$=!1;if(typeof import_window.default.WebVTT!=`function`)throw new NoVttJsError;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues){this.parseMp4VttCues_(e);return}typeof import_window.default.TextDecoder==`function`?t=new import_window.default.TextDecoder(`utf8`):(t=import_window.default.WebVTT.StringDecoder(),$=!0);let ed=new import_window.default.WebVTT.Parser(import_window.default,import_window.default.vttjs,t);if(ed.oncue=e.cues.push.bind(e.cues),ed.ontimestampmap=t=>{e.timestampmap=t},ed.onparsingerror=e=>{videojs.log.warn(`Error encountered when parsing cues: `+e.message)},e.segment.map){let t=e.segment.map.bytes;$&&(t=uint8ToUtf8(t)),ed.parse(t)}let td=e.bytes;$&&(td=uint8ToUtf8(td)),ed.parse(td),ed.flush()}updateTimeMapping_(e,t,$){let ed=e.segment;if(!t)return;if(!e.cues.length){ed.empty=!0;return}let{MPEGTS:td,LOCAL:nd}=e.timestampmap,rd=td/import_clock.ONE_SECOND_IN_TS-nd+t.mapping;if(e.cues.forEach(e=>{let $=e.endTime-e.startTime,ed=this.handleRollover_(e.startTime+rd,t.time);e.startTime=Math.max(ed,0),e.endTime=Math.max(ed+$,0)}),!$.syncInfo){let t=e.cues[0].startTime,td=e.cues[e.cues.length-1].startTime;$.syncInfo={mediaSequence:$.mediaSequence+e.mediaIndex,time:Math.min(t,td-ed.duration)}}}handleRollover_(e,t){if(t===null)return e;let $=e*import_clock.ONE_SECOND_IN_TS,ed=t*import_clock.ONE_SECOND_IN_TS,td;for(td=ed<$?-8589934592:8589934592;Math.abs($-ed)>4294967296;)$+=td;return $/import_clock.ONE_SECOND_IN_TS}},findAdCue=function(e,t){let $=e.cues;for(let e=0;e<$.length;e++){let ed=$[e];if(t>=ed.adStartTime&&t<=ed.adEndTime)return ed}return null},updateAdCues=function(e,t,$=0){if(!e.segments)return;let ed=$,td;for(let $=0;$<e.segments.length;$++){let nd=e.segments[$];if(td||=findAdCue(t,ed+nd.duration/2),td){if(`cueIn`in nd){td.endTime=ed,td.adEndTime=ed,ed+=nd.duration,td=null;continue}if(ed<td.endTime){ed+=nd.duration;continue}td.endTime+=nd.duration}else if(`cueOut`in nd&&(td=new import_window.default.VTTCue(ed,ed+nd.duration,nd.cueOut),td.adStartTime=ed,td.adEndTime=ed+parseFloat(nd.cueOut),t.addCue(td)),`cueOutCont`in nd){let[e,$]=nd.cueOutCont.split(`/`).map(parseFloat);td=new import_window.default.VTTCue(ed,ed+nd.duration,``),td.adStartTime=ed-e,td.adEndTime=td.adStartTime+$,t.addCue(td)}ed+=nd.duration}},SyncInfo=class{constructor({start:e,end:t,segmentIndex:$,partIndex:ed=null,appended:td=!1}){this.start_=e,this.end_=t,this.segmentIndex_=$,this.partIndex_=ed,this.appended_=td}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}},SyncInfoData=class{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}},MediaSequenceSync=class{constructor(){this.storage_=new Map,this.diagnostics_=``,this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}
274resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){let{mediaSequence:$,segments:ed}=e;if(this.isReliable_=this.isReliablePlaylist_($,ed),this.isReliable_)return this.updateStorage_(ed,$,this.calculateBaseTime_($,ed,t))}getSyncInfoForTime(e){for(let{segmentSyncInfo:t,partsSyncInfo:$}of this.storage_.values())if($.length){for(let t of $)if(t.isInRange(e))return t}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,$){let ed=new Map,td=` 275`,nd=$,rd=t;this.start_=nd,e.forEach((e,t)=>{let $=this.storage_.get(rd),id=nd,ad=id+e.duration,od=!!($&&$.segmentSyncInfo&&$.segmentSyncInfo.isAppended),sd=new SyncInfo({start:id,end:ad,appended:od,segmentIndex:t});e.syncInfo=sd;let cd=nd,ld=(e.parts||[]).map((e,ed)=>{let nd=cd,id=cd+e.duration,ad=!!($&&$.partsSyncInfo&&$.partsSyncInfo[ed]&&$.partsSyncInfo[ed].isAppended),od=new SyncInfo({start:nd,end:id,appended:ad,segmentIndex:t,partIndex:ed});return cd=id,td+=`Media Sequence: ${rd}.${ed} | Range: ${nd} --> ${id} | Appended: ${ad}\n`,e.syncInfo=od,od});ed.set(rd,new SyncInfoData(sd,ld)),td+=`${compactSegmentUrlDescription(e.resolvedUri)} | Media Sequence: ${rd} | Range: ${id} --> ${ad} | Appended: ${od}\n`,rd++,nd=ad}),this.end_=nd,this.storage_=ed,this.diagnostics_=td}calculateBaseTime_(e,t,$){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;let ed=Math.min(...this.storage_.keys());if(e<ed){let $=ed-e,td=this.storage_.get(ed).segmentSyncInfo.start;for(let e=0;e<$;e++){let $=t[e];td-=$.duration}return td}return $}isReliablePlaylist_(e,t){return e!=null&&Array.isArray(t)&&t.length}},DependantMediaSequenceSync=class extends MediaSequenceSync{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,$){if(!this.storage_.size){let t=this.parent_.getSyncInfoForMediaSequence(e);return t?t.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,$)}},MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC=86400,syncPointStrategies=[{name:`VOD`,run:(e,t,$,ed,td)=>$===1/0?null:{time:0,segmentIndex:0,partIndex:null}},{name:`MediaSequence`,run:(e,t,$,ed,td,nd)=>{let rd=e.getMediaSequenceSync(nd);if(!rd||!rd.isReliable)return null;let id=rd.getSyncInfoForTime(td);return id?{time:id.start,partIndex:id.partIndex,segmentIndex:id.segmentIndex}:null}},{name:`ProgramDateTime`,run:(e,t,$,ed,td)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let nd=null,rd=null,id=getPartsAndSegments(t);td||=0;for(let $=0;$<id.length;$++){let ed=id[t.endList||td===0?$:id.length-($+1)],ad=ed.segment,od=e.timelineToDatetimeMappings[ad.timeline];if(!od||!ad.dateTimeObject)continue;let sd=ad.dateTimeObject.getTime()/1e3+od;if(ad.parts&&typeof ed.partIndex==`number`)for(let e=0;e<ed.partIndex;e++)sd+=ad.parts[e].duration;let cd=Math.abs(td-sd);if(rd!==null&&(cd===0||rd<cd))break;rd=cd,nd={time:sd,segmentIndex:ed.segmentIndex,partIndex:ed.partIndex}}return nd}},{name:`Segment`,run:(e,t,$,ed,td)=>{let nd=null,rd=null;td||=0;let id=getPartsAndSegments(t);for(let e=0;e<id.length;e++){let $=id[t.endList||td===0?e:id.length-(e+1)],ad=$.segment,od=$.part&&$.part.start||ad&&ad.start;if(ad.timeline===ed&&od!==void 0){let e=Math.abs(td-od);if(rd!==null&&rd<e)break;(!nd||rd===null||rd>=e)&&(rd=e,nd={time:od,segmentIndex:$.segmentIndex,partIndex:$.partIndex})}}return nd}},{name:`Discontinuity`,run:(e,t,$,ed,td)=>{let nd=null;if(td||=0,t.discontinuityStarts&&t.discontinuityStarts.length){let $=null;for(let ed=0;ed<t.discontinuityStarts.length;ed++){let rd=t.discontinuityStarts[ed],id=t.discontinuitySequence+ed+1,ad=e.discontinuities[id];if(ad){let e=Math.abs(td-ad.time);if($!==null&&$<e)break;(!nd||$===null||$>=e)&&($=e,nd={time:ad.time,segmentIndex:rd,partIndex:null})}}}return nd}},{name:`Playlist`,run:(e,t,$,ed,td)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}],SyncController=class extends videojs.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};let t=new MediaSequenceSync;this.mediaSequenceStorage_={main:t,audio:new DependantMediaSequenceSync(t),vtt:new DependantMediaSequenceSync(t)},this.logger_=logger(`SyncController`)}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,$,ed,td){if(t!==1/0)return syncPointStrategies.find(({name:e})=>e===`VOD`).run(this,e,t);let nd=this.runStrategies_(e,t,$,ed,td);if(!nd.length)return null;for(let t of nd){let{syncPoint:$,strategy:td}=t,{segmentIndex:nd,time:rd}=$;if(nd<0)continue;let id=e.segments[nd],ad=rd,od=ad+id.duration;if(this.logger_(`Strategy: ${td}. Current time: ${ed}. selected segment: ${nd}. Time: [${ad} -> ${od}]}`),ed>=ad&&ed<od)return this.logger_(`Found sync point with exact match: `,$),$}return this.selectSyncPoint_(nd,{key:`time`,value:ed})}getExpiredTime(e,t){if(!e||!e.segments)return null;let $=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!$.length)return null;let ed=this.selectSyncPoint_($,{key:`segmentIndex`,value:0});return ed.segmentIndex>0&&(ed.time*=-1),Math.abs(ed.time+sumDurations({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:ed.segmentIndex,endIndex:0}))}runStrategies_(e,t,$,ed,td){let nd=[];for(let rd=0;rd<syncPointStrategies.length;rd++){let id=syncPointStrategies[rd],ad=id.run(this,e,t,$,ed,td);ad&&(ad.strategy=id.name,nd.push({strategy:id.name,syncPoint:ad}))}return nd}selectSyncPoint_(e,t){let $=e[0].syncPoint,ed=Math.abs(e[0].syncPoint[t.key]-t.value),td=e[0].strategy;for(let nd=1;
275nd<e.length;nd++){let rd=Math.abs(e[nd].syncPoint[t.key]-t.value);rd<ed&&(ed=rd,$=e[nd].syncPoint,td=e[nd].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${td}]: [time:${$.time}, segmentIndex:${$.segmentIndex}`+(typeof $.partIndex==`number`?`,partIndex:${$.partIndex}`:``)+`]`),$}saveExpiredSegmentInfo(e,t){let $=t.mediaSequence-e.mediaSequence;if($>MAX_MEDIA_SEQUENCE_DIFF_FOR_SYNC){videojs.log.warn(`Not saving expired segment info. Media sequence gap ${$} is too large.`);return}for(let ed=$-1;ed>=0;ed--){let $=e.segments[ed];if($&&$.start!==void 0){t.syncInfo={mediaSequence:e.mediaSequence+ed,time:$.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger(`syncinfoupdate`);break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){let t=e.segments[0],$=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-$}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){let $=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),ed=e.segment;$&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:ed.start}));let td=ed.dateTimeObject;ed.discontinuity&&t&&td&&(this.timelineToDatetimeMappings[ed.timeline]=-(td.getTime()/1e3))}timestampOffsetForTimeline(e){return this.timelines[e]===void 0?null:this.timelines[e].time}mappingForTimeline(e){return this.timelines[e]===void 0?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,$){let ed=e.segment,td=e.part,nd=this.timelines[e.timeline],rd,id;if(typeof e.timestampOffset==`number`)nd={time:e.startOfSegment,mapping:e.startOfSegment-t.start},$&&(this.timelines[e.timeline]=nd,this.trigger(`timestampoffset`),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${nd.time}] [mapping: ${nd.mapping}]`)),rd=e.startOfSegment,id=t.end+nd.mapping;else if(nd)rd=t.start+nd.mapping,id=t.end+nd.mapping;else return!1;return td&&(td.start=rd,td.end=id),(!ed.start||rd<ed.start)&&(ed.start=rd),ed.end=id,!0}saveDiscontinuitySyncInfo_(e){let t=e.playlist,$=e.segment;if($.discontinuity)this.discontinuities[$.timeline]={time:$.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let ed=0;ed<t.discontinuityStarts.length;ed++){let td=t.discontinuityStarts[ed],nd=t.discontinuitySequence+ed+1,rd=td-e.mediaIndex,id=Math.abs(rd);if(!this.discontinuities[nd]||this.discontinuities[nd].accuracy>id){let ed;ed=rd<0?$.start-sumDurations({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:td}):$.end+sumDurations({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:td}),this.discontinuities[nd]={time:ed,accuracy:id}}}}dispose(){this.trigger(`dispose`),this.off()}},TimelineChangeController=class extends videojs.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger(`pendingtimelinechange`)}pendingTimelineChange({type:e,from:t,to:$}){return typeof t==`number`&&typeof $==`number`&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:$},this.trigger(`pendingtimelinechange`)),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:$}){if(typeof t==`number`&&typeof $==`number`){this.lastTimelineChanges_[e]={type:e,from:t,to:$},delete this.pendingTimelineChanges_[e];let ed={timelineChangeInfo:{from:t,to:$}};this.trigger({type:`timelinechange`,metadata:ed})}return this.lastTimelineChanges_[e]}dispose(){this.trigger(`dispose`),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}},Decrypter=factory(transform(getWorkerString(function(){var e=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var $=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice($,1),$>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(arguments.length===2)for(var $=t.length,ed=0;ed<$;++ed)t[ed].call(this,arguments[1]);
275else for(var td=Array.prototype.slice.call(arguments,1),nd=t.length,rd=0;rd<nd;++rd)t[rd].apply(this,td)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on(`data`,function(t){e.push(t)})},e}();function t(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}let $=function(){let e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],$=e[1],ed=t[4],td=$[4],nd,rd,id,ad=[],od=[],sd,cd,ld,ud,dd,fd;for(nd=0;nd<256;nd++)od[(ad[nd]=nd<<1^(nd>>7)*283)^nd]=nd;for(rd=id=0;!ed[rd];rd^=sd||1,id=od[id]||1)for(ud=id^id<<1^id<<2^id<<3^id<<4,ud=ud>>8^ud&255^99,ed[rd]=ud,td[ud]=rd,ld=ad[cd=ad[sd=ad[rd]]],fd=ld*16843009^cd*65537^sd*257^rd*16843008,dd=ad[ud]*257^ud*16843008,nd=0;nd<4;nd++)t[nd][rd]=dd=dd<<24^dd>>>8,$[nd][ud]=fd=fd<<24^fd>>>8;for(nd=0;nd<5;nd++)t[nd]=t[nd].slice(0),$[nd]=$[nd].slice(0);return e},ed=null;class td{constructor(e){ed||=$(),this._tables=[[ed[0][0].slice(),ed[0][1].slice(),ed[0][2].slice(),ed[0][3].slice(),ed[0][4].slice()],[ed[1][0].slice(),ed[1][1].slice(),ed[1][2].slice(),ed[1][3].slice(),ed[1][4].slice()]];let t,td,nd,rd=this._tables[0][4],id=this._tables[1],ad=e.length,od=1;if(ad!==4&&ad!==6&&ad!==8)throw Error(`Invalid aes key size`);let sd=e.slice(0),cd=[];for(this._key=[sd,cd],t=ad;t<4*ad+28;t++)nd=sd[t-1],(t%ad===0||ad===8&&t%ad===4)&&(nd=rd[nd>>>24]<<24^rd[nd>>16&255]<<16^rd[nd>>8&255]<<8^rd[nd&255],t%ad===0&&(nd=nd<<8^nd>>>24^od<<24,od=od<<1^(od>>7)*283)),sd[t]=sd[t-ad]^nd;for(td=0;t;td++,t--)nd=sd[td&3?t:t-4],t<=4||td<4?cd[td]=nd:cd[td]=id[0][rd[nd>>>24]]^id[1][rd[nd>>16&255]]^id[2][rd[nd>>8&255]]^id[3][rd[nd&255]]}decrypt(e,t,$,ed,td,nd){let rd=this._key[1],id=e^rd[0],ad=ed^rd[1],od=$^rd[2],sd=t^rd[3],cd,ld,ud,dd=rd.length/4-2,fd,pd=4,md=this._tables[1],hd=md[0],gd=md[1],_d=md[2],vd=md[3],yd=md[4];for(fd=0;fd<dd;fd++)cd=hd[id>>>24]^gd[ad>>16&255]^_d[od>>8&255]^vd[sd&255]^rd[pd],ld=hd[ad>>>24]^gd[od>>16&255]^_d[sd>>8&255]^vd[id&255]^rd[pd+1],ud=hd[od>>>24]^gd[sd>>16&255]^_d[id>>8&255]^vd[ad&255]^rd[pd+2],sd=hd[sd>>>24]^gd[id>>16&255]^_d[ad>>8&255]^vd[od&255]^rd[pd+3],pd+=4,id=cd,ad=ld,od=ud;for(fd=0;fd<4;fd++)td[(3&-fd)+nd]=yd[id>>>24]<<24^yd[ad>>16&255]<<16^yd[od>>8&255]<<8^yd[sd&255]^rd[pd++],cd=id,id=ad,ad=od,od=sd,sd=cd}}class nd extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||=setTimeout(this.processJob_.bind(this),this.delay)}}let rd=function(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24},id=function(e,t,$){let ed=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),nd=new td(Array.prototype.slice.call(t)),id=new Uint8Array(e.byteLength),ad=new Int32Array(id.buffer),od,sd,cd,ld,ud,dd,fd,pd,md;for(od=$[0],sd=$[1],cd=$[2],ld=$[3],md=0;md<ed.length;md+=4)ud=rd(ed[md]),dd=rd(ed[md+1]),fd=rd(ed[md+2]),pd=rd(ed[md+3]),nd.decrypt(ud,dd,fd,pd,ad,md),ad[md]=rd(ad[md]^od),ad[md+1]=rd(ad[md+1]^sd),ad[md+2]=rd(ad[md+2]^cd),ad[md+3]=rd(ad[md+3]^ld),od=ud,sd=dd,cd=fd,ld=pd;return id};class ad{constructor(e,$,ed,td){let id=ad.STEP,od=new Int32Array(e.buffer),sd=new Uint8Array(e.byteLength),cd=0;for(this.asyncStream_=new nd,this.asyncStream_.push(this.decryptChunk_(od.subarray(cd,cd+id),$,ed,sd)),cd=id;cd<od.length;cd+=id)ed=new Uint32Array([rd(od[cd-4]),rd(od[cd-3]),rd(od[cd-2]),rd(od[cd-1])]),this.asyncStream_.push(this.decryptChunk_(od.subarray(cd,cd+id),$,ed,sd));this.asyncStream_.push(function(){td(null,t(sd))})}static get STEP(){return 32e3}decryptChunk_(e,t,$,ed){return function(){let td=id(e,t,$);ed.set(td,e.byteOffset)}}}var od=typeof globalThis<`u`?globalThis:typeof window<`u`?window:global===void 0?typeof self<`u`?self:{}:global,sd=typeof window<`u`?window:od===void 0?typeof self<`u`?self:{}:od,cd=function(e){return ArrayBuffer.isView===`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},ld=sd.BigInt||Number;ld(`0x1`),ld(`0x100`),ld(`0x10000`),ld(`0x1000000`),ld(`0x100000000`),ld(`0x10000000000`),ld(`0x1000000000000`),ld(`0x100000000000000`),ld(`0x10000000000000000`),(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return t[0]===255?`big`:t[0]===204?`little`:`unknown`})();let ud=function(e){let t={};return Object.keys(e).forEach($=>{let ed=e[$];cd(ed)?t[$]={bytes:ed.buffer,byteOffset:ed.byteOffset,byteLength:ed.byteLength}:t[$]=ed}),t};self.onmessage=function(e){let t=e.data;new ad(new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4),function(e,$){self.postMessage(ud({source:t.source,decrypted:$}),[$.buffer])})}}))),audioTrackKind_=e=>{let t=e.default?`main`:`alternative`;return e.characteristics&&e.characteristics.indexOf(`public.accessibility.describes-video`)>=0&&(t=`main-desc`),t},stopLoaders=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},startLoaders=(e,t)=>{t.activePlaylistLoader=e,e.load()},onGroupChanged=(e,t)=>()=>{let{segmentLoaders:{[e]:$,main:ed},mediaTypes:{[e]:td}}=t,nd=td.activeTrack(),rd=td.getActiveGroup(),id=td.activePlaylistLoader,ad=td.lastGroup_;if(!(rd&&ad&&rd.id===ad.id)&&(td.lastGroup_=rd,td.lastTrack_=nd,stopLoaders($,td),!(!rd||rd.isMainPlaylist))){if(!rd.playlistLoader){id&&ed.resetEverything();return}$.resyncLoader(),startLoaders(rd.playlistLoader,td)}},onGroupChanging=(e,t)=>
275()=>{let{segmentLoaders:{[e]:$},mediaTypes:{[e]:ed}}=t;ed.lastGroup_=null,$.abort(),$.pause()},onTrackChanged=(e,t)=>()=>{let{mainPlaylistLoader:$,segmentLoaders:{[e]:ed,main:td},mediaTypes:{[e]:nd}}=t,rd=nd.activeTrack(),id=nd.getActiveGroup(),ad=nd.activePlaylistLoader,od=nd.lastTrack_;if(!(od&&rd&&od.id===rd.id)&&(nd.lastGroup_=id,nd.lastTrack_=rd,stopLoaders(ed,nd),id)){if(id.isMainPlaylist){if(!rd||!od||rd.id===od.id)return;let e=t.vhs.playlistController_,ed=e.selectPlaylist();if(e.media()===ed)return;nd.logger_(`track change. Switching main audio from ${od.id} to ${rd.id}`),$.pause(),td.resetEverything(),e.fastQualityChange_(ed);return}if(e===`AUDIO`){if(!id.playlistLoader){td.setAudio(!0),td.resetEverything();return}ed.setAudio(!0),td.setAudio(!1)}if(ad===id.playlistLoader){startLoaders(id.playlistLoader,nd);return}ed.track&&ed.track(rd),ed.resetEverything(),startLoaders(id.playlistLoader,nd)}},onError={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:$},excludePlaylist:ed}=t,td=$.activeTrack(),nd=$.activeGroup(),rd=(nd.filter(e=>e.default)[0]||nd[0]).id,id=$.tracks[rd];if(td===id){ed({error:{message:`Problem encountered loading the default audio track.`}});return}videojs.log.warn(`Problem encountered loading the alternate audio track.Switching back to default.`);for(let e in $.tracks)$.tracks[e].enabled=$.tracks[e]===id;$.onTrackChanged()},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:$}}=t;videojs.log.warn(`Problem encountered loading the subtitle track.Disabling subtitle track.`);let ed=$.activeTrack();ed&&(ed.mode=`disabled`),$.onTrackChanged()}},setupListeners={AUDIO:(e,t,$)=>{if(!t)return;let{tech:ed,requestOptions:td,segmentLoaders:{[e]:nd}}=$;t.on(`loadedmetadata`,()=>{let e=t.media();nd.playlist(e,td),(!ed.paused()||e.endList&&ed.preload()!==`none`)&&nd.load()}),t.on(`loadedplaylist`,()=>{nd.playlist(t.media(),td),ed.paused()||nd.load()}),t.on(`error`,onError[e](e,$))},SUBTITLES:(e,t,$)=>{let{tech:ed,requestOptions:td,segmentLoaders:{[e]:nd},mediaTypes:{[e]:rd}}=$;t.on(`loadedmetadata`,()=>{let e=t.media();nd.playlist(e,td),nd.track(rd.activeTrack()),(!ed.paused()||e.endList&&ed.preload()!==`none`)&&nd.load()}),t.on(`loadedplaylist`,()=>{nd.playlist(t.media(),td),ed.paused()||nd.load()}),t.on(`error`,onError[e](e,$))}},initialize={AUDIO:(e,t)=>{let{vhs:$,sourceType:ed,segmentLoaders:{[e]:td},requestOptions:nd,main:{mediaGroups:rd},mediaTypes:{[e]:{groups:id,tracks:ad,logger_:od}},mainPlaylistLoader:sd}=t,cd=isAudioOnly(sd.main);(!rd[e]||Object.keys(rd[e]).length===0)&&(rd[e]={main:{default:{default:!0}}},cd&&(rd[e].main.default.playlists=sd.main.playlists));for(let td in rd[e]){id[td]||(id[td]=[]);for(let ld in rd[e][td]){let ud=rd[e][td][ld],dd;cd?(od(`AUDIO group '${td}' label '${ld}' is a main playlist`),ud.isMainPlaylist=!0,dd=null):dd=ed===`vhs-json`&&ud.playlists?new PlaylistLoader(ud.playlists[0],$,nd):ud.resolvedUri?new PlaylistLoader(ud.resolvedUri,$,nd):ud.playlists&&ed===`dash`?new DashPlaylistLoader(ud.playlists[0],$,nd,sd):null,ud=merge({id:ld,playlistLoader:dd},ud),setupListeners[e](e,ud.playlistLoader,t),id[td].push(ud),ad[ld]===void 0&&(ad[ld]=new videojs.AudioTrack({id:ld,kind:audioTrackKind_(ud),enabled:!1,language:ud.language,default:ud.default,label:ld}))}}td.on(`error`,onError[e](e,t))},SUBTITLES:(e,t)=>{let{tech:$,vhs:ed,sourceType:td,segmentLoaders:{[e]:nd},requestOptions:rd,main:{mediaGroups:id},mediaTypes:{[e]:{groups:ad,tracks:od}},mainPlaylistLoader:sd}=t;for(let nd in id[e]){ad[nd]||(ad[nd]=[]);for(let cd in id[e][nd]){if(!ed.options_.useForcedSubtitles&&id[e][nd][cd].forced)continue;let ld=id[e][nd][cd],ud;if(td===`hls`)ud=new PlaylistLoader(ld.resolvedUri,ed,rd);else if(td===`dash`){if(!ld.playlists.filter(e=>e.excludeUntil!==1/0).length)return;ud=new DashPlaylistLoader(ld.playlists[0],ed,rd,sd)}else td===`vhs-json`&&(ud=new PlaylistLoader(ld.playlists?ld.playlists[0]:ld.resolvedUri,ed,rd));ld=merge({id:cd,playlistLoader:ud},ld),setupListeners[e](e,ld.playlistLoader,t),ad[nd].push(ld),od[cd]===void 0&&(od[cd]=$.addRemoteTextTrack({id:cd,kind:`subtitles`,default:ld.default&&ld.autoselect,language:ld.language,label:cd},!1).track)}}nd.on(`error`,onError[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>
275{let{tech:$,main:{mediaGroups:ed},mediaTypes:{[e]:{groups:td,tracks:nd}}}=t;for(let t in ed[e]){td[t]||(td[t]=[]);for(let rd in ed[e][t]){let id=ed[e][t][rd];if(!/^(?:CC|SERVICE)/.test(id.instreamId))continue;let ad=$.options_.vhs&&$.options_.vhs.captionServices||{},od={label:rd,language:id.language,instreamId:id.instreamId,default:id.default&&id.autoselect};ad[od.instreamId]&&(od=merge(od,ad[od.instreamId])),od.default===void 0&&delete od.default,td[t].push(merge({id:rd},id)),nd[rd]===void 0&&(nd[rd]=$.addRemoteTextTrack({id:od.instreamId,kind:`captions`,default:od.default,language:od.language,label:od.label},!1).track)}}}},groupMatch=(e,t)=>{for(let $=0;$<e.length;$++)if(playlistMatch(t,e[$])||e[$].playlists&&groupMatch(e[$].playlists,t))return!0;return!1},activeGroup=(e,t)=>$=>{let{mainPlaylistLoader:ed,mediaTypes:{[e]:{groups:td}}}=t,nd=ed.media();if(!nd)return null;let rd=null;nd.attributes[e]&&(rd=td[nd.attributes[e]]);let id=Object.keys(td);if(!rd)if(e===`AUDIO`&&id.length>1&&isAudioOnly(t.main))for(let e=0;e<id.length;e++){let t=td[id[e]];if(groupMatch(t,nd)){rd=t;break}}else td.main?rd=td.main:id.length===1&&(rd=td[id[0]]);return $===void 0?rd:$===null||!rd?null:rd.filter(e=>e.id===$.id)[0]||null},activeTrack={AUDIO:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:$}}}=t;for(let e in $)if($[e].enabled)return $[e];return null},SUBTITLES:(e,t)=>()=>{let{mediaTypes:{[e]:{tracks:$}}}=t;for(let e in $)if($[e].mode===`showing`||$[e].mode===`hidden`)return $[e];return null}},getActiveGroup=(e,{mediaTypes:t})=>()=>{let $=t[e].activeTrack();return $?t[e].activeGroup($):null},setupMediaGroups=e=>{[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(t=>{initialize[t](t,e)});let{mediaTypes:t,mainPlaylistLoader:$,tech:ed,vhs:td,segmentLoaders:{AUDIO:nd,main:rd}}=e;[`AUDIO`,`SUBTITLES`].forEach($=>{t[$].activeGroup=activeGroup($,e),t[$].activeTrack=activeTrack[$]($,e),t[$].onGroupChanged=onGroupChanged($,e),t[$].onGroupChanging=onGroupChanging($,e),t[$].onTrackChanged=onTrackChanged($,e),t[$].getActiveGroup=getActiveGroup($,e)});let id=t.AUDIO.activeGroup();if(id){let e=(id.filter(e=>e.default)[0]||id[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(rd.setAudio(!1),nd.setAudio(!0)):rd.setAudio(!0)}$.on(`mediachange`,()=>{[`AUDIO`,`SUBTITLES`].forEach(e=>t[e].onGroupChanged())}),$.on(`mediachanging`,()=>{[`AUDIO`,`SUBTITLES`].forEach(e=>t[e].onGroupChanging())});let ad=()=>{t.AUDIO.onTrackChanged(),ed.trigger({type:`usage`,name:`vhs-audio-change`})};ed.audioTracks().addEventListener(`change`,ad),ed.remoteTextTracks().addEventListener(`change`,t.SUBTITLES.onTrackChanged),td.on(`dispose`,()=>{ed.audioTracks().removeEventListener(`change`,ad),ed.remoteTextTracks().removeEventListener(`change`,t.SUBTITLES.onTrackChanged)}),ed.clearTracks(`audio`);for(let e in t.AUDIO.tracks)ed.audioTracks().addTrack(t.AUDIO.tracks[e])},createMediaTypes=()=>{let e={};return[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:noop,activeTrack:noop,getActiveGroup:noop,onGroupChanged:noop,onTrackChanged:noop,lastTrack_:null,logger_:logger(`MediaGroups[${t}]`)}}),e},SteeringManifest=class{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=resolveUrl(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}},ContentSteeringController=class extends videojs.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new SteeringManifest,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=logger(`Content Steering`),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?`HLS`:`DASH`;let $=t.serverUri||t.serverURL;if(!$){this.logger_(`steering manifest URL is ${$}, cannot request steering manifest.`),this.trigger(`error`);return}if($.startsWith(`data:`)){this.decodeDataUriManifest_($.substring($.indexOf(`,`)+1));return}this.steeringManifest.reloadUri=resolveUrl(e,$),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger(`content-steering`)}requestSteeringManifest(e){let t=this.steeringManifest.reloadUri;if(!t)return;let $=e?t:this.getRequestURI(t);if(!$){this.logger_(`No valid content steering manifest URIs. Stopping content steering.`),this.trigger(`error`),this.dispose();return}let ed={contentSteeringInfo:{uri:$}};this.trigger({type:`contentsteeringloadstart`,metadata:ed}),this.request_=this.xhr_({uri:$,requestType:`content-steering-manifest`},(e,t)=>
275{if(e){if(t.status===410){this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${$} this session.`),this.excludedSteeringManifestURLs.add($);return}if(t.status===429){let $=t.responseHeaders[`retry-after`];this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${$} seconds.`),this.startTTLTimeout_(parseInt($,10));return}this.logger_(`manifest failed to load ${e}.`),this.startTTLTimeout_();return}this.trigger({type:`contentsteeringloadcomplete`,metadata:ed});let td;try{td=JSON.parse(this.request_.responseText)}catch(e){let t={errorType:videojs.Error.StreamingContentSteeringParserError,error:e};this.trigger({type:`error`,metadata:t})}this.assignSteeringProperties_(td);let nd={contentSteeringInfo:ed.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:`contentsteeringparsed`,metadata:nd}),this.startTTLTimeout_()})}setProxyServerUrl_(e){let t=new import_window.default.URL(e),$=new import_window.default.URL(this.proxyServerUrl_);return $.searchParams.set(`url`,encodeURI(t.toString())),this.setSteeringParams_($.toString())}decodeDataUriManifest_(e){let t=JSON.parse(import_window.default.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){let t=new import_window.default.URL(e),$=this.getPathway(),ed=this.getBandwidth_();if($){let e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,$)}if(ed){let e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,ed)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger(`error`);return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e[`RELOAD-URI`],this.steeringManifest.priority=e[`PATHWAY-PRIORITY`]||e[`SERVICE-LOCATION-PRIORITY`],this.steeringManifest.pathwayClones=e[`PATHWAY-CLONES`],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_(`There are no available pathways for content steering. Ending content steering.`),this.trigger(`error`),this.dispose());let t=(e=>{for(let t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger(`content-steering`))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;let t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){let $=this.setProxyServerUrl_(e);if(!t($))return $}let $=this.setSteeringParams_(e);return t($)?null:$}startTTLTimeout_(e=this.steeringManifest.ttl){let t=e*1e3;this.ttlTimeout_=import_window.default.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){import_window.default.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off(`content-steering`),this.off(`error`),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new SteeringManifest}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(resolveUrl(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}},debounce=(e,t)=>{let $=null;return(...ed)=>{clearTimeout($),$=setTimeout(()=>{e.apply(null,ed)},t)}},ABORT_EARLY_EXCLUSION_SECONDS=10,loaderStats=[`mediaRequests`,`mediaRequestsAborted`,`mediaRequestsTimedout`,`mediaRequestsErrored`,`mediaTransferDuration`,`mediaBytesTransferred`,`mediaAppends`],sumLoaderStat=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},shouldSwitchToMedia=function({currentPlaylist:e,buffered:t,currentTime:$,nextPlaylist:ed,bufferLowWaterLine:td,bufferHighWaterLine:nd,duration:rd,bufferBasedABR:id,log:ad}){if(!ed)return videojs.log.warn(`We received no playlist to switch to. Please check your stream.`),!1;let od=`allowing switch ${e&&e.id||`null`} -> ${ed.id}`;if(!e)return ad(`${od} as current playlist is not set`),!0;if(ed.id===e.id)return!1;let sd=!!findRange(t,$).length;if(!e.endList)return!sd&&typeof e.partTargetDuration==`number`?(ad(`not ${od} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(ad(`${od} as current playlist is live`),!0);let cd=timeAheadOf(t,$),ld=id?Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Config.MAX_BUFFER_LOW_WATER_LINE;if(rd<ld)return ad(`${od} as duration < max low water line (${rd} < ${ld})`),!0;let ud=ed.attributes.BANDWIDTH,dd=e.attributes.BANDWIDTH;if(ud<dd&&(!id||cd<nd)){let e=`${od} as next bandwidth < current bandwidth (${ud} < ${dd})`;return id&&(e+=` and forwardBuffer < bufferHighWaterLine (${cd} < ${nd})`),ad(e),!0}if((!id||ud>dd)&&cd>=td){let e=`${od} as forwardBuffer >= bufferLowWaterLine (${cd} >= ${td})`;return id&&(e+=` and next bandwidth > current bandwidth (${ud} > ${dd})`),ad(e),!0}return ad(`not ${od} as no switching criteria met`),!1},PlaylistController=class extends videojs.EventTarget{constructor(e){super(),this.fastQualityChange_=debounce(this.fastQualityChange_.bind(this),100);let{src:t,withCredentials:$,tech:ed,bandwidth:td,externVhs:nd,useCueTags:rd,playlistExclusionDuration:id,enableLowInitialPlaylist:ad,sourceType:od,cacheEncryptionKeys:sd,bufferBasedABR:cd,leastPixelDiffSelector:ld,captionServices:ud,experimentalUseMMS:dd}=e;if(!t)throw Error(`A non-empty playlist URL or JSON manifest string is required`);let{maxPlaylistRetries:fd}=e;fd??=1/0,Vhs$1=nd,this.bufferBasedABR=!!cd,this.leastPixelDiffSelector=!!ld,this.withCredentials=$,this.tech_=ed,this.vhs_=ed.vhs,this.player_=e.player_,this.sourceType_=od,this.useCueTags_=rd,this.playlistExclusionDuration=id,this.maxPlaylistRetries=fd,this.enableLowInitialPlaylist=ad,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack(`metadata`,`ad-cues`),this.cueTagsTrack_.inBandMetadataTrackDispatchType=``),this.requestOptions_={withCredentials:$,maxPlaylistRetries:fd,timeout:null},this.on(`error`,this.pauseLoading),this.mediaTypes_=createMediaTypes(),dd&&import_window.default.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new import_window.default.ManagedMediaSource,this.usingManagedMediaSource_=!0,videojs.log(`Using ManagedMediaSource`)):import_window.default.MediaSource&&(this.mediaSource=new import_window.default.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener(`durationchange`,this.handleDurationChange_),this.mediaSource.addEventListener(`s
275ourceopen`,this.handleSourceOpen_),this.mediaSource.addEventListener(`sourceended`,this.handleSourceEnded_),this.mediaSource.addEventListener(`startstreaming`,this.load),this.mediaSource.addEventListener(`endstreaming`,this.pause),this.seekable_=createTimeRanges(),this.hasPlayed_=!1,this.syncController_=new SyncController(e),this.segmentMetadataTrack_=ed.addRemoteTextTrack({kind:`metadata`,label:`segment-metadata`},!1).track,this.segmentMetadataTrack_.mode=`hidden`,this.decrypter_=new Decrypter,this.sourceUpdater_=new SourceUpdater(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new TimelineChangeController,this.keyStatusMap_=new Map;let pd={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:ud,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:td,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:sd,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_===`dash`?new DashPlaylistLoader(t,this.vhs_,merge(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new PlaylistLoader(t,this.vhs_,merge(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new SegmentLoader(merge(pd,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:`main`}),e),this.audioSegmentLoader_=new SegmentLoader(merge(pd,{loaderType:`audio`}),e),this.subtitleSegmentLoader_=new VTTSegmentLoader(merge(pd,{loaderType:`vtt`,featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function $(){ed.off(`vttjserror`,td),e()}function td(){ed.off(`vttjsloaded`,$),t()}ed.one(`vttjsloaded`,$),ed.one(`vttjserror`,td),ed.addWebVttScript_()})}),e),this.contentSteeringController_=new ContentSteeringController(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one(`loadedplaylist`,()=>this.startABRTimer_()),this.tech_.on(`pause`,()=>this.stopABRTimer_()),this.tech_.on(`play`,()=>
275this.startABRTimer_())),loaderStats.forEach(e=>{this[e+`_`]=sumLoaderStat.bind(this,e)}),this.logger_=logger(`pc`),this.triggeredFmp4Usage=!1,this.tech_.preload()===`none`?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one(`play`,this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;let md=this.tech_.preload()===`none`?`play`:`loadstart`;this.tech_.one(md,()=>{let e=Date.now();this.tech_.one(`loadeddata`,()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){let e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return e===-1||t===-1?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e=`abr`){let t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,$){let ed=this.media(),td=ed&&(ed.id||ed.uri),nd=e&&(e.id||e.uri);if(td&&td!==nd){this.logger_(`switch media ${td} -> ${nd} from ${t}`);let $={renditionInfo:{id:nd,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t};this.trigger({type:`renditionselected`,metadata:$}),this.tech_.trigger({type:`usage`,name:`vhs-rendition-change-${t}`})}this.mainPlaylistLoader_.media(e,$)}switchMediaForDASHContentSteering_(){[`AUDIO`,`SUBTITLES`,`CLOSED-CAPTIONS`].forEach(e=>{let t=this.mediaTypes_[e],$=t?t.activeGroup():null,ed=this.contentSteeringController_.getPathway();if($&&ed){let t=($.length?$[0].playlists:$.playlists).filter(e=>e.attributes.serviceLocation===ed);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=import_window.default.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(import_window.default.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){let e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;let $=e.mediaGroups.AUDIO,ed=Object.keys($),td;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)td=this.mediaTypes_.AUDIO.activeTrack();else{let e=$.main||ed.length&&$[ed[0]];for(let t in e)if(e[t].default){td={label:t};break}}if(!td)return t;let nd=[];for(let t in $)if($[t][td.label]){let ed=$[t][td.label];if(ed.playlists&&ed.playlists.length)nd.push.apply(nd,ed.playlists);else if(ed.uri)nd.push(ed);else if(e.playlists.length)for(let $=0;$<e.playlists.length;$++){let ed=e.playlists[$];ed.attributes&&ed.attributes.AUDIO&&ed.attributes.AUDIO===t&&nd.push(ed)}}return nd.length?nd:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on(`loadedmetadata`,()=>{let e=this.mainPlaylistLoader_.media(),t=e.targetDuration*1.5*1e3;isLowestEnabledRendition(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&this.tech_.preload()!==`none`&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),setupMediaGroups({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger(`selectedinitialmedia`):this.mediaTypes_.AUDIO.activePlaylistLoader.one(`loadedmetadata`,()=>{this.trigger(`selectedinitialmedia`)})}),this.mainPlaylistLoader_.on(`loadedplaylist`,()=>{this.loadOnPlay_&&this.tech_.off(`play`,this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){this.attachContentSteeringListeners_(),this.initContentSteeringController_
275(),this.excludeUnsupportedVariants_();let t;if(this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||=this.selectPlaylist(),!t||!this.shouldSwitchToMedia_(t)||(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,`initial`),!(this.sourceType_===`vhs-json`&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on(`error`,()=>{let e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on(`mediachanging`,()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on(`mediachange`,()=>{let e=this.mainPlaylistLoader_.media(),t=e.targetDuration*1.5*1e3;isLowestEnabledRendition(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,this.sourceType_===`dash`&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:`mediachange`,bubbles:!0})}),this.mainPlaylistLoader_.on(`playlistunchanged`,()=>{let e=this.mainPlaylistLoader_.media();e.lastExcludeReason_!==`playlist-unchanged`&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:`Playlist no longer updating.`,reason:`playlist-unchanged`}}),this.tech_.trigger(`playliststuck`))}),this.mainPlaylistLoader_.on(`renditiondisabled`,()=>{this.tech_.trigger({type:`usage`,name:`vhs-rendition-disabled`})}),this.mainPlaylistLoader_.on(`renditionenabled`,()=>{this.tech_.trigger({type:`usage`,name:`vhs-rendition-enabled`})}),[`manifestrequeststart`,`manifestrequestcomplete`,`manifestparsestart`,`manifestparsecomplete`,`playlistrequeststart`,`playlistrequestcomplete`,`playlistparsestart`,`playlistparsecomplete`,`renditiondisabled`,`renditionenabled`].forEach(e=>{this.mainPlaylistLoader_.on(e,e=>{this.player_.trigger(_extends$2({},e))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){let $=e.mediaGroups||{},ed=!0,td=Object.keys($.AUDIO);for(let e in $.AUDIO)for(let t in $.AUDIO[e])$.AUDIO[e][t].uri||(ed=!1);ed&&this.tech_.trigger({type:`usage`,name:`vhs-demuxed`}),Object.keys($.SUBTITLES).length&&this.tech_.trigger({type:`usage`,name:`vhs-webvtt`}),Vhs$1.Playlist.isAes(t)&&this.tech_.trigger({type:`usage`,name:`vhs-aes`}),td.length&&Object.keys($.AUDIO[td[0]]).length>1&&this.tech_.trigger({type:`usage`,name:`vhs-alternate-audio`}),this.useCueTags_&&this.tech_.trigger({type:`usage`,name:`vhs-playlist-cue-tags`})}shouldSwitchToMedia_(e){let t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,$=this.tech_.currentTime(),ed=this.bufferLowWaterLine(),td=this.bufferHighWaterLine();return shouldSwitchToMedia({buffered:this.tech_.buffered(),currentTime:$,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:ed,bufferHighWaterLine:td,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on(`bandwidthupdate`,()=>{this.checkABR_(`bandwidthupdate`),this.tech_.trigger(`bandwidthupdate`)}),this.mainSegmentLoader_.on(`timeout`,()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on(`progress`,()=>{this.trigger(`progress`)}),this.mainSegmentLoader_.on(`error`,()=>{let e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on(`appenderror`,()=>{this.error=this.mainSegmentLoader_.error_,this.trigger(`error`)}),this.mainSegmentLoader_.on(`syncinfoupdate`,()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on(`timestampoffset`,()=>{this.tech_.trigger({type:`usage`,name:`vhs-timestamp-offset`})}),this.audioSegmentLoader_.on(`syncinfoupdate`,()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on(`appenderror`,()=>{this.error=this.audioSegmentLoader_.error_,this.trigger(`error`)}),this.mainSegmentLoader_.on(`ended`,()=>
275{this.logger_(`main segment loader ended`),this.onEndOfStream()}),this.timelineChangeController_.on(`audioTimelineBehind`,()=>{let e=this.audioSegmentLoader_.pendingSegment_;if(!e||!e.segment||!e.segment.syncInfo)return;let t=e.segment.syncInfo.end+.01;this.tech_.setCurrentTime(t)}),this.timelineChangeController_.on(`fixBadTimelineChange`,()=>{this.logger_(`Fix bad timeline change. Restarting al segment loaders...`),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on(`earlyabort`,e=>{this.bufferBasedABR||(this.delegateLoaders_(`all`,[`abort`]),this.excludePlaylist({error:{message:`Aborted early because there isn't enough bandwidth to complete the request without rebuffering.`},playlistExclusionDuration:ABORT_EARLY_EXCLUSION_SECONDS}))});let e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();let e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on(`trackinfo`,e),this.audioSegmentLoader_.on(`trackinfo`,e),this.mainSegmentLoader_.on(`fmp4`,()=>{this.triggeredFmp4Usage||=(this.tech_.trigger({type:`usage`,name:`vhs-fmp4`}),!0)}),this.audioSegmentLoader_.on(`fmp4`,()=>{this.triggeredFmp4Usage||=(this.tech_.trigger({type:`usage`,name:`vhs-fmp4`}),!0)}),this.audioSegmentLoader_.on(`ended`,()=>
275{this.logger_(`audioSegmentLoader ended`),this.onEndOfStream()}),[`segmentselected`,`segmentloadstart`,`segmentloaded`,`segmentkeyloadstart`,`segmentkeyloadcomplete`,`segmentdecryptionstart`,`segmentdecryptioncomplete`,`segmenttransmuxingstart`,`segmenttransmuxingcomplete`,`segmenttransmuxingtrackinfoavailable`,`segmenttransmuxingtiminginfoavailable`,`segmentappendstart`,`appendsdone`,`bandwidthupdated`,`timelinechange`,`codecschange`].forEach(e=>{this.mainSegmentLoader_.on(e,e=>{this.player_.trigger(_extends$2({},e))}),this.audioSegmentLoader_.on(e,e=>{this.player_.trigger(_extends$2({},e))}),this.subtitleSegmentLoader_.on(e,e=>{this.player_.trigger(_extends$2({},e))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_(`skipping fastQualityChange because new media is same as old`);return}this.switchMedia_(e,`fast-quality`),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();let e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){let e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){let t=this.seekable();if(!t.length)return!1;let $=t.end(0),ed=$;if(e.start){let td=e.start.timeOffset;ed=td<0?Math.max($+td,t.start(0)):Math.min($,td)}this.trigger(`firstplay`),this.tech_.setCurrentTime(ed)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){let e=this.tech_.play();e!==void 0&&typeof e.then==`function`&&e.then(null,e=>{})}this.trigger(`sourceopen`)}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;let e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;let t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger(`durationchange`)}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){let t=this.mainSegmentLoader_.getCurrentMediaInfo_();!t||t.hasVideo?e&&=this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;let t=this.syncController_.getExpiredTime(e,this.duration());if(t===null)return!1;let $=Vhs$1.Playlist.playlistEnd(e,t),ed=this.tech_.currentTime(),td=this.tech_.buffered();if(!td.length)return $-ed<=SAFE_TIME_DELTA;let nd=td.end(td.length-1);return nd-ed<=SAFE_TIME_DELTA&&$-nd<=SAFE_TIME_DELTA}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:$}){if(e||=this.mainPlaylistLoader_.media(),$=$||t.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=t,this.mediaSource.readyState===`open`?this.sourceUpdater_.endOfStream(`network`):this.trigger(`error`);return}e.playlistErrors_++;let ed=this.mainPlaylistLoader_.main.playlists,td=ed.filter(isEnabled),nd=td.length===1&&td[0]===e;if(ed.length===1&&$!==1/0)return videojs.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger(`retryplaylist`),this.mainPlaylistLoader_.load(nd);if(nd){if(this.main().contentSteering){let t=this.pathwayAttribute_(e),$=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},$);return}let t=!1;ed.forEach($=>{if($===e)return;let ed=$.excludeUntil;ed!==void 0&&ed!==1/0&&(t=!0,delete $.excludeUntil)}),t&&(videojs.log.warn(`Removing other playlists from the exclusion list because the last rendition is about to be excluded.`),this.tech_.trigger(`retryplaylist`))}let rd;rd=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+$*1e3,e.excludeUntil=rd,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger(`excludeplaylist`),this.tech_.trigger({type:`usage`,name:`vhs-rendition-excluded`});let id=this.selectPlaylist();if(!id){this.error=`Playback cannot continue. No available working or supported playlists.`,this.trigger(`error`);return}let ad=t.internal?this.logger_:videojs.log.warn,od=t.message?` `+t.message:``;ad(`${t.internal?`Internal problem`:`Problem`} encountered with playlist ${e.id}.${od} Switching to playlist ${id.id}.`),id.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_(`audio`,[`abort`,`pause`]),id.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_(`subtitle`,[`abort`,`pause`]),this.delegateLoaders_(`main`,[`abort`,`pause`]);let sd=id.targetDuration/2*1e3||5*1e3,cd=typeof id.lastRequest==`number`&&Date.now()-id.lastRequest<=sd;return this.switchMedia_(id,`exclude`,nd||cd)}pauseLoading(){this.delegateLoaders_(`all`,[`abort`,`pause`]),this.stopABRTimer_()}delegateLoaders_(e,t){let $=[],ed=e===`all`;(ed||e===`main`)&&$.push(this.mainPlaylistLoader_);let td=[];(ed||e===`audio`)&&td.push(`AUDIO`),(ed||e===`subtitle`)&&(td.push(`CLOSED-CAPTIONS`),td.push(`SUBTITLES`)),td.forEach(e
275=>{let t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&$.push(t)}),[`main`,`audio`,`subtitle`].forEach(t=>{let ed=this[`${t}SegmentLoader_`];ed&&(e===t||e===`all`)&&$.push(ed)}),$.forEach(e=>t.forEach(t=>{typeof e[t]==`function`&&e[t]()}))}setCurrentTime(e){let t=findRange(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(t&&t.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;let e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Vhs$1.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){let $=e.media();if(!$)return null;let ed=this.syncController_.getMediaSequenceSync(t);if(ed&&ed.isReliable){let e=ed.start,t=ed.end;if(!isFinite(e)||!isFinite(t))return null;let td=Vhs$1.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,$);return createTimeRanges([[e,Math.max(e,t-td)]])}let td=this.syncController_.getExpiredTime($,this.duration());if(td===null)return null;let nd=Vhs$1.Playlist.seekable($,td,Vhs$1.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,$));return nd.length?nd:null}computeFinalSeekable_(e,t){if(!t)return e;let $=e.start(0),ed=e.end(0),td=t.start(0),nd=t.end(0);return td>ed||$>nd?e:createTimeRanges([[Math.max($,td),Math.min(ed,nd)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;let e=this.getSeekableRange_(this.mainPlaylistLoader_,`main`);if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,`audio`),!t))return;let $=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_||$&&$.length&&this.seekable_.length&&$.start(0)===this.seekable_.start(0)&&$.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${printableRange(this.seekable_)}]`);let ed={seekableRanges:this.seekable_};this.trigger({type:`seekablerangeschanged`,metadata:ed}),this.tech_.trigger(`seekablechanged`)}updateDuration(e){if(this.updateDuration_&&=(this.mediaSource.removeEventListener(`sourceopen`,this.updateDuration_),null),this.mediaSource.readyState!==`open`){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener(`sourceopen`,this.updateDuration_);return}if(e){let e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1));return}let t=this.tech_.buffered(),$=Vhs$1.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&($=Math.max($,t.end(t.length-1))),this.mediaSource.duration!==$&&this.sourceUpdater_.setDuration($)}dispose(){this.trigger(`dispose`),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off(`play`,this.loadOnPlay_),[`AUDIO`,`SUBTITLES`].forEach(e=>{let t=this.mediaTypes_[e].groups;for(let e in t)t[e].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener(`sourceopen`,this.updateDuration_),this.mediaSource.removeEventListener(`durationchange`,this.handleDurationChange_),this.mediaSource.removeEventListener(`sourceopen`,this.handleSourceOpen_),this.mediaSource.removeEventListener(`sourceended`,this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){let e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),$=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!t||!$)}getCodecsOrExclude_(){let e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;let $=codecsForPlaylist(this.main(),t),ed={},td=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(ed.video=$.video||e.main.videoCodec||`avc1.4d400d`),e.main.isMuxed&&(ed.video+=`,${$.audio||e.main.audioCodec||`mp4a.40.2`}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||td)&&(ed.audio=$.audio||e.main.audioCodec||e.audio.audioCodec||`mp4a.40.2`,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!ed.audio&&!ed.video){this.excludePlaylist({playlistToExclude:t,error:{message:`Could not determine codecs for playlist.`},playlistExclusionDuration:1/0});return}let nd=(e,t)=>e?browserSupportsCodec(t,this.usingManagedMediaSource_):muxerSupportsCodec(t),rd={},id;if([`video`,`audio`].forEach(function(t){if(ed.hasOwnProperty(t)&&!nd(e[t].isFmp4,ed[t])){let $=e[t].isFmp4?`browser`:`muxer`;rd[$]=rd[$]||[],rd[$].push(ed[t]),t===`audio`&&(id=$)}}),td&&id&&t.attributes.AUDIO){let e=t.attributes.AUDIO;
275this.main().playlists.forEach($=>{($.attributes&&$.attributes.AUDIO)===e&&$!==t&&($.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${id} does not support codec(s): "${ed.audio}"`)}if(Object.keys(rd).length){let e=Object.keys(rd).reduce((e,t)=>(e&&(e+=`, `),e+=`${t} does not support codec(s): "${rd[t].join(`,`)}"`,e),``)+`.`;this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){let e=[];if([`video`,`audio`].forEach(t=>{let $=(parseCodecs(this.sourceUpdater_.codecs[t]||``)[0]||{}).type,td=(parseCodecs(ed[t]||``)[0]||{}).type;$&&td&&$.toLowerCase()!==td.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${ed[t]}"`)}),e.length){this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(`, `)}.`,internal:!0},playlistExclusionDuration:1/0});return}}return ed}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!==`open`||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;let e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);let t=[e.video,e.audio].filter(Boolean).join(`,`);this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){let e=this.main().playlists,t=[];Object.keys(e).forEach($=>{let ed=e[$];if(t.indexOf(ed.id)!==-1)return;t.push(ed.id);let td=codecsForPlaylist(this.main,ed),nd=[];td.audio&&!muxerSupportsCodec(td.audio)&&!browserSupportsCodec(td.audio,this.usingManagedMediaSource_)&&nd.push(`audio codec ${td.audio}`),td.video&&!muxerSupportsCodec(td.video)&&!browserSupportsCodec(td.video,this.usingManagedMediaSource_)&&nd.push(`video codec ${td.video}`),td.text&&td.text===`stpp.ttml.im1t`&&nd.push(`text codec ${td.text}`),nd.length&&(ed.excludeUntil=1/0,this.logger_(`excluding ${ed.id} for unsupported: ${nd.join(`, `)}`))})}excludeIncompatibleVariants_(e){let t=[],$=this.main().playlists,ed=unwrapCodecList(parseCodecs(e)),td=codecCount(ed),nd=ed.video&&parseCodecs(ed.video)[0]||null,rd=ed.audio&&parseCodecs(ed.audio)[0]||null;Object.keys($).forEach(e=>{let ed=$[e];if(t.indexOf(ed.id)!==-1||ed.excludeUntil===1/0)return;t.push(ed.id);let id=[],ad=codecsForPlaylist(this.mainPlaylistLoader_.main,ed),od=codecCount(ad);if(!(!ad.audio&&!ad.video)){if(od!==td&&id.push(`codec count "${od}" !== "${td}"`),!this.sourceUpdater_.canChangeType()){let e=ad.video&&parseCodecs(ad.video)[0]||null,t=ad.audio&&parseCodecs(ad.audio)[0]||null;e&&nd&&e.type.toLowerCase()!==nd.type.toLowerCase()&&id.push(`video codec "${e.type}" !== "${nd.type}"`),t&&rd&&t.type.toLowerCase()!==rd.type.toLowerCase()&&id.push(`audio codec "${t.type}" !== "${rd.type}"`)}id.length&&(ed.excludeUntil=1/0,this.logger_(`excluding ${ed.id}: ${id.join(` && `)}`))}})}updateAdCues_(e){let t=0,$=this.seekable();$.length&&(t=$.start(0)),updateAdCues(e,this.cueTagsTrack_,t)}goalBufferLength(){let e=this.tech_.currentTime(),t=Config.GOAL_BUFFER_LENGTH,$=Config.GOAL_BUFFER_LENGTH_RATE,ed=Math.max(t,Config.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*$,ed)}bufferLowWaterLine(){let e=this.tech_.currentTime(),t=Config.BUFFER_LOW_WATER_LINE,$=Config.BUFFER_LOW_WATER_LINE_RATE,ed=Math.max(t,Config.MAX_BUFFER_LOW_WATER_LINE),td=Math.max(t,Config.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*$,this.bufferBasedABR?td:ed)}bufferHighWaterLine(){return Config.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){createMetadataTrackIfNotExists(this.inbandTextTracks_,`com.apple.streaming`,this.tech_),addDateRangeMetadata({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,$){let ed=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();createMetadataTrackIfNotExists(this.inbandTextTracks_,e,this.tech_),addMetadata({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:ed,videoDuration:$})}pathwayAttribute_(e){return e.attributes[`PATHWAY-ID`]||e.attributes.serviceLocation}
275initContentSteeringController_(){let e=this.main();if(e.contentSteering){for(let t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one(`canplay`,()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on(`content-steering`,this.excludeThenChangePathway_.bind(this)),[`contentsteeringloadstart`,`contentsteeringloadcomplete`,`contentsteeringparsed`].forEach(e=>{this.contentSteeringController_.on(e,e=>{this.trigger(_extends$2({},e))})}),this.sourceType_===`dash`&&this.mainPlaylistLoader_.on(`loadedplaylist`,()=>{let e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{let t=this.contentSteeringController_.getAvailablePathways(),$=[];for(let ed of e.playlists){let e=ed.attributes.serviceLocation;if(e&&($.push(e),!t.has(e)))return!0}return!!(!$.length&&t.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){let e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();let t=this.main().playlists,$=new Set,ed=!1;Object.keys(t).forEach(td=>{let nd=t[td],rd=this.pathwayAttribute_(nd),id=rd&&e!==rd;nd.excludeUntil===1/0&&nd.lastExcludeReason_===`content-steering`&&!id&&(delete nd.excludeUntil,delete nd.lastExcludeReason_,ed=!0);let ad=!nd.excludeUntil&&nd.excludeUntil!==1/0;!$.has(nd.id)&&id&&ad&&($.add(nd.id),nd.excludeUntil=1/0,nd.lastExcludeReason_=`content-steering`,this.logger_(`excluding ${nd.id} for ${nd.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_===`DASH`&&Object.keys(this.mediaTypes_).forEach(t=>{let $=this.mediaTypes_[t];if($.activePlaylistLoader){let t=$.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(ed=!0)}}),ed&&this.changeSegmentPathway_()}handlePathwayClones_(){let e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,$=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||$&&$.size){for(let[e,ed]of t.entries())$.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(ed),this.contentSteeringController_.excludePathway(e));for(let[ed,td]of $.entries()){let $=t.get(ed);if(!$){e.filter(e=>e.attributes[`PATHWAY-ID`]===td[`BASE-ID`]).forEach(e=>{this.mainPlaylistLoader_.addClonePathway(td,e)}),this.contentSteeringController_.addAvailablePathway(ed);continue}this.equalPathwayClones_($,td)||(this.mainPlaylistLoader_.updateOrDeleteClone(td,!0),this.contentSteeringController_.addAvailablePathway(ed))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...$])))}}equalPathwayClones_(e,t){if(e[`BASE-ID`]!==t[`BASE-ID`]||e.ID!==t.ID||e[`URI-REPLACEMENT`].HOST!==t[`URI-REPLACEMENT`].HOST)return!1;let $=e[`URI-REPLACEMENT`].PARAMS,ed=t[`URI-REPLACEMENT`].PARAMS;for(let e in $)if($[e]!==ed[e])return!1;for(let e in ed)if($[e]!==ed[e])return!1;return!0}changeSegmentPathway_(){let e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_===`DASH`&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,`content-steering`)}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0,t=`non-usable`;
275this.mainPlaylistLoader_.main.playlists.forEach($=>{let ed=this.mainPlaylistLoader_.getKeyIdSet($);!ed||!ed.size||ed.forEach(ed=>{let td=`usable`,nd=this.keyStatusMap_.has(ed)&&this.keyStatusMap_.get(ed)===td,rd=$.lastExcludeReason_===t&&$.excludeUntil===1/0;nd?nd&&rd&&(delete $.excludeUntil,delete $.lastExcludeReason_,this.logger_(`enabling playlist ${$.id} because key ID ${ed} is ${td}`)):($.excludeUntil!==1/0&&$.lastExcludeReason_!==t&&($.excludeUntil=1/0,$.lastExcludeReason_=t,this.logger_(`excluding playlist ${$.id} because the key ID ${ed} doesn't exist in the keyStatusMap or is not ${td}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{let $=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,ed=e.excludeUntil===1/0&&e.lastExcludeReason_===t;$&&ed&&(delete e.excludeUntil,videojs.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){let $=(typeof e==`string`?e:bufferToHexString(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${$} added to the keyStatusMap`),this.keyStatusMap_.set($,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off(`loadedplaylist`,this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on(`loadedplaylist`,this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}},enableFunction=(e,t,$)=>ed=>{let td=e.main.playlists[t],nd=isIncompatible(td),rd=isEnabled(td);if(ed===void 0)return rd;ed?delete td.disabled:td.disabled=!0;let id={renditionInfo:{id:t,bandwidth:td.attributes.BANDWIDTH,resolution:td.attributes.RESOLUTION,codecs:td.attributes.CODECS},cause:`fast-quality`};return ed!==rd&&!nd&&(ed?($(td),e.trigger({type:`renditionenabled`,metadata:id})):e.trigger({type:`renditiondisabled`,metadata:id})),ed},Representation=class{constructor(e,t,$){let{playlistController_:ed}=e,td=ed.fastQualityChange_.bind(ed);if(t.attributes){let e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes[`FRAME-RATE`]}this.codecs=codecsForPlaylist(ed.main(),t),this.playlist=t,this.id=$,this.enabled=enableFunction(e.playlists,t.id,td)}},renditionSelectionMixin=function(e){e.representations=()=>{let t=e.playlistController_.main(),$=isAudioOnly(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return $?$.filter(e=>!isIncompatible(e)).map((t,$)=>new Representation(e,t,t.id)):[]}},timerCancelEvents=[`seeking`,`seeked`,`pause`,`playing`,`error`],PlaybackWatcher=class extends videojs.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=logger(`PlaybackWatcher`),this.logger_(`initialize`);let t=()=>this.monitorCurrentTime_(),$=()=>this.monitorCurrentTime_(),ed=()=>this.techWaiting_(),td=()=>this.resetTimeUpdate_(),nd=this.playlistController_,rd=[`main`,`subtitle`,`audio`],id={};rd.forEach(e=>{id[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},nd[`${e}SegmentLoader_`].on(`appendsdone`,id[e].updateend),nd[`${e}SegmentLoader_`].on(`playlistupdate`,id[e].reset),this.tech_.on([`seeked`,`seeking`],id[e].reset)});let ad=e=>{[`main`,`audio`].forEach(t=>{nd[`${t}SegmentLoader_`][e](`appended`,this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),ad(`off`))},this.clearSeekingAppendCheck_=()=>ad(`off`),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),ad(`on`)},this.tech_.on(`seeked`,this.clearSeekingAppendCheck_),this.tech_.on(`seeking`,this.watchForBadSeeking_),this.tech_.on(`waiting`,ed),this.tech_.on(timerCancelEvents,td),this.tech_.on(`canplay`,$),this.tech_.one(`play`,t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_(`dispose`),this.tech_.off(`waiting`,ed),this.tech_.off(timerCancelEvents,td),this.tech_.off(`canplay`,$),this.tech_.off(`play`,t),this.tech_.off(`seeking`,this.watchForBadSeeking_),this.tech_.off(`seeked`,this.clearSeekingAppendCheck_),rd.forEach(e
275=>{nd[`${e}SegmentLoader_`].off(`appendsdone`,id[e].updateend),nd[`${e}SegmentLoader_`].off(`playlistupdate`,id[e].reset),this.tech_.off([`seeked`,`seeking`],id[e].reset)}),this.checkCurrentTimeTimeout_&&import_window.default.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&import_window.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=import_window.default.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){let t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){let t=this.playlistController_,$=t[`${e}SegmentLoader_`],ed=$.buffered_(),td=isRangeDifferent(this[`${e}Buffered_`],ed);if(this[`${e}Buffered_`]=ed,td){let $={bufferedRanges:ed};t.trigger({type:`bufferedrangeschanged`,metadata:$}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:$.playlist_&&$.playlist_.id,buffered:timeRangesToArray(ed)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:`usage`,name:`vhs-${e}-download-exclusion`}),e!==`subtitle`&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;let e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+SAFE_TIME_DELTA>=t.end(t.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(createTimeRanges([this.lastRecordedTime,e]));let t={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:`playedrangeschanged`,metadata:t}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;let e=this.seekable(),t=this.tech_.currentTime(),$=this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow),ed;if($&&(ed=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)){let t=e.start(0);ed=t+(t===e.end(0)?0:SAFE_TIME_DELTA)}if(ed!==void 0)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${printableRange(e)}. Seeking to ${ed}.`),this.tech_.setCurrentTime(ed),!0;let td=this.playlistController_.sourceUpdater_,nd=this.tech_.buffered(),rd=td.audioBuffer?td.audioBuffered():null,id=td.videoBuffer?td.videoBuffered():null,ad=this.media(),od=ad.partTargetDuration?ad.partTargetDuration:(ad.targetDuration-TIME_FUDGE_FACTOR)*2,sd=[rd,id];for(let e=0;e<sd.length;e++)if(sd[e]&&timeAheadOf(sd[e],t)<od)return!1;let cd=findNextRange(nd,t);return cd.length===0?!1:(ed=cd.start(0)+SAFE_TIME_DELTA,this.logger_(`Buffered region starts (${cd.start(0)}) just beyond seek point (${t}). Seeking to ${ed}.`),this.tech_.setCurrentTime(ed),!0)}waiting_(){if(this.techWaiting_())return;let e=this.tech_.currentTime(),t=findRange(this.tech_.buffered(),e);if(t.length&&e+3<=t.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${t.start(0)} -> ${t.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:`usage`,name:`vhs-unknown-waiting`});return}}techWaiting_(){let e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){let $=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${$}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime($),this.tech_.trigger({type:`usage`,name:`vhs-live-resync`}),!0}let $=this.tech_.vhs.playlistController_.sourceUpdater_,ed=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:$.audioBuffered(),videoBuffered:$.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:`usage`,name:`vhs-video-underflow`}),!0;let td=findNextRange(ed,t);return td.length>0?(this.logger_(`Stopped at ${t} and seeking to ${td.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0):!1}afterSeekableWindow_(e,t,$,ed=!1){if(!e.length)return!1;let td=e.end(e.length-1)+SAFE_TIME_DELTA,nd=!$.endList,rd=typeof $.partTargetDuration==`number`;return nd&&(rd||ed)&&(td=e.end(e.length-1)+$.targetDuration*3),t>td}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:$}){if(!e)return;let ed;if(e.length&&t.length){let td=findRange(e,$-3),nd=findRange(e,$),rd=findRange(t,$);rd.length&&!nd.length&&td.length&&(ed={start:td.end(0),end:rd.end(0)})}else findNextRange(e,$).length||(ed=this.gapFromVideoUnderflow_(e,$));return ed?(this.logger_(`Encountered a gap in video from ${ed.start} to ${ed.end}. Seeking to current time ${$}`),!0):!1}skipTheGap_(e){let t=this.tech_.buffered(),$=this.tech_.currentTime(),ed=findNextRange(t,$);if(this.resetTimeUpdate_(),ed.length===0||$!==e)return;this.logger_(`skipTheGap_:`,`currentTime:`,$,`scheduled currentTime:`,e,`nextRange start:`,ed.start(0)),this.tech_.setCurrentTime(ed.start(0)+TIME_FUDGE_FACTOR);let td={gapInfo:{from:$,to:ed.start(0)}};this.playlistController_.trigger({type:`gapjumped`,metadata:td}),this.tech_.trigger({type:`usage`,name:`vhs-gap-skip`})}gapFromVideoUnderflow_(e,t){let $=findGaps(e);for(let e=0;e<$.length;e++){let ed=$.start(e),td=$.end(e);
275if(t-ed<4&&t-ed>2)return{start:ed,end:td}}return null}},defaultOptions$1={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},initPlugin=function(e,t){let $=0,ed=0,td=merge(defaultOptions$1,t);e.ready(()=>{e.trigger({type:`usage`,name:`vhs-error-reload-initialized`})});let nd=function(){ed&&e.currentTime(ed)},rd=function(t){t!=null&&(ed=e.duration()!==1/0&&e.currentTime()||0,e.one(`loadedmetadata`,nd),e.src(t),e.trigger({type:`usage`,name:`vhs-error-reload`}),e.play())},id=function(){if(Date.now()-$<td.errorInterval*1e3){e.trigger({type:`usage`,name:`vhs-error-reload-canceled`});return}if(!td.getSource||typeof td.getSource!=`function`){videojs.log.error(`ERROR: reloadSourceOnError - The option getSource must be a function!`);return}return $=Date.now(),td.getSource.call(e,rd)},ad=function(){e.off(`loadedmetadata`,nd),e.off(`error`,id),e.off(`dispose`,ad)};e.on(`error`,id),e.on(`dispose`,ad),e.reloadSourceOnError=function(t){ad(),initPlugin(e,t)}},reloadSourceOnError=function(e){initPlugin(this,e)},version$4=`3.17.0`,version$3=`7.1.0`,version$2=`1.3.1`,version$1=`7.2.0`,version$7=`4.0.2`,Vhs={PlaylistLoader,Playlist,utils,STANDARD_PLAYLIST_SELECTOR:lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:lowestBitrateCompatibleVariantSelector,lastBandwidthSelector,movingAverageBandwidthSelector,comparePlaylistBandwidth,comparePlaylistResolution,xhr:xhrFactory()},Object.keys(Config).forEach(e=>{Object.defineProperty(Vhs,e,{get(){return videojs.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Config[e]},set(t){if(videojs.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),typeof t!=`number`||t<0){videojs.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}Config[e]=t}})}),LOCAL_STORAGE_KEY=`videojs-vhs`,handleVhsMediaChange=function(e,t){let $=t.media(),ed=-1;for(let t=0;t<e.length;t++)if(e[t].id===$.id){ed=t;break}e.selectedIndex_=ed,e.trigger({selectedIndex:ed,type:`change`})},handleVhsLoadedMetadata=function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),handleVhsMediaChange(e,t.playlists)},Vhs.canPlaySource=function(){return videojs.log.warn(`VHS is no longer a tech. Please remove it from your player's techOrder.`)},emeKeySystems=(e,t,$)=>{if(!e)return e;let ed={};t&&t.attributes&&t.attributes.CODECS&&(ed=unwrapCodecList(parseCodecs(t.attributes.CODECS))),$&&$.attributes&&$.attributes.CODECS&&(ed.audio=$.attributes.CODECS);let td=getMimeForCodec(ed.video),nd=getMimeForCodec(ed.audio),rd={};for(let $ in e)rd[$]={},nd&&(rd[$].audioContentType=nd),td&&(rd[$].videoContentType=td),t.contentProtection&&t.contentProtection[$]&&t.contentProtection[$].pssh&&(rd[$].pssh=t.contentProtection[$].pssh),typeof e[$]==`string`&&(rd[$].url=e[$]);return merge(e,rd)},getAllPsshKeySystemsOptions=(e,t)=>e.reduce((e,$)=>
275{if(!$.contentProtection)return e;let ed=t.reduce((e,t)=>{let ed=$.contentProtection[t];return ed&&ed.pssh&&(e[t]={pssh:ed.pssh}),e},{});return Object.keys(ed).length&&e.push(ed),e},[]),waitForKeySessionCreation=({player:e,sourceKeySystems:t,audioMedia:$,mainPlaylists:ed})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();let td=getAllPsshKeySystemsOptions($?ed.concat([$]):ed,Object.keys(t)),nd=[],rd=[];return td.forEach(t=>{rd.push(new Promise((t,$)=>{e.tech_.one(`keysessioncreated`,t)})),nd.push(new Promise(($,ed)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{if(e){ed(e);return}$()})}))}),Promise.race([Promise.all(nd),Promise.race(rd)])},setupEmeOptions=({player:e,sourceKeySystems:t,media:$,audioMedia:ed})=>{let td=emeKeySystems(t,$,ed);return td?(e.currentSource().keySystems=td,td&&!e.eme?(videojs.log.warn(`DRM encrypted source cannot be decrypted without a DRM plugin`),!1):!0):!1},getVhsLocalStorage=()=>{if(!import_window.default.localStorage)return null;let e=import_window.default.localStorage.getItem(LOCAL_STORAGE_KEY);if(!e)return null;try{return JSON.parse(e)}catch{return null}},updateVhsLocalStorage=e=>{if(!import_window.default.localStorage)return!1;let t=getVhsLocalStorage();t=t?merge(t,e):e;try{import_window.default.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(t))}catch{return!1}return t},expandDataUri=e=>e.toLowerCase().indexOf(`data:application/vnd.videojs.vhs+json,`)===0?JSON.parse(e.substring(e.indexOf(`,`)+1)):e,addOnRequestHook=(e,t)=>{e._requestCallbackSet||=new Set,e._requestCallbackSet.add(t)},addOnResponseHook=(e,t)=>{e._responseCallbackSet||=new Set,e._responseCallbackSet.add(t)},removeOnRequestHook=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},removeOnResponseHook=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)},Vhs.supportsNativeHls=function(){if(!import_document.default||!import_document.default.createElement)return!1;let e=import_document.default.createElement(`video`);return videojs.getTech(`Html5`).isSupported()?[`application/vnd.apple.mpegurl`,`audio/mpegurl`,`audio/x-mpegurl`,`application/x-mpegurl`,`video/x-mpegurl`,`video/mpegurl`,`application/mpegurl`].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))}):!1}(),Vhs.supportsNativeDash=function(){return!import_document.default||!import_document.default.createElement||!videojs.getTech(`Html5`).isSupported()?!1:/maybe|probably/i.test(import_document.default.createElement(`video`).canPlayType(`application/dash+xml`))}(),Vhs.supportsTypeNatively=e=>e===`hls`?Vhs.supportsNativeHls:e===`dash`?Vhs.supportsNativeDash:!1,Vhs.isSupported=function(){return videojs.log.warn(`VHS is no longer a tech. Please remove it from your player's techOrder.`)},Vhs.xhr.onRequest=function(e){addOnRequestHook(Vhs.xhr,e)},Vhs.xhr.onResponse=function(e){addOnResponseHook(Vhs.xhr,e)},Vhs.xhr.offRequest=function(e){removeOnRequestHook(Vhs.xhr,e)},Vhs.xhr.offResponse=function(e){removeOnResponseHook(Vhs.xhr,e)},Component$54=videojs.getComponent(`Component`),VhsHandler=class extends Component$54{constructor(e,t,$){if(super(t,$.vhs),typeof $.initialBandwidth==`number`&&(this.options_.bandwidth=$.initialBandwidth),this.logger_=logger(`VhsHandler`),t.options_&&t.options_.playerId&&(this.player_=videojs.getPlayer(t.options_.playerId)),this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw Error(`Overriding native VHS requires emulated tracks. See https://git.io/vMpjB`);this.on(import_document.default,[`fullscreenchange`,`webkitfullscreenchange`,`mozfullscreenchange`,`MSFullscreenChange`],e=>{let t=import_document.default.fullscreenElement||import_document.default.webkitFullscreenElement||import_document.default.mozFullScreenElement||import_document.default.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,`seeking`,function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,`error`,function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,`play`,this.play)}setOptions_(e={}){if(this.options_=merge(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=this.source_.useBandwidthFromLocalStorage===void 0?this.options_.useBandwidthFromLocalStorage||!1:this.source_.useBandwidthFromLocalStorage,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
275!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi===void 0?!0:this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!=`number`&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!=`number`&&this.options_.useBandwidthFromLocalStorage){let e=getVhsLocalStorage();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:`usage`,name:`vhs-bandwidth-from-local-storage`})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:`usage`,name:`vhs-throughput-from-local-storage`}))}typeof this.options_.bandwidth!=`number`&&(this.options_.bandwidth=Config.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Config.INITIAL_BANDWIDTH,[`withCredentials`,`useDevicePixelRatio`,`usePlayerObjectFit`,`customPixelRatio`,`limitRenditionByPlayerDimensions`,`bandwidth`,`customTagParsers`,`customTagMappers`,`cacheEncryptionKeys`,`playlistSelector`,`initialPlaylistSelector`,`bufferBasedABR`,`liveRangeSafeTimeDelta`,`llhls`,`useForcedSubtitles`,`useNetworkInformationApi`,`useDtsForTimestampOffset`,`exactManifestTimings`,`leastPixelDiffSelector`].forEach(e=>{this.source_[e]!==void 0&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;let t=this.options_.customPixelRatio;typeof t==`number`&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=expandDataUri(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Vhs,this.options_.sourceType=simpleTypeFromSourceType(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.options_.player_=this.player_,this.playlistController_=new PlaylistController(this.options_),this.playbackWatcher_=new PlaybackWatcher(merge({liveRangeSafeTimeDelta:SAFE_TIME_DELTA},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_})),this.attachStreamingEventListeners_(),this.playlistController_.on(`error`,()=>{let e=videojs.players[this.tech_.options_.playerId],t=this.playlistController_.error;typeof t==`object`&&!t.code?t.code=3:typeof t==`string`&&(t={message:t,code:3}),e.error(t)});let $=this.options_.bufferBasedABR?Vhs.movingAverageBandwidthSelector(.55):Vhs.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):$.bind(this),this.playlistController_.selectInitialPlaylist=Vhs.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth,t=import_window.default.navigator.connection||import_window.default.navigator.mozConnection||import_window.default.navigator.webkitConnection,$=1e7;if(this.options_.useNetworkInformationApi&&t){let ed=t.downlink*1e3*1e3;e=ed>=$&&e>=$?Math.max(e,ed):ed}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){let e=1/(this.bandwidth||1),t;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set(){videojs.log.error(`The "systemBandwidth" property is read-only`)}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>timeRangesToArray(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>timeRangesToArray(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one(`canplay`,this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on(`bandwidthupdate`,()=>{this.options_.useBandwidthFromLocalStorage&&updateVhsLocalStorage({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on(`selectedinitialmedia`,()=>{renditionSelectionMixin(this)}),this.playlistController_.sourceUpdater_.on(`createdsourcebuffers`,()=>{this.setupEme_()}),this.on(this.playlistController_,`progress`,function(){this.tech_.trigger(`progress`)}),this.on(this.playlistController_,`firstplay`,function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=import_window.default.URL.createObjectURL(this.playlistController_.mediaSource),(videojs.browser.IS_ANY_SAFARI||videojs.browser.IS_IOS)&&this.options_.overrideNative&&this.options_.sourceType===`hls`&&typeof this.tech_.addSourceElement==`function`?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_(`waiting for EME key session creation`),waitForKeySessionCreation({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_(`created EME key session`),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_(`error while creating EME key session`,e),this.player_.error({message:`Failed to initialize media ke
275ys for EME`,code:3})})}handleWaitingForKey_(){this.logger_(`waitingforkey fired, attempting to create any new key sessions`),this.createKeySessions_()}setupEme_(){let e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=setupEmeOptions({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on(`keystatuschange`,e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on(`waitingforkey`,this.handleWaitingForKey_),!t){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){let e=videojs.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on(`selectedinitialmedia`,()=>{handleVhsLoadedMetadata(this.qualityLevels_,this)}),this.playlists.on(`mediachange`,()=>{handleVhsMediaChange(this.qual
275ityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":version$4,"mux.js":version$3,"mpd-parser":version$2,"m3u8-parser":version$1,"aes-decrypter":version$7}}version(){return this.constructor.version()}canChangeType(){return SourceUpdater.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&import_window.default.URL.revokeObjectURL&&(import_window.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off(`waitingforkey`,this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return getProgramTime({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,$=!0,ed=2){return seekToProgramTime({programTime:e,playlist:this.playlistController_.media(),retryCount:ed,pauseAfterSeek:$,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{addOnRequestHook(this.xhr,e)},this.xhr.onResponse=e=>{addOnResponseHook(this.xhr,e)},this.xhr.offRequest=e=>{removeOnRequestHook(this.xhr,e)},this.xhr.offResponse=e=>{removeOnResponseHook(this.xhr,e)},this.player_.trigger(`xhr-hooks-ready`)}attachStreamingEventListeners_(){[`seekablerangeschanged`,`bufferedrangeschanged`,`contentsteeringloadstart`,`contentsteeringloadcomplete`,`contentsteeringparsed`].forEach(e=>{this.playlistController_.on(e,e=>{this.player_.trigger(_extends$2({},e))})}),[`gapjumped`,`playedrangeschanged`].forEach(e=>{this.playbackWatcher_.on(e,e=>{this.player_.trigger(_extends$2({},e))})})}},VhsSourceHandler={name:`videojs-http-streaming`,VERSION:version$4,canHandleSource(e,t={}){let $=merge(videojs.options,t);return!$.vhs.experimentalUseMMS&&!browserSupportsCodec(`avc1.4d400d,mp4a.40.2`,!1)?!1:VhsSourceHandler.canPlayType(e.type,$)},handleSource(e,t,$={}){return t.vhs=new VhsHandler(e,t,merge(videojs.options,$)),t.vhs.xhr=xhrFactory(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){let $=simpleTypeFromSourceType(e);if(!$)return``;let ed=VhsSourceHandler.getOverrideNative(t);return!Vhs.supportsTypeNatively($)||ed?`maybe`:``},getOverrideNative(e={}){let{vhs:t={}}=e,$=!(videojs.browser.IS_ANY_SAFARI||videojs.browser.IS_IOS),{overrideNative:ed=$}=t;return ed}},supportsNativeMediaSources=()=>browserSupportsCodec(`avc1.4d400d,mp4a.40.2`,!0),supportsNativeMediaSources()&&videojs.getTech(`Html5`).registerSourceHandler(VhsSourceHandler,0),videojs.VhsHandler=VhsHandler,videojs.VhsSourceHandler=VhsSourceHandler,videojs.Vhs=Vhs,videojs.use||videojs.registerComponent(`Vhs`,Vhs),videojs.options.vhs=videojs.options.vhs||{},(!videojs.getPlugin||!videojs.getPlugin(`reloadSourceOnError`))&&videojs.registerPlugin(`reloadSourceOnError`,reloadSourceOnError)})),import_js=__toESM(require_js());init_video_es(),init_dist$1();function ownKeys(e,t){var $=Object.keys(e);if(Object.getOwnPropertySymbols){var ed=Object.getOwnPropertySymbols(e);t&&(ed=ed.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),$.push.apply($,ed)}return $}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var $=arguments[t]==null?{}:arguments[t];t%2?ownKeys(Object($),!0).forEach(function(t){_defineProperty(e,t,$[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors($)):ownKeys(Object($)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor($,t))})}return e}function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,$=t.hasOwnProperty,ed=Object.defineProperty||function(e,t,$){e[t]=$.value},td=typeof Symbol==`function`?Symbol:{},nd=td.iterator||`@@iterator`,rd=td.asyncIterator||`@@asyncIterator`,id=td.toStringTag||`@@toStringTag`;function ad(e,t,$){return Object.defineProperty(e,t,{value:$,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{ad({},``)}catch{ad=function(e,t,$){return e[t]=$}}function od(e,t,$,td){var nd=t&&t.prototype instanceof ld?t:ld,rd=Object.create(nd.prototype);return ed(rd,`_invoke`,{value:vd(e,$,new Sd(td||[]))}),rd}function sd(e,t,$){try{return{type:`normal`,arg:e.call(t,$)}}catch(e){return{type:`throw`,arg:e}}}e.wrap=od;var cd={};function ld(){}function ud(){}function dd(){}var fd={};ad(fd,nd,function(){return this});var pd=Object.getPrototypeOf,md=pd&&pd(pd(Cd([])));md&&md!==t&&$.call(md,nd)&&(fd=md);var hd=dd.prototype=ld.prototype=Object.create(fd);function gd(e){[`next`,`throw`,`return`].forEach(function(t){ad(e,t,function(e){return this._invoke(t,e)})})}function _d(e,t){function td(ed,nd,rd,id){var ad=sd(e[ed],e,nd);if(ad.type!==`throw`){var od=ad.arg,cd=od.value;return cd&&typeof cd==`object`&&$.call(cd,`__await`)?t.resolve(cd.__await).then(function(e){td(`next`,e,rd,id)},function(e){td(`throw`,e,rd,id)}):t.resolve(cd).then(function(e){od.value=e,rd(od)},function(e){return td(`throw`,e,rd,id)})}id(ad.arg)}var nd;ed(this,`_invoke`,{value:function(e,$){function ed(){return new t(function(t,ed){td(e,$,t,ed)})}return nd=nd?nd.then(ed,ed):ed()}})}function vd(e,t,$){var ed=`suspendedStart`;return function(td,nd){if(ed===`executing`)throw Error(`Generator is already running`);if(ed===`completed`){if(td===`throw`)throw nd;return wd()}for($.method=td,$.arg=nd;;){var rd=$.delegate;if(rd){var id=yd(rd,$);if(id){if(id===cd)continue;return id}}if($.method===`next`)$.sent=$._sent=$.arg;else if($.method===`throw`){if(ed===`suspendedStart`)throw ed=`completed`,$.arg;$.dispatchException($.arg)}else $.method===`return`&&$.abrupt(`return`,$.arg);ed=`executing`;var ad=sd(e,t,$);if(ad.type===`normal`){if(ed=$.done?`completed`:`suspendedYield`,ad.arg===cd)continue;return{value:ad.arg,done:$.done}}ad.type===`throw`&&(ed=`completed`,$.method=`throw`,$.arg=ad.arg)}}}function yd(e,t){var $=t.method,ed=e.iterator[$];if(ed===void 0)return t.delegate=null,$===`throw`&&e.iterator.return&&
vendor: 2,918 bytes, line 275
275(t.method=`return`,t.arg=void 0,yd(e,t),t.method===`throw`)||$!==`return`&&(t.method=`throw`,t.arg=TypeError(`The iterator does not provide a '`+$+`' method`)),cd;var td=sd(ed,e.iterator,t.arg);if(td.type===`throw`)return t.method=`throw`,t.arg=td.arg,t.delegate=null,cd;var nd=td.arg;return nd?nd.done?(t[e.resultName]=nd.value,t.next=e.nextLoc,t.method!==`return`&&(t.method=`next`,t.arg=void 0),t.delegate=null,cd):nd:(t.method=`throw`,t.arg=TypeError(`iterator result is not an object`),t.delegate=null,cd)}function bd(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function xd(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function Sd(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(bd,this),this.reset(!0)}function Cd(e){if(e){var t=e[nd];if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length)){var ed=-1,td=function t(){for(;++ed<e.length;)if($.call(e,ed))return t.value=e[ed],t.done=!1,t;return t.value=void 0,t.done=!0,t};return td.next=td}}return{next:wd}}function wd(){return{value:void 0,done:!0}}return ud.prototype=dd,ed(hd,`constructor`,{value:dd,configurable:!0}),ed(dd,`constructor`,{value:ud,configurable:!0}),ud.displayName=ad(dd,id,`GeneratorFunction`),e.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===ud||(t.displayName||t.name)===`GeneratorFunction`)},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,dd):(e.__proto__=dd,ad(e,id,`GeneratorFunction`)),e.prototype=Object.create(hd),e},e.awrap=function(e){return{__await:e}},gd(_d.prototype),ad(_d.prototype,rd,function(){return this}),e.AsyncIterator=_d,e.async=function(t,$,ed,td,nd){nd===void 0&&(nd=Promise);var rd=new _d(od(t,$,ed,td),nd);return e.isGeneratorFunction($)?rd:rd.next().then(function(e){return e.done?e.value:rd.next()})},gd(hd),ad(hd,id,`Generator`),ad(hd,nd,function(){return this}),ad(hd,`toString`,function(){return`[object Generator]`}),e.keys=function(e){var t=Object(e),$=[];for(var ed in t)$.push(ed);return $.reverse(),function e(){for(;$.length;){var ed=$.pop();if(ed in t)return e.value=ed,e.done=!1,e}return e.done=!0,e}},e.values=Cd,Sd.prototype={constructor:Sd,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=`next`,this.arg=void 0,this.tryEntries.forEach(xd),!e)for(var t in this)t.charAt(0)===`t`&&$.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function ed($,ed){return rd.type=`throw`,rd.arg=e,t.next=$,ed&&(t.method=`next`,t.arg=void 0),!!ed}for(var td=this.tryEntries.length-1;td>=0;--td){var nd=this.tryEntries[td],rd=nd.completion;if(nd.tryLoc===`root`)return ed(`end`);
275if(nd.tryLoc<=this.prev){var id=$.call(nd,`catchLoc`),ad=$.call(nd,`finallyLoc`);if(id&&ad){if(this.prev<nd.catchLoc)return ed(nd.catchLoc,!0);if(this.prev<nd.finallyLoc)return ed(nd.finallyLoc)}else if(id){if(this.prev<nd.catchLoc)return ed(nd.catchLoc,!0)}else{if(!ad)throw Error(`try statement without catch or finally`);if(this.prev<nd.finallyLoc)return ed(nd.finallyLoc)}}}},abrupt:function(e,t){for(var ed=this.tryEntries.length-1;ed>=0;--ed){var td=this.tryEntries[ed];if(td.tryLoc<=this.prev&&$.call(td,`finallyLoc`)&&this.prev<td.finallyLoc){var nd=td;break}}nd&&(e===`break`||e===`continue`)&&nd.tryLoc<=t&&t<=nd.finallyLoc&&(nd=null);var rd=nd?nd.completion:{};return rd.type=e,rd.arg=t,nd?(this.method=`next`,this.next=nd.finallyLoc,cd):this.complete(rd)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),cd},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var $=this.tryEntries[t];if($.finallyLoc===e)return this.complete($.completion,$.afterLoc),xd($),cd}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var $=this.tryEntries[t];if($.tryLoc===e){var ed=$.completion;if(ed.type===`throw`){var td=ed.arg;xd($)}return td}}throw Error(`illegal catch attempt`)},delegateYield:function(e,t,$){return this.delegate={iterator:Cd(e),resultName:t,nextLoc:$},this.method===`next`&&(this.arg=void 0),cd}},e}function asyncGeneratorStep(e,t,$,ed,td,nd,rd){try{var id=e[nd](rd),ad=id.value}catch(e){$(e);return}id.done?t(ad):Promise.resolve(ad).then(ed,td)}function _asyncToGenerator(e){return function(){var t=this,$=arguments;return new Promise(function(ed,td){var nd=e.apply(t,$);function rd(e){asyncGeneratorStep(nd,ed,td,rd,id,`next`,e)}function id(e){asyncGeneratorStep(nd,ed,td,rd,id,`throw`,e)}rd(void 0)})}}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _defineProperties(e,t){for(var $=0;$<t.length;$++){var ed=t[$];ed.enumerable=ed.enumerable||!1,ed.configurable=!0,`value`in ed&&(ed.writable=!0),Object.defineProperty(e,_toPropertyKey(ed.key),ed)}}function _createClass(e,t,$){return t&&_defineProperties(e.prototype,t),$&&_defineProperties(e,$),Object.defineProperty(e,`prototype`,{writable:!1}),e}function _defineProperty(e,t,$){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:$,enumerable:!0,configurable:!0,writable:!0}):e[t]=$,e}function _inherits(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,t,$){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function(e,t,$){var ed=[null];ed.push.apply(ed,t);var td=new(Function.bind.apply(e,ed));return $&&_setPrototypeOf(td,$.prototype),td},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function _wrapNativeSuper(e){var t=typeof Map==`function`?new Map:void 0;return _wrapNativeSuper=function(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,$)}function $(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return $.prototype=Object.create(e.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf($,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _possibleConstructorReturn(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var $=_getPrototypeOf(e),ed;if(t){var td=_getPrototypeOf(this).constructor;ed=Reflect.construct($,arguments,td)}else ed=$.apply(this,arguments);return _possibleConstructorReturn(this,ed)}}function _toPrimitive(e,t){if(typeof e!=`object`||!e)return e;var $=e[Symbol.toPrimitive];if($!==void 0){var ed=$.call(e,t||`default`);if(typeof ed!=`object`)return ed;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,`string`);return typeof t==`symbol`?t:String(t)}var isNode$1=global!==void 0&&{}.toString.call(global)===`[object global]`;function getMethodName(e,t){return e.indexOf(t.toLowerCase())===0?e:`${t.toLowerCase()}${e.substr(0,1).toUpperCase()}${e.substr(1)}`}function isDomElement(e){return!!(e&&e.nodeType===1&&`nodeName`in e&&e.ownerDocument&&e.ownerDocument.defaultView)}function isInteger(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}function isVimeoUrl(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function isVimeoEmbed(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function getOembedDomain(e){for(var t=(e||``).match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),$=(t&&t[1]||``).replace(`player.`,``),ed=[`.videoji.hk`,`.vimeo.work`,`.videoji.cn`],td=0,nd=ed;td<nd.length;td++){var rd=nd[td];if($.endsWith(rd))return $}return`vimeo.com`}function getVimeoUrl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.id,$=e.url,ed=t||$;if(!ed)throw Error(`An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.`);if(isInteger(ed))return`https://vimeo.com/${ed}`;if(isVimeoUrl(ed))return ed.replace(`http:`,`https:`);throw TypeError(t?`â${t}â is not a valid video id.`:`â${ed}â is not a vimeo.com url.`)}var subscribe=function(e,t,$){var ed=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`addEventListener`,td=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`removeEventListener`,nd=typeof t==`string`?[t]:t;
275return nd.forEach(function(t){e[ed](t,$)}),{cancel:function(){return nd.forEach(function(t){return e[td](t,$)})}}},arrayIndexOfSupport=Array.prototype.indexOf!==void 0,postMessageSupport=typeof window<`u`&&window.postMessage!==void 0;if(!isNode$1&&(!arrayIndexOfSupport||!postMessageSupport))throw Error(`Sorry, the Vimeo Player API is not available in this browser.`);var commonjsGlobal=typeof globalThis<`u`?globalThis:typeof window<`u`?window:global===void 0?typeof self<`u`?self:{}:global;function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e){if(e.WeakMap)return;var t=Object.prototype.hasOwnProperty,$=Object.defineProperty&&function(){try{return Object.defineProperty({},`x`,{value:1}).x===1}catch{}}(),ed=function(e,t,ed){$?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:ed}):e[t]=ed};e.WeakMap=function(){function e(){if(this===void 0)throw TypeError(`Constructor WeakMap requires 'new'`);if(ed(this,`_id`,nd(`_WeakMap`)),arguments.length>0)throw TypeError(`WeakMap iterable is not supported`)}ed(e.prototype,`delete`,function(e){if($(this,`delete`),!td(e))return!1;var t=e[this._id];return t&&t[0]===e?(delete e[this._id],!0):!1}),ed(e.prototype,`get`,function(e){if($(this,`get`),td(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),ed(e.prototype,`has`,function(e){if($(this,`has`),!td(e))return!1;var t=e[this._id];return!!(t&&t[0]===e)}),ed(e.prototype,`set`,function(e,t){if($(this,`set`),!td(e))throw TypeError(`Invalid value used as weak map key`);var nd=e[this._id];return nd&&nd[0]===e?(nd[1]=t,this):(ed(e,this._id,[e,t]),this)});function $(e,$){if(!td(e)||!t.call(e,`_id`))throw TypeError($+` method called on incompatible receiver `+typeof e)}function nd(e){return e+`_`+rd()+`.`+rd()}function rd(){return Math.random().toString().substring(2)}return ed(e,`_polyfill`,!0),e}();function td(e){return Object(e)===e}})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:commonjsGlobal);var npo_src=createCommonjsModule(function(e){(function(t,$,ed){$[t]=$[t]||ed(),e.exports&&=$[t]})(`Promise`,commonjsGlobal,function(){var e,t,$,ed=Object.prototype.toString,td=typeof setImmediate<`u`?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},`x`,{}),e=function(e,t,$,ed){return Object.defineProperty(e,t,{value:$,writable:!0,configurable:ed!==!1})}}catch{e=function(e,t,$){return e[t]=$,e}}$=function(){var e,$,ed;function td(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,nd){ed=new td(t,nd),$?$.next=ed:e=ed,$=ed,ed=void 0},drain:function(){var ed=e;for(e=$=t=void 0;ed;)ed.fn.call(ed.self),ed=ed.next}}}();function nd(e,ed){$.add(e,ed),t||=td($.drain)}function rd(e){var t,$=typeof e;return e!=null&&($==`object`||$==`function`)&&(t=e.then),typeof t==`function`?t:!1}function id(){for(var e=0;e<this.chain.length;e++)ad(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function ad(e,t,$){var ed,td;try{t===!1?$.reject(e.msg):(ed=t===!0?e.msg:t.call(void 0,e.msg),ed===$.promise?$.reject(TypeError(`Promise-chain cycle`)):(td=rd(ed))?td.call(ed,$.resolve,$.reject):$.resolve(ed))}catch(e){$.reject(e)}}function od(e){var t,$=this;if(!$.triggered){$.triggered=!0,$.def&&($=$.def);try{(t=rd(e))?nd(function(){var ed=new ld($);try{t.call(e,function(){od.apply(ed,arguments)},function(){sd.apply(ed,arguments)})}catch(e){sd.call(ed,e)}}):($.msg=e,$.state=1,$.chain.length>0&&nd(id,$))}catch(e){sd.call(new ld($),e)}}}function sd(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&nd(id,t))}function cd(e,t,$,ed){for(var td=0;td<t.length;td++)(function(td){e.resolve(t[td]).then(function(e){$(td,e)},ed)})(td)}function ld(e){this.def=e,this.triggered=!1}function ud(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function dd(e){if(typeof e!=`function`)throw TypeError(`Not a function`);if(this.__NPO__!==0)throw TypeError(`Not a promise`);this.__NPO__=1;var t=new ud(this);this.then=function(e,$){var ed={success:typeof e==`function`?e:!0,failure:typeof $==`function`?$:!1};return ed.promise=new this.constructor(function(e,t){if(typeof e!=`function`||typeof t!=`function`)throw TypeError(`Not a function`);ed.resolve=e,ed.reject=t}),t.chain.push(ed),t.state!==0&&nd(id,t),ed.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){od.call(t,e)},function(e){sd.call(t,e)})}catch(e){sd.call(t,e)}}var fd=e({},`constructor`,dd,!1);return dd.prototype=fd,e(fd,`__NPO__`,0,!1),e(dd,`resolve`,function(e){var t=this;
275return e&&typeof e==`object`&&e.__NPO__===1?e:new t(function(t,$){if(typeof t!=`function`||typeof $!=`function`)throw TypeError(`Not a function`);t(e)})}),e(dd,`reject`,function(e){return new this(function(t,$){if(typeof t!=`function`||typeof $!=`function`)throw TypeError(`Not a function`);$(e)})}),e(dd,`all`,function(e){var t=this;return ed.call(e)==`[object Array]`?e.length===0?t.resolve([]):new t(function($,ed){if(typeof $!=`function`||typeof ed!=`function`)throw TypeError(`Not a function`);var td=e.length,nd=Array(td),rd=0;cd(t,e,function(e,t){nd[e]=t,++rd===td&&$(nd)},ed)}):t.reject(TypeError(`Not an array`))}),e(dd,`race`,function(e){var t=this;return ed.call(e)==`[object Array]`?new t(function($,ed){if(typeof $!=`function`||typeof ed!=`function`)throw TypeError(`Not a function`);cd(t,e,function(e,t){$(t)},ed)}):t.reject(TypeError(`Not an array`))}),dd})}),callbackMap=new WeakMap;function storeCallback(e,t,$){var ed=callbackMap.get(e.element)||{};t in ed||(ed[t]=[]),ed[t].push($),callbackMap.set(e.element,ed)}function getCallbacks(e,t){return(callbackMap.get(e.element)||{})[t]||[]}function removeCallback(e,t,$){var ed=callbackMap.get(e.element)||{};if(!ed[t])return!0;if(!$)return ed[t]=[],callbackMap.set(e.element,ed),!0;var td=ed[t].indexOf($);return td!==-1&&ed[t].splice(td,1),callbackMap.set(e.element,ed),ed[t]&&ed[t].length===0}function shiftCallbacks(e,t){var $=getCallbacks(e,t);if($.length<1)return!1;var ed=$.shift();return removeCallback(e,t,ed),ed}function swapCallbacks(e,t){var $=callbackMap.get(e);callbackMap.set(t,$),callbackMap.delete(e)}function parseMessageData(e){if(typeof e==`string`)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function postMessage$1(e,t,$){if(!(!e.element.contentWindow||!e.element.contentWindow.postMessage)){var ed={method:t};$!==void 0&&(ed.value=$);var td=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,`$1`));td>=8&&td<10&&(ed=JSON.stringify(ed)),e.element.contentWindow.postMessage(ed,e.origin)}}function processData(e,t){t=parseMessageData(t);var $=[],ed;if(t.event)t.event===`error`&&getCallbacks(e,t.data.method).forEach(function($){var ed=Error(t.data.message);ed.name=t.data.name,$.reject(ed),removeCallback(e,t.data.method,$)}),$=getCallbacks(e,`event:${t.event}`),ed=t.data;else if(t.method){var td=shiftCallbacks(e,t.method);td&&($.push(td),ed=t.value)}$.forEach(function(t){try{if(typeof t==`function`){t.call(e,ed);return}t.resolve(ed)}catch{}})}var oEmbedParameters=`airplay.audio_tracks.autopause.autoplay.background.byline.cc.chapter_id.chapters.chromecast.color.colors.controls.dnt.end_time.fullscreen.height.id.interactive_params.keyboard.loop.maxheight.maxwidth.muted.play_button_position.playsinline.portrait.progress_bar.quality_selector.responsive.speed.start_time.texttrack.title.transcript.transparent.unmute_button.url.vimeo_logo.volume.watch_full_video.width`.split(`.`);function getOEmbedParameters(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oEmbedParameters.reduce(function(t,$){var ed=e.getAttribute(`data-vimeo-${$}`);return(ed||ed===``)&&(t[$]=ed===``?1:ed),t},t)}function createEmbed(e,t){var $=e.html;if(!t)throw TypeError(`An element must be provided`);if(t.getAttribute(`data-vimeo-initialized`)!==null)return t.querySelector(`iframe`);var ed=document.createElement(`div`);return ed.innerHTML=$,t.appendChild(ed.firstChild),t.setAttribute(`data-vimeo-initialized`,`true`),t.querySelector(`iframe`)}function getOEmbedData(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=arguments.length>2?arguments[2]:void 0;return new Promise(function(ed,td){if(!isVimeoUrl(e))throw TypeError(`â${e}â is not a vimeo.com url.`);var nd=`https://${getOembedDomain(e)}/api/oembed.json?url=${encodeURIComponent(e)}`;for(var rd in t)t.hasOwnProperty(rd)&&(nd+=`&${rd}=${encodeURIComponent(t[rd])}`);var id=`XDomainRequest`in window?new XDomainRequest:new XMLHttpRequest;id.open(`GET`,nd,!0),id.onload=function(){if(id.status===404){td(Error(`â${e}â was not found.`));return}if(id.status===403){td(Error(`â${e}â is not embeddable.`));return}try{var t=JSON.parse(id.responseText);if(t.domain_status_code===403){createEmbed(t,$),td(Error(`â${e}â is not embeddable.`));return}ed(t)}catch(e){td(e)}},id.onerror=function(){var e=id.status?` (${id.status})`:``;td(Error(`There was an error fetching the embed code from Vimeo${e}.`))},id.send()})}function initializeEmbeds(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=[].slice.call(e.querySelectorAll(`[data-vimeo-id], [data-vimeo-url]`)),$=function(e){`
275console`in window&&console.error&&console.error(`There was an error creating an embed: ${e}`)};t.forEach(function(e){try{if(e.getAttribute(`data-vimeo-defer`)!==null)return;var t=getOEmbedParameters(e);getOEmbedData(getVimeoUrl(t),t,e).then(function(t){return createEmbed(t,e)}).catch($)}catch(e){$(e)}})}function resizeEmbeds(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener(`message`,function(t){if(isVimeoUrl(t.origin)&&!(!t.data||t.data.event!==`spacechange`)){for(var $=e.querySelectorAll(`iframe`),ed=0;ed<$.length;ed++)if($[ed].contentWindow===t.source){var td=$[ed].parentElement;td.style.paddingBottom=`${t.data.data[0].bottom}px`;break}}}))}function initAppendVideoMetadata(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener(`message`,function(t){if(isVimeoUrl(t.origin)){var $=parseMessageData(t.data);if(!(!$||$.event!==`ready`))for(var ed=e.querySelectorAll(`iframe`),td=0;td<ed.length;td++){var nd=ed[td],rd=nd.contentWindow===t.source;isVimeoEmbed(nd.src)&&rd&&new Player(nd).callMethod(`appendVideoMetadata`,window.location.href)}}}))}function checkUrlTimeParam(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
275=!0;var t=function(e){`console`in window&&console.error&&console.error(`There was an error getting video Id: ${e}`)};window.addEventListener(`message`,function($){if(isVimeoUrl($.origin)){var ed=parseMessageData($.data);if(!(!ed||ed.event!==`ready`))for(var td=e.querySelectorAll(`iframe`),nd=function(){var e=td[rd],ed=e.contentWindow===$.source;if(isVimeoEmbed(e.src)&&ed){var nd=new Player(e);nd.getVideoId().then(function(e){var t=RegExp(`[?&]vimeo_t_${e}=([^&#]*)`).exec(window.location.href);if(t&&t[1]){var $=decodeURI(t[1]);nd.setCurrentTime($)}}).catch(t)}},rd=0;rd<td.length;rd++)nd()}})}}function initializeScreenfull(){var e=function(){for(var e,t=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],$=0,ed=t.length,td={};$<ed;$++)if(e=t[$],e&&e[1]in document){for($=0;$<e.length;$++)td[t[0][$]]=e[$];return td}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},$={request:function(t){return new Promise(function(ed,td){var nd=function e(){$.off(`fullscreenchange`,e),ed()};$.on(`fullscreenchange`,nd),t||=document.documentElement;var rd=t[e.requestFullscreen]();rd instanceof Promise&&rd.then(nd).catch(td)})},exit:function(){return new Promise(function(t,ed){if(!$.isFullscreen){t();return}var td=function e(){$.off(`fullscreenchange`,e),t()};$.on(`fullscreenchange`,td);var nd=document[e.exitFullscreen]();nd instanceof Promise&&nd.then(td).catch(ed)})},on:function(e,$){var ed=t[e];ed&&document.addEventListener(ed,$)},off:function(e,$){var ed=t[e];ed&&document.removeEventListener(ed,$)}};return Object.defineProperties($,{isFullscreen:{get:function(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[e.fullscreenEnabled]}}}),$}var defaultOptions={role:`viewer`,autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},TimingSrcConnector=function(e){_inherits($,e);var t=_createSuper($);function $(e,ed){var td,nd=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rd=arguments.length>3?arguments[3]:void 0;return _classCallCheck(this,$),td=t.call(this),_defineProperty(_assertThisInitialized(td),`logger`,void 0),_defineProperty(_assertThisInitialized(td),`speedAdjustment`,0),_defineProperty(_assertThisInitialized(td),`adjustSpeed`,function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,$){var ed;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(td.speedAdjustment!==$){e.next=2;break}return e.abrupt(`return`);case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=td.speedAdjustment,e.t2=e.t0-e.t1,e.t3=$,ed=e.t2+e.t3,td.log(`New playbackRate: ${ed}`),e.next=12,t.setPlaybackRate(ed);case 12:td.speedAdjustment=$;case 13:case`end`:return e.stop()}},e)}));return function(t,$){return e.apply(this,arguments)}}()),td.logger=rd,td.init(ed,e,_objectSpread2(_objectSpread2({},defaultOptions),nd)),td}return _createClass($,[{key:`disconnect`,value:function(){this.dispatchEvent(new Event(`disconnect`))}}
275,{key:`init`,value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,$,ed){var td=this,nd,rd,id;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,`open`);case 2:if(ed.role!==`viewer`){e.next=10;break}return e.next=5,this.updatePlayer(t,$,ed);case 5:nd=subscribe(t,`change`,function(){return td.updatePlayer(t,$,ed)}),rd=this.maintainPlaybackPosition(t,$,ed),this.addEventListener(`disconnect`,function(){rd.cancel(),nd.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,$);case 12:id=subscribe($,[`seeked`,`play`,`pause`,`ratechange`],function(){return td.updateTimingObject(t,$)},`on`,`off`),this.addEventListener(`disconnect`,function(){return id.cancel()});case 14:case`end`:return e.stop()}},e,this)}));function t(t,$,ed){return e.apply(this,arguments)}return t}()},{key:`updateTimingObject`,value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,$){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,$.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,$.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,$.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case`end`:return e.stop()}},e)}));function t(t,$){return e.apply(this,arguments)}return t}()},{key:`updatePlayer`,value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,$,ed){var td,nd,rd;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(td=t.query(),nd=td.position,rd=td.velocity,typeof nd==`number`&&$.setCurrentTime(nd),typeof rd!=`number`){e.next=25;break}if(rd!==0){e.next=11;break}return e.next=6,$.getPaused();case 6:if(e.t0=e.sent,e.t0!==!1){e.next=9;break}$.pause();case 9:e.next=25;break;case 11:if(!(rd>0)){e.next=25;break}return e.next=14,$.getPaused();case 14:if(e.t1=e.sent,e.t1!==!0){e.next=19;break}return e.next=18,$.play().catch(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.name===`NotAllowedError`&&ed.autoPlayMuted)){e.next=5;break}return e.next=3,$.setMuted(!0);case 3:return e.next=5,$.play().catch(function(e){return console.error(`Couldn't play the video from TimingSrcConnector. Error:`,e)});case 5:case`end`:return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,$,ed);case 19:return e.next=21,$.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=rd,e.t2===e.t3){e.next=25;break}$.setPlaybackRate(rd);case 25:case`end`:return e.stop()}},e,this)}));function t(t,$,ed){return e.apply(this,arguments)}return t}()},{key:`maintainPlaybackPosition`,value:function(e,t,$){var ed=this,td=$.allowedDrift,nd=$.maxAllowedDrift,rd=$.minCheckInterval,id=$.maxRateAdjustment,ad=$.maxTimeToCatchUp,od=Math.min(ad,Math.max(rd,nd))*1e3,sd=function(){var $=_asyncToGenerator(_regeneratorRuntime().mark(function $(){var rd,od,sd,cd,ld;return _regeneratorRuntime().wrap(function($){for(;;)switch($.prev=$.next){case 0:if($.t0=e.query().velocity===0,$.t0){$.next=6;break}return $.next=4,t.getPaused();case 4:$.t1=$.sent,$.t0=$.t1===!0;case 6:if(!$.t0){$.next=8;break}return $.abrupt(`return`);case 8:return $.t2=e.query().position,$.next=11,t.getCurrentTime();case 11:if($.t3=$.sent,rd=$.t2-$.t3,od=Math.abs(rd),ed.log(`Drift: ${rd}`),!(od>nd)){$.next=22;break}return $.next=18,ed.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),ed.log(`Resync by currentTime`),$.next=29;break;case 22:if(!(od>td)){$.next=29;break}return sd=od/ad,cd=id,ld=sd<cd?(cd-sd)/2:cd,$.next=28,ed.adjustSpeed(t,ld*Math.sign(rd));case 28:ed.log(`Resync by playbackRate`);case 29:case`end`:return $.stop()}},$)}));return function(){return $.apply(this,arguments)}}(),cd=setInterval(function(){return sd()},od);return{cancel:function(){return clearInterval(cd)}}}},{key:`log`,value:function(e){var t;(t=this.logger)==null||t.call(this,`TimingSrcConnector: ${e}`)}},{key:`waitForTOReadyState`,value:function(e,t){return new Promise(function($){(function ed(){e.readyState===t?$():e.addEventListener(`readystatechange`,ed,{once:!0})})()})}}]),$}(_wrapNativeSuper(EventTarget)),playerMap=new WeakMap,readyMap=new WeakMap,screenfull={},Player=function(){function e(t){var $=this,ed=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn(`A jQuery object with multiple elements was passed, using the first element.`),t=t[0]),typeof document<`u`&&typeof t==`string`&&(t=document.getElementById(t)),!isDomElement(t))throw TypeError(`You must pass either a valid element or a valid id.`);
275if(t.nodeName!==`IFRAME`){var td=t.querySelector(`iframe`);td&&(t=td)}if(t.nodeName===`IFRAME`&&!isVimeoUrl(t.getAttribute(`src`)||``))throw Error(`The player element passed isnât a Vimeo embed.`);if(playerMap.has(t))return playerMap.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin=`*`;var nd=new npo_src(function(e,td){if($._onMessage=function(t){if(!(!isVimeoUrl(t.origin)||$.element.contentWindow!==t.source)){$.origin===`*`&&($.origin=t.origin);var ed=parseMessageData(t.data);if(ed&&ed.event===`error`&&ed.data&&ed.data.method===`ready`){var nd=Error(ed.data.message);nd.name=ed.data.name,td(nd);return}var rd=ed&&ed.event===`ready`,id=ed&&ed.method===`ping`;if(rd||id){$.element.setAttribute(`data-ready`,`true`),e();return}processData($,ed)}},$._window.addEventListener(`message`,$._onMessage),$.element.nodeName!==`IFRAME`){var nd=getOEmbedParameters(t,ed);getOEmbedData(getVimeoUrl(nd),nd,t).then(function(e){var ed=createEmbed(e,t);return $.element=ed,$._originalElement=t,swapCallbacks(t,ed),playerMap.set($.element,$),e}).catch(td)}});if(readyMap.set(this,nd),playerMap.set(this.element,this),this.element.nodeName===`IFRAME`&&postMessage$1(this,`ping`),screenfull.isEnabled){var rd=function(){return screenfull.exit()};this.fullscreenchangeHandler=function(){screenfull.isFullscreen?storeCallback($,`event:exitFullscreen`,rd):removeCallback($,`event:exitFullscreen`,rd),$.ready().then(function(){postMessage$1($,`fullscreenchange`,screenfull.isFullscreen)})},screenfull.on(`fullscreenchange`,this.fullscreenchangeHandler)}return this}return _createClass(e,[{key:`callMethod`,value:function(e){var t=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new npo_src(function(ed,td){return t.ready().then(function(){storeCallback(t,e,{resolve:ed,reject:td}),postMessage$1(t,e,$)}).catch(td)})}},{key:`get`,value:function(e){var t=this;return new npo_src(function($,ed){return e=getMethodName(e,`get`),t.ready().then(function(){storeCallback(t,e,{resolve:$,reject:ed}),postMessage$1(t,e)}).catch(ed)})}},{key:`set`,value:function(e,t){var $=this;return new npo_src(function(ed,td){if(e=getMethodName(e,`set`),t==null)throw TypeError(`There must be a value to set.`);return $.ready().then(function(){storeCallback($,e,{resolve:ed,reject:td}),postMessage$1($,e,t)}).catch(td)})}},{key:`on`,value:function(e,t){if(!e)throw TypeError(`You must pass an event name.`);if(!t)throw TypeError(`You must pass a callback function.`);if(typeof t!=`function`)throw TypeError(`The callback must be a function.`);getCallbacks(this,`event:${e}`).length===0&&this.callMethod(`addEventListener`,e).catch(function(){}),storeCallback(this,`event:${e}`,t)}},{key:`off`,value:function(e,t){if(!e)throw TypeError(`You must pass an event name.`);if(t&&typeof t!=`function`)throw TypeError(`The callback must be a function.`);removeCallback(this,`event:${e}`,t)&&this.callMethod(`removeEventListener`,e).catch(function(e){})}},{key:`loadVideo`,value:function(e){return this.callMethod(`loadVideo`,e)}},{key:`ready`,value:function(){var e=readyMap.get(this)||new npo_src(function(e,t){t(Error(`Unknown player. Probably unloaded.`))});return npo_src.resolve(e)}},{key:`addCuePoint`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod(`addCuePoint`,{time:e,data:t})}},{key:`removeCuePoint`,value:function(e){return this.callMethod(`removeCuePoint`,e)}},{key:`enableTextTrack`,value:function(e,t){if(!e)throw TypeError(`You must pass a language.`);return this.callMethod(`enableTextTrack`,{language:e,kind:t})}},{key:`disableTextTrack`,value:function(){return this.callMethod(`disableTextTrack`)}},{key:`pause`,value:function(){return this.callMethod(`pause`)}},{key:`play`,value:function(){return this.callMethod(`play`)}},{key:`requestFullscreen`,value:function(){return screenfull.isEnabled?screenfull.request(this.element):this.callMethod(`requestFullscreen`)}},{key:`exitFullscreen`,value:function(){return screenfull.isEnabled?screenfull.exit():this.callMethod(`exitFullscreen`)}},{key:`getFullscreen`,value:function(){return screenfull.isEnabled?npo_src.resolve(screenfull.isFullscreen):this.get(`fullscreen`)}},{key:`requestPictureInPicture`,value:function(){return this.callMethod(`requestPictureInPicture`)}},{key:`exitPictureInPicture`,value:function(){return this.callMethod(`exitPictureInPicture`)}},{key:`getPictureInPicture`,value:function(){return this.get(`pictureInPicture`)}},{key:`remotePlaybackPrompt`,value:function(){return this.callMethod(`remotePlaybackPrompt`)}},{key:`unload`,value:function(){return this.callMethod(`unload`)}},{key:`destroy`,value:function(){var e=this;return new npo_src(function(t){if(readyMap.delete(e),playerMap.delete(e.element),e._originalElement&&(playerMap.delete(e._originalElement),e._originalElement.removeAttribute(`data-vimeo-initialized`)),e.element&&e.element.nodeName===`IFRAME`&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&e.element.nodeName===`DIV`&&e.element.parentNode){e.element.removeAttribute(`data-vimeo-initialized`);var $=e.element.querySelector(`iframe`);$&&$.parentNode&&($.parentNode.parentNode&&e._originalElement&&e._originalElement!==$.parentNode?$.parentNode.parentNode.removeChild($.parentNode):$.parentNode.removeChild($))}e._window.removeEventListener(`message`,e._onMessage),screenfull.isEnabled&&screenfull.off(`fullscreenchange`,e.fullscreenchangeHandler),t()})}},{key:`getAutopause`,value:function(){return this.get(`autopause`)}},{key:`setAutopause`,value:function(e){return this.set(`autopause`,e)}},{key:`getBuffered`,value:function(){return this.get(`buffered`)}},{key:`getCameraProps`,value:function(){return this.get(`cameraProps`)}},{key:`setCameraProps`,value:function(e){return this.set(`cameraProps`,e)}},{key:`getChapters`,value:function(){return this.get(`chapters`)}},{key:`getCurrentChapter`,value:function(){return this.get(`currentChapter`)}},{key:`getColor`,value:function(){return this.get(`color`)}},{key:`getColors`,value:function(){return npo_src.all([this.get(`colorOne`),this.get(`colorTwo`),this.get(`colorThree`),this.get(`colorFour`)])}},{key:`setColor`,value:function(e){return this.set(`color`,e)}},{key:`setColors`,value:function(e){if(!Array.isArray(e))return new npo_src(function(e,t){return t(TypeError(`Argument must be an array.`))});var t=new npo_src(function(e){return e(null)}),$=[e[0]?this.set(`colorOne`,e[0]):t,e[1]?this.set(`colorTwo`,e[1]):t,e[2]?this.set(`colorThree`,e[2]):t,e[3]?this.set(`colorFour`,e[3]):t];return npo_src.all($)}},{key:`getCuePoints`,value:function(){return this.get(`cuePoints`)}},{key:`getCurrentTime`,value:function(){return this.get(`currentTime`)}},{key:`setCurrentTime`,value:function(e){return this.set(`currentTime`,e)}},{key:`getDuration`,value:function(){return this.get(`duration`)}},{key:`getEnded`,value:function(){return this.get(`ended`)}},{key:`getLoop`,value:function(){return this.get(`loop`)}},{key:`setLoop`,value:function(e){return this.set(`loop`,e)}},{key:`setMuted`,value:function(e){return this.set(`muted`,e)}},{key:`getMuted`,value:function(){return this.get(`muted`)}},{key:`getPaused`,value:function(){return this.get(`paused`)}},{key:`getPlaybackRate`,value:function(){return this.get(`playbackRate`)}},{key:`setPlaybackRate`,value:function(e){return this.set(`playbackRate`,e)}},{key:`getPlayed`,value:function(){return this.get(`played`)}},{key:`getQualities`,value:function(){return this.get(`qualities`)}},{key:`getQuality`,value:function(){return this.get(`quality`)}},{key:`setQuality`,value:function(e){return this.set(`quality`,e)}},{key:`getRemotePlaybackAvailability`,value:function(){return this.get(`remotePlaybackAvailability`)}},{key:`getRemotePlaybackState`,value:function(){return this.get(`remotePlaybackState`)}},{key:`getSeekable`,value:function(){return this.get(`seekable`)}},{key:`getSeeking`,value:function(){return this.get(`seeking`)}},{key:`getTextTracks`,value:function(){return this.get(`textTracks`)}},{key:`getVideoEmbedCode`,value:function(){return this.get(`videoEmbedCode`)}},{key:`getVideoId`,value:function(){return this.get(`videoId`)}},{key:`getVideoTitle`,value:function(){return this.get(`videoTitle`)}},{key:`getVideoWidth`,value:function(){return this.get(`videoWidth`)}},{key:`getVideoHeight`,value:function(){return this.get(`videoHeight`)}},{key:`getVideoUrl`,value:function(){return this.get(`videoUrl`)}},{key:`getVolume`,value:function(){return this.get(`volume`)}},{key:`setVolume`,value:function(e){return this.set(`volume`,e)}},{key:`setTimingSrc`,value:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,$){var ed=this,td;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw TypeError(`A Timing Object must be provided.`);case 2:return e.next=4,this.ready();case 4:return td=new TimingSrcConnector(this,t,$),postMessage$1(this,`notifyTimingObjectConnect`),td.addEventListener(`disconnect`,function(){return postMessage$1(ed,`notifyTimingObjectDisconnect`)}),e.abrupt(`return`,td);case 8:case`end`:return e.stop()}},e,this)}));function t(t,$){return e.apply(this,arguments)}return t}()}]),e}();isNode$1||(screenfull=initializeScreenfull(),initializeEmbeds(),resizeEmbeds(),initAppendVideoMetadata(),checkUrlTimeParam());var require_Youtube=__commonJSMin(((e,t)=>{(function($,ed){if(typeof e==`object`&&t!==void 0){var td=(init_video_es(),__toCommonJS(video_es_exports));t.exports=ed(td.default||td)}else typeof define==`function`&&define.amd?define([`videojs`],function(e){return $.Youtube=ed(e)}):$.Youtube=ed($.videojs)})(e,function(e){var t=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,$=e.getTech(`Tech`);class ed extends ${constructor(e,$){super(e,$),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=` vjs-youtube`,t&&(this.el_.parentNode.className+=` vjs-youtube-mobile`),ed.isApiReady?this.initYTPlayer():ed.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=ed.apiReadyQueue.indexOf(this);e!==-1&&ed.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(` vjs-youtube`,``).replace(` vjs-youtube-mobile`,``),this.el_.parentNode.removeChild(this.el_),$.prototype.dispose.call(this)}createEl(){var e=document.createElement(`div`);e.setAttribute(`id`,this.options_.techId),e.setAttribute(`style`,`width:100%;height:100%;top:0;left:0;position:absolute`),e.setAttribute(`class`,`vjs-tech`);var $=document.createElement(`div`);if($.appendChild(e),!t&&!this.options_.ytControls){var ed=document.createElement(`div`);ed.setAttribute(`class`,`vjs-iframe-blocker`),ed.setAttribute(`style`,`position:absolute;top:0;left:0;width:100%;height:100%`),ed.onclick=function(){this.pause()}.bind(this),$.appendChild(ed)}return $}initYTPlayer(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:+!!this.options_.loop};if(this.options_.autohide!==void 0&&(e.autohide=this.options_.autohide),this.options_.cc_load_policy!==void 0&&(e.cc_load_policy=this.options_.cc_load_policy),this.options_.ytControls!==void 0&&(e.controls=this.options_.ytControls),this.options_.disablekb!==void 0&&(e.disablekb=this.options_.disablekb),this.options_.color!==void 0&&(e.color=this.options_.color),e.controls?this.options_.fs!==void 0&&(e.fs=this.options_.fs):e.fs=0,this.options_.source.src.indexOf(`end=`)!==-1){var t=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(t[1])}if(this.options_.end!==void 0&&(e.end=this.options_.end),this.options_.hl===void 0?this.options_.language!==void 0&&(e.hl=this.options_.language.substr(0,2)):e.hl=this.options_.hl,this.options_.iv_load_policy!==void 0&&(e.iv_load_policy=this.options_.iv_load_policy),this.options_.list===void 0?this.url&&this.url.listId!==void 0&&(e.list=this.url.listId):e.list=this.options_.list,this.options_.listType!==void 0&&(e.listType=this.options_.listType),this.options_.modestbranding!==void 0&&(e.modestbranding=this.options_.modestbranding),this.options_.playlist!==void 0&&(e.playlist=this.options_.playlist),this.options_.playsinline!==void 0&&(e.playsinline=this.options_.playsinline),this.options_.rel!==void 0&&(e.rel=this.options_.rel),this.options_.showinfo!==void 0&&(e.showinfo=this.options_.showinfo),this.options_.source.src.indexOf(`start=`)!==-1){var $=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt($[1])}if(this.options_.start!==void 0&&(e.start=this.options_.start),this.options_.theme!==void 0&&(e.theme=this.options_.theme),this.options_.customVars!==void 0){var ed=this.options_.customVars;
275Object.keys(ed).forEach(function(t){e[t]=ed[t]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var td={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};this.options_.enablePrivacyEnhancedMode!==void 0&&this.options_.enablePrivacyEnhancedMode&&(td.host=`https://www.youtube-nocookie.com`),this.ytPlayer=new YT.Player(this.options_.techId,td)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger(`ratechange`)}onPlayerStateChange(e){var t=e.data;if(!(t===this.lastState||this.errorNumber))switch(this.lastState=t,t){case-1:this.trigger(`loadstart`),this.trigger(`loadedmetadata`),this.trigger(`durationchange`),this.trigger(`ratechange`);break;case YT.PlayerState.ENDED:this.trigger(`ended`);break;case YT.PlayerState.PLAYING:this.trigger(`timeupdate`),this.trigger(`durationchange`),this.trigger(`playing`),this.trigger(`play`),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger(`canplay`),this.isSeeking?this.onSeeked():this.trigger(`pause`);break;case YT.PlayerState.BUFFERING:this.player_.trigger(`timeupdate`),this.player_.trigger(`waiting`);break}}onPlayerVolumeChange(){this.trigger(`volumechange`)}onPlayerError(e){this.errorNumber=e.data,this.trigger(`pause`),this.trigger(`error`)}error(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:`Error while trying to play the video`};case 2:case 100:return{code:e,message:`Unable to find the video`};case 101:case 150:return{code:e,message:`Playback on other Websites has been disabled by the video owner.`}}return{code:e,message:`YouTube unknown error (`+this.errorNumber+`)`}}loadVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(t)}cueVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(t)}src(e){return e&&this.setSrc({src:e}),this.source}poster(){return t?null:this.poster_}setPoster(e){this.poster_=e}setSrc(e){!e||!e.src||(delete this.errorNumber,this.source=e,this.url=ed.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_=`https://img.youtube.com/vi/`+this.url.videoId+`/0.jpg`,this.trigger(`posterchange`),this.checkHighResPoster()),this.options_.autoplay&&!t?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){!this.url||!this.url.videoId||(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger(`waiting`),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger(`timeupdate`),this.trigger(`seeking`),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState!==YT.PlayerState.PAUSED||!this.isSeeking?clearInterval(this.checkSeekedInPauseInterval):this.currentTime()!==this.timeBeforeSeek&&(this.trigger(`timeupdate`),this.onSeeked())}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger(`seeked`)}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:!1}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(e){this.ytPlayer&&this.ytPlayer.setVolume(e*100)}muted(){return this.ytPlayer?this.ytPlayer.isMuted():!1}setMuted(e){if(this.ytPlayer)this.muted(!0);else return;e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger(`volumechange`)},50)}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var e=`https://img.youtube.com/vi/`+this.url.videoId+`/maxresdefault.jpg`;try{var t=new Image;t.onload=function(){if(`naturalHeight`in t){if(t.naturalHeight<=90||t.naturalWi
275dth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger(`posterchange`)}.bind(this),t.onerror=function(){},t.src=e}catch{}}}ed.isSupported=function(){return!0},ed.canPlaySource=function(e){return ed.canPlayType(e.type)},ed.canPlayType=function(e){return e===`video/youtube`},ed.parseUrl=function(e){var t={videoId:null},$=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return $&&$[2].length===11&&(t.videoId=$[2]),$=e.match(/[?&]list=([^#\&\?]+)/),$&&$[1]&&(t.listId=$[1]),t};function td(){YT.ready(function(){ed.isApiReady=!0;for(var e=0;e<ed.apiReadyQueue.length;++e)ed.apiReadyQueue[e].initYTPlayer()})}function nd(e,t){var $=!1,ed=document.createElement(`script`),td=document.getElementsByTagName(`script`)[0];td&&(td.parentNode.insertBefore(ed,td),ed.onload=function(){$||($=!0,t())},ed.onreadystatechange=function(){!$&&(this.readyState===`complete`||this.readyState===`loaded`)&&($=!0,t())},ed.src=e)}function rd(){var e=`.vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }`,t=document.head||document.getElementsByTagName(`head`)[0],$=document.createElement(`style`);$.type=`text/css`,$.styleSheet?$.styleSheet.cssText=e:$.appendChild(document.createTextNode(e)),t.appendChild($)}ed.apiReadyQueue=[],typeof document<`u`&&(nd(`https://www.youtube.com/iframe_api`,td),rd()),e.registerTech===void 0?e.registerComponent(`Youtube`,ed):e.registerTech(`Youtube`,ed)})})),import_Youtube=require_Youtube();(import_js.default||import_js)(videojs);var Video=class{constructor(){let e=document.querySelectorAll(`.js-video-vimeo`),t=document.querySelectorAll(`.js-video-default`);window.addEventListener(`load`,()=>{e.length&&e.forEach(e=>{this.init(e,`vimeo`)}),t.length&&t.forEach(e=>{this.init(e,`default`)})})}init(e,t){let $=null;if(t===`vimeo`){let t={id:e.getAttribute(`data-id`),responsive:!0};$=new Player(e.id,t),$.ready().then(()=>{this.handlePlayerReady(e)})}else{let{youtubeId:t}=e.dataset,ed={controlBar:{children:[`playToggle`,`progressControl`,`volumePanel`,`qualitySelector`,`fullscreenToggle`]}};t&&(ed={techOrder:[`youtube`],sources:[{type:`video/youtube`,src:`https://www.youtube.com/watch?v=${t}`}],youtube:{ytControls:0}}),t&&(window.YT===void 0||window.YT.Player===void 0)?window.onYouTubeIframeAPIReady=()=>{$=videojs(e,ed),$.ready(()=>{this.handlePlayerReady(e)})}:($=videojs(e,ed),$.ready(()=>{this.handlePlayerReady(e)}))}let ed=e.parentElement.querySelector(`.js-video-poster`);ed.addEventListener(`click`,()=>{setTimeout(()=>{ed.style.display=`none`,$.play()},200)}),$.on(`ended`,()=>{t===`vimeo`?$.setCurrentTime(0):$.currentTime(0),ed.style.display=`block`}),document.addEventListener(`video-pause`,()=>{$.pause()})}handlePlayerReady(e){let t=e.parentElement;t.style.paddingBottom=0,t.style.pointerEvents=`initial`,t.querySelector(`.js-video-play-button`).style.display=`flex`,e.style.position=`static`}};window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.fr=jQuery.extend(window.ParsleyConfig.i18n.fr||{},{defaultMessage:`Cette valeur semble non valide.`,type:{email:`Cette valeur n'est pas une adresse email valide.`,url:`Cette valeur n'est pas une URL valide.`,number:`Cette valeur doit être un nombre.`,integer:`Cette valeur doit être un entier.`,digits:`Cette valeur doit être numérique.`,alphanum:`Cette valeur doit être alphanumérique.`},notblank:`Cette valeur ne peut pas être vide.`,required:`Ce champ est requis.`,pattern:`Cette valeur semble non valide.`,min:`Cette valeur ne doit pas être inférieure à %s.`,max:`Cette valeur ne doit pas excéder %s.`,range:`Cette valeur doit être comprise entre %s et %s.`,minlength:`Cette chaîne est trop courte. Elle doit avoir au minimum %s caractères.`,maxlength:`Cette chaîne est trop longue. Elle doit avoir au maximum %s caractères.`,length:`Cette valeur doit contenir entre %s et %s caractères.`,mincheck:`Vous devez sélectionner au moins %s choix.`,maxcheck:`Vous devez sélectionner %s choix maximum.`,check:`Vous devez sélectionner entre %s et %s choix.`,equalto:`Cette valeur devrait être identique.`}),window.ParsleyValidator!==void 0&&window.ParsleyValidator.addCatalog(`fr`,window.ParsleyConfig.i18n.fr,!0),window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.es=jQuery.extend(window.ParsleyConfig.i18n.es||{},{defaultMessage:`Este valor parece ser inválido.`,type:{email:`Este valor debe ser un correo válido.`,url:`Este valor debe ser una URL válida.`,number:`Este valor debe ser un número válido.`,integer:`Este valor debe ser un número válido.`,digits:`Este valor debe ser un dÃgito válido.`,alphanum:`Este valor debe ser alfanumérico.`},notblank:`Este valor no debe estar en blanco.`,required:`Este valor es requerido.`,pattern:`Este valor es incorrecto.`,min:`Este valor no debe ser menor que %s.`,max:`Este valor no debe ser mayor que %s.`,range:`Este valor debe estar entre %s y %s.`,minlength:`Este valor es muy corto. La longitud mÃnima es de %s caracteres.`,maxlength:`Este valor es muy largo. La longitud máxima es de %s caracteres.`,length:`La longitud de este valor debe estar entre %s y %s caracteres.`,mincheck:`Debe seleccionar al menos %s opciones.`,maxcheck:`Debe seleccionar %s opciones o menos.`,check:`Debe seleccionar entre %s y %s opciones.`,equalto:`Este valor debe ser idéntico.`}),window.ParsleyValidator!==void 0&&window.ParsleyValidator.addCatalog(`es`,window.ParsleyConfig.i18n.es,!0),window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.zh_cn=jQuery.extend(window.ParsleyConfig.i18n.zh_cn||{},{defaultMessage:`䏿£ç¡®çå¼`,type:{email:`请è¾å
¥ä¸ä¸ªææççµåé®ç®±å°å`,url:`请è¾å
¥ä¸ä¸ªææç龿¥`,number:`请è¾å
¥æ£ç¡®çæ°å`,integer:`请è¾å
¥æ£ç¡®çæ´æ°`,digits:`请è¾å
¥æ£ç¡®çå·ç `,alphanum:`请è¾å
¥åæ¯ææ°å`},notblank:`请è¾å
¥å¼`,required:`å¿
填项`,pattern:`æ ¼å¼ä¸æ£ç¡®`,min:`è¾å
¥å¼è¯·å¤§äºæçäº %s`,max:`è¾å
¥å¼è¯·å°äºæçäº %s`,range:`è¾å
¥å¼åºè¯¥å¨ %s å° %s ä¹é´`,minlength:`请è¾å
¥è³å° %s 个å符`,maxlength:`请è¾å
¥è³å¤ %s 个å符`,length:`å符é¿åº¦åºè¯¥å¨ %s å° %s ä¹é´`,mincheck:`请è³å°éæ© %s 个é项`,maxcheck:`è¯·éæ©ä¸è¶
è¿ %s 个é项`,check:`è¯·éæ© %s å° %s 个é项`,equalto:`è¾å
¥å¼ä¸å`}),window.ParsleyValidator!==void 0&&window.ParsleyValidator.addCatalog(`zh_cn`,window.ParsleyConfig.i18n.zh_cn,!0),window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.zh_cn=jQuery.extend(window.ParsleyConfig.i18n.zh_cn||{},{dateiso:`请è¾å
¥æ£ç¡®æ ¼å¼çæ¥æ (YYYY-MM-DD).`});var require_parsley=__commonJSMin(((e,t)=>{(function($){typeof define==`function`&&define.amd?define([`jquery`],$):typeof e==`object`?t.exports=$(require_jquery()):$(jQuery)})(function(e){e===void 0&&window.jQuery!==void 0&&(e=window.jQuery);var $=1,ed={},td={attr:function(e,t,$){var ed,td,nd=RegExp(`^`+t,`i`);if($===void 0)$={};else for(var rd in $)$.hasOwnProperty(rd)&&delete $[rd];if(e===void 0||e[0]===void 0)return $;td=e[0].attributes;for(var rd=td.length;rd--;)ed=td[rd],ed&&ed.specified&&nd.test(ed.name)&&($[this.camelize(ed.name.slice(t.length))]=this.deserializeValue(ed.value));return $},checkAttr:function(e,t,$){return e.is(`[`+t+$+`]`)},setAttr:function(e,t,$,ed){e[0].setAttribute(this.dasherize(t+$),Str
275ing(ed))},generateID:function(){return``+ $++},deserializeValue:function(t){var $;try{return t&&(t==`true`||(t==`false`?!1:t==`null`?null:isNaN($=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:$))}catch{return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():``})},dasherize:function(e){return e.replace(/::/g,`/`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).replace(/([a-z\d])([A-Z])/g,`$1_$2`).replace(/_/g,`-`).toLowerCase()},warn:function(){window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)},warnOnce:function(e){ed[e]||(ed[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){ed={}},objectCreate:Object.create||(function(){var e=function(){};return function(t){if(arguments.length>1)throw Error(`Second argument not supported`);if(typeof t!=`object`)throw TypeError(`Argument must be an object`);e.prototype=t;var $=new e;return e.prototype=null,$}})()},nd={namespace:`data-parsley-`,inputs:`input, textarea, select`,excluded:`input[type=button], input[type=submit], input[type=reset], input[type=hidden]`,priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:`first`,trigger:!1,errorClass:`parsley-error`,successClass:`parsley-success`,classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:`<ul class="parsley-errors-list"></ul>`,errorTemplate:`<li></li>`},rd=function(){};rd.prototype={asyncSupport:!1,actualizeOptions:function(){return td.attr(this.$element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){for(var t in this.domOptions=td.objectCreate(this.parent.options),this.options=td.objectCreate(this.domOptions),e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},validateThroughValidator:function(e,t,$){return window.ParsleyValidator.validate(e,t,$)},_listeners:null,on:function(e,t){return this._listeners=this._listeners||{},(this._listeners[e]=this._listeners[e]||[]).push(t),this},subscribe:function(t,$){e.listenTo(this,t.toLowerCase(),$)},off:function(e,t){var $=this._listeners&&this._listeners[e];if($)if(!t)delete this._listeners[e];else for(var ed=$.length;ed--;)$[ed]===t&&$.splice(ed,1);return this},unsubscribe:function(t,$){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t){t||=this;var $=this._listeners&&this._listeners[e],ed;if($){for(var td=$.length;td--;)if(ed=$[td].call(t,t),ed===!1)return ed}return this.parent?this.parent.trigger(e,t):!0},reset:function(){if(this.__class__!==`ParsleyForm`)return this._trigger(`reset`);for(var e=0;e<this.fields.length;e++)this.fields[e]._trigger(`reset`);this._trigger(`reset`)},destroy:function(){if(this.__class__!==`ParsleyForm`){this.$element.removeData(`Parsley`),this.$element.removeData(`ParsleyFieldMultiple`),this._trigger(`destroy`);return}for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData(`Parsley`),this._trigger(`destroy`)},_findRelatedMultiple:function(){return this.parent.$element.find(`[`+this.options.namespace+`multiple="`+this.options.multiple+`"]`)}};var id=(function(){var e={},$=function(e){this.__class__=`Validator`,this.__version__=`1.0.1`,this.options=e||{},this.bindingKey=this.options.bindingKey||`_validatorjsConstraint`};$.prototype={constructor:$,validate:function(e,t,$){if(typeof e!=`string`&&typeof e!=`object`)throw Error(`You must validate an object or a string`);return typeof e==`string`||id(e)?this._validateString(e,t,$):this.isBinded(e)?this._validateBindedObject(e,t):this._validateObject(e,t,$)},bind:function(e,t){if(typeof e!=`object`)throw Error(`Must bind a Constraint to an object`);return e[this.bindingKey]=new ed(t),this},unbind:function(e){return e._validatorjsConstraint===void 0||delete e[this.bindingKey],this},isBinded:function(e){return e[this.bindingKey]!==void 0},getBinded:function(e){return this.isBinded(e)?e[this.bindingKey]:null},_validateString:function(e,t,$){var ed,rd=[];id(t)||(t=[t]);for(var ad=0;ad<t.length;ad++){if(!(t[ad]instanceof nd))throw Error(`You must give an Assert or an Asserts array to validate a string`);ed=t[ad].check(e,$),ed instanceof td&&rd.push(ed)}return rd.length?rd:!0},_validateObject:function(e,t,$){if(typeof t!=`object`)throw Error(`You must give a constraint to validate an object`);return t instanceof ed?t.check(e,$):new ed(t).check(e,$)},_validateBindedObject:function(e,t){return e[this.bindingKey].check(e,t)}},$.errorCode={must_be_a_string:`must_be_a_string`,must_be_an_array:`must_be_an_array`,must_be_a_number:`must_be_a_number`,must_be_a_string_or_array:`must_be_a_string_or_array`};var ed=function(e,t){if(this.__class__=`Constraint`,this.options=t||{},this.nodes={},e)try{this._bootstrap(e)}catch(t){throw Error(`Should give a valid mapping object to Constraint`,t,e)}};ed.prototype={constructor:ed,check:function(e,t){var $,ed={};for(var td in this.nodes){for(var ad=!1,od=this.get(td),sd=id(od)?od:[od],cd=sd.length-1;cd>=0;cd--)if(sd[cd].__class__===`Required`){ad=sd[cd].requiresValidation(t);continue}if(!(!this.has(td,e)&&!this.options.strict&&!ad))try{this.has(td,this.options.strict||ad?e:void 0)||new nd().HaveProperty(td).validate(e),$=this._check(td,e[td],t),(id($)&&$.length>0||!id($)&&!rd($))&&(ed[td]=$)}catch(e){ed[td]=e}}return rd(ed)?!0:ed},add:function(e,t){if(t instanceof nd||id(t)&&t[0]instanceof nd)return this.nodes[e]=t,this;if(typeof t==`object`&&!id(t))return this.nodes[e]=t instanceof ed?t:new ed(t),this;throw Error(`Should give an Assert, an Asserts array, a Constraint`,t)},has:function(e,t){return t=t===void 0?this.nodes:t,t[e]!==void 0},get:function(e,t){return this.has(e)?this.nodes[e]:t||null},remove:function(e){var t=[];for(var $ in this.nodes)$!==e&&(t[$]=this.nodes[$]);return this.nodes=t,this},_bootstrap:function(e){if(e instanceof ed)return this.nodes=e.nodes;for(var t in e)this.add(t,e[t])},_check:function(e,t,$){if(this.nodes[e]instanceof nd)return this._checkAsserts(t,[this.nodes[e]],$);if(id(this.nodes[e]))return this._checkAsserts(t,this.nodes[e],$);if(this.nodes[e]instanceof ed)return this.nodes[e].check(t,$);throw Error(`Invalid node`,this.nodes[e])},_checkAsserts:function(e,t,$){for(var ed,td=[],nd=0;nd<t.length;nd++)ed=t[nd].check(e,$),ed!==void 0&&!0!==ed&&td.push(ed);return td}};var td=function(e,t,$){if(this.__class__=`Violation`,!(e instanceof nd))throw Error(`Should give an assertion implementing the Assert interface`);this.assert=e,this.value=t,$!==void 0&&(this.violation=$)};td.prototype={show:function(){var e={assert:this.assert.__class__,value:this.value};return this.violation&&(e.violation=this.violation),e},__toString:function(){return this.violation!==void 0&&(this.violation=`", `+this.getViolation().constraint+` expected was `+this.getViolation().expected),this.assert.__class__+` assert failed for "`+this.value+this.violation||``},getViolation:function(){var e,t;for(e in this.violation)t=this.violation[e];return{constraint:e,expected:t}}};var nd=function(e){this.__class__=`Assert`,this.__parentClass__=this.__class__,this.groups=[],e!==void 0&&this.addGroup(e)};nd.prototype={construct:nd,requiresValidation:function(e){return!(e&&!this.hasGroup(e)||!e&&this.hasGroups())},check:function(e,t){if(this.requiresValidation(t))try{return this.validate(e,t)}catch(e){return e}},hasGroup:function(e){return id(e)?this.hasOneOf(e):e===`Any`?!0:this.hasGroups()?this.groups.indexOf(e)!==-1:e===`Default`},hasOneOf:function(e){for(var t=0;t<e.length;t++)if(this.hasGroup(e[t]))return!0;return!1},hasGroups:function(){return this.groups.length>0},addGroup:function(e){return id(e)?this.addGroups(e):(this.hasGroup(e)||this.groups.push(e),this)},removeGroup:function(e){for(var t=[],$=0;$<this.groups.length;$++)e!==this.groups[$]&&t.push(this.groups[$]);return this.groups=t,this},addGroups:function(e){for(var t=0;t<e.length;t++)this.addGroup(e[t]);return this},HaveProperty:function(e){return this.__class__=`HaveProperty`,this.node=e,this.validate=function(e){if(e[this.node]===void 0)throw new td(this,e,{value:this.node});return!0},this},Blank:function(){return this.__class__=`Blank`,this.validate=function(e){if(typeof e!=`string`)throw new td(this,e,{value:$.errorCode.must_be_a_string});if(e.replace(/^\s+/g,``).replace(/\s+$/g,``)!==``)throw new td(this,e);return!0},this},Callback:function(e){if(this.__class__=`Callback`,this.arguments=Array.prototype.slice.call(arguments),this.arguments.length===1?this.arguments=[]:this.arguments.splice(0,1),typeof e!=`function`)throw Error(`Callback must be instanciated with a function`);return this.fn=e,this.validate=function(e){var t=this.fn.apply(this,[e].
275concat(this.arguments));if(!0!==t)throw new td(this,e,{result:t});return!0},this},Choice:function(e){if(this.__class__=`Choice`,!id(e)&&typeof e!=`function`)throw Error(`Choice must be instanciated with an array or a function`);return this.list=e,this.validate=function(e){for(var t=typeof this.list==`function`?this.list():this.list,$=0;$<t.length;$++)if(e===t[$])return!0;throw new td(this,e,{choices:t})},this},Collection:function(e){return this.__class__=`Collection`,this.constraint=e===void 0?!1:e instanceof nd?e:new ed(e),this.validate=function(e,t){var ed,nd=new $,ad=0,od={},sd=this.groups.length?this.groups:t;if(!id(e))throw new td(this,e,{value:$.errorCode.must_be_an_array});for(var cd=0;cd<e.length;cd++)ed=this.constraint?nd.validate(e[cd],this.constraint,sd):nd.validate(e[cd],sd),rd(ed)||(od[ad]=ed),ad++;return rd(od)?!0:od},this},Count:function(e){return this.__class__=`Count`,this.count=e,this.validate=function(e){if(!id(e))throw new td(this,e,{value:$.errorCode.must_be_an_array});var t=typeof this.count==`function`?this.count(e):this.count;if(isNaN(Number(t)))throw Error(`Count must be a valid interger`,t);if(t!==e.length)throw new td(this,e,{count:t});return!0},this},Email:function(){return this.__class__=`Email`,this.validate=function(e){var t=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;if(typeof e!=`string`)throw new td(this,e,{value:$.errorCode.must_be_a_string});if(!t.test(e))throw new td(this,e);return!0},this},EqualTo:function(e){if(this.__class__=`EqualTo`,e===void 0)throw Error(`EqualTo must be instanciated with a value or a function`);return this.reference=e,this.validate=function(e){var t=typeof this.reference==`function`?this.reference(e):this.reference;if(t!==e)throw new td(this,e,{value:t});return!0},this},GreaterThan:function(e){if(this.__class__=`GreaterThan`,e===void 0)throw Error(`Should give a threshold value`);return this.threshold=e,this.validate=function(e){if(e===``||isNaN(Number(e)))throw new td(this,e,{value:$.errorCode.must_be_a_number});if(this.threshold>=e)throw new td(this,e,{threshold:this.threshold});return!0},this},GreaterThanOrEqual:function(e){if(this.__class__=`GreaterThanOrEqual`,e===void 0)throw Error(`Should give a threshold value`);return this.threshold=e,this.validate=function(e){if(e===``||isNaN(Number(e)))throw new td(this,e,{value:$.errorCode.must_be_a_number});if(this.threshold>e)throw new td(this,e,{threshold:this.threshold});return!0},this},InstanceOf:function(e){if(this.__class__=`InstanceOf`,e===void 0)throw Error(`InstanceOf must be instanciated with a value`);return this.classRef=e,this.validate=function(e){if(e instanceof this.classRef!=1)throw new td(this,e,{classRef:this.classRef});return!0},this},Length:function(e){if(this.__class__=`Length`,!e.min&&!e.max)throw Error(`Lenth assert must be instanciated with a { min: x, max: y } object`);return this.min=e.min,this.max=e.max,this.validate=function(e){if(typeof e!=`string`&&!id(e))throw new td(this,e,{value:$.errorCode.must_be_a_string_or_array});if(this.min!==void 0&&this.min===this.max&&e.length!==this.min)throw new td(this,e,{min:this.min,max:this.max});if(this.max!==void 0&&e.length>this.max)throw new td(this,e,{max:this.max});if(this.min!==void 0&&e.length<this.min)throw new td(this,e,{min:this.min});return!0},this},LessThan:function(e){if(this.__class__=`LessThan`,e===void 0)throw Error(`Should give a threshold value`);return this.threshold=e,this.validate=function(e){if(e===``||isNaN(Number(e)))throw new td(this,e,{value:$.errorCode.must_be_a_number});if(this.threshold<=e)throw new td(this,e,{threshold:this.threshold});return!0},this},LessThanOrEqual:function(e){if(this.__class__=`LessThanOrEqual`,e===void 0)throw Error(`Should give a threshold value`);return this.threshold=e,this.validate=function(e){if(e===``||isNaN(Number(e)))throw new td(this,e,{value:$.errorCode.must_be_a_number});if(this.threshold<e)throw new td(this,e,{threshold:this.threshold});return!0},this},NotNull:function(){return this.__class__=`NotNull`,this.validate=function(e){if(e==null)throw new td(this,e);return!0},this},NotBlank:function(){return this.__class__=`NotBlank`,this.validate=function(e){if(typeof e!=`string`)throw new td(this,e,{value:$.errorCode.must_be_a_string});if(e.replace(/^\s+/g,``).replace(/\s+$/g,``)===``)throw new td(this,e);return!0},this},Null:function(){return this.__class__=`Null`,this.validate=function(e){if(e!==null)throw new td(this,e);return!0},this},Range:function(e,t){if(this.__class__=`Range`,e===void 0||t===void 0)throw Error(`Range assert expects min and max values`);return this.min=e,this.max=t,this.validate=function(e){try{return typeof e==`string`&&isNaN(Number(e))||id(e)?new nd().Length({min:this.min,max:this.max}).validate(e):new nd().GreaterThanOrEqual(this.min).validate(e)&&new nd().LessThanOrEqual(this.max).validate(e),!0}catch(t){throw new td(this,e,t.violation)}return!0},this},Regexp:function(e,t){if(this.__class__=`Regexp`,e===void 0)throw Error(`You must give a regexp`);return this.regexp=e,this.flag=t||``,this.validate=function(e){if(typeof e!=`string`)throw new td(this,e,{value:$.errorCode.must_be_a_string});if(!new RegExp(this.regexp,this.flag).test(e))throw new td(this,e,{regexp:this.regexp,flag:this.flag});return!0},this},Required:function(){return this.__class__=`Required`,this.validate=function(e){if(e===void 0)throw new td(this,e);try{typeof e==`string`?new nd().NotNull().validate(e)&&new nd().NotBlank().validate(e):!0===id(e)&&new nd().Length({min:1}).validate(e)}catch{throw new td(this,e)}return!0},this},Unique:function(e){return this.__class__=`Unique`,typeof e==`object`&&(this.key=e.key),this.validate=function(e){var t,ed=[];if(!id(e))throw new td(this,e,{value:$.errorCode.must_be_an_array});for(var nd=0;nd<e.length;nd++)if(t=typeof e[nd]==`object`?e[nd][this.key]:e[nd],t!==void 0){if(ed.indexOf(t)!==-1)throw new td(this,e,{value:t});ed.push(t)}return!0},this}},e.Assert=nd,e.Validator=$,e.Violation=td,e.Constraint=ed,Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(this===null)throw TypeError();var t=Object(this),$=t.length>>>0;if($===0)return-1;var ed=0;if(arguments.length>1&&(ed=Number(arguments[1]),ed==ed?ed!==0&&ed!=1/0&&ed!=-1/0&&(ed=(ed>0||-1)*Math.floor(Math.abs(ed))):ed=0),ed>=$)return-1;for(var td=ed>
275=0?ed:Math.max($-Math.abs(ed),0);td<$;td++)if(td in t&&t[td]===e)return td;return-1});var rd=function(e){for(var t in e)return!1;return!0},id=function(e){return Object.prototype.toString.call(e)===`[object Array]`};return typeof define==`function`&&define.amd?define(`vendors/validator.js/dist/validator`,[],function(){return e}):t!==void 0&&t.exports?t.exports=e:window[typeof validatorjs_ns<`u`?validatorjs_ns:`Validator`]=e,e})();id=id===void 0?t===void 0?null:t.exports:id;var ad=function(e,t){this.__class__=`ParsleyValidator`,this.Validator=id,this.locale=`en`,this.init(e||{},t||{})};ad.prototype={init:function(t,$){for(var ed in this.catalog=$,this.validators=e.extend({},this.validators),t)this.addValidator(ed,t[ed].fn,t[ed].priority,t[ed].requirementsTransformer);window.Parsley.trigger(`parsley:validator:init`)},setLocale:function(e){if(this.catalog[e]===void 0)throw Error(e+` is not available in the catalog`);return this.locale=e,this},addCatalog:function(e,t,$){return typeof t==`object`&&(this.catalog[e]=t),!0===$?this.setLocale(e):this},addMessage:function(e,t,$){return this.catalog[e]===void 0&&(this.catalog[e]={}),this.catalog[e][t.toLowerCase()]=$,this},validate:function(e,t,$){return new this.Validator.Validator().validate.apply(new id.Validator,arguments)},addValidator:function(e,t,$,ed){if(this.validators[e])td.warn(`Validator "`+e+`" is already defined.`);else if(nd.hasOwnProperty(e)){td.warn(`"`+e+`" is a restricted keyword and is not a valid validator name.`);return}return this._setValidator(e,t,$,ed)}
275,updateValidator:function(e,t,$,ed){return this.validators[e]?this._setValidator(e,t,$,ed):(td.warn(`Validator "`+e+`" is not already defined.`),this.addValidator(e,t,$,ed))},removeValidator:function(e){return this.validators[e]||td.warn(`Validator "`+e+`" is not defined.`),delete this.validators[e],this},_setValidator:function(t,$,ed,td){return this.validators[t]=function(t){return e.extend(new id.Assert().Callback($,t),{priority:ed,requirementsTransformer:td})},this},getErrorMessage:function(e){return(e.name===`type`?(this.catalog[this.locale][e.name]||{})[e.requirements]:this.formatMessage(this.catalog[this.locale][e.name],e.requirements))||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if(typeof t==`object`){for(var $ in t)e=this.formatMessage(e,t[$]);return e}return typeof e==`string`?e.replace(RegExp(`%s`,`i`),t):``},validators:{notblank:function(){return e.extend(new id.Assert().NotBlank(),{priority:2})},required:function(){return e.extend(new id.Assert().Required(),{priority:512})},type:function(t){var $;switch(t){case`email`:$=new id.Assert().Email();break;case`range`:case`number`:$=new id.Assert().Regexp(`^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)?(?:\\.\\d+)?$`);break;case`integer`:$=new id.Assert().Regexp(`^-?\\d+$`);break;case`digits`:$=new id.Assert().Regexp(`^\\d+$`);break;case`alphanum`:$=new id.Assert().Regexp(`^\\w+$`,`i`);break;case`url`:$=new id.Assert().Regexp(`^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$`,`i`);break;default:throw Error("validator type `"+t+"` is not supported")}return e.extend($,{priority:256})},pattern:function(t){var $=``;return/^\/.*\/(?:[gimy]*)$/.test(t)&&($=t.replace(/.*\/([gimy]*)$/,`$1`),t=t.replace(RegExp(`^/(.*?)/`+$+`$`),`$1`)),e.extend(new id.Assert().Regexp(t,$),{priority:64})},minlength:function(t){return e.extend(new id.Assert().Length({min:t}),{priority:30,requirementsTransformer:function(){return typeof t==`string`&&!isNaN(t)?parseInt(t,10):t}})},maxlength:function(t){return e.extend(new id.Assert().Length({max:t}),{priority:30,requirementsTransformer:function(){return typeof t==`string`&&!isNaN(t)?parseInt(t,10):t}})},length:function(t){return e.extend(new id.Assert().Length({min:t[0],max:t[1]}),{priority:32})},mincheck:function(e){return this.minlength(e)},maxcheck:function(e){return this.maxlength(e)},check:function(e){return this.length(e)},min:function(t){return e.extend(new id.Assert().GreaterThanOrEqual(t),{priority:30,requirementsTransformer:function(){return typeof t==`string`&&!isNaN(t)?parseInt(t,10):t}})},max:function(t){return e.extend(new id.Assert().LessThanOrEqual(t),{priority:30,requirementsTransformer:function(){return typeof t==`string`&&!isNaN(t)?parseInt(t,10):t}})},range:function(t){return e.extend(new id.Assert().Range(t[0],t[1]),{priority:32,requirementsTransformer:function(){for(var e=0;e<t.length;e++)t[e]=typeof t[e]==`string`&&!isNaN(t[e])?parseInt(t[e],10):t[e];return t}})},equalto:function(t){return e.extend(new id.Assert().EqualTo(t),{priority:256,requirementsTransformer:function(){return e(t).length?e(t).val():t}})}}};var od=function(e){this.__class__=`ParsleyUI`};od.prototype={listen:function(){var e=this;return window.Parsley.on(`form:init`,function(){e.setupForm(this)}).on(`field:init`,function(){e.setupField(this)}).on(`field:validated`,function(){e.reflow(this)}).on(`form:validated`,function(){e.focus(this)}).on(`field:reset`,function(){e.reset(this)}).on(`form:destroy`,function(){e.destroy(this)}).on(`field:destroy`,function(){e.destroy(this)}),this},reflow:function(e){if(!(e._ui===void 0||!1===e._ui.active)){var t=this._diff(e.validationResult,e._ui.lastValidationResult);e._ui.lastValidationResult=e.validationResult,e._ui.validatedOnce=!0,this.manageStatusClass(e),this.manageErrorsMessages(e,t),this.actualizeTriggers(e),(t.kept.length||t.added.length)&&!0!==e._ui.failedOnce&&this.manageFailingFieldTrigger(e)}},getErrorsMessages:function(e){if(!0===e.validationResult)return[];for(var t=[],$=0;$<e.validationResult.length;$++)t.push(this._getErrorMessage(e,e.validationResult[$].assert));return t},manageStatusClass:function(e){e.hasConstraints()&&e.needsValidation()&&
275!0===e.validationResult?this._successClass(e):e.validationResult.length>0?this._errorClass(e):this._resetClass(e)},manageErrorsMessages:function(t,$){if(t.options.errorsMessagesDisabled===void 0){if(t.options.errorMessage!==void 0)return $.added.length||$.kept.length?(this._insertErrorWrapper(t),t._ui.$errorsWrapper.find(`.parsley-custom-error-message`).length===0&&t._ui.$errorsWrapper.append(e(t.options.errorTemplate).addClass(`parsley-custom-error-message`)),t._ui.$errorsWrapper.addClass(`filled`).find(`.parsley-custom-error-message`).html(t.options.errorMessage)):t._ui.$errorsWrapper.removeClass(`filled`).find(`.parsley-custom-error-message`).remove();for(var ed=0;ed<$.removed.length;ed++)this.removeError(t,$.removed[ed].assert.name,!0);for(ed=0;ed<$.added.length;ed++)this.addError(t,$.added[ed].assert.name,void 0,$.added[ed].assert,!0);for(ed=0;ed<$.kept.length;ed++)this.updateError(t,$.kept[ed].assert.name,void 0,$.kept[ed].assert,!0)}},addError:function(t,$,ed,td,nd){this._insertErrorWrapper(t),t._ui.$errorsWrapper.addClass(`filled`).append(e(t.options.errorTemplate).addClass(`parsley-`+$).html(ed||this._getErrorMessage(t,td))),!0!==nd&&this._errorClass(t)},updateError:function(e,t,$,ed,td){e._ui.$errorsWrapper.addClass(`filled`).find(`.parsley-`+t).html($||this._getErrorMessage(e,ed)),!0!==td&&this._errorClass(e)},removeError:function(e,t,$){e._ui.$errorsWrapper.removeClass(`filled`).find(`.parsley-`+t).remove(),!0!==$&&this.manageStatusClass(e)},focus:function(e){if(e._focusedField=null,!0===e.validationResult||e.options.focus===`none`)return null;for(var t=0;t<e.fields.length;t++){var $=e.fields[t];if(!0!==$.validationResult&&$.validationResult.length>0&&$.options.noFocus===void 0&&(e._focusedField=$.$element,e.options.focus===`first`))break}return e._focusedField===null?null:e._focusedField.focus()},_getErrorMessage:function(e,t){var $=t.name+`Message`;return e.options[$]===void 0?window.ParsleyValidator.getErrorMessage(t):window.ParsleyValidator.formatMessage(e.options[$],t.requirements)},_diff:function(e,t,$){for(var ed=[],td=[],nd=0;nd<e.length;nd++){for(var rd=!1,id=0;id<t.length;id++)if(e[nd].assert.name===t[id].assert.name){rd=!0;break}rd?td.push(e[nd]):ed.push(e[nd])}return{kept:td,added:ed,removed:$?[]:this._diff(t,e,!0).added}},setupForm:function(t){t.$element.on(`submit.Parsley`,!1,e.proxy(t.onSubmitValidate,t)),!1!==t.options.uiEnabled&&t.$element.attr(`novalidate`,``)},setupField:function(t){var $={active:!1};!1!==t.options.uiEnabled&&($.active=!0,t.$element.attr(t.options.namespace+`id`,t.__id__),$.$errorClassHandler=this._manageClassHandler(t),$.errorsWrapperId=`parsley-id-`+(t.options.multiple?`multiple-`+t.options.multiple:t.__id__),$.$errorsWrapper=e(t.options.errorsWrapper).attr(`id`,$.errorsWrapperId),$.lastValidationResult=[],$.validatedOnce=!1,$.validationInformationVisible=!1,t._ui=$,this.actualizeTriggers(t))},_manageClassHandler:function(t){if(typeof t.options.classHandler==`string`&&e(t.options.classHandler).length)return e(t.options.classHandler);var $=t.options.classHandler(t);return $!==void 0&&$.length?$:!t.options.multiple||t.$element.is(`select`)?t.$element:t.$element.parent()},_insertErrorWrapper:function(t){var $;if(t._ui.$errorsWrapper.parent().length!==0)return t._ui.$errorsWrapper.parent();if(typeof t.options.errorsContainer==`string`){if(e(t.options.errorsContainer).length)return e(t.options.errorsContainer).append(t._ui.$errorsWrapper);td.warn("The errors container `"+t.options.errorsContainer+"` does not exist in DOM")}else typeof t.options.errorsContainer==`function`&&($=t.options.errorsContainer(t));if($!==void 0&&$.length)return $.append(t._ui.$errorsWrapper);var ed=t.$element;return t.options.multiple&&(ed=ed.parent()),ed.after(t._ui.$errorsWrapper)},actualizeTriggers:function(t){var $=t.$element;if(t.options.multiple&&($=e(`[`+t.options.namespace+`multiple="`+t.options.multiple+`"]`)),$.off(`.Parsley`),!1!==t.options.trigger){var ed=t.options.trigger.replace(/^\s+/g,``).replace(/\s+$/g,``);ed!==``&&$.on(ed.split(` `).join(`.Parsley `)+`.Parsley`,e.proxy(typeof t.eventValidate==`function`?t.eventValidate:this.eventValidate,t))}},eventValidate:function(e){RegExp(`key`).test(e.type)&&!this._ui.validationInformationVisible&&this.getValue().length<=this.options.validationThreshold||(this._ui.validatedOnce=!0,this.validate())},manageFailingFieldTrigger:function(t){if(t._ui.failedOnce=!0,t.options.multiple&&e(`[`+t.options.namespace+`multiple="`+t.options.multiple+`"]`).each(function(){if(!RegExp(`change`,`i`).test(e(this).parsley().options.trigger||``))return e(this).on(`change.ParsleyFailedOnce`,!1,e.proxy(t.validate,t))}),t.$element.is(`select`)&&!RegExp(`change`,`i`).test(t.options.trigger||``))return t.$element.on(`change.ParsleyFailedOnce`,!1,e.proxy(t.validate,t));if(!RegExp(`keyup`,`i`).test(t.options.trigger||``))return t.$element.on(`keyup.ParsleyFailedOnce`,!1,e.proxy(t.validate,t))},reset:function(e){this.actualizeTriggers(e),e.$element.off(`.ParsleyFailedOnce`),e._ui!==void 0&&e.__class__!==`ParsleyForm`&&(e._ui.$errorsWrapper.removeClass(`filled`).children().remove(),this._resetClass(e),e._ui.val
275idatedOnce=!1,e._ui.lastValidationResult=[],e._ui.validationInformationVisible=!1,e._ui.failedOnce=!1)},destroy:function(e){this.reset(e),e.__class__!==`ParsleyForm`&&(e._ui!==void 0&&e._ui.$errorsWrapper.remove(),delete e._ui)},_successClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.errorClass).addClass(e.options.successClass)},_errorClass:function(e){e._ui.validationInformationVisible=!0,e._ui.$errorClassHandler.removeClass(e.options.successClass).addClass(e.options.errorClass)},_resetClass:function(e){e._ui.$errorClassHandler.removeClass(e.options.successClass).removeClass(e.options.errorClass)}};var sd=function(t,$,ed){this.__class__=`ParsleyForm`,this.__id__=td.generateID(),this.$element=e(t),this.domOptions=$,this.options=ed,this.parent=window.Parsley,this.fields=[],this.validationResult=null};sd.prototype={onSubmitValidate:function(t){return this.validate(void 0,void 0,t),(!1===this.validationResult||!this._trigger(`submit`))&&t instanceof e.Event&&(t.stopImmediatePropagation(),t.preventDefault()),this},validate:function(e,t,$){this.submitEvent=$,this.validationResult=!0;var ed=[];return this._trigger(`validate`),this._refreshFields(),this._withoutReactualizingFormOptions(function(){for(var $=0;$<this.fields.length;$++)e&&!this._isFieldInGroup(this.fields[$],e)||(ed=this.fields[$].validate(t),!0!==ed&&ed.length>0&&this.validationResult&&(this.validationResult=!1))}),this._trigger(this.validationResult?`success`:`error`),this._trigger(`validated`),this.validationResult},isValid:function(e,t){return this._refreshFields(),this._withoutReactualizingFormOptions(function(){for(var $=0;$<this.fields.length;$++)if(!(e&&!this._isFieldInGroup(this.fields[$],e))&&!1===this.fields[$].isValid(t))return!1;return!0})},_isFieldInGroup:function(t,$){return e.isArray(t.options.group)?e.inArray($,t.options.group)!==-1:t.options.group===$},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,$=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){this.$element.find(this.options.inputs).not(this.options.excluded).each(function(){var e=new _d.Factory(this,{},t);(e.__class__===`ParsleyField`||e.__class__===`ParsleyFieldMultiple`)&&!0!==e.options.excluded&&t.fieldsMappedById[e.__class__+`-`+e.__id__]===void 0&&(t.fieldsMappedById[e.__class__+`-`+e.__id__]=e,t.fields.push(e))}),e($).not(t.fields).each(function(){this._trigger(`reset`)})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var $=e.call(this);return this.actualizeOptions=t,$},_trigger:function(e){return e=`form:`+e,this.trigger.apply(this,arguments)}};var cd=function(t,$,ed,nd,rd){var id={};if(!RegExp(`ParsleyField`).test(t.__class__))throw Error(`ParsleyField or ParsleyFieldMultiple instance expected`);if(typeof window.ParsleyValidator.validators[$]==`function`&&(id=window.ParsleyValidator.validators[$](ed)),id.__parentClass__!==`Assert`)throw Error(`Valid validator expected`);return nd||=function(){return t.options[$+`Priority`]===void 0?id.priority||2:t.options[$+`Priority`]}(),typeof id.requirementsTransformer==`function`&&(ed=id.requirementsTransformer(),id=window.ParsleyValidator.validators[$](ed)),e.extend(id,{name:$,requirements:ed,priority:nd,groups:[nd],isDomConstraint:rd||td.checkAttr(t.$element,t.options.namespace,$)})},ld=function(t,$,ed,nd){this.__class__=`ParsleyField`,this.__id__=td.generateID(),this.$element=e(t),nd!==void 0&&(this.parent=nd),this.options=ed,this.domOptions=$,this.constraints=[],this.constraintsByName={},this.validationResult=[],this._bindConstraints()};ld.prototype={validate:function(e){return this.value=this.getValue(),this._trigger(`validate`),this._trigger(this.isValid(e,this.value)?`success`:`error`),this._trigger(`validated`),this.validationResult},hasConstraints:function(){return this.constraints.length!==0},needsValidation:function(e){return e===void 0&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&this.options.validateIfEmpty===void 0)},isValid:function(e,t){if(this.refreshConstraints(),this.validationResult=!0,!this.hasConstraints()||(t??=this.getValue(),!this.needsValidation(t)&&!0!==e))return!0;var $=[`Any`];!1!==this.options.priorityEnabled&&($=this._getConstraintsSortedPriorities());for(var ed=0;ed<$.length;ed++)if(!0!==(this.validationResult=this.validateThroughValidator(t,this.constraints,$[ed])))return!1;return!0},getValue:function(){var e=typeof this.options.value==`function`?this.options.value(this):this.options.value===void 0?this.$element.val():this.options.value;return e==null?``:!0===this.options.trimValue?e.replace(/^\s+|\s+$/g,``):e},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,$,ed){if(typeof window.ParsleyValidator.validators[e]==`function`){var td=new cd(this,e,t,$,ed);this.constraintsByName[td.name]!==`undefined`&&this.removeConstraint(td.name),this.constraints.push(td),this.constraintsByName[td.name]=td}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,$){return this.removeConstraint(e).addConstraint(e,t,$)},_bindConstraints:function(){for(var e=[],t={},$=0;$<this.constraints.length;$++)!1===this.constraints[$].isDomConstraint&&(e.push(this.constraints[$]),t[this.constraints[$].name]=this.constraints[$]);for(var ed in this.constraints=e,this.constraintsByName=t,this.options)this.addConstraint(ed,this.options[ed]);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){(this.$element.hasClass(`required`)||this.$element.attr(`required`))&&this.addConstraint(`required`,!0,void 0,!0),typeof this.$element.attr(`pattern`)==`string`&&this.addConstraint(`pattern`,this.$element.attr(`pattern`),void 0,!0),this.$element.attr(`min`)!==void 0&&this.$element.attr(`max`)!==void 0?this.addConstraint(`range`,[this.$element.attr(`min`),this.$element.attr(`max`)],void 0,!0):this.$element.attr(`min`)===void 0?this.$element.attr(`max`)!==void 0&&this.addConstraint(`max`,this.$element.attr(`max`),void 0,!0):this.addConstraint(`min`,this.$element.attr(`min`),void 0,!0),this.$element.attr(`minlength`)!==void 0&&this.$element.attr(`maxlength`)!==void 0?this.addConstraint(`length`,[this.$element.attr(`minlength`),this.$element.attr(`maxlength`)],void 0,!0):this.$element.attr(`minlength`)===void 0?this.$element.attr(`maxlength`)!==void 0&&this.addConstraint(`maxlength`,this.$element.attr(`maxlength`),void 0,!0):this.addConstraint(`minlength`,this.$element.attr(`minlength`),void 0,!0);var e=this.$element.attr(`type`);return e===void 0?this:e===`number`?this.$element.attr(`step`)===void 0||parseFloat(this.$element.attr(`step`))%1==0?this.addConstraint(`type`,`integer`,void 0,!0):this.addConstraint(`type`,`number`,void 0,!0):/^(email|url|range)$/i.test(e)?this.addConstraint(`type`,e,void 0,!0):this},_isRequired:function(){return this.constraintsByName.required===void 0?!1:!1!==this.constraintsByName.required.requirements},_trigger:function(e){return e=`field:`+e,this.trigger.apply(this,arguments)},_getConstraintsSortedPriorities:function(){for(var e=[],t=0;t<this.constraints.length;t++)e.indexOf(this.constraints[t].priority)===-1&&e.push(this.constraints[t].priority);return e.sort(function(e,t){return t-e}),e}};var ud=function(){this.__class__=`ParsleyFieldMultiple`};ud.prototype={addElement:function(e){return this.$elements.push(e),this},refreshConstraints:function(){var t;if(this.constraints=[],this.$element.is(`select`))return this.actualizeOptions()._bindConstraints(),this;for(var $=0;$<this.$elements.length;$++){if(!e(`html`).has(this.$elements[$]).length){this.$elements.splice($,1);continue}t=this.$elements[$].data(`ParsleyFieldMultiple`).refreshConstraints().constraints;for(var ed=0;ed<t.length;ed++)this.addConstraint(t[ed].name,t[ed].requirements,t[ed].priority,t[ed].isDomConstraint)}return this},getValue:function(){if(this.options.value!==void 0)return this.options.value;if(this.$element.is(`input[type=radio]`))return this._findRelatedMultiple().filter(`:checked`).val()||``;if(this.$element.is(`input[type=checkbox]`)){var t=[];return this._findRelatedMultiple().filter(`:checked`).each(function(){t.push(e(this).val())}),t}return this.$element.is(`select`)&&this.$element.val()===null?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var dd=function(t,$,ed){this.$element=e(t);var td=this.$element.data(`Parsley`);if(td)return ed!==void 0&&td.parent===window.Parsley&&(td.parent=ed,td._resetOptions(td.options)),td;if(!this.$element.length)throw Error(`You must bind Parsley on an existing element.`);if(ed!==void 0&&ed.__class__!==`ParsleyForm`)throw Error(`Parent instance must be a ParsleyForm instance`);return this.parent=ed||window.Parsley,this.init($)};dd.prototype={init:function(e){return this.__class__=`Parsley`,this.__version__=`2.1.2`,this.__id__=td.generateID(),this._resetOptions(e),this.$element.is(`form`)||td.checkAttr(this.$element,this.options.namespace,`validate`)&&!this.$element.is(this.options.inputs)?this.bind(`parsleyForm`):this.isMultiple()?this.handleMultiple():this.bind(`parsleyField`)},isMultiple:function(){return this.$element.is(`input[type=radio], input[type=checkbox]`)||this.$element.is(`select`)&&this.$element.attr(`multiple`)!==void 0},handleMultiple:function(){var t=this,$,ed;if(this.options.multiple||(this.$element.attr(`name`)!==void 0&&this.$element.attr(`name`).length?this.options.multiple=$=this.$element.attr(`name`):this.$element.attr(`id`)!==void 0&&this.$element.attr(`id`).length&&(this.options.multiple=this.$element.attr(`id`))),this.$element.is(`select`)&&this.$element.attr(`multiple`)!==void 0)return this.options.multiple=this.options.multiple||this.__id__,this.bind(`parsleyFieldMultiple`);if(!this.options.multiple)return td.warn(`To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.`,this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,``),$!==void 0&&e(`input[name="`+$+`"]`).each(function(){e(this).is(`input[type=radio], input[type=checkbox]`)&&e(this).attr(t.options.namespace+`multiple`,t.options.multiple)});for(var nd=this._findRelatedMultiple(),rd=0;rd<nd.length;rd++)if(ed=e(nd.get(rd)).data(`Parsley`),ed!==void 0){this.$element.data(`ParsleyFieldMultiple`)||ed.addElement(this.$element);break}return this.bind(`parsleyField`,!0),ed||this.bind(`parsleyFieldMultiple`)},bind:function(t,$){var ed;switch(t){case`parsleyForm`:ed=e.extend(new sd(this.$element,this.domOptions,this.options),window.ParsleyExtend)._bindFields();break;case`parsleyField`:ed=e.extend(new ld(this.$element,this.domOptions,this.options,this.parent),window.ParsleyExtend);break;case`parsleyFieldMultiple`:ed=e.extend(new ld(this.$element,this.domOptions,this.options,this.parent),new ud,window.ParsleyExtend)._init();break;default:throw Error(t+`is not a supported Parsley type`)}return this.options.multiple&&td.setAttr(this.$element,this.options.namespace,`multiple`,this.options.multiple),$===void 0?(this.$element.data(`Parsley`,ed),ed._trigger(`init`),ed):(this.$element.data(`ParsleyFieldMultiple`,ed),ed)}};var fd=e({}),pd=function(){td.warnOnce(`Parsley's pubsub module is deprecated; use the corresponding jQuery event method instead`)};function md(e,t){return e.parsleyAdaptedCallback||=function(){var $=Array.prototype.slice.call(arguments,0);$.unshift(this),e.apply(t||fd,$)},e.parsleyAdaptedCallback}var hd=`parsley:`;function gd(e){return e.lastIndexOf(hd,0)===0?e.substr(hd.length):e}e.listen=function(e,t){var $;if(pd(),typeof arguments[1]==`object`&&typeof arguments[2]==`function`&&($=arguments[1],t=arguments[2]),typeof arguments[1]!=`function`)throw Error(`Wrong parameters`);window.Parsley.on(gd(e),md(t,$))},e.listenTo=function(e,t,$){if(pd(),!(e instanceof ld)&&!(e instanceof sd))throw Error(`Must give Parsley instance`);if(typeof t!=`string`||typeof $!=`function`)throw Error(`Wrong parameters`);e.on(gd(t),md($))},e.unsubscribe=function(e,t){if(pd(),typeof e!=`string`||typeof t!=`function`)throw Error(`Wrong arguments`);window.Parsley.off(gd(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(pd(),!(e instanceof ld)&&!(e instanceof sd))throw Error(`Must give Parsley instance`);e.off(gd(t))},e.unsubscribeAll=function(t){pd(),window.Parsley.off(gd(t)),e(`form,input,textarea,select`).each(function(){var $=e(this).data(`Parsley`);$&&$.off(gd(t))})},e.emit=function(e,t){pd();var $=t instanceof ld||t instanceof sd,ed=Array.prototype.slice.call(arguments,$?2:1);ed.unshift(gd(e)),$||(t=window.Parsley),t.trigger.apply(t,ed)},window.ParsleyConfig=window.ParsleyConfig||{},window.ParsleyConfig.i18n=window.ParsleyConfig.i18n||{},window.ParsleyConfig.i18n.en=jQuery.extend(window.ParsleyConfig.i18n.en||{},{defaultMessage:`This value seems to be invalid.`,type:{email:`This value should be a valid email.`,url:`This value should be a valid url.`,number:`This value should be a valid number.`,integer:`This value should be a valid integer.`,digits:`This value should be digits.`,alphanum:`This value should be alphanumeric.`},notblank:`This value should not be blank.`,required:`This value is required.`,pattern:`This value seems to be invalid.`,min:`This value should be greater than or equal to %s.`,max:`This value should be lower than or equal to %s.`,range:`This value should be between %s and %s.`,minlength:`This value is too short. It should have %s characters or more.`,maxlength:`This value is too long. It should have %s characters or fewer.`,length:`This value length is invali
275d. It should be between %s and %s characters long.`,mincheck:`You must select at least %s choices.`,maxcheck:`You must select %s choices or fewer.`,check:`You must select between %s and %s choices.`,equalto:`This value should be the same.`}),window.ParsleyValidator!==void 0&&window.ParsleyValidator.addCatalog(`en`,window.ParsleyConfig.i18n.en,!0);var _d=e.extend(new rd,{$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:dd,version:`2.1.2`});e.extend(ld.prototype,rd.prototype),e.extend(sd.prototype,rd.prototype),e.extend(dd.prototype,rd.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var $=[];return this.each(function(){$.push(e(this).parsley(t))}),$}if(!e(this).length){td.warn(`You must bind Parsley on an existing element.`);return}return new dd(this,t)},window.ParsleyExtend===void 0&&(window.ParsleyExtend={}),_d.options=e.extend(td.objectCreate(nd),window.ParsleyConfig),window.ParsleyConfig=_d.options,window.Parsley=window.psly=_d,window.ParsleyUtils=td,window.ParsleyValidator=new ad(window.ParsleyConfig.validators,window.ParsleyConfig.i18n),window.ParsleyUI=typeof window.ParsleyConfig.ParsleyUI==`function`?new window.ParsleyConfig.ParsleyUI().listen():new od().listen(),!1!==window.ParsleyConfig.autoBind&&e(function(){e(`[data-parsley-validate]`).length&&e(`[data-parsley-validate]`).parsley()})})})),import_parsley=require_parsley(),DEFAULT_LOCALE=`fr`,VALIDATION_LOCALE=global_default.lang===`zh`?`zh_cn`:global_default.lang;try{window.ParsleyValidator.setLocale(VALIDATION_LOCALE)}catch{window.ParsleyValidator.setLocale(DEFAULT_LOCALE)}var DEFAULT_SELECTOR$11=`.js-validation`,DEFAULT_OPTIONS$1={namespace:`data-validation-`,priorityEnabled:!0,uiEnabled:!0,focus:`first`,trigger:!1,successClass:``,errorClass:`is-error`,validationThreshold:0,classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:`<div class="alert alert--danger alert--parsley u-text-small"></div>`,errorTemplate:`<p></p>`},validation_default=class{constructor(e,t){this.element=e||DEFAULT_SELECTOR$11,this.options=Object.assign({},DEFAULT_OPTIONS$1,t),this.init(),this.listen()}init(){this.api=this.element.parsley(this.options)}listen(){this.api.on(`form:error`,(...e)=>{this.onFormError(...e)}),this.api.on(`form:success`,(...e)=>{this.onFormSuccess(...e)})}onFormError(e){}onFormSuccess(e){}},DEFAULT_SELECTOR$10=`.js-collapse`,collapse_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$10,this.init()}init(){this.element.find(`.js-collapse-details`).hide(),this.element.find(`.js-collapse-hide`).hide(),this.element.find(`.js-collapse-trigger`).on(`click`,e=>{this.element.find(`.js-collapse-details`).toggle(),this.element.find(`.js-collapse-show`).toggle(),this.element.find(`.js-collapse-hide`).toggle()})}},DEFAULT_SELECTOR$9=`.js-show-more`,show_more_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$9,this.init()}init(){let e=this.element.find(`.js-show-more-trigger`),t=this.element.find(`.js-show-more-content`);e.hide(),t.height()>150&&(e.show(),t.addClass(`show-more-content`)),e.on(`click`,e=>{this.element.toggleClass(`is-open`)})}};(function(){var e=0,t={};function $(ed){if(!ed)throw Error(`No options passed to Waypoint constructor`);if(!ed.element)throw Error(`No element option passed to Waypoint constructor`);if(!ed.handler)throw Error(`No handler option passed to Waypoint constructor`);this.key=`waypoint-`+e,this.options=$.Adapter.extend({},$.defaults,ed),this.element=this.options.element,this.adapter=new $.Adapter(this.element),this.callback=ed.handler,this.axis=this.options.horizontal?`horizontal`:`vertical`,this.enabled=this.options.enabled,this.triggerPoint=null,this.group=$.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=$.Context.findOrCreateByElement(this.options.context),$.offsetAliases[this.options.offset]&&(this.options.offset=$.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),t[this.key]=this,e+=1}$.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},$.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},$.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete t[this.key]},$.prototype.disable=function(){return this.enabled=!1,this},$.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},$.prototype.next=function(){return this.group.next(this)},$.prototype.previous=function(){return this.group.previous(this)},$.invokeAll=function(e){var $=[];for(var ed in t)$.push(t[ed]);for(var td=0,nd=$.length;td<nd;td++)$[td][e]()},$.destroyAll=function(){$.invokeAll(`destroy`)},$.disableAll=function(){$.invokeAll(`disable`)},$.enableAll=function(){for(var e in $.Context.refreshAll(),t)t[e].enabled=!0;return this},$.refreshAll=function(){$.Context.refreshAll()}
275,$.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},$.viewportWidth=function(){return document.documentElement.clientWidth},$.adapters=[],$.defaults={context:window,continuous:!0,enabled:!0,group:`default`,horizontal:!1,offset:0},$.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=$})(),(function(){function e(e){window.setTimeout(e,1e3/60)}var t=0,$={},ed=window.Waypoint,td=window.onload;function nd(e){this.element=e,this.Adapter=ed.Adapter,this.adapter=new this.Adapter(e),this.key=`waypoint-context-`+t,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,$[e.waypointContextKey]=this,t+=1,ed.windowContext||=(ed.windowContext=!0,new nd(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}nd.prototype.add=function(e){var t=e.options.horizontal?`horizontal`:`vertical`;this.waypoints[t][e.key]=e,this.refresh()},nd.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),ed=this.element==this.element.window;e&&t&&!ed&&(this.adapter.off(`.waypoints`),delete $[this.key])},nd.prototype.createThrottledResizeHandler=function(){var e=this;function t(){e.handleResize(),e.didResize=!1}this.adapter.on(`resize.waypoints`,function(){e.didResize||(e.didResize=!0,ed.requestAnimationFrame(t))})},nd.prototype.createThrottledScrollHandler=function(){var e=this;function t(){e.handleScroll(),e.didScroll=!1}this.adapter.on(`scroll.waypoints`,function(){(!e.didScroll||ed.isTouch)&&(e.didScroll=!0,ed.requestAnimationFrame(t))})},nd.prototype.handleResize=function(){ed.Context.refreshAll()},nd.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:`right`,backward:`left`},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:`down`,backward:`up`}};for(var $ in t){var ed=t[$],td=ed.newScroll>ed.oldScroll?ed.forward:ed.backward;for(var nd in this.waypoints[$]){var rd=this.waypoints[$][nd];if(rd.triggerPoint!==null){var id=ed.oldScroll<rd.triggerPoint,ad=ed.newScroll>=rd.triggerPoint;(id&&ad||!id&&!ad)&&(rd.queueTrigger(td),e[rd.group.id]=rd.group)}}}for(var od in e)e[od].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},nd.prototype.innerHeight=function(){return this.element==this.element.window?ed.viewportHeight():this.adapter.innerHeight()},nd.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},nd.prototype.innerWidth=function(){return this.element==this.element.window?ed.viewportWidth():this.adapter.innerWidth()},nd.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var $ in this.waypoints[t])e.push(this.waypoints[t][$]);for(var ed=0,td=e.length;ed<td;ed++)e[ed].destroy()},nd.prototype.refresh=function(){var e=this.element==this.element.window,t=e?void 0:this.adapter.offset(),$={},td;for(var nd in this.handleScroll(),td={horizontal:{contextOffset:e?0:t.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:`right`,backward:`left`,offsetProp:`left`},vertical:{contextOffset:e?0:t.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:`down`,backward:`up`,offsetProp:`top`}},td){var rd=td[nd];for(var id in this.waypoints[nd]){var ad=this.waypoints[nd][id],od=ad.options.offset,sd=ad.triggerPoint,cd=0,ld=sd==null,ud,dd,fd,pd,md;ad.element!==ad.element.window&&(cd=ad.adapter.offset()[rd.offsetProp]),typeof od==`function`?od=od.apply(ad):typeof od==`string`&&(od=parseFloat(od),ad.options.offset.indexOf(`%`)>-1&&(od=Math.ceil(rd.contextDimension*od/100))),ud=rd.contextScroll-rd.contextOffset,ad.triggerPoint=Math.floor(cd+ud-od),dd=sd<rd.oldScroll,fd=ad.triggerPoint>=rd.oldScroll,pd=dd&&fd,md=!dd&&!fd,!ld&&pd?(ad.queueTrigger(rd.backward),$[ad.group.id]=ad.group):(!ld&&md||ld&&rd.oldScroll>=ad.triggerPoint)&&(ad.queueTrigger(rd.forward),$[ad.group.id]=ad.group)}}return ed.requestAnimationFrame(function(){for(var e in $)$[e].flushTriggers()}),this},nd.findOrCreateByElement=function(e){return nd.findByElement(e)||new nd(e)},nd.refreshAll=function(){for(var e in $)$[e].refresh()},nd.findByElement=function(e){return $[e.waypointContextKey]},window.onload=function(){td&&td(),nd.refreshAll()},ed.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},ed.Context=nd})(),(function(){function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}var $={vertical:{},horizontal:{}},ed=window.Waypoint;function td(e){this.name=e.name,this.axis=e.axis,this.id=this.name+`-`+this.axis,this.waypoints=[],this.clearTriggerQueues(),$[this.axis][this.name]=this}td.prototype.add=function(e){this.waypoints.push(e)},td.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
275ight:[]}},td.prototype.flushTriggers=function(){for(var $ in this.triggerQueues){var ed=this.triggerQueues[$],td=$===`up`||$===`left`;ed.sort(td?t:e);for(var nd=0,rd=ed.length;nd<rd;nd+=1){var id=ed[nd];(id.options.continuous||nd===ed.length-1)&&id.trigger([$])}}this.clearTriggerQueues()},td.prototype.next=function(t){this.waypoints.sort(e);var $=ed.Adapter.inArray(t,this.waypoints);return $===this.waypoints.length-1?null:this.waypoints[$+1]},td.prototype.previous=function(t){this.waypoints.sort(e);var $=ed.Adapter.inArray(t,this.waypoints);return $?this.waypoints[$-1]:null},td.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},td.prototype.remove=function(e){var t=ed.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},td.prototype.first=function(){return this.waypoints[0]},td.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},td.findOrCreate=function(e){return $[e.axis][e.name]||new td(e)},ed.Group=td})(),(function(){var e=window.Waypoint;function t(e){return e===e.window}function $(e){return t(e)?e:e.defaultView}function ed(e){this.element=e,this.handlers={}}ed.prototype.innerHeight=function(){return t(this.element)?this.element.innerHeight:this.element.clientHeight},ed.prototype.innerWidth=function(){return t(this.element)?this.element.innerWidth:this.element.clientWidth},ed.prototype.off=function(e,t){function $(e,t,$){for(var ed=0,td=t.length-1;ed<td;ed++){var nd=t[ed];(!$||$===nd)&&e.removeEventListener(nd)}}var ed=e.split(`.`),td=ed[0],nd=ed[1],rd=this.element;if(nd&&this.handlers[nd]&&td)$(rd,this.handlers[nd][td],t),this.handlers[nd][td]=[];else if(td)for(var id in this.handlers)$(rd,this.handlers[id][td]||[],t),this.handlers[id][td]=[];else if(nd&&this.handlers[nd]){for(var ad in this.handlers[nd])$(rd,this.handlers[nd][ad],t);this.handlers[nd]={}}},ed.prototype.offset=function(){if(!this.element.ownerDocument)return null;var e=this.element.ownerDocument.documentElement,t=$(this.element.ownerDocument),ed={top:0,left:0};return this.element.getBoundingClientRect&&(ed=this.element.getBoundingClientRect()),{top:ed.top+t.pageYOffset-e.clientTop,left:ed.left+t.pageXOffset-e.clientLeft}},ed.prototype.on=function(e,t){var $=e.split(`.`),ed=$[0],td=$[1]||`__default`,nd=this.handlers[td]=this.handlers[td]||{};(nd[ed]=nd[ed]||[]).push(t),this.element.addEventListener(ed,t)},ed.prototype.outerHeight=function(e){var $=this.innerHeight(),ed;return e&&!t(this.element)&&(ed=window.getComputedStyle(this.element),$+=parseInt(ed.marginTop,10),$+=parseInt(ed.marginBottom,10)),$},ed.prototype.outerWidth=function(e){var $=this.innerWidth(),ed;return e&&!t(this.element)&&(ed=window.getComputedStyle(this.element),$+=parseInt(ed.marginLeft,10),$+=parseInt(ed.marginRight,10)),$}
275,ed.prototype.scrollLeft=function(){var e=$(this.element);return e?e.pageXOffset:this.element.scrollLeft},ed.prototype.scrollTop=function(){var e=$(this.element);return e?e.pageYOffset:this.element.scrollTop},ed.extend=function(){var e=Array.prototype.slice.call(arguments);function t(e,t){if(typeof e==`object`&&typeof t==`object`)for(var $ in t)t.hasOwnProperty($)&&(e[$]=t[$]);return e}for(var $=1,ed=e.length;$<ed;$++)t(e[0],e[$]);return e[0]},ed.inArray=function(e,t,$){return t==null?-1:t.indexOf(e,$)},ed.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.adapters.push({name:`noframework`,Adapter:ed}),e.Adapter=ed})(),(function(){var e=window.jQuery,t=window.Waypoint;function $(ed){this.options=e.extend({},t.defaults,$.defaults,ed),this.element=this.options.element,this.$element=e(this.element),this.createWrapper(),this.createWaypoint()}$.prototype.createWaypoint=function(){var $=this.options.handler;this.waypoint=new t(e.extend({},this.options,{element:this.wrapper,handler:e.proxy(function(e){var t=this.options.direction.indexOf(e)>-1,ed=t?this.$element.outerHeight(!0):``;this.$wrapper.height(ed),this.$element.toggleClass(this.options.stuckClass,t),$&&$.call(this,e)},this)}))},$.prototype.createWrapper=function(){this.options.wrapper&&this.$element.wrap(this.options.wrapper),this.$wrapper=this.$element.parent(),this.wrapper=this.$wrapper[0]},$.prototype.destroy=function(){this.$element.parent()[0]===this.wrapper&&(this.waypoint.destroy(),this.$element.removeClass(this.options.stuckClass),this.options.wrapper&&this.$element.unwrap())},$.defaults={wrapper:`<div class="sticky-wrapper" />`,stuckClass:`stuck`,direction:`down right`},t.Sticky=$})();var DEFAULT_SELECTOR$8=`.js-sticky`,DEFAULT_OPTIONS={context:window,stuckClass:`stuck`,offset:64},sticky_default=class{constructor(e){this.sticky={},this.element=e||DEFAULT_SELECTOR$8,this.init()}init(){this.sticky=new window.Waypoint.Sticky({element:this.element[0],context:this.element.data(`sticky-context`)||DEFAULT_OPTIONS.context,stuckClass:this.element.data(`sticky-class`)||DEFAULT_OPTIONS.stuckClass,offset:this.element.data(`sticky-offset`)||DEFAULT_OPTIONS.offset})}},DEFAULT_SELECTOR$7=`.js-notification`,notification_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$7,this.init()}init(){let e=(0,import_jquery.default)(`.js-notification`);import_js_cookie.default.get(`notification`)||setTimeout(()=>{e.addClass(`is-visible`)},1500),(0,import_jquery.default)(`.js-notification-close`).on(`click`,function(t){import_js_cookie.default.set(`notification`,`notification`,{expires:1e5}),e.removeClass(`is-visible`),t.preventDefault()})}},require_sticky_min=__commonJSMin(((e,t)=>{function $(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ed(e,t){for(var $=0;$<t.length;$++){var ed=t[$];ed.enumerable=ed.enumerable||!1,ed.configurable=!0,`value`in ed&&(ed.writable=!0),Object.defineProperty(e,ed.key,ed)}}function td(e,t,$){return t&&ed(e.prototype,t),$&&ed(e,$),e}(function($,ed){e===void 0?typeof define==`function`&&define.amd?define([],function(){return ed}):$.Sticky=ed:t.exports=ed})(e,function(){function e(){var t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:``,ed=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};$(this,e),this.selector=t,this.elements=[],this.version=`1.3.0`,this.vp=this.getViewportSize(),this.body=document.querySelector(`body`),this.options={wrap:ed.wrap||!1,wrapWith:ed.wrapWith||`<span></span>`,marginTop:ed.marginTop||0,marginBottom:ed.marginBottom||0,stickyFor:ed.stickyFor||0,stickyClass:ed.stickyClass||null,stickyContainer:ed.stickyContainer||`body`},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener(`load`,this.updateScrollTopPosition),window.addEventListener(`scroll`,this.updateScrollTopPosition),this.run()}return td(e,[{key:`run`,value:function(){var e=this,t=setInterval(function(){if(document.readyState===`complete`){clearInterval(t);var $=document.querySelectorAll(e.selector);e.forEach($,function(t){return e.renderElement(t)})}},10)}},{key:`renderElement`,value:function(e){var t=this;e.sticky={},e.sticky.active=!1,e.sticky.marginTop=parseInt(e.getAttribute(`data-margin-top`))||this.options.marginTop,e.sticky.marginBottom=parseInt(e.getAttribute(`data-margin-bottom`))||this.options.marginBottom,e.sticky.stickyFor=parseInt(e.getAttribute(`data-sticky-for`))||this.options.stickyFor,e.sticky.stickyClass=e.getAttribute(`data-sticky-class`)||this.options.stickyClass,e.sticky.wrap=!!e.hasAttribute(`data-sticky-wrap`)||this.options.wrap,e.sticky.stickyContainer=this.options.stickyContainer,e.sticky.container=this.getStickyContainer(e),e.sticky.container.rect=this.getRectangle(e.sticky.container),e.sticky.rect=this.getRectangle(e),e.tagName.toLowerCase()===`img`&&(e.onload=function(){return e.sticky.rect=t.getRectangle(e)}),e.sticky.wrap&&this.wrapElement(e),this.activate(e)}},{key:`wrapElement`,value:function(e){e.insertAdjacentHTML(`beforebegin`,e.getAttribute(`data-sticky-wrapWith`)||this.options.wrapWith),e.previousSibling.a
275ppendChild(e)}},{key:`activate`,value:function(e){e.sticky.rect.top+e.sticky.rect.height<e.sticky.container.rect.top+e.sticky.container.rect.height&&e.sticky.stickyFor<this.vp.width&&!e.sticky.active&&(e.sticky.active=!0),this.elements.indexOf(e)<0&&this.elements.push(e),e.sticky.resizeEvent||(this.initResizeEvents(e),e.sticky.resizeEvent=!0),e.sticky.scrollEvent||(this.initScrollEvents(e),e.sticky.scrollEvent=!0),this.setPosition(e)}},{key:`initResizeEvents`,value:function(e){var t=this;e.sticky.resizeListener=function(){return t.onResizeEvents(e)},window.addEventListener(`resize`,e.sticky.resizeListener)}},{key:`destroyResizeEvents`,value:function(e){window.removeEventListener(`resize`,e.sticky.resizeListener)}},{key:`onResizeEvents`,value:function(e){this.vp=this.getViewportSize(),e.sticky.rect=this.getRectangle(e),e.sticky.container.rect=this.getRectangle(e.sticky.container),e.sticky.rect.top+e.sticky.rect.height<e.sticky.container.rect.top+e.sticky.container.rect.height&&e.sticky.stickyFor<this.vp.width&&!e.sticky.active?e.sticky.active=!0:(e.sticky.rect.top+e.sticky.rect.height>=e.sticky.container.rect.top+e.sticky.container.rect.height||e.sticky.stickyFor>=this.vp.width&&e.sticky.active)&&(e.sticky.active=!1),this.setPosition(e)}},{key:`initScrollEvents`,value:function(e){var t=this;e.sticky.scrollListener=function(){return t.onScrollEvents(e)},window.addEventListener(`scroll`,e.sticky.scrollListener)}},{key:`destroyScrollEvents`,value:function(e){window.removeEventListener(`scroll`,e.sticky.scrollListener)}},{key:`onScrollEvents`,value:function(e){e.sticky&&e.sticky.active&&this.setPosition(e)}},{key:`setPosition`,value:function(e){this.css(e,{position:``,width:``,top:``,left:``}),this.vp.height<e.sticky.rect.height||!e.sticky.active||(e.sticky.rect.width||(e.sticky.rect=this.getRectangle(e)),e.sticky.wrap&&this.css(e.parentNode,{display:`block`,width:e.sticky.rect.width+`px`,height:e.sticky.rect.height+`px`}),e.sticky.rect.top===0&&e.sticky.container===this.body?(this.css(e,{position:`fixed`,top:e.sticky.rect.top+`px`,left:e.sticky.rect.left+`px`,width:e.sticky.rect.width+`px`}),e.sticky.stickyClass&&e.classList.add(e.sticky.stickyClass)):this.scrollTop>e.sticky.rect.top-e.sticky.marginTop?(this.css(e,{position:`fixed`,width:e.sticky.rect.width+`px`,left:e.sticky.rect.left+`px`}),this.scrollTop+e.sticky.rect.height+e.sticky.marginTop>e.sticky.container.rect.top+e.sticky.container.offsetHeight-e.sticky.marginBottom?(e.sticky.stickyClass&&e.classList.remove(e.sticky.stickyClass),this.css(e,{top:e.sticky.container.rect.top+e.sticky.container.offsetHeight-(this.scrollTop+e.sticky.rect.height+e.sticky.marginBottom)+`px`})):(e.sticky.stickyClass&&e.classList.add(e.sticky.stickyClass),this.css(e,{top:e.sticky.marginTop+`px`}))):(e.sticky.stickyClass&&e.classList.remove(e.sticky.stickyClass),this.css(e,{position:``,width:``,top:``,left:``}),e.sticky.wrap&&this.css(e.parentNode,{display:``,width:``,height:``})))}},{key:`update`,value:function(){var e=this;this.forEach(this.elements,function(t){t.sticky.rect=e.getRectangle(t),t.sticky.container.rect=e.getRectangle(t.sticky.container),e.activate(t),e.setPosition(t)})}},{key:`destroy`,value:function(){var e=this;window.removeEventListener(`load`,this.updateScrollTopPosition),window.removeEventListener(`scroll`,this.updateScrollTopPosition),this.forEach(this.elements,function(t){e.destroyResizeEvents(t),e.destroyScrollEvents(t),delete t.sticky})}},{key:`getStickyContainer`,value:function(e){for(var t=e.parentNode;!t.hasAttribute(`data-sticky-container`)&&!t.parentNode.querySelector(e.sticky.stickyContainer)&&t!==this.body;)t=t.parentNode;return t}},{key:`getRectangle`,value:function(e){this.css(e,{position:``,width:``,top:``,left:``});for(var t=Math.max(e.offsetWidth,e.clientWidth,e.scrollWidth),$=Math.max(e.offsetHeight,e.clientHeight,e.scrollHeight),ed=0,td=0;ed+=e.offsetTop||0,td+=e.offsetLeft||0,e=e.offsetParent;);return{top:ed,left:td,width:t,height:$}}},{key:`getViewportSize`,value:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:`updateScrollTopPosition`,value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}},{key:`forEach`,value:function(e,t){for(var $=0,ed=e.length;$<ed;$++)t(e[$])}},{key:`css`,value:function(e,t){for(var $ in t)t.hasOwnProperty($)&&(e.style[$]=t[$])}}]),e}())})),import_sticky_min=__toESM(require_sticky_min()),DEFAULT_SELECTOR$6=`.js-sticky-contained`,sticky_contained_default=class{constructor(){this.init()}init(){new import_sticky_min.default(DEFAULT_SELECTOR$6)}},require_bundle=__commonJSMin(((e,t)=>{init_dist();function $(e,t){return t={exports:{}},e(t,t.exports),t.exports}function ed(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var $=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return $*cd;case`days`:case`day`:case`d`:return $*sd;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return $*od;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return $*ad;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return $*id;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return $;default:return}}}}function td(e){return e>=sd?Math.round(e/sd)+`d`:e>=od?Math.round(e/od)+`h`:e>=ad?Math.round(e/ad)+`m`:e>=id?Math.round(e/id)+`s`:e+`ms`}
275function nd(e){return rd(e,sd,`day`)||rd(e,od,`hour`)||rd(e,ad,`minute`)||rd(e,id,`second`)||e+` ms`}function rd(e,t,$){if(!(e<t))return e<1.5*t?Math.floor(e/t)+` `+$:Math.ceil(e/t)+` `+$+`s`}var id=1e3,ad=60*id,od=60*ad,sd=24*od,cd=365.25*sd,ld=function(e,t){t||={};var $=typeof e;if($===`string`&&e.length>0)return ed(e);if($===`number`&&!1===isNaN(e))return t.long?nd(e):td(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))},ud=$(function(e,t){function $(e){var $,ed=0;for($ in e)ed=(ed<<5)-ed+e.charCodeAt($),ed|=0;return t.colors[Math.abs(ed)%t.colors.length]}function ed(e){function ed(){if(ed.enabled){var e=ed,$=+new Date;e.diff=$-(ad||$),e.prev=ad,e.curr=$,ad=$;for(var td=Array(arguments.length),nd=0;nd<td.length;nd++)td[nd]=arguments[nd];td[0]=t.coerce(td[0]),typeof td[0]!=`string`&&td.unshift(`%O`);var rd=0;td[0]=td[0].replace(/%([a-zA-Z%])/g,function($,ed){if($===`%%`)return $;rd++;var nd=t.formatters[ed];if(typeof nd==`function`){var id=td[rd];$=nd.call(e,id),td.splice(rd,1),rd--}return $}),t.formatArgs.call(e,td),(ed.log||t.log||console.log.bind(console)).apply(e,td)}}return ed.namespace=e,ed.enabled=t.enabled(e),ed.useColors=t.useColors(),ed.color=$(e),typeof t.init==`function`&&t.init(ed),ed}function td(e){t.save(e),t.names=[],t.skips=[];for(var $=(typeof e==`string`?e:``).split(/[\s,]+/),ed=$.length,td=0;td<ed;td++)$[td]&&(e=$[td].replace(/\*/g,`.*?`),e[0]===`-`?t.skips.push(RegExp(`^`+e.substr(1)+`$`)):t.names.push(RegExp(`^`+e+`$`)))}function nd(){t.enable(``)}function rd(e){var $,ed;for($=0,ed=t.skips.length;$<ed;$++)if(t.skips[$].test(e))return!1;for($=0,ed=t.names.length;$<ed;$++)if(t.names[$].test(e))return!0;return!1}function id(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=ed.debug=ed.default=ed,t.coerce=id,t.disable=nd,t.enable=td,t.enabled=rd,t.humanize=ld,t.names=[],t.skips=[],t.formatters={};var ad}),dd=$(function(e,t){function $(){return!(typeof window>`u`||!window.process||window.process.type!==`renderer`)||typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ed(e){var $=this.useColors;if(e[0]=($?`%c`:``)+this.namespace+($?` %c`:` `)+e[0]+($?`%c `:` `)+`+`+t.humanize(this.diff),$){var ed=`color: `+this.color;e.splice(1,0,ed,`color: inherit`);var td=0,nd=0;e[0].replace(/%[a-zA-Z%]/g,function(e){e!==`%%`&&(td++,e===`%c`&&(nd=td))}),e.splice(nd,0,ed)}}function td(){return typeof console==`object`&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function nd(e){try{e==null?t.storage.removeItem(`debug`):t.storage.debug=e}catch{}}function rd(){var e;try{e=t.storage.debug}catch{}return!e&&process$1!==void 0&&`env`in process$1&&(e={}.DEBUG),e}t=e.exports=ud,t.log=td,t.formatArgs=ed,t.save=nd,t.load=rd,t.useColors=$,t.storage=typeof chrome<`u`&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),t.colors=[`lightseagreen`,`forestgreen`,`goldenrod`,`dodgerblue`,`darkorchid`,`crimson`],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}},t.enable(rd())}),fd=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},pd=function(){function e(e,t){for(var $=0;$<t.length;$++){var ed=t[$];ed.enumerable=ed.enumerable||!1,ed.configurable=!0,`value`in ed&&(ed.writable=!0),Object.defineProperty(e,ed.key,ed)}}return function(t,$,ed){return $&&e(t.prototype,$),ed&&e(t,ed),t}}(),md=dd(`event-tracker:log`),hd={customTrackingEvent:`trackingEvent`,debug:!1,code:window.GA_CODE||null,customVariables:[],baseLabel:window.GA_BASE_LABEL||``,trackUserId:!1,userId:null,notice:{mainClass:`event-tracker-notice`,contentClass:`event-tracker-notice-content`,textClass:`event-tracker-notice-text`,textContent:``,btnCloseClass:`event-tracker-notice-btn-close`,btnCloseContent:`x`,actionsWrapperClass:`event-tracker-notice-actions-wrapper`,btnAcceptClass:`event-tracker-notice-btn-accept`,btnAcceptContent:`Accept`,btnRejectClass:`event-tracker-notice-btn-reject`,btnRejectContent:`Reject`}};t.exports=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(fd(this,e),this.dom={},this.options=Object.assign({},hd,t),this.options.notice=Object.assign({},hd.notice,t.notice),this.handleGlobalEvent=this.handleGlobalEvent.bind(this),!0===this.options.debug?dd.enable(`*`):dd.disable(),this.options.code===void 0||this.options.code===null)return void md(`Google Analytics property code is required`);this.setUserId(),this.initOnDOMNodes($),this.initGlobal()}return pd(e,[{key:`setUserId`,value:function(){this.shouldSetUserId()&&(ga(`set`,`userId`,this.options.userId),window.GA_USER_ID_SET=!0)}},{key:`shouldSetUserId`,value:function(){return!1!==this.options.trackUserId&&this.options.userId!==void 0&&this.options.userId!==``&&!0!==window.GA_USER_ID_SET}},{key:`showTrackingNotice`,value:function(e,t,$){md(`showTrackingNotice`,e,t,$),this.dom.notice=this.getTrackingNoticeDOM(e,t,$),document.querySelector(`body`).appendChild(this.dom.notice)}},{key:`destroyTrackingNotice`,value:function(){this.dom.notice.remove()}},{key:`getTrackingNoticeDOM`,value:function(e,t,$){var ed=document.createElement(`div`);ed.classList.add(this.options.notice.mainClass);var td=document.createElement(`div`);td.classList.add(this.options.notice.contentClass);var nd=document.createElement(`div`);
275nd.classList.add(this.options.notice.textClass),nd.innerHTML=this.options.notice.text;var rd=document.createElement(`button`);this.options.notice.btnCloseClass.split(` `).forEach(function(e){rd.classList.add(e)}),rd.innerHTML=this.options.notice.btnCloseContent,$!==void 0&&rd.addEventListener(`click`,$,!0);var id=document.createElement(`div`);this.options.notice.actionsWrapperClass.split(` `).forEach(function(e){id.classList.add(e)});var ad=document.createElement(`button`);this.options.notice.btnRejectClass.split(` `).forEach(function(e){ad.classList.add(e)}),ad.innerHTML=this.options.notice.btnRejectContent,t!==void 0&&ad.addEventListener(`click`,t,!0);var od=document.createElement(`button`);return this.options.notice.btnAcceptClass.split(` `).forEach(function(e){od.classList.add(e)}),od.innerHTML=this.options.notice.btnAcceptContent,e!==void 0&&od.addEventListener(`click`,e,!0),td.appendChild(rd),td.appendChild(nd),id.appendChild(ad),id.appendChild(od),td.appendChild(id),ed.appendChild(td),ed}},{key:`initOnDOMNodes`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];md(`initOnDOMNodes`,t),t=[].slice.call(t),Array.isArray(t)&&t.forEach(function(t){return e.initOnDOMNode(t)})}},{key:`initOnDOMNode`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=this.getEventsFromDataset(t);if(md($),$===void 0)return void md(`No tracking options found on the element`);$.forEach(function($){var ed=$.listenTo||`click`;t.addEventListener(ed,function(){e.send($)})})}},{key:`initGlobal`,value:function(){var e=this.options.customTrackingEvent;window.TRACKING_EVENT=e,document.addEventListener(e,this.handleGlobalEvent)}},{key:`handleGlobalEvent`,value:function(e){md(e),this.send(e.detail)}},{key:`makeSendableEvent`,value:function(e){switch(e.hitType){case`social`:return{hitType:e.hitType,socialNetwork:e.socialNetwork,socialAction:e.socialAction,socialTarget:e.socialTarget,hitCallback:e.hitCallback||this.hitCallback};default:return{hitType:`event`,eventCategory:e.eventCategory,eventAction:e.eventAction,eventLabel:this.sanitize(this.options.baseLabel+e.eventLabel),eventValue:e.eventValue||null,hitCallback:e.hitCallback||this.hitCallback}}}},{key:`makeGA4SendableEvent`,value:function(e){var t={eventCategory:e.eventCategory,eventAction:e.eventAction,eventValue:e.eventValue,eventLabel:this.sanitize(this.options.baseLabel+e.eventLabel)};return(e.additionalFields?e.additionalFields:[]).forEach(function($){t[$]=e[$]}),t}},{key:`sanitize`,value:function(e){return e.replace(/<(?:.|\n)*?>/gm,``)}},{key:`send`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(t){var $=t.customVariables;$&&Array.isArray($)&&$.forEach(function(t){var $=t.value,ed=t.index,td=t.type;if(!$||ed===void 0)return!1;e.setCustomVariable($,ed,td)});var ed=this.makeSendableEvent(t);this.setCustomDimensions(),ga(`send`,ed);var td=this.makeGA4SendableEvent(t),nd=t.eventCategory+` > `+t.eventAction;gtag(`event`,nd,td)}}},{key:`setCustomDimensions`,value:function(){var e=this;
275this.options.customVariables.forEach(function(t,$){var ed=$+1;e.setCustomVariable(t,ed)})}},{key:`setCustomVariable`,value:function(e,t){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`dimension`;ga(`set`,``+$+t,e)}},{key:`hitCallback`,value:function(){md(`hitCallback`)}},{key:`getEventsFromDataset`,value:function(e){return md(`getEventsFromDataset`,e),md(e.dataset.tracking),JSON.parse(e.dataset.tracking)}}]),e}()})),import_bundle=__toESM(require_bundle()),DEFAULT_SELECTOR$5=`.js-login`,login_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$5,this.init()}init(){let e=this.element.find(`.js-login-alert`),t=this.element.find(`.js-login-loading`);e.hide(),t.hide(),(0,import_jquery.default)(this.element).submit(()=>{let $=this.element.serialize()+`&lang=`+this.element.attr(`data-lang`),ed=this.element.attr(`data-posturl`);return import_jquery.default.ajax({type:`POST`,url:ed,data:$,beforeSend:()=>{t.show()},success:$=>{let ed=this.element.attr(`data-rooturl`);$.status==`success`?window.location=ed:$.errors!=``&&(t.hide(),e.show(),e.text($.errors))}}),!1})}},DownloadQueue=class{get hasRemainingDownloads(){return this.downloads.length>0}constructor(e={}){this.addToQueue=this.addToQueue.bind(this),this.checkCompletedDownloads=this.checkCompletedDownloads.bind(this),this.defaults={eventName:`download-request`,pollDelay:500,htmlClass:`downloads-pending`,singleDownload:!0,clickSelectors:[`.js-fires-download-request`]},this.options={...this.defaults,...e},this.poll=null,this.downloads=[],this.attachListener(),this.options.clickSelectors&&this.options.clickSelectors.length>0&&this.bindClickEvents()}attachListener(){let{eventName:e}=this.options;document.addEventListener(e,this.addToQueue)}bindClickEvents(){let{clickSelectors:e}=this.options,t={detail:{token:`standalone-download-request`}};e.forEach(e=>{[...document.querySelectorAll(e)].forEach(e=>{e.addEventListener(`click`,()=>{this.addToQueue(t)})})})}addToQueue(e){let{singleDownload:t}=this.options,{token:$}=e.detail;this.hasRemainingDownloads&&t&&this.clearQueue(),this.downloads.push($),this.toggleHtmlClass(),this.startPoll()}clearQueue(){this.downloads.splice(0,this.downloads.length)}startPoll(){if(this.poll!==null)return;let{pollDelay:e}=this.options;this.poll=setInterval(this.checkCompletedDownloads,e)}stopPoll(){clearInterval(this.poll),this.poll=null}checkCompletedDownloads(){let{downloads:e}=this;for(let t=0,$=e.length;t<$;t++)(0,import_js_cookie.get)(e[t])&&this.downloads.splice(t,1);this.hasRemainingDownloads||this.stopPoll(),this.toggleHtmlClass()}addHtmlClass(){let{htmlClass:e}=this.options;document.querySelector(`html`).classList.add(e)}removeHtmlClass(){let{htmlClass:e}=this.options;document.querySelector(`html`).classList.remove(e)}toggleHtmlClass(){let e=document.querySelector(`html`),{htmlClass:t}=this.options;this.hasRemainingDownloads&&!e.classList.contains(t)?this.addHtmlClass():!this.hasRemainingDownloads&&e.classList.contains(t)&&this.removeHtmlClass()}};function isObject$1(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function extend$1(e,t){e===void 0&&(e={}),t===void 0&&(t={});let $=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>$.indexOf(e)<0).forEach($=>{e[$]===void 0?e[$]=t[$]:isObject$1(t[$])&&isObject$1(e[$])&&Object.keys(t[$]).length>0&&extend$1(e[$],t[$])})}var ssrDocument={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 getDocument(){let e=typeof document<`u`?document:{};return extend$1(e,ssrDocument),e}var ssrWindow={document:ssrDocument,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(){}
275,clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function getWindow(){let e=typeof window<`u`?window:{};return extend$1(e,ssrWindow),e}function classesToTokens(e){return e===void 0&&(e=``),e.trim().split(` `).filter(e=>!!e.trim())}function deleteProps(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function nextTick(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle$1(e){let t=getWindow(),$;return t.getComputedStyle&&($=t.getComputedStyle(e,null)),!$&&e.currentStyle&&($=e.currentStyle),$||=e.style,$}function getTranslate(e,t){t===void 0&&(t=`x`);let $=getWindow(),ed,td,nd,rd=getComputedStyle$1(e);return $.WebKitCSSMatrix?(td=rd.transform||rd.webkitTransform,td.split(`,`).length>6&&(td=td.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),nd=new $.WebKitCSSMatrix(td===`none`?``:td)):(nd=rd.MozTransform||rd.OTransform||rd.MsTransform||rd.msTransform||rd.transform||rd.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),ed=nd.toString().split(`,`)),t===`x`&&(td=$.WebKitCSSMatrix?nd.m41:ed.length===16?parseFloat(ed[12]):parseFloat(ed[4])),t===`y`&&(td=$.WebKitCSSMatrix?nd.m42:ed.length===16?parseFloat(ed[13]):parseFloat(ed[5])),td||0}function isObject(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function isNode(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function extend(){let e=Object(arguments.length<=0?void 0:arguments[0]),t=[`__proto__`,`constructor`,`prototype`];for(let $=1;$<arguments.length;$+=1){let ed=$<0||arguments.length<=$?void 0:arguments[$];if(ed!=null&&!isNode(ed)){let $=Object.keys(Object(ed)).filter(e=>t.indexOf(e)<0);for(let t=0,td=$.length;t<td;t+=1){let td=$[t],nd=Object.getOwnPropertyDescriptor(ed,td);nd!==void 0&&nd.enumerable&&(isObject(e[td])&&isObject(ed[td])?ed[td].__swiper__?e[td]=ed[td]:extend(e[td],ed[td]):!isObject(e[td])&&isObject(ed[td])?(e[td]={},ed[td].__swiper__?e[td]=ed[td]:extend(e[td],ed[td])):e[td]=ed[td])}}}return e}function setCSSProperty(e,t,$){e.style.setProperty(t,$)}function animateCSSModeScroll(e){let{swiper:t,targetPosition:$,side:ed}=e,td=getWindow(),nd=-t.translate,rd=null,id,ad=t.params.speed;t.wrapperEl.style.scrollSnapType=`none`,td.cancelAnimationFrame(t.cssModeFrameID);let od=$>nd?`next`:`prev`,sd=(e,t)=>od===`next`&&e>=t||od===`prev`&&e<=t,cd=()=>{id=new Date().getTime(),rd===null&&(rd=id);let e=Math.max(Math.min((id-rd)/ad,1),0),od=nd+(.5-Math.cos(e*Math.PI)/2)*($-nd);if(sd(od,$)&&(od=$),t.wrapperEl.scrollTo({[ed]:od}),sd(od,$)){t.wrapperEl.style.overflow=`hidden`,t.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{t.wrapperEl.style.overflow=``,t.wrapperEl.scrollTo({[ed]:od})}),td.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=td.requestAnimationFrame(cd)};cd()}function getSlideTransformEl(e){return e.querySelector(`.swiper-slide-transform`)||e.shadowRoot&&e.shadowRoot.querySelector(`.swiper-slide-transform`)||e}function elementChildren(e,t){t===void 0&&(t=``);let $=getWindow(),ed=[...e.children];return $.HTMLSlotElement&&e instanceof HTMLSlotElement&&ed.push(...e.assignedElements()),t?ed.filter(e=>e.matches(t)):ed}function elementIsChildOfSlot(e,t){let $=[t];for(;$.length>0;){let t=$.shift();if(e===t)return!0;$.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function elementIsChildOf(e,t){let $=getWindow(),ed=t.contains(e);return!ed&&$.HTMLSlotElement&&t instanceof HTMLSlotElement&&(ed=[...t.assignedElements()].includes(e),ed||=elementIsChildOfSlot(e,t)),ed}function showWarning(e){try{console.warn(e);return}catch{}}function createElement$1(e,t){t===void 0&&(t=[]);let $=document.createElement(e);return $.classList.add(...Array.isArray(t)?t:classesToTokens(t)),$}function elementOffset(e){let t=getWindow(),$=getDocument(),ed=e.getBoundingClientRect(),td=$.body,nd=e.clientTop||td.clientTop||0,rd=e.clientLeft||td.clientLeft||0,id=e===t?t.scrollY:e.scrollTop,ad=e===t?t.scrollX:e.scrollLeft;return{top:ed.top+id-nd,left:ed.left+ad-rd}}function elementPrevAll(e,t){let $=[];for(;e.previousElementSibling;){let ed=e.previousElementSibling;t?ed.matches(t)&&$.push(ed):$.push(ed),e=ed}return $}function elementNextAll(e,t){let $=[];for(;e.nextElementSibling;){let ed=e.nextElementSibling;t?ed.matches(t)&&$.push(ed):$.push(ed),e=ed}return $}function elementStyle(e,t){return getWindow().getComputedStyle(e,null).getPropertyValue(t)}function elementIndex(e){let t=e,$;if(t){for($=0;(t=t.previousSibling)!==null;)t.nodeType===1&&($+=1);return $}}function elementParents(e,t){let $=[],ed=e.parentElement;for(;ed;)t?ed.matches(t)&&$.push(ed):$.push(ed),ed=ed.parentElement;return $}function elementTransitionEnd(e,t){function $(ed){ed.target===e&&(t.call(e,ed),e.removeEventListener(`transitionend`,$))}t&&e.addEventListener(`transitionend`,$)}function elementOuterSize(e,t,$){let ed=getWindow();return $?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(ed.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(ed.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}function makeElementsArray(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function getRotateFix(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function setInnerHTML(e,t){t===void 0&&(t=``),typeof trustedTypes<`u`?e.innerHTML=trustedTypes.createPolicy(`html`,{createHTML:e=>e}).createHTML(t):e.innerHTML=t}var support;function calcSupport(){let e=getWindow(),t=getDocument();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}
275function getSupport(){return support||=calcSupport(),support}var deviceCached;function calcDevice(e){let{userAgent:t}=e===void 0?{}:e,$=getSupport(),ed=getWindow(),td=ed.navigator.platform,nd=t||ed.navigator.userAgent,rd={ios:!1,android:!1},id=ed.screen.width,ad=ed.screen.height,od=nd.match(/(Android);?[\s\/]+([\d.]+)?/),sd=nd.match(/(iPad).*OS\s([\d_]+)/),cd=nd.match(/(iPod)(.*OS\s([\d_]+))?/),ld=!sd&&nd.match(/(iPhone\sOS|iOS)\s([\d_]+)/),ud=td===`Win32`,dd=td===`MacIntel`;return!sd&&dd&&$.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${id}x${ad}`)>=0&&(sd=nd.match(/(Version)\/([\d.]+)/),sd||=[0,1,`13_0_0`],dd=!1),od&&!ud&&(rd.os=`android`,rd.android=!0),(sd||ld||cd)&&(rd.os=`ios`,rd.ios=!0),rd}function getDevice(e){return e===void 0&&(e={}),deviceCached||=calcDevice(e),deviceCached}var browser;function calcBrowser(){let e=getWindow(),t=getDevice(),$=!1;function ed(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(ed()){let t=String(e.navigator.userAgent);if(t.includes(`Version/`)){let[e,ed]=t.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));$=e<16||e===16&&ed<2}}let td=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),nd=ed(),rd=nd||td&&t.ios;return{isSafari:$||nd,needPerspectiveFix:$,need3dFix:rd,isWebView:td}}function getBrowser(){return browser||=calcBrowser(),browser}function Resize(e){let{swiper:t,on:$,emit:ed}=e,td=getWindow(),nd=null,rd=null,id=()=>{!t||t.destroyed||!t.initialized||(ed(`beforeResize`),ed(`resize`))},ad=()=>{!t||t.destroyed||!t.initialized||(nd=new ResizeObserver(e=>{rd=td.requestAnimationFrame(()=>{let{width:$,height:ed}=t,td=$,nd=ed;e.forEach(e=>{let{contentBoxSize:$,contentRect:ed,target:rd}=e;rd&&rd!==t.el||(td=ed?ed.width:($[0]||$).inlineSize,nd=ed?ed.height:($[0]||$).blockSize)}),(td!==$||nd!==ed)&&id()})}),nd.observe(t.el))},od=()=>{rd&&td.cancelAnimationFrame(rd),nd&&nd.unobserve&&t.el&&(nd.unobserve(t.el),nd=null)},sd=()=>{!t||t.destroyed||!t.initialized||ed(`orientationchange`)};$(`init`,()=>{if(t.params.resizeObserver&&td.ResizeObserver!==void 0){ad();return}td.addEventListener(`resize`,id),td.addEventListener(`orientationchange`,sd)}),$(`destroy`,()=>{od(),td.removeEventListener(`resize`,id),td.removeEventListener(`orientationchange`,sd)})}function Observer(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=[],rd=getWindow(),id=function(e,$){$===void 0&&($={});let ed=new(rd.MutationObserver||rd.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(e.length===1){td(`observerUpdate`,e[0]);return}let $=function(){td(`observerUpdate`,e[0])};rd.requestAnimationFrame?rd.requestAnimationFrame($):rd.setTimeout($,0)});ed.observe(e,{attributes:$.attributes===void 0?!0:$.attributes,childList:t.isElement||($.childList===void 0?!0:$).childList,characterData:$.characterData===void 0?!0:$.characterData}),nd.push(ed)};$({observer:!1,observeParents:!1,observeSlideChildren:!1}),ed(`init`,()=>{if(t.params.observer){if(t.params.observeParents){let e=elementParents(t.hostEl);for(let t=0;t<e.length;t+=1)id(e[t])}id(t.hostEl,{childList:t.params.observeSlideChildren}),id(t.wrapperEl,{attributes:!1})}}),ed(`destroy`,()=>{nd.forEach(e=>{e.disconnect()}),nd.splice(0,nd.length)})}var eventsEmitter={on(e,t,$){let ed=this;if(!ed.eventsListeners||ed.destroyed||typeof t!=`function`)return ed;let td=$?`unshift`:`push`;return e.split(` `).forEach(e=>{ed.eventsListeners[e]||(ed.eventsListeners[e]=[]),ed.eventsListeners[e][td](t)}),ed},once(e,t,$){let ed=this;if(!ed.eventsListeners||ed.destroyed||typeof t!=`function`)return ed;function td(){ed.off(e,td),td.__emitterProxy&&delete td.__emitterProxy;var $=[...arguments];t.apply(ed,$)}return td.__emitterProxy=t,ed.on(e,td,$)},onAny(e,t){let $=this;if(!$.eventsListeners||$.destroyed||typeof e!=`function`)return $;let ed=t?`unshift`:`push`;return $.eventsAnyListeners.indexOf(e)<0&&$.eventsAnyListeners[ed](e),$},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let $=t.eventsAnyListeners.indexOf(e);return $>=0&&t.eventsAnyListeners.splice($,1),t},off(e,t){let $=this;return!$.eventsListeners||$.destroyed||!$.eventsListeners||e.split(` `).forEach(e
vendor: 13,426 bytes, line 275
275=>{t===void 0?$.eventsListeners[e]=[]:$.eventsListeners[e]&&$.eventsListeners[e].forEach((ed,td)=>{(ed===t||ed.__emitterProxy&&ed.__emitterProxy===t)&&$.eventsListeners[e].splice(td,1)})}),$},emit(){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,$,ed;var td=[...arguments];return typeof td[0]==`string`||Array.isArray(td[0])?(t=td[0],$=td.slice(1,td.length),ed=e):(t=td[0].events,$=td[0].data,ed=td[0].context||e),$.unshift(ed),(Array.isArray(t)?t:t.split(` `)).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(ed,[t,...$])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(ed,$)})}),e}};function updateSize(){let e=this,t,$,ed=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:ed.clientWidth,$=e.params.height!==void 0&&e.params.height!==null?e.params.height:ed.clientHeight,!(t===0&&e.isHorizontal()||$===0&&e.isVertical())&&(t=t-parseInt(elementStyle(ed,`padding-left`)||0,10)-parseInt(elementStyle(ed,`padding-right`)||0,10),$=$-parseInt(elementStyle(ed,`padding-top`)||0,10)-parseInt(elementStyle(ed,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN($)&&($=0),Object.assign(e,{width:t,height:$,size:e.isHorizontal()?t:$}))}function updateSlides(){let e=this;function t(t,$){return parseFloat(t.getPropertyValue(e.getDirectionLabel($))||0)}let $=e.params,{wrapperEl:ed,slidesEl:td,size:nd,rtlTranslate:rd,wrongRTL:id}=e,ad=e.virtual&&$.virtual.enabled,od=ad?e.virtual.slides.length:e.slides.length,sd=elementChildren(td,`.${e.params.slideClass}, swiper-slide`),cd=ad?e.virtual.slides.length:sd.length,ld=[],ud=[],dd=[],fd=$.slidesOffsetBefore;typeof fd==`function`&&(fd=$.slidesOffsetBefore.call(e));let pd=$.slidesOffsetAfter;typeof pd==`function`&&(pd=$.slidesOffsetAfter.call(e));let md=e.snapGrid.length,hd=e.slidesGrid.length,gd=$.spaceBetween,_d=-fd,vd=0,yd=0;if(nd===void 0)return;typeof gd==`string`&&gd.indexOf(`%`)>=0?gd=parseFloat(gd.replace(`%`,``))/100*nd:typeof gd==`string`&&(gd=parseFloat(gd)),e.virtualSize=-gd,sd.forEach(e=>{rd?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),$.centeredSlides&&$.cssMode&&(setCSSProperty(ed,`--swiper-centered-offset-before`,``),setCSSProperty(ed,`--swiper-centered-offset-after`,``));let bd=$.grid&&$.grid.rows>1&&e.grid;bd?e.grid.initSlides(sd):e.grid&&e.grid.unsetSlides();let xd,Sd=$.slidesPerView===`auto`&&$.breakpoints&&Object.keys($.breakpoints).filter(e=>$.breakpoints[e].slidesPerView!==void 0).length>0;for(let ed=0;ed<cd;ed+=1){xd=0;let td;if(sd[ed]&&(td=sd[ed]),bd&&e.grid.updateSlide(ed,td,sd),!(sd[ed]&&elementStyle(td,`display`)===`none`)){if($.slidesPerView===`auto`){Sd&&(sd[ed].style[e.getDirectionLabel(`width`)]=``);let nd=getComputedStyle(td),rd=td.style.transform,id=td.style.webkitTransform;if(rd&&(td.style.transform=`none`),id&&(td.style.webkitTransform=`none`),$.roundLengths)xd=e.isHorizontal()?elementOuterSize(td,`width`,!0):elementOuterSize(td,`height`,!0);else{let e=t(nd,`width`),$=t(nd,`padding-left`),ed=t(nd,`padding-right`),rd=t(nd,`margin-left`),id=t(nd,`margin-right`),ad=nd.getPropertyValue(`box-sizing`);if(ad&&ad===`border-box`)xd=e+rd+id;else{let{clientWidth:t,offsetWidth:nd}=td;xd=e+$+ed+rd+id+(nd-t)}}rd&&(td.style.transform=rd),id&&(td.style.webkitTransform=id),$.roundLengths&&(xd=Math.floor(xd))}else xd=(nd-($.slidesPerView-1)*gd)/$.slidesPerView,$.roundLengths&&(xd=Math.floor(xd)),sd[ed]&&(sd[ed].style[e.getDirectionLabel(`width`)]=`${xd}px`);sd[ed]&&(sd[ed].swiperSlideSize=xd),dd.push(xd),$.centeredSlides?(_d=_d+xd/2+vd/2+gd,vd===0&&ed!==0&&(_d=_d-nd/2-gd),ed===0&&(_d=_d-nd/2-gd),Math.abs(_d)<1/1e3&&(_d=0),$.roundLengths&&(_d=Math.floor(_d)),yd%$.slidesPerGroup===0&&ld.push(_d),ud.push(_d)):($.roundLengths&&(_d=Math.floor(_d)),(yd-Math.min(e.params.slidesPerGroupSkip,yd))%e.params.slidesPerGroup===0&&ld.push(_d),ud.push(_d),_d=_d+xd+gd),e.virtualSize+=xd+gd,vd=xd,yd+=1}}if(e.virtualSize=Math.max(e.virtualSize,nd)+pd,rd&&id&&($.effect===`slide`||$.effect===`coverflow`)&&(ed.style.width=`${e.virtualSize+gd}px`),$.setWrapperSize&&(ed.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+gd}px`),bd&&e.grid.updateWrapperSize(xd,ld),!$.centeredSlides){let t=[];for(let ed=0;ed<ld.length;ed+=1){let td=ld[ed];$.roundLengths&&(td=Math.floor(td)),ld[ed]<=e.virtualSize-nd&&t.push(td)}ld=t,Math.floor(e.virtualSize-nd)-Math.floor(ld[ld.length-1])>1&&ld.push(e.virtualSize-nd)}if(ad&&$.loop){let t=dd[0]+gd;if($.slidesPerGroup>1){let ed=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/$.slidesPerGroup),td=t*$.slidesPerGroup;for(let e=0;e<ed;e+=1)ld.push(ld[ld.length-1]+td)}for(let ed=0;ed<e.virtual.slidesBefore+e.virtual.slidesAfter;ed+=1)$.slidesPerGroup===1&&ld.push(ld[ld.length-1]+t),ud.push(ud[ud.length-1]+t),e.virtualSize+=t}if(ld.length===0&&(ld=[0]),gd!==0){let t=e.isHorizontal()&&rd?`marginLeft`:e.getDirectionLabel(`marginRight`);sd.filter((e,t)=>!$.cssMode||$.loop?!0:t!==sd.length-1).forEach(e=>{e.style[t]=`${gd}px`})}if($.centeredSlides&&$.centeredSlidesBounds){let e=0;dd.forEach(t=>{e+=t+(gd||0)}),e-=gd;let t=e>nd?e-nd:0;ld=ld.map(e=>e<=0?-fd:e>t?t+pd:e)}if($.centerInsufficientSlides){let e=0;dd.forEach(t=>{e+=t+(gd||0)}),e-=gd;let t=($.slidesOffsetBefore||0)+($.slidesOffsetAfter||0);if(e+t<nd){let $=(nd-e-t)/2;ld.forEach((e,t)=>{ld[t]=e-$}),ud.forEach((e,t)=>{ud[t]=e+$})}}if(Object.assign(e,{slides:sd,snapGrid:ld,slidesGrid:ud,slidesSizesGrid:dd}),$.centeredSlides&&$.cssMode&&!$.centeredSlidesBounds){setCSSProperty(ed,`--swiper-centered-offset-before`,`${-ld[0]}px`),setCSSProperty(ed,`--swiper-centered-offset-after`,`${e.size/2-dd[dd.length-1]/2}px`);let t=-e.snapGrid[0],$=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+$)}if(cd!==od&&e.emit(`slidesLengthChange`),ld.length!==md&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),ud.length!==hd&&e.emit(`slidesGridLengthChange`),$.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!ad&&!$.cssMode&&($.effect===`slide`||$.effect===`fade`)){let t=`${$.containerModifierClass}backface-hidden`,ed=e.el.classList.contains(t);cd<=$.maxBackfaceHiddenSlides?ed||e.el.classList.add(t):ed&&e.el.classList.remove(t)}}function updateAutoHeight(e){let t=this,$=[],ed=t.virtual&&t.params.virtual.enabled,td=0,nd;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let rd=e=>ed?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{$.push(e)});else for(nd=0;nd<Math.ceil(t.params.slidesPerView);nd+=1){let e=t.activeIndex+nd;if(e>t.slides.length&&!ed)break;$.push(rd(e))}else $.push(rd(t.activeIndex));for(nd=0;nd<$.length;nd+=1)if($[nd]!==void 0){let e=$[nd].offsetHeight;td=e>td?e:td}(td||td===0)&&(t.wrapperEl.style.height=`${td}px`)}function updateSlidesOffset(){let e=this,t=e.slides,$=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let ed=0;ed<t.length;ed+=1)t[ed].swiperSlideOffset=(e.isHorizontal()?t[ed].offsetLeft:t[ed].offsetTop)-$-e.cssOverflowAdjustment()}var toggleSlideClasses$1=(e,t,$)=>{t&&!e.classList.contains($)?e.classList.add($):!t&&e.classList.contains($)&&e.classList.remove($)};function updateSlidesProgress(e){e===void 0&&(e=this&&this.translate||0);let t=this,$=t.params,{slides:ed,rtlTranslate:td,snapGrid:nd}=t;if(ed.length===0)return;ed[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let rd=-e;td&&(rd=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let id=$.spaceBetween;typeof id==`string`&&id.indexOf(`%`)>=0?id=parseFloat(id.replace(`%`,``))/100*t.size:typeof id==`string`&&(id=parseFloat(id));for(let e=0;e<ed.length;e+=1){let ad=ed[e],od=ad.swiperSlideOffset;$.cssMode&&$.centeredSlides&&(od-=ed[0].swiperSlideOffset);let sd=(rd+($.centeredSlides?t.minTranslate():0)-od)/(ad.swiperSlideSize+id),cd=(rd-nd[0]+($.centeredSlides?t.minTranslate():0)-od)/(ad.swiperSlideSize+id),ld=-(rd-od),ud=ld+t.slidesSizesGrid[e],dd=ld>=0&&ld<=t.size-t.slidesSizesGrid[e],fd=ld>=0&&ld<t.size-1||ud>1&&ud<=t.size||ld<=0&&ud>=t.size;fd&&(t.visibleSlides.push(ad),t.visibleSlidesIndexes.push(e)),toggleSlideClasses$1(ad,fd,$.slideVisibleClass),toggleSlideClasses$1(ad,dd,$.slideFullyVisibleClass),ad.progress=td?-sd:sd,ad.originalProgress=td?-cd:cd}}function updateProgress(e){let t=this;if(e===void 0){let $=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*$||0}let $=t.params,ed=t.maxTranslate()-t.minTranslate(),{progress:td,isBeginning:nd,isEnd:rd,progressLoop:id}=t,ad=nd,od=rd;if(ed===0)td=0,nd=!0,rd=!0;else{td=(e-t.minTranslate())/ed;let $=Math.abs(e-t.minTranslate())<1,id=Math.abs(e-t.maxTranslate())<1;nd=$||td<=0,rd=id||td>=1,$&&(td=0),id&&(td=1)}if($.loop){let $=t.getSlideIndexByData(0),ed=t.getSlideIndexByData(t.slides.length-1),td=t.slidesGrid[$],nd=t.slidesGrid[ed],rd=t.slidesGrid[t.slidesGrid.length-1],ad=Math.abs(e);id=ad>=td?(ad-td)/rd:(ad+rd-nd)/rd,id>1&&--id}Object.assign(t,{progress:td,progressLoop:id,isBeginning:nd,isEnd:rd}),($.watchSlidesProgress||$.centeredSlides&&$.autoHeight)&&t.updateSlidesProgress(e),nd&&!ad&&t.emit(`reachBeginning toEdge`),rd&&!od&&t.emit(`reachEnd toEdge`),(ad&&!nd||od&&!rd)&&t.emit(`fromEdge`),t.emit(`progress`,td)}var toggleSlideClasses=(e,t,$)=>{t&&!e.classList.contains($)?e.classList.add($):!t&&e.classList.contains($)&&e.classList.remove($)};function updateSlidesClasses(){let e=this,{slides:t,params:$,slidesEl:ed,activeIndex:td}=e,nd=e.virtual&&$.virtual.enabled,rd=e.grid&&$.grid&&$.grid.rows>1,id=e=>elementChildren(ed,`.${$.slideClass}${e}, swiper-slide${e}`)[0],ad,od,sd;if(nd)if($.loop){let t=td-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),ad=id(`[data-swiper-slide-index="${t}"]`)}else ad=id(`[data-swiper-slide-index="${td}"]`);else rd?(ad=t.find(e=>e.column===td),sd=t.find(e=>e.column===td+1),od=t.find(e=>e.column===td-1)):ad=t[td];ad&&(rd||(sd=elementNextAll(ad,`.${$.slideClass}, swiper-slide`)[0],$.loop&&!sd&&(sd=t[0]),od=elementPrevAll(ad,`.${$.slideClass}, swiper-slide`)[0],$.loop)),t.forEach(e=>{toggleSlideClasses(e,e===ad,$.slideActiveClass),toggleSlideClasses(e,e===sd,$.slideNextClass),toggleSlideClasses(e,e===od,$.slidePrevClass)}),e.emitSlidesClasses()}var processLazyPreloader=(e,t)=>{if(!e||e.destroyed||!e.params)return;let $=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if($){let t=$.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&($.shadowRoot?t=$.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{$.shadowRoot&&(t=$.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},unlazy=(e,t)=>{if(!e.slides[t])return;let $=e.slides[t].querySelector(`[loading="lazy"]`);$&&$.removeAttribute(`loading`)},preload=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,$=e.slides.length;if(!$||!t||t<0)return;t=Math.min(t,$);let ed=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),td=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let $=td,nd=[$-t];nd.push(...Array.from({length:t}).map((e,t)=>$+ed+t)),e.slides.forEach((t,$)=>{nd.includes(t.column)&&unlazy(e,$)});return}let nd=td+ed-1;if(e.params.rewind||e.params.loop)for(let ed=td-t;ed<=nd+t;ed+=1){let t=(ed%$+$)%$;(t<td||t>nd)&&unlazy(e,t)}else for(let ed=Math.max(td-t,0);ed<=Math.min(nd+t,$-1);ed+=1)ed!==td&&(ed>nd||ed<td)&&unlazy(e,ed)};function getActiveIndexByTranslate(e){let{slidesGrid:t,params:$}=e,ed=e.rtlTranslate?e.translate:-e.translate,td;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?ed>=t[e]&&(td=e):ed>=t[e]&&ed<t[e+1]-(t[e+1]-t[e])/2?td=e:ed>=t[e]&&ed<t[e+1]&&(td=e+1);return $.normalizeSlideIndex&&(td<0||td===void 0)&&(td=0),td}function updateActiveIndex(e){let t=this,$=t.rtlTranslate?t.translate:-t.translate,{snapGrid:ed,params:td,activeIndex:nd,realIndex:rd,snapIndex:id}=t,ad=e,od,sd=e=>{let $=e-t.virtual.slidesBefore;return $<0&&($=t.virtual.slides.length+$),$>=t.virtual.slides.length&&($-=t.virtual.slides.length),$};if(ad===void 0&&(ad=getActiveIndexByTranslate(t)),ed.indexOf($)>=0)od=ed.indexOf($);else{let e=Math.min(td.slidesPerGroupSkip,ad);od=e+Math.floor((ad-e)/td.slidesPerGroup)}if(od>=ed.length&&(od=ed.length-1),ad===nd&&!t.params.loop){od!==id&&(t.snapIndex=od,t.emit(`snapIndexChange`));return}if(ad===nd&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=sd(ad);return}let cd=t.grid&&td.grid&&td.grid.rows>1,ld;if(t.virtual&&td.virtual.enabled&&td.loop)ld=sd(ad);else if(cd){let e=t.slides.find(e=>e.column===ad),$=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN($)&&($=Math.max(t.slides.indexOf(e),0)),ld=Math.floor($/td.grid.rows)}else if(t.slides[ad]){let e=t.slides[ad].getAttribute(`data-swiper-slide-index`);ld=e?parseInt(e,10):ad}else ld=ad;Object.assign(t,{previousSnapIndex:id,snapIndex:od,previousRealIndex:rd,realIndex:ld,previousIndex:nd,activeIndex:ad}),t.initialized&&preload(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(rd!==ld&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function updateClickedSlide(e,t){let $=this,ed=$.params,td=e.closest(`.${ed.slideClass}, swiper-slide`);!td&&$.isElement&&t&&t.length>
2751&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!td&&e.matches&&e.matches(`.${ed.slideClass}, swiper-slide`)&&(td=e)});let nd=!1,rd;if(td){for(let e=0;e<$.slides.length;e+=1)if($.slides[e]===td){nd=!0,rd=e;break}}if(td&&nd)$.clickedSlide=td,$.virtual&&$.params.virtual.enabled?$.clickedIndex=parseInt(td.getAttribute(`data-swiper-slide-index`),10):$.clickedIndex=rd;else{$.clickedSlide=void 0,$.clickedIndex=void 0;return}ed.slideToClickedSlide&&$.clickedIndex!==void 0&&$.clickedIndex!==$.activeIndex&&$.slideToClickedSlide()}var update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(e){e===void 0&&(e=this.isHorizontal()?`x`:`y`);let t=this,{params:$,rtlTranslate:ed,translate:td,wrapperEl:nd}=t;if($.virtualTranslate)return ed?-td:td;if($.cssMode)return td;let rd=getTranslate(nd,e);return rd+=t.cssOverflowAdjustment(),ed&&(rd=-rd),rd||0}function setTranslate(e,t){let $=this,{rtlTranslate:ed,params:td,wrapperEl:nd,progress:rd}=$,id=0,ad=0,od=0;$.isHorizontal()?id=ed?-e:e:ad=e,td.roundLengths&&(id=Math.floor(id),ad=Math.floor(ad)),$.previousTranslate=$.translate,$.translate=$.isHorizontal()?id:ad,td.cssMode?nd[$.isHorizontal()?`scrollLeft`:`scrollTop`]=$.isHorizontal()?-id:-ad:td.virtualTranslate||($.isHorizontal()?id-=$.cssOverflowAdjustment():ad-=$.cssOverflowAdjustment(),nd.style.transform=`translate3d(${id}px, ${ad}px, 0px)`);let sd,cd=$.maxTranslate()-$.minTranslate();sd=cd===0?0:(e-$.minTranslate())/cd,sd!==rd&&$.updateProgress(e),$.emit(`setTranslate`,$.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e,t,$,ed,td){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),$===void 0&&($=!0),ed===void 0&&(ed=!0);let nd=this,{params:rd,wrapperEl:id}=nd;if(nd.animating&&rd.preventInteractionOnTransition)return!1;let ad=nd.minTranslate(),od=nd.maxTranslate(),sd;if(sd=ed&&e>ad?ad:ed&&e<od?od:e,nd.updateProgress(sd),rd.cssMode){let e=nd.isHorizontal();if(t===0)id[e?`scrollLeft`:`scrollTop`]=-sd;else{if(!nd.support.smoothScroll)return animateCSSModeScroll({swiper:nd,targetPosition:-sd,side:e?`left`:`top`}),!0;id.scrollTo({[e?`left`:`top`]:-sd,behavior:`smooth`})}return!0}return t===0?(nd.setTransition(0),nd.setTranslate(sd),$&&(nd.emit(`beforeTransitionStart`,t,td),nd.emit(`transitionEnd`))):(nd.setTransition(t),nd.setTranslate(sd),$&&(nd.emit(`beforeTransitionStart`,t,td),nd.emit(`transitionStart`)),nd.animating||(nd.animating=!0,nd.onTranslateToWrapperTransitionEnd||=function(e){!nd||nd.destroyed||e.target===this&&(nd.wrapperEl.removeEventListener(`transitionend`,nd.onTranslateToWrapperTransitionEnd),nd.onTranslateToWrapperTransitionEnd=null,delete nd.onTranslateToWrapperTransitionEnd,nd.animating=!1,$&&nd.emit(`transitionEnd`))},nd.wrapperEl.addEventListener(`transitionend`,nd.onTranslateToWrapperTransitionEnd))),!0}var translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(e,t){let $=this;$.params.cssMode||($.wrapperEl.style.transitionDuration=`${e}ms`,$.wrapperEl.style.transitionDelay=e===0?`0ms`:``),$.emit(`setTransition`,e,t)}function transitionEmit(e){let{swiper:t,runCallbacks:$,direction:ed,step:td}=e,{activeIndex:nd,previousIndex:rd}=t,id=ed;id||=nd>rd?`next`:nd<rd?`prev`:`reset`,t.emit(`transition${td}`),$&&id===`reset`?t.emit(`slideResetTransition${td}`):$&&nd!==rd&&(t.emit(`slideChangeTransition${td}`),id===`next`?t.emit(`slideNextTransition${td}`):t.emit(`slidePrevTransition${td}`))}function transitionStart(e,t){e===void 0&&(e=!0);let $=this,{params:ed}=$;ed.cssMode||(ed.autoHeight&&$.updateAutoHeight(),transitionEmit({swiper:$,runCallbacks:e,direction:t,step:`Start`}))}function transitionEnd(e,t){e===void 0&&(e=!0);let $=this,{params:ed}=$;$.animating=!1,!ed.cssMode&&($.setTransition(0),transitionEmit({swiper:$,runCallbacks:e,direction:t,step:`End`}))}var transition={setTransition,transitionStart,transitionEnd};function slideTo(e,t,$,ed,td){e===void 0&&(e=0),$===void 0&&($=!0),typeof e==`string`&&(e=parseInt(e,10));let nd=this,rd=e;rd<0&&(rd=0);let{params:id,snapGrid:ad,slidesGrid:od,previousIndex:sd,activeIndex:cd,rtlTranslate:ld,wrapperEl:ud,enabled:dd}=nd;if(!dd&&!ed&&!td||nd.destroyed||nd.animating&&id.preventInteractionOnTransition)return!1;t===void 0&&(t=nd.params.speed);let fd=Math.min(nd.params.slidesPerGroupSkip,rd),pd=fd+Math.floor((rd-fd)/nd.params.slidesPerGroup);pd>=ad.length&&(pd=ad.length-1);let md=-ad[pd];if(id.normalizeSlideIndex)for(let e=0;e<od.length;e+=1){let t=-Math.floor(md*100),$=Math.floor(od[e]*100),ed=Math.floor(od[e+1]*100);od[e+1]===void 0?t>=$&&(rd=e):t>=$&&t<ed-(ed-$)/2?rd=e:t>=$&&t<ed&&(rd=e+1)}if(nd.initialized&&rd!==cd&&(!nd.allowSlideNext&&(ld?md>nd.translate&&md>nd.minTranslate():md<nd.translate&&md<nd.minTranslate())||!nd.allowSlidePrev&&md>nd.translate&&md>nd.maxTranslate()&&(cd||0)!==rd))return!1;rd!==(sd||0)&&$&&nd.emit(`beforeSlideChangeStart`),nd.updateProgress(md);let hd;hd=rd>cd?`next`:rd<cd?`prev`:`reset`;let gd=nd.virtual&&nd.params.virtual.enabled;if(!(gd&&td)&&(ld&&-md===nd.translate||!ld&&md===nd.translate))return nd.updateActiveIndex(rd),id.autoHeight&&nd.updateAutoHeight(),nd.updateSlidesClasses(),id.effect!==`slide`&&nd.setTranslate(md),hd!==`reset`&&(nd.transitionStart($,hd),nd.transitionEnd($,hd)),!1;if(id.cssMode){let e=nd.isHorizontal(),$=ld?md:-md;if(t===0)gd&&(nd.wrapperEl.style.scrollSnapType=`none`,nd._immediateVirtual=!0),gd&&!nd._cssModeVirtualInitialSet&&nd.params.initialSlide>0?(nd._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{ud[e?`scrollLeft`:`scrollTop`]=$})):ud[e?`scrollLeft`:`scrollTop`]=$,gd&&requestAnimationFrame(()=>{nd.wrapperEl.style.scrollSnapType=``,nd._immediateVirtual=!1});else{if(!nd.support.smoothScroll)return animateCSSModeScroll({swiper:nd,targetPosition:$,side:e?`left`:`top`}),!0;ud.scrollTo({[e?`left`:`top`]:$,behavior:`smooth`})}return!0}let _d=getBrowser().isSafari;return gd&&!td&&_d&&nd.isElement&&nd.virtual.update(!1,!1,rd),nd.setTransition(t),nd.setTranslate(md),nd.updateActiveIndex(rd),nd.updateSlidesClasses(),nd.emit(`beforeTransitionStart`,t,ed),nd.transitionStart($,hd),t===0?nd.transitionEnd($,hd):nd.animating||(nd.animating=!0,nd.onSlideToWrapperTransitionEnd||=function(e){!nd||nd.destroyed||e.target===this&&(nd.wrapperEl.removeEventListener(`transitionend`,nd.onSlideToWrapperTransitionEnd),nd.onSlideToWrapperTransitionEnd=null,delete nd.onSlideToWrapperTransitionEnd,nd.transitionEnd($,hd))},nd.wrapperEl.addEventListener(`transitionend`,nd.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(e,t,$,ed){e===void 0&&(e=0),$===void 0&&($=!0),typeof e==`string`&&(e=parseInt(e,10));let td=this;if(td.destroyed)return;t===void 0&&(t=td.params.speed);let nd=td.grid&&td.params.grid&&td.params.grid.rows>1,rd=e;if(td.params.loop)if(td.virtual&&td.params.virtual.enabled)rd+=td.virtual.slidesBefore;else{let e;if(nd){let t=rd*td.params.grid.rows;e=td.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)*1===t).column}else e=td.getSlideIndexByData(rd);
275let t=nd?Math.ceil(td.slides.length/td.params.grid.rows):td.slides.length,{centeredSlides:$}=td.params,id=td.params.slidesPerView;id===`auto`?id=td.slidesPerViewDynamic():(id=Math.ceil(parseFloat(td.params.slidesPerView,10)),$&&id%2==0&&(id+=1));let ad=t-e<id;if($&&(ad||=e<Math.ceil(id/2)),ed&&$&&td.params.slidesPerView!==`auto`&&!nd&&(ad=!1),ad){let ed=$?e<td.activeIndex?`prev`:`next`:e-td.activeIndex-1<td.params.slidesPerView?`next`:`prev`;td.loopFix({direction:ed,slideTo:!0,activeSlideIndex:ed===`next`?e+1:e-t+1,slideRealIndex:ed===`next`?td.realIndex:void 0})}if(nd){let e=rd*td.params.grid.rows;rd=td.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e).column}else rd=td.getSlideIndexByData(rd)}return requestAnimationFrame(()=>{td.slideTo(rd,t,$,ed)}),td}function slideNext(e,t,$){t===void 0&&(t=!0);let ed=this,{enabled:td,params:nd,animating:rd}=ed;if(!td||ed.destroyed)return ed;e===void 0&&(e=ed.params.speed);let id=nd.slidesPerGroup;nd.slidesPerView===`auto`&&nd.slidesPerGroup===1&&nd.slidesPerGroupAuto&&(id=Math.max(ed.slidesPerViewDynamic(`current`,!0),1));let ad=ed.activeIndex<nd.slidesPerGroupSkip?1:id,od=ed.virtual&&nd.virtual.enabled;if(nd.loop){if(rd&&!od&&nd.loopPreventsSliding)return!1;if(ed.loopFix({direction:`next`}),ed._clientLeft=ed.wrapperEl.clientLeft,ed.activeIndex===ed.slides.length-1&&nd.cssMode)return requestAnimationFrame(()=>{ed.slideTo(ed.activeIndex+ad,e,t,$)}),!0}return nd.rewind&&ed.isEnd?ed.slideTo(0,e,t,$):ed.slideTo(ed.activeIndex+ad,e,t,$)}function slidePrev(e,t,$){t===void 0&&(t=!0);let ed=this,{params:td,snapGrid:nd,slidesGrid:rd,rtlTranslate:id,enabled:ad,animating:od}=ed;if(!ad||ed.destroyed)return ed;e===void 0&&(e=ed.params.speed);let sd=ed.virtual&&td.virtual.enabled;if(td.loop){if(od&&!sd&&td.loopPreventsSliding)return!1;ed.loopFix({direction:`prev`}),ed._clientLeft=ed.wrapperEl.clientLeft}let cd=id?ed.translate:-ed.translate;function ld(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let ud=ld(cd),dd=nd.map(e=>ld(e)),fd=td.freeMode&&td.freeMode.enabled,pd=nd[dd.indexOf(ud)-1];if(pd===void 0&&(td.cssMode||fd)){let e;nd.forEach((t,$)=>{ud>=t&&(e=$)}),e!==void 0&&(pd=fd?nd[e]:nd[e>0?e-1:e])}let md=0;if(pd!==void 0&&(md=rd.indexOf(pd),md<0&&(md=ed.activeIndex-1),td.slidesPerView===`auto`&&td.slidesPerGroup===1&&td.slidesPerGroupAuto&&(md=md-ed.slidesPerViewDynamic(`previous`,!0)+1,md=Math.max(md,0))),td.rewind&&ed.isBeginning){let td=ed.params.virtual&&ed.params.virtual.enabled&&ed.virtual?ed.virtual.slides.length-1:ed.slides.length-1;return ed.slideTo(td,e,t,$)}else if(td.loop&&ed.activeIndex===0&&td.cssMode)return requestAnimationFrame(()=>{ed.slideTo(md,e,t,$)}),!0;return ed.slideTo(md,e,t,$)}function slideReset(e,t,$){t===void 0&&(t=!0);let ed=this;if(!ed.destroyed)return e===void 0&&(e=ed.params.speed),ed.slideTo(ed.activeIndex,e,t,$)}function slideToClosest(e,t,$,ed){t===void 0&&(t=!0),ed===void 0&&(ed=.5);let td=this;if(td.destroyed)return;e===void 0&&(e=td.params.speed);let nd=td.activeIndex,rd=Math.min(td.params.slidesPerGroupSkip,nd),id=rd+Math.floor((nd-rd)/td.params.slidesPerGroup),ad=td.rtlTranslate?td.translate:-td.translate;if(ad>=td.snapGrid[id]){let e=td.snapGrid[id],t=td.snapGrid[id+1];ad-e>(t-e)*ed&&(nd+=td.params.slidesPerGroup)}else{let e=td.snapGrid[id-1],t=td.snapGrid[id];ad-e<=(t-e)*ed&&(nd-=td.params.slidesPerGroup)}return nd=Math.max(nd,0),nd=Math.min(nd,td.slidesGrid.length-1),td.slideTo(nd,e,t,$)}function slideToClickedSlide(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:$}=e,ed=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,td=e.getSlideIndexWhenGrid(e.clickedIndex),nd,rd=e.isElement?`swiper-slide`:`.${t.slideClass}`,id=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;nd=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(nd):td>(id?(e.slides.length-ed)/2-(e.params.grid.rows-1):e.slides.length-ed)?(e.loopFix(),td=e.getSlideIndex(elementChildren($,`${rd}[data-swiper-slide-index="${nd}"]`)[0]),nextTick(()=>{e.slideTo(td)})):e.slideTo(td)}else e.slideTo(td)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(e,t){let $=this,{params:ed,slidesEl:td}=$;if(!ed.loop||$.virtual&&$.params.virtual.enabled)return;let nd=()=>{elementChildren(td,`.${ed.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)})},rd=()=>{let e=elementChildren(td,`.${ed.slideBlankClass}`);
275e.forEach(e=>{e.remove()}),e.length>0&&($.recalcSlides(),$.updateSlides())},id=$.grid&&ed.grid&&ed.grid.rows>1;ed.loopAddBlankSlides&&(ed.slidesPerGroup>1||id)&&rd();let ad=ed.slidesPerGroup*(id?ed.grid.rows:1),od=$.slides.length%ad!==0,sd=id&&$.slides.length%ed.grid.rows!==0,cd=e=>{for(let t=0;t<e;t+=1){let e=$.isElement?createElement$1(`swiper-slide`,[ed.slideBlankClass]):createElement$1(`div`,[ed.slideClass,ed.slideBlankClass]);$.slidesEl.append(e)}};od?(ed.loopAddBlankSlides?(cd(ad-$.slides.length%ad),$.recalcSlides(),$.updateSlides()):showWarning(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),nd()):(sd&&(ed.loopAddBlankSlides?(cd(ed.grid.rows-$.slides.length%ed.grid.rows),$.recalcSlides(),$.updateSlides()):showWarning(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),nd()),$.loopFix({slideRealIndex:e,direction:ed.centeredSlides?void 0:`next`,initial:t})}function loopFix(e){let{slideRealIndex:t,slideTo:$=!0,direction:ed,setTranslate:td,activeSlideIndex:nd,initial:rd,byController:id,byMousewheel:ad}=e===void 0?{}:e,od=this;if(!od.params.loop)return;od.emit(`beforeLoopFix`);let{slides:sd,allowSlidePrev:cd,allowSlideNext:ld,slidesEl:ud,params:dd}=od,{centeredSlides:fd,initialSlide:pd}=dd;if(od.allowSlidePrev=!0,od.allowSlideNext=!0,od.virtual&&dd.virtual.enabled){$&&(!dd.centeredSlides&&od.snapIndex===0?od.slideTo(od.virtual.slides.length,0,!1,!0):dd.centeredSlides&&od.snapIndex<dd.slidesPerView?od.slideTo(od.virtual.slides.length+od.snapIndex,0,!1,!0):od.snapIndex===od.snapGrid.length-1&&od.slideTo(od.virtual.slidesBefore,0,!1,!0)),od.allowSlidePrev=cd,od.allowSlideNext=ld,od.emit(`loopFix`);return}let md=dd.slidesPerView;md===`auto`?md=od.slidesPerViewDynamic():(md=Math.ceil(parseFloat(dd.slidesPerView,10)),fd&&md%2==0&&(md+=1));let hd=dd.slidesPerGroupAuto?md:dd.slidesPerGroup,gd=fd?Math.max(hd,Math.ceil(md/2)):hd;gd%hd!==0&&(gd+=hd-gd%hd),gd+=dd.loopAdditionalSlides,od.loopedSlides=gd;let _d=od.grid&&dd.grid&&dd.grid.rows>1;sd.length<md+gd||od.params.effect===`cards`&&sd.length<md+gd*2?showWarning(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):_d&&dd.grid.fill===`row`&&showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let vd=[],yd=[],bd=_d?Math.ceil(sd.length/dd.grid.rows):sd.length,xd=rd&&bd-pd<md&&!fd,Sd=xd?pd:od.activeIndex;nd===void 0?nd=od.getSlideIndex(sd.find(e=>e.classList.contains(dd.slideActiveClass))):Sd=nd;let Cd=ed===`next`||!ed,wd=ed===`prev`||!ed,Td=0,Ed=0,Dd=(_d?sd[nd].column:nd)+(fd&&td===void 0?-md/2+.5:0);if(Dd<gd){Td=Math.max(gd-Dd,hd);for(let e=0;e<gd-Dd;e+=1){let t=e-Math.floor(e/bd)*bd;if(_d){let e=bd-t-1;for(let t=sd.length-1;t>=0;--t)sd[t].column===e&&vd.push(t)}else vd.push(bd-t-1)}}else if(Dd+md>bd-gd){Ed=Math.max(Dd-(bd-gd*2),hd),xd&&(Ed=Math.max(Ed,md-bd+pd+1));for(let e=0;e<Ed;e+=1){let t=e-Math.floor(e/bd)*bd;_d?sd.forEach((e,$)=>{e.column===t&&yd.push($)}):yd.push(t)}}if(od.__preventObserver__=!0,requestAnimationFrame(()=>{od.__preventObserver__=!1}),od.params.effect===`cards`&&sd.length<md+gd*2&&(yd.includes(nd)&&yd.splice(yd.indexOf(nd),1),vd.includes(nd)&&vd.splice(vd.indexOf(nd),1)),wd&&vd.forEach(e=>{sd[e].swiperLoopMoveDOM=!0,ud.prepend(sd[e]),sd[e].swiperLoopMoveDOM=!1}),Cd&&yd.forEach(e=>{sd[e].swiperLoopMoveDOM=!0,ud.append(sd[e]),sd[e].swiperLoopMoveDOM=!1}),od.recalcSlides(),dd.slidesPerView===`auto`?od.updateSlides():_d&&(vd.length>0&&wd||yd.length>0&&Cd)&&od.slides.forEach((e,t)=>{od.grid.updateSlide(t,e,od.slides)}),dd.watchSlidesProgress&&od.updateSlidesOffset(),$){if(vd.length>0&&wd){if(t===void 0){let e=od.slidesGrid[Sd],t=od.slidesGrid[Sd+Td]-e;ad?od.setTranslate(od.translate-t):(od.slideTo(Sd+Math.ceil(Td),0,!1,!0),td&&(od.touchEventsData.startTranslate=od.touchEventsData.startTranslate-t,od.touchEventsData.currentTranslate=od.touchEventsData.currentTranslate-t))}else if(td){let e=_d?vd.length/dd.grid.rows:vd.length;od.slideTo(od.activeIndex+e,0,!1,!0),od.touchEventsData.currentTranslate=od.translate}}else if(yd.length>0&&Cd)if(t===void 0){let e=od.slidesGrid[Sd],t=od.slidesGrid[Sd-Ed]-e;ad?od.setTranslate(od.translate-t):(od.slideTo(Sd-Ed,0,!1,!0),td&&(od.touchEventsData.startTranslate=od.touchEventsData.startTranslate-t,od.touchEventsData.currentTranslate=od.touchEventsData.currentTranslate-t))}else{let e=_d?yd.length/dd.grid.rows:yd.length;od.slideTo(od.activeIndex-e,0,!1,!0)}}if(od.allowSlidePrev=cd,od.allowSlideNext=ld,od.controller&&od.controller.control&&!id){let e={slideRealIndex:t,direction:ed,setTranslate:td,activeSlideIndex:nd,byController:!0};Array.isArray(od.controller.control)?od.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===dd.slidesPerView?$:!1})}):od.controller.control instanceof od.constructor&&od.controller.control.params.loop&&od.controller.control.loopFix({...e,slideTo:od.controller.control.params.slidesPerView===dd.slidesPerView?$:!1})}od.emit(`loopFix`)}function loopDestroy(){let e=this,{params:t,slidesEl:$}=e;if(!t.loop||!$||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let ed=[];
vendor: 6,666 bytes, line 275
275e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;ed[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),ed.forEach(e=>{$.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let $=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),$.style.cursor=`move`,$.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function unsetGrabCursor(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(e,t){t===void 0&&(t=this);function $(t){if(!t||t===getDocument()||t===getWindow())return null;t.assignedSlot&&(t=t.assignedSlot);let ed=t.closest(e);return!ed&&!t.getRootNode?null:ed||$(t.getRootNode().host)}return $(t)}function preventEdgeSwipe(e,t,$){let ed=getWindow(),{params:td}=e,nd=td.edgeSwipeDetection,rd=td.edgeSwipeThreshold;return nd&&($<=rd||$>=ed.innerWidth-rd)?nd===`prevent`?(t.preventDefault(),!0):!1:!0}function onTouchStart(e){let t=this,$=getDocument(),ed=e;ed.originalEvent&&(ed=ed.originalEvent);let td=t.touchEventsData;if(ed.type===`pointerdown`){if(td.pointerId!==null&&td.pointerId!==ed.pointerId)return;td.pointerId=ed.pointerId}else ed.type===`touchstart`&&ed.targetTouches.length===1&&(td.touchId=ed.targetTouches[0].identifier);if(ed.type===`touchstart`){preventEdgeSwipe(t,ed,ed.targetTouches[0].pageX);return}let{params:nd,touches:rd,enabled:id}=t;if(!id||!nd.simulateTouch&&ed.pointerType===`mouse`||t.animating&&nd.preventInteractionOnTransition)return;!t.animating&&nd.cssMode&&nd.loop&&t.loopFix();let ad=ed.target;if(nd.touchEventsTarget===`wrapper`&&!elementIsChildOf(ad,t.wrapperEl)||`which`in ed&&ed.which===3||`button`in ed&&ed.button>0||td.isTouched&&td.isMoved)return;let od=!!nd.noSwipingClass&&nd.noSwipingClass!==``,sd=ed.composedPath?ed.composedPath():ed.path;od&&ed.target&&ed.target.shadowRoot&&sd&&(ad=sd[0]);let cd=nd.noSwipingSelector?nd.noSwipingSelector:`.${nd.noSwipingClass}`,ld=!!(ed.target&&ed.target.shadowRoot);if(nd.noSwiping&&(ld?closestElement(cd,ad):ad.closest(cd))){t.allowClick=!0;return}if(nd.swipeHandler&&!ad.closest(nd.swipeHandler))return;rd.currentX=ed.pageX,rd.currentY=ed.pageY;let ud=rd.currentX,dd=rd.currentY;if(!preventEdgeSwipe(t,ed,ud))return;Object.assign(td,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),rd.startX=ud,rd.startY=dd,td.touchStartTime=now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,nd.threshold>0&&(td.allowThresholdMove=!1);let fd=!0;ad.matches(td.focusableElements)&&(fd=!1,ad.nodeName===`SELECT`&&(td.isTouched=!1)),$.activeElement&&$.activeElement.matches(td.focusableElements)&&$.activeElement!==ad&&(ed.pointerType===`mouse`||ed.pointerType!==`mouse`&&!ad.matches(td.focusableElements))&&$.activeElement.blur();let pd=fd&&t.allowTouchMove&&nd.touchStartPreventDefault;(nd.touchStartForcePreventDefault||pd)&&!ad.isContentEditable&&ed.preventDefault(),nd.freeMode&&nd.freeMode.enabled&&t.freeMode&&t.animating&&!nd.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,ed)}function onTouchMove(e){let t=getDocument(),$=this,ed=$.touchEventsData,{params:td,touches:nd,rtlTranslate:rd,enabled:id}=$;if(!id||!td.simulateTouch&&e.pointerType===`mouse`)return;let ad=e;if(ad.originalEvent&&(ad=ad.originalEvent),ad.type===`pointermove`&&(ed.touchId!==null||ad.pointerId!==ed.pointerId))return;let od;if(ad.type===`touchmove`){if(od=[...ad.changedTouches].find(e=>e.identifier===ed.touchId),!od||od.identifier!==ed.touchId)return}else od=ad;if(!ed.isTouched){ed.startMoving&&ed.isScrolling&&$.emit(`touchMoveOpposite`,ad);return}let sd=od.pageX,cd=od.pageY;if(ad.preventedByNestedSwiper){nd.startX=sd,nd.startY=cd;return}if(!$.allowTouchMove){ad.target.matches(ed.focusableElements)||($.allowClick=!1),ed.isTouched&&(Object.assign(nd,{startX:sd,startY:cd,currentX:sd,currentY:cd}),ed.touchStartTime=now());return}if(td.touchReleaseOnEdges&&!td.loop){if($.isVertical()){if(cd<nd.startY&&$.translate<=$.maxTranslate()||cd>nd.startY&&$.translate>=$.minTranslate()){ed.isTouched=!1,ed.isMoved=!1;return}}else if(rd&&(sd>nd.startX&&-$.translate<=$.maxTranslate()||sd<nd.startX&&-$.translate>=$.minTranslate()))return;else if(!rd&&(sd<nd.startX&&$.translate<=$.maxTranslate()||sd>nd.startX&&$.translate>=$.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(ed.focusableElements)&&t.activeElement!==ad.target&&ad.pointerType!==`mouse`&&t.activeElement.blur(),t.activeElement&&ad.target===t.activeElement&&ad.target.matches(ed.focusableElements)){ed.isMoved=!0,$.allowClick=!1;return}ed.allowTouchCallbacks&&$.emit(`touchMove`,ad),nd.previousX=nd.currentX,nd.previousY=nd.currentY,nd.currentX=sd,nd.currentY=cd;let ld=nd.currentX-nd.startX,ud=nd.currentY-nd.startY;if($.params.threshold&&Math.sqrt(ld**2+ud**2)<$.params.threshold)return;if(ed.isScrolling===void 0){let e;$.isHorizontal()&&nd.currentY===nd.startY||$.isVertical()&&nd.currentX===nd.startX?ed.isScrolling=!1:ld*ld+ud*ud>=25&&(e=Math.atan2(Math.abs(ud),Math.abs(ld))*180/Math.PI,ed.isScrolling=$.isHorizontal()?e>td.touchAngle:90-e>td.touchAngle)}if(ed.isScrolling&&$.emit(`touchMoveOpposite`,ad),ed.startMoving===void 0&&(nd.currentX!==nd.startX||nd.currentY!==nd.startY)&&(ed.startMoving=!0),ed.isScrolling||ad.type===`touchmove`&&ed.preventTouchMoveFromPointerMove){ed.isTouched=!1;return}if(!ed.startMoving)return;$.allowClick=!1,!td.cssMode&&ad.cancelable&&ad.preventDefault(),td.touchMoveStopPropagation&&!td.nested&&ad.stopPropagation();let dd=$.isHorizontal()?ld:ud,fd=$.isHorizontal()?nd.currentX-nd.previousX:nd.currentY-nd.previousY;td.oneWayMovement&&(dd=Math.abs(dd)*(rd?1:-1),fd=Math.abs(fd)*(rd?1:-1)),nd.diff=dd,dd*=td.touchRatio,rd&&(dd=-dd,fd=-fd);let pd=$.touchesDirection;$.swipeDirection=dd>0?`prev`:`next`,$.touchesDirection=fd>0?`prev`:`next`;let md=$.params.loop&&!td.cssMode,hd=$.touchesDirection===`next`&&$.allowSlideNext||$.touchesDirection===`prev`&&$.allowSlidePrev;if(!ed.isMoved){if(md&&hd&&$.loopFix({direction:$.swipeDirection}),ed.startTranslate=$.getTranslate(),$.setTransition(0),$.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 8,597 bytes, line 275
275$.wrapperEl.dispatchEvent(e)}ed.allowMomentumBounce=!1,td.grabCursor&&($.allowSlideNext===!0||$.allowSlidePrev===!0)&&$.setGrabCursor(!0),$.emit(`sliderFirstMove`,ad)}if(new Date().getTime(),td._loopSwapReset!==!1&&ed.isMoved&&ed.allowThresholdMove&&pd!==$.touchesDirection&&md&&hd&&Math.abs(dd)>=1){Object.assign(nd,{startX:sd,startY:cd,currentX:sd,currentY:cd,startTranslate:ed.currentTranslate}),ed.loopSwapReset=!0,ed.startTranslate=ed.currentTranslate;return}$.emit(`sliderMove`,ad),ed.isMoved=!0,ed.currentTranslate=dd+ed.startTranslate;let gd=!0,_d=td.resistanceRatio;if(td.touchReleaseOnEdges&&(_d=0),dd>0?(md&&hd&&ed.allowThresholdMove&&ed.currentTranslate>(td.centeredSlides?$.minTranslate()-$.slidesSizesGrid[$.activeIndex+1]-(td.slidesPerView!==`auto`&&$.slides.length-td.slidesPerView>=2?$.slidesSizesGrid[$.activeIndex+1]+$.params.spaceBetween:0)-$.params.spaceBetween:$.minTranslate())&&$.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),ed.currentTranslate>$.minTranslate()&&(gd=!1,td.resistance&&(ed.currentTranslate=$.minTranslate()-1+(-$.minTranslate()+ed.startTranslate+dd)**_d))):dd<0&&(md&&hd&&ed.allowThresholdMove&&ed.currentTranslate<(td.centeredSlides?$.maxTranslate()+$.slidesSizesGrid[$.slidesSizesGrid.length-1]+$.params.spaceBetween+(td.slidesPerView!==`auto`&&$.slides.length-td.slidesPerView>=2?$.slidesSizesGrid[$.slidesSizesGrid.length-1]+$.params.spaceBetween:0):$.maxTranslate())&&$.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:$.slides.length-(td.slidesPerView===`auto`?$.slidesPerViewDynamic():Math.ceil(parseFloat(td.slidesPerView,10)))}),ed.currentTranslate<$.maxTranslate()&&(gd=!1,td.resistance&&(ed.currentTranslate=$.maxTranslate()+1-($.maxTranslate()-ed.startTranslate-dd)**_d))),gd&&(ad.preventedByNestedSwiper=!0),!$.allowSlideNext&&$.swipeDirection===`next`&&ed.currentTranslate<ed.startTranslate&&(ed.currentTranslate=ed.startTranslate),!$.allowSlidePrev&&$.swipeDirection===`prev`&&ed.currentTranslate>ed.startTranslate&&(ed.currentTranslate=ed.startTranslate),!$.allowSlidePrev&&!$.allowSlideNext&&(ed.currentTranslate=ed.startTranslate),td.threshold>0)if(Math.abs(dd)>td.threshold||ed.allowThresholdMove){if(!ed.allowThresholdMove){ed.allowThresholdMove=!0,nd.startX=nd.currentX,nd.startY=nd.currentY,ed.currentTranslate=ed.startTranslate,nd.diff=$.isHorizontal()?nd.currentX-nd.startX:nd.currentY-nd.startY;return}}else{ed.currentTranslate=ed.startTranslate;return}!td.followFinger||td.cssMode||((td.freeMode&&td.freeMode.enabled&&$.freeMode||td.watchSlidesProgress)&&($.updateActiveIndex(),$.updateSlidesClasses()),td.freeMode&&td.freeMode.enabled&&$.freeMode&&$.freeMode.onTouchMove(),$.updateProgress(ed.currentTranslate),$.setTranslate(ed.currentTranslate))}function onTouchEnd(e){let t=this,$=t.touchEventsData,ed=e;ed.originalEvent&&(ed=ed.originalEvent);let td;if(!(ed.type===`touchend`||ed.type===`touchcancel`)){if($.touchId!==null||ed.pointerId!==$.pointerId)return;td=ed}else if(td=[...ed.changedTouches].find(e=>e.identifier===$.touchId),!td||td.identifier!==$.touchId)return;if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(ed.type)&&!([`pointercancel`,`contextmenu`].includes(ed.type)&&(t.browser.isSafari||t.browser.isWebView)))return;$.pointerId=null,$.touchId=null;let{params:nd,touches:rd,rtlTranslate:id,slidesGrid:ad,enabled:od}=t;if(!od||!nd.simulateTouch&&ed.pointerType===`mouse`)return;if($.allowTouchCallbacks&&t.emit(`touchEnd`,ed),$.allowTouchCallbacks=!1,!$.isTouched){$.isMoved&&nd.grabCursor&&t.setGrabCursor(!1),$.isMoved=!1,$.startMoving=!1;return}nd.grabCursor&&$.isMoved&&$.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let sd=now(),cd=sd-$.touchStartTime;if(t.allowClick){let e=ed.path||ed.composedPath&&ed.composedPath();t.updateClickedSlide(e&&e[0]||ed.target,e),t.emit(`tap click`,ed),cd<300&&sd-$.lastClickTime<300&&t.emit(`doubleTap doubleClick`,ed)}if($.lastClickTime=now(),nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!$.isTouched||!$.isMoved||!t.swipeDirection||rd.diff===0&&!$.loopSwapReset||$.currentTranslate===$.startTranslate&&!$.loopSwapReset){$.isTouched=!1,$.isMoved=!1,$.startMoving=!1;return}$.isTouched=!1,$.isMoved=!1,$.startMoving=!1;let ld;if(ld=nd.followFinger?id?t.translate:-t.translate:-$.currentTranslate,nd.cssMode)return;if(nd.freeMode&&nd.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:ld});return}let ud=ld>=-t.maxTranslate()&&!t.params.loop,dd=0,fd=t.slidesSizesGrid[0];for(let e=0;e<ad.length;e+=e<nd.slidesPerGroupSkip?1:nd.slidesPerGroup){let t=e<nd.slidesPerGroupSkip-1?1:nd.slidesPerGroup;ad[e+t]===void 0?(ud||ld>=ad[e])&&(dd=e,fd=ad[ad.length-1]-ad[ad.length-2]):(ud||ld>=ad[e]&&ld<ad[e+t])&&(dd=e,fd=ad[e+t]-ad[e])}let pd=null,md=null;nd.rewind&&(t.isBeginning?md=nd.virtual&&nd.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(pd=0));let hd=(ld-ad[dd])/fd,gd=dd<nd.slidesPerGroupSkip-1?1:nd.slidesPerGroup;if(cd>nd.longSwipesMs){if(!nd.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(hd>=nd.longSwipesRatio?t.slideTo(nd.rewind&&t.isEnd?pd:dd+gd):t.slideTo(dd)),t.swipeDirection===`prev`&&(hd>1-nd.longSwipesRatio?t.slideTo(dd+gd):md!==null&&hd<0&&Math.abs(hd)>nd.longSwipesRatio?t.slideTo(md):t.slideTo(dd))}else{if(!nd.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(ed.target===t.navigation.nextEl||ed.target===t.navigation.prevEl)?ed.target===t.navigation.nextEl?t.slideTo(dd+gd):t.slideTo(dd):(t.swipeDirection===`next`&&t.slideTo(pd===null?dd+gd:pd),t.swipeDirection===`prev`&&t.slideTo(md===null?dd:md))}}function onResize(){let e=this,{params:t,el:$}=e;if($&&$.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:ed,allowSlidePrev:td,snapGrid:nd}=e,rd=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let id=rd&&t.loop;(t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!id?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!rd?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=td,e.allowSlideNext=ed,e.params.watchOverflow&&nd!==e.snapGrid&&e.checkOverflow()}function onClick(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function onScroll(){let e=this,{wrapperEl:t,rtlTranslate:$,enabled:ed}=e;if(!ed)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let td,nd=e.maxTranslate()-e.minTranslate();td=nd===0?0:(e.translate-e.minTranslate())/nd,td!==e.progress&&e.updateProgress($?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function onLoad(e){let t=this;processLazyPreloader(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update()}function onDocumentTouchStart(){let e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}var events=(e,t)=>{let $=getDocument(),{params:ed,el:td,wrapperEl:nd,device:rd}=e,id=!!ed.nested,ad=t===`on`?`addEventListener`:`removeEventListener`,od=t;!td||typeof td==`string`||($[ad](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:id}),td[ad](`touchstart`,e.onTouchStart,{passive:!1}),td[ad](`pointerdown`,e.onTouchStart,{passive:!1}),$[ad](`touchmove`,e.onTouchMove,{passive:!1,capture:id}),$[ad](`pointermove`,e.onTouchMove,{passive:!1,capture:id}),$[ad](`touchend`,e.onTouchEnd,{passive:!0}),$[ad](`pointerup`,e.onTouchEnd,{passive:!0}),$[ad](`pointercancel`,e.onTouchEnd,{passive:!0}),$[ad](`touchcancel`,e.onTouchEnd,{passive:!0}),$[ad](`pointerout`,e.onTouchEnd,{passive:!0}),$[ad](`pointerleave`,e.onTouchEnd,{passive:!0}),$[ad](`contextmenu`,e.onTouchEnd,{passive:!0}),(ed.preventClicks||ed.preventClicksPropagation)&&td[ad](`click`,e.onClick,!0),ed.cssMode&&nd[ad](`scroll`,e.onScroll),ed.updateOnWindowResize?e[od](rd.ios||rd.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,onResize,!0):e[od](`observerUpdate`,onResize,!0),td[ad](`load`,e.onLoad,{capture:!0}))};function attachEvents(){let e=this,{params:t}=e;
275e.onTouchStart=onTouchStart.bind(e),e.onTouchMove=onTouchMove.bind(e),e.onTouchEnd=onTouchEnd.bind(e),e.onDocumentTouchStart=onDocumentTouchStart.bind(e),t.cssMode&&(e.onScroll=onScroll.bind(e)),e.onClick=onClick.bind(e),e.onLoad=onLoad.bind(e),events(e,`on`)}function detachEvents(){events(this,`off`)}var events$1={attachEvents,detachEvents},isGridEnabled=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function setBreakpoint(){let e=this,{realIndex:t,initialized:$,params:ed,el:td}=e,nd=ed.breakpoints;if(!nd||nd&&Object.keys(nd).length===0)return;let rd=getDocument(),id=ed.breakpointsBase===`window`||!ed.breakpointsBase?ed.breakpointsBase:`container`,ad=[`window`,`container`].includes(ed.breakpointsBase)||!ed.breakpointsBase?e.el:rd.querySelector(ed.breakpointsBase),od=e.getBreakpoint(nd,id,ad);if(!od||e.currentBreakpoint===od)return;let sd=(od in nd?nd[od]:void 0)||e.originalParams,cd=isGridEnabled(e,ed),ld=isGridEnabled(e,sd),ud=e.params.grabCursor,dd=sd.grabCursor,fd=ed.enabled;cd&&!ld?(td.classList.remove(`${ed.containerModifierClass}grid`,`${ed.containerModifierClass}grid-column`),e.emitContainerClasses()):!cd&&ld&&(td.classList.add(`${ed.containerModifierClass}grid`),(sd.grid.fill&&sd.grid.fill===`column`||!sd.grid.fill&&ed.grid.fill===`column`)&&td.classList.add(`${ed.containerModifierClass}grid-column`),e.emitContainerClasses()),ud&&!dd?e.unsetGrabCursor():!ud&&dd&&e.setGrabCursor(),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(sd[t]===void 0)return;let $=ed[t]&&ed[t].enabled,td=sd[t]&&sd[t].enabled;$&&!td&&e[t].disable(),!$&&td&&e[t].enable()});let pd=sd.direction&&sd.direction!==ed.direction,md=ed.loop&&(sd.slidesPerView!==ed.slidesPerView||pd),hd=ed.loop;pd&&$&&e.changeDirection(),extend(e.params,sd);let gd=e.params.enabled,_d=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),fd&&!gd?e.disable():!fd&&gd&&e.enable(),e.currentBreakpoint=od,e.emit(`_beforeBreakpoint`,sd),$&&(md?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!hd&&_d?(e.loopCreate(t),e.updateSlides()):hd&&!_d&&e.loopDestroy()),e.emit(`breakpoint`,sd)}function getBreakpoint(e,t,$){if(t===void 0&&(t=`window`),!e||t===`container`&&!$)return;let ed=!1,td=getWindow(),nd=t===`window`?td.innerHeight:$.clientHeight,rd=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:nd*parseFloat(e.substr(1)),point:e}:{value:e,point:e});rd.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<rd.length;e+=1){let{point:nd,value:id}=rd[e];t===`window`?td.matchMedia(`(min-width: ${id}px)`).matches&&(ed=nd):id<=$.clientWidth&&(ed=nd)}return ed||`max`}
vendor: 4,683 bytes, line 275
275var breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(e,t){let $=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(ed=>{e[ed]&&$.push(t+ed)}):typeof e==`string`&&$.push(t+e)}),$}function addClasses(){let e=this,{classNames:t,params:$,rtl:ed,el:td,device:nd}=e,rd=prepareClasses([`initialized`,$.direction,{"free-mode":e.params.freeMode&&$.freeMode.enabled},{autoheight:$.autoHeight},{rtl:ed},{grid:$.grid&&$.grid.rows>1},{"grid-column":$.grid&&$.grid.rows>1&&$.grid.fill===`column`},{android:nd.android},{ios:nd.ios},{"css-mode":$.cssMode},{centered:$.cssMode&&$.centeredSlides},{"watch-progress":$.watchSlidesProgress}],$.containerModifierClass);t.push(...rd),td.classList.add(...t),e.emitContainerClasses()}function removeClasses(){let e=this,{el:t,classNames:$}=e;!t||typeof t==`string`||(t.classList.remove(...$),e.emitContainerClasses())}var classes={addClasses,removeClasses};function checkOverflow(){let e=this,{isLocked:t,params:$}=e,{slidesOffsetBefore:ed}=$;if(ed){let t=e.slides.length-1,$=e.slidesGrid[t]+e.slidesSizesGrid[t]+ed*2;e.isLocked=e.size>$}else e.isLocked=e.snapGrid.length===1;$.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),$.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var checkOverflow$1={checkOverflow},defaults={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(e,t){return function($){$===void 0&&($={});let ed=Object.keys($)[0],td=$[ed];if(typeof td!=`object`||!td){extend(t,$);return}if(e[ed]===!0&&(e[ed]={enabled:!0}),ed===`navigation`&&e[ed]&&e[ed].enabled&&!e[ed].prevEl&&!e[ed].nextEl&&(e[ed].auto=!0),[`pagination`,`scrollbar`].indexOf(ed)>=0&&e[ed]&&e[ed].enabled&&!e[ed].el&&(e[ed].auto=!0),!(ed in e&&`enabled`in td)){extend(t,$);return}typeof e[ed]==`object`&&!(`enabled`in e[ed])&&(e[ed].enabled=!0),e[ed]||(e[ed]={enabled:!1}),extend(t,$)}}var prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={},Swiper=class e{constructor(){let t,$;var ed=[...arguments];ed.length===1&&ed[0].constructor&&Object.prototype.toString.call(ed[0]).slice(8,-1)===`Object`?$=ed[0]:[t,$]=ed,$||={},$=extend({},$),t&&!$.el&&($.el=t);let td=getDocument();if($.el&&typeof $.el==`string`&&td.querySelectorAll($.el).length>1){let t=[];return td.querySelectorAll($.el).forEach(ed=>{let td=extend({},$,{el:ed});t.push(new e(td))}),t}let nd=this;nd.__swiper__=!0,nd.support=getSupport(),nd.device=getDevice({userAgent:$.userAgent}),nd.browser=getBrowser(),nd.eventsListeners={},nd.eventsAnyListeners=[],nd.modules=[...nd.__modules__],$.modules&&Array.isArray($.modules)&&nd.modules.push(...$.modules);let rd={};
275return nd.modules.forEach(e=>{e({params:$,swiper:nd,extendParams:moduleExtendParams($,rd),on:nd.on.bind(nd),once:nd.once.bind(nd),off:nd.off.bind(nd),emit:nd.emit.bind(nd)})}),nd.params=extend({},extend({},defaults,rd),extendedDefaults,$),nd.originalParams=extend({},nd.params),nd.passedParams=extend({},$),nd.params&&nd.params.on&&Object.keys(nd.params.on).forEach(e=>{nd.on(e,nd.params.on[e])}),nd.params&&nd.params.onAny&&nd.onAny(nd.params.onAny),Object.assign(nd,{enabled:nd.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return nd.params.direction===`horizontal`},isVertical(){return nd.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:nd.params.allowSlideNext,allowSlidePrev:nd.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:nd.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:nd.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),nd.emit(`_swiper`),nd.params.init&&nd.init(),nd}getDirectionLabel(e){return this.isHorizontal()?e:{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`}[e]}getSlideIndex(e){let{slidesEl:t,params:$}=this,ed=elementIndex(elementChildren(t,`.${$.slideClass}, swiper-slide`)[0]);return elementIndex(e)-ed}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:$}=e;e.slides=elementChildren(t,`.${$.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let $=this;e=Math.min(Math.max(e,0),1);let ed=$.minTranslate(),td=($.maxTranslate()-ed)*e+ed;$.translateTo(td,t===void 0?0:t),$.updateActiveIndex(),$.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach($=>{let ed=e.getSlideClasses($);t.push({slideEl:$,classNames:ed}),e.emit(`_slideClass`,$,ed)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e,t){e===void 0&&(e=`current`),t===void 0&&(t=!1);let{params:$,slides:ed,slidesGrid:td,slidesSizesGrid:nd,size:rd,activeIndex:id}=this,ad=1;if(typeof $.slidesPerView==`number`)return $.slidesPerView;if($.centeredSlides){let e=ed[id]?Math.ceil(ed[id].swiperSlideSize):0,t;for(let $=id+1;$<ed.length;$+=1)ed[$]&&!t&&(e+=Math.ceil(ed[$].swiperSlideSize),ad+=1,e>rd&&(t=!0));for(let $=id-1;$>=0;--$)ed[$]&&!t&&(e+=ed[$].swiperSlideSize,ad+=1,e>rd&&(t=!0))}else if(e===`current`)for(let e=id+1;e<ed.length;e+=1)(t?td[e]+nd[e]-td[id]<rd:td[e]-td[id]<rd)&&(ad+=1);else for(let e=id-1;e>=0;--e)td[id]-td[e]<rd&&(ad+=1);return ad}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:$}=e;$.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEac
vendor: 4,475 bytes, line 275
275h(t=>{t.complete&&processLazyPreloader(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function ed(){let t=e.rtlTranslate?e.translate*-1:e.translate,$=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate($),e.updateActiveIndex(),e.updateSlidesClasses()}let td;if($.freeMode&&$.freeMode.enabled&&!$.cssMode)ed(),$.autoHeight&&e.updateAutoHeight();else{if(($.slidesPerView===`auto`||$.slidesPerView>1)&&e.isEnd&&!$.centeredSlides){let t=e.virtual&&$.virtual.enabled?e.virtual.slides:e.slides;td=e.slideTo(t.length-1,0,!1,!0)}else td=e.slideTo(e.activeIndex,0,!1,!0);td||ed()}$.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t){t===void 0&&(t=!0);let $=this,ed=$.params.direction;return e||=ed===`horizontal`?`vertical`:`horizontal`,e===ed||e!==`horizontal`&&e!==`vertical`?$:($.el.classList.remove(`${$.params.containerModifierClass}${ed}`),$.el.classList.add(`${$.params.containerModifierClass}${e}`),$.emitContainerClasses(),$.params.direction=e,$.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),$.emit(`changeDirection`),t&&$.update(),$)}changeLanguageDirection(e){let 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){let t=this;if(t.mounted)return!0;let $=e||t.params.el;if(typeof $==`string`&&($=document.querySelector($)),!$)return!1;$.swiper=t,$.parentNode&&$.parentNode.host&&$.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let ed=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,td=$&&$.shadowRoot&&$.shadowRoot.querySelector?$.shadowRoot.querySelector(ed()):elementChildren($,ed())[0];return!td&&t.params.createElements&&(td=createElement$1(`div`,t.params.wrapperClass),$.append(td),elementChildren($,`.${t.params.slideClass}`).forEach(e=>{td.append(e)})),Object.assign(t,{el:$,wrapperEl:td,slidesEl:t.isElement&&!$.parentNode.host.slideSlots?$.parentNode.host:td,hostEl:t.isElement?$.parentNode.host:$,mounted:!0,rtl:$.dir.toLowerCase()===`rtl`||elementStyle($,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&($.dir.toLowerCase()===`rtl`||elementStyle($,`direction`)===`rtl`),wrongRTL:elementStyle(td,`display`)===`-webkit-box`}),!0}init(e){let 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(void 0,!0),t.attachEvents();let $=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&$.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),$.forEach(e=>{e.complete?processLazyPreloader(t,e):e.addEventListener(`load`,e=>{processLazyPreloader(t,e.target)})}),preload(t),t.initialized=!0,preload(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);let $=this,{params:ed,el:td,wrapperEl:nd,slides:rd}=$;return $.params===void 0||$.destroyed?null:($.emit(`beforeDestroy`),$.initialized=!1,$.detachEvents(),ed.loop&&$.loopDestroy(),t&&($.removeClasses(),td&&typeof td!=`string`&&td.removeAttribute(`style`),nd&&nd.removeAttribute(`style`),rd&&rd.length&&rd.forEach(e=>{e.classList.remove(ed.slideVisibleClass,ed.slideFullyVisibleClass,ed.slideActiveClass,ed.slideNextClass,ed.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),$.emit(`destroy`),Object.keys($.eventsListeners).forEach(e=>{$.off(e)}),e!==!1&&($.el&&typeof $.el!=`string`&&($.el.swiper=null),deleteProps($)),$.destroyed=!0,null)}static extendDefaults(e){extend(extendedDefaults,e)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let $=e.prototype.__modules__;typeof t==`function`&&$.indexOf(t)<0&&$.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};
vendor: 7,231 bytes, line 275
275Object.keys(prototypes).forEach(e=>{Object.keys(prototypes[e]).forEach(t=>{Swiper.prototype[t]=prototypes[e][t]})}),Swiper.use([Resize,Observer]);function Virtual(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e;$({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let nd,rd=getDocument();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let id=rd.createElement(`div`);function ad(e,$){let ed=t.params.virtual;if(ed.cache&&t.virtual.cache[$])return t.virtual.cache[$];let td;return ed.renderSlide?(td=ed.renderSlide.call(t,e,$),typeof td==`string`&&(setInnerHTML(id,td),td=id.children[0])):td=t.isElement?createElement$1(`swiper-slide`):createElement$1(`div`,t.params.slideClass),td.setAttribute(`data-swiper-slide-index`,$),ed.renderSlide||setInnerHTML(td,e),ed.cache&&(t.virtual.cache[$]=td),td}function od(e,$,ed){let{slidesPerView:nd,slidesPerGroup:rd,centeredSlides:id,loop:od,initialSlide:sd}=t.params;if($&&!od&&sd>0)return;let{addSlidesBefore:cd,addSlidesAfter:ld}=t.params.virtual,{from:ud,to:dd,slides:fd,slidesGrid:pd,offset:md}=t.virtual;t.params.cssMode||t.updateActiveIndex();let hd=ed===void 0?t.activeIndex||0:ed,gd;gd=t.rtlTranslate?`right`:t.isHorizontal()?`left`:`top`;let _d,vd;id?(_d=Math.floor(nd/2)+rd+ld,vd=Math.floor(nd/2)+rd+cd):(_d=nd+(rd-1)+ld,vd=(od?nd:rd)+cd);let yd=hd-vd,bd=hd+_d;od||(yd=Math.max(yd,0),bd=Math.min(bd,fd.length-1));let xd=(t.slidesGrid[yd]||0)-(t.slidesGrid[0]||0);od&&hd>=vd?(yd-=vd,id||(xd+=t.slidesGrid[0])):od&&hd<vd&&(yd=-vd,id&&(xd+=t.slidesGrid[0])),Object.assign(t.virtual,{from:yd,to:bd,offset:xd,slidesGrid:t.slidesGrid,slidesBefore:vd,slidesAfter:_d});function Sd(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),td(`virtualUpdate`)}if(ud===yd&&dd===bd&&!e){t.slidesGrid!==pd&&xd!==md&&t.slides.forEach(e=>{e.style[gd]=`${xd-Math.abs(t.cssOverflowAdjustment())}px`}),t.updateProgress(),td(`virtualUpdate`);return}if(t.params.virtual.renderExternal){t.params.virtual.renderExternal.call(t,{offset:xd,from:yd,to:bd,slides:function(){let e=[];for(let t=yd;t<=bd;t+=1)e.push(fd[t]);return e}()}),t.params.virtual.renderExternalUpdate?Sd():td(`virtualUpdate`);return}let Cd=[],wd=[],Td=e=>{let t=e;return e<0?t=fd.length+e:t>=fd.length&&(t-=fd.length),t};if(e)t.slides.filter(e=>e.matches(`.${t.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=ud;e<=dd;e+=1)if(e<yd||e>bd){let $=Td(e);t.slides.filter(e=>e.matches(`.${t.params.slideClass}[data-swiper-slide-index="${$}"], swiper-slide[data-swiper-slide-index="${$}"]`)).forEach(e=>{e.remove()})}let Ed=od?-fd.length:0,Dd=od?fd.length*2:fd.length;for(let t=Ed;t<Dd;t+=1)if(t>=yd&&t<=bd){let $=Td(t);dd===void 0||e?wd.push($):(t>dd&&wd.push($),t<ud&&Cd.push($))}if(wd.forEach(e=>{t.slidesEl.append(ad(fd[e],e))}),od)for(let e=Cd.length-1;e>=0;--e){let $=Cd[e];t.slidesEl.prepend(ad(fd[$],$))}else Cd.sort((e,t)=>t-e),Cd.forEach(e=>{t.slidesEl.prepend(ad(fd[e],e))});elementChildren(t.slidesEl,`.swiper-slide, swiper-slide`).forEach(e=>{e.style[gd]=`${xd-Math.abs(t.cssOverflowAdjustment())}px`}),Sd()}function sd(e){if(typeof e==`object`&&`length`in e)for(let $=0;$<e.length;$+=1)e[$]&&t.virtual.slides.push(e[$]);else t.virtual.slides.push(e);od(!0)}function cd(e){let $=t.activeIndex,ed=$+1,td=1;if(Array.isArray(e)){for(let $=0;$<e.length;$+=1)e[$]&&t.virtual.slides.unshift(e[$]);ed=$+e.length,td=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){let e=t.virtual.cache,$={};Object.keys(e).forEach(t=>{let ed=e[t],nd=ed.getAttribute(`data-swiper-slide-index`);nd&&ed.setAttribute(`data-swiper-slide-index`,parseInt(nd,10)+td),$[parseInt(t,10)+td]=ed}),t.virtual.cache=$}od(!0),t.slideTo(ed,0)}function ld(e){if(e==null)return;let $=t.activeIndex;if(Array.isArray(e))for(let ed=e.length-1;ed>=0;--ed)t.params.virtual.cache&&(delete t.virtual.cache[e[ed]],Object.keys(t.virtual.cache).forEach($=>{$>e&&(t.virtual.cache[$-1]=t.virtual.cache[$],t.virtual.cache[$-1].setAttribute(`data-swiper-slide-index`,$-1),delete t.virtual.cache[$])})),t.virtual.slides.splice(e[ed],1),e[ed]<$&&--$,$=Math.max($,0);else t.params.virtual.cache&&(delete t.virtual.cache[e],Object.keys(t.virtual.cache).forEach($=>{$>e&&(t.virtual.cache[$-1]=t.virtual.cache[$],t.virtual.cache[$-1].setAttribute(`data-swiper-slide-index`,$-1),delete t.virtual.cache[$])})),t.virtual.slides.splice(e,1),e<$&&--$,$=Math.max($,0);od(!0),t.slideTo($,0)}function ud(){t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),od(!0),t.slideTo(0,0)}ed(`beforeInit`,()=>{if(!t.params.virtual.enabled)return;let e;if(t.passedParams.virtual.slides===void 0){let $=[...t.slidesEl.children].filter(e=>e.matches(`.${t.params.slideClass}, swiper-slide`));$&&$.length&&(t.virtual.slides=[...$],e=!0,$.forEach((e,$)=>{e.setAttribute(`data-swiper-slide-index`,$),t.virtual.cache[$]=e,e.remove()}))}e||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,od(!1,!0)}),ed(`setTranslate`,()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(nd),nd=setTimeout(()=>{od()},100)):od())}),ed(`init update resize`,()=>{t.params.virtual.enabled&&t.params.cssMode&&setCSSProperty(t.wrapperEl,`--swiper-virtual-size`,`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:sd,prependSlide:cd,removeSlide:ld,removeAllSlides:ud,update:od})}function Keyboard(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=getDocument(),rd=getWindow();t.keyboard={enabled:!1},$({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function id(e){if(!t.enabled)return;let{rtlTranslate:$}=t,ed=e;ed.originalEvent&&(ed=ed.originalEvent);let id=ed.keyCode||ed.charCode,ad=t.params.keyboard.pageUpDown,od=ad&&id===33,sd=ad&&id===34,cd=id===37,ld=id===39,ud=id===38,dd=id===40;if(!t.allowSlideNext&&(t.isHorizontal()&&ld||t.isVertical()&&dd||sd)||!t.allowSlidePrev&&(t.isHorizontal()&&cd||t.isVertical()&&ud||od))return!1;if(!(ed.shiftKey||ed.altKey||ed.ctrlKey||ed.metaKey)&&!(nd.activeElement&&(nd.activeElement.isContentEditable||nd.activeElement.nodeName&&(nd.activeElement.nodeName.toLowerCase()===`input`||nd.activeElement.nodeName.toLowerCase()===`textarea`)))){if(t.params.keyboard.onlyInViewport&&(od||sd||cd||ld||ud||dd)){let e=!1;if(elementParents(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&elementParents(t.el,`.${t.params.slideActiveClass}`).length===0)return;let ed=t.el,td=ed.clientWidth,nd=ed.clientHeight,id=rd.innerWidth,ad=rd.innerHeight,od=elementOffset(ed);$&&(od.left-=ed.scrollLeft);let sd=[[od.left,od.top],[od.left+td,od.top],[od.left,od.top+nd],[od.left+td,od.top+nd]];for(let t=0;t<sd.length;t+=1){let $=sd[t];if($[0]>=0&&$[0]<=id&&$[1]>=0&&$[1]<=ad){if($[0]===0&&$[1]===0)continue;e=!0}}if(!e)return}t.isHorizontal()?((od||sd||cd||ld)&&(ed.preventDefault?ed.preventDefault():ed.returnValue=!1),((sd||ld)&&!$||(od||cd)&&$)&&t.slideNext(),((od||cd)&&!$||(sd||ld)&&$)&&t.slidePrev()):((od||sd||ud||dd)&&(ed.preventDefault?ed.preventDefault():ed.returnValue=!1),(sd||dd)&&t.slideNext(),(od||ud)&&t.slidePrev()),td(`keyPress`,id)}}
vendor: 8,718 bytes, line 275
275function ad(){t.keyboard.enabled||(nd.addEventListener(`keydown`,id),t.keyboard.enabled=!0)}function od(){t.keyboard.enabled&&(nd.removeEventListener(`keydown`,id),t.keyboard.enabled=!1)}ed(`init`,()=>{t.params.keyboard.enabled&&ad()}),ed(`destroy`,()=>{t.keyboard.enabled&&od()}),Object.assign(t.keyboard,{enable:ad,disable:od})}function Mousewheel(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=getWindow();$({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:`container`,thresholdDelta:null,thresholdTime:null,noMousewheelClass:`swiper-no-mousewheel`}}),t.mousewheel={enabled:!1};let rd,id=now(),ad,od=[];function sd(e){let t=10,$=40,ed=800,td=0,nd=0,rd=0,id=0;return`detail`in e&&(nd=e.detail),`wheelDelta`in e&&(nd=-e.wheelDelta/120),`wheelDeltaY`in e&&(nd=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(td=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(td=nd,nd=0),rd=td*10,id=nd*10,`deltaY`in e&&(id=e.deltaY),`deltaX`in e&&(rd=e.deltaX),e.shiftKey&&!rd&&(rd=id,id=0),(rd||id)&&e.deltaMode&&(e.deltaMode===1?(rd*=40,id*=40):(rd*=800,id*=800)),rd&&!td&&(td=rd<1?-1:1),id&&!nd&&(nd=id<1?-1:1),{spinX:td,spinY:nd,pixelX:rd,pixelY:id}}function cd(){t.enabled&&(t.mouseEntered=!0)}function ld(){t.enabled&&(t.mouseEntered=!1)}function ud(e){return t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&now()-id<t.params.mousewheel.thresholdTime?!1:e.delta>=6&&now()-id<60?!0:(e.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),td(`scroll`,e.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),td(`scroll`,e.raw)),id=new nd.Date().getTime(),!1)}function dd(e){let $=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&$.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&$.releaseOnEdges)return!0;return!1}function fd(e){let $=e,ed=!0;if(!t.enabled||e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;let nd=t.params.mousewheel;t.params.cssMode&&$.preventDefault();let id=t.el;t.params.mousewheel.eventsTarget!==`container`&&(id=document.querySelector(t.params.mousewheel.eventsTarget));let cd=id&&id.contains($.target);if(!t.mouseEntered&&!cd&&!nd.releaseOnEdges)return!0;$.originalEvent&&($=$.originalEvent);let ld=0,fd=t.rtlTranslate?-1:1,pd=sd($);if(nd.forceToAxis)if(t.isHorizontal())if(Math.abs(pd.pixelX)>Math.abs(pd.pixelY))ld=-pd.pixelX*fd;else return!0;else if(Math.abs(pd.pixelY)>Math.abs(pd.pixelX))ld=-pd.pixelY;else return!0;else ld=Math.abs(pd.pixelX)>Math.abs(pd.pixelY)?-pd.pixelX*fd:-pd.pixelY;if(ld===0)return!0;nd.invert&&(ld=-ld);let md=t.getTranslate()+ld*nd.sensitivity;if(md>=t.minTranslate()&&(md=t.minTranslate()),md<=t.maxTranslate()&&(md=t.maxTranslate()),ed=t.params.loop?!0:!(md===t.minTranslate()||md===t.maxTranslate()),ed&&t.params.nested&&$.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){let t={time:now(),delta:Math.abs(ld),direction:Math.sign(ld),raw:e};od.length>=2&&od.shift();let $=od.length?od[od.length-1]:void 0;if(od.push(t),$?(t.direction!==$.direction||t.delta>$.delta||t.time>$.time+150)&&ud(t):ud(t),dd(t))return!0}else{let e={time:now(),delta:Math.abs(ld),direction:Math.sign(ld)},ed=ad&&e.time<ad.time+500&&e.delta<=ad.delta&&e.direction===ad.direction;if(!ed){ad=void 0;let id=t.getTranslate()+ld*nd.sensitivity,sd=t.isBeginning,cd=t.isEnd;if(id>=t.minTranslate()&&(id=t.minTranslate()),id<=t.maxTranslate()&&(id=t.maxTranslate()),t.setTransition(0),t.setTranslate(id),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!sd&&t.isBeginning||!cd&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?`next`:`prev`,byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(rd),rd=void 0,od.length>=15&&od.shift();let $=od.length?od[od.length-1]:void 0,ed=od[0];if(od.push(e),$&&(e.delta>$.delta||e.direction!==$.direction))od.splice(0);else if(od.length>=15&&e.time-ed.time<500&&ed.delta-e.delta>=1&&e.delta<=6){let $=ld>0?.8:.2;ad=e,od.splice(0),rd=nextTick(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,$)},0)}rd||=nextTick(()=>{if(t.destroyed||!t.params)return;let $=.5;ad=e,od.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500)}if(ed||td(`scroll`,$),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),nd.releaseOnEdges&&(id===t.minTranslate()||id===t.maxTranslate()))return!0}}return $.preventDefault?$.preventDefault():$.returnValue=!1,!1}function pd(e){let $=t.el;t.params.mousewheel.eventsTarget!==`container`&&($=document.querySelector(t.params.mousewheel.eventsTarget)),$[e](`mouseenter`,cd),$[e](`mouseleave`,ld),$[e](`wheel`,fd)}function md(){return t.params.cssMode?(t.wrapperEl.removeEventListener(`wheel`,fd),!0):t.mousewheel.enabled?!1:(pd(`addEventListener`),t.mousewheel.enabled=!0,!0)}function hd(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,fd),!0):t.mousewheel.enabled?(pd(`removeEventListener`),t.mousewheel.enabled=!1,!0):!1}ed(`init`,()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&hd(),t.params.mousewheel.enabled&&md()}),ed(`destroy`,()=>{t.params.cssMode&&md(),t.mousewheel.enabled&&hd()}),Object.assign(t.mousewheel,{enable:md,disable:hd})}function createElementIfNotDefined(e,t,$,ed){return e.params.createElements&&Object.keys(ed).forEach(td=>{if(!$[td]&&$.auto===!0){let nd=elementChildren(e.el,`.${ed[td]}`)[0];nd||(nd=createElement$1(`div`,ed[td]),nd.className=ed[td],e.el.append(nd)),$[td]=nd,t[td]=nd}}),$}function Navigation(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e;$({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),t.navigation={nextEl:null,prevEl:null};function nd(e){let $;return e&&typeof e==`string`&&t.isElement&&($=t.el.querySelector(e)||t.hostEl.querySelector(e),$)?$:(e&&(typeof e==`string`&&($=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&typeof e==`string`&&$&&$.length>1&&t.el.querySelectorAll(e).length===1?$=t.el.querySelector(e):$&&$.length===1&&($=$[0])),e&&!$?e:$)}function rd(e,$){let ed=t.params.navigation;e=makeElementsArray(e),e.forEach(e=>{e&&(e.classList[$?`add`:`remove`](...ed.disabledClass.split(` `)),e.tagName===`BUTTON`&&(e.disabled=$),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?`add`:`remove`](ed.lockClass))})}function id(){let{nextEl:e,prevEl:$}=t.navigation;if(t.params.loop){rd($,!1),rd(e,!1);return}rd($,t.isBeginning&&!t.params.rewind),rd(e,t.isEnd&&!t.params.rewind)}function ad(e){e.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),td(`navigationPrev`))}function od(e){e.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),td(`navigationNext`))}function sd(){let e=t.params.navigation;if(t.params.navigation=createElementIfNotDefined(t,t.originalParams.navigation,t.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!(e.nextEl||e.prevEl))return;let $=nd(e.nextEl),ed=nd(e.prevEl);Object.assign(t.navigation,{nextEl:$,prevEl:ed}),$=makeElementsArray($),ed=makeElementsArray(ed);let td=($,ed)=>{$&&$.addEventListener(`click`,ed===`next`?od:ad),!t.enabled&&$&&$.classList.add(...e.lockClass.split(` `))};$.forEach(e=>td(e,`next`)),ed.forEach(e=>td(e,`prev`))}function cd(){let{nextEl:e,prevEl:$}=t.navigation;e=makeElementsArray(e),$=makeElementsArray($);let ed=(e,$)=>{e.removeEventListener(`click`,$===`next`?od:ad),e.classList.remove(...t.params.navigation.disabledClass.split(` `))};e.forEach(e=>ed(e,`next`)),$.forEach(e=>ed(e,`prev`))}ed(`init`,()=>{t.params.navigation.enabled===!1?ud():(sd(),id())}),ed(`toEdge fromEdge lock unlock`,()=>{id()}),ed(`destroy`,()=>{cd()}),ed(`enable disable`,()=>{let{nextEl:e,prevEl:$}=t.navigation;if(e=makeElementsArray(e),$=makeElementsArray($),t.enabled){id();return}[...e,...$].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),ed(`click`,(e,$)=>{let{nextEl:ed,prevEl:nd}=t.navigation;ed=makeElementsArray(ed),nd=makeElementsArray(nd);let rd=$.target,id=nd.includes(rd)||ed.includes(rd);if(t.isElement&&!id){let e=$.path||$.composedPath&&$.composedPath();e&&(id=e.find(e=>ed.includes(e)||nd.includes(e)))}if(t.params.navigation.hideOnClick&&!id){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===rd||t.pagination.el.contains(rd)))return;let e;ed.length?e=ed[0].classList.contains(t.params.navigation.hiddenClass):nd.length&&(e=nd[0].classList.contains(t.params.navigation.hiddenClass)),td(e===!0?`navigationShow`:`navigationHide`),[...ed,...nd].filter(e=>
vendor: 8,431 bytes, line 275
275!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});let ld=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(` `)),sd(),id()},ud=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(` `)),cd()};Object.assign(t.navigation,{enable:ld,disable:ud,update:id,init:sd,destroy:cd})}function classesToSelector(e){return e===void 0&&(e=``),`.${e.trim().replace(/([\.:!+\/()[\]])/g,`\\$1`).replace(/ /g,`.`)}`}function Pagination(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=`swiper-pagination`;$({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${nd}-bullet`,bulletActiveClass:`${nd}-bullet-active`,modifierClass:`${nd}-`,currentClass:`${nd}-current`,totalClass:`${nd}-total`,hiddenClass:`${nd}-hidden`,progressbarFillClass:`${nd}-progressbar-fill`,progressbarOppositeClass:`${nd}-progressbar-opposite`,clickableClass:`${nd}-clickable`,lockClass:`${nd}-lock`,horizontalClass:`${nd}-horizontal`,verticalClass:`${nd}-vertical`,paginationDisabledClass:`${nd}-disabled`}}),t.pagination={el:null,bullets:[]};let rd,id=0;function ad(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function od(e,$){let{bulletActiveClass:ed}=t.params.pagination;e&&(e=e[`${$===`prev`?`previous`:`next`}ElementSibling`],e&&(e.classList.add(`${ed}-${$}`),e=e[`${$===`prev`?`previous`:`next`}ElementSibling`],e&&e.classList.add(`${ed}-${$}-${$}`)))}function sd(e,t,$){if(e%=$,t%=$,t===e+1)return`next`;if(t===e-1)return`previous`}function cd(e){let $=e.target.closest(classesToSelector(t.params.pagination.bulletClass));if(!$)return;e.preventDefault();let ed=elementIndex($)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===ed)return;let e=sd(t.realIndex,ed,t.slides.length);e===`next`?t.slideNext():e===`previous`?t.slidePrev():t.slideToLoop(ed)}else t.slideTo(ed)}function ld(){let e=t.rtl,$=t.params.pagination;if(ad())return;let ed=t.pagination.el;ed=makeElementsArray(ed);let nd,sd,cd=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,ld=t.params.loop?Math.ceil(cd/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(sd=t.previousRealIndex||0,nd=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):t.snapIndex===void 0?(sd=t.previousIndex||0,nd=t.activeIndex||0):(nd=t.snapIndex,sd=t.previousSnapIndex),$.type===`bullets`&&t.pagination.bullets&&t.pagination.bullets.length>0){let td=t.pagination.bullets,ad,cd,ld;if($.dynamicBullets&&(rd=elementOuterSize(td[0],t.isHorizontal()?`width`:`height`,!0),ed.forEach(e=>{e.style[t.isHorizontal()?`width`:`height`]=`${rd*($.dynamicMainBullets+4)}px`}),$.dynamicMainBullets>1&&sd!==void 0&&(id+=nd-(sd||0),id>$.dynamicMainBullets-1?id=$.dynamicMainBullets-1:id<0&&(id=0)),ad=Math.max(nd-id,0),cd=ad+(Math.min(td.length,$.dynamicMainBullets)-1),ld=(cd+ad)/2),td.forEach(e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${$.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),ed.length>1)td.forEach(e=>{let ed=elementIndex(e);ed===nd?e.classList.add(...$.bulletActiveClass.split(` `)):t.isElement&&e.setAttribute(`part`,`bullet`),$.dynamicBullets&&(ed>=ad&&ed<=cd&&e.classList.add(...`${$.bulletActiveClass}-main`.split(` `)),ed===ad&&od(e,`prev`),ed===cd&&od(e,`next`))});else{let e=td[nd];if(e&&e.classList.add(...$.bulletActiveClass.split(` `)),t.isElement&&td.forEach((e,t)=>{e.setAttribute(`part`,t===nd?`bullet-active`:`bullet`)}),$.dynamicBullets){let e=td[ad],t=td[cd];for(let e=ad;e<=cd;e+=1)td[e]&&td[e].classList.add(...`${$.bulletActiveClass}-main`.split(` `));od(e,`prev`),od(t,`next`)}}if($.dynamicBullets){let ed=Math.min(td.length,$.dynamicMainBullets+4),nd=(rd*ed-rd)/2-ld*rd,id=e?`right`:`left`;td.forEach(e=>{e.style[t.isHorizontal()?id:`top`]=`${nd}px`})}}ed.forEach((e,ed)=>{if($.type===`fraction`&&(e.querySelectorAll(classesToSelector($.currentClass)).forEach(e=>{e.textContent=$.formatFractionCurrent(nd+1)}),e.querySelectorAll(classesToSelector($.totalClass)).forEach(e=>{e.textContent=$.formatFractionTotal(ld)})),$.type===`progressbar`){let ed;ed=$.progressbarOpposite?t.isHorizontal()?`vertical`:`horizontal`:t.isHorizontal()?`horizontal`:`vertical`;let td=(nd+1)/ld,rd=1,id=1;ed===`horizontal`?rd=td:id=td,e.querySelectorAll(classesToSelector($.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${rd}) scaleY(${id})`,e.style.transitionDuration=`${t.params.speed}ms`})}$.type===`custom`&&$.renderCustom?(setInnerHTML(e,$.renderCustom(t,nd+1,ld)),ed===0&&td(`paginationRender`,e)):(ed===0&&td(`paginationRender`,e),td(`paginationUpdate`,e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?`add`:`remove`]($.lockClass)})}function ud(){let e=t.params.pagination;if(ad())return;let $=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length,ed=t.pagination.el;ed=makeElementsArray(ed);let nd=``;if(e.type===`bullets`){let ed=t.params.loop?Math.ceil($/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&ed>$&&(ed=$);for(let $=0;$<ed;$+=1)e.renderBullet?nd+=e.renderBullet.call(t,$,e.bulletClass):nd+=`<${e.bulletElement} ${t.isElement?`part="bullet"`:``} class="${e.bulletClass}"></${e.bulletElement}>`}e.type===`fraction`&&(nd=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),e.type===`progressbar`&&(nd=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],ed.forEach($=>{e.type!==`custom`&&setInnerHTML($,nd||``),e.type===`bullets`&&t.pagination.bullets.push(...$.querySelectorAll(classesToSelector(e.bulletClass)))}),e.type!==`custom`&&td(`paginationRender`,ed[0])}function dd(){t.params.pagination=createElementIfNotDefined(t,t.originalParams.pagination,t.params.pagination,{el:`swiper-pagination`});let e=t.params.pagination;if(!e.el)return;let $;typeof e.el==`string`&&t.isElement&&($=t.el.querySelector(e.el)),!$&&typeof e.el==`string`&&($=[...document.querySelectorAll(e.el)]),$||=e.el,!(!$||$.length===0)&&(t.params.uniqueNavElements&&typeof e.el==`string`&&Array.isArray($)&&$.length>1&&($=[...t.el.querySelectorAll(e.el)],$.length>1&&($=$.find(e=>elementParents(e,`.swiper`)[0]===t.el))),Array.isArray($)&&$.length===1&&($=$[0]),Object.assign(t.pagination,{el:$}),$=makeElementsArray($),$.forEach($=>{e.type===`bullets`&&e.clickable&&$.classList.add(...(e.clickableClass||``).split(` `)),$.classList.add(e.modifierClass+e.type),$.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.type===`bullets`&&e.dynamicBullets&&($.classList.add(`${e.modifierClass}${e.type}-dynamic`),id=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),e.type===`progressbar`&&e.progressbarOpposite&&$.classList.add(e.progressbarOppositeClass),e.clickable&&$.addEventListener(`click`,cd),t.enabled||$.classList.add(e.lockClass)}))}function fd(){let e=t.params.pagination;if(ad())return;let $=t.pagination.el;$&&($=makeElementsArray($),$.forEach($=>{$.classList.remove(e.hiddenClass),$.classList.remove(e.modifierClass+e.type),$.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&($.classList.remove(...(e.clickableClass||``).split(` `)),$.removeEventListener(`click`,cd))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(` `)))}ed(`changeDirection`,()=>{if(!t.pagination||!t.pagination.el)return;let e=t.params.pagination,{el:$}=t.pagination;$=makeElementsArray($),$.forEach($=>{$.classList.remove(e.horizontalClass,e.verticalClass),$.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),ed(`init`,()=>{t.params.pagination.enabled===!1?md():(dd(),ud(),ld())}),ed(`activeIndexChange`,()=>{t.snapIndex===void 0&&ld()}),ed(`snapIndexChange`,()=>{ld()}),ed(`snapGridLengthChange`,()=>{ud(),ld()}),ed(`destroy`,()=>{fd()}),ed(`enable disable`,()=>{let{el:e}=t.pagination;
275e&&(e=makeElementsArray(e),e.forEach(e=>e.classList[t.enabled?`remove`:`add`](t.params.pagination.lockClass)))}),ed(`lock unlock`,()=>{ld()}),ed(`click`,(e,$)=>{let ed=$.target,nd=makeElementsArray(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&nd&&nd.length>0&&!ed.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&ed===t.navigation.nextEl||t.navigation.prevEl&&ed===t.navigation.prevEl))return;nd[0].classList.contains(t.params.pagination.hiddenClass)===!0?td(`paginationShow`):td(`paginationHide`),nd.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});let pd=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=makeElementsArray(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),dd(),ud(),ld()},md=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=makeElementsArray(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),fd()};Object.assign(t.pagination,{enable:pd,disable:md,render:ud,update:ld,init:dd,destroy:fd})}function Scrollbar(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=getDocument(),rd=!1,id=null,ad=null,od,sd,cd,ld;$({scrollbar:{el:null,dragSize:`auto`,hide:!1,draggable:!1,snapOnRelease:!0,lockClass:`swiper-scrollbar-lock`,dragClass:`swiper-scrollbar-drag`,scrollbarDisabledClass:`swiper-scrollbar-disabled`,horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}}),t.scrollbar={el:null,dragEl:null};function ud(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:e,rtlTranslate:$}=t,{dragEl:ed,el:td}=e,nd=t.params.scrollbar,rd=t.params.loop?t.progressLoop:t.progress,ad=sd,od=(cd-sd)*rd;$?(od=-od,od>0?(ad=sd-od,od=0):-od+sd>cd&&(ad=cd+od)):od<0?(ad=sd+od,od=0):od+sd>cd&&(ad=cd-od),t.isHorizontal()?(ed.style.transform=`translate3d(${od}px, 0, 0)`,ed.style.width=`${ad}px`):(ed.style.transform=`translate3d(0px, ${od}px, 0)`,ed.style.height=`${ad}px`),nd.hide&&(clearTimeout(id),td.style.opacity=1,id=setTimeout(()=>{td.style.opacity=0,td.style.transitionDuration=`400ms`},1e3))}function dd(e){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}function fd(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:e}=t,{dragEl:$,el:ed}=e;$.style.width=``,$.style.height=``,cd=t.isHorizontal()?ed.offsetWidth:ed.offsetHeight,ld=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),sd=t.params.scrollbar.dragSize===`auto`?cd*ld:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?$.style.width=`${sd}px`:$.style.height=`${sd}px`,ld>=1?ed.style.display=`none`:ed.style.display=``,t.params.scrollbar.hide&&(ed.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?`add`:`remove`](t.params.scrollbar.lockClass)}function pd(e){return t.isHorizontal()?e.clientX:e.clientY}function md(e){let{scrollbar:$,rtlTranslate:ed}=t,{el:td}=$,nd;nd=(pd(e)-elementOffset(td)[t.isHorizontal()?`left`:`top`]-(od===null?sd/2:od))/(cd-sd),nd=Math.max(Math.min(nd,1),0),ed&&(nd=1-nd);let rd=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*nd;t.updateProgress(rd),t.setTranslate(rd),t.updateActiveIndex(),t.updateSlidesClasses()}function hd(e){let $=t.params.scrollbar,{scrollbar:ed,wrapperEl:nd}=t,{el:id,dragEl:sd}=ed;rd=!0,od=e.target===sd?pd(e)-e.target.getBoundingClientRect()[t.isHorizontal()?`left`:`top`]:null,e.preventDefault(),e.stopPropagation(),nd.style.transitionDuration=`100ms`,sd.style.transitionDuration=`100ms`,md(e),clearTimeout(ad),id.style.transitionDuration=`0ms`,$.hide&&(id.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style[`scroll-snap-type`]=`none`),td(`scrollbarDragStart`,e)}function gd(e){let{scrollbar:$,wrapperEl:ed}=t,{el:nd,dragEl:id}=$;rd&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,md(e),ed.style.transitionDuration=`0ms`,nd.style.transitionDuration=`0ms`,id.style.transitionDuration=`0ms`,td(`scrollbarDragMove`,e))}function _d(e){let $=t.params.scrollbar,{scrollbar:ed,wrapperEl:nd}=t,{el:id}=ed;rd&&(rd=!1,t.params.cssMode&&(t.wrapperEl.style[`scroll-snap-type`]=``,nd.style.transitionDuration=``),$.hide&&(clearTimeout(ad),ad=nextTick(()=>{id.style.opacity=0,id.style.transitionDuration=`400ms`},1e3)),td(`scrollbarDragEnd`,e),$.snapOnRelease&&t.slideToClosest())}function vd(e){let{scrollbar:$,params:ed}=t,td=$.el;if(!td)return;let rd=td,id=ed.passiveListeners?{passive:!1,capture:!1}:!1,ad=ed.passiveListeners?{passive:!0,capture:!1}:!1;if(!rd)return;let od=e===`on`?`addEventListener`:`removeEventListener`;rd[od](`pointerdown`,hd,id),nd[od](`pointermove`,gd,id),nd[od](`pointerup`,_d,ad)}function yd(){!t.params.scrollbar.el||!t.scrollbar.el||vd(`on`)}function bd(){!t.params.scrollbar.el||!t.scrollbar.el||vd(`off`)}function xd(){let{scrollbar:e,el:$}=t;t.params.scrollbar=createElementIfNotDefined(t,t.originalParams.scrollbar,t.params.scrollbar,{el:`swiper-scrollbar`});let ed=t.params.scrollbar;if(!ed.el)return;let td;if(typeof ed.el==`string`&&t.isElement&&(td=t.el.querySelector(ed.el)),!td&&typeof ed.el==`string`){if(td=nd.querySelectorAll(ed.el),!td.length)return}else td||=ed.el;t.params.uniqueNavElements&&typeof ed.el==`string`&&td.length>1&&$.querySelectorAll(ed.el).length===1&&(td=$.querySelector(ed.el)),td.length>
2750&&(td=td[0]),td.classList.add(t.isHorizontal()?ed.horizontalClass:ed.verticalClass);let rd;td&&(rd=td.querySelector(classesToSelector(t.params.scrollbar.dragClass)),rd||(rd=createElement$1(`div`,t.params.scrollbar.dragClass),td.append(rd))),Object.assign(e,{el:td,dragEl:rd}),ed.draggable&&yd(),td&&td.classList[t.enabled?`remove`:`add`](...classesToTokens(t.params.scrollbar.lockClass))}function Sd(){let e=t.params.scrollbar,$=t.scrollbar.el;$&&$.classList.remove(...classesToTokens(t.isHorizontal()?e.horizontalClass:e.verticalClass)),bd()}ed(`changeDirection`,()=>{if(!t.scrollbar||!t.scrollbar.el)return;let e=t.params.scrollbar,{el:$}=t.scrollbar;$=makeElementsArray($),$.forEach($=>{$.classList.remove(e.horizontalClass,e.verticalClass),$.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),ed(`init`,()=>{t.params.scrollbar.enabled===!1?wd():(xd(),fd(),ud())}),ed(`update resize observerUpdate lock unlock changeDirection`,()=>{fd()}),ed(`setTranslate`,()=>{ud()}),ed(`setTransition`,(e,t)=>{dd(t)}),ed(`enable disable`,()=>{let{el:e}=t.scrollbar;e&&e.classList[t.enabled?`remove`:`add`](...classesToTokens(t.params.scrollbar.lockClass))}),ed(`destroy`,()=>{Sd()});let Cd=()=>{t.el.classList.remove(...classesToTokens(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...classesToTokens(t.params.scrollbar.scrollbarDisabledClass)),xd(),fd(),ud()},wd=()=>{t.el.classList.add(...classesToTokens(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...classesToTokens(t.params.scrollbar.scrollbarDisabledClass)),Sd()};Object.assign(t.scrollbar,{enable:Cd,disable:wd,updateSize:fd,setTranslate:ud,init:xd,destroy:Sd})}function Parallax(e){let{swiper:t,extendParams:$,on:ed}=e;$({parallax:{enabled:!1}});let td=`[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]`,nd=(e,$)=>{let{rtl:ed}=t,td=ed?-1:1,nd=e.getAttribute(`data-swiper-parallax`)||`0`,rd=e.getAttribute(`data-swiper-parallax-x`),id=e.getAttribute(`data-swiper-parallax-y`),ad=e.getAttribute(`data-swiper-parallax-scale`),od=e.getAttribute(`data-swiper-parallax-opacity`),sd=e.getAttribute(`data-swiper-parallax-rotate`);if(rd||id?(rd||=`0`,id||=`0`):t.isHorizontal()?(rd=nd,id=`0`):(id=nd,rd=`0`),rd=rd.indexOf(`%`)>=0?`${parseInt(rd,10)*$*td}%`:`${rd*$*td}px`,id=id.indexOf(`%`)>=0?`${parseInt(id,10)*$}%`:`${id*$}px`,od!=null){let t=od-(od-1)*(1-Math.abs($));e.style.opacity=t}let cd=`translate3d(${rd}, ${id}, 0px)`;if(ad!=null){let e=ad-(ad-1)*(1-Math.abs($));cd+=` scale(${e})`}if(sd&&sd!=null){let e=sd*$*-1;cd+=` rotate(${e}deg)`}e.style.transform=cd},rd=()=>{let{el:e,slides:$,progress:ed,snapGrid:rd,isElement:id}=t,ad=elementChildren(e,td);t.isElement&&ad.push(...elementChildren(t.hostEl,td)),ad.forEach(e=>{nd(e,ed)}),$.forEach((e,$)=>{let id=e.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!==`auto`&&(id+=Math.ceil($/2)-ed*(rd.length-1)),id=Math.min(Math.max(id,-1),1),e.querySelectorAll(`${td}, [data-swiper-parallax-rotate]`).forEach(e=>{nd(e,id)})})},id=function(e){e===void 0&&(e=t.params.speed);let{el:$,hostEl:ed}=t,nd=[...$.querySelectorAll(td)];t.isElement&&nd.push(...ed.querySelectorAll(td)),nd.forEach(t=>{let $=parseInt(t.getAttribute(`data-swiper-parallax-duration`),10)||e;e===0&&($=0),t.style.transitionDuration=`${$}ms`})};ed(`beforeInit`,()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),ed(`init`,()=>{t.params.parallax.enabled&&rd()}),ed(`setTranslate`,()=>{t.params.parallax.enabled&&rd()}),ed(`setTransition`,(e,$)=>{t.params.parallax.enabled&&id($)})}function Zoom(e){let{swiper:t,extendParams:$,on:ed,emit:td}=e,nd=getWindow();$({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:`swiper-zoom-container`,zoomedSlideClass:`swiper-slide-zoomed`}}),t.zoom={enabled:!1};let rd=1,id=!1,ad=!1,od={x:0,y:0},sd=-3,cd,ld,ud=[],dd={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},fd={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},pd={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},md=1;Object.defineProperty(t.zoom,`scale`,{get(){return md}
275,set(e){if(md!==e){let t=dd.imageEl,$=dd.slideEl;td(`zoomChange`,e,t,$)}md=e}});function hd(){if(ud.length<2)return 1;let e=ud[0].pageX,t=ud[0].pageY,$=ud[1].pageX,ed=ud[1].pageY;return Math.sqrt(($-e)**2+(ed-t)**2)}function gd(){let e=t.params.zoom,$=dd.imageWrapEl.getAttribute(`data-swiper-zoom`)||e.maxRatio;if(e.limitToOriginalSize&&dd.imageEl&&dd.imageEl.naturalWidth){let e=dd.imageEl.naturalWidth/dd.imageEl.offsetWidth;return Math.min(e,$)}return $}function _d(){if(ud.length<2)return{x:null,y:null};let e=dd.imageEl.getBoundingClientRect();return[(ud[0].pageX+(ud[1].pageX-ud[0].pageX)/2-e.x-nd.scrollX)/rd,(ud[0].pageY+(ud[1].pageY-ud[0].pageY)/2-e.y-nd.scrollY)/rd]}function vd(){return t.isElement?`swiper-slide`:`.${t.params.slideClass}`}function yd(e){let $=vd();return!!(e.target.matches($)||t.slides.filter(t=>t.contains(e.target)).length>0)}function bd(e){let $=`.${t.params.zoom.containerClass}`;return!!(e.target.matches($)||[...t.hostEl.querySelectorAll($)].filter(t=>t.contains(e.target)).length>0)}function xd(e){if(e.pointerType===`mouse`&&ud.splice(0,ud.length),!yd(e))return;let $=t.params.zoom;if(cd=!1,ld=!1,ud.push(e),!(ud.length<2)){if(cd=!0,dd.scaleStart=hd(),!dd.slideEl){dd.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),dd.slideEl||=t.slides[t.activeIndex];let ed=dd.slideEl.querySelector(`.${$.containerClass}`);if(ed&&=ed.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],dd.imageEl=ed,ed?dd.imageWrapEl=elementParents(dd.imageEl,`.${$.containerClass}`)[0]:dd.imageWrapEl=void 0,!dd.imageWrapEl){dd.imageEl=void 0;return}dd.maxRatio=gd()}if(dd.imageEl){let[e,t]=_d();dd.originX=e,dd.originY=t,dd.imageEl.style.transitionDuration=`0ms`}id=!0}}function Sd(e){if(!yd(e))return;let $=t.params.zoom,ed=t.zoom,td=ud.findIndex(t=>t.pointerId===e.pointerId);td>=0&&(ud[td]=e),!(ud.length<2)&&(ld=!0,dd.scaleMove=hd(),dd.imageEl&&(ed.scale=dd.scaleMove/dd.scaleStart*rd,ed.scale>dd.maxRatio&&(ed.scale=dd.maxRatio-1+(ed.scale-dd.maxRatio+1)**.5),ed.scale<$.minRatio&&(ed.scale=$.minRatio+1-($.minRatio-ed.scale+1)**.5),dd.imageEl.style.transform=`translate3d(0,0,0) scale(${ed.scale})`))}function Cd(e){if(!yd(e)||e.pointerType===`mouse`&&e.type===`pointerout`)return;let $=t.params.zoom,ed=t.zoom,td=ud.findIndex(t=>t.pointerId===e.pointerId);td>=0&&ud.splice(td,1),!(!cd||!ld)&&(cd=!1,ld=!1,dd.imageEl&&(ed.scale=Math.max(Math.min(ed.scale,dd.maxRatio),$.minRatio),dd.imageEl.style.transitionDuration=`${t.params.speed}ms`,dd.imageEl.style.transform=`translate3d(0,0,0) scale(${ed.scale})`,rd=ed.scale,id=!1,ed.scale>1&&dd.slideEl?dd.slideEl.classList.add(`${$.zoomedSlideClass}`):ed.scale<=1&&dd.slideEl&&dd.slideEl.classList.remove(`${$.zoomedSlideClass}`),ed.scale===1&&(dd.originX=0,dd.originY=0,dd.slideEl=void 0)))}let wd;function Td(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function Ed(){clearTimeout(wd),t.touchEventsData.preventTouchMoveFromPointerMove=!0,wd=setTimeout(()=>{t.destroyed||Td()})}function Dd(e){let $=t.device;if(!dd.imageEl||fd.isTouched)return;$.android&&e.cancelable&&e.preventDefault(),fd.isTouched=!0;let ed=ud.length>0?ud[0]:e;fd.touchesStart.x=ed.pageX,fd.touchesStart.y=ed.pageY}function Od(e){let $=e.pointerType===`mouse`&&t.params.zoom.panOnMouseMove;if(!yd(e)||!bd(e))return;let ed=t.zoom;if(!dd.imageEl)return;if(!fd.isTouched||!dd.slideEl){$&&jd(e);return}if($){jd(e);return}fd.isMoved||(fd.width=dd.imageEl.offsetWidth||dd.imageEl.clientWidth,fd.height=dd.imageEl.offsetHeight||dd.imageEl.clientHeight,fd.startX=getTranslate(dd.imageWrapEl,`x`)||0,fd.startY=getTranslate(dd.imageWrapEl,`y`)||0,dd.slideWidth=dd.slideEl.offsetWidth,dd.slideHeight=dd.slideEl.offsetHeight,dd.imageWrapEl.style.transitionDuration=`0ms`);let td=fd.width*ed.scale,nd=fd.height*ed.scale;if(fd.minX=Math.min(dd.slideWidth/2-td/2,0),fd.maxX=-fd.minX,fd.minY=Math.min(dd.slideHeight/2-nd/2,0),fd.maxY=-fd.minY,fd.touchesCurrent.x=ud.length>0?ud[0].pageX:e.pageX,fd.touchesCurrent.y=ud.length>0?ud[0].pageY:e.pageY,Math.max(Math.abs(fd.touchesCurrent.x-fd.touchesStart.x),Math.abs(fd.touchesCurrent.y-fd.touchesStart.y))>5&&(t.allowClick=!1),!fd.isMoved&&!id){if(t.isHorizontal()&&(Math.floor(fd.minX)===Math.floor(fd.startX)&&fd.touchesCurrent.x<fd.touchesStart.x||Math.floor(fd.maxX)===Math.floor(fd.startX)&&fd.touchesCurrent.x>fd.touchesStart.x)){fd.isTouched=!1,Td();return}if(!t.isHorizontal()&&(Math.floor(fd.minY)===Math.floor(fd.startY)&&fd.touchesCurrent.y<fd.touchesStart.y||Math.floor(fd.maxY)===Math.floor(fd.startY)&&fd.touchesCurrent.y>fd.touchesStart.y)){fd.isTouched=!1,Td();return}}e.cancelable&&e.preventDefault(),e.stopPropagation(),Ed(),fd.isMoved=!0;let ad=(ed.scale-rd)/(dd.maxRatio-t.params.zoom.minRatio),{originX:od,originY:sd}=dd;fd.currentX=fd.touchesCurrent.x-fd.touchesStart.x+fd.startX+ad*(fd.width-od*2),fd.
275currentY=fd.touchesCurrent.y-fd.touchesStart.y+fd.startY+ad*(fd.height-sd*2),fd.currentX<fd.minX&&(fd.currentX=fd.minX+1-(fd.minX-fd.currentX+1)**.8),fd.currentX>fd.maxX&&(fd.currentX=fd.maxX-1+(fd.currentX-fd.maxX+1)**.8),fd.currentY<fd.minY&&(fd.currentY=fd.minY+1-(fd.minY-fd.currentY+1)**.8),fd.currentY>fd.maxY&&(fd.currentY=fd.maxY-1+(fd.currentY-fd.maxY+1)**.8),pd.prevPositionX||=fd.touchesCurrent.x,pd.prevPositionY||=fd.touchesCurrent.y,pd.prevTime||=Date.now(),pd.x=(fd.touchesCurrent.x-pd.prevPositionX)/(Date.now()-pd.prevTime)/2,pd.y=(fd.touchesCurrent.y-pd.prevPositionY)/(Date.now()-pd.prevTime)/2,Math.abs(fd.touchesCurrent.x-pd.prevPositionX)<2&&(pd.x=0),Math.abs(fd.touchesCurrent.y-pd.prevPositionY)<2&&(pd.y=0),pd.prevPositionX=fd.touchesCurrent.x,pd.prevPositionY=fd.touchesCurrent.y,pd.prevTime=Date.now(),dd.imageWrapEl.style.transform=`translate3d(${fd.currentX}px, ${fd.currentY}px,0)`}function kd(){let e=t.zoom;if(ud.length=0,!dd.imageEl)return;if(!fd.isTouched||!fd.isMoved){fd.isTouched=!1,fd.isMoved=!1;return}fd.isTouched=!1,fd.isMoved=!1;let $=300,ed=300,td=pd.x*$,nd=fd.currentX+td,rd=pd.y*ed,id=fd.currentY+rd;pd.x!==0&&($=Math.abs((nd-fd.currentX)/pd.x)),pd.y!==0&&(ed=Math.abs((id-fd.currentY)/pd.y));let ad=Math.max($,ed);fd.currentX=nd,fd.currentY=id;let od=fd.width*e.scale,sd=fd.height*e.scale;fd.minX=Math.min(dd.slideWidth/2-od/2,0),fd.maxX=-fd.minX,fd.minY=Math.min(dd.slideHeight/2-sd/2,0),fd.maxY=-fd.minY,fd.currentX=Math.max(Math.min(fd.currentX,fd.maxX),fd.minX),fd.currentY=Math.max(Math.min(fd.currentY,fd.maxY),fd.minY),dd.imageWrapEl.style.transitionDuration=`${ad}ms`,dd.imageWrapEl.style.transform=`translate3d(${fd.currentX}px, ${fd.currentY}px,0)`}function Ad(){let e=t.zoom;dd.slideEl&&t.activeIndex!==t.slides.indexOf(dd.slideEl)&&(dd.imageEl&&(dd.imageEl.style.transform=`translate3d(0,0,0) scale(1)`),dd.imageWrapEl&&(dd.imageWrapEl.style.transform=`translate3d(0,0,0)`),dd.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,rd=1,dd.slideEl=void 0,dd.imageEl=void 0,dd.imageWrapEl=void 0,dd.originX=0,dd.originY=0)}function jd(e){if(rd<=1||!dd.imageWrapEl||!yd(e)||!bd(e))return;let t=nd.getComputedStyle(dd.imageWrapEl).transform,$=new nd.DOMMatrix(t);if(!ad){ad=!0,od.x=e.clientX,od.y=e.clientY,fd.startX=$.e,fd.startY=$.f,fd.width=dd.imageEl.offsetWidth||dd.imageEl.clientWidth,fd.height=dd.imageEl.offsetHeight||dd.imageEl.clientHeight,dd.slideWidth=dd.slideEl.offsetWidth,dd.slideHeight=dd.slideEl.offsetHeight;return}let ed=(e.clientX-od.x)*-3,td=(e.clientY-od.y)*-3,id=fd.width*rd,sd=fd.height*rd,cd=dd.slideWidth,ld=dd.slideHeight,ud=Math.min(cd/2-id/2,0),pd=-ud,md=Math.min(ld/2-sd/2,0),hd=-md,gd=Math.max(Math.min(fd.startX+ed,pd),ud),_d=Math.max(Math.min(fd.startY+td,hd),md);dd.imageWrapEl.style.transitionDuration=`0ms`,dd.imageWrapEl.style.transform=`translate3d(${gd}px, ${_d}px, 0)`,od.x=e.clientX,od.y=e.clientY,fd.startX=gd,fd.startY=_d,fd.currentX=gd,fd.currentY=_d}function Md(e){let $=t.zoom,ed=t.params.zoom;if(!dd.slideEl){e&&e.target&&(dd.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),dd.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?dd.slideEl=elementChildren(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:dd.slideEl=t.slides[t.activeIndex]);let $=dd.slideEl.querySelector(`.${ed.containerClass}`);$&&=$.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],dd.imageEl=$,$?dd.imageWrapEl=elementParents(dd.imageEl,`.${ed.containerClass}`)[0]:dd.imageWrapEl=void 0}if(!dd.imageEl||!dd.imageWrapEl)return;t.params.cssMode&&(t.wrapperEl.style.overflow=`hidden`,t.wrapperEl.style.touchAction=`none`),dd.slideEl.classList.add(`${ed.zoomedSlideClass}`);let td,id,ad,od,sd,cd,ld,ud,pd,md,hd,_d,vd,yd,bd,xd,Sd,Cd;fd.touchesStart.x===void 0&&e?(td=e.pageX,id=e.pageY):(td=fd.touchesStart.x,id=fd.touchesStart.y);let wd=rd,Td=typeof e==`number`?e:null;rd===1&&Td&&(td=void 0,id=void 0,fd.touchesStart.x=void 0,fd.touchesStart.y=void 0);let Ed=gd();$.scale=Td||Ed,rd=Td||Ed,e&&!(rd===1&&Td)?(Sd=dd.slideEl.offsetWidth,Cd=dd.slideEl.offsetHeight,ad=elementOffset(dd.slideEl).left+nd.scrollX,od=elementOffset(dd.slideEl).top+nd.scrollY,sd=ad+Sd/2-td,cd=od+Cd/2-id,pd=dd.imageEl.offsetWidth||dd.imageEl.clientWidth,md=dd.imageEl.offsetHeight||dd.imageEl.clientHeight,hd=pd*$.scale,_d=md*$.scale,vd=Math.min(Sd/2-hd/2,0),yd=Math.min(Cd/2-_d/2,0),bd=-vd,xd=-yd,wd>0&&Td&&typeof fd.currentX==`number`&&typeof fd.currentY==`number`?(ld=fd.currentX*$.scale/wd,ud=fd.currentY*$.scale/wd):(ld=sd*$.scale,ud=cd*$.scale),ld<vd&&(ld=vd),ld>bd&&(ld=bd),ud<yd&&(ud=yd),ud>xd&&(ud=xd)):(ld=0,ud=0),Td&&$.scale===1&&(dd.originX=0,dd.originY=0),fd.currentX=ld,fd.currentY=ud,dd.imageWrapEl.style.transitionDuration=`300ms`,dd.imageWrapEl.style.transform=`translate3d(${ld}px, ${ud}px,0)`,dd.imageEl.style.transitionDuration=`300ms`,dd.imageEl.style.transform=`translate3d(0,
2750,0) scale(${$.scale})`}function Nd(){let e=t.zoom,$=t.params.zoom;if(!dd.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?dd.slideEl=elementChildren(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:dd.slideEl=t.slides[t.activeIndex];let e=dd.slideEl.querySelector(`.${$.containerClass}`);e&&=e.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],dd.imageEl=e,e?dd.imageWrapEl=elementParents(dd.imageEl,`.${$.containerClass}`)[0]:dd.imageWrapEl=void 0}!dd.imageEl||!dd.imageWrapEl||(t.params.cssMode&&(t.wrapperEl.style.overflow=``,t.wrapperEl.style.touchAction=``),e.scale=1,rd=1,fd.currentX=void 0,fd.currentY=void 0,fd.touchesStart.x=void 0,fd.touchesStart.y=void 0,dd.imageWrapEl.style.transitionDuration=`300ms`,dd.imageWrapEl.style.transform=`translate3d(0,0,0)`,dd.imageEl.style.transitionDuration=`300ms`,dd.imageEl.style.transform=`translate3d(0,0,0) scale(1)`,dd.slideEl.classList.remove(`${$.zoomedSlideClass}`),dd.slideEl=void 0,dd.originX=0,dd.originY=0,t.params.zoom.panOnMouseMove&&(od={x:0,y:0},ad&&(ad=!1,fd.startX=0,fd.startY=0)))}function Pd(e){let $=t.zoom;$.scale&&$.scale!==1?Nd():Md(e)}function Fd(){return{passiveListener:t.params.passiveListeners?{passive:!0,capture:!1}:!1,activeListenerWithCapture:t.params.passiveListeners?{passive:!1,capture:!0}:!0}}function Id(){let e=t.zoom;if(e.enabled)return;e.enabled=!0;let{passiveListener:$,activeListenerWithCapture:ed}=Fd();t.wrapperEl.addEventListener(`pointerdown`,xd,$),t.wrapperEl.addEventListener(`pointermove`,Sd,ed),[`pointerup`,`pointercancel`,`pointerout`].forEach(e=>{t.wrapperEl.addEventListener(e,Cd,$)}),t.wrapperEl.addEventListener(`pointermove`,Od,ed)}function Ld(){let e=t.zoom;if(!e.enabled)return;e.enabled=!1;let{passiveListener:$,activeListenerWithCapture:ed}=Fd();t.wrapperEl.removeEventListener(`pointerdown`,xd,$),t.wrapperEl.removeEventListener(`pointermove`,Sd,ed),[`pointerup`,`pointercancel`,`pointerout`].forEach(e=>{t.wrapperEl.removeEventListener(e,Cd,$)}),t.wrapperEl.removeEventListener(`pointermove`,Od,ed)}ed(`init`,()=>{t.params.zoom.enabled&&Id()}),ed(`destroy`,()=>{Ld()}),ed(`touchStart`,(e,$)=>{t.zoom.enabled&&Dd($)}),ed(`touchEnd`,(e,$)=>{t.zoom.enabled&&kd()}),ed(`doubleTap`,(e,$)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&Pd($)}),ed(`transitionEnd`,()=>{t.zoom.enabled&&t.params.zoom.enabled&&Ad()}),ed(`slideChange`,()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&Ad()}),Object.assign(t.zoom,{enable:Id,disable:Ld,in:Md,out:Nd,toggle:Pd})}function Controller(e){let{swiper:t,extendParams:$,on:ed}=e;$({controller:{control:void 0,inverse:!1,by:`slide`}}),t.controller={control:void 0};function td(e,t){let $=function(){let e,t,$;return(ed,td)=>{for(t=-1,e=ed.length;e-t>1;)$=e+t>>1,ed[$]<=td?t=$:e=$;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;let ed,td;return this.interpolate=function(e){return e?(td=$(this.x,e),ed=td-1,(e-this.x[ed])*(this.y[td]-this.y[ed])/(this.x[td]-this.x[ed])+this.y[ed]):0},this}function nd(e){t.controller.spline=t.params.loop?new td(t.slidesGrid,e.slidesGrid):new td(t.snapGrid,e.snapGrid)}function rd(e,$){let ed=t.controller.control,td,rd,id=t.constructor;function ad(e){if(e.destroyed)return;let $=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by===`slide`&&(nd(e),rd=-t.controller.spline.interpolate(-$)),(!rd||t.params.controller.by===`container`)&&(td=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(td)||!Number.isFinite(td))&&(td=1),rd=($-t.minTranslate())*td+e.minTranslate()),t.params.controller.inverse&&(rd=e.maxTranslate()-rd),e.updateProgress(rd),e.setTranslate(rd,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(ed))for(let e=0;e<ed.length;e+=1)ed[e]!==$&&ed[e]instanceof id&&ad(ed[e]);else ed instanceof id&&$!==ed&&ad(ed)}function id(e,$){let ed=t.constructor,td=t.controller.control,nd;function rd($){$.destroyed||($.setTransition(e,t),e!==0&&($.transitionStart(),$.params.autoHeight&&nextTick(()=>{$.updateAutoHeight()}),elementTransitionEnd($.wrapperEl,()=>{td&&$.transitionEnd()})))}if(Array.isArray(td))for(nd=0;nd<td.length;nd+=1)td[nd]!==$&&td[nd]instanceof ed&&rd(td[nd]);else td instanceof ed&&$!==td&&rd(td)}function ad(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}ed(`beforeInit`,()=>{if(typeof window<`u`&&(typeof t.params.controller.control==`string`||t.params.controller.control instanceof HTMLElement)){(typeof t.params.controller.control==`string`?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEac
vendor: 4,557 bytes, line 275
275h(e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){let $=`${t.params.eventsPrefix}init`,ed=td=>{t.controller.control.push(td.detail[0]),t.update(),e.removeEventListener($,ed)};e.addEventListener($,ed)}});return}t.controller.control=t.params.controller.control}),ed(`update`,()=>{ad()}),ed(`resize`,()=>{ad()}),ed(`observerUpdate`,()=>{ad()}),ed(`setTranslate`,(e,$,ed)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate($,ed)}),ed(`setTransition`,(e,$,ed)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition($,ed)}),Object.assign(t.controller,{setTranslate:rd,setTransition:id})}function A11y(e){let{swiper:t,extendParams:$,on:ed}=e;$({a11y:{enabled:!0,notificationClass:`swiper-notification`,prevSlideMessage:`Previous slide`,nextSlideMessage:`Next slide`,firstSlideMessage:`This is the first slide`,lastSlideMessage:`This is the last slide`,paginationBulletMessage:`Go to slide {{index}}`,slideLabelMessage:`{{index}} / {{slidesLength}}`,containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:`group`,id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let td=null,nd,rd,id=new Date().getTime();function ad(e){let t=td;t.length!==0&&setInnerHTML(t,e)}function od(e){return e===void 0&&(e=16),`x`.repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}function sd(e){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`0`)})}function cd(e){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`-1`)})}function ld(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`role`,t)})}function ud(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-roledescription`,t)})}function dd(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-controls`,t)})}function fd(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-label`,t)})}function pd(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`id`,t)})}function md(e,t){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-live`,t)})}function hd(e){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-disabled`,!0)})}function gd(e){e=makeElementsArray(e),e.forEach(e=>{e.setAttribute(`aria-disabled`,!1)})}function _d(e){if(e.keyCode!==13&&e.keyCode!==32)return;let $=t.params.a11y,ed=e.target;if(!(t.pagination&&t.pagination.el&&(ed===t.pagination.el||t.pagination.el.contains(e.target))&&!e.target.matches(classesToSelector(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){let e=makeElementsArray(t.navigation.prevEl);makeElementsArray(t.navigation.nextEl).includes(ed)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?ad($.lastSlideMessage):ad($.nextSlideMessage)),e.includes(ed)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?ad($.firstSlideMessage):ad($.prevSlideMessage))}t.pagination&&ed.matches(classesToSelector(t.params.pagination.bulletClass))&&ed.click()}}function vd(){if(t.params.loop||t.params.rewind||!t.navigation)return;let{nextEl:e,prevEl:$}=t.navigation;$&&(t.isBeginning?(hd($),cd($)):(gd($),sd($))),e&&(t.isEnd?(hd(e),cd(e)):(gd(e),sd(e)))}function yd(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function bd(){return yd()&&t.params.pagination.clickable}function xd(){let e=t.params.a11y;yd()&&t.pagination.bullets.forEach($=>{t.params.pagination.clickable&&(sd($),t.params.pagination.renderBullet||(ld($,`button`),fd($,e.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex($)+1)))),$.matches(classesToSelector(t.params.pagination.bulletActiveClass))?$.setAttribute(`aria-current`,`true`):$.removeAttribute(`aria-current`)})}let Sd=(e,t,$)=>{sd(e),e.tagName!==`BUTTON`&&(ld(e,`button`),e.addEventListener(`keydown`,_d)),fd(e,$),dd(e,t)},Cd=e=>{rd&&rd!==e.target&&!rd.contains(e.target)&&(nd=!0),t.a11y.clicked=!0},wd=()=>{nd=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},Td=e=>{id=new Date().getTime()},Ed=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-id<100)return;let $=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!$||!t.slides.includes($))return;rd=$;let ed=t.slides.indexOf($)===t.activeIndex,td=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes($);ed||td||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>
275{nd||=(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt($.getAttribute(`data-swiper-slide-index`))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf($)),0),!1)}))},Dd=()=>{let e=t.params.a11y;e.itemRoleDescriptionMessage&&ud(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&ld(t.slides,e.slideRole);let $=t.slides.length;e.slideLabelMessage&&t.slides.forEach((ed,td)=>{let nd=t.params.loop?parseInt(ed.getAttribute(`data-swiper-slide-index`),10):td;fd(ed,e.slideLabelMessage.replace(/\{\{index\}\}/,nd+1).replace(/\{\{slidesLength\}\}/,$))})},Od=()=>{let e=t.params.a11y;t.el.append(td);let $=t.el;e.containerRoleDescriptionMessage&&ud($,e.containerRoleDescriptionMessage),e.containerMessage&&fd($,e.containerMessage),e.containerRole&&ld($,e.containerRole);let ed=t.wrapperEl,nd=e.id||ed.getAttribute(`id`)||`swiper-wrapper-${od(16)}`,rd=t.params.autoplay&&t.params.autoplay.enabled?`off`:`polite`;pd(ed,nd),md(ed,rd),Dd();let{nextEl:id,prevEl:ad}=t.navigation?t.navigation:{};id=makeElementsArray(id),ad=makeElementsArray(ad),id&&id.forEach(t=>Sd(t,nd,e.nextSlideMessage)),ad&&ad.forEach(t=>Sd(t,nd,e.prevSlideMessage)),bd()&&makeElementsArray(t.pagination.el).forEach(e=>{e.addEventListener(`keydown`,_d)}),getDocument().addEventListener(`visibilitychange`,Td),t.el.addEventListener(`focus`,Ed,!0),t.el.addEventListener(`focus`,Ed,!0),t.el.addEventListener(`pointerdown`,Cd,!0),t.el.addEventListener(`pointerup`,wd,!0)};function kd(){td&&td.remove();let{nextEl:e,prevEl:$}=t.navigation?t.navigation:{};e=makeElementsArray(e),$=makeElementsArray($),e&&e.forEach(e=>e.removeEventListener(`keydown`,_d)),$&&$.forEach(e=>e.removeEventListener(`keydown`,_d)),bd()&&makeElementsArray(t.pagination.el).forEach(e=>{e.removeEventListener(`keydown`,_d)}),getDocument().removeEventListener(`visibilitychange`,Td),t.el&&typeof t.el!=`string`&&(t.el.removeEventListener(`focus`,Ed,!0),t.el.removeEventListener(`pointerdown`,Cd,!0),t.el.removeEventListener(`pointerup`,wd,!0))}ed(`beforeInit`,()=>{td=createElement$1(`span`,t.params.a11y.notificationClass),td.setAttribute(`aria-live`,`assertive`),td.setAttribute(`aria-atomic`,`true`)}),ed(`afterInit`,()=>{t.params.a11y.enabled&&Od()}),ed(`slidesLengthChange snapGridLengthChange slidesGridLengthChange`,()=>{t.params.a11y.enabled&&Dd()}),ed(`fromEdge toEdge afterInit lock unlock`,()=>{t.params.a11y.enabled&&vd()}),ed(`paginationUpdate`,()=>{t.params.a11y.enabled&&xd()}),ed(`destroy`,()=>{t.params.a11y.enabled&&kd()})}function History(e){let{swiper:t,extendParams:$,on:ed}=e;$({history:{enabled:!1,root:``,replaceState:!1,key:`slides`,keepQuery:!1}});let td=!1,nd={},rd=e=>e.toString().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/--+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),id=e=>{let t=getWindow(),$;$=e?new URL(e):t.location;let ed=$.pathname.slice(1).split(`/`).filter(e=>e!==``),td=ed.length;return{key:ed[td-2],value:ed[td-1]}},ad=(e,$)=>{let ed=getWindow();if(!td||!t.params.history.enabled)return;let nd;nd=t.params.url?new URL(t.params.url):ed.location;let id=rd((t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${$}"]`):t.slides[$]).getAttribute(`data-history`));if(t.params.history.root.length>0){let $=t.params.history.root;$[$.length-1]===`/`&&($=$.slice(0,$.length-1)),id=`${$}/${e?`${e}/`:``}${id}`}else nd.pathname.includes(e)||(id=`${e?`${e}/`:``}${id}`);t.params.history.keepQuery&&(id+=nd.search);let ad=ed.history.state;ad&&ad.value===id||(t.params.history.replaceState?ed.history.replaceState({value:id},null,id):ed.history.pushState({value:id},null,id))},od=(e,$,ed)=>{if($)for(let td=0,nd=t.slides.length;td<nd;td+=1){let nd=t.slides[td];if(rd(nd.getAttribute(`data-history`))===$){let $=t.getSlideIndex(nd);t.slideTo($,e,ed)}}else t.slideTo(0,e,ed)},sd=()=>{nd=id(t.params.url),od(t.params.speed,nd.value,!1)},cd=()=>{let e=getWindow();if(t.params.history){if(!e.history||!e.history.pushState){t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0;return}if(td=!0,nd=id(t.params.url),!nd.key&&!nd.value){t.params.history.replaceState||e.addEventListener(`popstate`,sd);return}od(0,nd.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener(`popstate`,sd)}},ld=()=>{let e=getWindow();t.params.history.replaceState||e.removeEventListener(`popstate`,sd)};ed(`init`,()=>{t.params.history.enabled&&cd()}),ed(`destroy`,()=>{t.params.history.enabled&&ld()}),ed(`transitionEnd _freeModeNoMomentumRelease`,()=>{td&&ad(t.params.history.key,t.activeIndex)}),ed(`slideChange`,()=>{td&&t.params.cssMode&&ad(t.params.history.key,t.activeIndex)})}function HashNavigation(e){let{swiper:t,extendParams:$,emit:ed,on:td}=e,nd=!1,rd=getDocument(),id=getWindow();$({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,$){if(t.virtual&&t.params.virtual.enabled){let e=t.slides.find(e=>e.getAttribute(`data-hash`)===$);return e?parseInt(e.getAttribute(`data-swiper-slide-index`),10):0}return t.getSlideIndex(elementChildren(t.slidesEl,`.${t.params.slideClass}[data-hash="${$}"], swiper-slide[data-hash="${$}"]`)[0])}}});let ad=()=>{ed(`hashChange`);let e=rd.location.hash.replace(`#`,``),$=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==($?$.getAttribute(`data-hash`):``)){let $=t.params.hashNavigation.getSlideIndex(t,e);if($===void 0||Number.isNaN($))return;t.slideTo($)}},od=()=>
275{if(!nd||!t.params.hashNavigation.enabled)return;let e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],$=e?e.getAttribute(`data-hash`)||e.getAttribute(`data-history`):``;t.params.hashNavigation.replaceState&&id.history&&id.history.replaceState?(id.history.replaceState(null,null,`#${$}`||``),ed(`hashSet`)):(rd.location.hash=$||``,ed(`hashSet`))},sd=()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;nd=!0;let e=rd.location.hash.replace(`#`,``);if(e){let $=0,ed=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(ed||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&id.addEventListener(`hashchange`,ad)},cd=()=>{t.params.hashNavigation.watchState&&id.removeEventListener(`hashchange`,ad)};td(`init`,()=>{t.params.hashNavigation.enabled&&sd()}),td(`destroy`,()=>{t.params.hashNavigation.enabled&&cd()}),td(`transitionEnd _freeModeNoMomentumRelease`,()=>{nd&&od()}),td(`slideChange`,()=>{nd&&t.params.cssMode&&od()})}function Autoplay(e){let{swiper:t,extendParams:$,on:ed,emit:td,params:nd}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},$({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let rd,id,ad=nd&&nd.autoplay?nd.autoplay.delay:3e3,od=nd&&nd.autoplay?nd.autoplay.delay:3e3,sd,cd=new Date().getTime(),ld,ud,dd,fd,pd,md,hd;function gd(e){!t||t.destroyed||!t.wrapperEl||e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener(`transitionend`,gd),!(hd||e.detail&&e.detail.bySwiperTouchMove)&&Cd())}let _d=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?ld=!0:ld&&=(od=sd,!1);let e=t.autoplay.paused?sd:cd+od-new Date().getTime();t.autoplay.timeLeft=e,td(`autoplayTimeLeft`,e,e/ad),id=requestAnimationFrame(()=>{_d()})},vd=()=>{let e;if(e=t.virtual&&t.params.virtual.enabled?t.slides.find(e=>e.classList.contains(`swiper-slide-active`)):t.slides[t.activeIndex],e)return parseInt(e.getAttribute(`data-swiper-autoplay`),10)},yd=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(id),_d();let $=e===void 0?t.params.autoplay.delay:e;ad=t.params.autoplay.delay,od=t.params.autoplay.delay;let ed=vd();!Number.isNaN(ed)&&ed>0&&e===void 0&&($=ed,ad=ed,od=ed),sd=$;let nd=t.params.speed,ld=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(nd,!0,!0),td(`autoplay`)):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,nd,!0,!0),td(`autoplay`)):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(nd,!0,!0),td(`autoplay`)):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,nd,!0,!0),td(`autoplay`)),t.params.cssMode&&(cd=new Date().getTime(),requestAnimationFrame(()=>{yd()})))};return $>0?(clearTimeout(rd),rd=setTimeout(()=>{ld()},$)):requestAnimationFrame(()=>{ld()}),$},bd=()=>{cd=new Date().getTime(),t.autoplay.running=!0,yd(),td(`autoplayStart`)},xd=()=>{t.autoplay.running=!1,clearTimeout(rd),cancelAnimationFrame(id),td(`autoplayStop`)},Sd=(e,$)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(rd),e||(md=!0);let ed=()=>{td(`autoplayPause`),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener(`transitionend`,gd):Cd()};if(t.autoplay.paused=!0,$){pd&&(sd=t.params.autoplay.delay),pd=!1,ed();return}sd=(sd||t.params.autoplay.delay)-(new Date().getTime()-cd),!(t.isEnd&&sd<0&&!t.params.loop)&&(sd<0&&(sd=0),ed())},Cd=()=>{t.isEnd&&sd<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(cd=new Date().getTime(),md?(md=!1,yd(sd)):yd(),t.autoplay.paused=!1,td(`autoplayResume`))},wd=()=>{if(t.destroyed||!t.autoplay.running)return;let e=getDocument();e.visibilityState===`hidden`&&(md=!0,Sd(!0)),e.visibilityState===`visible`&&Cd()},Td=e=>{e.pointerType===`mouse`&&(md=!0,hd=!0,!(t.animating||t.autoplay.paused)&&Sd(!0))},Ed=e=>{e.pointerType===`mouse`&&(hd=!1,t.autoplay.paused&&Cd())},Dd=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener(`pointerenter`,Td),t.el.addEventListener(`pointerleave`,Ed))},Od=()=>{t.el&&typeof t.el!=`string`&&(t.el.removeEventListener(`pointerenter`,Td),t.el.removeEventListener(`pointerleave`,Ed))},kd=()=>{getDocument().addEventListener(`visibilitychange`,wd)},Ad=()=>{getDocument().removeEventListener(`visibilitychange`,wd)};ed(`init`,()=>{t.params.autoplay.enabled&&(Dd(),kd(),bd())}),ed(`destroy`,()=>{Od(),Ad(),t.autoplay.running&&xd()}),ed(`_freeModeStaticRelease`,()=>{(dd||md)&&Cd()}),ed(`_freeModeNoMomentumRelease`,()=>{t.params.autoplay.disableOnInteraction?xd():Sd(!0,!0)}),ed(`beforeTransitionStart`,(e,$,ed)=>
275{t.destroyed||!t.autoplay.running||(ed||!t.params.autoplay.disableOnInteraction?Sd(!0,!0):xd())}),ed(`sliderFirstMove`,()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){xd();return}ud=!0,dd=!1,md=!1,fd=setTimeout(()=>{md=!0,dd=!0,Sd(!0)},200)}}),ed(`touchEnd`,()=>{if(!(t.destroyed||!t.autoplay.running||!ud)){if(clearTimeout(fd),clearTimeout(rd),t.params.autoplay.disableOnInteraction){dd=!1,ud=!1;return}dd&&t.params.cssMode&&Cd(),dd=!1,ud=!1}}),ed(`slideChange`,()=>{t.destroyed||!t.autoplay.running||(pd=!0)}),Object.assign(t.autoplay,{start:bd,stop:xd,pause:Sd,resume:Cd})}function Thumb(e){let{swiper:t,extendParams:$,on:ed}=e;$({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:`swiper-slide-thumb-active`,thumbsContainerClass:`swiper-thumbs`}});let td=!1,nd=!1;t.thumbs={swiper:null};function rd(){let e=t.thumbs.swiper;if(!e||e.destroyed)return;let $=e.clickedIndex,ed=e.clickedSlide;if(ed&&ed.classList.contains(t.params.thumbs.slideThumbActiveClass)||$==null)return;let td;td=e.params.loop?parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10):$,t.params.loop?t.slideToLoop(td):t.slideTo(td)}function id(){let{thumbs:e}=t.params;if(td)return!1;td=!0;let $=t.constructor;if(e.swiper instanceof $){if(e.swiper.destroyed)return td=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(isObject(e.swiper)){let ed=Object.assign({},e.swiper);Object.assign(ed,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new $(ed),nd=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on(`tap`,rd),!0}function ad(e){let $=t.thumbs.swiper;if(!$||$.destroyed)return;let ed=$.params.slidesPerView===`auto`?$.slidesPerViewDynamic():$.params.slidesPerView,td=1,nd=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(td=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(td=1),td=Math.floor(td),$.slides.forEach(e=>e.classList.remove(nd)),$.params.loop||$.params.virtual&&$.params.virtual.enabled)for(let e=0;e<td;e+=1)elementChildren($.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach(e=>{e.classList.add(nd)});else for(let e=0;e<td;e+=1)$.slides[t.realIndex+e]&&$.slides[t.realIndex+e].classList.add(nd);let rd=t.params.thumbs.autoScrollOffset,id=rd&&!$.params.loop;if(t.realIndex!==$.realIndex||id){let td=$.activeIndex,nd,ad;if($.params.loop){let e=$.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)===`${t.realIndex}`);nd=$.slides.indexOf(e),ad=t.activeIndex>t.previousIndex?`next`:`prev`}else nd=t.realIndex,ad=nd>t.previousIndex?`next`:`prev`;id&&(nd+=ad===`next`?rd:-1*rd),$.visibleSlidesIndexes&&$.visibleSlidesIndexes.indexOf(nd)<0&&($.params.centeredSlides?nd=nd>td?nd-Math.floor(ed/2)+1:nd+Math.floor(ed/2)-1:nd>td&&$.params.slidesPerGroup,$.slideTo(nd,e?0:void 0))}}ed(`beforeInit`,()=>{let{thumbs:e}=t.params;if(!(!e||!e.swiper))if(typeof e.swiper==`string`||e.swiper instanceof HTMLElement){let $=getDocument(),ed=()=>{let ed=typeof e.swiper==`string`?$.querySelector(e.swiper):e.swiper;if(ed&&ed.swiper)e.swiper=ed.swiper,id(),ad(!0);else if(ed){let $=`${t.params.eventsPrefix}init`,td=nd=>{e.swiper=nd.detail[0],ed.removeEventListener($,td),id(),ad(!0),e.swiper.update(),t.update()};ed.addEventListener($,td)}return ed},td=()=>{t.destroyed||ed()||requestAnimationFrame(td)};requestAnimationFrame(td)}else id(),ad(!0)}),ed(`slideChange update resize observerUpdate`,()=>{ad()}),ed(`setTransition`,(e,$)=>{let ed=t.thumbs.swiper;!ed||ed.destroyed||ed.setTransition($)}),ed(`beforeDestroy`,()=>{let e=t.thumbs.swiper;!e||e.destroyed||nd&&e.destroy()}),Object.assign(t.thumbs,{init:id,update:ad})}function freeMode(e){let{swiper:t,extendParams:$,emit:ed,once:td}=e;$({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});
275function nd(){if(t.params.cssMode)return;let e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function rd(){if(t.params.cssMode)return;let{touchEventsData:e,touches:$}=t;e.velocities.length===0&&e.velocities.push({position:$[t.isHorizontal()?`startX`:`startY`],time:e.touchStartTime}),e.velocities.push({position:$[t.isHorizontal()?`currentX`:`currentY`],time:now()})}function id(e){let{currentPos:$}=e;if(t.params.cssMode)return;let{params:nd,wrapperEl:rd,rtlTranslate:id,snapGrid:ad,touchEventsData:od}=t,sd=now()-od.touchStartTime;if($<-t.minTranslate()){t.slideTo(t.activeIndex);return}if($>-t.maxTranslate()){t.slides.length<ad.length?t.slideTo(ad.length-1):t.slideTo(t.slides.length-1);return}if(nd.freeMode.momentum){if(od.velocities.length>1){let e=od.velocities.pop(),$=od.velocities.pop(),ed=e.position-$.position,td=e.time-$.time;t.velocity=ed/td,t.velocity/=2,Math.abs(t.velocity)<nd.freeMode.minimumVelocity&&(t.velocity=0),(td>150||now()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=nd.freeMode.momentumVelocityRatio,od.velocities.length=0;
275let e=1e3*nd.freeMode.momentumRatio,$=t.velocity*e,sd=t.translate+$;id&&(sd=-sd);let cd=!1,ld,ud=Math.abs(t.velocity)*20*nd.freeMode.momentumBounceRatio,dd;if(sd<t.maxTranslate())nd.freeMode.momentumBounce?(sd+t.maxTranslate()<-ud&&(sd=t.maxTranslate()-ud),ld=t.maxTranslate(),cd=!0,od.allowMomentumBounce=!0):sd=t.maxTranslate(),nd.loop&&nd.centeredSlides&&(dd=!0);else if(sd>t.minTranslate())nd.freeMode.momentumBounce?(sd-t.minTranslate()>ud&&(sd=t.minTranslate()+ud),ld=t.minTranslate(),cd=!0,od.allowMomentumBounce=!0):sd=t.minTranslate(),nd.loop&&nd.centeredSlides&&(dd=!0);else if(nd.freeMode.sticky){let e;for(let t=0;t<ad.length;t+=1)if(ad[t]>-sd){e=t;break}sd=Math.abs(ad[e]-sd)<Math.abs(ad[e-1]-sd)||t.swipeDirection===`next`?ad[e]:ad[e-1],sd=-sd}if(dd&&td(`transitionEnd`,()=>{t.loopFix()}),t.velocity!==0){if(e=Math.abs(id?(-sd-t.translate)/t.velocity:(sd-t.translate)/t.velocity),nd.freeMode.sticky){let $=Math.abs((id?-sd:sd)-t.translate),ed=t.slidesSizesGrid[t.activeIndex];e=$<ed?nd.speed:$<2*ed?nd.speed*1.5:nd.speed*2.5}}else if(nd.freeMode.sticky){t.slideToClosest();return}nd.freeMode.momentumBounce&&cd?(t.updateProgress(ld),t.setTransition(e),t.setTranslate(sd),t.transitionStart(!0,t.swipeDirection),t.animating=!0,elementTransitionEnd(rd,()=>{!t||t.destroyed||!od.allowMomentumBounce||(ed(`momentumBounce`),t.setTransition(nd.speed),setTimeout(()=>{t.setTranslate(ld),elementTransitionEnd(rd,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(ed(`_freeModeNoMomentumRelease`),t.updateProgress(sd),t.setTransition(e),t.setTranslate(sd),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,elementTransitionEnd(rd,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(sd),t.updateActiveIndex(),t.updateSlidesClasses()}else if(nd.freeMode.sticky){t.slideToClosest();return}else nd.freeMode&&ed(`_freeModeNoMomentumRelease`);(!nd.freeMode.momentum||sd>=nd.longSwipesMs)&&(ed(`_freeModeStaticRelease`),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:nd,onTouchMove:rd,onTouchEnd:id}})}function Grid(e){let{swiper:t,extendParams:$,on:ed}=e;$({grid:{rows:1,fill:`column`}});let td,nd,rd,id,ad=()=>{let e=t.params.spaceBetween;return typeof e==`string`&&e.indexOf(`%`)>=0?e=parseFloat(e.replace(`%`,``))/100*t.size:typeof e==`string`&&(e=parseFloat(e)),e};ed(`init`,()=>{id=t.params.grid&&t.params.grid.rows>1}),ed(`update`,()=>{let{params:e,el:$}=t,ed=e.grid&&e.grid.rows>1;id&&!ed?($.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),rd=1,t.emitContainerClasses()):!id&&ed&&($.classList.add(`${e.containerModifierClass}grid`),e.grid.fill===`column`&&$.classList.add(`${e.containerModifierClass}grid-column`),t.emitContainerClasses()),id=ed}),t.grid={initSlides:e=>{let{slidesPerView:$}=t.params,{rows:ed,fill:id}=t.params.grid,ad=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:e.length;rd=Math.floor(ad/ed),td=Math.floor(ad/ed)===ad/ed?ad:Math.ceil(ad/ed)*ed,$!==`auto`&&id===`row`&&(td=Math.max(td,$*ed)),nd=td/ed},unsetSlides:()=>{t.slides&&t.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height=``,e.style[t.getDirectionLabel(`margin-top`)]=``)})},updateSlide:(e,$,ed)=>{let{slidesPerGroup:id}=t.params,od=ad(),{rows:sd,fill:cd}=t.params.grid,ld=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:ed.length,ud,dd,fd;if(cd===`row`&&id>1){let t=Math.floor(e/(id*sd)),ed=e-sd*id*t,nd=t===0?id:Math.min(Math.ceil((ld-t*sd*id)/sd),id);fd=Math.floor(ed/nd),dd=ed-fd*nd+t*id,ud=dd+fd*td/sd,$.style.order=ud}else cd===`column`?(dd=Math.floor(e/sd),fd=e-dd*sd,(dd>rd||dd===rd&&fd===sd-1)&&(fd+=1,fd>=sd&&(fd=0,dd+=1))):(fd=Math.floor(e/nd),dd=e-fd*nd);$.row=fd,$.column=dd,$.style.height=`calc((100% - ${(sd-1)*od}px) / ${sd})`,$.style[t.getDirectionLabel(`margin-top`)]=fd===0?``:od&&`${od}px`,$.swiperSlideGridSet=!0},updateWrapperSize:(e,$)=>{let{centeredSlides:ed,roundLengths:nd}=t.params,rd=ad(),{rows:id}=t.params.grid;if(t.virtualSize=(e+rd)*td,t.virtualSize=Math.ceil(t.virtualSize/id)-rd,t.params.cssMode||(t.wrapperEl.style[t.getDirectionLabel(`width`)]=`${t.virtualSize+rd}px`),ed){let e=[];for(let ed=0;ed<$.length;ed+=1){let td=$[ed];
275nd&&(td=Math.floor(td)),$[ed]<t.virtualSize+$[0]&&e.push(td)}$.splice(0,$.length),$.push(...e)}}}}function appendSlide(e){let t=this,{params:$,slidesEl:ed}=t;$.loop&&t.loopDestroy();let td=e=>{if(typeof e==`string`){let t=document.createElement(`div`);setInnerHTML(t,e),ed.append(t.children[0]),setInnerHTML(t,``)}else ed.append(e)};if(typeof e==`object`&&`length`in e)for(let t=0;t<e.length;t+=1)e[t]&&td(e[t]);else td(e);t.recalcSlides(),$.loop&&t.loopCreate(),(!$.observer||t.isElement)&&t.update()}function prependSlide(e){let t=this,{params:$,activeIndex:ed,slidesEl:td}=t;$.loop&&t.loopDestroy();let nd=ed+1,rd=e=>{if(typeof e==`string`){let t=document.createElement(`div`);setInnerHTML(t,e),td.prepend(t.children[0]),setInnerHTML(t,``)}else td.prepend(e)};if(typeof e==`object`&&`length`in e){for(let t=0;t<e.length;t+=1)e[t]&&rd(e[t]);nd=ed+e.length}else rd(e);t.recalcSlides(),$.loop&&t.loopCreate(),(!$.observer||t.isElement)&&t.update(),t.slideTo(nd,0,!1)}function addSlide(e,t){let $=this,{params:ed,activeIndex:td,slidesEl:nd}=$,rd=td;ed.loop&&(rd-=$.loopedSlides,$.loopDestroy(),$.recalcSlides());let id=$.slides.length;if(e<=0){$.prependSlide(t);return}if(e>=id){$.appendSlide(t);return}let ad=rd>e?rd+1:rd,od=[];for(let t=id-1;t>=e;--t){let e=$.slides[t];e.remove(),od.unshift(e)}if(typeof t==`object`&&`length`in t){for(let e=0;e<t.length;e+=1)t[e]&&nd.append(t[e]);ad=rd>e?rd+t.length:rd}else nd.append(t);for(let e=0;e<od.length;e+=1)nd.append(od[e]);$.recalcSlides(),ed.loop&&$.loopCreate(),(!ed.observer||$.isElement)&&$.update(),ed.loop?$.slideTo(ad+$.loopedSlides,0,!1):$.slideTo(ad,0,!1)}function removeSlide(e){let t=this,{params:$,activeIndex:ed}=t,td=ed;$.loop&&(td-=t.loopedSlides,t.loopDestroy());let nd=td,rd;if(typeof e==`object`&&`length`in e){for(let $=0;$<e.length;$+=1)rd=e[$],t.slides[rd]&&t.slides[rd].remove(),rd<nd&&--nd;nd=Math.max(nd,0)}else rd=e,t.slides[rd]&&t.slides[rd].remove(),rd<nd&&--nd,nd=Math.max(nd,0);t.recalcSlides(),$.loop&&t.loopCreate(),(!$.observer||t.isElement)&&t.update(),$.loop?t.slideTo(nd+t.loopedSlides,0,!1):t.slideTo(nd,0,!1)}function removeAllSlides(){let e=this,t=[];for(let $=0;$<e.slides.length;$+=1)t.push($);e.removeSlide(t)}function Manipulation(e){let{swiper:t}=e;Object.assign(t,{appendSlide:appendSlide.bind(t),prependSlide:prependSlide.bind(t),addSlide:addSlide.bind(t),removeSlide:removeSlide.bind(t),removeAllSlides:removeAllSlides.bind(t)})}function effectInit(e){let{effect:t,swiper:$,on:ed,setTranslate:td,setTransition:nd,overwriteParams:rd,perspective:id,recreateShadows:ad,getEffectParams:od}=e;ed(`beforeInit`,()=>{if($.params.effect!==t)return;$.classNames.push(`${$.params.containerModifierClass}${t}`),id&&id()&&$.classNames.push(`${$.params.containerModifierClass}3d`);let e=rd?rd():{};Object.assign($.params,e),Object.assign($.originalParams,e)}),ed(`setTranslate _virtualUpdated`,()=>{$.params.effect===t&&td()}),ed(`setTransition`,(e,ed)=>{$.params.effect===t&&nd(ed)}),ed(`transitionEnd`,()=>{if($.params.effect===t&&ad){if(!od||!od().slideShadows)return;$.slides.forEach(e=>{e.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach(e=>e.remove())}),ad()}});let sd;ed(`virtualUpdate`,()=>{$.params.effect===t&&($.slides.length||(sd=!0),requestAnimationFrame(()=>{sd&&$.slides&&$.slides.length&&(td(),sd=!1)}))})}function effectTarget(e,t){let $=getSlideTransformEl(t);return $!==t&&($.style.backfaceVisibility=`hidden`,$.style[`-webkit-backface-visibility`]=`hidden`),$}function effectVirtualTransitionEnd(e){let{swiper:t,duration:$,transformElements:ed,allSlides:td}=e,{activeIndex:nd}=t,rd=e=>e.parentElement?e.parentElement:t.slides.find(t=>t.shadowRoot&&t.shadowRoot===e.parentNode);if(t.params.virtualTranslate&&$!==0){let e=!1,$;$=td?ed:ed.filter(e=>{let $=e.classList.contains(`swiper-slide-transform`)?rd(e):e;return t.getSlideIndex($)===nd}),$.forEach($=>{elementTransitionEnd($,()=>{if(e||!t||t.destroyed)return;e=!0,t.animating=!1;let $=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0});
vendor: 1,075 bytes, line 275
275t.wrapperEl.dispatchEvent($)})})}}function EffectFade(e){let{swiper:t,extendParams:$,on:ed}=e;$({fadeEffect:{crossFade:!1}}),effectInit({effect:`fade`,swiper:t,on:ed,setTranslate:()=>{let{slides:e}=t,$=t.params.fadeEffect;for(let ed=0;ed<e.length;ed+=1){let e=t.slides[ed],td=-e.swiperSlideOffset;t.params.virtualTranslate||(td-=t.translate);let nd=0;t.isHorizontal()||(nd=td,td=0);let rd=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),id=effectTarget($,e);id.style.opacity=rd,id.style.transform=`translate3d(${td}px, ${nd}px, 0px)`}},setTransition:e=>{let $=t.slides.map(e=>getSlideTransformEl(e));$.forEach(t=>{t.style.transitionDuration=`${e}ms`}),effectVirtualTransitionEnd({swiper:t,duration:e,transformElements:$,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function EffectCube(e){let{swiper:t,extendParams:$,on:ed}=e;$({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});let td=(e,t,$)=>
275{let ed=$?e.querySelector(`.swiper-slide-shadow-left`):e.querySelector(`.swiper-slide-shadow-top`),td=$?e.querySelector(`.swiper-slide-shadow-right`):e.querySelector(`.swiper-slide-shadow-bottom`);ed||(ed=createElement$1(`div`,`swiper-slide-shadow-cube swiper-slide-shadow-${$?`left`:`top`}`.split(` `)),e.append(ed)),td||(td=createElement$1(`div`,`swiper-slide-shadow-cube swiper-slide-shadow-${$?`right`:`bottom`}`.split(` `)),e.append(td)),ed&&(ed.style.opacity=Math.max(-t,0)),td&&(td.style.opacity=Math.max(t,0))};effectInit({effect:`cube`,swiper:t,on:ed,setTranslate:()=>{let{el:e,wrapperEl:$,slides:ed,width:nd,height:rd,rtlTranslate:id,size:ad,browser:od}=t,sd=getRotateFix(t),cd=t.params.cubeEffect,ld=t.isHorizontal(),ud=t.virtual&&t.params.virtual.enabled,dd=0,fd;cd.shadow&&(ld?(fd=t.wrapperEl.querySelector(`.swiper-cube-shadow`),fd||(fd=createElement$1(`div`,`swiper-cube-shadow`),t.wrapperEl.append(fd)),fd.style.height=`${nd}px`):(fd=e.querySelector(`.swiper-cube-shadow`),fd||(fd=createElement$1(`div`,`swiper-cube-shadow`),e.append(fd))));for(let e=0;e<ed.length;e+=1){let t=ed[e],$=e;ud&&($=parseInt(t.getAttribute(`data-swiper-slide-index`),10));let nd=$*90,rd=Math.floor(nd/360);id&&(nd=-nd,rd=Math.floor(-nd/360));let od=Math.max(Math.min(t.progress,1),-1),fd=0,pd=0,md=0;$%4==0?(fd=-rd*4*ad,md=0):($-1)%4==0?(fd=0,md=-rd*4*ad):($-2)%4==0?(fd=ad+rd*4*ad,md=ad):($-3)%4==0&&(fd=-ad,md=3*ad+ad*4*rd),id&&(fd=-fd),ld||(pd=fd,fd=0);let hd=`rotateX(${sd(ld?0:-nd)}deg) rotateY(${sd(ld?nd:0)}deg) translate3d(${fd}px, ${pd}px, ${md}px)`;od<=1&&od>-1&&(dd=$*90+od*90,id&&(dd=-$*90-od*90)),t.style.transform=hd,cd.slideShadows&&td(t,od,ld)}if($.style.transformOrigin=`50% 50% -${ad/2}px`,$.style[`-webkit-transform-origin`]=`50% 50% -${ad/2}px`,cd.shadow)if(ld)fd.style.transform=`translate3d(0px, ${nd/2+cd.shadowOffset}px, ${-nd/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${cd.shadowScale})`;else{let e=Math.abs(dd)-Math.floor(Math.abs(dd)/90)*90,t=1.5-(Math.sin(e*2*Math.PI/360)/2+Math.cos(e*2*Math.PI/360)/2),$=cd.shadowScale,ed=cd.shadowScale/t,td=cd.shadowOffset;fd.style.transform=`scale3d(${$}, 1, ${ed}) translate3d(0px, ${rd/2+td}px, ${-rd/2/ed}px) rotateX(-89.99deg)`}let pd=(od.isSafari||od.isWebView)&&od.needPerspectiveFix?-ad/2:0;$.style.transform=`translate3d(0px,0,${pd}px) rotateX(${sd(t.isHorizontal()?0:dd)}deg) rotateY(${sd(t.isHorizontal()?-dd:0)}deg)`,$.style.setProperty(`--swiper-cube-translate-z`,`${pd}px`)},setTransition:e=>{let{el:$,slides:ed}=t;if(ed.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach(t=>{t.style.transitionDuration=`${e}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){let t=$.querySelector(`.swiper-cube-shadow`);t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{let e=t.isHorizontal();t.slides.forEach(t=>{td(t,Math.max(Math.min(t.progress,1),-1),e)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function createShadow(e,t,$){let ed=`swiper-slide-shadow${$?`-${$}`:``}${e?` swiper-slide-shadow-${e}`:``}`,td=getSlideTransformEl(t),nd=td.querySelector(`.${ed.split(` `).join(`.`)}`);return nd||(nd=createElement$1(`div`,ed.split(` `)),td.append(nd)),nd}function EffectFlip(e){let{swiper:t,extendParams:$,on:ed}=e;$({flipEffect:{slideShadows:!0,limitRotation:!0}});let td=(e,$)=>{let ed=t.isHorizontal()?e.querySelector(`.swiper-slide-shadow-left`):e.querySelector(`.swiper-slide-shadow-top`),td=t.isHorizontal()?e.querySelector(`.swiper-slide-shadow-right`):e.querySelector(`.swiper-slide-shadow-bottom`);ed||=createShadow(`flip`,e,t.isHorizontal()?`left`:`top`),td||=createShadow(`flip`,e,t.isHorizontal()?`right`:`bottom`),ed&&(ed.style.opacity=Math.max(-$,0)),td&&(td.style.opacity=Math.max($,0))};effectInit({effect:`flip`,swiper:t,on:ed,setTranslate:()=>{let{slides:e,rtlTranslate:$}=t,ed=t.params.flipEffect,nd=getRotateFix(t);for(let rd=0;rd<e.length;rd+=1){let id=e[rd],ad=id.progress;t.params.flipEffect.limitRotation&&(ad=Math.max(Math.min(id.progress,
2751),-1));let od=id.swiperSlideOffset,sd=-180*ad,cd=0,ld=t.params.cssMode?-od-t.translate:-od,ud=0;t.isHorizontal()?$&&(sd=-sd):(ud=ld,ld=0,cd=-sd,sd=0),id.style.zIndex=-Math.abs(Math.round(ad))+e.length,ed.slideShadows&&td(id,ad);let dd=`translate3d(${ld}px, ${ud}px, 0px) rotateX(${nd(cd)}deg) rotateY(${nd(sd)}deg)`,fd=effectTarget(ed,id);fd.style.transform=dd}},setTransition:e=>{let $=t.slides.map(e=>getSlideTransformEl(e));$.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach(t=>{t.style.transitionDuration=`${e}ms`})}),effectVirtualTransitionEnd({swiper:t,duration:e,transformElements:$})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(e=>{let $=e.progress;t.params.flipEffect.limitRotation&&($=Math.max(Math.min(e.progress,1),-1)),td(e,$)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function EffectCoverflow(e){let{swiper:t,extendParams:$,on:ed}=e;$({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),effectInit({effect:`coverflow`,swiper:t,on:ed,setTranslate:()=>{let{width:e,height:$,slides:ed,slidesSizesGrid:td}=t,nd=t.params.coverflowEffect,rd=t.isHorizontal(),id=t.translate,ad=rd?-id+e/2:-id+$/2,od=rd?nd.rotate:-nd.rotate,sd=nd.depth,cd=getRotateFix(t);for(let e=0,t=ed.length;e<t;e+=1){let t=ed[e],$=td[e],id=(ad-t.swiperSlideOffset-$/2)/$,ld=typeof nd.modifier==`function`?nd.modifier(id):id*nd.modifier,ud=rd?od*ld:0,dd=rd?0:od*ld,fd=-sd*Math.abs(ld),pd=nd.stretch;typeof pd==`string`&&pd.indexOf(`%`)!==-1&&(pd=parseFloat(nd.stretch)/100*$);let md=rd?0:pd*ld,hd=rd?pd*ld:0,gd=1-(1-nd.scale)*Math.abs(ld);Math.abs(hd)<.001&&(hd=0),Math.abs(md)<.001&&(md=0),Math.abs(fd)<.001&&(fd=0),Math.abs(ud)<.001&&(ud=0),Math.abs(dd)<.001&&(dd=0),Math.abs(gd)<.001&&(gd=0);let _d=`translate3d(${hd}px,${md}px,${fd}
275px) rotateX(${cd(dd)}deg) rotateY(${cd(ud)}deg) scale(${gd})`,vd=effectTarget(nd,t);if(vd.style.transform=_d,t.style.zIndex=-Math.abs(Math.round(ld))+1,nd.slideShadows){let e=rd?t.querySelector(`.swiper-slide-shadow-left`):t.querySelector(`.swiper-slide-shadow-top`),$=rd?t.querySelector(`.swiper-slide-shadow-right`):t.querySelector(`.swiper-slide-shadow-bottom`);e||=createShadow(`coverflow`,t,rd?`left`:`top`),$||=createShadow(`coverflow`,t,rd?`right`:`bottom`),e&&(e.style.opacity=ld>0?ld:0),$&&($.style.opacity=-ld>0?-ld:0)}}},setTransition:e=>{t.slides.map(e=>getSlideTransformEl(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function EffectCreative(e){let{swiper:t,extendParams:$,on:ed}=e;$({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});let td=e=>typeof e==`string`?e:`${e}px`;effectInit({effect:`creative`,swiper:t,on:ed,setTranslate:()=>{let{slides:e,wrapperEl:$,slidesSizesGrid:ed}=t,nd=t.params.creativeEffect,{progressMultiplier:rd}=nd,id=t.params.centeredSlides,ad=getRotateFix(t);if(id){let e=ed[0]/2-t.params.slidesOffsetBefore||0;$.style.transform=`translateX(calc(50% - ${e}px))`}for(let $=0;$<e.length;$+=1){let ed=e[$],od=ed.progress,sd=Math.min(Math.max(ed.progress,-nd.limitProgress),nd.limitProgress),cd=sd;id||(cd=Math.min(Math.max(ed.originalProgress,-nd.limitProgress),nd.limitProgress));let ld=ed.swiperSlideOffset,ud=[t.params.cssMode?-ld-t.translate:-ld,0,0],dd=[0,0,0],fd=!1;t.isHorizontal()||(ud[1]=ud[0],ud[0]=0);let pd={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};sd<0?(pd=nd.next,fd=!0):sd>0&&(pd=nd.prev,fd=!0),ud.forEach((e,t)=>{ud[t]=`calc(${e}px + (${td(pd.translate[t])} * ${Math.abs(sd*rd)}))`}),dd.forEach((e,t)=>{dd[t]=pd.rotate[t]*Math.abs(sd*rd)}),ed.style.zIndex=-Math.abs(Math.round(od))+e.length;let md=ud.join(`, `),hd=`rotateX(${ad(dd[0])}deg) rotateY(${ad(dd[1])}deg) rotateZ(${ad(dd[2])}deg)`,gd=cd<0?`scale(${1+(1-pd.scale)*cd*rd})`:`scale(${1-(1-pd.scale)*cd*rd})`,_d=cd<0?1+(1-pd.opacity)*cd*rd:1-(1-pd.opacity)*cd*rd,vd=`translate3d(${md}) ${hd} ${gd}`;if(fd&&pd.shadow||!fd){let e=ed.querySelector(`.swiper-slide-shadow`);if(!e&&pd.shadow&&(e=createShadow(`creative`,ed)),e){let t=nd.shadowPerProgress?sd*(1/nd.limitProgress):sd;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}let yd=effectTarget(nd,ed);yd.style.transform=vd,yd.style.opacity=_d,pd.origin&&(yd.style.transformOrigin=pd.origin)}},setTransition:e=>{let $=t.slides.map(e=>getSlideTransformEl(e));$.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow`).forEach(t=>{t.style.transitionDuration=`${e}ms`})}),effectVirtualTransitionEnd({swiper:t,duration:e,transformElements:$,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}function EffectCards(e){let{swiper:t,extendParams:$,on:ed}=e;$({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),effectInit({effect:`cards`,swiper:t,on:ed,setTranslate:()=>{let{slides:e,activeIndex:$,rtlTranslate:ed}=t,td=t.params.cardsEffect,{startTranslate:nd,isTouched:rd}=t.touchEventsData,id=ed?-t.translate:t.translate;for(let ad=0;ad<e.length;ad+=1){let od=e[ad],sd=od.progress,cd=Math.min(Math.max(sd,-4),4),ld=od.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(ld-=e[0].swiperSlideOffset);let ud=t.params.cssMode?-ld-t.translate:-ld,dd=0,fd=-100*Math.abs(cd),pd=1,md=-td.perSlideRotate*cd,hd=td.perSlideOffset-Math.abs(cd)*.75,gd=t.virtual&&t.params.virtual.enabled?t.virtual.from+ad:ad,_d=(gd===$||gd===$-1)&&cd>0&&cd<1&&(rd||t.params.cssMode)&&id<nd,vd=(gd===$||gd===$+1)&&cd<0&&cd>-1&&(rd||t.params.cssMode)&&id>nd;if(_d||vd){let e=(1-Math.abs((Math.abs(cd)-.5)/.5))**.5;md+=-28*cd*e,pd+=-.5*e,hd+=96*e,dd=`${-25*e*Math.abs(cd)}%`}if(ud=cd<0?`calc(${ud}px ${ed?`-`:`+`} (${hd*Math.abs(cd)}%))`:cd>0?`calc(${ud}px ${ed?`-`:`+`} (-${hd*Math.abs(cd)}%))`:`${ud}px`,!t.isHorizontal()){let e=dd;dd=ud,ud=e}let yd=cd<0?`${1+(1-pd)*cd}`:`${1-(1-pd)*cd}`,bd=` 276 translate3d(${ud}, ${dd}, ${fd}px) 277 rotateZ(${td.rotate?ed?-md:md:0}deg) 278 scale(${yd}) 279 `;if(td.slideShadows){let e=od.querySelector(`.swiper-slide-shadow`);e||=createShadow(`cards`,od),e&&(e.style.opacity=Math.min(Math.max((Math.abs(cd)-.5)/.5,0),1))}od.style.zIndex=-Math.abs(Math.round(sd))+e.length;let xd=effectTarget(td,od);xd.style.transform=bd}},setTransition:e=>{let $=t.slides.map(e=>getSlideTransformEl(e));$.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow`).forEach(t=>{t.style.transitionDuration=`${e}ms`})}),effectVirtualTransitionEnd({swiper:t,duration:e,transformElements:$})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}var modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,Effe
279ctCoverflow,EffectCreative,EffectCards];Swiper.use(modules);var DEFAULT_SELECTOR$4=`.js-gallery`,gallery_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$4,this.init()}init(){let e=this.element[0].querySelector(`.js-gallery-thumbs`);new Swiper(this.element[0].querySelector(`.js-gallery-top`),{loop:!0,autoplay:{delay:4e3,disableOnInteraction:!0,pauseOnMouseEnter:!0},autoHeight:!0,thumbs:{swiper:new Swiper(e,{loop:!1,spaceBetween:16,slidesPerView:`auto`,watchSlidesVisibility:!0,watchSlidesProgress:!0,freeMode:!0})},navigation:{nextEl:`.swiper-button-next`,prevEl:`.swiper-button-prev`}})}},DEFAULT_SELECTOR$3=`.js-tabs`,tabs_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$3,this.init()}init(){let e=this.element[0].querySelectorAll(`.js-tabs-trigger`),t=this.element[0].querySelectorAll(`.js-tabs-item`);e.forEach(($,ed)=>{$.addEventListener(`click`,()=>{e.forEach(e=>e.classList.remove(`is-active`)),t.forEach(e=>e.classList.remove(`is-active`)),$.classList.add(`is-active`),t[ed].classList.add(`is-active`)})})}},$head=(0,import_jquery.default)(`head`),$body=(0,import_jquery.default)(`body`),$cookiesNotice=(0,import_jquery.default)(`.js-cookies-notice`),$tagmanagerCode=$cookiesNotice.data(`tagmanagerCode`),$analyticsCode=$cookiesNotice.data(`analyticsCode`),$site=$cookiesNotice.data(`site`),$gdpr=$cookiesNotice.data(`gdpr`),enableTracking=!import_js_cookie.default.get(`cookies_gdpr_${$site}`)&&!$gdpr||import_js_cookie.default.get(`cookies_gdpr_${$site}`)===`accept`;enableTracking?($head.append(` 280 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 281 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 282 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
283 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 284 })(window,document,'script','dataLayer','${$tagmanagerCode}');<\/script> 285 `),$body.prepend(` 286 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=${$tagmanagerCode}" 287 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 288 `)):(window.ga&&window.ga(`remove`),import_js_cookie.default.remove($analyticsCode.replace(`G-`,`_ga_`),{path:`/`,domain:Document.domain}),import_js_cookie.default.remove(`_ga`,{path:`/`,domain:Document.domain}),import_js_cookie.default.remove(`_gid`,{path:`/`,domain:Document.domain}),import_js_cookie.default.remove(`_gat`,{path:`/`,domain:Document.domain})),$head.append(` 289 <script async src="https://www.googletagmanager.com/gtag/js?id=${$analyticsCode}"><\/script> 290 <script> 291 window['ga-disable-${$analyticsCode}'] = ${!enableTracking}; 292 293 window.dataLayer = window.dataLayer || []; 294 function gtag(){dataLayer.push(arguments);} 295 gtag('js', new Date()); 296 297 gtag('config', '${$analyticsCode}'); 298 <\/script> 299`),import_js_cookie.default.get(`cookies_gdpr_${$site}`)||($cookiesNotice.slideDown().css(`display`,`block`),$cookiesNotice.find(`.js-cookies-notice-accept`).on(`click`,()=>{import_js_cookie.default.set(`cookies_gdpr_${$site}`,`accept`,{expires:365}),$gdpr?window.location.reload():$cookiesNotice.slideUp()}),$cookiesNotice.find(`.js-cookies-notice-refuse`).on(`click`,()=>{import_js_cookie.default.set(`cookies_gdpr_${$site}`,`refuse`,{expires:365}),$gdpr?$cookiesNotice.slideUp():window.location.reload()}));var parentClass=`.js-mega-menu-parent`,searchTrigger=document.querySelector(`.js-search-trigger`),navTrigger$1=document.querySelector(`.js-nav-trigger`),html$2=document.querySelector(`html`),parentElems=document.querySelectorAll(parentClass),$header=(0,import_jquery.default)(`.header`),showHtmlMaskClass=`show-html-mask`,activeClass=`is-visible`,headerClass=`is-hover`,mq$1=window.matchMedia(`(min-width: 1024px)`),timeout=300,hover=!0,timer;searchTrigger&&searchTrigger.addEventListener(`click`,e=>{let t=(0,import_jquery.default)(`.js-mega-menu-click`);t.hasClass(activeClass)||setTimeout(()=>{t.addClass(activeClass),$header.addClass(headerClass),html$2.classList.add(showHtmlMaskClass),hover=!1},timeout/3),e.preventDefault()}
299),parentElems.forEach(e=>{let t=(0,import_jquery.default)(e),$=e.querySelectorAll(`.js-mega-menu-child`);navTrigger$1.addEventListener(`click`,e=>{t.removeClass(activeClass)}),t.hasClass(`js-mega-menu-click`)?(t.find(`.js-mega-menu-trigger`).click(e=>{t.toggleClass(activeClass),$header.toggleClass(headerClass),hover=!hover,mq$1.matches&&html$2.classList.toggle(showHtmlMaskClass),e.stopPropagation()}),document.addEventListener(`click`,e=>{!(0,import_jquery.default)(e.target).parents(parentClass).length&&mq$1.matches&&(t.removeClass(activeClass),$header.removeClass(headerClass),html$2.classList.remove(showHtmlMaskClass),hover=!0,e.stopPropagation())})):t.hover(()=>{hover&&(timer=setTimeout(()=>{t.addClass(activeClass),$header.addClass(headerClass),e.dataset.hideHtmlMask||html$2.classList.add(showHtmlMaskClass)},timeout))},()=>{hover&&(clearTimeout(timer),timer=setTimeout(()=>{t.removeClass(activeClass),$header.removeClass(headerClass),html$2.classList.remove(showHtmlMaskClass)},timeout))}),$.forEach(e=>{(0,import_jquery.default)(e).click(()=>{t.removeClass(activeClass),$header.removeClass(headerClass),html$2.classList.remove(showHtmlMaskClass)})})});var html$1=document.querySelector(`html`),navScroll=document.querySelector(`.js-nav-scroll`),navAgentPortal=document.querySelector(`.js-nav-agent-portal`),navTrigger=document.querySelector(`.js-nav-trigger`),modalTriggers=document.querySelectorAll(`.js-modal-trigger`),htmlMask=document.querySelector(`.js-html-mask`),navMobile=document.querySelector(`.js-nav-mobile`),mobileMenuToggles=document.querySelectorAll(`.js-mobile-menu-toggle`),mq=window.matchMedia(`(min-width: 1024px)`);navTrigger&&navTrigger.addEventListener(`click`,e=>{handleNavToggle(e)}),htmlMask&&htmlMask.addEventListener(`click`,e=>{handleNavToggle(e)}),modalTriggers.forEach(e=>{e.addEventListener(`click`,e=>{navTrigger.classList.remove(`is-toggled`),navScroll.classList.remove(`is-toggled`),navMobile.classList.remove(`is-visible`)})}),mobileMenuToggles.forEach(e=>{e.addEventListener(`click`,t=>{e.classList.toggle(`is-toggled`)})}),mq.matches&&window.addEventListener(`scroll`,handleNavScroll),mq.addEventListener(`change`,e=>{navMobile.classList.contains(`is-visible`)&&(html$1.classList.remove(`show-html-mask`),navTrigger&&navTrigger.classList.remove(`is-toggled`),navMobile&&navMobile.classList.remove(`is-visible`)),e.matches?window.addEventListener(`scroll`,handleNavScroll):(navScroll&&navScroll.classList.remove(`folded`),navAgentPortal&&navAgentPortal.classList.remove(`folded`),window.removeEventListener(`scroll`,handleNavScroll))});function handleNavToggle(e){mq.matches||(html$1.classList.toggle(`show-html-mask`),navTrigger.classList.toggle(`is-toggled`),navScroll.classList.toggle(`is-toggled`),navMobile.classList.toggle(`is-visible`),e.preventDefault(),e.stopPropagation())}function handleNavScroll(){window.pageYOffset>0?(window.pageYOffset,navScroll&&navScroll.classList.add(`folded`),html$1.classList.add(`folded`),navAgentPortal&&navAgentPortal.classList.add(`folded`)):(navScroll&&navScroll.classList.remove(`folded`),html$1.classList.remove(`folded`),navAgentPortal&&navAgentPortal.classList.remove(`folded`))}document.querySelectorAll(`.js-fit`).forEach(e=>{let t=e.querySelector(`.js-fit-spacer`),$=e.querySelector(`.js-fit-content`),ed=e.querySelector(`.js-fit-observer`);new ResizeObserver(()=>{$&&ed&&(ed.offsetHeight+96<t.offsetHeight?($.classList.add(`is-absolute`),t.classList.remove(`is-absolute`)):($.classList.remove(`is-absolute`),t.classList.add(`is-absolute`)))}).observe(t)});var modals=document.querySelectorAll(`.js-modal`),triggers=document.querySelectorAll(`.js-modal-trigger`),html=document.querySelector(`html`);modals.forEach(e=>{let t=e.querySelector(`.js-modal-close`),$=e.querySelector(`.js-modal-open-in-new`),ed=e.querySelector(`.js-modal-content`);if(triggers&&triggers.length){triggers.forEach(ed=>{ed.dataset.id===e.id&&ed.addEventListener(`click`,ed=>
299{e.classList.add(`is-visible`),html.classList.add(`show-html-mask`),ed.preventDefault(),$&&(td(),document.addEventListener(`swiper-transition-end`,()=>{td()})),t.addEventListener(`click`,rd),e.addEventListener(`click`,nd)})});function td(){let t=e.querySelector(`.swiper-slide-active`).dataset.media;t?($.style.display=`inline-flex`,$.href=t):$.style.display=`none`}function nd(e){e.composedPath().includes(ed)||rd()}function rd(){e.classList.remove(`is-visible`),html.classList.remove(`show-html-mask`),t.removeEventListener(`click`,rd),e.removeEventListener(`click`,nd),document.removeEventListener(`carousel-slide-change`,td),document.dispatchEvent(new Event(`video-pause`))}}});var require_get_size=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define($):typeof t==`object`&&t.exports?t.exports=$():e.getSize=$()})(window,function(){function e(e){var t=parseFloat(e);return e.indexOf(`%`)==-1&&!isNaN(t)&&t}function t(){}var $=typeof console>`u`?t:function(e){console.error(e)},ed=[`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`borderBottomWidth`],td=ed.length;function nd(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<td;t++){var $=ed[t];e[$]=0}return e}function rd(e){var t=getComputedStyle(e);return t||$(`Style returned `+t+`. Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1`),t}var id=!1,ad;function od(){if(!id){id=!0;var t=document.createElement(`div`);t.style.width=`200px`,t.style.padding=`1px 2px 3px 4px`,t.style.borderStyle=`solid`,t.style.borderWidth=`1px 2px 3px 4px`,t.style.boxSizing=`border-box`;var $=document.body||document.documentElement;$.appendChild(t);var ed=rd(t);ad=Math.round(e(ed.width))==200,sd.isBoxSizeOuter=ad,$.removeChild(t)}}function sd(t){if(od(),typeof t==`string`&&(t=document.querySelector(t)),!(!t||typeof t!=`object`||!t.nodeType)){var $=rd(t);if($.display==`none`)return nd();var id={};id.width=t.offsetWidth,id.height=t.offsetHeight;for(var sd=id.isBorderBox=$.boxSizing==`border-box`,cd=0;cd<td;cd++){var ld=ed[cd],ud=$[ld],dd=parseFloat(ud);id[ld]=isNaN(dd)?0:dd}var fd=id.paddingLeft+id.paddingRight,pd=id.paddingTop+id.paddingBottom,md=id.marginLeft+id.marginRight,hd=id.marginTop+id.marginBottom,gd=id.borderLeftWidth+id.borderRightWidth,_d=id.borderTopWidth+id.borderBottomWidth,vd=sd&&ad,yd=e($.width);yd!==!1&&(id.width=yd+(vd?0:fd+gd));var bd=e($.height);return bd!==!1&&(id.height=bd+(vd?0:pd+_d)),id.innerWidth=id.width-(fd+gd),id.innerHeight=id.height-(pd+_d),id.outerWidth=id.width+md,id.outerHeight=id.height+hd,id}}return sd})})),require_ev_emitter=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define($):typeof t==`object`&&t.exports?t.exports=$():e.EvEmitter=$()})(typeof window<`u`?window:e,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(!(!e||!t)){var $=this._events=this._events||{},ed=$[e]=$[e]||[];return ed.indexOf(t)==-1&&ed.push(t),this}},t.once=function(e,t){if(!(!e||!t)){this.on(e,t);var $=this._onceEvents=this._onceEvents||{},ed=$[e]=$[e]||{};return ed[t]=!0,this}},t.off=function(e,t){var $=this._events&&this._events[e];if(!(!$||!$.length)){var ed=$.indexOf(t);return ed!=-1&&$.splice(ed,1),this}},t.emitEvent=function(e,t){var $=this._events&&this._events[e];if(!(!$||!$.length)){$=$.slice(0),t||=[];for(var ed=this._onceEvents&&this._onceEvents[e],td=0;td<$.length;td++){var nd=$[td];ed&&ed[nd]&&(this.off(e,nd),delete ed[nd]),nd.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})})),require_matches_selector=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define($):typeof t==`object`&&t.exports?t.exports=$():e.matchesSelector=$()})(window,function(){var e=(function(){var e=window.Element.prototype;if(e.matches)return`matches`;if(e.matchesSelector)return`matchesSelector`;for(var t=[`webkit`,`moz`,`ms`,`o`],$=0;$<t.length;$++){var ed=t[$]+`MatchesSelector`;if(e[ed])return ed}})();return function(t,$){return t[e]($)}})})),require_utils$4=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`desandro-matches-selector/matches-selector`],function(t){return $(e,t)}):typeof t==`object`&&t.exports?t.exports=$(e,require_matches_selector()):e.fizzyUIUtils=$(e,e.matchesSelector)})(window,function(e,t){var $={};$.extend=function(e,t){for(var $ in t)e[$]=t[$];return e},$.modulo=function(e,t){return(e%t+t)%t};var ed=Array.prototype.slice;$.makeArray=function(e){return Array.isArray(e)?e:e==null?[]:typeof e==`object`&&typeof e.length==`number`?ed.call(e):[e]},$.removeFrom=function(e,t){var $=e.indexOf(t);$!=-1&&e.splice($,1)},$.getParent=function(e,$){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,$))return e},$.getQueryElement=function(e){return typeof e==`string`?document.querySelector(e):e},$.handleEvent=function(e){var t=`on`+e.type;this[t]&&this[t](e)},$.filterFindElements=function(e,ed){e=$.makeArray(e);var td=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!ed){td.push(e);return}t(e,ed)&&td.push(e);for(var $=e.querySelectorAll(ed),nd=0;nd<$.length;nd++)td.push($[nd])}}),td},$.debounceMethod=function(e,t,$){$||=100;var ed=e.prototype[t],td=t+`Timeout`;e.prototype[t]=function(){var e=this[td];clearTimeout(e);var t=arguments,nd=this;this[td]=setTimeout(function(){ed.apply(nd,t),delete nd[td]},$)}},$.docReady=function(e){var t=document.readyState;t==`complete`||t==`interactive`?setTimeout(e):document.addEventListener(`DOMContentLoaded`,e)},$.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,$){return t+`-`+$}).toLowerCase()};var td=e.console;return $.htmlInit=function(t,ed){$.docReady(function(){var nd=$.toDashed(ed),rd=`data-`+nd,id=document.querySelectorAll(`[`+rd+`]`),ad=document.querySelectorAll(`.js-`+nd),od=$.makeArray(id).concat($.makeArray(ad)),sd=rd+`-options`,cd=e.jQuery;
299od.forEach(function(e){var $=e.getAttribute(rd)||e.getAttribute(sd),nd;try{nd=$&&JSON.parse($)}catch(t){td&&td.error(`Error parsing `+rd+` on `+e.className+`: `+t);return}var id=new t(e,nd);cd&&cd.data(e,ed,id)})})},$})})),require_item$1=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`ev-emitter/ev-emitter`,`get-size/get-size`],$):typeof t==`object`&&t.exports?t.exports=$(require_ev_emitter(),require_get_size()):(e.Outlayer={},e.Outlayer.Item=$(e.EvEmitter,e.getSize))})(window,function(e,t){function $(e){for(var t in e)return!1;return!0}var ed=document.documentElement.style,td=typeof ed.transition==`string`?`transition`:`WebkitTransition`,nd=typeof ed.transform==`string`?`transform`:`WebkitTransform`,rd={WebkitTransition:`webkitTransitionEnd`,transition:`transitionend`}[td],id={transform:nd,transition:td,transitionDuration:td+`Duration`,transitionProperty:td+`Property`,transitionDelay:td+`Delay`};function ad(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var od=ad.prototype=Object.create(e.prototype);od.constructor=ad,od._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:`absolute`})},od.handleEvent=function(e){var t=`on`+e.type;this[t]&&this[t](e)},od.getSize=function(){this.size=t(this.element)},od.css=function(e){var t=this.element.style;for(var $ in e){var ed=id[$]||$;t[ed]=e[$]}},od.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption(`originLeft`),$=this.layout._getOption(`originTop`),ed=e[t?`left`:`right`],td=e[$?`top`:`bottom`],nd=parseFloat(ed),rd=parseFloat(td),id=this.layout.size;ed.indexOf(`%`)!=-1&&(nd=nd/100*id.width),td.indexOf(`%`)!=-1&&(rd=rd/100*id.height),nd=isNaN(nd)?0:nd,rd=isNaN(rd)?0:rd,nd-=t?id.paddingLeft:id.paddingRight,rd-=$?id.paddingTop:id.paddingBottom,this.position.x=nd,this.position.y=rd},od.layoutPosition=function(){var e=this.layout.size,t={},$=this.layout._getOption(`originLeft`),ed=this.layout._getOption(`originTop`),td=$?`paddingLeft`:`paddingRight`,nd=$?`left`:`right`,rd=$?`right`:`left`,id=this.position.x+e[td];t[nd]=this.getXValue(id),t[rd]=``;var ad=ed?`paddingTop`:`paddingBottom`,od=ed?`top`:`bottom`,sd=ed?`bottom`:`top`,cd=this.position.y+e[ad];t[od]=this.getYValue(cd),t[sd]=``,this.css(t),this.emitEvent(`layout`,[this])},od.getXValue=function(e){var t=this.layout._getOption(`horizontal`);return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+`%`:e+`px`},od.getYValue=function(e){var t=this.layout._getOption(`horizontal`);return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+`%`:e+`px`},od._transitionTo=function(e,t){this.getPosition();var $=this.position.x,ed=this.position.y,td=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),td&&!this.isTransitioning){this.layoutPosition();return}var nd=e-$,rd=t-ed,id={};id.transform=this.getTranslate(nd,rd),this.transition({to:id,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},od.getTranslate=function(e,t){var $=this.layout._getOption(`originLeft`),ed=this.layout._getOption(`originTop`);return e=$?e:-e,t=ed?t:-t,`translate3d(`+e+`px, `+t+`px, 0)`},od.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},od.moveTo=od._transitionTo,od.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},od._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},od.transition=function(e){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(e);return}var t=this._transn;for(var $ in e.onTransitionEnd)t.onEnd[$]=e.onTransitionEnd[$];for($ in e.to)t.ingProperties[$]=!0,e.isCleaning&&(t.clean[$]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0};function sd(e){return e.replace(/([A-Z])/g,function(e){return`-`+e.toLowerCase()})}var cd=`opacity,`+sd(nd);od.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e=typeof e==`number`?e+`ms`:e,this.css({transitionProperty:cd,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(rd,this,!1)}},od.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},od.onotransitionend=function(e){this.ontransitionend(e)};var ld={"-webkit-transform":`transform`};od.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,ed=ld[e.propertyName]||e.propertyName;delete t.ingProperties[ed],$(t.ingProperties)&&this.disableTransition(),ed in t.clean&&(this.element.style[e.propertyName]=``,delete t.clean[ed]),ed in t.onEnd&&(t.onEnd[ed].call(this),delete t.onEnd[ed]),this.emitEvent(`transitionEnd`,[this])}},od.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(rd,this,!1),this.isTransitioning=!1},od._removeStyles=function(e){var t={};for(var $ in e)t[$]=``;this.css(t)};var ud={transitionProperty:``,transitionDuration:``,transitionDelay:``};return od.removeTransitionStyles=function(){this.css(ud)},od.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+`ms`},od.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:``}),this.emitEvent(`remove`,[this])},od.remove=function(){if(!td||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once(`transitionEnd`,function(){this.removeElem()}),this.hide()},od.reveal=function(){delete this.isHidden,this.css({display:``});var e=this.layout.options,t={},$=this.getHideRevealTransitionEndProperty(`visibleStyle`);t[$]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},od.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent(`reveal`)},od.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return`opacity`;for(var $ in t)return $},od.hide=function(){this.isHidden=!0,this.css({display:``});var e=this.layout.options,t={},$=this.getHideRevealTransitionEndProperty(`hiddenStyle`);t[$]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},od.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:`none`}),this.emitEvent(`hide`))},od.destroy=function(){this.css({position:``,left:``,right:``,top:``,bottom:``,transition:``,transform:``})},ad})})),require_outlayer=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`ev-emitter/ev-emitter`,`get-size/get-size`,`fizzy-ui-utils/utils`,`./item`],function(t,ed,td,nd){return $(e,t,ed,td,nd)}):typeof t==`object`&&t.exports?t.exports=$(e,require_ev_emitter(),require_get_size(),require_utils$4(),require_item$1()):e.Outlayer=$(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,e.Outlayer.Item)})(window,function(e,t,$,ed,td){var nd=e.console,rd=e.jQuery,id=function(){},ad=0,od={};function sd(e,t){var $=ed.getQueryElement(e);
299if(!$){nd&&nd.error(`Bad element for `+this.constructor.namespace+`: `+($||e));return}this.element=$,rd&&(this.$element=rd(this.element)),this.options=ed.extend({},this.constructor.defaults),this.option(t);var td=++ad;this.element.outlayerGUID=td,od[td]=this,this._create(),this._getOption(`initLayout`)&&this.layout()}sd.namespace=`outlayer`,sd.Item=td,sd.defaults={containerStyle:{position:`relative`},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:`0.4s`,hiddenStyle:{opacity:0,transform:`scale(0.001)`},visibleStyle:{opacity:1,transform:`scale(1)`}};var cd=sd.prototype;ed.extend(cd,t.prototype),cd.option=function(e){ed.extend(this.options,e)},cd._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&this.options[t]!==void 0?this.options[t]:this.options[e]},sd.compatOptions={initLayout:`isInitLayout`,horizontal:`isHorizontal`,layoutInstant:`isLayoutInstant`,originLeft:`isOriginLeft`,originTop:`isOriginTop`,resize:`isResizeBound`,resizeContainer:`isResizingContainer`},cd._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),ed.extend(this.element.style,this.options.containerStyle),this._getOption(`resize`)&&this.bindResize()},cd.reloadItems=function(){this.items=this._itemize(this.element.children)},cd._itemize=function(e){for(var t=this._filterFindItemElements(e),$=this.constructor.Item,ed=[],td=0;td<t.length;td++){var nd=t[td],rd=new $(nd,this);ed.push(rd)}return ed},cd._filterFindItemElements=function(e){return ed.filterFindElements(e,this.options.itemSelector)},cd.getItemElements=function(){return this.items.map(function(e){return e.element})},cd.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption(`layoutInstant`),t=e===void 0?!this._isLayoutInited:e;this.layoutItems(this.items,t),this._isLayoutInited=!0},cd._init=cd.layout,cd._resetLayout=function(){this.getSize()},cd.getSize=function(){this.size=$(this.element)},cd._getMeasurement=function(e,t){var ed=this.options[e],td;ed?(typeof ed==`string`?td=this.element.querySelector(ed):ed instanceof HTMLElement&&(td=ed),this[e]=td?$(td)[t]:ed):this[e]=0},cd.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},cd._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},cd._layoutItems=function(e,t){if(this._emitCompleteOnItems(`layout`,e),!(!e||!e.length)){var $=[];e.forEach(function(e){var ed=this._getItemLayoutPosition(e);ed.item=e,ed.isInstant=t||e.isLayoutInstant,$.push(ed)},this),this._processLayoutQueue($)}},cd._getItemLayoutPosition=function(){return{x:0,y:0}},cd._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},cd.updateStagger=function(){var e=this.options.stagger;if(e==null){this.stagger=0;return}return this.stagger=dd(e),this.stagger},cd._positionItem=function(e,t,$,ed,td){ed?e.goTo(t,$):(e.stagger(td*this.stagger),e.moveTo(t,$))},cd._postLayout=function(){this.resizeContainer()},cd.resizeContainer=function(){if(this._getOption(`resizeContainer`)){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},cd._getContainerSize=id,cd._setContainerMeasure=function(e,t){if(e!==void 0){var $=this.size;$.isBorderBox&&(e+=t?$.paddingLeft+$.paddingRight+$.borderLeftWidth+$.borderRightWidth:$.paddingBottom+$.paddingTop+$.borderTopWidth+$.borderBottomWidth),e=Math.max(e,0),this.element.style[t?`width`:`height`]=e+`px`}},cd._emitCompleteOnItems=function(e,t){var $=this;function ed(){$.dispatchEvent(e+`Complete`,null,[t])}var td=t.length;if(!t||!td){ed();return}var nd=0;function rd(){nd++,nd==td&&ed()}t.forEach(function(t){t.once(e,rd)})},cd.dispatchEvent=function(e,t,$){var ed=t?[t].concat($):$;if(this.emitEvent(e,ed),rd)if(this.$element=this.$element||rd(this.element),t){var td=rd.Event(t);td.type=e,this.$element.trigger(td,$)}else this.$element.trigger(e,$)},cd.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},cd.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},cd.stamp=function(e){e=this._find(e),e&&(this.stamps=this.stamps.
299concat(e),e.forEach(this.ignore,this))},cd.unstamp=function(e){e=this._find(e),e&&e.forEach(function(e){ed.removeFrom(this.stamps,e),this.unignore(e)},this)},cd._find=function(e){if(e)return typeof e==`string`&&(e=this.element.querySelectorAll(e)),e=ed.makeArray(e),e},cd._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},cd._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},cd._manageStamp=id,cd._getElementOffset=function(e){var t=e.getBoundingClientRect(),ed=this._boundingRect,td=$(e);return{left:t.left-ed.left-td.marginLeft,top:t.top-ed.top-td.marginTop,right:ed.right-t.right-td.marginRight,bottom:ed.bottom-t.bottom-td.marginBottom}},cd.handleEvent=ed.handleEvent,cd.bindResize=function(){e.addEventListener(`resize`,this),this.isResizeBound=!0},cd.unbindResize=function(){e.removeEventListener(`resize`,this),this.isResizeBound=!1},cd.onresize=function(){this.resize()},ed.debounceMethod(sd,`onresize`,100),cd.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()}
299,cd.needsResizeLayout=function(){var e=$(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},cd.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},cd.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},cd.prepended=function(e){var t=this._itemize(e);if(t.length){var $=this.items.slice(0);this.items=t.concat($),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems($)}},cd.reveal=function(e){if(this._emitCompleteOnItems(`reveal`,e),!(!e||!e.length)){var t=this.updateStagger();e.forEach(function(e,$){e.stagger($*t),e.reveal()})}},cd.hide=function(e){if(this._emitCompleteOnItems(`hide`,e),!(!e||!e.length)){var t=this.updateStagger();e.forEach(function(e,$){e.stagger($*t),e.hide()})}},cd.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},cd.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},cd.getItem=function(e){for(var t=0;t<this.items.length;t++){var $=this.items[t];if($.element==e)return $}},cd.getItems=function(e){e=ed.makeArray(e);var t=[];return e.forEach(function(e){var $=this.getItem(e);$&&t.push($)},this),t},cd.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems(`remove`,t),!(!t||!t.length)&&t.forEach(function(e){e.remove(),ed.removeFrom(this.items,e)},this)},cd.destroy=function(){var e=this.element.style;e.height=``,e.position=``,e.width=``,this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete od[t],delete this.element.outlayerGUID,rd&&rd.removeData(this.element,this.constructor.namespace)},sd.data=function(e){e=ed.getQueryElement(e);var t=e&&e.outlayerGUID;return t&&od[t]},sd.create=function(e,t){var $=ld(sd);return $.defaults=ed.extend({},sd.defaults),ed.extend($.defaults,t),$.compatOptions=ed.extend({},sd.compatOptions),$.namespace=e,$.data=sd.data,$.Item=ld(td),ed.htmlInit($,e),rd&&rd.bridget&&rd.bridget(e,$),$};function ld(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}var ud={ms:1,s:1e3};function dd(e){if(typeof e==`number`)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),$=t&&t[1],ed=t&&t[2];if(!$.length)return 0;$=parseFloat($);var td=ud[ed]||1;return $*td}return sd.Item=td,sd})})),require_rect=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define($):typeof t==`object`&&t.exports?t.exports=$():(e.Packery=e.Packery||{},e.Packery.Rect=$())})(window,function(){function e(t){for(var $ in e.defaults)this[$]=e.defaults[$];for($ in t)this[$]=t[$]}e.defaults={x:0,y:0,width:0,height:0};var t=e.prototype;return t.contains=function(e){var t=e.width||0,$=e.height||0;return this.x<=e.x&&this.y<=e.y&&this.x+this.width>=e.x+t&&this.y+this.height>=e.y+$},t.overlaps=function(e){var t=this.x+this.width,$=this.y+this.height,ed=e.x+e.width,td=e.y+e.height;return this.x<ed&&t>e.x&&this.y<td&&$>e.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var $=[],ed,td=this.x+this.width,nd=this.y+this.height,rd=t.x+t.width,id=t.y+t.height;return this.y<t.y&&(ed=new e({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),$.push(ed)),td>rd&&(ed=new e({x:rd,y:this.y,width:td-rd,height:this.height}),$.push(ed)),nd>id&&(ed=new e({x:this.x,y:id,width:this.width,height:nd-id}),$.push(ed)),this.x<t.x&&(ed=new e({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),$.push(ed)),$},t.canFit=function(e){return this.width>=e.width&&this.height>=e.height},e})})),require_packer=__commonJSMin(((e,t)=>{(function(e,$){if(typeof define==`function`&&define.amd)define([`./rect`],$);else if(typeof t==`object`&&t.exports)t.exports=$(require_rect());else{var ed=e.Packery=e.Packery||{};ed.Packer=$(ed.Rect)}})(window,function(e){function t(e,t,$){this.width=e||0,this.height=t||0,this.sortDirection=$||`downwardLeftToRight`,this.reset()}var $=t.prototype;$.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=ed[this.sortDirection]||ed.downwardLeftToRight},$.pack=function(e){for(var t=0;t<this.spaces.length;t++){var $=this.spaces[t];if($.canFit(e)){this.placeInSpace(e,$);break}}},$.columnPack=function(e){for(var t=0;t<this.spaces.length;t++){var $=this.spaces[t];if($.x<=e.x&&$.x+$.width>=e.x+e.width&&$.height>=e.height-.01){e.y=$.y,this.placed(e);break}}},$.rowPack=function(e){for(var t=0;t<this.spaces.length;t++){var $=this.spaces[t];if($.y<=e.y&&$.y+$.height>=e.y+e.height&&$.width>=e.width-.01){e.x=$.x,this.placed(e);break}}},$.placeInSpace=function(e,t){e.x=t.x,e.y=t.y,this.placed(e)},$.placed=function(e){for(var t=[],$=0;$<this.spaces.length;$++){var ed=this.spaces[$],td=ed.getMaximalFreeRects(e);td?t.push.apply(t,td):t.push(ed)}this.spaces=t,this.mergeSortSpaces()},$.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},$.addSpace=function(e){this.spaces.push(e),this.mergeSortSpaces()},t.mergeRects=function(e){var t=0,$=e[t];rectLoop:for(;$;){for(var ed=0,td=e[t+ed];td;){if(td==$)ed++;else if(td.contains($)){e.splice(t,1),$=e[t];
299continue rectLoop}else $.contains(td)?e.splice(t+ed,1):ed++;td=e[t+ed]}t++,$=e[t]}return e};var ed={downwardLeftToRight:function(e,t){return e.y-t.y||e.x-t.x},rightwardTopToBottom:function(e,t){return e.x-t.x||e.y-t.y}};return t})})),require_item=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`outlayer/outlayer`,`./rect`],$):typeof t==`object`&&t.exports?t.exports=$(require_outlayer(),require_rect()):e.Packery.Item=$(e.Outlayer,e.Packery.Rect)})(window,function(e,t){var $=typeof document.documentElement.style.transform==`string`?`transform`:`WebkitTransform`,ed=function(){e.Item.apply(this,arguments)},td=ed.prototype=Object.create(e.Item.prototype),nd=td._create;td._create=function(){nd.call(this),this.rect=new t};var rd=td.moveTo;return td.moveTo=function(e,t){var $=Math.abs(this.position.x-e),ed=Math.abs(this.position.y-t);if(this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&$<1&&ed<1){this.goTo(e,t);return}rd.apply(this,arguments)},td.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&$&&(this.element.style[$]=`none`),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},td.disablePlacing=function(){this.isPlacing=!1},td.removeElem=function(){var e=this.element.parentNode;e&&e.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent(`remove`,[this])},td.showDropPlaceholder=function(){var e=this.dropPlaceholder;e||(e=this.dropPlaceholder=document.createElement(`div`),e.className=`packery-drop-placeholder`,e.style.position=`absolute`),e.style.width=this.size.width+`px`,e.style.height=this.size.height+`px`,this.positionDropPlaceholder(),this.layout.element.appendChild(e)},td.positionDropPlaceholder=function(){this.dropPlaceholder.style[$]=`translate(`+this.rect.x+`px, `+this.rect.y+`px)`},td.hideDropPlaceholder=function(){var e=this.dropPlaceholder.parentNode;e&&e.removeChild(this.dropPlaceholder)},ed})})),require_packery=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`get-size/get-size`,`outlayer/outlayer`,`./rect`,`./packer`,`./item`],$):typeof t==`object`&&t.exports?t.exports=$(require_get_size(),require_outlayer(),require_rect(),require_packer(),require_item()):e.Packery=$(e.getSize,e.Outlayer,e.Packery.Rect,e.Packery.Packer,e.Packery.Item)})(window,function(e,t,$,ed,td){$.prototype.canFit=function(e){return this.width>=e.width-1&&this.height>=e.height-1};var nd=t.create(`packery`);nd.Item=td;var rd=nd.prototype;rd._create=function(){t.prototype._create.call(this),this.packer=new ed,this.shiftPacker=new ed,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,$){$&&e.itemDragStart(t.currentTarget)},drag:function(t,$){$&&e.itemDragMove(t.currentTarget,$.position.left,$.position.top)},stop:function(t,$){$&&e.itemDragEnd(t.currentTarget)}}},rd._resetLayout=function(){this.getSize(),this._getMeasurements();var e,t,$;this._getOption(`horizontal`)?(e=1/0,t=this.size.innerHeight+this.gutter,$=`rightwardTopToBottom`):(e=this.size.innerWidth+this.gutter,t=1/0,$=`downwardLeftToRight`),this.packer.width=this.shiftPacker.width=e,this.packer.height=this.shiftPacker.height=t,this.packer.sortDirection=this.shiftPacker.sortDirection=$,this.packer.reset(),this.maxY=0,this.maxX=0},rd._getMeasurements=function(){this._getMeasurement(`columnWidth`,`width`),this._getMeasurement(`rowHeight`,`height`),this._getMeasurement(`gutter`,`width`)},rd._getItemLayoutPosition=function(e){if(this._setRectSize(e.element,e.rect),this.isShifting||this.dragItemCount>0){var t=this._getPackMethod();this.packer[t](e.rect)}else this.packer.pack(e.rect);return this._setMaxXY(e.rect),e.rect},rd.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},rd._getPackMethod=function(){return this._getOption(`horizontal`)?`rowPack`:`columnPack`},rd._setMaxXY=function(e){this.maxX=Math.max(e.x+e.width,this.maxX),this.maxY=Math.max(e.y+e.height,this.maxY)},rd._setRectSize=function(t,$){var ed=e(t),td=ed.outerWidth,nd=ed.outerHeight;(td||nd)&&(td=this._applyGridGutter(td,this.columnWidth),nd=this._applyGridGutter(nd,this.rowHeight)),$.width=Math.min(td,this.packer.width),$.height=Math.min(nd,this.packer.height)},rd._applyGridGutter=function(e,t){if(!t)return e+this.gutter;t+=this.gutter;var $=e%t;return e=Math[$&&$<1?`round`:`ceil`](e/t)*t,e},rd._getContainerSize=function(){return this._getOption(`horizontal`)?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},rd._manageStamp=function(e){var t=this.getItem(e),ed;if(t&&t.isPlacing)ed=t.rect;else{var td=this._getElementOffset(e);
299ed=new $({x:this._getOption(`originLeft`)?td.left:td.right,y:this._getOption(`originTop`)?td.top:td.bottom})}this._setRectSize(e,ed),this.packer.placed(ed),this._setMaxXY(ed)};function id(e,t){return e.position.y-t.position.y||e.position.x-t.position.x}function ad(e,t){return e.position.x-t.position.x||e.position.y-t.position.y}rd.sortItemsByPosition=function(){var e=this._getOption(`horizontal`)?ad:id;this.items.sort(e)},rd.fit=function(e,t,$){var ed=this.getItem(e);ed&&(this.stamp(ed.element),ed.enablePlacing(),this.updateShiftTargets(ed),t=t===void 0?ed.rect.x:t,$=$===void 0?ed.rect.y:$,this.shift(ed,t,$),this._bindFitEvents(ed),ed.moveTo(ed.rect.x,ed.rect.y),this.shiftLayout(),this.unstamp(ed.element),this.sortItemsByPosition(),ed.disablePlacing())},rd._bindFitEvents=function(e){var t=this,$=0;function ed(){$++,$==2&&t.dispatchEvent(`fitComplete`,null,[e])}e.once(`layout`,ed),this.once(`layoutComplete`,ed)},rd.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},rd.needsResizeLayout=function(){var t=e(this.element),$=this._getOption(`horizontal`)?`innerHeight`:`innerWidth`;return t[$]!=this.size[$]},rd.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items),$=this._getOption(`horizontal`),ed=$?`y`:`x`,td=$?`height`:`width`,nd=$?`rowHeight`:`columnWidth`,rd=$?`innerHeight`:`innerWidth`,id=this[nd];if(id&&=id+this.gutter,id){this._getMeasurements();var ad=this[nd]+this.gutter;t.forEach(function(e){var t=Math.round(e.rect[ed]/id);e.rect[ed]=t*ad})}else{var od=e(this.element)[rd]+this.gutter,sd=this.packer[td];t.forEach(function(e){e.rect[ed]=e.rect[ed]/sd*od})}this.shiftLayout()},rd.itemDragStart=function(e){if(this.isEnabled){this.stamp(e);var t=this.getItem(e);t&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t))}},rd.updateShiftTargets=function(e){this.shiftPacker.reset(),this._getBoundingRect();var t=this._getOption(`originLeft`),ed=this._getOption(`originTop`);this.stamps.forEach(function(e){var td=this.getItem(e);if(!(td&&td.isPlacing)){var nd=this._getElementOffset(e),rd=new $({x:t?nd.left:nd.right,y:ed?nd.top:nd.bottom});this._setRectSize(e,rd),this.shiftPacker.placed(rd)}},this);var td=this._getOption(`horizontal`),nd=td?`rowHeight`:`columnWidth`,rd=td?`height`:`width`;this.shiftTargetKeys=[],this.shiftTargets=[];var id,ad=this[nd];if(ad&&=ad+this.gutter,ad){var od=Math.ceil(e.rect[rd]/ad),sd=Math.floor((this.shiftPacker[rd]+this.gutter)/ad);id=(sd-od)*ad;for(var cd=0;cd<sd;cd++){var ld=td?0:cd*ad,ud=td?cd*ad:0;this._addShiftTarget(ld,ud,id)}}else id=this.shiftPacker[rd]+this.gutter-e.rect[rd],this._addShiftTarget(0,0,id);var dd=this._getItemsForLayout(this.items),fd=this._getPackMethod();dd.forEach(function(e){var t=e.rect;this._setRectSize(e.element,t),this.shiftPacker[fd](t),this._addShiftTarget(t.x,t.y,id);var $=td?t.x+t.width:t.x,ed=td?t.y:t.y+t.height;if(this._addShiftTarget($,ed,id),ad)for(var nd=Math.round(t[rd]/ad),od=1;od<nd;od++){var sd=td?$:t.x+ad*od,cd=td?t.y+ad*od:ed;this._addShiftTarget(sd,cd,id)}},this)},rd._addShiftTarget=function(e,t,$){var ed=this._getOption(`horizontal`)?t:e;if(!(ed!==0&&ed>$)){var td=e+`,`+t;this.shiftTargetKeys.indexOf(td)==-1&&(this.shiftTargetKeys.push(td),this.shiftTargets.push({x:e,y:t}))}},rd.shift=function(e,t,$){var ed,td=1/0,nd={x:t,y:$};this.shiftTargets.forEach(function(e){var t=od(e,nd);t<td&&(ed=e,td=t)}),e.rect.x=ed.x,e.rect.y=ed.y};function od(e,t){var $=t.x-e.x,ed=t.y-e.y;return Math.sqrt($*$+ed*ed)}var sd=120;rd.itemDragMove=function(e,t,$){var ed=this.isEnabled&&this.getItem(e);if(!ed)return;t-=this.size.paddingLeft,$-=this.size.paddingTop;var td=this;function nd(){td.shift(ed,t,$),ed.positionDropPlaceholder(),td.layout()}var rd=new Date;this._itemDragTime&&rd-this._itemDragTime<sd?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(nd,sd)):(nd(),this._itemDragTime=rd)},rd.itemDragEnd=function(e){var t=this.isEnabled&&this.getItem(e);if(!t)return;clearTimeout(this.dragTimeout),t.element.classList.add(`is-positioning-post-drag`);var $=0,ed=this;function td(){$++,$==2&&(t.element.classList.remove(`is-positioning-post-drag`),t.hideDropPlaceholder(),ed.dispatchEvent(`dragItemPositioned`,null,[t]))}t.once(`layout`,td),this.once(`layoutComplete`,td),t.moveTo(t.rect.x,t.rect.y
299),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),t.disablePlacing(),this.unstamp(t.element)},rd.bindDraggabillyEvents=function(e){this._bindDraggabillyEvents(e,`on`)},rd.unbindDraggabillyEvents=function(e){this._bindDraggabillyEvents(e,`off`)},rd._bindDraggabillyEvents=function(e,t){var $=this.handleDraggabilly;e[t](`dragStart`,$.dragStart),e[t](`dragMove`,$.dragMove),e[t](`dragEnd`,$.dragEnd)},rd.bindUIDraggableEvents=function(e){this._bindUIDraggableEvents(e,`on`)},rd.unbindUIDraggableEvents=function(e){this._bindUIDraggableEvents(e,`off`)},rd._bindUIDraggableEvents=function(e,t){var $=this.handleUIDraggable;e[t](`dragstart`,$.start)[t](`drag`,$.drag)[t](`dragstop`,$.stop)};var cd=rd.destroy;return rd.destroy=function(){cd.apply(this,arguments),this.isEnabled=!1},nd.Rect=$,nd.Packer=ed,nd})})),import_packery=__toESM(require_packery()),container=document.querySelector(`.js-packery-container`),grid=document.querySelector(`.js-packery-grid`),button=document.querySelector(`.js-packery-btn`);container&&container!==null&&window.addEventListener(`load`,()=>{var e=new import_packery.default(grid,{itemSelector:`.js-packery-item`,gutter:10,percentPosition:!0});container.classList.remove(`is-loading`),button&&button.addEventListener(`click`,()=>{e.getItemElements().forEach(t=>{t.classList.remove(`u-display-none`),e.layout()}),button.classList.add(`u-display-none`)})}),init_video_es(),document.querySelectorAll(`.js-carousel`).forEach(e=>{let{swiperPagination:t,swiperNavigation:$,swiperScrollbar:ed}=e.dataset,td=JSON.parse(decodeURIComponent(e.dataset.swiperOptions)),nd=document.querySelectorAll(`.js-carousel-go-to-slide`),rd=e.querySelectorAll(`.js-video-vimeo`),id=e.querySelectorAll(`.js-video-default`),ad=null;od(),sd(),rd.length&&(0,import_jquery.default)(rd).on(`loadeddata`,cd(rd,`vimeo`,td.auto_play)),id.length&&(0,import_jquery.default)(id).on(`loadeddata`,cd(id,`default`,td.auto_play)),nd.forEach(e=>{e.addEventListener(`click`,()=>{let t=e.dataset.index;td.loop?ad.slideToLoop(t):ad.slideTo(t)})});function od(){let t=e.querySelectorAll(`.swiper-slide`),$={mobile:`(min-width: 0px) and (max-width: 575px)`,small:`(min-width: 576px) and (max-width: 767px)`,medium:`(min-width: 768px) and (max-width: 1023px)`,large:`(min-width: 1024px) and (max-width: 1439px)`,xlarge:`(min-width: 1440px)`};t.forEach(e=>{Object.keys($).forEach(t=>{window.matchMedia($[t]).matches&&/visible-/.test(e.classList)&&!e.classList.contains(`visible-${t}-block`)&&e.remove()})})}function sd(){ad=new Swiper(e,{loop:td.loop,autoplay:td.auto_play?{delay:td.carousel_speed?td.carousel_speed:4e3,disableOnInteraction:td.show_nav??!0,pauseOnMouseEnter:td.show_nav??!0}:!1,slidesPerView:1,slidesPerGroup:1,autoHeight:!0,allowTouchMove:!1,fadeEffect:{crossFade:!0},effect:td.effect,speed:td.effect===`fade`?1e3:300,breakpoints:{768:{autoHeight:td.auto_height,slidesPerView:td.items_per_view,slidesPerGroup:td.items_per_group}},pagination:{el:t?`.swiper-pagination`:null,clickable:!0},navigation:{nextEl:$?`.swiper-button-next`:null,prevEl:$?`.swiper-button-prev`:null},scrollbar:{el:ed?`.swiper-scrollbar`:null,draggable:!0}}),ad.on(`transitionEnd`,()=>{document.dispatchEvent(new CustomEvent(`swiper-transition-end`))}),window.addEventListener(`resize`,()=>{ad.update()})}function cd(e,t,$){e.forEach(e=>{let ed=t===`vimeo`?new Player(e.id,{id:e.getAttribute(`data-id`),responsive:!0}):videojs(e.id,{controlBar:{children:[`playToggle`,`progressControl`,`volumePanel`,`qualitySelector`,`fullscreenToggle`]}});$&&ed.on(`play`,()=>{ad.autoplay.stop()}),ad.on(`slideChange`,()=>{ed.pause()})})}});var DEFAULT_SELECTOR$2=`.js-custom-events`,custom_events_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$2,this.init()}init(){let e=this.element[0].getAttribute(`data-ce-category`),t=this.element[0].getAttribute(`data-ce-action`),$=this.element[0].getAttribute(`data-ce-label`);this.element[0].addEventListener(`click`,ed=>{document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:e,eventAction:t,eventLabel:$}}))})}},DEFAULT_SELECTOR$1=`.js-filters`,DEFAULT_TRIGGER=`.js-filters-trigger`,DEFAULT_RECEPTOR=`.js-filters-receptor`,filters_default=class{constructor(e){this.element=e||DEFAULT_SELECTOR$1,this.bindEvents()}bindEvents(){this.element.find(DEFAULT_TRIGGER).on(`click`,e=>this.handleClick(e));let e=new URL(location.href).searchParams.get(`type`);e&&this.handleFilters(e)}handleClick(e){let t=this.element.find(DEFAULT_TRIGGER),$=(0,import_jquery.default)(e.currentTarget),ed=`is-active`;$.hasClass(ed)||(t.removeClass(ed),$.addClass(ed),this.handleFilters($.data(`type`))),e.stopPropagation(),e.preventDefault()}handleFilters(e){let t=this.element.find(DEFAULT_RECEPTOR),$=`is-disabled`;if(e===`all`)window.history.pushState(null,``,document.location.href.split(`?`)[0]),t.removeClass($);else{let ed=new URL(window.location.href);ed.searchParams.set(`type`,e),window.history.pushState(null,``,ed.toString()),t.addClass($)}t.each((t,ed)=>{let td=(0,import_jquery.default)(ed);td.data(`types`).includes(e)&&td.removeClass($)})}},TOGGLE_SELECTOR=`.js-agent-portal-toggle`,ACTIVE_CLASS$1=`is-active`,AgentPortal=class{constructor(){this.toggles=document.querySelectorAll(TOGGLE_SELECTOR),this.toggles.length>0&&this.bindEvents()}
299bindEvents(){this.toggles.forEach(e=>{document.addEventListener(`click`,t=>{e.contains(t.target)?e.classList.toggle(ACTIVE_CLASS$1):e.classList.remove(ACTIVE_CLASS$1)})})}},DEFAULT_SELECTOR=[...document.querySelectorAll(`a[href^="#"]`)].filter(e=>{let t=e.getAttribute(`href`);return t[0]==`#`&&t.length>1}),ACTIVE_CLASS=`is-active`,Anchors=class{constructor(){this.init=this.init.bind(this),this.initialScroll=this.initialScroll.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleScrollTo=this.handleScrollTo.bind(this),this.handleScrollEnd=this.handleScrollEnd.bind(this),this.scrollBehavior=`instant`,this.triggersArray=[],this.bodyHeightSnapshot=document.querySelector(`body`).clientHeight,this.ignoreUserScroll=!1,this.defaultLocation=window.location.pathname+window.location.search,window.addEventListener(`load`,this.init)}init(){let{hash:e}=window.location;DEFAULT_SELECTOR.forEach(e=>{let t=document.getElementById(e.getAttribute(`href`).substring(1));t&&(this.triggersArray.push(e),e.addEventListener(`click`,$=>{let ed=e.classList.contains(`anchor-hero`);this.scrollBehavior=`smooth`,this.handleScrollTo(t,ed),$.preventDefault()}))}),window.addEventListener(`scroll`,this.handleScroll),e&&!e.startsWith(`#/`)&&this.initialScroll(e)}initialScroll(e){let t=document.querySelector(e);t&&(document.querySelector(`a[href='${e}']`)?.classList.add(ACTIVE_CLASS),history.scrollRestoration=`manual`,this.handleScrollTo(t))}handleScroll(){this.ignoreUserScroll||this.triggersArray.forEach((e,t)=>{let $=window.location.hash,ed=e.getAttribute(`href`),td=document.querySelector(e.getAttribute(`href`)).getBoundingClientRect().top+window.scrollY-this.getHeaderOffset(),nd=this.triggersArray[t+1];if(t===0&&window.scrollY<td&&$)this.triggersArray.forEach(e=>{e.classList.remove(ACTIVE_CLASS)}),this.handleReplaceState(``);else if($!==ed){let t=nd?document.querySelector(nd.getAttribute(`href`)).getBoundingClientRect().top+window.scrollY-this.getHeaderOffset():null,$=nd?window.scrollY>td&&window.scrollY<t:window.scrollY>td;$&&this.handleReplaceState(ed),e.classList.toggle(ACTIVE_CLASS,$)}})}handleScrollTo(e,t){if(!this.ignoreUserScroll){let $=e.getBoundingClientRect().top+window.scrollY-this.getHeaderOffset()+(t?100:0),ed=`#`+e.getAttribute(`id`);this.triggersArray.forEach(e=>{e.classList.remove(ACTIVE_CLASS)}),document.querySelector(`a[href='${ed}']`)?.classList.add(ACTIVE_CLASS),this.ignoreUserScroll=!0,this.handleReplaceState(ed),window.scrollTo({top:$,behavior:this.scrollBehavior}),window.addEventListener(`scrollend`,()=>this.handleScrollEnd(e,$,t),{once:!0})}}handleReplaceState(e){history.replaceState(null,``,this.defaultLocation+e)}handleScrollEnd(e,t,$){if(this.ignoreUserScroll=!1,!$){let $=document.querySelector(`body`).clientHeight;$!==this.bodyHeightSnapshot&&(this.ignoreUserScroll=!0,t=e.getBoundingClientRect().top+window.scrollY-this.getHeaderOffset(),window.scrollTo({top:t,behavior:`instant`})),setTimeout(()=>{this.bodyHeightSnapshot=$,this.ignoreUserScroll=!1},10)}}getHeaderOffset(){return(window.matchMedia(`(min-width: 1024px)`)?96:64)+100}},Hype=class{constructor(){this.hypeDocuments=document.querySelectorAll(`.HYPE_document`),this.init()}init(){this.hypeDocuments.forEach(e=>{let t=e.nextElementSibling.parentElement.querySelector(`.loading`);window.addEventListener(`load`,()=>{window.dispatchEvent(new Event(`resize`)),t.style.display=`none`,e.style.display=`block`})})}},OpenCollapse=class{constructor(){this.elements=document.querySelectorAll(`.js-open-collapse`),this.classOpen=`is-open`,this.elements.length&&this.elements.forEach(e=>{this.init(e)})}init(e){let t=e.querySelectorAll(`.js-open-collapse-container`),$=e.querySelector(`.js-open-collapse-trigger-global`);$&&$.addEventListener(`click`,t=>{this.openCollapseAll(e,$),t.preventDefault()}),e.getAttribute(`state`)===`open`&&(e.getAttribute(`single`)?this.openFirst(e):(e.setAttribute(`state`,`collapsed`),this.openCollapseAll(e,$))),t.forEach(t=>{let $=t.querySelector(`.js-open-collapse-trigger`),ed=t.querySelector(`.js-open-collapse-trigger-show-more`);$&&$.addEventListener(`click`,ed=>{!$.classList.contains(this.classOpen)&&e.getAttribute(`single`)&&this.collapseAll(e),this.handleTriggerClick(e,t,$),ed.preventDefault()}),ed&&ed.addEventListener(`click`,e=>{this.handleShowMoreClick(t,ed),e.preventDefault()})})}openCollapseAll(e,t){let $=e.querySelectorAll(`.js-open-collapse-trigger`),ed=e.querySelectorAll(`.js-open-collapse-trigger-show-more`),td=e.querySelectorAll(`.js-open-collapse-item`);e.getAttribute(`state`)===`collapsed`?(t.classList.add(this.classOpen),$.forEach(e
299=>{e.classList.add(this.classOpen)}),e.setAttribute(`state`,`open`)):(t.classList.remove(this.classOpen),$.forEach(e=>{e.classList.remove(this.classOpen)}),e.setAttribute(`state`,`collapsed`)),ed.forEach(t=>{t.style.display=e.getAttribute(`state`)===`open`?`flex`:`none`}),td.forEach(t=>{t.style.display=e.getAttribute(`state`)===`open`?`block`:`none`})}collapseAll(e){let t=e.querySelectorAll(`.js-open-collapse-trigger`),$=e.querySelectorAll(`.js-open-collapse-item`);e.setAttribute(`state`,`collapsed`),t.forEach(e=>{e.classList.remove(this.classOpen)}),$.forEach(e=>{e.style.display=`none`})}openFirst(e){let t=e.querySelectorAll(`.js-open-collapse-trigger`)[0],$=e.querySelectorAll(`.js-open-collapse-item`)[0];e.setAttribute(`state`,`open`),t.classList.add(this.classOpen),$.style.display=`block`}handleTriggerClick(e,t,$){let ed=e.querySelector(`.js-open-collapse-trigger-global`),td=e.querySelectorAll(`.js-open-collapse-trigger`),nd=t.querySelector(`.js-open-collapse-trigger-show-more`),rd=t.querySelectorAll(`.js-open-collapse-item`);$.classList.toggle(this.classOpen),rd.forEach(e=>{let t=$.classList.contains(this.classOpen);e.style.display=t?`block`:`none`,nd&&(nd.style.display=t?`flex`:`none`),t&&ed.classList.add(this.classOpen)}),[...td].some(e=>e.classList.contains(this.classOpen))?e.setAttribute(`state`,`open`):(e.setAttribute(`state`,`collapsed`),ed.classList.remove(this.classOpen))}handleShowMoreClick(e,t){let $=e.querySelectorAll(`.js-open-collapse-item-show-more`);t.classList.toggle(this.classOpen),$.forEach(e=>{let $=t.classList.contains(this.classOpen);e.style.display=$?`block`:`none`})}},require_factoryWithThrowingShims=__commonJSMin(((e,t)=>{var $=require_ReactPropTypesSecret$1();function ed(){}function td(){}td.resetWarningCache=ed,t.exports=function(){function e(e,t,ed,td,nd,rd){if(rd!==$){var id=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw id.name=`Invariant Violation`,id}}e.isRequired=e;function t(){return e}var nd={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:td,resetWarningCache:ed};return nd.PropTypes=nd,nd}})),require_prop_types=__commonJSMin(((e,t)=>{t.exports=require_factoryWithThrowingShims()()})),require_storeShape=__commonJSMin((e=>{e.__esModule=!0;var t=$(require_prop_types());function $(e){return e&&e.__esModule?e:{default:e}}e.default=t.default.shape({subscribe:t.default.func.isRequired,dispatch:t.default.func.isRequired,getState:t.default.func.isRequired})})),require_warning=__commonJSMin((e=>{e.__esModule=!0,e.default=t;function t(e){typeof console<`u`&&typeof console.error==`function`&&console.error(e);try{throw Error(e)}catch{}}})),require_Provider=__commonJSMin((e=>{e.__esModule=!0,e.default=void 0;var t=require_react(),$=td(require_prop_types()),ed=td(require_storeShape());td(require_warning());function td(e){return e&&e.__esModule?e:{default:e}}function nd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function rd(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function id(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ad=function(e){id($,e),$.prototype.getChildContext=function(){return{store:this.store}};function $(t,ed){nd(this,$);var td=rd(this,e.call(this,t,ed));return td.store=t.store,td}return $.prototype.render=function(){return t.Children.only(this.props.children)},$}(t.Component);e.default=ad,ad.propTypes={store:ed.default.isRequired,children:$.default.element.isRequired},ad.childContextTypes={store:ed.default.isRequired}})),require_shallowEqual=__commonJSMin((e=>
299{e.__esModule=!0,e.default=t;function t(e,t){if(e===t)return!0;var $=Object.keys(e),ed=Object.keys(t);if($.length!==ed.length)return!1;for(var td=Object.prototype.hasOwnProperty,nd=0;nd<$.length;nd++)if(!td.call(t,$[nd])||e[$[nd]]!==t[$[nd]])return!1;return!0}})),freeGlobal,init__freeGlobal=__esmMin((()=>{init_dist$1(),freeGlobal=typeof global==`object`&&global&&global.Object===Object&&global})),freeSelf,root$1,init__root=__esmMin((()=>{init__freeGlobal(),freeSelf=typeof self==`object`&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function(`return this`)()})),Symbol$1,init__Symbol=__esmMin((()=>{init__root(),Symbol$1=root$1.Symbol}));function getRawTag(e){var t=hasOwnProperty$1.call(e,symToStringTag$1),$=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var ed=!0}catch{}var td=nativeObjectToString$1.call(e);return ed&&(t?e[symToStringTag$1]=$:delete e[symToStringTag$1]),td}var objectProto$1,hasOwnProperty$1,nativeObjectToString$1,symToStringTag$1,init__getRawTag=__esmMin((()=>{init__Symbol(),objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0}));function objectToString(e){return nativeObjectToString.call(e)}var nativeObjectToString,init__objectToString=__esmMin((()=>{nativeObjectToString=Object.prototype.toString}));function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var nullTag,undefinedTag,symToStringTag,init__baseGetTag=__esmMin((()=>{init__Symbol(),init__getRawTag(),init__objectToString(),nullTag=`[object Null]`,undefinedTag=`[object Undefined]`,symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0}));function overArg(e,t){return function($){return e(t($))}}var init__overArg=__esmMin((()=>{})),getPrototype,init__getPrototype=__esmMin((()=>{init__overArg(),getPrototype=overArg(Object.getPrototypeOf,Object)}));function isObjectLike(e){return typeof e==`object`&&!!e}var init_isObjectLike=__esmMin((()=>{}));function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=objectTag)return!1;var t=getPrototype(e);if(t===null)return!0;var $=hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof $==`function`&&$ instanceof $&&funcToString.call($)==objectCtorString}var objectTag,funcProto,objectProto,funcToString,hasOwnProperty,objectCtorString,init_isPlainObject=__esmMin((()=>{init__baseGetTag(),init__getPrototype(),init_isObjectLike(),objectTag=`[object Object]`,funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object)}));function symbolObservablePonyfill(e){var t,$=e.Symbol;return typeof $==`function`?$.observable?t=$.observable:(t=$(`observable`),$.observable=t):t=`@@observable`,t}var init_ponyfill=__esmMin((()=>{})),root,result,init_es$1=__esmMin((()=>{init_dist$1(),init_ponyfill(),root=typeof self<`u`?self:typeof window<`u`?window:global===void 0?typeof module<`u`?module:Function(`return this`)():global,result=symbolObservablePonyfill(root)}));function createStore(e,t,$){var ed;if(typeof t==`function`&&$===void 0&&($=t,t=void 0),$!==void 0){if(typeof $!=`function`)throw Error(`Expected the enhancer to be a function.`);return $(createStore)(e,t)}if(typeof e!=`function`)throw Error(`Expected the reducer to be a function.`);var td=e,nd=t,rd=[],id=rd,ad=!1;function od(){id===rd&&(id=rd.slice())}function sd(){return nd}function cd(e){if(typeof e!=`function`)throw Error(`Expected listener to be a function.`);var t=!0;return od(),id.push(e),function(){if(t){t=!1,od();var $=id.indexOf(e);id.splice($,1)}}}function ld(e){if(!isPlainObject(e))throw Error(`Actions must be plain objects. Use custom middleware for async actions.`);if(e.type===void 0)throw Error(`Actions may not have an undefined "type" property. Have you misspelled a constant?`);if(ad)throw Error(`Reducers may not dispatch actions.`);try{ad=!0,nd=td(nd,e)}finally{ad=!1}for(var t=rd=id,$=0;$<t.length;$++){var ed=t[$];ed()}return e}function ud(e){if(typeof e!=`function`)throw Error(`Expected the nextReducer to be a function.`);td=e,ld({type:ActionTypes.INIT})}function dd(){var e,t=cd;return e={subscribe:function(e){if(typeof e!=`object`)throw TypeError(`Expected the observer to be an object.`);function $(){e.next&&e.next(sd())}return $(),{unsubscribe:t($)}}},e[result]=function(){return this},e}return ld({type:ActionTypes.INIT}),ed={dispatch:ld,subscribe:cd,getState:sd,replaceReducer:ud},ed[result]=dd,ed}var ActionTypes,init_createStore=__esmMin((()=>{init_isPlainObject(),init_es$1(),ActionTypes={INIT:`@@redux/INIT`}}));function getUndefinedStateErrorMessage(e,t){var $=t&&t.type;return`Given action `+($&&`"`+$.toString()+`"`||`an action`)+`, reducer "`+e+`" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`}function assertReducerShape(e){Object.keys(e).forEach(function(t){var $=e[t];if($(void 0,{type:ActionTypes.INIT})===void 0)throw Error(`Reducer "`+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if($(void 0,{type:`@@redux/PROBE_UNKNOWN_ACTION_`+Math.random().toString(36).substring(7).split(``).join(`.`)})===void 0)throw Error(`Reducer "`+t+`" returned undefined when probed with a random type. `+(`Don't try to handle `+ActionTypes.INIT+` or other actions in "redux/*" `)+`namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function combineReducers(e){for(var t=Object.keys(e),$={},ed=0;ed<t.length;ed++){var td=t[ed];typeof e[td]==`function`&&($[td]=e[td])}var nd=Object.keys($),rd=void 0;try{assertReducerShape($)}catch(e){rd=e}return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments[1];if(rd)throw rd;for(var ed=!1,td={},id=0;id<nd.length;id++){var ad=nd[id],od=$[ad],sd=e[ad],cd=od(sd,t);
299if(cd===void 0){var ld=getUndefinedStateErrorMessage(ad,t);throw Error(ld)}td[ad]=cd,ed||=cd!==sd}return ed?td:e}}var init_combineReducers=__esmMin((()=>{init_createStore()}));function bindActionCreator(e,t){return function(){return t(e.apply(void 0,arguments))}}function bindActionCreators(e,t){if(typeof e==`function`)return bindActionCreator(e,t);if(typeof e!=`object`||!e)throw Error(`bindActionCreators expected an object or a function, instead received `+(e===null?`null`:typeof e)+`. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);for(var $=Object.keys(e),ed={},td=0;td<$.length;td++){var nd=$[td],rd=e[nd];typeof rd==`function`&&(ed[nd]=bindActionCreator(rd,t))}return ed}var init_bindActionCreators=__esmMin((()=>{}));function compose$1(){var e=[...arguments];return e.length===0?function(e){return e}:e.length===1?e[0]:e.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var init_compose=__esmMin((()=>{}));function applyMiddleware(){var e=[...arguments];return function(t){return function($,ed,td){var nd=t($,ed,td),rd=nd.dispatch,id=[],ad={getState:nd.getState,dispatch:function(e){return rd(e)}};return id=e.map(function(e){return e(ad)}),rd=compose$1.apply(void 0,id)(nd.dispatch),_extends$1({},nd,{dispatch:rd})}}}var _extends$1,init_applyMiddleware=__esmMin((()=>{init_compose(),_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)Object.prototype.hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e}})),es_exports=__exportAll({applyMiddleware:()=>applyMiddleware,bindActionCreators:()=>bindActionCreators,combineReducers:()=>combineReducers,compose:()=>compose$1,createStore:()=>createStore}),init_es=__esmMin((()=>{init_createStore(),init_combineReducers(),init_bindActionCreators(),init_applyMiddleware(),init_compose()})),require_wrapActionCreators=__commonJSMin((e=>{e.__esModule=!0,e.default=$;var t=(init_es(),__toCommonJS(es_exports));function $(e){return function($){return(0,t.bindActionCreators)(e,$)}}})),require__freeGlobal=__commonJSMin(((e,t)=>{init_dist$1(),t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),require__root=__commonJSMin(((e,t)=>{var $=require__freeGlobal(),ed=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=$||ed||Function(`return this`)()})),require__Symbol=__commonJSMin(((e,t)=>{t.exports=require__root().Symbol})),require__getRawTag=__commonJSMin(((e,t)=>{var $=require__Symbol(),ed=Object.prototype,td=ed.hasOwnProperty,nd=ed.toString,rd=$?$.toStringTag:void 0;function id(e){var t=td.call(e,rd),$=e[rd];try{e[rd]=void 0;var ed=!0}catch{}var id=nd.call(e);return ed&&(t?e[rd]=$:delete e[rd]),id}t.exports=id})),require__objectToString=__commonJSMin(((e,t)=>{var $=Object.prototype.toString;function ed(e){return $.call(e)}t.exports=ed})),require__baseGetTag=__commonJSMin(((e,t)=>{var $=require__Symbol(),ed=require__getRawTag(),td=require__objectToString(),nd=`[object Null]`,rd=`[object Undefined]`,id=$?$.toStringTag:void 0;function ad(e){return e==null?e===void 0?rd:nd:id&&id in Object(e)?ed(e):td(e)}t.exports=ad})),require__overArg=__commonJSMin(((e,t)=>{function $(e,t){return function($){return e(t($))}}t.exports=$})),require__getPrototype=__commonJSMin(((e,t)=>{t.exports=require__overArg()(Object.getPrototypeOf,Object)})),require_isObjectLike=__commonJSMin(((e,t)=>{function $(e){return typeof e==`object`&&!!e}t.exports=$})),require_isPlainObject=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require__getPrototype(),td=require_isObjectLike(),nd=`[object Object]`,rd=Function.prototype,id=Object.prototype,ad=rd.toString,od=id.hasOwnProperty,sd=ad.call(Object);function cd(e){if(!td(e)||$(e)!=nd)return!1;var t=ed(e);if(t===null)return!0;var rd=od.call(t,`constructor`)&&t.constructor;return typeof rd==`function`&&rd instanceof rd&&ad.call(rd)==sd}t.exports=cd})),require_hoist_non_react_statics_cjs$1=__commonJSMin(((e,t)=>{var $=require_react_is(),ed={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},td={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},id={};id[$.ForwardRef]=nd,id[$.Memo]=rd;function ad(e){return $.isMemo(e)?rd:id[e.$$typeof]||ed}var od=Object.defineProperty,sd=Object.getOwnPropertyNames,cd=Object.getOwnPropertySymbols,ld=Object.getOwnPropertyDescriptor,ud=Object.getPrototypeOf,dd=Object.prototype;function fd(e,t,$){if(typeof t!=`string`){if(dd){var ed=ud(t);ed&&ed!==dd&&fd(e,ed,$)}var nd=sd(t);cd&&(nd=nd.concat(cd(t)));for(var rd=ad(e),id=ad(t),pd=0;pd<nd.length;++pd){var md=nd[pd];if(!td[md]&&!($&&$[md])&&!(id&&id[md])&&!(rd&&rd[md])){var hd=ld(t,md);try{od(e,md,hd)}catch{}}}}return e}t.exports=fd})),require_browser$13=__commonJSMin(((e,t)=>{t.exports=function(e,t,$,ed,td,nd,rd,id){if(!e){var ad;if(t===void 0)ad=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var od=[$,ed,td,nd,rd,id],sd=0;ad=Error(t.replace(/%s/g,function(){return od[sd++]})),ad.name=`Invariant Violation`}throw ad.framesToPop=1,ad}}})),require_connect=__commonJSMin((e=>
299{e.__esModule=!0;var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)Object.prototype.hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e};e.default=gd;var $=require_react(),ed=ad(require_storeShape()),td=ad(require_shallowEqual()),nd=ad(require_wrapActionCreators());ad(require_warning()),ad(require_isPlainObject());var rd=ad(require_hoist_non_react_statics_cjs$1()),id=ad(require_browser$13());function ad(e){return e&&e.__esModule?e:{default:e}}function od(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function sd(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function cd(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ld=function(e){return{}},ud=function(e){return{dispatch:e}},dd=function(e,$,ed){return t({},ed,e,$)};function fd(e){return e.displayName||e.name||`Component`}var pd={value:null};function md(e,t){try{return e.apply(t)}catch(e){return pd.value=e,pd}}var hd=0;function gd(e,ad,gd){var _d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},vd=!!e,yd=e||ld,bd=void 0;bd=typeof ad==`function`?ad:ad?(0,nd.default)(ad):ud;var xd=gd||dd,Sd=_d.pure,Cd=Sd===void 0?!0:Sd,wd=_d.withRef,Td=wd===void 0?!1:wd,Ed=Cd&&xd!==dd,Dd=hd++;return function(e){var nd=`Connect(`+fd(e)+`)`;function ad(e,t,$){return xd(e,t,$)}var ld=function(ed){cd(rd,ed),rd.prototype.shouldComponentUpdate=function(){return!Cd||this.haveOwnPropsChanged||this.hasStoreStateChanged};function rd(e,t){od(this,rd);var $=sd(this,ed.call(this,e,t));return $.version=Dd,$.store=e.store||t.store,(0,id.default)($.store,`Could not find "store" in either the context or `+(`props of "`+nd+`". `)+`Either wrap the root component in a <Provider>, `+(`or explicitly pass "store" as a prop to "`+nd+`".`)),$.state={storeState:$.store.getState()},$.clearCache(),$}return rd.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var $=e.getState();return this.doStatePropsDependOnOwnProps?this.finalMapStateToProps($,t):this.finalMapStateToProps($)},rd.prototype.configureFinalMapState=function(e,t){var $=yd(e.getState(),t),ed=typeof $==`function`;return this.finalMapStateToProps=ed?$:yd,this.doStatePropsDependOnOwnProps=this.finalMapStateToProps.length!==1,ed?this.computeStateProps(e,t):$},rd.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var $=e.dispatch;return this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps($,t):this.finalMapDispatchToProps($)},rd.prototype.configureFinalMapDispatch=function(e,t){var $=bd(e.dispatch,t),ed=typeof $==`function`;return this.finalMapDispatchToProps=ed?$:bd,this.doDispatchPropsDependOnOwnProps=this.finalMapDispatchToProps.length!==1,ed?this.computeDispatchProps(e,t):$},rd.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,td.default)(e,this.stateProps)?!1:(this.stateProps=e,!0)},rd.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,td.default)(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},rd.prototype.updateMergedPropsIfNeeded=function(){var e=ad(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&Ed&&(0,td.default)(e,this.mergedProps)?!1:(this.mergedProps=e,!0)},rd.prototype.isSubscribed=function(){return typeof this.unsubscribe==`function`},rd.prototype.trySubscribe=function(){vd&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},rd.prototype.tryUnsubscribe=function(){this.unsubscribe&&=(this.unsubscribe(),null)},rd.prototype.componentDidMount=function(){this.trySubscribe()},rd.prototype.componentWillReceiveProps=function(e){(!Cd||!(0,td.default)(e,this.props))&&(this.haveOwnPropsChanged=!0)},rd.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},rd.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispat
299chToProps=null,this.finalMapStateToProps=null},rd.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!(Cd&&t===e)){if(Cd&&!this.doStatePropsDependOnOwnProps){var $=md(this.updateStatePropsIfNeeded,this);if(!$)return;$===pd&&(this.statePropsPrecalculationError=pd.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},rd.prototype.getWrappedInstance=function(){return(0,id.default)(Td,`To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call.`),this.refs.wrappedInstance},rd.prototype.render=function(){var ed=this.haveOwnPropsChanged,td=this.hasStoreStateChanged,nd=this.haveStatePropsBeenPrecalculated,rd=this.statePropsPrecalculationError,id=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,rd)throw rd;var ad=!0,od=!0;Cd&&id&&(ad=td||ed&&this.doStatePropsDependOnOwnProps,od=ed&&this.doDispatchPropsDependOnOwnProps);var sd=!1,cd=!1;nd?sd=!0:ad&&(sd=this.updateStatePropsIfNeeded()),od&&(cd=this.updateDispatchPropsIfNeeded());var ld=!0;return ld=sd||cd||ed?this.updateMergedPropsIfNeeded():!1,!ld&&id?id:(Td?this.renderedElement=(0,$.createElement)(e,t({},this.mergedProps,{ref:`wrappedInstance`})):this.renderedElement=(0,$.createElement)(e,this.mergedProps),this.renderedElement)},rd}($.Component);return ld.displayName=nd,ld.WrappedComponent=e,ld.contextTypes={store:ed.default},ld.propTypes={store:ed.default},(0,rd.default)(ld,e)}}})),require_lib$4=__commonJSMin((e=>{e.__esModule=!0,e.connect=e.Provider=void 0;var t=ed(require_Provider()),$=ed(require_connect());function ed(e){return e&&e.__esModule?e:{default:e}}e.Provider=t.default,e.connect=$.default}));init_es();var import_lib$3=require_lib$4();function createThunkMiddleware(e){return function(t){var $=t.dispatch,ed=t.getState;return function(t){return function(td){return typeof td==`function`?td($,ed,e):t(td)}}}}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var require_helpers=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=e.repeat=function(e,t){return Array(t+1).join(e)},$=e.pad=function(e,$){return t(`0`,$-e.toString().length)+e};e.formatTime=function(e){return $(e.getHours(),2)+`:`+$(e.getMinutes(),2)+`:`+$(e.getSeconds(),2)+`.`+$(e.getMilliseconds(),3)},e.timer=typeof performance<`u`&&performance!==null&&typeof performance.now==`function`?performance:Date})),require_deep_diff=__commonJSMin(((e,t)=>{init_dist$1(),(function($,ed){typeof define==`function`&&define.amd?define([],function(){return ed()}):typeof e==`object`?t.exports=ed():$.DeepDiff=ed()})(e,function(e){var t,$,ed=[];t=typeof global==`object`&&global?global:typeof window<`u`?window:{},$=t.DeepDiff,$&&ed.push(function(){$!==void 0&&t.DeepDiff===ud&&(t.DeepDiff=$,$=e)});function td(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function nd(e,t){Object.defineProperty(this,`kind`,{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,`path`,{value:t,enumerable:!0})}function rd(e,t,$){rd.super_.call(this,`E`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0}),Object.defineProperty(this,`rhs`,{value:$,enumerable:!0})}td(rd,nd);function id(e,t){id.super_.call(this,`N`,e),Object.defineProperty(this,`rhs`,{value:t,enumerable:!0})}td(id,nd);function ad(e,t){ad.super_.call(this,`D`,e),Object.defineProperty(this,`lhs`,{value:t,enumerable:!0})}td(ad,nd);function od(e,t,$){od.super_.call(this,`A`,e),Object.defineProperty(this,`index`,{value:t,enumerable:!0}),Object.defineProperty(this,`item`,{value:$,enumerable:!0})}td(od,nd);function sd(e,t,$){var ed=e.slice(($||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,ed),e}function cd(e){var t=typeof e;return t===`object`?e===Math?`math`:e===null?`null`:Array.isArray(e)?`array`:Object.prototype.toString.call(e)===`[object Date]`?`date`:e.toString!==void 0&&/^\/.*\//.test(e.toString())?`regexp`:`object`:t}function ld(t,$,ed,td,nd,ud,dd){nd||=[];var fd=nd.slice(0);if(ud!==void 0){if(td){if(typeof td==`function`&&td(fd,ud))return;if(typeof td==`object`){if(td.prefilter&&td.prefilter(fd,ud))return;if(td.normalize){var pd=td.normalize(fd,ud,t,$);pd&&(t=pd[0],$=pd[1])}}}fd.push(ud)}cd(t)===`regexp`&&cd($)===`regexp`&&(t=t.toString(),$=$.toString());var md=typeof t,hd=typeof $;if(md===`undefined`)hd!==`undefined`&&ed(new id(fd,$));else if(hd===`undefined`)ed(new ad(fd,t));else if(cd(t)!==cd($))ed(new rd(fd,t,$));else if(Object.prototype.toString.call(t)===`[object Date]`&&Object.prototype.toString.call($)===`[object Date]`&&t-$!==0)ed(new rd(fd,t,$));else if(md===`object`&&t!==null&&$!==null){if(dd||=[],dd.indexOf(t)<0){if(dd.push(t),Array.isArray(t)){var gd;for(t.length,gd=0;gd<t.length;gd++)gd>=$.length?ed(new od(fd,gd,new ad(e,t[gd]))):ld(t[gd],$[gd],ed,td,fd,gd,dd);for(;gd<$.length;)ed(new od(fd,gd,new id(e,$[gd++])))}else{var _d=Object.keys(t),vd=Object.keys($);_d.forEach(function(nd,rd){var id=vd.indexOf(nd);id>=0?(ld(t[nd],$[nd],ed,td,fd,nd,dd),vd=sd(vd,id)):ld(t[nd],e,ed,td,fd,nd,dd)}),vd.forEach(function(t){ld(e,$[t],ed,td,fd,t,dd)})}--dd.length}}else t!==$&&(md===`number`&&isNaN(t)&&isNaN($)||ed(new rd(fd,t,$)))}function ud(t,$,ed,td){return td||=[],ld(t,$,function(e){e&&td.push(e)},ed),td.length?td:e}function dd(e,t,$){if($.path&&$.path.length){var ed=e[t],td,nd=$.path.length-1;for(td=0;td<nd;td++)ed=ed[$.path[td]];switch($.kind){case`A`:dd(ed[$.path[td]],$.index,$.item);break;
299case`D`:delete ed[$.path[td]];break;case`E`:case`N`:ed[$.path[td]]=$.rhs;break}}else switch($.kind){case`A`:dd(e[t],$.index,$.item);break;case`D`:e=sd(e,t);break;case`E`:case`N`:e[t]=$.rhs;break}return e}function fd(e,t,$){if(e&&t&&$&&$.kind){for(var ed=e,td=-1,nd=$.path?$.path.length-1:0;++td<nd;)ed[$.path[td]]===void 0&&(ed[$.path[td]]=typeof $.path[td]==`number`?[]:{}),ed=ed[$.path[td]];switch($.kind){case`A`:dd($.path?ed[$.path[td]]:ed,$.index,$.item);break;case`D`:delete ed[$.path[td]];break;case`E`:case`N`:ed[$.path[td]]=$.rhs;break}}}function pd(e,t,$){if($.path&&$.path.length){var ed=e[t],td,nd=$.path.length-1;for(td=0;td<nd;td++)ed=ed[$.path[td]];switch($.kind){case`A`:pd(ed[$.path[td]],$.index,$.item);break;case`D`:ed[$.path[td]]=$.lhs;break;case`E`:ed[$.path[td]]=$.lhs;break;case`N`:delete ed[$.path[td]];break}}else switch($.kind){case`A`:pd(e[t],$.index,$.item);break;case`D`:e[t]=$.lhs;break;case`E`:e[t]=$.lhs;break;case`N`:e=sd(e,t);break}return e}function md(e,t,$){if(e&&t&&$&&$.kind){var ed=e,td,nd=$.path.length-1;for(td=0;td<nd;td++)ed[$.path[td]]===void 0&&(ed[$.path[td]]={}),ed=ed[$.path[td]];switch($.kind){case`A`:pd(ed[$.path[td]],$.index,$.item);break;case`D`:ed[$.path[td]]=$.lhs;break;case`E`:ed[$.path[td]]=$.lhs;break;case`N`:delete ed[$.path[td]];break}}}function hd(e,t,$){e&&t&&ld(e,t,function(ed){(!$||$(e,t,ed))&&fd(e,t,ed)})}return Object.defineProperties(ud,{diff:{value:ud,enumerable:!0},observableDiff:{value:ld,enumerable:!0},applyDiff:{value:hd,enumerable:!0},applyChange:{value:fd,enumerable:!0},revertChange:{value:md,enumerable:!0},isConflict:{value:function(){return $!==void 0},enumerable:!0},noConflict:{value:function(){return ed&&=(ed.forEach(function(e){e()}),null),ud},enumerable:!0}}),ud})})),require_diff=__commonJSMin(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=ad;var $=ed(require_deep_diff());function ed(e){return e&&e.__esModule?e:{default:e}}function td(e){if(Array.isArray(e)){for(var t=0,$=Array(e.length);t<e.length;t++)$[t]=e[t];return $}else return Array.from(e)}var nd={E:{color:`#2196F3`,text:`CHANGED:`},N:{color:`#4CAF50`,text:`ADDED:`},D:{color:`#F44336`,text:`DELETED:`},A:{color:`#2196F3`,text:`ARRAY:`}};function rd(e){return`color: `+nd[e].color+`; font-weight: bold`}function id(e){var t=e.kind,$=e.path,ed=e.lhs,td=e.rhs,nd=e.index,rd=e.item;switch(t){case`E`:return[$.join(`.`),ed,`â`,td];case`N`:return[$.join(`.`),td];case`D`:return[$.join(`.`)];case`A`:return[$.join(`.`)+`[`+nd+`]`,rd];default:return[]}}function ad(e,t,ed,ad){var od=(0,$.default)(e,t);try{ad?ed.groupCollapsed(`diff`):ed.group(`diff`)}catch{ed.log(`diff`)}od?od.forEach(function(e){var t=e.kind,$=id(e);ed.log.apply(ed,[`%c `+nd[t].text,rd(t)].concat(td($)))}):ed.log(`ââ no diff ââ`);try{ed.groupEnd()}catch{ed.log(`ââ diff end ââ `)}}t.exports=e.default})),require_core$1=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=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};e.printBuffer=ad;var $=require_helpers(),ed=td(require_diff());function td(e){return e&&e.__esModule?e:{default:e}}function nd(e){if(Array.isArray(e)){for(var t=0,$=Array(e.length);t<e.length;t++)$[t]=e[t];return $}else return Array.from(e)}function rd(e,$,ed,td){switch(e===void 0?`undefined`:t(e)){case`object`:return typeof e[td]==`function`?e[td].apply(e,nd(ed)):e[td];case`function`:return e($);default:return e}}function id(e){var t=e.timestamp,$=e.duration;return function(e,ed,td){var nd=[`action`];return nd.push(`%c`+String(e.type)),t&&nd.push(`%c@ `+ed),$&&nd.push(`%c(in `+td.toFixed(2)+` ms)`),nd.join(` `)}}function ad(e,t){var td=t.logger,nd=t.actionTransformer,ad=t.titleFormatter,od=ad===void 0?id(t):ad,sd=t.collapsed,cd=t.colors,ld=t.level,ud=t.diff;e.forEach(function(id,ad){var dd=id.started,fd=id.startedTime,pd=id.action,md=id.prevState,hd=id.error,gd=id.took,_d=id.nextState,vd=e[ad+1];vd&&(_d=vd.prevState,gd=vd.started-dd);var yd=nd(pd),bd=typeof sd==`function`?sd(function(){return _d},pd,id):sd,xd=(0,$.formatTime)(fd),Sd=cd.title?`color: `+cd.title(yd)+`;`:``,Cd=[`color: gray; font-weight: lighter;`];Cd.push(Sd),t.timestamp&&Cd.push(`color: gray; font-weight: lighter;`),t.duration&&Cd.push(`color: gray; font-weight: lighter;`);var wd=od(yd,xd,gd);try{bd?cd.title?td.groupCollapsed.apply(td,[`%c `+wd].concat(Cd)):td.groupCollapsed(wd):cd.title?td.group.apply(td,[`%c `+wd].concat(Cd)):td.group(wd)}catch{td.log(wd)}var Td=rd(ld,yd,[md],`prevState`),Ed=rd(ld,yd,[yd],`action`),Dd=rd(ld,yd,[hd,md],`error`),Od=rd(ld,yd,[_d],`nextState`);Td&&(cd.prevState?td[Td](`%c prev state`,`color: `+cd.prevState(md)+`; font-weight: bold`,md):td[Td](`prev state`,md)),Ed&&(cd.action?td[Ed](`%c action `,`color: `+cd.action(yd)+`; font-weight: bold`,yd):td[Ed](`action `,yd)),hd&&Dd&&(cd.error?td[Dd](`%c error `,`color: `+cd.error(hd,md)+`; font-weight: bold;`,hd):td[Dd](`error `,hd)),Od&&(cd.nextState?td[Od](`%c next state`,`color: `+cd.nextState(_d)+`; font-weight: bold`,_d):td[Od](`next state`,_d)),ud&&(0,ed.default)(md,_d,td,bd);try{td.groupEnd()}catch{td.log(`ââ log end ââ`)}})}})),require_defaults=__commonJSMin(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={level:`log`,logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return`inherit`},prevState:function(){return`#9E9E9E`},action:function(){return`#03A9F4`},nextState:function(){return`#4CAF50`},error:function(){return`#F20404`}},diff:!1,diffPredicate:void 0,transformer:void 0},t.exports=e.default})),require_lib$3=__commonJSMin(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.logger=e.defaults=void 0;var $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)Object.prototype.hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e},ed=require_core$1(),td=require_helpers(),nd=rd(require_defaults());
299function rd(e){return e&&e.__esModule?e:{default:e}}function id(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=$({},nd.default,e),rd=t.logger,id=t.transformer,ad=t.stateTransformer,od=t.errorTransformer,sd=t.predicate,cd=t.logErrors,ld=t.diffPredicate;if(rd===void 0)return function(){return function(e){return function(t){return e(t)}}};if(id&&console.error(`Option 'transformer' is deprecated, use 'stateTransformer' instead!`),e.getState&&e.dispatch)return console.error(`[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware: 300 301// Logger with default options 302import { logger } from 'redux-logger' 303const store = createStore( 304 reducer, 305 applyMiddleware(logger) 306) 307 308 309// Or you can create your own logger with custom options http://bit.ly/redux-logger-options 310import createLogger from 'redux-logger' 311 312const logger = createLogger({ 313 // ...options 314}); 315 316const store = createStore( 317 reducer, 318 applyMiddleware(logger) 319) 320`),function(){return function(e){return function(t){return e(t)}}};var ud=[];return function(e){var nd=e.getState;return function(e){return function(rd){if(typeof sd==`function`&&!sd(nd,rd))return e(rd);var id={};ud.push(id),id.started=td.timer.now(),id.startedTime=new Date,id.prevState=ad(nd()),id.action=rd;var dd=void 0;if(cd)try{dd=e(rd)}catch(e){id.error=od(e)}else dd=e(rd);id.took=td.timer.now()-id.started,id.nextState=ad(nd());var fd=t.diff&&typeof ld==`function`?ld(nd,rd):t.diff;if((0,ed.printBuffer)(ud,$({},t,{diff:fd})),ud.length=0,id.error)throw id.error;return dd}}}}var ad=id();e.defaults=nd.default,e.logger=ad,e.default=id,t.exports=e.default})),require_base64_js=__commonJSMin((e=>{e.byteLength=ad,e.toByteArray=sd,e.fromByteArray=ud;for(var t=[],$=[],ed=typeof Uint8Array<`u`?Uint8Array:Array,td=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,nd=0,rd=td.length;nd<rd;++nd)t[nd]=td[nd],$[td.charCodeAt(nd)]=nd;$[45]=62,$[95]=63;function id(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var $=e.indexOf(`=`);$===-1&&($=t);var ed=$===t?0:4-$%4;return[$,ed]}function ad(e){var t=id(e),$=t[0],ed=t[1];return($+ed)*3/4-ed}function od(e,t,$){return(t+$)*3/4-$}function sd(e){var t,td=id(e),nd=td[0],rd=td[1],ad=new ed(od(e,nd,rd)),sd=0,cd=rd>0?nd-4:nd,ld;for(ld=0;ld<cd;ld+=4)t=$[e.charCodeAt(ld)]<<18|$[e.charCodeAt(ld+1)]<<12|$[e.charCodeAt(ld+2)]<<6|$[e.charCodeAt(ld+3)],ad[sd++]=t>>16&255,ad[sd++]=t>>8&255,ad[sd++]=t&255;return rd===2&&(t=$[e.charCodeAt(ld)]<<2|$[e.charCodeAt(ld+1)]>>4,ad[sd++]=t&255),rd===1&&(t=$[e.charCodeAt(ld)]<<10|$[e.charCodeAt(ld+1)]<<4|$[e.charCodeAt(ld+2)]>>2,ad[sd++]=t>>8&255,ad[sd++]=t&255),ad}function cd(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function ld(e,t,$){for(var ed,td=[],nd=t;nd<$;nd+=3)ed=(e[nd]<<16&16711680)+(e[nd+1]<<8&65280)+(e[nd+2]&255),td.push(cd(ed));return td.join(``)}function ud(e){for(var $,ed=e.length,td=ed%3,nd=[],rd=16383,id=0,ad=ed-td;id<ad;id+=rd)nd.push(ld(e,id,id+rd>ad?ad:id+rd));return td===1?($=e[ed-1],nd.push(t[$>>2]+t[$<<4&63]+`==`)):td===2&&($=(e[ed-2]<<8)+e[ed-1],nd.push(t[$>>10]+t[$>>4&63]+t[$<<2&63]+`=`)),nd.join(``)}})),require_ieee754=__commonJSMin((e=>{e.read=function(e,t,$,ed,td){var nd,rd,id=td*8-ed-1,ad=(1<<id)-1,od=ad>>1,sd=-7,cd=$?td-1:0,ld=$?-1:1,ud=e[t+cd];for(cd+=ld,nd=ud&(1<<-sd)-1,ud>>=-sd,sd+=id;sd>0;nd=nd*256+e[t+cd],cd+=ld,sd-=8);for(rd=nd&(1<<-sd)-1,nd>>=-sd,sd+=ed;sd>0;rd=rd*256+e[t+cd],cd+=ld,sd-=8);if(nd===0)nd=1-od;else if(nd===ad)return rd?NaN:(ud?-1:1)*(1/0);else rd+=2**ed,nd-=od;return(ud?-1:1)*rd*2**(nd-ed)},e.write=function(e,t,$,ed,td,nd){var rd,id,ad,od=nd*8-td-1,sd=(1<<od)-1,cd=sd>>1,ld=td===23?2**-24-2**-77:0,ud=ed?0:nd-1,dd=ed?1:-1,fd=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(id=+!!isNaN(t),rd=sd):(rd=Math.floor(Math.log(t)/Math.LN2),t*(ad=2**-rd)<1&&(rd--,ad*=2),rd+cd>=1?t+=ld/ad:t+=ld*2**(1-cd),t*ad>=2&&(rd++,ad/=2),rd+cd>=sd?(id=0,rd=sd):rd+cd>=1?(id=(t*ad-1)*2**td,rd+=cd):(id=t*2**(cd-1)*2**td,rd=0));td>=8;e[$+ud]=id&255,ud+=dd,id/=256,td-=8);for(rd=rd<<td|id,od+=td;od>0;e[$+ud]=rd&255,ud+=dd,rd/=256,od-=8);e[$+ud-dd]|=fd*128}})),require_buffer$1=__commonJSMin((e=>{var t=require_base64_js(),$=require_ieee754(),ed=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=id,e.SlowBuffer=hd,e.INSPECT_MAX_BYTES=50;var td=2147483647;e.kMaxLength=td,id.TYPED_ARRAY_SUPPORT=nd(),!id.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
320function nd(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(id.prototype,`parent`,{enumerable:!0,get:function(){if(id.isBuffer(this))return this.buffer}}),Object.defineProperty(id.prototype,`offset`,{enumerable:!0,get:function(){if(id.isBuffer(this))return this.byteOffset}});function rd(e){if(e>td)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,id.prototype),t}function id(e,t,$){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return cd(e)}return ad(e,t,$)}id.poolSize=8192;function ad(e,t,$){if(typeof e==`string`)return ld(e,t);if(ArrayBuffer.isView(e))return dd(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Kd(e,ArrayBuffer)||e&&Kd(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Kd(e,SharedArrayBuffer)||e&&Kd(e.buffer,SharedArrayBuffer)))return fd(e,t,$);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var ed=e.valueOf&&e.valueOf();if(ed!=null&&ed!==e)return id.from(ed,t,$);var td=pd(e);if(td)return td;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return id.from(e[Symbol.toPrimitive](`string`),t,$);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}id.from=function(e,t,$){return ad(e,t,$)},Object.setPrototypeOf(id.prototype,Uint8Array.prototype),Object.setPrototypeOf(id,Uint8Array);function od(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function sd(e,t,$){return od(e),e<=0||t===void 0?rd(e):typeof $==`string`?rd(e).fill(t,$):rd(e).fill(t)}id.alloc=function(e,t,$){return sd(e,t,$)};function cd(e){return od(e),rd(e<0?0:md(e)|0)}id.allocUnsafe=function(e){return cd(e)},id.allocUnsafeSlow=function(e){return cd(e)};function ld(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!id.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var $=gd(e,t)|0,ed=rd($),td=ed.write(e,t);return td!==$&&(ed=ed.slice(0,td)),ed}function ud(e){for(var t=e.length<0?0:md(e.length)|0,$=rd(t),ed=0;ed<t;ed+=1)$[ed]=e[ed]&255;return $}function dd(e){if(Kd(e,Uint8Array)){var t=new Uint8Array(e);return fd(t.buffer,t.byteOffset,t.byteLength)}return ud(e)}function fd(e,t,$){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+($||0))throw RangeError(`"length" is outside of buffer bounds`);var ed=t===void 0&&$===void 0?new Uint8Array(e):$===void 0?new Uint8Array(e,t):new Uint8Array(e,t,$);return Object.setPrototypeOf(ed,id.prototype),ed}function pd(e){if(id.isBuffer(e)){var t=md(e.length)|0,$=rd(t);return $.length===0||e.copy($,0,0,t),$}if(e.length!==void 0)return typeof e.length!=`number`||qd(e.length)?rd(0):ud(e);if(e.type===`Buffer`&&Array.isArray(e.data))return ud(e.data)}function md(e){if(e>=td)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+td.toString(16)+` bytes`);return e|0}function hd(e){return+e!=e&&(e=0),id.alloc(+e)}id.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==id.prototype},id.compare=function(e,t){if(Kd(e,Uint8Array)&&(e=id.from(e,e.offset,e.byteLength)),Kd(t,Uint8Array)&&(t=id.from(t,t.offset,t.byteLength)),!id.isBuffer(e)||!id.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var $=e.length,ed=t.length,td=0,nd=Math.min($,ed);td<nd;++td)if(e[td]!==t[td]){$=e[td],ed=t[td];break}return $<ed?-1:+(ed<$)},id.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},id.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return id.alloc(0);var $;if(t===void 0)for(t=0,$=0;$<e.length;++$)t+=e[$].length;var ed=id.allocUnsafe(t),td=0;for($=0;$<e.length;++$){var nd=e[$];if(Kd(nd,Uint8Array))td+nd.length>ed.length?id.from(nd).copy(ed,td):Uint8Array.prototype.set.call(ed,nd,td);else if(id.isBuffer(nd))nd.copy(ed,td);else throw TypeError(`"list" argument must be an Array of Buffers`);td+=nd.length}return ed};function gd(e,t){if(id.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Kd(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var $=e.length,ed=arguments.length>2&&arguments[2]===!0;if(!ed&&$===0)return 0;for(var td=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return $;case`utf8`:case`utf-8`:return Vd(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return $*2;case`hex`:return $>>>1;case`base64`:return Wd(e).length;default:if(td)return ed?-1:Vd(e).length;t=(``+t).toLowerCase(),td=!0}}id.byteLength=gd;function _d(e,t,$){var ed=!1;if((t===void 0||t<0)&&(t=0),t>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,t>>>=0,$<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return Md(this,t,$);case`utf8`:case`utf-8`:return Dd(this,t,$);case`ascii`:return Ad(this,t,$);case`latin1`:case`binary`:return jd(this,t,$);case`base64`:return Ed(this,t,$);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return Nd(this,t,$);default:if(ed)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),ed=!0}}id.prototype._isBuffer=!0;function vd(e,t,$){var ed=e[t];e[t]=e[$],e[$]=ed}id.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)vd(this,t,t+1);return this},id.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)vd(this,t,t+3),vd(this,t+1,t+2);return this},id.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)vd(this,t,t+7),vd(this,t+1,t+6),vd(this,t+2,t+5),vd(this,t+3,t+4);return this},id.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?Dd(this,0,e):_d.apply(this,arguments)}
vendor: 4,960 bytes, line 320
320,id.prototype.toLocaleString=id.prototype.toString,id.prototype.equals=function(e){if(!id.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:id.compare(this,e)===0},id.prototype.inspect=function(){var t=``,$=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,$).replace(/(.{2})/g,`$1 `).trim(),this.length>$&&(t+=` ... `),`<Buffer `+t+`>`},ed&&(id.prototype[ed]=id.prototype.inspect),id.prototype.compare=function(e,t,$,ed,td){if(Kd(e,Uint8Array)&&(e=id.from(e,e.offset,e.byteLength)),!id.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),$===void 0&&($=e?e.length:0),ed===void 0&&(ed=0),td===void 0&&(td=this.length),t<0||$>e.length||ed<0||td>this.length)throw RangeError(`out of range index`);if(ed>=td&&t>=$)return 0;if(ed>=td)return-1;if(t>=$)return 1;if(t>>>=0,$>>>=0,ed>>>=0,td>>>=0,this===e)return 0;for(var nd=td-ed,rd=$-t,ad=Math.min(nd,rd),od=this.slice(ed,td),sd=e.slice(t,$),cd=0;cd<ad;++cd)if(od[cd]!==sd[cd]){nd=od[cd],rd=sd[cd];break}return nd<rd?-1:+(rd<nd)};function yd(e,t,$,ed,td){if(e.length===0)return-1;if(typeof $==`string`?(ed=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,qd($)&&($=td?0:e.length-1),$<0&&($=e.length+$),$>=e.length){if(td)return-1;$=e.length-1}else if($<0)if(td)$=0;else return-1;if(typeof t==`string`&&(t=id.from(t,ed)),id.isBuffer(t))return t.length===0?-1:bd(e,t,$,ed,td);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?td?Uint8Array.prototype.indexOf.call(e,t,$):Uint8Array.prototype.lastIndexOf.call(e,t,$):bd(e,[t],$,ed,td);throw TypeError(`val must be string, number or Buffer`)}function bd(e,t,$,ed,td){var nd=1,rd=e.length,id=t.length;if(ed!==void 0&&(ed=String(ed).toLowerCase(),ed===`ucs2`||ed===`ucs-2`||ed===`utf16le`||ed===`utf-16le`)){if(e.length<2||t.length<2)return-1;nd=2,rd/=2,id/=2,$/=2}function ad(e,t){return nd===1?e[t]:e.readUInt16BE(t*nd)}var od;if(td){var sd=-1;for(od=$;od<rd;od++)if(ad(e,od)===ad(t,sd===-1?0:od-sd)){if(sd===-1&&(sd=od),od-sd+1===id)return sd*nd}else sd!==-1&&(od-=od-sd),sd=-1}else for($+id>rd&&($=rd-id),od=$;od>=0;od--){for(var cd=!0,ld=0;ld<id;ld++)if(ad(e,od+ld)!==ad(t,ld)){cd=!1;break}if(cd)return od}return-1}id.prototype.includes=function(e,t,$){return this.indexOf(e,t,$)!==-1},id.prototype.indexOf=function(e,t,$){return yd(this,e,t,$,!0)},id.prototype.lastIndexOf=function(e,t,$){return yd(this,e,t,$,!1)};function xd(e,t,$,ed){$=Number($)||0;var td=e.length-$;ed?(ed=Number(ed),ed>td&&(ed=td)):ed=td;var nd=t.length;ed>nd/2&&(ed=nd/2);for(var rd=0;rd<ed;++rd){var id=parseInt(t.substr(rd*2,2),16);if(qd(id))return rd;e[$+rd]=id}return rd}function Sd(e,t,$,ed){return Gd(Vd(t,e.length-$),e,$,ed)}function Cd(e,t,$,ed){return Gd(Hd(t),e,$,ed)}function wd(e,t,$,ed){return Gd(Wd(t),e,$,ed)}function Td(e,t,$,ed){return Gd(Ud(t,e.length-$),e,$,ed)}id.prototype.write=function(e,t,$,ed){if(t===void 0)ed=`utf8`,$=this.length,t=0;else if($===void 0&&typeof t==`string`)ed=t,$=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite($)?($>>>=0,ed===void 0&&(ed=`utf8`)):(ed=$,$=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var td=this.length-t;if(($===void 0||$>td)&&($=td),e.length>0&&($<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);ed||=`utf8`;for(var nd=!1;;)switch(ed){case`hex`:return xd(this,e,t,$);case`utf8`:case`utf-8`:return Sd(this,e,t,$);case`ascii`:case`latin1`:case`binary`:return Cd(this,e,t,$);case`base64`:return wd(this,e,t,$);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return Td(this,e,t,$);default:if(nd)throw TypeError(`Unknown encoding: `+ed);ed=(``+ed).toLowerCase(),nd=!0}},id.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function Ed(e,$,ed){return $===0&&ed===e.length?t.fromByteArray(e):t.fromByteArray(e.slice($,ed))}function Dd(e,t,$){$=Math.min(e.length,$);for(var ed=[],td=t;td<$;){var nd=e[td],rd=null,id=nd>239?4:nd>223?3:nd>191?2:1;if(td+id<=$){var ad,od,sd,cd;switch(id){case 1:nd<128&&(rd=nd);break;case 2:ad=e[td+1],(ad&192)==128&&(cd=(nd&31)<<6|ad&63,cd>127&&(rd=cd));break;case 3:ad=e[td+1],od=e[td+2],(ad&192)==128&&(od&192)==128&&(cd=(nd&15)<<12|(ad&63)<<6|od&63,cd>2047&&(cd<55296||cd>57343)&&(rd=cd));break;case 4:ad=e[td+1],od=e[td+2],sd=e[td+3],(ad&192)==128&&(od&192)==128&&(sd&192)==128&&(cd=(nd&15)<<18|(ad&63)<<12|(od&63)<<6|sd&63,cd>65535&&cd<1114112&&(rd=cd))}}rd===null?(rd=65533,id=1):rd>65535&&(rd-=65536,ed.push(rd>>>10&1023|55296),rd=56320|rd&1023),ed.push(rd),td+=id}return kd(ed)}var Od=4096;function kd(e){var t=e.length;if(t<=Od)return String.fromCharCode.apply(String,e);for(var $=``,ed=0;ed<t;)$+=String.fromCharCode.apply(String,e.slice(ed,ed+=Od));return $}function Ad(e,t,$){var ed=``;$=Math.min(e.length,$);for(var td=t;td<$;++td)ed+=String.fromCharCode(e[td]&127);return ed}
320function jd(e,t,$){var ed=``;$=Math.min(e.length,$);for(var td=t;td<$;++td)ed+=String.fromCharCode(e[td]);return ed}function Md(e,t,$){var ed=e.length;(!t||t<0)&&(t=0),(!$||$<0||$>ed)&&($=ed);for(var td=``,nd=t;nd<$;++nd)td+=Jd[e[nd]];return td}function Nd(e,t,$){for(var ed=e.slice(t,$),td=``,nd=0;nd<ed.length-1;nd+=2)td+=String.fromCharCode(ed[nd]+ed[nd+1]*256);return td}id.prototype.slice=function(e,t){var $=this.length;e=~~e,t=t===void 0?$:~~t,e<0?(e+=$,e<0&&(e=0)):e>$&&(e=$),t<0?(t+=$,t<0&&(t=0)):t>$&&(t=$),t<e&&(t=e);var ed=this.subarray(e,t);return Object.setPrototypeOf(ed,id.prototype),ed};function Pd(e,t,$){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>$)throw RangeError(`Trying to access beyond buffer length`)}id.prototype.readUintLE=id.prototype.readUIntLE=function(e,t,$){e>>>=0,t>>>=0,$||Pd(e,t,this.length);for(var ed=this[e],td=1,nd=0;++nd<t&&(td*=256);)ed+=this[e+nd]*td;return ed},id.prototype.readUintBE=id.prototype.readUIntBE=function(e,t,$){e>>>=0,t>>>=0,$||Pd(e,t,this.length);for(var ed=this[e+--t],td=1;t>0&&(td*=256);)ed+=this[e+--t]*td;return ed},id.prototype.readUint8=id.prototype.readUInt8=function(e,t){return e>>>=0,t||Pd(e,1,this.length),this[e]},id.prototype.readUint16LE=id.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Pd(e,2,this.length),this[e]|this[e+1]<<8},id.prototype.readUint16BE=id.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Pd(e,2,this.length),this[e]<<8|this[e+1]},id.prototype.readUint32LE=id.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},id.prototype.readUint32BE=id.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},id.prototype.readIntLE=function(e,t,$){e>>>=0,t>>>=0,$||Pd(e,t,this.length);for(var ed=this[e],td=1,nd=0;++nd<t&&(td*=256);)ed+=this[e+nd]*td;return td*=128,ed>=td&&(ed-=2**(8*t)),ed},id.prototype.readIntBE=function(e,t,$){e>>>=0,t>>>=0,$||Pd(e,t,this.length);for(var ed=t,td=1,nd=this[e+--ed];ed>0&&(td*=256);)nd+=this[e+--ed]*td;return td*=128,nd>=td&&(nd-=2**(8*t)),nd},id.prototype.readInt8=function(e,t){return e>>>=0,t||Pd(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},id.prototype.readInt16LE=function(e,t){e>>>=0,t||Pd(e,2,this.length);var $=this[e]|this[e+1]<<8;return $&32768?$|4294901760:$},id.prototype.readInt16BE=function(e,t){e>>>=0,t||Pd(e,2,this.length);var $=this[e+1]|this[e]<<8;return $&32768?$|4294901760:$},id.prototype.readInt32LE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},id.prototype.readInt32BE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},id.prototype.readFloatLE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),$.read(this,e,!0,23,4)},id.prototype.readFloatBE=function(e,t){return e>>>=0,t||Pd(e,4,this.length),$.read(this,e,!1,23,4)},id.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Pd(e,8,this.length),$.read(this,e,!0,52,8)},id.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Pd(e,8,this.length),$.read(this,e,!1,52,8)};function Fd(e,t,$,ed,td,nd){if(!id.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>td||t<nd)throw RangeError(`"value" argument is out of bounds`);if($+ed>e.length)throw RangeError(`Index out of range`)}id.prototype.writeUintLE=id.prototype.writeUIntLE=function(e,t,$,ed){if(e=+e,t>>>=0,$>>>=0,!ed){var td=2**(8*$)-1;Fd(this,e,t,$,td,0)}var nd=1,rd=0;for(this[t]=e&255;++rd<$&&(nd*=256);)this[t+rd]=e/nd&255;return t+$},id.prototype.writeUintBE=id.prototype.writeUIntBE=function(e,t,$,ed){if(e=+e,t>>>=0,$>>>=0,!ed){var td=2**(8*$)-1;Fd(this,e,t,$,td,0)}var nd=$-1,rd=1;for(this[t+nd]=e&255;--nd>=0&&(rd*=256);)this[t+nd]=e/rd&255;return t+$},id.prototype.writeUint8=id.prototype.writeUInt8=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,1,255,0),this[t]=e&255,t+1},id.prototype.writeUint16LE=id.prototype.writeUInt16LE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},id.prototype.writeUint16BE=id.prototype.writeUInt16BE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},id.prototype.writeUint32LE=id.prototype.writeUInt32LE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},id.prototype.writeUint32BE=id.prototype.writeUInt32BE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},id.prototype.writeIntLE=function(e,t,$,ed){if(e=+e,t>>>=0,!ed){var td=2**(8*$-1);Fd(this,e,t,$,td-1,-td)}var nd=0,rd=1,id=0;for(this[t]=e&255;++nd<$&&(rd*=256);)e<0&&id===0&&this[t+nd-1]!==0&&(id=1),this[t+nd]=(e/rd>>0)-id&255;return t+$},id.prototype.writeIntBE=function(e,t,$,ed){if(e=+e,t>>>=0,!ed){var td=2**(8*$-1);Fd(this,e,t,$,td-1,-td)}var nd=$-1,rd=1,id=0;for(this[t+nd]=e&255;--nd>=0&&(rd*=256);)e<0&&id===0&&this[t+nd+1]!==0&&(id=1),this[t+nd]=(e/rd>>0)-id&255;return t+$},id.prototype.writeInt8=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},id.prototype.writeInt16LE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},id.prototype.writeInt16BE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},id.prototype.writeInt32LE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},id.prototype.writeInt32BE=function(e,t,$){return e=+e,t>>>=0,$||Fd(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Id(e,t,$,ed,td,nd){if($+ed>e.length||$<0)throw RangeError(`Index out of range`)}function Ld(e,t,ed,td,nd){return t=+t,ed>>>=0,nd||Id(e,t,ed,4,34028234663852886e22,-34028234663852886e22),$.write(e,t,ed,td,23,4),ed+4}id.prototype.writeFloatLE=function(e,t,$){return Ld(this,e,t,!0,$)},id.prototype.writeFloatBE=function(e,t,$){return Ld(this,e,t,!1,$)};function Rd(e,t,ed,td,nd){return t=+t,ed>>>=0,nd||Id(e,t,ed,8,17976931348623157e292,-17976931348623157e292),$.write(e,t,ed,td,52,8),ed+8}id.prototype.writeDoubleLE=function(e,t,$){return Rd(this,e,t,!0,$)},id.prototype.writeDoubleBE=function(e,t,$){return Rd(this,e,t,!1,$)},id.prototype.copy=function(e,t,$,ed){if(!id.isBuffer(e))throw TypeError(`argument should be a Buffer`);if($||=0,!ed&&ed!==0&&(ed=this.length),t>=e.length&&(t=e.length),t||=0,ed>0&&ed<$&&(ed=$),ed===$||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if($<0||$>=this.length)throw RangeError(`Index out of range`);if(ed<0)throw RangeError(`sourceEnd out of bounds`);ed>this.length&&(ed=this.length),e.length-t<ed-$&&(ed=e.length-t+$);var td=ed-$;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,$,ed):Uint8Array.prototype.set.call(e,this.subarray($,ed),t),td},id.prototype.fill=function(e,t,$,ed){if(typeof e==`string`){if(typeof t==`string`?(ed=t,t=0,$=this.length):typeof $==`string`&&(ed=$,$=this.length),ed!==void 0&&typeof ed!=`string`)throw TypeError(`encoding must be a string`);if(typeof ed==`string`&&!id.isEncoding(ed))throw TypeError(`Unknown encoding: `+ed);if(e.length===1){var td=e.charCodeAt(0);(ed===`utf8`&&td<128||ed===`latin1`)&&(e=td)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<$)throw RangeError(`Out of range index`);if($<=t)return this;t>>>=0,$=$===void 0?this.length:$>>>0,e||=0;var nd;if(typeof e==`number`)for(nd=t;nd<$;++nd)this[nd]=e;else{var rd=id.isBuffer(e)?e:id.from(e,ed),ad=rd.length;
vendor: 8,718 bytes, line 320
320if(ad===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(nd=0;nd<$-t;++nd)this[nd+t]=rd[nd%ad]}return this};var zd=/[^+/0-9A-Za-z-_]/g;function Bd(e){if(e=e.split(`=`)[0],e=e.trim().replace(zd,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function Vd(e,t){t||=1/0;for(var $,ed=e.length,td=null,nd=[],rd=0;rd<ed;++rd){if($=e.charCodeAt(rd),$>55295&&$<57344){if(!td){if($>56319){(t-=3)>-1&&nd.push(239,191,189);continue}else if(rd+1===ed){(t-=3)>-1&&nd.push(239,191,189);continue}td=$;continue}if($<56320){(t-=3)>-1&&nd.push(239,191,189),td=$;continue}$=(td-55296<<10|$-56320)+65536}else td&&(t-=3)>-1&&nd.push(239,191,189);if(td=null,$<128){if(--t<0)break;nd.push($)}else if($<2048){if((t-=2)<0)break;nd.push($>>6|192,$&63|128)}else if($<65536){if((t-=3)<0)break;nd.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((t-=4)<0)break;nd.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error(`Invalid code point`)}return nd}function Hd(e){for(var t=[],$=0;$<e.length;++$)t.push(e.charCodeAt($)&255);return t}function Ud(e,t){for(var $,ed,td,nd=[],rd=0;rd<e.length&&!((t-=2)<0);++rd)$=e.charCodeAt(rd),ed=$>>8,td=$%256,nd.push(td),nd.push(ed);return nd}function Wd(e){return t.toByteArray(Bd(e))}function Gd(e,t,$,ed){for(var td=0;td<ed&&!(td+$>=t.length||td>=e.length);++td)t[td+$]=e[td];return td}function Kd(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function qd(e){return e!==e}var Jd=(function(){for(var e=`0123456789abcdef`,t=Array(256),$=0;$<16;++$)for(var ed=$*16,td=0;td<16;++td)t[ed+td]=e[$]+e[td];return t})()})),require_safe_buffer$4=__commonJSMin(((e,t)=>{var $=require_buffer$1(),ed=$.Buffer;function td(e,t){for(var $ in e)t[$]=e[$]}ed.from&&ed.alloc&&ed.allocUnsafe&&ed.allocUnsafeSlow?t.exports=$:(td($,e),e.Buffer=nd);function nd(e,t,$){return ed(e,t,$)}nd.prototype=Object.create(ed.prototype),td(ed,nd),nd.from=function(e,t,$){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return ed(e,t,$)},nd.alloc=function(e,t,$){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var td=ed(e);return t===void 0?td.fill(0):typeof $==`string`?td.fill(t,$):td.fill(t),td},nd.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return ed(e)},nd.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return $.SlowBuffer(e)}})),require_events=__commonJSMin(((e,t)=>{var $=typeof Reflect==`object`?Reflect:null,ed=$&&typeof $.apply==`function`?$.apply:function(e,t,$){return Function.prototype.apply.call(e,t,$)},td=$&&typeof $.ownKeys==`function`?$.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function nd(e){console&&console.warn&&console.warn(e)}var rd=Number.isNaN||function(e){return e!==e};function id(){id.init.call(this)}t.exports=id,t.exports.once=gd,id.EventEmitter=id,id.prototype._events=void 0,id.prototype._eventsCount=0,id.prototype._maxListeners=void 0;var ad=10;function od(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(id,`defaultMaxListeners`,{enumerable:!0,get:function(){return ad},set:function(e){if(typeof e!=`number`||e<0||rd(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);ad=e}}),id.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},id.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||rd(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function sd(e){return e._maxListeners===void 0?id.defaultMaxListeners:e._maxListeners}id.prototype.getMaxListeners=function(){return sd(this)},id.prototype.emit=function(e){for(var t=[],$=1;$<arguments.length;$++)t.push(arguments[$]);var td=e===`error`,nd=this._events;if(nd!==void 0)td&&=nd.error===void 0;else if(!td)return!1;if(td){var rd;if(t.length>0&&(rd=t[0]),rd instanceof Error)throw rd;var id=Error(`Unhandled error.`+(rd?` (`+rd.message+`)`:``));throw id.context=rd,id}var ad=nd[e];if(ad===void 0)return!1;if(typeof ad==`function`)ed(ad,this,t);else for(var od=ad.length,sd=pd(ad,od),$=0;$<od;++$)ed(sd[$],this,t);return!0};function cd(e,t,$,ed){var td,rd,id;if(od($),rd=e._events,rd===void 0?(rd=e._events=Object.create(null),e._eventsCount=0):(rd.newListener!==void 0&&(e.emit(`newListener`,t,$.listener?$.listener:$),rd=e._events),id=rd[t]),id===void 0)id=rd[t]=$,++e._eventsCount;else if(typeof id==`function`?id=rd[t]=ed?[$,id]:[id,$]:ed?id.unshift($):id.push($),td=sd(e),td>0&&id.length>td&&!id.warned){id.warned=!0;var ad=Error(`Possible EventEmitter memory leak detected. `+id.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);ad.name=`MaxListenersExceededWarning`,ad.emitter=e,ad.type=t,ad.count=id.length,nd(ad)}return e}id.prototype.addListener=function(e,t){return cd(this,e,t,!1)},id.prototype.on=id.prototype.addListener,id.prototype.prependListener=function(e,t){return cd(this,e,t,!0)};function ld(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ud(e,t,$){var ed={fired:!1,wrapFn:void 0,target:e,type:t,listener:$},td=ld.bind(ed);return td.listener=$,ed.wrapFn=td,td}id.prototype.once=function(e,t){return od(t),this.on(e,ud(this,e,t)),this},id.prototype.prependOnceListener=function(e,t){return od(t),this.prependListener(e,ud(this,e,t)),this},id.prototype.removeListener=function(e,t){var $,ed,td,nd,rd;if(od(t),ed=this._events,ed===void 0||($=ed[e],$===void 0))return this;if($===t||$.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete ed[e],ed.removeListener&&this.emit(`removeListener`,e,$.listener||t));else if(typeof $!=`function`){for(td=-1,nd=$.length-1;nd>=0;nd--)if($[nd]===t||$[nd].listener===t){rd=$[nd].listener,td=nd;break}if(td<0)return this;td===0?$.shift():md($,td),$.length===1&&(ed[e]=$[0]),ed.removeListener!==void 0&&this.emit(`removeListener`,e,rd||t)}return this},id.prototype.off=id.prototype.removeListener,id.prototype.removeAllListeners=function(e){var t,$=this._events,ed;if($===void 0)return this;if($.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):$[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete $[e]),this;if(arguments.length===0){var td=Object.keys($),nd;for(ed=0;ed<td.length;++ed)nd=td[ed],nd!==`removeListener`&&this.removeAllListeners(nd);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=$[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(ed=t.length-1;ed>=0;ed--)this.removeListener(e,t[ed]);return this};function dd(e,t,$){var ed=e._events;if(ed===void 0)return[];var td=ed[t];return td===void 0?[]:typeof td==`function`?$?[td.listener||td]:[td]:$?hd(td):pd(td,td.length)}id.prototype.listeners=function(e){return dd(this,e,!0)},id.prototype.rawListeners=function(e){return dd(this,e,!1)},id.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):fd.call(e,t)},id.prototype.listenerCount=fd;function fd(e){var t=this._events;if(t!==void 0){var $=t[e];if(typeof $==`function`)return 1;if($!==void 0)return $.length}return 0}id.prototype.eventNames=function(){return this._eventsCount>0?td(this._events):[]};function pd(e,t){for(var $=Array(t),ed=0;ed<t;++ed)$[ed]=e[ed];return $}function md(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function hd(e){for(var t=Array(e.length),$=0;$<t.length;++$)t[$]=e[$].listener||e[$];return t}function gd(e,t){return new Promise(function($,ed){function td($){e.removeListener(t,nd),ed($)}function nd(){typeof e.removeListener==`function`&&e.removeListener(`error`,td),$([].slice.call(arguments))}vd(e,t,nd,{once:!0}),t!==`error`&&_d(e,td,{once:!0})})}function _d(e,t,$){typeof e.on==`function`&&vd(e,`error`,t,$)}function vd(e,t,$,ed){if(typeof e.on==`function`)ed.once?e.once(t,$):e.on(t,$);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function td(nd){ed.once&&e.removeEventListener(t,td),$(nd)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}}
320)),require_stream_browser$2=__commonJSMin(((e,t)=>{t.exports=require_events().EventEmitter})),require_buffer_list=__commonJSMin(((e,t)=>{function $(e,t){var $=Object.keys(e);if(Object.getOwnPropertySymbols){var ed=Object.getOwnPropertySymbols(e);t&&(ed=ed.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),$.push.apply($,ed)}return $}function ed(e){for(var t=1;t<arguments.length;t++){var ed=arguments[t]==null?{}:arguments[t];t%2?$(Object(ed),!0).forEach(function(t){td(e,t,ed[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(ed)):$(Object(ed)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(ed,t))})}return e}function td(e,t,$){return t=ad(t),t in e?Object.defineProperty(e,t,{value:$,enumerable:!0,configurable:!0,writable:!0}):e[t]=$,e}function nd(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function rd(e,t){for(var $=0;$<t.length;$++){var ed=t[$];ed.enumerable=ed.enumerable||!1,ed.configurable=!0,`value`in ed&&(ed.writable=!0),Object.defineProperty(e,ad(ed.key),ed)}}function id(e,t,$){return t&&rd(e.prototype,t),$&&rd(e,$),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ad(e){var t=od(e,`string`);return typeof t==`symbol`?t:String(t)}function od(e,t){if(typeof e!=`object`||!e)return e;var $=e[Symbol.toPrimitive];if($!==void 0){var ed=$.call(e,t||`default`);if(typeof ed!=`object`)return ed;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var sd=require_buffer$1().Buffer,cd=require_util$1().inspect,ld=cd&&cd.custom||`inspect`;function ud(e,t,$){sd.prototype.copy.call(e,t,$)}t.exports=function(){function e(){nd(this,e),this.head=null,this.tail=null,this.length=0}return id(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,$=``+t.data;t=t.next;)$+=e+t.data;return $}},{key:`concat`,value:function(e){if(this.length===0)return sd.alloc(0);for(var t=sd.allocUnsafe(e>>>0),$=this.head,ed=0;$;)ud($.data,t,ed),ed+=$.data.length,$=$.next;return t}},{key:`consume`,value:function(e,t){var $;return e<this.head.data.length?($=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):$=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),$}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,$=1,ed=t.data;for(e-=ed.length;t=t.next;){var td=t.data,nd=e>td.length?td.length:e;if(nd===td.length?ed+=td:ed+=td.slice(0,e),e-=nd,e===0){nd===td.length?(++$,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=td.slice(nd));break}++$}return this.length-=$,ed}},{key:`_getBuffer`,value:function(e){var t=sd.allocUnsafe(e),$=this.head,ed=1;for($.data.copy(t),e-=$.data.length;$=$.next;){var td=$.data,nd=e>td.length?td.length:e;if(td.copy(t,t.length-e,0,nd),e-=nd,e===0){nd===td.length?(++ed,$.next?this.head=$.next:this.head=this.tail=null):(this.head=$,$.data=td.slice(nd));break}++ed}return this.length-=ed,t}},{key:ld,value:function(e,t){return cd(this,ed(ed({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),require_destroy$2=__commonJSMin(((e,t)=>{init_dist();function $(e,t){var $=this,nd=this._readableState&&this._readableState.destroyed,id=this._writableState&&this._writableState.destroyed;return nd||id?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(rd,this,e)):process$1.nextTick(rd,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?$._writableState?$._writableState.errorEmitted?process$1.nextTick(td,$):($._writableState.errorEmitted=!0,process$1.nextTick(ed,$,e)):process$1.nextTick(ed,$,e):t?(process$1.nextTick(td,$),t(e)):process$1.nextTick(td,$)}),this)}function ed(e,t){rd(e,t),td(e)}function td(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}
320function nd(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rd(e,t){e.emit(`error`,t)}function id(e,t){var $=e._readableState,ed=e._writableState;$&&$.autoDestroy||ed&&ed.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:$,undestroy:nd,errorOrDestroy:id}})),require_errors_browser=__commonJSMin(((e,t)=>{function $(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ed={};function td(e,t,td){td||=Error;function nd(e,$,ed){return typeof t==`string`?t:t(e,$,ed)}var rd=function(e){$(t,e);function t(t,$,ed){return e.call(this,nd(t,$,ed))||this}return t}(td);rd.prototype.name=td.name,rd.prototype.code=e,ed[e]=rd}function nd(e,t){if(Array.isArray(e)){var $=e.length;return e=e.map(function(e){return String(e)}),$>2?`one of ${t} ${e.slice(0,$-1).join(`, `)}, or `+e[$-1]:$===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function rd(e,t,$){return e.substr(!$||$<0?0:+$,t.length)===t}function id(e,t,$){return($===void 0||$>e.length)&&($=e.length),e.substring($-t.length,$)===t}function ad(e,t,$){return typeof $!=`number`&&($=0),$+t.length>e.length?!1:e.indexOf(t,$)!==-1}td(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),td(`ERR_INVALID_ARG_TYPE`,function(e,t,$){var ed;typeof t==`string`&&rd(t,`not `)?(ed=`must not be`,t=t.replace(/^not /,``)):ed=`must be`;var td=id(e,` argument`)?`The ${e} ${ed} ${nd(t,`type`)}`:`The "${e}" ${ad(e,`.`)?`property`:`argument`} ${ed} ${nd(t,`type`)}`;return td+=`. Received type ${typeof $}`,td},TypeError),td(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),td(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),td(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),td(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),td(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),td(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),td(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),td(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),td(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),td(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=ed})),require_state=__commonJSMin(((e,t)=>{var $=require_errors_browser().codes.ERR_INVALID_OPT_VALUE;function ed(e,t,$){return e.highWaterMark==null?t?e[$]:null:e.highWaterMark}function td(e,t,td,nd){var rd=ed(t,nd,td);if(rd!=null){if(!(isFinite(rd)&&Math.floor(rd)===rd)||rd<0)throw new $(nd?td:`highWaterMark`,rd);return Math.floor(rd)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:td}})),require_browser$12=__commonJSMin(((e,t)=>{init_dist$1(),t.exports=$;function $(e,t){if(ed(`noDeprecation`))return e;var $=!1;function td(){if(!$){if(ed(`throwDeprecation`))throw Error(t);ed(`traceDeprecation`)?console.trace(t):console.warn(t),$=!0}return e.apply(this,arguments)}return td}function ed(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),require__stream_writable$2=__commonJSMin(((e,t)=>{init_dist$1(),init_dist(),t.exports=Sd;function $(e){var t=this;this.next=null,this.entry=null,this.finish=function(){zd(t,e)}}var ed;Sd.WritableState=bd;var td={deprecate:require_browser$12()},nd=require_stream_browser$2(),rd=require_buffer$1().Buffer,id=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function ad(e){return rd.from(e)}function od(e){return rd.isBuffer(e)||e instanceof id}var sd=require_destroy$2(),cd=require_state().getHighWaterMark,ld=require_errors_browser().codes,ud=ld.ERR_INVALID_ARG_TYPE,dd=ld.ERR_METHOD_NOT_IMPLEMENT
320ED,fd=ld.ERR_MULTIPLE_CALLBACK,pd=ld.ERR_STREAM_CANNOT_PIPE,md=ld.ERR_STREAM_DESTROYED,hd=ld.ERR_STREAM_NULL_VALUES,gd=ld.ERR_STREAM_WRITE_AFTER_END,_d=ld.ERR_UNKNOWN_ENCODING,vd=sd.errorOrDestroy;require_inherits_browser()(Sd,nd);function yd(){}function bd(e,t,td){ed||=require__stream_duplex$2(),e||={},typeof td!=`boolean`&&(td=t instanceof ed),this.objectMode=!!e.objectMode,td&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=cd(this,e,`writableHighWaterMark`,td),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){Ad(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new $(this)}bd.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(bd.prototype,`buffer`,{get:td.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var xd;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(xd=Function.prototype[Symbol.hasInstance],Object.defineProperty(Sd,Symbol.hasInstance,{value:function(e){return xd.call(this,e)?!0:this===Sd?e&&e._writableState instanceof bd:!1}})):xd=function(e){return e instanceof this};function Sd(e){ed||=require__stream_duplex$2();var t=this instanceof ed;if(!t&&!xd.call(Sd,this))return new Sd(e);this._writableState=new bd(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),nd.call(this)}Sd.prototype.pipe=function(){vd(this,new pd)};function Cd(e,t){var $=new gd;vd(e,$),process$1.nextTick(t,$)}function wd(e,t,$,ed){var td;return $===null?td=new hd:typeof $!=`string`&&!t.objectMode&&(td=new ud(`chunk`,[`string`,`Buffer`],$)),td?(vd(e,td),process$1.nextTick(ed,td),!1):!0}Sd.prototype.write=function(e,t,$){var ed=this._writableState,td=!1,nd=!ed.objectMode&&od(e);return nd&&!rd.isBuffer(e)&&(e=ad(e)),typeof t==`function`&&($=t,t=null),nd?t=`buffer`:t||=ed.defaultEncoding,typeof $!=`function`&&($=yd),ed.ending?Cd(this,$):(nd||wd(this,ed,e,$))&&(ed.pendingcb++,td=Ed(this,ed,nd,e,t,$)),td},Sd.prototype.cork=function(){this._writableState.corked++},Sd.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Nd(this,e))},Sd.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new _d(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Sd.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Td(e,t,$){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=rd.from(t,$)),t}Object.defineProperty(Sd.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ed(e,t,$,ed,td,nd){if(!$){var rd=Td(t,ed,td);ed!==rd&&($=!0,td=`buffer`,ed=rd)}var id=t.objectMode?1:ed.length;t.length+=id;var ad=t.length<t.highWaterMark;if(ad||(t.needDrain=!0),t.writing||t.corked){var od=t.lastBufferedRequest;t.lastBufferedRequest={chunk:ed,encoding:td,isBuf:$,callback:nd,next:null},od?od.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Dd(e,t,!1,id,ed,td,nd);return ad}function Dd(e,t,$,ed,td,nd,rd){t.writelen=ed,t.writecb=rd,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new md(`write`)):$?e._writev(td,t.onwrite):e._write(td,nd,t.onwrite),t.sync=!1}function Od(e,t,$,ed,td){--t.pendingcb,$?(process$1.nextTick(td,ed),process$1.nextTick(Ld,e,t),e._writableState.errorEmitted=!0,vd(e,ed)):(td(ed),e._writableState.errorEmitted=!0,vd(e,ed),Ld(e,t))}function kd(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ad(e,t){var $=e._writableState,ed=$.sync,td=$.writecb;if(typeof td!=`function`)throw new fd;if(kd($),t)Od(e,$,ed,t,td);else{var nd=Pd($)||e.destroyed;!nd&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&Nd(e,$),ed?process$1.nextTick(jd,e,$,nd,td):jd(e,$,nd,td)}}
320function jd(e,t,$,ed){$||Md(e,t),t.pendingcb--,ed(),Ld(e,t)}function Md(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function Nd(e,t){t.bufferProcessing=!0;var ed=t.bufferedRequest;if(e._writev&&ed&&ed.next){var td=t.bufferedRequestCount,nd=Array(td),rd=t.corkedRequestsFree;rd.entry=ed;for(var id=0,ad=!0;ed;)nd[id]=ed,ed.isBuf||(ad=!1),ed=ed.next,id+=1;nd.allBuffers=ad,Dd(e,t,!0,t.length,nd,``,rd.finish),t.pendingcb++,t.lastBufferedRequest=null,rd.next?(t.corkedRequestsFree=rd.next,rd.next=null):t.corkedRequestsFree=new $(t),t.bufferedRequestCount=0}else{for(;ed;){var od=ed.chunk,sd=ed.encoding,cd=ed.callback;if(Dd(e,t,!1,t.objectMode?1:od.length,od,sd,cd),ed=ed.next,t.bufferedRequestCount--,t.writing)break}ed===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=ed,t.bufferProcessing=!1}Sd.prototype._write=function(e,t,$){$(new dd(`_write()`))},Sd.prototype._writev=null,Sd.prototype.end=function(e,t,$){var ed=this._writableState;return typeof e==`function`?($=e,e=null,t=null):typeof t==`function`&&($=t,t=null),e!=null&&this.write(e,t),ed.corked&&(ed.corked=1,this.uncork()),ed.ending||Rd(this,ed,$),this},Object.defineProperty(Sd.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function Pd(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fd(e,t){e._final(function($){t.pendingcb--,$&&vd(e,$),t.prefinished=!0,e.emit(`prefinish`),Ld(e,t)})}function Id(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process$1.nextTick(Fd,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function Ld(e,t){var $=Pd(t);
320if($&&(Id(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var ed=e._readableState;(!ed||ed.autoDestroy&&ed.endEmitted)&&e.destroy()}return $}function Rd(e,t,$){t.ending=!0,Ld(e,t),$&&(t.finished?process$1.nextTick($):e.once(`finish`,$)),t.ended=!0,e.writable=!1}function zd(e,t,$){var ed=e.entry;for(e.entry=null;ed;){var td=ed.callback;t.pendingcb--,td($),ed=ed.next}t.corkedRequestsFree.next=e}Object.defineProperty(Sd.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Sd.prototype.destroy=sd.destroy,Sd.prototype._undestroy=sd.undestroy,Sd.prototype._destroy=function(e,t){t(e)}})),require__stream_duplex$2=__commonJSMin(((e,t)=>{init_dist();var $=Object.keys||function(e){var t=[];for(var $ in e)t.push($);return t};t.exports=ad;var ed=require__stream_readable$2(),td=require__stream_writable$2();require_inherits_browser()(ad,ed);for(var nd=$(td.prototype),rd=0;rd<nd.length;rd++){var id=nd[rd];ad.prototype[id]||(ad.prototype[id]=td.prototype[id])}function ad(e){if(!(this instanceof ad))return new ad(e);ed.call(this,e),td.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,od)))}Object.defineProperty(ad.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ad.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ad.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function od(){this._writableState.ended||process$1.nextTick(sd,this)}function sd(e){e.end()}Object.defineProperty(ad.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),require_string_decoder$2=__commonJSMin((e=>{var t=require_safe_buffer$4().Buffer,$=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function ed(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function td(e){var td=ed(e);if(typeof td!=`string`&&(t.isEncoding===$||!$(e)))throw Error(`Unknown encoding: `+e);return td||e}e.StringDecoder=nd;function nd(e){this.encoding=td(e);var $;switch(this.encoding){case`utf16le`:this.text=ld,this.end=ud,$=4;break;case`utf8`:this.fillLast=od,$=4;break;case`base64`:this.text=dd,this.end=fd,$=3;break;default:this.write=pd,this.end=md;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe($)}nd.prototype.write=function(e){if(e.length===0)return``;var t,$;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;$=this.lastNeed,this.lastNeed=0}else $=0;return $<e.length?t?t+this.text(e,$):this.text(e,$):t||``},nd.prototype.end=cd,nd.prototype.text=sd,nd.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function rd(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function id(e,t,$){var ed=t.length-1;if(ed<$)return 0;var td=rd(t[ed]);return td>=0?(td>0&&(e.lastNeed=td-1),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(e.lastNeed=td-2),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(td===2?td=0:e.lastNeed=td-3),td):0))}function ad(e,t,$){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function od(e){var t=this.lastTotal-this.lastNeed,$=ad(this,e,t);if($!==void 0)return $;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sd(e,t){var $=id(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=$;var ed=e.length-($-this.lastNeed);return e.copy(this.lastChar,0,ed),e.toString(`utf8`,t,ed)}function cd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function ld(e,t){if((e.length-t)%2==0){var $=e.toString(`utf16le`,t);if($){var ed=$.charCodeAt($.length-1);if(ed>=55296&&ed<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function ud(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var $=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,$)}return t}function dd(e,t){var $=(e.length-t)%3;return $===0?e.toString(`base64`,t):(this.lastNeed=3-$,this.lastTotal=3,$
320===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-$))}function fd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function pd(e){return e.toString(this.encoding)}function md(e){return e&&e.length?this.write(e):``}})),require_end_of_stream=__commonJSMin(((e,t)=>{var $=require_errors_browser().codes.ERR_STREAM_PREMATURE_CLOSE;function ed(e){var t=!1;return function(){if(!t){t=!0;var $=[...arguments];e.apply(this,$)}}}function td(){}function nd(e){return e.setHeader&&typeof e.abort==`function`}function rd(e,t,id){if(typeof t==`function`)return rd(e,null,t);t||={},id=ed(id||td);var ad=t.readable||t.readable!==!1&&e.readable,od=t.writable||t.writable!==!1&&e.writable,sd=function(){e.writable||ld()},cd=e._writableState&&e._writableState.finished,ld=function(){od=!1,cd=!0,ad||id.call(e)},ud=e._readableState&&e._readableState.endEmitted,dd=function(){ad=!1,ud=!0,od||id.call(e)},fd=function(t){id.call(e,t)},pd=function(){var t;if(ad&&!ud)return(!e._readableState||!e._readableState.ended)&&(t=new $),id.call(e,t);if(od&&!cd)return(!e._writableState||!e._writableState.ended)&&(t=new $),id.call(e,t)},md=function(){e.req.on(`finish`,ld)};return nd(e)?(e.on(`complete`,ld),e.on(`abort`,pd),e.req?md():e.on(`request`,md)):od&&!e._writableState&&(e.on(`end`,sd),e.on(`close`,sd)),e.on(`end`,dd),e.on(`finish`,ld),t.error!==!1&&e.on(`error`,fd),e.on(`close`,pd),function(){e.removeListener(`complete`,ld),e.removeListener(`abort`,pd),e.removeListener(`request`,md),e.req&&e.req.removeListener(`finish`,ld),e.removeListener(`end`,sd),e.removeListener(`close`,sd),e.removeListener(`finish`,ld),e.removeListener(`end`,dd),e.removeListener(`error`,fd),e.removeListener(`close`,pd)}}t.exports=rd})),require_async_iterator=__commonJSMin(((e,t)=>{init_dist();var $;function ed(e,t,$){return t=td(t),t in e?Object.defineProperty(e,t,{value:$,enumerable:!0,configurable:!0,writable:!0}):e[t]=$,e}function td(e){var t=nd(e,`string`);return typeof t==`symbol`?t:String(t)}function nd(e,t){if(typeof e!=`object`||!e)return e;var $=e[Symbol.toPrimitive];if($!==void 0){var ed=$.call(e,t||`default`);if(typeof ed!=`object`)return ed;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rd=require_end_of_stream(),id=Symbol(`lastResolve`),ad=Symbol(`lastReject`),od=Symbol(`error`),sd=Symbol(`ended`),cd=Symbol(`lastPromise`),ld=Symbol(`handlePromise`),ud=Symbol(`stream`);function dd(e,t){return{value:e,done:t}}function fd(e){var t=e[id];if(t!==null){var $=e[ud].read();$!==null&&(e[cd]=null,e[id]=null,e[ad]=null,t(dd($,!1)))}}function pd(e){process$1.nextTick(fd,e)}function md(e,t){return function($,ed){e.then(function(){if(t[sd]){$(dd(void 0,!0));return}t[ld]($,ed)},ed)}}var hd=Object.getPrototypeOf(function(){}),gd=Object.setPrototypeOf(($={get stream(){return this[ud]},next:function(){var e=this,t=this[od];if(t!==null)return Promise.reject(t);if(this[sd])return Promise.resolve(dd(void 0,!0));if(this[ud].destroyed)return new Promise(function(t,$){process$1.nextTick(function(){e[od]?$(e[od]):t(dd(void 0,!0))})});var $=this[cd],ed;if($)ed=new Promise(md($,this));else{var td=this[ud].read();if(td!==null)return Promise.resolve(dd(td,!1));ed=new Promise(this[ld])}return this[cd]=ed,ed}},ed($,Symbol.asyncIterator,function(){return this}),ed($,`return`,function(){var e=this;return new Promise(function(t,$){e[ud].destroy(null,function(e){if(e){$(e);return}t(dd(void 0,!0))})})}),$),hd);t.exports=function(e){var t,$=Object.create(gd,(t={},ed(t,ud,{value:e,writable:!0}),ed(t,id,{value:null,writable:!0}),ed(t,ad,{value:null,writable:!0}),ed(t,od,{value:null,writable:!0}),ed(t,sd,{value:e._readableState.endEmitted,writable:!0}),ed(t,ld,{value:function(e,t){var ed=$[ud].read();ed?($[cd]=null,$[id]=null,$[ad]=null,e(dd(ed,!1))):($[id]=e,$[ad]=t)},writable:!0}),t));return $[cd]=null,rd(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=$[ad];t!==null&&($[cd]=null,$[id]=null,$[ad]=null,t(e)),$[od]=e;return}var ed=$[id];ed!==null&&($[cd]=null,$[id]=null,$[ad]=null,ed(dd(void 0,!0))),$[sd]=!0}),e.on(`readable`,pd.bind(null,$)),$}})),require_from_browser=__commonJSMin(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),require__stream_readable$2=__commonJSMin(((e,t)=>{init_dist$1(),init_dist(),t.exports=Cd;var $;Cd.ReadableState=Sd,require_events().EventEmitter;var ed=function(e,t){return e.listeners(t).length},td=require_stream_browser$2(),nd=require_buffer$1().Buffer,rd=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function id(e){return nd.from(e)}function ad(e){return nd.isBuffer(e)||e instanceof rd}var od=require_util$1(),sd=od&&od.debuglog?od.debuglog(`stream`):function(){},cd=require_buffer_list(),ld=require_destroy$2(),ud=require_state().getHighWaterMark,dd=require_errors_browser().codes,fd=dd.ERR_INVALID_ARG_TYPE,pd=dd.ERR_STREAM_PUSH_AFTER_EOF,md=dd.ERR_METHOD_NOT_IMPLEMENT
320ED,hd=dd.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,gd,_d,vd;require_inherits_browser()(Cd,td);var yd=ld.errorOrDestroy,bd=[`error`,`close`,`destroy`,`pause`,`resume`];function xd(e,t,$){if(typeof e.prependListener==`function`)return e.prependListener(t,$);!e._events||!e._events[t]?e.on(t,$):Array.isArray(e._events[t])?e._events[t].unshift($):e._events[t]=[$,e._events[t]]}function Sd(e,t,ed){$||=require__stream_duplex$2(),e||={},typeof ed!=`boolean`&&(ed=t instanceof $),this.objectMode=!!e.objectMode,ed&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=ud(this,e,`readableHighWaterMark`,ed),this.buffer=new cd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(gd||=require_string_decoder$2().StringDecoder,this.decoder=new gd(e.encoding),this.encoding=e.encoding)}function Cd(e){if($||=require__stream_duplex$2(),!(this instanceof Cd))return new Cd(e);var t=this instanceof $;this._readableState=new Sd(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),td.call(this)}Object.defineProperty(Cd.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),Cd.prototype.destroy=ld.destroy,Cd.prototype._undestroy=ld.undestroy,Cd.prototype._destroy=function(e,t){t(e)},Cd.prototype.push=function(e,t){var $=this._readableState,ed;return $.objectMode?ed=!0:typeof e==`string`&&(t||=$.defaultEncoding,t!==$.encoding&&(e=nd.from(e,t),t=``),ed=!0),wd(this,e,t,!1,ed)},Cd.prototype.unshift=function(e){return wd(this,e,null,!0,!1)};function wd(e,t,$,ed,td){sd(`readableAddChunk`,t);var rd=e._readableState;if(t===null)rd.reading=!1,Ad(e,rd);else{var ad;if(td||(ad=Ed(rd,t)),ad)yd(e,ad);else if(rd.objectMode||t&&t.length>0)if(typeof t!=`string`&&!rd.objectMode&&Object.getPrototypeOf(t)!==nd.prototype&&(t=id(t)),ed)rd.endEmitted?yd(e,new hd):Td(e,rd,t,!0);else if(rd.ended)yd(e,new pd);else if(rd.destroyed)return!1;else rd.reading=!1,rd.decoder&&!$?(t=rd.decoder.write(t),rd.objectMode||t.length!==0?Td(e,rd,t,!1):Nd(e,rd)):Td(e,rd,t,!1);else ed||(rd.reading=!1,Nd(e,rd))}return!rd.ended&&(rd.length<rd.highWaterMark||rd.length===0)}function Td(e,t,$,ed){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,$)):(t.length+=t.objectMode?1:$.length,ed?t.buffer.unshift($):t.buffer.push($),t.needReadable&&jd(e)),Nd(e,t)}function Ed(e,t){var $;return!ad(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&($=new fd(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),$}Cd.prototype.isPaused=function(){return this._readableState.flowing===!1},Cd.prototype.setEncoding=function(e){gd||=require_string_decoder$2().StringDecoder;var t=new gd(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var $=this._readableState.buffer.head,ed=``;$!==null;)ed+=t.write($.data),$=$.next;return this._readableState.buffer.clear(),ed!==``&&this._readableState.buffer.push(ed),this._readableState.length=ed.length,this};var Dd=1073741824;function Od(e){return e>=Dd?e=Dd:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function kd(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=Od(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}Cd.prototype.read=function(e){sd(`read`,e),e=parseInt(e,10);var t=this._readableState,$=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return sd(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?Hd(this):jd(this),null;if(e=kd(e,t),e===0&&t.ended)return t.length===0&&Hd(this),null;var ed=t.needReadable;sd(`need readable`,ed),(t.length===0||t.length-e<t.highWaterMark)&&
vendor: 5,236 bytes, line 320
320(ed=!0,sd(`length less than watermark`,ed)),t.ended||t.reading?(ed=!1,sd(`reading or ended`,ed)):ed&&(sd(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=kd($,t)));var td=e>0?Vd(e,t):null;return td===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),$!==e&&t.ended&&Hd(this)),td!==null&&this.emit(`data`,td),td};function Ad(e,t){if(sd(`onEofChunk`),!t.ended){if(t.decoder){var $=t.decoder.end();$&&$.length&&(t.buffer.push($),t.length+=t.objectMode?1:$.length)}t.ended=!0,t.sync?jd(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Md(e)))}}function jd(e){var t=e._readableState;sd(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(sd(`emitReadable`,t.flowing),t.emittedReadable=!0,process$1.nextTick(Md,e))}function Md(e){var t=e._readableState;sd(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Bd(e)}function Nd(e,t){t.readingMore||(t.readingMore=!0,process$1.nextTick(Pd,e,t))}function Pd(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var $=t.length;if(sd(`maybeReadMore read 0`),e.read(0),$===t.length)break}t.readingMore=!1}Cd.prototype._read=function(e){yd(this,new md(`_read()`))},Cd.prototype.pipe=function(e,t){var $=this,td=this._readableState;switch(td.pipesCount){case 0:td.pipes=e;break;case 1:td.pipes=[td.pipes,e];break;default:td.pipes.push(e);break}td.pipesCount+=1,sd(`pipe count=%d opts=%j`,td.pipesCount,t);var nd=(!t||t.end!==!1)&&e!==process$1.stdout&&e!==process$1.stderr?id:pd;td.endEmitted?process$1.nextTick(nd):$.once(`end`,nd),e.on(`unpipe`,rd);function rd(e,t){sd(`onunpipe`),e===$&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,cd())}function id(){sd(`onend`),e.end()}var ad=Fd($);e.on(`drain`,ad);var od=!1;function cd(){sd(`cleanup`),e.removeListener(`close`,dd),e.removeListener(`finish`,fd),e.removeListener(`drain`,ad),e.removeListener(`error`,ud),e.removeListener(`unpipe`,rd),$.removeListener(`end`,id),$.removeListener(`end`,pd),$.removeListener(`data`,ld),od=!0,td.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&ad()}$.on(`data`,ld);function ld(t){sd(`ondata`);var ed=e.write(t);sd(`dest.write`,ed),ed===!1&&((td.pipesCount===1&&td.pipes===e||td.pipesCount>1&&Wd(td.pipes,e)!==-1)&&!od&&(sd(`false write response, pause`,td.awaitDrain),td.awaitDrain++),$.pause())}function ud(t){sd(`onerror`,t),pd(),e.removeListener(`error`,ud),ed(e,`error`)===0&&yd(e,t)}xd(e,`error`,ud);function dd(){e.removeListener(`finish`,fd),pd()}e.once(`close`,dd);function fd(){sd(`onfinish`),e.removeListener(`close`,dd),pd()}e.once(`finish`,fd);function pd(){sd(`unpipe`),$.unpipe(e)}return e.emit(`pipe`,$),td.flowing||(sd(`pipe resume`),$.resume()),e};function Fd(e){return function(){var t=e._readableState;sd(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ed(e,`data`)&&(t.flowing=!0,Bd(e))}}Cd.prototype.unpipe=function(e){var t=this._readableState,$={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,$),this);if(!e){var ed=t.pipes,td=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var nd=0;nd<td;nd++)ed[nd].emit(`unpipe`,this,{hasUnpiped:!1});return this}var rd=Wd(t.pipes,e);return rd===-1?this:(t.pipes.splice(rd,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,$),this)},Cd.prototype.on=function(e,t){var $=td.prototype.on.call(this,e,t),ed=this._readableState;return e===`data`?(ed.readableListening=this.listenerCount(`readable`)>0,ed.flowing!==!1&&this.resume()):e===`readable`&&!ed.endEmitted&&!ed.readableListening&&(ed.readableListening=ed.needReadable=!0,ed.flowing=!1,ed.emittedReadable=!1,sd(`on readable`,ed.length,ed.reading),ed.length?jd(this):ed.reading||process$1.nextTick(Ld,this)),$},Cd.prototype.addListener=Cd.prototype.on,Cd.prototype.removeListener=function(e,t){var $=td.prototype.removeListener.call(this,e,t);return e===`readable`&&process$1.nextTick(Id,this),$},Cd.prototype.removeAllListeners=function(e){var t=td.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process$1.nextTick(Id,this),t};function Id(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function Ld(e){sd(`readable nexttick read 0`),e.read(0)}Cd.prototype.resume=function(){var e=this._readableState;return e.flowing||(sd(`resume`),e.flowing=!e.readableListening,Rd(this,e)),e.paused=!1,this};function Rd(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process$1.nextTick(zd,e,t))}function zd(e,t){sd(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),Bd(e),t.flowing&&!t.reading&&e.read(0)}Cd.prototype.pause=function(){return sd(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(sd(`pause`),this._readableState.flowing=!1,this.emit
320(`pause`)),this._readableState.paused=!0,this};function Bd(e){var t=e._readableState;for(sd(`flow`,t.flowing);t.flowing&&e.read()!==null;);}Cd.prototype.wrap=function(e){var t=this,$=this._readableState,ed=!1;for(var td in e.on(`end`,function(){if(sd(`wrapped end`),$.decoder&&!$.ended){var e=$.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(td){sd(`wrapped data`),$.decoder&&(td=$.decoder.write(td)),!($.objectMode&&td==null)&&(!$.objectMode&&(!td||!td.length)||t.push(td)||(ed=!0,e.pause()))}),e)this[td]===void 0&&typeof e[td]==`function`&&(this[td]=function(t){return function(){return e[t].apply(e,arguments)}}(td));for(var nd=0;nd<bd.length;nd++)e.on(bd[nd],this.emit.bind(this,bd[nd]));return this._read=function(t){sd(`wrapped _read`,t),ed&&(ed=!1,e.resume())},this},typeof Symbol==`function`&&(Cd.prototype[Symbol.asyncIterator]=function(){return _d===void 0&&(_d=require_async_iterator()),_d(this)}),Object.defineProperty(Cd.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Cd.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Cd.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),Cd._fromList=Vd,Object.defineProperty(Cd.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function Vd(e,t){if(t.length===0)return null;var $;return t.objectMode?$=t.buffer.shift():!e||e>=t.length?($=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):$=t.buffer.consume(e,t.decoder),$}function Hd(e){var t=e._readableState;sd(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process$1.nextTick(Ud,t,e))}function Ud(e,t){if(sd(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var $=t._writableState;(!$||$.autoDestroy&&$.finished)&&t.destroy()}}typeof Symbol==`function`&&(Cd.from=function(e,t){return vd===void 0&&(vd=require_from_browser()),vd(Cd,e,t)});function Wd(e,t){for(var $=0,ed=e.length;$<ed;$++)if(e[$]===t)return $;return-1}})),require__stream_transform$2=__commonJSMin(((e,t)=>{t.exports=od;var $=require_errors_browser().codes,ed=$.ERR_METHOD_NOT_IMPLEMENTED,td=$.ERR_MULTIPLE_CALLBACK,nd=$.ERR_TRANSFORM_ALREADY_TRANSFORMING,rd=$.ERR_TRANSFORM_WITH_LENGTH_0,id=require__stream_duplex$2();require_inherits_browser()(od,id);function ad(e,t){var $=this._transformState;$.transforming=!1;var ed=$.writecb;
320if(ed===null)return this.emit(`error`,new td);$.writechunk=null,$.writecb=null,t!=null&&this.push(t),ed(e);var nd=this._readableState;nd.reading=!1,(nd.needReadable||nd.length<nd.highWaterMark)&&this._read(nd.highWaterMark)}function od(e){if(!(this instanceof od))return new od(e);id.call(this,e),this._transformState={afterTransform:ad.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,sd)}function sd(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,$){cd(e,t,$)}):cd(this,null,null)}od.prototype.push=function(e,t){return this._transformState.needTransform=!1,id.prototype.push.call(this,e,t)},od.prototype._transform=function(e,t,$){$(new ed(`_transform()`))},od.prototype._write=function(e,t,$){var ed=this._transformState;if(ed.writecb=$,ed.writechunk=e,ed.writeencoding=t,!ed.transforming){var td=this._readableState;(ed.needTransform||td.needReadable||td.length<td.highWaterMark)&&this._read(td.highWaterMark)}},od.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},od.prototype._destroy=function(e,t){id.prototype._destroy.call(this,e,function(e){t(e)})};function cd(e,t,$){if(t)return e.emit(`error`,t);if($!=null&&e.push($),e._writableState.length)throw new rd;if(e._transformState.transforming)throw new nd;return e.push(null)}})),require__stream_passthrough$2=__commonJSMin(((e,t)=>{t.exports=ed;var $=require__stream_transform$2();require_inherits_browser()(ed,$);function ed(e){if(!(this instanceof ed))return new ed(e);$.call(this,e)}ed.prototype._transform=function(e,t,$){$(null,e)}})),require_pipeline=__commonJSMin(((e,t)=>{var $;function ed(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var td=require_errors_browser().codes,nd=td.ERR_MISSING_ARGS,rd=td.ERR_STREAM_DESTROYED;function id(e){if(e)throw e}function ad(e){return e.setHeader&&typeof e.abort==`function`}function od(e,t,td,nd){nd=ed(nd);var id=!1;e.on(`close`,function(){id=!0}),$===void 0&&($=require_end_of_stream()),$(e,{readable:t,writable:td},function(e){if(e)return nd(e);id=!0,nd()});var od=!1;return function(t){if(!id&&!od){if(od=!0,ad(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();nd(t||new rd(`pipe`))}}}function sd(e){e()}function cd(e,t){return e.pipe(t)}function ld(e){return!e.length||typeof e[e.length-1]!=`function`?id:e.pop()}function ud(){var e=[...arguments],t=ld(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new nd(`streams`);var $,ed=e.map(function(td,nd){var rd=nd<e.length-1;return od(td,rd,nd>0,function(e){$||=e,e&&ed.forEach(sd),!rd&&(ed.forEach(sd),t($))})});return e.reduce(cd)}t.exports=ud})),require_stream_browserify=__commonJSMin(((e,t)=>{t.exports=ed;var $=require_events().EventEmitter;require_inherits_browser()(ed,$),ed.Readable=require__stream_readable$2(),ed.Writable=require__stream_writable$2(),ed.Duplex=require__stream_duplex$2(),ed.Transform=require__stream_transform$2(),ed.PassThrough=require__stream_passthrough$2(),ed.finished=require_end_of_stream(),ed.pipeline=require_pipeline(),ed.Stream=ed;function ed(){$.call(this)}ed.prototype.pipe=function(e,t){var ed=this;function td(t){e.writable&&!1===e.write(t)&&ed.pause&&ed.pause()}ed.on(`data`,td);function nd(){ed.readable&&ed.resume&&ed.resume()}e.on(`drain`,nd),!e._isStdio&&(!t||t.end!==!1)&&(ed.on(`end`,id),ed.on(`close`,ad));var rd=!1;function id(){rd||(rd=!0,e.end())}function ad(){rd||(rd=!0,typeof e.destroy==`function`&&e.destroy())}function od(e){if(sd(),$.listenerCount(this,`error`)===0)throw e}ed.on(`error`,od),e.on(`error`,od);function sd(){ed.removeListener(`data`,td),e.removeListener(`drain`,nd),ed.removeListener(`end`,id),ed.removeListener(`close`,ad),ed.removeListener(`error`,od),e.removeListener(`error`,od),ed.removeListener(`end`,sd),ed.removeListener(`close`,sd),e.removeListener(`close`,sd)}return ed.on(`end`,sd),ed.on(`close`,sd),e.on(`close`,sd),e.emit(`pipe`,ed),e}})),require_data_stream=__commonJSMin(((e,t)=>{init_dist();var $=require_safe_buffer$4().Buffer,ed=require_stream_browserify(),td=require_util$1();
320function nd(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=$.alloc(0),this;if(typeof e.pipe==`function`)return this.buffer=$.alloc(0),e.pipe(this),this;if(e.length||typeof e==`object`)return this.buffer=e,this.writable=!1,process$1.nextTick(function(){this.emit(`end`,e),this.readable=!1,this.emit(`close`)}.bind(this)),this;throw TypeError(`Unexpected data type (`+typeof e+`)`)}td.inherits(nd,ed),nd.prototype.write=function(e){this.buffer=$.concat([this.buffer,$.from(e)]),this.emit(`data`,e)},nd.prototype.end=function(e){e&&this.write(e),this.emit(`end`,e),this.emit(`close`),this.writable=!1,this.readable=!1},t.exports=nd})),require_browser$11=__commonJSMin(((e,t)=>{init_dist$1(),init_dist();var $=65536,ed=4294967295;function td(){throw Error(`Secure random number generation is not supported by this browser. 321Use Chrome, Firefox or Internet Explorer 11`)}var nd=require_safe_buffer$4().Buffer,rd=global.crypto||global.msCrypto;rd&&rd.getRandomValues?t.exports=id:t.exports=td;function id(e,t){if(e>ed)throw RangeError(`requested too many random bytes`);var td=nd.allocUnsafe(e);if(e>0)if(e>$)for(var id=0;id<e;id+=$)rd.getRandomValues(td.slice(id,id+$));else rd.getRandomValues(td);return typeof t==`function`?process$1.nextTick(function(){t(null,td)}):td}})),require_isarray$2=__commonJSMin(((e,t)=>{var $={}.toString;t.exports=Array.isArray||function(e){return $.call(e)==`[object Array]`}})),require_typed_array_buffer=__commonJSMin(((e,t)=>{var $=require_type(),ed=require_call_bound()(`TypedArray.prototype.buffer`,!0),td=require_is_typed_array();t.exports=ed||function(e){if(!td(e))throw new $(`Not a Typed Array`);return e.buffer}})),require_to_buffer$2=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_isarray$2(),td=require_typed_array_buffer(),nd=ArrayBuffer.isView||function(e){try{return td(e),!0}catch{return!1}},rd=typeof Uint8Array<`u`,id=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,ad=id&&($.prototype instanceof Uint8Array||$.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if($.isBuffer(e))return e.constructor&&!(`isBuffer`in e)?$.from(e):e;if(typeof e==`string`)return $.from(e,t);if(id&&nd(e)){if(e.byteLength===0)return $.alloc(0);if(ad){var td=$.from(e.buffer,e.byteOffset,e.byteLength);if(td.byteLength===e.byteLength)return td}var od=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),sd=$.from(od);if(sd.length===e.byteLength)return sd}if(rd&&e instanceof Uint8Array)return $.from(e);var cd=ed(e);if(cd)for(var ld=0;ld<e.length;ld+=1){var ud=e[ld];if(typeof ud!=`number`||ud<0||ud>255||~~ud!==ud)throw RangeError(`Array items must be numbers in the range 0-255.`)}if(cd||$.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return $.from(e);throw TypeError(`The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.`)}})),require_to_buffer$1=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_to_buffer$2(),td=typeof Uint8Array<`u`,nd=td&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t){if(typeof e==`string`||$.isBuffer(e)||td&&e instanceof Uint8Array||nd&&nd(e))return ed(e,t);throw TypeError(`The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView`)}})),require_process_nextick_args=__commonJSMin(((e,t)=>{init_dist(),process$1===void 0||!process$1.version||process$1.version.indexOf(`v0.`)===0||process$1.version.indexOf(`v1.`)===0&&process$1.version.indexOf(`v1.8.`)!==0?t.exports={nextTick:$}:t.exports=process$1;function $(e,t,$,ed){if(typeof e!=`function`)throw TypeError(`"callback" argument must be a function`);var td=arguments.length,nd,rd;switch(td){case 0:case 1:return process$1.nextTick(e);case 2:return process$1.nextTick(function(){e.call(null,t)});case 3:return process$1.nextTick(function(){e.call(null,t,$)});case 4:return process$1.nextTick(function(){e.call(null,t,$,ed)});default:for(nd=Array(td-1),rd=0;rd<nd.length;)nd[rd++]=arguments[rd];return process$1.nextTick(function(){e.apply(null,nd)})}}})),require_isarray$1=__commonJSMin(((e,t)=>{var $={}.toString;t.exports=Array.isArray||function(e){return $.call(e)==`[object Array]`}}
321)),require_stream_browser$1=__commonJSMin(((e,t)=>{t.exports=require_events().EventEmitter})),require_safe_buffer$3=__commonJSMin(((e,t)=>{var $=require_buffer$1(),ed=$.Buffer;function td(e,t){for(var $ in e)t[$]=e[$]}ed.from&&ed.alloc&&ed.allocUnsafe&&ed.allocUnsafeSlow?t.exports=$:(td($,e),e.Buffer=nd);function nd(e,t,$){return ed(e,t,$)}td(ed,nd),nd.from=function(e,t,$){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return ed(e,t,$)},nd.alloc=function(e,t,$){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var td=ed(e);return t===void 0?td.fill(0):typeof $==`string`?td.fill(t,$):td.fill(t),td},nd.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return ed(e)},nd.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return $.SlowBuffer(e)}})),require_util=__commonJSMin((e=>{function t(e){return Array.isArray?Array.isArray(e):fd(e)===`[object Array]`}e.isArray=t;function $(e){return typeof e==`boolean`}e.isBoolean=$;function ed(e){return e===null}e.isNull=ed;function td(e){return e==null}e.isNullOrUndefined=td;function nd(e){return typeof e==`number`}e.isNumber=nd;function rd(e){return typeof e==`string`}e.isString=rd;function id(e){return typeof e==`symbol`}e.isSymbol=id;function ad(e){return e===void 0}e.isUndefined=ad;function od(e){return fd(e)===`[object RegExp]`}e.isRegExp=od;function sd(e){return typeof e==`object`&&!!e}e.isObject=sd;function cd(e){return fd(e)===`[object Date]`}e.isDate=cd;function ld(e){return fd(e)===`[object Error]`||e instanceof Error}e.isError=ld;function ud(e){return typeof e==`function`}e.isFunction=ud;function dd(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=dd,e.isBuffer=require_buffer$1().Buffer.isBuffer;function fd(e){return Object.prototype.toString.call(e)}})),require_BufferList$1=__commonJSMin(((e,t)=>{function $(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var ed=require_safe_buffer$3().Buffer,td=require_util$1();function nd(e,t,$){e.copy(t,$)}t.exports=function(){function e(){$(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,$=``+t.data;t=t.next;)$+=e+t.data;return $},e.prototype.concat=function(e){if(this.length===0)return ed.alloc(0);for(var t=ed.allocUnsafe(e>>>0),$=this.head,td=0;$;)nd($.data,t,td),td+=$.data.length,$=$.next;return t},e}(),td&&td.inspect&&td.inspect.custom&&(t.exports.prototype[td.inspect.custom]=function(){var e=td.inspect({length:this.length});return this.constructor.name+` `+e})})),require_destroy$1=__commonJSMin(((e,t)=>{var $=require_process_nextick_args();function ed(e,t){var ed=this,td=this._readableState&&this._readableState.destroyed,rd=this._writableState&&this._writableState.destroyed;return td||rd?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,$.nextTick(nd,this,e)):$.nextTick(nd,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?ed._writableState?ed._writableState.errorEmitted||(ed._writableState.errorEmitted=!0,$.nextTick(nd,ed,e)):$.nextTick(nd,ed,e):t&&t(e)}),this)}function td(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}
321function nd(e,t){e.emit(`error`,t)}t.exports={destroy:ed,undestroy:td}})),require__stream_writable$1=__commonJSMin(((e,t)=>{init_dist$1(),init_dist();var $=require_process_nextick_args();t.exports=md;function ed(e){var t=this;this.next=null,this.entry=null,this.finish=function(){jd(t,e)}}var td=!process$1.browser&&[`v0.10`,`v0.9.`].indexOf(process$1.version.slice(0,5))>-1?setImmediate:$.nextTick,nd;md.WritableState=fd;var rd=Object.create(require_util());rd.inherits=require_inherits_browser();var id={deprecate:require_browser$12()},ad=require_stream_browser$1(),od=require_safe_buffer$3().Buffer,sd=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function cd(e){return od.from(e)}function ld(e){return od.isBuffer(e)||e instanceof sd}var ud=require_destroy$1();rd.inherits(md,ad);function dd(){}function fd(e,t){nd||=require__stream_duplex$1(),e||={};var $=t instanceof nd;this.objectMode=!!e.objectMode,$&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var td=e.highWaterMark,rd=e.writableHighWaterMark,id=this.objectMode?16:16*1024;td||td===0?this.highWaterMark=td:$&&(rd||rd===0)?this.highWaterMark=rd:this.highWaterMark=id,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){Sd(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ed(this)}fd.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(fd.prototype,`buffer`,{get:id.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var pd;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(pd=Function.prototype[Symbol.hasInstance],Object.defineProperty(md,Symbol.hasInstance,{value:function(e){return pd.call(this,e)?!0:this===md?e&&e._writableState instanceof fd:!1}})):pd=function(e){return e instanceof this};function md(e){if(nd||=require__stream_duplex$1(),!pd.call(md,this)&&!(this instanceof nd))return new md(e);this._writableState=new fd(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),ad.call(this)}md.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function hd(e,t){var ed=Error(`write after end`);e.emit(`error`,ed),$.nextTick(t,ed)}function gd(e,t,ed,td){var nd=!0,rd=!1;return ed===null?rd=TypeError(`May not write null values to stream`):typeof ed!=`string`&&ed!==void 0&&!t.objectMode&&(rd=TypeError(`Invalid non-string/buffer chunk`)),rd&&(e.emit(`error`,rd),$.nextTick(td,rd),nd=!1),nd}md.prototype.write=function(e,t,$){var ed=this._writableState,td=!1,nd=!ed.objectMode&&ld(e);return nd&&!od.isBuffer(e)&&(e=cd(e)),typeof t==`function`&&($=t,t=null),nd?t=`buffer`:t||=ed.defaultEncoding,typeof $!=`function`&&($=dd),ed.ended?hd(this,$):(nd||gd(this,ed,e,$))&&(ed.pendingcb++,td=vd(this,ed,nd,e,t,$)),td},md.prototype.cork=function(){var e=this._writableState;e.corked++},md.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Td(this,e))},md.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function _d(e,t,$){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=od.from(t,$)),t}Object.defineProperty(md.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vd(e,t,$,ed,td,nd){if(!$){var rd=_d(t,ed,td);ed!==rd&&($=!0,td=`buffer`,ed=rd)}var id=t.objectMode?1:ed.length;t.length+=id;var ad=t.length<t.highWaterMark;if(ad||(t.needDrain=!0),t.writing||t.corked){var od=t.lastBufferedRequest;t.lastBufferedRequest={chunk:ed,encoding:td,isBuf:$,callback:nd,next:null},od?od.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yd(e,t,!1,id,ed,td,nd);return ad}function yd(e,t,$,ed,td,nd,rd){t.writelen=ed,t.writecb=rd,t.writing=!0,t.sync=!0,$?e._writev(td,t.onwrite):e._write(td,nd,t.onwrite),t.sync=!1}function bd(e,t,ed,td,nd){--t.pendingcb,ed?($.nextTick(nd,td),$.nextTick(kd,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,td)):(nd(td),e._writableState.errorEmitted=!0,e.emit(`error`,td),kd(e,t))}function xd(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Sd(e,t){var $=e._writableState,ed=$.sync,nd=$.writecb;if(xd($),t)bd(e,$,ed,t,nd);else{var rd=Ed($);!rd&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&Td(e,$),ed?td(Cd,e,$,rd,nd):Cd(e,$,rd,nd)}}function Cd(e,t,$,ed){$||wd(e,t),t.pendingcb--,ed(),kd(e,t)}function wd(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function Td(e,t){t.bufferProcessing=!0;var $=t.bufferedRequest;if(e._writev&&$&&$.next){var td=t.bufferedRequestCount,nd=Array(td),rd=t.corkedRequestsFree;rd.entry=$;
321for(var id=0,ad=!0;$;)nd[id]=$,$.isBuf||(ad=!1),$=$.next,id+=1;nd.allBuffers=ad,yd(e,t,!0,t.length,nd,``,rd.finish),t.pendingcb++,t.lastBufferedRequest=null,rd.next?(t.corkedRequestsFree=rd.next,rd.next=null):t.corkedRequestsFree=new ed(t),t.bufferedRequestCount=0}else{for(;$;){var od=$.chunk,sd=$.encoding,cd=$.callback;if(yd(e,t,!1,t.objectMode?1:od.length,od,sd,cd),$=$.next,t.bufferedRequestCount--,t.writing)break}$===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=$,t.bufferProcessing=!1}md.prototype._write=function(e,t,$){$(Error(`_write() is not implemented`))},md.prototype._writev=null,md.prototype.end=function(e,t,$){var ed=this._writableState;typeof e==`function`?($=e,e=null,t=null):typeof t==`function`&&($=t,t=null),e!=null&&this.write(e,t),ed.corked&&(ed.corked=1,this.uncork()),ed.ending||Ad(this,ed,$)};function Ed(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Dd(e,t){e._final(function($){t.pendingcb--,$&&e.emit(`error`,$),t.prefinished=!0,e.emit(`prefinish`),kd(e,t)})}function Od(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,$.nextTick(Dd,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function kd(e,t){var $=Ed(t);return $&&(Od(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),$}function Ad(e,t,ed){t.ending=!0,kd(e,t),ed&&(t.finished?$.nextTick(ed):e.once(`finish`,ed)),t.ended=!0,e.writable=!1}function jd(e,t,$){var ed=e.entry;for(e.entry=null;ed;){var td=ed.callback;t.pendingcb--,td($),ed=ed.next}t.corkedRequestsFree.next=e}Object.defineProperty(md.prototype,`destroyed`,{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),md.prototype.destroy=ud.destroy,md.prototype._undestroy=ud.undestroy,md.prototype._destroy=function(e,t){this.end(),t(e)}})),require__stream_duplex$1=__commonJSMin(((e,t)=>{var $=require_process_nextick_args(),ed=Object.keys||function(e){var t=[];for(var $ in e)t.push($);return t};t.exports=sd;var td=Object.create(require_util());td.inherits=require_inherits_browser();var nd=require__stream_readable$1(),rd=require__stream_writable$1();td.inherits(sd,nd);for(var id=ed(rd.prototype),ad=0;ad<id.length;ad++){var od=id[ad];sd.prototype[od]||(sd.prototype[od]=rd.prototype[od])}function sd(e){if(!(this instanceof sd))return new sd(e);nd.call(this,e),rd.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,cd)}Object.defineProperty(sd.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cd(){this.allowHalfOpen||this._writableState.ended||$.nextTick(ld,this)}function ld(e){e.end()}Object.defineProperty(sd.prototype,`destroyed`,{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),sd.prototype._destroy=function(e,t){this.push(null),this.end(),$.nextTick(t,e)}})),require_safe_buffer$2=__commonJSMin(((e,t)=>{var $=require_buffer$1(),ed=$.Buffer;function td(e,t){for(var $ in e)t[$]=e[$]}ed.from&&ed.alloc&&ed.allocUnsafe&&ed.allocUnsafeSlow?t.exports=$:(td($,e),e.Buffer=nd);function nd(e,t,$){return ed(e,t,$)}td(ed,nd),nd.from=function(e,t,$){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return ed(e,t,$)},nd.alloc=function(e,t,$){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var td=ed(e);return t===void 0?td.fill(0):typeof $==`string`?td.fill(t,$):td.fill(t),td},nd.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return ed(e)},nd.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return $.SlowBuffer(e)}})),require_string_decoder$1=__commonJSMin((e=>{var t=require_safe_buffer$2().Buffer,$=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function ed(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function td(e){var td=ed(e);if(typeof td!=`string`&&(t.isEncoding===$||!$(e)))throw Error(`Unknown encoding: `+e);return td||e}e.StringDecoder=nd;
321function nd(e){this.encoding=td(e);var $;switch(this.encoding){case`utf16le`:this.text=ld,this.end=ud,$=4;break;case`utf8`:this.fillLast=od,$=4;break;case`base64`:this.text=dd,this.end=fd,$=3;break;default:this.write=pd,this.end=md;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe($)}nd.prototype.write=function(e){if(e.length===0)return``;var t,$;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;$=this.lastNeed,this.lastNeed=0}else $=0;return $<e.length?t?t+this.text(e,$):this.text(e,$):t||``},nd.prototype.end=cd,nd.prototype.text=sd,nd.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function rd(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function id(e,t,$){var ed=t.length-1;if(ed<$)return 0;var td=rd(t[ed]);return td>=0?(td>0&&(e.lastNeed=td-1),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(e.lastNeed=td-2),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(td===2?td=0:e.lastNeed=td-3),td):0))}function ad(e,t,$){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function od(e){var t=this.lastTotal-this.lastNeed,$=ad(this,e,t);if($!==void 0)return $;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sd(e,t){var $=id(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=$;var ed=e.length-($-this.lastNeed);return e.copy(this.lastChar,0,ed),e.toString(`utf8`,t,ed)}function cd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function ld(e,t){if((e.length-t)%2==0){var $=e.toString(`utf16le`,t);if($){var ed=$.charCodeAt($.length-1);if(ed>=55296&&ed<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function ud(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var $=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,$)}return t}function dd(e,t){var $=(e.length-t)%3;return $===0?e.toString(`base64`,t):(this.lastNeed=3-$,this.lastTotal=3,$===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-$))}function fd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function pd(e){return e.toString(this.encoding)}function md(e){return e&&e.length?this.write(e):``}})),require__stream_readable$1=__commonJSMin(((e,t)=>{init_dist$1(),init_dist();var $=require_process_nextick_args();t.exports=_d;var ed=require_isarray$1(),td;_d.ReadableState=gd,require_events().EventEmitter;var nd=function(e,t){return e.listeners(t).length},rd=require_stream_browser$1(),id=require_safe_buffer$3().Buffer,ad=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function od(e){return id.from(e)}function sd(e){return id.isBuffer(e)||e instanceof ad}var cd=Object.create(require_util());cd.inherits=require_inherits_browser();var ld=require_util$1(),ud=void 0;ud=ld&&ld.debuglog?ld.debuglog(`stream`):function(){};var dd=require_BufferList$1(),fd=require_destroy$1(),pd;cd.inherits(_d,rd);var md=[`error`,`close`,`destroy`,`pause`,`resume`];function hd(e,t,$){if(typeof e.prependListener==`function`)return e.prepe
321ndListener(t,$);!e._events||!e._events[t]?e.on(t,$):ed(e._events[t])?e._events[t].unshift($):e._events[t]=[$,e._events[t]]}function gd(e,t){td||=require__stream_duplex$1(),e||={};var $=t instanceof td;this.objectMode=!!e.objectMode,$&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var ed=e.highWaterMark,nd=e.readableHighWaterMark,rd=this.objectMode?16:16*1024;ed||ed===0?this.highWaterMark=ed:$&&(nd||nd===0)?this.highWaterMark=nd:this.highWaterMark=rd,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new dd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(pd||=require_string_decoder$1().StringDecoder,this.decoder=new pd(e.encoding),this.encoding=e.encoding)}function _d(e){if(td||=require__stream_duplex$1(),!(this instanceof _d))return new _d(e);this._readableState=new gd(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),rd.call(this)}Object.defineProperty(_d.prototype,`destroyed`,{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_d.prototype.destroy=fd.destroy,_d.prototype._undestroy=fd.undestroy,_d.prototype._destroy=function(e,t){this.push(null),t(e)},_d.prototype.push=function(e,t){var $=this._readableState,ed;return $.objectMode?ed=!0:typeof e==`string`&&(t||=$.defaultEncoding,t!==$.encoding&&(e=id.from(e,t),t=``),ed=!0),vd(this,e,t,!1,ed)},_d.prototype.unshift=function(e){return vd(this,e,null,!0,!1)};function vd(e,t,$,ed,td){var nd=e._readableState;if(t===null)nd.reading=!1,Td(e,nd);else{var rd;td||(rd=bd(nd,t)),rd?e.emit(`error`,rd):nd.objectMode||t&&t.length>0?(typeof t!=`string`&&!nd.objectMode&&Object.getPrototypeOf(t)!==id.prototype&&(t=od(t)),ed?nd.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):yd(e,nd,t,!0):nd.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(nd.reading=!1,nd.decoder&&!$?(t=nd.decoder.write(t),nd.objectMode||t.length!==0?yd(e,nd,t,!1):Od(e,nd)):yd(e,nd,t,!1))):ed||(nd.reading=!1)}return xd(nd)}function yd(e,t,$,ed){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,$),e.read(0)):(t.length+=t.objectMode?1:$.length,ed?t.buffer.unshift($):t.buffer.push($),t.needReadable&&Ed(e)),Od(e,t)}function bd(e,t){var $;return!sd(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&($=TypeError(`Invalid non-string/buffer chunk`)),$}function xd(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}_d.prototype.isPaused=function(){return this._readableState.flowing===!1},_d.prototype.setEncoding=function(e){return pd||=require_string_decoder$1().StringDecoder,this._readableState.decoder=new pd(e),this._readableState.encoding=e,this};var Sd=8388608;function Cd(e){return e>=Sd?e=Sd:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function wd(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=Cd(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}_d.prototype.read=function(e){ud(`read`,e),e=parseInt(e,10);var t=this._readableState,$=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ud(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?zd(this):Ed(this),null;if(e=wd(e,t),e===0&&t.ended)return t.length===0&&zd(this),null;var ed=t.needReadable;ud(`need readable`,ed),(t.length===0||t.length-e<t.highWaterMark)&&(ed=!0,ud(`length less than watermark`,ed)),t.ended||t.reading?(ed=!1,ud(`reading or ended`,ed)):ed&&(ud(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=wd($,t)));var td=e>0?Fd(e,t):null;return td===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),$!==e&&t.ended&&zd(this)),td!==null&&this.emit
321(`data`,td),td};function Td(e,t){if(!t.ended){if(t.decoder){var $=t.decoder.end();$&&$.length&&(t.buffer.push($),t.length+=t.objectMode?1:$.length)}t.ended=!0,Ed(e)}}function Ed(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ud(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?$.nextTick(Dd,e):Dd(e))}function Dd(e){ud(`emit readable`),e.emit(`readable`),Pd(e)}function Od(e,t){t.readingMore||(t.readingMore=!0,$.nextTick(kd,e,t))}function kd(e,t){for(var $=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ud(`maybeReadMore read 0`),e.read(0),$!==t.length);)$=t.length;t.readingMore=!1}_d.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},_d.prototype.pipe=function(e,t){var ed=this,td=this._readableState;switch(td.pipesCount){case 0:td.pipes=e;break;case 1:td.pipes=[td.pipes,e];break;default:td.pipes.push(e);break}td.pipesCount+=1,ud(`pipe count=%d opts=%j`,td.pipesCount,t);var rd=(!t||t.end!==!1)&&e!==process$1.stdout&&e!==process$1.stderr?ad:gd;td.endEmitted?$.nextTick(rd):ed.once(`end`,rd),e.on(`unpipe`,id);function id(e,t){ud(`onunpipe`),e===ed&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,cd())}function ad(){ud(`onend`),e.end()}var od=Ad(ed);e.on(`drain`,od);var sd=!1;function cd(){ud(`cleanup`),e.removeListener(`close`,pd),e.removeListener(`finish`,md),e.removeListener(`drain`,od),e.removeListener(`error`,fd),e.removeListener(`unpipe`,id),ed.removeListener(`end`,ad),ed.removeListener(`end`,gd),ed.removeListener(`data`,dd),sd=!0,td.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&od()}var ld=!1;ed.on(`data`,dd);function dd(t){ud(`ondata`),ld=!1,!1===e.write(t)&&!ld&&((td.pipesCount===1&&td.pipes===e||td.pipesCount>1&&Vd(td.pipes,e)!==-1)&&!sd&&(ud(`false write response, pause`,td.awaitDrain),td.awaitDrain++,ld=!0),ed.pause())}function fd(t){ud(`onerror`,t),gd(),e.removeListener(`error`,fd),nd(e,`error`)===0&&e.emit(`error`,t)}hd(e,`error`,fd);function pd(){e.removeListener(`finish`,md),gd()}e.once(`close`,pd);function md(){ud(`onfinish`),e.removeListener(`close`,pd),gd()}e.once(`finish`,md);function gd(){ud(`unpipe`),ed.unpipe(e)}return e.emit(`pipe`,ed),td.flowing||(ud(`pipe resume`),ed.resume()),e};function Ad(e){return function(){var t=e._readableState;ud(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&nd(e,`data`)&&(t.flowing=!0,Pd(e))}}_d.prototype.unpipe=function(e){var t=this._readableState,$={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,$),this);if(!e){var ed=t.pipes,td=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var nd=0;nd<td;nd++)ed[nd].emit(`unpipe`,this,{hasUnpiped:!1});return this}var rd=Vd(t.pipes,e);return rd===-1?this:(t.pipes.splice(rd,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,$),this)},_d.prototype.on=function(e,t){var ed=rd.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var td=this._readableState;!td.endEmitted&&!td.readableListening&&(td.readableListening=td.needReadable=!0,td.emittedReadable=!1,td.reading?td.length&&Ed(this):$.nextTick(jd,this))}return ed},_d.prototype.addListener=_d.prototype.on;function jd(e){ud(`readable nexttick read 0`),e.read(0)}_d.prototype.resume=function(){var e=this._readableState;return e.flowing||(ud(`resume`),e.flowing=!0,Md(this,e)),this};function Md(e,t){t.resumeScheduled||(t.resumeScheduled=!0,$.nextTick(Nd,e,t))}function Nd(e,t){t.reading||(ud(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),Pd(e),t.flowing&&!t.reading&&e.read(0)}_d.prototype.pause=function(){return ud(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(ud(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function Pd(e){var t=e._readableState;for(ud(`flow`,t.flowing);t.flowing&&e.read()!==null;);}_d.prototype.wrap=function(e){var t=this,$=this._readableState,ed=!1;for(var td in e.on(`end`,function(){if(ud(`wrapped end`),$.decoder&&!$.ended){var e=$.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(td){ud(`wrapped data`),$.decoder&&(td=$.decoder.write(td)),!($.objectMode&&td==null)&&(!$.objectMode&&(!td||!td.length)||t.push(td)||(ed=!0,e.pause()))}),e)this[td]===void 0&&typeof e[td]==`function`&&(this[td]=function(t){return function(){return e[t].apply(e,arguments)}}(td));for(var nd=0;nd<md.length;nd++)e.on(md[nd],this.emit.bind(this,md[nd]));return this._read=function(t){ud(`wrapped _read`,t),ed&&(ed=!1,e.resume())},this},Object.defineProperty(_d.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),_d._fromList=Fd;function Fd(e,t){if(t.length===0)return null;var $;return t.objectMode?$=t.buffer.shift():!e||e>=t.length?($=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):$=Id(e,t.buffer,t.decoder),$}function Id(e,t,$){var ed;return e<t.head.data.length?(ed=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):ed=e===t.head.data.length?t.shift():$?Ld(e,t):Rd(e,t),ed}function Ld(e,t){var $=t.head,ed=1,td=$.data;for(e-=td.length;$=$.next;){var nd=$.data,rd=e>nd.length?nd.length:e;if(rd===nd.length?td+=nd:td+=nd.slice(0,e),e-=rd,e===0){rd===nd.length?(++ed,$.next?t.head=$.next:t.head=t.tail=null):(t.head=$,$.data=nd.slice(rd));break}++ed}return t.length-=ed,td}function Rd(e,t){var $=id.allocUnsafe(e),ed=t.head,td=1;for(ed.data.copy($),e-=ed.data.length;ed=ed.next;){var nd=ed.data,rd=e>nd.length?nd.length:e;if(nd.copy($,$.length-e,0,rd),e-=rd,e===0){rd===nd.length?(++td,ed.next?t.head=ed.next:t.head=t.tail=null):(t.head=ed,ed.data=nd.slice(rd));break}++td}return t.length-=td,$}function zd(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,$.nextTick(Bd,t,e))}function Bd(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function Vd(e,t){for(var $=0,ed=e.length;$<ed;$++)if(e[$]===t)return $;return-1}})),require__stream_transform$1=__commonJSMin(((e,t)=>{t.exports=nd;var $=require__stream_duplex$1(),ed=Object.create(require_util());ed.inherits=require_inherits_browser(),ed.inherits(nd,$);function td(e,t){var $=this._transformState;$.transforming=!1;var ed=$.writecb;
321if(!ed)return this.emit(`error`,Error(`write callback called multiple times`));$.writechunk=null,$.writecb=null,t!=null&&this.push(t),ed(e);var td=this._readableState;td.reading=!1,(td.needReadable||td.length<td.highWaterMark)&&this._read(td.highWaterMark)}function nd(e){if(!(this instanceof nd))return new nd(e);$.call(this,e),this._transformState={afterTransform:td.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,rd)}function rd(){var e=this;typeof this._flush==`function`?this._flush(function(t,$){id(e,t,$)}):id(this,null,null)}nd.prototype.push=function(e,t){return this._transformState.needTransform=!1,$.prototype.push.call(this,e,t)},nd.prototype._transform=function(e,t,$){throw Error(`_transform() is not implemented`)},nd.prototype._write=function(e,t,$){var ed=this._transformState;if(ed.writecb=$,ed.writechunk=e,ed.writeencoding=t,!ed.transforming){var td=this._readableState;(ed.needTransform||td.needReadable||td.length<td.highWaterMark)&&this._read(td.highWaterMark)}},nd.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},nd.prototype._destroy=function(e,t){var ed=this;$.prototype._destroy.call(this,e,function(e){t(e),ed.emit(`close`)})};function id(e,t,$){if(t)return e.emit(`error`,t);if($!=null&&e.push($),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),require__stream_passthrough$1=__commonJSMin(((e,t)=>{t.exports=td;var $=require__stream_transform$1(),ed=Object.create(require_util());ed.inherits=require_inherits_browser(),ed.inherits(td,$);function td(e){if(!(this instanceof td))return new td(e);$.call(this,e)}td.prototype._transform=function(e,t,$){$(null,e)}})),require_readable_browser$1=__commonJSMin(((e,t)=>{e=t.exports=require__stream_readable$1(),e.Stream=e,e.Readable=e,e.Writable=require__stream_writable$1(),e.Duplex=require__stream_duplex$1(),e.Transform=require__stream_transform$1(),e.PassThrough=require__stream_passthrough$1()})),require_hash_base=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_to_buffer$1(),td=require_readable_browser$1().Transform,nd=require_inherits_browser();function rd(e){td.call(this),this._block=$.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}nd(rd,td),rd.prototype._transform=function(e,t,$){var ed=null;try{this.update(e,t)}catch(e){ed=e}$(ed)},rd.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},rd.prototype.update=function(e,t){if(this._finalized)throw Error(`Digest already called`);for(var $=ed(e,t),td=this._block,nd=0;this._blockOffset+$.length-nd>=this._blockSize;){for(var rd=this._blockOffset;rd<this._blockSize;)td[rd]=$[nd],rd+=1,nd+=1;this._update(),this._blockOffset=0}for(;nd<$.length;)td[this._blockOffset]=$[nd],this._blockOffset+=1,nd+=1;for(var id=0,ad=$.length*8;ad>0;++id)this._length[id]+=ad,ad=this._length[id]/4294967296|0,ad>0&&(this._length[id]-=4294967296*ad);return this},rd.prototype._update=function(){throw Error(`_update is not implemented`)},rd.prototype.digest=function(e){if(this._finalized)throw Error(`Digest already called`);this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var $=0;$<4;++$)this._length[$]=0;return t},rd.prototype._digest=function(){throw Error(`_digest is not implemented`)},t.exports=rd})),require_md5_js=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_hash_base(),td=require_safe_buffer$4().Buffer,nd=Array(16);function rd(){ed.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}$(rd,ed),rd.prototype._update=function(){for(var e=nd,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var $=this._a,ed=this._b,td=this._c,rd=this._d;$=ad($,ed,td,rd,e[0],3614090360,7),rd=ad(rd,$,ed,td,e[1],3905402710,12),td=ad(td,rd,$,ed,e[2],606105819,17),ed=ad(ed,td,rd,$,e[3],3250441966,22),$=ad($,ed,td,rd,e[4],4118548399,7),rd=ad(rd,$,ed,td,e[5],1200080426,12),td=ad(td,rd,$,ed,e[6],2821735955,17),ed=ad(ed,td,rd,$,e[7],4249261313,22),$=ad($,ed,td,rd,e[8],1770035416,7),rd=ad(rd,$,ed,td,e[9],2336552879,12),td=ad(td,rd,$,ed,e[10],4294925233,17),ed=ad(ed,td,rd,$,e[11],2304563134,22),$=ad($,ed,td,rd,e[12],1804603682,7),rd=ad(rd,$,ed,td,e[13],4254626195,12),td=ad(td,rd,$,ed,e[14],2792965006,17),ed=ad(ed,td,rd,$,e[15],1236535329,22),$=od($,ed,td,rd,e[1],4129170786,5),rd=od(rd,$,ed,td,e[6],3225465664,9),td=od(td,rd,$,ed,e[11],643717713,14),ed=od(ed,td,rd,$,e[0],3921069994,20),$=od($,ed,td,rd,e[5],3593408605,5),rd=od(rd,$,ed,td,e[10],38016083,9),td=od(td,rd,$,ed,e[15],3634488961,14),ed=od(ed,td,rd,$,e[4],3889429448,20),$=od($,ed,td,rd,e[9],568446438,5),rd=od(rd,$,ed,td,e[14],3275163606,9),td=od(td,rd,$,ed,e[3],4107603335,14),ed=od(ed,td,rd,$,e[8],1163531501,20),$=od($,ed,td,rd,e[13],2850285829,5),rd=od(rd,$,ed,td,e[2],4243563512,9),td=od(td,rd,$,ed,e[7],1735328473,14),ed=od(ed,td,rd,$,e[12],2368359562,20),$=sd($,ed,td,rd,e[5],4294588738,4),rd=sd(rd,$,ed,td,e[8],2272392833,11),td=sd(td,rd,$,ed,e[11],1839030562,16),ed=sd(ed,td,rd,$,e[14],4259657740,23),$=sd($,ed,td,rd,e[1],2763975236,4),rd=sd(rd,$,ed,td,e[4],1272893353,11),td=sd(td,rd,$,ed,e[7],4139469664,16),ed=sd(ed,td,rd,$,e[10],3200236656,23),$=sd($,ed,td,rd,e[13],681279174,4),rd=sd(rd,$,ed,td,e[0],3936430074,11),td=sd(td,rd,$,ed,e[3],3572445317,16),ed=sd(ed,td,rd,$,e[6],76029189,23),$=sd($,ed,td,rd,e[9],3654602809,4),rd=sd(rd,$,ed,td,e[12],3873151461,11),td=sd(td,rd,$,ed,e[15],530742520,16),ed=sd(ed,td,rd,$,e[2],3299628645,23),$=cd($,ed,td,rd,e[0],4096336452,6),rd=cd(rd,$,ed,td,e[7],1126891415,10),td=cd(td,rd,$,ed,e[14],2878612391,15),ed=cd(ed,td,rd,$,e[5],4237533241,21),$=cd($,ed,td,rd,e[12],1700485571,6),rd=cd(rd,$,ed,td,e[3],2399980690,10),td=cd(td,rd,$,ed,e[10],4293915773,15),ed=cd(ed,td,rd,$,e[1],2240044497,21),$=cd($,ed,td,rd,e[8],1873313359,6),rd=cd(rd,$,ed,td,e[15],4264355552,10),td=cd(td,rd,$,ed,e[6],2734768916,15),ed=cd(ed,td,rd,$,e[13],1309151649,21),$=cd($,ed,td,rd,e[4],4149444226,6),rd=cd(rd,$,ed,td,e[11],3174756917,10),td=cd(td,rd,$,ed,e[2],718787259,15),ed=cd(ed,td,rd,$,e[9],3951481745,21),this._a=this._a+$|0,this._b=this._b+ed|0,this._c=this._c+td|0,this._d=this._d+rd|0},rd.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=td.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function id(e,t){return e<<t|e>>>32-t}function ad(e,t,$,ed,td,nd,rd){return id(e+(t&$|~t&ed)+td+nd|0,rd)+t|0}function od(e,t,$,ed,td,nd,rd){return id(e+(t&ed|$&~ed)+td+nd|0,rd)+t|0}function sd(e,t,$,ed,td,nd,rd){return id(e+(t^$^ed)+td+nd|0,rd)+t|0}function cd(e,t,$,ed,td,nd,rd){return id(e+($^(t|~ed))+td+nd|0,rd)+t|0}t.exports=rd})),require_ripemd160=__commonJSMin(((e,t)=>{var $=require_buffer$1().Buffer,ed=require_inherits_browser(),td=require_hash_base(),nd=Array(16),rd=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],id=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ad=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],od=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],sd=[0,1518500249,1859775393,2400959708,2840853838],cd=[1352829926,1548603684,1836072691,2053994217,0];function ld(e,t){return e<<t|e>>>32-t}function ud(e,t,$,ed,td,nd,rd,id){return ld(e+(t^$^ed)+nd+rd|0,id)+td|0}function dd(e,t,$,ed,td,nd,rd,id){return ld(e+(t&$|~t&ed)+nd+rd|0,id)+td|0}function fd(e,t,$,ed,td,nd,rd,id){return ld(e+((t|~$)^ed)+nd+rd|0,id)+td|0}function pd(e,t,$,ed,td,nd,rd,id){return ld(e+(t&ed|$&~ed)+nd+rd|0,id)+td|0}function md(e,t,$,ed,td,nd,rd,id){return ld(e+(t^($|~ed))+nd+rd|0,id)+td|0}function hd(){td.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}ed(hd,td),hd.prototype._update=function(){for(var e=nd,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var $=this._a|0,ed=this._b|0,td=this._c|0,hd=this._d|0,gd=this._e|0,_d=this._a|0,vd=this._b|0,yd=this._c|0,bd=this._d|0,xd=this._e|0,Sd=0;Sd<80;Sd+=1){var Cd,wd;Sd<16?(Cd=ud($,ed,td,hd,gd,e[rd[Sd]],sd[0],ad[Sd]),wd=md(_d,vd,yd,bd,xd,e[id[Sd]],cd[0],od[Sd])):Sd<32?(Cd=dd($,ed,td,hd,gd,e[rd[Sd]],sd[1],ad[Sd]),wd=pd(_d,vd,yd,bd,xd,e[id[Sd]],cd[1],od[Sd])):Sd<48?(Cd=fd($,ed,td,hd,gd,e[rd[Sd]],sd[2],ad[Sd]),wd=fd(_d,vd,yd,bd,xd,e[id[Sd]],cd[2],od[Sd])):Sd<64?(Cd=pd($,ed,td,hd,gd,e[rd[Sd]],sd[3],ad[Sd]),wd=dd(_d,vd,yd,bd,xd,e[id[Sd]],cd[3],od[Sd])):(Cd=md($,ed,td,hd,gd,e[rd[Sd]],sd[4],ad[Sd]),wd=ud(_d,vd,yd,bd,xd,e[id[Sd]],cd[4],od[Sd])),$=gd,gd=hd,hd=ld(td,10),td=ed,ed=Cd,_d=xd,xd=bd,bd=ld(yd,10),yd=vd,vd=wd}var Td=this._b+td+bd|0;this._b=this._c+hd+xd|0,this._c=this._d+gd+_d|0,this._d=this._e+$+vd|0,this._e=this._a+ed+yd|0,this._a=Td},hd.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=$.alloc?$.alloc(20):new $(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=hd})),require_hash$1=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_to_buffer$2();function td(e,t){this._block=$.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}td.prototype.update=function(e,t){e=ed(e,t||`utf8`);for(var $=this._block,td=this._blockSize,nd=e.length,rd=this._len,id=0;id<nd;){for(var ad=rd%td,od=Math.min(nd-id,td-ad),sd=0;sd<od;sd++)$[ad+sd]=e[id+sd];rd+=od,id+=od,rd%td===0&&this._update($)}return this._len+=nd,this},td.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var $=this._len*8;if($<=4294967295)this._block.writeUInt32BE($,this._blockSize-4);else{var ed=($&4294967295)>>>0,td=($-ed)/4294967296;this._block.writeUInt32BE(td,this._blockSize-8),this._block.writeUInt32BE(ed,this._blockSize-4)}this._update(this._block);var nd=this._hash();return e?nd.toString(e):nd},td.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},t.exports=td})),require_sha$1=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_hash$1(),td=require_safe_buffer$4().Buffer,nd=[1518500249,1859775393,-1894007588,-899497514],rd=Array(80);function id(){this.init(),this._w=rd,ed.call(this,64,56)}$(id,ed),id.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ad(e){return e<<5|e>>>27}function od(e){return e<<30|e>>>2}function sd(e,t,$,ed){return e===0?t&$|~t&ed:e===2?t&$|t&ed|$&ed:t^$^ed}id.prototype._update=function(e){for(var t=this._w,$=this._a|0,ed=this._b|0,td=this._c|0,rd=this._d|0,id=this._e|0,cd=0;cd<16;++cd)t[cd]=e.readInt32BE(cd*4);for(;cd<80;++cd)t[cd]=t[cd-3]^t[cd-8]^t[cd-14]^t[cd-16];for(var ld=0;ld<80;++ld){var ud=~~(ld/20),dd=ad($)+sd(ud,ed,td,rd)+id+t[ld]+nd[ud]|0;id=rd,rd=td,td=od(ed),ed=$,$=dd}this._a=$+this._a|0,this._b=ed+this._b|0,this._c=td+this._c|0,this._d=rd+this._d|0,this._e=id+this._e|0},id.prototype._hash=function(){var e=td.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=id})),require_sha1=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_hash$1(),td=require_safe_buffer$4().Buffer,nd=[1518500249,1859775393,-1894007588,-899497514],rd=Array(80);function id(){this.init(),this._w=rd,ed.call(this,64,56)}$(id,ed),id.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ad(e){return e<<1|e>>>31}function od(e){return e<<5|e>>>27}function sd(e){return e<<30|e>>>2}function cd(e,t,$,ed){return e===0?t&$|~t&ed:e===2?t&$|t&ed|$&ed:t^$^ed}id.prototype._update=function(e){for(var t=this._w,$=this._a|0,ed=this._b|0,td=this._c|0,rd=this._d|0,id=this._e|0,ld=0;ld<16;++ld)t[ld]=e.readInt32BE(ld*4);for(;ld<80;++ld)t[ld]=ad(t[ld-3]^t[ld-8]^t[ld-14]^t[ld-16]);for(var ud=0;ud<80;++ud){var dd=~~(ud/20),fd=od($)+cd(dd,ed,td,rd)+id+t[ud]+nd[dd]|0;id=rd,rd=td,td=sd(ed),ed=$,$=fd}this._a=$+this._a|0,this._b=ed+this._b|0,this._c=td+this._c|0,this._d=rd+this._d|0,this._e=id+this._e|0},id.prototype._hash=function(){var e=td.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e},t.exports=id})),require_sha256=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_hash$1(),td=require_safe_buffer$4().Buffer,nd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
321734187,3204031479,3329325298],rd=Array(64);function id(){this.init(),this._w=rd,ed.call(this,64,56)}$(id,ed),id.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ad(e,t,$){return $^e&(t^$)}function od(e,t,$){return e&t|$&(e|t)}function sd(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function cd(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function ld(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function ud(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}id.prototype._update=function(e){for(var t=this._w,$=this._a|0,ed=this._b|0,td=this._c|0,rd=this._d|0,id=this._e|0,dd=this._f|0,fd=this._g|0,pd=this._h|0,md=0;md<16;++md)t[md]=e.readInt32BE(md*4);for(;md<64;++md)t[md]=ud(t[md-2])+t[md-7]+ld(t[md-15])+t[md-16]|0;for(var hd=0;hd<64;++hd){var gd=pd+cd(id)+ad(id,dd,fd)+nd[hd]+t[hd]|0,_d=sd($)+od($,ed,td)|0;pd=fd,fd=dd,dd=id,id=rd+gd|0,rd=td,td=ed,ed=$,$=gd+_d|0}this._a=$+this._a|0,this._b=ed+this._b|0,this._c=td+this._c|0,this._d=rd+this._d|0,this._e=id+this._e|0,this._f=dd+this._f|0,this._g=fd+this._g|0,this._h=pd+this._h|0},id.prototype._hash=function(){var e=td.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=id})),require_sha224=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_sha256(),td=require_hash$1(),nd=require_safe_buffer$4().Buffer,rd=Array(64);function id(){this.init(),this._w=rd,td.call(this,64,56)}$(id,ed),id.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},id.prototype._hash=function(){var e=nd.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=id})),require_sha512=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_hash$1(),td=require_safe_buffer$4().Buffer,nd=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
3211126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],rd=Array(160);function id(){this.init(),this._w=rd,ed.call(this,128,112)}$(id,ed),id.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function ad(e,t,$){return $^e&(t^$)}function od(e,t,$){return e&t|$&(e|t)}function sd(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function cd(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ld(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function ud(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function dd(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function fd(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function pd(e,t){return+(e>>>0<t>>>0)}id.prototype._update=function(e){for(var t=this._w,$=this._ah|0,ed=this._bh|0,td=this._ch|0,rd=this._dh|0,id=this._eh|0,md=this._fh|0,hd=this._gh|0,gd=this._hh|0,_d=this._al|0,vd=this._bl|0,yd=this._cl|0,bd=this._dl|0,xd=this._el|0,Sd=this._fl|0,Cd=this._gl|0,wd=this._hl|0,Td=0;Td<32;Td+=2)t[Td]=e.readInt32BE(Td*4),t[Td+1]=e.readInt32BE(Td*4+4);for(;Td<160;Td+=2){var Ed=t[Td-30],Dd=t[Td-30+1],Od=ld(Ed,Dd),kd=ud(Dd,Ed);Ed=t[Td-4],Dd=t[Td-4+1];var Ad=dd(Ed,Dd),jd=fd(Dd,Ed),Md=t[Td-14],Nd=t[Td-14+1],Pd=t[Td-32],Fd=t[Td-32+1],Id=kd+Nd|0,Ld=Od+Md+pd(Id,kd)|0;Id=Id+jd|0,Ld=Ld+Ad+pd(Id,jd)|0,Id=Id+Fd|0,Ld=Ld+Pd+pd(Id,Fd)|0,t[Td]=Ld,t[Td+1]=Id}for(var Rd=0;Rd<160;Rd+=2){Ld=t[Rd],Id=t[Rd+1];var zd=od($,ed,td),Bd=od(_d,vd,yd),Vd=sd($,_d),Hd=sd(_d,$),Ud=cd(id,xd),Wd=cd(xd,id),Gd=nd[Rd],Kd=nd[Rd+1],qd=ad(id,md,hd),Jd=ad(xd,Sd,Cd),Yd=wd+Wd|0,Xd=gd+Ud+pd(Yd,wd)|0;Yd=Yd+Jd|0,Xd=Xd+qd+pd(Yd,Jd)|0,Yd=Yd+Kd|0,Xd=Xd+Gd+pd(Yd,Kd)|0,Yd=Yd+Id|0,Xd=Xd+Ld+pd(Yd,Id)|0;var Zd=Hd+Bd|0,Qd=Vd+zd+pd(Zd,Hd)|0;gd=hd,wd=Cd,hd=md,Cd=Sd,md=id,Sd=xd,xd=bd+Yd|0,id=rd+Xd+pd(xd,bd)|0,rd=td,bd=yd,td=ed,yd=vd,ed=$,vd=_d,_d=Yd+Zd|0,$=Xd+Qd+pd(_d,Yd)|0}this._al=this._al+_d|0,this._bl=this._bl+vd|0,this._cl=this._cl+yd|0,this._dl=this._dl+bd|0,this._el=this._el+xd|0,this._fl=this._fl+Sd|0,this._gl=this._gl+Cd|0,this._hl=this._hl+wd|0,this._ah=this._ah+$+pd(this._al,_d)|0,this._bh=this._bh+ed+pd(this._bl,vd)|0,this._ch=this._ch+td+pd(this._cl,yd)|0,this._dh=this._dh+rd+pd(this._dl,bd)|0,this._eh=this._eh+id+pd(this._el,xd)|0,this._fh=this._fh+md+pd(this._fl,Sd)|0,this._gh=this._gh+hd+pd(this._gl,Cd)|0,this._hh=this._hh+gd+pd(this._hl,wd)|0},id.prototype._hash=function(){var e=td.allocUnsafe(64);function t(t,$,ed){e.writeInt32BE(t,ed),e.writeInt32BE($,ed+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=id})),require_sha384=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_sha512(),td=require_hash$1(),nd=require_safe_buffer$4().Buffer,rd=Array(160);function id(){this.init(),this._w=rd,td.call(this,128,112)}$(id,ed),id.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},id.prototype._hash=function(){var e=nd.allocUnsafe(48);function t(t,$,ed){e.writeInt32BE(t,ed),e.writeInt32BE($,ed+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=id})),require_sha_js=__commonJSMin(((e,t)=>{t.exports=function(e){var $=e.toLowerCase(),ed=t.exports[$];if(!ed)throw Error($+` is not supported (we accept pull requests)`);return new ed},t.exports.sha=require_sha$1(),t.exports.sha1=require_sha1(),t.exports.sha224=require_sha224(),t.exports.sha256=require_sha256(),t.exports.sha384=require_sha384(),t.exports.sha512=require_sha512()})),require_cipher_base=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_stream_browserify().Transform,td=require_string_decoder$2().StringDecoder,nd=require_inherits_browser(),rd=require_to_buffer$2();function id(e){ed.call(this),this.hashMode=typeof e==`string`,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&=(this.__final=this._final,null),this._decoder=null,this._encoding=null}nd(id,ed),id.prototype.update=function(e,t,$){var ed=rd(e,t),td=this._update(ed);return this.hashMode?this:($&&(td=this._toString(td,$)),td)},id.prototype.setAutoPadding=function(){},id.prototype.getAuthTag=function(){throw Error(`trying to get auth tag in unsupported state`)},id.prototype.setAuthTag=function(){throw Error(`trying to set auth tag in unsupported state`)},id.prototype.setAAD=function(){throw Error(`trying to set aad in unsupported state`)},id.prototype._transform=function(e,t,$){var ed;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){ed=e}finally{$(ed)}},id.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},id.prototype._finalOrDigest=function(e){var t=this.__final()||$.alloc(0);return e&&(t=this._toString(t,e,!0)),t},id.prototype._toString=function(e,t,$){if(this._decoder||(this._decoder=new td(t),this._encoding=t),this._encoding!==t)throw Error(`canât switch encodings`);var ed=this._decoder.write(e);return $&&(ed+=this._decoder.end()),ed},t.exports=id})),require_browser$10=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_md5_js(),td=require_ripemd160(),nd=require_sha_js(),rd=require_cipher_base();function id(e){rd.call(this,`digest`),this._hash=e}$(id,rd),id.prototype._update=function(e){this._hash.update(e)},id.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),e===`md5`?new ed:e===`rmd160`||e===`ripemd160`?new td:new id(nd(e))}})),require_legacy=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_safe_buffer$4().Buffer,td=require_cipher_base(),nd=ed.alloc(128),rd=64;function id(e,t){td.call(this,`digest`),typeof t==`string`&&(t=ed.from(t)),this._alg=e,this._key=t,t.length>rd?t=e(t):t.length<rd&&(t=ed.concat([t,nd],rd));for(var $=this._ipad=ed.allocUnsafe(rd),id=this._opad=ed.allocUnsafe(rd),ad=0;ad<rd;ad++)$[ad]=t[ad]^54,id[ad]=t[ad]^92;this._hash=[$]}$(id,td),id.prototype._update=function(e){this._hash.push(e)},id.prototype._final=function(){var e=this._alg(ed.concat(this._hash));return this._alg(ed.concat([this._opad,e]))},t.exports=id})),require_md5=__commonJSMin(((e,t)=>{var $=require_md5_js();t.exports=function(e){return new $().update(e).digest()}})),require_browser$9=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_legacy(),td=require_cipher_base(),nd=require_safe_buffer$4().Buffer,rd=require_md5(),id=require_ripemd160(),ad=require_sha_js(),od=nd.alloc(128);function sd(e,t){td.call(this,`digest`),typeof t==`string`&&(t=nd.from(t));var $=e===`sha512`||e===`sha384`?128:64;this._alg=e,this._key=t,t.length>$?t=(e===`rmd160`?new id:ad(e)).update(t).digest():t.length<$&&(t=nd.concat([t,od],$));for(var ed=this._ipad=nd.allocUnsafe($),rd=this._opad=nd.allocUnsafe($),sd=0;sd<$;sd++)ed[sd]=t[sd]^54,rd[sd]=t[sd]^92;this._hash=e===`rmd160`?new id:ad(e),this._hash.update(ed)}$(sd,td),sd.prototype._update=function(e){this._hash.update(e)},sd.prototype._final=function(){var e=this._hash.digest();return(this._alg===`rmd160`?new id:ad(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return e=e.toLowerCase(),e===`rmd160`||e===`ripemd160`?new sd(`rmd160`,t):e===`md5`?new ed(rd,t):new sd(e,t)}})),algorithms_exports=__exportAll({DSA:()=>DSA,default:()=>algorithms_default,md5WithRSAEncryption:()=>md5WithRSAEncryption,ripemd160WithRSA:()=>ripemd160WithRSA,sha224:()=>
321sha224,sha224WithRSAEncryption:()=>sha224WithRSAEncryption,sha256:()=>sha256,sha256WithRSAEncryption:()=>sha256WithRSAEncryption,sha384:()=>sha384,sha384WithRSAEncryption:()=>sha384WithRSAEncryption,sha512:()=>sha512,sha512WithRSAEncryption:()=>sha512WithRSAEncryption}),sha224WithRSAEncryption,sha256WithRSAEncryption,sha384WithRSAEncryption,sha512WithRSAEncryption,sha256,sha224,sha384,sha512,DSA,ripemd160WithRSA,md5WithRSAEncryption,algorithms_default,init_algorithms=__esmMin((()=>{sha224WithRSAEncryption={sign:`rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},sha256WithRSAEncryption={sign:`rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},sha384WithRSAEncryption={sign:`rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},sha512WithRSAEncryption={sign:`rsa`,hash:`sha512`,id:`3051300d060960864801650304020305000440`},sha256={sign:`ecdsa`,hash:`sha256`,id:``},sha224={sign:`ecdsa`,hash:`sha224`,id:``},sha384={sign:`ecdsa`,hash:`sha384`,id:``},sha512={sign:`ecdsa`,hash:`sha512`,id:``},DSA={sign:`dsa`,hash:`sha1`,id:``},ripemd160WithRSA={sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},md5WithRSAEncryption={sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`},algorithms_default={sha224WithRSAEncryption,"RSA-SHA224":{sign:`ecdsa/rsa`,hash:`sha224`,id:`302d300d06096086480165030402040500041c`},sha256WithRSAEncryption,"RSA-SHA256":{sign:`ecdsa/rsa`,hash:`sha256`,id:`3031300d060960864801650304020105000420`},sha384WithRSAEncryption,"RSA-SHA384":{sign:`ecdsa/rsa`,hash:`sha384`,id:`3041300d060960864801650304020205000430`},sha512WithRSAEncryption,"RSA-SHA512":{sign:`ecdsa/rsa`,hash:`sha512`,id:`3051300d060960864801650304020305000440`},"RSA-SHA1":{sign:`rsa`,hash:`sha1`,id:`3021300906052b0e03021a05000414`},"ecdsa-with-SHA1":{sign:`ecdsa`,hash:`sha1`,id:``},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:`dsa`,hash:`sha1`,id:``},"DSA-SHA1":{sign:`dsa`,hash:`sha1`,id:``},DSA,"DSA-WITH-SHA224":{sign:`dsa`,hash:`sha224`,id:``},"DSA-SHA224":{sign:`dsa`,hash:`sha224`,id:``},"DSA-WITH-SHA256":{sign:`dsa`,hash:`sha256`,id:``},"DSA-SHA256":{sign:`dsa`,hash:`sha256`,id:``},"DSA-WITH-SHA384":{sign:`dsa`,hash:`sha384`,id:``},"DSA-SHA384":{sign:`dsa`,hash:`sha384`,id:``},"DSA-WITH-SHA512":{sign:`dsa`,hash:`sha512`,id:``},"DSA-SHA512":{sign:`dsa`,hash:`sha512`,id:``},"DSA-RIPEMD160":{sign:`dsa`,hash:`rmd160`,id:``},ripemd160WithRSA,"RSA-RIPEMD160":{sign:`rsa`,hash:`rmd160`,id:`3021300906052b2403020105000414`},md5WithRSAEncryption,"RSA-MD5":{sign:`rsa`,hash:`md5`,id:`3020300c06082a864886f70d020505000410`}}})),require_algos=__commonJSMin(((e,t)=>{t.exports=(init_algorithms(),__toCommonJS(algorithms_exports).default)})),require_precondition=__commonJSMin(((e,t)=>{var $=isFinite,ed=2**30-1;t.exports=function(e,t){if(typeof e!=`number`)throw TypeError(`Iterations not a number`);if(e<0||!$(e))throw TypeError(`Bad iterations`);if(typeof t!=`number`)throw TypeError(`Key length not a number`);if(t<0||t>ed||t!==t)throw TypeError(`Bad key length`)}})),require_default_encoding=__commonJSMin(((e,t)=>{init_dist$1(),init_dist(),t.exports=global.process&&global.process.browser?`utf-8`:global.process&&global.process.version?parseInt(process$1.version.split(`.`)[0].slice(1),10)>=6?`utf-8`:`binary`:`utf-8`})),require_to_buffer=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_to_buffer$2(),td=typeof Uint8Array<`u`,nd=td&&typeof ArrayBuffer<`u`&&ArrayBuffer.isView;t.exports=function(e,t,rd){if(typeof e==`string`||$.isBuffer(e)||td&&e instanceof Uint8Array||nd&&nd(e))return ed(e,t);throw TypeError(rd+` must be a string, a Buffer, a Uint8Array, or a DataView`)}})),require_sync_browser=__commonJSMin(((e,t)=>{var $=require_md5(),ed=require_ripemd160(),td=require_sha_js(),nd=require_safe_buffer$4().Buffer,rd=require_precondition(),id=require_default_encoding(),ad=require_to_buffer(),od=nd.alloc(128),sd={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},cd={__proto__:null,"sha-1":`sha1`,"sha-224":`sha224`,"sha-256":`sha256`,"sha-384":`sha384`,"sha-512":`sha512`,"ripemd-160":`ripemd160`};function ld(e){return new ed().update(e).digest()}function ud(e){function t(t){return td(e).update(t).digest()}return e===`rmd160`||e===`ripemd160`?ld:e===`md5`?$:t}function dd(e,t,$){var ed=ud(e),td=e===`sha512`||e===`sha384`?128:64;t.length>td?t=ed(t):t.length<td&&(t=nd.concat([t,od],td));for(var rd=nd.allocUnsafe(td+sd[e]),id=nd.allocUnsafe(td+sd[e]),ad=0;ad<td;ad++)rd[ad]=t[ad]^54,id[ad]=t[ad]^92;var cd=nd.allocUnsafe(td+$+4);rd.copy(cd,0,0,td),this.ipad1=cd,this.ipad2=rd,this.opad=id,this.alg=e,this.blocksize=td,this.hash=ed,this.size=sd[e]}dd.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)};function fd(e,t,$,ed,td){rd($,ed),e=ad(e,id,`Password`),t=ad(t,id,`Salt`);var od=(td||`sha1`).toLowerCase(),ld=cd[od]||od,ud=sd[ld];if(typeof ud!=`number`||!ud)throw TypeError(`Digest algorithm not supported: `+td);var fd=new dd(ld,e,t.length),pd=nd.allocUnsafe(ed),md=nd.allocUnsafe(t.length+4);t.copy(md,0,0,t.length);for(var hd=0,gd=ud,_d=Math.ceil(ed/gd),vd=1;vd<=_d;vd++){md.writeUInt32BE(vd,t.length);for(var yd=fd.run(md,fd.ipad1),bd=yd,xd=1;xd<$;xd++){bd=fd.run(bd,fd.ipad2);for(var Sd=0;Sd<gd;Sd++)yd[Sd]^=bd[Sd]}yd.copy(pd,hd),hd+=gd}return pd}t.exports=fd})),require_async=__commonJSMin(((e,t)=>{init_dist$1();var $=require_safe_buffer$4().Buffer,ed=require_precondition(),td=require_default_encoding(),nd=require_sync_browser(),rd=require_to_buffer(),id,ad=global.crypto&&global.crypto.subtle,od={sha:`SHA-1`,"sha-1":`SHA-1`,sha1:`SHA-1`,sha256:`SHA-256`,"sha-256":`SHA-256`,sha384:`SHA-384`,"sha-384":`SHA-384`,"sha-512":`SHA-512`,sha512:`SHA-512`}
321,sd=[],cd;function ld(){return cd||(cd=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout,cd)}function ud(e,t,ed,td,nd){return ad.importKey(`raw`,e,{name:`PBKDF2`},!1,[`deriveBits`]).then(function(e){return ad.deriveBits({name:`PBKDF2`,salt:t,iterations:ed,hash:{name:nd}},e,td<<3)}).then(function(e){return $.from(e)})}function dd(e){if(global.process&&!global.process.browser||!ad||!ad.importKey||!ad.deriveBits)return Promise.resolve(!1);if(sd[e]!==void 0)return sd[e];id||=$.alloc(8);var t=ud(id,id,10,128,e).then(function(){return!0},function(){return!1});return sd[e]=t,t}function fd(e,t){e.then(function(e){ld()(function(){t(null,e)})},function(e){ld()(function(){t(e)})})}t.exports=function(e,t,$,id,ad,sd){if(typeof ad==`function`&&(sd=ad,ad=void 0),ed($,id),e=rd(e,td,`Password`),t=rd(t,td,`Salt`),typeof sd!=`function`)throw Error(`No callback provided to pbkdf2`);ad||=`sha1`;var cd=od[ad.toLowerCase()];if(!cd||typeof global.Promise!=`function`){ld()(function(){var ed;try{ed=nd(e,t,$,id,ad)}catch(e){sd(e);return}sd(null,ed)});return}fd(dd(cd).then(function(ed){return ed?ud(e,t,$,id,cd):nd(e,t,$,id,ad)}),sd)}})),require_browser$8=__commonJSMin((e=>{e.pbkdf2=require_async(),e.pbkdf2Sync=require_sync_browser()})),require_utils$3=__commonJSMin((e=>{e.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},e.writeUInt32BE=function(e,t,$){e[0+$]=t>>>24,e[1+$]=t>>>16&255,e[2+$]=t>>>8&255,e[3+$]=t&255},e.ip=function(e,t,$,ed){for(var td=0,nd=0,rd=6;rd>=0;rd-=2){for(var id=0;id<=24;id+=8)td<<=1,td|=t>>>id+rd&1;for(var id=0;id<=24;id+=8)td<<=1,td|=e>>>id+rd&1}for(var rd=6;rd>=0;rd-=2){for(var id=1;id<=25;id+=8)nd<<=1,nd|=t>>>id+rd&1;for(var id=1;id<=25;id+=8)nd<<=1,nd|=e>>>id+rd&1}$[ed+0]=td>>>0,$[ed+1]=nd>>>0},e.rip=function(e,t,$,ed){for(var td=0,nd=0,rd=0;rd<4;rd++)for(var id=24;id>=0;id-=8)td<<=1,td|=t>>>id+rd&1,td<<=1,td|=e>>>id+rd&1;for(var rd=4;rd<8;rd++)for(var id=24;id>=0;id-=8)nd<<=1,nd|=t>>>id+rd&1,nd<<=1,nd|=e>>>id+rd&1;$[ed+0]=td>>>0,$[ed+1]=nd>>>0},e.pc1=function(e,t,$,ed){for(var td=0,nd=0,rd=7;rd>=5;rd--){for(var id=0;id<=24;id+=8)td<<=1,td|=t>>id+rd&1;for(var id=0;id<=24;id+=8)td<<=1,td|=e>>id+rd&1}for(var id=0;id<=24;id+=8)td<<=1,td|=t>>id+rd&1;for(var rd=1;rd<=3;rd++){for(var id=0;id<=24;id+=8)nd<<=1,nd|=t>>id+rd&1;for(var id=0;id<=24;id+=8)nd<<=1,nd|=e>>id+rd&1}for(var id=0;id<=24;id+=8)nd<<=1,nd|=e>>id+rd&1;$[ed+0]=td>>>0,$[ed+1]=nd>>>0},e.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var t=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(e,$,ed,td){for(var nd=0,rd=0,id=t.length>>>1,ad=0;ad<id;ad++)nd<<=1,nd|=e>>>t[ad]&1;for(var ad=id;ad<t.length;ad++)rd<<=1,rd|=$>>>t[ad]&1;ed[td+0]=nd>>>0,ed[td+1]=rd>>>0},e.expand=function(e,t,$){var ed=0,td=0;ed=(e&1)<<5|e>>>27;for(var nd=23;nd>=15;nd-=4)ed<<=6,ed|=e>>>nd&63;for(var nd=11;nd>=3;nd-=4)td|=e>>>nd&63,td<<=6;td|=(e&31)<<1|e>>>31,t[$+0]=ed>>>0,t[$+1]=td>>>0};var $=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(e,t){for(var ed=0,td=0;td<4;td++){var nd=e>>>18-td*6&63,rd=$[td*64+nd];ed<<=4,ed|=rd}for(var td=0;td<4;td++){var nd=t>>>18-td*6&63,rd=$[256+td*64+nd];ed<<=4,ed|=rd}return ed>>>0};var ed=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(e){for(var t=0,$=0;$<ed.length;$++)t<<=1,t|=e>>>ed[$]&1;return t>>>0},e.padSplit=function(e,t,$){for(var ed=e.toString(2);ed.length<t;)ed=`0`+ed;for(var td=[],nd=0;nd<t;nd+=$)td.push(ed.slice(nd,nd+$));return td.join(` `)}})),require_minimalistic_assert=__commonJSMin(((e,t)=>{t.exports=$;function $(e,t){if(!e)throw Error(t||`Assertion failed`)}$.equal=function(e,t,$){if(e!=t)throw Error($||`Assertion failed: `+e+` != `+t)}}
321)),require_cipher=__commonJSMin(((e,t)=>{var $=require_minimalistic_assert();function ed(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}t.exports=ed,ed.prototype._init=function(){},ed.prototype.update=function(e){return e.length===0?[]:this.type===`decrypt`?this._updateDecrypt(e):this._updateEncrypt(e)},ed.prototype._buffer=function(e,t){for(var $=Math.min(this.buffer.length-this.bufferOff,e.length-t),ed=0;ed<$;ed++)this.buffer[this.bufferOff+ed]=e[t+ed];return this.bufferOff+=$,$},ed.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},ed.prototype._updateEncrypt=function(e){var t=0,$=0,ed=(this.bufferOff+e.length)/this.blockSize|0,td=Array(ed*this.blockSize);this.bufferOff!==0&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&($+=this._flushBuffer(td,$)));for(var nd=e.length-(e.length-t)%this.blockSize;t<nd;t+=this.blockSize)this._update(e,t,td,$),$+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return td},ed.prototype._updateDecrypt=function(e){for(var t=0,$=0,ed=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,td=Array(ed*this.blockSize);ed>0;ed--)t+=this._buffer(e,t),$+=this._flushBuffer(td,$);return t+=this._buffer(e,t),td},ed.prototype.final=function(e){var t;e&&(t=this.update(e));var $=this.type===`encrypt`?this._finalEncrypt():this._finalDecrypt();return t?t.concat($):$},ed.prototype._pad=function(e,t){if(t===0)return!1;for(;t<e.length;)e[t++]=0;return!0},ed.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},ed.prototype._unpad=function(e){return e},ed.prototype._finalDecrypt=function(){$.equal(this.bufferOff,this.blockSize,`Not enough data to decrypt`);var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}})),require_des$1=__commonJSMin(((e,t)=>{var $=require_minimalistic_assert(),ed=require_inherits_browser(),td=require_utils$3(),nd=require_cipher();function rd(){this.tmp=[,,],this.keys=null}function id(e){nd.call(this,e);var t=new rd;this._desState=t,this.deriveKeys(t,e.key)}ed(id,nd),t.exports=id,id.create=function(e){return new id(e)};var ad=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];id.prototype.deriveKeys=function(e,t){e.keys=Array(32),$.equal(t.length,this.blockSize,`Invalid key length`);var ed=td.readUInt32BE(t,0),nd=td.readUInt32BE(t,4);td.pc1(ed,nd,e.tmp,0),ed=e.tmp[0],nd=e.tmp[1];for(var rd=0;rd<e.keys.length;rd+=2){var id=ad[rd>>>1];ed=td.r28shl(ed,id),nd=td.r28shl(nd,id),td.pc2(ed,nd,e.keys,rd)}},id.prototype._update=function(e,t,$,ed){var nd=this._desState,rd=td.readUInt32BE(e,t),id=td.readUInt32BE(e,t+4);td.ip(rd,id,nd.tmp,0),rd=nd.tmp[0],id=nd.tmp[1],this.type===`encrypt`?this._encrypt(nd,rd,id,nd.tmp,0):this._decrypt(nd,rd,id,nd.tmp,0),rd=nd.tmp[0],id=nd.tmp[1],td.writeUInt32BE($,rd,ed),td.writeUInt32BE($,id,ed+4)},id.prototype._pad=function(e,t){if(this.padding===!1)return!1;for(var $=e.length-t,ed=t;ed<e.length;ed++)e[ed]=$;return!0},id.prototype._unpad=function(e){if(this.padding===!1)return e;for(var t=e[e.length-1],ed=e.length-t;ed<e.length;ed++)$.equal(e[ed],t);return e.slice(0,e.length-t)},id.prototype._encrypt=function(e,t,$,ed,nd){for(var rd=t,id=$,ad=0;ad<e.keys.length;ad+=2){var od=e.keys[ad],sd=e.keys[ad+1];td.expand(id,e.tmp,0),od^=e.tmp[0],sd^=e.tmp[1];var cd=td.substitute(od,sd),ld=td.permute(cd),ud=id;id=(rd^ld)>>>0,rd=ud}td.rip(id,rd,ed,nd)},id.prototype._decrypt=function(e,t,$,ed,nd){for(var rd=$,id=t,ad=e.keys.length-2;ad>=0;ad-=2){var od=e.keys[ad],sd=e.keys[ad+1];td.expand(rd,e.tmp,0),od^=e.tmp[0],sd^=e.tmp[1];var cd=td.substitute(od,sd),ld=td.permute(cd),ud=rd;rd=(id^ld)>>>0,id=ud}td.rip(rd,id,ed,nd)}})),require_cbc$1=__commonJSMin((e=>{var t=require_minimalistic_assert(),$=require_inherits_browser(),ed={};function td(e){t.equal(e.length,8,`Invalid IV length`),this.iv=Array(8);for(var $=0;$<this.iv.length;$++)this.iv[$]=e[$]}function nd(e){function t(t){e.call(this,t),this._cbcInit()}$(t,e);for(var td=Object.keys(ed),nd=0;nd<td.length;nd++){var rd=td[nd];t.prototype[rd]=ed[rd]}return t.create=function(e){return new t(e)},t}e.instantiate=nd,ed._cbcInit=function(){this._cbcState=new td(this.options.iv)},ed._update=function(e,t,$,ed){var td=this._cbcState,nd=this.constructor.super_.prototype,rd=td.iv;
321if(this.type===`encrypt`){for(var id=0;id<this.blockSize;id++)rd[id]^=e[t+id];nd._update.call(this,rd,0,$,ed);for(var id=0;id<this.blockSize;id++)rd[id]=$[ed+id]}else{nd._update.call(this,e,t,$,ed);for(var id=0;id<this.blockSize;id++)$[ed+id]^=rd[id];for(var id=0;id<this.blockSize;id++)rd[id]=e[t+id]}}})),require_ede=__commonJSMin(((e,t)=>{var $=require_minimalistic_assert(),ed=require_inherits_browser(),td=require_cipher(),nd=require_des$1();function rd(e,t){$.equal(t.length,24,`Invalid key length`);var ed=t.slice(0,8),td=t.slice(8,16),rd=t.slice(16,24);e===`encrypt`?this.ciphers=[nd.create({type:`encrypt`,key:ed}),nd.create({type:`decrypt`,key:td}),nd.create({type:`encrypt`,key:rd})]:this.ciphers=[nd.create({type:`decrypt`,key:rd}),nd.create({type:`encrypt`,key:td}),nd.create({type:`decrypt`,key:ed})]}function id(e){td.call(this,e),this._edeState=new rd(this.type,this.options.key)}ed(id,td),t.exports=id,id.create=function(e){return new id(e)},id.prototype._update=function(e,t,$,ed){var td=this._edeState;td.ciphers[0]._update(e,t,$,ed),td.ciphers[1]._update($,ed,$,ed),td.ciphers[2]._update($,ed,$,ed)},id.prototype._pad=nd.prototype._pad,id.prototype._unpad=nd.prototype._unpad})),require_des=__commonJSMin((e=>{e.utils=require_utils$3(),e.Cipher=require_cipher(),e.DES=require_des$1(),e.CBC=require_cbc$1(),e.EDE=require_ede()})),require_browserify_des=__commonJSMin(((e,t)=>{var $=require_cipher_base(),ed=require_des(),td=require_inherits_browser(),nd=require_safe_buffer$4().Buffer,rd={"des-ede3-cbc":ed.CBC.instantiate(ed.EDE),"des-ede3":ed.EDE,"des-ede-cbc":ed.CBC.instantiate(ed.EDE),"des-ede":ed.EDE,"des-cbc":ed.CBC.instantiate(ed.DES),"des-ecb":ed.DES};rd.des=rd[`des-cbc`],rd.des3=rd[`des-ede3-cbc`],t.exports=id,td(id,$);function id(e){$.call(this);var t=e.mode.toLowerCase(),ed=rd[t],td=e.decrypt?`decrypt`:`encrypt`,id=e.key;nd.isBuffer(id)||(id=nd.from(id)),(t===`des-ede`||t===`des-ede-cbc`)&&(id=nd.concat([id,id.slice(0,8)]));var ad=e.iv;nd.isBuffer(ad)||(ad=nd.from(ad)),this._des=ed.create({key:id,iv:ad,type:td})}id.prototype._update=function(e){return nd.from(this._des.update(e))},id.prototype._final=function(){return nd.from(this._des.final())}})),require_ecb=__commonJSMin((e=>{e.encrypt=function(e,t){return e._cipher.encryptBlock(t)},e.decrypt=function(e,t){return e._cipher.decryptBlock(t)}})),require_buffer_xor=__commonJSMin(((e,t)=>{init_dist$2(),t.exports=function(e,t){for(var $=Math.min(e.length,t.length),ed=new Buffer($),td=0;td<$;++td)ed[td]=e[td]^t[td];return ed}})),require_cbc=__commonJSMin((e=>{var t=require_buffer_xor();e.encrypt=function(e,$){var ed=t($,e._prev);return e._prev=e._cipher.encryptBlock(ed),e._prev},e.decrypt=function(e,$){var ed=e._prev;return e._prev=$,t(e._cipher.decryptBlock($),ed)}})),require_cfb=__commonJSMin((e=>{var t=require_safe_buffer$4().Buffer,$=require_buffer_xor();function ed(e,ed,td){var nd=ed.length,rd=$(ed,e._cache);return e._cache=e._cache.slice(nd),e._prev=t.concat([e._prev,td?ed:rd]),rd}e.encrypt=function(e,$,td){for(var nd=t.allocUnsafe(0),rd;$.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=t.allocUnsafe(0)),e._cache.length<=$.length)rd=e._cache.length,nd=t.concat([nd,ed(e,$.slice(0,rd),td)]),$=$.slice(rd);else{nd=t.concat([nd,ed(e,$,td)]);break}return nd}})),require_cfb8=__commonJSMin((e=>{var t=require_safe_buffer$4().Buffer;function $(e,$,ed){var td=e._cipher.encryptBlock(e._prev)[0]^$;return e._prev=t.concat([e._prev.slice(1),t.from([ed?$:td])]),td}e.encrypt=function(e,ed,td){for(var nd=ed.length,rd=t.allocUnsafe(nd),id=-1;++id<nd;)rd[id]=$(e,ed[id],td);return rd}})),require_cfb1=__commonJSMin((e=>{var t=require_safe_buffer$4().Buffer;function $(e,t,$){for(var td,nd=-1,rd=8,id=0,ad,od;++nd<rd;)td=e._cipher.encryptBlock(e._prev),ad=t&1<<7-nd?128:0,od=td[0]^ad,id+=(od&128)>>nd%8,e._prev=ed(e._prev,$?ad:od);return id}function ed(e,$){var ed=e.length,td=-1,nd=t.allocUnsafe(e.length);for(e=t.concat([e,t.from([$])]);++td<ed;)nd[td]=e[td]<<1|e[td+1]>>7;return nd}e.encrypt=function(e,ed,td){for(var nd=ed.length,rd=t.allocUnsafe(nd),id=-1;++id<nd;)rd[id]=$(e,ed[id],td);return rd}}
321)),require_ofb=__commonJSMin((e=>{init_dist$2();var t=require_buffer_xor();function $(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}e.encrypt=function(e,ed){for(;e._cache.length<ed.length;)e._cache=Buffer.concat([e._cache,$(e)]);var td=e._cache.slice(0,ed.length);return e._cache=e._cache.slice(ed.length),t(ed,td)}})),require_incr32=__commonJSMin(((e,t)=>{function $(e){for(var t=e.length,$;t--;)if($=e.readUInt8(t),$===255)e.writeUInt8(0,t);else{$++,e.writeUInt8($,t);break}}t.exports=$})),require_ctr=__commonJSMin((e=>{var t=require_buffer_xor(),$=require_safe_buffer$4().Buffer,ed=require_incr32();function td(e){var t=e._cipher.encryptBlockRaw(e._prev);return ed(e._prev),t}var nd=16;e.encrypt=function(e,ed){var rd=Math.ceil(ed.length/nd),id=e._cache.length;e._cache=$.concat([e._cache,$.allocUnsafe(rd*nd)]);for(var ad=0;ad<rd;ad++){var od=td(e),sd=id+ad*nd;e._cache.writeUInt32BE(od[0],sd+0),e._cache.writeUInt32BE(od[1],sd+4),e._cache.writeUInt32BE(od[2],sd+8),e._cache.writeUInt32BE(od[3],sd+12)}var cd=e._cache.slice(0,ed.length);return e._cache=e._cache.slice(ed.length),t(ed,cd)}})),list_exports=__exportAll({aes128:()=>aes128,aes192:()=>aes192,aes256:()=>aes256,default:()=>list_default}),aes128,aes192,aes256,list_default,init_list=__esmMin((()=>{aes128={cipher:`AES`,key:128,iv:16,mode:`CBC`,type:`block`},aes192={cipher:`AES`,key:192,iv:16,mode:`CBC`,type:`block`},aes256={cipher:`AES`,key:256,iv:16,mode:`CBC`,type:`block`},list_default={"aes-128-ecb":{cipher:`AES`,key:128,iv:0,mode:`ECB`,type:`block`},"aes-192-ecb":{cipher:`AES`,key:192,iv:0,mode:`ECB`,type:`block`},"aes-256-ecb":{cipher:`AES`,key:256,iv:0,mode:`ECB`,type:`block`},"aes-128-cbc":{cipher:`AES`,key:128,iv:16,mode:`CBC`,type:`block`},"aes-192-cbc":{cipher:`AES`,key:192,iv:16,mode:`CBC`,type:`block`},"aes-256-cbc":{cipher:`AES`,key:256,iv:16,mode:`CBC`,type:`block`},aes128,aes192,aes256,"aes-128-cfb":{cipher:`AES`,key:128,iv:16,mode:`CFB`,type:`stream`},"aes-192-cfb":{cipher:`AES`,key:192,iv:16,mode:`CFB`,type:`stream`},"aes-256-cfb":{cipher:`AES`,key:256,iv:16,mode:`CFB`,type:`stream`},"aes-128-cfb8":{cipher:`AES`,key:128,iv:16,mode:`CFB8`,type:`stream`},"aes-192-cfb8":{cipher:`AES`,key:192,iv:16,mode:`CFB8`,type:`stream`},"aes-256-cfb8":{cipher:`AES`,key:256,iv:16,mode:`CFB8`,type:`stream`},"aes-128-cfb1":{cipher:`AES`,key:128,iv:16,mode:`CFB1`,type:`stream`},"aes-192-cfb1":{cipher:`AES`,key:192,iv:16,mode:`CFB1`,type:`stream`},"aes-256-cfb1":{cipher:`AES`,key:256,iv:16,mode:`CFB1`,type:`stream`},"aes-128-ofb":{cipher:`AES`,key:128,iv:16,mode:`OFB`,type:`stream`},"aes-192-ofb":{cipher:`AES`,key:192,iv:16,mode:`OFB`,type:`stream`},"aes-256-ofb":{cipher:`AES`,key:256,iv:16,mode:`OFB`,type:`stream`},"aes-128-ctr":{cipher:`AES`,key:128,iv:16,mode:`CTR`,type:`stream`},"aes-192-ctr":{cipher:`AES`,key:192,iv:16,mode:`CTR`,type:`stream`},"aes-256-ctr":{cipher:`AES`,key:256,iv:16,mode:`CTR`,type:`stream`},"aes-128-gcm":{cipher:`AES`,key:128,iv:12,mode:`GCM`,type:`auth`},"aes-192-gcm":{cipher:`AES`,key:192,iv:12,mode:`GCM`,type:`auth`},"aes-256-gcm":{cipher:`AES`,key:256,iv:12,mode:`GCM`,type:`auth`}}})),require_modes$1=__commonJSMin(((e,t)=>{var $={ECB:require_ecb(),CBC:require_cbc(),CFB:require_cfb(),CFB8:require_cfb8(),CFB1:require_cfb1(),OFB:require_ofb(),CTR:require_ctr(),GCM:require_ctr()},ed=(init_list(),__toCommonJS(list_exports).default);for(var td in ed)ed[td].module=$[ed[td].mode];t.exports=ed})),require_aes=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer;function ed(e){$.isBuffer(e)||(e=$.from(e));for(var t=e.length/4|0,ed=Array(t),td=0;td<t;td++)ed[td]=e.readUInt32BE(td*4);return ed}function td(e){for(var t=0;t<e.length;e++)e[t]=0}function nd(e,t,$,ed,td){for(var nd=$[0],rd=$[1],id=$[2],ad=$[3],od=e[0]^t[0],sd=e[1]^t[1],cd=e[2]^t[2],ld=e[3]^t[3],ud,dd,fd,pd,md=4,hd=1;hd<td;hd++)ud=nd[od>>>24]^rd[sd>>>16&255]^id[cd>>>8&255]^ad[ld&255]^t[md++],dd=nd[sd>>>24]^rd[cd>>>16&255]^id[ld>>>8&255]^ad[od&255]^t[md++],fd=nd[cd>>>24]^rd[ld>>>16&255]^id[od>>>8&255]^ad[sd&255]^t[md++],pd=nd[ld>>>24]^rd[od>>>16&255]^id[sd>>>8&255]^ad[cd&255]^t[md++],od=ud,sd=dd,cd=fd,ld=pd;return ud=(ed[od>>>24]<<24|ed[sd>>>16&255]<<16|ed[cd>>>8&255]<<8|ed[ld&255])^t[md++],dd=(ed[sd>>>24]<<24|ed[cd>>>16&255]<<16|ed[ld>>>8&255]<<8|ed[od&255])^t[md++],fd=(ed[cd>>>24]<<24|ed[ld>>>16&255]<<16|ed[od>>>8&255]<<8|ed[sd&255])^t[md++],pd=(ed[ld>>>24]<<24|ed[od>>>16&255]<<16|ed[sd>>>8&255]<<8|ed[cd&255])^t[md++],ud>>>=0,dd>>>=0,fd>>>=0,pd>>>=0,[ud,dd,fd,pd]}var rd=[0,1,2,4,8,16,32,64,128,27,54],id=(function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var $=[],ed=[],td=[[],[],[],[]],nd=[[],[],[],[]],rd=0,id=0,ad=0;ad<256;++ad){var od=id^id<<1^id<<2^id<<3^id<<4;od=od>>>8^od&255^99,$[rd]=od,ed[od]=rd;var sd=e[rd],cd=e[sd],ld=e[cd],ud=e[od]*257^od*16843008;td[0][rd]=ud<<24|ud>>>8,td[1][rd]=ud<<16|ud>>>16,td[2][rd]=ud<<8|ud>>>24,td[3][rd]=ud,ud=ld*16843009^cd*65537^sd*257^rd*16843008,nd[0][od]=ud<<24|ud>>>8,nd[1][od]=ud<<16|ud>>>16,nd[2][od]=ud<<8|ud>>>24,nd[3][od]=ud,rd===0?rd=id=1:(rd=sd^e[e[e[ld^sd]]],id^=e[e[id]])}return{SBOX:$,INV_SBOX:ed,SUB_MIX:td,INV_SUB_MIX:nd}})();function ad(e){this._key=ed(e),this._reset()}ad.blockSize=16,ad.keySize=256/8,ad.prototype.blockSize=ad.blockSize,ad.prototype.keySize=ad.keySize,ad.prototype._reset=function(){for(var e=this._key,t=e.length,$=t+6,ed=($+1)*4,td=[],nd=0;nd<t;nd++)td[nd]=e[nd];for(nd=t;nd<ed;nd++){var ad=td[nd-1];nd%t===0?(ad=ad<<8|ad>>>24,ad=id.SBOX[ad>>>24]<<24|id.SBOX[ad>>>16&255]<<16|id.SBOX[ad>>>8&255]<<8|id.SBOX[ad&255],ad^=rd[nd/t|0]<<24):t>6&&nd%t===4&&(ad=id.SBOX[ad>>>24]<<24|id.SBOX[ad>>>16&255]<<16|id.SBOX[ad>>>8&255]<<8|id.SBOX[ad&255]),td[nd]=td[nd-t]^ad}for(var od=[],sd=0;sd<ed;sd++){var cd=ed-sd,ld=td[cd-(sd%4?0:4)];sd<4||cd<=4?od[sd]=ld:od[sd]=id.INV_SUB_MIX[0][id.SBOX[ld>>>24]]^id.INV_SUB_MIX[1][id.SBOX[ld>>>16&255]]^id.INV_SUB_MIX[2][id.SBOX[ld>>>8&255]]^id.INV_SUB_MIX[3][id.SBOX[ld&255]]}this._nRounds=$,this._keySchedule=td,this._invKeySchedule=od},ad.prototype.encryptBlockRaw=function(e){return e=ed(e),nd(e,this._keySchedule,id.SUB_MIX,id.SBOX,this._nR
321ounds)},ad.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),ed=$.allocUnsafe(16);return ed.writeUInt32BE(t[0],0),ed.writeUInt32BE(t[1],4),ed.writeUInt32BE(t[2],8),ed.writeUInt32BE(t[3],12),ed},ad.prototype.decryptBlock=function(e){e=ed(e);var t=e[1];e[1]=e[3],e[3]=t;var td=nd(e,this._invKeySchedule,id.INV_SUB_MIX,id.INV_SBOX,this._nRounds),rd=$.allocUnsafe(16);return rd.writeUInt32BE(td[0],0),rd.writeUInt32BE(td[3],4),rd.writeUInt32BE(td[2],8),rd.writeUInt32BE(td[1],12),rd},ad.prototype.scrub=function(){td(this._keySchedule),td(this._invKeySchedule),td(this._key)},t.exports.AES=ad})),require_ghash=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=$.alloc(16,0);function td(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function nd(e){var t=$.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function rd(e){this.h=e,this.state=$.alloc(16,0),this.cache=$.allocUnsafe(0)}rd.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},rd.prototype._multiply=function(){for(var e=td(this.h),t=[0,0,0,0],$,ed,rd,id=-1;++id<128;){for(ed=(this.state[~~(id/8)]&1<<7-id%8)!=0,ed&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),rd=(e[3]&1)!=0,$=3;$>0;$--)e[$]=e[$]>>>1|(e[$-1]&1)<<31;e[0]>>>=1,rd&&(e[0]^=225<<24)}this.state=nd(t)},rd.prototype.update=function(e){this.cache=$.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},rd.prototype.final=function(e,t){return this.cache.length&&this.ghash($.concat([this.cache,ed],16)),this.ghash(nd([0,e,0,t])),this.state},t.exports=rd})),require_authCipher=__commonJSMin(((e,t)=>{var $=require_aes(),ed=require_safe_buffer$4().Buffer,td=require_cipher_base(),nd=require_inherits_browser(),rd=require_ghash(),id=require_buffer_xor(),ad=require_incr32();function od(e,t){var $=0;e.length!==t.length&&$++;for(var ed=Math.min(e.length,t.length),td=0;td<ed;++td)$+=e[td]^t[td];return $}function sd(e,t,$){if(t.length===12)return e._finID=ed.concat([t,ed.from([0,0,0,1])]),ed.concat([t,ed.from([0,0,0,2])]);var td=new rd($),nd=t.length,id=nd%16;td.update(t),id&&(id=16-id,td.update(ed.alloc(id,0))),td.update(ed.alloc(8,0));var od=nd*8,sd=ed.alloc(8);sd.writeUIntBE(od,0,8),td.update(sd),e._finID=td.state;var cd=ed.from(e._finID);return ad(cd),cd}function cd(e,t,nd,id){td.call(this);var ad=ed.alloc(4,0);this._cipher=new $.AES(t);var od=this._cipher.encryptBlock(ad);this._ghash=new rd(od),nd=sd(this,nd,od),this._prev=ed.from(nd),this._cache=ed.allocUnsafe(0),this._secCache=ed.allocUnsafe(0),this._decrypt=id,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}nd(cd,td),cd.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=ed.alloc(t,0),this._ghash.update(t))}this._called=!0;var $=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update($),this._len+=e.length,$},cd.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error(`Unsupported state or unable to authenticate data`);var e=id(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&od(e,this._authTag))throw Error(`Unsupported state or unable to authenticate data`);this._authTag=e,this._cipher.scrub()},cd.prototype.getAuthTag=function(){if(this._decrypt||!ed.isBuffer(this._authTag))throw Error(`Attempting to get auth tag in unsupported state`);return this._authTag},cd.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error(`Attempting to set auth tag in unsupported state`);this._authTag=e},cd.prototype.setAAD=function(e){if(this._called)throw Error(`Attempting to set AAD in unsupported state`);this._ghash.update(e),this._alen+=e.length},t.exports=cd})),require_streamCipher=__commonJSMin(((e,t)=>{var $=require_aes(),ed=require_safe_buffer$4().Buffer,td=require_cipher_base(),nd=require_inherits_browser();function rd(e,t,nd,rd){td.call(this),this._cipher=new $.AES(t),this._prev=ed.from(nd),this._cache=ed.allocUnsafe(0),this._secCache=ed.allocUnsafe(0),this._decrypt=rd,this._mode=e}nd(rd,td),rd.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},rd.prototype._final=function(){this._cipher.scrub()},t.exports=rd})),require_evp_bytestokey=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_md5_js();function td(e,t,td,nd){if($.isBuffer(e)||(e=$.from(e,`binary`)),t&&($.isBuffer(t)||(t=$.from(t,`binary`)),t.length!==8))throw RangeError(`salt should be Buffer with 8 byte length`);for(var rd=td/8,id=$.alloc(rd),ad=$.alloc(nd||0),od=$.alloc(0);rd>0||nd>0;){var sd=new ed;sd.update(od),sd.update(e),t&&sd.update(t),od=sd.digest();var cd=0;if(rd>0){var ld=id.length-rd;cd=Math.min(rd,od.length),od.copy(id,ld,0,cd),rd-=cd}if(cd<od.length&&nd>0){var ud=ad.length-nd,dd=Math.min(nd,od.length-cd);od.copy(ad,ud,cd,cd+dd),nd-=dd}}return od.fill(0),{key:id,iv:ad}}t.exports=td})),require_encrypter=__commonJSMin((e=>{var t=require_modes$1(),$=require_authCipher(),ed=require_safe_buffer$4().Buffer,td=require_streamCipher(),nd=require_cipher_base(),rd=require_aes(),id=require_evp_bytestokey(),ad=require_inherits_browser();function od(e,t,$){nd.call(this),this._cache=new cd,this._cipher=new rd.AES(t),this._prev=ed.from($),this._mode=e,this._autopadding=!0}ad(od,nd),od.prototype._update=function(e){this._cache.add(e);for(var t,$,td=[];t=this._cache.get();)$=this._mode.encrypt(this,t),td.push($);return ed.concat(td)};var sd=ed.alloc(16,16);od.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;
321if(!e.equals(sd))throw this._cipher.scrub(),Error(`data not multiple of block length`)},od.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function cd(){this.cache=ed.allocUnsafe(0)}cd.prototype.add=function(e){this.cache=ed.concat([this.cache,e])},cd.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},cd.prototype.flush=function(){for(var e=16-this.cache.length,t=ed.allocUnsafe(e),$=-1;++$<e;)t.writeUInt8(e,$);return ed.concat([this.cache,t])};function ld(e,nd,rd){var id=t[e.toLowerCase()];if(!id)throw TypeError(`invalid suite type`);if(typeof nd==`string`&&(nd=ed.from(nd)),nd.length!==id.key/8)throw TypeError(`invalid key length `+nd.length);if(typeof rd==`string`&&(rd=ed.from(rd)),id.mode!==`GCM`&&rd.length!==id.iv)throw TypeError(`invalid iv length `+rd.length);return id.type===`stream`?new td(id.module,nd,rd):id.type===`auth`?new $(id.module,nd,rd):new od(id.module,nd,rd)}function ud(e,$){var ed=t[e.toLowerCase()];if(!ed)throw TypeError(`invalid suite type`);var td=id($,!1,ed.key,ed.iv);return ld(e,td.key,td.iv)}e.createCipheriv=ld,e.createCipher=ud})),require_decrypter=__commonJSMin((e=>{var t=require_authCipher(),$=require_safe_buffer$4().Buffer,ed=require_modes$1(),td=require_streamCipher(),nd=require_cipher_base(),rd=require_aes(),id=require_evp_bytestokey(),ad=require_inherits_browser();function od(e,t,ed){nd.call(this),this._cache=new sd,this._last=void 0,this._cipher=new rd.AES(t),this._prev=$.from(ed),this._mode=e,this._autopadding=!0}ad(od,nd),od.prototype._update=function(e){this._cache.add(e);for(var t,ed,td=[];t=this._cache.get(this._autopadding);)ed=this._mode.decrypt(this,t),td.push(ed);return $.concat(td)},od.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return cd(this._mode.decrypt(this,e));if(e)throw Error(`data not multiple of block length`)},od.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function sd(){this.cache=$.allocUnsafe(0)}sd.prototype.add=function(e){this.cache=$.concat([this.cache,e])},sd.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},sd.prototype.flush=function(){if(this.cache.length)return this.cache};function cd(e){var t=e[15];if(t<1||t>16)throw Error(`unable to decrypt data`);for(var $=-1;++$<t;)if(e[$+(16-t)]!==t)throw Error(`unable to decrypt data`);if(t!==16)return e.slice(0,16-t)}function ld(e,nd,rd){var id=ed[e.toLowerCase()];if(!id)throw TypeError(`invalid suite type`);if(typeof rd==`string`&&(rd=$.from(rd)),id.mode!==`GCM`&&rd.length!==id.iv)throw TypeError(`invalid iv length `+rd.length);if(typeof nd==`string`&&(nd=$.from(nd)),nd.length!==id.key/8)throw TypeError(`invalid key length `+nd.length);return id.type===`stream`?new td(id.module,nd,rd,!0):id.type===`auth`?new t(id.module,nd,rd,!0):new od(id.module,nd,rd)}function ud(e,t){var $=ed[e.toLowerCase()];if(!$)throw TypeError(`invalid suite type`);var td=id(t,!1,$.key,$.iv);return ld(e,td.key,td.iv)}e.createDecipher=ud,e.createDecipheriv=ld})),require_browser$7=__commonJSMin((e=>{var t=require_encrypter(),$=require_decrypter(),ed=(init_list(),__toCommonJS(list_exports).default);function td(){return Object.keys(ed)}e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=$.createDecipher,e.createDecipheriv=e.Decipheriv=$.createDecipheriv,e.listCiphers=e.getCiphers=td})),require_modes=__commonJSMin((e=>{e[`des-ecb`]={key:8,iv:0},e[`des-cbc`]=e.des={key:8,iv:8},e[`des-ede3-cbc`]=e.des3={key:24,iv:8},e[`des-ede3`]={key:24,iv:0},e[`des-ede-cbc`]={key:16,iv:8},e[`des-ede`]={key:16,iv:0}})),require_browser$6=__commonJSMin((e=>{var t=require_browserify_des(),$=require_browser$7(),ed=require_modes$1(),td=require_modes(),nd=require_evp_bytestokey();function rd(e,t){e=e.toLowerCase();var $,rd;if(ed[e])$=ed[e].key,rd=ed[e].iv;else if(td[e])$=td[e].key*8,rd=td[e].iv;else throw TypeError(`invalid suite type`);var id=nd(t,!1,$,rd);return ad(e,id.key,id.iv)}function id(e,t){e=e.toLowerCase();var $,rd;
321if(ed[e])$=ed[e].key,rd=ed[e].iv;else if(td[e])$=td[e].key*8,rd=td[e].iv;else throw TypeError(`invalid suite type`);var id=nd(t,!1,$,rd);return od(e,id.key,id.iv)}function ad(e,nd,rd){if(e=e.toLowerCase(),ed[e])return $.createCipheriv(e,nd,rd);if(td[e])return new t({key:nd,iv:rd,mode:e});throw TypeError(`invalid suite type`)}function od(e,nd,rd){if(e=e.toLowerCase(),ed[e])return $.createDecipheriv(e,nd,rd);if(td[e])return new t({key:nd,iv:rd,mode:e,decrypt:!0});throw TypeError(`invalid suite type`)}function sd(){return Object.keys(td).concat($.getCiphers())}e.createCipher=e.Cipher=rd,e.createCipheriv=e.Cipheriv=ad,e.createDecipher=e.Decipher=id,e.createDecipheriv=e.Decipheriv=od,e.listCiphers=e.getCiphers=sd})),require_bn$2=__commonJSMin(((e,t)=>{(function(e,t){function $(e,t){if(!e)throw Error(t||`Assertion failed`)}function ed(e,t){e.super_=t;var $=function(){};$.prototype=t.prototype,e.prototype=new $,e.prototype.constructor=e}function td(e,t,$){if(td.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&($=t,t=10),this._init(e||0,t||10,$||`be`))}typeof e==`object`?e.exports=td:t.BN=td,td.BN=td,td.wordSize=26;var nd;try{nd=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:require___vite_browser_external().Buffer}catch{}td.isBN=function(e){return e instanceof td?!0:typeof e==`object`&&!!e&&e.constructor.wordSize===td.wordSize&&Array.isArray(e.words)},td.max=function(e,t){return e.cmp(t)>0?e:t},td.min=function(e,t){return e.cmp(t)<0?e:t},td.prototype._init=function(e,t,ed){if(typeof e==`number`)return this._initNumber(e,t,ed);if(typeof e==`object`)return this._initArray(e,t,ed);t===`hex`&&(t=16),$(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var td=0;e[0]===`-`&&(td++,this.negative=1),td<e.length&&(t===16?this._parseHex(e,td,ed):(this._parseBase(e,t,td),ed===`le`&&this._initArray(this.toArray(),t,ed)))},td.prototype._initNumber=function(e,t,ed){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):($(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),ed===`le`&&this._initArray(this.toArray(),t,ed)},td.prototype._initArray=function(e,t,ed){if($(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var td=0;td<this.length;td++)this.words[td]=0;var nd,rd,id=0;if(ed===`be`)for(td=e.length-1,nd=0;td>=0;td-=3)rd=e[td]|e[td-1]<<8|e[td-2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);else if(ed===`le`)for(td=0,nd=0;td<e.length;td+=3)rd=e[td]|e[td+1]<<8|e[td+2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);return this.strip()};function rd(e,t){var $=e.charCodeAt(t);return $>=65&&$<=70?$-55:$>=97&&$<=102?$-87:$-48&15}function id(e,t,$){var ed=rd(e,$);return $-1>=t&&(ed|=rd(e,$-1)<<4),ed}td.prototype._parseHex=function(e,t,$){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var ed=0;ed<this.length;ed++)this.words[ed]=0;var td=0,nd=0,rd;if($===`be`)for(ed=e.length-1;ed>=t;ed-=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;else for(ed=(e.length-t)%2==0?t+1:t;ed<e.length;ed+=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;this.strip()};function ad(e,t,$,ed){for(var td=0,nd=Math.min(e.length,$),rd=t;rd<nd;rd++){var id=e.charCodeAt(rd)-48;td*=ed,id>=49?td+=id-49+10:id>=17?td+=id-17+10:td+=id}return td}td.prototype._parseBase=function(e,t,$){this.words=[0],this.length=1;for(var ed=0,td=1;td<=67108863;td*=t)ed++;ed--,td=td/t|0;for(var nd=e.length-$,rd=nd%ed,id=Math.min(nd,nd-rd)+$,od=0,sd=$;sd<id;sd+=ed)od=ad(e,sd,sd+ed,t),this.imuln(td),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od);if(rd!==0){var cd=1;for(od=ad(e,sd,e.length,t),sd=0;sd<rd;sd++)cd*=t;this.imuln(cd),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od)}this.strip()},td.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},td.prototype.clone=function(){var e=new td(null);return this.copy(e),e},td.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},td.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},td.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},td.prototype.inspect=function(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`};var od=`.0.00.000.0000.00000.000000.0000000.00000000.000000000.0000000000.00000000000.000000000000.0000000000000.00000000000000.000000000000000.0000000000000000.00000000000000000.000000000000000000.0000000000000000000.00000000000000000000.000000000000000000000.0000000000000000000000.00000000000000000000000.000000000000000000000000.0000000000000000000000000`.split(`.`),sd=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],cd=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 6,067 bytes, line 321
321777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];td.prototype.toString=function(e,t){e||=10,t=t|0||1;var ed;if(e===16||e===`hex`){ed=``;for(var td=0,nd=0,rd=0;rd<this.length;rd++){var id=this.words[rd],ad=((id<<td|nd)&16777215).toString(16);nd=id>>>24-td&16777215,td+=2,td>=26&&(td-=26,rd--),ed=nd!==0||rd!==this.length-1?od[6-ad.length]+ad+ed:ad+ed}for(nd!==0&&(ed=nd.toString(16)+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}if(e===(e|0)&&e>=2&&e<=36){var ld=sd[e],ud=cd[e];ed=``;var dd=this.clone();for(dd.negative=0;!dd.isZero();){var fd=dd.modn(ud).toString(e);dd=dd.idivn(ud),ed=dd.isZero()?fd+ed:od[ld-fd.length]+fd+ed}for(this.isZero()&&(ed=`0`+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}$(!1,`Base should be between 2 and 36`)},td.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&$(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},td.prototype.toJSON=function(){return this.toString(16)},td.prototype.toBuffer=function(e,t){return $(nd!==void 0),this.toArrayLike(nd,e,t)},td.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},td.prototype.toArrayLike=function(e,t,ed){var td=this.byteLength(),nd=ed||Math.max(1,td);$(td<=nd,`byte array longer than desired length`),$(nd>0,`Requested array length <= 0`),this.strip();var rd=t===`le`,id=new e(nd),ad,od,sd=this.clone();if(rd){for(od=0;!sd.isZero();od++)ad=sd.andln(255),sd.iushrn(8),id[od]=ad;for(;od<nd;od++)id[od]=0}else{for(od=0;od<nd-td;od++)id[od]=0;for(od=0;!sd.isZero();od++)ad=sd.andln(255),sd.iushrn(8),id[nd-od-1]=ad}return id},Math.clz32?td.prototype._countBits=function(e){return 32-Math.clz32(e)}:td.prototype._countBits=function(e){var t=e,$=0;return t>=4096&&($+=13,t>>>=13),t>=64&&($+=7,t>>>=7),t>=8&&($+=4,t>>>=4),t>=2&&($+=2,t>>>=2),$+t},td.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,$=0;return t&8191||($+=13,t>>>=13),t&127||($+=7,t>>>=7),t&15||($+=4,t>>>=4),t&3||($+=2,t>>>=2),t&1||$++,$},td.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function ld(e){for(var t=Array(e.bitLength()),$=0;$<t.length;$++){var ed=$/26|0,td=$%26;t[$]=(e.words[ed]&1<<td)>>>td}return t}td.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var $=this._zeroBits(this.words[t]);if(e+=$,$!==26)break}return e},td.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},td.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},td.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},td.prototype.isNeg=function(){return this.negative!==0},td.prototype.neg=function(){return this.clone().ineg()},td.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},td.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},td.prototype.ior=function(e){return $((this.negative|e.negative)===0),this.iuor(e)},td.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},td.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},td.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,$=0;$<t.length;$++)this.words[$]=this.words[$]&e.words[$];return this.length=t.length,this.strip()},td.prototype.iand=function(e){return $((this.negative|e.negative)===0),this.iuand(e)},td.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},td.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},td.prototype.iuxor=function(e){var t,$;this.length>e.length?(t=this,$=e):(t=e,$=this);for(var ed=0;ed<$.length;ed++)this.words[ed]=t.words[ed]^$.words[ed];if(this!==t)for(;ed<t.length;ed++)this.words[ed]=t.words[ed];return this.length=t.length,this.strip()},td.prototype.ixor=function(e){return $((this.negative|e.negative)===0),this.iuxor(e)},td.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},td.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},td.prototype.inotn=function(e){$(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,ed=e%26;this._expand(t),ed>0&&t--;for(var td=0;td<t;td++)this.words[td]=~this.words[td]&67108863;return ed>0&&(this.words[td]=~this.words[td]&67108863>>26-ed),this.strip()},td.prototype.notn=function(e){return this.clone().inotn(e)},td.prototype.setn=function(e,t){$(typeof e==`number`&&e>=0);var ed=e/26|0,td=e%26;return this._expand(ed+1),t?this.words[ed]=this.words[ed]|1<<td:this.words[ed]=this.words[ed]&~(1<<td),this.strip()},td.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var $,ed;this.length>e.length?($=this,ed=e):($=e,ed=this);for(var td=0,nd=0;nd<ed.length;nd++)t=($.words[nd]|0)+(ed.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;for(;td!==0&&nd<$.length;nd++)t=($.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;if(this.length=$.length,td!==0)this.words[this.length]=td,this.length++;else if($!==this)for(;nd<$.length;nd++)this.words[nd]=$.words[nd];return this},td.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},td.prototype.isub=function(e){if(e.negative!==0){e.negative=0;
vendor: 5,636 bytes, line 321
321var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var $=this.cmp(e);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ed,td;$>0?(ed=this,td=e):(ed=e,td=this);for(var nd=0,rd=0;rd<td.length;rd++)t=(ed.words[rd]|0)-(td.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;for(;nd!==0&&rd<ed.length;rd++)t=(ed.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;if(nd===0&&rd<ed.length&&ed!==this)for(;rd<ed.length;rd++)this.words[rd]=ed.words[rd];return this.length=Math.max(this.length,rd),ed!==this&&(this.negative=1),this.strip()},td.prototype.sub=function(e){return this.clone().isub(e)};function ud(e,t,$){$.negative=t.negative^e.negative;var ed=e.length+t.length|0;$.length=ed,ed=ed-1|0;var td=e.words[0]|0,nd=t.words[0]|0,rd=td*nd,id=rd&67108863,ad=rd/67108864|0;$.words[0]=id;for(var od=1;od<ed;od++){for(var sd=ad>>>26,cd=ad&67108863,ld=Math.min(od,t.length-1),ud=Math.max(0,od-e.length+1);ud<=ld;ud++){var dd=od-ud|0;td=e.words[dd]|0,nd=t.words[ud]|0,rd=td*nd+cd,sd+=rd/67108864|0,cd=rd&67108863}$.words[od]=cd|0,ad=sd|0}return ad===0?$.length--:$.words[od]=ad|0,$.strip()}var dd=function(e,t,$){var ed=e.words,td=t.words,nd=$.words,rd=0,id,ad,od,sd=ed[0]|0,cd=sd&8191,ld=sd>>>13,ud=ed[1]|0,dd=ud&8191,fd=ud>>>13,pd=ed[2]|0,md=pd&8191,hd=pd>>>13,gd=ed[3]|0,_d=gd&8191,vd=gd>>>13,yd=ed[4]|0,bd=yd&8191,xd=yd>>>13,Sd=ed[5]|0,Cd=Sd&8191,wd=Sd>>>13,Td=ed[6]|0,Ed=Td&8191,Dd=Td>>>13,Od=ed[7]|0,kd=Od&8191,Ad=Od>>>13,jd=ed[8]|0,Md=jd&8191,Nd=jd>>>13,Pd=ed[9]|0,Fd=Pd&8191,Id=Pd>>>13,Ld=td[0]|0,Rd=Ld&8191,zd=Ld>>>13,Bd=td[1]|0,Vd=Bd&8191,Hd=Bd>>>13,Ud=td[2]|0,Wd=Ud&8191,Gd=Ud>>>13,Kd=td[3]|0,qd=Kd&8191,Jd=Kd>>>13,Yd=td[4]|0,Xd=Yd&8191,Zd=Yd>>>13,Qd=td[5]|0,$d=Qd&8191,ef=Qd>>>13,tf=td[6]|0,nf=tf&8191,rf=tf>>>13,af=td[7]|0,of=af&8191,sf=af>>>13,cf=td[8]|0,lf=cf&8191,uf=cf>>>13,df=td[9]|0,ff=df&8191,pf=df>>>13;$.negative=e.negative^t.negative,$.length=19,id=Math.imul(cd,Rd),ad=Math.imul(cd,zd),ad=ad+Math.imul(ld,Rd)|0,od=Math.imul(ld,zd);var mf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(mf>>>26)|0,mf&=67108863,id=Math.imul(dd,Rd),ad=Math.imul(dd,zd),ad=ad+Math.imul(fd,Rd)|0,od=Math.imul(fd,zd),id=id+Math.imul(cd,Vd)|0,ad=ad+Math.imul(cd,Hd)|0,ad=ad+Math.imul(ld,Vd)|0,od=od+Math.imul(ld,Hd)|0;var hf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(hf>>>26)|0,hf&=67108863,id=Math.imul(md,Rd),ad=Math.imul(md,zd),ad=ad+Math.imul(hd,Rd)|0,od=Math.imul(hd,zd),id=id+Math.imul(dd,Vd)|0,ad=ad+Math.imul(dd,Hd)|0,ad=ad+Math.imul(fd,Vd)|0,od=od+Math.imul(fd,Hd)|0,id=id+Math.imul(cd,Wd)|0,ad=ad+Math.imul(cd,Gd)|0,ad=ad+Math.imul(ld,Wd)|0,od=od+Math.imul(ld,Gd)|0;var gf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(gf>>>26)|0,gf&=67108863,id=Math.imul(_d,Rd),ad=Math.imul(_d,zd),ad=ad+Math.imul(vd,Rd)|0,od=Math.imul(vd,zd),id=id+Math.imul(md,Vd)|0,ad=ad+Math.imul(md,Hd)|0,ad=ad+Math.imul(hd,Vd)|0,od=od+Math.imul(hd,Hd)|0,id=id+Math.imul(dd,Wd)|0,ad=ad+Math.imul(dd,Gd)|0,ad=ad+Math.imul(fd,Wd)|0,od=od+Math.imul(fd,Gd)|0,id=id+Math.imul(cd,qd)|0,ad=ad+Math.imul(cd,Jd)|0,ad=ad+Math.imul(ld,qd)|0,od=od+Math.imul(ld,Jd)|0;var _f=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(_f>>>26)|0,_f&=67108863,id=Math.imul(bd,Rd),ad=Math.imul(bd,zd),ad=ad+Math.imul(xd,Rd)|0,od=Math.imul(xd,zd),id=id+Math.imul(_d,Vd)|0,ad=ad+Math.imul(_d,Hd)|0,ad=ad+Math.imul(vd,Vd)|0,od=od+Math.imul(vd,Hd)|0,id=id+Math.imul(md,Wd)|0,ad=ad+Math.imul(md,Gd)|0,ad=ad+Math.imul(hd,Wd)|0,od=od+Math.imul(hd,Gd)|0,id=id+Math.imul(dd,qd)|0,ad=ad+Math.imul(dd,Jd)|0,ad=ad+Math.imul(fd,qd)|0,od=od+Math.imul(fd,Jd)|0,id=id+Math.imul(cd,Xd)|0,ad=ad+Math.imul(cd,Zd)|0,ad=ad+Math.imul(ld,Xd)|0,od=od+Math.imul(ld,Zd)|0;var vf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(vf>>>26)|0,vf&=67108863,id=Math.imul(Cd,Rd),ad=Math.imul(Cd,zd),ad=ad+Math.imul(wd,Rd)|0,od=Math.imul(wd,zd),id=id+Math.imul(bd,Vd)|0,ad=ad+Math.imul(bd,Hd)|0,ad=ad+Math.imul(xd,Vd)|0,od=od+Math.imul(xd,Hd)|0,id=id+Math.imul(_d,Wd)|0,ad=ad+Math.imul(_d,Gd)|0,ad=ad+Math.imul(vd,Wd)|0,od=od+Math.imul(vd,Gd)|0,id=id+Math.imul(md,qd)|0,ad=ad+Math.imul(md,Jd)|0,ad=ad+Math.imul(hd,qd)|0,od=od+Math.imul(hd,Jd)|0,id=id+Math.imul(dd,Xd)|0,ad=ad+Math.imul(dd,Zd)|0,ad=ad+Math.imul(fd,Xd)|0,od=od+Math.imul(fd,Zd)|0,id=id+Math.imul(cd,$d)|0,ad=ad+Math.imul(cd,ef)|0,ad=ad+Math.imul(ld,$d)|0,od=od+Math.imul(ld,ef)|0;var yf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(yf>>>26)|0,yf&=67108863,id=Math.imul(Ed,Rd),ad=Math.imul(Ed,zd),ad=ad+Math.imul(Dd,Rd)|0,od=Math.imul(Dd,zd),id=id+Math.imul(Cd,Vd)|0,ad=ad+Math.imul(Cd,Hd)|0,ad=ad+Math.imul(wd,Vd)|0,od=od+Math.imul(wd,Hd)|0,id=id+Math.imul(bd,Wd)|0,ad=ad+Math.imul(bd,Gd)|0,ad=ad+Math.imul(xd,Wd)|0,od=od+Math.imul(xd,Gd)|0,id=id+Math.imul(_d,qd)|0,ad=ad+Math.imul(_d,Jd)|0,ad=ad+Math.imul(vd,qd)|0,od=od+Math.imul(vd,Jd)|0,id=id+Math.imul(md,Xd)|0,ad=ad+Math.imul(md,Zd)|0,ad=ad+Math.imul(hd,Xd)|0,od=od+Math.imul(hd,Zd)|0,id=id+Math.imul(dd,$d)|0,ad=ad+Math.imul(dd,ef)|0,ad=ad+Math.imul(fd,$d)|0,od=od+Math.imul(fd,ef)|0,id=id+Math.imul(cd,nf)|0,ad=ad+Math.imul(cd,rf)|0,ad=ad+Math.imul(ld,nf)|0,od=od+Math.imul(ld,rf)|0;var bf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(bf>>>26)|0,bf&=67108863,id=Math.imul(kd,Rd),ad=Math.imul(kd,zd),ad=ad+Math.imul(Ad,Rd)|0,od=Math.imul(Ad,zd),id=id+Math.imul(Ed,Vd)|0,ad=ad+Math.imul(Ed,Hd)|0,ad=ad+Math.imul(Dd,Vd)|0,od=od+Math.imul(Dd,Hd)|0,id=id+Math.imul(Cd,Wd)|0,ad=ad+Math.imul(Cd,Gd)|0,ad=ad+Math.imul(wd,Wd)|0,od=od+Math.imul(wd,Gd)|0,id=id+Math.imul(bd,qd)|0,ad=ad+Math.imul(bd,Jd)|0,ad=ad+Math.imul(xd,qd)|0,od=od+Math.imul(xd,Jd)|0,id=id+Math.imul(_d,X
321d)|0,ad=ad+Math.imul(_d,Zd)|0,ad=ad+Math.imul(vd,Xd)|0,od=od+Math.imul(vd,Zd)|0,id=id+Math.imul(md,$d)|0,ad=ad+Math.imul(md,ef)|0,ad=ad+Math.imul(hd,$d)|0,od=od+Math.imul(hd,ef)|0,id=id+Math.imul(dd,nf)|0,ad=ad+Math.imul(dd,rf)|0,ad=ad+Math.imul(fd,nf)|0,od=od+Math.imul(fd,rf)|0,id=id+Math.imul(cd,of)|0,ad=ad+Math.imul(cd,sf)|0,ad=ad+Math.imul(ld,of)|0,od=od+Math.imul(ld,sf)|0;var xf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(xf>>>26)|0,xf&=67108863,id=Math.imul(Md,Rd),ad=Math.imul(Md,zd),ad=ad+Math.imul(Nd,Rd)|0,od=Math.imul(Nd,zd),id=id+Math.imul(kd,Vd)|0,ad=ad+Math.imul(kd,Hd)|0,ad=ad+Math.imul(Ad,Vd)|0,od=od+Math.imul(Ad,Hd)|0,id=id+Math.imul(Ed,Wd)|0,ad=ad+Math.imul(Ed,Gd)|0,ad=ad+Math.imul(Dd,Wd)|0,od=od+Math.imul(Dd,Gd)|0,id=id+Math.imul(Cd,qd)|0,ad=ad+Math.imul(Cd,Jd)|0,ad=ad+Math.imul(wd,qd)|0,od=od+Math.imul(wd,Jd)|0,id=id+Math.imul(bd,Xd)|0,ad=ad+Math.imul(bd,Zd)|0,ad=ad+Math.imul(xd,Xd)|0,od=od+Math.imul(xd,Zd)|0,id=id+Math.imul(_d,$d)|0,ad=ad+Math.imul(_d,ef)|0,ad=ad+Math.imul(vd,$d)|0,od=od+Math.imul(vd,ef)|0,id=id+Math.imul(md,nf)|0,ad=ad+Math.imul(md,rf)|0,ad=ad+Math.imul(hd,nf)|0,od=od+Math.imul(hd,rf)|0,id=id+Math.imul(dd,of)|0,ad=ad+Math.imul(dd,sf)|0,ad=ad+Math.imul(fd,of)|0,od=od+Math.imul(fd,sf)|0,id=id+Math.imul(cd,lf)|0,ad=ad+Math.imul(cd,uf)|0,ad=ad+Math.imul(ld,lf)|0,od=od+Math.imul(ld,uf)|0;var Sf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Sf>>>26)|0,Sf&=67108863,id=Math.imul(Fd,Rd),ad=Math.imul(Fd,zd),ad=ad+Math.imul(Id,Rd)|0,od=Math.imul(Id,zd),id=id+Math.imul(Md,Vd)|0,ad=ad+Math.imul(Md,Hd)|0,ad=ad+Math.imul(Nd,Vd)|0,od=od+Math.imul(Nd,Hd)|0,id=id+Math.imul(kd,Wd)|0,ad=ad+Math.imul(kd,Gd)|0,ad=ad+Math.imul(Ad,Wd)|0,od=od+Math.imul(Ad,Gd)|0,id=id+Math.imul(Ed,qd)|0,ad=ad+Math.imul(Ed,Jd)|0,ad=ad+Math.imul(Dd,qd)|0,od=od+Math.imul(Dd,Jd)|0,id=id+Math.imul(Cd,Xd)|0,ad=ad+Math.imul(Cd,Zd)|0,ad=ad+Math.imul(wd,Xd)|0,od=od+Math.imul(wd,Zd)|0,id=id+Math.imul(bd,$d)|0,ad=ad+Math.imul(bd,ef)|0,ad=ad+Math.imul(xd,$d)|0,od=od+Math.imul(xd,ef)|0,id=id+Math.imul(_d,nf)|0,ad=ad+Math.imul(_d,rf)|0,ad=ad+Math.imul(vd,nf)|0,od=od+Math.imul(vd,rf)|0,id=id+Math.imul(md,of)|0,ad=ad+Math.imul(md,sf)|0,ad=ad+Math.imul(hd,of)|0,od=od+Math.imul(hd,sf)|0,id=id+Math.imul(dd,lf)|0,ad=ad+Math.imul(dd,uf)|0,ad=ad+Math.imul(fd,lf)|0,od=od+Math.imul(fd,uf)|0,id=id+Math.imul(cd,ff)|0,ad=ad+Math.imul(cd,pf)|0,ad=ad+Math.imul(ld,ff)|0,od=od+Math.imul(ld,pf)|0;var Cf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Cf>>>26)|0,Cf&=67108863,id=Math.imul(Fd,Vd),ad=Math.imul(Fd,Hd),ad=ad+Math.imul(Id,Vd)|0,od=Math.imul(Id,Hd),id=id+Math.imul(Md,Wd)|0,ad=ad+Math.imul(Md,Gd)|0,ad=ad+Math.imul(Nd,Wd)|0,od=od+Math.imul(Nd,Gd)|0,id=id+Math.imul(kd,qd)|0,ad=ad+Math.imul(kd,Jd)|0,ad=ad+Math.imul(Ad,qd)|0,od=od+Math.imul(Ad,Jd)|0,id=id+Math.imul(Ed,Xd)|0,ad=ad+Math.imul(Ed,Zd)|0,ad=ad+Math.imul(Dd,Xd)|0,od=od+Math.imul(Dd,Zd)|0,id=id+Math.imul(Cd,$d)|0,ad=ad+Math.imul(Cd,ef)|0,ad=ad+Math.imul(wd,$d)|0,od=od+Math.imul(wd,ef)|0,id=id+Math.imul(bd,nf)|0,ad=ad+Math.imul(bd,rf)|0,ad=ad+Math.imul(xd,nf)|0,od=od+Math.imul(xd,rf)|0,id=id+Math.imul(_d,of)|0,ad=ad+Math.imul(_d,sf)|0,ad=ad+Math.imul(vd,of)|0,od=od+Math.imul(vd,sf)|0,id=id+Math.imul(md,lf)|0,ad=ad+Math.imul(md,uf)|0,ad=ad+Math.imul(hd,lf)|0,od=od+Math.imul(hd,uf)|0,id=id+Math.imul(dd,ff)|0,ad=ad+Math.imul(dd,pf)|0,ad=ad+Math.imul(fd,ff)|0,od=od+Math.imul(fd,pf)|0;var wf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(wf>>>26)|0,wf&=67108863,id=Math.imul(Fd,Wd),ad=Math.imul(Fd,Gd),ad=ad+Math.imul(Id,Wd)|0,od=Math.imul(Id,Gd),id=id+Math.imul(Md,qd)|0,ad=ad+Math.imul(Md,Jd)|0,ad=ad+Math.imul(Nd,qd)|0,od=od+Math.imul(Nd,Jd)|0,id=id+Math.imul(kd,Xd)|0,ad=ad+Math.imul(kd,Zd)|0,ad=ad+Math.imul(Ad,Xd)|0,od=od+Math.imul(Ad,Zd)|0,id=id+Math.imul(Ed,$d)|0,ad=ad+Math.imul(Ed,ef)|0,ad=ad+Math.imul(Dd,$d)|0,od=od+Math.imul(Dd,ef)|0,id=id+Math.imul(Cd,nf)|0,ad=ad+Math.imul(Cd,rf)|0,ad=ad+Math.imul(wd,nf)|0,od=od+Math.imul(wd,rf)|0,id=id+Math.imul(bd,of)|0,ad=ad+Math.imul(bd,sf)|0,ad=ad+Math.imul(xd,of)|0,od=od+Math.imul(xd,sf)|0,id=id+Math.imul(_d,lf)|0,ad=ad+Math.imul(_d,uf)|0,ad=ad+Math.imul(vd,lf)|0,od=od+Math.imul(vd,uf)|0,id=id+Math.imul(md,ff)|0,ad=ad+Math.imul(md,pf)|0,ad=ad+Math.imul(hd,ff)|0,od=od+Math.imul(hd,pf)|0;var Tf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Tf>>>26)|0,Tf&=67108863,id=Math.imul(Fd,qd),ad=Math.imul(Fd,Jd),ad=ad+Math.imul(Id,qd)|0,od=Math.imul(Id,Jd),id=id+Math.imul(Md,Xd)|0,ad=ad+Math.imul(Md,Zd)|0,ad=ad+Math.imul(Nd,Xd)|0,od=od+Math.imul(Nd,Zd)|0,id=id+Math.imul(kd,$d)|0,ad=ad+Math.imul(kd,ef)|0,ad=ad+Math.imul(Ad,$d)|0,od=od+Math.imul(Ad,ef)|0,id=id+Math.imul(Ed,nf)|0,ad=ad+Math.imul(Ed,rf)|0,ad=ad+Math.imul(Dd,nf)|0,od=od+Math.imul(Dd,rf)|0,id=id+Math.imul(Cd,of)|0,ad=ad+Math.imul(Cd,sf)|0,ad=ad+Math.imul(wd,of)|0,od=od+Math.imul(wd,sf)|0,id=id+Math.imul(bd,lf)|0,ad=ad+Math.imul(bd,uf)|0,ad=ad+Math.imul(xd,lf)|0,od=od+Math.imul(xd,uf)|0,id=id+Math.imul(_d,ff)|0,ad=ad+Math.imul(_d,pf)|0,ad=ad+Math.imul(vd,ff)|0,od=od+Math.imul(vd,pf)|0;var Ef=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Ef>>>26)|0,Ef&=67108863,id=Math.imul(Fd,Xd),ad=Math.imul(Fd,Zd),ad=ad+Math.imul(Id,Xd)|0,od=Math.imul(Id,Zd),id=id+Math.imul(Md,$d)|0,ad=ad+Math.imul(Md,ef)|0,ad=ad+Math.imul(Nd,$d)|0,od=od+Math.imul(Nd,ef)|0,id=id+Math.imul(kd,nf)|0,ad=ad+Math.imul(kd,rf)|0,ad=ad+Math.imul(Ad,nf)|0,od=od+Math.imul(Ad,rf)|0,id=id+Math.imul(Ed,of)|0,ad=ad+Math.imul(Ed,sf)|0,ad=ad+Math.imul(Dd,of)|0,od=od+Math.imul(Dd,sf)|0,id=id+Math.imul(Cd,lf)|0,ad=ad+Math.imul(Cd,uf)|0,ad=ad+Math.imul(wd,lf)|0,od=od+Math.imul(wd,uf)|0,id=id+Math.imul(bd,ff)|0,ad=ad+Math.imul(bd,pf)|0,ad=ad+Math.imul(xd,ff)|0,od=od+Math.imul(xd,pf)|0;var Df=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Df>>>26)|0,Df&=67108863,id=Math.imul(Fd,$d),ad=Math.imul(Fd,ef),ad=ad+Math.imul(Id,$d)|0,od=Math.imul(Id,ef),id=id+Math.imul(Md,nf)|0,ad=ad+Math.imul(Md,rf)|0,ad=ad+Math.imul(Nd,nf)|0,od=od+Math.imul(Nd,rf)|0,id=id+Math.imul(kd,of)|0,ad=ad+Math.imul(kd,sf)|0,ad=ad+Math.imul(Ad,of)|0,od=od+Math.imul(Ad,sf)|0,id=id+Math.imul(Ed,lf)|0,ad=ad+Math.imul(Ed,uf)|0,ad=ad+Math.imul(Dd,lf)|0,od=od+Math.imul(Dd,uf)|0,id=id+Math.imul(Cd,ff)|0,ad=ad+Math.imul(Cd,pf)|0,ad=ad+Math.imul(wd,ff)|0,od=od+Math.imul(wd,pf)|0;var Of=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Of>>>26)|0,Of&=67108863,id=Math.imul(Fd,nf),ad=Math.imul(Fd,rf),ad=ad+Math.imul(Id,nf)|0,od=Math.imul(Id,rf),id=id+Math.imul(Md,of)|0,ad=ad+Math.imul(Md,sf)|0,ad=ad+Math.imul(Nd,of)|0,od=od+Math.imul(Nd,sf)|0,id=id+Math.imul(kd,lf)|0,ad=ad+Math.imul(kd,uf)|0,ad=ad+Math.imul(Ad,lf)|0,od=od+Math.imul(Ad,uf)|0,id=id+Math.imul(Ed,ff)|0,ad=ad+Math.imul(Ed,pf)|0,ad=ad+Math.imul(Dd,ff)|0,od=od+Math.imul(Dd,pf)|0;var kf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(kf>>>26)|0,kf&=67108863,id=Math.imul(Fd,of),ad=Math.imul(Fd,sf),ad=ad+Math.imul(Id,of)|0,od=Math.imul(Id,sf),id=id+Math.imul(Md,lf)|0,ad=ad+Math.imul(Md,uf)|0,ad=ad+Math.imul(Nd,lf)|0,od=od+Math.imul(Nd,uf)|0,id=id+Math.imul(kd,ff)|0,ad=ad+Math.imul(kd,pf)|0,ad=ad+Math.imul(Ad,ff)|0,od=od+Math.imul(Ad,pf)|0;var Af=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Af>>>26)|0,Af&=67108863,id=Math.imul(Fd,lf),ad=Math.imul(Fd,uf),ad=ad+Math.imul(Id,lf)|0,od=Math.imul(Id,uf),id=id+Math.imul(Md,ff)|0,ad=ad+Math.imul(Md,pf)|0,ad=ad+Math.imul(Nd,ff)|0,od=od+Math.imul(Nd,pf)|0;var jf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(jf>>>26)|0,jf&=67108863,id=Math.imul(Fd,ff),ad=Math.imul(Fd,pf),ad=ad+Math.imul(Id,ff)|0,od=Math.imul(Id,pf);var Mf=(rd+id|0)+((ad&8191)<<13)|0;return rd=(od+(ad>>>13)|0)+(Mf>>>26)|0,Mf&=67108863,nd[0]=mf,nd[1]=hf,nd[2]=gf,nd[3]=_f,nd[4]=vf,nd[5]=yf,nd[6]=bf,nd[7]=xf,nd[8]=Sf,nd[9]=Cf,nd[10]=wf,nd[11]=Tf,nd[12]=Ef,nd[13]=Df,n
321d[14]=Of,nd[15]=kf,nd[16]=Af,nd[17]=jf,nd[18]=Mf,rd!==0&&(nd[19]=rd,$.length++),$};Math.imul||(dd=ud);function fd(e,t,$){$.negative=t.negative^e.negative,$.length=e.length+t.length;for(var ed=0,td=0,nd=0;nd<$.length-1;nd++){var rd=td;td=0;for(var id=ed&67108863,ad=Math.min(nd,t.length-1),od=Math.max(0,nd-e.length+1);od<=ad;od++){var sd=nd-od,cd=(e.words[sd]|0)*(t.words[od]|0),ld=cd&67108863;rd=rd+(cd/67108864|0)|0,ld=ld+id|0,id=ld&67108863,rd=rd+(ld>>>26)|0,td+=rd>>>26,rd&=67108863}$.words[nd]=id,ed=rd,rd=td}return ed===0?$.length--:$.words[nd]=ed,$.strip()}function pd(e,t,$){return new md().mulp(e,t,$)}td.prototype.mulTo=function(e,t){var $,ed=this.length+e.length;return $=this.length===10&&e.length===10?dd(this,e,t):ed<63?ud(this,e,t):ed<1024?fd(this,e,t):pd(this,e,t),$};function md(e,t){this.x=e,this.y=t}md.prototype.makeRBT=function(e){for(var t=Array(e),$=td.prototype._countBits(e)-1,ed=0;ed<e;ed++)t[ed]=this.revBin(ed,$,e);return t},md.prototype.revBin=function(e,t,$){if(e===0||e===$-1)return e;for(var ed=0,td=0;td<t;td++)ed|=(e&1)<<t-td-1,e>>=1;return ed},md.prototype.permute=function(e,t,$,ed,td,nd){for(var rd=0;rd<nd;rd++)ed[rd]=t[e[rd]],td[rd]=$[e[rd]]},md.prototype.transform=function(e,t,$,ed,td,nd){this.permute(nd,e,t,$,ed,td);for(var rd=1;rd<td;rd<<=1)for(var id=rd<<1,ad=Math.cos(2*Math.PI/id),od=Math.sin(2*Math.PI/id),sd=0;sd<td;sd+=id)for(var cd=ad,ld=od,ud=0;ud<rd;ud++){var dd=$[sd+ud],fd=ed[sd+ud],pd=$[sd+ud+rd],md=ed[sd+ud+rd],hd=cd*pd-ld*md;md=cd*md+ld*pd,pd=hd,$[sd+ud]=dd+pd,ed[sd+ud]=fd+md,$[sd+ud+rd]=dd-pd,ed[sd+ud+rd]=fd-md,ud!==id&&(hd=ad*cd-od*ld,ld=ad*ld+od*cd,cd=hd)}},md.prototype.guessLen13b=function(e,t){var $=Math.max(t,e)|1,ed=$&1,td=0;for($=$/2|0;$;$>>>=1)td++;return 1<<td+1+ed},md.prototype.conjugate=function(e,t,$){if(!($<=1))for(var ed=0;ed<$/2;ed++){var td=e[ed];e[ed]=e[$-ed-1],e[$-ed-1]=td,td=t[ed],t[ed]=-t[$-ed-1],t[$-ed-1]=-td}},md.prototype.normalize13b=function(e,t){for(var $=0,ed=0;ed<t/2;ed++){var td=Math.round(e[2*ed+1]/t)*8192+Math.round(e[2*ed]/t)+$;e[ed]=td&67108863,$=td<67108864?0:td/67108864|0}return e},md.prototype.convert13b=function(e,t,ed,td){for(var nd=0,rd=0;rd<t;rd++)nd+=e[rd]|0,ed[2*rd]=nd&8191,nd>>>=13,ed[2*rd+1]=nd&8191,nd>>>=13;for(rd=2*t;rd<td;++rd)ed[rd]=0;$(nd===0),$((nd&-8192)==0)},md.prototype.stub=function(e){for(var t=Array(e),$=0;$<e;$++)t[$]=0;return t},md.prototype.mulp=function(e,t,$){var ed=2*this.guessLen13b(e.length,t.length),td=this.makeRBT(ed),nd=this.stub(ed),rd=Array(ed),id=Array(ed),ad=Array(ed),od=Array(ed),sd=Array(ed),cd=Array(ed),ld=$.words;ld.length=ed,this.convert13b(e.words,e.length,rd,ed),this.convert13b(t.words,t.length,od,ed),this.transform(rd,nd,id,ad,ed,td),this.transform(od,nd,sd,cd,ed,td);for(var ud=0;ud<ed;ud++){var dd=id[ud]*sd[ud]-ad[ud]*cd[ud];ad[ud]=id[ud]*cd[ud]+ad[ud]*sd[ud],id[ud]=dd}return this.conjugate(id,ad,ed),this.transform(id,ad,ld,nd,ed,td),this.conjugate(ld,nd,ed),this.normalize13b(ld,ed),$.negative=e.negative^t.negative,$.length=e.length+t.length,$.strip()},td.prototype.mul=function(e){var t=new td(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},td.prototype.mulf=function(e){var t=new td(null);return t.words=Array(this.length+e.length),pd(this,e,t)},td.prototype.imul=function(e){return this.clone().mulTo(e,this)},td.prototype.imuln=function(e){$(typeof e==`number`),$(e<67108864);for(var t=0,ed=0;ed<this.length;ed++){var td=(this.words[ed]|0)*e,nd=(td&67108863)+(t&67108863);t>>=26,t+=td/67108864|0,t+=nd>>>26,this.words[ed]=nd&67108863}return t!==0&&(this.words[ed]=t,this.length++),this.length=e===0?1:this.length,this},td.prototype.muln=function(e){return this.clone().imuln(e)},td.prototype.sqr=function(){return this.mul(this)},td.prototype.isqr=function(){return this.imul(this.clone())},td.prototype.pow=function(e){var t=ld(e);if(t.length===0)return new td(1);for(var $=this,ed=0;ed<t.length&&t[ed]===0;ed++,$=$.sqr());if(++ed<t.length)for(var nd=$.sqr();ed<t.length;ed++,nd=nd.sqr())t[ed]!==0&&($=$.mul(nd));return $},td.prototype.iushln=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=67108863>>>26-t<<26-t,nd;if(t!==0){var rd=0;for(nd=0;nd<this.length;nd++){var id=this.words[nd]&td,ad=(this.words[nd]|0)-id<<t;this.words[nd]=ad|rd,rd=id>>>26-t}rd&&(this.words[nd]=rd,this.length++)}if(ed!==0){for(nd=this.length-1;nd>=0;nd--)this.words[nd+ed]=this.words[nd];for(nd=0;nd<ed;nd++)this.words[nd]=0;this.length+=ed}return this.strip()},td.prototype.ishln=function(e){return $(this.negative===0),this.iushln(e)},td.prototype.iushrn=function(e,t,ed){$(typeof e==`number`&&e>=0);var td=t?(t-t%26)/26:0,nd=e%26,rd=Math.min((e-nd)/26,this.length),id=67108863^67108863>>>nd<<nd,ad=ed;if(td-=rd,td=Math.max(0,td),ad){for(var od=0;od<rd;od++)ad.words[od]=this.words[od];ad.length=rd}if(rd!==0)if(this.length>rd)for(this.length-=rd,od=0;od<this.length;od++)this.words[od]=this.words[od+rd];else this.words[0]=0,this.length=1;var sd=0;
vendor: 17,396 bytes, line 321
321for(od=this.length-1;od>=0&&(sd!==0||od>=td);od--){var cd=this.words[od]|0;this.words[od]=sd<<26-nd|cd>>>nd,sd=cd&id}return ad&&sd!==0&&(ad.words[ad.length++]=sd),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},td.prototype.ishrn=function(e,t,ed){return $(this.negative===0),this.iushrn(e,t,ed)},td.prototype.shln=function(e){return this.clone().ishln(e)},td.prototype.ushln=function(e){return this.clone().iushln(e)},td.prototype.shrn=function(e){return this.clone().ishrn(e)},td.prototype.ushrn=function(e){return this.clone().iushrn(e)},td.prototype.testn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=1<<t;return this.length<=ed?!1:!!(this.words[ed]&td)},td.prototype.imaskn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26;if($(this.negative===0,`imaskn works only with positive numbers`),this.length<=ed)return this;if(t!==0&&ed++,this.length=Math.min(ed,this.length),t!==0){var td=67108863^67108863>>>t<<t;this.words[this.length-1]&=td}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},td.prototype.maskn=function(e){return this.clone().imaskn(e)},td.prototype.iaddn=function(e){return $(typeof e==`number`),$(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},td.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},td.prototype.isubn=function(e){if($(typeof e==`number`),$(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},td.prototype.addn=function(e){return this.clone().iaddn(e)},td.prototype.subn=function(e){return this.clone().isubn(e)},td.prototype.iabs=function(){return this.negative=0,this},td.prototype.abs=function(){return this.clone().iabs()},td.prototype._ishlnsubmul=function(e,t,ed){var td=e.length+ed,nd;this._expand(td);var rd,id=0;for(nd=0;nd<e.length;nd++){rd=(this.words[nd+ed]|0)+id;var ad=(e.words[nd]|0)*t;rd-=ad&67108863,id=(rd>>26)-(ad/67108864|0),this.words[nd+ed]=rd&67108863}for(;nd<this.length-ed;nd++)rd=(this.words[nd+ed]|0)+id,id=rd>>26,this.words[nd+ed]=rd&67108863;if(id===0)return this.strip();for($(id===-1),id=0,nd=0;nd<this.length;nd++)rd=-(this.words[nd]|0)+id,id=rd>>26,this.words[nd]=rd&67108863;return this.negative=1,this.strip()},td.prototype._wordDiv=function(e,t){var $=this.length-e.length,ed=this.clone(),nd=e,rd=nd.words[nd.length-1]|0;$=26-this._countBits(rd),$!==0&&(nd=nd.ushln($),ed.iushln($),rd=nd.words[nd.length-1]|0);var id=ed.length-nd.length,ad;if(t!==`mod`){ad=new td(null),ad.length=id+1,ad.words=Array(ad.length);for(var od=0;od<ad.length;od++)ad.words[od]=0}var sd=ed.clone()._ishlnsubmul(nd,1,id);sd.negative===0&&(ed=sd,ad&&(ad.words[id]=1));for(var cd=id-1;cd>=0;cd--){var ld=(ed.words[nd.length+cd]|0)*67108864+(ed.words[nd.length+cd-1]|0);for(ld=Math.min(ld/rd|0,67108863),ed._ishlnsubmul(nd,ld,cd);ed.negative!==0;)ld--,ed.negative=0,ed._ishlnsubmul(nd,1,cd),ed.isZero()||(ed.negative^=1);ad&&(ad.words[cd]=ld)}return ad&&ad.strip(),ed.strip(),t!==`div`&&$!==0&&ed.iushrn($),{div:ad||null,mod:ed}},td.prototype.divmod=function(e,t,ed){if($(!e.isZero()),this.isZero())return{div:new td(0),mod:new td(0)};var nd,rd,id;return this.negative!==0&&e.negative===0?(id=this.neg().divmod(e,t),t!==`mod`&&(nd=id.div.neg()),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.iadd(e)),{div:nd,mod:rd}):this.negative===0&&e.negative!==0?(id=this.divmod(e.neg(),t),t!==`mod`&&(nd=id.div.neg()),{div:nd,mod:id.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new td(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new td(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new td(this.modn(e.words[0]))}:this._wordDiv(e,t):(id=this.neg().divmod(e.neg(),t),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.isub(e)),{div:id.div,mod:rd})},td.prototype.div=function(e){return this.divmod(e,`div`,!1).div},td.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},td.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},td.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var $=t.div.negative===0?t.mod:t.mod.isub(e),ed=e.ushrn(1),td=e.andln(1),nd=$.cmp(ed);return nd<0||td===1&&nd===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},td.prototype.modn=function(e){$(e<=67108863);for(var t=(1<<26)%e,ed=0,td=this.length-1;td>=0;td--)ed=(t*ed+(this.words[td]|0))%e;return ed},td.prototype.idivn=function(e){$(e<=67108863);for(var t=0,ed=this.length-1;ed>=0;ed--){var td=(this.words[ed]|0)+t*67108864;this.words[ed]=td/e|0,t=td%e}return this.strip()},td.prototype.divn=function(e){return this.clone().idivn(e)},td.prototype.egcd=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=new td(0),ad=new td(1),od=0;t.isEven()&&ed.isEven();)t.iushrn(1),ed.iushrn(1),++od;for(var sd=ed.clone(),cd=t.clone();!t.isZero();){for(var ld=0,ud=1;(t.words[0]&ud)===0&&ld<26;++ld,ud<<=1);if(ld>0)for(t.iushrn(ld);ld-- >0;)(nd.isOdd()||rd.isOdd())&&(nd.iadd(sd),rd.isub(cd)),nd.iushrn(1),rd.iushrn(1);for(var dd=0,fd=1;(ed.words[0]&fd)===0&&dd<26;++dd,fd<<=1);if(dd>0)for(ed.iushrn(dd);dd-- >0;)(id.isOdd()||ad.isOdd())&&(id.iadd(sd),ad.isub(cd)),id.iushrn(1),ad.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(id),rd.isub(ad)):(ed.isub(t),id.isub(nd),ad.isub(rd))}return{a:id,b:ad,gcd:ed.iushln(od)}},td.prototype._invmp=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=ed.clone();t.cmpn(1)>0&&ed.cmpn(1)>0;){for(var ad=0,od=1;(t.words[0]&od)===0&&ad<26;++ad,od<<=1);if(ad>0)for(t.iushrn(ad);ad-- >0;)nd.isOdd()&&nd.iadd(id),nd.iushrn(1);for(var sd=0,cd=1;(ed.words[0]&cd)===0&&sd<26;++sd,cd<<=1);if(sd>0)for(ed.iushrn(sd);sd-- >0;)rd.isOdd()&&rd.iadd(id),rd.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(rd)):(ed.isub(t),rd.isub(nd))}var ld=t.cmpn(1)===0?nd:rd;return ld.cmpn(0)<0&&ld.iadd(e),ld},td.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),$=e.clone();t.negative=0,$.negative=0;for(var ed=0;t.isEven()&&$.isEven();ed++)t.iushrn(1),$.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;$.isEven();)$.iushrn(1);var td=t.cmp($);if(td<0){var nd=t;t=$,$=nd}else if(td===0||$.cmpn(1)===0)break;t.isub($)}while(!0);return $.iushln(ed)},td.prototype.invm=function(e){return this.egcd(e).a.umod(e)},td.prototype.isEven=function(){return(this.words[0]&1)==0},td.prototype.isOdd=function(){return(this.words[0]&1)==1},td.prototype.andln=function(e){return this.words[0]&e},td.prototype.bincn=function(e){$(typeof e==`number`);var t=e%26,ed=(e-t)/26,td=1<<t;if(this.length<=ed)return this._expand(ed+1),this.words[ed]|=td,this;for(var nd=td,rd=ed;nd!==0&&rd<this.length;rd++){var id=this.words[rd]|0;id+=nd,nd=id>>>26,id&=67108863,this.words[rd]=id}return nd!==0&&(this.words[rd]=nd,this.length++),this},td.prototype.isZero=function(){return this.length===1&&this.words[0]===0},td.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var ed;if(this.length>1)ed=1;else{t&&(e=-e),$(e<=67108863,`Number is too big`);var td=this.words[0]|0;ed=td===e?0:td<e?-1:1}return this.negative===0?ed:-ed|0},td.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:-t|0},td.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,$=this.length-1;$>=0;$--){var ed=this.words[$]|0,td=e.words[$]|0;if(ed!==td){ed<td?t=-1:ed>td&&(t=1);break}}return t},td.prototype.gtn=function(e){return this.cmpn(e)===1},td.prototype.gt=function(e){return this.cmp(e)===1},td.prototype.gten=function(e){return this.cmpn(e)>=0},td.prototype.gte=function(e){return this.cmp(e)>=0},td.prototype.ltn=function(e){return this.cmpn(e)===-1},td.prototype.lt=function(e){return this.cmp(e)===-1},td.prototype.lten=function(e){return this.cmpn(e)<=0},td.prototype.lte=function(e){return this.cmp(e)<=0},td.prototype.eqn=function(e){return this.cmpn(e)===0},td.prototype.eq=function(e){return this.cmp(e)===0},td.red=function(e){return new xd(e)},td.prototype.toRed=function(e){return $(!this.red,`Already a number in reduction context`),$(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},td.prototype.fromRed=function(){return $(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},td.prototype._forceRed=function(e){return this.red=e,this},td.prototype.forceRed=function(e){return $(!this.red,`Already a number in reduction context`),this._forceRed(e)},td.prototype.redAdd=function(e){return $(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},td.prototype.redIAdd=function(e){return $(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},td.prototype.redSub=function(e){return $(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},td.prototype.redISub=function(e){return $(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},td.prototype.redShl=function(e){return $(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},td.prototype.redMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},td.prototype.redIMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},td.prototype.redSqr=function(){return $(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},td.prototype.redISqr=function(){return $(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},td.prototype.redSqrt=function(){return $(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},td.prototype.redInvm=function(){return $(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},td.prototype.redNeg=function(){return $(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},td.prototype.redPow=function(e){return $(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var hd={k256:null,p224:null,p192:null,p25519:null};function gd(e,t){this.name=e,this.p=new td(t,16),this.n=this.p.bitLength(),this.k=new td(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}gd.prototype._tmp=function(){var e=new td(null);return e.words=Array(Math.ceil(this.n/13)),e},gd.prototype.ireduce=function(e){var t=e,$;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),$=t.bitLength();while($>this.n);var ed=$<this.n?-1:t.ucmp(this.p);return ed===0?(t.words[0]=0,t.length=1):ed>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},gd.prototype.split=function(e,t){e.iushrn(this.n,0,t)},gd.prototype.imulK=function(e){return e.imul(this.k)};function _d(){gd.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}ed(_d,gd),_d.prototype.split=function(e,t){for(var $=4194303,ed=Math.min(e.length,9),td=0;td<ed;td++)t.words[td]=e.words[td];if(t.length=ed,e.length<=9){e.words[0]=0,e.length=1;return}var nd=e.words[9];for(t.words[t.length++]=nd&$,td=10;td<e.length;td++){var rd=e.words[td]|0;e.words[td-10]=(rd&$)<<4|nd>>>22,nd=rd}nd>>>=22,e.words[td-10]=nd,nd===0&&e.length>10?e.length-=10:e.length-=9},_d.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,$=0;$<e.length;$++){var ed=e.words[$]|0;t+=ed*977,e.words[$]=t&67108863,t=ed*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function vd(){gd.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}ed(vd,gd);function yd(){gd.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}ed(yd,gd);function bd(){gd.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}ed(bd,gd),bd.prototype.imulK=function(e){for(var t=0,$=0;$<e.length;$++){var ed=(e.words[$]|0)*19+t,td=ed&67108863;ed>>>=26,e.words[$]=td,t=ed}return t!==0&&(e.words[e.length++]=t),e},td._prime=function(e){if(hd[e])return hd[e];var t;if(e===`k256`)t=new _d;else if(e===`p224`)t=new vd;else if(e===`p192`)t=new yd;else if(e===`p25519`)t=new bd;else throw Error(`Unknown prime `+e);return hd[e]=t,t};function xd(e){if(typeof e==`string`){var t=td._prime(e);this.m=t.p,this.prime=t}else $(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}xd.prototype._verify1=function(e){$(e.negative===0,`red works only with positives`),$(e.red,`red works only with red numbers`)},xd.prototype._verify2=function(e,t){$((e.negative|t.negative)===0,`red works only with positives`),$(e.red&&e.red===t.red,`red works only with red numbers`)},xd.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},xd.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},xd.prototype.add=function(e,t){this._verify2(e,t);var $=e.add(t);return $.cmp(this.m)>=0&&$.isub(this.m),$._forceRed(this)},xd.prototype.iadd=function(e,t){this._verify2(e,t);var $=e.iadd(t);return $.cmp(this.m)>=0&&$.isub(this.m),$},xd.prototype.sub=function(e,t){this._verify2(e,t);var $=e.sub(t);return $.cmpn(0)<0&&$.iadd(this.m),$._forceRed(this)},xd.prototype.isub=function(e,t){this._verify2(e,t);var $=e.isub(t);return $.cmpn(0)<0&&$.iadd(this.m),$},xd.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},xd.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},xd.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},xd.prototype.isqr=function(e){return this.imul(e,e.clone())},xd.prototype.sqr=function(e){return this.mul(e,e)},xd.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if($(t%2==1),t===3){var ed=this.m.add(new td(1)).iushrn(2);return this.pow(e,ed)}for(var nd=this.m.subn(1),rd=0;!nd.isZero()&&nd.andln(1)===0;)rd++,nd.iushrn(1);$(!nd.isZero());var id=new td(1).toRed(this),ad=id.redNeg(),od=this.m.subn(1).iushrn(1),sd=this.m.bitLength();for(sd=new td(2*sd*sd).toRed(this);this.pow(sd,od).cmp(ad)!==0;)sd.redIAdd(ad);for(var cd=this.pow(sd,nd),ld=this.pow(e,nd.addn(1).iushrn(1)),ud=this.pow(e,nd),dd=rd;ud.cmp(id)!==0;){for(var fd=ud,pd=0;fd.cmp(id)!==0;pd++)fd=fd.redSqr();$(pd<dd);var md=this.pow(cd,new td(1).iushln(dd-pd-1));ld=ld.redMul(md),cd=md.redSqr(),ud=ud.redMul(cd),dd=pd}return ld},xd.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},xd.prototype.pow=function(e,t){if(t.isZero())return new td(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var $=4,ed=Array(1<<$);ed[0]=new td(1).toRed(this),ed[1]=e;for(var nd=2;nd<ed.length;nd++)ed[nd]=this.mul(ed[nd-1],e);var rd=ed[0],id=0,ad=0,od=t.bitLength()%26;for(od===0&&(od=26),nd=t.length-1;nd>=0;nd--){for(var sd=t.words[nd],cd=od-1;cd>=0;cd--){var ld=sd>>cd&1;if(rd!==ed[0]&&(rd=this.sqr(rd)),ld===0&&id===0){ad=0;continue}id<<=1,id|=ld,ad++,!(ad!==$&&(nd!==0||cd!==0))&&(rd=this.mul(rd,ed[id]),ad=0,id=0)}od=26}return rd},xd.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},xd.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},td.mont=function(e){return new Sd(e)};function Sd(e){xd.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new td(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ed(Sd,xd),Sd.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Sd.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Sd.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var $=e.imul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),td=$.isub(ed).iushrn(this.shift),nd=td;return td.cmp(this.m)>=0?nd=td.isub(this.m):td.cmpn(0)<0&&(nd=td.iadd(this.m)),nd._forceRed(this)},Sd.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new td(0)._forceRed(this);var $=e.mul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),nd=$.isub(ed).iushrn(this.shift),rd=nd;return nd.cmp(this.m)>=0?rd=nd.isub(this.m):nd.cmpn(0)<0&&(rd=nd.iadd(this.m)),rd._forceRed(this)},Sd.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t,e)})),require_brorand=__commonJSMin(((e,t)=>{var $;
321t.exports=function(e){return $||=new ed(null),$.generate(e)};function ed(e){this.rand=e}if(t.exports.Rand=ed,ed.prototype.generate=function(e){return this._rand(e)},ed.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),$=0;$<t.length;$++)t[$]=this.rand.getByte();return t},typeof self==`object`)self.crypto&&self.crypto.getRandomValues?ed.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?ed.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:typeof window==`object`&&(ed.prototype._rand=function(){throw Error(`Not implemented yet`)});else try{var td=require_crypto_browserify();if(typeof td.randomBytes!=`function`)throw Error(`Not supported`);ed.prototype._rand=function(e){return td.randomBytes(e)}}catch{}})),require_mr=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_brorand();function td(e){this.rand=e||new ed.Rand}t.exports=td,td.create=function(e){return new td(e)},td.prototype._randbelow=function(e){var t=e.bitLength(),ed=Math.ceil(t/8);do var td=new $(this.rand.generate(ed));while(td.cmp(e)>=0);return td},td.prototype._randrange=function(e,t){var $=t.sub(e);return e.add(this._randbelow($))},td.prototype.test=function(e,t,ed){var td=e.bitLength(),nd=$.mont(e),rd=new $(1).toRed(nd);t||=Math.max(1,td/48|0);for(var id=e.subn(1),ad=0;!id.testn(ad);ad++);for(var od=e.shrn(ad),sd=id.toRed(nd),cd=!0;t>0;t--){var ld=this._randrange(new $(2),id);ed&&ed(ld);var ud=ld.toRed(nd).redPow(od);if(!(ud.cmp(rd)===0||ud.cmp(sd)===0)){for(var dd=1;dd<ad;dd++){if(ud=ud.redSqr(),ud.cmp(rd)===0)return!1;if(ud.cmp(sd)===0)break}if(dd===ad)return!1}}return cd},td.prototype.getDivisor=function(e,t){var ed=e.bitLength(),td=$.mont(e),nd=new $(1).toRed(td);t||=Math.max(1,ed/48|0);for(var rd=e.subn(1),id=0;!rd.testn(id);id++);for(var ad=e.shrn(id),od=rd.toRed(td);t>0;t--){var sd=this._randrange(new $(2),rd),cd=e.gcd(sd);if(cd.cmpn(1)!==0)return cd;var ld=sd.toRed(td).redPow(ad);if(!(ld.cmp(nd)===0||ld.cmp(od)===0)){for(var ud=1;ud<id;ud++){if(ld=ld.redSqr(),ld.cmp(nd)===0)return ld.fromRed().subn(1).gcd(e);if(ld.cmp(od)===0)break}if(ud===id)return ld=ld.redSqr(),ld.fromRed().subn(1).gcd(e)}}return!1}})),require_generatePrime=__commonJSMin(((e,t)=>{var $=require_browser$11();t.exports=md,md.simpleSieve=fd,md.fermatTest=pd;var ed=require_bn$2(),td=new ed(24),nd=new(require_mr()),rd=new ed(1),id=new ed(2),ad=new ed(5);new ed(16),new ed(8);var od=new ed(10),sd=new ed(3);new ed(7);var cd=new ed(11),ld=new ed(4);new ed(12);var ud=null;function dd(){if(ud!==null)return ud;var e=1048576,t=[];t[0]=2;for(var $=1,ed=3;ed<e;ed+=2){for(var td=Math.ceil(Math.sqrt(ed)),nd=0;nd<$&&t[nd]<=td&&ed%t[nd]!==0;nd++);$!==nd&&t[nd]<=td||(t[$++]=ed)}return ud=t,t}function fd(e){for(var t=dd(),$=0;$<t.length;$++)if(e.modn(t[$])===0)return e.cmpn(t[$])===0;return!0}function pd(e){var t=ed.mont(e);return id.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function md(e,t){if(e<16)return t===2||t===5?new ed([140,123]):new ed([140,39]);t=new ed(t);for(var ud,dd;;){for(ud=new ed($(Math.ceil(e/8)));ud.bitLength()>e;)ud.ishrn(1);if(ud.isEven()&&ud.iadd(rd),ud.testn(1)||ud.iadd(id),!t.cmp(id))for(;ud.mod(td).cmp(cd);)ud.iadd(ld);else if(!t.cmp(ad))for(;ud.mod(od).cmp(sd);)ud.iadd(ld);if(dd=ud.shrn(1),fd(dd)&&fd(ud)&&pd(dd)&&pd(ud)&&nd.test(dd)&&nd.test(ud))return ud}}})),primes_exports=__exportAll({default:()=>primes_default,modp1:()=>modp1,modp14:()=>modp14,modp15:()=>modp15,modp16:()=>modp16,modp17:()=>modp17,modp18:()=>modp18,modp2:()=>modp2,modp5:()=>modp5}),modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18,primes_default,init_primes=__esmMin((()=>{modp1={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff`},modp2={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff`},modp5={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff`},modp14={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff`},modp15={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff`},modp16={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff`},modp17={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
32107b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff`},modp18={gen:`02`,prime:`ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff`},primes_default={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18}})),require_dh=__commonJSMin(((e,t)=>{init_dist$2();var $=require_bn$2(),ed=new(require_mr()),td=new $(24),nd=new $(11),rd=new $(10),id=new $(3),ad=new $(7),od=require_generatePrime(),sd=require_browser$11();t.exports=fd;function cd(e,t){return t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._pub=new $(e),this}function ld(e,t){return t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t)),this._priv=new $(e),this}var ud={};function dd(e,t){var $=t.toString(`hex`),sd=[$,e.toString(16)].join(`_`);if(sd in ud)return ud[sd];var cd=0;if(e.isEven()||!od.simpleSieve||!od.fermatTest(e)||!ed.test(e))return cd+=1,$===`02`||$===`05`?cd+=8:cd+=4,ud[sd]=cd,cd;ed.test(e.shrn(1))||(cd+=2);var ld;switch($){case`02`:e.mod(td).cmp(nd)&&(cd+=8);break;case`05`:ld=e.mod(rd),ld.cmp(id)&&ld.cmp(ad)&&(cd+=8);break;default:cd+=4}return ud[sd]=cd,cd}function fd(e,t,ed){this.setGenerator(t),this.__prime=new $(e),this._prime=$.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ed?(this.setPublicKey=cd,this.setPrivateKey=ld):this._primeCode=8}Object.defineProperty(fd.prototype,`verifyError`,{enumerable:!0,get:function(){return typeof this._primeCode!=`number`&&(this._primeCode=dd(this.__prime,this.__gen)),this._primeCode}}),fd.prototype.generateKeys=function(){return this._priv||=new $(sd(this._primeLen)),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},fd.prototype.computeSecret=function(e){e=new $(e),e=e.toRed(this._prime);var t=new Buffer(e.redPow(this._priv).fromRed().toArray()),ed=this.getPrime();if(t.length<ed.length){var td=new Buffer(ed.length-t.length);td.fill(0),t=Buffer.concat([td,t])}return t},fd.prototype.getPublicKey=function(e){return pd(this._pub,e)},fd.prototype.getPrivateKey=function(e){return pd(this._priv,e)},fd.prototype.getPrime=function(e){return pd(this.__prime,e)},fd.prototype.getGenerator=function(e){return pd(this._gen,e)},fd.prototype.setGenerator=function(e,t){return t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.__gen=e,this._gen=new $(e),this};function pd(e,t){var $=new Buffer(e.toArray());return t?$.toString(t):$}})),require_browser$5=__commonJSMin((e=>{init_dist$2();var t=require_generatePrime(),$=(init_primes(),__toCommonJS(primes_exports).default),ed=require_dh();function td(e){return new ed(new Buffer($[e].prime,`hex`),new Buffer($[e].gen,`hex`))}var nd={binary:!0,hex:!0,base64:!0};function rd(e,$,td,id){return Buffer.isBuffer($)||nd[$]===void 0?rd(e,`binary`,$,td):($||=`binary`,id||=`binary`,td||=new Buffer([2]),Buffer.isBuffer(td)||(td=new Buffer(td,id)),typeof e==`number`?new ed(t(e,td),td,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,$)),new ed(e,td,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=td,e.createDiffieHellman=e.DiffieHellman=rd})),require_isarray=__commonJSMin(((e,t)=>{var $={}.toString;t.exports=Array.isArray||function(e){return $.call(e)==`[object Array]`}}
321)),require_stream_browser=__commonJSMin(((e,t)=>{t.exports=require_events().EventEmitter})),require_safe_buffer$1=__commonJSMin(((e,t)=>{var $=require_buffer$1(),ed=$.Buffer;function td(e,t){for(var $ in e)t[$]=e[$]}ed.from&&ed.alloc&&ed.allocUnsafe&&ed.allocUnsafeSlow?t.exports=$:(td($,e),e.Buffer=nd);function nd(e,t,$){return ed(e,t,$)}td(ed,nd),nd.from=function(e,t,$){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return ed(e,t,$)},nd.alloc=function(e,t,$){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var td=ed(e);return t===void 0?td.fill(0):typeof $==`string`?td.fill(t,$):td.fill(t),td},nd.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return ed(e)},nd.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return $.SlowBuffer(e)}})),require_BufferList=__commonJSMin(((e,t)=>{function $(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var ed=require_safe_buffer$1().Buffer,td=require_util$1();function nd(e,t,$){e.copy(t,$)}t.exports=function(){function e(){$(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(this.length===0)return``;for(var t=this.head,$=``+t.data;t=t.next;)$+=e+t.data;return $},e.prototype.concat=function(e){if(this.length===0)return ed.alloc(0);for(var t=ed.allocUnsafe(e>>>0),$=this.head,td=0;$;)nd($.data,t,td),td+=$.data.length,$=$.next;return t},e}(),td&&td.inspect&&td.inspect.custom&&(t.exports.prototype[td.inspect.custom]=function(){var e=td.inspect({length:this.length});return this.constructor.name+` `+e})})),require_destroy=__commonJSMin(((e,t)=>{var $=require_process_nextick_args();function ed(e,t){var ed=this,td=this._readableState&&this._readableState.destroyed,rd=this._writableState&&this._writableState.destroyed;return td||rd?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,$.nextTick(nd,this,e)):$.nextTick(nd,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?ed._writableState?ed._writableState.errorEmitted||(ed._writableState.errorEmitted=!0,$.nextTick(nd,ed,e)):$.nextTick(nd,ed,e):t&&t(e)}),this)}function td(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function nd(e,t){e.emit(`error`,t)}t.exports={destroy:ed,undestroy:td}})),require__stream_writable=__commonJSMin(((e,t)=>{init_dist$1(),init_dist();var $=require_process_nextick_args();t.exports=md;function ed(e){var t=this;this.next=null,this.entry=null,this.finish=function(){jd(t,e)}}var td=!process$1.browser&&[`v0.10`,`v0.9.`].indexOf(process$1.version.slice(0,5))>-1?setImmediate:$.nextTick,nd;md.WritableState=fd;var rd=Object.create(require_util());rd.inherits=require_inherits_browser();var id={deprecate:require_browser$12()},ad=require_stream_browser(),od=require_safe_buffer$1().Buffer,sd=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function cd(e){return od.from(e)}function ld(e){return od.isBuffer(e)||e instanceof sd}var ud=require_destroy();rd.inherits(md,ad);function dd(){}function fd(e,t){nd||=require__stream_duplex(),e||={};var $=t instanceof nd;this.objectMode=!!e.objectMode,$&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var td=e.highWaterMark,rd=e.writableHighWaterMark,id=this.objectMode?16:16*1024;td||td===0?this.highWaterMark=td:$&&(rd||rd===0)?this.highWaterMark=rd:this.highWaterMark=id,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){
321Sd(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ed(this)}fd.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(fd.prototype,`buffer`,{get:id.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var pd;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(pd=Function.prototype[Symbol.hasInstance],Object.defineProperty(md,Symbol.hasInstance,{value:function(e){return pd.call(this,e)?!0:this===md?e&&e._writableState instanceof fd:!1}})):pd=function(e){return e instanceof this};function md(e){if(nd||=require__stream_duplex(),!pd.call(md,this)&&!(this instanceof nd))return new md(e);this._writableState=new fd(e,this),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),ad.call(this)}md.prototype.pipe=function(){this.emit(`error`,Error(`Cannot pipe, not readable`))};function hd(e,t){var ed=Error(`write after end`);e.emit(`error`,ed),$.nextTick(t,ed)}function gd(e,t,ed,td){var nd=!0,rd=!1;return ed===null?rd=TypeError(`May not write null values to stream`):typeof ed!=`string`&&ed!==void 0&&!t.objectMode&&(rd=TypeError(`Invalid non-string/buffer chunk`)),rd&&(e.emit(`error`,rd),$.nextTick(td,rd),nd=!1),nd}md.prototype.write=function(e,t,$){var ed=this._writableState,td=!1,nd=!ed.objectMode&&ld(e);return nd&&!od.isBuffer(e)&&(e=cd(e)),typeof t==`function`&&($=t,t=null),nd?t=`buffer`:t||=ed.defaultEncoding,typeof $!=`function`&&($=dd),ed.ended?hd(this,$):(nd||gd(this,ed,e,$))&&(ed.pendingcb++,td=vd(this,ed,nd,e,t,$)),td},md.prototype.cork=function(){var e=this._writableState;e.corked++},md.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Td(this,e))},md.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw TypeError(`Unknown encoding: `+e);return this._writableState.defaultEncoding=e,this};function _d(e,t,$){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=od.from(t,$)),t}Object.defineProperty(md.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vd(e,t,$,ed,td,nd){if(!$){var rd=_d(t,ed,td);ed!==rd&&($=!0,td=`buffer`,ed=rd)}var id=t.objectMode?1:ed.length;t.length+=id;var ad=t.length<t.highWaterMark;if(ad||(t.needDrain=!0),t.writing||t.corked){var od=t.lastBufferedRequest;t.lastBufferedRequest={chunk:ed,encoding:td,isBuf:$,callback:nd,next:null},od?od.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else yd(e,t,!1,id,ed,td,nd);return ad}function yd(e,t,$,ed,td,nd,rd){t.writelen=ed,t.writecb=rd,t.writing=!0,t.sync=!0,$?e._writev(td,t.onwrite):e._write(td,nd,t.onwrite),t.sync=!1}function bd(e,t,ed,td,nd){--t.pendingcb,ed?($.nextTick(nd,td),$.nextTick(kd,e,t),e._writableState.errorEmitted=!0,e.emit(`error`,td)):(nd(td),e._writableState.errorEmitted=!0,e.emit(`error`,td),kd(e,t))}function xd(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Sd(e,t){var $=e._writableState,ed=$.sync,nd=$.writecb;if(xd($),t)bd(e,$,ed,t,nd);else{var rd=Ed($);!rd&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&Td(e,$),ed?td(Cd,e,$,rd,nd):Cd(e,$,rd,nd)}}function Cd(e,t,$,ed){$||wd(e,t),t.pendingcb--,ed(),kd(e,t)}function wd(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function Td(e,t){t.bufferProcessing=!0;var $=t.bufferedRequest;if(e._writev&&$&&$.next){var td=t.bufferedRequestCount,nd=Array(td),rd=t.corkedRequestsFree;rd.entry=$;
321for(var id=0,ad=!0;$;)nd[id]=$,$.isBuf||(ad=!1),$=$.next,id+=1;nd.allBuffers=ad,yd(e,t,!0,t.length,nd,``,rd.finish),t.pendingcb++,t.lastBufferedRequest=null,rd.next?(t.corkedRequestsFree=rd.next,rd.next=null):t.corkedRequestsFree=new ed(t),t.bufferedRequestCount=0}else{for(;$;){var od=$.chunk,sd=$.encoding,cd=$.callback;if(yd(e,t,!1,t.objectMode?1:od.length,od,sd,cd),$=$.next,t.bufferedRequestCount--,t.writing)break}$===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=$,t.bufferProcessing=!1}md.prototype._write=function(e,t,$){$(Error(`_write() is not implemented`))},md.prototype._writev=null,md.prototype.end=function(e,t,$){var ed=this._writableState;typeof e==`function`?($=e,e=null,t=null):typeof t==`function`&&($=t,t=null),e!=null&&this.write(e,t),ed.corked&&(ed.corked=1,this.uncork()),ed.ending||Ad(this,ed,$)};function Ed(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Dd(e,t){e._final(function($){t.pendingcb--,$&&e.emit(`error`,$),t.prefinished=!0,e.emit(`prefinish`),kd(e,t)})}function Od(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`?(t.pendingcb++,t.finalCalled=!0,$.nextTick(Dd,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function kd(e,t){var $=Ed(t);return $&&(Od(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`))),$}function Ad(e,t,ed){t.ending=!0,kd(e,t),ed&&(t.finished?$.nextTick(ed):e.once(`finish`,ed)),t.ended=!0,e.writable=!1}function jd(e,t,$){var ed=e.entry;for(e.entry=null;ed;){var td=ed.callback;t.pendingcb--,td($),ed=ed.next}t.corkedRequestsFree.next=e}Object.defineProperty(md.prototype,`destroyed`,{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),md.prototype.destroy=ud.destroy,md.prototype._undestroy=ud.undestroy,md.prototype._destroy=function(e,t){this.end(),t(e)}})),require__stream_duplex=__commonJSMin(((e,t)=>{var $=require_process_nextick_args(),ed=Object.keys||function(e){var t=[];for(var $ in e)t.push($);return t};t.exports=sd;var td=Object.create(require_util());td.inherits=require_inherits_browser();var nd=require__stream_readable(),rd=require__stream_writable();td.inherits(sd,nd);for(var id=ed(rd.prototype),ad=0;ad<id.length;ad++){var od=id[ad];sd.prototype[od]||(sd.prototype[od]=rd.prototype[od])}function sd(e){if(!(this instanceof sd))return new sd(e);nd.call(this,e),rd.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once(`end`,cd)}Object.defineProperty(sd.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cd(){this.allowHalfOpen||this._writableState.ended||$.nextTick(ld,this)}function ld(e){e.end()}Object.defineProperty(sd.prototype,`destroyed`,{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),sd.prototype._destroy=function(e,t){this.push(null),this.end(),$.nextTick(t,e)}})),require_safe_buffer=__commonJSMin(((e,t)=>{var $=require_buffer$1(),ed=$.Buffer;function td(e,t){for(var $ in e)t[$]=e[$]}ed.from&&ed.alloc&&ed.allocUnsafe&&ed.allocUnsafeSlow?t.exports=$:(td($,e),e.Buffer=nd);function nd(e,t,$){return ed(e,t,$)}td(ed,nd),nd.from=function(e,t,$){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return ed(e,t,$)},nd.alloc=function(e,t,$){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var td=ed(e);return t===void 0?td.fill(0):typeof $==`string`?td.fill(t,$):td.fill(t),td},nd.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return ed(e)},nd.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return $.SlowBuffer(e)}})),require_string_decoder=__commonJSMin((e=>{var t=require_safe_buffer().Buffer,$=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function ed(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function td(e){var td=ed(e);if(typeof td!=`string`&&(t.isEncoding===$||!$(e)))throw Error(`Unknown encoding: `+e);return td||e}e.StringDecoder=nd;
321function nd(e){this.encoding=td(e);var $;switch(this.encoding){case`utf16le`:this.text=ld,this.end=ud,$=4;break;case`utf8`:this.fillLast=od,$=4;break;case`base64`:this.text=dd,this.end=fd,$=3;break;default:this.write=pd,this.end=md;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe($)}nd.prototype.write=function(e){if(e.length===0)return``;var t,$;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;$=this.lastNeed,this.lastNeed=0}else $=0;return $<e.length?t?t+this.text(e,$):this.text(e,$):t||``},nd.prototype.end=cd,nd.prototype.text=sd,nd.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function rd(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function id(e,t,$){var ed=t.length-1;if(ed<$)return 0;var td=rd(t[ed]);return td>=0?(td>0&&(e.lastNeed=td-1),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(e.lastNeed=td-2),td):--ed<$||td===-2?0:(td=rd(t[ed]),td>=0?(td>0&&(td===2?td=0:e.lastNeed=td-3),td):0))}function ad(e,t,$){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function od(e){var t=this.lastTotal-this.lastNeed,$=ad(this,e,t);if($!==void 0)return $;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sd(e,t){var $=id(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=$;var ed=e.length-($-this.lastNeed);return e.copy(this.lastChar,0,ed),e.toString(`utf8`,t,ed)}function cd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function ld(e,t){if((e.length-t)%2==0){var $=e.toString(`utf16le`,t);if($){var ed=$.charCodeAt($.length-1);if(ed>=55296&&ed<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function ud(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var $=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,$)}return t}function dd(e,t){var $=(e.length-t)%3;return $===0?e.toString(`base64`,t):(this.lastNeed=3-$,this.lastTotal=3,$===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-$))}function fd(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function pd(e){return e.toString(this.encoding)}function md(e){return e&&e.length?this.write(e):``}})),require__stream_readable=__commonJSMin(((e,t)=>{init_dist$1(),init_dist();var $=require_process_nextick_args();t.exports=_d;var ed=require_isarray(),td;_d.ReadableState=gd,require_events().EventEmitter;var nd=function(e,t){return e.listeners(t).length},rd=require_stream_browser(),id=require_safe_buffer$1().Buffer,ad=(global===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:global).Uint8Array||function(){};function od(e){return id.from(e)}function sd(e){return id.isBuffer(e)||e instanceof ad}var cd=Object.create(require_util());cd.inherits=require_inherits_browser();var ld=require_util$1(),ud=void 0;ud=ld&&ld.debuglog?ld.debuglog(`stream`):function(){};var dd=require_BufferList(),fd=require_destroy(),pd;cd.inherits(_d,rd);var md=[`error`,`close`,`destroy`,`pause`,`resume`];function hd(e,t,$){if(typeof e.prependListener==`function`)return e.prepe
321ndListener(t,$);!e._events||!e._events[t]?e.on(t,$):ed(e._events[t])?e._events[t].unshift($):e._events[t]=[$,e._events[t]]}function gd(e,t){td||=require__stream_duplex(),e||={};var $=t instanceof td;this.objectMode=!!e.objectMode,$&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var ed=e.highWaterMark,nd=e.readableHighWaterMark,rd=this.objectMode?16:16*1024;ed||ed===0?this.highWaterMark=ed:$&&(nd||nd===0)?this.highWaterMark=nd:this.highWaterMark=rd,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new dd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(pd||=require_string_decoder().StringDecoder,this.decoder=new pd(e.encoding),this.encoding=e.encoding)}function _d(e){if(td||=require__stream_duplex(),!(this instanceof _d))return new _d(e);this._readableState=new gd(e,this),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),rd.call(this)}Object.defineProperty(_d.prototype,`destroyed`,{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_d.prototype.destroy=fd.destroy,_d.prototype._undestroy=fd.undestroy,_d.prototype._destroy=function(e,t){this.push(null),t(e)},_d.prototype.push=function(e,t){var $=this._readableState,ed;return $.objectMode?ed=!0:typeof e==`string`&&(t||=$.defaultEncoding,t!==$.encoding&&(e=id.from(e,t),t=``),ed=!0),vd(this,e,t,!1,ed)},_d.prototype.unshift=function(e){return vd(this,e,null,!0,!1)};function vd(e,t,$,ed,td){var nd=e._readableState;if(t===null)nd.reading=!1,Td(e,nd);else{var rd;td||(rd=bd(nd,t)),rd?e.emit(`error`,rd):nd.objectMode||t&&t.length>0?(typeof t!=`string`&&!nd.objectMode&&Object.getPrototypeOf(t)!==id.prototype&&(t=od(t)),ed?nd.endEmitted?e.emit(`error`,Error(`stream.unshift() after end event`)):yd(e,nd,t,!0):nd.ended?e.emit(`error`,Error(`stream.push() after EOF`)):(nd.reading=!1,nd.decoder&&!$?(t=nd.decoder.write(t),nd.objectMode||t.length!==0?yd(e,nd,t,!1):Od(e,nd)):yd(e,nd,t,!1))):ed||(nd.reading=!1)}return xd(nd)}function yd(e,t,$,ed){t.flowing&&t.length===0&&!t.sync?(e.emit(`data`,$),e.read(0)):(t.length+=t.objectMode?1:$.length,ed?t.buffer.unshift($):t.buffer.push($),t.needReadable&&Ed(e)),Od(e,t)}function bd(e,t){var $;return!sd(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&($=TypeError(`Invalid non-string/buffer chunk`)),$}function xd(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}_d.prototype.isPaused=function(){return this._readableState.flowing===!1},_d.prototype.setEncoding=function(e){return pd||=require_string_decoder().StringDecoder,this._readableState.decoder=new pd(e),this._readableState.encoding=e,this};var Sd=8388608;function Cd(e){return e>=Sd?e=Sd:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function wd(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=Cd(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}_d.prototype.read=function(e){ud(`read`,e),e=parseInt(e,10);var t=this._readableState,$=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ud(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?zd(this):Ed(this),null;if(e=wd(e,t),e===0&&t.ended)return t.length===0&&zd(this),null;var ed=t.needReadable;ud(`need readable`,ed),(t.length===0||t.length-e<t.highWaterMark)&&(ed=!0,ud(`length less than watermark`,ed)),t.ended||t.reading?(ed=!1,ud(`reading or ended`,ed)):ed&&(ud(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=wd($,t)));var td=e>0?Fd(e,t):null;return td===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),$!==e&&t.ended&&zd(this)),td!==null&&this.emit
321(`data`,td),td};function Td(e,t){if(!t.ended){if(t.decoder){var $=t.decoder.end();$&&$.length&&(t.buffer.push($),t.length+=t.objectMode?1:$.length)}t.ended=!0,Ed(e)}}function Ed(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ud(`emitReadable`,t.flowing),t.emittedReadable=!0,t.sync?$.nextTick(Dd,e):Dd(e))}function Dd(e){ud(`emit readable`),e.emit(`readable`),Pd(e)}function Od(e,t){t.readingMore||(t.readingMore=!0,$.nextTick(kd,e,t))}function kd(e,t){for(var $=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ud(`maybeReadMore read 0`),e.read(0),$!==t.length);)$=t.length;t.readingMore=!1}_d.prototype._read=function(e){this.emit(`error`,Error(`_read() is not implemented`))},_d.prototype.pipe=function(e,t){var ed=this,td=this._readableState;switch(td.pipesCount){case 0:td.pipes=e;break;case 1:td.pipes=[td.pipes,e];break;default:td.pipes.push(e);break}td.pipesCount+=1,ud(`pipe count=%d opts=%j`,td.pipesCount,t);var rd=(!t||t.end!==!1)&&e!==process$1.stdout&&e!==process$1.stderr?ad:gd;td.endEmitted?$.nextTick(rd):ed.once(`end`,rd),e.on(`unpipe`,id);function id(e,t){ud(`onunpipe`),e===ed&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,cd())}function ad(){ud(`onend`),e.end()}var od=Ad(ed);e.on(`drain`,od);var sd=!1;function cd(){ud(`cleanup`),e.removeListener(`close`,pd),e.removeListener(`finish`,md),e.removeListener(`drain`,od),e.removeListener(`error`,fd),e.removeListener(`unpipe`,id),ed.removeListener(`end`,ad),ed.removeListener(`end`,gd),ed.removeListener(`data`,dd),sd=!0,td.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&od()}var ld=!1;ed.on(`data`,dd);function dd(t){ud(`ondata`),ld=!1,!1===e.write(t)&&!ld&&((td.pipesCount===1&&td.pipes===e||td.pipesCount>1&&Vd(td.pipes,e)!==-1)&&!sd&&(ud(`false write response, pause`,td.awaitDrain),td.awaitDrain++,ld=!0),ed.pause())}function fd(t){ud(`onerror`,t),gd(),e.removeListener(`error`,fd),nd(e,`error`)===0&&e.emit(`error`,t)}hd(e,`error`,fd);function pd(){e.removeListener(`finish`,md),gd()}e.once(`close`,pd);function md(){ud(`onfinish`),e.removeListener(`close`,pd),gd()}e.once(`finish`,md);function gd(){ud(`unpipe`),ed.unpipe(e)}return e.emit(`pipe`,ed),td.flowing||(ud(`pipe resume`),ed.resume()),e};function Ad(e){return function(){var t=e._readableState;ud(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&nd(e,`data`)&&(t.flowing=!0,Pd(e))}}_d.prototype.unpipe=function(e){var t=this._readableState,$={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,$),this);if(!e){var ed=t.pipes,td=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var nd=0;nd<td;nd++)ed[nd].emit(`unpipe`,this,{hasUnpiped:!1});return this}var rd=Vd(t.pipes,e);return rd===-1?this:(t.pipes.splice(rd,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,$),this)},_d.prototype.on=function(e,t){var ed=rd.prototype.on.call(this,e,t);if(e===`data`)this._readableState.flowing!==!1&&this.resume();else if(e===`readable`){var td=this._readableState;!td.endEmitted&&!td.readableListening&&(td.readableListening=td.needReadable=!0,td.emittedReadable=!1,td.reading?td.length&&Ed(this):$.nextTick(jd,this))}return ed},_d.prototype.addListener=_d.prototype.on;function jd(e){ud(`readable nexttick read 0`),e.read(0)}_d.prototype.resume=function(){var e=this._readableState;return e.flowing||(ud(`resume`),e.flowing=!0,Md(this,e)),this};function Md(e,t){t.resumeScheduled||(t.resumeScheduled=!0,$.nextTick(Nd,e,t))}function Nd(e,t){t.reading||(ud(`resume read 0`),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit(`resume`),Pd(e),t.flowing&&!t.reading&&e.read(0)}_d.prototype.pause=function(){return ud(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(ud(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this};function Pd(e){var t=e._readableState;for(ud(`flow`,t.flowing);t.flowing&&e.read()!==null;);}_d.prototype.wrap=function(e){var t=this,$=this._readableState,ed=!1;for(var td in e.on(`end`,function(){if(ud(`wrapped end`),$.decoder&&!$.ended){var e=$.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(td){ud(`wrapped data`),$.decoder&&(td=$.decoder.write(td)),!($.objectMode&&td==null)&&(!$.objectMode&&(!td||!td.length)||t.push(td)||(ed=!0,e.pause()))}),e)this[td]===void 0&&typeof e[td]==`function`&&(this[td]=function(t){return function(){return e[t].apply(e,arguments)}}(td));for(var nd=0;nd<md.length;nd++)e.on(md[nd],this.emit.bind(this,md[nd]));return this._read=function(t){ud(`wrapped _read`,t),ed&&(ed=!1,e.resume())},this},Object.defineProperty(_d.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),_d._fromList=Fd;function Fd(e,t){if(t.length===0)return null;var $;return t.objectMode?$=t.buffer.shift():!e||e>=t.length?($=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):$=Id(e,t.buffer,t.decoder),$}function Id(e,t,$){var ed;return e<t.head.data.length?(ed=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):ed=e===t.head.data.length?t.shift():$?Ld(e,t):Rd(e,t),ed}function Ld(e,t){var $=t.head,ed=1,td=$.data;for(e-=td.length;$=$.next;){var nd=$.data,rd=e>nd.length?nd.length:e;if(rd===nd.length?td+=nd:td+=nd.slice(0,e),e-=rd,e===0){rd===nd.length?(++ed,$.next?t.head=$.next:t.head=t.tail=null):(t.head=$,$.data=nd.slice(rd));break}++ed}return t.length-=ed,td}function Rd(e,t){var $=id.allocUnsafe(e),ed=t.head,td=1;for(ed.data.copy($),e-=ed.data.length;ed=ed.next;){var nd=ed.data,rd=e>nd.length?nd.length:e;if(nd.copy($,$.length-e,0,rd),e-=rd,e===0){rd===nd.length?(++td,ed.next?t.head=ed.next:t.head=t.tail=null):(t.head=ed,ed.data=nd.slice(rd));break}++td}return t.length-=td,$}function zd(e){var t=e._readableState;if(t.length>0)throw Error(`"endReadable()" called on non-empty stream`);t.endEmitted||(t.ended=!0,$.nextTick(Bd,t,e))}function Bd(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`))}function Vd(e,t){for(var $=0,ed=e.length;$<ed;$++)if(e[$]===t)return $;return-1}})),require__stream_transform=__commonJSMin(((e,t)=>{t.exports=nd;var $=require__stream_duplex(),ed=Object.create(require_util());ed.inherits=require_inherits_browser(),ed.inherits(nd,$);function td(e,t){var $=this._transformState;$.transforming=!1;var ed=$.writecb;
321if(!ed)return this.emit(`error`,Error(`write callback called multiple times`));$.writechunk=null,$.writecb=null,t!=null&&this.push(t),ed(e);var td=this._readableState;td.reading=!1,(td.needReadable||td.length<td.highWaterMark)&&this._read(td.highWaterMark)}function nd(e){if(!(this instanceof nd))return new nd(e);$.call(this,e),this._transformState={afterTransform:td.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,rd)}function rd(){var e=this;typeof this._flush==`function`?this._flush(function(t,$){id(e,t,$)}):id(this,null,null)}nd.prototype.push=function(e,t){return this._transformState.needTransform=!1,$.prototype.push.call(this,e,t)},nd.prototype._transform=function(e,t,$){throw Error(`_transform() is not implemented`)},nd.prototype._write=function(e,t,$){var ed=this._transformState;if(ed.writecb=$,ed.writechunk=e,ed.writeencoding=t,!ed.transforming){var td=this._readableState;(ed.needTransform||td.needReadable||td.length<td.highWaterMark)&&this._read(td.highWaterMark)}},nd.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},nd.prototype._destroy=function(e,t){var ed=this;$.prototype._destroy.call(this,e,function(e){t(e),ed.emit(`close`)})};function id(e,t,$){if(t)return e.emit(`error`,t);if($!=null&&e.push($),e._writableState.length)throw Error(`Calling transform done when ws.length != 0`);if(e._transformState.transforming)throw Error(`Calling transform done when still transforming`);return e.push(null)}})),require__stream_passthrough=__commonJSMin(((e,t)=>{t.exports=td;var $=require__stream_transform(),ed=Object.create(require_util());ed.inherits=require_inherits_browser(),ed.inherits(td,$);function td(e){if(!(this instanceof td))return new td(e);$.call(this,e)}td.prototype._transform=function(e,t,$){$(null,e)}})),require_readable_browser=__commonJSMin(((e,t)=>{e=t.exports=require__stream_readable(),e.Stream=e,e.Readable=e,e.Writable=require__stream_writable(),e.Duplex=require__stream_duplex(),e.Transform=require__stream_transform(),e.PassThrough=require__stream_passthrough()})),require_bn$1=__commonJSMin(((e,t)=>{(function(e,t){function $(e,t){if(!e)throw Error(t||`Assertion failed`)}function ed(e,t){e.super_=t;var $=function(){};$.prototype=t.prototype,e.prototype=new $,e.prototype.constructor=e}function td(e,t,$){if(td.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&($=t,t=10),this._init(e||0,t||10,$||`be`))}typeof e==`object`?e.exports=td:t.BN=td,td.BN=td,td.wordSize=26;var nd;try{nd=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:require___vite_browser_external().Buffer}catch{}td.isBN=function(e){return e instanceof td?!0:typeof e==`object`&&!!e&&e.constructor.wordSize===td.wordSize&&Array.isArray(e.words)},td.max=function(e,t){return e.cmp(t)>0?e:t},td.min=function(e,t){return e.cmp(t)<0?e:t},td.prototype._init=function(e,t,ed){if(typeof e==`number`)return this._initNumber(e,t,ed);if(typeof e==`object`)return this._initArray(e,t,ed);t===`hex`&&(t=16),$(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var td=0;e[0]===`-`&&(td++,this.negative=1),td<e.length&&(t===16?this._parseHex(e,td,ed):(this._parseBase(e,t,td),ed===`le`&&this._initArray(this.toArray(),t,ed)))},td.prototype._initNumber=function(e,t,ed){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):($(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),ed===`le`&&this._initArray(this.toArray(),t,ed)},td.prototype._initArray=function(e,t,ed){if($(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var td=0;td<this.length;td++)this.words[td]=0;var nd,rd,id=0;if(ed===`be`)for(td=e.length-1,nd=0;td>=0;td-=3)rd=e[td]|e[td-1]<<8|e[td-2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);else if(ed===`le`)for(td=0,nd=0;td<e.length;td+=3)rd=e[td]|e[td+1]<<8|e[td+2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);return this._strip()};function rd(e,t){var ed=e.charCodeAt(t);if(ed>=48&&ed<=57)return ed-48;if(ed>=65&&ed<=70)return ed-55;if(ed>=97&&ed<=102)return ed-87;$(!1,`Invalid character in `+e)}function id(e,t,$){var ed=rd(e,$);return $-1>=t&&(ed|=rd(e,$-1)<<4),ed}td.prototype._parseHex=function(e,t,$){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var ed=0;ed<this.length;ed++)this.words[ed]=0;var td=0,nd=0,rd;if($===`be`)for(ed=e.length-1;ed>=t;ed-=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;else for(ed=(e.length-t)%2==0?t+1:t;ed<e.length;ed+=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;this._strip()};function ad(e,t,ed,td){for(var nd=0,rd=0,id=Math.min(e.length,ed),ad=t;ad<id;ad++){var od=e.charCodeAt(ad)-48;nd*=td,rd=od>=49?od-49+10:od>=17?od-17+10:od,$(od>=0&&rd<td,`Invalid character`),nd+=rd}return nd}td.prototype._parseBase=function(e,t,$){this.words=[0],this.length=1;for(var ed=0,td=1;td<=67108863;td*=t)ed++;ed--,td=td/t|0;for(var nd=e.length-$,rd=nd%ed,id=Math.min(nd,nd-rd)+$,od=0,sd=$;sd<id;sd+=ed)od=ad(e,sd,sd+ed,t),this.imuln(td),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od);if(rd!==0){var cd=1;
vendor: 13,843 bytes, line 321
321for(od=ad(e,sd,e.length,t),sd=0;sd<rd;sd++)cd*=t;this.imuln(cd),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od)}this._strip()},td.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red};function od(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(td.prototype._move=function(e){od(e,this)},td.prototype.clone=function(){var e=new td(null);return this.copy(e),e},td.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},td.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},td.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<`u`&&typeof Symbol.for==`function`)try{td.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=sd}catch{td.prototype.inspect=sd}else td.prototype.inspect=sd;function sd(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`}var cd=`.0.00.000.0000.00000.000000.0000000.00000000.000000000.0000000000.00000000000.000000000000.0000000000000.00000000000000.000000000000000.0000000000000000.00000000000000000.000000000000000000.0000000000000000000.00000000000000000000.000000000000000000000.0000000000000000000000.00000000000000000000000.000000000000000000000000.0000000000000000000000000`.split(`.`),ld=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ud=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];td.prototype.toString=function(e,t){e||=10,t=t|0||1;var ed;if(e===16||e===`hex`){ed=``;for(var td=0,nd=0,rd=0;rd<this.length;rd++){var id=this.words[rd],ad=((id<<td|nd)&16777215).toString(16);nd=id>>>24-td&16777215,td+=2,td>=26&&(td-=26,rd--),ed=nd!==0||rd!==this.length-1?cd[6-ad.length]+ad+ed:ad+ed}for(nd!==0&&(ed=nd.toString(16)+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}if(e===(e|0)&&e>=2&&e<=36){var od=ld[e],sd=ud[e];ed=``;var dd=this.clone();for(dd.negative=0;!dd.isZero();){var fd=dd.modrn(sd).toString(e);dd=dd.idivn(sd),ed=dd.isZero()?fd+ed:cd[od-fd.length]+fd+ed}for(this.isZero()&&(ed=`0`+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}$(!1,`Base should be between 2 and 36`)},td.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&$(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},td.prototype.toJSON=function(){return this.toString(16,2)},nd&&(td.prototype.toBuffer=function(e,t){return this.toArrayLike(nd,e,t)}),td.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var dd=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};td.prototype.toArrayLike=function(e,t,ed){this._strip();var td=this.byteLength(),nd=ed||Math.max(1,td);$(td<=nd,`byte array longer than desired length`),$(nd>0,`Requested array length <= 0`);var rd=dd(e,nd);return this[`_toArrayLike`+(t===`le`?`LE`:`BE`)](rd,td),rd},td.prototype._toArrayLikeLE=function(e,t){for(var $=0,ed=0,td=0,nd=0;td<this.length;td++){var rd=this.words[td]<<nd|ed;e[$++]=rd&255,$<e.length&&(e[$++]=rd>>8&255),$<e.length&&(e[$++]=rd>>16&255),nd===6?($<e.length&&(e[$++]=rd>>24&255),ed=0,nd=0):(ed=rd>>>24,nd+=2)}if($<e.length)for(e[$++]=ed;$<e.length;)e[$++]=0},td.prototype._toArrayLikeBE=function(e,t){for(var $=e.length-1,ed=0,td=0,nd=0;td<this.length;td++){var rd=this.words[td]<<nd|ed;e[$--]=rd&255,$>=0&&(e[$--]=rd>>8&255),$>=0&&(e[$--]=rd>>16&255),nd===6?($>=0&&(e[$--]=rd>>24&255),ed=0,nd=0):(ed=rd>>>24,nd+=2)}if($>=0)for(e[$--]=ed;$>=0;)e[$--]=0},Math.clz32?td.prototype._countBits=function(e){return 32-Math.clz32(e)}:td.prototype._countBits=function(e){var t=e,$=0;return t>=4096&&($+=13,t>>>=13),t>=64&&($+=7,t>>>=7),t>=8&&($+=4,t>>>=4),t>=2&&($+=2,t>>>=2),$+t},td.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,$=0;return t&8191||($+=13,t>>>=13),t&127||($+=7,t>>>=7),t&15||($+=4,t>>>=4),t&3||($+=2,t>>>=2),t&1||$++,$},td.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function fd(e){for(var t=Array(e.bitLength()),$=0;$<t.length;$++){var ed=$/26|0,td=$%26;t[$]=e.words[ed]>>>td&1}return t}td.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var $=this._zeroBits(this.words[t]);if(e+=$,$!==26)break}return e},td.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},td.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},td.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},td.prototype.isNeg=function(){return this.negative!==0},td.prototype.neg=function(){return this.clone().ineg()},td.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},td.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},td.prototype.ior=function(e){return $((this.negative|e.negative)===0),this.iuor(e)},td.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},td.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},td.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,$=0;$<t.length;$++)this.words[$]=this.words[$]&e.words[$];return this.length=t.length,this._strip()},td.prototype.iand=function(e){return $((this.negative|e.negative)===0),this.iuand(e)},td.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},td.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},td.prototype.iuxor=function(e){var t,$;this.length>e.length?(t=this,$=e):(t=e,$=this);for(var ed=0;ed<$.length;ed++)this.words[ed]=t.words[ed]^$.words[ed];if(this!==t)for(;ed<t.length;ed++)this.words[ed]=t.words[ed];return this.length=t.length,this._strip()},td.prototype.ixor=function(e){return $((this.negative|e.negative)===0),this.iuxor(e)},td.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},td.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},td.prototype.inotn=function(e){$(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,ed=e%26;this._expand(t),ed>0&&t--;for(var td=0;td<t;td++)this.words[td]=~this.words[td]&67108863;return ed>0&&(this.words[td]=~this.words[td]&67108863>>26-ed),this._strip()},td.prototype.notn=function(e){return this.clone().inotn(e)},td.prototype.setn=function(e,t){$(typeof e==`number`&&e>=0);var ed=e/26|0,td=e%26;return this._expand(ed+1),t?this.words[ed]=this.words[ed]|1<<td:this.words[ed]=this.words[ed]&~(1<<td),this._strip()},td.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var $,ed;this.length>e.length?($=this,ed=e):($=e,ed=this);for(var td=0,nd=0;nd<ed.length;nd++)t=($.words[nd]|0)+(ed.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;for(;td!==0&&nd<$.length;nd++)t=($.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;if(this.length=$.length,td!==0)this.words[this.length]=td,this.length++;else if($!==this)for(;nd<$.length;nd++)this.words[nd]=$.words[nd];return this},td.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},td.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var $=this.cmp(e);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ed,td;$>0?(ed=this,td=e):(ed=e,td=this);for(var nd=0,rd=0;rd<td.length;rd++)t=(ed.words[rd]|0)-(td.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;for(;nd!==0&&rd<ed.length;rd++)t=(ed.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;if(nd===0&&rd<ed.length&&ed!==this)for(;rd<ed.length;rd++)this.words[rd]=ed.words[rd];return this.length=Math.max(this.length,rd),ed!==this&&(this.negative=1),this._strip()},td.prototype.sub=function(e){return this.clone().isub(e)};function pd(e,t,$){$.negative=t.negative^e.negative;var ed=e.length+t.length|0;$.length=ed,ed=ed-1|0;var td=e.words[0]|0,nd=t.words[0]|0,rd=td*nd,id=rd&67108863,ad=rd/67108864|0;$.words[0]=id;for(var od=1;od<ed;od++){for(var sd=ad>>>26,cd=ad&67108863,ld=Math.min(od,t.length-1),ud=Math.max(0,od-e.length+1);ud<=ld;ud++){var dd=od-ud|0;td=e.words[dd]|0,nd=t.words[ud]|0,rd=td*nd+cd,sd+=rd/67108864|0,cd=rd&67108863}$.words[od]=cd|0,ad=sd|0}return ad===0?$.length--:$.words[od]=ad|0,$._strip()}var md=function(e,t,$){var ed=e.words,td=t.words,nd=$.words,rd=0,id,ad,od,sd=ed[0]|0,cd=sd&8191,ld=sd>>>13,ud=ed[1]|0,dd=ud&8191,fd=ud>>>13,pd=ed[2]|0,md=pd&8191,hd=pd>>>13,gd=ed[3]|0,_d=gd&8191,vd=gd>>>13,yd=ed[4]|0,bd=yd&8191,xd=yd>>>13,Sd=ed[5]|0,Cd=Sd&8191,wd=Sd>>>13,Td=ed[6]|0,Ed=Td&8191,Dd=Td>>>13,Od=ed[7]|0,kd=Od&8191,Ad=Od>>>13,jd=ed[8]|0,Md=jd&8191,Nd=jd>>>13,Pd=ed[9]|0,Fd=Pd&8191,Id=Pd>>>13,Ld=td[0]|0,Rd=Ld&8191,zd=Ld>>>13,Bd=td[1]|0,Vd=Bd&8191,Hd=Bd>>>13,Ud=td[2]|0,Wd=Ud&8191,Gd=Ud>>>13,Kd=td[3]|0,qd=Kd&8191,Jd=Kd>>>13,Yd=td[4]|0,Xd=Yd&8191,Zd=Yd>>>13,Qd=td[5]|0,$d=Qd&8191,ef=Qd>>>13,tf=td[6]|0,nf=tf&8191,rf=tf>>>13,af=td[7]|0,of=af&8191,sf=af>>>13,cf=td[8]|0,lf=cf&8191,uf=cf>>>13,df=td[9]|0,ff=df&8191,pf=df>>>13;$.negative=e.negative^t.negative,$.length=19,id=Math.imul(cd,Rd),ad=Math.imul(cd,zd),ad=ad+Math.imul(ld,Rd)|0,od=Math.imul(ld,zd);var mf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(mf>>>26)|0,mf&=67108863,id=Math.imul(dd,Rd),ad=Math.imul(dd,zd),ad=ad+Math.imul(fd,Rd)|0,od=Math.imul(fd,zd),id=id+Math.imul(cd,Vd)|0,ad=ad+Math.imul(cd,Hd)|0,ad=ad+Math.imul(ld,Vd)|0,od=od+Math.imul(ld,Hd)|0;var hf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(hf>>>26)|0,hf&=67108863,id=Math.imul(md,Rd),ad=Math.imul(md,zd),ad=ad+Math.imul(hd,Rd)|0,od=Math.imul(hd,zd),id=id+Math.imul(dd,Vd)|0,ad=ad+Math.imul(dd,Hd)|0,ad=ad+Math.imul(fd,Vd)|0,od=od+Math.imul(fd,Hd)|0,id=id+Math.imul(cd,Wd)|0,ad=ad+Math.imul(cd,Gd)|0,ad=ad+Math.imul(ld,Wd)|0,od=od+Math.imul(ld,Gd)|0;var gf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(gf>>>26)|0,gf&=67108863,id=Math.imul(_d,Rd),ad=Math.imul(_d,zd),ad=ad+Math.imul(vd,Rd)|0,od=Math.imul(vd,zd),id=id+Math.imul(md,Vd)|0,ad=ad+Math.imul(md,Hd)|0,ad=ad+Math.imul(hd,Vd)|0,od=od+Math.imul(hd,Hd)|0,id=id+Math.imul(dd,Wd)|0,ad=ad+Math.imul(dd,Gd)|0,ad=ad+Math.imul(fd,Wd)|0,od=od+Math.imul(fd,Gd)|0,id=id+Math.imul(cd,qd)|0,ad=ad+Math.imul(cd,Jd)|0,ad=ad+Math.imul(ld,qd)|0,od=od+Math.imul(ld,Jd)|0;var _f=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(_f>>>26)|0,_f&=67108863,id=Math.imul(bd,Rd),ad=Math.imul(bd,zd),ad=ad+Math.imul(xd,Rd)|0,od=Math.imul(xd,zd),id=id+Math.imul(_d,Vd)|0,ad=ad+Math.imul(_d,Hd)|0,ad=ad+Math.imul(vd,Vd)|0,od=od+Math.imul(vd,Hd)|0,id=id+Math.imul(md,Wd)|0,ad=ad+Math.imul(md,Gd)|0,ad=ad+Math.imul(hd,Wd)|0,od=od+Math.imul(hd,Gd)|0,id=id+Math.imul(dd,qd)|0,ad=ad+Math.imul(dd,Jd)|0,ad=ad+Math.imul(fd,qd)|0,od=od+Math.imul(fd,Jd)|0,id=id+Math.imul(cd,Xd)|0,ad=ad+Math.imul(cd,Zd)|0,ad=ad+Math.imul(ld,Xd)|0,od=od+Math.imul(ld,Zd)|0;var vf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(vf>>>26)|0,vf&=67108863,id=Math.imul(Cd,Rd),ad=Math.imul(Cd,zd),ad=ad+Math.imul(wd,Rd)|0,od=Math.imul(wd,zd),id=id+Math.imul(bd,Vd)|0,ad=ad+Math.imul(bd,Hd)|0,ad=ad+Math.imul(xd,Vd)|0,od=od+Math.imul(xd,Hd)|0,id=id+Math.imul(_d,Wd)|0,ad=ad+Math.imul(_d,Gd)|0,ad=ad+Math.imul(vd,Wd)|0,od=od+Math.imul(vd,Gd)|0,id=id+Math.imul(md,qd)|0,ad=ad+Math.imul(md,Jd)|0,ad=ad+Math.imul(hd,qd)|0,od=od+Math.imul(hd,Jd)|0,id=id+Math.imul(dd,Xd)|0,ad=ad+Math.imul(dd,Zd)|0,ad=ad+Math.imul(fd,Xd)|0,od=od+Math.imul(fd,Zd)|0,id=id+Math.imul(cd,$d)|0,ad=ad+Math.imul(cd,ef)|0,ad=ad+Math.imul(ld,$d)|0,od=od+Math.imul(ld,ef)|0;var yf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(yf>>>26)|0,yf&=67108863,id=Math.imul(Ed,Rd),ad=Math.imul(Ed,zd),ad=ad+Math.imul(Dd,Rd)|0,od=Math.imul(Dd,zd),id=id+Math.imul(Cd,Vd)|0,ad=ad+Math.imul(Cd,Hd)|0,ad=ad+Math.imul(wd,Vd)|0,od=od+Math.imul(wd,Hd)|0,id=id+Math.imul(bd,Wd)|0,ad=ad+Math.imul(bd,Gd)|0,ad=ad+Math.imul(xd,Wd)|0,od=od+Math.imul(xd,Gd)|0,id=id+Math.imul(_d,qd)|0,ad=ad+Math.imul(_d,Jd)|0,ad=ad+Math.imul(vd,qd)|0,od=od+Math.imul(vd,Jd)|0,id=id+Math.imul(md,Xd)|0,ad=ad+Math.imul(md,Zd)|0,ad=ad+Math.imul(hd,Xd)|0,od=od+Math.imul(hd,Zd)|0,id=id+Math.imul(dd,$d)|0,ad=ad+Math.imul(dd,ef)|0,ad=ad+Math.imul(fd,$d)|0,od=od+Math.imul(fd,ef)|0,id=id+Math.imul(cd,nf)|0,ad=ad+Math.imul(cd,rf)|0,ad=ad+Math.imul(ld,nf)|0,od=od+Math.imul(ld,rf)|0;var bf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(bf>>>26)|0,bf&=67108863,id=Math.imul(kd,Rd),ad=Math.imul(kd,zd),ad=ad+Math.imul(Ad,Rd)|0,od=Math.imul(Ad,zd),id=id+Math.imul(Ed,Vd)|0,ad=ad+Math.imul(Ed,Hd)|0,ad=ad+Math.imul(Dd,Vd)|0,od=od+Math.imul(Dd,Hd)|0,id=id+Math.imul(Cd,Wd)|0,ad=ad+Math.imul(Cd,Gd)|0,ad=ad+Math.imul(wd,Wd)|0,od=od+Math.imul(wd,Gd)|0,id=id+Math.imul(bd,qd)|0,ad=ad+Math.imul(bd,Jd)|0,ad=ad+Math.imul(xd,qd)|0,od=od+Math.imul(xd,Jd)|0,id=id+Math.imul(_d,X
321d)|0,ad=ad+Math.imul(_d,Zd)|0,ad=ad+Math.imul(vd,Xd)|0,od=od+Math.imul(vd,Zd)|0,id=id+Math.imul(md,$d)|0,ad=ad+Math.imul(md,ef)|0,ad=ad+Math.imul(hd,$d)|0,od=od+Math.imul(hd,ef)|0,id=id+Math.imul(dd,nf)|0,ad=ad+Math.imul(dd,rf)|0,ad=ad+Math.imul(fd,nf)|0,od=od+Math.imul(fd,rf)|0,id=id+Math.imul(cd,of)|0,ad=ad+Math.imul(cd,sf)|0,ad=ad+Math.imul(ld,of)|0,od=od+Math.imul(ld,sf)|0;var xf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(xf>>>26)|0,xf&=67108863,id=Math.imul(Md,Rd),ad=Math.imul(Md,zd),ad=ad+Math.imul(Nd,Rd)|0,od=Math.imul(Nd,zd),id=id+Math.imul(kd,Vd)|0,ad=ad+Math.imul(kd,Hd)|0,ad=ad+Math.imul(Ad,Vd)|0,od=od+Math.imul(Ad,Hd)|0,id=id+Math.imul(Ed,Wd)|0,ad=ad+Math.imul(Ed,Gd)|0,ad=ad+Math.imul(Dd,Wd)|0,od=od+Math.imul(Dd,Gd)|0,id=id+Math.imul(Cd,qd)|0,ad=ad+Math.imul(Cd,Jd)|0,ad=ad+Math.imul(wd,qd)|0,od=od+Math.imul(wd,Jd)|0,id=id+Math.imul(bd,Xd)|0,ad=ad+Math.imul(bd,Zd)|0,ad=ad+Math.imul(xd,Xd)|0,od=od+Math.imul(xd,Zd)|0,id=id+Math.imul(_d,$d)|0,ad=ad+Math.imul(_d,ef)|0,ad=ad+Math.imul(vd,$d)|0,od=od+Math.imul(vd,ef)|0,id=id+Math.imul(md,nf)|0,ad=ad+Math.imul(md,rf)|0,ad=ad+Math.imul(hd,nf)|0,od=od+Math.imul(hd,rf)|0,id=id+Math.imul(dd,of)|0,ad=ad+Math.imul(dd,sf)|0,ad=ad+Math.imul(fd,of)|0,od=od+Math.imul(fd,sf)|0,id=id+Math.imul(cd,lf)|0,ad=ad+Math.imul(cd,uf)|0,ad=ad+Math.imul(ld,lf)|0,od=od+Math.imul(ld,uf)|0;var Sf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Sf>>>26)|0,Sf&=67108863,id=Math.imul(Fd,Rd),ad=Math.imul(Fd,zd),ad=ad+Math.imul(Id,Rd)|0,od=Math.imul(Id,zd),id=id+Math.imul(Md,Vd)|0,ad=ad+Math.imul(Md,Hd)|0,ad=ad+Math.imul(Nd,Vd)|0,od=od+Math.imul(Nd,Hd)|0,id=id+Math.imul(kd,Wd)|0,ad=ad+Math.imul(kd,Gd)|0,ad=ad+Math.imul(Ad,Wd)|0,od=od+Math.imul(Ad,Gd)|0,id=id+Math.imul(Ed,qd)|0,ad=ad+Math.imul(Ed,Jd)|0,ad=ad+Math.imul(Dd,qd)|0,od=od+Math.imul(Dd,Jd)|0,id=id+Math.imul(Cd,Xd)|0,ad=ad+Math.imul(Cd,Zd)|0,ad=ad+Math.imul(wd,Xd)|0,od=od+Math.imul(wd,Zd)|0,id=id+Math.imul(bd,$d)|0,ad=ad+Math.imul(bd,ef)|0,ad=ad+Math.imul(xd,$d)|0,od=od+Math.imul(xd,ef)|0,id=id+Math.imul(_d,nf)|0,ad=ad+Math.imul(_d,rf)|0,ad=ad+Math.imul(vd,nf)|0,od=od+Math.imul(vd,rf)|0,id=id+Math.imul(md,of)|0,ad=ad+Math.imul(md,sf)|0,ad=ad+Math.imul(hd,of)|0,od=od+Math.imul(hd,sf)|0,id=id+Math.imul(dd,lf)|0,ad=ad+Math.imul(dd,uf)|0,ad=ad+Math.imul(fd,lf)|0,od=od+Math.imul(fd,uf)|0,id=id+Math.imul(cd,ff)|0,ad=ad+Math.imul(cd,pf)|0,ad=ad+Math.imul(ld,ff)|0,od=od+Math.imul(ld,pf)|0;var Cf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Cf>>>26)|0,Cf&=67108863,id=Math.imul(Fd,Vd),ad=Math.imul(Fd,Hd),ad=ad+Math.imul(Id,Vd)|0,od=Math.imul(Id,Hd),id=id+Math.imul(Md,Wd)|0,ad=ad+Math.imul(Md,Gd)|0,ad=ad+Math.imul(Nd,Wd)|0,od=od+Math.imul(Nd,Gd)|0,id=id+Math.imul(kd,qd)|0,ad=ad+Math.imul(kd,Jd)|0,ad=ad+Math.imul(Ad,qd)|0,od=od+Math.imul(Ad,Jd)|0,id=id+Math.imul(Ed,Xd)|0,ad=ad+Math.imul(Ed,Zd)|0,ad=ad+Math.imul(Dd,Xd)|0,od=od+Math.imul(Dd,Zd)|0,id=id+Math.imul(Cd,$d)|0,ad=ad+Math.imul(Cd,ef)|0,ad=ad+Math.imul(wd,$d)|0,od=od+Math.imul(wd,ef)|0,id=id+Math.imul(bd,nf)|0,ad=ad+Math.imul(bd,rf)|0,ad=ad+Math.imul(xd,nf)|0,od=od+Math.imul(xd,rf)|0,id=id+Math.imul(_d,of)|0,ad=ad+Math.imul(_d,sf)|0,ad=ad+Math.imul(vd,of)|0,od=od+Math.imul(vd,sf)|0,id=id+Math.imul(md,lf)|0,ad=ad+Math.imul(md,uf)|0,ad=ad+Math.imul(hd,lf)|0,od=od+Math.imul(hd,uf)|0,id=id+Math.imul(dd,ff)|0,ad=ad+Math.imul(dd,pf)|0,ad=ad+Math.imul(fd,ff)|0,od=od+Math.imul(fd,pf)|0;var wf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(wf>>>26)|0,wf&=67108863,id=Math.imul(Fd,Wd),ad=Math.imul(Fd,Gd),ad=ad+Math.imul(Id,Wd)|0,od=Math.imul(Id,Gd),id=id+Math.imul(Md,qd)|0,ad=ad+Math.imul(Md,Jd)|0,ad=ad+Math.imul(Nd,qd)|0,od=od+Math.imul(Nd,Jd)|0,id=id+Math.imul(kd,Xd)|0,ad=ad+Math.imul(kd,Zd)|0,ad=ad+Math.imul(Ad,Xd)|0,od=od+Math.imul(Ad,Zd)|0,id=id+Math.imul(Ed,$d)|0,ad=ad+Math.imul(Ed,ef)|0,ad=ad+Math.imul(Dd,$d)|0,od=od+Math.imul(Dd,ef)|0,id=id+Math.imul(Cd,nf)|0,ad=ad+Math.imul(Cd,rf)|0,ad=ad+Math.imul(wd,nf)|0,od=od+Math.imul(wd,rf)|0,id=id+Math.imul(bd,of)|0,ad=ad+Math.imul(bd,sf)|0,ad=ad+Math.imul(xd,of)|0,od=od+Math.imul(xd,sf)|0,id=id+Math.imul(_d,lf)|0,ad=ad+Math.imul(_d,uf)|0,ad=ad+Math.imul(vd,lf)|0,od=od+Math.imul(vd,uf)|0,id=id+Math.imul(md,ff)|0,ad=ad+Math.imul(md,pf)|0,ad=ad+Math.imul(hd,ff)|0,od=od+Math.imul(hd,pf)|0;var Tf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Tf>>>26)|0,Tf&=67108863,id=Math.imul(Fd,qd),ad=Math.imul(Fd,Jd),ad=ad+Math.imul(Id,qd)|0,od=Math.imul(Id,Jd),id=id+Math.imul(Md,Xd)|0,ad=ad+Math.imul(Md,Zd)|0,ad=ad+Math.imul(Nd,Xd)|0,od=od+Math.imul(Nd,Zd)|0,id=id+Math.imul(kd,$d)|0,ad=ad+Math.imul(kd,ef)|0,ad=ad+Math.imul(Ad,$d)|0,od=od+Math.imul(Ad,ef)|0,id=id+Math.imul(Ed,nf)|0,ad=ad+Math.imul(Ed,rf)|0,ad=ad+Math.imul(Dd,nf)|0,od=od+Math.imul(Dd,rf)|0,id=id+Math.imul(Cd,of)|0,ad=ad+Math.imul(Cd,sf)|0,ad=ad+Math.imul(wd,of)|0,od=od+Math.imul(wd,sf)|0,id=id+Math.imul(bd,lf)|0,ad=ad+Math.imul(bd,uf)|0,ad=ad+Math.imul(xd,lf)|0,od=od+Math.imul(xd,uf)|0,id=id+Math.imul(_d,ff)|0,ad=ad+Math.imul(_d,pf)|0,ad=ad+Math.imul(vd,ff)|0,od=od+Math.imul(vd,pf)|0;var Ef=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Ef>>>26)|0,Ef&=67108863,id=Math.imul(Fd,Xd),ad=Math.imul(Fd,Zd),ad=ad+Math.imul(Id,Xd)|0,od=Math.imul(Id,Zd),id=id+Math.imul(Md,$d)|0,ad=ad+Math.imul(Md,ef)|0,ad=ad+Math.imul(Nd,$d)|0,od=od+Math.imul(Nd,ef)|0,id=id+Math.imul(kd,nf)|0,ad=ad+Math.imul(kd,rf)|0,ad=ad+Math.imul(Ad,nf)|0,od=od+Math.imul(Ad,rf)|0,id=id+Math.imul(Ed,of)|0,ad=ad+Math.imul(Ed,sf)|0,ad=ad+Math.imul(Dd,of)|0,od=od+Math.imul(Dd,sf)|0,id=id+Math.imul(Cd,lf)|0,ad=ad+Math.imul(Cd,uf)|0,ad=ad+Math.imul(wd,lf)|0,od=od+Math.imul(wd,uf)|0,id=id+Math.imul(bd,ff)|0,ad=ad+Math.imul(bd,pf)|0,ad=ad+Math.imul(xd,ff)|0,od=od+Math.imul(xd,pf)|0;var Df=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Df>>>26)|0,Df&=67108863,id=Math.imul(Fd,$d),ad=Math.imul(Fd,ef),ad=ad+Math.imul(Id,$d)|0,od=Math.imul(Id,ef),id=id+Math.imul(Md,nf)|0,ad=ad+Math.imul(Md,rf)|0,ad=ad+Math.imul(Nd,nf)|0,od=od+Math.imul(Nd,rf)|0,id=id+Math.imul(kd,of)|0,ad=ad+Math.imul(kd,sf)|0,ad=ad+Math.imul(Ad,of)|0,od=od+Math.imul(Ad,sf)|0,id=id+Math.imul(Ed,lf)|0,ad=ad+Math.imul(Ed,uf)|0,ad=ad+Math.imul(Dd,lf)|0,od=od+Math.imul(Dd,uf)|0,id=id+Math.imul(Cd,ff)|0,ad=ad+Math.imul(Cd,pf)|0,ad=ad+Math.imul(wd,ff)|0,od=od+Math.imul(wd,pf)|0;var Of=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Of>>>26)|0,Of&=67108863,id=Math.imul(Fd,nf),ad=Math.imul(Fd,rf),ad=ad+Math.imul(Id,nf)|0,od=Math.imul(Id,rf),id=id+Math.imul(Md,of)|0,ad=ad+Math.imul(Md,sf)|0,ad=ad+Math.imul(Nd,of)|0,od=od+Math.imul(Nd,sf)|0,id=id+Math.imul(kd,lf)|0,ad=ad+Math.imul(kd,uf)|0,ad=ad+Math.imul(Ad,lf)|0,od=od+Math.imul(Ad,uf)|0,id=id+Math.imul(Ed,ff)|0,ad=ad+Math.imul(Ed,pf)|0,ad=ad+Math.imul(Dd,ff)|0,od=od+Math.imul(Dd,pf)|0;var kf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(kf>>>26)|0,kf&=67108863,id=Math.imul(Fd,of),ad=Math.imul(Fd,sf),ad=ad+Math.imul(Id,of)|0,od=Math.imul(Id,sf),id=id+Math.imul(Md,lf)|0,ad=ad+Math.imul(Md,uf)|0,ad=ad+Math.imul(Nd,lf)|0,od=od+Math.imul(Nd,uf)|0,id=id+Math.imul(kd,ff)|0,ad=ad+Math.imul(kd,pf)|0,ad=ad+Math.imul(Ad,ff)|0,od=od+Math.imul(Ad,pf)|0;var Af=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Af>>>26)|0,Af&=67108863,id=Math.imul(Fd,lf),ad=Math.imul(Fd,uf),ad=ad+Math.imul(Id,lf)|0,od=Math.imul(Id,uf),id=id+Math.imul(Md,ff)|0,ad=ad+Math.imul(Md,pf)|0,ad=ad+Math.imul(Nd,ff)|0,od=od+Math.imul(Nd,pf)|0;var jf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(jf>>>26)|0,jf&=67108863,id=Math.imul(Fd,ff),ad=Math.imul(Fd,pf),ad=ad+Math.imul(Id,ff)|0,od=Math.imul(Id,pf);var Mf=(rd+id|0)+((ad&8191)<<13)|0;return rd=(od+(ad>>>13)|0)+(Mf>>>26)|0,Mf&=67108863,nd[0]=mf,nd[1]=hf,nd[2]=gf,nd[3]=_f,nd[4]=vf,nd[5]=yf,nd[6]=bf,nd[7]=xf,nd[8]=Sf,nd[9]=Cf,nd[10]=wf,nd[11]=Tf,nd[12]=Ef,nd[13]=Df,n
321d[14]=Of,nd[15]=kf,nd[16]=Af,nd[17]=jf,nd[18]=Mf,rd!==0&&(nd[19]=rd,$.length++),$};Math.imul||(md=pd);function hd(e,t,$){$.negative=t.negative^e.negative,$.length=e.length+t.length;for(var ed=0,td=0,nd=0;nd<$.length-1;nd++){var rd=td;td=0;for(var id=ed&67108863,ad=Math.min(nd,t.length-1),od=Math.max(0,nd-e.length+1);od<=ad;od++){var sd=nd-od,cd=(e.words[sd]|0)*(t.words[od]|0),ld=cd&67108863;rd=rd+(cd/67108864|0)|0,ld=ld+id|0,id=ld&67108863,rd=rd+(ld>>>26)|0,td+=rd>>>26,rd&=67108863}$.words[nd]=id,ed=rd,rd=td}return ed===0?$.length--:$.words[nd]=ed,$._strip()}function gd(e,t,$){return hd(e,t,$)}td.prototype.mulTo=function(e,t){var $,ed=this.length+e.length;return $=this.length===10&&e.length===10?md(this,e,t):ed<63?pd(this,e,t):ed<1024?hd(this,e,t):gd(this,e,t),$};function _d(e,t){this.x=e,this.y=t}_d.prototype.makeRBT=function(e){for(var t=Array(e),$=td.prototype._countBits(e)-1,ed=0;ed<e;ed++)t[ed]=this.revBin(ed,$,e);return t},_d.prototype.revBin=function(e,t,$){if(e===0||e===$-1)return e;for(var ed=0,td=0;td<t;td++)ed|=(e&1)<<t-td-1,e>>=1;return ed},_d.prototype.permute=function(e,t,$,ed,td,nd){for(var rd=0;rd<nd;rd++)ed[rd]=t[e[rd]],td[rd]=$[e[rd]]},_d.prototype.transform=function(e,t,$,ed,td,nd){this.permute(nd,e,t,$,ed,td);for(var rd=1;rd<td;rd<<=1)for(var id=rd<<1,ad=Math.cos(2*Math.PI/id),od=Math.sin(2*Math.PI/id),sd=0;sd<td;sd+=id)for(var cd=ad,ld=od,ud=0;ud<rd;ud++){var dd=$[sd+ud],fd=ed[sd+ud],pd=$[sd+ud+rd],md=ed[sd+ud+rd],hd=cd*pd-ld*md;md=cd*md+ld*pd,pd=hd,$[sd+ud]=dd+pd,ed[sd+ud]=fd+md,$[sd+ud+rd]=dd-pd,ed[sd+ud+rd]=fd-md,ud!==id&&(hd=ad*cd-od*ld,ld=ad*ld+od*cd,cd=hd)}},_d.prototype.guessLen13b=function(e,t){var $=Math.max(t,e)|1,ed=$&1,td=0;for($=$/2|0;$;$>>>=1)td++;return 1<<td+1+ed},_d.prototype.conjugate=function(e,t,$){if(!($<=1))for(var ed=0;ed<$/2;ed++){var td=e[ed];e[ed]=e[$-ed-1],e[$-ed-1]=td,td=t[ed],t[ed]=-t[$-ed-1],t[$-ed-1]=-td}},_d.prototype.normalize13b=function(e,t){for(var $=0,ed=0;ed<t/2;ed++){var td=Math.round(e[2*ed+1]/t)*8192+Math.round(e[2*ed]/t)+$;e[ed]=td&67108863,$=td<67108864?0:td/67108864|0}return e},_d.prototype.convert13b=function(e,t,ed,td){for(var nd=0,rd=0;rd<t;rd++)nd+=e[rd]|0,ed[2*rd]=nd&8191,nd>>>=13,ed[2*rd+1]=nd&8191,nd>>>=13;for(rd=2*t;rd<td;++rd)ed[rd]=0;$(nd===0),$((nd&-8192)==0)},_d.prototype.stub=function(e){for(var t=Array(e),$=0;$<e;$++)t[$]=0;return t},_d.prototype.mulp=function(e,t,$){var ed=2*this.guessLen13b(e.length,t.length),td=this.makeRBT(ed),nd=this.stub(ed),rd=Array(ed),id=Array(ed),ad=Array(ed),od=Array(ed),sd=Array(ed),cd=Array(ed),ld=$.words;ld.length=ed,this.convert13b(e.words,e.length,rd,ed),this.convert13b(t.words,t.length,od,ed),this.transform(rd,nd,id,ad,ed,td),this.transform(od,nd,sd,cd,ed,td);for(var ud=0;ud<ed;ud++){var dd=id[ud]*sd[ud]-ad[ud]*cd[ud];ad[ud]=id[ud]*cd[ud]+ad[ud]*sd[ud],id[ud]=dd}return this.conjugate(id,ad,ed),this.transform(id,ad,ld,nd,ed,td),this.conjugate(ld,nd,ed),this.normalize13b(ld,ed),$.negative=e.negative^t.negative,$.length=e.length+t.length,$._strip()},td.prototype.mul=function(e){var t=new td(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},td.prototype.mulf=function(e){var t=new td(null);return t.words=Array(this.length+e.length),gd(this,e,t)},td.prototype.imul=function(e){return this.clone().mulTo(e,this)},td.prototype.imuln=function(e){var t=e<0;t&&(e=-e),$(typeof e==`number`),$(e<67108864);for(var ed=0,td=0;td<this.length;td++){var nd=(this.words[td]|0)*e,rd=(nd&67108863)+(ed&67108863);ed>>=26,ed+=nd/67108864|0,ed+=rd>>>26,this.words[td]=rd&67108863}return ed!==0&&(this.words[td]=ed,this.length++),this.length=e===0?1:this.length,t?this.ineg():this},td.prototype.muln=function(e){return this.clone().imuln(e)},td.prototype.sqr=function(){return this.mul(this)},td.prototype.isqr=function(){return this.imul(this.clone())},td.prototype.pow=function(e){var t=fd(e);if(t.length===0)return new td(1);for(var $=this,ed=0;ed<t.length&&t[ed]===0;ed++,$=$.sqr());if(++ed<t.length)for(var nd=$.sqr();ed<t.length;ed++,nd=nd.sqr())t[ed]!==0&&($=$.mul(nd));return $},td.prototype.iushln=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=67108863>>>26-t<<26-t,nd;if(t!==0){var rd=0;for(nd=0;nd<this.length;nd++){var id=this.words[nd]&td,ad=(this.words[nd]|0)-id<<t;this.words[nd]=ad|rd,rd=id>>>26-t}rd&&(this.words[nd]=rd,this.length++)}if(ed!==0){for(nd=this.length-1;nd>=0;nd--)this.words[nd+ed]=this.words[nd];for(nd=0;nd<ed;nd++)this.words[nd]=0;this.length+=ed}return this._strip()},td.prototype.ishln=function(e){return $(this.negative===0),this.iushln(e)},td.prototype.iushrn=function(e,t,ed){$(typeof e==`number`&&e>=0);var td=t?(t-t%26)/26:0,nd=e%26,rd=Math.min((e-nd)/26,this.length),id=67108863^67108863>>>nd<<nd,ad=ed;if(td-=rd,td=Math.max(0,td),ad){for(var od=0;od<rd;od++)ad.words[od]=this.words[od];ad.length=rd}if(rd!==0)if(this.length>rd)for(this.length-=rd,od=0;od<this.length;od++)this.words[od]=this.words[od+rd];else this.words[0]=0,this.length=1;var sd=0;
vendor: 17,621 bytes, line 321
321for(od=this.length-1;od>=0&&(sd!==0||od>=td);od--){var cd=this.words[od]|0;this.words[od]=sd<<26-nd|cd>>>nd,sd=cd&id}return ad&&sd!==0&&(ad.words[ad.length++]=sd),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},td.prototype.ishrn=function(e,t,ed){return $(this.negative===0),this.iushrn(e,t,ed)},td.prototype.shln=function(e){return this.clone().ishln(e)},td.prototype.ushln=function(e){return this.clone().iushln(e)},td.prototype.shrn=function(e){return this.clone().ishrn(e)},td.prototype.ushrn=function(e){return this.clone().iushrn(e)},td.prototype.testn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=1<<t;return this.length<=ed?!1:!!(this.words[ed]&td)},td.prototype.imaskn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26;if($(this.negative===0,`imaskn works only with positive numbers`),this.length<=ed)return this;if(t!==0&&ed++,this.length=Math.min(ed,this.length),t!==0){var td=67108863^67108863>>>t<<t;this.words[this.length-1]&=td}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},td.prototype.maskn=function(e){return this.clone().imaskn(e)},td.prototype.iaddn=function(e){return $(typeof e==`number`),$(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(this.words[0]|0)<=e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},td.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},td.prototype.isubn=function(e){if($(typeof e==`number`),$(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},td.prototype.addn=function(e){return this.clone().iaddn(e)},td.prototype.subn=function(e){return this.clone().isubn(e)},td.prototype.iabs=function(){return this.negative=0,this},td.prototype.abs=function(){return this.clone().iabs()},td.prototype._ishlnsubmul=function(e,t,ed){var td=e.length+ed,nd;this._expand(td);var rd,id=0;for(nd=0;nd<e.length;nd++){rd=(this.words[nd+ed]|0)+id;var ad=(e.words[nd]|0)*t;rd-=ad&67108863,id=(rd>>26)-(ad/67108864|0),this.words[nd+ed]=rd&67108863}for(;nd<this.length-ed;nd++)rd=(this.words[nd+ed]|0)+id,id=rd>>26,this.words[nd+ed]=rd&67108863;if(id===0)return this._strip();for($(id===-1),id=0,nd=0;nd<this.length;nd++)rd=-(this.words[nd]|0)+id,id=rd>>26,this.words[nd]=rd&67108863;return this.negative=1,this._strip()},td.prototype._wordDiv=function(e,t){var $=this.length-e.length,ed=this.clone(),nd=e,rd=nd.words[nd.length-1]|0;$=26-this._countBits(rd),$!==0&&(nd=nd.ushln($),ed.iushln($),rd=nd.words[nd.length-1]|0);var id=ed.length-nd.length,ad;if(t!==`mod`){ad=new td(null),ad.length=id+1,ad.words=Array(ad.length);for(var od=0;od<ad.length;od++)ad.words[od]=0}var sd=ed.clone()._ishlnsubmul(nd,1,id);sd.negative===0&&(ed=sd,ad&&(ad.words[id]=1));for(var cd=id-1;cd>=0;cd--){var ld=(ed.words[nd.length+cd]|0)*67108864+(ed.words[nd.length+cd-1]|0);for(ld=Math.min(ld/rd|0,67108863),ed._ishlnsubmul(nd,ld,cd);ed.negative!==0;)ld--,ed.negative=0,ed._ishlnsubmul(nd,1,cd),ed.isZero()||(ed.negative^=1);ad&&(ad.words[cd]=ld)}return ad&&ad._strip(),ed._strip(),t!==`div`&&$!==0&&ed.iushrn($),{div:ad||null,mod:ed}},td.prototype.divmod=function(e,t,ed){if($(!e.isZero()),this.isZero())return{div:new td(0),mod:new td(0)};var nd,rd,id;return this.negative!==0&&e.negative===0?(id=this.neg().divmod(e,t),t!==`mod`&&(nd=id.div.neg()),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.iadd(e)),{div:nd,mod:rd}):this.negative===0&&e.negative!==0?(id=this.divmod(e.neg(),t),t!==`mod`&&(nd=id.div.neg()),{div:nd,mod:id.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new td(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new td(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new td(this.modrn(e.words[0]))}:this._wordDiv(e,t):(id=this.neg().divmod(e.neg(),t),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.isub(e)),{div:id.div,mod:rd})},td.prototype.div=function(e){return this.divmod(e,`div`,!1).div},td.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},td.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},td.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var $=t.div.negative===0?t.mod:t.mod.isub(e),ed=e.ushrn(1),td=e.andln(1),nd=$.cmp(ed);return nd<0||td===1&&nd===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},td.prototype.modrn=function(e){var t=e<0;t&&(e=-e),$(e<=67108863);for(var ed=(1<<26)%e,td=0,nd=this.length-1;nd>=0;nd--)td=(ed*td+(this.words[nd]|0))%e;return t?-td:td},td.prototype.modn=function(e){return this.modrn(e)},td.prototype.idivn=function(e){var t=e<0;t&&(e=-e),$(e<=67108863);for(var ed=0,td=this.length-1;td>=0;td--){var nd=(this.words[td]|0)+ed*67108864;this.words[td]=nd/e|0,ed=nd%e}return this._strip(),t?this.ineg():this},td.prototype.divn=function(e){return this.clone().idivn(e)},td.prototype.egcd=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=new td(0),ad=new td(1),od=0;t.isEven()&&ed.isEven();)t.iushrn(1),ed.iushrn(1),++od;for(var sd=ed.clone(),cd=t.clone();!t.isZero();){for(var ld=0,ud=1;(t.words[0]&ud)===0&&ld<26;++ld,ud<<=1);if(ld>0)for(t.iushrn(ld);ld-- >0;)(nd.isOdd()||rd.isOdd())&&(nd.iadd(sd),rd.isub(cd)),nd.iushrn(1),rd.iushrn(1);for(var dd=0,fd=1;(ed.words[0]&fd)===0&&dd<26;++dd,fd<<=1);if(dd>0)for(ed.iushrn(dd);dd-- >0;)(id.isOdd()||ad.isOdd())&&(id.iadd(sd),ad.isub(cd)),id.iushrn(1),ad.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(id),rd.isub(ad)):(ed.isub(t),id.isub(nd),ad.isub(rd))}return{a:id,b:ad,gcd:ed.iushln(od)}},td.prototype._invmp=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=ed.clone();t.cmpn(1)>0&&ed.cmpn(1)>0;){for(var ad=0,od=1;(t.words[0]&od)===0&&ad<26;++ad,od<<=1);if(ad>0)for(t.iushrn(ad);ad-- >0;)nd.isOdd()&&nd.iadd(id),nd.iushrn(1);for(var sd=0,cd=1;(ed.words[0]&cd)===0&&sd<26;++sd,cd<<=1);if(sd>0)for(ed.iushrn(sd);sd-- >0;)rd.isOdd()&&rd.iadd(id),rd.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(rd)):(ed.isub(t),rd.isub(nd))}var ld=t.cmpn(1)===0?nd:rd;return ld.cmpn(0)<0&&ld.iadd(e),ld},td.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),$=e.clone();t.negative=0,$.negative=0;for(var ed=0;t.isEven()&&$.isEven();ed++)t.iushrn(1),$.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;$.isEven();)$.iushrn(1);var td=t.cmp($);if(td<0){var nd=t;t=$,$=nd}else if(td===0||$.cmpn(1)===0)break;t.isub($)}while(!0);return $.iushln(ed)},td.prototype.invm=function(e){return this.egcd(e).a.umod(e)},td.prototype.isEven=function(){return(this.words[0]&1)==0},td.prototype.isOdd=function(){return(this.words[0]&1)==1},td.prototype.andln=function(e){return this.words[0]&e},td.prototype.bincn=function(e){$(typeof e==`number`);var t=e%26,ed=(e-t)/26,td=1<<t;if(this.length<=ed)return this._expand(ed+1),this.words[ed]|=td,this;for(var nd=td,rd=ed;nd!==0&&rd<this.length;rd++){var id=this.words[rd]|0;id+=nd,nd=id>>>26,id&=67108863,this.words[rd]=id}return nd!==0&&(this.words[rd]=nd,this.length++),this},td.prototype.isZero=function(){return this.length===1&&this.words[0]===0},td.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this._strip();var ed;if(this.length>1)ed=1;else{t&&(e=-e),$(e<=67108863,`Number is too big`);var td=this.words[0]|0;ed=td===e?0:td<e?-1:1}return this.negative===0?ed:-ed|0},td.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:-t|0},td.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,$=this.length-1;$>=0;$--){var ed=this.words[$]|0,td=e.words[$]|0;if(ed!==td){ed<td?t=-1:ed>td&&(t=1);break}}return t},td.prototype.gtn=function(e){return this.cmpn(e)===1},td.prototype.gt=function(e){return this.cmp(e)===1},td.prototype.gten=function(e){return this.cmpn(e)>=0},td.prototype.gte=function(e){return this.cmp(e)>=0},td.prototype.ltn=function(e){return this.cmpn(e)===-1},td.prototype.lt=function(e){return this.cmp(e)===-1},td.prototype.lten=function(e){return this.cmpn(e)<=0},td.prototype.lte=function(e){return this.cmp(e)<=0},td.prototype.eqn=function(e){return this.cmpn(e)===0},td.prototype.eq=function(e){return this.cmp(e)===0},td.red=function(e){return new wd(e)},td.prototype.toRed=function(e){return $(!this.red,`Already a number in reduction context`),$(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},td.prototype.fromRed=function(){return $(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},td.prototype._forceRed=function(e){return this.red=e,this},td.prototype.forceRed=function(e){return $(!this.red,`Already a number in reduction context`),this._forceRed(e)},td.prototype.redAdd=function(e){return $(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},td.prototype.redIAdd=function(e){return $(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},td.prototype.redSub=function(e){return $(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},td.prototype.redISub=function(e){return $(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},td.prototype.redShl=function(e){return $(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},td.prototype.redMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},td.prototype.redIMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},td.prototype.redSqr=function(){return $(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},td.prototype.redISqr=function(){return $(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},td.prototype.redSqrt=function(){return $(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},td.prototype.redInvm=function(){return $(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},td.prototype.redNeg=function(){return $(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},td.prototype.redPow=function(e){return $(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var vd={k256:null,p224:null,p192:null,p25519:null};function yd(e,t){this.name=e,this.p=new td(t,16),this.n=this.p.bitLength(),this.k=new td(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}yd.prototype._tmp=function(){var e=new td(null);return e.words=Array(Math.ceil(this.n/13)),e},yd.prototype.ireduce=function(e){var t=e,$;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),$=t.bitLength();while($>this.n);var ed=$<this.n?-1:t.ucmp(this.p);return ed===0?(t.words[0]=0,t.length=1):ed>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},yd.prototype.split=function(e,t){e.iushrn(this.n,0,t)},yd.prototype.imulK=function(e){return e.imul(this.k)};function bd(){yd.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}ed(bd,yd),bd.prototype.split=function(e,t){for(var $=4194303,ed=Math.min(e.length,9),td=0;td<ed;td++)t.words[td]=e.words[td];if(t.length=ed,e.length<=9){e.words[0]=0,e.length=1;return}var nd=e.words[9];for(t.words[t.length++]=nd&$,td=10;td<e.length;td++){var rd=e.words[td]|0;e.words[td-10]=(rd&$)<<4|nd>>>22,nd=rd}nd>>>=22,e.words[td-10]=nd,nd===0&&e.length>10?e.length-=10:e.length-=9},bd.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,$=0;$<e.length;$++){var ed=e.words[$]|0;t+=ed*977,e.words[$]=t&67108863,t=ed*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function xd(){yd.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}ed(xd,yd);function Sd(){yd.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}ed(Sd,yd);function Cd(){yd.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}ed(Cd,yd),Cd.prototype.imulK=function(e){for(var t=0,$=0;$<e.length;$++){var ed=(e.words[$]|0)*19+t,td=ed&67108863;ed>>>=26,e.words[$]=td,t=ed}return t!==0&&(e.words[e.length++]=t),e},td._prime=function(e){if(vd[e])return vd[e];var t;if(e===`k256`)t=new bd;else if(e===`p224`)t=new xd;else if(e===`p192`)t=new Sd;else if(e===`p25519`)t=new Cd;else throw Error(`Unknown prime `+e);return vd[e]=t,t};function wd(e){if(typeof e==`string`){var t=td._prime(e);this.m=t.p,this.prime=t}else $(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}wd.prototype._verify1=function(e){$(e.negative===0,`red works only with positives`),$(e.red,`red works only with red numbers`)},wd.prototype._verify2=function(e,t){$((e.negative|t.negative)===0,`red works only with positives`),$(e.red&&e.red===t.red,`red works only with red numbers`)},wd.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(od(e,e.umod(this.m)._forceRed(this)),e)},wd.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},wd.prototype.add=function(e,t){this._verify2(e,t);var $=e.add(t);return $.cmp(this.m)>=0&&$.isub(this.m),$._forceRed(this)},wd.prototype.iadd=function(e,t){this._verify2(e,t);var $=e.iadd(t);return $.cmp(this.m)>=0&&$.isub(this.m),$},wd.prototype.sub=function(e,t){this._verify2(e,t);var $=e.sub(t);return $.cmpn(0)<0&&$.iadd(this.m),$._forceRed(this)},wd.prototype.isub=function(e,t){this._verify2(e,t);var $=e.isub(t);return $.cmpn(0)<0&&$.iadd(this.m),$},wd.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},wd.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},wd.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},wd.prototype.isqr=function(e){return this.imul(e,e.clone())},wd.prototype.sqr=function(e){return this.mul(e,e)},wd.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if($(t%2==1),t===3){var ed=this.m.add(new td(1)).iushrn(2);return this.pow(e,ed)}for(var nd=this.m.subn(1),rd=0;!nd.isZero()&&nd.andln(1)===0;)rd++,nd.iushrn(1);$(!nd.isZero());var id=new td(1).toRed(this),ad=id.redNeg(),od=this.m.subn(1).iushrn(1),sd=this.m.bitLength();for(sd=new td(2*sd*sd).toRed(this);this.pow(sd,od).cmp(ad)!==0;)sd.redIAdd(ad);for(var cd=this.pow(sd,nd),ld=this.pow(e,nd.addn(1).iushrn(1)),ud=this.pow(e,nd),dd=rd;ud.cmp(id)!==0;){for(var fd=ud,pd=0;fd.cmp(id)!==0;pd++)fd=fd.redSqr();$(pd<dd);var md=this.pow(cd,new td(1).iushln(dd-pd-1));ld=ld.redMul(md),cd=md.redSqr(),ud=ud.redMul(cd),dd=pd}return ld},wd.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},wd.prototype.pow=function(e,t){if(t.isZero())return new td(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var $=4,ed=Array(1<<$);ed[0]=new td(1).toRed(this),ed[1]=e;for(var nd=2;nd<ed.length;nd++)ed[nd]=this.mul(ed[nd-1],e);var rd=ed[0],id=0,ad=0,od=t.bitLength()%26;for(od===0&&(od=26),nd=t.length-1;nd>=0;nd--){for(var sd=t.words[nd],cd=od-1;cd>=0;cd--){var ld=sd>>cd&1;if(rd!==ed[0]&&(rd=this.sqr(rd)),ld===0&&id===0){ad=0;continue}id<<=1,id|=ld,ad++,!(ad!==$&&(nd!==0||cd!==0))&&(rd=this.mul(rd,ed[id]),ad=0,id=0)}od=26}return rd},wd.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},wd.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},td.mont=function(e){return new Td(e)};function Td(e){wd.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new td(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ed(Td,wd),Td.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Td.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Td.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var $=e.imul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),td=$.isub(ed).iushrn(this.shift),nd=td;return td.cmp(this.m)>=0?nd=td.isub(this.m):td.cmpn(0)<0&&(nd=td.iadd(this.m)),nd._forceRed(this)},Td.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new td(0)._forceRed(this);var $=e.mul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),nd=$.isub(ed).iushrn(this.shift),rd=nd;return nd.cmp(this.m)>=0?rd=nd.isub(this.m):nd.cmpn(0)<0&&(rd=nd.iadd(this.m)),rd._forceRed(this)},Td.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t,e)})),require_browserify_rsa=__commonJSMin(((e,t)=>{var $=require_bn$1(),ed=require_browser$11(),td=require_safe_buffer$4().Buffer;
321function nd(e){var t=e.modulus.byteLength(),td;do td=new $(ed(t));while(td.cmp(e.modulus)>=0||!td.umod(e.prime1)||!td.umod(e.prime2));return td}function rd(e){var t=nd(e);return{blinder:t.toRed($.mont(e.modulus)).redPow(new $(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function id(e,t){var ed=rd(t),nd=t.modulus.byteLength(),id=new $(e).mul(ed.blinder).umod(t.modulus),ad=id.toRed($.mont(t.prime1)),od=id.toRed($.mont(t.prime2)),sd=t.coefficient,cd=t.prime1,ld=t.prime2,ud=ad.redPow(t.exponent1).fromRed(),dd=od.redPow(t.exponent2).fromRed(),fd=ud.isub(dd).imul(sd).umod(cd).imul(ld);return dd.iadd(fd).imul(ed.unblinder).umod(t.modulus).toArrayLike(td,`be`,nd)}id.getr=nd,t.exports=id})),package_exports=__exportAll({author:()=>author,bugs:()=>bugs,default:()=>package_default,dependencies:()=>dependencies,description:()=>description,devDependencies:()=>devDependencies,files:()=>files,homepage:()=>homepage,keywords:()=>keywords,license:()=>`MIT`,main:()=>main,name:()=>name,repository:()=>repository,scripts:()=>scripts,version:()=>version}),name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies,package_default,init_package=__esmMin((()=>{name=`elliptic`,version=`6.6.1`,description=`EC cryptography`,main=`lib/elliptic.js`,files=[`lib`],scripts={lint:`eslint lib test`,"lint:fix":`npm run lint -- --fix`,unit:`istanbul test _mocha --reporter=spec test/index.js`,test:`npm run lint && npm run unit`,version:`grunt dist && git add dist/`},repository={type:`git`,url:`[email protected]:indutny/elliptic`},keywords=[`EC`,`Elliptic`,`curve`,`Cryptography`],author=`Fedor Indutny <[email protected]>`,bugs={url:`https://github.com/indutny/elliptic/issues`},homepage=`https://github.com/indutny/elliptic`,devDependencies={brfs:`^2.0.2`,coveralls:`^3.1.0`,eslint:`^7.6.0`,grunt:`^1.2.1`,"grunt-browserify":`^5.3.0`,"grunt-cli":`^1.3.2`,"grunt-contrib-connect":`^3.0.0`,"grunt-contrib-copy":`^1.0.0`,"grunt-contrib-uglify":`^5.0.0`,"grunt-mocha-istanbul":`^5.0.2`,"grunt-saucelabs":`^9.0.1`,istanbul:`^0.4.5`,mocha:`^8.0.1`},dependencies={"bn.js":`^4.11.9`,brorand:`^1.1.0`,"hash.js":`^1.0.0`,"hmac-drbg":`^1.0.1`,inherits:`^2.0.4`,"minimalistic-assert":`^1.0.1`,"minimalistic-crypto-utils":`^1.0.1`},package_default={name,version,description,main,files,scripts,repository,keywords,author,license:`MIT`,bugs,homepage,devDependencies,dependencies}})),require_utils$2=__commonJSMin((e=>{var t=e;function $(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var $=[];if(typeof e!=`string`){for(var ed=0;ed<e.length;ed++)$[ed]=e[ed]|0;return $}if(t===`hex`){e=e.replace(/[^a-z0-9]+/gi,``),e.length%2!=0&&(e=`0`+e);for(var ed=0;ed<e.length;ed+=2)$.push(parseInt(e[ed]+e[ed+1],16))}else for(var ed=0;ed<e.length;ed++){var td=e.charCodeAt(ed),nd=td>>8,rd=td&255;nd?$.push(nd,rd):$.push(rd)}return $}t.toArray=$;function ed(e){return e.length===1?`0`+e:e}t.zero2=ed;function td(e){for(var t=``,$=0;$<e.length;$++)t+=ed(e[$].toString(16));return t}t.toHex=td,t.encode=function(e,t){return t===`hex`?td(e):e}})),require_utils$1=__commonJSMin((e=>{var t=e,$=require_bn$2(),ed=require_minimalistic_assert(),td=require_utils$2();t.assert=ed,t.toArray=td.toArray,t.zero2=td.zero2,t.toHex=td.toHex,t.encode=td.encode;function nd(e,t,$){var ed=Array(Math.max(e.bitLength(),$)+1),td;for(td=0;td<ed.length;td+=1)ed[td]=0;var nd=1<<t+1,rd=e.clone();for(td=0;td<ed.length;td++){var id,ad=rd.andln(nd-1);rd.isOdd()?(id=ad>(nd>>1)-1?(nd>>1)-ad:ad,rd.isubn(id)):id=0,ed[td]=id,rd.iushrn(1)}return ed}t.getNAF=nd;function rd(e,t){var $=[[],[]];e=e.clone(),t=t.clone();for(var ed=0,td=0,nd;e.cmpn(-ed)>0||t.cmpn(-td)>0;){var rd=e.andln(3)+ed&3,id=t.andln(3)+td&3;rd===3&&(rd=-1),id===3&&(id=-1);var ad;rd&1?(nd=e.andln(7)+ed&7,ad=(nd===3||nd===5)&&id===2?-rd:rd):ad=0,$[0].push(ad);var od;id&1?(nd=t.andln(7)+td&7,od=(nd===3||nd===5)&&rd===2?-id:id):od=0,$[1].push(od),2*ed===ad+1&&(ed=1-ed),2*td===od+1&&(td=1-td),e.iushrn(1),t.iushrn(1)}return $}t.getJSF=rd;function id(e,t,$){var ed=`_`+t;e.prototype[t]=function(){return this[ed]===void 0?this[ed]=$.call(this):this[ed]}}t.cachedProperty=id;function ad(e){return typeof e==`string`?t.toArray(e,`hex`):e}t.parseBytes=ad;function od(e){return new $(e,`hex`,`le`)}t.intFromLE=od})),require_base$1=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_utils$1(),td=ed.getNAF,nd=ed.getJSF,rd=ed.assert;function id(e,t){this.type=e,this.p=new $(t.p,16),this.red=t.prime?$.red(t.prime):$.mont(this.p),this.zero=new $(0).toRed(this.red),this.one=new $(1).toRed(this.red),this.two=new $(2).toRed(this.red),this.n=t.n&&new $(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var ed=this.n&&this.p.div(this.n);!ed||ed.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}t.exports=id,id.prototype.point=function(){throw Error(`Not implemented`)},id.prototype.validate=function(){throw Error(`Not implemented`)},id.prototype._fixedNafMul=function(e,t){rd(e.precomputed);var $=e._getDoubles(),ed=td(t,1,this._bitLength),nd=(1<<$.step+1)-($.step%2==0?2:1);nd/=3;var id=[],ad,od;for(ad=0;ad<ed.length;ad+=$.step){od=0;for(var sd=ad+$.step-1;sd>=ad;sd--)od=(od<<1)+ed[sd];id.push(od)}for(var cd=this.jpoint(null,null,null),ld=this.jpoint(null,null,null),ud=nd;ud>0;ud--){for(ad=0;ad<id.length;ad++)od=id[ad],od===ud?ld=ld.mixedAdd($.points[ad]):od===-ud&&(ld=ld.mixedAdd($.points[ad].neg()));cd=cd.add(ld)}return cd.toP()},id.prototype._wnafMul=function(e,t){var $=4,ed=e._getNAFPoints($);$=ed.wnd;for(var nd=ed.points,id=td(t,$,this._bitLength),ad=this.jpoint(null,null,null),od=id.length-1;od>=0;od--){for(var sd=0;od>=0&&id[od]===0;od--)sd++;if(od>=0&&sd++,ad=ad.dblp(sd),od<0)break;var cd=id[od];rd(cd!==0),ad=e.type===`affine`?cd>0?ad.mixedAdd(nd[cd-1>>
3211]):ad.mixedAdd(nd[-cd-1>>1].neg()):cd>0?ad.add(nd[cd-1>>1]):ad.add(nd[-cd-1>>1].neg())}return e.type===`affine`?ad.toP():ad},id.prototype._wnafMulAdd=function(e,t,$,ed,rd){var id=this._wnafT1,ad=this._wnafT2,od=this._wnafT3,sd=0,cd,ld,ud;for(cd=0;cd<ed;cd++){ud=t[cd];var dd=ud._getNAFPoints(e);id[cd]=dd.wnd,ad[cd]=dd.points}for(cd=ed-1;cd>=1;cd-=2){var fd=cd-1,pd=cd;if(id[fd]!==1||id[pd]!==1){od[fd]=td($[fd],id[fd],this._bitLength),od[pd]=td($[pd],id[pd],this._bitLength),sd=Math.max(od[fd].length,sd),sd=Math.max(od[pd].length,sd);continue}var md=[t[fd],null,null,t[pd]];t[fd].y.cmp(t[pd].y)===0?(md[1]=t[fd].add(t[pd]),md[2]=t[fd].toJ().mixedAdd(t[pd].neg())):t[fd].y.cmp(t[pd].y.redNeg())===0?(md[1]=t[fd].toJ().mixedAdd(t[pd]),md[2]=t[fd].add(t[pd].neg())):(md[1]=t[fd].toJ().mixedAdd(t[pd]),md[2]=t[fd].toJ().mixedAdd(t[pd].neg()));var hd=[-3,-1,-5,-7,0,7,5,1,3],gd=nd($[fd],$[pd]);for(sd=Math.max(gd[0].length,sd),od[fd]=Array(sd),od[pd]=Array(sd),ld=0;ld<sd;ld++){var _d=gd[0][ld]|0,vd=gd[1][ld]|0;od[fd][ld]=hd[(_d+1)*3+(vd+1)],od[pd][ld]=0,ad[fd]=md}}var yd=this.jpoint(null,null,null),bd=this._wnafT4;for(cd=sd;cd>=0;cd--){for(var xd=0;cd>=0;){var Sd=!0;for(ld=0;ld<ed;ld++)bd[ld]=od[ld][cd]|0,bd[ld]!==0&&(Sd=!1);if(!Sd)break;xd++,cd--}if(cd>=0&&xd++,yd=yd.dblp(xd),cd<0)break;for(ld=0;ld<ed;ld++){var Cd=bd[ld];Cd!==0&&(Cd>0?ud=ad[ld][Cd-1>>1]:Cd<0&&(ud=ad[ld][-Cd-1>>1].neg()),yd=ud.type===`affine`?yd.mixedAdd(ud):yd.add(ud))}}for(cd=0;cd<ed;cd++)ad[cd]=null;return rd?yd:yd.toP()};function ad(e,t){this.curve=e,this.type=t,this.precomputed=null}id.BasePoint=ad,ad.prototype.eq=function(){throw Error(`Not implemented`)},ad.prototype.validate=function(){return this.curve.validate(this)},id.prototype.decodePoint=function(e,t){e=ed.toArray(e,t);var $=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*$)return e[0]===6?rd(e[e.length-1]%2==0):e[0]===7&&rd(e[e.length-1]%2==1),this.point(e.slice(1,1+$),e.slice(1+$,1+2*$));if((e[0]===2||e[0]===3)&&e.length-1===$)return this.pointFromX(e.slice(1,1+$),e[0]===3);throw Error(`Unknown point format`)},ad.prototype.encodeCompressed=function(e){return this.encode(e,!0)},ad.prototype._encode=function(e){var t=this.curve.p.byteLength(),$=this.getX().toArray(`be`,t);return e?[this.getY().isEven()?2:3].concat($):[4].concat($,this.getY().toArray(`be`,t))},ad.prototype.encode=function(e,t){return ed.encode(this._encode(t),e)},ad.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},ad.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return t?t.points.length>=Math.ceil((e.bitLength()+1)/t.step):!1},ad.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var $=[this],ed=this,td=0;td<t;td+=e){for(var nd=0;nd<e;nd++)ed=ed.dbl();$.push(ed)}return{step:e,points:$}},ad.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],$=(1<<e)-1,ed=$===1?null:this.dbl(),td=1;td<$;td++)t[td]=t[td-1].add(ed);return{wnd:e,points:t}},ad.prototype._getBeta=function(){return null},ad.prototype.dblp=function(e){for(var t=this,$=0;$<e;$++)t=t.dbl();return t}})),require_short=__commonJSMin(((e,t)=>{var $=require_utils$1(),ed=require_bn$2(),td=require_inherits_browser(),nd=require_base$1(),rd=$.assert;function id(e){nd.call(this,`short`,e),this.a=new ed(e.a,16).toRed(this.red),this.b=new ed(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}td(id,nd),t.exports=id,id.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,$;if(e.beta)t=new ed(e.beta,16).toRed(this.red);else{var td=this._getEndoRoots(this.p);t=td[0].cmp(td[1])<0?td[0]:td[1],t=t.toRed(this.red)}if(e.lambda)$=new ed(e.lambda,16);else{var nd=this._getEndoRoots(this.n);this.g.mul(nd[0]).x.cmp(this.g.x.redMul(t))===0?$=nd[0]:($=nd[1],rd(this.g.mul($).x.cmp(this.g.x.redMul(t))===0))}var id=e.basis?e.basis.map(function(e){return{a:new ed(e.a,16),b:new ed(e.b,16)}}):this._getEndoBasis($);return{beta:t,lambda:$,basis:id}}},id.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:ed.mont(e),$=new ed(2).toRed(t).redInvm(),td=$.redNeg(),nd=new ed(3).toRed(t).redNeg().redSqrt().redMul($);return[td.redAdd(nd).fromRed(),td.redSub(nd).fromRed()]},id.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),$=e,td=this.n.clone(),nd=new ed(1),rd=new ed(0),id=new ed(0),ad=new ed(1),od,sd,cd,ld,ud,dd,fd,pd=0,md,hd;$.cmpn(0)!==0;){var gd=td.div($);md=td.sub(gd.mul($)),hd=id.sub(gd.mul(nd));var _d=ad.sub(gd.mul(rd));if(!cd&&md.cmp(t)<0)od=fd.neg(),sd=nd,cd=md.neg(),ld=hd;else if(cd&&++pd===2)break;fd=md,td=$,$=md,id=nd,nd=hd,ad=rd,rd=_d}ud=md.neg(),dd=hd;var vd=cd.sqr().add(ld.sqr());return ud.sqr().add(dd.sqr()).cmp(vd)>=0&&(ud=od,dd=sd),cd.negative&&(cd=cd.neg(),ld=ld.neg()),ud.negative&&(ud=ud.neg(),dd=dd.neg()),[{a:cd,b:ld},{a:ud,b:dd}]},id.prototype._endoSplit=function(e){var t=this.endo.basis,$=t[0],ed=t[1],td=ed.b.mul(e).divRound(this.n),nd=$.b.neg().mul(e).divRound(this.n),rd=td.mul($.a),id=nd.mul(ed.a),ad=td.mul($.b),od=nd.mul(ed.b);return{k1:e.sub(rd).sub(id),k2:ad.add(od).neg()}},id.prototype.pointFromX=function(e,t){e=new ed(e,16),e.red||(e=e.toRed(this.red));var $=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),td=$.redSqrt();if(td.redSqr().redSub($).cmp(this.zero)!==0)throw Error(`invalid point`);var nd=td.fromRed().isOdd();return(t&&!nd||!t&&nd)&&(td=td.redNeg()),this.point(e,td)},id.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,$=e.y,ed=this.a.redMul(t),td=t.redSqr().redMul(t).redIAdd(ed).redIAdd(this.b);return $.redSqr().redISub(td).cmpn(0)===0},id.prototype._endoWnafMulAdd=function(e,t,$){for(var ed=this._endoWnafT1,td=this._endoWnafT2,nd=0;
321nd<e.length;nd++){var rd=this._endoSplit(t[nd]),id=e[nd],ad=id._getBeta();rd.k1.negative&&(rd.k1.ineg(),id=id.neg(!0)),rd.k2.negative&&(rd.k2.ineg(),ad=ad.neg(!0)),ed[nd*2]=id,ed[nd*2+1]=ad,td[nd*2]=rd.k1,td[nd*2+1]=rd.k2}for(var od=this._wnafMulAdd(1,ed,td,nd*2,$),sd=0;sd<nd*2;sd++)ed[sd]=null,td[sd]=null;return od};function ad(e,t,$,td){nd.BasePoint.call(this,e,`affine`),t===null&&$===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new ed(t,16),this.y=new ed($,16),td&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}td(ad,nd.BasePoint),id.prototype.point=function(e,t,$){return new ad(this,e,t,$)},id.prototype.pointFromJSON=function(e,t){return ad.fromJSON(this,e,t)},ad.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var $=this.curve,ed=function(e){return $.point(e.x.redMul($.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(ed)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(ed)}}}return t}},ad.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},ad.fromJSON=function(e,t,$){typeof t==`string`&&(t=JSON.parse(t));var ed=e.point(t[0],t[1],$);if(!t[2])return ed;function td(t){return e.point(t[0],t[1],$)}var nd=t[2];return ed.precomputed={beta:null,doubles:nd.doubles&&{step:nd.doubles.step,points:[ed].concat(nd.doubles.points.map(td))},naf:nd.naf&&{wnd:nd.naf.wnd,points:[ed].concat(nd.naf.points.map(td))}},ed},ad.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` y: `+this.y.fromRed().toString(16,2)+`>`},ad.prototype.isInfinity=function(){return this.inf},ad.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var $=t.redSqr().redISub(this.x).redISub(e.x),ed=t.redMul(this.x.redSub($)).redISub(this.y);return this.curve.point($,ed)},ad.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,$=this.x.redSqr(),ed=e.redInvm(),td=$.redAdd($).redIAdd($).redIAdd(t).redMul(ed),nd=td.redSqr().redISub(this.x.redAdd(this.x)),rd=td.redMul(this.x.redSub(nd)).redISub(this.y);return this.curve.point(nd,rd)},ad.prototype.getX=function(){return this.x.fromRed()},ad.prototype.getY=function(){return this.y.fromRed()},ad.prototype.mul=function(e){return e=new ed(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ad.prototype.mulAdd=function(e,t,$){var ed=[this,t],td=[e,$];return this.curve.endo?this.curve._endoWnafMulAdd(ed,td):this.curve._wnafMulAdd(1,ed,td,2)},ad.prototype.jmulAdd=function(e,t,$){var ed=[this,t],td=[e,$];return this.curve.endo?this.curve._endoWnafMulAdd(ed,td,!0):this.curve._wnafMulAdd(1,ed,td,2,!0)},ad.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},ad.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var $=this.precomputed,ed=function(e){return e.neg()};t.precomputed={naf:$.naf&&{wnd:$.naf.wnd,points:$.naf.points.map(ed)},doubles:$.doubles&&{step:$.doubles.step,points:$.doubles.points.map(ed)}}}return t},ad.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)};function od(e,t,$,td){nd.BasePoint.call(this,e,`jacobian`),t===null&&$===null&&td===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ed(0)):(this.x=new ed(t,16),this.y=new ed($,16),this.z=new ed(td,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}td(od,nd.BasePoint),id.prototype.jpoint=function(e,t,$){return new od(this,e,t,$)},od.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),$=this.x.redMul(t),ed=this.y.redMul(t).redMul(e);return this.curve.point($,ed)},od.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},od.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),$=this.z.redSqr(),ed=this.x.redMul(t),td=e.x.redMul($),nd=this.y.redMul(t.redMul(e.z)),rd=e.y.redMul($.redMul(this.z)),id=ed.redSub(td),ad=nd.redSub(rd);if(id.cmpn(0)===0)return ad.cmpn(0)===0?this.dbl():this.curve.jpoint(null,null,null);var od=id.redSqr(),sd=od.redMul(id),cd=ed.redMul(od),ld=ad.redSqr().redIAdd(sd).redISub(cd).redISub(cd),ud=ad.redMul(cd.redISub(ld)).redISub(nd.redMul(sd)),dd=this.z.redMul(e.z).redMul(id);return this.curve.jpoint(ld,ud,dd)},od.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),$=this.x,ed=e.x.redMul(t),td=this.y,nd=e.y.redMul(t).redMul(this.z),rd=$.redSub(ed),id=td.redSub(nd);if(rd.cmpn(0)===0)return id.cmpn(0)===0?this.dbl():this.curve.jpoint(null,null,null);var ad=rd.redSqr(),od=ad.redMul(rd),sd=$.redMul(ad),cd=id.redSqr().redIAdd(od).redISub(sd).redISub(sd),ld=id.redMul(sd.redISub(cd)).redISub(td.redMul(od)),ud=this.z.redMul(rd);return this.curve.jpoint(cd,ld,ud)},od.prototype.dblp=function(e){if(e===0||this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var $=this;for(t=0;t<e;t++)$=$.dbl();return $}var ed=this.curve.a,td=this.curve.tinv,nd=this.x,rd=this.y,id=this.z,ad=id.redSqr().redSqr(),od=rd.redAdd(rd);for(t=0;t<e;t++){var sd=nd.redSqr(),cd=od.redSqr(),ld=cd.redSqr(),ud=sd.redAdd(sd).redIAdd(sd).redIAdd(ed.redMul(ad)),dd=nd.redMul(cd),fd=ud.redSqr().redISub(dd.redAdd(dd)),pd=dd.redISub(fd),md=ud.redMul(pd);md=md.redIAdd(md).redISub(ld);var hd=od.redMul(id);t+1<e&&(ad=ad.redMul(ld)),nd=fd,id=hd,od=md}return this.curve.jpoint(nd,od.redMul(td),id)},od.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},od.prototype._zeroDbl=function(){var e,t,$;if(this.zOne){var ed=this.x.redSqr(),td=this.y.redSqr(),nd=td.redSqr(),rd=this.x.redAdd(td).redSqr().redISub(ed).redISub(nd);rd=rd.redIAdd(rd);var id=ed.redAdd(ed).redIAdd(ed),ad=id.redSqr().redISub(rd).redISub(rd),od=nd.redIAdd(nd);od=od.redIAdd(od),od=od.redIAdd(od),e=ad,t=id.redMul(rd.redISub(ad)).redISub(od),$=this.y.redAdd(this.y)}else{var sd=this.x.redSqr(),cd=this.y.redSqr(),ld=cd.redSqr(),ud=this.x.redAdd(cd).redSqr().redISub(sd).redISub(ld);ud=ud.redIAdd(ud);var dd=sd.redAdd(sd).redIAdd(sd),fd=dd.redSqr(),pd=ld.redIAdd(ld);pd=pd.redIAdd(pd),pd=pd.redIAdd(pd),e=fd.redISub(ud).redISub(ud),t=dd.redMul(ud.redISub(e)).redISub(pd),$=this.y.redMul(this.z),$=$.redIAdd($)}return this.curve.jpoint(e,t,$)},od.prototype._threeDbl=function(){var e,t,$;if(this.zOne){var ed=this.x.redSqr(),td=this.y.redSqr(),nd=td.redSqr(),rd=this.x.redAdd(td).redSqr().redISub(ed).redISub(nd);rd=rd.redIAdd(rd);var id=ed.redAdd(ed).redIAdd(ed).redIAdd(this.curve.a),ad=id.redSqr().redISub(rd).redISub(rd);e=ad;var od=nd.redIAdd(nd);od=od.redIAdd(od),od=od.redIAdd(od),t=id.redMul(rd.redISub(ad)).redISub(od),$=this.y.redAdd(this.y)}else{var sd=this.z.redSqr(),cd=this.y.redSqr(),ld=this.x.redMul(cd),ud=this.x.redSub(sd).redMul(this.x.redAdd(sd));ud=ud.redAdd(ud).redIAdd(ud);var dd=ld.redIAdd(ld);dd=dd.redIAdd(dd);var fd=dd.redAdd(dd);e=ud.redSqr().redISub(fd),$=this.y.redAdd(this.z).redSqr().redISub(cd).redISub(sd);var pd=cd.redSqr();pd=pd.redIAdd(pd),pd=pd.redIAdd(pd),pd=pd.redIAdd(pd),t=ud.redMul(dd.redISub(e)).redISub(pd)}return this.curve.jpoint(e,t,$)},od.prototype._dbl=function(){var e=this.curve.a,t=this.x,$=this.y,ed=this.z,td=ed.redSqr().redSqr(),nd=t.redSqr(),rd=$.redSqr(),id=nd.redAdd(nd).redIAdd(nd).redIAdd(e.redMul(td)),ad=t.redAdd(t);ad=ad.redIAdd(ad);var od=ad.redMul(rd),sd=id.redSqr().redISub(od.redAdd(od)),cd=od.redISub(sd),ld=rd.redSqr();ld=ld.redIAdd(ld),ld=ld.redIAdd(ld),ld=ld.redIAdd(ld);var ud=id.redMul(cd).redISub(ld),dd=$.redAdd($).redMul(ed);return this.curve.jpoint(sd,ud,dd)},od.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),$=this.z.redSqr(),ed=t.redSqr(),td=e.redAdd(e).redIAdd(e),nd=td.redSqr(),rd=this.x.redAdd(t).redSqr().redISub(e).redISub(ed);rd=rd.redIAdd(rd),rd=rd.redAdd(rd).redIAdd(rd),rd=rd.redISub(nd);var id=rd.redSqr(),ad=ed.redIAdd(ed);ad=ad.redIAdd(ad),ad=ad.redIAdd(ad),ad=ad.redIAdd(ad);var od=td.redIAdd(rd).redSqr().redISub(nd).redISub(id).redISub(ad),sd=t.redMul(od);sd=sd.redIAdd(sd),sd=sd.redIAdd(sd);var cd=this.x.redMul(id).redISub(sd);cd=cd.redIAdd(cd),cd=cd.redIAdd(cd);var ld=this.y.redMul(od.redMul(ad.redISub(od)).redISub(rd.redMul(id)));ld=ld.redIAdd(ld),ld=ld.redIAdd(ld),ld=ld.redIAdd(ld);var ud=this.z.redAdd(rd).redSqr().redISub($).redISub(id);return this.curve.jpoint(cd,ld,ud)},od.prototype.mul=function(e,t){return e=new ed(e,t),this.curve._wnafMul(this,e)},od.prototype.eq=function(e){if(e.type===`affine`)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),$=e.z.redSqr();if(this.x.redMul($).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1;var ed=t.redMul(this.z),td=$.redMul(e.z);return this.y.redMul(td).redISub(e.y.redMul(ed)).cmpn(0)===0},od.prototype.eqXToP=function(e){var t=this.z.redSqr(),$=e.toRed(this.curve.red).redMul(t);if(this.x.cmp($)===0)return!0;for(var ed=e.clone(),td=this.curve.redN.redMul(t);;){if(ed.iadd(this.curve.n),ed.cmp(this.curve.p)>=0)return!1;if($.redIAdd(td),this.x.cmp($)===0)return!0}},od.prototype.inspect=function(){return this.isInfinity()?`<EC JPoint Infinity>`:`<EC JPoint x: `+this.x.toString(16,2)+` y: `+this.y.toString(16,2)+` z: `+this.z.toString(16,2)+`>`},od.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}
321)),require_mont=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_inherits_browser(),td=require_base$1(),nd=require_utils$1();function rd(e){td.call(this,`mont`,e),this.a=new $(e.a,16).toRed(this.red),this.b=new $(e.b,16).toRed(this.red),this.i4=new $(4).toRed(this.red).redInvm(),this.two=new $(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}ed(rd,td),t.exports=rd,rd.prototype.validate=function(e){var t=e.normalize().x,$=t.redSqr(),ed=$.redMul(t).redAdd($.redMul(this.a)).redAdd(t);return ed.redSqrt().redSqr().cmp(ed)===0};function id(e,t,ed){td.BasePoint.call(this,e,`projective`),t===null&&ed===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new $(t,16),this.z=new $(ed,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ed(id,td.BasePoint),rd.prototype.decodePoint=function(e,t){return this.point(nd.toArray(e,t),1)},rd.prototype.point=function(e,t){return new id(this,e,t)},rd.prototype.pointFromJSON=function(e){return id.fromJSON(this,e)},id.prototype.precompute=function(){},id.prototype._encode=function(){return this.getX().toArray(`be`,this.curve.p.byteLength())},id.fromJSON=function(e,t){return new id(e,t[0],t[1]||e.one)},id.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` z: `+this.z.fromRed().toString(16,2)+`>`},id.prototype.isInfinity=function(){return this.z.cmpn(0)===0},id.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),$=e.redSub(t),ed=e.redMul(t),td=$.redMul(t.redAdd(this.curve.a24.redMul($)));return this.curve.point(ed,td)},id.prototype.add=function(){throw Error(`Not supported on Montgomery curve`)},id.prototype.diffAdd=function(e,t){var $=this.x.redAdd(this.z),ed=this.x.redSub(this.z),td=e.x.redAdd(e.z),nd=e.x.redSub(e.z).redMul($),rd=td.redMul(ed),id=t.z.redMul(nd.redAdd(rd).redSqr()),ad=t.x.redMul(nd.redISub(rd).redSqr());return this.curve.point(id,ad)},id.prototype.mul=function(e){for(var t=e.clone(),$=this,ed=this.curve.point(null,null),td=this,nd=[];t.cmpn(0)!==0;t.iushrn(1))nd.push(t.andln(1));for(var rd=nd.length-1;rd>=0;rd--)nd[rd]===0?($=$.diffAdd(ed,td),ed=ed.dbl()):(ed=$.diffAdd(ed,td),$=$.dbl());return ed},id.prototype.mulAdd=function(){throw Error(`Not supported on Montgomery curve`)},id.prototype.jumlAdd=function(){throw Error(`Not supported on Montgomery curve`)},id.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},id.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},id.prototype.getX=function(){return this.normalize(),this.x.fromRed()}})),require_edwards=__commonJSMin(((e,t)=>{var $=require_utils$1(),ed=require_bn$2(),td=require_inherits_browser(),nd=require_base$1(),rd=$.assert;function id(e){this.twisted=(e.a|0)!=1,this.mOneA=this.twisted&&(e.a|0)==-1,this.extended=this.mOneA,nd.call(this,`edwards`,e),this.a=new ed(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ed(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ed(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),rd(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)==1}td(id,nd),t.exports=id,id.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},id.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},id.prototype.jpoint=function(e,t,$,ed){return this.point(e,t,$,ed)},id.prototype.pointFromX=function(e,t){e=new ed(e,16),e.red||(e=e.toRed(this.red));var $=e.redSqr(),td=this.c2.redSub(this.a.redMul($)),nd=this.one.redSub(this.c2.redMul(this.d).redMul($)),rd=td.redMul(nd.redInvm()),id=rd.redSqrt();if(id.redSqr().redSub(rd).cmp(this.zero)!==0)throw Error(`invalid point`);var ad=id.fromRed().isOdd();return(t&&!ad||!t&&ad)&&(id=id.redNeg()),this.point(e,id)},id.prototype.pointFromY=function(e,t){e=new ed(e,16),e.red||(e=e.toRed(this.red));var $=e.redSqr(),td=$.redSub(this.c2),nd=$.redMul(this.d).redMul(this.c2).redSub(this.a),rd=td.redMul(nd.redInvm());if(rd.cmp(this.zero)===0){if(t)throw Error(`invalid point`);return this.point(this.zero,e)}var id=rd.redSqrt();if(id.redSqr().redSub(rd).cmp(this.zero)!==0)throw Error(`invalid point`);return id.fromRed().isOdd()!==t&&(id=id.redNeg()),this.point(id,e)},id.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),$=e.y.redSqr(),ed=t.redMul(this.a).redAdd($),td=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul($)));return ed.cmp(td)===0};function ad(e,t,$,td,rd){nd.BasePoint.call(this,e,`projective`),t===null&&$===null&&td===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ed(t,16),this.y=new ed($,16),this.z=td?new ed(td,16):this.curve.one,this.t=rd&&new ed(rd,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}td(ad,nd.BasePoint),id.prototype.pointFromJSON=function(e){return ad.fromJSON(this,e)},id.prototype.point=function(e,t,$,ed){return new ad(this,e,t,$,ed)},ad.fromJSON=function(e,t){return new ad(e,t[0],t[1],t[2])},ad.prototype.inspect=function(){return this.isInfinity()?`<EC Point Infinity>`:`<EC Point x: `+this.x.fromRed().toString(16,2)+` y: `+this.y.fromRed().toString(16,2)+` z: `+this.z.fromRed().toString(16,2)+`>`},ad.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},ad.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),$=this.z.redSqr();$=$.redIAdd($);var ed=this.curve._mulA(e),td=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),nd=ed.redAdd(t),rd=nd.redSub($),id=ed.redSub(t),ad=td.redMul(rd),od=nd.redMul(id),sd=td.redMul(id),cd=rd.redMul(nd);return this.curve.point(ad,od,cd,sd)},ad.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),$=this.y.redSqr(),ed,td,nd,rd,id,ad;if(this.curve.twisted){rd=this.curve._mulA(t);var od=rd.redAdd($);this.zOne?(ed=e.redSub(t).redSub($).redMul(od.redSub(this.curve.two)),td=od.redMul(rd.redSub($)),nd=od.redSqr().redSub(od).redSub(od)):(id=this.z.redSqr(),ad=od.redSub(id).redISub(id),ed=e.redSub(t).redISub($).redMul(ad),td=od.redMul(rd.redSub($)),nd=od.redMul(ad))}else rd=t.redAdd($),id=this.curve._mulC(this.z).redSqr(),ad=rd.redSub(id).redSub(id),ed=this.curve._mulC(e.redISub(rd)).redMul(ad),td=this.curve._mulC(rd).redMul(t.redISub($)),nd=rd.redMul(ad);return this.curve.point(ed,td,nd)},ad.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},ad.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),$=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),ed=this.t.redMul(this.curve.dd).redMul(e.t),td=this.z.redMul(e.z.redAdd(e.z)),nd=$.redSub(t),rd=td.redSub(ed),id=td.redAdd(ed),ad=$.redAdd(t),od=nd.redMul(rd),sd=id.redMul(ad),cd=nd.redMul(ad),ld=rd.redMul(id);return this.curve.point(od,sd,ld,cd)},ad.prototype._projAdd=function(e){var t=this.z.redMul(e.z),$=t.redSqr(),ed=this.x.redMul(e.x),td=this.y.redMul(e.y),nd=this.curve.d.redMul(ed).redMul(td),rd=$.redSub(nd),id=$.redAdd(nd),ad=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(ed).redISub(td),od=t.redMul(rd).redMul(ad),sd,cd;return this.curve.twisted?(sd=t.redMul(id).redMul(td.redSub(this.curve._mulA(ed))),cd=rd.redMul(id)):(sd=t.redMul(id).redMul(td.redSub(ed)),cd=this.curve._mulC(rd).redMul(id)),this.curve.point(od,sd,cd)},ad.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},ad.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},ad.prototype.mulAdd=function(e,t,$){return this.curve._wnafMulAdd(1,[this,t],[e,$],2,!1)},ad.prototype.jmulAdd=function(e,t,$){return this.curve._wnafMulAdd(1,[this,t],[e,$],2,!0)},ad.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&=this.t.redMul(e),this.z=this.curve.one,this.zOne=!0,this},ad.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},ad.prototype.getX=function(){return this.normalize(),this.x.fromRed()},ad.prototype.getY=function(){return this.normalize(),this.y.fromRed()},ad.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},ad.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var $=e.clone(),ed=this.curve.redN.redMul(this.z);;){if($.iadd(this.curve.n),$.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(ed),this.x.cmp(t)===0)return!0}},ad.prototype.toP=ad.prototype.normalize,ad.prototype.mixedAdd=ad.prototype.add})),require_curve=__commonJSMin((e=>{var t=e;
321t.base=require_base$1(),t.short=require_short(),t.mont=require_mont(),t.edwards=require_edwards()})),require_utils=__commonJSMin((e=>{var t=require_minimalistic_assert();e.inherits=require_inherits_browser();function $(e,t){return(e.charCodeAt(t)&64512)!=55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)==56320}function ed(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var ed=[];if(typeof e==`string`){if(!t)for(var td=0,nd=0;nd<e.length;nd++){var rd=e.charCodeAt(nd);rd<128?ed[td++]=rd:rd<2048?(ed[td++]=rd>>6|192,ed[td++]=rd&63|128):$(e,nd)?(rd=65536+((rd&1023)<<10)+(e.charCodeAt(++nd)&1023),ed[td++]=rd>>18|240,ed[td++]=rd>>12&63|128,ed[td++]=rd>>6&63|128,ed[td++]=rd&63|128):(ed[td++]=rd>>12|224,ed[td++]=rd>>6&63|128,ed[td++]=rd&63|128)}else if(t===`hex`)for(e=e.replace(/[^a-z0-9]+/gi,``),e.length%2!=0&&(e=`0`+e),nd=0;nd<e.length;nd+=2)ed.push(parseInt(e[nd]+e[nd+1],16))}else for(nd=0;nd<e.length;nd++)ed[nd]=e[nd]|0;return ed}e.toArray=ed;function td(e){for(var t=``,$=0;$<e.length;$++)t+=id(e[$].toString(16));return t}e.toHex=td;function nd(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24)>>>0}e.htonl=nd;function rd(e,t){for(var $=``,ed=0;ed<e.length;ed++){var td=e[ed];t===`little`&&(td=nd(td)),$+=ad(td.toString(16))}return $}e.toHex32=rd;function id(e){return e.length===1?`0`+e:e}e.zero2=id;function ad(e){return e.length===7?`0`+e:e.length===6?`00`+e:e.length===5?`000`+e:e.length===4?`0000`+e:e.length===3?`00000`+e:e.length===2?`000000`+e:e.length===1?`0000000`+e:e}e.zero8=ad;function od(e,$,ed,td){var nd=ed-$;t(nd%4==0);for(var rd=Array(nd/4),id=0,ad=$;id<rd.length;id++,ad+=4)rd[id]=(td===`big`?e[ad]<<24|e[ad+1]<<16|e[ad+2]<<8|e[ad+3]:e[ad+3]<<24|e[ad+2]<<16|e[ad+1]<<8|e[ad])>>>0;return rd}e.join32=od;function sd(e,t){for(var $=Array(e.length*4),ed=0,td=0;ed<e.length;ed++,td+=4){var nd=e[ed];t===`big`?($[td]=nd>>>24,$[td+1]=nd>>>16&255,$[td+2]=nd>>>8&255,$[td+3]=nd&255):($[td+3]=nd>>>24,$[td+2]=nd>>>16&255,$[td+1]=nd>>>8&255,$[td]=nd&255)}return $}e.split32=sd;function cd(e,t){return e>>>t|e<<32-t}e.rotr32=cd;function ld(e,t){return e<<t|e>>>32-t}e.rotl32=ld;function ud(e,t){return e+t>>>0}e.sum32=ud;function dd(e,t,$){return e+t+$>>>0}e.sum32_3=dd;function fd(e,t,$,ed){return e+t+$+ed>>>0}e.sum32_4=fd;function pd(e,t,$,ed,td){return e+t+$+ed+td>>>0}e.sum32_5=pd;function md(e,t,$,ed){var td=e[t],nd=ed+e[t+1]>>>0;e[t]=+(nd<ed)+$+td>>>0,e[t+1]=nd}e.sum64=md;function hd(e,t,$,ed){return+(t+ed>>>0<t)+e+$>>>0}e.sum64_hi=hd;function gd(e,t,$,ed){return t+ed>>>0}e.sum64_lo=gd;function _d(e,t,$,ed,td,nd,rd,id){var ad=0,od=t;return od=od+ed>>>0,ad+=+(od<t),od=od+nd>>>0,ad+=+(od<nd),od=od+id>>>0,ad+=+(od<id),e+$+td+rd+ad>>>0}e.sum64_4_hi=_d;function vd(e,t,$,ed,td,nd,rd,id){return t+ed+nd+id>>>0}e.sum64_4_lo=vd;function yd(e,t,$,ed,td,nd,rd,id,ad,od){var sd=0,cd=t;return cd=cd+ed>>>0,sd+=+(cd<t),cd=cd+nd>>>0,sd+=+(cd<nd),cd=cd+id>>>0,sd+=+(cd<id),cd=cd+od>>>0,sd+=+(cd<od),e+$+td+rd+ad+sd>>>0}e.sum64_5_hi=yd;function bd(e,t,$,ed,td,nd,rd,id,ad,od){return t+ed+nd+id+od>>>0}e.sum64_5_lo=bd;function xd(e,t,$){return(t<<32-$|e>>>$)>>>0}e.rotr64_hi=xd;function Sd(e,t,$){return(e<<32-$|t>>>$)>>>0}e.rotr64_lo=Sd;function Cd(e,t,$){return e>>>$}e.shr64_hi=Cd;function wd(e,t,$){return(e<<32-$|t>>>$)>>>0}e.shr64_lo=wd})),require_common$1=__commonJSMin((e=>{var t=require_utils(),$=require_minimalistic_assert();function ed(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=`big`,this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=ed,ed.prototype.update=function(e,$){if(e=t.toArray(e,$),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var ed=e.length%this._delta8;this.pending=e.slice(e.length-ed,e.length),this.pending.length===0&&(this.pending=null),e=t.join32(e,0,e.length-ed,this.endian);for(var td=0;td<e.length;td+=this._delta32)this._update(e,td,td+this._delta32)}return this},ed.prototype.digest=function(e){return this.update(this._pad()),$(this.pending===null),this._digest(e)},ed.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,$=t-(e+this.padLength)%t,ed=Array($+this.padLength);ed[0]=128;for(var td=1;td<$;td++)ed[td]=0;if(e<<=3,this.endian===`big`){for(var nd=8;nd<this.padLength;nd++)ed[td++]=0;ed[td++]=0,ed[td++]=0,ed[td++]=0,ed[td++]=0,ed[td++]=e>>>24&255,ed[td++]=e>>>16&255,ed[td++]=e>>>8&255,ed[td++]=e&255}else for(ed[td++]=e&255,ed[td++]=e>>>8&255,ed[td++]=e>>>16&255,ed[td++]=e>>>24&255,ed[td++]=0,ed[td++]=0,ed[td++]=0,ed[td++]=0,nd=8;nd<this.padLength;nd++)ed[td++]=0;return ed}})),require_common=__commonJSMin((e=>{var t=require_utils().rotr32;function $(e,t,$,rd){if(e===0)return ed(t,$,rd);if(e===1||e===3)return nd(t,$,rd);if(e===2)return td(t,$,rd)}e.ft_1=$;function ed(e,t,$){return e&t^~e&$}e.ch32=ed;function td(e,t,$){return e&t^e&$^t&$}e.maj32=td;
321function nd(e,t,$){return e^t^$}e.p32=nd;function rd(e){return t(e,2)^t(e,13)^t(e,22)}e.s0_256=rd;function id(e){return t(e,6)^t(e,11)^t(e,25)}e.s1_256=id;function ad(e){return t(e,7)^t(e,18)^e>>>3}e.g0_256=ad;function od(e){return t(e,17)^t(e,19)^e>>>10}e.g1_256=od})),require__1=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require_common$1(),td=require_common(),nd=$.rotl32,rd=$.sum32,id=$.sum32_5,ad=td.ft_1,od=ed.BlockHash,sd=[1518500249,1859775393,2400959708,3395469782];function cd(){if(!(this instanceof cd))return new cd;od.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}$.inherits(cd,od),t.exports=cd,cd.blockSize=512,cd.outSize=160,cd.hmacStrength=80,cd.padLength=64,cd.prototype._update=function(e,t){for(var $=this.W,ed=0;ed<16;ed++)$[ed]=e[t+ed];for(;ed<$.length;ed++)$[ed]=nd($[ed-3]^$[ed-8]^$[ed-14]^$[ed-16],1);var td=this.h[0],od=this.h[1],cd=this.h[2],ld=this.h[3],ud=this.h[4];for(ed=0;ed<$.length;ed++){var dd=~~(ed/20),fd=id(nd(td,5),ad(dd,od,cd,ld),ud,$[ed],sd[dd]);ud=ld,ld=cd,cd=nd(od,30),od=td,td=fd}this.h[0]=rd(this.h[0],td),this.h[1]=rd(this.h[1],od),this.h[2]=rd(this.h[2],cd),this.h[3]=rd(this.h[3],ld),this.h[4]=rd(this.h[4],ud)},cd.prototype._digest=function(e){return e===`hex`?$.toHex32(this.h,`big`):$.split32(this.h,`big`)}})),require__256=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require_common$1(),td=require_common(),nd=require_minimalistic_assert(),rd=$.sum32,id=$.sum32_4,ad=$.sum32_5,od=td.ch32,sd=td.maj32,cd=td.s0_256,ld=td.s1_256,ud=td.g0_256,dd=td.g1_256,fd=ed.BlockHash,pd=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function md(){if(!(this instanceof md))return new md;fd.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=pd,this.W=Array(64)}$.inherits(md,fd),t.exports=md,md.blockSize=512,md.outSize=256,md.hmacStrength=192,md.padLength=64,md.prototype._update=function(e,t){for(var $=this.W,ed=0;ed<16;ed++)$[ed]=e[t+ed];for(;ed<$.length;ed++)$[ed]=id(dd($[ed-2]),$[ed-7],ud($[ed-15]),$[ed-16]);var td=this.h[0],fd=this.h[1],pd=this.h[2],md=this.h[3],hd=this.h[4],gd=this.h[5],_d=this.h[6],vd=this.h[7];for(nd(this.k.length===$.length),ed=0;ed<$.length;ed++){var yd=ad(vd,ld(hd),od(hd,gd,_d),this.k[ed],$[ed]),bd=rd(cd(td),sd(td,fd,pd));vd=_d,_d=gd,gd=hd,hd=rd(md,yd),md=pd,pd=fd,fd=td,td=rd(yd,bd)}this.h[0]=rd(this.h[0],td),this.h[1]=rd(this.h[1],fd),this.h[2]=rd(this.h[2],pd),this.h[3]=rd(this.h[3],md),this.h[4]=rd(this.h[4],hd),this.h[5]=rd(this.h[5],gd),this.h[6]=rd(this.h[6],_d),this.h[7]=rd(this.h[7],vd)},md.prototype._digest=function(e){return e===`hex`?$.toHex32(this.h,`big`):$.split32(this.h,`big`)}})),require__224=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require__256();function td(){if(!(this instanceof td))return new td;ed.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}$.inherits(td,ed),t.exports=td,td.blockSize=512,td.outSize=224,td.hmacStrength=192,td.padLength=64,td.prototype._digest=function(e){return e===`hex`?$.toHex32(this.h.slice(0,7),`big`):$.split32(this.h.slice(0,7),`big`)}})),require__512=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require_common$1(),td=require_minimalistic_assert(),nd=$.rotr64_hi,rd=$.rotr64_lo,id=$.shr64_hi,ad=$.shr64_lo,od=$.sum64,sd=$.sum64_hi,cd=$.sum64_lo,ld=$.sum64_4_hi,ud=$.sum64_4_lo,dd=$.sum64_5_hi,fd=$.sum64_5_lo,pd=ed.BlockHash,md=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
3211322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function hd(){if(!(this instanceof hd))return new hd;pd.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=md,this.W=Array(160)}$.inherits(hd,pd),t.exports=hd,hd.blockSize=1024,hd.outSize=512,hd.hmacStrength=192,hd.padLength=128,hd.prototype._prepareBlock=function(e,t){for(var $=this.W,ed=0;ed<32;ed++)$[ed]=e[t+ed];for(;ed<$.length;ed+=2){var td=Ed($[ed-4],$[ed-3]),nd=Dd($[ed-4],$[ed-3]),rd=$[ed-14],id=$[ed-13],ad=wd($[ed-30],$[ed-29]),od=Td($[ed-30],$[ed-29]),sd=$[ed-32],cd=$[ed-31];$[ed]=ld(td,nd,rd,id,ad,od,sd,cd),$[ed+1]=ud(td,nd,rd,id,ad,od,sd,cd)}},hd.prototype._update=function(e,t){this._prepareBlock(e,t);var $=this.W,ed=this.h[0],nd=this.h[1],rd=this.h[2],id=this.h[3],ad=this.h[4],ld=this.h[5],ud=this.h[6],pd=this.h[7],md=this.h[8],hd=this.h[9],wd=this.h[10],Td=this.h[11],Ed=this.h[12],Dd=this.h[13],Od=this.h[14],kd=this.h[15];td(this.k.length===$.length);for(var Ad=0;Ad<$.length;Ad+=2){var jd=Od,Md=kd,Nd=Sd(md,hd),Pd=Cd(md,hd),Fd=gd(md,hd,wd,Td,Ed,Dd),Id=_d(md,hd,wd,Td,Ed,Dd),Ld=this.k[Ad],Rd=this.k[Ad+1],zd=$[Ad],Bd=$[Ad+1],Vd=dd(jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd),Hd=fd(jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd);jd=bd(ed,nd),Md=xd(ed,nd),Nd=vd(ed,nd,rd,id,ad,ld),Pd=yd(ed,nd,rd,id,ad,ld);var Ud=sd(jd,Md,Nd,Pd),Wd=cd(jd,Md,Nd,Pd);Od=Ed,kd=Dd,Ed=wd,Dd=Td,wd=md,Td=hd,md=sd(ud,pd,Vd,Hd),hd=cd(pd,pd,Vd,Hd),ud=ad,pd=ld,ad=rd,ld=id,rd=ed,id=nd,ed=sd(Vd,Hd,Ud,Wd),nd=cd(Vd,Hd,Ud,Wd)}od(this.h,0,ed,nd),od(this.h,2,rd,id),od(this.h,4,ad,ld),od(this.h,6,ud,pd),od(this.h,8,md,hd),od(this.h,10,wd,Td),od(this.h,12,Ed,Dd),od(this.h,14,Od,kd)},hd.prototype._digest=function(e){return e===`hex`?$.toHex32(this.h,`big`):$.split32(this.h,`big`)};function gd(e,t,$,ed,td){var nd=e&$^~e&td;return nd<0&&(nd+=4294967296),nd}function _d(e,t,$,ed,td,nd){var rd=t&ed^~t&nd;return rd<0&&(rd+=4294967296),rd}function vd(e,t,$,ed,td){var nd=e&$^e&td^$&td;return nd<0&&(nd+=4294967296),nd}function yd(e,t,$,ed,td,nd){var rd=t&ed^t&nd^ed&nd;return rd<0&&(rd+=4294967296),rd}function bd(e,t){var $=nd(e,t,28),ed=nd(t,e,2),td=nd(t,e,7),rd=$^ed^td;return rd<0&&(rd+=4294967296),rd}function xd(e,t){var $=rd(e,t,28),ed=rd(t,e,2),td=rd(t,e,7),nd=$^ed^td;return nd<0&&(nd+=4294967296),nd}function Sd(e,t){var $=nd(e,t,14),ed=nd(e,t,18),td=nd(t,e,9),rd=$^ed^td;return rd<0&&(rd+=4294967296),rd}function Cd(e,t){var $=rd(e,t,14),ed=rd(e,t,18),td=rd(t,e,9),nd=$^ed^td;return nd<0&&(nd+=4294967296),nd}function wd(e,t){var $=nd(e,t,1),ed=nd(e,t,8),td=id(e,t,7),rd=$^ed^td;return rd<0&&(rd+=4294967296),rd}function Td(e,t){var $=rd(e,t,1),ed=rd(e,t,8),td=ad(e,t,7),nd=$^ed^td;return nd<0&&(nd+=4294967296),nd}function Ed(e,t){var $=nd(e,t,19),ed=nd(t,e,29),td=id(e,t,6),rd=$^ed^td;return rd<0&&(rd+=4294967296),rd}function Dd(e,t){var $=rd(e,t,19),ed=rd(t,e,29),td=ad(e,t,6),nd=$^ed^td;return nd<0&&(nd+=4294967296),nd}})),require__384=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require__512();function td(){if(!(this instanceof td))return new td;ed.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}$.inherits(td,ed),t.exports=td,td.blockSize=1024,td.outSize=384,td.hmacStrength=192,td.padLength=128,td.prototype._digest=function(e){return e===`hex`?$.toHex32(this.h.slice(0,12),`big`):$.split32(this.h.slice(0,12),`big`)}})),require_sha=__commonJSMin((e=>{e.sha1=require__1(),e.sha224=require__224(),e.sha256=require__256(),e.sha384=require__384(),e.sha512=require__512()})),require_ripemd=__commonJSMin((e=>{var t=require_utils(),$=require_common$1(),ed=t.rotl32,td=t.sum32,nd=t.sum32_3,rd=t.sum32_4,id=$.BlockH
321ash;function ad(){if(!(this instanceof ad))return new ad;id.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=`little`}t.inherits(ad,id),e.ripemd160=ad,ad.blockSize=512,ad.outSize=160,ad.hmacStrength=192,ad.padLength=64,ad.prototype._update=function(e,t){for(var $=this.h[0],id=this.h[1],ad=this.h[2],pd=this.h[3],md=this.h[4],hd=$,gd=id,_d=ad,vd=pd,yd=md,bd=0;bd<80;bd++){var xd=td(ed(rd($,od(bd,id,ad,pd),e[ld[bd]+t],sd(bd)),dd[bd]),md);$=md,md=pd,pd=ed(ad,10),ad=id,id=xd,xd=td(ed(rd(hd,od(79-bd,gd,_d,vd),e[ud[bd]+t],cd(bd)),fd[bd]),yd),hd=yd,yd=vd,vd=ed(_d,10),_d=gd,gd=xd}xd=nd(this.h[1],ad,vd),this.h[1]=nd(this.h[2],pd,yd),this.h[2]=nd(this.h[3],md,hd),this.h[3]=nd(this.h[4],$,gd),this.h[4]=nd(this.h[0],id,_d),this.h[0]=xd},ad.prototype._digest=function(e){return e===`hex`?t.toHex32(this.h,`little`):t.split32(this.h,`little`)};function od(e,t,$,ed){return e<=15?t^$^ed:e<=31?t&$|~t&ed:e<=47?(t|~$)^ed:e<=63?t&ed|$&~ed:t^($|~ed)}function sd(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function cd(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var ld=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ud=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],dd=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],fd=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]})),require_hmac=__commonJSMin(((e,t)=>{var $=require_utils(),ed=require_minimalistic_assert();function td(e,t,ed){if(!(this instanceof td))return new td(e,t,ed);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init($.toArray(t,ed))}t.exports=td,td.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),ed(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},td.prototype.update=function(e,t){return this.inner.update(e,t),this},td.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}})),require_hash=__commonJSMin((e=>{var t=e;t.utils=require_utils(),t.common=require_common$1(),t.sha=require_sha(),t.ripemd=require_ripemd(),t.hmac=require_hmac(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})),require_secp256k1=__commonJSMin(((e,t)=>{t.exports={doubles:{step:4,points:[[`e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a`,`f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821`],[`8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508`,`11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf`],[`175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739`,`d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695`],[`363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640`,`4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9`],[`8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c`,`4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36`],[`723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda`,`96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f`],[`eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa`,`5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999`],[`100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0`,`cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09`],[`e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d`,`9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d`],[`feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d`,`e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088`],[`da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1`,`9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d`],[`53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0`,`5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8`],[`8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047`,`10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a`],[`385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862`,`283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453`],[`6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7`,`7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160`],[`3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd`,`56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0`],[`85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83`,`7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6`],[`948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a`,`53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589`],[`6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8`,`bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17`],[`e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d`,`4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda`],[`e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725`,`7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd`],[`213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754`,`4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2`],[`4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c`,`17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6`],[`fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6`,`6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f`],[`76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39`,`c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01`],[`c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb89
3211`,`893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3`],[`d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b`,`febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f`],[`b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03`,`2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7`],[`e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d`,`eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78`],[`a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070`,`7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1`],[`90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4`,`e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150`],[`8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da`,`662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82`],[`e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11`,`1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc`],[`8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e`,`efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b`],[`e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41`,`2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51`],[`b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef`,`67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45`],[`d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8`,`db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120`],[`324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d`,`648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84`],[`4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96`,`35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d`],[`9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd`,`ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d`],[`6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5`,`9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8`],[`a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266`,`40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8`],[`7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71`,`34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac`],[`928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac`,`c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f`],[`85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751`,`1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962`],[`ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e`,`493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907`],[`827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241`,`c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec`],[`eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3`,`be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d`],[`e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f`,`4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414`],[`1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19`,`aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd`],[`146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be`,`b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0`],[`fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9`,`6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811`],[`da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2`,`8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1`],[`a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13`,`7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c`],[`174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c`,`ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73`],[`959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba`,`2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd`],[`d2a63a50ae401e56d645a1153b109a8fcca0a43d
321561fba2dbb51340c9d82b151`,`e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405`],[`64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073`,`d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589`],[`8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458`,`38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e`],[`13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b`,`69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27`],[`bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366`,`d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1`],[`8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa`,`40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482`],[`8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0`,`620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945`],[`dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787`,`7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573`],[`f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e`,`ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82`]]},naf:{wnd:7,points:[[`f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9`,`388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672`],[`2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4`,`d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6`],[`5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc`,`6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da`],[`acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe`,`cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37`],[`774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb`,`d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b`],[`f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8`,`ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81`],[`d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e`,`581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58`],[`defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34`,`4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77`],[`2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c`,`85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a`],[`352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5`,`321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c`],[`2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f`,`2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67`],[`9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714`,`73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402`],[`daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729`,`a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55`],[`c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db`,`2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482`],[`6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4`,`e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82`],[`1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5`,`b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396`],[`605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479`,`2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49`],[`62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d`,`80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf`],[`80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f`,`1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a`],[`7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb`,`d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7`],[`d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9`,`eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933`],[`49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963`,`758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a`],[`77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74`,`958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6`],[`f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530`,`e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37`],[`463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b`,`5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e`],[`f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247`,`cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6`],[`caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1`,`cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476`],[`2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120`,`4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40`],[`7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435`,`91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61`],[`754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18`,`673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683`],[`e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8`,`59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5`],[`186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb`,`3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b`],[`df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f`,`55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417`],[`5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143`,`efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868`],[`290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba`,`e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a`],[`af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45`,`f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6`],[`766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a`,`744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996`],[`59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e`,`c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e`],[`f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8`,`e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d`],[`7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c`,`30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2`],[`948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519`,`e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e`],[`7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab`,`100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437`],[`3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca`,`ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311`],[`d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf`,`8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4`],[`1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610`,`68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575`],[`733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4`,`f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d`],[`15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c`,`d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d`],[`a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940`,`edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629`],[`e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980`,`a855babad5cd60c88b430a69f53a1a7a382891549
32164799be43d06d77d31da06`],[`311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3`,`66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374`],[`34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf`,`9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee`],[`f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63`,`4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1`],[`d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448`,`fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b`],[`32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf`,`5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661`],[`7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5`,`8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6`],[`ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6`,`8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e`],[`16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5`,`5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d`],[`eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99`,`f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc`],[`78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51`,`f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4`],[`494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5`,`42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c`],[`a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5`,`204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b`],[`c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997`,`4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913`],[`841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881`,`73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154`],[`5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5`,`39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865`],[`36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66`,`d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc`],[`336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726`,`ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224`],[`8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede`,`6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e`],[`1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94`,`60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6`],[`85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31`,`3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511`],[`29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51`,`b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b`],[`a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252`,`ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2`],[`4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5`,`cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c`],[`d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b`,`6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3`],[`ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4`,`322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d`],[`af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f`,`6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700`],[`e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889`,`2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4`],[`591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246`,`b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196`],[`11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984`,`998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4`],[`3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a`,`b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257`],[`cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030`,`bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13`],[`c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197`,`6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096`],[`c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593`,`c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38`],[`a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef`,`21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f`],[`347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38`,`60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448`],[`da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a`,`49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a`],[`c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111`,`5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4`],[`4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502`,`7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437`],[`3775ab7089bc6af823aba2e1
321af70b236d251cadb0c86743287522a1b3b0dedea`,`be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7`],[`cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26`,`8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d`],[`b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986`,`39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a`],[`d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e`,`62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54`],[`48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4`,`25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77`],[`dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda`,`ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517`],[`6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859`,`cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10`],[`e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f`,`f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125`],[`eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c`,`6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e`],[`13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942`,`fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1`],[`ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a`,`1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2`],[`b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80`,`5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423`],[`ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d`,`438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8`],[`8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1`,`cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758`],[`52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63`,`c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375`],[`e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352`,`6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d`],[`7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193`,`ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec`],[`5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00`,`9731141d81f
321c8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0`],[`32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58`,`ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c`],[`e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7`,`d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4`],[`8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8`,`c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f`],[`4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e`,`67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649`],[`3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d`,`cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826`],[`674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b`,`299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5`],[`d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f`,`f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87`],[`30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6`,`462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b`],[`be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297`,`62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc`],[`93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a`,`7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c`],[`b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c`,`ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f`],[`d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52`,`4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a`],[`d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb`,`bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46`],[`463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065`,`bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f`],[`7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917`,`603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03`],[`74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9`,`cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08`],[`30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3`,`553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8`],[`9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57`,`712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373`],[`176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66`,`ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3`],[`75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8`,`9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8`],[`809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721`,`9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1`],[`1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180`,`4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9`]]}}})),require_curves=__commonJSMin((e=>{var t=e,$=require_hash(),ed=require_curve(),td=require_utils$1().assert;function nd(e){e.type===`short`?this.curve=new ed.short(e):e.type===`edwards`?this.curve=new ed.edwards(e):this.curve=new ed.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,td(this.g.validate(),`Invalid curve`),td(this.g.mul(this.n).isInfinity(),`Invalid curve, G*N != O`)}t.PresetCurve=nd;function rd(e,$){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var ed=new nd($);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:ed}),ed}})}rd(`p192`,{type:`short`,prime:`p192`,p:`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`,a:`ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc`,b:`64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1`,n:`ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831`,hash:$.sha256,gRed:!1,g:[`188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012`,`07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811`]}),rd(`p224`,{type:`short`,prime:`p224`,p:`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`,a:`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe`,b:`b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4`,n:`ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d`,hash:$.sha256,gRed:!1,g:[`b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21`,`bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34`]}),rd(`p256`,{type:`short`,prime:null,p:`ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff`,a:`ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc`,b:`5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b`,n:`ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551`,hash:$.sha256,gRed:!1,g:[`6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296`,`4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5`]}),rd(`p384`,{type:`short`,prime:null,p:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff`,a:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc`,b:`b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef`,n:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973`,hash:$.sha384,gRed:!1,g:[`aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7`,`3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f`]}),rd(`p521`,{type:`short`,prime:null,p:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff`,a:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc`,b:`00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00`,n:`000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409`,hash:$.sha512,gRed:!1,g:[`000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66`,`00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650`]}),rd(`curve25519`,{type:`mont`,prime:`p25519`,p:`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`,a:`76d06`,b:`1`,n:`1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed`,hash:$.sha256,gRed:!1,g:[`9`]}),rd(`ed25519`,{type:`edwards`,prime:`p25519`,p:`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`,a:`-1`,c:`1`,d:`52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3`,n:`1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed`,hash:$.sha256,gRed:!1,g:[`216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a`,`6666666666666666666666666666666666666666666666666666666666666658`]});var id;try{id=require_secp256k1()}catch{id=void 0}rd(`secp256k1`,{type:`short`,prime:`k256`,p:`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`,a:`0`,b:`7`,n:`ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141`,h:`1`,hash:$.sha256,beta:`7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`,lambda:`5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72`,basis:[{a:`3086d221a7d46bcde86c90e49284eb15`,b:`-e4437ed6010e88286f547fa90abfe4c3`},{a:`114ca50f7a8e2f3f657c1108d9d44cfd8`,b:`3086d221a7d46bcde86c90e49284eb15`}],gRed:!1,g:[`79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798`,`483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8`,id]})})),require_hmac_drbg=__commonJSMin(((e,t)=>{var $=require_hash(),ed=require_utils$2(),td=require_minimalistic_assert();
321function nd(e){if(!(this instanceof nd))return new nd(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=ed.toArray(e.entropy,e.entropyEnc||`hex`),$=ed.toArray(e.nonce,e.nonceEnc||`hex`),rd=ed.toArray(e.pers,e.persEnc||`hex`);td(t.length>=this.minEntropy/8,`Not enough entropy. Minimum is: `+this.minEntropy+` bits`),this._init(t,$,rd)}t.exports=nd,nd.prototype._init=function(e,t,$){var ed=e.concat(t).concat($);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var td=0;td<this.V.length;td++)this.K[td]=0,this.V[td]=1;this._update(ed),this._reseed=1,this.reseedInterval=281474976710656},nd.prototype._hmac=function(){return new $.hmac(this.hash,this.K)},nd.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},nd.prototype.reseed=function(e,t,$,nd){typeof t!=`string`&&(nd=$,$=t,t=null),e=ed.toArray(e,t),$=ed.toArray($,nd),td(e.length>=this.minEntropy/8,`Not enough entropy. Minimum is: `+this.minEntropy+` bits`),this._update(e.concat($||[])),this._reseed=1},nd.prototype.generate=function(e,t,$,td){if(this._reseed>this.reseedInterval)throw Error(`Reseed is required`);typeof t!=`string`&&(td=$,$=t,t=null),$&&($=ed.toArray($,td||`hex`),this._update($));for(var nd=[];nd.length<e;)this.V=this._hmac().update(this.V).digest(),nd=nd.concat(this.V);var rd=nd.slice(0,e);return this._update($),this._reseed++,ed.encode(rd,t)}})),require_key$1=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_utils$1().assert;function td(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=td,td.fromPublic=function(e,t,$){return t instanceof td?t:new td(e,{pub:t,pubEnc:$})},td.fromPrivate=function(e,t,$){return t instanceof td?t:new td(e,{priv:t,privEnc:$})},td.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:`Invalid public key`}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:`Public key * N != O`}:{result:!1,reason:`Public key is not a point`}},td.prototype.getPublic=function(e,t){return typeof e==`string`&&(t=e,e=null),this.pub||=this.ec.g.mul(this.priv),t?this.pub.encode(t,e):this.pub},td.prototype.getPrivate=function(e){return e===`hex`?this.priv.toString(16,2):this.priv},td.prototype._importPrivate=function(e,t){this.priv=new $(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},td.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type===`mont`?ed(e.x,`Need x coordinate`):(this.ec.curve.type===`short`||this.ec.curve.type===`edwards`)&&ed(e.x&&e.y,`Need both x and y coordinate`),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},td.prototype.derive=function(e){return e.validate()||ed(e.validate(),`public point not validated`),e.mul(this.priv).getX()},td.prototype.sign=function(e,t,$){return this.ec.sign(e,this,t,$)},td.prototype.verify=function(e,t,$){return this.ec.verify(e,t,this,void 0,$)},td.prototype.inspect=function(){return`<Key priv: `+(this.priv&&this.priv.toString(16,2))+` pub: `+(this.pub&&this.pub.inspect())+` >`}})),require_signature$1=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_utils$1(),td=ed.assert;function nd(e,t){if(e instanceof nd)return e;this._importDER(e,t)||(td(e.r&&e.s,`Signature without r or s`),this.r=new $(e.r,16),this.s=new $(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}t.exports=nd;function rd(){this.place=0}function id(e,t){var $=e[t.place++];if(!($&128))return $;var ed=$&15;if(ed===0||ed>4||e[t.place]===0)return!1;for(var td=0,nd=0,rd=t.place;nd<ed;nd++,rd++)td<<=8,td|=e[rd],td>>>=0;return td<=127?!1:(t.place=rd,td)}function ad(e){for(var t=0,$=e.length-1;!e[t]&&!(e[t+1]&128)&&t<$;)t++;return t===0?e:e.slice(t)}nd.prototype._importDER=function(e,t){e=ed.toArray(e,t);var td=new rd;if(e[td.place++]!==48)return!1;var nd=id(e,td);if(nd===!1||nd+td.place!==e.length||e[td.place++]!==2)return!1;var ad=id(e,td);if(ad===!1||e[td.place]&128)return!1;var od=e.slice(td.place,ad+td.place);if(td.place+=ad,e[td.place++]!==2)return!1;var sd=id(e,td);if(sd===!1||e.length!==sd+td.place||e[td.place]&128)return!1;var cd=e.slice(td.place,sd+td.place);if(od[0]===0)if(od[1]&128)od=od.slice(1);else return!1;if(cd[0]===0)if(cd[1]&128)cd=cd.slice(1);else return!1;return this.r=new $(od),this.s=new $(cd),this.recoveryParam=null,!0};function od(e,t){if(t<128){e.push(t);return}var $=1+(Math.log(t)/Math.LN2>>>3);for(e.push($|128);--$;)e.push(t>>>($<<3)&255);e.push(t)}nd.prototype.toDER=function(e){var t=this.r.toArray(),$=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),$[0]&128&&($=[0].concat($)),t=ad(t),$=ad($);!$[0]&&!($[1]&128);)$=$.slice(1);var td=[2];od(td,t.length),td=td.concat(t),td.push(2),od(td,$.length);var nd=td.concat($),rd=[48];return od(rd,nd.length),rd=rd.concat(nd),ed.encode(rd,e)}})),require_ec=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_hmac_drbg(),td=require_utils$1(),nd=require_curves(),rd=require_brorand(),id=td.assert,ad=require_key$1(),od=require_signature$1();function sd(e){if(!(this instanceof sd))return new sd(e);typeof e==`string`&&(id(Object.prototype.hasOwnProperty.call(nd,e),`Unknown curve `+e),e=nd[e]),e instanceof nd.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=sd,sd.prototype.keyPair=function(e){return new ad(this,e)},sd.prototype.keyFromPrivate=function(e,t){return ad.fromPrivate(this,e,t)},sd.prototype.keyFromPublic=function(e,t){return ad.fromPublic(this,e,t)},sd.prototype.genKeyPair=function(e){e||={};for(var t=new ed({hash:this.hash,pers:e.pers,persEnc:e.persEnc||`utf8`,entropy:e.entro
321py||rd(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||`utf8`,nonce:this.n.toArray()}),td=this.n.byteLength(),nd=this.n.sub(new $(2));;){var id=new $(t.generate(td));if(!(id.cmp(nd)>0))return id.iaddn(1),this.keyFromPrivate(id)}},sd.prototype._truncateToN=function(e,t,ed){var td;if($.isBN(e)||typeof e==`number`)e=new $(e,16),td=e.byteLength();else if(typeof e==`object`)td=e.length,e=new $(e,16);else{var nd=e.toString();td=nd.length+1>>>1,e=new $(nd,16)}typeof ed!=`number`&&(ed=td*8);var rd=ed-this.n.bitLength();return rd>0&&(e=e.ushrn(rd)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},sd.prototype.sign=function(e,t,td,nd){if(typeof td==`object`&&(nd=td,td=null),nd||={},typeof e!=`string`&&typeof e!=`number`&&!$.isBN(e)){id(typeof e==`object`&&e&&typeof e.length==`number`,`Expected message to be an array-like, a hex string, or a BN instance`),id(e.length>>>0===e.length);for(var rd=0;rd<e.length;rd++)id((e[rd]&255)===e[rd])}t=this.keyFromPrivate(t,td),e=this._truncateToN(e,!1,nd.msgBitLength),id(!e.isNeg(),`Can not sign a negative message`);var ad=this.n.byteLength(),sd=t.getPrivate().toArray(`be`,ad),cd=e.toArray(`be`,ad);id(new $(cd).eq(e),`Can not sign message`);for(var ld=new ed({hash:this.hash,entropy:sd,nonce:cd,pers:nd.pers,persEnc:nd.persEnc||`utf8`}),ud=this.n.sub(new $(1)),dd=0;;dd++){var fd=nd.k?nd.k(dd):new $(ld.generate(this.n.byteLength()));if(fd=this._truncateToN(fd,!0),!(fd.cmpn(1)<=0||fd.cmp(ud)>=0)){var pd=this.g.mul(fd);if(!pd.isInfinity()){var md=pd.getX(),hd=md.umod(this.n);if(hd.cmpn(0)!==0){var gd=fd.invm(this.n).mul(hd.mul(t.getPrivate()).iadd(e));if(gd=gd.umod(this.n),gd.cmpn(0)!==0){var _d=!!pd.getY().isOdd()|(md.cmp(hd)===0?0:2);return nd.canonical&&gd.cmp(this.nh)>0&&(gd=this.n.sub(gd),_d^=1),new od({r:hd,s:gd,recoveryParam:_d})}}}}}},sd.prototype.verify=function(e,t,$,ed,td){td||={},e=this._truncateToN(e,!1,td.msgBitLength),$=this.keyFromPublic($,ed),t=new od(t,`hex`);var nd=t.r,rd=t.s;if(nd.cmpn(1)<0||nd.cmp(this.n)>=0||rd.cmpn(1)<0||rd.cmp(this.n)>=0)return!1;var id=rd.invm(this.n),ad=id.mul(e).umod(this.n),sd=id.mul(nd).umod(this.n),cd;return this.curve._maxwellTrick?(cd=this.g.jmulAdd(ad,$.getPublic(),sd),cd.isInfinity()?!1:cd.eqXToP(nd)):(cd=this.g.mulAdd(ad,$.getPublic(),sd),cd.isInfinity()?!1:cd.getX().umod(this.n).cmp(nd)===0)},sd.prototype.recoverPubKey=function(e,t,ed,td){id((3&ed)===ed,`The recovery param is more than two bits`),t=new od(t,td);var nd=this.n,rd=new $(e),ad=t.r,sd=t.s,cd=ed&1,ld=ed>>1;if(ad.cmp(this.curve.p.umod(this.curve.n))>=0&&ld)throw Error(`Unable to find sencond key candinate`);ad=ld?this.curve.pointFromX(ad.add(this.curve.n),cd):this.curve.pointFromX(ad,cd);var ud=t.r.invm(nd),dd=nd.sub(rd).mul(ud).umod(nd),fd=sd.mul(ud).umod(nd);return this.g.mulAdd(dd,ad,fd)},sd.prototype.getKeyRecoveryParam=function(e,t,$,ed){if(t=new od(t,ed),t.recoveryParam!==null)return t.recoveryParam;for(var td=0;td<4;td++){var nd;try{nd=this.recoverPubKey(e,t,td)}catch{continue}if(nd.eq($))return td}throw Error(`Unable to find valid recovery factor`)}})),require_key=__commonJSMin(((e,t)=>{var $=require_utils$1(),ed=$.assert,td=$.parseBytes,nd=$.cachedProperty;function rd(e,t){this.eddsa=e,this._secret=td(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=td(t.pub)}rd.fromPublic=function(e,t){return t instanceof rd?t:new rd(e,{pub:t})},rd.fromSecret=function(e,t){return t instanceof rd?t:new rd(e,{secret:t})},rd.prototype.secret=function(){return this._secret},nd(rd,`pubBytes`,function(){return this.eddsa.encodePoint(this.pub())}),nd(rd,`pub`,function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),nd(rd,`privBytes`,function(){var e=this.eddsa,t=this.hash(),$=e.encodingLength-1,ed=t.slice(0,e.encodingLength);return ed[0]&=248,ed[$]&=127,ed[$]|=64,ed}),nd(rd,`priv`,function(){return this.eddsa.decodeInt(this.privBytes())}),nd(rd,`hash`,function(){return this.eddsa.hash().update(this.secret()).digest()}),nd(rd,`messagePrefix`,function(){return this.hash().slice(this.eddsa.encodingLength)}),rd.prototype.sign=function(e){return ed(this._secret,`KeyPair can only verify`),this.eddsa.sign(e,this)},rd.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},rd.prototype.getSecret=function(e){return ed(this._secret,`KeyPair is public only`),$.encode(this.secret(),e)},rd.prototype.getPublic=function(e){return $.encode(this.pubBytes(),e)},t.exports=rd})),require_signature=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_utils$1(),td=ed.assert,nd=ed.cachedProperty,rd=ed.parseBytes;function id(e,t){this.eddsa=e,typeof t!=`object`&&(t=rd(t)),Array.isArray(t)&&(td(t.length===e.encodingLength*2,`Signature has invali
321d size`),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),td(t.R&&t.S,`Signature without R or S`),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof $&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}nd(id,`S`,function(){return this.eddsa.decodeInt(this.Sencoded())}),nd(id,`R`,function(){return this.eddsa.decodePoint(this.Rencoded())}),nd(id,`Rencoded`,function(){return this.eddsa.encodePoint(this.R())}),nd(id,`Sencoded`,function(){return this.eddsa.encodeInt(this.S())}),id.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},id.prototype.toHex=function(){return ed.encode(this.toBytes(),`hex`).toUpperCase()},t.exports=id})),require_eddsa=__commonJSMin(((e,t)=>{var $=require_hash(),ed=require_curves(),td=require_utils$1(),nd=td.assert,rd=td.parseBytes,id=require_key(),ad=require_signature();function od(e){if(nd(e===`ed25519`,`only tested with ed25519 so far`),!(this instanceof od))return new od(e);e=ed[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=$.sha512}t.exports=od,od.prototype.sign=function(e,t){e=rd(e);var $=this.keyFromSecret(t),ed=this.hashInt($.messagePrefix(),e),td=this.g.mul(ed),nd=this.encodePoint(td),id=this.hashInt(nd,$.pubBytes(),e).mul($.priv()),ad=ed.add(id).umod(this.curve.n);return this.makeSignature({R:td,S:ad,Rencoded:nd})},od.prototype.verify=function(e,t,$){if(e=rd(e),t=this.makeSignature(t),t.S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var ed=this.keyFromPublic($),td=this.hashInt(t.Rencoded(),ed.pubBytes(),e),nd=this.g.mul(t.S());return t.R().add(ed.pub().mul(td)).eq(nd)},od.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return td.intFromLE(e.digest()).umod(this.curve.n)},od.prototype.keyFromPublic=function(e){return id.fromPublic(this,e)},od.prototype.keyFromSecret=function(e){return id.fromSecret(this,e)},od.prototype.makeSignature=function(e){return e instanceof ad?e:new ad(this,e)},od.prototype.encodePoint=function(e){var t=e.getY().toArray(`le`,this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},od.prototype.decodePoint=function(e){e=td.parseBytes(e);var t=e.length-1,$=e.slice(0,t).concat(e[t]&-129),ed=(e[t]&128)!=0,nd=td.intFromLE($);return this.curve.pointFromY(nd,ed)},od.prototype.encodeInt=function(e){return e.toArray(`le`,this.encodingLength)},od.prototype.decodeInt=function(e){return td.intFromLE(e)},od.prototype.isPoint=function(e){return e instanceof this.pointClass}})),require_elliptic=__commonJSMin((e=>{var t=e;t.version=(init_package(),__toCommonJS(package_exports).default).version,t.utils=require_utils$1(),t.rand=require_brorand(),t.curve=require_curve(),t.curves=require_curves(),t.ec=require_ec(),t.eddsa=require_eddsa()})),require_bn=__commonJSMin(((e,t)=>{(function(e,t){function $(e,t){if(!e)throw Error(t||`Assertion failed`)}function ed(e,t){e.super_=t;var $=function(){};$.prototype=t.prototype,e.prototype=new $,e.prototype.constructor=e}function td(e,t,$){if(td.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&((t===`le`||t===`be`)&&($=t,t=10),this._init(e||0,t||10,$||`be`))}typeof e==`object`?e.exports=td:t.BN=td,td.BN=td,td.wordSize=26;var nd;try{nd=typeof window<`u`&&window.Buffer!==void 0?window.Buffer:require___vite_browser_external().Buffer}catch{}td.isBN=function(e){return e instanceof td?!0:typeof e==`object`&&!!e&&e.constructor.wordSize===td.wordSize&&Array.isArray(e.words)},td.max=function(e,t){return e.cmp(t)>0?e:t},td.min=function(e,t){return e.cmp(t)<0?e:t},td.prototype._init=function(e,t,ed){if(typeof e==`number`)return this._initNumber(e,t,ed);if(typeof e==`object`)return this._initArray(e,t,ed);t===`hex`&&(t=16),$(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,``);var td=0;e[0]===`-`&&(td++,this.negative=1),td<e.length&&(t===16?this._parseHex(e,td,ed):(this._parseBase(e,t,td),ed===`le`&&this._initArray(this.toArray(),t,ed)))},td.prototype._initNumber=function(e,t,ed){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):($(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),ed===`le`&&this._initArray(this.toArray(),t,ed)},td.prototype._initArray=function(e,t,ed){if($(typeof e.length==`number`),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var td=0;td<this.length;td++)this.words[td]=0;var nd,rd,id=0;if(ed===`be`)for(td=e.length-1,nd=0;td>=0;td-=3)rd=e[td]|e[td-1]<<8|e[td-2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);else if(ed===`le`)for(td=0,nd=0;td<e.length;td+=3)rd=e[td]|e[td+1]<<8|e[td+2]<<16,this.words[nd]|=rd<<id&67108863,this.words[nd+1]=rd>>>26-id&67108863,id+=24,id>=26&&(id-=26,nd++);return this._strip()};function rd(e,t){var ed=e.charCodeAt(t);if(ed>=48&&ed<=57)return ed-48;if(ed>=65&&ed<=70)return ed-55;if(ed>=97&&ed<=102)return ed-87;$(!1,`Invalid character in `+e)}function id(e,t,$){var ed=rd(e,$);return $-1>=t&&(ed|=rd(e,$-1)<<4),ed}td.prototype._parseHex=function(e,t,$){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var ed=0;ed<this.length;ed++)this.words[ed]=0;var td=0,nd=0,rd;if($===`be`)for(ed=e.length-1;ed>=t;ed-=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;else for(ed=(e.length-t)%2==0?t+1:t;ed<e.length;ed+=2)rd=id(e,t,ed)<<td,this.words[nd]|=rd&67108863,td>=18?(td-=18,nd+=1,this.words[nd]|=rd>>>26):td+=8;this._strip()};function ad(e,t,ed,td){for(var nd=0,rd=0,id=Math.min(e.length,ed),ad=t;ad<id;ad++){var od=e.charCodeAt(ad)-48;nd*=td,rd=od>=49?od-49+10:od>=17?od-17+10:od,$(od>=0&&rd<td,`Invalid character`),nd+=rd}return nd}td.prototype._parseBase=function(e,t,$){this.words=[0],this.length=1;for(var ed=0,td=1;td<=67108863;td*=t)ed++;ed--,td=td/t|0;for(var nd=e.length-$,rd=nd%ed,id=Math.min(nd,nd-rd)+$,od=0,sd=$;sd<id;sd+=ed)od=ad(e,sd,sd+ed,t),this.imuln(td),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od);if(rd!==0){var cd=1;
vendor: 13,843 bytes, line 321
321for(od=ad(e,sd,e.length,t),sd=0;sd<rd;sd++)cd*=t;this.imuln(cd),this.words[0]+od<67108864?this.words[0]+=od:this._iaddn(od)}this._strip()},td.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red};function od(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(td.prototype._move=function(e){od(e,this)},td.prototype.clone=function(){var e=new td(null);return this.copy(e),e},td.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},td.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},td.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<`u`&&typeof Symbol.for==`function`)try{td.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=sd}catch{td.prototype.inspect=sd}else td.prototype.inspect=sd;function sd(){return(this.red?`<BN-R: `:`<BN: `)+this.toString(16)+`>`}var cd=`.0.00.000.0000.00000.000000.0000000.00000000.000000000.0000000000.00000000000.000000000000.0000000000000.00000000000000.000000000000000.0000000000000000.00000000000000000.000000000000000000.0000000000000000000.00000000000000000000.000000000000000000000.0000000000000000000000.00000000000000000000000.000000000000000000000000.0000000000000000000000000`.split(`.`),ld=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ud=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];td.prototype.toString=function(e,t){e||=10,t=t|0||1;var ed;if(e===16||e===`hex`){ed=``;for(var td=0,nd=0,rd=0;rd<this.length;rd++){var id=this.words[rd],ad=((id<<td|nd)&16777215).toString(16);nd=id>>>24-td&16777215,td+=2,td>=26&&(td-=26,rd--),ed=nd!==0||rd!==this.length-1?cd[6-ad.length]+ad+ed:ad+ed}for(nd!==0&&(ed=nd.toString(16)+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}if(e===(e|0)&&e>=2&&e<=36){var od=ld[e],sd=ud[e];ed=``;var dd=this.clone();for(dd.negative=0;!dd.isZero();){var fd=dd.modrn(sd).toString(e);dd=dd.idivn(sd),ed=dd.isZero()?fd+ed:cd[od-fd.length]+fd+ed}for(this.isZero()&&(ed=`0`+ed);ed.length%t!==0;)ed=`0`+ed;return this.negative!==0&&(ed=`-`+ed),ed}$(!1,`Base should be between 2 and 36`)},td.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&$(!1,`Number can only safely store up to 53 bits`),this.negative===0?e:-e},td.prototype.toJSON=function(){return this.toString(16,2)},nd&&(td.prototype.toBuffer=function(e,t){return this.toArrayLike(nd,e,t)}),td.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var dd=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};td.prototype.toArrayLike=function(e,t,ed){this._strip();var td=this.byteLength(),nd=ed||Math.max(1,td);$(td<=nd,`byte array longer than desired length`),$(nd>0,`Requested array length <= 0`);var rd=dd(e,nd);return this[`_toArrayLike`+(t===`le`?`LE`:`BE`)](rd,td),rd},td.prototype._toArrayLikeLE=function(e,t){for(var $=0,ed=0,td=0,nd=0;td<this.length;td++){var rd=this.words[td]<<nd|ed;e[$++]=rd&255,$<e.length&&(e[$++]=rd>>8&255),$<e.length&&(e[$++]=rd>>16&255),nd===6?($<e.length&&(e[$++]=rd>>24&255),ed=0,nd=0):(ed=rd>>>24,nd+=2)}if($<e.length)for(e[$++]=ed;$<e.length;)e[$++]=0},td.prototype._toArrayLikeBE=function(e,t){for(var $=e.length-1,ed=0,td=0,nd=0;td<this.length;td++){var rd=this.words[td]<<nd|ed;e[$--]=rd&255,$>=0&&(e[$--]=rd>>8&255),$>=0&&(e[$--]=rd>>16&255),nd===6?($>=0&&(e[$--]=rd>>24&255),ed=0,nd=0):(ed=rd>>>24,nd+=2)}if($>=0)for(e[$--]=ed;$>=0;)e[$--]=0},Math.clz32?td.prototype._countBits=function(e){return 32-Math.clz32(e)}:td.prototype._countBits=function(e){var t=e,$=0;return t>=4096&&($+=13,t>>>=13),t>=64&&($+=7,t>>>=7),t>=8&&($+=4,t>>>=4),t>=2&&($+=2,t>>>=2),$+t},td.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,$=0;return t&8191||($+=13,t>>>=13),t&127||($+=7,t>>>=7),t&15||($+=4,t>>>=4),t&3||($+=2,t>>>=2),t&1||$++,$},td.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function fd(e){for(var t=Array(e.bitLength()),$=0;$<t.length;$++){var ed=$/26|0,td=$%26;t[$]=e.words[ed]>>>td&1}return t}td.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var $=this._zeroBits(this.words[t]);if(e+=$,$!==26)break}return e},td.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},td.prototype.toTwos=function(e){return this.negative===0?this.clone():this.abs().inotn(e).iaddn(1)},td.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},td.prototype.isNeg=function(){return this.negative!==0},td.prototype.neg=function(){return this.clone().ineg()},td.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},td.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},td.prototype.ior=function(e){return $((this.negative|e.negative)===0),this.iuor(e)},td.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},td.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},td.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,$=0;$<t.length;$++)this.words[$]=this.words[$]&e.words[$];return this.length=t.length,this._strip()},td.prototype.iand=function(e){return $((this.negative|e.negative)===0),this.iuand(e)},td.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},td.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},td.prototype.iuxor=function(e){var t,$;this.length>e.length?(t=this,$=e):(t=e,$=this);for(var ed=0;ed<$.length;ed++)this.words[ed]=t.words[ed]^$.words[ed];if(this!==t)for(;ed<t.length;ed++)this.words[ed]=t.words[ed];return this.length=t.length,this._strip()},td.prototype.ixor=function(e){return $((this.negative|e.negative)===0),this.iuxor(e)},td.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},td.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},td.prototype.inotn=function(e){$(typeof e==`number`&&e>=0);var t=Math.ceil(e/26)|0,ed=e%26;this._expand(t),ed>0&&t--;for(var td=0;td<t;td++)this.words[td]=~this.words[td]&67108863;return ed>0&&(this.words[td]=~this.words[td]&67108863>>26-ed),this._strip()},td.prototype.notn=function(e){return this.clone().inotn(e)},td.prototype.setn=function(e,t){$(typeof e==`number`&&e>=0);var ed=e/26|0,td=e%26;return this._expand(ed+1),t?this.words[ed]=this.words[ed]|1<<td:this.words[ed]=this.words[ed]&~(1<<td),this._strip()},td.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var $,ed;this.length>e.length?($=this,ed=e):($=e,ed=this);for(var td=0,nd=0;nd<ed.length;nd++)t=($.words[nd]|0)+(ed.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;for(;td!==0&&nd<$.length;nd++)t=($.words[nd]|0)+td,this.words[nd]=t&67108863,td=t>>>26;if(this.length=$.length,td!==0)this.words[this.length]=td,this.length++;else if($!==this)for(;nd<$.length;nd++)this.words[nd]=$.words[nd];return this},td.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},td.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var $=this.cmp(e);if($===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ed,td;$>0?(ed=this,td=e):(ed=e,td=this);for(var nd=0,rd=0;rd<td.length;rd++)t=(ed.words[rd]|0)-(td.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;for(;nd!==0&&rd<ed.length;rd++)t=(ed.words[rd]|0)+nd,nd=t>>26,this.words[rd]=t&67108863;if(nd===0&&rd<ed.length&&ed!==this)for(;rd<ed.length;rd++)this.words[rd]=ed.words[rd];return this.length=Math.max(this.length,rd),ed!==this&&(this.negative=1),this._strip()},td.prototype.sub=function(e){return this.clone().isub(e)};function pd(e,t,$){$.negative=t.negative^e.negative;var ed=e.length+t.length|0;$.length=ed,ed=ed-1|0;var td=e.words[0]|0,nd=t.words[0]|0,rd=td*nd,id=rd&67108863,ad=rd/67108864|0;$.words[0]=id;for(var od=1;od<ed;od++){for(var sd=ad>>>26,cd=ad&67108863,ld=Math.min(od,t.length-1),ud=Math.max(0,od-e.length+1);ud<=ld;ud++){var dd=od-ud|0;td=e.words[dd]|0,nd=t.words[ud]|0,rd=td*nd+cd,sd+=rd/67108864|0,cd=rd&67108863}$.words[od]=cd|0,ad=sd|0}return ad===0?$.length--:$.words[od]=ad|0,$._strip()}var md=function(e,t,$){var ed=e.words,td=t.words,nd=$.words,rd=0,id,ad,od,sd=ed[0]|0,cd=sd&8191,ld=sd>>>13,ud=ed[1]|0,dd=ud&8191,fd=ud>>>13,pd=ed[2]|0,md=pd&8191,hd=pd>>>13,gd=ed[3]|0,_d=gd&8191,vd=gd>>>13,yd=ed[4]|0,bd=yd&8191,xd=yd>>>13,Sd=ed[5]|0,Cd=Sd&8191,wd=Sd>>>13,Td=ed[6]|0,Ed=Td&8191,Dd=Td>>>13,Od=ed[7]|0,kd=Od&8191,Ad=Od>>>13,jd=ed[8]|0,Md=jd&8191,Nd=jd>>>13,Pd=ed[9]|0,Fd=Pd&8191,Id=Pd>>>13,Ld=td[0]|0,Rd=Ld&8191,zd=Ld>>>13,Bd=td[1]|0,Vd=Bd&8191,Hd=Bd>>>13,Ud=td[2]|0,Wd=Ud&8191,Gd=Ud>>>13,Kd=td[3]|0,qd=Kd&8191,Jd=Kd>>>13,Yd=td[4]|0,Xd=Yd&8191,Zd=Yd>>>13,Qd=td[5]|0,$d=Qd&8191,ef=Qd>>>13,tf=td[6]|0,nf=tf&8191,rf=tf>>>13,af=td[7]|0,of=af&8191,sf=af>>>13,cf=td[8]|0,lf=cf&8191,uf=cf>>>13,df=td[9]|0,ff=df&8191,pf=df>>>13;$.negative=e.negative^t.negative,$.length=19,id=Math.imul(cd,Rd),ad=Math.imul(cd,zd),ad=ad+Math.imul(ld,Rd)|0,od=Math.imul(ld,zd);var mf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(mf>>>26)|0,mf&=67108863,id=Math.imul(dd,Rd),ad=Math.imul(dd,zd),ad=ad+Math.imul(fd,Rd)|0,od=Math.imul(fd,zd),id=id+Math.imul(cd,Vd)|0,ad=ad+Math.imul(cd,Hd)|0,ad=ad+Math.imul(ld,Vd)|0,od=od+Math.imul(ld,Hd)|0;var hf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(hf>>>26)|0,hf&=67108863,id=Math.imul(md,Rd),ad=Math.imul(md,zd),ad=ad+Math.imul(hd,Rd)|0,od=Math.imul(hd,zd),id=id+Math.imul(dd,Vd)|0,ad=ad+Math.imul(dd,Hd)|0,ad=ad+Math.imul(fd,Vd)|0,od=od+Math.imul(fd,Hd)|0,id=id+Math.imul(cd,Wd)|0,ad=ad+Math.imul(cd,Gd)|0,ad=ad+Math.imul(ld,Wd)|0,od=od+Math.imul(ld,Gd)|0;var gf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(gf>>>26)|0,gf&=67108863,id=Math.imul(_d,Rd),ad=Math.imul(_d,zd),ad=ad+Math.imul(vd,Rd)|0,od=Math.imul(vd,zd),id=id+Math.imul(md,Vd)|0,ad=ad+Math.imul(md,Hd)|0,ad=ad+Math.imul(hd,Vd)|0,od=od+Math.imul(hd,Hd)|0,id=id+Math.imul(dd,Wd)|0,ad=ad+Math.imul(dd,Gd)|0,ad=ad+Math.imul(fd,Wd)|0,od=od+Math.imul(fd,Gd)|0,id=id+Math.imul(cd,qd)|0,ad=ad+Math.imul(cd,Jd)|0,ad=ad+Math.imul(ld,qd)|0,od=od+Math.imul(ld,Jd)|0;var _f=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(_f>>>26)|0,_f&=67108863,id=Math.imul(bd,Rd),ad=Math.imul(bd,zd),ad=ad+Math.imul(xd,Rd)|0,od=Math.imul(xd,zd),id=id+Math.imul(_d,Vd)|0,ad=ad+Math.imul(_d,Hd)|0,ad=ad+Math.imul(vd,Vd)|0,od=od+Math.imul(vd,Hd)|0,id=id+Math.imul(md,Wd)|0,ad=ad+Math.imul(md,Gd)|0,ad=ad+Math.imul(hd,Wd)|0,od=od+Math.imul(hd,Gd)|0,id=id+Math.imul(dd,qd)|0,ad=ad+Math.imul(dd,Jd)|0,ad=ad+Math.imul(fd,qd)|0,od=od+Math.imul(fd,Jd)|0,id=id+Math.imul(cd,Xd)|0,ad=ad+Math.imul(cd,Zd)|0,ad=ad+Math.imul(ld,Xd)|0,od=od+Math.imul(ld,Zd)|0;var vf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(vf>>>26)|0,vf&=67108863,id=Math.imul(Cd,Rd),ad=Math.imul(Cd,zd),ad=ad+Math.imul(wd,Rd)|0,od=Math.imul(wd,zd),id=id+Math.imul(bd,Vd)|0,ad=ad+Math.imul(bd,Hd)|0,ad=ad+Math.imul(xd,Vd)|0,od=od+Math.imul(xd,Hd)|0,id=id+Math.imul(_d,Wd)|0,ad=ad+Math.imul(_d,Gd)|0,ad=ad+Math.imul(vd,Wd)|0,od=od+Math.imul(vd,Gd)|0,id=id+Math.imul(md,qd)|0,ad=ad+Math.imul(md,Jd)|0,ad=ad+Math.imul(hd,qd)|0,od=od+Math.imul(hd,Jd)|0,id=id+Math.imul(dd,Xd)|0,ad=ad+Math.imul(dd,Zd)|0,ad=ad+Math.imul(fd,Xd)|0,od=od+Math.imul(fd,Zd)|0,id=id+Math.imul(cd,$d)|0,ad=ad+Math.imul(cd,ef)|0,ad=ad+Math.imul(ld,$d)|0,od=od+Math.imul(ld,ef)|0;var yf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(yf>>>26)|0,yf&=67108863,id=Math.imul(Ed,Rd),ad=Math.imul(Ed,zd),ad=ad+Math.imul(Dd,Rd)|0,od=Math.imul(Dd,zd),id=id+Math.imul(Cd,Vd)|0,ad=ad+Math.imul(Cd,Hd)|0,ad=ad+Math.imul(wd,Vd)|0,od=od+Math.imul(wd,Hd)|0,id=id+Math.imul(bd,Wd)|0,ad=ad+Math.imul(bd,Gd)|0,ad=ad+Math.imul(xd,Wd)|0,od=od+Math.imul(xd,Gd)|0,id=id+Math.imul(_d,qd)|0,ad=ad+Math.imul(_d,Jd)|0,ad=ad+Math.imul(vd,qd)|0,od=od+Math.imul(vd,Jd)|0,id=id+Math.imul(md,Xd)|0,ad=ad+Math.imul(md,Zd)|0,ad=ad+Math.imul(hd,Xd)|0,od=od+Math.imul(hd,Zd)|0,id=id+Math.imul(dd,$d)|0,ad=ad+Math.imul(dd,ef)|0,ad=ad+Math.imul(fd,$d)|0,od=od+Math.imul(fd,ef)|0,id=id+Math.imul(cd,nf)|0,ad=ad+Math.imul(cd,rf)|0,ad=ad+Math.imul(ld,nf)|0,od=od+Math.imul(ld,rf)|0;var bf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(bf>>>26)|0,bf&=67108863,id=Math.imul(kd,Rd),ad=Math.imul(kd,zd),ad=ad+Math.imul(Ad,Rd)|0,od=Math.imul(Ad,zd),id=id+Math.imul(Ed,Vd)|0,ad=ad+Math.imul(Ed,Hd)|0,ad=ad+Math.imul(Dd,Vd)|0,od=od+Math.imul(Dd,Hd)|0,id=id+Math.imul(Cd,Wd)|0,ad=ad+Math.imul(Cd,Gd)|0,ad=ad+Math.imul(wd,Wd)|0,od=od+Math.imul(wd,Gd)|0,id=id+Math.imul(bd,qd)|0,ad=ad+Math.imul(bd,Jd)|0,ad=ad+Math.imul(xd,qd)|0,od=od+Math.imul(xd,Jd)|0,id=id+Math.imul(_d,X
321d)|0,ad=ad+Math.imul(_d,Zd)|0,ad=ad+Math.imul(vd,Xd)|0,od=od+Math.imul(vd,Zd)|0,id=id+Math.imul(md,$d)|0,ad=ad+Math.imul(md,ef)|0,ad=ad+Math.imul(hd,$d)|0,od=od+Math.imul(hd,ef)|0,id=id+Math.imul(dd,nf)|0,ad=ad+Math.imul(dd,rf)|0,ad=ad+Math.imul(fd,nf)|0,od=od+Math.imul(fd,rf)|0,id=id+Math.imul(cd,of)|0,ad=ad+Math.imul(cd,sf)|0,ad=ad+Math.imul(ld,of)|0,od=od+Math.imul(ld,sf)|0;var xf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(xf>>>26)|0,xf&=67108863,id=Math.imul(Md,Rd),ad=Math.imul(Md,zd),ad=ad+Math.imul(Nd,Rd)|0,od=Math.imul(Nd,zd),id=id+Math.imul(kd,Vd)|0,ad=ad+Math.imul(kd,Hd)|0,ad=ad+Math.imul(Ad,Vd)|0,od=od+Math.imul(Ad,Hd)|0,id=id+Math.imul(Ed,Wd)|0,ad=ad+Math.imul(Ed,Gd)|0,ad=ad+Math.imul(Dd,Wd)|0,od=od+Math.imul(Dd,Gd)|0,id=id+Math.imul(Cd,qd)|0,ad=ad+Math.imul(Cd,Jd)|0,ad=ad+Math.imul(wd,qd)|0,od=od+Math.imul(wd,Jd)|0,id=id+Math.imul(bd,Xd)|0,ad=ad+Math.imul(bd,Zd)|0,ad=ad+Math.imul(xd,Xd)|0,od=od+Math.imul(xd,Zd)|0,id=id+Math.imul(_d,$d)|0,ad=ad+Math.imul(_d,ef)|0,ad=ad+Math.imul(vd,$d)|0,od=od+Math.imul(vd,ef)|0,id=id+Math.imul(md,nf)|0,ad=ad+Math.imul(md,rf)|0,ad=ad+Math.imul(hd,nf)|0,od=od+Math.imul(hd,rf)|0,id=id+Math.imul(dd,of)|0,ad=ad+Math.imul(dd,sf)|0,ad=ad+Math.imul(fd,of)|0,od=od+Math.imul(fd,sf)|0,id=id+Math.imul(cd,lf)|0,ad=ad+Math.imul(cd,uf)|0,ad=ad+Math.imul(ld,lf)|0,od=od+Math.imul(ld,uf)|0;var Sf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Sf>>>26)|0,Sf&=67108863,id=Math.imul(Fd,Rd),ad=Math.imul(Fd,zd),ad=ad+Math.imul(Id,Rd)|0,od=Math.imul(Id,zd),id=id+Math.imul(Md,Vd)|0,ad=ad+Math.imul(Md,Hd)|0,ad=ad+Math.imul(Nd,Vd)|0,od=od+Math.imul(Nd,Hd)|0,id=id+Math.imul(kd,Wd)|0,ad=ad+Math.imul(kd,Gd)|0,ad=ad+Math.imul(Ad,Wd)|0,od=od+Math.imul(Ad,Gd)|0,id=id+Math.imul(Ed,qd)|0,ad=ad+Math.imul(Ed,Jd)|0,ad=ad+Math.imul(Dd,qd)|0,od=od+Math.imul(Dd,Jd)|0,id=id+Math.imul(Cd,Xd)|0,ad=ad+Math.imul(Cd,Zd)|0,ad=ad+Math.imul(wd,Xd)|0,od=od+Math.imul(wd,Zd)|0,id=id+Math.imul(bd,$d)|0,ad=ad+Math.imul(bd,ef)|0,ad=ad+Math.imul(xd,$d)|0,od=od+Math.imul(xd,ef)|0,id=id+Math.imul(_d,nf)|0,ad=ad+Math.imul(_d,rf)|0,ad=ad+Math.imul(vd,nf)|0,od=od+Math.imul(vd,rf)|0,id=id+Math.imul(md,of)|0,ad=ad+Math.imul(md,sf)|0,ad=ad+Math.imul(hd,of)|0,od=od+Math.imul(hd,sf)|0,id=id+Math.imul(dd,lf)|0,ad=ad+Math.imul(dd,uf)|0,ad=ad+Math.imul(fd,lf)|0,od=od+Math.imul(fd,uf)|0,id=id+Math.imul(cd,ff)|0,ad=ad+Math.imul(cd,pf)|0,ad=ad+Math.imul(ld,ff)|0,od=od+Math.imul(ld,pf)|0;var Cf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Cf>>>26)|0,Cf&=67108863,id=Math.imul(Fd,Vd),ad=Math.imul(Fd,Hd),ad=ad+Math.imul(Id,Vd)|0,od=Math.imul(Id,Hd),id=id+Math.imul(Md,Wd)|0,ad=ad+Math.imul(Md,Gd)|0,ad=ad+Math.imul(Nd,Wd)|0,od=od+Math.imul(Nd,Gd)|0,id=id+Math.imul(kd,qd)|0,ad=ad+Math.imul(kd,Jd)|0,ad=ad+Math.imul(Ad,qd)|0,od=od+Math.imul(Ad,Jd)|0,id=id+Math.imul(Ed,Xd)|0,ad=ad+Math.imul(Ed,Zd)|0,ad=ad+Math.imul(Dd,Xd)|0,od=od+Math.imul(Dd,Zd)|0,id=id+Math.imul(Cd,$d)|0,ad=ad+Math.imul(Cd,ef)|0,ad=ad+Math.imul(wd,$d)|0,od=od+Math.imul(wd,ef)|0,id=id+Math.imul(bd,nf)|0,ad=ad+Math.imul(bd,rf)|0,ad=ad+Math.imul(xd,nf)|0,od=od+Math.imul(xd,rf)|0,id=id+Math.imul(_d,of)|0,ad=ad+Math.imul(_d,sf)|0,ad=ad+Math.imul(vd,of)|0,od=od+Math.imul(vd,sf)|0,id=id+Math.imul(md,lf)|0,ad=ad+Math.imul(md,uf)|0,ad=ad+Math.imul(hd,lf)|0,od=od+Math.imul(hd,uf)|0,id=id+Math.imul(dd,ff)|0,ad=ad+Math.imul(dd,pf)|0,ad=ad+Math.imul(fd,ff)|0,od=od+Math.imul(fd,pf)|0;var wf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(wf>>>26)|0,wf&=67108863,id=Math.imul(Fd,Wd),ad=Math.imul(Fd,Gd),ad=ad+Math.imul(Id,Wd)|0,od=Math.imul(Id,Gd),id=id+Math.imul(Md,qd)|0,ad=ad+Math.imul(Md,Jd)|0,ad=ad+Math.imul(Nd,qd)|0,od=od+Math.imul(Nd,Jd)|0,id=id+Math.imul(kd,Xd)|0,ad=ad+Math.imul(kd,Zd)|0,ad=ad+Math.imul(Ad,Xd)|0,od=od+Math.imul(Ad,Zd)|0,id=id+Math.imul(Ed,$d)|0,ad=ad+Math.imul(Ed,ef)|0,ad=ad+Math.imul(Dd,$d)|0,od=od+Math.imul(Dd,ef)|0,id=id+Math.imul(Cd,nf)|0,ad=ad+Math.imul(Cd,rf)|0,ad=ad+Math.imul(wd,nf)|0,od=od+Math.imul(wd,rf)|0,id=id+Math.imul(bd,of)|0,ad=ad+Math.imul(bd,sf)|0,ad=ad+Math.imul(xd,of)|0,od=od+Math.imul(xd,sf)|0,id=id+Math.imul(_d,lf)|0,ad=ad+Math.imul(_d,uf)|0,ad=ad+Math.imul(vd,lf)|0,od=od+Math.imul(vd,uf)|0,id=id+Math.imul(md,ff)|0,ad=ad+Math.imul(md,pf)|0,ad=ad+Math.imul(hd,ff)|0,od=od+Math.imul(hd,pf)|0;var Tf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Tf>>>26)|0,Tf&=67108863,id=Math.imul(Fd,qd),ad=Math.imul(Fd,Jd),ad=ad+Math.imul(Id,qd)|0,od=Math.imul(Id,Jd),id=id+Math.imul(Md,Xd)|0,ad=ad+Math.imul(Md,Zd)|0,ad=ad+Math.imul(Nd,Xd)|0,od=od+Math.imul(Nd,Zd)|0,id=id+Math.imul(kd,$d)|0,ad=ad+Math.imul(kd,ef)|0,ad=ad+Math.imul(Ad,$d)|0,od=od+Math.imul(Ad,ef)|0,id=id+Math.imul(Ed,nf)|0,ad=ad+Math.imul(Ed,rf)|0,ad=ad+Math.imul(Dd,nf)|0,od=od+Math.imul(Dd,rf)|0,id=id+Math.imul(Cd,of)|0,ad=ad+Math.imul(Cd,sf)|0,ad=ad+Math.imul(wd,of)|0,od=od+Math.imul(wd,sf)|0,id=id+Math.imul(bd,lf)|0,ad=ad+Math.imul(bd,uf)|0,ad=ad+Math.imul(xd,lf)|0,od=od+Math.imul(xd,uf)|0,id=id+Math.imul(_d,ff)|0,ad=ad+Math.imul(_d,pf)|0,ad=ad+Math.imul(vd,ff)|0,od=od+Math.imul(vd,pf)|0;var Ef=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Ef>>>26)|0,Ef&=67108863,id=Math.imul(Fd,Xd),ad=Math.imul(Fd,Zd),ad=ad+Math.imul(Id,Xd)|0,od=Math.imul(Id,Zd),id=id+Math.imul(Md,$d)|0,ad=ad+Math.imul(Md,ef)|0,ad=ad+Math.imul(Nd,$d)|0,od=od+Math.imul(Nd,ef)|0,id=id+Math.imul(kd,nf)|0,ad=ad+Math.imul(kd,rf)|0,ad=ad+Math.imul(Ad,nf)|0,od=od+Math.imul(Ad,rf)|0,id=id+Math.imul(Ed,of)|0,ad=ad+Math.imul(Ed,sf)|0,ad=ad+Math.imul(Dd,of)|0,od=od+Math.imul(Dd,sf)|0,id=id+Math.imul(Cd,lf)|0,ad=ad+Math.imul(Cd,uf)|0,ad=ad+Math.imul(wd,lf)|0,od=od+Math.imul(wd,uf)|0,id=id+Math.imul(bd,ff)|0,ad=ad+Math.imul(bd,pf)|0,ad=ad+Math.imul(xd,ff)|0,od=od+Math.imul(xd,pf)|0;var Df=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Df>>>26)|0,Df&=67108863,id=Math.imul(Fd,$d),ad=Math.imul(Fd,ef),ad=ad+Math.imul(Id,$d)|0,od=Math.imul(Id,ef),id=id+Math.imul(Md,nf)|0,ad=ad+Math.imul(Md,rf)|0,ad=ad+Math.imul(Nd,nf)|0,od=od+Math.imul(Nd,rf)|0,id=id+Math.imul(kd,of)|0,ad=ad+Math.imul(kd,sf)|0,ad=ad+Math.imul(Ad,of)|0,od=od+Math.imul(Ad,sf)|0,id=id+Math.imul(Ed,lf)|0,ad=ad+Math.imul(Ed,uf)|0,ad=ad+Math.imul(Dd,lf)|0,od=od+Math.imul(Dd,uf)|0,id=id+Math.imul(Cd,ff)|0,ad=ad+Math.imul(Cd,pf)|0,ad=ad+Math.imul(wd,ff)|0,od=od+Math.imul(wd,pf)|0;var Of=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Of>>>26)|0,Of&=67108863,id=Math.imul(Fd,nf),ad=Math.imul(Fd,rf),ad=ad+Math.imul(Id,nf)|0,od=Math.imul(Id,rf),id=id+Math.imul(Md,of)|0,ad=ad+Math.imul(Md,sf)|0,ad=ad+Math.imul(Nd,of)|0,od=od+Math.imul(Nd,sf)|0,id=id+Math.imul(kd,lf)|0,ad=ad+Math.imul(kd,uf)|0,ad=ad+Math.imul(Ad,lf)|0,od=od+Math.imul(Ad,uf)|0,id=id+Math.imul(Ed,ff)|0,ad=ad+Math.imul(Ed,pf)|0,ad=ad+Math.imul(Dd,ff)|0,od=od+Math.imul(Dd,pf)|0;var kf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(kf>>>26)|0,kf&=67108863,id=Math.imul(Fd,of),ad=Math.imul(Fd,sf),ad=ad+Math.imul(Id,of)|0,od=Math.imul(Id,sf),id=id+Math.imul(Md,lf)|0,ad=ad+Math.imul(Md,uf)|0,ad=ad+Math.imul(Nd,lf)|0,od=od+Math.imul(Nd,uf)|0,id=id+Math.imul(kd,ff)|0,ad=ad+Math.imul(kd,pf)|0,ad=ad+Math.imul(Ad,ff)|0,od=od+Math.imul(Ad,pf)|0;var Af=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(Af>>>26)|0,Af&=67108863,id=Math.imul(Fd,lf),ad=Math.imul(Fd,uf),ad=ad+Math.imul(Id,lf)|0,od=Math.imul(Id,uf),id=id+Math.imul(Md,ff)|0,ad=ad+Math.imul(Md,pf)|0,ad=ad+Math.imul(Nd,ff)|0,od=od+Math.imul(Nd,pf)|0;var jf=(rd+id|0)+((ad&8191)<<13)|0;rd=(od+(ad>>>13)|0)+(jf>>>26)|0,jf&=67108863,id=Math.imul(Fd,ff),ad=Math.imul(Fd,pf),ad=ad+Math.imul(Id,ff)|0,od=Math.imul(Id,pf);var Mf=(rd+id|0)+((ad&8191)<<13)|0;return rd=(od+(ad>>>13)|0)+(Mf>>>26)|0,Mf&=67108863,nd[0]=mf,nd[1]=hf,nd[2]=gf,nd[3]=_f,nd[4]=vf,nd[5]=yf,nd[6]=bf,nd[7]=xf,nd[8]=Sf,nd[9]=Cf,nd[10]=wf,nd[11]=Tf,nd[12]=Ef,nd[13]=Df,n
321d[14]=Of,nd[15]=kf,nd[16]=Af,nd[17]=jf,nd[18]=Mf,rd!==0&&(nd[19]=rd,$.length++),$};Math.imul||(md=pd);function hd(e,t,$){$.negative=t.negative^e.negative,$.length=e.length+t.length;for(var ed=0,td=0,nd=0;nd<$.length-1;nd++){var rd=td;td=0;for(var id=ed&67108863,ad=Math.min(nd,t.length-1),od=Math.max(0,nd-e.length+1);od<=ad;od++){var sd=nd-od,cd=(e.words[sd]|0)*(t.words[od]|0),ld=cd&67108863;rd=rd+(cd/67108864|0)|0,ld=ld+id|0,id=ld&67108863,rd=rd+(ld>>>26)|0,td+=rd>>>26,rd&=67108863}$.words[nd]=id,ed=rd,rd=td}return ed===0?$.length--:$.words[nd]=ed,$._strip()}function gd(e,t,$){return hd(e,t,$)}td.prototype.mulTo=function(e,t){var $,ed=this.length+e.length;return $=this.length===10&&e.length===10?md(this,e,t):ed<63?pd(this,e,t):ed<1024?hd(this,e,t):gd(this,e,t),$};function _d(e,t){this.x=e,this.y=t}_d.prototype.makeRBT=function(e){for(var t=Array(e),$=td.prototype._countBits(e)-1,ed=0;ed<e;ed++)t[ed]=this.revBin(ed,$,e);return t},_d.prototype.revBin=function(e,t,$){if(e===0||e===$-1)return e;for(var ed=0,td=0;td<t;td++)ed|=(e&1)<<t-td-1,e>>=1;return ed},_d.prototype.permute=function(e,t,$,ed,td,nd){for(var rd=0;rd<nd;rd++)ed[rd]=t[e[rd]],td[rd]=$[e[rd]]},_d.prototype.transform=function(e,t,$,ed,td,nd){this.permute(nd,e,t,$,ed,td);for(var rd=1;rd<td;rd<<=1)for(var id=rd<<1,ad=Math.cos(2*Math.PI/id),od=Math.sin(2*Math.PI/id),sd=0;sd<td;sd+=id)for(var cd=ad,ld=od,ud=0;ud<rd;ud++){var dd=$[sd+ud],fd=ed[sd+ud],pd=$[sd+ud+rd],md=ed[sd+ud+rd],hd=cd*pd-ld*md;md=cd*md+ld*pd,pd=hd,$[sd+ud]=dd+pd,ed[sd+ud]=fd+md,$[sd+ud+rd]=dd-pd,ed[sd+ud+rd]=fd-md,ud!==id&&(hd=ad*cd-od*ld,ld=ad*ld+od*cd,cd=hd)}},_d.prototype.guessLen13b=function(e,t){var $=Math.max(t,e)|1,ed=$&1,td=0;for($=$/2|0;$;$>>>=1)td++;return 1<<td+1+ed},_d.prototype.conjugate=function(e,t,$){if(!($<=1))for(var ed=0;ed<$/2;ed++){var td=e[ed];e[ed]=e[$-ed-1],e[$-ed-1]=td,td=t[ed],t[ed]=-t[$-ed-1],t[$-ed-1]=-td}},_d.prototype.normalize13b=function(e,t){for(var $=0,ed=0;ed<t/2;ed++){var td=Math.round(e[2*ed+1]/t)*8192+Math.round(e[2*ed]/t)+$;e[ed]=td&67108863,$=td<67108864?0:td/67108864|0}return e},_d.prototype.convert13b=function(e,t,ed,td){for(var nd=0,rd=0;rd<t;rd++)nd+=e[rd]|0,ed[2*rd]=nd&8191,nd>>>=13,ed[2*rd+1]=nd&8191,nd>>>=13;for(rd=2*t;rd<td;++rd)ed[rd]=0;$(nd===0),$((nd&-8192)==0)},_d.prototype.stub=function(e){for(var t=Array(e),$=0;$<e;$++)t[$]=0;return t},_d.prototype.mulp=function(e,t,$){var ed=2*this.guessLen13b(e.length,t.length),td=this.makeRBT(ed),nd=this.stub(ed),rd=Array(ed),id=Array(ed),ad=Array(ed),od=Array(ed),sd=Array(ed),cd=Array(ed),ld=$.words;ld.length=ed,this.convert13b(e.words,e.length,rd,ed),this.convert13b(t.words,t.length,od,ed),this.transform(rd,nd,id,ad,ed,td),this.transform(od,nd,sd,cd,ed,td);for(var ud=0;ud<ed;ud++){var dd=id[ud]*sd[ud]-ad[ud]*cd[ud];ad[ud]=id[ud]*cd[ud]+ad[ud]*sd[ud],id[ud]=dd}return this.conjugate(id,ad,ed),this.transform(id,ad,ld,nd,ed,td),this.conjugate(ld,nd,ed),this.normalize13b(ld,ed),$.negative=e.negative^t.negative,$.length=e.length+t.length,$._strip()},td.prototype.mul=function(e){var t=new td(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},td.prototype.mulf=function(e){var t=new td(null);return t.words=Array(this.length+e.length),gd(this,e,t)},td.prototype.imul=function(e){return this.clone().mulTo(e,this)},td.prototype.imuln=function(e){var t=e<0;t&&(e=-e),$(typeof e==`number`),$(e<67108864);for(var ed=0,td=0;td<this.length;td++){var nd=(this.words[td]|0)*e,rd=(nd&67108863)+(ed&67108863);ed>>=26,ed+=nd/67108864|0,ed+=rd>>>26,this.words[td]=rd&67108863}return ed!==0&&(this.words[td]=ed,this.length++),this.length=e===0?1:this.length,t?this.ineg():this},td.prototype.muln=function(e){return this.clone().imuln(e)},td.prototype.sqr=function(){return this.mul(this)},td.prototype.isqr=function(){return this.imul(this.clone())},td.prototype.pow=function(e){var t=fd(e);if(t.length===0)return new td(1);for(var $=this,ed=0;ed<t.length&&t[ed]===0;ed++,$=$.sqr());if(++ed<t.length)for(var nd=$.sqr();ed<t.length;ed++,nd=nd.sqr())t[ed]!==0&&($=$.mul(nd));return $},td.prototype.iushln=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=67108863>>>26-t<<26-t,nd;if(t!==0){var rd=0;for(nd=0;nd<this.length;nd++){var id=this.words[nd]&td,ad=(this.words[nd]|0)-id<<t;this.words[nd]=ad|rd,rd=id>>>26-t}rd&&(this.words[nd]=rd,this.length++)}if(ed!==0){for(nd=this.length-1;nd>=0;nd--)this.words[nd+ed]=this.words[nd];for(nd=0;nd<ed;nd++)this.words[nd]=0;this.length+=ed}return this._strip()},td.prototype.ishln=function(e){return $(this.negative===0),this.iushln(e)},td.prototype.iushrn=function(e,t,ed){$(typeof e==`number`&&e>=0);var td=t?(t-t%26)/26:0,nd=e%26,rd=Math.min((e-nd)/26,this.length),id=67108863^67108863>>>nd<<nd,ad=ed;if(td-=rd,td=Math.max(0,td),ad){for(var od=0;od<rd;od++)ad.words[od]=this.words[od];ad.length=rd}if(rd!==0)if(this.length>rd)for(this.length-=rd,od=0;od<this.length;od++)this.words[od]=this.words[od+rd];else this.words[0]=0,this.length=1;var sd=0;
vendor: 17,995 bytes, line 321
321for(od=this.length-1;od>=0&&(sd!==0||od>=td);od--){var cd=this.words[od]|0;this.words[od]=sd<<26-nd|cd>>>nd,sd=cd&id}return ad&&sd!==0&&(ad.words[ad.length++]=sd),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},td.prototype.ishrn=function(e,t,ed){return $(this.negative===0),this.iushrn(e,t,ed)},td.prototype.shln=function(e){return this.clone().ishln(e)},td.prototype.ushln=function(e){return this.clone().iushln(e)},td.prototype.shrn=function(e){return this.clone().ishrn(e)},td.prototype.ushrn=function(e){return this.clone().iushrn(e)},td.prototype.testn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26,td=1<<t;return this.length<=ed?!1:!!(this.words[ed]&td)},td.prototype.imaskn=function(e){$(typeof e==`number`&&e>=0);var t=e%26,ed=(e-t)/26;if($(this.negative===0,`imaskn works only with positive numbers`),this.length<=ed)return this;if(t!==0&&ed++,this.length=Math.min(ed,this.length),t!==0){var td=67108863^67108863>>>t<<t;this.words[this.length-1]&=td}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},td.prototype.maskn=function(e){return this.clone().imaskn(e)},td.prototype.iaddn=function(e){return $(typeof e==`number`),$(e<67108864),e<0?this.isubn(-e):this.negative===0?this._iaddn(e):this.length===1&&(this.words[0]|0)<=e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this)},td.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},td.prototype.isubn=function(e){if($(typeof e==`number`),$(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},td.prototype.addn=function(e){return this.clone().iaddn(e)},td.prototype.subn=function(e){return this.clone().isubn(e)},td.prototype.iabs=function(){return this.negative=0,this},td.prototype.abs=function(){return this.clone().iabs()},td.prototype._ishlnsubmul=function(e,t,ed){var td=e.length+ed,nd;this._expand(td);var rd,id=0;for(nd=0;nd<e.length;nd++){rd=(this.words[nd+ed]|0)+id;var ad=(e.words[nd]|0)*t;rd-=ad&67108863,id=(rd>>26)-(ad/67108864|0),this.words[nd+ed]=rd&67108863}for(;nd<this.length-ed;nd++)rd=(this.words[nd+ed]|0)+id,id=rd>>26,this.words[nd+ed]=rd&67108863;if(id===0)return this._strip();for($(id===-1),id=0,nd=0;nd<this.length;nd++)rd=-(this.words[nd]|0)+id,id=rd>>26,this.words[nd]=rd&67108863;return this.negative=1,this._strip()},td.prototype._wordDiv=function(e,t){var $=this.length-e.length,ed=this.clone(),nd=e,rd=nd.words[nd.length-1]|0;$=26-this._countBits(rd),$!==0&&(nd=nd.ushln($),ed.iushln($),rd=nd.words[nd.length-1]|0);var id=ed.length-nd.length,ad;if(t!==`mod`){ad=new td(null),ad.length=id+1,ad.words=Array(ad.length);for(var od=0;od<ad.length;od++)ad.words[od]=0}var sd=ed.clone()._ishlnsubmul(nd,1,id);sd.negative===0&&(ed=sd,ad&&(ad.words[id]=1));for(var cd=id-1;cd>=0;cd--){var ld=(ed.words[nd.length+cd]|0)*67108864+(ed.words[nd.length+cd-1]|0);for(ld=Math.min(ld/rd|0,67108863),ed._ishlnsubmul(nd,ld,cd);ed.negative!==0;)ld--,ed.negative=0,ed._ishlnsubmul(nd,1,cd),ed.isZero()||(ed.negative^=1);ad&&(ad.words[cd]=ld)}return ad&&ad._strip(),ed._strip(),t!==`div`&&$!==0&&ed.iushrn($),{div:ad||null,mod:ed}},td.prototype.divmod=function(e,t,ed){if($(!e.isZero()),this.isZero())return{div:new td(0),mod:new td(0)};var nd,rd,id;return this.negative!==0&&e.negative===0?(id=this.neg().divmod(e,t),t!==`mod`&&(nd=id.div.neg()),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.iadd(e)),{div:nd,mod:rd}):this.negative===0&&e.negative!==0?(id=this.divmod(e.neg(),t),t!==`mod`&&(nd=id.div.neg()),{div:nd,mod:id.mod}):(this.negative&e.negative)===0?e.length>this.length||this.cmp(e)<0?{div:new td(0),mod:this}:e.length===1?t===`div`?{div:this.divn(e.words[0]),mod:null}:t===`mod`?{div:null,mod:new td(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new td(this.modrn(e.words[0]))}:this._wordDiv(e,t):(id=this.neg().divmod(e.neg(),t),t!==`div`&&(rd=id.mod.neg(),ed&&rd.negative!==0&&rd.isub(e)),{div:id.div,mod:rd})},td.prototype.div=function(e){return this.divmod(e,`div`,!1).div},td.prototype.mod=function(e){return this.divmod(e,`mod`,!1).mod},td.prototype.umod=function(e){return this.divmod(e,`mod`,!0).mod},td.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var $=t.div.negative===0?t.mod:t.mod.isub(e),ed=e.ushrn(1),td=e.andln(1),nd=$.cmp(ed);return nd<0||td===1&&nd===0?t.div:t.div.negative===0?t.div.iaddn(1):t.div.isubn(1)},td.prototype.modrn=function(e){var t=e<0;t&&(e=-e),$(e<=67108863);for(var ed=(1<<26)%e,td=0,nd=this.length-1;nd>=0;nd--)td=(ed*td+(this.words[nd]|0))%e;return t?-td:td},td.prototype.modn=function(e){return this.modrn(e)},td.prototype.idivn=function(e){var t=e<0;t&&(e=-e),$(e<=67108863);for(var ed=0,td=this.length-1;td>=0;td--){var nd=(this.words[td]|0)+ed*67108864;this.words[td]=nd/e|0,ed=nd%e}return this._strip(),t?this.ineg():this},td.prototype.divn=function(e){return this.clone().idivn(e)},td.prototype.egcd=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=new td(0),ad=new td(1),od=0;t.isEven()&&ed.isEven();)t.iushrn(1),ed.iushrn(1),++od;for(var sd=ed.clone(),cd=t.clone();!t.isZero();){for(var ld=0,ud=1;(t.words[0]&ud)===0&&ld<26;++ld,ud<<=1);if(ld>0)for(t.iushrn(ld);ld-- >0;)(nd.isOdd()||rd.isOdd())&&(nd.iadd(sd),rd.isub(cd)),nd.iushrn(1),rd.iushrn(1);for(var dd=0,fd=1;(ed.words[0]&fd)===0&&dd<26;++dd,fd<<=1);if(dd>0)for(ed.iushrn(dd);dd-- >0;)(id.isOdd()||ad.isOdd())&&(id.iadd(sd),ad.isub(cd)),id.iushrn(1),ad.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(id),rd.isub(ad)):(ed.isub(t),id.isub(nd),ad.isub(rd))}return{a:id,b:ad,gcd:ed.iushln(od)}},td.prototype._invmp=function(e){$(e.negative===0),$(!e.isZero());var t=this,ed=e.clone();t=t.negative===0?t.clone():t.umod(e);for(var nd=new td(1),rd=new td(0),id=ed.clone();t.cmpn(1)>0&&ed.cmpn(1)>0;){for(var ad=0,od=1;(t.words[0]&od)===0&&ad<26;++ad,od<<=1);if(ad>0)for(t.iushrn(ad);ad-- >0;)nd.isOdd()&&nd.iadd(id),nd.iushrn(1);for(var sd=0,cd=1;(ed.words[0]&cd)===0&&sd<26;++sd,cd<<=1);if(sd>0)for(ed.iushrn(sd);sd-- >0;)rd.isOdd()&&rd.iadd(id),rd.iushrn(1);t.cmp(ed)>=0?(t.isub(ed),nd.isub(rd)):(ed.isub(t),rd.isub(nd))}var ld=t.cmpn(1)===0?nd:rd;return ld.cmpn(0)<0&&ld.iadd(e),ld},td.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),$=e.clone();t.negative=0,$.negative=0;for(var ed=0;t.isEven()&&$.isEven();ed++)t.iushrn(1),$.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;$.isEven();)$.iushrn(1);var td=t.cmp($);if(td<0){var nd=t;t=$,$=nd}else if(td===0||$.cmpn(1)===0)break;t.isub($)}while(!0);return $.iushln(ed)},td.prototype.invm=function(e){return this.egcd(e).a.umod(e)},td.prototype.isEven=function(){return(this.words[0]&1)==0},td.prototype.isOdd=function(){return(this.words[0]&1)==1},td.prototype.andln=function(e){return this.words[0]&e},td.prototype.bincn=function(e){$(typeof e==`number`);var t=e%26,ed=(e-t)/26,td=1<<t;if(this.length<=ed)return this._expand(ed+1),this.words[ed]|=td,this;for(var nd=td,rd=ed;nd!==0&&rd<this.length;rd++){var id=this.words[rd]|0;id+=nd,nd=id>>>26,id&=67108863,this.words[rd]=id}return nd!==0&&(this.words[rd]=nd,this.length++),this},td.prototype.isZero=function(){return this.length===1&&this.words[0]===0},td.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this._strip();var ed;if(this.length>1)ed=1;else{t&&(e=-e),$(e<=67108863,`Number is too big`);var td=this.words[0]|0;ed=td===e?0:td<e?-1:1}return this.negative===0?ed:-ed|0},td.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative===0?t:-t|0},td.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,$=this.length-1;$>=0;$--){var ed=this.words[$]|0,td=e.words[$]|0;if(ed!==td){ed<td?t=-1:ed>td&&(t=1);break}}return t},td.prototype.gtn=function(e){return this.cmpn(e)===1},td.prototype.gt=function(e){return this.cmp(e)===1},td.prototype.gten=function(e){return this.cmpn(e)>=0},td.prototype.gte=function(e){return this.cmp(e)>=0},td.prototype.ltn=function(e){return this.cmpn(e)===-1},td.prototype.lt=function(e){return this.cmp(e)===-1},td.prototype.lten=function(e){return this.cmpn(e)<=0},td.prototype.lte=function(e){return this.cmp(e)<=0},td.prototype.eqn=function(e){return this.cmpn(e)===0},td.prototype.eq=function(e){return this.cmp(e)===0},td.red=function(e){return new wd(e)},td.prototype.toRed=function(e){return $(!this.red,`Already a number in reduction context`),$(this.negative===0,`red works only with positives`),e.convertTo(this)._forceRed(e)},td.prototype.fromRed=function(){return $(this.red,`fromRed works only with numbers in reduction context`),this.red.convertFrom(this)},td.prototype._forceRed=function(e){return this.red=e,this},td.prototype.forceRed=function(e){return $(!this.red,`Already a number in reduction context`),this._forceRed(e)},td.prototype.redAdd=function(e){return $(this.red,`redAdd works only with red numbers`),this.red.add(this,e)},td.prototype.redIAdd=function(e){return $(this.red,`redIAdd works only with red numbers`),this.red.iadd(this,e)},td.prototype.redSub=function(e){return $(this.red,`redSub works only with red numbers`),this.red.sub(this,e)},td.prototype.redISub=function(e){return $(this.red,`redISub works only with red numbers`),this.red.isub(this,e)},td.prototype.redShl=function(e){return $(this.red,`redShl works only with red numbers`),this.red.shl(this,e)},td.prototype.redMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.mul(this,e)},td.prototype.redIMul=function(e){return $(this.red,`redMul works only with red numbers`),this.red._verify2(this,e),this.red.imul(this,e)},td.prototype.redSqr=function(){return $(this.red,`redSqr works only with red numbers`),this.red._verify1(this),this.red.sqr(this)},td.prototype.redISqr=function(){return $(this.red,`redISqr works only with red numbers`),this.red._verify1(this),this.red.isqr(this)},td.prototype.redSqrt=function(){return $(this.red,`redSqrt works only with red numbers`),this.red._verify1(this),this.red.sqrt(this)},td.prototype.redInvm=function(){return $(this.red,`redInvm works only with red numbers`),this.red._verify1(this),this.red.invm(this)},td.prototype.redNeg=function(){return $(this.red,`redNeg works only with red numbers`),this.red._verify1(this),this.red.neg(this)},td.prototype.redPow=function(e){return $(this.red&&!e.red,`redPow(normalNum)`),this.red._verify1(this),this.red.pow(this,e)};var vd={k256:null,p224:null,p192:null,p25519:null};function yd(e,t){this.name=e,this.p=new td(t,16),this.n=this.p.bitLength(),this.k=new td(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}yd.prototype._tmp=function(){var e=new td(null);return e.words=Array(Math.ceil(this.n/13)),e},yd.prototype.ireduce=function(e){var t=e,$;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),$=t.bitLength();while($>this.n);var ed=$<this.n?-1:t.ucmp(this.p);return ed===0?(t.words[0]=0,t.length=1):ed>0?t.isub(this.p):t.strip===void 0?t._strip():t.strip(),t},yd.prototype.split=function(e,t){e.iushrn(this.n,0,t)},yd.prototype.imulK=function(e){return e.imul(this.k)};function bd(){yd.call(this,`k256`,`ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f`)}ed(bd,yd),bd.prototype.split=function(e,t){for(var $=4194303,ed=Math.min(e.length,9),td=0;td<ed;td++)t.words[td]=e.words[td];if(t.length=ed,e.length<=9){e.words[0]=0,e.length=1;return}var nd=e.words[9];for(t.words[t.length++]=nd&$,td=10;td<e.length;td++){var rd=e.words[td]|0;e.words[td-10]=(rd&$)<<4|nd>>>22,nd=rd}nd>>>=22,e.words[td-10]=nd,nd===0&&e.length>10?e.length-=10:e.length-=9},bd.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,$=0;$<e.length;$++){var ed=e.words[$]|0;t+=ed*977,e.words[$]=t&67108863,t=ed*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function xd(){yd.call(this,`p224`,`ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001`)}ed(xd,yd);function Sd(){yd.call(this,`p192`,`ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff`)}ed(Sd,yd);function Cd(){yd.call(this,`25519`,`7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed`)}ed(Cd,yd),Cd.prototype.imulK=function(e){for(var t=0,$=0;$<e.length;$++){var ed=(e.words[$]|0)*19+t,td=ed&67108863;ed>>>=26,e.words[$]=td,t=ed}return t!==0&&(e.words[e.length++]=t),e},td._prime=function(e){if(vd[e])return vd[e];var t;if(e===`k256`)t=new bd;else if(e===`p224`)t=new xd;else if(e===`p192`)t=new Sd;else if(e===`p25519`)t=new Cd;else throw Error(`Unknown prime `+e);return vd[e]=t,t};function wd(e){if(typeof e==`string`){var t=td._prime(e);this.m=t.p,this.prime=t}else $(e.gtn(1),`modulus must be greater than 1`),this.m=e,this.prime=null}wd.prototype._verify1=function(e){$(e.negative===0,`red works only with positives`),$(e.red,`red works only with red numbers`)},wd.prototype._verify2=function(e,t){$((e.negative|t.negative)===0,`red works only with positives`),$(e.red&&e.red===t.red,`red works only with red numbers`)},wd.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(od(e,e.umod(this.m)._forceRed(this)),e)},wd.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},wd.prototype.add=function(e,t){this._verify2(e,t);var $=e.add(t);return $.cmp(this.m)>=0&&$.isub(this.m),$._forceRed(this)},wd.prototype.iadd=function(e,t){this._verify2(e,t);var $=e.iadd(t);return $.cmp(this.m)>=0&&$.isub(this.m),$},wd.prototype.sub=function(e,t){this._verify2(e,t);var $=e.sub(t);return $.cmpn(0)<0&&$.iadd(this.m),$._forceRed(this)},wd.prototype.isub=function(e,t){this._verify2(e,t);var $=e.isub(t);return $.cmpn(0)<0&&$.iadd(this.m),$},wd.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},wd.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},wd.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},wd.prototype.isqr=function(e){return this.imul(e,e.clone())},wd.prototype.sqr=function(e){return this.mul(e,e)},wd.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if($(t%2==1),t===3){var ed=this.m.add(new td(1)).iushrn(2);return this.pow(e,ed)}for(var nd=this.m.subn(1),rd=0;!nd.isZero()&&nd.andln(1)===0;)rd++,nd.iushrn(1);$(!nd.isZero());var id=new td(1).toRed(this),ad=id.redNeg(),od=this.m.subn(1).iushrn(1),sd=this.m.bitLength();for(sd=new td(2*sd*sd).toRed(this);this.pow(sd,od).cmp(ad)!==0;)sd.redIAdd(ad);for(var cd=this.pow(sd,nd),ld=this.pow(e,nd.addn(1).iushrn(1)),ud=this.pow(e,nd),dd=rd;ud.cmp(id)!==0;){for(var fd=ud,pd=0;fd.cmp(id)!==0;pd++)fd=fd.redSqr();$(pd<dd);var md=this.pow(cd,new td(1).iushln(dd-pd-1));ld=ld.redMul(md),cd=md.redSqr(),ud=ud.redMul(cd),dd=pd}return ld},wd.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative===0?this.imod(t):(t.negative=0,this.imod(t).redNeg())},wd.prototype.pow=function(e,t){if(t.isZero())return new td(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var $=4,ed=Array(1<<$);ed[0]=new td(1).toRed(this),ed[1]=e;for(var nd=2;nd<ed.length;nd++)ed[nd]=this.mul(ed[nd-1],e);var rd=ed[0],id=0,ad=0,od=t.bitLength()%26;for(od===0&&(od=26),nd=t.length-1;nd>=0;nd--){for(var sd=t.words[nd],cd=od-1;cd>=0;cd--){var ld=sd>>cd&1;if(rd!==ed[0]&&(rd=this.sqr(rd)),ld===0&&id===0){ad=0;continue}id<<=1,id|=ld,ad++,!(ad!==$&&(nd!==0||cd!==0))&&(rd=this.mul(rd,ed[id]),ad=0,id=0)}od=26}return rd},wd.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},wd.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},td.mont=function(e){return new Td(e)};function Td(e){wd.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new td(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ed(Td,wd),Td.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Td.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Td.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var $=e.imul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),td=$.isub(ed).iushrn(this.shift),nd=td;return td.cmp(this.m)>=0?nd=td.isub(this.m):td.cmpn(0)<0&&(nd=td.iadd(this.m)),nd._forceRed(this)},Td.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new td(0)._forceRed(this);var $=e.mul(t),ed=$.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),nd=$.isub(ed).iushrn(this.shift),rd=nd;return nd.cmp(this.m)>=0?rd=nd.isub(this.m):nd.cmpn(0)<0&&(rd=nd.iadd(this.m)),rd._forceRed(this)},Td.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(t===void 0||t,e)})),require_vm_browserify=__commonJSMin((exports=>{var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var $=0;$<e.length;$++)if(e[$]===t)return $;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var $ in e)t.push($);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var $=0;$<e.length;$++)t(e[$],$,e)},defineProp=function(){try{return Object.defineProperty({},`_`,{}),function(e,t,$){Object.defineProperty(e,t,{writable:!0,enumerable:!1,
321configurable:!0,value:$})}}catch{return function(e,t,$){e[t]=$}}}(),globals=`Array.Boolean.Date.Error.EvalError.Function.Infinity.JSON.Math.NaN.Number.Object.RangeError.ReferenceError.RegExp.String.SyntaxError.TypeError.URIError.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.eval.isFinite.isNaN.parseFloat.parseInt.undefined.unescape`.split(`.`);function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError(`needs a 'context' argument.`);var t=document.createElement(`iframe`);t.style||={},t.style.display=`none`,document.body.appendChild(t);var $=t.contentWindow,ed=$.eval,td=$.execScript;!ed&&td&&(td.call($,`null`),ed=$.eval),forEach(Object_keys(e),function(t){$[t]=e[t]}),forEach(globals,function(t){e[t]&&($[t]=e[t])});var nd=Object_keys($),rd=ed.call($,this.code);return forEach(Object_keys($),function(t){(t in e||indexOf(nd,t)===-1)&&(e[t]=$[t])}),forEach(globals,function(t){t in e||defineProp(e,t,$[t])}),document.body.removeChild(t),rd},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),$=this.runInContext(t);return e&&forEach(Object_keys(t),function($){e[$]=t[$]}),$},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var $=Script(t);return $[e].apply($,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;
321return typeof e==`object`&&forEach(Object_keys(e),function($){t[$]=e[$]}),t}})),require_api=__commonJSMin((e=>{var t=require_asn1$1(),$=require_inherits_browser(),ed=e;ed.define=function(e,t){return new td(e,t)};function td(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}td.prototype._createNamed=function(e){var t;try{t=require_vm_browserify().runInThisContext(`(function `+this.name+`(entity) { 322 this._initNamed(entity); 323})`)}catch{t=function(e){this._initNamed(e)}}return $(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},td.prototype._getDecoder=function(e){return e||=`der`,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(t.decoders[e])),this.decoders[e]},td.prototype.decode=function(e,t,$){return this._getDecoder(t).decode(e,$)},td.prototype._getEncoder=function(e){return e||=`der`,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(t.encoders[e])),this.encoders[e]},td.prototype.encode=function(e,t,$){return this._getEncoder(t).encode(e,$)}})),require_reporter=__commonJSMin((e=>{var t=require_inherits_browser();function $(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}e.Reporter=$,$.prototype.isError=function(e){return e instanceof ed},$.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},$.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},$.prototype.enterKey=function(e){return this._reporterState.path.push(e)},$.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},$.prototype.leaveKey=function(e,t,$){var ed=this._reporterState;this.exitKey(e),ed.obj!==null&&(ed.obj[t]=$)},$.prototype.path=function(){return this._reporterState.path.join(`/`)},$.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},$.prototype.leaveObject=function(e){var t=this._reporterState,$=t.obj;return t.obj=e,$},$.prototype.error=function(e){var t,$=this._reporterState,td=e instanceof ed;if(t=td?e:new ed($.path.map(function(e){return`[`+JSON.stringify(e)+`]`}).join(``),e.message||e,e.stack),!$.options.partial)throw t;return td||$.errors.push(t),t},$.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function ed(e,t){this.path=e,this.rethrow(t)}t(ed,Error),ed.prototype.rethrow=function(e){if(this.message=e+` at: `+(this.path||`(shallow)`),Error.captureStackTrace&&Error.captureStackTrace(this,ed),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}})),require_buffer=__commonJSMin((e=>{var t=require_inherits_browser(),$=require_base().Reporter,ed=require_buffer$1().Buffer;function td(e,t){if($.call(this,t),!ed.isBuffer(e)){this.error(`Input not Buffer`);return}this.base=e,this.offset=0,this.length=e.length}t(td,$),e.DecoderBuffer=td,td.prototype.save=function(){return{offset:this.offset,reporter:$.prototype.save.call(this)}},td.prototype.restore=function(e){var t=new td(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,$.prototype.restore.call(this,e.reporter),t},td.prototype.isEmpty=function(){return this.offset===this.length},td.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||`DecoderBuffer overrun`)},td.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||`DecoderBuffer overrun`);var $=new td(this.base);return $._reporterState=this._reporterState,$.offset=this.offset,$.length=this.offset+e,this.offset+=e,$},td.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function nd(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof nd||(e=new nd(e,t)),this.length+=e.length,e},this);else if(typeof e==`number`){if(!(0<=e&&e<=255))return t.error(`non-byte EncoderBuffer value`);this.value=e,this.length=1}else if(typeof e==`string`)this.value=e,this.length=ed.byteLength(e);else if(ed.isBuffer(e))this.value=e,this.length=e.length;else return t.error(`Unsupported type: `+typeof e)}e.EncoderBuffer=nd,nd.prototype.join=function(e,t){return e||=new ed(this.length),t||=0,this.length===0||(Array.isArray(this.value)?this.value.forEach(function($){$.j
323oin(e,t),t+=$.length}):(typeof this.value==`number`?e[t]=this.value:typeof this.value==`string`?e.write(this.value,t):ed.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}})),require_node=__commonJSMin(((e,t)=>{var $=require_base().Reporter,ed=require_base().EncoderBuffer,td=require_base().DecoderBuffer,nd=require_minimalistic_assert(),rd=`seq.seqof.set.setof.objid.bool.gentime.utctime.null_.enum.int.objDesc.bitstr.bmpstr.charstr.genstr.graphstr.ia5str.iso646str.numstr.octstr.printstr.t61str.unistr.utf8str.videostr`.split(`.`),id=[`key`,`obj`,`use`,`optional`,`explicit`,`implicit`,`def`,`choice`,`any`,`contains`].concat(rd),ad=[`_peekTag`,`_decodeTag`,`_use`,`_decodeStr`,`_decodeObjid`,`_decodeTime`,`_decodeNull`,`_decodeInt`,`_decodeBool`,`_decodeList`,`_encodeComposite`,`_encodeStr`,`_encodeObjid`,`_encodeTime`,`_encodeNull`,`_encodeInt`,`_encodeBool`];function od(e,t){var $={};this._baseState=$,$.enc=e,$.parent=t||null,$.children=null,$.tag=null,$.args=null,$.reverseArgs=null,$.choice=null,$.optional=!1,$.any=!1,$.obj=!1,$.use=null,$.useDecoder=null,$.key=null,$.default=null,$.explicit=null,$.implicit=null,$.contains=null,$.parent||($.children=[],this._wrap())}t.exports=od;var sd=[`enc`,`parent`,`children`,`tag`,`args`,`reverseArgs`,`choice`,`optional`,`any`,`obj`,`use`,`alteredUse`,`key`,`default`,`explicit`,`implicit`,`contains`];od.prototype.clone=function(){var e=this._baseState,t={};sd.forEach(function($){t[$]=e[$]});var $=new this.constructor(t.parent);return $._baseState=t,$},od.prototype._wrap=function(){var e=this._baseState;id.forEach(function(t){this[t]=function(){var $=new this.constructor(this);return e.children.push($),$[t].apply($,arguments)}},this)},od.prototype._init=function(e){var t=this._baseState;nd(t.parent===null),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),nd.equal(t.children.length,1,`Root node can have only one child`)},od.prototype._useArgs=function(e){var t=this._baseState,$=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),$.length!==0&&(nd(t.children===null),t.children=$,$.forEach(function(e){e._baseState.parent=this},this)),e.length!==0&&(nd(t.args===null),t.args=e,t.reverseArgs=e.map(function(e){if(typeof e!=`object`||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function($){$==($|0)&&($|=0);var ed=e[$];t[ed]=$}),t}))},ad.forEach(function(e){od.prototype[e]=function(){var t=this._baseState;throw Error(e+` not implemented for encoding: `+t.enc)}}),rd.forEach(function(e){od.prototype[e]=function(){var t=this._baseState,$=Array.prototype.slice.call(arguments);return nd(t.tag===null),t.tag=e,this._useArgs($),this}}),od.prototype.use=function(e){nd(e);var t=this._baseState;return nd(t.use===null),t.use=e,this},od.prototype.optional=function(){var e=this._baseState;return e.optional=!0,this},od.prototype.def=function(e){var t=this._baseState;return nd(t.default===null),t.default=e,t.optional=!0,this},od.prototype.explicit=function(e){var t=this._baseState;return nd(t.explicit===null&&t.implicit===null),t.explicit=e,this},od.prototype.implicit=function(e){var t=this._baseState;return nd(t.explicit===null&&t.implicit===null),t.implicit=e,this},od.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this},od.prototype.key=function(e){var t=this._baseState;return nd(t.key===null),t.key=e,this},od.prototype.any=function(){var e=this._baseState;return e.any=!0,this},od.prototype.choice=function(e){var t=this._baseState;return nd(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},od.prototype.contains=function(e){var t=this._baseState;return nd(t.use===null),t.contains=e,this},od.prototype._decode=function(e,t){var $=this._baseState;if($.parent===null)return e.wrapResult($.children[0]._decode(e,t));var ed=$.default,nd=!0,rd=null;if($.key!==null&&(rd=e.enterKey($.key)),$.optional){var id=null;if($.explicit===null?$.implicit===null?$.tag!==null&&(id=$.tag):id=$.implicit:id=$.explicit,id===null&&!$.any){var ad=e.save();try{$.choice===null?this._decodeGeneric($.tag,e,t):this._decodeChoice(e,t),nd=!0}catch{nd=!1}e.restore(ad)}else if(nd=this._peekTag(e,id,$.any),e.isError(nd))return nd}var od;if($.obj&&nd&&(od=e.enterObject()),nd){if($.explicit!==null){var sd=this._decodeTag(e,$.explicit);if(e.isError(sd))return sd;e=sd}var cd=e.offset;if($.use===null&&$.choice===null){if($.any)var ad=e.save();var ld=this._decodeTag(e,$.implicit===null?$.tag:$.implicit,$.any);if(e.isError(ld))return ld;$.any?ed=e.raw(ad):e=ld}if(t&&t.track&&$.tag!==null&&t.track(e.path(),cd,e.length,`tagged`),t&&t.track&&$.tag!==null&&t.track(e.path(),e.offset,e.length,`content`),ed=$.any?ed:$.choice===null?this._decodeGeneric($.tag,e,t):this._decodeChoice(e,t),e.isError(ed))return ed;if(!$.any&&$.choice===null&&$.children!==null&&$.children.forEac
323h(function($){$._decode(e,t)}),$.contains&&($.tag===`octstr`||$.tag===`bitstr`)){var ud=new td(ed);ed=this._getUse($.contains,e._reporterState.obj)._decode(ud,t)}}return $.obj&&nd&&(ed=e.leaveObject(od)),$.key!==null&&(ed!==null||nd===!0)?e.leaveKey(rd,$.key,ed):rd!==null&&e.exitKey(rd),ed},od.prototype._decodeGeneric=function(e,t,$){var ed=this._baseState;return e===`seq`||e===`set`?null:e===`seqof`||e===`setof`?this._decodeList(t,e,ed.args[0],$):/str$/.test(e)?this._decodeStr(t,e,$):e===`objid`&&ed.args?this._decodeObjid(t,ed.args[0],ed.args[1],$):e===`objid`?this._decodeObjid(t,null,null,$):e===`gentime`||e===`utctime`?this._decodeTime(t,e,$):e===`null_`?this._decodeNull(t,$):e===`bool`?this._decodeBool(t,$):e===`objDesc`?this._decodeStr(t,e,$):e===`int`||e===`enum`?this._decodeInt(t,ed.args&&ed.args[0],$):ed.use===null?t.error(`unknown tag: `+e):this._getUse(ed.use,t._reporterState.obj)._decode(t,$)},od.prototype._getUse=function(e,t){var $=this._baseState;return $.useDecoder=this._use(e,t),nd($.useDecoder._baseState.parent===null),$.useDecoder=$.useDecoder._baseState.children[0],$.implicit!==$.useDecoder._baseState.implicit&&($.useDecoder=$.useDecoder.clone(),$.useDecoder._baseState.implicit=$.implicit),$.useDecoder},od.prototype._decodeChoice=function(e,t){var $=this._baseState,ed=null,td=!1;return Object.keys($.choice).some(function(nd){var rd=e.save(),id=$.choice[nd];try{var ad=id._decode(e,t);if(e.isError(ad))return!1;ed={type:nd,value:ad},td=!0}catch{return e.restore(rd),!1}return!0},this),td?ed:e.error(`Choice not matched`)},od.prototype._createEncoderBuffer=function(e){return new ed(e,this.reporter)},od.prototype._encode=function(e,t,$){var ed=this._baseState;if(!(ed.default!==null&&ed.default===e)){var td=this._encodeValue(e,t,$);if(td!==void 0&&!this._skipDefault(td,t,$))return td}},od.prototype._encodeValue=function(e,t,ed){var td=this._baseState;if(td.parent===null)return td.children[0]._encode(e,t||new $);var nd=null;if(this.reporter=t,td.optional&&e===void 0)if(td.default!==null)e=td.default;else return;var rd=null,id=!1;if(td.any)nd=this._createEncoderBuffer(e);else if(td.choice)nd=this._encodeChoice(e,t);else if(td.contains)rd=this._getUse(td.contains,ed)._encode(e,t),id=!0;else if(td.children)rd=td.children.map(function($){if($._baseState.tag===`null_`)return $._encode(null,t,e);if($._baseState.key===null)return t.error(`Child should have a key`);var ed=t.enterKey($._baseState.key);if(typeof e!=`object`)return t.error(`Child expected, but input is not object`);var td=$._encode(e[$._baseState.key],t,e);return t.leaveKey(ed),td},this).filter(function(e){return e}),rd=this._createEncoderBuffer(rd);else if(td.tag===`seqof`||td.tag===`setof`){if(!(td.args&&td.args.length===1))return t.error(`Too many args for : `+td.tag);if(!Array.isArray(e))return t.error(`seqof/setof, but data is not Array`);var ad=this.clone();ad._baseState.implicit=null,rd=this._createEncoderBuffer(e.map(function($){var ed=this._baseState;return this._getUse(ed.args[0],e)._encode($,t)},ad))}else td.use===null?(rd=this._encodePrimitive(td.tag,e),id=!0):nd=this._getUse(td.use,ed)._encode(e,t);var nd;if(!td.any&&td.choice===null){var od=td.implicit===null?td.tag:td.implicit,sd=td.implicit===null?`universal`:`context`;od===null?td.use===null&&t.error(`Tag could be omitted only for .use()`):td.use===null&&(nd=this._encodeComposite(od,id,sd,rd))}return td.explicit!==null&&(nd=this._encodeComposite(td.explicit,!1,`context`,nd)),nd},od.prototype._encodeChoice=function(e,t){var $=this._baseState,ed=$.choice[e.type];return ed||nd(!1,e.type+` not found in `+JSON.stringify(Object.keys($.choice))),ed._encode(e.value,t)},od.prototype._encodePrimitive=function(e,t){var $=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e===`objid`&&$.args)return this._encodeObjid(t,$.reverseArgs[0],$.args[1]);if(e===`objid`)return this._encodeObjid(t,null,null);if(e===`gentime`||e===`utctime`)return this._encodeTime(t,e);if(e===`null_`)return this._encodeNull();if(e===`int`||e===`enum`)return this._encodeInt(t,$.args&&$.reverseArgs[0]);if(e===`bool`)return this._encodeBool(t);if(e===`objDesc`)return this._encodeStr(t,e);throw Error(`Unsupported tag: `+e)},od.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},od.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}})),require_base=__commonJSMin((e=>{var t=e;t.Reporter=require_reporter().Reporter,t.DecoderBuffer=require_buffer().DecoderBuffer,t.EncoderBuffer=require_buffer().EncoderBuffer,t.Node=require_node()})),require_der$2=__commonJSMin((e=>{var t=require_constants$1();e.tagClass={0:`universal`,1:`application`,2:`context`,3:`private`},e.tagClassByName=t._reverse(e.tagClass),e.tag={0:`end`,1:`bool`,2:`int`,3:`bitstr`,4:`octstr`,5:`null_`,6:`objid`,7:`objDesc`,8:`external`,9:`real`,10:`enum`,11:`embed`,12:`utf8str`,13:`relativeOid`,16:`seq`,17:`set`,18:`numstr`,19:`printstr`,20:`t61str`,21:`videostr`,22:`ia5str`,23:`utctime`,24:`gentime`,25:`graphstr`,26:`iso646str`,27:`genstr`,28:`unistr`,29:`charstr`,30:`bmpstr`},e.tagByName=t._reverse(e.tag)})),require_constants$1=__commonJSMin((e=>{var t=e;t._reverse=function(e){var t={};return Object.keys(e).forEach(function($){($|0)==$&&($|=0);var ed=e[$];t[ed]=$}),t},t.der=require_der$2()})),require_der$1=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_asn1$1(),td=ed.base,nd=ed.bignum,rd=ed.constants.der;function id(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new ad,this.tree._init(e.body)}t.exports=id,id.prototype.decode=function(e,t){return e instanceof td.DecoderBuffer||(e=new td.DecoderBuffer(e,t)),this.tree._decode(e,t)};function ad(e){td.Node.call(this,`der`,e)}$(ad,td.Node),ad.prototype._peekTag=function(e,t,$){if(e.isEmpty())return!1;var ed=e.save(),td=od(e,`Failed to peek tag: "`+t+`"`);return e.isError(td)?td:(e.restore(ed),td.tag===t||td.tagStr===t||td.tagStr+`of`===t||$)},ad.prototype._decodeTag=function(e,t,$){var ed=od(e,`Failed to decode tag of "`+t+`"`);if(e.isError(ed))return ed;var td=sd(e,ed.primitive,`Failed to get length of "`+t+`"`);if(e.isError(td))return td;if(!$&&ed.tag!==t&&ed.tagStr!==t&&ed.tagStr+`of`!==t)return e.error(`Failed to match tag: "`+t+`"`);if(ed.primitive||td!==null)return e.skip(td,`Failed to match body of: "`+t+`"`);var nd=e.save(),rd=this._skipUntilEnd(e,`Failed to skip indefinite length body: "`+this.tag+`"`);return e.isError(rd)?rd:(td=e.offset-nd.offset,e.restore(nd),e.skip(td,`Failed to match body of: "`+t+`"`))},ad.prototype._skipUntilEnd=function(e,t){for(;;){var $=od(e,t);if(e.isError($))return $;var ed=sd(e,$.primitive,t);if(e.isError(ed))return ed;var td=$.primitive||ed!==null?e.skip(ed):this._skipUntilEnd(e,t);if(e.isError(td))return td;if($.tagStr===`end`)break}},ad.prototype._decodeList=function(e,t,$,ed){for(var td=[];!e.isEmpty();){var nd=this._peekTag(e,`end`);
323if(e.isError(nd))return nd;var rd=$.decode(e,`der`,ed);if(e.isError(rd)&&nd)break;td.push(rd)}return td},ad.prototype._decodeStr=function(e,t){if(t===`bitstr`){var $=e.readUInt8();return e.isError($)?$:{unused:$,data:e.raw()}}else if(t===`bmpstr`){var ed=e.raw();if(ed.length%2==1)return e.error(`Decoding of string type: bmpstr length mismatch`);for(var td=``,nd=0;nd<ed.length/2;nd++)td+=String.fromCharCode(ed.readUInt16BE(nd*2));return td}else if(t===`numstr`){var rd=e.raw().toString(`ascii`);return this._isNumstr(rd)?rd:e.error(`Decoding of string type: numstr unsupported characters`)}else if(t===`octstr`)return e.raw();else if(t===`objDesc`)return e.raw();else if(t===`printstr`){var id=e.raw().toString(`ascii`);return this._isPrintstr(id)?id:e.error(`Decoding of string type: printstr unsupported characters`)}else if(/str$/.test(t))return e.raw().toString();else return e.error(`Decoding of string type: `+t+` unsupported`)},ad.prototype._decodeObjid=function(e,t,$){for(var ed,td=[],nd=0;!e.isEmpty();){var rd=e.readUInt8();nd<<=7,nd|=rd&127,rd&128||(td.push(nd),nd=0)}rd&128&&td.push(nd);var id=td[0]/40|0,ad=td[0]%40;if(ed=$?td:[id,ad].concat(td.slice(1)),t){var od=t[ed.join(` `)];od===void 0&&(od=t[ed.join(`.`)]),od!==void 0&&(ed=od)}return ed},ad.prototype._decodeTime=function(e,t){var $=e.raw().toString();if(t===`gentime`)var ed=$.slice(0,4)|0,td=$.slice(4,6)|0,nd=$.slice(6,8)|0,rd=$.slice(8,10)|0,id=$.slice(10,12)|0,ad=$.slice(12,14)|0;else if(t===`utctime`){var ed=$.slice(0,2)|0,td=$.slice(2,4)|0,nd=$.slice(4,6)|0,rd=$.slice(6,8)|0,id=$.slice(8,10)|0,ad=$.slice(10,12)|0;ed=ed<70?2e3+ed:1900+ed}else return e.error(`Decoding `+t+` time is not supported yet`);return Date.UTC(ed,td-1,nd,rd,id,ad,0)},ad.prototype._decodeNull=function(e){return null},ad.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:t!==0},ad.prototype._decodeInt=function(e,t){var $=new nd(e.raw());return t&&($=t[$.toString(10)]||$),$},ad.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getDecoder(`der`).tree};function od(e,t){var $=e.readUInt8(t);if(e.isError($))return $;var ed=rd.tagClass[$>>6],td=($&32)==0;if(($&31)==31){var nd=$;for($=0;(nd&128)==128;){if(nd=e.readUInt8(t),e.isError(nd))return nd;$<<=7,$|=nd&127}}else $&=31;var id=rd.tag[$];return{cls:ed,primitive:td,tag:$,tagStr:id}}function sd(e,t,$){var ed=e.readUInt8($);if(e.isError(ed))return ed;if(!t&&ed===128)return null;if(!(ed&128))return ed;var td=ed&127;if(td>4)return e.error(`length octect is too long`);ed=0;for(var nd=0;nd<td;nd++){ed<<=8;var rd=e.readUInt8($);if(e.isError(rd))return rd;ed|=rd}return ed}})),require_pem$1=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_buffer$1().Buffer,td=require_der$1();function nd(e){td.call(this,e),this.enc=`pem`}$(nd,td),t.exports=nd,nd.prototype.decode=function(e,t){for(var $=e.toString().split(/[\r\n]+/g),nd=t.label.toUpperCase(),rd=/^-----(BEGIN|END) ([^-]+)-----$/,id=-1,ad=-1,od=0;od<$.length;od++){var sd=$[od].match(rd);if(sd!==null&&sd[2]===nd)if(id===-1){if(sd[1]!==`BEGIN`)break;id=od}else{if(sd[1]!==`END`)break;ad=od;break}}if(id===-1||ad===-1)throw Error(`PEM section not found for: `+nd);var cd=$.slice(id+1,ad).join(``);cd.replace(/[^a-z0-9\+\/=]+/gi,``);var ld=new ed(cd,`base64`);return td.prototype.decode.call(this,ld,t)}})),require_decoders=__commonJSMin((e=>{var t=e;t.der=require_der$1(),t.pem=require_pem$1()})),require_der=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_buffer$1().Buffer,td=require_asn1$1(),nd=td.base,rd=td.constants.der;function id(e){this.enc=`der`,this.name=e.name,this.entity=e,this.tree=new ad,this.tree._init(e.body)}t.exports=id,id.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function ad(e){nd.Node.call(this,`der`,e)}$(ad,nd.Node),ad.prototype._encodeComposite=function(e,t,$,td){var nd=sd(e,t,$,this.reporter);if(td.length<128){var rd=new ed(2);return rd[0]=nd,rd[1]=td.length,this._createEncoderBuffer([rd,td])}for(var id=1,ad=td.length;ad>=256;ad>>=8)id++;var rd=new ed(2+id);rd[0]=nd,rd[1]=128|id;for(var ad=1+id,od=td.length;od>0;ad--,od>>=8)rd[ad]=od&255;return this._createEncoderBuffer([rd,td])},ad.prototype._encodeStr=function(e,t){if(t===`bitstr`)return this._createEncoderBuffer([e.unused|0,e.data]);if(t===`bmpstr`){for(var $=new ed(e.length*2),td=0;td<e.length;td++)$.writeUInt16BE(e.charCodeAt(td),td*2);return this._createEncoderBuffer($)}else if(t===`numstr`)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: numstr supports only digits and space`);else if(t===`printstr`)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error(`Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark`);else if(/str$/.test(t))return this._createEncoderBuffer(e);else if(t===`objDesc`)return this._createEncoderBuffer(e);else return this.reporter.error(`Encoding of string type: `+t+` unsupported`)},ad.prototype._encodeObjid=function(e,t,$){if(typeof e==`string`){if(!t)return this.reporter.error(`string objid given, but no values map found`);if(!t.hasOwnProperty(e))return this.reporter.error(`objid not found in values map`);e=t[e].split(/[\s\.]+/g);for(var td=0;td<e.length;td++)e[td]|=0}else if(Array.isArray(e)){e=e.slice();for(var td=0;td<e.length;td++)e[td]|=0}if(!Array.isArray(e))return this.reporter.error(`objid() should be either array or string, got: `+JSON.stringify(e));if(!$){if(e[1]>=40)return this.reporter.error(`Second objid identifier OOB`);e.splice(0,2,e[0]*40+e[1])}for(var nd=0,td=0;td<e.length;td++){var rd=e[td];for(nd++;rd>=128;rd>>=7)nd++}for(var id=new ed(nd),ad=id.length-1,td=e.length-1;td>=0;td--){var rd=e[td];for(id[ad--]=rd&127;(rd>>=7)>0;)id[ad--]=128|rd&127}return this._createEncoderBuffer(id)};function od(e){return e<10?`0`+e:e}ad.prototype._encodeTime=function(e,t){var $,ed=new Date(e);return t===`gentime`?$=[od(ed.getFullYear()),od(ed.getUTCMonth()+1),od(ed.getUTCDate()),od(ed.getUTCHours()),od(ed.getUTCMinutes()),od(ed.getUTCSeconds()),`Z`].join(``):t===`utctime`?$=[od(ed.getFullYear()%100),od(ed.getUTCMonth()+1),od(ed.getUTCDate()),od(ed.getUTCHours()),od(ed.getUTCMinutes()),od(ed.getUTCSeconds()),`Z`].join(``):this.reporter.error(`Encoding `+t+` time is not supported yet`),this._encodeStr($,`octstr`)},ad.prototype._encodeNull=function(){return this._createEncoderBuffer(``)},ad.prototype._encodeInt=function(e,t){if(typeof e==`string`){if(!t)return this.reporter.error(`String int or enum given, but no values map`);
323if(!t.hasOwnProperty(e))return this.reporter.error(`Values map doesn't contain: `+JSON.stringify(e));e=t[e]}if(typeof e!=`number`&&!ed.isBuffer(e)){var $=e.toArray();!e.sign&&$[0]&128&&$.unshift(0),e=new ed($)}if(ed.isBuffer(e)){var td=e.length;e.length===0&&td++;var nd=new ed(td);return e.copy(nd),e.length===0&&(nd[0]=0),this._createEncoderBuffer(nd)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var td=1,rd=e;rd>=256;rd>>=8)td++;for(var nd=Array(td),rd=nd.length-1;rd>=0;rd--)nd[rd]=e&255,e>>=8;return nd[0]&128&&nd.unshift(0),this._createEncoderBuffer(new ed(nd))},ad.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},ad.prototype._use=function(e,t){return typeof e==`function`&&(e=e(t)),e._getEncoder(`der`).tree},ad.prototype._skipDefault=function(e,t,$){var ed=this._baseState,td;if(ed.default===null)return!1;var nd=e.join();if(ed.defaultBuffer===void 0&&(ed.defaultBuffer=this._encodeValue(ed.default,t,$).join()),nd.length!==ed.defaultBuffer.length)return!1;for(td=0;td<nd.length;td++)if(nd[td]!==ed.defaultBuffer[td])return!1;return!0};function sd(e,t,$,ed){var td;if(e===`seqof`?e=`seq`:e===`setof`&&(e=`set`),rd.tagByName.hasOwnProperty(e))td=rd.tagByName[e];else if(typeof e==`number`&&(e|0)===e)td=e;else return ed.error(`Unknown tag: `+e);return td>=31?ed.error(`Multi-octet tag encoding unsupported`):(t||(td|=32),td|=rd.tagClassByName[$||`universal`]<<6,td)}})),require_pem=__commonJSMin(((e,t)=>{var $=require_inherits_browser(),ed=require_der();function td(e){ed.call(this,e),this.enc=`pem`}$(td,ed),t.exports=td,td.prototype.encode=function(e,t){for(var $=ed.prototype.encode.call(this,e).toString(`base64`),td=[`-----BEGIN `+t.label+`-----`],nd=0;nd<$.length;nd+=64)td.push($.slice(nd,nd+64));return td.push(`-----END `+t.label+`-----`),td.join(` 324`)}})),require_encoders=__commonJSMin((e=>{var t=e;t.der=require_der(),t.pem=require_pem()})),require_asn1$1=__commonJSMin((e=>{var t=e;t.bignum=require_bn$2(),t.define=require_api().define,t.base=require_base(),t.constants=require_constants$1(),t.decoders=require_decoders(),t.encoders=require_encoders()})),require_certificate=__commonJSMin(((e,t)=>{var $=require_asn1$1(),ed=$.define(`Time`,function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),td=$.define(`AttributeTypeValue`,function(){this.seq().obj(this.key(`type`).objid(),this.key(`value`).any())}),nd=$.define(`AlgorithmIdentifier`,function(){this.seq().obj(this.key(`algorithm`).objid(),this.key(`parameters`).optional(),this.key(`curve`).objid().optional())}),rd=$.define(`SubjectPublicKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).use(nd),this.key(`subjectPublicKey`).bitstr())}),id=$.define(`RelativeDistinguishedName`,function(){this.setof(td)}),ad=$.define(`RDNSequence`,function(){this.seqof(id)}),od=$.define(`Name`,function(){this.choice({rdnSequence:this.use(ad)})}),sd=$.define(`Validity`,function(){this.seq().obj(this.key(`notBefore`).use(ed),this.key(`notAfter`).use(ed))}),cd=$.define(`Extension`,function(){this.seq().obj(this.key(`extnID`).objid(),this.key(`critical`).bool().def(!1),this.key(`extnValue`).octstr())}),ld=$.define(`TBSCertificate`,function(){this.seq().obj(this.key(`version`).explicit(0).int().optional(),this.key(`serialNumber`).int(),this.key(`signature`).use(nd),this.key(`issuer`).use(od),this.key(`validity`).use(sd),this.key(`subject`).use(od),this.key(`subjectPublicKeyInfo`).use(rd),this.key(`issuerUniqueID`).implicit(1).bitstr().optional(),this.key(`subjectUniqueID`).implicit(2).bitstr().optional(),this.key(`extensions`).explicit(3).seqof(cd).optional())});t.exports=$.define(`X509Certificate`,function(){this.seq().obj(this.key(`tbsCertificate`).use(ld),this.key(`signatureAlgorithm`).use(nd),this.key(`signatureValue`).bitstr())})})),require_asn1=__commonJSMin((e=>{var t=require_asn1$1();e.certificate=require_certificate(),e.RSAPrivateKey=t.define(`RSAPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`modulus`).int(),this.key(`publicExponent`).int(),this.key(`privateExponent`).int(),this.key(`prime1`).int(),this.key(`prime2`).int(),this.key(`exponent1`).int(),this.key(`exponent2`).int(),this.key(`coefficient`).int())}),e.RSAPublicKey=t.define(`RSAPublicKey`,function(){this.seq().obj(this.key(`modulus`).int(),this.key(`publicExponent`).int())});var $=t.define(`AlgorithmIdentifier`,function(){this.seq().obj(this.key(`algorithm`).objid(),this.key(`none`).null_().optional(),this.key(`curve`).objid().optional(),this.key(`params`).seq().obj(this.key(`p`).int(),this.key(`q`).int(),this.key(`g`).int()).optional())});e.PublicKey=t.define(`SubjectPublicKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).use($),this.key(`subjectPublicKey`).bitstr())}),e.PrivateKey=t.define(`PrivateKeyInfo`,function(){this.seq().obj(this.key(`version`).int(),this.key(`algorithm`).use($),this.key(`subjectPrivateKey`).octstr())}),e.EncryptedPrivateKey=t.define(`EncryptedPrivateKeyInfo`,function(){this.seq().obj(this.key(`algorithm`).seq().obj(this.key(`id`).objid(),this.key(`decrypt`).seq().obj(this.key(`kde`).seq().obj(this.key(`id`).objid(),this.key(`kdeparams`).seq().obj(this.key(`salt`).octstr(),this.key(`iters`).int())),this.key(`cipher`).seq().obj(this.key(`algo`).objid(),this.key(`iv`).octstr()))),this.key(`subjectPrivateKey`).octstr())}),e.DSAPrivateKey=t.define(`DSAPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`p`).int(),this.key(`q`).int(),this.key(`g`).int(),this.key(`pub_key`).int(),this.key(`priv_key`).int())}),e.DSAparam=t.define(`DSAparam`,function(){this.int()});var ed=t.define(`ECParameters`,function(){this.choice({namedCurve:this.objid()})});e.ECPrivateKey=t.define(`ECPrivateKey`,function(){this.seq().obj(this.key(`version`).int(),this.key(`privateKey`).octstr(),this.key(`parameters`).optional().explicit(0).use(ed),this.key(`publicKey`).optional().explicit(1).bitstr())}),e.signature=t.define(`signature`,function(){this.seq().obj(this.key(`r`).int(),this.key(`s`).int())})})),aesid_exports=__exportAll({default:()=>aesid_default}),aesid_default,init_aesid=__esmMin((()=>{aesid_default={"2.16.840.1.101.3.4.1.1":`aes-128-ecb`,"2.16.840.1.101.3.4.1.2":`aes-128-cbc`,"2.16.840.1.101.3.4.1.3":`aes-128-ofb`,"2.16.840.1.101.3.4.1.4":`aes-128-cfb`,"2.16.840.1.101.3.4.1.21":`aes-192-ecb`,"2.16.840.1.101.3.4.1.22":`aes-192-cbc`,"2.16.840.1.101.3.4.1.23":`aes-192-ofb`,"2.16.840.1.101.3.4.1.24":`aes-192-cfb`,"2.16.840.1.101.3.4.1.41":`aes-256-ecb`,"2.16.840.1.101.3.4.1.42":`aes-256-cbc`,"2.16.840.1.101.3.4.1.43":`aes-256-ofb`,"2.16.840.1.101.3.4.1.44":`aes-256-cfb`}})),require_fixProc=__commonJSMin(((e,t)=>{var $=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,ed=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,td=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,nd=require_evp_bytestokey(),rd=require_browser$7(),id=require_safe_buffer$4().Buffer;t.exports=function(e,t){var ad=e.toString(),od=ad.match($),sd;if(od){var cd=`aes`+od[1],ld=id.from(od[2],`hex`),ud=id.from(od[3].replace(/[\r\n]/g,``),`base64`),dd=nd(t,ld.slice(0,8),parseInt(od[1],10)).key,fd=[],pd=rd.createDecipheriv(cd,dd,ld);fd.push(pd.update(ud)),fd.push(pd.final()),sd=id.concat(fd)}else{var md=ad.match(td);sd=id.from(md[2].replace(/[\r\n]/g,``),`base64`)}return{tag:ad.match(ed)[1],data:sd}}})),require_parse_asn1=__commonJSMin(((e,t)=>{var $=require_asn1(),ed=(init_aesid(),__toCommonJS(aesid_exports).default),td=require_fixProc(),nd=require_browser$7(),rd=require_browser$8().pbkdf2Sync,id=require_safe_buffer$4().Buffer;function ad(e,t){var $=e.algorithm.decrypt.kde.kdeparams.salt,td=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),ad=ed[e.algorithm.decrypt.cipher.algo.join(`.`)],od=e.algorithm.decrypt.cipher.iv,sd=e.subjectPrivateKey,cd=rd(t,$,td,parseInt(ad.split(`-`)[1],10)/8,`sha1`),ld=nd.createDecipheriv(ad,cd,od),ud=[];return ud.push(ld.update(sd)),ud.push(ld.final()),id.concat(ud)}function od(e){var t;typeof e==`object`&&!id.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e==`string`&&(e=id.from(e));var ed=td(e,t),nd=ed.tag,rd=ed.data,od,sd;switch(nd){case`CERTIFICATE`:sd=$.certificate.decode(rd,`der`).tbsCertificate.subjectPublicKeyInfo;case`PUBLIC KEY`:switch(sd||=$.PublicKey.decode(rd,`der`),od=sd.algorithm.algorithm.join(`.`),od){case`1.2.840.113549.1.1.1`:return $.RSAPublicKey.decode(sd.subjectPublicKey.data,`der`);case`1.2.840.10045.2.1`:return sd.subjectPrivateKey=sd.subjectPublicKey,{type:`ec`,data:sd};case`1.2.840.10040.4.1`:return sd.algorithm.params.pub_key=$.DSAparam.decode(sd.subjectPublicKey.data,`der`),{type:`dsa`,data:sd.algorithm.params};
324default:throw Error(`unknown key id `+od)}case`ENCRYPTED PRIVATE KEY`:rd=$.EncryptedPrivateKey.decode(rd,`der`),rd=ad(rd,t);case`PRIVATE KEY`:switch(sd=$.PrivateKey.decode(rd,`der`),od=sd.algorithm.algorithm.join(`.`),od){case`1.2.840.113549.1.1.1`:return $.RSAPrivateKey.decode(sd.subjectPrivateKey,`der`);case`1.2.840.10045.2.1`:return{curve:sd.algorithm.curve,privateKey:$.ECPrivateKey.decode(sd.subjectPrivateKey,`der`).privateKey};case`1.2.840.10040.4.1`:return sd.algorithm.params.priv_key=$.DSAparam.decode(sd.subjectPrivateKey,`der`),{type:`dsa`,params:sd.algorithm.params};default:throw Error(`unknown key id `+od)}case`RSA PUBLIC KEY`:return $.RSAPublicKey.decode(rd,`der`);case`RSA PRIVATE KEY`:return $.RSAPrivateKey.decode(rd,`der`);case`DSA PRIVATE KEY`:return{type:`dsa`,params:$.DSAPrivateKey.decode(rd,`der`)};case`EC PRIVATE KEY`:return rd=$.ECPrivateKey.decode(rd,`der`),{curve:rd.parameters.value,privateKey:rd.privateKey};default:throw Error(`unknown key type `+nd)}}od.signature=$.signature,t.exports=od})),curves_exports=__exportAll({default:()=>curves_default}),curves_default,init_curves=__esmMin((()=>{curves_default={"1.3.132.0.10":`secp256k1`,"1.3.132.0.33":`p224`,"1.2.840.10045.3.1.1":`p192`,"1.2.840.10045.3.1.7":`p256`,"1.3.132.0.34":`p384`,"1.3.132.0.35":`p521`}})),require_sign$1=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_browser$9(),td=require_browserify_rsa(),nd=require_elliptic().ec,rd=require_bn(),id=require_parse_asn1(),ad=(init_curves(),__toCommonJS(curves_exports).default),od=1;function sd(e,t,ed,nd,rd){var ad=id(t);if(ad.curve){if(nd!==`ecdsa`&&nd!==`ecdsa/rsa`)throw Error(`wrong private key type`);return cd(e,ad)}else if(ad.type===`dsa`){if(nd!==`dsa`)throw Error(`wrong private key type`);return ld(e,ad,ed)}if(nd!==`rsa`&&nd!==`ecdsa/rsa`)throw Error(`wrong private key type`);if(t.padding!==void 0&&t.padding!==od)throw Error(`illegal or unsupported padding mode`);e=$.concat([rd,e]);for(var sd=ad.modulus.byteLength(),ud=[0,1];e.length+ud.length+1<sd;)ud.push(255);ud.push(0);for(var dd=-1;++dd<e.length;)ud.push(e[dd]);return td(ud,ad)}function cd(e,t){var ed=ad[t.curve.join(`.`)];if(!ed)throw Error(`unknown curve `+t.curve.join(`.`));var td=new nd(ed).keyFromPrivate(t.privateKey).sign(e);return $.from(td.toDER())}function ld(e,t,$){for(var ed=t.params.priv_key,td=t.params.p,nd=t.params.q,id=t.params.g,ad=new rd(0),od,sd=fd(e,nd).mod(nd),cd=!1,ld=dd(ed,nd,e,$);cd===!1;)od=md(nd,ld,$),ad=hd(id,od,td,nd),cd=od.invm(nd).imul(sd.add(ed.mul(ad))).mod(nd),cd.cmpn(0)===0&&(cd=!1,ad=new rd(0));return ud(ad,cd)}function ud(e,t){e=e.toArray(),t=t.toArray(),e[0]&128&&(e=[0].concat(e)),t[0]&128&&(t=[0].concat(t));var ed=[48,e.length+t.length+4,2,e.length];return ed=ed.concat(e,[2,t.length],t),$.from(ed)}function dd(e,t,td,nd){if(e=$.from(e.toArray()),e.length<t.byteLength()){var rd=$.alloc(t.byteLength()-e.length);e=$.concat([rd,e])}var id=td.length,ad=pd(td,t),od=$.alloc(id);od.fill(1);var sd=$.alloc(id);return sd=ed(nd,sd).update(od).update($.from([0])).update(e).update(ad).digest(),od=ed(nd,sd).update(od).digest(),sd=ed(nd,sd).update(od).update($.from([1])).update(e).update(ad).digest(),od=ed(nd,sd).update(od).digest(),{k:sd,v:od}}function fd(e,t){var $=new rd(e),ed=(e.length<<3)-t.bitLength();return ed>0&&$.ishrn(ed),$}function pd(e,t){e=fd(e,t),e=e.mod(t);var ed=$.from(e.toArray());if(ed.length<t.byteLength()){var td=$.alloc(t.byteLength()-ed.length);ed=$.concat([td,ed])}return ed}function md(e,t,td){var nd,rd;do{for(nd=$.alloc(0);nd.length*8<e.bitLength();)t.v=ed(td,t.k).update(t.v).digest(),nd=$.concat([nd,t.v]);rd=fd(nd,e),t.k=ed(td,t.k).update(t.v).update($.from([0])).digest(),t.v=ed(td,t.k).update(t.v).digest()}while(rd.cmp(e)!==-1);return rd}function hd(e,t,$,ed){return e.toRed(rd.mont($)).redPow(t).fromRed().mod(ed)}t.exports=sd,t.exports.getKey=dd,t.exports.makeKey=md})),require_verify$1=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_bn(),td=require_elliptic().ec,nd=require_parse_asn1(),rd=(init_curves(),__toCommonJS(curves_exports).default);function id(e,t,td,rd,id){var sd=nd(td);if(sd.type===`ec`){if(rd!==`ecdsa`&&rd!==`ecdsa/rsa`)throw Error(`wrong public key type`);return ad(e,t,sd)}else if(sd.type===`dsa`){if(rd!==`dsa`)throw Error(`wrong public key type`);return od(e,t,sd)}if(rd!==`rsa`&&rd!==`ecdsa/rsa`)throw Error(`wrong public key type`);t=$.concat([id,t]);for(var cd=sd.modulus.byteLength(),ld=[1],ud=0;t.length+ld.length+2<cd;)ld.push(255),ud+=1;ld.push(0);for(var dd=-1;++dd<t.length;)ld.push(t[dd]);ld=$.from(ld);var fd=ed.mont(sd.modulus);e=new ed(e).toRed(fd),e=e.redPow(new ed(sd.publicExponent)),e=$.from(e.fromRed().toArray());var pd=+(ud<8);for(cd=Math.min(e.length,ld.length),e.length!==ld.length&&(pd=1),dd=-1;++dd<cd;)pd|=e[dd]^ld[dd];return pd===0}function ad(e,t,$){var ed=rd[$.data.algorithm.curve.join(`.`)];if(!ed)throw Error(`unknown curve `+$.data.algorithm.curve.join(`.`));var nd=new td(ed),id=$.data.subjectPrivateKey.data;return nd.verify(t,e,id)}function od(e,t,$){var td=$.data.p,rd=$.data.q,id=$.data.g,ad=$.data.pub_key,od=nd.signature.decode(e,`der`),cd=od.s,ld=od.r;sd(cd,rd),sd(ld,rd);var ud=ed.mont(td),dd=cd.invm(rd);return id.toRed(ud).redPow(new ed(t).mul(dd).mod(rd)).fromRed().mul(ad.toRed(ud).redPow(ld.mul(dd).mod(rd)).fromRed()).mod(td).mod(rd).cmp(ld)===0}function sd(e,t){if(e.cmpn(0)<=0||e.cmp(t)>=0)throw Error(`invalid sig`)}t.exports=id}
324)),require_browser$4=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_browser$10(),td=require_readable_browser(),nd=require_inherits_browser(),rd=require_sign$1(),id=require_verify$1(),ad=(init_algorithms(),__toCommonJS(algorithms_exports).default);Object.keys(ad).forEach(function(e){ad[e].id=$.from(ad[e].id,`hex`),ad[e.toLowerCase()]=ad[e]});function od(e){td.Writable.call(this);var t=ad[e];if(!t)throw Error(`Unknown message digest`);this._hashType=t.hash,this._hash=ed(t.hash),this._tag=t.id,this._signType=t.sign}nd(od,td.Writable),od.prototype._write=function(e,t,$){this._hash.update(e),$()},od.prototype.update=function(e,t){return this._hash.update(typeof e==`string`?$.from(e,t):e),this},od.prototype.sign=function(e,t){this.end();var $=rd(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?$.toString(t):$};function sd(e){td.Writable.call(this);var t=ad[e];if(!t)throw Error(`Unknown message digest`);this._hash=ed(t.hash),this._tag=t.id,this._signType=t.sign}nd(sd,td.Writable),sd.prototype._write=function(e,t,$){this._hash.update(e),$()},sd.prototype.update=function(e,t){return this._hash.update(typeof e==`string`?$.from(e,t):e),this},sd.prototype.verify=function(e,t,ed){var td=typeof t==`string`?$.from(t,ed):t;return this.end(),id(td,this._hash.digest(),e,this._signType,this._tag)};function cd(e){return new od(e)}function ld(e){return new sd(e)}t.exports={Sign:cd,Verify:ld,createSign:cd,createVerify:ld}})),require_browser$3=__commonJSMin(((e,t)=>{init_dist$2();var $=require_elliptic(),ed=require_bn$2();t.exports=function(e){return new nd(e)};var td={secp256k1:{name:`secp256k1`,byteLength:32},secp224r1:{name:`p224`,byteLength:28},prime256v1:{name:`p256`,byteLength:32},prime192v1:{name:`p192`,byteLength:24},ed25519:{name:`ed25519`,byteLength:32},secp384r1:{name:`p384`,byteLength:48},secp521r1:{name:`p521`,byteLength:66}};td.p224=td.secp224r1,td.p256=td.secp256r1=td.prime256v1,td.p192=td.secp192r1=td.prime192v1,td.p384=td.secp384r1,td.p521=td.secp521r1;function nd(e){this.curveType=td[e],this.curveType||={name:e},this.curve=new $.ec(this.curveType.name),this.keys=void 0}nd.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},nd.prototype.computeSecret=function(e,t,$){return t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t)),rd(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),$,this.curveType.byteLength)},nd.prototype.getPublicKey=function(e,t){var $=this.keys.getPublic(t===`compressed`,!0);return t===`hybrid`&&($[$.length-1]%2?$[0]=7:$[0]=6),rd($,e)},nd.prototype.getPrivateKey=function(e){return rd(this.keys.getPrivate(),e)},nd.prototype.setPublicKey=function(e,t){return t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t)),this.keys._importPublic(e),this},nd.prototype.setPrivateKey=function(e,t){t||=`utf8`,Buffer.isBuffer(e)||(e=new Buffer(e,t));var $=new ed(e);return $=$.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate($),this};function rd(e,t,$){Array.isArray(e)||(e=e.toArray());var ed=new Buffer(e);if($&&ed.length<$){var td=new Buffer($-ed.length);td.fill(0),ed=Buffer.concat([td,ed])}return t?ed.toString(t):ed}})),require_mgf=__commonJSMin(((e,t)=>{var $=require_browser$10(),ed=require_safe_buffer$4().Buffer;t.exports=function(e,t){for(var nd=ed.alloc(0),rd=0,id;nd.length<t;)id=td(rd++),nd=ed.concat([nd,$(`sha1`).update(e).update(id).digest()]);return nd.slice(0,t)};function td(e){var t=ed.allocUnsafe(4);return t.writeUInt32BE(e,0),t}})),require_xor=__commonJSMin(((e,t)=>{t.exports=function(e,t){for(var $=e.length,ed=-1;++ed<$;)e[ed]^=t[ed];return e}})),require_withPublic=__commonJSMin(((e,t)=>{var $=require_bn$2(),ed=require_safe_buffer$4().Buffer;function td(e,t){return ed.from(e.toRed($.mont(t.modulus)).redPow(new $(t.publicExponent)).fromRed().toArray())}t.exports=td})),require_publicEncrypt=__commonJSMin(((e,t)=>{var $=require_parse_asn1(),ed=require_browser$11(),td=require_browser$10(),nd=require_mgf(),rd=require_xor(),id=require_bn$2(),ad=require_withPublic(),od=require_browserify_rsa(),sd=require_safe_buffer$4().Buffer;t.exports=function(e,t,ed){var td=e.padding?e.padding:ed?1:4,nd=$(e),rd;if(td===4)rd=cd(nd,t);else if(td===1)rd=ld(nd,t,ed);else if(td===3){if(rd=new id(t),rd.cmp(nd.modulus)>=0)throw Error(`data too long for modulus`)}else throw Error(`unknown padding`);return ed?od(rd,nd):ad(rd,nd)};function cd(e,t){var $=e.modulus.byteLength(),ad=t.length,od=td(`sha1`).update(sd.alloc(0)).digest(),cd=od.length,ld=2*cd;if(ad>$-ld-2)throw Error(`message too long`);var ud=sd.alloc($-ad-ld-2),dd=$-cd-1,fd=ed(cd),pd=rd(sd.concat([od,ud,sd.alloc(1,1),t],dd),nd(fd,dd)),md=rd(fd,nd(pd,cd));return new id(sd.concat([sd.alloc(1),md,pd],$))}function ld(e,t,$){var ed=t.length,td=e.modulus.byteLength();if(ed>td-11)throw Error(`message too long`);var nd=$?sd.alloc(td-ed-3,255):ud(td-ed-3);return new id(sd.concat([sd.from([0,$?1:2]),nd,sd.alloc(1),t],td))}function ud(e){for(var t=sd.allocUnsafe(e),$=0,td=ed(e*2),nd=0,rd;$<e;)nd===td.length&&(td=ed(e*2),nd=0),rd=td[nd++],rd&&(t[$++]=rd);return t}})),require_privateDecrypt=__commonJSMin(((e,t)=>{var $=require_parse_asn1(),ed=require_mgf(),td=require_xor(),nd=require_bn$2(),rd=require_browserify_rsa(),id=require_browser$10(),ad=require_withPublic(),od=require_safe_buffer$4().Buffer;t.exports=function(e,t,ed){var td=e.padding?e.padding:ed?1:4,id=$(e),ld=id.modulus.byteLength();if(t.length>ld||new nd(t).cmp(id.modulus)>=0)throw Error(`decryption error`);var ud=ed?ad(new nd(t),id):rd(t,id),dd=od.alloc(ld-ud.length);if(ud=od.concat([dd,ud],ld),td===4)return sd(id,ud);if(td===1)return cd(id,ud,ed);if(td===3)return ud;throw Error(`unknown padding`)};function sd(e,t){var $=e.modulus.byteLength(),nd=id(`sha1`).update(od.alloc(0)).digest(),rd=nd.length;if(t[0]!==0)throw Error(`decryption error`);var ad=t.slice(1,rd+1),sd=t.slice(rd+1),cd=td(sd,ed(td(ad,ed(sd,rd)),$-rd-1));if(ld(nd,cd.slice(0,rd)))throw Error(`decryption error`);for(var ud=rd;cd[ud]===0;)ud++;if(cd[ud++]!==1)throw Error(`decryption error`);return cd.slice(ud)}
324function cd(e,t,$){for(var ed=t.slice(0,2),td=2,nd=0;t[td++]!==0;)if(td>=t.length){nd++;break}var rd=t.slice(2,td-1);if((ed.toString(`hex`)!==`0002`&&!$||ed.toString(`hex`)!==`0001`&&$)&&nd++,rd.length<8&&nd++,nd)throw Error(`decryption error`);return t.slice(td)}function ld(e,t){e=od.from(e),t=od.from(t);var $=0,ed=e.length;e.length!==t.length&&($++,ed=Math.min(e.length,t.length));for(var td=-1;++td<ed;)$+=e[td]^t[td];return $}})),require_browser$2=__commonJSMin((e=>{e.publicEncrypt=require_publicEncrypt(),e.privateDecrypt=require_privateDecrypt(),e.privateEncrypt=function(t,$){return e.publicEncrypt(t,$,!0)},e.publicDecrypt=function(t,$){return e.privateDecrypt(t,$,!0)}})),require_browser$1=__commonJSMin((e=>{init_dist$1(),init_dist();function t(){throw Error(`secure random number generation not supported by this browser 325use chrome, FireFox or Internet Explorer 11`)}var $=require_safe_buffer$4(),ed=require_browser$11(),td=$.Buffer,nd=$.kMaxLength,rd=global.crypto||global.msCrypto,id=2**32-1;function ad(e,t){if(typeof e!=`number`||e!==e)throw TypeError(`offset must be a number`);if(e>id||e<0)throw TypeError(`offset must be a uint32`);if(e>nd||e>t)throw RangeError(`offset out of range`)}function od(e,t,$){if(typeof e!=`number`||e!==e)throw TypeError(`size must be a number`);if(e>id||e<0)throw TypeError(`size must be a uint32`);if(e+t>$||e>nd)throw RangeError(`buffer too small`)}rd&&rd.getRandomValues||!process$1.browser?(e.randomFill=sd,e.randomFillSync=ld):(e.randomFill=t,e.randomFillSync=t);function sd(e,t,$,ed){if(!td.isBuffer(e)&&!(e instanceof global.Uint8Array))throw TypeError(`"buf" argument must be a Buffer or Uint8Array`);if(typeof t==`function`)ed=t,t=0,$=e.length;else if(typeof $==`function`)ed=$,$=e.length-t;else if(typeof ed!=`function`)throw TypeError(`"cb" argument must be a function`);return ad(t,e.length),od($,t,e.length),cd(e,t,$,ed)}function cd(e,t,$,td){if(process$1.browser){var nd=e.buffer,id=new Uint8Array(nd,t,$);if(rd.getRandomValues(id),td){process$1.nextTick(function(){td(null,e)});return}return e}if(td){ed($,function($,ed){if($)return td($);ed.copy(e,t),td(null,e)});return}return ed($).copy(e,t),e}function ld(e,t,$){if(t===void 0&&(t=0),!td.isBuffer(e)&&!(e instanceof global.Uint8Array))throw TypeError(`"buf" argument must be a Buffer or Uint8Array`);return ad(t,e.length),$===void 0&&($=e.length-t),od($,t,e.length),cd(e,t,$)}})),require_crypto_browserify=__commonJSMin((e=>{e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=require_browser$11(),e.createHash=e.Hash=require_browser$10(),e.createHmac=e.Hmac=require_browser$9();var t=require_algos(),$=Object.keys(t),ed=[`sha1`,`sha224`,`sha256`,`sha384`,`sha512`,`md5`,`rmd160`].concat($);e.getHashes=function(){return ed};var td=require_browser$8();e.pbkdf2=td.pbkdf2,e.pbkdf2Sync=td.pbkdf2Sync;var nd=require_browser$6();e.Cipher=nd.Cipher,e.createCipher=nd.createCipher,e.Cipheriv=nd.Cipheriv,e.createCipheriv=nd.createCipheriv,e.Decipher=nd.Decipher,e.createDecipher=nd.createDecipher,e.Decipheriv=nd.Decipheriv,e.createDecipheriv=nd.createDecipheriv,e.getCiphers=nd.getCiphers,e.listCiphers=nd.listCiphers;var rd=require_browser$5();e.DiffieHellmanGroup=rd.DiffieHellmanGroup,e.createDiffieHellmanGroup=rd.createDiffieHellmanGroup,e.getDiffieHellman=rd.getDiffieHellman,e.createDiffieHellman=rd.createDiffieHellman,e.DiffieHellman=rd.DiffieHellman;var id=require_browser$4();e.createSign=id.createSign,e.Sign=id.Sign,e.createVerify=id.createVerify,e.Verify=id.Verify,e.createECDH=require_browser$3();var ad=require_browser$2();e.publicEncrypt=ad.publicEncrypt,e.privateEncrypt=ad.privateEncrypt,e.publicDecrypt=ad.publicDecrypt,e.privateDecrypt=ad.privateDecrypt;var od=require_browser$1();e.randomFill=od.randomFill,e.randomFillSync=od.randomFillSync,e.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet 326we accept pull requests 327https://github.com/browserify/crypto-browserify`)},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}})),require_param_bytes_for_alg=__commonJSMin(((e,t)=>{function $(e){return(e/8|0)+(e%8==0?0:1)}var ed={ES256:$(256),ES384:$(384),ES512:$(521)};function td(e){var t=ed[e];if(t)return t;throw Error(`Unknown algorithm "`+e+`"`)}t.exports=td})),require_ecdsa_sig_formatter=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_param_bytes_for_alg(),td=128,nd=0,rd=32,id=16,ad=2,od=id|rd|nd<<6,sd=ad|nd<<6;function cd(e){return e.replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function ld(e){if($.isBuffer(e))return e;if(typeof e==`string`)return $.from(e,`base64`);throw TypeError(`ECDSA signature must be a Base64 string or a Buffer`)}function ud(e,t){e=ld(e);var nd=ed(t),rd=nd+1,id=e.length,ad=0;if(e[ad++]!==od)throw Error(`Could not find expected "seq"`);var ud=e[ad++];if(ud===(td|1)&&(ud=e[ad++]),id-ad<ud)throw Error(`"seq" specified length of "`+ud+`", only "`+(id-ad)+`" remaining`);if(e[ad++]!==sd)throw Error(`Could not find expected "int" for "r"`);var dd=e[ad++];if(id-ad-2<dd)throw Error(`"r" specified length of "`+dd+`", only "`+(id-ad-2)+`" available`);if(rd<dd)throw Error(`"r" specified length of "`+dd+`", max of "`+rd+`" is acceptable`);var fd=ad;if(ad+=dd,e[ad++]!==sd)throw Error(`Could not find expected "int" for "s"`);var pd=e[ad++];if(id-ad!==pd)throw Error(`"s" specified length of "`+pd+`", expected "`+(id-ad)+`"`);if(rd<pd)throw Error(`"s" specified length of "`+pd+`", max of "`+rd+`" is acceptable`);var md=ad;if(ad+=pd,ad!==id)throw Error(`Expected to consume entire buffer, but "`+(id-ad)+`" bytes remain`);var hd=nd-dd,gd=nd-pd,_d=$.allocUnsafe(hd+dd+gd+pd);for(ad=0;ad<hd;++ad)_d[ad]=0;
327e.copy(_d,ad,fd+Math.max(-hd,0),fd+dd),ad=nd;for(var vd=ad;ad<vd+gd;++ad)_d[ad]=0;return e.copy(_d,ad,md+Math.max(-gd,0),md+pd),_d=_d.toString(`base64`),_d=cd(_d),_d}function dd(e,t,$){for(var ed=0;t+ed<$&&e[t+ed]===0;)++ed;return e[t+ed]>=td&&--ed,ed}function fd(e,t){e=ld(e);var nd=ed(t),rd=e.length;if(rd!==nd*2)throw TypeError(`"`+t+`" signatures must be "`+nd*2+`" bytes, saw "`+rd+`"`);var id=dd(e,0,nd),ad=dd(e,nd,e.length),cd=nd-id,ud=nd-ad,fd=2+cd+1+1+ud,pd=fd<td,md=$.allocUnsafe((pd?2:3)+fd),hd=0;return md[hd++]=od,pd?md[hd++]=fd:(md[hd++]=td|1,md[hd++]=fd&255),md[hd++]=sd,md[hd++]=cd,id<0?(md[hd++]=0,hd+=e.copy(md,hd,0,nd)):hd+=e.copy(md,hd,id,nd),md[hd++]=sd,md[hd++]=ud,ad<0?(md[hd++]=0,e.copy(md,hd,nd)):e.copy(md,hd,nd+ad),md}t.exports={derToJose:ud,joseToDer:fd}})),require_buffer_equal_constant_time=__commonJSMin(((e,t)=>{var $=require_buffer$1().Buffer,ed=require_buffer$1().SlowBuffer;t.exports=td;function td(e,t){if(!$.isBuffer(e)||!$.isBuffer(t)||e.length!==t.length)return!1;for(var ed=0,td=0;td<e.length;td++)ed|=e[td]^t[td];return ed===0}td.install=function(){$.prototype.equal=ed.prototype.equal=function(e){return td(this,e)}};var nd=$.prototype.equal,rd=ed.prototype.equal;td.restore=function(){$.prototype.equal=nd,ed.prototype.equal=rd}})),require_jwa=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_crypto_browserify(),td=require_ecdsa_sig_formatter(),nd=require_util$1(),rd=`"%s" is not a valid algorithm. 328 Supported algorithms are: 329 "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,id=`secret must be a string or buffer`,ad=`key must be a string or a buffer`,od=`key must be a string, a buffer or an object`,sd=typeof ed.createPublicKey==`function`;sd&&(ad+=` or a KeyObject`,id+=`or a KeyObject`);function cd(e){if(!$.isBuffer(e)&&typeof e!=`string`&&(!sd||typeof e!=`object`||typeof e.type!=`string`||typeof e.asymmetricKeyType!=`string`||typeof e.export!=`function`))throw pd(ad)}function ld(e){if(!$.isBuffer(e)&&typeof e!=`string`&&typeof e!=`object`)throw pd(od)}function ud(e){if(!$.isBuffer(e)){if(typeof e==`string`)return e;if(!sd||typeof e!=`object`||e.type!==`secret`||typeof e.export!=`function`)throw pd(id)}}function dd(e){return e.replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function fd(e){e=e.toString();var t=4-e.length%4;if(t!==4)for(var $=0;$<t;++$)e+=`=`;return e.replace(/\-/g,`+`).replace(/_/g,`/`)}function pd(e){var t=[].slice.call(arguments,1),$=nd.format.bind(nd,e).apply(null,t);return TypeError($)}function md(e){return $.isBuffer(e)||typeof e==`string`}function hd(e){return md(e)||(e=JSON.stringify(e)),e}function gd(e){return function(t,$){ud($),t=hd(t);var td=ed.createHmac(`sha`+e,$);return dd((td.update(t),td.digest(`base64`)))}}var _d,vd=`timingSafeEqual`in ed?function(e,t){return e.byteLength===t.byteLength?ed.timingSafeEqual(e,t):!1}:function(e,t){return _d||=require_buffer_equal_constant_time(),_d(e,t)};function yd(e){return function(t,ed,td){var nd=gd(e)(t,td);return vd($.from(ed),$.from(nd))}}function bd(e){return function(t,$){ld($),t=hd(t);var td=ed.createSign(`RSA-SHA`+e);return dd((td.update(t),td.sign($,`base64`)))}}function xd(e){return function(t,$,td){cd(td),t=hd(t),$=fd($);var nd=ed.createVerify(`RSA-SHA`+e);return nd.update(t),nd.verify(td,$,`base64`)}}function Sd(e){return function(t,$){ld($),t=hd(t);var td=ed.createSign(`RSA-SHA`+e);return dd((td.update(t),td.sign({key:$,padding:ed.constants.RSA_PKCS1_PSS_PADDING,saltLength:ed.constants.RSA_PSS_SALTLEN_DIGEST},`base64`)))}}function Cd(e){return function(t,$,td){cd(td),t=hd(t),$=fd($);var nd=ed.createVerify(`RSA-SHA`+e);return nd.update(t),nd.verify({key:td,padding:ed.constants.RSA_PKCS1_PSS_PADDING,saltLength:ed.constants.RSA_PSS_SALTLEN_DIGEST},$,`base64`)}}function wd(e){var t=bd(e);return function(){var $=t.apply(null,arguments);return $=td.derToJose($,`ES`+e),$}}function Td(e){var t=xd(e);return function($,ed,nd){return ed=td.joseToDer(ed,`ES`+e).toString(`base64`),t($,ed,nd)}}function Ed(){return function(){return``}}function Dd(){return function(e,t){return t===``}}t.exports=function(e){var t={hs:gd,rs:bd,ps:Sd,es:wd,none:Ed},$={hs:yd,rs:xd,ps:Cd,es:Td,none:Dd},ed=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!ed)throw pd(rd,e);var td=(ed[1]||ed[3]).toLowerCase(),nd=ed[2];return{sign:t[td](nd),verify:$[td](nd)}}})),require_tostring=__commonJSMin(((e,t)=>{var $=require_buffer$1().Buffer;t.exports=function(e){return typeof e==`string`?e:typeof e==`number`||$.isBuffer(e)?e.toString():JSON.stringify(e)}})),require_sign_stream=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_data_stream(),td=require_jwa(),nd=require_stream_browserify(),rd=require_tostring(),id=require_util$1();function ad(e,t){return $.from(e,t).toString(`base64`).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function od(e,t,$){$||=`utf8`;var ed=ad(rd(e),`binary`),td=ad(rd(t),$);return id.format(`%s.%s`,ed,td)}function sd(e){var t=e.header,$=e.payload,ed=e.secret||e.privateKey,nd=e.encoding,rd=td(t.alg),ad=od(t,$,nd),sd=rd.sign(ad,ed);return id.format(`%s.%s`,ad,sd)}function cd(e){var t=e.secret;if(t??=e.privateKey,t??=e.key,/^hs/i.test(e.header.alg)===!0&&t==null)throw TypeError(`secret must be a string or buffer or a KeyObject`);var $=new ed(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=$,this.payload=new ed(e.payload),this.secret.once(`close`,function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once(`close`,function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}id.inherits(cd,nd),cd.prototype.sign=function(){try{var e=sd({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});
329return this.emit(`done`,e),this.emit(`data`,e),this.emit(`end`),this.readable=!1,e}catch(e){this.readable=!1,this.emit(`error`,e),this.emit(`close`)}},cd.sign=sd,t.exports=cd})),require_verify_stream=__commonJSMin(((e,t)=>{var $=require_safe_buffer$4().Buffer,ed=require_data_stream(),td=require_jwa(),nd=require_stream_browserify(),rd=require_tostring(),id=require_util$1(),ad=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function od(e){return Object.prototype.toString.call(e)===`[object Object]`}function sd(e){if(od(e))return e;try{return JSON.parse(e)}catch{return}}function cd(e){var t=e.split(`.`,1)[0];return sd($.from(t,`base64`).toString(`binary`))}function ld(e){return e.split(`.`,2).join(`.`)}function ud(e){return e.split(`.`)[2]}function dd(e,t){t||=`utf8`;var ed=e.split(`.`)[1];return $.from(ed,`base64`).toString(t)}function fd(e){return ad.test(e)&&!!cd(e)}function pd(e,t,$){if(!t){var ed=Error(`Missing algorithm parameter for jws.verify`);throw ed.code=`MISSING_ALGORITHM`,ed}e=rd(e);var nd=ud(e),id=ld(e);return td(t).verify(id,nd,$)}function md(e,t){if(t||={},e=rd(e),!fd(e))return null;var $=cd(e);if(!$)return null;var ed=dd(e);return($.typ===`JWT`||t.json)&&(ed=JSON.parse(ed,t.encoding)),{header:$,payload:ed,signature:ud(e)}}function hd(e){e||={};var t=e.secret;if(t??=e.publicKey,t??=e.key,/^hs/i.test(e.algorithm)===!0&&t==null)throw TypeError(`secret must be a string or buffer or a KeyObject`);var $=new ed(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=$,this.signature=new ed(e.signature),this.secret.once(`close`,function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once(`close`,function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}id.inherits(hd,nd),hd.prototype.verify=function(){try{var e=pd(this.signature.buffer,this.algorithm,this.key.buffer),t=md(this.signature.buffer,this.encoding);return this.emit(`done`,e,t),this.emit(`data`,e),this.emit(`end`),this.readable=!1,e}catch(e){this.readable=!1,this.emit(`error`,e),this.emit(`close`)}},hd.decode=md,hd.isValid=fd,hd.verify=pd,t.exports=hd})),require_jws=__commonJSMin((e=>{var t=require_sign_stream(),$=require_verify_stream();e.ALGORITHMS=[`HS256`,`HS384`,`HS512`,`RS256`,`RS384`,`RS512`,`PS256`,`PS384`,`PS512`,`ES256`,`ES384`,`ES512`],e.sign=t.sign,e.verify=$.verify,e.decode=$.decode,e.isValid=$.isValid,e.createSign=function(e){return new t(e)},e.createVerify=function(e){return new $(e)}})),require_decode=__commonJSMin(((e,t)=>{var $=require_jws();t.exports=function(e,t){t||={};var ed=$.decode(e,t);if(!ed)return null;var td=ed.payload;if(typeof td==`string`)try{var nd=JSON.parse(td);typeof nd==`object`&&nd&&(td=nd)}catch{}return t.complete===!0?{header:ed.header,payload:td,signature:ed.signature}:td}})),require_JsonWebTokenError=__commonJSMin(((e,t)=>{var $=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=`JsonWebTokenError`,this.message=e,t&&(this.inner=t)};$.prototype=Object.create(Error.prototype),$.prototype.constructor=$,t.exports=$})),require_NotBeforeError=__commonJSMin(((e,t)=>{var $=require_JsonWebTokenError(),ed=function(e,t){$.call(this,e),this.name=`NotBeforeError`,this.date=t};ed.prototype=Object.create($.prototype),ed.prototype.constructor=ed,t.exports=ed})),require_TokenExpiredError=__commonJSMin(((e,t)=>{var $=require_JsonWebTokenError(),ed=function(e,t){$.call(this,e),this.name=`TokenExpiredError`,this.expiredAt=t};ed.prototype=Object.create($.prototype),ed.prototype.constructor=ed,t.exports=ed})),require_ms=__commonJSMin(((e,t)=>{var $=1e3,ed=$*60,td=ed*60,nd=td*24,rd=nd*7,id=nd*365.25;t.exports=function(e,t){t||={};var $=typeof e;if($===`string`&&e.length>0)return ad(e);if($===`number`&&isFinite(e))return t.long?sd(e):od(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function ad(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var ad=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return ad*id;case`weeks`:case`week`:case`w`:return ad*rd;case`days`:case`day`:case`d`:return ad*nd;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return ad*td;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return ad*ed;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return ad*$;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return ad;default:return}}}}function od(e){var t=Math.abs(e);return t>=nd?Math.round(e/nd)+`d`:t>=td?Math.round(e/td)+`h`:t>=ed?Math.round(e/ed)+`m`:t>=$?Math.round(e/$)+`s`:e+`ms`}function sd(e){var t=Math.abs(e);return t>=nd?cd(e,t,nd,`day`):t>=td?cd(e,t,td,`hour`):t>=ed?cd(e,t,ed,`minute`):t>=$?cd(e,t,$,`second`):e+` ms`}function cd(e,t,$,ed){var td=t>=$*1.5;return Math.round(e/$)+` `+ed+(td?`s`:``)}})),require_timespan=__commonJSMin(((e,t)=>{var $=require_ms();t.exports=function(e,t){var ed=t||Math.floor(Date.now()/1e3);if(typeof e==`string`){var td=$(e);return td===void 0?void 0:Math.floor(ed+td/1e3)}else if(typeof e==`number`)return ed+e;else return}})),require_semver=__commonJSMin(((e,t)=>{init_dist(),e=t.exports=tf;var $=typeof process$1==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift(`SEMVER`),console.log.apply(console,e)}:function(){};e.SEMVER_SPEC_VERSION=`2.0.0`;var ed=256,td=2**53-1||9007199254740991,nd=16,rd=ed-6,id=e.re=[],ad=e.safeRe=[],od=e.src=[],sd=0,cd=`[a-zA-Z0-9-]`,ld=[[`\\s`,1],[`\\d`,ed],[cd,rd]];function ud(e){for(var t=0;t<ld.length;t++){var $=ld[t][0],ed=ld[t][1];e=e.split($+`*`).join($+`{0,`+ed+`}`).split($+`+`).join($+`{1,`+ed+`}`)}return e}var dd=sd++;od[dd]=`0|[1-9]\\d*`;var fd=sd++;od[fd]=`\\d+`;var pd=sd++;od[pd]=`\\d*[a-zA-Z-]`+cd+`*`;var md=sd++;od[md]=`(`+od[dd]+`)\\.(`+od[dd]+`)\\.(`+od[dd]+`)`;var hd=sd++;od[hd]=`(`+od[fd]+`)\\.(`+od[fd]+`)\\.(`+od[fd]+`)`;var gd=sd++;od[gd]=`(?:`+od[dd]+`|`+od[pd]+`)`;var _d=sd++;od[_d]=`(?:`+od[fd]+`|`+od[pd]+`)`;var vd=sd++;od[vd]=`(?:-(`+od[gd]+`(?:\\.`+od[gd]+`)*))`;var yd=sd++;od[yd]=`(?:-?(`+od[_d]+`(?:\\.`+od[_d]+`)*))`;var bd=sd++;od[bd]=cd+`+`;var xd=sd++;od[xd]=`(?:\\+(`+od[bd]+`(?:\\.`+od[bd]+`)*))`;var Sd=sd++,Cd=`v?`+od[md]+od[vd]+`?`+od[xd]+`?`;od[Sd]=`^`+Cd+`$`;var wd=`[v=\\s]*`+od[hd]+od[yd]+`?`+od[xd]+`?`,Td=sd++;od[Td]=`^`+wd+`$`;var Ed=sd++;od[Ed]=`((?:<|>)?=?)`;var Dd=sd++;od[Dd]=od[fd]+`|x|X|\\*`;var Od=sd++;od[Od]=od[dd]+`|x|X|\\*`;var kd=sd++;od[kd]=`[v=\\s]*(`+od[Od]+`)(?:\\.(`+od[Od]+`)(?:\\.(`+od[Od]+`)(?:`+od[vd]+`)?`+od[xd]+`?)?)?`;var Ad=sd++;od[Ad]=`[v=\\s]*(`+od[Dd]+`)(?:\\.(`+od[Dd]+`)(?:\\.(`+od[Dd]+`)(?:`+od[yd]+`)?`+od[xd]+`?)?)?`;var jd=sd++;od[jd]=`^`+od[Ed]+`\\s*`+od[kd]+`$`;var Md=sd++;od[Md]=`^`+od[Ed]+`\\s*`+od[Ad]+`$`;var Nd=sd++;od[Nd]=`(?:^|[^\\d])(\\d{1,`+nd+`})(?:\\.(\\d{1,`+nd+`}))?(?:\\.(\\d{1,`+nd+`}))?(?:$|[^\\d])`;var Pd=sd++;od[Pd]=`(?:~>?)`;var Fd=sd++;od[Fd]=`(\\s*)`+od[Pd]+`\\s+`,id[Fd]=new RegExp(od[Fd],`g`),ad[Fd]=new RegExp(ud(od[Fd]),`g`);var Id=`$1~`,Ld=sd++;od[Ld]=`^`+od[Pd]+od[kd]+`$`;var Rd=sd++;od[Rd]=`^`+od[Pd]+od[Ad]+`$`;var zd=sd++;od[zd]=`(?:\\^)`;var Bd=sd++;od[Bd]=`(\\s*)`+od[zd]+`\\s+`,id[Bd]=new RegExp(od[Bd],`g`),ad[Bd]=new RegExp(ud(od[Bd]),`g`);var Vd=`$1^`,Hd=sd++;od[Hd]=`^`+od[zd]+od[kd]+`$`;var Ud=sd++;od[Ud]=`^`+od[zd]+od[Ad]+`$`;var Wd=sd++;od[Wd]=`^`+od[Ed]+`\\s*(`+wd+`)$|^$`;var Gd=sd++;od[Gd]=`^`+od[Ed]+`\\s*(`+Cd+`)$|^$`;var Kd=sd++;od[Kd]=`(\\s*)`+od[Ed]+`\\s*(`+wd+`|`+od[kd]+`)`,id[Kd]=new RegExp(od[Kd],`g`),ad[Kd]=new RegExp(ud(od[Kd]),`g`);var qd=`$1$2$3`,Jd=sd++;od[Jd]=`^\\s*(`+od[kd]+`)\\s+-\\s+(`+od[kd]+`)\\s*$`;var Yd=sd++;od[Yd]=`^\\s*(`+od[Ad]+`)\\s+-\\s+(`+od[Ad]+`)\\s*$`;var Xd=sd++;od[Xd]=`(<|>)?=?\\s*\\*`;for(var Zd=0;Zd<sd;Zd++)$(Zd,od[Zd]),id[Zd]||(id[Zd]=new RegExp(od[Zd]),ad[Zd]=new RegExp(ud(od[Zd])));e.parse=Qd;function Qd(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof tf)return e;if(typeof e!=`string`||e.length>ed||!(t.loose?ad[Td]:ad[Sd]).test(e))return null;try{return new tf(e,t)}catch{return null}}e.valid=$d;function $d(e,t){var $=Qd(e,t);return $?$.version:null}e.clean=ef;function ef(e,t){var $=Qd(e.trim().replace(/^[=v]+/,``),t);return $?$.version:null}e.SemVer=tf;function tf(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof tf){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!=`string`)throw TypeError(`Invalid Version: `+e);if(e.length>ed)throw TypeError(`version is longer than `+ed+` characters`);if(!(this instanceof tf))return new tf(e,t);$(`SemVer`,e,t),this.options=t,this.loose=!!t.loose;var nd=e.trim().match(t.loose?ad[Td]:ad[Sd]);if(!nd)throw TypeError(`Invalid Version: `+e);if(this.raw=e,this.major=+nd[1],this.minor=+nd[2],this.patch=+nd[3],this.major>td||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>td||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>td||this.patch<0)throw TypeError(`Invalid patch version`);nd[4]?this.prerelease=nd[4].split(`.`).map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<td)return t}return e}):this.prerelease=[],this.build=nd[5]?nd[5].split(`.`):[],this.format()}tf.prototype.format=function(){return this.version=this.major+`.`+this.minor+`.`+this.patch,this.prerelease.length&&(this.version+=`-`+this.prerelease.join(`.`)),this.version},tf.prototype.toString=function(){return this.version},tf.prototype.compare=function(e){return $(`SemVer.compare`,this.version,this.options,e),e instanceof tf||(e=new tf(e,this.options)),this.compareMain(e)||this.comparePre(e)},tf.prototype.compareMain=function(e){return e instanceof tf||(e=new tf(e,this.options)),of(this.major,e.major)||of(this.minor,e.minor)||of(this.patch,e.patch)},tf.prototype.comparePre=function(e){if(e instanceof tf||(e=new tf(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var ed=this.prerelease[t],td=e.prerelease[t];if($(`prerelease compare`,t,ed,td),ed===void 0&&td===void 0)return 0;if(td===void 0)return 1;if(ed===void 0)return-1;if(ed===td)continue;return of(ed,td)}while(++t)},tf.prototype.inc=function(e,t){switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t),this.inc(`pre`,t);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t),this.inc(`pre`,t);break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:if(this.prerelease.length===0)this.prerelease=[0];else{for(var $=this.prerelease.length;--$>=0;)typeof this.prerelease[$]==`number`&&(this.prerelease[$]++,$=-2);$===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: `+e)}return this.format(),this.raw=this.version,this},e.inc=nf;function nf(e,t,$,ed){typeof $==`string`&&(ed=$,$=void 0);try{return new tf(e,$).inc(t,ed).version}catch{return null}}e.diff=rf;function rf(e,t){if(vf(e,t))return null;var $=Qd(e),ed=Qd(t),td=``;if($.prerelease.length||ed.prerelease.length){td=`pre`;var nd=`prerelease`}for(var rd in $)if((rd===`major`||rd===`minor`||rd===`patch`)&&$[rd]!==ed[rd])return td+rd;return nd}e.compareIdentifiers=of;var af=/^[0-9]+$/;function of(e,t){var $=af.test(e),ed=af.test(t);return $&&ed&&(e=+e,t=+t),e===t?0:$&&!ed?-1:ed&&!$?1:e<t?-1:1}e.rcompareIdentifiers=sf;function sf(e,t){return of(t,e)}e.major=cf;function cf(e,t){return new tf(e,t).major}e.minor=lf;function lf(e,t){return new tf(e,t).minor}e.patch=uf;function uf(e,t){return new tf(e,t).patch}e.compare=df;function df(e,t,$){return new tf(e,$).compare(new tf(t,$))}e.compareLoose=ff;function ff(e,t){return df(e,t,!0)}e.rcompare=pf;function pf(e,t,$){return df(t,e,$)}e.sort=mf;function mf(t,$){return t.sort(function(t,ed){return e.compare(t,ed,$)})}e.rsort=hf;function hf(t,$){return t.sort(function(t,ed){return e.rcompare(t,ed,$)})}e.gt=gf;function gf(e,t,$){return df(e,t,$)>0}e.lt=_f;function _f(e,t,$){return df(e,t,$)<0}e.eq=vf;function vf(e,t,$){return df(e,t,$)===0}e.neq=yf;function yf(e,t,$){return df(e,t,$)!==0}e.gte=bf;function bf(e,t,$){return df(e,t,$)>=0}e.lte=xf;function xf(e,t,$){return df(e,t,$)<=0}e.cmp=Sf;function Sf(e,t,$,ed){switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof $==`object`&&($=$.version),e===$;case`!==`:return typeof e==`object`&&(e=e.version),typeof $==`object`&&($=$.version),e!==$;case``:case`=`:case`==`:return vf(e,$,ed);case`!=`:return yf(e,$,ed);case`>`:return gf(e,$,ed);case`>=`:return bf(e,$,ed);case`<`:return _f(e,$,ed);case`<=`:return xf(e,$,ed);default:throw TypeError(`Invalid operator: `+t)}}e.Comparator=Cf;function Cf(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof Cf){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof Cf))return new Cf(e,t);e=e.trim().split(/\s+/).join(` `),$(`comparator`,e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===wf?this.value=``:this.value=this.operator+this.semver.version,$(`comp`,this)}var wf={};Cf.prototype.parse=function(e){var t=this.options.loose?ad[Wd]:ad[Gd],$=e.match(t);if(!$)throw TypeError(`Invalid comparator: `+e);this.operator=$[1],this.operator===`=`&&(this.operator=``),$[2]?this.semver=new tf($[2],this.options.loose):this.semver=wf},Cf.prototype.toString=function(){return this.value},Cf.prototype.test=function(e){return $(`Comparator.test`,e,this.options.loose),this.semver===wf?!0:(typeof e==`string`&&(e=new tf(e,this.options)),Sf(e,this.operator,this.semver,this.options))},Cf.prototype.intersects=function(e,t){if(!(e instanceof Cf))throw TypeError(`a Comparator is required`);(!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1});var $;if(this.operator===``)return $=new Tf(e.value,t),Rf(this.value,$,t);if(e.operator===``)return $=new Tf(this.value,t),Rf(e.semver,$,t);var ed=(this.operator===`>=`||this.operator===`>`)&&(e.operator===`>=`||e.operator===`>`),td=(this.operator===`<=`||this.operator===`<`)&&(e.operator===`<=`||e.o
329perator===`<`),nd=this.semver.version===e.semver.version,rd=(this.operator===`>=`||this.operator===`<=`)&&(e.operator===`>=`||e.operator===`<=`),id=Sf(this.semver,`<`,e.semver,t)&&(this.operator===`>=`||this.operator===`>`)&&(e.operator===`<=`||e.operator===`<`),ad=Sf(this.semver,`>`,e.semver,t)&&(this.operator===`<=`||this.operator===`<`)&&(e.operator===`>=`||e.operator===`>`);return ed||td||nd&&rd||id||ad},e.Range=Tf;function Tf(e,t){if((!t||typeof t!=`object`)&&(t={loose:!!t,includePrerelease:!1}),e instanceof Tf)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Tf(e.raw,t);if(e instanceof Cf)return new Tf(e.value,t);if(!(this instanceof Tf))return new Tf(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(` `),this.set=this.raw.split(`||`).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw TypeError(`Invalid SemVer Range: `+this.raw);this.format()}Tf.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(` `).trim()}).join(`||`).trim(),this.range},Tf.prototype.toString=function(){return this.range},Tf.prototype.parseRange=function(e){var t=this.options.loose,ed=t?ad[Yd]:ad[Jd];e=e.replace(ed,If),$(`hyphen replace`,e),e=e.replace(ad[Kd],qd),$(`comparator trim`,e,ad[Kd]),e=e.replace(ad[Fd],Id),e=e.replace(ad[Bd],Vd);var td=t?ad[Wd]:ad[Gd],nd=e.split(` `).map(function(e){return Df(e,this.options)},this).join(` `).split(/\s+/);return this.options.loose&&(nd=nd.filter(function(e){return!!e.match(td)})),nd=nd.map(function(e){return new Cf(e,this.options)},this),nd},Tf.prototype.intersects=function(e,t){if(!(e instanceof Tf))throw TypeError(`a Range is required`);return this.set.some(function($){return $.every(function($){return e.set.some(function(e){return e.every(function(e){return $.intersects(e,t)})})})})},e.toComparators=Ef;function Ef(e,t){return new Tf(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(` `).trim().split(` `)})}function Df(e,t){return $(`comp`,e,t),e=jf(e,t),$(`caret`,e),e=kf(e,t),$(`tildes`,e),e=Nf(e,t),$(`xrange`,e),e=Ff(e,t),$(`stars`,e),e}function Of(e){return!e||e.toLowerCase()===`x`||e===`*`}function kf(e,t){return e.trim().split(/\s+/).map(function(e){return Af(e,t)}).join(` `)}function Af(e,t){var ed=t.loose?ad[Rd]:ad[Ld];return e.replace(ed,function(t,ed,td,nd,rd){$(`tilde`,e,t,ed,td,nd,rd);var id;return Of(ed)?id=``:Of(td)?id=`>=`+ed+`.0.0 <`+(+ed+1)+`.0.0`:Of(nd)?id=`>=`+ed+`.`+td+`.0 <`+ed+`.`+(+td+1)+`.0`:rd?($(`replaceTilde pr`,rd),id=`>=`+ed+`.`+td+`.`+nd+`-`+rd+` <`+ed+`.`+(+td+1)+`.0`):id=`>=`+ed+`.`+td+`.`+nd+` <`+ed+`.`+(+td+1)+`.0`,$(`tilde return`,id),id})}function jf(e,t){return e.trim().split(/\s+/).map(function(e){return Mf(e,t)}).join(` `)}function Mf(e,t){$(`caret`,e,t);var ed=t.loose?ad[Ud]:ad[Hd];return e.replace(ed,function(t,ed,td,nd,rd){$(`caret`,e,t,ed,td,nd,rd);var id;return Of(ed)?id=``:Of(td)?id=`>=`+ed+`.0.0 <`+(+ed+1)+`.0.0`:Of(nd)?id=ed===`0`?`>=`+ed+`.`+td+`.0 <`+ed+`.`+(+td+1)+`.0`:`>=`+ed+`.`+td+`.0 <`+(+ed+1)+`.0.0`:rd?($(`replaceCaret pr`,rd),id=ed===`0`?td===`0`?`>=`+ed+`.`+td+`.`+nd+`-`+rd+` <`+ed+`.`+td+`.`+(+nd+1):`>=`+ed+`.`+td+`.`+nd+`-`+rd+` <`+ed+`.`+(+td+1)+`.0`:`>=`+ed+`.`+td+`.`+nd+`-`+rd+` <`+(+ed+1)+`.0.0`):($(`no pr`),id=ed===`0`?td===`0`?`>=`+ed+`.`+td+`.`+nd+` <`+ed+`.`+td+`.`+(+nd+1):`>=`+ed+`.`+td+`.`+nd+` <`+ed+`.`+(+td+1)+`.0`:`>=`+ed+`.`+td+`.`+nd+` <`+(+ed+1)+`.0.0`),$(`caret return`,id),id})}function Nf(e,t){return $(`replaceXRanges`,e,t),e.split(/\s+/).map(function(e){return Pf(e,t)}).join(` `)}function Pf(e,t){e=e.trim();var ed=t.loose?ad[Md]:ad[jd];return e.replace(ed,function(t,ed,td,nd,rd,id){$(`xRange`,e,t,ed,td,nd,rd,id);var ad=Of(td),od=ad||Of(nd),sd=od||Of(rd),cd=sd;return ed===`=`&&cd&&(ed=``),ad?t=ed===`>`||ed===`<`?`<0.0.0`:`*`:ed&&cd?(od&&(nd=0),rd=0,ed===`>`?(ed=`>=`,od?(td=+td+1,nd=0,rd=0):(nd=+nd+1,rd=0)):ed===`<=`&&(ed=`<`,od?td=+td+1:nd=+nd+1),t=ed+td+`.`+nd+`.`+rd):od?t=`>=`+td+`.0.0 <`+(+td+1)+`.0.0`:sd&&(t=`>=`+td+`.`+nd+`.0 <`+td+`.`+(+nd+1)+`.0`),$(`xRange return`,t),t})}function Ff(e,t){return $(`replaceStars`,e,t),e.trim().replace(ad[Xd],``)}function If(e,t,$,ed,td,nd,rd,id,ad,od,sd,cd,ld){return t=Of($)?``:Of(ed)?`>=`+$+`.0.0`:Of(td)?`>=`+$+`.`+ed+`.0`:`>=`+t,id=Of(ad)?``:Of(od)?`<`+(+ad+1)+`.0.0`:Of(sd)?`<`+ad+`.`+(+od+1)+`.0`:cd?`<=`+ad+`.`+od+`.`+sd+`-`+cd:`<=`+id,(t+` `+id).trim()}Tf.prototype.test=function(e){if(!e)return!1;typeof e==`string`&&(e=new tf(e,this.options));for(var t=0;t<this.set.length;t++)if(Lf(this.set[t],e,this.options))return!0;return!1};function Lf(e,t,ed){for(var td=0;td<e.length;td++)if(!e[td].test(t))return!1;if(t.prerelease.length&&!ed.includePrerelease){for(td=0;td<e.length;td++)if($(e[td].semver),e[td].semver!==wf&&e[td].semver.prerelease.length>0){var nd=e[td].semver;if(nd.major===t.major&&nd.minor===t.minor&&nd.patch===t.patch)return!0}return!1}return!0}e.satisfies=Rf;function Rf(e,t,$){try{t=new Tf(t,$)}catch{return!1}return t.test(e)}e.maxSatisfying=zf;function zf(e,t,$){var ed=null,td=null;try{var nd=new Tf(t,$)}catch{return null}return e.forEach(function(e){nd.test(e)&&(!ed||td.compare(e)===-1)&&(ed=e,td=new tf(ed,$))}),ed}e.minSatisfying=Bf;function Bf(e,t,$){var ed=null,td=null;try{var nd=new Tf(t,$)}catch{return null}return e.forEach(function(e){nd.test(e)&&(!ed||td.compare(e)===1)&&(ed=e,td=new tf(ed,$))}),ed}e.minVersion=Vf;function Vf(e,t){e=new Tf(e,t);var $=new tf(`0.0.0`);
329if(e.test($)||($=new tf(`0.0.0-0`),e.test($)))return $;$=null;for(var ed=0;ed<e.set.length;++ed)e.set[ed].forEach(function(e){var t=new tf(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!$||gf($,t))&&($=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: `+e.operator)}});return $&&e.test($)?$:null}e.validRange=Hf;function Hf(e,t){try{return new Tf(e,t).range||`*`}catch{return null}}e.ltr=Uf;function Uf(e,t,$){return Gf(e,t,`<`,$)}e.gtr=Wf;function Wf(e,t,$){return Gf(e,t,`>`,$)}e.outside=Gf;function Gf(e,t,$,ed){e=new tf(e,ed),t=new Tf(t,ed);var td,nd,rd,id,ad;switch($){case`>`:td=gf,nd=xf,rd=_f,id=`>`,ad=`>=`;break;case`<`:td=_f,nd=bf,rd=gf,id=`<`,ad=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(Rf(e,t,ed))return!1;for(var od=0;od<t.set.length;++od){var sd=t.set[od],cd=null,ld=null;if(sd.forEach(function(e){e.semver===wf&&(e=new Cf(`>=0.0.0`)),cd||=e,ld||=e,td(e.semver,cd.semver,ed)?cd=e:rd(e.semver,ld.semver,ed)&&(ld=e)}),cd.operator===id||cd.operator===ad||(!ld.operator||ld.operator===id)&&nd(e,ld.semver)||ld.operator===ad&&rd(e,ld.semver))return!1}return!0}e.prerelease=Kf;function Kf(e,t){var $=Qd(e,t);return $&&$.prerelease.length?$.prerelease:null}e.intersects=qf;function qf(e,t,$){return e=new Tf(e,$),t=new Tf(t,$),e.intersects(t)}e.coerce=Jf;function Jf(e){if(e instanceof tf)return e;if(typeof e!=`string`)return null;var t=e.match(ad[Nd]);return t==null?null:Qd(t[1]+`.`+(t[2]||`0`)+`.`+(t[3]||`0`))}})),require_psSupported=__commonJSMin(((e,t)=>{init_dist(),t.exports=require_semver().satisfies(process$1.version,`^6.12.0 || >=8.0.0`)})),require_verify=__commonJSMin(((e,t)=>{var $=require_JsonWebTokenError(),ed=require_NotBeforeError(),td=require_TokenExpiredError(),nd=require_decode(),rd=require_timespan(),id=require_psSupported(),ad=require_jws(),od=[`RS256`,`RS384`,`RS512`,`ES256`,`ES384`,`ES512`],sd=[`RS256`,`RS384`,`RS512`],cd=[`HS256`,`HS384`,`HS512`];id&&(od.splice(3,0,`PS256`,`PS384`,`PS512`),sd.splice(3,0,`PS256`,`PS384`,`PS512`)),t.exports=function(e,t,id,ld){typeof id==`function`&&!ld&&(ld=id,id={}),id||={},id=Object.assign({},id);var ud=ld||function(e,t){if(e)throw e;return t};if(id.clockTimestamp&&typeof id.clockTimestamp!=`number`)return ud(new $(`clockTimestamp must be a number`));if(id.nonce!==void 0&&(typeof id.nonce!=`string`||id.nonce.trim()===``))return ud(new $(`nonce must be a non-empty string`));var dd=id.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return ud(new $(`jwt must be provided`));if(typeof e!=`string`)return ud(new $(`jwt must be a string`));var fd=e.split(`.`);if(fd.length!==3)return ud(new $(`jwt malformed`));var pd;try{pd=nd(e,{complete:!0})}catch(e){return ud(e)}if(!pd)return ud(new $(`invalid token`));var md=pd.header,hd;if(typeof t==`function`){if(!ld)return ud(new $(`verify must be called asynchronous if secret or public key is provided as a callback`));hd=t}else hd=function(e,$){return $(null,t)};return hd(md,function(t,nd){if(t)return ud(new $(`error in secret or public key callback: `+t.message));var ld=fd[2].trim()!==``;if(!ld&&nd)return ud(new $(`jwt signature is required`));if(ld&&!nd)return ud(new $(`secret or public key must be provided`));if(!ld&&!id.algorithms&&(id.algorithms=[`none`]),id.algorithms||=~nd.toString().indexOf(`BEGIN CERTIFICATE`)||~nd.toString().indexOf(`BEGIN PUBLIC KEY`)?od:~nd.toString().indexOf(`BEGIN RSA PUBLIC KEY`)?sd:cd,!~id.algorithms.indexOf(pd.header.alg))return ud(new $(`invalid algorithm`));var hd;try{hd=ad.verify(e,pd.header.alg,nd)}catch(e){return ud(e)}if(!hd)return ud(new $(`invalid signature`));var gd=pd.payload;if(gd.nbf!==void 0&&!id.ignoreNotBefore){if(typeof gd.nbf!=`number`)return ud(new $(`invalid nbf value`));if(gd.nbf>dd+(id.clockTolerance||0))return ud(new ed(`jwt not active`,new Date(gd.nbf*1e3)))}if(gd.exp!==void 0&&!id.ignoreExpiration){if(typeof gd.exp!=`number`)return ud(new $(`invalid exp value`));if(dd>=gd.exp+(id.clockTolerance||0))return ud(new td(`jwt expired`,new Date(gd.exp*1e3)))}
329if(id.audience){var _d=Array.isArray(id.audience)?id.audience:[id.audience];if(!(Array.isArray(gd.aud)?gd.aud:[gd.aud]).some(function(e){return _d.some(function(t){return t instanceof RegExp?t.test(e):t===e})}))return ud(new $(`jwt audience invalid. expected: `+_d.join(` or `)))}if(id.issuer&&(typeof id.issuer==`string`&&gd.iss!==id.issuer||Array.isArray(id.issuer)&&id.issuer.indexOf(gd.iss)===-1))return ud(new $(`jwt issuer invalid. expected: `+id.issuer));if(id.subject&&gd.sub!==id.subject)return ud(new $(`jwt subject invalid. expected: `+id.subject));if(id.jwtid&&gd.jti!==id.jwtid)return ud(new $(`jwt jwtid invalid. expected: `+id.jwtid));if(id.nonce&&gd.nonce!==id.nonce)return ud(new $(`jwt nonce invalid. expected: `+id.nonce));if(id.maxAge){if(typeof gd.iat!=`number`)return ud(new $(`iat required when maxAge is specified`));var vd=rd(id.maxAge,gd.iat);if(vd===void 0)return ud(new $(`"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60`));if(dd>=vd+(id.clockTolerance||0))return ud(new td(`maxAge exceeded`,new Date(vd*1e3)))}if(id.complete===!0){var yd=pd.signature;return ud(null,{header:md,payload:gd,signature:yd})}return ud(null,gd)})}})),require_lodash_includes=__commonJSMin(((e,t)=>{var $=1/0,ed=9007199254740991,td=17976931348623157e292,nd=NaN,rd=`[object Arguments]`,id=`[object Function]`,ad=`[object GeneratorFunction]`,od=`[object String]`,sd=`[object Symbol]`,cd=/^\s+|\s+$/g,ld=/^[-+]0x[0-9a-f]+$/i,ud=/^0b[01]+$/i,dd=/^0o[0-7]+$/i,fd=/^(?:0|[1-9]\d*)$/,pd=parseInt;function md(e,t){for(var $=-1,ed=e?e.length:0,td=Array(ed);++$<ed;)td[$]=t(e[$],$,e);return td}function hd(e,t,$,ed){for(var td=e.length,nd=$+(ed?1:-1);ed?nd--:++nd<td;)if(t(e[nd],nd,e))return nd;return-1}function gd(e,t,$){if(t!==t)return hd(e,_d,$);for(var ed=$-1,td=e.length;++ed<td;)if(e[ed]===t)return ed;return-1}function _d(e){return e!==e}function vd(e,t){for(var $=-1,ed=Array(e);++$<e;)ed[$]=t($);return ed}function yd(e,t){return md(t,function(t){return e[t]})}function bd(e,t){return function($){return e(t($))}}var xd=Object.prototype,Sd=xd.hasOwnProperty,Cd=xd.toString,wd=xd.propertyIsEnumerable,Td=bd(Object.keys,Object),Ed=Math.max;function Dd(e,t){var $=Nd(e)||Md(e)?vd(e.length,String):[],ed=$.length,td=!!ed;for(var nd in e)(t||Sd.call(e,nd))&&!(td&&(nd==`length`||kd(nd,ed)))&&$.pu
329sh(nd);return $}function Od(e){if(!Ad(e))return Td(e);var t=[];for(var $ in Object(e))Sd.call(e,$)&&$!=`constructor`&&t.push($);return t}function kd(e,t){return t??=ed,!!t&&(typeof e==`number`||fd.test(e))&&e>-1&&e%1==0&&e<t}function Ad(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||xd)}function jd(e,t,$,ed){e=Pd(e)?e:Kd(e),$=$&&!ed?Ud($):0;var td=e.length;return $<0&&($=Ed(td+$,0)),Bd(e)?$<=td&&e.indexOf(t,$)>-1:!!td&&gd(e,t,$)>-1}function Md(e){return Fd(e)&&Sd.call(e,`callee`)&&(!wd.call(e,`callee`)||Cd.call(e)==rd)}var Nd=Array.isArray;function Pd(e){return e!=null&&Ld(e.length)&&!Id(e)}function Fd(e){return zd(e)&&Pd(e)}function Id(e){var t=Rd(e)?Cd.call(e):``;return t==id||t==ad}function Ld(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=ed}function Rd(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function zd(e){return!!e&&typeof e==`object`}function Bd(e){return typeof e==`string`||!Nd(e)&&zd(e)&&Cd.call(e)==od}function Vd(e){return typeof e==`symbol`||zd(e)&&Cd.call(e)==sd}function Hd(e){return e?(e=Wd(e),e===$||e===-$?(e<0?-1:1)*td:e===e?e:0):e===0?e:0}function Ud(e){var t=Hd(e),$=t%1;return t===t?$?t-$:t:0}function Wd(e){if(typeof e==`number`)return e;if(Vd(e))return nd;if(Rd(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Rd(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(cd,``);var $=ud.test(e);return $||dd.test(e)?pd(e.slice(2),$?2:8):ld.test(e)?nd:+e}function Gd(e){return Pd(e)?Dd(e):Od(e)}function Kd(e){return e?yd(e,Gd(e)):[]}t.exports=jd})),require_lodash_isboolean=__commonJSMin(((e,t)=>{var $=`[object Boolean]`,ed=Object.prototype.toString;function td(e){return e===!0||e===!1||nd(e)&&ed.call(e)==$}function nd(e){return!!e&&typeof e==`object`}t.exports=td})),require_lodash_isinteger=__commonJSMin(((e,t)=>{var $=1/0,ed=17976931348623157e292,td=NaN,nd=`[object Symbol]`,rd=/^\s+|\s+$/g,id=/^[-+]0x[0-9a-f]+$/i,ad=/^0b[01]+$/i,od=/^0o[0-7]+$/i,sd=parseInt,cd=Object.prototype.toString;function ld(e){return typeof e==`number`&&e==md(e)}function ud(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function dd(e){return!!e&&typeof e==`object`}function fd(e){return typeof e==`symbol`||dd(e)&&cd.call(e)==nd}function pd(e){return e?(e=hd(e),e===$||e===-$?(e<0?-1:1)*ed:e===e?e:0):e===0?e:0}function md(e){var t=pd(e),$=t%1;return t===t?$?t-$:t:0}function hd(e){if(typeof e==`number`)return e;if(fd(e))return td;if(ud(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ud(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(rd,``);var $=ad.test(e);return $||od.test(e)?sd(e.slice(2),$?2:8):id.test(e)?td:+e}t.exports=ld})),require_lodash_isnumber=__commonJSMin(((e,t)=>{var $=`[object Number]`,ed=Object.prototype.toString;function td(e){return!!e&&typeof e==`object`}function nd(e){return typeof e==`number`||td(e)&&ed.call(e)==$}t.exports=nd})),require_lodash_isplainobject=__commonJSMin(((e,t)=>{var $=`[object Object]`;function ed(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function td(e,t){return function($){return e(t($))}}var nd=Function.prototype,rd=Object.prototype,id=nd.toString,ad=rd.hasOwnProperty,od=id.call(Object),sd=rd.toString,cd=td(Object.getPrototypeOf,Object);function ld(e){return!!e&&typeof e==`object`}function ud(e){if(!ld(e)||sd.call(e)!=$||ed(e))return!1;var t=cd(e);if(t===null)return!0;var td=ad.call(t,`constructor`)&&t.constructor;return typeof td==`function`&&td instanceof td&&id.call(td)==od}t.exports=ud})),require_lodash_isstring=__commonJSMin(((e,t)=>{var $=`[object String]`,ed=Object.prototype.toString,td=Array.isArray;function nd(e){return!!e&&typeof e==`object`}function rd(e){return typeof e==`string`||!td(e)&&nd(e)&&ed.call(e)==$}t.exports=rd})),require_lodash_once=__commonJSMin(((e,t)=>{var $=`Expected a function`,ed=1/0,td=17976931348623157e292,nd=NaN,rd=`[object Symbol]`,id=/^\s+|\s+$/g,ad=/^[-+]0x[0-9a-f]+$/i,od=/^0b[01]+$/i,sd=/^0o[0-7]+$/i,cd=parseInt,ld=Object.prototype.toString;function ud(e,t){var ed;if(typeof t!=`function`)throw TypeError($);return e=gd(e),function(){return--e>0&&(ed=t.apply(this,arguments)),e<=1&&(t=void 0),ed}}function dd(e){return ud(2,e)}function fd(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function pd(e){return!!e&&typeof e==`object`}function md(e){return typeof e==`symbol`||pd(e)&&ld.call(e)==rd}function hd(e){return e?(e=_d(e),e===ed||e===-ed?(e<0?-1:1)*td:e===e?e:0):e===0?e:0}function gd(e){var t=hd(e),$=t%1;return t===t?$?t-$:t:0}function _d(e){if(typeof e==`number`)return e;if(md(e))return nd;if(fd(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=fd(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(id,``);var $=od.test(e);return $||sd.test(e)?cd(e.slice(2),$?2:8):ad.test(e)?nd:+e}t.exports=dd})),require_sign=__commonJSMin(((e,t)=>{init_dist$2();var $=require_timespan(),ed=require_psSupported(),td=require_jws(),nd=require_lodash_includes(),rd=require_lodash_isboolean(),id=require_lodash_isinteger(),ad=require_lodash_isnumber(),od=require_lodash_isplainobject(),sd=require_lodash_isstring(),cd=require_lodash_once(),ld=[`RS256`,`RS384`,`RS512`,`ES256`,`ES384`,`ES512`,`HS256`,`HS384`,`HS512`,`none`];ed&&ld.splice(3,0,`PS256`,`PS384`,`PS512`);
329var ud={expiresIn:{isValid:function(e){return id(e)||sd(e)&&e},message:`"expiresIn" should be a number of seconds or string representing a timespan`},notBefore:{isValid:function(e){return id(e)||sd(e)&&e},message:`"notBefore" should be a number of seconds or string representing a timespan`},audience:{isValid:function(e){return sd(e)||Array.isArray(e)},message:`"audience" must be a string or array`},algorithm:{isValid:nd.bind(null,ld),message:`"algorithm" must be a valid string enum value`},header:{isValid:od,message:`"header" must be an object`},encoding:{isValid:sd,message:`"encoding" must be a string`},issuer:{isValid:sd,message:`"issuer" must be a string`},subject:{isValid:sd,message:`"subject" must be a string`},jwtid:{isValid:sd,message:`"jwtid" must be a string`},noTimestamp:{isValid:rd,message:`"noTimestamp" must be a boolean`},keyid:{isValid:sd,message:`"keyid" must be a string`},mutatePayload:{isValid:rd,message:`"mutatePayload" must be a boolean`}},dd={iat:{isValid:ad,message:`"iat" should be a number of seconds`},exp:{isValid:ad,message:`"exp" should be a number of seconds`},nbf:{isValid:ad,message:`"nbf" should be a number of seconds`}};function fd(e,t,$,ed){if(!od($))throw Error(`Expected "`+ed+`" to be a plain object.`);Object.keys($).forEach(function(td){var nd=e[td];if(!nd){if(!t)throw Error(`"`+td+`" is not allowed in "`+ed+`"`);return}if(!nd.isValid($[td]))throw Error(nd.message)})}function pd(e){return fd(ud,!1,e,`options`)}function md(e){return fd(dd,!0,e,`payload`)}var hd={audience:`aud`,issuer:`iss`,subject:`sub`,jwtid:`jti`},gd=[`expiresIn`,`notBefore`,`noTimestamp`,`audience`,`issuer`,`subject`,`jwtid`];t.exports=function(e,t,ed,nd){typeof ed==`function`?(nd=ed,ed={}):ed||={};var rd=typeof e==`object`&&!Buffer.isBuffer(e),id=Object.assign({alg:ed.algorithm||`HS256`,typ:rd?`JWT`:void 0,kid:ed.keyid},ed.header);function ad(e){if(nd)return nd(e);throw e}if(!t&&ed.algorithm!==`none`)return ad(Error(`secretOrPrivateKey must have a value`));if(e===void 0)return ad(Error(`payload is required`));if(rd){try{md(e)}catch(e){return ad(e)}ed.mutatePayload||(e=Object.assign({},e))}else{var od=gd.filter(function(e){return ed[e]!==void 0});if(od.length>0)return ad(Error(`invalid `+od.join(`,`)+` option for `+typeof e+` payload`))}if(e.exp!==void 0&&ed.expiresIn!==void 0)return ad(Error(`Bad "options.expiresIn" option the payload already has an "exp" property.`));if(e.nbf!==void 0&&ed.notBefore!==void 0)return ad(Error(`Bad "options.notBefore" option the payload already has an "nbf" property.`));try{pd(ed)}catch(e){return ad(e)}var sd=e.iat||Math.floor(Date.now()/1e3);if(ed.noTimestamp?delete e.iat:rd&&(e.iat=sd),ed.notBefore!==void 0){try{e.nbf=$(ed.notBefore,sd)}catch(e){return ad(e)}if(e.nbf===void 0)return ad(Error(`"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60`))}if(ed.expiresIn!==void 0&&typeof e==`object`){try{e.exp=$(ed.expiresIn,sd)}catch(e){return ad(e)}if(e.exp===void 0)return ad(Error(`"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60`))}Object.keys(hd).forEach(function(t){var $=hd[t];if(ed[t]!==void 0){if(e[$]!==void 0)return ad(Error(`Bad "options.`+t+`" option. The payload already has an "`+$+`" property.`));e[$]=ed[t]}});var ld=ed.encoding||`utf8`;if(typeof nd==`function`)nd&&=cd(nd),td.createSign({header:id,privateKey:t,payload:e,encoding:ld}).once(`error`,nd).once(`done`,function(e){nd(null,e)});else return td.sign({header:id,payload:e,secret:t,encoding:ld})}})),require_jsonwebtoken=__commonJSMin(((e,t)=>{t.exports={decode:require_decode(),verify:require_verify(),sign:require_sign(),JsonWebTokenError:require_JsonWebTokenError(),NotBeforeError:require_NotBeforeError(),TokenExpiredError:require_TokenExpiredError()}})),import_lib$4=__toESM(require_lib$3()),import_jsonwebtoken=__toESM(require_jsonwebtoken()),CONFIG_UPDATE$1=`CONFIG_UPDATE`;function configUpdate(e){return{type:CONFIG_UPDATE$1,config:e}}function dataIesFetchInitial(e){return(t,$)=>{let{config:ed}=$(),{id:td,selection_encoded:nd}=e,rd=`ldt`;(global_default.region===`na`||global_default.region===`sa`||global_default.region===`asoc`)&&(rd=`ies`);let id={product_id:td,type:rd,selection:encodeURIComponent(nd)},ad=import_jsonwebtoken.default.sign(id,ed.jwtSecret);return import_jquery.default.ajax({url:`${ed.apiIes}/api/product`,type:`GET`,cache:!1,beforeSend:e=>{e.setRequestHeader(`Authorization`,`Bearer ${ad}`),e.setRequestHeader(`Project`,global_default.project)},success:e=>{t(dataIesFetchInitialSuccess(e.data)),e.data.canDownload&&t(dataIesFetch())}})}}var DATA_IES_FETCH_INITIAL_SUCCESS=`DATA_IES_FETCH_INITIAL_SUCCESS`;function dataIesFetchInitialSuccess(e){return{type:DATA_IES_FETCH_INITIAL_SUCCESS,data:e}}var DATA_FETCH_START$1=`DATA_FETCH_START`,DATA_FETCH_SUCCESS$1=`DATA_FETCH_SUCCESS`;function dataFetchSuccess$1(e,t=!1){return t&&document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Configuration changed`,eventLabel:e.selected_string,family:e.family_title,product:e.title,additionalFields:[`family`,`product`]}})),{type:DATA_FETCH_SUCCESS$1,data:e}}function dataIesFetch(){return(e,t)=>{let{data:$,config:ed}=t();if(!$.canDownload)return;let{result:td}=$,{id:nd,selection_encoded:rd}=td,id=`ldt`;(global_default.region===`na`||global_default.region===`sa`||global_default.region===`asoc`)&&(id=`ies`);let ad={product_id:nd,type:id,selection:encodeURIComponent(rd)},od=import_jsonwebtoken.default.sign(ad,ed.jwtSecret);return import_jquery.default.ajax({url:`${ed.apiIes}/api/product/count`,data:{cache:new Date().getTime()},type:`GET`,cache:!1,beforeSend:e=>{e.setRequestHeader(`Authorization`,`Bearer ${od}`),e.setRequestHeader(`Project`,global_default.project)},success:t=>{e(dataIesFetchSuccess(t.data))}})}}var DATA_IES_FETCH_SUCCESS=`DATA_IES_FETCH_SUCCESS`;function dataIesFetchSuccess(e){return{type:DATA_IES_FETCH_SUCCESS,data:e}}var SELECTION_REBUILD_FREE_VALUE=`SELECTION_REBUILD_FREE_VALUE`,SELECTION_LOCAL_REBUILD_FREE_VALUE=`SELECTION_LOCAL_REBUILD_FREE_VALUE`,SELECTION_REBUILD=`SELECTION_REBUILD`,SELECTION_SET=`SELECTION_SET`;function selectionSet(e){return{type:SELECTION_SET,selection:e}}function data$1(e={isFetching:!1,isInitialLoad:!0,isEmpty:!1,result:{},canDownload:!1,iesFilesCount:null,iesMaxFilesCount:0,selection:``,productTitle:``,fam
329ilyId:``,familyTitle:``,selectionString:``,separator:` `},t){switch(t.type){case DATA_IES_FETCH_INITIAL_SUCCESS:return{...e,canDownload:t.data.canDownload,iesMaxFilesCount:t.data.countIesFiles};case DATA_FETCH_START$1:return{...e,isFetching:!0};case DATA_FETCH_SUCCESS$1:return{...e,isInitialLoad:!1,isFetching:!1,result:t.data,isEmpty:t.data.configurator.length===0,productTitle:t.data.title,familyId:t.data.family_id,familyTitle:t.data.family_title,selectionString:t.data.selected_string,separator:t.data.separator};case DATA_IES_FETCH_SUCCESS:return{...e,iesFilesCount:t.data};case SELECTION_REBUILD:let $=e.result.configurator.map(e=>e.is_free_value?e.is_optional_hidden?[]:[{code:e.free_value}]:e.values.filter($=>{if(t.typeId===e.id){if(t.id===$.id&&t.operation)return t.operation===`add`;if(!e.is_multiple)return!1}return $.selected})).map(e=>e.map(e=>e.code).join(`|`)).join(`;`);return{...e,selection:$};case SELECTION_LOCAL_REBUILD_FREE_VALUE:let ed=e.result.configurator.filter(e=>!(e.is_optional&&!e.has_selected)).map(e=>t.typeId===e.id?[{code:t.freeValue}]:e.is_free_value?[{code:e.free_value===null?``:e.free_value}]:e.values.filter($=>{if(t.typeId===e.id){if(t.id===$.id&&t.operation)return t.operation===`add`;if(!e.is_multiple)return!1}return $.selected})),td=e.result.configurator.map(e=>t.typeId===e.id?{...e,has_selected:!1,is_selecting:!0,free_value:t.freeValue}:e),nd=ed.map(e=>e.map(e=>e.code)),rd=ed.map(e=>e.map(e=>e.code).join(`|`)),id=rd.join(`;`),ad=rd.map(e=>e===``?`__`:e).join(e.separator),od={...e.result,configurator:td,selection_encoded:id,selected_string:ad,selected:nd};return{...e,result:od,selection:rd};case SELECTION_REBUILD_FREE_VALUE:let sd=e.result.configurator.map(e=>t.typeId===e.id?[{code:t.freeValue}]:e.is_free_value?[{code:e.free_value===null?``:e.free_value}]:e.values.filter($=>{if(t.typeId===e.id){if(t.id===$.id&&t.operation)return t.operation===`add`;if(!e.is_multiple)return!1}return $.selected})).map(e=>e.map(e=>e.code).join(`|`)).join(`;`);return{...e,selection:sd};case SELECTION_SET:return{...e,selection:t.selection};default:return e}}function config$5(e={jwtSecret:null,api:`//localhost:3000/api/products/configurator`,apiIes:`//localhost:3002`,iesMaxFilesDownloadCount:null,urls:{download:`//localhost:3000/api/products/download/1.pdf?selection={selection}`,share:`//localhost:3000/api/products/1?selection={selection}`},l10n:{title:`Configurator`,code:`Code`,download:`Download`,email:`Email`,share:`Share`}},t){switch(t.type){case CONFIG_UPDATE$1:return{...e,...t.config};default:return e}}var rootReducer$4=combineReducers({data:data$1,config:config$5});init_es();var createStoreWithMiddleware$4=applyMiddleware(thunk,(0,import_lib$4.default)({predicate:(e,t)=>global_default.debug,collapsed:!0}))(createStore);function configureStore$4(e){return createStoreWithMiddleware$4(rootReducer$4,e)}var require_react_jsx_runtime_production_min=__commonJSMin((e=>{require_react();var t=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var $=Symbol.for;t=$(`react.element`),e.Fragment=$(`react.fragment`)}var ed=require_ReactCurrentOwner(),td=Object.prototype.hasOwnProperty,nd={key:!0,ref:!0,__self:!0,__source:!0};function rd(e,$,rd){var id,ad={},od=null,sd=null;for(id in rd!==void 0&&(od=``+rd),$.key!==void 0&&(od=``+$.key),$.ref!==void 0&&(sd=$.ref),$)td.call($,id)&&!nd.hasOwnProperty(id)&&(ad[id]=$[id]);if(e&&e.defaultProps)for(id in $=e.defaultProps,$)ad[id]===void 0&&(ad[id]=$[id]);return{$$typeof:t,type:e,key:od,ref:sd,props:ad,_owner:ed.current}}e.jsx=rd,e.jsxs=rd})),require_jsx_runtime=__commonJSMin(((e,t)=>{t.exports=require_react_jsx_runtime_production_min()})),import_jsx_runtime=require_jsx_runtime(),Variables=class extends import_react$1.Component{static propTypes={data:import_react$1.PropTypes.array};orderValues(e){return e.reduce((e,t)=>(e.current!==t&&e.values.push([]),e.values[e.values.length-1].push(t),{current:t,values:e.values}),{current:void 0,values:[]}).values.map((e,t)=>{let{length:$}=e;return(0,import_jsx_runtime.jsxs)(`li`,{children:[e[0],$>1&&(0,import_jsx_runtime.jsxs)(`span`,{children:[`x`,$]})]},t)})}render(){let{data:e}=this.props;if(e)return(0,import_jsx_runtime.jsx)(`div`,{className:`product-configurator-variables`,children:e.map((e,t)=>{if(e.is_public)return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`h3`,{children:e.title}),(0,import_jsx_runtime.jsx)(`ul`,{children:Array.isArray(e.value)?this.orderValues(e.value):(0,import_jsx_runtime.jsx)(`li`,{children:e.value})})]},t)})})}};function asset(e){let t=`/build/`,$=global_default.viteManifest;if($[e])return`/build/`+$[e].file}var Code=class extends import_react$1.Component{static propTypes={code:import_react$1.PropTypes.string.isRequired,hasUnresolvedDependencies:import_react$1.PropTypes.bool.isRequired,isFullyConfigured:import_react$1.PropTypes.bool.isRequired,isDarksky:import_react$1.PropTypes.bool,isSelectionDarksky:import_react$1.PropTypes.bool,isFullyDarksky:import_react$1.PropTypes.bool,isQuickship:import_react$1.PropTypes.bool,isSelectionQuickship:import_react$1.PropTypes.bool,isFullyQuickship:import_react$1.PropTypes.bool,variables:import_react$1.PropTypes.array};renderWarning(){if(!this.props.hasUnresolvedDependencies)return;let{l10n:e}=this.props;return(0,import_jsx_runtime.jsxs)(`span`,{className:`product-configurator-tooltip u-ml-1`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-text-warning`,style:{transform:`rotate(180deg)`}
329,children:`info`}),(0,import_jsx_runtime.jsx)(`div`,{className:`js-tooltip`,children:e.has_unresolved_dependencies})]})}renderConfigured(){if(this.props.isFullyConfigured)return(0,import_jsx_runtime.jsx)(`i`,{className:`icon-checkmark u-pl-1 is-success`})}renderComplianceIcon(e){let{site:t,l10n:$,isFullyConfigured:ed,isDarksky:td,isSelectionDarksky:nd,isFullyDarksky:rd,isQuickship:id,isSelectionQuickship:ad,isFullyQuickship:od}=this.props,sd=e===`darksky`?td:id,cd=e===`darksky`?nd:ad,ld=e===`darksky`?rd:od;if(!ed||!sd)return;let ud=asset(e==`darksky`?`resources/img/darksky.png`:`resources/img/sites/${t}/quickship.png`),dd=`not_interested`,fd=`red`,pd=$[`${e}_not_compliant`];return ld?(dd=null,fd=null,pd=$[`${e}_compliant`]):cd&&!ld&&(dd=`error`,fd=`orange`,pd=$[`${e}_warning`]),(0,import_jsx_runtime.jsxs)(`span`,{className:`product-configurator-tooltip u-ml-1`,children:[(0,import_jsx_runtime.jsx)(`img`,{className:ld?`is-valid`:``,src:ud,alt:e}),dd&&(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols is-compliance`,style:{color:fd},children:dd}),(0,import_jsx_runtime.jsx)(`div`,{className:`js-tooltip`,children:pd})]})}render(){let{l10n:e,code:t,variables:$}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`div`,{ref:`code`,className:`product-configurator-code`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`container`,children:[(0,import_jsx_runtime.jsx)(`h3`,{children:e.code}),(0,import_jsx_runtime.jsxs)(`h2`,{children:[t,this.renderWarning(),this.renderConfigured(),this.renderComplianceIcon(`quickship`),this.renderComplianceIcon(`darksky`)]}),(0,import_jsx_runtime.jsx)(Variables,{data:$})]})}),(0,import_jsx_runtime.jsx)(`div`,{className:`product-configurator-code-spacer`})]})}},mapStateToProps$28=e=>{let{config:t}=e;return{l10n:t.l10n,site:t.site}},Code_default=(0,import_lib$3.connect)(mapStateToProps$28)(Code),CodeContainer=class extends import_react$1.Component{render(){let{l10n:e,code:t,hasUnresolvedDependencies:$,isFullyConfigured:ed,isDarksky:td,isSelectionDarksky:nd,isFullyDarksky:rd,isQuickship:id,isSelectionQuickship:ad,isFullyQuickship:od,variables:sd}=this.props;return(0,import_jsx_runtime.jsx)(Code_default,{l10n:{label:e.code}
329,code:t,variables:sd,hasUnresolvedDependencies:$,isFullyConfigured:ed,isDarksky:td,isSelectionDarksky:nd,isFullyDarksky:rd,isQuickship:id,isSelectionQuickship:ad,isFullyQuickship:od})}},mapStateToProps$27=e=>{let{config:t}=e,{result:$}=e.data;return{l10n:t.l10n,code:$.selected_string,variables:$.variables,hasUnresolvedDependencies:$.has_unresolved_dependencies,isFullyConfigured:$.fully_configured,isDarksky:$.is_darksky,isSelectionDarksky:$.is_selection_darksky,isFullyDarksky:$.is_fully_darksky,isQuickship:$.is_quickship,isSelectionQuickship:$.is_selection_quickship,isFullyQuickship:$.is_fully_quickship}},CodeContainer_default=(0,import_lib$3.connect)(mapStateToProps$27)(CodeContainer),require_react_dom_factories=__commonJSMin(((e,t)=>{init_dist$1(),(function($){if(typeof e==`object`&&t!==void 0)t.exports=$(require_react());else if(typeof define==`function`&&define.amd)define([`react`],$);else{var ed=typeof window<`u`?window:global===void 0?typeof self<`u`?self:this:global;if(ed.React===void 0)throw Error(`React module should be required before ReactDOMFactories`);ed.ReactDOMFactories=$(ed.React)}})(function(e){function t(t){var $=e.createElement.bind(null,t);return $.type=t,$}return{a:t(`a`),abbr:t(`abbr`),address:t(`address`),area:t(`area`),article:t(`article`),aside:t(`aside`),audio:t(`audio`),b:t(`b`),base:t(`base`),bdi:t(`bdi`),bdo:t(`bdo`),big:t(`big`),blockquote:t(`blockquote`),body:t(`body`),br:t(`br`),button:t(`button`),canvas:t(`canvas`),caption:t(`caption`),cite:t(`cite`),code:t(`code`),col:t(`col`),colgroup:t(`colgroup`),data:t(`data`),datalist:t(`datalist`),dd:t(`dd`),del:t(`del`),details:t(`details`),dfn:t(`dfn`),dialog:t(`dialog`),div:t(`div`),dl:t(`dl`),dt:t(`dt`),em:t(`em`),embed:t(`embed`),fieldset:t(`fieldset`),figcaption:t(`figcaption`),figure:t(`figure`),footer:t(`footer`),form:t(`form`),h1:t(`h1`),h2:t(`h2`),h3:t(`h3`),h4:t(`h4`),h5:t(`h5`),h6:t(`h6`),head:t(`head`),header:t(`header`),hgroup:t(`hgroup`),hr:t(`hr`),html:t(`html`),i:t(`i`),iframe:t(`iframe`),img:t(`img`),input:t(`input`),ins:t(`ins`),kbd:t(`kbd`),keygen:t(`keygen`),label:t(`label`),legend:t(`legend`),li:t(`li`),link:t(`link`),main:t(`main`),map:t(`map`),mark:t(`mark`),menu:t(`menu`),menuitem:t(`menuitem`),meta:t(`meta`),meter:t(`meter`),nav:t(`nav`),noscript:t(`noscript`),object:t(`object`),ol:t(`ol`),optgroup:t(`optgroup`),option:t(`option`),output:t(`output`),p:t(`p`),param:t(`param`),picture:t(`picture`),pre:t(`pre`),progress:t(`progress`),q:t(`q`),rp:t(`rp`),rt:t(`rt`),ruby:t(`ruby`),s:t(`s`),samp:t(`samp`),script:t(`script`),section:t(`section`),select:t(`select`),small:t(`small`),source:t(`source`),span:t(`span`),strong:t(`strong`),style:t(`style`),sub:t(`sub`),summary:t(`summary`),sup:t(`sup`),table:t(`table`),tbody:t(`tbody`),td:t(`td`),textarea:t(`textarea`),tfoot:t(`tfoot`),th:t(`th`),thead:t(`thead`),time:t(`time`),title:t(`title`),tr:t(`tr`),track:t(`track`),u:t(`u`),ul:t(`ul`),var:t(`var`),video:t(`video`),wbr:t(`wbr`),circle:t(`circle`),clipPath:t(`clipPath`),defs:t(`defs`),ellipse:t(`ellipse`),g:t(`g`),image:t(`image`),line:t(`line`),linearGradient:t(`linearGradient`),mask:t(`mask`),path:t(`path`),pattern:t(`pattern`),polygon:t(`polygon`),polyline:t(`polyline`),radialGradient:t(`radialGradient`),rect:t(`rect`),stop:t(`stop`),svg:t(`svg`),text:t(`text`),tspan:t(`tspan`)}})})),require_exenv=__commonJSMin(((e,t)=>{(function(){var e=!!(typeof window<`u`&&window.document&&window.document.createElement),$={canUseDOM:e,canUseWorkers:typeof Worker<`u`,canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(function(){return $}):t!==void 0&&t.exports?t.exports=$:window.ExecutionEnvironment=$})()})),require_tabbable=__commonJSMin(((e,t)=>{function $(e,t){var $=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test($)?!e.disabled:$===`a`&&e.href||t)&&td(e)}function ed(e){return e.offsetWidth<=0&&e.offsetHeight<=0||e.style.display===`none`}function td(e){for(;e&&e!==document.body;){if(ed(e))return!1;e=e.parentNode}return!0}
329function nd(e){var t=e.getAttribute(`tabindex`);t===null&&(t=void 0);var ed=isNaN(t);return(ed||t>=0)&&$(e,!ed)}function rd(e){return[].slice.call(e.querySelectorAll(`*`),0).filter(function(e){return nd(e)})}t.exports=rd})),require_focusManager=__commonJSMin((e=>{var t=require_tabbable(),$=[],ed=null,td=!1;function nd(e){td=!0}function rd(e){if(td){if(td=!1,!ed)return;setTimeout(function(){ed.contains(document.activeElement)||(t(ed)[0]||ed).focus()},0)}}e.markForFocusLater=function(){$.push(document.activeElement)},e.returnFocus=function(){var e=null;try{e=$.pop(),e.focus();return}catch{console.warn(`You tried to return focus to `+e+` but it is not in the DOM anymore`)}},e.setupScopedFocus=function(e){ed=e,window.addEventListener?(window.addEventListener(`blur`,nd,!1),document.addEventListener(`focus`,rd,!0)):(window.attachEvent(`onBlur`,nd),document.attachEvent(`onFocus`,rd))},e.teardownScopedFocus=function(){ed=null,window.addEventListener?(window.removeEventListener(`blur`,nd),document.removeEventListener(`focus`,rd)):(window.detachEvent(`onBlur`,nd),document.detachEvent(`onFocus`,rd))}})),require_scopeTab=__commonJSMin(((e,t)=>{var $=require_tabbable();t.exports=function(e,t){var ed=$(e);if(!ed.length){t.preventDefault();return}(ed[t.shiftKey?0:ed.length-1]===document.activeElement||e===document.activeElement)&&(t.preventDefault(),ed[t.shiftKey?ed.length-1:0].focus())}})),require_lodash_assign=__commonJSMin(((e,t)=>{var $=9007199254740991,ed=`[object Arguments]`,td=`[object Function]`,nd=`[object GeneratorFunction]`,rd=/^(?:0|[1-9]\d*)$/;function id(e,t,$){switch($.length){case 0:return e.call(t);case 1:return e.call(t,$[0]);case 2:return e.call(t,$[0],$[1]);case 3:return e.call(t,$[0],$[1],$[2])}return e.apply(t,$)}function ad(e,t){for(var $=-1,ed=Array(e);++$<e;)ed[$]=t($);return ed}function od(e,t){return function($){return e(t($))}}var sd=Object.prototype,cd=sd.hasOwnProperty,ld=sd.toString,ud=sd.propertyIsEnumerable,dd=od(Object.keys,Object),fd=Math.max,pd=!ud.call({valueOf:1},`valueOf`);function md(e,t){var $=Td(e)||wd(e)?ad(e.length,String):[],ed=$.length,td=!!ed;for(var nd in e)(t||cd.call(e,nd))&&!(td&&(nd==`length`||bd(nd,ed)))&&$.pu
329sh(nd);return $}function hd(e,t,$){var ed=e[t];(!(cd.call(e,t)&&Cd(ed,$))||$===void 0&&!(t in e))&&(e[t]=$)}function gd(e){if(!Sd(e))return dd(e);var t=[];for(var $ in Object(e))cd.call(e,$)&&$!=`constructor`&&t.push($);return t}function _d(e,t){return t=fd(t===void 0?e.length-1:t,0),function(){for(var $=arguments,ed=-1,td=fd($.length-t,0),nd=Array(td);++ed<td;)nd[ed]=$[t+ed];ed=-1;for(var rd=Array(t+1);++ed<t;)rd[ed]=$[ed];return rd[t]=nd,id(e,this,rd)}}function vd(e,t,$,ed){$||={};for(var td=-1,nd=t.length;++td<nd;){var rd=t[td],id=ed?ed($[rd],e[rd],rd,$,e):void 0;hd($,rd,id===void 0?e[rd]:id)}return $}function yd(e){return _d(function(t,$){var ed=-1,td=$.length,nd=td>1?$[td-1]:void 0,rd=td>2?$[2]:void 0;for(nd=e.length>3&&typeof nd==`function`?(td--,nd):void 0,rd&&xd($[0],$[1],rd)&&(nd=td<3?void 0:nd,td=1),t=Object(t);++ed<td;){var id=$[ed];id&&e(t,id,ed,nd)}return t})}function bd(e,t){return t??=$,!!t&&(typeof e==`number`||rd.test(e))&&e>-1&&e%1==0&&e<t}function xd(e,t,$){if(!Ad($))return!1;var ed=typeof t;return(ed==`number`?Ed($)&&bd(t,$.length):ed==`string`&&t in $)?Cd($[t],e):!1}function Sd(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||sd)}function Cd(e,t){return e===t||e!==e&&t!==t}function wd(e){return Dd(e)&&cd.call(e,`callee`)&&(!ud.call(e,`callee`)||ld.call(e)==ed)}var Td=Array.isArray;function Ed(e){return e!=null&&kd(e.length)&&!Od(e)}function Dd(e){return jd(e)&&Ed(e)}function Od(e){var t=Ad(e)?ld.call(e):``;return t==td||t==nd}function kd(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=$}function Ad(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function jd(e){return!!e&&typeof e==`object`}var Md=yd(function(e,t){if(pd||Sd(t)||Ed(t)){vd(t,Nd(t),e);return}for(var $ in t)cd.call(t,$)&&hd(e,$,t[$])});function Nd(e){return Ed(e)?md(e):gd(e)}t.exports=Md})),require_create_react_class=__commonJSMin(((e,t)=>{var $=require_react(),ed=require_factory();if($===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var td=new $.Component().updater;t.exports=ed($.Component,$.isValidElement,td)})),require_ModalPortal=__commonJSMin(((e,t)=>{require_react();var $=require_react_dom_factories(),ed=require_focusManager(),td=require_scopeTab(),nd=require_lodash_assign(),rd=require_create_react_class(),id=$.div,ad={overlay:`ReactModal__Overlay`,content:`ReactModal__Content`};t.exports=rd({displayName:`ModalPortal`,shouldClose:null,getDefaultProps:function(){return{style:{overlay:{},content:{}}}},getInitialState:function(){return{afterOpen:!1,beforeClose:!1}},componentDidMount:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())},componentWillUnmount:function(){clearTimeout(this.closeTimer)},componentWillReceiveProps:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()},componentDidUpdate:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))},setFocusAfterRender:function(e){this.focusAfterRender=e},afterClose:function(){ed.returnFocus(),ed.teardownScopedFocus()},open:function(){this.state.afterOpen&&this.state.beforeClose?(clearTimeout(this.closeTimer),this.setState({beforeClose:!1})):(ed.setupScopedFocus(this.node),ed.markForFocusLater(),this.setState({isOpen:!0},function(){this.setState({afterOpen:!0}),this.props.isOpen&&this.props.onAfterOpen&&this.props.onAfterOpen()}.bind(this)))},close:function(){this.props.closeTimeoutMS>0?this.closeWithTimeout():this.closeWithoutTimeout()},focusContent:function(){this.contentHasFocus()||this.refs.content.focus()},closeWithTimeout:function(){var e=Date.now()+this.props.closeTimeoutMS;this.setState({beforeClose:!0,closesAt:e},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.state.closesAt-Date.now())}.bind(this))},closeWithoutTimeout:function(){this.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},this.afterClose)},handleKeyDown:function(e){e.keyCode==9&&td(this.refs.content,e),e.keyCode==27&&(e.preventDefault(),this.requestClose(e))}
329,handleOverlayOnClick:function(e){this.shouldClose===null&&(this.shouldClose=!0),this.shouldClose&&this.props.shouldCloseOnOverlayClick&&(this.ownerHandlesClose()?this.requestClose(e):this.focusContent()),this.shouldClose=null},handleContentOnClick:function(){this.shouldClose=!1},requestClose:function(e){this.ownerHandlesClose()&&this.props.onRequestClose(e)},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.state.isOpen&&!this.state.beforeClose},contentHasFocus:function(){return document.activeElement===this.refs.content||this.refs.content.contains(document.activeElement)},buildClassName:function(e,t){var $=typeof t==`object`?t:{base:ad[e],afterOpen:ad[e]+`--after-open`,beforeClose:ad[e]+`--before-close`},ed=$.base;return this.state.afterOpen&&(ed+=` `+$.afterOpen),this.state.beforeClose&&(ed+=` `+$.beforeClose),typeof t==`string`&&t?[ed,t].join(` `):ed},render:function(){var e=this.props.className?{}:this.props.defaultStyles.content,t=this.props.overlayClassName?{}:this.props.defaultStyles.overlay;return this.shouldBeClosed()?id():id({ref:`overlay`,className:this.buildClassName(`overlay`,this.props.overlayClassName),style:nd({},t,this.props.style.overlay||{}),onClick:this.handleOverlayOnClick},id({ref:`content`,style:nd({},e,this.props.style.content||{}),className:this.buildClassName(`content`,this.props.className),tabIndex:`-1`,onKeyDown:this.handleKeyDown,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.props.children))}})})),require_ariaAppHider=__commonJSMin((e=>{var t=typeof document<`u`?document.body:null;function $(e){if(typeof e==`string`){var $=document.querySelectorAll(e);e=`length`in $?$[0]:$}return t=e||t,t}function ed(e){rd(e),(e||t).setAttribute(`aria-hidden`,`true`)}function td(e){rd(e),(e||t).removeAttribute(`aria-hidden`)}function nd(e,t){e?ed(t):td(t)}function rd(e){if(!e&&!t)throw Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function id(){t=document.body}e.toggle=nd,e.setElement=$,e.show=td,e.hide=ed,e.resetForTesting=id})),require_refCount=__commonJSMin(((e,t)=>{var $=[];t.exports={add:function(e){$.indexOf(e)===-1&&$.push(e)},remove:function(e){var t=$.indexOf(e);t!==-1&&$.splice(t,1)},count:function(){return $.length}}})),require_element_class=__commonJSMin(((e,t)=>{t.exports=function(e){return new ed(e)};function $(e,t){if(e.indexOf)return e.indexOf(t);for(var $=0,ed=e.length;$<ed;$++)if(e[$]===t)return $;return-1}function ed(e){if(!(this instanceof ed))return new ed(e);e||={},e.nodeType&&(e={el:e}),this.opts=e,this.el=e.el||document.body,typeof this.el!=`object`&&(this.el=document.querySelector(this.el))}ed.prototype.add=function(e){var t=this.el;if(t){if(t.className===``)return t.className=e;var ed=t.className.split(` `);return $(ed,e)>-1?ed:(ed.push(e),t.className=ed.join(` `),ed)}},ed.prototype.remove=function(e){var t=this.el;if(t&&t.className!==``){var ed=t.className.split(` `),td=$(ed,e);return td>-1&&ed.splice(td,1),t.className=ed.join(` `),ed}},ed.prototype.has=function(e){var t=this.el;if(t)return $(t.className.split(` `),e)>-1},ed.prototype.toggle=function(e){this.el&&(this.has(e)?this.remove(e):this.add(e))}})),require_Modal=__commonJSMin(((e,t)=>{var $=require_react(),ed=require_react_dom(),td=require_react_dom_factories(),nd=require_prop_types(),rd=require_exenv(),id=$.createFactory(require_ModalPortal()),ad=require_ariaAppHider(),od=require_refCount(),sd=require_element_class(),cd=require_react_dom().unstable_renderSubtreeIntoContainer,ld=require_lodash_assign(),ud=require_create_react_class(),dd=rd.canUseDOM?window.HTMLElement:{};rd.canUseDOM&&document.body;function fd(e){return e()}var pd=ud({displayName:`Modal`,statics:{setAppElement:function(e){ad.setElement(e)},injectCSS:function(){}},propTypes:{isOpen:nd.bool.isRequired,style:nd.shape({content:nd.object,overlay:nd.object}),portalClassName:nd.string,bodyOpenClassName:nd.string,appElement:nd.instanceOf(dd),onAfterOpen:nd.func,onRequestClose:nd.func,closeTimeoutMS:nd.number,ariaHideApp:nd.bool,shouldCloseOnOverlayClick:nd.bool,parentSelector:nd.func,role:nd.string,contentLabel:nd.string.isRequired},getDefaultProps:function(){return{isOpen:!1,portalClassName:`ReactModalPortal`,bodyOpenClassName:`ReactModal__Body--open`,ariaHideApp:!0,closeTimeoutMS:0,shouldCloseOnOverlayClick:!0,parentSelector:function(){return document.body}}},componentDidMount:function(){this.node=document.createElement(`div`),this.node.className=this.props.portalClassName,this.props.isOpen&&od.add(this),fd(this.props.parentSelector).appendChild(this.node),this.renderPortal(this.props)},componentWillUpdate:function(e){e.portalClassName!==this.props.portalClassName&&(this.node.className=e.portalClassName)},componentWillReceiveProps:function(e){e.isOpen&&od.add(this),e.isOpen||od.remove(this);var t=fd(this.props.parentSelector),$=fd(e.parentSelector);$!==t&&(t.removeChild(this.node),$.appendChild(this.node)),this.renderPortal(e)},componentWillUnmount:function(){if(this.node){od.remove(this),this.props.ariaHideApp&&ad.show(this.props.appElement);var e=this.portal.state,t=Date.now(),$=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);if($){e.beforeClose||this.portal.closeWithTimeout();var ed=this;setTimeout(function(){ed.removePortal()},$-t)}else this.removePortal()}},removePortal:function(){ed.unmountComponentAtNode(this.node),fd(this.props.parentSelector).removeChild(this.node),od.count()===0&&sd(document.body).remove(this.props.bodyOpenClassName)},renderPortal:function(e){e.isOpen||od.count()>0?sd(document.body).add(this.props.bodyOpenClassName):sd(document.body).remove(this.props.bodyOpenClassName),e.ariaHideApp&&ad.toggle(e.isOpen,e.appElement),this.portal=cd(this,id(ld({},e,{defaultStyles:pd.defaultStyles})),this.node)},render:function(){return td.noscript()}});pd.defaultStyles={overlay:{position:`fixed`,top:0,left:0,right:0,bottom:0,backgroundColor:`rgba(255, 255, 255, 0.75)`},content:{position:`absolute`,top:`40px`,left:`40px`,right:`40px`,bottom:`40px`,border:`1px solid #ccc`,background:`#fff`,overflow:`auto`,WebkitOverflowScrolling:`touch`,borderRadius:`4px`,outline:`none`,padding:`20px`}},t.exports=pd})),require_lib$2=__commonJSMin(((e,t)=>{t.exports=require_Modal()})),import_lib$2=__toESM(require_lib$2());function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var n=function(e){var t=document.createElement(`script`);t.async=!0,t.defer=!0,t.src=e,document.head&&document.head.appendChild(t)},i=function(e){return Array.from(document.scripts).reduce(function(t,$){return t||e.test($.src)},!1)},o=/(http|https):\/\/(www)?.+\/recaptcha/,a=[`sitekey`,`theme`,`size`,`badge`,`tabindex`,`hl`,`isolated`],c=function(e){var t,$;function ed(){for(var t,$=arguments.length,ed=Array($),td=0;td<$;td++)ed[td]=arguments[td];return(t=e.call.apply(e,[this].concat(ed))||this).container=void 0,t.timer=void 0,t.state={instanceKey:Date.now(),ready:!1,rendered:!1,invisible:t.props.size===`invisible`},t._isAvailable=function(){var e;return!!window.grecaptcha?.ready},t._inject=function(){t.props.inject&&!i(o)&&n(`https://recaptcha.net/recaptcha/api.js?render=explicit`+(t.props.hl?`&hl
329=`+t.props.hl:``))},t._prepare=function(){var e=t.props,$=e.explicit,ed=e.onLoad;window.grecaptcha.ready(function(){t.setState({ready:!0},function(){$||t.renderExplicitly(),ed&&ed()})})},t._renderRecaptcha=function(e,t){return window.grecaptcha.render(e,t)},t._resetRecaptcha=function(){return window.grecaptcha.reset(t.state.instanceId)},t._executeRecaptcha=function(){return window.grecaptcha.execute(t.state.instanceId)},t._getResponseRecaptcha=function(){return window.grecaptcha.getResponse(t.state.instanceId)},t._onVerify=function(e){return t.props.onVerify(e)},t._onExpire=function(){return t.props.onExpire&&t.props.onExpire()},t._onError=function(){return t.props.onError&&t.props.onError()},t._stopTimer=function(){t.timer&&clearInterval(t.timer)},t.componentDidMount=function(){t._inject(),t._isAvailable()?t._prepare():t.timer=window.setInterval(function(){t._isAvailable()&&(t._prepare(),t._stopTimer())},500)},t.componentWillUnmount=function(){t._stopTimer()},t.renderExplicitly=function(){return new Promise(function(e,$){if(t.state.rendered)return $(Error(`This recaptcha instance has been already rendered.`));if(!t.state.ready||!t.container)return $(Error(`Recaptcha is not ready for rendering yet.`));var ed=t._renderRecaptcha(t.container,{sitekey:t.props.sitekey,theme:t.props.theme,size:t.props.size,badge:t.state.invisible?t.props.badge:void 0,tabindex:t.props.tabindex,callback:t._onVerify,"expired-callback":t._onExpire,"error-callback":t._onError,isolated:t.state.invisible?t.props.isolated:void 0,hl:t.state.invisible?void 0:t.props.hl});t.setState({instanceId:ed,rendered:!0},function(){t.props.onRender&&t.props.onRender(),e()})})},t.reset=function(){return new Promise(function(e,$){if(t.state.rendered)return t._resetRecaptcha(),e();$(Error(`This recaptcha instance did not render yet.`))})},t.execute=function(){return new Promise(function(e,$){return t.state.invisible?(t.state.rendered&&(t._executeRecaptcha(),e()),$(Error(`This recaptcha instance did not render yet.`))):$(Error(`Manual execution is only available for invisible size.`))})},t.getResponse=function(){return new Promise(function(e,$){if(t.state.rendered)return e(t._getResponseRecaptcha());$(Error(`This recaptcha instance did not render yet.`))})},t.render=function(){var e=import_react$1.default.createElement(`div`,{key:t.state.instanceKey,id:t.props.id,className:t.props.className,ref:function(e){return t.container=e}});return t.props.children?t.props.children({renderExplicitly:t.renderExplicitly,reset:t.reset,execute:t.execute,getResponse:t.getResponse,recaptchaComponent:e}):e},t}return $=e,(t=ed).prototype=Object.create($.prototype),t.prototype.constructor=t,r(t,$),ed.getDerivedStateFromProps=function(e,t){var $=e.size===`invisible`;return $===t.invisible?null:{invisible:$}},ed.prototype.componentDidUpdate=function(e){var t=this;a.reduce(function($,ed){return t.props[ed]===e[ed]?$:[].concat($,[ed])},[]).length>0&&this.setState({instanceKey:Date.now(),rendered:!1},function(){t.props.explicit||t.renderExplicitly()})},ed}(import_react$1.Component);c.defaultProps={id:``,className:`g-recaptcha`,theme:`light`,size:`normal`,badge:`bottomright`,tabindex:0,explicit:!1,inject:!0,isolated:!1,hl:``};var require_pubsub=__commonJSMin(((e,t)=>{init_dist$1(),(function($,ed){var td={};$.PubSub?(td=$.PubSub,console.warn(`PubSub already loaded, using existing version`)):($.PubSub=td,ed(td)),typeof e==`object`?(t!==void 0&&t.exports&&(e=t.exports=td),e.PubSub=td,t.exports=e=td):typeof define==`function`&&define.amd&&define(function(){return td})})(typeof window==`object`&&window||e||global,function(e){var t={},$=-1,ed=`*`;function td(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function nd(e){return function(){throw e}}function rd(e,t,$){try{e(t,$)}catch(e){setTimeout(nd(e),0)}}function id(e,t,$){e(t,$)}function ad(e,$,ed,td){var nd=t[$],ad=td?id:rd,od;if(Object.prototype.hasOwnProperty.call(t,$))for(od in nd)Object.prototype.hasOwnProperty.call(nd,od)&&ad(nd[od],e,ed)}function od(e,t,$){return function(){var td=String(e),nd=td.lastIndexOf(`.`);for(ad(e,e,t,$);nd!==-1;
329)td=td.substr(0,nd),nd=td.lastIndexOf(`.`),ad(e,td,t,$);ad(e,ed,t,$)}}function sd(e){var $=String(e);return!!(Object.prototype.hasOwnProperty.call(t,$)&&td(t[$]))}function cd(e){for(var t=String(e),$=sd(t)||sd(ed),td=t.lastIndexOf(`.`);!$&&td!==-1;)t=t.substr(0,td),td=t.lastIndexOf(`.`),$=sd(t);return $}function ld(e,t,$,ed){e=typeof e==`symbol`?e.toString():e;var td=od(e,t,ed);return cd(e)?($===!0?td():setTimeout(td,0),!0):!1}e.publish=function(t,$){return ld(t,$,!1,e.immediateExceptions)},e.publishSync=function(t,$){return ld(t,$,!0,e.immediateExceptions)},e.subscribe=function(e,ed){if(typeof ed!=`function`)return!1;e=typeof e==`symbol`?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var td=`uid_`+String(++$);return t[e][td]=ed,td},e.subscribeAll=function(t){return e.subscribe(ed,t)},e.subscribeOnce=function(t,$){var ed=e.subscribe(t,function(){e.unsubscribe(ed),$.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){for(var $ in t)Object.prototype.hasOwnProperty.call(t,$)&&$.indexOf(e)===0&&delete t[$]},e.countSubscriptions=function(e){var $,ed,td=0;for($ in t)if(Object.prototype.hasOwnProperty.call(t,$)&&$.indexOf(e)===0){for(ed in t[$])td++;break}return td},e.getSubscriptions=function(e){var $,ed=[];for($ in t)Object.prototype.hasOwnProperty.call(t,$)&&$.indexOf(e)===0&&ed.push($);return ed},e.unsubscribe=function($){var ed=typeof $==`string`&&(Object.prototype.hasOwnProperty.call(t,$)||function(e){for(var $ in t)if(Object.prototype.hasOwnProperty.call(t,$)&&$.indexOf(e)===0)return!0;return!1}($)),td=!ed&&typeof $==`string`,nd=typeof $==`function`,rd=!1,id,ad,od;if(ed){e.clearSubscriptions($);return}for(id in t)if(Object.prototype.hasOwnProperty.call(t,id)){if(ad=t[id],td&&ad[$]){delete ad[$],rd=$;break}if(nd)for(od in ad)Object.prototype.hasOwnProperty.call(ad,od)&&ad[od]===$&&(delete ad[od],rd=!0)}return rd}})})),require_classnames=__commonJSMin(((e,t)=>{(function(){var e={}.hasOwnProperty;function $(){for(var e=``,t=0;t<arguments.length;t++){var $=arguments[t];$&&(e=td(e,ed($)))}return e}function ed(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return $.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var ed=``;for(var nd in t)e.call(t,nd)&&t[nd]&&(ed=td(ed,nd));return ed}function td(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?($.default=$,t.exports=$):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return $}):window.classNames=$})()})),import_pubsub=__toESM(require_pubsub()),import_classnames=__toESM(require_classnames()),Toggle=class extends import_react$1.Component{static defaultProps={data:{},status:`add`,display:`block`,label:null,onChangeStatus:(e,t,$,ed)=>{}};static propTypes={type:import_react$1.PropTypes.string,id:import_react$1.PropTypes.number,status:import_react$1.PropTypes.oneOf([`add`,`remove`]),label:import_react$1.PropTypes.string,display:import_react$1.PropTypes.oneOf([`block`,`inline`]),onChangeStatus:import_react$1.PropTypes.func,productTitle:import_react$1.PropTypes.string,familyId:import_react$1.PropTypes.number,familyTitle:import_react$1.PropTypes.string};handleClick=e=>{let{type:t,id:$,data:ed,selectionString:td,status:nd,onChangeStatus:rd,familyId:id,familyTitle:ad,productTitle:od}=this.props;e.preventDefault(),e.stopPropagation(),t===`configurator`&&nd===`add`&&document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Add to selection`,eventLabel:td,additionalFields:[`family`,`product`],family:ad,product:od}})),rd(t,$,typeof ed==`object`&&ed&&Object.keys(ed).length===0?``:decodeURIComponent(ed),nd)};render(){let{status:e,label:t,display:$}=this.props,ed=e===`add`?`add`:`remove`,td=(0,import_classnames.default)(`btn`,`selection`,[`selection--${$}`,`selection--${e}`]);return(0,import_jsx_runtime.jsxs)(`span`,{className:`selection-btn-container`,children:[t?t+` `:``,(0,import_jsx_runtime.jsx)(`button`,{className:td,onClick:this.handleClick,children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:ed})})]})}},SelectorToggle=class extends import_react$1.Component{static defaultProps={api:global_default.paths.api+`selector/cart/`,lang:global_default.lang};state={status:null};componentWillReceiveProps(e){this.setState({status:e.status})}handleChangeStatus(e,t,$,ed){let td=`${this.props.api}${ed}?lang=${this.props.lang}`;import_jquery.default.get(td,{type:e,id:t,data:$},e=>{let{data:t}=e;this.setNewStatus(ed),t&&t.total!==void 0&&import_pubsub.default.publish(`selector.cart.total`,{value:t.total})})}setNewStatus(e){let t=e===`add`?`remove`:`add`;this.setState({status:t})}render(){let e=this.state.status||this.props.status;return(0,import_jsx_runtime.jsx)(Toggle,{...this.props,status:e,onChangeStatus:(e,t,$,ed)=>{this.handleChangeStatus(e,t,$,ed)}})}},Tools=class extends import_react$1.Component{static defaultProps={l10n:{add:`Add`,view:`View PDF`,download_ies:`Download IES files`,download:`Download`,add_selection:`Add to your selection:`,share:`Share`,email:`Email`},view:null,canDownload:!1,shareTools:{}};static propTypes={l10n:import_react$1.PropTypes.object.isRequired,canDownload:import_react$1.PropTypes.bool,iesFilesCount:import_react$1.PropTypes.number,iesMaxFilesCount:import_react$1.PropTypes.number,iesMaxFilesDownloadCount:import_react$1.PropTypes.number,id:import_react$1.PropTypes.number.isRequired,inSelector:import_react$1.PropTypes.bool.isRequired,selectionString:import_react$1.PropTypes.string.isRequired,selection:import_react$1.PropTypes.string.isRequired,isConfigured:import_react$1.PropTypes.bool.isRequired,view:import_react$1.PropTypes.string,download:import_react$1.PropTypes.string.isRequired,url:import_react$1.PropTypes.string.isRequired,title:import_react$1.PropTypes.string.isRequired,iesMainUrl:import_react$1.PropTypes.string,apiIes:import_react$1.PropTypes.string.isRequired,api:import_react$1.PropTypes.string.isRequired,jwtSecret:import_react$1.PropTypes.string.isRequired,productTitle:import_react$1.PropTypes.string,familyId:import_react$1.PropTypes.number,familyTitle:import_react$1.PropTypes.string,
329shareTools:import_react$1.PropTypes.object.isRequired};state={loading:!1,relatedDocuments:{},isDropdownOpen:!1,isDropdownSpecSheetOpen:!1,modalIsOpen:!1,projectName:``,fixtureType:``,fixtureQuantity:``,token:`download_${Date.now()}`,isDownloadError:!1,isRecaptchaError:!1};constructor(e){super(e),this.shouldUseIesMainUrl=this.shouldUseIesMainUrl.bind(this),this.handleSpecSheetClick=this.handleSpecSheetClick.bind(this),this.handleProjectNameChange=this.handleProjectNameChange.bind(this),this.handleFixtureTypeChange=this.handleFixtureTypeChange.bind(this),this.handleFixtureQuantityChange=this.handleFixtureQuantityChange.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.shouldShowConfiguredSpecsheet=this.shouldShowConfiguredSpecsheet.bind(this),this.handleErrorDownload=this.handleErrorDownload.bind(this),this.openModal=this.openModal.bind(this),this.closeModal=this.closeModal.bind(this),this.recaptcha=null}onVerify=e=>{if(this.setState({isRecaptchaError:!1}),e){let{token:t,projectName:$,fixtureType:ed,fixtureQuantity:td}=this.state,nd=isIOS()&&this.props.view,{shouldShowConfiguredSpecsheet:rd}=this,id=nd?this.props.view:this.props.download,ad=new URLSearchParams(window.location.search).has(`cmspreview`);id+=`&token=${t}`,id+=`&g-recaptcha-response=${e}`,rd()&&(id+=`&projectName=${encodeURIComponent($)}&fixtureType=${encodeURIComponent(ed)}&fixtureQuantity=${td}`),ad&&(id+=`&cmspreview`),this.onDownloadClicked(),window.open(id,`_self`)}};onError=()=>{this.setState({isRecaptchaError:!0})};componentDidMount(){document.addEventListener(`click`,this.handleDocumentClick)}componentWillUnmount(){document.removeEventListener(`click`,this.handleDocumentClick)}shouldShowConfiguredSpecsheet(){let{useSpecsheetPopup:e}=this.props,t=new URLSearchParams(window.location.search).has(`cmspreview`);return e||t}shouldUseIesMainUrl(){let{iesMainUrl:e,iesMaxFilesCount:t,iesFilesCount:$}=this.props,{isAboveMaxFilesDownloadCount:ed}=this;return(t&&$===t||ed)&&e}get isAboveMaxFilesDownloadCount(){let{iesMaxFilesDownloadCount:e,iesFilesCount:t}=this.props;return e!==null&&t>e}get iesDownloadToken(){let{id:e,selection:t,jwtSecret:$,fileType:ed}=this.props,td={product_id:e,selection:t,type:ed};return import_jsonwebtoken.default.sign(td,$)}get iesFileName(){let{selectionString:e,fileType:t}=this.props;return`${e}-${t}.zip`.replace(/_/g,``).replace(/[ \-]+/g,`-`)}get iesUrl(){let{iesMainUrl:e,apiIes:t}=this.props,{shouldUseIesMainUrl:$}=this;return $()?e:`${t}/api/product/download?cache=${new Date().getTime()}`}refreshToken(){this.setState({token:`download_${Date.now()}`})}dispatchDownloadRequestEvent(e){let{selectionString:t}=this.props,$=new CustomEvent(`download-request`,{detail:{token:e}});document.dispatchEvent($),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Download configured specsheet`,eventLabel:t,additionalFields:[`family`,`product`],family:this.props.familyTitle,product:this.props.productTitle}}))}onDownloadClicked(e){let{token:t}=this.state,{selectionString:$}=this.props;this.dispatchDownloadRequestEvent(t),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Download configured specsheet`,eventLabel:$,additionalFields:[`family`,`product`],family:this.props.familyTitle,product:this.props.productTitle}})),setTimeout(()=>{this.refreshToken(),this.recaptcha.reset(),this.setState({isDropdownSpecSheetOpen:!1,projectName:``,fixtureType:``,fixtureQuantity:``})},1e3)}handleSpecSheetClick(e){this.setState({isDropdownSpecSheetOpen:!this.state.isDropdownSpecSheetOpen}),e.preventDefault()}handleProjectNameChange(e){this.setState({projectName:e.target.value})}handleFixtureTypeChange(e){let{target:t}=e,$=t.value.length>10?t.value.substring(0,10):t.value;this.setState({fixtureType:$})}handleFixtureQuantityChange(e){let{target:t}=e,$=t.value.length>10?t.value.substring(0,10):t.value;this.setState({fixtureQuantity:$})}renderSpecSheet(){let{l10n:e}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{className:`product-configurator-project`,children:[(0,import_jsx_runtime.jsx)(`h3`,{className:`u-mt-2 u-mb-0`,children:e.labels.forms.customize_config}),(0,import_jsx_runtime.jsx)(`span`,{className:`u-text-link u-display-block u-mb-3`,children:e.labels.forms.fields_optional}),(0,import_jsx_runtime.jsxs)(`form`,{action:``,className:`form-horizontal js-validation`,method:`post`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`row form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`project_name`,children:e.labels.forms.project_name}),(0,import_jsx_runtime.jsx)(`div`,{children:(0,import_jsx_runtime.jsx)(`input`,{className:`form-control`,id:`project_name`,type:`text`,name:`project_name`,placeholder:e.labels.forms.project_name_placeholder,onChange:this.handleProjectNameChange,value:this.state.projectName})})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`row form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`fixture_type`,children:e.labels.forms.fixture_type}),(0,import_jsx_runtime.jsx)(`div`,{children:(0,import_jsx_runtime.jsx)(`input`,{className:`form-control`,id:`fixture_type`,type:`text`,name:`fixture_type`,placeholder:e.labels.forms.fixture_type_placeholder,onChange:this.handleFixtureTypeChange,value:this.state.fixtureType})})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`row form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`fixture_quantity`,children:e.labels.forms.fixture_quantity}),(0,import_jsx_runtime.jsx)(`div`,{children:(0,import_jsx_runtime.jsx)(`input`,{className:`form-control`,id:`fixture_quantity`,type:`number`,name:`fixture_quantity`,placeholder:e.labels.forms.fixture_quantity_placeholder,onChange:this.handleFixtureQuantityChange,value:this.state.fixtureQuantity})})]}),(0,import_jsx_runtime.jsx)(`div`,{className:`row`,children:(0,import_jsx_runtime.jsx)(`div`,{children:this.renderDownloadLink()})})]})]})}handleShareClick=e=>{let{selectionString:t,familyTitle:$,productTitle:ed}=this.props,{isDropdownOpen:td}=this.state;e.preventDefault(),td||document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Share`,eventLabel:t,additionalFields:[`family`,`product`],family:$,product:ed}})),this.setState({isDropdownOpen:!this.state.isDropdownOpen})};handleUrlFocus=e=>{e.target.select()};async onDownloadIesClicked(e){e.preventDefault();let{iesUrl:t,iesDownloadToken:$}=this,{iesFileName:ed}=this,td=new DownloadQueue,{selectionString:nd,familyTitle:rd,productTitle:id}=this.props;td.addHtmlClass(),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Product configurator`,eventAction:`Download IES files`,eventLabel:nd,additionalFields:[`family`,`product`],family:rd,product:id}}));let ad={Authorization:`Bearer ${$}`,Project:global_default.project},od=(e,t)=>{typeof t==`object`&&Object.keys(t).forEach($=>{e.setRequestHeader($,t[$])})},sd=e=>{},cd=!1;try{let e=await new Promise((e,$)=>
329{let ed=new XMLHttpRequest;ed.open(`GET`,t,!0),ed.withCredentials=!1,ed.responseType=`blob`,od(ed,ad),ed.addEventListener(`load`,()=>{ed.status>=200&&ed.status,cd=ed.status>=300,e({body:ed.response,status:ed.status})}),ed.addEventListener(`progress`,e=>{}),ed.addEventListener(`error`,$),ed.addEventListener(`abort`,$),ed.send()});if(cd)this.handleErrorDownload();else{let t=e.body;if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,ed);else{let e=window.URL.createObjectURL(t),$=document.createElement(`a`);$.style=`display: none`,$.href=e,$.download=ed,$.innerHTML=ed,document.body.appendChild($),$.click()}}td.removeHtmlClass()}catch{td.removeHtmlClass()}}openModal(){let{id:e,selection:t,api:$}=this.props,ed=document.querySelector(`html`);this.setState({modalIsOpen:!0,loading:!0}),ed.classList.add(`show-html-mask`),fetch(`${$.replace(`/configurator?`,`/supportfiles?`)}&selection=${t}`,{method:`GET`,headers:{Project:global_default.project}}).then(e=>e.json()).then(e=>{this.setState({loading:!1,relatedDocuments:e.data})})}closeModal(){let e=document.querySelector(`html`);this.setState({modalIsOpen:!1}),e.classList.remove(`show-html-mask`)}renderRelatedDocuments(){let{l10n:e}=this.props,{loading:t,relatedDocuments:$,modalIsOpen:ed}=this.state;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`button`,{className:`btn btn--primary share-tools__btn`,onClick:this.openModal,children:[e.related_documents,(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-ml-1`,children:`description`})]}),(0,import_jsx_runtime.jsx)(import_lib$2.default,{isOpen:ed,closeTimeoutMS:150,onRequestClose:this.closeModal,shouldCloseOnOverlayClick:!0,className:`product-configurator-modal`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`lightbox`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`lightbox__header`,children:[(0,import_jsx_runtime.jsx)(`h2`,{className:`u-mb-0 u-mr-auto`,children:e.related_documents}),(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-cursor-pointer`,onClick:this.closeModal,children:`close`})]}),t&&(0,import_jsx_runtime.jsx)(`div`,{className:`u-display-flex u-justify-content-center`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`fa fa-spinner fa-pulse`,style:{fontSize:`3rem`}})}),(0,import_jsx_runtime.jsx)(`div`,{className:`product-configurator__loading`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`fa fa-spinner fa-pulse product-configurator__loading-icon`,"aria-hidden":`true`})}),!t&&$.length&&(0,import_jsx_runtime.jsx)(`div`,{children:$.map(e=>(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`span`,{className:`filter-category__title`,children:e.title}),(0,import_jsx_runtime.jsx)(`ul`,{className:`downloads-products-items`,children:e.files.map(e=>(0,import_jsx_runtime.jsx)(`li`,{style:{paddingRight:`64px`},children:(0,import_jsx_runtime.jsxs)(`a`,{href:e.link,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`downloads-products-items__item`,children:[(0,import_jsx_runtime.jsxs)(`span`,{children:[(0,import_jsx_runtime.jsx)(`img`,{src:e.icon,alt:e.title,className:`u-display-inline-block u-vert-align-mid u-mr-2 u-ml-1`,width:`32`,height:`32`,style:{width:`32px`}}),e.title]}),(0,import_jsx_runtime.jsx)(`span`,{style:{paddingLeft:`50px`}}),(0,import_jsx_runtime.jsx)(`span`,{children:e.type.toUpperCase()}),(0,import_jsx_runtime.jsxs)(`span`,{children:[`\xA0`,e.size_string]})]}),(0,import_jsx_runtime.jsx)(`span`,{className:`downloads-products-download`,style:{right:`16px`},children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:`download`})})]})},e.title))})]},e.title))}),!t&&!$.length&&(0,import_jsx_runtime.jsx)(`p`,{className:`u-mb-0`,children:e.related_empty})]})})]})}renderDownloadIESBtn(){let{l10n:e,iesFilesCount:t,iesMainUrl:$,fileType:ed}=this.props,{shouldUseIesMainUrl:td,iesUrl:nd,iesDownloadToken:rd,isAboveMaxFilesDownloadCount:id}=this,{isDownloadError:ad}=this.state,od=e.download_any;ed===`ies`?od=e.download_ies:ed===`ldt`&&(od=e.download_ldt);let sd=ad?`btn btn--danger share-tools__btn`:`btn btn--primary share-tools__btn`,cd=ad?`fa fa-exclamation-triangle u-vert-align-mid`:`fa fa-download u-vert-align-mid`;return td()?od+=` (${e.all_files})`:!id&&t!==null&&(od+=` (${t})`),(0,import_jsx_runtime.jsxs)(`a`,{href:nd,onClick:!td()&&this.onDownloadIesClicked.bind(this),disabled:ad||!t||!nd||id&&!$,className:sd,children:[od,`\xA0\xA0`,(0,import_jsx_runtime.jsx)(`i`,{className:cd})]})}renderDownloadLink(){let{l10n:e,recaptchaKey:t}=this.props,{isRecaptchaError:$}=this.state,{shouldShowConfiguredSpecsheet:ed}=this;return ed()&&(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(c,{ref:e=>this.recaptcha=e,sitekey:t,onVerify:this.onVerify,onError:this.onError,size:`invisible`}),(0,import_jsx_runtime.jsxs)(`a`,{onClick:e=>{this.recaptcha.execute(),e.preventDefault()},href:`#`,className:`btn btn--accent share-tools__btn`,children:[ed()?e.labels.forms.generate:e.download_configured,`\xA0\xA0`,(0,import_jsx_runtime.jsx)(`i`,{className:`fa fa-download u-vert-align-mid`})]}),$&&(0,import_jsx_runtime.jsx)(`div`,{className:`alert alert--danger`,children:e.labels.forms.recaptcha_fail})]})}renderShare(){let{l10n:e,url:t,title:$,selection:ed,shareTools:td}=this.props,nd=`${t}${t.includes(`?`)?`&`:`?`}selection=${ed}#configurator`,rd=encodeURIComponent(nd),id=encodeURIComponent($),ad=encodeURIComponent($.substring(0,117));return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`share-tools`,children:[(0,import_jsx_runtime.jsxs)(`a`,{href:`mailto:?subject=${id}&body=%0A${nd}`,className:`share-tools__link`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`icon-mail`}),` `,e.email]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`col-right`,children:[td.facebook&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://www.facebook.com/sharer/sharer.php?u=${rd}`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`icon-facebook icon--lg`})}),td.x&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://x.com/intent/tweet?text=${ad}&url=${rd}`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`svg`,{style:{width:`16px`,marginBottom:`-3px`},xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,className:`bi bi-twitter-x`,id:`Twitter-X--Streamline-Bootstrap`,viewBox:`0 1.13 24 21.75`,children:(0,import_jsx_runtime.jsx)(`path`,{d:`M18.9 1.125h3.681l-8.040000000000001 9.213000000000001L24 22.875h-7.4055l-5.8004999999999995 -7.605 -6.637499999999999 7.605H0.474l8.599499999999999 -9.855L0 1.125h7.5945l5.2425 6.9495000000000005L18.901500000000002 1.125Zm-1.29 19.542h2.04L6.484500000000001 3.2175000000000002H4.2975z`,"stroke-width":`1.5`})})}),td.linkedin&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://www.linkedin.com/shareArticle?mini=true&url=${rd}&title=${id}&summary=`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`icon-linkedin icon--lg`})})]})]}),(0,import_jsx_runtime.jsx)(`input`,{type:`text`,className:`form-control`,defaultValue:nd,value:nd,onChange:()=>{},onFocus:this.handleUrlFocus})]})}renderDropdown(e,t){return(0,import_jsx_runtime.jsx)(`div`,{className:`dropdown`+(t?` is-open`:``),children:(0,import_jsx_runtime.jsx)(`div`,{className:`dropdown-panel dropdown-panel--right u-pt-1`,children:e()})})}handleDocumentClick(e){(!this.shareDropdown||!this.shareDropdown.contains(e.target))&&this.setState({isDropdownOpen:!1}),(!this.specSheetDropdown||!this.specSheetDropdown.contains(e.target))&&this.setState({isDropdownSpecSheetOpen:!1})}handleErrorDownload(){this.setState({isDownloadError:!0}),window.setTimeout(()=>{this.setState({isDownloadError:!1})},1500)}render(){let{l10n:e,id:t,selection:$,selectionString:ed,inSelector:td,canDownload:nd,useSpecsheetPopup:rd,familyId:id,familyTitle:ad,productTitle:od,showSelection:sd,showRelatedDocuments:cd,isVss:ld}=this.props,{isDropdownOpen:ud,isDropdownSpecSheetOpen:dd}=this.state,{shouldShowConfiguredSpecsheet:fd}=this;return ld?(0,import_jsx_runtime.jsx)(`div`,{}):(0,import_jsx_runtime.jsxs)(`div`,{className:`share-tools share-tools--configurator`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`share-tools__flex`,children:[sd&&(0,import_jsx_runtime.jsx)(`span`,{className:`share-tools__btn share-tools__btn--selection u-p-0`,children:(0,import_jsx_runtime.jsx)(SelectorToggle,{label:e.add_selection,type:`configurator`,id:t,data:$,familyId:id,familyTitle:ad,productTitle:od,selectionString:ed,status:td?`remove`:`add`,display:`inline`})}),cd&&this.renderRelatedDocuments(),nd&&this.renderDownloadIESBtn(),(0,import_jsx_runtime.jsxs)(`span`,{className:`visible-above-medium-inline-block`,ref:e=>{this.specSheetDropdown=e},children:[fd()&&(0,import_jsx_runtime.jsxs)(`a`,{href:`#`,className:`btn btn--accent share-tools__btn`,"aria-haspopup":`true`,"aria-expanded":dd,onClick:this.handleSpecSheetClick,children:[e.download_configured,`\xA0\xA0`,(0,import_jsx_runtime.jsx)(`i`,{className:`fa fa-download u-vert-align-mid`})]}),fd()&&this.renderDropdown(this.renderSpecSheet.bind(this),dd)]}),(0,import_jsx_runtime.jsxs)(`span`,{className:`dropdown visible-above-medium-inline-block`,ref:e=>{this.shareDropdown=e},children:[(0,import_jsx_runtime.jsx)(`a`,{href:`#`,className:`btn btn--gray share-tools__btn u-mr-0`,"aria-haspopup":`true`,"aria-expanded":ud,onClick:this.handleShareClick,children:e.share}),this.renderDropdown(this.renderShare.bind(this),ud)]}),` `]}),fd()&&(0,import_jsx_runtime.jsx)(`div`,{className:`visible-under-small-block u-bt u-pt-2 u-mt-2`,children:this.renderSpecSheet()}),(0,import_jsx_runtime.jsx)(`div`,{className:`visible-under-small-block u-bt u-mt-2`,children:this.renderShare()})]})}},mapStateToProps$26=e=>{let{config:t}=e;return{recaptchaKey:t.recaptchaKey}},Tools_default=(0,import_lib$3.connect)(mapStateToProps$26)(Tools),ToolsContainer=class extends import_react$1.Component{render(){let{l10n:e,id:t,title:$,selection:ed,inSelector:td,selectionString:nd,isConfigured:rd,url:id,iesFilesCount:ad,iesMaxFilesCount:od,iesMaxFilesDownloadCount:sd,iesMainUrl:cd,iesMainType:ld,canDownload:ud,api:dd,apiIes:fd,isVss:pd,lang:md,jwtSecret:hd,use
329SpecsheetPopup:gd,productTitle:_d,familyId:vd,familyTitle:yd,showSelection:bd,showRelatedDocuments:xd,shareTools:Sd}=this.props,Cd=`${$} | ${nd}`,wd=encodeURIComponent(ed),Td=`${global_default.paths.api}selector/pdf/view/configurator?id=${t}&selection=${wd}`,Ed=`${global_default.paths.api}selector/pdf/download/configurator?id=${t}&selection=${wd}&lang=${md}`;return(0,import_jsx_runtime.jsx)(Tools_default,{...this.props,l10n:e,inSelector:td,id:t,selectionString:nd,selection:wd,isConfigured:rd,title:Cd,view:Td,download:Ed,url:id,canDownload:ud,iesFilesCount:ad,fileType:ld,iesMaxFilesCount:od,iesMaxFilesDownloadCount:sd,iesMainUrl:cd,api:dd,apiIes:fd,isVss:pd,jwtSecret:hd,useSpecsheetPopup:gd,productTitle:_d,familyId:vd,familyTitle:yd,showSelection:bd,showRelatedDocuments:xd,shareTools:Sd})}},mapStateToProps$25=e=>{let{config:t,data:$}=e,{result:ed}=$;return{id:ed.id,selection:ed.selection_encoded,selectionString:ed.selected_string,inSelector:ed.in_basket,title:ed.title,l10n:t.l10n,url:t.urls.share,canDownload:$.canDownload,iesFilesCount:$.iesFilesCount,iesMaxFilesCount:$.iesMaxFilesCount,iesMainUrl:t.urls.iesMainUrl,iesMainType:t.iesMainType,iesMaxFilesDownloadCount:t.iesMaxFilesDownloadCount,api:t.api,apiIes:t.apiIes,jwtSecret:t.jwtSecret,useSpecsheetPopup:t.useSpecsheetPopup,productTitle:$.productTitle,familyId:$.familyId,familyTitle:ed.family_title,showSelection:t.showSelection,showSelection:t.showSelection,showRelatedDocuments:t.showRelatedDocuments,shareTools:t.shareTools,isVss:t.isVss,isConfigured:ed.fully_configured}},ToolsContainer_default=(0,import_lib$3.connect)(mapStateToProps$25)(ToolsContainer),ConfigurationContainer=class extends import_react$1.Component{componentDidMount(){let{api:e,selection:t,site:$,l10n:ed,apiVss:td,isVss:nd,colors:rd}=this.props;this.configuratorApp=ys(this.refs.configuratorApp,{apiUrl:e,productId:null,project:global_default.project,lang:global_default.itemLocale||global_default.lang||`en`,region:global_default.region,unit:global_default.unit,initialSelection:t||``,displayOptions:{code:!1},icons:{quickship:asset(`resources/img/sites/${$}/quickship.png`),darksky:asset(`resources/img/darksky.png`)},labels:{quickship:ed.quickship,darksky:ed.darksky},tooltips:{darksky:{title:ed.darksky_tooltip_title,description:ed.darksky_tooltip_desc},quickship:{title:ed.quickship_tooltip_title,description:ed.quickship_tooltip_desc}},complianceStatus:{darksky:{compliant:ed.darksky_compliant,warning:ed.darksky_warning,notCompliant:ed.darksky_not_compliant},quickship:{compliant:ed.quickship_compliant,warning:ed.quickship_warning,notCompliant:ed.quickship_not_compliant}},colors:rd,apiVss:td,isVss:!!nd})}componentWillUnmount(){this.configuratorApp?.unmount?.()}render(){return(0,import_jsx_runtime.jsx)(`div`,{className:`product-configurator__app`,ref:`configuratorApp`})}},mapStateToProps$24=e=>{let{config:t}=e;return{site:t.site,l10n:t.l10n,apiVss:t.apiVss,isVss:t.isVss,colors:t.colors}},ConfigurationContainer_default=(0,import_lib$3.connect)(mapStateToProps$24)(ConfigurationContainer);init_es();var CONFIGURATOR_APP_CONFIG_CHANGE=`lmpg-configurator:config-change`,App$4=class extends import_react$1.Component{static propTypes={lang:import_react$1.PropTypes.string.isRequired,selection:import_react$1.PropTypes.string,config:import_react$1.PropTypes.object,isInitialLoad:import_react$1.PropTypes.bool.isRequired,isEmpty:import_react$1.PropTypes.bool.isRequired,configUpdate:import_react$1.PropTypes.func.isRequired,selectionSet:import_react$1.PropTypes.func.isRequired,dataFetchSuccess:import_react$1.PropTypes.func.isRequired,dataIesFetchInitial:import_react$1.PropTypes.func.isRequired,dataIesFetch:import_react$1.PropTypes.func.isRequired};static defaultProps={lang:`en`};constructor(e){super(e),e.configUpdate(e.config),e.selectionSet(e.selection)}handleTooltipsClasses(e){let t=window.innerWidth||document.documentElement.clientWidth;e.forEach(e=>{let $=e.getBoundingClientRect();e.classList.toggle(`is-right`,$.right>t)})}componentDidMount(){this.section=this.refs.configurator?.closest(`.product-details-section`),document.addEventListener(CONFIGURATOR_APP_CONFIG_CHANGE,this.handleConfiguratorAppChange)}componentWillUnmount(){document.removeEventListener(CONFIGURATOR_APP_CONFIG_CHANGE,this.handleConfiguratorAppChange)}handleConfiguratorAppChange=e=>{let{selectionSet:t,dataFetchSuccess:$,dataIesFetchInitial:ed,dataIesFetch:td,config:nd}=this.props,{selectionEncoded:rd=``,result:id}=e.detail||{};id&&(t(rd),$(id,this.hasSynced),nd.isVss||(this.hasSynced?td():ed(id)),this.hasSynced=!0)};componentDidUpdate(){if(this.section?.classList.toggle(`u-display-none`,this.props.isEmpty),this.props.isEmpty)return;let{configurator:e}=this.refs,t=document.querySelector(`.product-details-subnav`)?.clientHeight??0,$=window.matchMedia(`(min-width: 768px)`),ed=document.querySelector(`.header`)?.clientHeight??0,td=ed+t,nd=e.querySelectorAll(`.js-tooltip`);this.handleTooltipsClasses(nd),window.addEventListener(`resize`,()=>{ed=document.querySelector(`.header`)?.clientHeight??0,td=ed+t,this.handleTooltipsClasses(nd)}),window.addEventListener(`scroll`,()=>{if($.matches){let $=e.getBoundingClientRect(),ed=e.querySelector(`.product-configurator-code`);if(!ed)return;let nd=$.y<td&&$.y+$.height>td+70;ed.classList.toggle(`is-sticky`,nd),t>0&&ed.classList.toggle(`has-subnav`,nd)}})}render(){let{isInitialLoad:e,isEmpty:t,lang:$,config:ed,selection:td}=this.props;if(t)return null;let nd=!e&&!t;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`h2`,{className:`product-details-title`,children:ed.l10n.title}),(0,import_jsx_runtime.jsxs)(`div`,{ref:`configurator`,className:`product-configurator`,children:[nd&&(0,import_jsx_runtime.jsx)(CodeContainer_default,{}),nd&&(0,import_jsx_runtime.jsx)(ToolsContainer_default,{lang:$}),nd&&(0,import_jsx_runtime.jsx)(`hr`,{}),(0,import_jsx_runtime.jsx)(ConfigurationContainer_default,{api:ed.api,selection:td}),(0,import_jsx_runtime.jsx)(`div`,{className:`product-configurator__loading`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`fa fa-spinner fa-pulse product-configurator__loading-icon`,"aria-hidden":`true`})})]})]})}},mapStateToProps$23=e=>({isInitialLoad:e.data.isInitialLoad,isEmpty:e.data.isEmpty}),mapDispatchToProps$18={configUpdate,selectionSet,dataFetchSuccess:dataFetchSuccess$1,dataIesFetchInitial,dataIesFetch},App_default$3=(0,import_lib$3.connect)(mapStateToProps$23,mapDispatchToProps$18)(App$4),Configurator=class extends import_react$1.Component{render(){return(0,import_jsx_runtime.jsx)(import_lib$3.Provider,{store:configureStore$4(),children:(0,import_jsx_runtime.jsx)(App_default$3,{...this.props})})}},CONFIG_UPDATE=`CONFIG_UPDATE`;function selectorApiCall(e,t={},$=()=>{}){return(ed,td)=>{let{config:nd}=td();return import_jquery.default.get(nd.api+e,t,$)}}function cartFetch(e={}){return(t,$)=>{let{config:ed,cart:td}=$();return t(cartFetchStart()),import_jquery.default.get(ed.api+`cart/list`,{lang:global_default.lang,selection:e},function(e){t(cartFetchSuccess(e.data))})}}var CART_FETCH_START=`CART_FETCH_START`;function cartFetchStart(){return{type:CART_FETCH_START}}var CART_FETCH_SUCCESS=`CART_FETCH_SUCCESS`;function cartFetchSuccess(e){return{type:CART_FETCH_SUCCESS,data:e}}function cartRemove(e,t,$={}){return(ed,td)=>{let{config:nd}=td();import_jquery.default.get(nd.api+`cart/remove`,{lang:global_default.lang,with_list:!0,type:e,id:t,data:$===`null`?null:$},e=>{let{total:t,selection:$,cart:td}=e.data;ed(cartUpdateTotal(t)),ed(cartFetchSuccess({total:t,selection:$,cart:td}))})}}function cartUpdateTotal(e){return(t,$)=>{e!==null&&import_pubsub.default.publish(`selector.cart.total`,{value:e})}}function cartReorderApi(e){return(t,$)=>{t(cartReorder(e)),t(selectorApiCall(`cart/order`,{cart_ids:e},e=>{let{total:$,selection:ed,cart:td}=e.data;t(cartFetchSuccess({total:$,selection:ed,cart:td}))}
329))}}var CART_REORDER=`CART_REORDER`;function cartReorder(e){return{type:CART_REORDER,ids:e}}var PERSONALIZE_UPDATE_FIELD=`PERSONALIZE_UPDATE_FIELD`;function personalizeUpdateField(e,t){return{type:PERSONALIZE_UPDATE_FIELD,name:e,value:t}}var PERSONALIZE_LOAD_FROM_STORAGE=`PERSONALIZE_LOAD_FROM_STORAGE`;function personalizeLoadFromStorage(){return{type:PERSONALIZE_LOAD_FROM_STORAGE}}function config$4(e={api:``,l10n:{},urls:{}},t){switch(t.type){case CONFIG_UPDATE:return{...e,...t.config,urls:{...e.urls,...t.config.urls},l10n:{...e.l10n,...t.config.l10n}};default:return e}}function cart(e={isFetching:!1,isInitialLoad:!0,data:{total:0,selection:``,items:[]}},t){switch(t.type){case CART_FETCH_START:return{...e,isFetching:!0};case CART_FETCH_SUCCESS:return{...e,isInitialLoad:!1,isFetching:!1,data:{...e.data,total:t.data.total,selection:t.data.selection,items:t.data.cart}};case CART_REORDER:let $=t.ids.map(t=>e.data.items.filter(e=>e.cart_id===+t)[0]);return{...e,data:{...e.data,items:$}};default:return e}}var storage$1=window.sessionStorage||void 0,saveInStorage$1=(e,t,$=null)=>{if(!(storage$1===`undefined`||e===`logo`))return $&&$[e]===t?storage$1.removeItem(e):storage$1.setItem(e,t),t},loadFromStorage=e=>{if(storage$1!==`undefined`)return storage$1.getItem(e)};function personalize(e={isShared:!1,selection:``,title:``,subtitle:``,logo:null,defaults:{title:``,subtitle:``}},t){switch(t.type){case PERSONALIZE_UPDATE_FIELD:return e[t.name]===void 0?e:(saveInStorage$1(t.name,t.value,e.defaults),{...e,[t.name]:t.value});case PERSONALIZE_LOAD_FROM_STORAGE:let $=loadFromStorage(`title`)||e.title,ed=loadFromStorage(`subtitle`)||e.subtitle;return e.isShared&&($=saveInStorage$1(`title`,e.title,e.defaults),ed=saveInStorage$1(`subtitle`,e.subtitle,e.defaults)),{...e,title:$,subtitle:ed};default:return e}}init_es();var rootReducer$3=combineReducers({config:config$4,cart,personalize});init_es();var createStoreWithMiddleware$3=applyMiddleware(thunk,(0,import_lib$4.default)({predicate:(e,t)=>global_default.debug,collapsed:!0}))(createStore);function configureStore$3(e){return createStoreWithMiddleware$3(rootReducer$3,e)}var require_core=__commonJSMin((()=>{(function(e,t){var $=0,ed=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:`1.10.4`,keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:(function(t){return function($,ed){return typeof $==`number`?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),ed&&ed.call(t)},$)}):t.apply(this,arguments)}})(e.fn.focus),scrollParent:function(){var t=e.ui.ie&&/(static|relative)/.test(this.css(`position`))||/absolute/.test(this.css(`position`))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,`position`))&&/(auto|scroll)/.test(e.css(this,`overflow`)+e.css(this,`overflow-y`)+e.css(this,`overflow-x`))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,`overflow`)+e.css(this,`overflow-y`)+e.css(this,`overflow-x`))}).eq(0);return/fixed/.test(this.css(`position`))||!t.length?e(document):t},zIndex:function($){if($!==t)return this.css(`zIndex`,$);if(this.length)for(var ed=e(this[0]),td,nd;ed.length&&ed[0]!==document;){if(td=ed.css(`position`),(td===`absolute`||td===`relative`||td===`fixed`)&&(nd=parseInt(ed.css(`zIndex`),10),!isNaN(nd)&&nd!==0))return nd;ed=ed.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||=`ui-id-`+ ++$})},removeUniqueId:function(){return this.each(function(){ed.test(this.id)&&e(this).removeAttr(`id`)})}});function td(t,$){var ed,td,rd,id=t.nodeName.toLowerCase();return id===`area`?(ed=t.parentNode,td=ed.name,!t.href||!td||ed.nodeName.toLowerCase()!==`map`?!1:(rd=e(`img[usemap=#`+td+`]`)[0],!!rd&&nd(rd))):(/input|select|textarea|button|object/.test(id)?!t.disabled:id===`a`&&t.href||$)&&nd(t)}function nd(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return e.css(this,`visibility`)===`hidden`}).length}e.extend(e.expr[`:`],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function($){return!!e.data($,t)}}):function(t,$,ed){return!!e.data(t,ed[3])},focusable:function(t){return td(t,!isNaN(e.attr(t,`tabindex`)))},tabbable:function(t){var $=e.attr(t,`tabindex`),ed=isNaN($);return(ed||$>=0)&&td(t,!ed)}}),e(`<a>`).outerWidth(1).jquery||e.each([`Width`,`Height`],function($,ed){var td=ed===`Width`?[`Left`,`Right`]:[`Top`,`Bottom`],nd=ed.toLowerCase(),rd={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function id(t,$,ed,nd){return e.each(td,function(){$-=parseFloat(e.css(t,`padding`+this))||0,ed&&($-=parseFloat(e.css(t,`border`+this+`Width`))||0),nd&&($-=parseFloat(e.css(t,`margin`+this))||0)}),$}e.fn[`inner`+ed]=function($){return $===t?rd[`inner`+ed].call(this):this.each(function(){e(this).css(nd,id(this,$)+`px`)})},e.fn[`outer`+ed]=function(t,$){return typeof t==`number`?this.each(function(){e(this).css(nd,id(this,t,!0,$)+`px`)}):rd[`outer`+ed].call(this,t)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e(`<a>`).data(`a-b`,`a`).removeData(`a-b`).data(`a-b`)&&(e.fn.removeData=(function(t){return function($){return arguments.length?t.call(this,e.camelCase($)):t.call(this)}})(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart=`onselectstart`in document.createElement(`div`),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?`selectstart`:`mousedown`)+`.ui-disableSelection`,function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(`.ui-disableSelection`)}}),e.extend(e.ui,{plugin:{add:function(t,$,ed){var td,nd=e.ui[t].prototype;for(td in ed)nd.plugins[td]=nd.plugins[td]||[],nd.plugins[td].push([$,ed[td]])},call:function(e,t,$){var ed,td=e.plugins[t];if(!(!td||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11))for(ed=0;ed<td.length;ed++)e.options[td[ed][0]]&&td[ed][1].apply(e.element,$)}},hasScroll:function(t,$){if(e(t).css(`overflow`)===`hidden`)return!1;var ed=$&&$===`left`?`scrollLeft`:`scrollTop`,td=!1;return t[ed]>0?!0:(t[ed]=1,td=t[ed]>0,t[ed]=0,td)}})})(require_jquery())})),require_widget=__commonJSMin((()=>{(function(e,t){var $=0,ed=Array.prototype.slice,td=e.cleanData;e.cleanData=function(t){for(var $=0,ed;(ed=t[$])!=null;$++)try{e(ed).triggerHandler(`remove`)}catch{}td(t)},e.widget=function(t,$,ed){var td,nd,rd,id,ad={},od=t.split(`.`)[0];t=t.split(`.`)[1],td=od+`-`+t,ed||(ed=$,$=e.Widget),e.expr[`:`][td.toLowerCase()]=function(t){return!!e.data(t,td)},e[od]=e[od]||{},nd=e[od][t],rd=e[od][t]=function(e,t){if(!this._createWidget)return new rd(e,t);arguments.length&&this._createWidget(e,t)},e.extend(rd,nd,{version:ed.version,_proto:e.extend({},ed),_childConstructors:[]}),id=new $,id.options=e.widget.extend({},id.options),e.each(ed,function(t,ed){if(!e.isFunction(ed)){ad[t]=ed;return}ad[t]=(function(){var e=function(){return $.prototype[t].apply(this,arguments)},td=function(e){return $.prototype[t].apply(this,e)};
329return function(){var t=this._super,$=this._superApply,nd;return this._super=e,this._superApply=td,nd=ed.apply(this,arguments),this._super=t,this._superApply=$,nd}})()}),rd.prototype=e.widget.extend(id,{widgetEventPrefix:nd&&id.widgetEventPrefix||t},ad,{constructor:rd,namespace:od,widgetName:t,widgetFullName:td}),nd?(e.each(nd._childConstructors,function(t,$){var ed=$.prototype;e.widget(ed.namespace+`.`+ed.widgetName,rd,$._proto)}),delete nd._childConstructors):$._childConstructors.push(rd),e.widget.bridge(t,rd)},e.widget.extend=function($){for(var td=ed.call(arguments,1),nd=0,rd=td.length,id,ad;nd<rd;nd++)for(id in td[nd])ad=td[nd][id],td[nd].hasOwnProperty(id)&&ad!==t&&(e.isPlainObject(ad)?$[id]=e.isPlainObject($[id])?e.widget.extend({},$[id],ad):e.widget.extend({},ad):$[id]=ad);return $},e.widget.bridge=function($,td){var nd=td.prototype.widgetFullName||$;e.fn[$]=function(rd){var id=typeof rd==`string`,ad=ed.call(arguments,1),od=this;return rd=!id&&ad.length?e.widget.extend.apply(null,[rd].concat(ad)):rd,id?this.each(function(){var ed,td=e.data(this,nd);if(!td)return e.error(`cannot call methods on `+$+` prior to initialization; attempted to call method '`+rd+`'`);if(!e.isFunction(td[rd])||rd.charAt(0)===`_`)return e.error(`no such method '`+rd+`' for `+$+` widget instance`);if(ed=td[rd].apply(td,ad),ed!==td&&ed!==t)return od=ed&&ed.jquery?od.pushStack(ed.get()):ed,!1}):this.each(function(){var t=e.data(this,nd);t?t.option(rd||{})._init():e.data(this,nd,new td(rd,this))}),od}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:`widget`,widgetEventPrefix:``,defaultElement:`<div>`,options:{disabled:!1,create:null},_createWidget:function(t,ed){ed=e(ed||this.defaultElement||this)[0],this.element=e(ed),this.uuid=$++,this.eventNamespace=`.`+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),ed!==this&&(e.data(ed,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===ed&&this.destroy()}}),this.document=e(ed.style?ed.ownerDocument:ed.document||ed),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger(`create`,null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(`aria-disabled`).removeClass(this.widgetFullName+`-disabled ui-state-disabled`),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(`ui-state-hover`),this.focusable.removeClass(`ui-state-focus`)},_destroy:e.noop,widget:function(){return this.element},option:function($,ed){var td=$,nd,rd,id;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof $==`string`)if(td={},nd=$.split(`.`),$=nd.shift(),nd.length){for(rd=td[$]=e.widget.extend({},this.options[$]),id=0;id<nd.length-1;id++)rd[nd[id]]=rd[nd[id]]||{},rd=rd[nd[id]];if($=nd.pop(),arguments.length===1)return rd[$]===t?null:rd[$];rd[$]=ed}else{if(arguments.length===1)return this.options[$]===t?null:this.options[$];td[$]=ed}return this._setOptions(td),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,e===`disabled`&&(this.widget().toggleClass(this.widgetFullName+`-disabled ui-state-disabled`,!!t).attr(`aria-disabled`,t),this.hoverable.removeClass(`ui-state-hover`),this.focusable.removeClass(`ui-state-focus`)),this},enable:function(){return this._setOption(`disabled`,!1)},disable:function(){return this._setOption(`disabled`,!0)},_on:function(t,$,ed){var td,nd=this;typeof t!=`boolean`&&(ed=$,$=t,t=!1),ed?($=td=e($),this.bindings=this.bindings.add($)):(ed=$,$=this.element,td=this.widget()),e.each(ed,function(ed,rd){function id(){if(!(!t&&(nd.options.disabled===!0||e(this).hasClass(`ui-state-disabled`))))return(typeof rd==`string`?nd[rd]:rd).apply(nd,arguments)}typeof rd!=`string`&&(id.guid=rd.guid=rd.guid||id.guid||e.guid++);var ad=ed.match(/^(\w+)\s*(.*)$/),od=ad[1]+nd.eventNamespace,sd=ad[2];sd?td.delegate(sd,od,id):$.bind(od,id)})},_off:function(e,t){t=(t||``).split(` `).join(this.eventNamespace+` `)+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function $(){return(typeof e==`string`?ed[e]:e).apply(ed,arguments)}var ed=this;return setTimeout($,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass(`ui-state-hover`)},mouseleave:function(t){e(t.currentTarget).removeClass(`ui-state-hover`)}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass(`ui-state-focus`)},focusout:function(t){e(t.currentTarget).removeClass(`ui-state-focus`)}})},_trigger:function(t,$,ed){var td,nd,rd=this.options[t];if(ed||={},$=e.Event($),$.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),$.target=this.element[0],nd=$.originalEvent,nd)for(td in nd)td in $||($[td]=nd[td]);return this.element.trigger($,ed),!(e.isFunction(rd)&&rd.apply(this.element[0],[$].concat(ed))===!1||$.isDefaultPrevented())}},e.each({show:`fadeIn`,hide:`fadeOut`},function(t,$){e.Widget.prototype[`_`+t]=function(ed,td,nd){typeof td==`string`&&(td={effect:td});var rd,id=td?td===!0||typeof td==`number`?$:td.effect||$:t;td||={},typeof td==`number`&&(td={duration:td}),rd=!e.isEmptyObject(td),td.complete=nd,td.delay&&ed.delay(td.delay),rd&&e.effects&&e.effects.effect[id]?ed[t](td):id!==t&&ed[id]?ed[id](td.duration,td.easing,nd):ed.queue(function($){e(this)[t](),nd&&nd.call(ed[0]),$()})}})})(require_jquery())})),require_mouse=__commonJSMin((()=>{var e=require_jquery();require_widget(),(function(e,t){var $=!1;e(document).mouseup(function(){$=!1}),e.widget(`ui.mouse`,{version:`1.10.4`,options:{cancel:`input,textarea,button,select,option`,distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind(`mousedown.`+this.widgetName,function(e){return t._mouseDown(e)}).bind(`click.`+this.widgetName,function($){if(!0===e.data($.target,t.widgetName+`.preventClickEvent`))return e.removeData($.target,t.widgetName+`.preventClickEvent`),$.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind(`.`+this.widgetName),this._mouseMoveDelegate&&e(document).unbind(`mousemove.`+this.widgetName,this._mouseMoveDelegate).unbind(`mouseup.`+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!$){this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var ed=this,td=t.which===1,nd=typeof this.options.cancel==`string`&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:!1;return!td||nd||!this._mouseCapture(t)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){ed.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+`.preventClickEvent`)&&e.removeData(t.target,this.widgetName+`.preventClickEvent`),this._mouseMoveDelegate=function(e){return ed._mouseMove(e)},this._mouseUpDelegate=function(e){return ed._mouseUp(e)},e(document).bind(`mousemove.`+this.widgetName,this._mouseMoveDelegate).bind(`mouseup.`+this.widgetName,this._mouseUpDelegate),t.preventDefault(),$=!0,!0))}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind(`mousemove.`+this.widgetName,this._mouseMoveDelegate).unbind(`mouseup.`+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+`.preventClickEvent`,!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(e)})),jQuery$1=require_jquery();require_core(),require_mouse(),require_widget(),(function(e,t){function $(e,t,$){return e>t&&e<t+$}function ed(e){return/left|right/.test(e.css(`float`))||/inline|table-cell/.test(e.css(`display`))}e.widget(`ui.sortable`,e.ui.mouse,{version:`1.10.4`,widgetEventPrefix:`sort`,ready:!1,options:{appendTo:`parent`,axis:!1,connectWith:!1,containment:!1,cursor:`auto`,cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:`original`,items:`> *`,opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:`default`,tolerance:`intersect`,zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass(`ui-sortable`),this.refresh(),this.floating=this.items.length?e.axis===`x`||ed(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass(`ui-sortable ui-sortable-disabled`),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+`-item`);return this},_setOption:function(t,$){t===`disabled`?(this.options[t]=$,this.widget().toggleClass(`ui-sortable-disabled`,!!$)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,$){var ed=null,td=!1,nd=this;return this.reverting||this.options.disabled||this.options.type===`static`||(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,nd.widgetName+`-item`)===nd)return ed=e(this),!1}),e.data(t.target,nd.widgetName+`-item`)===nd&&(ed=e(t.target)),!ed)||this.options.handle&&!$&&(e(this.options.handle,ed).find(`*`).addBack().each(function(){this===t.target&&(td=!0)}),!td)?!1:(this.currentItem=ed,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,$,ed){var td,nd,rd=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left
329:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css(`position`,`absolute`),this.cssPosition=this.helper.css(`position`),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,rd.cursorAt&&this._adjustOffsetFromHelper(rd.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),rd.containment&&this._setContainment(),rd.cursor&&rd.cursor!==`auto`&&(nd=this.document.find(`body`),this.storedCursor=nd.css(`cursor`),nd.css(`cursor`,rd.cursor),this.storedStylesheet=e(`<style>*{ cursor: `+rd.cursor+` !important; }</style>`).appendTo(nd)),rd.opacity&&(this.helper.css(`opacity`)&&(this._storedOpacity=this.helper.css(`opacity`)),this.helper.css(`opacity`,rd.opacity)),rd.zIndex&&(this.helper.css(`zIndex`)&&(this._storedZIndex=this.helper.css(`zIndex`)),this.helper.css(`zIndex`,rd.zIndex)),this.scrollParent[0]!==document&&this.scrollParent[0].tagName!==`HTML`&&(this.overflowOffset=this.scrollParent.offset()),this._trigger(`start`,t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!ed)for(td=this.containers.length-1;td>=0;td--)this.containers[td]._trigger(`activate`,t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!rd.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass(`ui-sortable-helper`),this._mouseDrag(t),!0},_mouseDrag:function(t){var $,ed,td,nd,rd=this.options,id=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo(`absolute`),this.lastPositionAbs||=this.positionAbs,this.options.scroll&&(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!==`HTML`?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<rd.scrollSensitivity?this.scrollParent[0].scrollTop=id=this.scrollParent[0].scrollTop+rd.scrollSpeed:t.pageY-this.overflowOffset.top<rd.scrollSensitivity&&(this.scrollParent[0].scrollTop=id=this.scrollParent[0].scrollTop-rd.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<rd.scrollSensitivity?this.scrollParent[0].scrollLeft=id=this.scrollParent[0].scrollLeft+rd.scrollSpeed:t.pageX-this.overflowOffset.left<rd.scrollSensitivity&&(this.scrollParent[0].scrollLeft=id=this.scrollParent[0].scrollLeft-rd.scrollSpeed)):(t.pageY-e(document).scrollTop()<rd.scrollSensitivity?id=e(document).scrollTop(e(document).scrollTop()-rd.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<rd.scrollSensitivity&&(id=e(document).scrollTop(e(document).scrollTop()+rd.scrollSpeed)),t.pageX-e(document).scrollLeft()<rd.scrollSensitivity?id=e(document).scrollLeft(e(document).scrollLeft()-rd.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<rd.scrollSensitivity&&(id=e(document).scrollLeft(e(document).scrollLeft()+rd.scrollSpeed))),id!==!1&&e.ui.ddmanager&&!rd.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo(`absolute`),(!this.options.axis||this.options.axis!==`y`)&&(this.helper[0].style.left=this.position.left+`px`),(!this.options.axis||this.options.axis!==`x`)&&(this.helper[0].style.top=this.position.top+`px`),$=this.items.length-1;$>=0;$--)if(ed=this.items[$],td=ed.item[0],nd=this._intersectsWithPointer(ed),nd&&ed.instance===this.currentContainer&&td!==this.currentItem[0]&&this.placeholder[nd===1?`next`:`prev`]()[0]!==td&&!e.contains(this.placeholder[0],td)&&(this.options.type!==`semi-dynamic`||!e.contains(this.element[0],td))){if(this.direction=nd===1?`down`:`up`,this.options.tolerance===`pointer`||this._intersectsWithSides(ed))this._rearrange(t,ed);else break;this._trigger(`change`,t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger(`sort`,t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,$){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var ed=this,td=this.placeholder.offset(),nd=this.options.axis,rd={};(!nd||nd===`x`)&&(rd.left=td.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),(!nd||nd===`y`)&&(rd.top=td.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(rd,parseInt(this.options.revert,10)||500,function(){ed._clear(t)})}else this._clear(t,$);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),this.options.helper===`original`?this.currentItem.css(this._storedCSS).removeClass(`ui-sortable-helper`):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger(`deactivate`,null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger(`out`,null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!==`original`&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var $=this._getItemsAsjQuery(t&&t.connected),ed=[];return t||={},e($).each(function(){var $=(e(t.item||this).attr(t.attribute||`id`)||``).match(t.expression||/(.+)[\-=_](.+)/);$&&ed.push((t.key||$[1]+`[]`)+`=`+(t.key&&t.expression?$[1]:$[2]))}
329),!ed.length&&t.key&&ed.push(t.key+`=`),ed.join(`&`)},toArray:function(t){var $=this._getItemsAsjQuery(t&&t.connected),ed=[];return t||={},$.each(function(){ed.push(e(t.item||this).attr(t.attribute||`id`)||``)}),ed},_intersectsWith:function(e){var t=this.positionAbs.left,$=t+this.helperProportions.width,ed=this.positionAbs.top,td=ed+this.helperProportions.height,nd=e.left,rd=nd+e.width,id=e.top,ad=id+e.height,od=this.offset.click.top,sd=this.offset.click.left,cd=this.options.axis===`x`||ed+od>id&&ed+od<ad,ld=this.options.axis===`y`||t+sd>nd&&t+sd<rd,ud=cd&&ld;return this.options.tolerance===`pointer`||this.options.forcePointerForContainers||this.options.tolerance!==`pointer`&&this.helperProportions[this.floating?`width`:`height`]>e[this.floating?`width`:`height`]?ud:nd<t+this.helperProportions.width/2&&$-this.helperProportions.width/2<rd&&id<ed+this.helperProportions.height/2&&td-this.helperProportions.height/2<ad},_intersectsWithPointer:function(e){var t=this.options.axis===`x`||$(this.positionAbs.top+this.offset.click.top,e.top,e.height),ed=this.options.axis===`y`||$(this.positionAbs.left+this.offset.click.left,e.left,e.width),td=t&&ed,nd=this._getDragVerticalDirection(),rd=this._getDragHorizontalDirection();return td?this.floating?rd&&rd===`right`||nd===`down`?2:1:nd&&(nd===`down`?2:1):!1},_intersectsWithSides:function(e){var t=$(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),ed=$(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),td=this._getDragVerticalDirection(),nd=this._getDragHorizontalDirection();return this.floating&&nd?nd===`right`&&ed||nd===`left`&&!ed:td&&(td===`down`&&t||td===`up`&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?`down`:`up`)},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?`right`:`left`)},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var $,ed,td,nd,rd=[],id=[],ad=this._connectWith();if(ad&&t)for($=ad.length-1;$>=0;$--)for(td=e(ad[$]),ed=td.length-1;ed>=0;ed--)nd=e.data(td[ed],this.widgetFullName),nd&&nd!==this&&!nd.options.disabled&&id.push([e.isFunction(nd.options.items)?nd.options.items.call(nd.element):e(nd.options.items,nd.element).not(`.ui-sortable-helper`).not(`.ui-sortable-placeholder`),nd]);id.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(`.ui-sortable-helper`).not(`.ui-sortable-placeholder`),this]);function od(){rd.push(this)}for($=id.length-1;$>=0;$--)id[$][0].each(od);return e(rd)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(`:data(`+this.widgetName+`-item)`);this.items=e.grep(this.items,function(e){for(var $=0;$<t.length;$++)if(t[$]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var $,ed,td,nd,rd,id,ad,od,sd=this.items,cd=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],ld=this._connectWith();if(ld&&this.ready)for($=ld.length-1;$>=0;$--)for(td=e(ld[$]),ed=td.length-1;ed>=0;ed--)nd=e.data(td[ed],this.widgetFullName),nd&&nd!==this&&!nd.options.disabled&&(cd.push([e.isFunction(nd.options.items)?nd.options.items.call(nd.element[0],t,{item:this.currentItem}):e(nd.options.items,nd.element),nd]),this.containers.push(nd));for($=cd.length-1;$>=0;$--)for(rd=cd[$][1],id=cd[$][0],ed=0,od=id.length;ed<od;ed++)ad=e(id[ed]),ad.data(this.widgetName+`-item`,rd),sd.push({item:ad,instance:rd,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var $,ed,td,nd;for($=this.items.length-1;$>=0;$--)ed=this.items[$],!(ed.instance!==this.currentContainer&&this.currentContainer&&ed.item[0]!==this.currentItem[0])&&(td=this.options.toleranceElement?e(this.options.toleranceElement,ed.item):ed.item,t||(ed.width=td.outerWidth(),ed.height=td.outerHeight()),nd=td.offset(),ed.left=nd.left,ed.top=nd.top);
329if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for($=this.containers.length-1;$>=0;$--)nd=this.containers[$].element.offset(),this.containers[$].containerCache.left=nd.left,this.containers[$].containerCache.top=nd.top,this.containers[$].containerCache.width=this.containers[$].element.outerWidth(),this.containers[$].containerCache.height=this.containers[$].element.outerHeight();return this},_createPlaceholder:function(t){t||=this;var $,ed=t.options;(!ed.placeholder||ed.placeholder.constructor===String)&&($=ed.placeholder,ed.placeholder={element:function(){var ed=t.currentItem[0].nodeName.toLowerCase(),td=e(`<`+ed+`>`,t.document[0]).addClass($||t.currentItem[0].className+` ui-sortable-placeholder`).removeClass(`ui-sortable-helper`);return ed===`tr`?t.currentItem.children().each(function(){e(`<td> </td>`,t.document[0]).attr(`colspan`,e(this).attr(`colspan`)||1).appendTo(td)}):ed===`img`&&td.attr(`src`,t.currentItem.attr(`src`)),$||td.css(`visibility`,`hidden`),td},update:function(e,td){$&&!ed.forcePlaceholderSize||(td.height()||td.height(t.currentItem.innerHe
329ight()-parseInt(t.currentItem.css(`paddingTop`)||0,10)-parseInt(t.currentItem.css(`paddingBottom`)||0,10)),td.width()||td.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css(`paddingLeft`)||0,10)-parseInt(t.currentItem.css(`paddingRight`)||0,10)))}}),t.placeholder=e(ed.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),ed.placeholder.update(t,t.placeholder)},_contactContainers:function(t){var td,nd,rd,id,ad,od,sd,cd,ld,ud,dd=null,fd=null;for(td=this.containers.length-1;td>=0;td--)if(!e.contains(this.currentItem[0],this.containers[td].element[0]))if(this._intersectsWith(this.containers[td].containerCache)){if(dd&&e.contains(this.containers[td].element[0],dd.element[0]))continue;dd=this.containers[td],fd=td}else this.containers[td].containerCache.over&&(this.containers[td]._trigger(`out`,t,this._uiHash(this)),this.containers[td].containerCache.over=0);if(dd)if(this.containers.length===1)this.containers[fd].containerCache.over||(this.containers[fd]._trigger(`over`,t,this._uiHash(this)),this.containers[fd].containerCache.over=1);else{for(rd=1e4,id=null,ud=dd.floating||ed(this.currentItem),ad=ud?`left`:`top`,od=ud?`width`:`height`,sd=this.positionAbs[ad]+this.offset.click[ad],nd=this.items.length-1;nd>=0;nd--)e.contains(this.containers[fd].element[0],this.items[nd].item[0])&&this.items[nd].item[0]!==this.currentItem[0]&&(ud&&!$(this.positionAbs.top+this.offset.click.top,this.items[nd].top,this.items[nd].height)||(cd=this.items[nd].item.offset()[ad],ld=!1,Math.abs(cd-sd)>Math.abs(cd+this.items[nd][od]-sd)&&(ld=!0,cd+=this.items[nd][od]),Math.abs(cd-sd)<rd&&(rd=Math.abs(cd-sd),id=this.items[nd],this.direction=ld?`up`:`down`)));if(!id&&!this.options.dropOnEmpty||this.currentContainer===this.containers[fd])return;id?this._rearrange(t,id,null,!0):this._rearrange(t,null,this.containers[fd].element,!0),this._trigger(`change`,t,this._uiHash()),this.containers[fd]._trigger(`change`,t,this._uiHash(this)),this.currentContainer=this.containers[fd],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[fd]._trigger(`over`,t,this._uiHash(this)),this.containers[fd].containerCache.over=1}},_createHelper:function(t){var $=this.options,ed=e.isFunction($.helper)?e($.helper.apply(this.element[0],[t,this.currentItem])):$.helper===`clone`?this.currentItem.clone():this.currentItem;return ed.parents(`body`).length||e($.appendTo===`parent`?this.currentItem[0].parentNode:$.appendTo)[0].appendChild(ed[0]),ed[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(`position`),top:this.currentItem.css(`top`),left:this.currentItem.css(`left`)}),(!ed[0].style.width||$.forceHelperSize)&&ed.width(this.currentItem.width()),(!ed[0].style.height||$.forceHelperSize)&&ed.height(this.currentItem.height()),ed},_adjustOffsetFromHelper:function(t){typeof t==`string`&&(t=t.split(` `)),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),`left`in t&&(this.offset.click.left=t.left+this.margins.left),`right`in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),`top`in t&&(this.offset.click.top=t.top+this.margins.top),`bottom`in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition===`absolute`&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()===`html`&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css(`borderTopWidth`),10)||0),left:t.left+(parseInt(this.offsetParent.css(`borderLeftWidth`),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition===`relative`){var e=this.currentItem.position();
vendor: 6,639 bytes, line 329
329return{top:e.top-(parseInt(this.helper.css(`top`),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css(`left`),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css(`marginLeft`),10)||0,top:parseInt(this.currentItem.css(`marginTop`),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,$,ed,td=this.options;td.containment===`parent`&&(td.containment=this.helper[0].parentNode),(td.containment===`document`||td.containment===`window`)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e(td.containment===`document`?document:window).width()-this.helperProportions.width-this.margins.left,(e(td.containment===`document`?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(td.containment)||(t=e(td.containment)[0],$=e(td.containment).offset(),ed=e(t).css(`overflow`)!==`hidden`,this.containment=[$.left+(parseInt(e(t).css(`borderLeftWidth`),10)||0)+(parseInt(e(t).css(`paddingLeft`),10)||0)-this.margins.left,$.top+(parseInt(e(t).css(`borderTopWidth`),10)||0)+(parseInt(e(t).css(`paddingTop`),10)||0)-this.margins.top,$.left+(ed?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css(`borderLeftWidth`),10)||0)-(parseInt(e(t).css(`paddingRight`),10)||0)-this.helperProportions.width-this.margins.left,$.top+(ed?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css(`borderTopWidth`),10)||0)-(parseInt(e(t).css(`paddingBottom`),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,$){$||=this.position;var ed=t===`absolute`?1:-1,td=this.cssPosition===`absolute`&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,nd=/(html|body)/i.test(td[0].tagName);return{top:$.top+this.offset.relative.top*ed+this.offset.parent.top*ed-(this.cssPosition===`fixed`?-this.scrollParent.scrollTop():nd?0:td.scrollTop())*ed,left:$.left+this.offset.relative.left*ed+this.offset.parent.left*ed-(this.cssPosition===`fixed`?-this.scrollParent.scrollLeft():nd?0:td.scrollLeft())*ed}},_generatePosition:function(t){var $,ed,td=this.options,nd=t.pageX,rd=t.pageY,id=this.cssPosition===`absolute`&&!(this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,ad=/(html|body)/i.test(id[0].tagName);return this.cssPosition===`relative`&&!(this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(nd=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(rd=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(nd=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(rd=this.containment[3]+this.offset.click.top)),td.grid&&($=this.originalPageY+Math.round((rd-this.originalPageY)/td.grid[1])*td.grid[1],rd=this.containment?$-this.offset.click.top>=this.containment[1]&&$-this.offset.click.top<=this.containment[3]?$:$-this.offset.click.top>=this.containment[1]?$-td.grid[1]:$+td.grid[1]:$,ed=this.originalPageX+Math.round((nd-this.originalPageX)/td.grid[0])*td.grid[0],nd=this.containment?ed-this.offset.click.left>=this.containment[0]&&ed-this.offset.click.left<=this.containment[2]?ed:ed-this.offset.click.left>=this.containment[0]?ed-td.grid[0]:ed+td.grid[0]:ed)),{top:rd-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition===`fixed`?-this.scrollParent.scrollTop():ad?0:id.scrollTop()),left:nd-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition===`fixed`?-this.scrollParent.scrollLeft():ad?0:id.scrollLeft())}},_rearrange:function(e,t,$,ed){$?$[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction===`down`?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var td=this.counter;this._delay(function(){td===this.counter&&this.refreshPositions(!ed)})},_clear:function(e,t){this.reverting=!1;var $,ed=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for($ in this._storedCSS)(this._storedCSS[$]===`auto`||this._storedCSS[$]===`static`)&&(this._storedCSS[$]=``);this.currentItem.css(this._storedCSS).removeClass(`ui-sortable-helper`)}else this.currentItem.show();this.fromOutside&&!t&&ed.push(function(e){this._trigger(`receive`,e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(`.ui-sortable-helper`)[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&ed.push(function(e){this._trigger(`update`,e,this._uiHash())}),this!==this.currentContainer&&(t||(ed.push(function(e){this._trigger(`remove`,e,this._uiHash())}),ed.push((function(e){return function(t){e._trigger(`receive`,t,this._uiHash(this))}}).call(this,this.currentContainer)),ed.push((function(e){return function(t){e._trigger(`update`,t,this._uiHash(this))}}).call(this,this.currentContainer))));function td(e,t,$){return function(ed){$._trigger(e,ed,t._uiHash(t))}}for($=this.containers.length-1;$>=0;$--)t||ed.push(td(`deactivate`,this,this.containers[$])),this.containers[$].containerCache.over&&(ed.push(td(`out`,this,this.containers[$])),this.containers[$].containerCache.over=0);if(this.storedCursor&&(this.document.find(`body`).css(`cursor`,this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css(`opacity`,this._storedOpacity),this._storedZIndex&&this.helper.css(`zIndex`,this._storedZIndex===`auto`?``:this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger(`beforeStop`,e,this._uiHash()),$=0;$<ed.length;$++)ed[$].call(this,e);this._trigger(`stop`,e,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger(`beforeStop`,e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for($=0;$<ed.length;$++)ed[$].call(this,e);this._trigger(`stop`,e,this._uiHash())}return this.fromOutside=!1,!0}
329,_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var $=t||this;return{helper:$.helper,placeholder:$.placeholder||e([]),position:$.position,originalPosition:$.originalPosition,offset:$.positionAbs,item:$.currentItem,sender:t?t.element:null}}})})(jQuery$1);var ToggleContainer=class extends import_react$1.Component{render(){let{type:e,id:t,data:$,status:ed,cartRemove:td}=this.props;return(0,import_jsx_runtime.jsx)(Toggle,{type:e,id:t,data:$,status:ed,onChangeStatus:(e,t,$,ed)=>td(e,t,$)})}},mapStateToProps$22=e=>({}),mapDispatchToProps$17={cartRemove},ToggleContainer_default=(0,import_lib$3.connect)(mapStateToProps$22,mapDispatchToProps$17)(ToggleContainer),Cart=class extends import_react$1.Component{static defaultProps={items:[],onSort:e=>{}};static propTypes={items:import_react$1.PropTypes.array.isRequired,l10n:import_react$1.PropTypes.object.isRequired,onSort:import_react$1.PropTypes.func.isRequired};$sortableElement=null;componentDidMount(){this.$sortableElement=(0,import_jquery.default)(this.refs.sortable),this.$sortableElement.sortable({delay:75,containment:`parent`,tolerance:`pointer`,items:`.sortable-item`,handle:`.sortable-handle`,update:(e,t)=>{let $=this.$sortableElement.sortable(`toArray`,{attribute:`data-id`});this.$sortableElement.sortable(`cancel`),this.props.onSort($)},stop:(e,t)=>{this.$sortableElement.sortable(`cancel`)}})}componentWillUnmount(){this.$sortableElement.sortable(`destroy`)}renderItemLink(e,t){return e?(0,import_jsx_runtime.jsx)(`a`,{href:e,children:t}):t}renderItems(){let{items:e,l10n:t,isInitialLoad:$}=this.props;return!e.length&&!$?(0,import_jsx_runtime.jsx)(`div`,{className:`col-1-1`,children:(0,import_jsx_runtime.jsx)(`h3`,{children:t.no_selection})}):e.map((e,t)=>{let $=e.title,ed=e.data?e.data.selection_encoded:null;return $+=e.type===`configurator`?` - ${e.data.selected_string}`:``,(0,import_jsx_runtime.jsxs)(`div`,{className:`col-1-1 lg-1-2 sortable-item`,"data-id":e.cart_id,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-container sortable-handle`,children:[e.image&&(0,import_jsx_runtime.jsx)(`img`,{src:e.image,alt:$,width:`340`,height:`212`}),(0,import_jsx_runtime.jsx)(ToggleContainer_default,{type:e.type,id:e.id,data:ed,status:`remove`})]}),(0,import_jsx_runtime.jsx)(`h3`,{className:`u-mb-0`,children:this.renderItemLink(e.route_url,$)})]},t)})}render(){return(0,import_jsx_runtime.jsx)(`div`,{ref:`sortable`,className:`row flex-row u-mb-child-g`,children:this.renderItems()})}},mapStateToProps$21=e=>({isInitialLoad:e.cart.isInitialLoad}),Cart_default=(0,import_lib$3.connect)(mapStateToProps$21)(Cart),CartContainer=class extends import_react$1.Component{render(){let{l10n:e,items:t,cartReorderApi:$}=this.props;return(0,import_jsx_runtime.jsx)(Cart_default,{l10n:e,items:t,onSort:e=>$(e)})}},mapStateToProps$20=e=>{let{l10n:t}=e.config,{items:$}=e.cart.data;return{l10n:t,items:$}},mapDispatchToProps$16={cartReorderApi},CartContainer_default=(0,import_lib$3.connect)(mapStateToProps$20,mapDispatchToProps$16)(CartContainer),Personalize=class extends import_react$1.Component{static defaultProps={l10n:{title:`1. Give your publication a title`,subtitle:`2. Give your publication a subtitle`,logo:`3. Add your logo on front cover`,logo_notes:`(.jpg, .jpeg, .png - 100x100 pixel)`,download:`Download`},title:`Title`,subtitle:`Subtitle`,downloadUrl:null,autoDownload:!1,onFieldChange:(e,t)=>
329{}};static propTypes={l10n:import_react$1.PropTypes.object.isRequired,title:import_react$1.PropTypes.string.isRequired,subtitle:import_react$1.PropTypes.string.isRequired,autoDownload:import_react$1.PropTypes.bool.isRequired};componentDidMount(){let{autoDownload:e}=this.props;e&&(0,import_jquery.default)(this.refs.form).submit()}handleFieldChange=e=>{let{name:t,value:$}=e.target;this.props.onFieldChange(t,$)};handleLogoChange=e=>{let{onFieldChange:t}=this.props,$=e.target.files[0],ed=new FileReader;ed.onload=(function(e){return function(e){t(`logo`,e.target.result)}})($),ed.readAsDataURL($)};handleDownload=e=>{this.props.downloadUrl||e.preventDefault()};getSubmitLabel=()=>{let{l10n:e}=this.props;return isIOS()?e.view:e.download};getFormTarget=()=>isIOS()?`_blank`:`_self`;render(){let{title:e,subtitle:t,l10n:$,downloadUrl:ed}=this.props;return(0,import_jsx_runtime.jsxs)(`form`,{ref:`form`,action:`${ed}?lang=${global_default.lang}`,method:`post`,target:this.getFormTarget(),encType:`multipart/form-data`,onSubmit:this.handleDownload,children:[(0,import_jsx_runtime.jsx)(`input`,{type:`hidden`,name:`download`,value:!isIOS()}),(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{htmlFor:`title`,className:`form-label`,children:$.title}),(0,import_jsx_runtime.jsx)(`input`,{type:`text`,name:`title`,id:`title`,maxLength:`40`,className:`form-control`,defaultValue:e,onChange:this.handleFieldChange})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{htmlFor:`subtitle`,className:`form-label`,children:$.subtitle}),(0,import_jsx_runtime.jsx)(`input`,{type:`text`,name:`subtitle`,id:`subtitle`,maxLength:`40`,className:`form-control`,defaultValue:t,onChange:this.handleFieldChange})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsxs)(`label`,{htmlFor:`logo`,className:`form-label`,children:[$.logo,(0,import_jsx_runtime.jsx)(`span`,{className:`form-note`,children:$.logo_notes})]}),(0,import_jsx_runtime.jsx)(`input`,{type:`file`,name:`logo`,id:`logo`,ref:`logo`,accept:`image/png, image/jpeg`,onChange:this.handleLogoChange})]}),(0,import_jsx_runtime.jsx)(`div`,{className:`form-group u-text-center`,children:(0,import_jsx_runtime.jsx)(`button`,{type:`submit`,className:`btn btn--primary`,children:this.getSubmitLabel()})})]})}},PersonalizeContainer=class extends import_react$1.Component{render(){let{isShared:e,title:t,subtitle:$,l10n:ed,api:td,personalizeUpdateField:nd}=this.props;return(0,import_jsx_runtime.jsx)(Personalize,{title:t,subtitle:$,l10n:ed,downloadUrl:`${td}pdf/download`,autoDownload:e,onFieldChange:(e,t)=>
329nd(e,t)})}},mapStateToProps$19=e=>{let{isShared:t,title:$,subtitle:ed}=e.personalize,{l10n:td,api:nd}=e.config;return{isShared:t,title:$,subtitle:ed,l10n:td,api:nd}},mapDispatchToProps$15={personalizeUpdateField},PersonalizeContainer_default=(0,import_lib$3.connect)(mapStateToProps$19,mapDispatchToProps$15)(PersonalizeContainer),Share=class extends import_react$1.Component{static defaultProps={url:`http://www.lumenpulse.com/en/selection`,title:`Lumenpulse Presentation`,subtitle:`March 23, 2016`,selection:`...`,l10n:{share:`Share`,email:`Email`,print:`Print`},shareTools:{}};static propTypes={url:import_react$1.PropTypes.string.isRequired,title:import_react$1.PropTypes.string.isRequired,subtitle:import_react$1.PropTypes.string,selection:import_react$1.PropTypes.string.isRequired,l10n:import_react$1.PropTypes.object.isRequired,shareTools:import_react$1.PropTypes.object.isRequired};handleUrlFocus=e=>{e.target.select()};render(){let{l10n:e,url:t,title:$,subtitle:ed,selection:td,shareTools:nd}=this.props,rd=`${$} | ${ed}`,id=encodeURIComponent(rd),ad=`${t}?share=${td}`,od=`${ad}|${$}|${ed}`,sd=encodeURIComponent(ad),cd=encodeURIComponent(od),ld=encodeURIComponent(rd.substring(0,117));return(0,import_jsx_runtime.jsxs)(`div`,{className:`u-mt-g`,children:[(0,import_jsx_runtime.jsx)(`input`,{type:`text`,className:`form-control`,defaultValue:od,value:od,onChange:()=>{},onFocus:this.handleUrlFocus}),(0,import_jsx_runtime.jsxs)(`div`,{className:`share-tools u-pb-0`,children:[(0,import_jsx_runtime.jsxs)(`a`,{href:`mailto:?subject=${id}&body=%0A<${cd}>`,className:`share-tools__link`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`icon-mail`}),` `,e.email]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`col-right`,children:[nd.facebook&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://www.facebook.com/sharer/sharer.php?u=${cd}`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`icon-facebook icon--lg`})}),nd.x&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://x.com/intent/tweet?text=${ld}&url=${sd}`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`svg`,{style:{width:`16px`,marginBottom:`-3px`},xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,className:`bi bi-twitter-x`,id:`Twitter-X--Streamline-Bootstrap`,viewBox:`0 1.13 24 21.75`,children:(0,import_jsx_runtime.jsx)(`path`,{d:`M18.9 1.125h3.681l-8.040000000000001 9.213000000000001L24 22.875h-7.4055l-5.8004999999999995 -7.605 -6.637499999999999 7.605H0.474l8.599499999999999 -9.855L0 1.125h7.5945l5.2425 6.9495000000000005L18.901500000000002 1.125Zm-1.29 19.542h2.04L6.484500000000001 3.2175000000000002H4.2975z`,"stroke-width":`1.5`})})}),nd.linkedin&&(0,import_jsx_runtime.jsx)(`a`,{href:`https://www.linkedin.com/shareArticle?mini=true&url=${cd}&title=${id}&summary=`,target:`_blank`,className:`share-tools__link`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`icon-linkedin icon--lg`})})]})]})]})}},ShareContainer=class extends import_react$1.Component{render(){let{selection:e,title:t,subtitle:$,l10n:ed,url:td,shareTools:nd}=this.props;return(0,import_jsx_runtime.jsx)(Share,{url:td,title:t,subtitle:$,selection:e,l10n:ed,shareTools:nd})}},mapStateToProps$18=e=>{let{selection:t}=e.cart.data,{title:$,subtitle:ed}=e.personalize,{l10n:td,urls:nd,shareTools:rd}=e.config;return{selection:t,title:$,subtitle:ed,l10n:td,url:nd.selection,shareTools:rd}},mapDispatchToProps$14={},ShareContainer_default=(0,import_lib$3.connect)(mapStateToProps$18,mapDispatchToProps$14)(ShareContainer),Preview=class extends import_react$1.Component{static defaultProps={title:`Title`,subtitle:`Subtitle`,logo:null,l10n:{enlarge:`Click to enlarge`}};static propTypes={l10n:import_react$1.PropTypes.object.isRequired,title:import_react$1.PropTypes.string.isRequired,subtitle:import_react$1.PropTypes.string.isRequired,logo:import_react$1.PropTypes.string};state={modalIsOpen:!1};openModal(){let e=document.querySelector(`html`);this.setState({modalIsOpen:!0}
329),e.classList.add(`show-html-mask`)}closeModal(){let e=document.querySelector(`html`);this.setState({modalIsOpen:!1}),e.classList.remove(`show-html-mask`)}handleModalClose=e=>{this.closeModal()};handleClick=e=>{e.preventDefault(),this.openModal()};render(){let{l10n:e,title:t,subtitle:$,logo:ed}=this.props,{modalIsOpen:td}=this.state,nd=ed||asset(`resources/img/selection-preview-logo.png`),rd=asset(`resources/img/sites/${global_default.site}/logo-dark${global_default.logo_us&&global_default.country===`US`?`-us`:``}${global_default.logo_multilingual&&global_default.lang===`fr`?`-fr`:``}.svg`);return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`selection-preview-ratio`}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview-front`,children:[(0,import_jsx_runtime.jsx)(`img`,{src:rd,className:`selection-preview-main-logo`,alt:t,width:`23`,height:`178`}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview-content`,children:[(0,import_jsx_runtime.jsx)(`img`,{src:nd,className:`selection-preview-your-logo`,alt:t,width:`36`,height:`15`}),(0,import_jsx_runtime.jsx)(`p`,{className:`selection-preview-title`,children:t}),(0,import_jsx_runtime.jsx)(`p`,{className:`selection-preview-subtitle`,children:$})]})]})]}),(0,import_jsx_runtime.jsxs)(`a`,{className:`u-display-flex u-align-items-center`,href:`#`,onClick:this.handleClick,children:[e.enlarge,(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-ml-1`,children:`fit_screen`})]}),(0,import_jsx_runtime.jsx)(import_lib$2.default,{isOpen:td,closeTimeoutMS:150,onRequestClose:this.handleModalClose,shouldCloseOnOverlayClick:!0,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`lightbox selection-preview-lightbox`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`u-text-right`,children:(0,import_jsx_runtime.jsx)(`button`,{className:`btn btn--primary`,onClick:this.handleModalClose,children:(0,import_jsx_runtime.jsx)(`i`,{className:`icon-close icon--lg`})})}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`selection-preview-ratio`}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview-front`,children:[(0,import_jsx_runtime.jsx)(`img`,{src:rd,className:`selection-preview-main-logo`,alt:t,width:`61`,height:`474`}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-preview-content`,children:[(0,import_jsx_runtime.jsx)(`img`,{src:nd,className:`selection-preview-your-logo`,width:`95`,height:`39`}),(0,import_jsx_runtime.jsx)(`p`,{className:`selection-preview-title`,children:t}),(0,import_jsx_runtime.jsx)(`p`,{className:`selection-preview-subtitle`,children:$})]})]})]})]})})]})}},PreviewContainer=class extends import_react$1.Component{render(){let{title:e,subtitle:t,logo:$,l10n:ed}=this.props;return(0,import_jsx_runtime.jsx)(Preview,{title:e,subtitle:t,logo:$,l10n:ed})}},mapStateToProps$17=e=>{let{title:t,subtitle:$,logo:ed}=e.personalize,{l10n:td}=e.config;return{title:t,subtitle:$,logo:ed,l10n:td}},mapDispatchToProps$13={},PreviewContainer_default=(0,import_lib$3.connect)(mapStateToProps$17,mapDispatchToProps$13)(PreviewContainer),App$3=class extends import_react$1.Component{static propTypes={l10n:import_react$1.PropTypes.object,urls:import_react$1.PropTypes.object,selection:import_react$1.PropTypes.string,cartFetch:import_react$1.PropTypes.func.isRequired,personalizeLoadFromStorage:import_react$1.PropTypes.func.isRequired};componentDidMount(){let{selection:e,cartFetch:t,personalizeLoadFromStorage:$}=this.props;t(e===``?{}:e),$()}render(){let{l10n:e,urls:t}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{className:`u-mt-3 u-mb-10`,children:[(0,import_jsx_runtime.jsx)(`h1`,{children:e.cart}),(0,import_jsx_runtime.jsxs)(`div`,{className:`row flex-row`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`md-2-3`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`row flex-row u-mb-child-6`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`col-1-2 lg-1-3`,children:[(0,import_jsx_runtime.jsx)(`h2`,{children:e.frontcover}),(0,import_jsx_runtime.jsx)(PreviewContainer_default,{}),(0,import_jsx_runtime.jsxs)(`a`,{className:`u-display-flex u-align-items-center`,href:t.help,children:[e.help,(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-ml-1`,children:`help`})]})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`col-1-2 lg-2-3`,children:[(0,import_jsx_runtime.jsx)(`h2`,{children:e.content}),(0,import_jsx_runtime.jsx)(CartContainer_default,{})]})]})}),(0,import_jsx_runtime.jsxs)(`div`,{className:`md-1-3`,children:[(0,import_jsx_runtime.jsx)(`h2`,{children:e.personalize}),(0,import_jsx_runtime.jsx)(PersonalizeContainer_default,{}),(0,import_jsx_runtime.jsx)(ShareContainer_default,{})]})]})]})}},mapStateToProps$16=e=>{let{l10n:t,urls:$}=e.config,{selection:ed}=e.personalize;return{l10n:t,urls:$,selection:ed}},mapDispatchToProps$12={cartFetch,personalizeLoadFromStorage},App_default$2=(0,import_lib$3.connect)(mapStateToProps$16,mapDispatchToProps$12)(App$3),Selector=class extends import_react$1.Component{static defaultProps={selection:null,l10n:{},urls:{},shareTools:{}};
329static propTypes={title:import_react$1.PropTypes.string,subtitle:import_react$1.PropTypes.string,l10n:import_react$1.PropTypes.object,urls:import_react$1.PropTypes.object,shareTools:import_react$1.PropTypes.object};initialConfig(){let{l10n:e,urls:t,shareTools:$}=this.props;return{api:global_default.paths.api+`selector/`,l10n:e,urls:t,shareTools:$}}initialPersonalize(){let{selection:e,title:t,subtitle:$,defaults:ed}=this.props;return{isShared:!!e,selection:e,title:t,subtitle:$,logo:null,defaults:{title:ed.title||``,subtitle:ed.subtitle||``}}}render(){return(0,import_jsx_runtime.jsx)(import_lib$3.Provider,{store:configureStore$3({config:this.initialConfig(),personalize:this.initialPersonalize()}),children:(0,import_jsx_runtime.jsx)(App_default$2,{})})}},SelectorTotal=class{constructor(){this.elements=document.querySelectorAll(`.js-selector-total`),this.elements.length&&this.init()}init(){let e=`${global_default.paths.api}selector/cart/`;[{listener:`addToSelection`,action:`add`},{listener:`removeFromSelection`,action:`remove`}].forEach(t=>{document.addEventListener(t.listener,$=>{let{index:ed,id:td}=$.detail;fetch(`${e}${t.action}?lang=en&type=${ed.replace(/^[a-z]+_/i,``)}&id=${td}`).then(e=>e.json()).then(e=>{this.setTotal(e.data.total)})})}),import_pubsub.default.subscribe(`selector.cart.total`,(e,t)=>{this.setTotal(t.value)})}setTotal(e){this.elements.forEach(t=>{t.innerText=e})}},require__createBaseFor=__commonJSMin(((e,t)=>{function $(e){return function(t,$,ed){for(var td=-1,nd=Object(t),rd=ed(t),id=rd.length;id--;){var ad=rd[e?id:++td];if($(nd[ad],ad,nd)===!1)break}return t}}t.exports=$})),require__baseFor=__commonJSMin(((e,t)=>{t.exports=require__createBaseFor()()})),require__baseTimes=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=Array(e);++$<e;)ed[$]=t($);return ed}t.exports=$})),require__baseIsArguments=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require_isObjectLike(),td=`[object Arguments]`;function nd(e){return ed(e)&&$(e)==td}t.exports=nd})),require_isArguments=__commonJSMin(((e,t)=>{var $=require__baseIsArguments(),ed=require_isObjectLike(),td=Object.prototype,nd=td.hasOwnProperty,rd=td.propertyIsEnumerable;t.exports=$(function(){return arguments}())?$:function(e){return ed(e)&&nd.call(e,`callee`)&&!rd.call(e,`callee`)}})),require_isArray=__commonJSMin(((e,t)=>{t.exports=Array.isArray})),require_stubFalse=__commonJSMin(((e,t)=>{function $(){return!1}t.exports=$})),require_isBuffer=__commonJSMin(((e,t)=>{var $=require__root(),ed=require_stubFalse(),td=typeof e==`object`&&e&&!e.nodeType&&e,nd=td&&typeof t==`object`&&t&&!t.nodeType&&t,rd=nd&&nd.exports===td?$.Buffer:void 0;t.exports=(rd?rd.isBuffer:void 0)||ed})),require__isIndex=__commonJSMin(((e,t)=>{var $=9007199254740991,ed=/^(?:0|[1-9]\d*)$/;function td(e,t){var td=typeof e;return t??=$,!!t&&(td==`number`||td!=`symbol`&&ed.test(e))&&e>-1&&e%1==0&&e<t}t.exports=td})),require_isLength=__commonJSMin(((e,t)=>{var $=9007199254740991;function ed(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=$}t.exports=ed})),require__baseIsTypedArray=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require_isLength(),td=require_isObjectLike(),nd=`[object Arguments]`,rd=`[object Array]`,id=`[object Boolean]`,ad=`[object Date]`,od=`[object Error]`,sd=`[object Function]`,cd=`[object Map]`,ld=`[object Number]`,ud=`[object Object]`,dd=`[object RegExp]`,fd=`[object Set]`,pd=`[object String]`,md=`[object WeakMap]`,hd=`[object ArrayBuffer]`,gd=`[object DataView]`,_d=`[object Float32Array]`,vd=`[object Float64Array]`,yd=`[object Int8Array]`,bd=`[object Int16Array]`,xd=`[object Int32Array]`,Sd=`[object Uint8Array]`,Cd=`[object Uint8ClampedArray]`,wd=`[object Uint16Array]`,Td=`[object Uint32Array]`,Ed={};Ed[_d]=Ed[vd]=Ed[yd]=Ed[bd]=Ed[xd]=Ed[Sd]=Ed[Cd]=Ed[wd]=Ed[Td]=!0,Ed[nd]=Ed[rd]=Ed[hd]=Ed[id]=Ed[gd]=Ed[ad]=Ed[od]=Ed[sd]=Ed[cd]=Ed[ld]=Ed[ud]=Ed[dd]=Ed[fd]=Ed[pd]=Ed[md]=!1;function Dd(e){return td(e)&&ed(e.length)&&!!Ed[$(e)]}t.exports=Dd})),require__baseUnary=__commonJSMin(((e,t)=>{function $(e){return function(t){return e(t)}}t.exports=$})),require__nodeUtil=__commonJSMin(((e,t)=>{var $=require__freeGlobal(),ed=typeof e==`object`&&e&&!e.nodeType&&e,td=ed&&typeof t==`object`&&t&&!t.nodeType&&t,nd=td&&td.exports===ed&&$.process;t.exports=function(){try{return td&&td.require&&td.require(`util`).types||nd&&nd.binding&&nd.binding(`util`)}catch{}}()})),require_isTypedArray=__commonJSMin(((e,t)=>{var $=require__baseIsTypedArray(),ed=require__baseUnary(),td=require__nodeUtil(),nd=td&&td.isTypedArray;t.exports=nd?ed(nd):$})),require__arrayLikeKeys=__commonJSMin(((e,t)=>{var $=require__baseTimes(),ed=require_isArguments(),td=require_isArray(),nd=require_isBuffer(),rd=require__isIndex(),id=require_isTypedArray(),ad=Object.prototype.hasOwnProperty;function od(e,t){var od=td(e),sd=!od&&ed(e),cd=!od&&!sd&&nd(e),ld=!od&&!sd&&!cd&&id(e),ud=od||sd||cd||ld,dd=ud?$(e.length,String):[],fd=dd.length;
329for(var pd in e)(t||ad.call(e,pd))&&!(ud&&(pd==`length`||cd&&(pd==`offset`||pd==`parent`)||ld&&(pd==`buffer`||pd==`byteLength`||pd==`byteOffset`)||rd(pd,fd)))&&dd.push(pd);return dd}t.exports=od})),require__isPrototype=__commonJSMin(((e,t)=>{var $=Object.prototype;function ed(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||$)}t.exports=ed})),require__nativeKeys=__commonJSMin(((e,t)=>{t.exports=require__overArg()(Object.keys,Object)})),require__baseKeys=__commonJSMin(((e,t)=>{var $=require__isPrototype(),ed=require__nativeKeys(),td=Object.prototype.hasOwnProperty;function nd(e){if(!$(e))return ed(e);var t=[];for(var nd in Object(e))td.call(e,nd)&&nd!=`constructor`&&t.push(nd);return t}t.exports=nd})),require_isObject=__commonJSMin(((e,t)=>{function $(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=$})),require_isFunction=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require_isObject(),td=`[object AsyncFunction]`,nd=`[object Function]`,rd=`[object GeneratorFunction]`,id=`[object Proxy]`;function ad(e){if(!ed(e))return!1;var t=$(e);return t==nd||t==rd||t==td||t==id}t.exports=ad})),require_isArrayLike=__commonJSMin(((e,t)=>{var $=require_isFunction(),ed=require_isLength();function td(e){return e!=null&&ed(e.length)&&!$(e)}t.exports=td})),require_keys=__commonJSMin(((e,t)=>{var $=require__arrayLikeKeys(),ed=require__baseKeys(),td=require_isArrayLike();function nd(e){return td(e)?$(e):ed(e)}t.exports=nd})),require__baseForOwn=__commonJSMin(((e,t)=>{var $=require__baseFor(),ed=require_keys();function td(e,t){return e&&$(e,t,ed)}t.exports=td})),require_identity=__commonJSMin(((e,t)=>{function $(e){return e}t.exports=$})),require__castFunction=__commonJSMin(((e,t)=>{var $=require_identity();function ed(e){return typeof e==`function`?e:$}t.exports=ed})),require_forOwn=__commonJSMin(((e,t)=>{var $=require__baseForOwn(),ed=require__castFunction();function td(e,t){return e&&$(e,ed(t))}t.exports=td})),import_forOwn=__toESM(require_forOwn());function isAbsolute(e){return e.charAt(0)===`/`}function spliceOne(e,t){for(var $=t,ed=$+1,td=e.length;ed<td;$+=1,ed+=1)e[$]=e[ed];e.pop()}function resolvePathname(e,t){t===void 0&&(t=``);var $=e&&e.split(`/`)||[],ed=t&&t.split(`/`)||[],td=e&&isAbsolute(e),nd=t&&isAbsolute(t),rd=td||nd;if(e&&isAbsolute(e)?ed=$:$.length&&(ed.pop(),ed=ed.concat($)),!ed.length)return`/`;var id;if(ed.length){var ad=ed[ed.length-1];id=ad===`.`||ad===`..`||ad===``}else id=!1;for(var od=0,sd=ed.length;sd>=0;sd--){var cd=ed[sd];cd===`.`?spliceOne(ed,sd):cd===`..`?(spliceOne(ed,sd),od++):od&&(spliceOne(ed,sd),od--)}if(!rd)for(;od--;)ed.unshift(`..`);rd&&ed[0]!==``&&(!ed[0]||!isAbsolute(ed[0]))&&ed.unshift(``);var ld=ed.join(`/`);return id&&ld.substr(-1)!==`/`&&(ld+=`/`),ld}var isProduction=!0,prefix=`Invariant failed`;function invariant(e,t){if(!e){if(isProduction)throw Error(prefix);var $=typeof t==`function`?t():t,ed=$?`${prefix}: ${$}`:prefix;throw Error(ed)}}init_extends();function addLeadingSlash(e){return e.charAt(0)===`/`?e:`/`+e}function hasBasename(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&`/?#`.indexOf(e.charAt(t.length))!==-1}function stripBasename(e,t){return hasBasename(e,t)?e.substr(t.length):e}function stripTrailingSlash(e){return e.charAt(e.length-1)===`/`?e.slice(0,-1):e}function parsePath(e){var t=e||`/`,$=``,ed=``,td=t.indexOf(`#`);td!==-1&&(ed=t.substr(td),t=t.substr(0,td));var nd=t.indexOf(`?`);return nd!==-1&&($=t.substr(nd),t=t.substr(0,nd)),{pathname:t,search:$===`?`?``:$,hash:ed===`#`?``:ed}}function createPath(e){var t=e.pathname,$=e.search,ed=e.hash,td=t||`/`;return $&&$!==`?`&&(td+=$.charAt(0)===`?`?$:`?`+$),ed&&ed!==`#`&&(td+=ed.charAt(0)===`#`?ed:`#`+ed),td}function createLocation(e,t,$,ed){var td;typeof e==`string`?(td=parsePath(e),td.state=t):(td=_extends$2({},e),td.pathname===void 0&&(td.pathname=``),td.search?td.search.charAt(0)!==`?`&&(td.search=`?`+td.search):td.search=``,td.hash?td.hash.charAt(0)!==`#`&&(td.hash=`#`+td.hash):td.hash=``,t!==void 0&&td.state===void 0&&(td.state=t));try{td.pathname=decodeURI(td.pathname)}catch(e){throw e instanceof URIError?URIError(`Pathname "`+td.pathname+`" could not be decoded. This is likely caused by an invali
329d percent-encoding.`):e}return $&&(td.key=$),ed?td.pathname?td.pathname.charAt(0)!==`/`&&(td.pathname=resolvePathname(td.pathname,ed.pathname)):td.pathname=ed.pathname:td.pathname||=`/`,td}function createTransitionManager(){var e=null;function t(t){return e=t,function(){e===t&&(e=null)}}function $(t,$,ed,td){if(e!=null){var nd=typeof e==`function`?e(t,$):e;typeof nd==`string`?typeof ed==`function`?ed(nd,td):td(!0):td(nd!==!1)}else td(!0)}var ed=[];function td(e){var t=!0;function $(){t&&e.apply(void 0,arguments)}return ed.push($),function(){t=!1,ed=ed.filter(function(e){return e!==$})}}function nd(){var e=[...arguments];ed.forEach(function(t){return t.apply(void 0,e)})}return{setPrompt:t,confirmTransitionTo:$,appendListener:td,notifyListeners:nd}}var canUseDOM=!!(typeof window<`u`&&window.document&&window.document.createElement);function getConfirmation(e,t){t(window.confirm(e))}function supportsHistory(){var e=window.navigator.userAgent;return(e.indexOf(`Android 2.`)!==-1||e.indexOf(`Android 4.0`)!==-1)&&e.indexOf(`Mobile Safari`)!==-1&&e.indexOf(`Chrome`)===-1&&e.indexOf(`Windows Phone`)===-1?!1:window.history&&`pushState`in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf(`Trident`)===-1}function isExtraneousPopstateEvent(e){return e.state===void 0&&navigator.userAgent.indexOf(`CriOS`)===-1}var PopStateEvent=`popstate`,HashChangeEvent=`hashchange`;function getHistoryState(){try{return window.history.state||{}}catch{return{}}}function createBrowserHistory(e){e===void 0&&(e={}),!canUseDOM&&invariant(!1);var t=window.history,$=supportsHistory(),ed=!supportsPopStateOnHashChange(),td=e,nd=td.forceRefresh,rd=nd===void 0?!1:nd,id=td.getUserConfirmation,ad=id===void 0?getConfirmation:id,od=td.keyLength,sd=od===void 0?6:od,cd=e.basename?stripTrailingSlash(addLeadingSlash(e.basename)):``;function ld(e){var t=e||{},$=t.key,ed=t.state,td=window.location,nd=td.pathname,rd=td.search,id=td.hash,ad=nd+rd+id;return cd&&(ad=stripBasename(ad,cd)),createLocation(ad,ed,$)}function ud(){return Math.random().toString(36).substr(2,sd)}var dd=createTransitionManager();function fd(e){_extends$2(jd,e),jd.length=t.length,dd.notifyListeners(jd.location,jd.action)}function pd(e){isExtraneousPopstateEvent(e)||gd(ld(e.state))}function md(){gd(ld(getHistoryState()))}var hd=!1;function gd(e){if(hd)hd=!1,fd();else{var t=`POP`;dd.confirmTransitionTo(e,t,ad,function($){$?fd({action:t,location:e}):_d(e)})}}function _d(e){var t=jd.location,$=yd.indexOf(t.key);$===-1&&($=0);var ed=yd.indexOf(e.key);ed===-1&&(ed=0);var td=$-ed;td&&(hd=!0,Cd(td))}var vd=ld(getHistoryState()),yd=[vd.key];function bd(e){return cd+createPath(e)}function xd(e,ed){var td=`PUSH`,nd=createLocation(e,ed,ud(),jd.location);dd.confirmTransitionTo(nd,td,ad,function(e){if(e){var ed=bd(nd),id=nd.key,ad=nd.state;if($)if(t.pushState({key:id,state:ad},null,ed),rd)window.location.href=ed;else{var od=yd.indexOf(jd.location.key),sd=yd.slice(0,od+1);sd.push(nd.key),yd=sd,fd({action:td,location:nd})}else window.location.href=ed}})}function Sd(e,ed){var td=`REPLACE`,nd=createLocation(e,ed,ud(),jd.location);dd.confirmTransitionTo(nd,td,ad,function(e){if(e){var ed=bd(nd),id=nd.key,ad=nd.state;if($)if(t.replaceState({key:id,state:ad},null,ed),rd)window.location.replace(ed);else{var od=yd.indexOf(jd.location.key);od!==-1&&(yd[od]=nd.key),fd({action:td,location:nd})}else window.location.replace(ed)}})}function Cd(e){t.go(e)}function wd(){Cd(-1)}function Td(){Cd(1)}var Ed=0;function Dd(e){Ed+=e,Ed===1&&e===1?(window.addEventListener(PopStateEvent,pd),ed&&window.addEventListener(HashChangeEvent,md)):Ed===0&&(window.removeEventListener(PopStateEvent,pd),ed&&window.removeEventListener(HashChangeEvent,md))}var Od=!1;function kd(e){e===void 0&&(e=!1);var t=dd.setPrompt(e);return Od||=(Dd(1),!0),function(){return Od&&(Od=!1,Dd(-1)),t()}}function Ad(e){var t=dd.appendListener(e);return Dd(1),function(){Dd(-1),t()}}var jd={length:t.length,action:`POP`,location:vd,createHref:bd,push:xd,replace:Sd,go:Cd,goBack:wd,goForward:Td,block:kd,listen:Ad};return jd}var history$1=createBrowserHistory();function apiCall(e,t=``,$={},ed=()=>{}){return(td,nd)=>{let{config:rd}=nd(),id={lang:global_default.lang};return import_jquery.default.get(rd.api+e+t,{...id,...$},ed)}}function dataHistorySync(){return(e,t)=>{history$1.listen($=>{let ed=t(e=>e),{currentSearchString:td,isFetching:nd}=ed.data;!nd&&$.search!==td&&(e(dataFetchStart()),e(apiCall(`listing`,$.search,{},function(t){e(dataFetchSuccess(t.data,ed.config))})))})}}var DATA_FETCH_START=`DATA_FETCH_START`;function dataFetchStart(){return{type:DATA_FETCH_START}}var DATA_FETCH_SUCCESS=`DATA_FETCH_SUCCESS`;function dataFetchSuccess(e,t){return{type:DATA_FETCH_SUCCESS,data:e,config:t}}function filtersUpdateHistory(){return(e,t)=>{let{filters:$}=t().data,ed=``;(0,import_forOwn.default)($,(e,t)=>{(e>0||e!==``)&&(ed+=`&${t}=${e}`)}),history$1.push({pathname:window.location.pathname,search:ed?`?`+ed.slice(1):``})}}var SET_ADDRESS=`SET_ADDRESS`;function onChangeAddress(e){return{type:SET_ADDRESS,address:e}}function filtersUpdate(e,t){return $=>{$(filtersChange(e,t)),$(geocodeMarker()),$(filtersUpdateHistory())}}var FILTERS_CHANGE=`FILTERS_CHANGE`;function filtersChange(e,t){return{type:FILTERS_CHANGE,name:e,value:t}}function filtersReset(){return e=>{e(setSearchedMarker(null)),e(onChangeAddress(``)),e(filtersClear()),e(filtersUpdateHistory())}}var FILTERS_CLEAR=`FILTERS_CLEAR`;function filtersClear(){return{type:FILTERS_CLEAR}}function fetchMarkerInformation(e){return(t,$)=>{t(selectMarker(e)),t(avoidRefreshMap(!0));let{filters:ed}=$().data,td=``;(0,import_forOwn.default)(ed,(t,$)=>{$===`organization`?td+=`&organization=${e===null?0:e.id}`:(t>0||t!==``)&&(td+=`&${$}=${t}`)}),history$1.push({pathname:window.location.pathname,search:td?`?${td.slice(1)}`:``})}}function geocodeMarker(){return(e,t)=>{let{filters_data:$,filters:ed}=t().data,td=``,nd=!0;for(let e=1;e<$.length+1;e++){let t=$[$.length-e],rd=t.name;if(ed[rd]){let e=t.options.find(({value:e})=>e===ed[rd]);if(e){let t=rd===`county`&&!e.label.includes(`County`)?`${e.label} County, `:`${e.label}, `;td+=t,rd!==`continent`&&(nd=!1)}}}e(setSearchedLocation(td&&!nd?td:null))}}var SET_SEARCHED_LOCATION=`SET_SEARCHED_LOCATION`;function setSearchedLocation(e){return{type:SET_SEARCHED_LOCATION,searchedLocation:e}}var SET_SEARCHED_MARKER=`SET_SEARCHED_MARKER`;function setSearchedMarker(e){return e&&e.latitude===42.2904579&&e.longitude===-87.6186379&&(e={latitude:42.31316,longitude:-87.98988}),{type:SET_SEARCHED_MARKER,searchedMarker:e}}
329var SELECT_MARKER=`SELECT_MARKER`;function selectMarker(e){return{type:SELECT_MARKER,marker:e}}var CHANGE_TAB=`CHANGE_TAB`;function changeTab(e){return{type:CHANGE_TAB,tabIndex:e}}function selectAddress(e){return()=>{history$1.push({pathname:window.location.pathname,search:e?`?${e}`:``})}}var AVOID_REFRESH_MAP=`AVOID_REFRESH_MAP`;function avoidRefreshMap(e){return{type:AVOID_REFRESH_MAP,noRefresh:e}}var initialState$7={api:``,l10n:{}};function config$3(e=initialState$7,t){switch(e.hydrated||(e={...initialState$7,...e,hydrated:!0}),t.type){default:return e}}function organizeFilteredData(e,t){let $=[],ed=0;return e.forEach(e=>{e.display&&(e.companytype_code===`rep`&&t.personsBeforeOrgs?($.splice(ed,0,e),ed+=1):$.push(e))}),$}var initialState$6={isInitialLoad:!0,isFetching:!1,filters:{},filters_data:[],items:[],filteredItems:[],markers:[],tabIndex:0,searchedMarker:null,searchedLocation:null,selectedMarker:null,currentSearchString:null,avoidRefreshMap:!1,currentAddress:``};function data(e=initialState$6,t){switch(e.hydrated||(e={...initialState$6,...e,hydrated:!0,isInitialLoad:!1}),t.type){case DATA_FETCH_START:return{...e,isFetching:!0,currentSearchString:window.location.search};case DATA_FETCH_SUCCESS:let $={isInitialLoad:!1,isFetching:!1,filters:t.data.filters,filters_data:t.data.filters_data,items:t.data.contacts,filteredItems:organizeFilteredData(t.data.contacts,t.config),avoidRefreshMap:!1};return e.avoidRefreshMap===!1&&($.markers=t.data.markers,$.tabIndex=0,$.selectedMarker=null),{...e,...$};case FILTERS_CHANGE:let ed={},td=!1;return(0,import_forOwn.default)(e.filters,(e,$)=>{$===t.name?(ed[t.name]=t.value,$!==`sector`&&(td=!0)):ed[$]=$!=`brand`&&td?``:e}),{...e,filters:{...e.filters,...ed},filters_data:[...e.filters_data.map(e=>e.name===t.name?{...e,selected:t.value}:e)]};case FILTERS_CLEAR:return{...e,filters:{},filters_data:[...e.filters_data.map(e=>({...e,selected:0}))],currentAddress:``};case SET_SEARCHED_LOCATION:return{...e,searchedLocation:t.searchedLocation};case SET_SEARCHED_MARKER:return{...e,searchedMarker:t.searchedMarker};case SELECT_MARKER:return{...e,selectedMarker:t.marker,tabIndex:0};case CHANGE_TAB:return{...e,tabIndex:t.tabIndex};case AVOID_REFRESH_MAP:return{...e,avoidRefreshMap:t.noRefresh};case SET_ADDRESS:return{...e,currentAddress:t.address};default:return e}}init_es();var rootReducer$2=combineReducers({config:config$3,data});init_es();var createStoreWithMiddleware$2=applyMiddleware(thunk,(0,import_lib$4.default)({predicate:(e,t)=>global_default.debug,collapsed:!0}))(createStore);function configureStore$2(e){return createStoreWithMiddleware$2(rootReducer$2,e)}var FiltersSelect$1=class extends import_react$1.Component{static defaultProps={name:``,title:``,options:[],selected:``,onChange:(e,t)=>
329{}};static propTypes={name:import_react$1.PropTypes.string.isRequired,title:import_react$1.PropTypes.string.isRequired,options:import_react$1.PropTypes.array.isRequired,selected:import_react$1.PropTypes.string,onChange:import_react$1.PropTypes.func};handleChange=e=>{let{name:t,onChange:$}=this.props;$(t,e.target.value)};render(){let{name:e,title:t,selected:$,options:ed}=this.props,td=`- ${t} -`;return(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:e,children:t}),(0,import_jsx_runtime.jsxs)(`select`,{className:`form-control`,name:e,id:e,defaultValue:$,value:$,onChange:this.handleChange,children:[(0,import_jsx_runtime.jsx)(`option`,{value:``,children:td}),ed.map((e,t)=>(0,import_jsx_runtime.jsx)(`option`,{value:e.value,children:e.label},t))]})]})}},FiltersSelect=class extends import_react$1.Component{static defaultProps={handleReset:()=>{}};static propTypes={handleReset:import_react$1.PropTypes.func,label:import_react$1.PropTypes.string};handleClick=e=>{let{handleReset:t}=this.props;e.preventDefault(),t(e)};render(){let{label:e}=this.props;return(0,import_jsx_runtime.jsx)(`button`,{className:`btn btn--primary u-mt-g`,onClick:this.handleClick,children:e})}},Filters$1=class extends import_react$1.Component{static defaultProps={data:[],onChange:(e,t)=>
329{},onReset:()=>{},l10n:{reset:`Reset all Filters`},showReset:!0};static propTypes={data:import_react$1.PropTypes.array.isRequired,onChange:import_react$1.PropTypes.func,onReset:import_react$1.PropTypes.func,l10n:import_react$1.PropTypes.object.isRequired,showReset:import_react$1.PropTypes.bool};handleChange=(e,t)=>{this.props.onChange(e,t)};handleReset=e=>{e.preventDefault(),this.props.onReset()};render(){let{data:e,l10n:t,showReset:$}=this.props;return(0,import_jsx_runtime.jsxs)(`form`,{ref:`form`,action:`#`,children:[e.map((e,t)=>{if(!e.options.length)return;let $=e.selected&&e.selected.toString();return(0,import_jsx_runtime.jsx)(FiltersSelect$1,{name:e.name,title:e.title,selected:$,options:e.options,onChange:(e,t)=>{this.handleChange(e,t)}},t)}),$&&(0,import_jsx_runtime.jsx)(FiltersSelect,{handleReset:e=>this.handleReset(e),label:t.reset})]})}},FiltersContainer$1=class extends import_react$1.Component{renderCallToAction(){let{l10n:e,resultsData:t,filters:$,filtersData:ed}=this.props,td=ed.find(e=>e.name===`county`)!==void 0,nd=`_representative`;return $.continent===``?e[`please_select_continent${nd}`]:$.country===``?e[`please_select_country${nd}`]:$.state===``&&($.country===`CA`||$.country===`US`)?e[`please_select_state${nd}`]:td&&$.country===`US`&&$.state!==``&&$.county===``?e[`please_select_county${nd}`]:null}render(){let{l10n:e,filtersData:t,filtersUpdate:$,filtersReset:ed,currentAddress:td}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(Filters$1,{l10n:e,data:t,onChange:(e,t)=>
329$(e,t),onReset:()=>ed(),showReset:t.some(e=>e.selected)||td!==``}),this.renderCallToAction()]})}},mapStateToProps$15=e=>({filtersData:e.data.filters_data,filters:e.data.filters,l10n:e.config.l10n,resultsData:e.data.items,currentAddress:e.data.currentAddress}),mapDispatchToProps$11={filtersUpdate,filtersReset},FiltersContainer_default$1=(0,import_lib$3.connect)(mapStateToProps$15,mapDispatchToProps$11)(FiltersContainer$1),require_spin=__commonJSMin(((e,t)=>{(function(e,$){typeof t==`object`&&t.exports?t.exports=$():typeof define==`function`&&define.amd?define($):e.Spinner=$()})(e,function(){var e=[`webkit`,`Moz`,`ms`,`O`],t={},$,ed;function td(e,t){var $=document.createElement(e||`div`),ed;for(ed in t)$[ed]=t[ed];return $}function nd(e){for(var t=1,$=arguments.length;t<$;t++)e.appendChild(arguments[t]);return e}function rd(e,td,nd,rd){var id=[`opacity`,td,~~(e*100),nd,rd].join(`-`),ad=.01+nd/rd*100,od=Math.max(1-(1-e)/td*(100-ad),e),sd=$.substring(0,$.indexOf(`Animation`)).toLowerCase(),cd=sd&&`-`+sd+`-`||``;return t[id]||(ed.insertRule(`@`+cd+`keyframes `+id+`{0%{opacity:`+od+`}`+ad+`%{opacity:`+e+`}`+(ad+.01)+`%{opacity:1}`+(ad+td)%100+`%{opacity:`+e+`}100%{opacity:`+od+`}}`,ed.cssRules.length),t[id]=1),id}function id(t,$){var ed=t.style,td,nd;if($=$.charAt(0).toUpperCase()+$.slice(1),ed[$]!==void 0)return $;for(nd=0;nd<e.length;nd++)if(td=e[nd]+$,ed[td]!==void 0)return td}function ad(e,t){for(var $ in t)e.style[id(e,$)||$]=t[$];return e}function od(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)e[ed]===void 0&&(e[ed]=$[ed])}return e}function sd(e,t){return typeof e==`string`?e:e[t%e.length]}var cd={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:`#000`,opacity:1/4,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:`spinner`,top:`50%`,left:`50%`,shadow:!1,hwaccel:!1,position:`absolute`};function ld(e){this.opts=od(e||{},ld.defaults,cd)}ld.defaults={},od(ld.prototype,{spin:function(e){this.stop();var t=this,ed=t.opts,nd=t.el=td(null,{className:ed.className});if(ad(nd,{position:ed.position,width:0,zIndex:ed.zIndex,left:ed.left,top:ed.top}),e&&e.insertBefore(nd,e.firstChild||null),nd.setAttribute(`role`,`progressbar`),t.lines(nd,t.opts),!$){var rd=0,id=(ed.lines-1)*(1-ed.direction)/2,od,sd=ed.fps,cd=sd/ed.speed,ld=(1-ed.opacity)/(cd*ed.trail/100),ud=cd/ed.lines;(function e(){rd++;for(var $=0;$<ed.lines;$++)od=Math.max(1-(rd+(ed.lines-$)*ud)%cd*ld,ed.opacity),t.opacity(nd,$*ed.direction+id,od,ed);t.timeout=t.el&&setTimeout(e,~~(1e3/sd))})()}return t},stop:function(){var e=this.el;return e&&(clearTimeout(this.timeout),e.parentNode&&e.parentNode.removeChild(e),this.el=void 0),this},lines:function(e,t){var ed=0,id=(t.lines-1)*(1-t.direction)/2,od;function cd(e,$){return ad(td(),{position:`absolute`,width:t.scale*(t.length+t.width)+`px`,height:t.scale*t.width+`px`,background:e,boxShadow:$,transformOrigin:`left`,transform:`rotate(`+~~(360/t.lines*ed+t.rotate)+`deg) translate(`+t.scale*t.radius+`px,0)`,borderRadius:(t.corners*t.scale*t.width>>1)+`px`})}for(;ed<t.lines;ed++)od=ad(td(),{position:`absolute`,top:1+~(t.scale*t.width/2)+`px`,transform:t.hwaccel?`translate3d(0,0,0)`:``,opacity:t.opacity,animation:$&&rd(t.opacity,t.trail,id+ed*t.direction,t.lines)+` `+1/t.speed+`s linear infinite`}),t.shadow&&nd(od,ad(cd(`#000`,`0 0 4px #000`),{top:`2px`})),nd(e,nd(od,cd(sd(t.color,ed),`0 0 1px rgba(0,0,0,.1)`)));return e},opacity:function(e,t,$){t<e.childNodes.length&&(e.childNodes[t].style.opacity=$)}});function ud(){function e(e,t){return td(`<`+e+` xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">`,t)}ed.addRule(`.spin-vml`,`behavior:url(#default#VML)`),ld.prototype.lines=function(t,$){var ed=$.scale*($.length+$.width),td=$.scale*2*ed;function rd(){return ad(e(`group`,{coordsize:td+` `+td,coordorigin:-ed+` `+-ed}),{width:td,height:td})}var id=-($.width+$.length)*$.scale*2+`px`,od=ad(rd(),{position:`absolute`,top:id,left:id}),cd;function ld(t,td,id){nd(od,nd(ad(rd(),{rotation:360/$.lines*t+`deg`,left:~~td}),nd(ad(e(`roundrect`,{arcsize:$.corners}),{width:ed,height:$.scale*$.width,left:$.scale*$.radius,top:-$.scale*$.width>>1,filter:id}),e(`fill`,{color:sd($.color,t),opacity:$.opacity}),e(`stroke`,{opacity:0}
329))))}if($.shadow)for(cd=1;cd<=$.lines;cd++)ld(cd,-2,`progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)`);for(cd=1;cd<=$.lines;cd++)ld(cd);return nd(t,od)},ld.prototype.opacity=function(e,t,$,ed){var td=e.firstChild;ed=ed.shadow&&ed.lines||0,td&&t+ed<td.childNodes.length&&(td=td.childNodes[t+ed],td&&=td.firstChild,td&&=td.firstChild,td&&(td.opacity=$))}}if(typeof document<`u`){ed=function(){var e=td(`style`,{type:`text/css`});return nd(document.getElementsByTagName(`head`)[0],e),e.sheet||e.styleSheet}();var dd=ad(td(`group`),{behavior:`url(#default#VML)`});!id(dd,`transform`)&&dd.adj?ud():$=id(dd,`animation`)}return ld})})),require_react_loader=__commonJSMin(((e,t)=>{(function(e,$){typeof define==`function`&&define.amd?define([`react`,`react-dom`,`spin.js`,`prop-types`,`create-react-class`],$):typeof t==`object`&&typeof t.exports==`object`?t.exports=$(require_react(),require_react_dom(),require_spin(),require_prop_types(),require_create_react_class()):e.Loader=$(e.React,e.ReactDOM,e.Spinner,e.PropTypes,e.createReactClass)})(e,function(e,t,$,ed,td){var nd=!!e.createRef;return td({displayName:`Loader`,propTypes:{className:ed.string,color:ed.string,component:ed.any,corners:ed.number,direction:ed.oneOf([1,-1]),fps:ed.number,hwaccell:ed.bool,left:ed.string,length:ed.number,lines:ed.number,loaded:ed.bool,loadedClassName:ed.string,opacity:ed.number,options:ed.object,parentClassName:ed.string,position:ed.string,radius:ed.number,rotate:ed.number,scale:ed.number,shadow:ed.bool,speed:ed.number,top:ed.string,trail:ed.number,width:ed.number,zIndex:ed.number},getDefaultProps:function(){return{component:`div`,loadedClassName:`loadedContent`,parentClassName:`loader`}},getInitialState:function(){return this.ref=nd?e.createRef():`loader`,{loaded:!1,options:{}}},componentDidMount:function(){this.updateState(this.props)},UNSAFE_componentWillReceiveProps:function(e){this.updateState(e)},componentWillUnmount:function(){this.setState({loaded:!1})},updateState:function(e){e||={};var t=this.state.loaded,$=this.state.options;`loaded`in e&&(t=!!e.loaded);var ed=Object.keys(this.constructor.propTypes);ed.splice(ed.indexOf(`loaded`),1),ed.splice(ed.indexOf(`options`),1);var td=`options`in e?e.options:e;ed.forEach(function(e){e in td&&($[e]=td[e])}),this.setState({loaded:t,options:$},this.spin)},spin:function(){if(typeof window<`u`&&window.document&&window.document.createElement&&!this.state.loaded){var e=new $(this.state.options),ed=nd?this.ref.current:t.findDOMNode(this.refs.loader);ed.innerHTML=``,e.spin(ed)}},render:function(){var t,$;return this.state.loaded?(t={key:`content`,className:this.props.loadedClassName},$=this.props.children):t={key:`loader`,ref:this.ref,className:this.props.parentClassName},e.createElement(this.props.component,t,$)}})})})),import_react_loader=__toESM(require_react_loader());init_es();var ResultsItem$1=class extends import_react$1.Component{static defaultProps={l10n:{},data:{}};static propTypes={l10n:import_react$1.PropTypes.object.isRequired,data:import_react$1.PropTypes.object.isRequired};render(){let{l10n:e,data:t,showPersonsPictures:$}=this.props,ed=(0,import_classnames.default)(`box box--bordered box--rounded contacts-locator__results-item`,{"is-rep":t.companytype_code===`rep`}),td=t.image;return(0,import_jsx_runtime.jsxs)(`div`,{className:ed,children:[$&&td&&(0,import_jsx_runtime.jsx)(`img`,{className:`contacts-locator__results-image`,src:td,width:`75`,height:`75`}),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`h3`,{className:`u-text-bold u-mb-0`,children:t.name}),(0,import_jsx_runtime.jsx)(`p`,{children:(0,import_jsx_runtime.jsx)(`em`,{children:t.title})}),(0,import_jsx_runtime.jsxs)(`p`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{children:[t.address1,t.address2&&(0,import_jsx_runtime.jsx)(`br`,{}),t.address2&&t.address2]}),(0,import_jsx_runtime.jsxs)(`div`,{children:[t.city&&`${t.city},`,t.state&&` ${t.state},`,t.postal_code&&` ${t.postal_code}`,t.country&&` ${t.country}`]}),t.url_map&&(0,import_jsx_runtime.jsx)(`a`,{href:t.url_map,target:`_blank`,children:e.view_map})]}),(t.phone||t.fax||t.email)&&(0,import_jsx_runtime.jsxs)(`p`,{className:`u-mb-0`,children:[t.phone&&(0,import_jsx_runtime.jsxs)(`span`,{className:`u-display-flex u-align-items-center`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-mr-1`,children:`phone`}),(0,import_jsx_runtime.jsx)(`a`,{href:`tel:${t.phone}`,children:t.phone})]}),t.fax&&(0,import_jsx_runtime.jsxs)(`span`,{className:`u-display-flex u-align-items-center`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-mr-1`,children:`fax`}),(0,import_jsx_runtime.jsx)(`a`,{href:`tel:${t.fax}`,children:t.fax})]}),t.email&&(0,import_jsx_runtime.jsxs)(`span`,{className:`u-display-flex u-align-items-center`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-mr-1`,children:`email`}),(0,import_jsx_runtime.jsx)(`a`,{href:`mailto:${t.email}`,children:t.email})]})]}),t.website&&(0,import_jsx_runtime.jsx)(`p`,{className:`u-mt-g u-mb-0`,children:(0,import_jsx_runtime.jsx)(`a`,{href:t.website,target:`_blank`,children:t.website})})]})]})}},mapStateToProps$14=e=>({showPersonsPictures:e.config.showPersonsPictures}),mapDispatchToProps$10={dataHistorySync},ResultsItem_default=(0,import_lib$3.connect)(mapStateToProps$14,mapDispatchToProps$10)(ResultsItem$1);init_es();var loaderOptions$1={length:5,width:3,corners:0,radius:10,color:`#000`},Results$1=class extends import_react$1.Component{componentDidMount(){this.props.dataHistorySync()}static defaultProps={data:[],loaderOptions:loaderOptions$1,loading:!1,filters:{continent:``,country:``,state:``},l10n:{}};static propTypes={data:import_react$1.PropTypes.array.isRequired,loaderOptions:import_react$1.PropTypes.object,loading:import_react$1.PropTypes.bool.isRequired,filters:import_react$1.PropTypes.object.isRequired,l10n:import_react$1.PropTypes.object.isRequired,hideResults:import_react$1.PropTypes.bool,fullWidth:import_react$1.PropTypes.bool};renderEmpty(){let{l10n:e,filters:t,filtersData:$,data:ed}=this.props,td=$.find(e=>e.name===`county`)!==void 0;return ed.length?t.continent===``?e.please_select_continent:t.country===``?e.please_select_country:t.state===``&&(t.country===`CA`||t.country===`US`)?e.please_select_state:td&&t.country===`US`&&t.state!==``&&t.county===``?e.please_select_county:e.no_results:e.no_results}render(){let{l10n:e,filters:t,data:$,loaderOptions:ed,loading:td,selectedMarker:nd,filteredItems:rd}=this.props,id=t.continent===``,ad=t.country===``,od=t.state===``&&(t.country===`CA`||t.country===`US`);return td?(0,import_jsx_runtime.jsx)(`div`,{className:`contacts-locator__results is-loading`,children:(0,import_jsx_runtime.jsx)(import_react_loader.default,{loaded:!1,options:ed,className:`spinner`})}):nd!==null&&!rd.length||id||ad||od?(0,import_jsx_runtime.jsx)(`p`,{className:`contacts-locator__results`,children:this.renderEmpty()}):(0,import_jsx_runtime.jsxs)(`div`,{className:`contacts-locator__results`,children:[(0,import_jsx_runtime.jsxs)(`h2`,{children:[rd.length,` `,rd.length>1?e.results:e.result]}),(0,import_jsx_runtime.jsx)(`div`,{className:`row flex-row`,children:rd.map((t,$)=>(0,import_jsx_runtime.jsx)(`div`,{className:`sm-1-2 lg-1-3 xl-1-4 u-mb-5`,children:(0,import_jsx_runtime.jsx)(ResultsItem_default,{l10n:e,data:t})},$))})]})}},mapStateToProps$13=e=>({filtersData:e.data.filters_data,selectedMarker:e.data.selectedMarker,filteredItems:e.data.filteredItems}),mapDispatchToProps$9={dataHistorySync},Results_default=(0,import_lib$3.connect)(mapStateToProps$13,mapDispatchToProps$9)(Results$1),ResultsContainer$1=class extends import_react$1.Component{render(){let{l10n:e,filters:t,items:$,isFetching:ed}=this.props;return(0,import_jsx_runtime.jsx)(Results_default,{l10n:e,filters:t,data:$,loading:ed})}},mapStateToProps$12=e=>({l10n:e.config.l10n,items:e.data.items,filters:e.data.filters,isFetching:e.data.isFetching}),mapDispatchToProps$8={},ResultsContainer_default$1=(0,import_lib$3.connect)(mapStateToProps$12,mapDispatchToProps$8)(ResultsContainer$1),require_objectWithoutProperties=__commonJSMin((e=>
329{e.__esModule=!0,e.default=function(e,t){var $={};for(var ed in e)t.indexOf(ed)>=0||Object.prototype.hasOwnProperty.call(e,ed)&&($[ed]=e[ed]);return $}})),require__defined=__commonJSMin(((e,t)=>{t.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}})),require__to_object=__commonJSMin(((e,t)=>{var $=require__defined();t.exports=function(e){return Object($(e))}})),require__library=__commonJSMin(((e,t)=>{t.exports=!0})),require__shared=__commonJSMin(((e,t)=>{var $=require__core(),ed=require__global(),td=`__core-js_shared__`,nd=ed[td]||(ed[td]={});(t.exports=function(e,t){return nd[e]||(nd[e]=t===void 0?{}:t)})(`versions`,[]).push({version:$.version,mode:require__library()?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})})),require__uid=__commonJSMin(((e,t)=>{var $=0,ed=Math.random();t.exports=function(e){return`Symbol(${e===void 0?``:e})_${(++$+ed).toString(36)}`}})),require__shared_key=__commonJSMin(((e,t)=>{var $=require__shared()(`keys`),ed=require__uid();t.exports=function(e){return $[e]||($[e]=ed(e))}})),require__object_gpo=__commonJSMin(((e,t)=>{var $=require__has(),ed=require__to_object(),td=require__shared_key()(`IE_PROTO`),nd=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=ed(e),$(e,td)?e[td]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nd:null}})),require__object_sap=__commonJSMin(((e,t)=>{var $=require__export(),ed=require__core(),td=require__fails();t.exports=function(e,t){var nd=(ed.Object||{})[e]||Object[e],rd={};rd[e]=t(nd),$($.S+$.F*td(function(){nd(1)}),`Object`,rd)}})),require_es6_object_get_prototype_of=__commonJSMin((()=>{var e=require__to_object(),t=require__object_gpo();require__object_sap()(`getPrototypeOf`,function(){return function($){return t(e($))}})})),require_get_prototype_of$1=__commonJSMin(((e,t)=>{require_es6_object_get_prototype_of(),t.exports=require__core().Object.getPrototypeOf})),require_get_prototype_of=__commonJSMin(((e,t)=>{t.exports={default:require_get_prototype_of$1(),__esModule:!0}})),require_classCallCheck=__commonJSMin((e=>{e.__esModule=!0,e.default=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}})),require_es6_object_define_property=__commonJSMin((()=>{var e=require__export();e(e.S+e.F*!require__descriptors(),`Object`,{defineProperty:require__object_dp().f})})),require_define_property$1=__commonJSMin(((e,t)=>{require_es6_object_define_property();var $=require__core().Object;t.exports=function(e,t,ed){return $.defineProperty(e,t,ed)}})),require_define_property=__commonJSMin(((e,t)=>{t.exports={default:require_define_property$1(),__esModule:!0}})),require_createClass=__commonJSMin((e=>{e.__esModule=!0;var t=$(require_define_property());function $(e){return e&&e.__esModule?e:{default:e}}e.default=function(){function e(e,$){for(var ed=0;ed<$.length;ed++){var td=$[ed];td.enumerable=td.enumerable||!1,td.configurable=!0,`value`in td&&(td.writable=!0),(0,t.default)(e,td.key,td)}}return function(t,$,ed){return $&&e(t.prototype,$),ed&&e(t,ed),t}}()})),require__to_integer=__commonJSMin(((e,t)=>{var $=Math.ceil,ed=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?ed:$)(e)}})),require__string_at=__commonJSMin(((e,t)=>{var $=require__to_integer(),ed=require__defined();t.exports=function(e){return function(t,td){var nd=String(ed(t)),rd=$(td),id=nd.length,ad,od;return rd<0||rd>=id?e?``:void 0:(ad=nd.charCodeAt(rd),ad<55296||ad>56319||rd+1===id||(od=nd.charCodeAt(rd+1))<56320||od>57343?e?nd.charAt(rd):ad:e?nd.slice(rd,rd+2):(ad-55296<<10)+(od-56320)+65536)}}})),require__redefine=__commonJSMin(((e,t)=>{t.exports=require__hide()})),require__iterators=__commonJSMin(((e,t)=>{t.exports={}})),require__cof=__commonJSMin(((e,t)=>{var $={}.toString;t.exports=function(e){return $.call(e).slice(8,-1)}})),require__iobject=__commonJSMin(((e,t)=>{var $=require__cof();t.exports=Object(`z`).propertyIsEnumerable(0)?Object:function(e){return $(e)==`String`?e.split(``):Object(e)}})),require__to_iobject=__commonJSMin(((e,t)=>{var $=require__iobject(),ed=require__defined();t.exports=function(e){return $(ed(e))}})),require__to_length=__commonJSMin(((e,t)=>{var $=require__to_integer(),ed=Math.min;t.exports=function(e){return e>0?ed($(e),9007199254740991):0}})),require__to_absolute_index=__commonJSMin(((e,t)=>{var $=require__to_integer(),ed=Math.max,td=Math.min;t.exports=function(e,t){return e=$(e),e<0?ed(e+t,0):td(e,t)}})),require__array_includes=__commonJSMin(((e,t)=>{var $=require__to_iobject(),ed=require__to_length(),td=require__to_absolute_index();t.exports=function(e){return function(t,nd,rd){var id=$(t),ad=ed(id.length),od=td(rd,ad),sd;if(e&&nd!=nd){for(;ad>od;)if(sd=id[od++],sd!=sd)return!0}else for(;ad>od;od++)if((e||od in id)&&id[od]===nd)return e||od||0;return!e&&-1}}})),require__object_keys_internal=__commonJSMin(((e,t)=>{var $=require__has(),ed=require__to_iobject(),td=require__array_includes()(!1),nd=require__shared_key()(`IE_PROTO`);t.exports=function(e,t){var rd=ed(e),id=0,ad=[],od;for(od in rd)od!=nd&&$(rd,od)&&ad.push(od);for(;t.length>id;)$(rd,od=t[id++])&&(~td(ad,od)||ad.push(od));return ad}})),require__enum_bug_keys=__commonJSMin(((e,t)=>{t.exports=`constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
329ing,toString,valueOf`.split(`,`)})),require__object_keys=__commonJSMin(((e,t)=>{var $=require__object_keys_internal(),ed=require__enum_bug_keys();t.exports=Object.keys||function(e){return $(e,ed)}})),require__object_dps=__commonJSMin(((e,t)=>{var $=require__object_dp(),ed=require__an_object(),td=require__object_keys();t.exports=require__descriptors()?Object.defineProperties:function(e,t){ed(e);for(var nd=td(t),rd=nd.length,id=0,ad;rd>id;)$.f(e,ad=nd[id++],t[ad]);return e}})),require__html=__commonJSMin(((e,t)=>{var $=require__global().document;t.exports=$&&$.documentElement})),require__object_create=__commonJSMin(((e,t)=>{var $=require__an_object(),ed=require__object_dps(),td=require__enum_bug_keys(),nd=require__shared_key()(`IE_PROTO`),rd=function(){},id=`prototype`,ad=function(){var e=require__dom_create()(`iframe`),t=td.length,$=`<`,ed=`>`,nd;for(e.style.display=`none`,require__html().appendChild(e),e.src=`javascript:`,nd=e.contentWindow.document,nd.open(),nd.write($+`script`+ed+`document.F=Object`+$+`/script`+ed),nd.close(),ad=nd.F;t--;)delete ad[id][td[t]];return ad()};t.exports=Object.create||function(e,t){var td;return e===null?td=ad():(rd[id]=$(e),td=new rd,rd[id]=null,td[nd]=e),t===void 0?td:ed(td,t)}})),require__wks=__commonJSMin(((e,t)=>{var $=require__shared()(`wks`),ed=require__uid(),td=require__global().Symbol,nd=typeof td==`function`,rd=t.exports=function(e){return $[e]||($[e]=nd&&td[e]||(nd?td:ed)(`Symbol.`+e))};rd.store=$})),require__set_to_string_tag=__commonJSMin(((e,t)=>{var $=require__object_dp().f,ed=require__has(),td=require__wks()(`toStringTag`);t.exports=function(e,t,nd){e&&!ed(e=nd?e:e.prototype,td)&&$(e,td,{configurable:!0,value:t})}})),require__iter_create=__commonJSMin(((e,t)=>{var $=require__object_create(),ed=require__property_desc(),td=require__set_to_string_tag(),nd={};require__hide()(nd,require__wks()(`iterator`),function(){return this}),t.exports=function(e,t,rd){e.prototype=$(nd,{next:ed(1,rd)}),td(e,t+` Iterator`)}})),require__iter_define=__commonJSMin(((e,t)=>{var $=require__library(),ed=require__export(),td=require__redefine(),nd=require__hide(),rd=require__iterators(),id=require__iter_create(),ad=require__set_to_string_tag(),od=require__object_gpo(),sd=require__wks()(`iterator`),cd=!([].keys&&`next`in[].keys()),ld=`@@iterator`,ud=`keys`,dd=`values`,fd=function(){return this};t.exports=function(e,t,pd,md,hd,gd,_d){id(pd,t,md);var vd=function(e){if(!cd&&e in Sd)return Sd[e];switch(e){case ud:return function(){return new pd(this,e)};case dd:return function(){return new pd(this,e)}}return function(){return new pd(this,e)}},yd=t+` Iterator`,bd=hd==dd,xd=!1,Sd=e.prototype,Cd=Sd[sd]||Sd[ld]||hd&&Sd[hd],wd=Cd||vd(hd),Td=hd?bd?vd(`entries`):wd:void 0,Ed=t==`Array`&&Sd.entries||Cd,Dd,Od,kd;if(Ed&&(kd=od(Ed.call(new e)),kd!==Object.prototype&&kd.next&&(ad(kd,yd,!0),!$&&typeof kd[sd]!=`function`&&nd(kd,sd,fd))),bd&&Cd&&Cd.name!==dd&&(xd=!0,wd=function(){return Cd.call(this)}),(!$||_d)&&(cd||xd||!Sd[sd])&&nd(Sd,sd,wd),rd[t]=wd,rd[yd]=fd,hd)if(Dd={values:bd?wd:vd(dd),keys:gd?wd:vd(ud),entries:Td},_d)for(Od in Dd)Od in Sd||td(Sd,Od,Dd[Od]);else ed(ed.P+ed.F*(cd||xd),t,Dd);return Dd}})),require_es6_string_iterator=__commonJSMin((()=>{var e=require__string_at()(!0);require__iter_define()(String,`String`,function(e){this._t=String(e),this._i=0},function(){var t=this._t,$=this._i,ed;return $>=t.length?{value:void 0,done:!0}:(ed=e(t,$),this._i+=ed.length,{value:ed,done:!1})})})),require__add_to_unscopables=__commonJSMin(((e,t)=>{t.exports=function(){}})),require__iter_step=__commonJSMin(((e,t)=>{t.exports=function(e,t){return{value:t,done:!!e}}})),require_es6_array_iterator=__commonJSMin(((e,t)=>{var $=require__add_to_unscopables(),ed=require__iter_step(),td=require__iterators(),nd=require__to_iobject();t.exports=require__iter_define()(Array,`Array`,function(e,t){this._t=nd(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,$=this._i++;return!e||$>=e.length?(this._t=void 0,ed(1)):t==`keys`?ed(0,$):t==`values`?ed(0,e[$]):ed(0,[$,e[$]])},`values`),td.Arguments=td.Array,$(`keys`),$(`values`),$(`entries`)})),require_web_dom_iterable=__commonJSMin((()=>{require_es6_array_iterator();for(var e=require__global(),t=require__hide(),$=require__iterators(),ed=require__wks()(`toStringTag`),td=`CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList`.split(`,`),nd=0;nd<td.length;nd++){var rd=td[nd],id=e[rd],ad=id&&id.prototype;ad&&!ad[ed]&&t(ad,ed,rd),$[rd]=$.Array}})),require__wks_ext=__commonJSMin((e=>{e.f=require__wks()})),require_iterator$1=__commonJSMin(((e,t)=>{require_es6_string_iterator(),require_web_dom_iterable(),t.exports=require__wks_ext().f(`iterator`)})),require_iterator=__commonJSMin(((e,t)=>{t.exports={default:require_iterator$1(),__esModule:!0}})),require__meta=__commonJSMin(((e,t)=>{var $=require__uid()(`meta`),ed=require__is_object(),td=require__has(),nd=require__object_dp().f,rd=0,id=Object.isExtensible||function(){return!0},ad=!require__fails()(function(){return id(Object.preventExtensions({}))}),od=function(e){nd(e,$,{value:{i:`O`+ ++rd,w:{}}})},sd=t.exports={KEY:$,NEED:!1,fastKey:function(e,t){if(!ed(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!td(e,$)){if(!id(e))return`F`;if(!t)return`E`;od(e)}return e[$].i},getWeak:function(e,t){if(!td(e,$)){if(!id(e))return!0;
329if(!t)return!1;od(e)}return e[$].w},onFreeze:function(e){return ad&&sd.NEED&&id(e)&&!td(e,$)&&od(e),e}}})),require__wks_define=__commonJSMin(((e,t)=>{var $=require__global(),ed=require__core(),td=require__library(),nd=require__wks_ext(),rd=require__object_dp().f;t.exports=function(e){var t=ed.Symbol||=td?{}:$.Symbol||{};e.charAt(0)!=`_`&&!(e in t)&&rd(t,e,{value:nd.f(e)})}})),require__object_gops=__commonJSMin((e=>{e.f=Object.getOwnPropertySymbols})),require__object_pie=__commonJSMin((e=>{e.f={}.propertyIsEnumerable})),require__enum_keys=__commonJSMin(((e,t)=>{var $=require__object_keys(),ed=require__object_gops(),td=require__object_pie();t.exports=function(e){var t=$(e),nd=ed.f;if(nd)for(var rd=nd(e),id=td.f,ad=0,od;rd.length>ad;)id.call(e,od=rd[ad++])&&t.push(od);return t}})),require__is_array=__commonJSMin(((e,t)=>{var $=require__cof();t.exports=Array.isArray||function(e){return $(e)==`Array`}})),require__object_gopn=__commonJSMin((e=>{var t=require__object_keys_internal(),$=require__enum_bug_keys().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,$)}})),require__object_gopn_ext=__commonJSMin(((e,t)=>{var $=require__to_iobject(),ed=require__object_gopn().f,td={}.toString,nd=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rd=function(e){try{return ed(e)}catch{return nd.slice()}};t.exports.f=function(e){return nd&&td.call(e)==`[object Window]`?rd(e):ed($(e))}})),require__object_gopd=__commonJSMin((e=>{var t=require__object_pie(),$=require__property_desc(),ed=require__to_iobject(),td=require__to_primitive(),nd=require__has(),rd=require__ie8_dom_define(),id=Object.getOwnPropertyDescriptor;e.f=require__descriptors()?id:function(e,ad){if(e=ed(e),ad=td(ad,!0),rd)try{return id(e,ad)}catch{}if(nd(e,ad))return $(!t.f.call(e,ad),e[ad])}})),require_es6_symbol=__commonJSMin((()=>{var e=require__global(),t=require__has(),$=require__descriptors(),ed=require__export(),td=require__redefine(),nd=require__meta().KEY,rd=require__fails(),id=require__shared(),ad=require__set_to_string_tag(),od=require__uid(),sd=require__wks(),cd=require__wks_ext(),ld=require__wks_define(),ud=require__enum_keys(),dd=require__is_array(),fd=require__an_object(),pd=require__is_object(),md=require__to_object(),hd=require__to_iobject(),gd=require__to_primitive(),_d=require__property_desc(),vd=require__object_create(),yd=require__object_gopn_ext(),bd=require__object_gopd(),xd=require__object_gops(),Sd=require__object_dp(),Cd=require__object_keys(),wd=bd.f,Td=Sd.f,Ed=yd.f,Dd=e.Symbol,Od=e.JSON,kd=Od&&Od.stringify,Ad=`prototype`,jd=sd(`_hidden`),Md=sd(`toPrimitive`),Nd={}.propertyIsEnumerable,Pd=id(`symbol-registry`),Fd=id(`symbols`),Id=id(`op-symbols`),Ld=Object[Ad],Rd=typeof Dd==`function`&&!!xd.f,zd=e.QObject,Bd=!zd||!zd[Ad]||!zd[Ad].findChild,Vd=$&&rd(function(){return vd(Td({},`a`,{get:function(){return Td(this,`a`,{value:7}).a}})).a!=7})?function(e,t,$){var ed=wd(Ld,t);ed&&delete Ld[t],Td(e,t,$),ed&&e!==Ld&&Td(Ld,t,ed)}:Td,Hd=function(e){var t=Fd[e]=vd(Dd[Ad]);return t._k=e,t},Ud=Rd&&typeof Dd.iterator==`symbol`?function(e){return typeof e==`symbol`}:function(e){return e instanceof Dd},Wd=function(e,$,ed){return e===Ld&&Wd(Id,$,ed),fd(e),$=gd($,!0),fd(ed),t(Fd,$)?(ed.enumerable?(t(e,jd)&&e[jd][$]&&(e[jd][$]=!1),ed=vd(ed,{enumerable:_d(0,!1)})):(t(e,jd)||Td(e,jd,_d(1,{})),e[jd][$]=!0),Vd(e,$,ed)):Td(e,$,ed)},Gd=function(e,t){fd(e);for(var $=ud(t=hd(t)),ed=0,td=$.length,nd;td>ed;)Wd(e,nd=$[ed++],t[nd]);return e},Kd=function(e,t){return t===void 0?vd(e):Gd(vd(e),t)},qd=function(e){var $=Nd.call(this,e=gd(e,!0));return this===Ld&&t(Fd,e)&&!t(Id,e)?!1:$||!t(this,e)||!t(Fd,e)||t(this,jd)&&this[jd][e]?$:!0},Jd=function(e,$){if(e=hd(e),$=gd($,!0),!(e===Ld&&t(Fd,$)&&!t(Id,$))){var ed=wd(e,$);return ed&&t(Fd,$)&&!(t(e,jd)&&e[jd][$])&&(ed.enumerable=!0),ed}},Yd=function(e){for(var $=Ed(hd(e)),ed=[],td=0,rd;$.length>td;)!t(Fd,rd=$[td++])&&rd!=jd&&rd!=nd&&ed.push(rd);return ed},Xd=function(e){for(var $=e===Ld,ed=Ed($?Id:hd(e)),td=[],nd=0,rd;ed.length>nd;)t(Fd,rd=ed[nd++])&&(!$||t(Ld,rd))&&td.push(Fd[rd]);return td};Rd||(Dd=function(){if(this instanceof Dd)throw TypeError(`Symbol is not a constructor!`);var e=od(arguments.length>0?arguments[0]:void 0),ed=function($){this===Ld&&ed.call(Id,$),t(this,jd)&&t(this[jd],e)&&(this[jd][e]=!1),Vd(this,e,_d(1,$))};return $&&Bd&&Vd(Ld,e,{configurable:!0,set:ed}),Hd(e)},td(Dd[Ad],`toString`,function(){return this._k}),bd.f=Jd,Sd.f=Wd,require__object_gopn().f=yd.f=Yd,require__object_pie().f=qd,xd.f=Xd,$&&!require__library()&&td(Ld,`propertyIsEnumerable`,qd,!0),cd.f=function(e){return Hd(sd(e))}),ed(ed.G+ed.W+ed.F*!Rd,{Symbol:Dd});for(var Zd=`hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables`.split(`,`),Qd=0;Zd.length>Qd;)sd(Zd[Qd++]);for(var $d=Cd(sd.store),ef=0;$d.length>ef;)ld($d[ef++]);ed(ed.S+ed.F*!Rd,`Symbol`,{for:function(e){return t(Pd,e+=``)?Pd[e]:Pd[e]=Dd(e)},keyFor:function(e){if(!Ud(e))throw TypeError(e+` is not a symbol!`);for(var t in Pd)if(Pd[t]===e)return t},useSetter:function(){Bd=!0},useSimple:function(){Bd=!1}}),ed(ed.S+ed.F*!Rd,`Object`,{create:Kd,defineProperty:Wd,defineProperties:Gd,getOwnPropertyDescriptor:Jd,getOwnPropertyNames:Yd,getOwnPropertySymbols:Xd});var tf=rd(function(){xd.f(1)});ed(ed.S+ed.F*tf,`Object`,{getOwnPropertySymbols:function(e){return xd.f(md(e))}}),Od&&ed(ed.S+ed.F*(!Rd||rd(function(){var e=Dd();return kd([e])!=`[null]`||kd({a:e})!=`{}`||kd(Object(e))!=`{}`})),`JSON`,{stringify:function(e){for(var t=[e],$=1,ed,td;arguments.length>$;)t.push(arguments[$++]);if(td=ed=t[1],!(!pd(ed)&&e===void 0||Ud(e)))return dd(ed)||(ed=function(e,t){if(typeof td==`function`&&(t=td.call(this,e,t)),!Ud(t))return t}),t[1]=ed,kd.apply(Od,t)}}),Dd[Ad][Md]||require__hide()(Dd[Ad],Md,Dd[Ad].valueOf),ad(Dd,`Symbol`),ad(Math,`Math`,!0),ad(e.JSON,`JSON`,!0)})),require_es6_object_to_string=__commonJSMin((()=>{})),require_es7_symbol_async_iterator=__commonJSMin((()=>{require__wks_define()(`asyncIterator`)})),require_es7_symbol_observable=__commonJSMin((()=>{require__wks_define()(`observable`)})),require_symbol$1=__commonJSMin(((e,t)=>{require_es6_symbol(),require_es6_object_to_string(),require_es7_symbol_async_iterator(),require_es7_symbol_observable(),t.exports=require__core().Symbol})),require_symbol=__commonJSMin(((e,t)=>{t.exports={default:require_symbol$1(),__esModule:!0}})),require_typeof=__commonJSMin((e=>
329{e.__esModule=!0;var t=td(require_iterator()),$=td(require_symbol()),ed=typeof $.default==`function`&&typeof t.default==`symbol`?function(e){return typeof e}:function(e){return e&&typeof $.default==`function`&&e.constructor===$.default&&e!==$.default.prototype?`symbol`:typeof e};function td(e){return e&&e.__esModule?e:{default:e}}e.default=typeof $.default==`function`&&ed(t.default)===`symbol`?function(e){return e===void 0?`undefined`:ed(e)}:function(e){return e&&typeof $.default==`function`&&e.constructor===$.default&&e!==$.default.prototype?`symbol`:e===void 0?`undefined`:ed(e)}})),require_possibleConstructorReturn=__commonJSMin((e=>{e.__esModule=!0;var t=$(require_typeof());function $(e){return e&&e.__esModule?e:{default:e}}e.default=function(e,$){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return $&&(($===void 0?`undefined`:(0,t.default)($))===`object`||typeof $==`function`)?$:e}})),require__set_proto=__commonJSMin(((e,t)=>{var $=require__is_object(),ed=require__an_object(),td=function(e,t){if(ed(e),!$(t)&&t!==null)throw TypeError(t+`: can't set as prototype!`)};t.exports={set:Object.setPrototypeOf||(`__proto__`in{}?function(e,t,$){try{$=require__ctx()(Function.call,require__object_gopd().f(Object.prototype,`__proto__`).set,2),$(e,[]),t=!(e instanceof Array)}catch{t=!0}return function(e,ed){return td(e,ed),t?e.__proto__=ed:$(e,ed),e}}({},!1):void 0),check:td}})),require_es6_object_set_prototype_of=__commonJSMin((()=>{var e=require__export();e(e.S,`Object`,{setPrototypeOf:require__set_proto().set})})),require_set_prototype_of$1=__commonJSMin(((e,t)=>{require_es6_object_set_prototype_of(),t.exports=require__core().Object.setPrototypeOf})),require_set_prototype_of=__commonJSMin(((e,t)=>{t.exports={default:require_set_prototype_of$1(),__esModule:!0}})),require_es6_object_create=__commonJSMin((()=>{var e=require__export();e(e.S,`Object`,{create:require__object_create()})})),require_create$1=__commonJSMin(((e,t)=>{require_es6_object_create();var $=require__core().Object;t.exports=function(e,t){return $.create(e,t)}})),require_create=__commonJSMin(((e,t)=>{t.exports={default:require_create$1(),__esModule:!0}})),require_inherits=__commonJSMin((e=>{e.__esModule=!0;var t=td(require_set_prototype_of()),$=td(require_create()),ed=td(require_typeof());function td(e){return e&&e.__esModule?e:{default:e}}e.default=function(e,td){if(typeof td!=`function`&&td!==null)throw TypeError(`Super expression must either be null or a function, not `+(td===void 0?`undefined`:(0,ed.default)(td)));e.prototype=(0,$.default)(td&&td.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),td&&(t.default?(0,t.default)(e,td):e.__proto__=td)}})),require__apply=__commonJSMin(((e,t)=>{function $(e,t,$){switch($.length){case 0:return e.call(t);case 1:return e.call(t,$[0]);case 2:return e.call(t,$[0],$[1]);case 3:return e.call(t,$[0],$[1],$[2])}return e.apply(t,$)}t.exports=$})),require__overRest=__commonJSMin(((e,t)=>{var $=require__apply(),ed=Math.max;function td(e,t,td){return t=ed(t===void 0?e.length-1:t,0),function(){for(var nd=arguments,rd=-1,id=ed(nd.length-t,0),ad=Array(id);++rd<id;)ad[rd]=nd[t+rd];rd=-1;for(var od=Array(t+1);++rd<t;)od[rd]=nd[rd];return od[t]=td(ad),$(e,this,od)}}t.exports=td})),require_constant=__commonJSMin(((e,t)=>{function $(e){return function(){return e}}t.exports=$})),require__coreJsData=__commonJSMin(((e,t)=>{t.exports=require__root()[`__core-js_shared__`]})),require__isMasked=__commonJSMin(((e,t)=>{var $=require__coreJsData(),ed=function(){var e=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function td(e){return!!ed&&ed in e}t.exports=td})),require__toSource=__commonJSMin(((e,t)=>{var $=Function.prototype.toString;function ed(e){if(e!=null){try{return $.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=ed})),require__baseIsNative=__commonJSMin(((e,t)=>{var $=require_isFunction(),ed=require__isMasked(),td=require_isObject(),nd=require__toSource(),rd=/[\\^$.*+?()[\]{}|]/g,id=/^\[object .+?Constructor\]$/,ad=Function.prototype,od=Object.prototype,sd=ad.toString,cd=od.hasOwnProperty,ld=RegExp(`^`+sd.call(cd).replace(rd,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function ud(e){return!td(e)||ed(e)?!1:($(e)?ld:id).test(nd(e))}t.exports=ud})),require__getValue=__commonJSMin(((e,t)=>{function $(e,t){return e?.[t]}t.exports=$})),require__getNative=__commonJSMin(((e,t)=>{var $=require__baseIsNative(),ed=require__getValue();function td(e,t){var td=ed(e,t);return $(td)?td:void 0}t.exports=td})),require__defineProperty=__commonJSMin(((e,t)=>{var $=require__getNative();
329t.exports=function(){try{var e=$(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),require__baseSetToString=__commonJSMin(((e,t)=>{var $=require_constant(),ed=require__defineProperty(),td=require_identity();t.exports=ed?function(e,t){return ed(e,`toString`,{configurable:!0,enumerable:!1,value:$(t),writable:!0})}:td})),require__shortOut=__commonJSMin(((e,t)=>{var $=800,ed=16,td=Date.now;function nd(e){var t=0,nd=0;return function(){var rd=td(),id=ed-(rd-nd);if(nd=rd,id>0){if(++t>=$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=nd})),require__setToString=__commonJSMin(((e,t)=>{var $=require__baseSetToString();t.exports=require__shortOut()($)})),require__baseRest=__commonJSMin(((e,t)=>{var $=require_identity(),ed=require__overRest(),td=require__setToString();function nd(e,t){return td(ed(e,t,$),e+``)}t.exports=nd})),require__WeakMap=__commonJSMin(((e,t)=>{t.exports=require__getNative()(require__root(),`WeakMap`)})),require__metaMap=__commonJSMin(((e,t)=>{var $=require__WeakMap();t.exports=$&&new $})),require__baseSetData=__commonJSMin(((e,t)=>{var $=require_identity(),ed=require__metaMap();t.exports=ed?function(e,t){return ed.set(e,t),e}:$})),require__baseCreate=__commonJSMin(((e,t)=>{var $=require_isObject(),ed=Object.create;t.exports=function(){function e(){}return function(t){if(!$(t))return{};if(ed)return ed(t);e.prototype=t;var td=new e;return e.prototype=void 0,td}}()})),require__createCtor=__commonJSMin(((e,t)=>{var $=require__baseCreate(),ed=require_isObject();function td(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var td=$(e.prototype),nd=e.apply(td,t);return ed(nd)?nd:td}}t.exports=td})),require__createBind=__commonJSMin(((e,t)=>{var $=require__createCtor(),ed=require__root(),td=1;function nd(e,t,nd){var rd=t&td,id=$(e);function ad(){return(this&&this!==ed&&this instanceof ad?id:e).apply(rd?nd:this,arguments)}return ad}t.exports=nd})),require__composeArgs=__commonJSMin(((e,t)=>{var $=Math.max;function ed(e,t,ed,td){for(var nd=-1,rd=e.length,id=ed.length,ad=-1,od=t.length,sd=$(rd-id,0),cd=Array(od+sd),ld=!td;++ad<od;)cd[ad]=t[ad];for(;++nd<id;)(ld||nd<rd)&&(cd[ed[nd]]=e[nd]);for(;sd--;)cd[ad++]=e[nd++];return cd}t.exports=ed})),require__composeArgsRight=__commonJSMin(((e,t)=>{var $=Math.max;function ed(e,t,ed,td){for(var nd=-1,rd=e.length,id=-1,ad=ed.length,od=-1,sd=t.length,cd=$(rd-ad,0),ld=Array(cd+sd),ud=!td;++nd<cd;)ld[nd]=e[nd];for(var dd=nd;++od<sd;)ld[dd+od]=t[od];for(;++id<ad;)(ud||nd<rd)&&(ld[dd+ed[id]]=e[nd++]);return ld}t.exports=ed})),require__countHolders=__commonJSMin(((e,t)=>{function $(e,t){for(var $=e.length,ed=0;$--;)e[$]===t&&++ed;return ed}t.exports=$})),require__baseLodash=__commonJSMin(((e,t)=>{function $(){}t.exports=$})),require__LazyWrapper=__commonJSMin(((e,t)=>{var $=require__baseCreate(),ed=require__baseLodash(),td=4294967295;function nd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=td,this.__views__=[]}nd.prototype=$(ed.prototype),nd.prototype.constructor=nd,t.exports=nd})),require_noop=__commonJSMin(((e,t)=>{function $(){}t.exports=$})),require__getData=__commonJSMin(((e,t)=>{var $=require__metaMap(),ed=require_noop();t.exports=$?function(e){return $.get(e)}:ed})),require__realNames=__commonJSMin(((e,t)=>{t.exports={}})),require__getFuncName=__commonJSMin(((e,t)=>{var $=require__realNames(),ed=Object.prototype.hasOwnProperty;function td(e){for(var t=e.name+``,td=$[t],nd=ed.call($,t)?td.length:0;nd--;){var rd=td[nd],id=rd.func;if(id==null||id==e)return rd.name}return t}t.exports=td})),require__LodashWrapper=__commonJSMin(((e,t)=>{var $=require__baseCreate(),ed=require__baseLodash();function td(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}
329td.prototype=$(ed.prototype),td.prototype.constructor=td,t.exports=td})),require__copyArray=__commonJSMin(((e,t)=>{function $(e,t){var $=-1,ed=e.length;for(t||=Array(ed);++$<ed;)t[$]=e[$];return t}t.exports=$})),require__wrapperClone=__commonJSMin(((e,t)=>{var $=require__LazyWrapper(),ed=require__LodashWrapper(),td=require__copyArray();function nd(e){if(e instanceof $)return e.clone();var t=new ed(e.__wrapped__,e.__chain__);return t.__actions__=td(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}t.exports=nd})),require_wrapperLodash=__commonJSMin(((e,t)=>{var $=require__LazyWrapper(),ed=require__LodashWrapper(),td=require__baseLodash(),nd=require_isArray(),rd=require_isObjectLike(),id=require__wrapperClone(),ad=Object.prototype.hasOwnProperty;function od(e){if(rd(e)&&!nd(e)&&!(e instanceof $)){if(e instanceof ed)return e;if(ad.call(e,`__wrapped__`))return id(e)}return new ed(e)}od.prototype=td.prototype,od.prototype.constructor=od,t.exports=od})),require__isLaziable=__commonJSMin(((e,t)=>{var $=require__LazyWrapper(),ed=require__getData(),td=require__getFuncName(),nd=require_wrapperLodash();function rd(e){var t=td(e),rd=nd[t];if(typeof rd!=`function`||!(t in $.prototype))return!1;if(e===rd)return!0;var id=ed(rd);return!!id&&e===id[0]}t.exports=rd})),require__setData=__commonJSMin(((e,t)=>{var $=require__baseSetData();t.exports=require__shortOut()($)})),require__getWrapDetails=__commonJSMin(((e,t)=>{var $=/\{\n\/\* \[wrapped with (.+)\] \*/,ed=/,? & /;function td(e){var t=e.match($);return t?t[1].split(ed):[]}t.exports=td})),require__insertWrapDetails=__commonJSMin(((e,t)=>{var $=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function ed(e,t){var ed=t.length;if(!ed)return e;var td=ed-1;return t[td]=(ed>1?`& `:``)+t[td],t=t.join(ed>2?`, `:` `),e.replace($,`{ 330/* [wrapped with `+t+`] */ 331`)}t.exports=ed})),require__arrayEach=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=e==null?0:e.length;++$<ed&&t(e[$],$,e)!==!1;);return e}t.exports=$})),require__baseFindIndex=__commonJSMin(((e,t)=>{function $(e,t,$,ed){for(var td=e.length,nd=$+(ed?1:-1);ed?nd--:++nd<td;)if(t(e[nd],nd,e))return nd;return-1}t.exports=$})),require__baseIsNaN=__commonJSMin(((e,t)=>{function $(e){return e!==e}t.exports=$})),require__strictIndexOf=__commonJSMin(((e,t)=>{function $(e,t,$){for(var ed=$-1,td=e.length;++ed<td;)if(e[ed]===t)return ed;return-1}t.exports=$})),require__baseIndexOf=__commonJSMin(((e,t)=>{var $=require__baseFindIndex(),ed=require__baseIsNaN(),td=require__strictIndexOf();function nd(e,t,nd){return t===t?td(e,t,nd):$(e,ed,nd)}t.exports=nd})),require__arrayIncludes=__commonJSMin(((e,t)=>{var $=require__baseIndexOf();function ed(e,t){return!!(e!=null&&e.length)&&$(e,t,0)>-1}t.exports=ed})),require__updateWrapDetails=__commonJSMin(((e,t)=>{var $=require__arrayEach(),ed=require__arrayIncludes(),td=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]];function nd(e,t){return $(td,function($){var td=`_.`+$[0];t&$[1]&&!ed(e,td)&&e.push(td)}),e.sort()}t.exports=nd})),require__setWrapToString=__commonJSMin(((e,t)=>{var $=require__getWrapDetails(),ed=require__insertWrapDetails(),td=require__setToString(),nd=require__updateWrapDetails();function rd(e,t,rd){var id=t+``;return td(e,ed(id,nd($(id),rd)))}t.exports=rd})),require__createRecurry=__commonJSMin(((e,t)=>{var $=require__isLaziable(),ed=require__setData(),td=require__setWrapToString(),nd=1,rd=2,id=4,ad=8,od=32,sd=64;function cd(e,t,cd,ld,ud,dd,fd,pd,md,hd){var gd=t&ad,_d=gd?fd:void 0,vd=gd?void 0:fd,yd=gd?dd:void 0,bd=gd?void 0:dd;t|=gd?od:sd,t&=~(gd?sd:od),t&id||(t&=~(nd|rd));var xd=[e,t,ud,yd,_d,bd,vd,pd,md,hd],Sd=cd.apply(void 0,xd);return $(e)&&ed(Sd,xd),Sd.placeholder=ld,td(Sd,e,t)}t.exports=cd})),require__getHolder=__commonJSMin(((e,t)=>{function $(e){return e.placeholder}t.exports=$})),require__reorder=__commonJSMin(((e,t)=>{var $=require__copyArray(),ed=require__isIndex(),td=Math.min;function nd(e,t){for(var nd=e.length,rd=td(t.length,nd),id=$(e);rd--;){var ad=t[rd];e[rd]=ed(ad,nd)?id[ad]:void 0}return e}t.exports=nd})),require__replaceHolders=__commonJSMin(((e,t)=>{var $=`__lodash_placeholder__`;function ed(e,t){for(var ed=-1,td=e.length,nd=0,rd=[];++ed<td;){var id=e[ed];(id===t||id===$)&&(e[ed]=$,rd[nd++]=ed)}return rd}t.exports=ed})),require__createHybrid=__commonJSMin(((e,t)=>{var $=require__composeArgs(),ed=require__composeArgsRight(),td=require__countHolders(),nd=require__createCtor(),rd=require__createRecurry(),id=require__getHolder(),ad=require__reorder(),od=require__replaceHolders(),sd=require__root(),cd=1,ld=2,ud=8,dd=16,fd=128,pd=512;function md(e,t,hd,gd,_d,vd,yd,bd,xd,Sd){var Cd=t&fd,wd=t&cd,Td=t&ld,Ed=t&(ud|dd),Dd=t&pd,Od=Td?void 0:nd(e);function kd(){for(var cd=arguments.length,ld=Array(cd),ud=cd;ud--;)ld[ud]=arguments[ud];if(Ed)var dd=id(kd),fd=td(ld,dd);if(gd&&(ld=$(ld,gd,_d,Ed)),vd&&(ld=ed(ld,vd,yd,Ed)),cd-=fd,Ed&&cd<Sd){var pd=od(ld,dd);return rd(e,t,md,kd.placeholder,hd,ld,pd,bd,xd,Sd-cd)}var Ad=wd?hd:this,jd=Td?Ad[e]:e;return cd=ld.length,bd?ld=ad(ld,bd):Dd&&cd>1&&ld.reverse(),Cd&&xd<cd&&(ld.length=xd),this&&this!==sd&&this instanceof kd&&(jd=Od||nd(jd)),jd.apply(Ad,ld)}return kd}t.exports=md})),require__createCurry=__commonJSMin(((e,t)=>{var $=require__apply(),ed=require__createCtor(),td=require__createHybrid(),nd=require__createRecurry(),rd=require__getHolder(),id=require__replaceHolders(),ad=require__root();function od(e,t,od){var sd=ed(e);function cd(){for(var ed=arguments.length,ld=Array(ed),ud=ed,dd=rd(cd);ud--;)ld[ud]=arguments[ud];var fd=ed<3&&ld[0]!==dd&&ld[ed-1]!==dd?[]:id(ld,dd);return ed-=fd.length,ed<od?nd(e,t,td,cd.placeholder,void 0,ld,fd,void 0,void 0,od-ed):$(this&&this!==ad&&this instanceof cd?sd:e,this,ld)}return cd}t.exports=od}
331)),require__createPartial=__commonJSMin(((e,t)=>{var $=require__apply(),ed=require__createCtor(),td=require__root(),nd=1;function rd(e,t,rd,id){var ad=t&nd,od=ed(e);function sd(){for(var t=-1,ed=arguments.length,nd=-1,cd=id.length,ld=Array(cd+ed),ud=this&&this!==td&&this instanceof sd?od:e;++nd<cd;)ld[nd]=id[nd];for(;ed--;)ld[nd++]=arguments[++t];return $(ud,ad?rd:this,ld)}return sd}t.exports=rd})),require__mergeData=__commonJSMin(((e,t)=>{var $=require__composeArgs(),ed=require__composeArgsRight(),td=require__replaceHolders(),nd=`__lodash_placeholder__`,rd=1,id=2,ad=4,od=8,sd=128,cd=256,ld=Math.min;function ud(e,t){var ud=e[1],dd=t[1],fd=ud|dd,pd=fd<(rd|id|sd),md=dd==sd&&ud==od||dd==sd&&ud==cd&&e[7].length<=t[8]||dd==(sd|cd)&&t[7].length<=t[8]&&ud==od;if(!(pd||md))return e;dd&rd&&(e[2]=t[2],fd|=ud&rd?0:ad);var hd=t[3];if(hd){var gd=e[3];e[3]=gd?$(gd,hd,t[4]):hd,e[4]=gd?td(e[3],nd):t[4]}return hd=t[5],hd&&(gd=e[5],e[5]=gd?ed(gd,hd,t[6]):hd,e[6]=gd?td(e[5],nd):t[6]),hd=t[7],hd&&(e[7]=hd),dd&sd&&(e[8]=e[8]==null?t[8]:ld(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=fd,e}t.exports=ud})),require__trimmedEndIndex=__commonJSMin(((e,t)=>{var $=/\s/;function ed(e){for(var t=e.length;t--&&$.test(e.charAt(t)););return t}t.exports=ed})),require__baseTrim=__commonJSMin(((e,t)=>{var $=require__trimmedEndIndex(),ed=/^\s+/;function td(e){return e&&e.slice(0,$(e)+1).replace(ed,``)}t.exports=td})),require_isSymbol=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require_isObjectLike(),td=`[object Symbol]`;function nd(e){return typeof e==`symbol`||ed(e)&&$(e)==td}t.exports=nd})),require_toNumber=__commonJSMin(((e,t)=>{var $=require__baseTrim(),ed=require_isObject(),td=require_isSymbol(),nd=NaN,rd=/^[-+]0x[0-9a-f]+$/i,id=/^0b[01]+$/i,ad=/^0o[0-7]+$/i,od=parseInt;function sd(e){if(typeof e==`number`)return e;if(td(e))return nd;if(ed(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=ed(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=$(e);var sd=id.test(e);return sd||ad.test(e)?od(e.slice(2),sd?2:8):rd.test(e)?nd:+e}t.exports=sd})),require_toFinite=__commonJSMin(((e,t)=>{var $=require_toNumber(),ed=1/0,td=17976931348623157e292;function nd(e){return e?(e=$(e),e===ed||e===-ed?(e<0?-1:1)*td:e===e?e:0):e===0?e:0}t.exports=nd})),require_toInteger=__commonJSMin(((e,t)=>{var $=require_toFinite();function ed(e){var t=$(e),ed=t%1;return t===t?ed?t-ed:t:0}t.exports=ed})),require__createWrap=__commonJSMin(((e,t)=>{var $=require__baseSetData(),ed=require__createBind(),td=require__createCurry(),nd=require__createHybrid(),rd=require__createPartial(),id=require__getData(),ad=require__mergeData(),od=require__setData(),sd=require__setWrapToString(),cd=require_toInteger(),ld=`Expected a function`,ud=1,dd=2,fd=8,pd=16,md=32,hd=64,gd=Math.max;function _d(e,t,_d,vd,yd,bd,xd,Sd){var Cd=tⅆif(!Cd&&typeof e!=`function`)throw TypeError(ld);var wd=vd?vd.length:0;if(wd||(t&=~(md|hd),vd=yd=void 0),xd=xd===void 0?xd:gd(cd(xd),0),Sd=Sd===void 0?Sd:cd(Sd),wd-=yd?yd.length:0,t&hd){var Td=vd,Ed=yd;vd=yd=void 0}var Dd=Cd?void 0:id(e),Od=[e,t,_d,vd,yd,Td,Ed,bd,xd,Sd];if(Dd&&ad(Od,Dd),e=Od[0],t=Od[1],_d=Od[2],vd=Od[3],yd=Od[4],Sd=Od[9]=Od[9]===void 0?Cd?0:e.length:gd(Od[9]-wd,0),!Sd&&t&(fd|pd)&&(t&=~(fd|pd)),!t||t==ud)var kd=ed(e,t,_d);else kd=t==fd||t==pd?td(e,t,Sd):(t==md||t==(ud|md))&&!yd.length?rd(e,t,_d,vd):nd.apply(void 0,Od);return sd((Dd?$:od)(kd,Od),e,t)}t.exports=_d})),require_bind=__commonJSMin(((e,t)=>{var $=require__baseRest(),ed=require__createWrap(),td=require__getHolder(),nd=require__replaceHolders(),rd=1,id=32,ad=$(function(e,t,$){var od=rd;if($.length){var sd=nd($,td(ad));od|=id}return ed(e,od,t,$,sd)});ad.placeholder={},t.exports=ad})),require_can_use_dom=__commonJSMin(((e,t)=>{t.exports=!!(typeof window<`u`&&window.document&&window.document.createElement)})),require_hoist_non_react_statics_cjs=__commonJSMin(((e,t)=>{var $={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ed={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},td=Object.defineProperty,nd=Object.getOwnPropertyNames,rd=Object.getOwnPropertySymbols,id=Object.getOwnPropertyDescriptor,ad=Object.getPrototypeOf,od=ad&&ad(Object);function sd(e,t,cd){if(typeof t!=`string`){if(od){var ld=ad(t);ld&&ld!==od&&sd(e,ld,cd)}var ud=nd(t);rd&&(ud=ud.concat(rd(t)));for(var dd=0;dd<ud.length;++dd){var fd=ud[dd];if(!$[fd]&&!ed[fd]&&(!cd||!cd[fd])){var pd=id(t,fd);try{td(e,fd,pd)}catch{}}}return e}return e}t.exports=sd})),require_lib$1=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createChangeEmitter=function(){var e=[],t=e;function $(){t===e&&(t=e.slice())}function ed(e){if(typeof e!=`function`)throw Error(`Expected listener to be a function.`);var ed=!0;return $(),t.push(e),function(){if(ed){ed=!1,$();var td=t.indexOf(e);t.splice(td,1)}}}function td(){e=t;for(var $=e,ed=0;ed<$.length;ed++)$[ed].apply($,arguments)}return{listen:ed,emit:td}}})),Recompose_exports=__exportAll({branch:()=>branch,componentFromProp:()=>componentFromProp,componentFromStream:()=>componentFromStream,componentFromStreamWithConfig:()=>componentFromStreamWithConfig,compose:()=>compose,createEventHandler:()=>createEventHandler,createEventHandlerWithConfig:()=>createEventHandlerWithConfig,createSink:()=>createSink,defaultProps:()=>defaultProps,flattenProp:()=>flattenProp,getContext:()=>getContext,getDisplayName:()=>getDisplayName,hoistStatics:()=>hoistStatics,isClassComponent:()=>isClassComponent,lifecycle:()=>lifecycle,mapProps:()=>mapProps,mapPropsStream:()=>mapPropsStream,mapPropsStreamWithConfig:()=>mapPropsStreamWithConfig,nest:()=>nest,onlyUpdateForKeys:()=>onlyUpdateForKeys,onlyUpdateForPropTypes:()=>onlyUpdateForPropTypes,pure:()=>pure,renameProp:()=>renameProp,renameProps:()=>renameProps,renderComponent:()=>renderComponent,renderNothing:()=>renderNothing,setDisplayName:()=>setDisplayName,setObservableConfig:()=>configureObservable,setPropTypes:()=>setPropTypes,setStatic:()=>setStatic,shallowEqual:()=>import_shallowEqual.default,shouldUpdate:()=>shouldUpdate,toClass:()=>toClass,withContext:()=>withContext,withHandlers:()=>withHandlers,withProps:()=>withProps,withPropsOnChange:()=>withPropsOnChange,withReducer:()=>withReducer,withState:()=>withState,withStateHandlers:()=>withStateHandlers,wrapDisplayName:()=>wrapDisplayName});function compose(){var e=[...arguments];return e.length===0?function(e){return e}:e.length===1?e[0]:e.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var import_react,import_shallowEqual,import_hoist_non_react_statics_cjs,import_lib$1,setStatic,setDisplayName,getDisplayName,wrapDisplayName,mapProps,classCallCheck,_extends,inherits,objectWithoutProperties,possibleConstructorReturn,withProps,pick,withPropsOnChange,mapValues,withHandlers,defaultProps,omit,renameProp,keys,mapKeys,renameProps,flattenProp,withState,withStateHandlers,withReducer,identity,branch,renderComponent,Nothing,renderNothing,shouldUpdate,pure,onlyUpdateForKeys,onlyUpdateForPropTypes,withContext,getContext,lifecycle,isClassComponent,toClass,setPropTypes,createSink,componentFromProp,nest,hoistStatics,_config,configureObservable,config$2,componentFromStreamWithConfig,componentFromStream,identity$1,mapPropsStreamWithConfig,mapPropsStream,createEventHandlerWithConfig,createEventHandler,init_Recompose=__esmMin((()=>{import_react=__toESM(require_react()),import_shallowEqual=__toESM(require_shallowEqual$1()),import_hoist_non_react_statics_cjs=__toESM(require_hoist_non_react_statics_cjs()),import_lib$1=require_lib$1(),init_es$1(),setStatic=function(e,t){return function($){return $[e]=t,$}},setDisplayName=function(e){return setStatic(`displayName`,e)},getDisplayName=function(e){if(typeof e==`string`)return e;if(e)return e.displayName||e.name||`Component`},wrapDisplayName=function(e,t){return t+`(`+getDisplayName(e)+`)`},mapProps=function(e){return function(t){var $=(0,import_react.createFactory)(t);return function(t){return $(e(t))}}},classCallCheck=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)Object.prototype.hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e},inherits=function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},objectWithoutProperties=function(e,t){var $={};for(var ed in e)t.indexOf(ed)>=0||Object.prototype.hasOwnProperty.call(e,ed)&&($[ed]=e[ed]);return $},possibleConstructorReturn=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e},withProps=function(e){return mapProps(function(t){return _extends({},t,typeof e==`function`?e(t):e)})},pick=function(e,t){for(var $={},ed=0;ed<t.length;ed++){var td=t[ed];e.hasOwnProperty(td)&&($[td]=e[td])}return $},withPropsOnChange=function(e,t){return function($){var ed=(0,import_react.createFactory)($),td=typeof e==`function`?e:function(t,$){return!(0,import_shallowEqual.default)(pick(t,e),pick($,e))};return function(e){inherits($,e);function $(){var ed,td,nd;classCallCheck(this,$);var rd=[...arguments];return nd=(ed=(td=possibleConstructorReturn(this,e.call.apply(e,[this].concat(rd))),td),td.computedProps=t(td.props),ed),possibleConstructorReturn(td,nd)}return $.prototype.componentWillReceiveProps=function(e){td(this.props,e)&&(this.computedProps=t(e))},$.prototype.render=function(){return ed(_extends({},this.props,this.computedProps))},$}(import_react.Component)}},mapValues=function(e,t){var $={};for(var ed in e)e.hasOwnProperty(ed)&&($[ed]=t(e[ed],ed));return $},withHandlers=function(e){return function(t){var $=(0,import_react.createFactory)(t),ed=function(e){inherits(t,e);function t(){var $,ed,nd;classCallCheck(this,t);var rd=[...arguments];return nd=($=(ed=possibleConstructorReturn(this,e.call.apply(e,[this].concat(rd))),ed),td.call(ed),$),possibleConstructorReturn(ed,nd)}return t.prototype.componentWillReceiveProps=function(){this.cachedHandlers={}},t.prototype.render=function(){return $(_extends({},this.props,this.handlers))},t}(import_react.Component),td=function(){var t=this;this.cachedHandlers={},this.handlers=mapValues(typeof e==`function`?e(this.props):e,function(e,$){return function(){var ed=t.cached
331Handlers[$];if(ed)return ed.apply(void 0,arguments);var td=e(t.props);return t.cachedHandlers[$]=td,td.apply(void 0,arguments)}})};return ed}},defaultProps=function(e){return function(t){var $=(0,import_react.createFactory)(t),ed=function(e){return $(e)};return ed.defaultProps=e,ed}},omit=function(e,t){for(var $=objectWithoutProperties(e,[]),ed=0;ed<t.length;ed++){var td=t[ed];$.hasOwnProperty(td)&&delete $[td]}return $},renameProp=function(e,t){return mapProps(function($){var ed;return _extends({},omit($,[e]),(ed={},ed[t]=$[e],ed))})},keys=Object.keys,mapKeys=function(e,t){return keys(e).reduce(function($,ed){var td=e[ed];return $[t(td,ed)]=td,$},{})},renameProps=function(e){return mapProps(function(t){return _extends({},omit(t,keys(e)),mapKeys(pick(t,keys(e)),function(t,$){return e[$]}))})},flattenProp=function(e){return function(t){var $=(0,import_react.createFactory)(t);return function(t){return $(_extends({},t,t[e]))}}},withState=function(e,t,$){return function(ed){var td=(0,import_react.createFactory)(ed);return function(ed){inherits(nd,ed);function nd(){var e,t,td;classCallCheck(this,nd);var rd=[...arguments];return td=(e=(t=possibleConstructorReturn(this,ed.call.apply(ed,[this].concat(rd))),t),t.state={stateValue:typeof $==`function`?$(t.props):$},t.updateStateValue=function(e,$){return t.setState(function(t){var $=t.stateValue;return{stateValue:typeof e==`function`?e($):e}},$)},e),possibleConstructorReturn(t,td)}return nd.prototype.render=function(){var $;return td(_extends({},this.props,($={},$[e]=this.state.stateValue,$[t]=this.updateStateValue,$)))},nd}(import_react.Component)}},withStateHandlers=function(e,t){return function($){var ed=(0,import_react.createFactory)($),td=function(e){inherits(t,e);function t(){var $,ed,td;classCallCheck(this,t);var rd=[...arguments];return td=($=(ed=possibleConstructorReturn(this,e.call.apply(e,[this].concat(rd))),ed),nd.call(ed),$),possibleConstructorReturn(ed,td)}return t.prototype.shouldComponentUpdate=function(e,t){var $=e!==this.props,ed=!(0,import_shallowEqual.default)(t,this.state);return $||ed},t.prototype.render=function(){return ed(_extends({},this.props,this.state,this.stateUpdaters))},t}(import_react.Component),nd=function(){var $=this;this.state=typeof e==`function`?e(this.props):e,this.stateUpdaters=mapValues(t,function(e){return function(t){var ed=[...arguments].slice(1);t&&typeof t.persist==`function`&&t.persist(),$.setState(function($,td){return e($,td).apply(void 0,[t].concat(ed))})}})};return td}},withReducer=function(e,t,$,ed){return function(td){var nd=(0,import_react.createFactory)(td);return function(td){inherits(rd,td);function rd(){var e,t,ed;classCallCheck(this,rd);var nd=[...arguments];return ed=(e=(t=possibleConstructorReturn(this,td.call.apply(td,[this].concat(nd))),t),t.state={stateValue:t.initializeStateValue()},t.dispatch=function(e){return t.setState(function(t){var ed=t.stateValue;return{stateValue:$(ed,e)}})},e),possibleConstructorReturn(t,ed)}return rd.prototype.initializeStateValue=function(){return ed===void 0?$(void 0,{type:`@@recompose/INIT`}):typeof ed==`function`?ed(this.props):ed},rd.prototype.render=function(){var $;return nd(_extends({},this.props,($={},$[e]=this.state.stateValue,$[t]=this.dispatch,$)))},rd}(import_react.Component)}},identity=function(e){return e},branch=function(e,t){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:identity;return function(ed){var td=void 0,nd=void 0;return function(rd){return e(rd)?(td||=(0,import_react.createFactory)(t(ed)),td(rd)):(nd||=(0,import_react.createFactory)($(ed)),nd(rd))}}},renderComponent=function(e){return function(t){var $=(0,import_react.createFactory)(e);return function(e){return $(e)}}},Nothing=function(e){inherits(t,e);function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return t.prototype.render=function(){return null},t}(import_react.Component),renderNothing=function(e){return Nothing},shouldUpdate=function(e){return function(t){var $=(0,import_react.createFactory)(t);return function(t){inherits(ed,t);function ed(){return classCallCheck(this,ed),possibleConstructorReturn(this,t.apply(this,arguments))}return ed.prototype.shouldComponentUpdate=function(t){return e(this.props,t)},ed.prototype.render=function(){return $(this.props)},ed}(import_react.Component)}},pure=function(e){return shouldUpdate(function(e,t){return!(0,import_shallowEqual.default)(e,t)})(e)},onlyUpdateForKeys=function(e){return shouldUpdate(function(t,$){return!(0,import_shallowEqual.default)(pick($,e),pick(t,e))})}
331,onlyUpdateForPropTypes=function(e){var t=e.propTypes;return onlyUpdateForKeys(Object.keys(t||{}))(e)},withContext=function(e,t){return function($){var ed=(0,import_react.createFactory)($),td=function(e){inherits($,e);function $(){var ed,td,nd;classCallCheck(this,$);var rd=[...arguments];return nd=(ed=(td=possibleConstructorReturn(this,e.call.apply(e,[this].concat(rd))),td),td.getChildContext=function(){return t(td.props)},ed),possibleConstructorReturn(td,nd)}return $.prototype.render=function(){return ed(this.props)},$}(import_react.Component);return td.childContextTypes=e,td}},getContext=function(e){return function(t){var $=(0,import_react.createFactory)(t),ed=function(e,t){return $(_extends({},e,t))};return ed.contextTypes=e,ed}},lifecycle=function(e){return function(t){var $=(0,import_react.createFactory)(t),ed=function(e){inherits(t,e);function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return t.prototype.render=function(){return $(_extends({},this.props,this.state))},t}(import_react.Component);return Object.keys(e).forEach(function(t){return ed.prototype[t]=e[t]}),ed}},isClassComponent=function(e){return!!(e&&e.prototype&&typeof e.prototype.render==`function`)},toClass=function(e){if(isClassComponent(e))return e;var t=function(t){inherits($,t);function $(){return classCallCheck(this,$),possibleConstructorReturn(this,t.apply(this,arguments))}return $.prototype.render=function(){return typeof e==`string`?import_react.default.createElement(e,this.props):e(this.props,this.context)},$}(import_react.Component);return t.displayName=getDisplayName(e),t.propTypes=e.propTypes,t.contextTypes=e.contextTypes,t.defaultProps=e.defaultProps,t},setPropTypes=function(e){return setStatic(`propTypes`,e)},createSink=function(e){return function(t){inherits($,t);function $(){return classCallCheck(this,$),possibleConstructorReturn(this,t.apply(this,arguments))}return $.prototype.componentWillMount=function(){e(this.props)},$.prototype.componentWillReceiveProps=function(t){e(t)},$.prototype.render=function(){return null},$}(import_react.Component)},componentFromProp=function(e){var t=function(t){return(0,import_react.createElement)(t[e],omit(t,[e]))};return t.displayName=`componentFromProp(`+e+`)`,t},nest=function(){var e=[...arguments].map(import_react.createFactory);return function(t){var $=objectWithoutProperties(t,[]),ed=t.children;return e.reduceRight(function(e,t){return t($,e)},ed)}},hoistStatics=function(e){return function(t){var $=e(t);return(0,import_hoist_non_react_statics_cjs.default)($,t),$}},_config={fromESObservable:null,toESObservable:null},configureObservable=function(e){_config=e},config$2={fromESObservable:function(e){return typeof _config.fromESObservable==`function`?_config.fromESObservable(e):e},toESObservable:function(e){return typeof _config.toESObservable==`function`?_config.toESObservable(e):e}},componentFromStreamWithConfig=function(e){return function(t){return function($){inherits(ed,$);function ed(){var td,nd,rd,id;classCallCheck(this,ed);var ad=[...arguments];return id=(nd=(rd=possibleConstructorReturn(this,$.call.apply($,[this].concat(ad))),rd),rd.state={vdom:null},rd.propsEmitter=(0,import_lib$1.createChangeEmitter)(),rd.props$=e.fromESObservable((td={subscribe:function(e){return{unsubscribe:rd.propsEmitter.listen(function(t){t?e.next(t):e.complete()})}}},td[result]=function(){return this},td)),rd.vdom$=e.toESObservable(t(rd.props$)),nd),possibleConstructorReturn(rd,id)}return ed.prototype.componentWillMount=function(){var e=this;this.subscription=this.vdom$.subscribe({next:function(t){e.setState({vdom:t})}}),this.propsEmitter.emit(this.props)},ed.prototype.componentWillReceiveProps=function(e){this.propsEmitter.emit(e)},ed.prototype.shouldComponentUpdate=function(e,t){return t.vdom!==this.state.vdom},ed.prototype.componentWillUnmount=function(){this.propsEmitter.emit(),this.subscription.unsubscribe()},ed.prototype.render=function(){return this.state.vdom},ed}(import_react.Component)}},componentFromStream=function(e){return componentFromStreamWithConfig(config$2)(e)},identity$1=function(e){return e},mapPropsStreamWithConfig=function(e){var t=componentFromStreamWithConfig({fromESObservable:identity$1,toESObservable:identity$1});return function($){return function(ed){var td=(0,import_react.createFactory)(ed),nd=e.fromESObservable,rd=e.toESObservable;return t(function(e){var t;return t={subscribe:function(t){var ed=rd($(nd(e))).subscribe({next:function(e){return t.next(td(e))}});return{unsubscribe:function(){return ed.unsubscribe()}}}},t[result]=function(){return this},t})}}},mapPropsStream=function(e){return mapPropsStreamWithConfig(config$2)(e)},createEventHandlerWithConfig=function(e){return function(){var t,$=(0,import_lib$1.createChangeEmitter)(),ed=e.fromESObservable((t={subscribe:function(e){return{unsubscribe:$.listen(function(t){return e.next(t)})}}},t[result]=function(){return this},t));
331return{handler:$.emit,stream:ed}}},createEventHandler=createEventHandlerWithConfig(config$2)})),require_script=__commonJSMin(((e,t)=>{(function(e,$){t!==void 0&&t.exports?t.exports=$():typeof define==`function`&&define.amd?define($):this[e]=$()})(`$script`,function(){var e=document,t=e.getElementsByTagName(`head`)[0],$=!1,ed=`push`,td=`readyState`,nd=`onreadystatechange`,rd={},id={},ad={},od={},sd,cd;function ld(e,t){for(var ed=0,td=e.length;ed<td;++ed)if(!t(e[ed]))return $;return 1}function ud(e,t){ld(e,function(e){return t(e),1})}function dd(e,t,$){e=e[ed]?e:[e];var td=t&&t.call,nd=td?t:$,cd=td?e.join(``):t,pd=e.length;function md(e){return e.call?e():rd[e]}function hd(){if(!--pd)for(var e in rd[cd]=1,nd&&nd(),ad)ld(e.split(`|`),md)&&!ud(ad[e],md)&&(ad[e]=[])}return setTimeout(function(){ud(e,function e(t,$){if(t===null)return hd();if(!$&&!/^https?:\/\//.test(t)&&sd&&(t=t.indexOf(`.js`)===-1?sd+t+`.js`:sd+t),od[t])return cd&&(id[cd]=1),od[t]==2?hd():setTimeout(function(){e(t,!0)},0);od[t]=1,cd&&(id[cd]=1),fd(t,hd)})},0),dd}function fd($,ed){var rd=e.createElement(`script`),id;rd.onload=rd.onerror=rd[nd]=function(){rd[td]&&!/^c|loade/.test(rd[td])||id||(rd.onload=rd[nd]=null,id=1,od[$]=2,ed())},rd.async=1,rd.src=cd?$+($.indexOf(`?`)===-1?`?`:`&`)+cd:$,t.insertBefore(rd,t.lastChild)}return dd.get=fd,dd.order=function(e,t,$){(function ed(td){td=e.shift(),e.length?dd(td,ed):dd(td,t,$)})()},dd.path=function(e){sd=e},dd.urlArgs=function(e){cd=e},dd.ready=function(e,t,$){e=e[ed]?e:[e];var td=[];return!ud(e,function(e){rd[e]||td[ed](e)})&&ld(e,function(e){return rd[e]})?t():function(e){ad[e]=ad[e]||[],ad[e][ed](t),$&&$(td)}(e.join(`|`)),dd},dd.done=function(e){dd([null],e)},dd})})),require_withScriptjs=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ud(require_objectWithoutProperties()),$=ud(require_get_prototype_of()),ed=ud(require_classCallCheck()),td=ud(require_createClass()),nd=ud(require_possibleConstructorReturn()),rd=ud(require_inherits()),id=ud(require_bind());e.withScriptjs=md;var ad=ud(require_browser$13()),od=ud(require_can_use_dom()),sd=(init_Recompose(),__toCommonJS(Recompose_exports
331)),cd=ud(require_prop_types()),ld=ud(require_react());function ud(e){return e&&e.__esModule?e:{default:e}}var dd=`NONE`,fd=`BEGIN`,pd=`LOADED`;function md(e){var ud=ld.default.createFactory(e),md=(function(e){(0,rd.default)(sd,e);function sd(){var e,t,td,rd;(0,ed.default)(this,sd);var ad=[...arguments];return rd=(t=(td=(0,nd.default)(this,(e=sd.__proto__||(0,$.default)(sd)).call.apply(e,[this].concat(ad))),td),td.state={loadingState:dd},td.isUnmounted=!1,td.handleLoaded=(0,id.default)(td.handleLoaded,td),t),(0,nd.default)(td,rd)}return(0,td.default)(sd,[{key:`handleLoaded`,value:function(){this.isUnmounted||this.setState({loadingState:pd})}},{key:`componentWillMount`,value:function(){var e=this.props,t=e.loadingElement,$=e.googleMapURL;(0,ad.default)(!!t&&!!$,`Required props loadingElement or googleMapURL is missing. You need to provide both of them.`)}},{key:`componentDidMount`,value:function(){if(!(this.state.loadingState!==dd||!od.default)){this.setState({loadingState:fd});var e=require_script(),t=this.props.googleMapURL;e(t,this.handleLoaded)}}},{key:`componentWillUnmount`,value:function(){this.isUnmounted=!0}},{key:`render`,value:function(){var e=this.props,$=e.loadingElement;e.googleMapURL;var ed=(0,t.default)(e,[`loadingElement`,`googleMapURL`]);return this.state.loadingState===pd?ud(ed):$}}]),sd})(ld.default.PureComponent);return md.displayName=`withScriptjs(`+(0,sd.getDisplayName)(e)+`)`,md.propTypes={loadingElement:cd.default.node.isRequired,googleMapURL:cd.default.string.isRequired},md}e.default=md})),require_defineProperty=__commonJSMin((e=>{e.__esModule=!0;var t=$(require_define_property());function $(e){return e&&e.__esModule?e:{default:e}}e.default=function(e,$,ed){return $ in e?(0,t.default)(e,$,{value:ed,enumerable:!0,configurable:!0,writable:!0}):e[$]=ed,e}})),require_browser=__commonJSMin(((e,t)=>{t.exports=function(){}})),require_constants=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MAP=`__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.MARKER=`__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.MARKER_WITH_LABEL=`__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.RECTANGLE=`__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.POLYLINE=`__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.POLYGON=`__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.CIRCLE=`__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.KML_LAYER=`__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.DIRECTIONS_RENDERER=`__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.HEATMAP_LAYER=`__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.FUSION_TABLES_LAYER=`__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.ANCHOR=`__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.INFO_WINDOW=`__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.OVERLAY_VIEW=`__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.GROUND_LAYER=`__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.DRAWING_MANAGER=`__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.SEARCH_BOX=`__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.MARKER_CLUSTERER=`__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.INFO_BOX=`__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.TRAFFIC_LAYER=`__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.STREET_VIEW_PANORAMA=`__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`,e.BICYCLING_LAYER=`__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`})),require_withGoogleMap=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=fd(require_objectWithoutProperties()),$=fd(require_defineProperty()),ed=fd(require_get_prototype_of()),td=fd(require_classCallCheck()),nd=fd(require_createClass()),rd=fd(require_possibleConstructorReturn()),id=fd(require_inherits()),ad=fd(require_bind());e.withGoogleMap=pd;var od=fd(require_browser()),sd=fd(require_browser$13()),cd=(init_Recompose(),__toCommonJS(Recompose_exports
331)),ld=fd(require_prop_types()),ud=fd(require_react()),dd=require_constants();function fd(e){return e&&e.__esModule?e:{default:e}}function pd(e){var fd=ud.default.createFactory(e),pd=(function(e){(0,id.default)(cd,e);function cd(){var e,t,$,nd;(0,td.default)(this,cd);var id=[...arguments];return nd=(t=($=(0,rd.default)(this,(e=cd.__proto__||(0,ed.default)(cd)).call.apply(e,[this].concat(id))),$),$.state={map:null},$.handleComponentMount=(0,ad.default)($.handleComponentMount,$),t),(0,rd.default)($,nd)}return(0,nd.default)(cd,[{key:`getChildContext`,value:function(){return(0,$.default)({},dd.MAP,this.state.map)}},{key:`componentWillMount`,value:function(){var e=this.props,t=e.containerElement,$=e.mapElement;(0,sd.default)(!!t&&!!$,`Required props containerElement or mapElement is missing. You need to provide both of them. 332 The \`google.maps.Map\` instance will be initialized on mapElement and it's wrapped by containerElement. 333You need to provide both of them since Google Map requires the DOM to have height when initialized.`)}},{key:`handleComponentMount`,value:function(e){if(!(this.state.map||e===null)){(0,od.default)(typeof google<`u`,`Make sure you've put a <script> tag in your <head> element to load Google Maps JavaScript API v3. 334 If you're looking for built-in support to load it for you, use the "async/ScriptjsLoader" instead. 335 See https://github.com/tomchentw/react-google-maps/pull/168`);var t=new google.maps.Map(e);this.setState({map:t})}}},{key:`render`,value:function(){var e=this.props,$=e.containerElement,ed=e.mapElement,td=(0,t.default)(e,[`containerElement`,`mapElement`]);return this.state.map?ud.default.cloneElement($,{},ud.default.cloneElement(ed,{ref:this.handleComponentMount}),ud.default.createElement(`div`,null,fd(td))):ud.default.cloneElement($,{},ud.default.cloneElement(ed,{ref:this.handleComponentMount}),ud.default.createElement(`div`,null))}}]),cd})(ud.default.PureComponent);return pd.displayName=`withGoogleMap(`+(0,cd.getDisplayName)(e)+`)`,pd.propTypes={containerElement:ld.default.node.isRequired,mapElement:ld.default.node.isRequired},pd.childContextTypes=(0,$.default)({},dd.MAP,ld.default.object),pd}e.default=pd})),require__iter_call=__commonJSMin(((e,t)=>{var $=require__an_object();t.exports=function(e,t,ed,td){try{return td?t($(ed)[0],ed[1]):t(ed)}catch(t){var nd=e.return;throw nd!==void 0&&$(nd.call(e)),t}}})),require__is_array_iter=__commonJSMin(((e,t)=>{var $=require__iterators(),ed=require__wks()(`iterator`),td=Array.prototype;t.exports=function(e){return e!==void 0&&($.Array===e||td[ed]===e)}})),require__create_property=__commonJSMin(((e,t)=>{var $=require__object_dp(),ed=require__property_desc();t.exports=function(e,t,td){t in e?$.f(e,t,ed(0,td)):e[t]=td}})),require__classof=__commonJSMin(((e,t)=>{var $=require__cof(),ed=require__wks()(`toStringTag`),td=$(function(){return arguments}())==`Arguments`,nd=function(e,t){try{return e[t]}catch{}};t.exports=function(e){var t,rd,id;return e===void 0?`Undefined`:e===null?`Null`:typeof(rd=nd(t=Object(e),ed))==`string`?rd:td?$(t):(id=$(t))==`Object`&&typeof t.callee==`function`?`Arguments`:id}})),require_core_get_iterator_method=__commonJSMin(((e,t)=>{var $=require__classof(),ed=require__wks()(`iterator`),td=require__iterators();t.exports=require__core().getIteratorMethod=function(e){if(e!=null)return e[ed]||e[`@@iterator`]||td[$(e)]}})),require__iter_detect=__commonJSMin(((e,t)=>{var $=require__wks()(`iterator`),ed=!1;try{var td=[7][$]();td.return=function(){ed=!0},Array.from(td,function(){throw 2})}catch{}t.exports=function(e,t){if(!t&&!ed)return!1;var td=!1;try{var nd=[7],rd=nd[$]();rd.next=function(){return{done:td=!0}},nd[$]=function(){return rd},e(nd)}catch{}return td}})),require_es6_array_from=__commonJSMin((()=>{var e=require__ctx(),t=require__export(),$=require__to_object(),ed=require__iter_call(),td=require__is_array_iter(),nd=require__to_length(),rd=require__create_property(),id=require_core_get_iterator_method();t(t.S+t.F*!require__iter_detect()(function(e){Array.from(e)}),`Array`,{from:function(t){var ad=$(t),od=typeof this==`function`?this:Array,sd=arguments.length,cd=sd>1?arguments[1]:void 0,ld=cd!==void 0,ud=0,dd=id(ad),fd,pd,md,hd;if(ld&&(cd=e(cd,sd>2?arguments[2]:void 0,2)),dd!=null&&!(od==Array&&td(dd)))for(hd=dd.call(ad),pd=new od;!(md=hd.next()).done;ud++)rd(pd,ud,ld?ed(hd,cd,[md.value,ud],!0):md.value);else for(fd=nd(ad.length),pd=new od(fd);fd>ud;ud++)rd(pd,ud,ld?cd(ad[ud],ud):ad[ud]);return pd.length=ud,pd}})})),require_from$1=__commonJSMin(((e,t)=>{require_es6_string_iterator(),require_es6_array_from(),t.exports=require__core().Array.from})),require_from=__commonJSMin(((e,t)=>{t.exports={default:require_from$1(),__esModule:!0}})),require_toConsumableArray=__commonJSMin((e=>
335{e.__esModule=!0;var t=$(require_from());function $(e){return e&&e.__esModule?e:{default:e}}e.default=function(e){if(Array.isArray(e)){for(var $=0,ed=Array(e.length);$<e.length;$++)ed[$]=e[$];return ed}else return(0,t.default)(e)}})),require__arrayReduce=__commonJSMin(((e,t)=>{function $(e,t,$,ed){var td=-1,nd=e==null?0:e.length;for(ed&&nd&&($=e[++td]);++td<nd;)$=t($,e[td],td,e);return $}t.exports=$})),require__createBaseEach=__commonJSMin(((e,t)=>{var $=require_isArrayLike();function ed(e,t){return function(ed,td){if(ed==null)return ed;if(!$(ed))return e(ed,td);for(var nd=ed.length,rd=t?nd:-1,id=Object(ed);(t?rd--:++rd<nd)&&td(id[rd],rd,id)!==!1;);return ed}}t.exports=ed})),require__baseEach=__commonJSMin(((e,t)=>{var $=require__baseForOwn();t.exports=require__createBaseEach()($)})),require__listCacheClear=__commonJSMin(((e,t)=>{function $(){this.__data__=[],this.size=0}t.exports=$})),require_eq=__commonJSMin(((e,t)=>{function $(e,t){return e===t||e!==e&&t!==t}t.exports=$})),require__assocIndexOf=__commonJSMin(((e,t)=>{var $=require_eq();function ed(e,t){for(var ed=e.length;ed--;)if($(e[ed][0],t))return ed;return-1}t.exports=ed})),require__listCacheDelete=__commonJSMin(((e,t)=>{var $=require__assocIndexOf(),ed=Array.prototype.splice;function td(e){var t=this.__data__,td=$(t,e);return td<0?!1:(td==t.length-1?t.pop():ed.call(t,td,1),--this.size,!0)}t.exports=td})),require__listCacheGet=__commonJSMin(((e,t)=>{var $=require__assocIndexOf();function ed(e){var t=this.__data__,ed=$(t,e);return ed<0?void 0:t[ed][1]}t.exports=ed})),require__listCacheHas=__commonJSMin(((e,t)=>{var $=require__assocIndexOf();function ed(e){return $(this.__data__,e)>-1}t.exports=ed})),require__listCacheSet=__commonJSMin(((e,t)=>{var $=require__assocIndexOf();function ed(e,t){var ed=this.__data__,td=$(ed,e);return td<0?(++this.size,ed.push([e,t])):ed[td][1]=t,this}t.exports=ed})),require__ListCache=__commonJSMin(((e,t)=>{var $=require__listCacheClear(),ed=require__listCacheDelete(),td=require__listCacheGet(),nd=require__listCacheHas(),rd=require__listCacheSet();function id(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}id.prototype.clear=$,id.prototype.delete=ed,id.prototype.get=td,id.prototype.has=nd,id.prototype.set=rd,t.exports=id})),require__stackClear=__commonJSMin(((e,t)=>{var $=require__ListCache();function ed(){this.__data__=new $,this.size=0}t.exports=ed})),require__stackDelete=__commonJSMin(((e,t)=>{function $(e){var t=this.__data__,$=t.delete(e);return this.size=t.size,$}t.exports=$})),require__stackGet=__commonJSMin(((e,t)=>{function $(e){return this.__data__.get(e)}t.exports=$})),require__stackHas=__commonJSMin(((e,t)=>{function $(e){return this.__data__.has(e)}t.exports=$})),require__Map=__commonJSMin(((e,t)=>{t.exports=require__getNative()(require__root(),`Map`)})),require__nativeCreate=__commonJSMin(((e,t)=>{t.exports=require__getNative()(Object,`create`)})),require__hashClear=__commonJSMin(((e,t)=>{var $=require__nativeCreate();function ed(){this.__data__=$?$(null):{},this.size=0}t.exports=ed})),require__hashDelete=__commonJSMin(((e,t)=>{function $(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=$})),require__hashGet=__commonJSMin(((e,t)=>{var $=require__nativeCreate(),ed=`__lodash_hash_undefined__`,td=Object.prototype.hasOwnProperty;function nd(e){var t=this.__data__;if($){var nd=t[e];return nd===ed?void 0:nd}return td.call(t,e)?t[e]:void 0}t.exports=nd})),require__hashHas=__commonJSMin(((e,t)=>{var $=require__nativeCreate(),ed=Object.prototype.hasOwnProperty;function td(e){var t=this.__data__;return $?t[e]!==void 0:ed.call(t,e)}t.exports=td})),require__hashSet=__commonJSMin(((e,t)=>{var $=require__nativeCreate(),ed=`__lodash_hash_undefined__`;function td(e,t){var td=this.__data__;return this.size+=+!this.has(e),td[e]=$&&t===void 0?ed:t,this}t.exports=td})),require__Hash=__commonJSMin(((e,t)=>{var $=require__hashClear(),ed=require__hashDelete(),td=require__hashGet(),nd=require__hashHas(),rd=require__hashSet();function id(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}id.prototype.clear=$,id.prototype.delete=ed,id.prototype.get=td,id.prototype.has=nd,id.prototype.set=rd,t.exp
vendor: 4,572 bytes, line 335
335orts=id})),require__mapCacheClear=__commonJSMin(((e,t)=>{var $=require__Hash(),ed=require__ListCache(),td=require__Map();function nd(){this.size=0,this.__data__={hash:new $,map:new(td||ed),string:new $}}t.exports=nd})),require__isKeyable=__commonJSMin(((e,t)=>{function $(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=$})),require__getMapData=__commonJSMin(((e,t)=>{var $=require__isKeyable();function ed(e,t){var ed=e.__data__;return $(t)?ed[typeof t==`string`?`string`:`hash`]:ed.map}t.exports=ed})),require__mapCacheDelete=__commonJSMin(((e,t)=>{var $=require__getMapData();function ed(e){var t=$(this,e).delete(e);return this.size-=+!!t,t}t.exports=ed})),require__mapCacheGet=__commonJSMin(((e,t)=>{var $=require__getMapData();function ed(e){return $(this,e).get(e)}t.exports=ed})),require__mapCacheHas=__commonJSMin(((e,t)=>{var $=require__getMapData();function ed(e){return $(this,e).has(e)}t.exports=ed})),require__mapCacheSet=__commonJSMin(((e,t)=>{var $=require__getMapData();function ed(e,t){var ed=$(this,e),td=ed.size;return ed.set(e,t),this.size+=ed.size==td?0:1,this}t.exports=ed})),require__MapCache=__commonJSMin(((e,t)=>{var $=require__mapCacheClear(),ed=require__mapCacheDelete(),td=require__mapCacheGet(),nd=require__mapCacheHas(),rd=require__mapCacheSet();function id(e){var t=-1,$=e==null?0:e.length;for(this.clear();++t<$;){var ed=e[t];this.set(ed[0],ed[1])}}id.prototype.clear=$,id.prototype.delete=ed,id.prototype.get=td,id.prototype.has=nd,id.prototype.set=rd,t.exports=id})),require__stackSet=__commonJSMin(((e,t)=>{var $=require__ListCache(),ed=require__Map(),td=require__MapCache(),nd=200;function rd(e,t){var rd=this.__data__;if(rd instanceof $){var id=rd.__data__;if(!ed||id.length<nd-1)return id.push([e,t]),this.size=++rd.size,this;rd=this.__data__=new td(id)}return rd.set(e,t),this.size=rd.size,this}t.exports=rd})),require__Stack=__commonJSMin(((e,t)=>{var $=require__ListCache(),ed=require__stackClear(),td=require__stackDelete(),nd=require__stackGet(),rd=require__stackHas(),id=require__stackSet();function ad(e){this.size=(this.__data__=new $(e)).size}ad.prototype.clear=ed,ad.prototype.delete=td,ad.prototype.get=nd,ad.prototype.has=rd,ad.prototype.set=id,t.exports=ad})),require__setCacheAdd=__commonJSMin(((e,t)=>{var $=`__lodash_hash_undefined__`;function ed(e){return this.__data__.set(e,$),this}t.exports=ed})),require__setCacheHas=__commonJSMin(((e,t)=>{function $(e){return this.__data__.has(e)}t.exports=$})),require__SetCache=__commonJSMin(((e,t)=>{var $=require__MapCache(),ed=require__setCacheAdd(),td=require__setCacheHas();function nd(e){var t=-1,ed=e==null?0:e.length;for(this.__data__=new $;++t<ed;)this.add(e[t])}nd.prototype.add=nd.prototype.push=ed,nd.prototype.has=td,t.exports=nd})),require__arraySome=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=e==null?0:e.length;++$<ed;)if(t(e[$],$,e))return!0;return!1}t.exports=$})),require__cacheHas=__commonJSMin(((e,t)=>{function $(e,t){return e.has(t)}t.exports=$})),require__equalArrays=__commonJSMin(((e,t)=>{var $=require__SetCache(),ed=require__arraySome(),td=require__cacheHas(),nd=1,rd=2;function id(e,t,id,ad,od,sd){var cd=id&nd,ld=e.length,ud=t.length;if(ld!=ud&&!(cd&&ud>ld))return!1;var dd=sd.get(e),fd=sd.get(t);if(dd&&fd)return dd==t&&fd==e;var pd=-1,md=!0,hd=id&rd?new $:void 0;for(sd.set(e,t),sd.set(t,e);++pd<ld;){var gd=e[pd],_d=t[pd];if(ad)var vd=cd?ad(_d,gd,pd,t,e,sd):ad(gd,_d,pd,e,t,sd);if(vd!==void 0){if(vd)continue;md=!1;break}if(hd){if(!ed(t,function(e,t){if(!td(hd,t)&&(gd===e||od(gd,e,id,ad,sd)))return hd.push(t)})){md=!1;break}}else if(!(gd===_d||od(gd,_d,id,ad,sd))){md=!1;break}}return sd.delete(e),sd.delete(t),md}t.exports=id})),require__Uint8Array=__commonJSMin(((e,t)=>{t.exports=require__root().Uint8Array})),require__mapToArray=__commonJSMin(((e,t)=>{function $(e){var t=-1,$=Array(e.size);return e.forEach(function(e,ed){$[++t]=[ed,e]}),$}t.exports=$})),require__setToArray=__commonJSMin(((e,t)=>{function $(e){var t=-1,$=Array(e.size);return e.forEach(function(e){$[++t]=e}),$}t.exports=$})),require__equalByTag=__commonJSMin(((e,t)=>{var $=require__Symbol(),ed=require__Uint8Array(),td=require_eq(),nd=require__equalArrays(),rd=require__mapToArray(),id=require__setToArray(),ad=1,od=2,sd=`[object Boolean]`,cd=`[object Date]`,ld=`[object Error]`,ud=`[object Map]`,dd=`[object Number]`,fd=`[object RegExp]`,pd=`[object Set]`,md=`[object String]`,hd=`[object Symbol]`,gd=`[object ArrayBuffer]`,_d=`[object DataView]`,vd=$?$.prototype:void 0,yd=vd?vd.valueOf
vendor: 4,174 bytes, line 335
335:void 0;function bd(e,t,$,vd,bd,xd,Sd){switch($){case _d:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gd:return!(e.byteLength!=t.byteLength||!xd(new ed(e),new ed(t)));case sd:case cd:case dd:return td(+e,+t);case ld:return e.name==t.name&&e.message==t.message;case fd:case md:return e==t+``;case ud:var Cd=rd;case pd:var wd=vd&ad;if(Cd||=id,e.size!=t.size&&!wd)return!1;var Td=Sd.get(e);if(Td)return Td==t;vd|=od,Sd.set(e,t);var Ed=nd(Cd(e),Cd(t),vd,bd,xd,Sd);return Sd.delete(e),Ed;case hd:if(yd)return yd.call(e)==yd.call(t)}return!1}t.exports=bd})),require__arrayPush=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=t.length,td=e.length;++$<ed;)e[td+$]=t[$];return e}t.exports=$})),require__baseGetAllKeys=__commonJSMin(((e,t)=>{var $=require__arrayPush(),ed=require_isArray();function td(e,t,td){var nd=t(e);return ed(e)?nd:$(nd,td(e))}t.exports=td})),require__arrayFilter=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=e==null?0:e.length,td=0,nd=[];++$<ed;){var rd=e[$];t(rd,$,e)&&(nd[td++]=rd)}return nd}t.exports=$})),require_stubArray=__commonJSMin(((e,t)=>{function $(){return[]}t.exports=$})),require__getSymbols=__commonJSMin(((e,t)=>{var $=require__arrayFilter(),ed=require_stubArray(),td=Object.prototype.propertyIsEnumerable,nd=Object.getOwnPropertySymbols;t.exports=nd?function(e){return e==null?[]:(e=Object(e),$(nd(e),function(t){return td.call(e,t)}))}:ed})),require__getAllKeys=__commonJSMin(((e,t)=>{var $=require__baseGetAllKeys(),ed=require__getSymbols(),td=require_keys();function nd(e){return $(e,td,ed)}t.exports=nd})),require__equalObjects=__commonJSMin(((e,t)=>{var $=require__getAllKeys(),ed=1,td=Object.prototype.hasOwnProperty;function nd(e,t,nd,rd,id,ad){var od=nd&ed,sd=$(e),cd=sd.length;if(cd!=$(t).length&&!od)return!1;for(var ld=cd;ld--;){var ud=sd[ld];if(!(od?ud in t:td.call(t,ud)))return!1}var dd=ad.get(e),fd=ad.get(t);if(dd&&fd)return dd==t&&fd==e;var pd=!0;ad.set(e,t),ad.set(t,e);for(var md=od;++ld<cd;){ud=sd[ld];var hd=e[ud],gd=t[ud];if(rd)var _d=od?rd(gd,hd,ud,t,e,ad):rd(hd,gd,ud,e,t,ad);if(!(_d===void 0?hd===gd||id(hd,gd,nd,rd,ad):_d)){pd=!1;break}md||=ud==`constructor`}if(pd&&!md){var vd=e.constructor,yd=t.constructor;vd!=yd&&`constructor`in e&&`constructor`in t&&!(typeof vd==`function`&&vd instanceof vd&&typeof yd==`function`&&yd instanceof yd)&&(pd=!1)}return ad.delete(e),ad.delete(t),pd}t.exports=nd})),require__DataView=__commonJSMin(((e,t)=>{t.exports=require__getNative()(require__root(),`DataView`)})),require__Promise=__commonJSMin(((e,t)=>{t.exports=require__getNative()(require__root(),`Promise`)})),require__Set=__commonJSMin(((e,t)=>{t.exports=require__getNative()(require__root(),`Set`)})),require__getTag=__commonJSMin(((e,t)=>{var $=require__DataView(),ed=require__Map(),td=require__Promise(),nd=require__Set(),rd=require__WeakMap(),id=require__baseGetTag(),ad=require__toSource(),od=`[object Map]`,sd=`[object Object]`,cd=`[object Promise]`,ld=`[object Set]`,ud=`[object WeakMap]`,dd=`[object DataView]`,fd=ad($),pd=ad(ed),md=ad(td),hd=ad(nd),gd=ad(rd),_d=id;($&&_d(new $(new ArrayBuffer(1)))!=dd||ed&&_d(new ed)!=od||td&&_d(td.resolve())!=cd||nd&&_d(new nd)!=ld||rd&&_d(new rd)!=ud)&&(_d=function(e){var t=id(e),$=t==sd?e.constructor:void 0,ed=$?ad($):``;if(ed)switch(ed){case fd:return dd;case pd:return od;case md:return cd;case hd:return ld;case gd:return ud}return t}),t.exports=_d})),require__baseIsEqualDeep=__commonJSMin(((e,t)=>{var $=require__Stack(),ed=require__equalArrays(),td=require__equalByTag(),nd=require__equalObjects(),rd=require__getTag(),id=require_isArray(),ad=require_isBuffer(),od=require_isTypedArray(),sd=1,cd=`[object Arguments]`,ld=`[object Array]`,ud=`[object Object]`,dd=Object.prototype.hasOwnProperty;function fd(e,t,fd,pd,md,hd){var gd=id(e),_d=id(t),vd=gd?ld:rd(e),yd=_d?ld:rd(t);vd=vd==cd?ud:vd,yd=yd==cd?ud:yd;var bd=vd==ud,xd=yd==ud,Sd=vd==yd;if(Sd&&ad(e)){if(!ad(t))return!1;gd=!0,bd=!1}if(Sd&&!bd)return hd||=new $,gd||od(e)?ed(e,t,fd,pd,md,hd):td(e,t,vd,fd,pd,md,hd);if(!(fd&sd)){var Cd=bd&&dd.call(e,`__wrapped__`),wd=xd&&dd.call(t,`__wrapped__`);if(Cd||wd){var Td=Cd?e.value():e,Ed=wd?t.value():t;
vendor: 2,755 bytes, line 335
335return hd||=new $,md(Td,Ed,fd,pd,hd)}}return Sd?(hd||=new $,nd(e,t,fd,pd,md,hd)):!1}t.exports=fd})),require__baseIsEqual=__commonJSMin(((e,t)=>{var $=require__baseIsEqualDeep(),ed=require_isObjectLike();function td(e,t,nd,rd,id){return e===t?!0:e==null||t==null||!ed(e)&&!ed(t)?e!==e&&t!==t:$(e,t,nd,rd,td,id)}t.exports=td})),require__baseIsMatch=__commonJSMin(((e,t)=>{var $=require__Stack(),ed=require__baseIsEqual(),td=1,nd=2;function rd(e,t,rd,id){var ad=rd.length,od=ad,sd=!id;if(e==null)return!od;for(e=Object(e);ad--;){var cd=rd[ad];if(sd&&cd[2]?cd[1]!==e[cd[0]]:!(cd[0]in e))return!1}for(;++ad<od;){cd=rd[ad];var ld=cd[0],ud=e[ld],dd=cd[1];if(sd&&cd[2]){if(ud===void 0&&!(ld in e))return!1}else{var fd=new $;if(id)var pd=id(ud,dd,ld,e,t,fd);if(!(pd===void 0?ed(dd,ud,td|nd,id,fd):pd))return!1}}return!0}t.exports=rd})),require__isStrictComparable=__commonJSMin(((e,t)=>{var $=require_isObject();function ed(e){return e===e&&!$(e)}t.exports=ed})),require__getMatchData=__commonJSMin(((e,t)=>{var $=require__isStrictComparable(),ed=require_keys();function td(e){for(var t=ed(e),td=t.length;td--;){var nd=t[td],rd=e[nd];t[td]=[nd,rd,$(rd)]}return t}t.exports=td})),require__matchesStrictComparable=__commonJSMin(((e,t)=>{function $(e,t){return function($){return $==null?!1:$[e]===t&&(t!==void 0||e in Object($))}}t.exports=$})),require__baseMatches=__commonJSMin(((e,t)=>{var $=require__baseIsMatch(),ed=require__getMatchData(),td=require__matchesStrictComparable();function nd(e){var t=ed(e);return t.length==1&&t[0][2]?td(t[0][0],t[0][1]):function(ed){return ed===e||$(ed,e,t)}}t.exports=nd})),require__isKey=__commonJSMin(((e,t)=>{var $=require_isArray(),ed=require_isSymbol(),td=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nd=/^\w*$/;function rd(e,t){if($(e))return!1;var rd=typeof e;return rd==`number`||rd==`symbol`||rd==`boolean`||e==null||ed(e)?!0:nd.test(e)||!td.test(e)||t!=null&&e in Object(t)}t.exports=rd})),require_memoize=__commonJSMin(((e,t)=>{var $=require__MapCache(),ed=`Expected a function`;function td(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(ed);var nd=function(){var $=arguments,ed=t?t.apply(this,$):$[0],td=nd.cache;if(td.has(ed))return td.get(ed);var rd=e.apply(this,$);return nd.cache=td.set(ed,rd)||td,rd};return nd.cache=new(td.Cache||$),nd}td.Cache=$,t.exports=td})),require__memoizeCapped=__commonJSMin(((e,t)=>{var $=require_memoize(),ed=500;function td(e){var t=$(e,function(e){return td.size===ed&&td.clear(),e}),td=t.cache;return t}t.exports=td})),require__stringToPath=__commonJSMin(((e,t)=>{var $=require__memoizeCapped(),ed=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,td=/\\(\\)?/g;t.exports=$(function(e){var t=[];
vendor: 4,113 bytes, line 335
335return e.charCodeAt(0)===46&&t.push(``),e.replace(ed,function(e,$,ed,nd){t.push(ed?nd.replace(td,`$1`):$||e)}),t})})),require__arrayMap=__commonJSMin(((e,t)=>{function $(e,t){for(var $=-1,ed=e==null?0:e.length,td=Array(ed);++$<ed;)td[$]=t(e[$],$,e);return td}t.exports=$})),require__baseToString=__commonJSMin(((e,t)=>{var $=require__Symbol(),ed=require__arrayMap(),td=require_isArray(),nd=require_isSymbol(),rd=1/0,id=$?$.prototype:void 0,ad=id?id.toString:void 0;function od(e){if(typeof e==`string`)return e;if(td(e))return ed(e,od)+``;if(nd(e))return ad?ad.call(e):``;var t=e+``;return t==`0`&&1/e==-rd?`-0`:t}t.exports=od})),require_toString=__commonJSMin(((e,t)=>{var $=require__baseToString();function ed(e){return e==null?``:$(e)}t.exports=ed})),require__castPath=__commonJSMin(((e,t)=>{var $=require_isArray(),ed=require__isKey(),td=require__stringToPath(),nd=require_toString();function rd(e,t){return $(e)?e:ed(e,t)?[e]:td(nd(e))}t.exports=rd})),require__toKey=__commonJSMin(((e,t)=>{var $=require_isSymbol(),ed=1/0;function td(e){if(typeof e==`string`||$(e))return e;var t=e+``;return t==`0`&&1/e==-ed?`-0`:t}t.exports=td})),require__baseGet=__commonJSMin(((e,t)=>{var $=require__castPath(),ed=require__toKey();function td(e,t){t=$(t,e);for(var td=0,nd=t.length;e!=null&&td<nd;)e=e[ed(t[td++])];return td&&td==nd?e:void 0}t.exports=td})),require_get=__commonJSMin(((e,t)=>{var $=require__baseGet();function ed(e,t,ed){var td=e==null?void 0:$(e,t);return td===void 0?ed:td}t.exports=ed})),require__baseHasIn=__commonJSMin(((e,t)=>{function $(e,t){return e!=null&&t in Object(e)}t.exports=$})),require__hasPath=__commonJSMin(((e,t)=>{var $=require__castPath(),ed=require_isArguments(),td=require_isArray(),nd=require__isIndex(),rd=require_isLength(),id=require__toKey();function ad(e,t,ad){t=$(t,e);for(var od=-1,sd=t.length,cd=!1;++od<sd;){var ld=id(t[od]);if(!(cd=e!=null&&ad(e,ld)))break;e=e[ld]}return cd||++od!=sd?cd:(sd=e==null?0:e.length,!!sd&&rd(sd)&&nd(ld,sd)&&(td(e)||ed(e)))}t.exports=ad})),require_hasIn=__commonJSMin(((e,t)=>{var $=require__baseHasIn(),ed=require__hasPath();function td(e,t){return e!=null&&ed(e,t,$)}t.exports=td})),require__baseMatchesProperty=__commonJSMin(((e,t)=>{var $=require__baseIsEqual(),ed=require_get(),td=require_hasIn(),nd=require__isKey(),rd=require__isStrictComparable(),id=require__matchesStrictComparable(),ad=require__toKey(),od=1,sd=2;function cd(e,t){return nd(e)&&rd(t)?id(ad(e),t):function(nd){var rd=ed(nd,e);return rd===void 0&&rd===t?td(nd,e):$(t,rd,od|sd)}}t.exports=cd})),require__baseProperty=__commonJSMin(((e,t)=>{function $(e){return function(t){return t?.[e]}}t.exports=$})),require__basePropertyDeep=__commonJSMin(((e,t)=>{var $=require__baseGet();function ed(e){return function(t){return $(t,e)}}t.exports=ed})),require_property=__commonJSMin(((e,t)=>{var $=require__baseProperty(),ed=require__basePropertyDeep(),td=require__isKey(),nd=require__toKey();function rd(e){return td(e)?$(nd(e)):ed(e)}t.exports=rd})),require__baseIteratee=__commonJSMin(((e,t)=>{var $=require__baseMatches(),ed=require__baseMatchesProperty(),td=require_identity(),nd=require_isArray(),rd=require_property();function id(e){return typeof e==`function`?e:e==null?td:typeof e==`object`?nd(e)?ed(e[0],e[1]):$(e):rd(e)}t.exports=id})),require__baseReduce=__commonJSMin(((e,t)=>{function $(e,t,$,ed,td){return td(e,function(e,td,nd){$=ed?(ed=!1,e):t($,e,td,nd)}),$}t.exports=$})),require_reduce=__commonJSMin(((e,t)=>{var $=require__arrayReduce(),ed=require__baseEach(),td=require__baseIteratee(),nd=require__baseReduce(),rd=require_isArray();function id(e,t,id){var ad=rd(e)?$:nd,od=arguments.length<3;return ad(e,td(t,4),id,od,ed)}t.exports=id})),require_forEach=__commonJSMin(((e,t)=>{var $=require__arrayEach(),ed=require__baseEach(),td=require__castFunction(),nd=require_isArray();function rd(e,t){return(nd(e)?$:ed)(e,td(t))}t.exports=rd})),require__baseSlice=__commonJSMin(((e,t)=>{function $(e,t,$){var ed=-1,td=e.length;t<0&&(t=-t>td?0:td+t),$=$>td?td:$,$<0&&($+=td),td=t>$?0:$-t>>>0,t>>>=0;for(var nd=Array(td);++ed<td;)nd[ed]=e[ed+t];return nd}t.exports=$}
335)),require__castSlice=__commonJSMin(((e,t)=>{var $=require__baseSlice();function ed(e,t,ed){var td=e.length;return ed=ed===void 0?td:ed,!t&&ed>=td?e:$(e,t,ed)}t.exports=ed})),require__hasUnicode=__commonJSMin(((e,t)=>{var $=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function ed(e){return $.test(e)}t.exports=ed})),require__asciiToArray=__commonJSMin(((e,t)=>{function $(e){return e.split(``)}t.exports=$})),require__unicodeToArray=__commonJSMin(((e,t)=>{var $=`\\ud800-\\udfff`,ed=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,td=`\\ufe0e\\ufe0f`,nd=`[`+$+`]`,rd=`[`+ed+`]`,id=`\\ud83c[\\udffb-\\udfff]`,ad=`(?:`+rd+`|`+id+`)`,od=`[^`+$+`]`,sd=`(?:\\ud83c[\\udde6-\\uddff]){2}`,cd=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ld=`\\u200d`,ud=ad+`?`,dd=`[`+td+`]?`,fd=`(?:`+ld+`(?:`+[od,sd,cd].join(`|`)+`)`+dd+ud+`)*`,pd=dd+ud+fd,md=`(?:`+[od+rd+`?`,rd,sd,cd,nd].join(`|`)+`)`,hd=RegExp(id+`(?=`+id+`)|`+md+pd,`g`);function gd(e){return e.match(hd)||[]}t.exports=gd})),require__stringToArray=__commonJSMin(((e,t)=>{var $=require__asciiToArray(),ed=require__hasUnicode(),td=require__unicodeToArray();function nd(e){return ed(e)?td(e):$(e)}t.exports=nd})),require__createCaseFirst=__commonJSMin(((e,t)=>{var $=require__castSlice(),ed=require__hasUnicode(),td=require__stringToArray(),nd=require_toString();function rd(e){return function(t){t=nd(t);var rd=ed(t)?td(t):void 0,id=rd?rd[0]:t.charAt(0),ad=rd?$(rd,1).join(``):t.slice(1);return id[e]()+ad}}t.exports=rd})),require_lowerFirst=__commonJSMin(((e,t)=>{t.exports=require__createCaseFirst()(`toLowerCase`)})),require__baseHas=__commonJSMin(((e,t)=>{var $=Object.prototype.hasOwnProperty;function ed(e,t){return e!=null&&$.call(e,t)}t.exports=ed})),require_has=__commonJSMin(((e,t)=>{var $=require__baseHas(),ed=require__hasPath();function td(e,t){return e!=null&&ed(e,t,$)}t.exports=td})),require_MapChildHelper=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=id(require_bind()),$=id(require_isFunction()),ed=id(require_reduce()),td=id(require_forEach()),nd=id(require_lowerFirst()),rd=id(require_has());e.construct=sd,e.componentDidMount=cd,e.componentDidUpdate=ld,e.componentWillUnmount=ud;function id(e){return e&&e.__esModule?e:{default:e}}function ad(e,t,$){if((0,rd.default)(e.prevProps,$)){var ed=$.match(/^default(\S+)/);if(ed){var td=(0,nd.default)(ed[1]);(0,rd.default)(e.nextProps,td)||(e.nextProps[td]=e.prevProps[$])}else e.nextProps[$]=e.prevProps[$]}return e}function od(e,t,$,ed){(0,td.default)(e,function(e,td){var nd=$[td];nd!==t[td]&&e(ed,nd)})}function sd(e,t,$,td){var nd=(0,ed.default)(e,ad,{nextProps:{},prevProps:$}).nextProps;od(t,{},nd,td)}function cd(e,t,$){dd(e,t,$)}function ld(e,t,$,ed,td){e.unregisterAllEvents(),od(ed,td,e.props,t),dd(e,t,$)}function ud(e){e.unregisterAllEvents()}function dd(e,nd,rd){var id=(0,ed.default)(rd,function(t,ed,td){return(0,$.default)(e.props[td])&&t.pu
335sh(google.maps.event.addListener(nd,ed,e.props[td])),t},[]);e.unregisterAllEvents=(0,t.default)(td.default,null,id,fd)}function fd(e){google.maps.event.removeListener(e)}})),require_GoogleMap=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GoogleMap=e.Map=void 0;var t=ud(require_defineProperty()),$=ud(require_toConsumableArray()),ed=ud(require_get_prototype_of()),td=ud(require_classCallCheck()),nd=ud(require_possibleConstructorReturn()),rd=ud(require_createClass()),id=ud(require_inherits()),ad=ud(require_browser$13()),od=ud(require_react()),sd=ud(require_prop_types()),cd=require_MapChildHelper(),ld=require_constants();function ud(e){return e&&e.__esModule?e:{default:e}}var dd=e.Map=(function(e){(0,id.default)(t,e),(0,rd.default)(t,[{key:`fitBounds`,value:function(){var e;return(e=this.context[ld.MAP]).fitBounds.apply(e,arguments)}},{key:`panBy`,value:function(){var e;return(e=this.context[ld.MAP]).panBy.apply(e,arguments)}},{key:`panTo`,value:function(){var e;return(e=this.context[ld.MAP]).panTo.apply(e,arguments)}},{key:`panToBounds`,value:function(){var e;return(e=this.context[ld.MAP]).panToBounds.apply(e,arguments)}}]);function t(e,$){(0,td.default)(this,t);var rd=(0,nd.default)(this,(t.__proto__||(0,ed.default)(t)).call(this,e,$));return(0,ad.default)(!!rd.context[ld.MAP],`Did you wrap <GoogleMap> component with withGoogleMap() HOC?`),(0,cd.construct)(fd.propTypes,md,rd.props,rd.context[ld.MAP]),rd}return(0,rd.default)(t,[{key:`componentDidMount`,value:function(){(0,cd.componentDidMount)(this,this.context[ld.MAP],pd)}},{key:`componentDidUpdate`,value:function(e){(0,cd.componentDidUpdate)(this,this.context[ld.MAP],pd,md,e)}},{key:`componentWillUnmount`,value:function(){(0,cd.componentWillUnmount)(this)}},{key:`render`,value:function(){var e=this.props.children;return od.default.createElement(`div`,null,e)}},{key:`getBounds`,value:function(){return this.context[ld.MAP].getBounds()}},{key:`getCenter`,value:function(){return this.context[ld.MAP].getCenter()}},{key:`getClickableIcons`,value:function(){return this.context[ld.MAP].getClickableIcons()}},{key:`getDiv`,value:function(){return this.context[ld.MAP].getDiv()}},{key:`getHeading`,value:function(){return this.context[ld.MAP].getHeading()}},{key:`getMapTypeId`,value:function(){return this.context[ld.MAP].getMapTypeId()}},{key:`getProjection`,value:function(){return this.context[ld.MAP].getProjection()}},{key:`getStreetView`,value:function(){return this.context[ld.MAP].getStreetView()}},{key:`getTilt`,value:function(){return this.context[ld.MAP].getTilt()}},{key:`getZoom`,value:function(){return this.context[ld.MAP].getZoom()}}]),t})(od.default.PureComponent);dd.displayName=`GoogleMap`,dd.propTypes={defaultExtraMapTypes:sd.default.arrayOf(sd.default.arrayOf(sd.default.any)),defaultCenter:sd.default.any,defaultClickableIcons:sd.default.bool,defaultHeading:sd.default.number,defaultMapTypeId:sd.default.any,defaultOptions:sd.default.any,defaultStreetView:sd.default.any,defaultTilt:sd.default.number,defaultZoom:sd.default.number,center:sd.default.any,clickableIcons:sd.default.bool,heading:sd.default.number,mapTypeId:sd.default.any,options:sd.default.any,streetView:sd.default.any,tilt:sd.default.number,zoom:sd.default.number,onDblClick:sd.default.func,onDragEnd:sd.default.func,onDragStart:sd.default.func,onMapTypeIdChanged:sd.default.func,onMouseMove:sd.default.func,onMouseOut:sd.default.func,onMouseOver:sd.default.func,onRightClick:sd.default.func,onTilesLoaded:sd.default.func,onBoundsChanged:sd.default.func,onCenterChanged:sd.default.func,onClick:sd.default.func,onDrag:sd.default.func,onHeadingChanged:sd.default.func,onIdle:sd.default.func,onProjectionChanged:sd.default.func,onResize:sd.default.func,onTiltChanged:sd.default.func,onZoomChanged:sd.default.func},dd.contextTypes=(0,t.default)({},ld.MAP,sd.default.object);var fd=e.GoogleMap=dd;e.default=dd;var pd={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMapTypeIdChanged:`maptypeid_changed`,onMouseMove:`mousemove`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onRightClick:`rightclick`,onTilesLoaded:`tilesloaded`,onBoundsChanged:`bounds_changed`,onCenterChanged:`center_changed`,onClick:`click`,onDrag:`drag`,onHeadingChanged:`heading_changed`,onIdle:`idle`,onProjectionChanged:`projection_changed`,onResize:`resize`,onTiltChanged:`tilt_changed`,onZoomChanged:`zoom_
335changed`},md={extraMapTypes:function(e,t){t.forEach(function(t){var ed;return(ed=e.mapTypes).set.apply(ed,(0,$.default)(t))})},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}}})),require_Circle=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Circle=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.Circle=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.Circle;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.CIRCLE,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.CIRCLE],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.CIRCLE],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.CIRCLE];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getBounds`,value:function(){return this.state[sd.CIRCLE].getBounds()}},{key:`getCenter`,value:function(){return this.state[sd.CIRCLE].getCenter()}},{key:`getDraggable`,value:function(){return this.state[sd.CIRCLE].getDraggable()}},{key:`getEditable`,value:function(){return this.state[sd.CIRCLE].getEditable()}},{key:`getRadius`,value:function(){return this.state[sd.CIRCLE].getRadius()}},{key:`getVisible`,value:function(){return this.state[sd.CIRCLE].getVisible()}}]),id})(id.default.PureComponent);ld.propTypes={defaultCenter:ad.default.any,defaultDraggable:ad.default.bool,defaultEditable:ad.default.bool,defaultOptions:ad.default.any,defaultRadius:ad.default.number,defaultVisible:ad.default.bool,center:ad.default.any,draggable:ad.default.bool,editable:ad.default.bool,options:ad.default.any,radius:ad.default.number,visible:ad.default.bool,onDblClick:ad.default.func,onDragEnd:ad.default.func,onDragStart:ad.default.func,onMouseDown:ad.default.func,onMouseMove:ad.default.func,onMouseOut:ad.default.func,onMouseOver:ad.default.func,onMouseUp:ad.default.func,onRightClick:ad.default.func,onCenterChanged:ad.default.func,onClick:ad.default.func,onDrag:ad.default.func,onRadiusChanged:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMouseDown:`mousedown`,onMouseMove:`mousemove`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onMouseUp:`mouseup`,onRightClick:`rightclick`,onCenterChanged:`center_changed`,onClick:`click`,onDrag:`drag`,onRadiusChanged:`radius_changed`},dd={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}}})),require_Marker=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Marker=void 0;var t=ld(require_defineProperty()),$=ld(require_get_prototype_of()),ed=ld(require_classCallCheck()),td=ld(require_createClass()),nd=ld(require_possibleConstructorReturn()),rd=ld(require_inherits()),id,ad=ld(require_react()),od=ld(require_prop_types()),sd=require_MapChildHelper(),cd=require_constants();function ld(e){return e&&e.__esModule?e:{default:e}}var ud=e.Marker=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.Marker;(0,sd.construct)(id.propTypes,fd,rd.props,ad);var od=rd.context[cd.MARKER_CLUSTERER];return od?od.addMarker(ad,!!rd.props.noRedraw):ad.setMap(rd.context[cd.MAP]),rd.state=(0,t.default)({},cd.MARKER,ad),rd}return(0,td.default)(id,[{key:`getChildContext`,value:function(){return(0,t.default)({},cd.ANCHOR,this.context[cd.ANCHOR]||this.state[cd.MARKER])}},{key:`componentDidMount`,value:function(){(0,sd.componentDidMount)(this,this.state[cd.MARKER],dd)}},{key:`componentDidUpdate`,value:function(e){(0,sd.componentDidUpdate)(this,this.state[cd.MARKER],dd,fd,e)}},{key:`componentWillUnmount`,value:function(){(0,sd.componentWillUnmount)(this);var e=this.state[cd.MARKER];if(e){var t=this.context[cd.MARKER_CLUSTERER];t&&t.removeMarker(e,!!this.props.noRedraw),e.setMap(null)}}},{key:`render`,value:function(){var e=this.props.children;return ad.default.createElement(`div`,null,e)}},{key:`getAnimation`,value:function(){return this.state[cd.MARKER].getAnimation()}},{key:`getClickable`,value:function(){return this.state[cd.MARKER].getClickable()}},{key:`getCursor`,value:function(){return this.state[cd.MARKER].getCursor()}},{key:`getDraggable`,value:function(){return this.state[cd.MARKER].getDraggable()}},{key:`getIcon`,value:function(){return this.state[cd.MARKER].getIcon()}},{key:`getLabel`,value:function(){return this.state[cd.MARKER].getLabel()}},{key:`getOpacity`,value:function(){return this.state[cd.MARKER].getOpacity()}},{key:`getPlace`,value:function(){return this.state[cd.MARKER].getPlace()}},{key:`getPosition`,value:function(){return this.state[cd.MARKER].getPosition()}},{key:`getShape`,value:function(){return this.state[cd.MARKER].getShape()}},{key:`getTitle`,value:function(){return this.state[cd.MARKER].getTitle()}},{key:`getVisible`,value:function(){return this.state[cd.MARKER].getVisible()}},{key:`getZIndex`,value:function(){return this.state[cd.MARKER].getZIndex()}}]),id})(ad.default.PureComponent);ud.propTypes={noRedraw:od.default.bool,defaultAnimation:od.default.any,defaultClickable:od.default.bool,defaultCursor:od.default.string,defaultDraggable:od.default.bool,defaultIcon:od.default.any,defaultLabel:od.default.any,defaultOpacity:od.default.number,defaultOptions:od.default.any,defaultPlace:od.default.any,defaultPosition:od.default.any,defaultShape:od.default.any,defaultTitle:od.default.string,defaultVisible:od.default.bool,defaultZIndex:od.default.number,animation:od.default.any,clickable:od.default.bool,cursor:od.default.string,draggable:od.default.bool,icon:od.default.any,label:od.default.any,opacity:od.default.number,options:od.default.any,place:od.default.any,position:od.default.any,shape:od.default.any,title:od.default.string,visible:od.default.bool,zIndex:od.default.number,onDblClick:od.default.func,onDragEnd:od.default.func,onDragStart:od.default.func,onMouseDown:od.default.func,onMouseOut:od.default.func,onMouseOver:od.default.func,onMouseUp:od.default.func,onRightClick:od.default.func,onAnimationChanged:od.default.func,onClick:od.default.func,onClickableChanged:od.default.func,onCursorChanged:od.default.func,onDrag:od.default.func,onDraggableChanged:od.default.func,onFlatChanged:od.default.func,onIconChanged:od.default.func,onPositionChanged:od.default.func,onShapeChanged:od.default.func,onTitleChanged:od.default.func,onVisibleChanged:od.default.func,onZindexChanged:od.default.func},ud.contextTypes=(id={},(0,t.default)(id,cd.MAP,od.default.object),(0,t.default)(id,cd.MARKER_CLUSTERER,od.default.object),id
335),ud.childContextTypes=(0,t.default)({},cd.ANCHOR,od.default.object),e.default=ud;var dd={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMouseDown:`mousedown`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onMouseUp:`mouseup`,onRightClick:`rightclick`,onAnimationChanged:`animation_changed`,onClick:`click`,onClickableChanged:`clickable_changed`,onCursorChanged:`cursor_changed`,onDrag:`drag`,onDraggableChanged:`draggable_changed`,onFlatChanged:`flat_changed`,onIconChanged:`icon_changed`,onPositionChanged:`position_changed`,onShapeChanged:`shape_changed`,onTitleChanged:`title_changed`,onVisibleChanged:`visible_changed`,onZindexChanged:`zindex_changed`},fd={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},place:function(e,t){e.setPlace(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}}})),require_Polyline=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Polyline=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.Polyline=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.Polyline;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.POLYLINE,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.POLYLINE],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.POLYLINE],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.POLYLINE];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getDraggable`,value:function(){return this.state[sd.POLYLINE].getDraggable()}},{key:`getEditable`,value:function(){return this.state[sd.POLYLINE].getEditable()}},{key:`getPath`,value:function(){return this.state[sd.POLYLINE].getPath()}},{key:`getVisible`,value:function(){return this.state[sd.POLYLINE].getVisible()}}]),id})(id.default.PureComponent);ld.propTypes={defaultDraggable:ad.default.bool,defaultEditable:ad.default.bool,defaultOptions:ad.default.any,defaultPath:ad.default.any,defaultVisible:ad.default.bool,draggable:ad.default.bool,editable:ad.default.bool,options:ad.default.any,path:ad.default.any,visible:ad.default.bool,onDblClick:ad.default.func,onDragEnd:ad.default.func,onDragStart:ad.default.func,onMouseDown:ad.default.func,onMouseMove:ad.default.func,onMouseOut:ad.default.func,onMouseOver:ad.default.func,onMouseUp:ad.default.func,onRightClick:ad.default.func,onClick:ad.default.func,onDrag:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMouseDown:`mousedown`,onMouseMove:`mousemove`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onMouseUp:`mouseup`,onRightClick:`rightclick`,onClick:`click`,onDrag:`drag`},dd={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}}})),require_Polygon=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Polygon=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();
335function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.Polygon=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.Polygon;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.POLYGON,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.POLYGON],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.POLYGON],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.POLYGON];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getDraggable`,value:function(){return this.state[sd.POLYGON].getDraggable()}},{key:`getEditable`,value:function(){return this.state[sd.POLYGON].getEditable()}},{key:`getPath`,value:function(){return this.state[sd.POLYGON].getPath()}},{key:`getPaths`,value:function(){return this.state[sd.POLYGON].getPaths()}},{key:`getVisible`,value:function(){return this.state[sd.POLYGON].getVisible()}}]),id})(id.default.PureComponent);ld.propTypes={defaultDraggable:ad.default.bool,defaultEditable:ad.default.bool,defaultOptions:ad.default.any,defaultPath:ad.default.any,defaultPaths:ad.default.any,defaultVisible:ad.default.bool,draggable:ad.default.bool,editable:ad.default.bool,options:ad.default.any,path:ad.default.any,paths:ad.default.any,visible:ad.default.bool,onDblClick:ad.default.func,onDragEnd:ad.default.func,onDragStart:ad.default.func,onMouseDown:ad.default.func,onMouseMove:ad.default.func,onMouseOut:ad.default.func,onMouseOver:ad.default.func,onMouseUp:ad.default.func,onRightClick:ad.default.func,onClick:ad.default.func,onDrag:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMouseDown:`mousedown`,onMouseMove:`mousemove`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onMouseUp:`mouseup`,onRightClick:`rightclick`,onClick:`click`,onDrag:`drag`},dd={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}}})),require_Rectangle=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Rectangle=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.Rectangle=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.Rectangle;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.RECTANGLE,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.RECTANGLE],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.RECTANGLE],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.RECTANGLE];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getBounds`,value:function(){return this.state[sd.RECTANGLE].getBounds()}},{key:`getDraggable`,value:function(){return this.state[sd.RECTANGLE].getDraggable()}},{key:`getEditable`,value:function(){return this.state[sd.RECTANGLE].getEditable()}},{key:`getVisible`,value:function(){return this.state[sd.RECTANGLE].getVisible()}}]),id})(id.default.PureComponent);ld.propTypes={defaultBounds:ad.default.any,defaultDraggable:ad.default.bool,defaultEditable:ad.default.bool,defaultOptions:ad.default.any,defaultVisible:ad.default.bool,bounds:ad.default.any,draggable:ad.default.bool,editable:ad.default.bool,options:ad.default.any,visible:ad.default.bool,onDblClick:ad.default.func,onDragEnd:ad.default.func,onDragStart:ad.default.func,onMouseDown:ad.default.func,onMouseMove:ad.default.func,onMouseOut:ad.default.func,onMouseOver:ad.default.func,onMouseUp:ad.default.func,onRightClick:ad.default.func,onBoundsChanged:ad.default.func,onClick:ad.default.func,onDrag:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDblClick:`dblclick`,onDragEnd:`dragend`,onDragStart:`dragstart`,onMouseDown:`mousedown`,onMouseMove:`mousemove`,onMouseOut:`mouseout`,onMouseOver:`mouseover`,onMouseUp:`mouseup`,onRightClick:`rightclick`,onBoundsChanged:`bounds_changed`,onClick:`click`,onDrag:`drag`},dd={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}}})),require_InfoWindow=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InfoWindow=void 0;var t=fd(require_defineProperty()),$=fd(require_get_prototype_of()),ed=fd(require_classCallCheck()),td=fd(require_createClass()),nd=fd(require_possibleConstructorReturn()),rd=fd(require_inherits()),id,ad=fd(require_browser$13()),od=fd(require_can_use_dom()),sd=fd(require_react()),cd=fd(require_react_dom()),ld=fd(require_prop_types()),ud=require_MapChildHelper(),dd=require_constants();
335function fd(e){return e&&e.__esModule?e:{default:e}}var pd=e.InfoWindow=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.InfoWindow;return(0,ud.construct)(id.propTypes,gd,rd.props,ad),ad.setMap(rd.context[dd.MAP]),rd.state=(0,t.default)({},dd.INFO_WINDOW,ad),rd}return(0,td.default)(id,[{key:`componentWillMount`,value:function(){!od.default||this.containerElement||sd.default.version.match(/^16/)&&(this.containerElement=document.createElement(`div`))}},{key:`componentDidMount`,value:function(){if((0,ud.componentDidMount)(this,this.state[dd.INFO_WINDOW],hd),sd.default.version.match(/^16/)){this.state[dd.INFO_WINDOW].setContent(this.containerElement),md(this.state[dd.INFO_WINDOW],this.context[dd.ANCHOR]);return}var e=document.createElement(`div`);cd.default.unstable_renderSubtreeIntoContainer(this,sd.default.Children.only(this.props.children),e),this.state[dd.INFO_WINDOW].setContent(e),md(this.state[dd.INFO_WINDOW],this.context[dd.ANCHOR])}},{key:`componentDidUpdate`,value:function(e){(0,ud.componentDidUpdate)(this,this.state[dd.INFO_WINDOW],hd,gd,e),!sd.default.version.match(/^16/)&&this.props.children!==e.children&&cd.default.unstable_renderSubtreeIntoContainer(this,sd.default.Children.only(this.props.children),this.state[dd.INFO_WINDOW].getContent())}},{key:`componentWillUnmount`,value:function(){(0,ud.componentWillUnmount)(this);var e=this.state[dd.INFO_WINDOW];e&&(!sd.default.version.match(/^16/)&&e.getContent()&&cd.default.unmountComponentAtNode(e.getContent()),e.setMap(null))}},{key:`render`,value:function(){return sd.default.version.match(/^16/)?cd.default.createPortal(sd.default.Children.only(this.props.children),this.containerElement):!1}},{key:`getPosition`,value:function(){return this.state[dd.INFO_WINDOW].getPosition()}},{key:`getZIndex`,value:function(){return this.state[dd.INFO_WINDOW].getZIndex()}}]),id})(sd.default.PureComponent);pd.propTypes={defaultOptions:ld.default.any,defaultPosition:ld.default.any,defaultZIndex:ld.default.number,options:ld.default.any,position:ld.default.any,zIndex:ld.default.number,onCloseClick:ld.default.func,onDomReady:ld.default.func,onContentChanged:ld.default.func,onPositionChanged:ld.default.func,onZindexChanged:ld.default.func},pd.contextTypes=(id={},(0,t.default)(id,dd.MAP,ld.default.object),(0,t.default)(id,dd.ANCHOR,ld.default.object),id),e.default=pd;var md=function(e,t){t?e.open(e.getMap(),t):e.getPosition()?e.open(e.getMap()):(0,ad.default)(!1,`You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.`)},hd={onCloseClick:`closeclick`,onDomReady:`domready`,onContentChanged:`content_changed`,onPositionChanged:`position_changed`,onZindexChanged:`zindex_changed`},gd={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}}})),require__object_assign=__commonJSMin(((e,t)=>{var $=require__descriptors(),ed=require__object_keys(),td=require__object_gops(),nd=require__object_pie(),rd=require__to_object(),id=require__iobject(),ad=Object.assign;t.exports=!ad||require__fails()(function(){var e={},t={},$=Symbol(),ed=`abcdefghijklmnopqrst`;return e[$]=7,ed.split(``).forEach(function(e){t[e]=e}),ad({},e)[$]!=7||Object.keys(ad({},t)).join(``)!=ed})?function(e,t){for(var ad=rd(e),od=arguments.length,sd=1,cd=td.f,ld=nd.f;od>sd;)for(var ud=id(arguments[sd++]),dd=cd?ed(ud).concat(cd(ud)):ed(ud),fd=dd.length,pd=0,md;fd>pd;)md=dd[pd++],(!$||ld.call(ud,md))&&(ad[md]=ud[md]);return ad}:ad})),require_es6_object_assign=__commonJSMin((()=>{var e=require__export();e(e.S+e.F,`Object`,{assign:require__object_assign()})})),require_assign$2=__commonJSMin(((e,t)=>{require_es6_object_assign(),t.exports=require__core().Object.assign})),require_assign$1=__commonJSMin(((e,t)=>{t.exports={default:require_assign$2(),__esModule:!0}})),require_extends=__commonJSMin((e=>{e.__esModule=!0;var t=$(require_assign$1());function $(e){return e&&e.__esModule?e:{default:e}}e.default=t.default||function(e){for(var t=1;t<arguments.length;t++){var $=arguments[t];for(var ed in $)Object.prototype.hasOwnProperty.call($,ed)&&(e[ed]=$[ed])}return e}})),require__baseDelay=__commonJSMin(((e,t)=>{var $=`Expected a function`;function ed(e,t,ed){if(typeof e!=`function`)throw TypeError($);return setTimeout(function(){e.apply(void 0,ed)},t)}t.exports=ed})),require_delay=__commonJSMin(((e,t)=>{var $=require__baseDelay(),ed=require__baseRest(),td=require_toNumber();t.exports=ed(function(e,t,ed){return $(e,td(t)||0,ed)})})),require__baseAssignValue=__commonJSMin(((e,t)=>{var $=require__defineProperty();function ed(e,t,ed){t==`__proto__`&&$?$(e,t,{configurable:!0,enumerable:!0,value:ed,writable:!0}):e[t]=ed}t.exports=ed})),require__assignValue=__commonJSMin(((e,t)=>{var $=require__baseAssignValue(),ed=require_eq(),td=Object.prototype.hasOwnProperty;
335function nd(e,t,nd){var rd=e[t];(!(td.call(e,t)&&ed(rd,nd))||nd===void 0&&!(t in e))&&$(e,t,nd)}t.exports=nd})),require__copyObject=__commonJSMin(((e,t)=>{var $=require__assignValue(),ed=require__baseAssignValue();function td(e,t,td,nd){var rd=!td;td||={};for(var id=-1,ad=t.length;++id<ad;){var od=t[id],sd=nd?nd(td[od],e[od],od,td,e):void 0;sd===void 0&&(sd=e[od]),rd?ed(td,od,sd):$(td,od,sd)}return td}t.exports=td})),require__isIterateeCall=__commonJSMin(((e,t)=>{var $=require_eq(),ed=require_isArrayLike(),td=require__isIndex(),nd=require_isObject();function rd(e,t,rd){if(!nd(rd))return!1;var id=typeof t;return(id==`number`?ed(rd)&&td(t,rd.length):id==`string`&&t in rd)?$(rd[t],e):!1}t.exports=rd})),require__createAssigner=__commonJSMin(((e,t)=>{var $=require__baseRest(),ed=require__isIterateeCall();function td(e){return $(function(t,$){var td=-1,nd=$.length,rd=nd>1?$[nd-1]:void 0,id=nd>2?$[2]:void 0;for(rd=e.length>3&&typeof rd==`function`?(nd--,rd):void 0,id&&ed($[0],$[1],id)&&(rd=nd<3?void 0:rd,nd=1),t=Object(t);++td<nd;){var ad=$[td];ad&&e(t,ad,td,rd)}return t})}t.exports=td})),require_assign=__commonJSMin(((e,t)=>{var $=require__assignValue(),ed=require__copyObject(),td=require__createAssigner(),nd=require_isArrayLike(),rd=require__isPrototype(),id=require_keys(),ad=Object.prototype.hasOwnProperty;t.exports=td(function(e,t){if(rd(t)||nd(t)){ed(t,id(t),e);return}for(var td in t)ad.call(t,td)&&$(e,td,t[td])})})),require_OverlayViewHelper=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=$(require_isFunction());e.getOffsetOverride=ed,e.getLayoutStyles=od;function $(e){return e&&e.__esModule?e:{default:e}}function ed(e,$){var ed=$.getPixelPositionOffset;return(0,t.default)(ed)?ed(e.offsetWidth,e.offsetHeight):{}}function td(e,t){return new t(e.lat,e.lng)}function nd(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function rd(e,t,$){return e instanceof t?e:$(e,t)}function id(e,t,$){var ed=e.fromLatLngToDivPixel($.getNorthEast()),td=e.fromLatLngToDivPixel($.getSouthWest
335());return ed&&td?{left:td.x+t.x+`px`,top:ed.y+t.y+`px`,width:ed.x-td.x-t.x+`px`,height:td.y-ed.y-t.y+`px`}:{left:`-9999px`,top:`-9999px`}}function ad(e,t,$){var ed=e.fromLatLngToDivPixel($);if(ed){var td=ed.x,nd=ed.y;return{left:td+t.x+`px`,top:nd+t.y+`px`}}return{left:`-9999px`,top:`-9999px`}}function od(e,t,$){return $.bounds?id(e,t,rd($.bounds,google.maps.LatLngBounds,nd)):ad(e,t,rd($.position,google.maps.LatLng,td))}})),require_OverlayView=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.OverlayView=void 0;var t=gd(require_extends()),$=gd(require_defineProperty()),ed=gd(require_get_prototype_of()),td=gd(require_classCallCheck()),nd=gd(require_createClass()),rd=gd(require_possibleConstructorReturn()),id=gd(require_inherits()),ad=gd(require_delay()),od=gd(require_assign()),sd=gd(require_bind()),cd,ld=gd(require_browser$13()),ud=gd(require_react()),dd=gd(require_react_dom()),fd=gd(require_prop_types()),pd=require_MapChildHelper(),md=require_OverlayViewHelper(),hd=require_constants();function gd(e){return e&&e.__esModule?e:{default:e}}var _d=e.OverlayView=(function(e){(0,id.default)(cd,e);function cd(e,t){(0,td.default)(this,cd);var nd=(0,rd.default)(this,(cd.__proto__||(0,ed.default)(cd)).call(this,e,t)),id=new google.maps.OverlayView;return id.onAdd=(0,sd.default)(nd.onAdd,nd),id.draw=(0,sd.default)(nd.draw,nd),id.onRemove=(0,sd.default)(nd.onRemove,nd),nd.onPositionElement=(0,sd.default)(nd.onPositionElement,nd),id.setMap(nd.context[hd.MAP]),nd.state=(0,$.default)({},hd.OVERLAY_VIEW,id),nd}return(0,nd.default)(cd,[{key:`onAdd`,value:function(){this.containerElement=document.createElement(`div`),this.containerElement.style.position=`absolute`}},{key:`draw`,value:function(){var e=this.props.mapPaneName;(0,ld.default)(!!e,`OverlayView requires either props.mapPaneName or props.defaultMapPaneName but got %s`,e),this.state[hd.OVERLAY_VIEW].getPanes()[e].appendChild(this.containerElement),dd.default.unstable_renderSubtreeIntoContainer(this,ud.default.Children.only(this.props.children),this.containerElement,this.onPositionElement)}},{key:`onPositionElement`,value:function(){var e=this.state[hd.OVERLAY_VIEW].getProjection(),$=(0,t.default)({x:0,y:0},(0,md.getOffsetOverride)(this.containerElement,this.props)),ed=(0,md.getLayoutStyles)(e,$,this.props);(0,od.default)(this.containerElement.style,ed)}},{key:`onRemove`,value:function(){this.containerElement.parentNode.removeChild(this.containerElement),dd.default.unmountComponentAtNode(this.containerElement),this.containerElement=null}},{key:`componentDidMount`,value:function(){(0,pd.componentDidMount)(this,this.state[hd.OVERLAY_VIEW],vd)}},{key:`componentDidUpdate`,value:function(e){(0,pd.componentDidUpdate)(this,this.state[hd.OVERLAY_VIEW],vd,yd,e),(0,ad.default)(this.state[hd.OVERLAY_VIEW].draw)}},{key:`componentWillUnmount`,value:function(){(0,pd.componentWillUnmount)(this);var e=this.state[hd.OVERLAY_VIEW];e&&(e.setMap(null),e.onAdd=null,e.draw=null,e.onRemove=null)}},{key:`render`,value:function(){return!1}},{key:`getPanes`,value:function(){return this.state[hd.OVERLAY_VIEW].getPanes()}},{key:`getProjection`,value:function(){return this.state[hd.OVERLAY_VIEW].getProjection()}}]),cd})(ud.default.PureComponent);_d.FLOAT_PANE=`floatPane`,_d.MAP_PANE=`mapPane`,_d.MARKER_LAYER=`markerLayer`,_d.OVERLAY_LAYER=`overlayLayer`,_d.OVERLAY_MOUSE_TARGET=`overlayMouseTarget`,_d.propTypes={mapPaneName:fd.default.string,position:fd.default.object,bounds:fd.default.object,children:fd.default.node.isRequired,getPixelPositionOffset:fd.default.func},_d.contextTypes=(cd={},(0,$.default)(cd,hd.MAP,fd.default.object),(0,$.default)(cd,hd.ANCHOR,fd.default.object),cd),e.default=_d;var vd={},yd={}})),require_GroundOverlay=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GroundOverlay=void 0;var t=ld(require_defineProperty()),$=ld(require_get_prototype_of()),ed=ld(require_classCallCheck()),td=ld(require_createClass()),nd=ld(require_possibleConstructorReturn()),rd=ld(require_inherits()),id=ld(require_browser()),ad=ld(require_react()),od=ld(require_prop_types()),sd=require_MapChildHelper(),cd=require_constants();
335function ld(e){return e&&e.__esModule?e:{default:e}}var ud=e.GroundOverlay=(function(e){(0,rd.default)(ad,e);function ad(e,td){(0,ed.default)(this,ad);var rd=(0,nd.default)(this,(ad.__proto__||(0,$.default)(ad)).call(this,e,td));(0,id.default)(!e.url||!e.bounds,` 336For GroundOveray, url and bounds are passed in to constructor and are immutable 337 after iinstantiated. This is the behavior of Google Maps JavaScript API v3 ( 338 See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) 339 Hence, use the corresponding two props provided by \`react-google-maps\`. 340 They're prefixed with _default_ (defaultUrl, defaultBounds). 341 342 In some cases, you'll need the GroundOverlay component to reflect the changes 343 of url and bounds. You can leverage the React's key property to remount the 344 component. Typically, just \`key={url}\` would serve your need. 345 See https://github.com/tomchentw/react-google-maps/issues/655 346`);var od=new google.maps.GroundOverlay(e.defaultUrl||e.url,e.defaultBounds||e.bounds);return(0,sd.construct)(ad.propTypes,fd,rd.props,od),od.setMap(rd.context[cd.MAP]),rd.state=(0,t.default)({},cd.GROUND_LAYER,od),rd}return(0,td.default)(ad,[{key:`componentDidMount`,value:function(){(0,sd.componentDidMount)(this,this.state[cd.GROUND_LAYER],dd)}},{key:`componentDidUpdate`,value:function(e){(0,sd.componentDidUpdate)(this,this.state[cd.GROUND_LAYER],dd,fd,e)}},{key:`componentWillUnmount`,value:function(){(0,sd.componentWillUnmount)(this);var e=this.state[cd.GROUND_LAYER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getBounds`,value:function(){return this.state[cd.GROUND_LAYER].getBounds()}},{key:`getOpacity`,value:function(){return this.state[cd.GROUND_LAYER].getOpacity()}},{key:`getUrl`,value:function(){return this.state[cd.GROUND_LAYER].getUrl()}}]),ad})(ad.default.PureComponent);ud.propTypes={defaultUrl:od.default.string,defaultBounds:od.default.object,url:od.default.string,bounds:od.default.object,defaultOpacity:od.default.number,opacity:od.default.number,onDblClick:od.default.func,onClick:od.default.func},ud.contextTypes=(0,t.default)({},cd.MAP,od.default.object),e.default=ud;var dd={onDblClick:`dblclick`,onClick:`click`},fd={opacity:function(e,t){e.setOpacity(t)}}})),require_DirectionsRenderer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DirectionsRenderer=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.DirectionsRenderer=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.DirectionsRenderer;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.DIRECTIONS_RENDERER,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.DIRECTIONS_RENDERER],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.DIRECTIONS_RENDERER],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.DIRECTIONS_RENDERER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getDirections`,value:function(){return this.state[sd.DIRECTIONS_RENDERER].getDirections()}},{key:`getPanel`,value:function(){return this.state[sd.DIRECTIONS_RENDERER].getPanel()}},{key:`getRouteIndex`,value:function(){return this.state[sd.DIRECTIONS_RENDERER].getRouteIndex()}}]),id})(id.default.PureComponent);ld.propTypes={defaultDirections:ad.default.any,defaultOptions:ad.default.any,defaultPanel:ad.default.any,defaultRouteIndex:ad.default.number,directions:ad.default.any,options:ad.default.any,panel:ad.default.any,routeIndex:ad.default.number,onDirectionsChanged:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDirectionsChanged:`directions_changed`},dd={directions:function(e,t){e.setDirections(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}}})),require_FusionTablesLayer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FusionTablesLayer=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();
346function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.FusionTablesLayer=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.FusionTablesLayer;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.FUSION_TABLES_LAYER,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.FUSION_TABLES_LAYER],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.FUSION_TABLES_LAYER],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.FUSION_TABLES_LAYER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}}]),id})(id.default.PureComponent);ld.propTypes={defaultOptions:ad.default.any,options:ad.default.any,onClick:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onClick:`click`},dd={options:function(e,t){e.setOptions(t)}}})),require_KmlLayer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.KmlLayer=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.KmlLayer=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.KmlLayer;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.KML_LAYER,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.KML_LAYER],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.KML_LAYER],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.KML_LAYER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}},{key:`getDefaultViewport`,value:function(){return this.state[sd.KML_LAYER].getDefaultViewport()}},{key:`getMetadata`,value:function(){return this.state[sd.KML_LAYER].getMetadata()}},{key:`getStatus`,value:function(){return this.state[sd.KML_LAYER].getStatus()}},{key:`getUrl`,value:function(){return this.state[sd.KML_LAYER].getUrl()}},{key:`getZIndex`,value:function(){return this.state[sd.KML_LAYER].getZIndex()}}]),id})(id.default.PureComponent);ld.propTypes={defaultOptions:ad.default.any,defaultUrl:ad.default.string,defaultZIndex:ad.default.number,options:ad.default.any,url:ad.default.string,zIndex:ad.default.number,onDefaultViewportChanged:ad.default.func,onClick:ad.default.func,onStatusChanged:ad.default.func},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={onDefaultViewportChanged:`defaultviewport_changed`,onClick:`click`,onStatusChanged:`status_changed`},dd={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}}})),require_TrafficLayer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TrafficLayer=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.TrafficLayer=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.TrafficLayer;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.TRAFFIC_LAYER,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.TRAFFIC_LAYER],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.TRAFFIC_LAYER],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.TRAFFIC_LAYER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}}]),id})(id.default.PureComponent);ld.propTypes={defaultOptions:ad.default.any,options:ad.default.any},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={},dd={options:function(e,t){e.setOptions(t)}}})),require_StreetViewPanorama=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.StreetViewPanorama=void 0;var t=ld(require_defineProperty()),$=ld(require_get_prototype_of()),ed=ld(require_classCallCheck()),td=ld(require_createClass()),nd=ld(require_possibleConstructorReturn()),rd=ld(require_inherits()),id=ld(require_browser$13()),ad=ld(require_react()),od=ld(require_prop_types()),sd=require_MapChildHelper(),cd=require_constants();
346function ld(e){return e&&e.__esModule?e:{default:e}}var ud=e.StreetViewPanorama=(function(e){(0,rd.default)(od,e);function od(e,t){(0,ed.default)(this,od);var td=(0,nd.default)(this,(od.__proto__||(0,$.default)(od)).call(this,e,t));return(0,id.default)(!!td.context[cd.MAP],`Did you render <StreetViewPanorama> as a child of <GoogleMap> with withGoogleMap() HOC?`),(0,sd.construct)(od.propTypes,fd,td.props,td.context[cd.MAP].getStreetView()),td}return(0,td.default)(od,[{key:`getChildContext`,value:function(){return(0,t.default)({},cd.MAP,this.context[cd.MAP].getStreetView())}},{key:`componentDidMount`,value:function(){(0,sd.componentDidMount)(this,this.context[cd.MAP].getStreetView(),dd)}},{key:`componentDidUpdate`,value:function(e){(0,sd.componentDidUpdate)(this,this.context[cd.MAP].getStreetView(),dd,fd,e)}},{key:`componentWillUnmount`,value:function(){(0,sd.componentWillUnmount)(this);var e=this.context[cd.MAP].getStreetView();e&&e.setVisible(!1)}},{key:`render`,value:function(){var e=this.props.children;return ad.default.createElement(`div`,null,e)}},{key:`getLinks`,value:function(){return this.context[cd.MAP].getLinks()}},{key:`getLocation`,value:function(){return this.context[cd.MAP].getLocation()}},{key:`getMotionTracking`,value:function(){return this.context[cd.MAP].getMotionTracking()}},{key:`getPano`,value:function(){return this.context[cd.MAP].getPano()}},{key:`getPhotographerPov`,value:function(){return this.context[cd.MAP].getPhotographerPov()}},{key:`getPosition`,value:function(){return this.context[cd.MAP].getPosition()}},{key:`getPov`,value:function(){return this.context[cd.MAP].getPov()}},{key:`getStatus`,value:function(){return this.context[cd.MAP].getStatus()}},{key:`getVisible`,value:function(){return this.context[cd.MAP].getVisible()}},{key:`getZoom`,value:function(){return this.context[cd.MAP].getZoom()}}]),od})(ad.default.PureComponent);ud.propTypes={defaultLinks:od.default.any,defaultMotionTracking:od.default.bool,defaultOptions:od.default.any,defaultPano:od.default.string,defaultPosition:od.default.any,defaultPov:od.default.any,defaultVisible:od.default.bool,defaultZoom:od.default.number,links:od.default.any,motionTracking:od.default.bool,options:od.default.any,pano:od.default.string,position:od.default.any,pov:od.default.any,visible:od.default.bool,zoom:od.default.number,onCloseClick:od.default.func,onPanoChanged:od.default.func,onPositionChanged:od.default.func,onPovChanged:od.default.func,onResize:od.default.func,onStatusChanged:od.default.func,onVisibleChanged:od.default.func,onZoomChanged:od.default.func},ud.contextTypes=(0,t.default)({},cd.MAP,od.default.object),ud.childContextTypes=(0,t.default)({},cd.MAP,od.default.object),e.default=ud;var dd={onCloseClick:`closeclick`,onPanoChanged:`pano_changed`,onPositionChanged:`position_changed`,onPovChanged:`pov_changed`,onResize:`resize`,onStatusChanged:`status_changed`,onVisibleChanged:`visible_changed`,onZoomChanged:`zoom_changed`},fd={links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}}})),require_BicyclingLayer=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BicyclingLayer=void 0;var t=cd(require_defineProperty()),$=cd(require_get_prototype_of()),ed=cd(require_classCallCheck()),td=cd(require_createClass()),nd=cd(require_possibleConstructorReturn()),rd=cd(require_inherits()),id=cd(require_react()),ad=cd(require_prop_types()),od=require_MapChildHelper(),sd=require_constants();function cd(e){return e&&e.__esModule?e:{default:e}}var ld=e.BicyclingLayer=(function(e){(0,rd.default)(id,e);function id(e,td){(0,ed.default)(this,id);var rd=(0,nd.default)(this,(id.__proto__||(0,$.default)(id)).call(this,e,td)),ad=new google.maps.BicyclingLayer;return(0,od.construct)(id.propTypes,dd,rd.props,ad),ad.setMap(rd.context[sd.MAP]),rd.state=(0,t.default)({},sd.BICYCLING_LAYER,ad),rd}return(0,td.default)(id,[{key:`componentDidMount`,value:function(){(0,od.componentDidMount)(this,this.state[sd.BICYCLING_LAYER],ud)}},{key:`componentDidUpdate`,value:function(e){(0,od.componentDidUpdate)(this,this.state[sd.BICYCLING_LAYER],ud,dd,e)}},{key:`componentWillUnmount`,value:function(){(0,od.componentWillUnmount)(this);var e=this.state[sd.BICYCLING_LAYER];e&&e.setMap(null)}},{key:`render`,value:function(){return!1}}]),id})(id.default.PureComponent);ld.propTypes={},ld.contextTypes=(0,t.default)({},sd.MAP,ad.default.object),e.default=ld;var ud={},dd={}})),require_lib=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=require_withScriptjs();Object.defineProperty(e,`withScriptjs`,{enumerable:!0,get:function(){return hd(t).default}});var $=require_withGoogleMap();Object.defineProperty(e,`withGoogleMap`,{enumerable:!0,get:function(){return hd($).default}});var ed=require_GoogleMap();Object.defineProperty(e,`GoogleMap`,{enumerable:!0,get:function(){return hd(ed).default}});var td=require_Circle();Object.defineProperty(e,`Circle`,{enumerable:!0,get:function(){return hd(td).default}});var nd=require_Marker();Object.defineProperty(e,`Marker`,{enumerable:!0,get:function(){return hd(nd).default}});var rd=require_Polyline();Object.defineProperty(e,`Polyline`,{enumerable:!0,get:function(){return hd(rd).default}});var id=require_Polygon();Object.defineProperty(e,`Polygon`,{enumerable:!0,get:function(){return hd(id).default}});var ad=require_Rectangle();Object.defineProperty(e,`Rectangle`,{enumerable:!0,get:function(){return hd(ad).default}});var od=require_InfoWindow();Object.defineProperty(e,`InfoWindow`,{enumerable:!0,get:function(){return hd(od).default}});var sd=require_OverlayView();Object.defineProperty(e,`OverlayView`,{enumerable:!0,get:function(){return hd(sd).default}});var cd=require_GroundOverlay();Object.defineProperty(e,`GroundOverlay`,{enumerable:!0,get:function(){return hd(cd).default}});var ld=require_DirectionsRenderer();Object.defineProperty(e,`DirectionsRenderer`,{enumerable:!0,get:function(){return hd(ld).default}});var ud=require_FusionTablesLayer();Object.defineProperty(e,`FusionTablesLayer`,{enumerable:!0,get:function(){return hd(ud).default}});var dd=require_KmlLayer();Object.defineProperty(e,`KmlLayer`,{enumerable:!0,get:function(){return hd(dd).default}});var fd=require_TrafficLayer();Object.defineProperty(e,`TrafficLayer`,{enumerable:!0,get:function(){return hd(fd).default}});var pd=require_StreetViewPanorama();Object.defineProperty(e,`StreetViewPanorama`,{enumerable:!0,get:function(){return hd(pd).default}});var md=require_BicyclingLayer();Object.defineProperty(e,`BicyclingLayer`,{enumerable:!0,get:function(){return hd(md).default}});
346function hd(e){return e&&e.__esModule?e:{default:e}}})),require_isNumber=__commonJSMin(((e,t)=>{var $=require__baseGetTag(),ed=require_isObjectLike(),td=`[object Number]`;function nd(e){return typeof e==`number`||ed(e)&&$(e)==td}t.exports=nd})),require_SearchBox=__commonJSMin((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SearchBox=void 0;var t=fd(require_defineProperty()),$=fd(require_get_prototype_of()),ed=fd(require_classCallCheck()),td=fd(require_createClass()),nd=fd(require_possibleConstructorReturn()),rd=fd(require_inherits()),id=fd(require_isNumber()),ad=fd(require_browser$13()),od=fd(require_can_use_dom()),sd=fd(require_react()),cd=fd(require_react_dom()),ld=fd(require_prop_types()),ud=require_MapChildHelper(),dd=require_constants();function fd(e){return e&&e.__esModule?e:{default:e}}var pd=e.SearchBox=(function(e){(0,rd.default)(id,e);function id(){var e,td,rd,ad;(0,ed.default)(this,id);var od=[...arguments];return ad=(td=(rd=(0,nd.default)(this,(e=id.__proto__||(0,$.default)(id)).call.apply(e,[this].concat(od))),rd),rd.state=(0,t.default)({},dd.SEARCH_BOX,null),td),(0,nd.default)(rd,ad)}return(0,td.default)(id,[{key:`componentWillMount`,value:function(){!od.default||this.containerElement||((0,ad.default)(google.maps.places,`Did you include "libraries=places" in the URL?`),this.containerElement=document.createElement(`div`),this.handleRenderChildToContainerElement(),!sd.default.version.match(/^16/)&&this.handleInitializeSearchBox())}},{key:`componentDidMount`,value:function(){var e=this.state[dd.SEARCH_BOX];sd.default.version.match(/^16/)&&(e=this.handleInitializeSearchBox()),(0,ud.componentDidMount)(this,e,hd),this.handleMountAtControlPosition()}},{key:`componentWillUpdate`,value:function(e){this.props.controlPosition!==e.controlPosition&&this.handleUnmountAtControlPosition()}},{key:`componentDidUpdate`,value:function(e){(0,ud.componentDidUpdate)(this,this.state[dd.SEARCH_BOX],hd,gd,e),this.props.children!==e.children&&this.handleRenderChildToContainerElement(),this.props.controlPosition!==e.controlPosition&&this.handleMountAtControlPosition()}},{key:`componentWillUnmount`,value:function(){(0,ud.componentWillUnmount)(this),this.handleUnmountAtControlPosition(),!sd.default.version.match(/^16/)&&(this.containerElement&&=(cd.default.unmountComponentAtNode(this.containerElement),null))}},{key:`handleInitializeSearchBox`,value:function(){var e=new google.maps.places.SearchBox(this.containerElement.querySelector(`input`));return(0,ud.construct)(id.propTypes,gd,this.props,e),this.setState((0,t.default)({},dd.SEARCH_BOX,e)),e}},{key:`handleRenderChildToContainerElement`,value:function(){sd.default.version.match(/^16/)||cd.default.unstable_renderSubtreeIntoContainer(this,sd.default.Children.only(this.props.children),this.containerElement)}},{key:`handleMountAtControlPosition`,value:function(){md(this.props.controlPosition)&&(this.mountControlIndex=-1+this.context[dd.MAP].controls[this.props.controlPosition].push(this.containerElement.firstChild))}},{key:`handleUnmountAtControlPosition`,value:function(){if(md(this.props.controlPosition)){var e=this.context[dd.MAP].controls[this.props.controlPosition].removeAt(this.mountControlIndex);e!==void 0&&this.containerElement.appendChild(e)}}},{key:`render`,value:function(){return sd.default.version.match(/^16/)?cd.default.createPortal(sd.default.Children.only(this.props.children),this.containerElement):!1}},{key:`getBounds`,value:function(){return this.state[dd.SEARCH_BOX].getBounds()}},{key:`getPlaces`,value:function(){return this.state[dd.SEARCH_BOX].getPlaces()}}]),id})(sd.default.PureComponent);pd.propTypes={controlPosition:ld.default.number,defaultBounds:ld.default.any,bounds:ld.default.any,onPlacesChanged:ld.default.func},pd.contextTypes=(0,t.default)({},dd.MAP,ld.default.object);var md=id.default,hd={onPlacesChanged:`places_changed`},gd={bounds:function(e,t){e.setBounds(t)}}})),import_lib=require_lib(),import_SearchBox=require_SearchBox(),mapStyle_default=[{featureType:`administrative`,elementType:`all`,stylers:[{saturation:`-100`}]},{featureType:`administrative.province`,elementType:`all`,stylers:[{visibility:`off`}]},{featureType:`landscape`,elementType:`all`,stylers:[{saturation:-100},{lightness:65},{visibility:`on`}]},{featureType:`poi`,elementType:`all`,stylers:[{saturation:-100},{lightness:`50`},{visibility:`simplified`}]},{featureType:`road`,elementType:`all`,stylers:[{saturation:`-100`}]},{featureType:`road.highway`,elementType:`all`,stylers:[{visibility:`simplified`}]},{featureType:`road.arterial`,elementType:`all`,stylers:[{lightness:`30`}]},{featureType:`road.local`,elementType:`all`,stylers:[{lightness:`40`}]},{featureType:`transit`,elementType:`all`,stylers:[{saturation:-100},{visibility:`simplified`}]},{featureType:`water`,elementType:`geometry`,stylers:[{hue:`#ffff00`},{lightness:-5},{saturation:-95}]},{featureType:`water`,elementType:`labels`,stylers:[{lightness:-25},{saturation:-100}]}],Map$1=class extends import_react$1.Component{static propTypes={defaultZoom:import_react$1.PropTypes.number,center:import_react$1.PropTypes.shape({lat:import_react$1.PropTypes.number,lng:import_react$1.PropTypes.number}),location:import_react$1.PropTypes.shape({lat:import_react$1.PropTypes.number,lng:import_react$1.PropTypes.number})};static defaultProps={defaultZoom:14,center:{lat:45.559785,lng:-73.491788},location:{lat:45.559785,lng:-73.491788}};constructor(e){super(e),e.geocodeMarker()}componentDidMount(){this.extendBoundsOfMap()}componentDidUpdate(e){this.refs[`search-input`];let t=document.getElementById(`google-map-current-address`);t&&(t.value=this.props.currentAddress),e.searchedLocation!==this.props.searchedLocation&&this.geocodeAddress(this.props.searchedLocation),(e.markers!==this.props.markers||e.searchedMarker!==this.props.searchedMarker)&&this.extendBoundsOfMap()}async geocodeAddress(){let{searchedLocation:e,setSearchedMarker:t}=this.props;if(e){let $=(0,import_lodash.get)(await new google.maps.Geocoder().geocode({address:e}),`results[0].geometry.location`,null);t($?{latitude:$.lat(),longitude:$.lng()}:null)}else t(null)}extendBoundsOfMap(){let{markers:e,searchedMarker:t}=this.props,{map:$}=this.refs,ed=t?[...e,t]:[...e];var td=new google.maps.LatLngBounds;let nd=[];for(var rd=0;rd<ed.length;rd++){let e=ed[rd];e.latitude&&e.longitude&&(nd.push({lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)}),td.extend({lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)}),td.extend({lat:parseFloat(e.latitude)+1,lng:parseFloat(e.longitude)}))}if(nd.length===1){let{lat:e,lng:t}=nd[0],$=3;td.extend({lat:e+3,lng:t+3}),td.extend({lat:e+3,lng:t-3}),td.extend({lat:e-3,lng:t+3}),td.extend({lat:e-3,lng:t-3})}nd.length&&$.fitBounds(td)}render(){let{center:e,defaultZoom:t,location:$,searchedMarker:ed,markers:td,contacts:nd,selectedMarker:rd,setSearchedMarker:id,fetchMarkerInformation:ad,selectAddress:od,onChangeAddress:sd,currentAddress:cd,tabIndex:ld,changeTab:ud,l10n:dd,showPersonsPictures:fd}=this.props,pd=(rd?rd.contacts:[]).map(e=>nd[e]);return(0,import_jsx_runtime.jsxs)(import_lib.GoogleMap,{className:`google-map`,defaultZoom:t,defaultCenter:e,ref:`map`,options:{styles:mapStyle_default,mapTypeControl:!1,fullscreenControl:!1},children:[(0,import_jsx_runtime.jsx)(import_SearchBox.SearchBox,{ref:`search-input`,controlPosition:google.maps.ControlPosition.TOP_LEFT,onPlacesChanged:e=>
346{sd(document.getElementById(`google-map-current-address`).value);let t=this.refs[`search-input`].getPlaces(`paris, france`);t[0];let $=(0,import_lodash.get)(t,`[0].geometry.location`,null);$!==null&&id({latitude:$.lat(),longitude:$.lng()});let ed=(0,import_lodash.get)(t,`[0].address_components`,[]),td=(0,import_lodash.get)(t,`[0].formatted_address`,``);td.includes(`St. Louis, MO, USA`)?ed.push({long_name:`St. Louis County`,short_name:`St Louis County`,types:[`administrative_area_level_2`,`political`]}):td.includes(`Edmonton, AB, Canada`)&&ed.push({long_name:`Strathcona County`,short_name:`Strathcona County`,types:[`administrative_area_level_2`,`political`]}),od(Object.entries({postal_code:`postal_code`,county_name:`administrative_area_level_2`,state:`administrative_area_level_1`,country:`country`,continent_name:`continent`}).map(([e,t])=>{let $=ed.find(e=>e.types&&e.types.includes(t));return t===`administrative_area_level_2`&&$===void 0&&($=ed.find(e=>e.types&&e.types.includes(`locality`))),$===void 0?``:`${e}=${$.short_name}`}).filter(e=>e!==``).join(`&`))},children:(0,import_jsx_runtime.jsx)(`div`,{className:`google-map-search-input`,children:(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`input`,{id:`google-map-current-address`,type:`text`,placeholder:dd.search_location,onChange:e=>{sd(e.target.value)}}),(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:`search`})]})})}),td.map((e,t)=>e.latitude&&e.longitude?(0,import_jsx_runtime.jsx)(import_lib.Marker,{position:{lat:parseFloat(e.latitude),lng:parseFloat(e.longitude)},onClick:()=>{ad(e)},icon:{url:asset(`resources/img/sites/${global_default.project}/gmap-icon.svg`),scaledSize:new window.google.maps.Size(27,43)},zIndex:1},t):null),rd&&(0,import_jsx_runtime.jsx)(import_lib.InfoWindow,{position:{lat:parseFloat(rd.latitude),lng:parseFloat(rd.longitude)},onCloseClick:()=>{ad(null)},children:(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`div`,{className:`marker-details-container`,children:(0,import_jsx_runtime.jsx)(`div`,{className:`marker-details-rel`,style:{transform:`translateX(-`+250*ld+`px`},children:pd.map((e,t)=>{let{title:$,name:ed,address1:td,address2:nd,city:rd,state:id,postal_code:ad,country:od,phone:sd,email:cd,image:ld,companytype_code:ud}=e;return(0,import_jsx_runtime.jsxs)(`div`,{className:`marker-details`,children:[ud===`rep`&&fd&&ld&&(0,import_jsx_runtime.jsx)(`img`,{className:`marker-details-image`,src:ld,width:`50`,height:`50`}),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`marker-details__name`,children:[(0,import_jsx_runtime.jsx)(`h3`,{className:`u-text-bold`,children:ed}),(0,import_jsx_runtime.jsx)(`em`,{children:$})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`marker-details__address`,children:[(0,import_jsx_runtime.jsxs)(`div`,{children:[td,nd&&(0,import_jsx_runtime.jsx)(`br`,{}),nd&&nd]}),(0,import_jsx_runtime.jsxs)(`div`,{children:[rd&&`${rd},`,id&&` ${id},`,ad&&` ${ad}`,od&&` ${od}`]})]}),(sd||cd)&&(0,import_jsx_runtime.jsxs)(`div`,{className:`marker-details__contact`,children:[sd&&(0,import_jsx_runtime.jsxs)(`span`,{className:`u-display-flex u-align-items-center`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-mr-1`,children:`phone`}),(0,import_jsx_runtime.jsx)(`a`,{href:`tel:${sd}`,children:sd})]}),cd&&(0,import_jsx_runtime.jsxs)(`span`,{className:`u-display-flex u-align-items-center`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols u-mr-1`,children:`email`}),(0,import_jsx_runtime.jsx)(`a`,{href:`mailto:${cd}`,children:cd})]})]})]})]})})})}),pd.length>1&&(0,import_jsx_runtime.jsxs)(`div`,{className:`marker-details-toggle`,children:[(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols ${ld===0?`disabled`:``}`,onClick:()=>{ld>0&&ud(ld-1)},children:`chevron_left`}),ld+1,` / `,pd.length,(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols ${ld>=pd.length-1?`disabled`:``}`,onClick:()=>{ld<pd.length-1&&ud(ld+1)},children:`chevron_right`})]})]})}),ed?(0,import_jsx_runtime.jsx)(import_lib.Marker,{position:{lat:parseFloat(ed.latitude),lng:parseFloat(ed.longitude)},icon:{url:asset(`resources/img/sites/${global_default.project}/gmap-icon-location.svg`),scaledSize:new window.google.maps.Size(27,43),cursor:`default`},cursor:`default`,zIndex:0},`searchMarker`):null]})}},SchedulerGoogleMap=(0,import_lib.withScriptjs)((0,import_lib.withGoogleMap)(Map$1)),SchedulerMap=e=>(0,import_jsx_runtime.jsx)(SchedulerGoogleMap,{googleMapURL:`https://maps.googleapis.com/ma
346ps/api/js?key=${global_default.maps_api_key}&v=3&language=${global_default.lang}&libraries=places®ion=${global_default.country}`,loadingElement:(0,import_jsx_runtime.jsx)(`div`,{style:{height:`440px`,width:`100%`}}),containerElement:(0,import_jsx_runtime.jsx)(`div`,{style:{height:`440px`,width:`100%`}}),mapElement:(0,import_jsx_runtime.jsx)(`div`,{className:`google-map-element`,style:{height:`440px`,width:`100%`}}),...e}),mapStateToProps$11=e=>({markers:e.data.markers,contacts:e.data.items,searchedLocation:e.data.searchedLocation,searchedMarker:e.data.searchedMarker,selectedMarker:e.data.selectedMarker,tabIndex:e.data.tabIndex,l10n:e.config.l10n,currentAddress:e.data.currentAddress,showPersonsPictures:e.config.showPersonsPictures}),mapDispatchToProps$7={setSearchedMarker,fetchMarkerInformation,selectAddress,changeTab,onChangeAddress,geocodeMarker},Map_default=(0,import_lib$3.connect)(mapStateToProps$11,mapDispatchToProps$7)(SchedulerMap),MapContainer=class extends import_react$1.Component{render(){return(0,import_jsx_runtime.jsx)(Map_default,{})}},App$2=class extends import_react$1.Component{componentDidMount(){this.props.dataHistorySync()}render(){return(0,import_jsx_runtime.jsxs)(`div`,{className:`contacts-locator`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`row u-mb-6`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`md-1-3 lg-1-4`,children:(0,import_jsx_runtime.jsx)(FiltersContainer_default$1,{})}),(0,import_jsx_runtime.jsx)(`div`,{className:`md-2-3 lg-3-4`,children:(0,import_jsx_runtime.jsx)(MapContainer,{})})]}),(0,import_jsx_runtime.jsx)(ResultsContainer_default$1,{})]})}},mapStateToProps$10=e=>({}),mapDispatchToProps$6={dataHistorySync},App_default$1=(0,import_lib$3.connect)(mapStateToProps$10,mapDispatchToProps$6)(App$2),ContactsLocator=class extends import_react$1.Component{static defaultProps={type:`contacts`,initialData:null,l10n:{}};static propTypes={type:import_react$1.PropTypes.string,initialData:import_react$1.PropTypes.object,l10n:import_react$1.PropTypes.object};initialConfig(){let{type:e,l10n:t}=this.props;return{api:`${global_default.paths.api}${e}/`,type:e,l10n:t,showPersonsPictures:[`alw`].includes(global_default.project),personsBeforeOrgs:[`alw`].includes(global_default.project)}}initialData(e){let{initialData:t}=this.props;return t.filteredItems=organizeFilteredData(t.items,e),t||{}}render(){let e=this.initialConfig();return(0,import_jsx_runtime.jsx)(import_lib$3.Provider,{store:configureStore$2({config:e,data:this.initialData(e)}),children:(0,import_jsx_runtime.jsx)(App_default$1,{})})}};function fetchDownloads(e=null){return(t,$)=>{let{config:ed,downloads:td}=$(),nd=new URL(window.location);(e===null?td.filters.map(({id:e})=>`${e}=`):e.split(`&`)).forEach(e=>{let[t,$]=e.split(`=`);$!==null&&$!==``?(nd.searchParams.delete(t),nd.searchParams.set(t,$)):nd.searchParams.delete(t)}),window.history.replaceState({},``,nd),t(requestDownloads());let rd=`?lang=${global_default.lang}`+(e?`&`+e:``);return import_jquery.default.get(ed.api+`list`+rd,function(e){t(receiveDownloads(e))})}}var REQUEST_DOWNLOADS=`REQUEST_DOWNLOADS`;function requestDownloads(){return{type:REQUEST_DOWNLOADS}}var RECEIVE_DOWNLOADS=`RECEIVE_DOWNLOADS`;function receiveDownloads(e){return{type:RECEIVE_DOWNLOADS,filters:e.filters,search:e.search,list:e.list,zipUrl:e.zip_url,receivedAt:Date.now()}}var SELECTION_ADD$1=`SELECTION_ADD`;function selectionAdd$1(e,t){let $=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`File added`,eventLabel:`${e} > ${t.title}`,additionalFields:[`file`,`product`],product:e,file:t.title}});return document.dispatchEvent($),{type:SELECTION_ADD$1,category:e,file:t}}var SELECTION_REMOVE$1=`SELECTION_REMOVE`;function selectionRemove$1(e){let t=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`File removed`,eventLabel:`${e.category} > ${e.title}`,additionalFields:[`file`,`product`],product:e.category,file:e.title}});return document.dispatchEvent(t),{type:SELECTION_REMOVE$1,file:e}}var SELECTION_CATEGORY_ADD=`SELECTION_CATEGORY_ADD`;function selectionCategoryAdd(e,t){let $=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Category added`,eventLabel:e,additionalFields:[`product`],product:e}});return document.dispatchEvent($),{type:SELECTION_CATEGORY_ADD,category:e,files:t}}var SELECTION_CATEGORY_REMOVE=`SELECTION_CATEGORY_REMOVE`;function selectionCategoryRemove(e){let t=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Category removed`,eventLabel:e,additionalFields:[`product`],product:e}});return document.dispatchEvent(t),{type:SELECTION_CATEGORY_REMOVE,category:e}}var SELECTION_CLEAR_ALL=`SELECTION_CLEAR_ALL`;function selectionClearAll(e,t,$){let ed=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`All cleared`,eventLabel:`Selection cleared`}});return document.dispatchEvent(ed),{type:SELECTION_CLEAR_ALL}}var initialState$5={api:``,l10n:{}};function config$1(e=initialState$5,t){switch(e.hydrated||(e={...initialState$5,...e,hydrated:!0}),t.type){default:return e}}var initialState$4={isInitialLoad:!0,isFetching:!1,filters:[],search:``,list:[],zipUrl:null,lastUpdated:null};function downloads$1(e=initialState$4,t){switch(e.hydrated||(e={...initialState$4,...e,hydrated:!0,isInitialLoad:!1}),t.type){case REQUEST_DOWNLOADS:return{...e,isFetching:!0};case RECEIVE_DOWNLOADS:return{...e,isFetching:!1,filters:t.filters,search:t.search,list:t.list,zipUrl:t.zipUrl,lastUpdated:t.receivedAt};default:return e}}var storage=window.sessionStorage||void 0,storageKey=`downloads_selection`,saveInStorage=e=>{if(storage!==`undefined`)return storage.setItem(storageKey,JSON.stringify(e)),e},initialState$3=[];function selection$1(e=initialState$3,t){let $;switch(t.type){case SELECTION_ADD$1:return $=[...e,{...t.file,product:t.category}],saveInStorage($),$;case SELECTION_REMOVE$1:return $=e.filter(e=>e.id!==t.file.id),saveInStorage($),$;case SELECTION_CATEGORY_ADD:let ed=[];
346return t.files.forEach($=>{e.filter(e=>e.id===$.id).length||ed.push(Object.assign({},$,{product:t.category}))}),$=[...e,...ed],saveInStorage($),$;case SELECTION_CATEGORY_REMOVE:return $=e.filter(e=>e.product!==t.category),saveInStorage($),$;case SELECTION_CLEAR_ALL:return $=[],saveInStorage($),$;default:return e}}init_es();var rootReducer$1=combineReducers({config:config$1,downloads:downloads$1,selection:selection$1});init_es();var createStoreWithMiddleware$1=applyMiddleware(thunk,(0,import_lib$4.default)({predicate:(e,t)=>global_default.debug,collapsed:!0}))(createStore);function configureStore$1(e){return createStoreWithMiddleware$1(rootReducer$1,e)}var FilterSelect=class extends import_react$1.Component{static defaultProps={name:``,title:``,options:[],selected:null,onChange:(e,t)=>{}};static propTypes={name:import_react$1.PropTypes.string.isRequired,title:import_react$1.PropTypes.string.isRequired,options:import_react$1.PropTypes.array.isRequired,selected:import_react$1.PropTypes.string,onChange:import_react$1.PropTypes.func};handleChange=e=>{let{name:t,onChange:$,title:ed}=this.props,td=ed;e.target.value?td+=` > ${e.target.value}`:td+=` > Reset`,$(t,e.target.value),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Filters changed`,eventLabel:td,additionalFields:[`filterType`,`filterValue`],filterType:t,filterValue:e.target.value?e.target.value:`Reset`}}))};render(){let{name:e,title:t,selected:$,options:ed}=this.props,td=`- ${t} -`;return(0,import_jsx_runtime.jsxs)(`select`,{className:`form-control filter-select__select`,name:e,id:e,value:String($),defaultValue:String($),onChange:this.handleChange,children:[(0,import_jsx_runtime.jsx)(`option`,{value:``,children:td}),ed.map((e,t)=>(0,import_jsx_runtime.jsx)(`option`,{value:String(e.key),children:e.value},t))]})}},Filters=class extends import_react$1.Component{static defaultProps={mode:`default`,data:[],onChange:(e,t)=>
346{},onReset:()=>{},l10n:{browse_files:`Browse Files`,advanced_search:`Advanced Search`,reset_filters:`Reset All Filters`}};static propTypes={mode:import_react$1.PropTypes.oneOf([`default`,`advanced`]).isRequired,data:import_react$1.PropTypes.array.isRequired,onChange:import_react$1.PropTypes.func,onReset:import_react$1.PropTypes.func,l10n:import_react$1.PropTypes.object.isRequired};handleChange=(e,t)=>{this.props.onChange(e,t)};handleReset=e=>{e.preventDefault(),document.dispatchEvent(new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Reset clicked`,eventLabel:`Filters reset`}})),(0,import_jquery.default)((0,import_react_dom.findDOMNode)(this.refs.form)).find(`select`).val(``),this.props.onReset()};hasFilters(){return!!this.props.data.filter(e=>e.selected!==null).length}render(){let{mode:e,data:t,l10n:$}=this.props;return(0,import_jsx_runtime.jsx)(`div`,{className:`filter-select`,children:(0,import_jsx_runtime.jsx)(`form`,{ref:`form`,method:`get`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`row`,children:[(0,import_jsx_runtime.jsx)(`div`,{className:`lg-3-4`,children:(0,import_jsx_runtime.jsx)(`div`,{className:`row`,children:t.map((e,t)=>{if(!e.values.length)return;let $=e.selected&&e.selected.toString();return(0,import_jsx_runtime.jsx)(`div`,{className:`lg-1-3`,children:(0,import_jsx_runtime.jsx)(FilterSelect,{name:e.id,title:e.name,selected:$,options:e.values,onChange:(e,t)=>
346{this.handleChange(e,t)}})},t)})})}),(0,import_jsx_runtime.jsx)(`div`,{className:`lg-1-4 filter-select__sidebar`,children:(0,import_jsx_runtime.jsx)(`button`,{className:`btn btn--block btn--primary u-break-word`,disabled:!this.hasFilters(),onClick:this.handleReset,children:$.reset_filters})})]})})})}},FiltersContainer=class extends import_react$1.Component{handleChange=(e,t)=>{let{l10n:$,filters:ed}=this.props,td=ed.map($=>{let ed=$.id,td=ed===e?t:$.selected;return`${ed}=${td===null?``:td}`}).join(`&`);this.props.fetchDownloads(td)};render(){let{l10n:e,filters:t,fetchDownloads:$}=this.props;return(0,import_jsx_runtime.jsx)(Filters,{l10n:e,data:t,onChange:(e,t)=>this.handleChange(e,t),onReset:()=>$(null)})}},mapStateToProps$9=e=>({l10n:e.config.l10n,filters:e.downloads.filters}),mapDispatchToProps$5={fetchDownloads},FiltersContainer_default=(0,import_lib$3.connect)(mapStateToProps$9,mapDispatchToProps$5)(FiltersContainer),FileList=class extends import_react$1.Component{static defaultProps={category:``,files:[],selection:[],l10n:{add:`Add`,remove:`Remove`},onAdd:(e,t)=>{},onRemove:e=>{}};static propTypes={category:import_react$1.PropTypes.string,files:import_react$1.PropTypes.array.isRequired,selection:import_react$1.PropTypes.array.isRequired};handleAdd=(e,t,$)=>{$.preventDefault(),$.stopPropagation(),this.props.onAdd(t,e)};handleRemove=(e,t,$)=>{$.preventDefault(),$.stopPropagation(),this.props.onRemove({...e,category:t})};handleDownload=(e,t)=>{let $=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Download file`,eventLabel:`${t} > ${e.title}`,additionalFields:[`file`,`product`],product:t,file:e.title}});document.dispatchEvent($),window.open(e.url,`_blank`)};isSelected=e=>this.props.selection.filter(t=>e.id===t.id).length;render(){let{files:e,l10n:t,category:$}=this.props;return(0,import_jsx_runtime.jsx)(`ul`,{className:`downloads-products-items`,children:e.map((e,t)=>{let ed=this.isSelected(e),td=ed?`handleRemove`:`handleAdd`,{url:nd}=e.icon.image,rd=nd?(0,import_jsx_runtime.jsx)(`img`,{src:nd,className:`u-display-inline-block u-vert-align-mid u-mr-1`,alt:`File icon`,width:`30`,height:`34`}):``,id=ed?`remove`:`add`;return(0,import_jsx_runtime.jsxs)(`li`,{onClick:e.url?this.handleDownload.bind(this,e,$):null,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`downloads-products-items__item`,children:[(0,import_jsx_runtime.jsxs)(`span`,{children:[rd,e.title]}),(0,import_jsx_runtime.jsx)(`span`,{children:e.category&&(0,import_jsx_runtime.jsx)(`span`,{className:`downloads-products-items__subtitle`,children:e.category})}),(0,import_jsx_runtime.jsxs)(`span`,{children:[e.type.toUpperCase(),(0,import_jsx_runtime.jsx)(`em`,{children:`,\xA0`})]}),(0,import_jsx_runtime.jsx)(`span`,{children:e.size_string.toUpperCase()})]}),e.url&&(0,import_jsx_runtime.jsx)(`span`,{className:`downloads-products-download`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:`download`})}),(0,import_jsx_runtime.jsx)(`span`,{className:`downloads-products-add downloads-products-add--in-box${ed?` is-selected`:``}`,onClick:this[td].bind(this,e,$),children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:id})})]},t)})})}},FileListContainer=class extends import_react$1.Component{render(){let{l10n:e,selection:t,selectionAdd:$,selectionRemove:ed}=this.props,{category:td,files:nd}=this.props;return(0,import_jsx_runtime.jsx)(FileList,{l10n:e,category:td,files:nd,selection:t,onAdd:(e,t)=>$(e,t),onRemove:e=>ed(e)})}},mapStateToProps$8=e=>({l10n:e.config.l10n,selection:e.selection}),mapDispatchToProps$4={selectionAdd:selectionAdd$1,selectionRemove:selectionRemove$1},FileListContainer_default=(0,import_lib$3.connect)(mapStateToProps$8,mapDispatchToProps$4)(FileListContainer),cookieChecker$1=null,Selection=class extends import_react$1.Component{static defaultProps={selection:[],maxSize:250,zipUrl:``,cookieDomain:``,l10n:{documents:`Documents`,selection_empty:`Nothing Selected`,download:`Download`,downloading:`Downloading...`,remove_all:`Remove all`},onClearAll:()=>{}};static propTypes={selection:import_react$1.PropTypes.array.isRequired,zipUrl:import_react$1.PropTypes.string.isRequired,cookieDomain:import_react$1.PropTypes.string.isRequired,maxSize:import_react$1.PropTypes.number.isRequired,l10n:import_react$1.PropTypes.object.isRequired,onClearAll:import_react$1.PropTypes.func};constructor(e){super(e),this.state={downloading:!1,token:``}}handleDownloadClick=e=>{let t=new Date().getTime();this.setState({downloading:!0,token:t});let{zipUrl:$}=this.props,ed=this.getSelectionList().join(`,`),td=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Downloads`,eventAction:`Downloaded`,eventLabel:`Selection downloaded`,additionalFields:[`list`],list:ed}});document.dispatchEvent(td),window.location.href=`${$}?lang=${global_default.lang}&list=${ed}&token=${t}`,cookieChecker$1=setInterval(()=>{this.checkCookie(`download-selection-zip${t}`)},1e3)};checkCookie=e=>{import_js_cookie.default.get(e)!==void 0&&(import_js_cookie.default.remove(e,{path:`/`,domain:this.props.cookieDomain}),clearInterval(cookieChecker$1),this.setState({downloading:!1,token:``}))};handleClearAllClick=e=>{e.preventDefault(),this.props.onClearAll()};renderSelection(){return this.getByProducts().map((e,t)=>(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`div`,{className:`downloads-products-product__title`,children:e.product}),(0,import_jsx_runtime.jsx)(FileListContainer_default,{category:e.category,files:e.items})]},t))}render(){let{l10n:e,maxSize:t}=this.props,$=this.getSizeTotal(),ed=this.sizeInMB($),td=this.isSizeOverLimit($),nd=this.renderSelection(),rd=this.props.selection.length,id=``;return td&$>0?id=` is-error`:!td&$>0&&(id=` is-success`),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-sidebar__top`,children:[(0,import_jsx_runtime.jsx)(`h3`,{className:`u-mb-0`,children:(0,import_jsx_runtime.jsxs)(`strong`,{style:{fontWeight:600},children:[e.documents,` (`,rd,`)`]})}),(0,import_jsx_runtime.jsxs)(`span`,{className:`selection-downloads${id}`,children:[ed,`/`,t,` MB`]})]}),rd>0?(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`div`,{className:`selection-sidebar__selection`,children:nd}),(0,import_jsx_runtime.jsxs)(`div`,{className:`selection-sidebar__bottom`,children:[(0,import_jsx_runtime.jsx)(`button`,{className:`btn btn--accent ${this.state.downloading?` is-disabled`:``}`,onClick:this.handleDownloadClick,disabled:td,children:this.state.downloading?e.downloading:e.download}),(0,import_jsx_runtime.jsx)(`a`,{href:`#`,onClick:this.handleClearAllClick,children:e.remove_all})]})]}):(0,import_jsx_runtime.jsxs)(`p`,{className:`u-text-gray u-mb-0 u-pr-g u-pb-g u-pl-g`,children:[e.selection_empty,`.`]})]})}getByProducts=()=>this.groupBy(this.props.selection,`product`);getSizeTotal=()=>this.props.selection.reduce((e,t)=>
346parseFloat(e)+parseFloat(t.size),0);getSelectionList=()=>this.props.selection.map(e=>e.id);isSizeOverLimit(e){return Math.ceil(e)===0||this.sizeInMB(e)>this.props.maxSize}sizeInMB(e){return(e/(1024*1024)).toFixed(2)}groupBy(e,t){let $={},ed=[];return e.forEach(function(e){let td=e[t];if($.hasOwnProperty(td))$[td].push(e);else{let nd={items:[e]};nd[t]=td,$[td]=nd.items,ed.push(nd)}}),ed}},SelectionContainer=class extends import_react$1.Component{render(){let{l10n:e,zipUrl:t,cookieDomain:$,selection:ed,selectionClearAll:td}=this.props;return(0,import_jsx_runtime.jsx)(Selection,{l10n:e,zipUrl:t,cookieDomain:$,selection:ed,onClearAll:()=>td()})}},mapStateToProps$7=e=>({l10n:e.config.l10n,zipUrl:e.downloads.zipUrl,selection:e.selection,cookieDomain:e.downloads.cookieDomain}),mapDispatchToProps$3={selectionClearAll},SelectionContainer_default=(0,import_lib$3.connect)(mapStateToProps$7,mapDispatchToProps$3)(SelectionContainer),ResultsItem=class extends import_react$1.Component{static defaultProps={downloads:[],selection:[],l10n:{add_all:`Add all`,remove_all:`Remove all`},onAddAll:(e,t)=>{},onRemoveAll:e=>{}};static propTypes={id:import_react$1.PropTypes.number.isRequired,title:import_react$1.PropTypes.string,downloads:import_react$1.PropTypes.array.isRequired,selection:import_react$1.PropTypes.array.isRequired};state={opened:!1};handleToggleClick=e=>{e.preventDefault(),e.stopPropagation(),this.setState({opened:!this.state.opened})};handleAddAll=e=>{e.preventDefault(),e.stopPropagation();let{title:t,downloads:$,onAddAll:ed}=this.props;ed(t,$)};handleRemoveAll=e=>{e.preventDefault(),e.stopPropagation();let{title:t,onRemoveAll:$}=this.props;$(t)};isAllSelected=()=>{let{title:e,selection:t,downloads:$}=this.props;return t.filter(t=>t.category===e).length===$.length};renderSelectAll(){let{l10n:e}=this.props,t=this.isAllSelected(),$=t?`handleRemoveAll`:`handleAddAll`,ed=t?`remove`:`add`,td=t?`remove_all`:`add_all`;return(0,import_jsx_runtime.jsxs)(`a`,{href:`#`,className:`downloads-products-add${t?` is-selected`:``}`,onClick:this[$],children:[(0,import_jsx_runtime.jsx)(`span`,{children:e[td]}),(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:ed})]})}renderDownloads(){let{title:e,downloads:t}=this.props;if(t.length)return(0,import_jsx_runtime.jsx)(FileListContainer_default,{category:e,files:t,showToggle:!0})}render(){let{l10n:e,title:t}=this.props,{opened:$}=this.state;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`span`,{className:(0,import_classnames.default)(`downloads-products-product__title`,{"is-opened":$}),onClick:this.handleToggleClick,children:[t,this.renderSelectAll(),(0,import_jsx_runtime.jsx)(`span`,{className:`downloads-products-arrow-container`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`downloads-products-arrow material-symbols`,children:`keyboard_arrow_right`})})]}),$&&this.renderDownloads()]})}},ResultsItemContainer=class extends import_react$1.Component{render(){let{l10n:e,selection:t,selectionCategoryAdd:$,selectionCategoryRemove:ed}=this.props,{id:td,title:nd,downloads:rd}=this.props;return(0,import_jsx_runtime.jsx)(ResultsItem,{l10n:e,id:td,title:nd,downloads:rd,selection:t,onAddAll:(e,t)=>$(e,t),onRemoveAll:e=>ed(e)})}},mapStateToProps$6=e=>({l10n:e.config.l10n,selection:e.selection}),mapDispatchToProps$2={selectionCategoryAdd,selectionCategoryRemove},ResultsItemContainer_default=(0,import_lib$3.connect)(mapStateToProps$6,mapDispatchToProps$2)(ResultsItemContainer),ResultsCategory=class extends import_react$1.Component{static defaultProps={items:[],selection:[],opened:!1};static propTypes={id:import_react$1.PropTypes.number.isRequired,title:import_react$1.PropTypes.string,items:import_react$1.PropTypes.array.isRequired,selection:import_react$1.PropTypes.array.isRequired,opened:import_react$1.PropTypes.bool};state={opened:null};handleToggleClick=e=>{e.preventDefault(),this.setState({opened:!this.isOpened()})};isOpened(){return this.state.opened===null?this.props.opened:this.state.opened}renderItems(){let{items:e}=this.props;if(e.length)return(0,import_jsx_runtime.jsx)(`ul`,{className:`downloads-products-product`,children:e.map((e,t)=>(0,import_jsx_runtime.jsx)(`li`,{children:(0,import_jsx_runtime.jsx)(ResultsItemContainer_default,{id:+e.id,title:e.title,downloads:e.downloads})},t))})}render(){let{title:e}=this.props,t=this.isOpened(),$=t?`keyboard_arrow_down`:`keyboard_arrow_right`;return(0,import_jsx_runtime.jsxs)(`div`,{className:`filter-category`,children:[(0,import_jsx_runtime.jsxs)(`a`,{href:`#`,className:`btn btn--block filter-category__btn`,onClick:this.handleToggleClick,children:[(0,import_jsx_runtime.jsx)(`span`,{className:`filter-category__title`,children:e}),(0,import_jsx_runtime.jsx)(`i`,{className:`filter-category__icon material-symbols`,children:$})]}),t&&this.renderItems()]})}},loaderOptions={length:5,width:3,corners:0,radius:10,color:`#000`,top:`50%`},Results=class extends import_react$1.Component{static defaultProps={list:[],loading:!1,l10n:{no_results:`No result found`,found_results:`:total result(s) found`}}
346;static propTypes={list:import_react$1.PropTypes.array.isRequired,loading:import_react$1.PropTypes.bool.isRequired,l10n:import_react$1.PropTypes.object.isRequired};render(){let{list:e,loading:t,l10n:$}=this.props;return t?(0,import_jsx_runtime.jsx)(`div`,{className:`u-position-relative u-pt-6 u-pb-6`,children:(0,import_jsx_runtime.jsx)(import_react_loader.default,{loaded:!1,options:loaderOptions,className:`spinner`})}):e.length?(0,import_jsx_runtime.jsx)(`ul`,{className:`downloads-products-category`,children:e.map((t,$)=>(0,import_jsx_runtime.jsx)(`li`,{children:(0,import_jsx_runtime.jsx)(ResultsCategory,{id:+t.id,title:t.title,items:t.products,opened:e.length===1})},$))}):(0,import_jsx_runtime.jsx)(`p`,{children:$.empty})}},ResultsContainer=class extends import_react$1.Component{render(){let{l10n:e,list:t,isFetching:$}=this.props;return(0,import_jsx_runtime.jsx)(Results,{l10n:e,list:t,loading:$})}},mapStateToProps$5=e=>({l10n:e.config.l10n,list:e.downloads.list,isFetching:e.downloads.isFetching}),mapDispatchToProps$1={},ResultsContainer_default=(0,import_lib$3.connect)(mapStateToProps$5,mapDispatchToProps$1)(ResultsContainer),App$1=class extends import_react$1.Component{render(){let{l10n:e}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{className:`row flex-row`,children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`md-1-3 lg-1-4`,children:[(0,import_jsx_runtime.jsx)(`h1`,{className:`downloads-products-title visible-under-medium-block`,children:e.product_documentation}),(0,import_jsx_runtime.jsx)(`div`,{className:`selection-sidebar`,children:(0,import_jsx_runtime.jsx)(SelectionContainer_default,{})})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`md-2-3 lg-3-4`,children:[(0,import_jsx_runtime.jsx)(FiltersContainer_default,{}),(0,import_jsx_runtime.jsx)(`h1`,{className:`downloads-products-title visible-above-medium-block u-mb-0`,children:e.product_documentation}),(0,import_jsx_runtime.jsx)(ResultsContainer_default,{})]})]})}},mapStateToProps$4=e=>{let{config:t}=e;return{l10n:t.l10n}},App_default=(0,import_lib$3.connect)(mapStateToProps$4)(App$1),Downloads$1=class extends import_react$1.Component{static defaultProps={initialData:null,l10n:{}};static propTypes={initialData:import_react$1.PropTypes.object,l10n:import_react$1.PropTypes.object};initialConfig(){let{type:e,l10n:t}=this.props;return{api:`${global_default.paths.api}support/`,l10n:t}}initialData(){return this.props.initialData||{}}initialSelection(){return window.sessionStorage===`undefined`?[]:JSON.parse(window.sessionStorage.getItem(`downloads_selection`))||[]}render(){return(0,import_jsx_runtime.jsx)(import_lib$3.Provider,{store:configureStore$1({config:this.initialConfig(),downloads:this.initialData(),selection:this.initialSelection()}),children:(0,import_jsx_runtime.jsx)(App_default,{})})}},SELECTION_ADD=`SELECTION_ADD`;function selectionAdd(e,t,$){let ed=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Files`,eventAction:`Add file to selection`,eventLabel:`${e} > ${t} > ${$.title}`,additionalFields:[`product`,`file`],product:e,file:`${t} > ${$.title}`}});return document.dispatchEvent(ed),{type:SELECTION_ADD,category:t,file:$}}var SELECTION_REMOVE=`SELECTION_REMOVE`;function selectionRemove(e,t,$){let ed=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Files`,eventAction:`Remove file from selection`,eventLabel:`${e} > ${t} > ${$.title}`,additionalFields:[`product`,`file`],product:e,file:`${t} > ${$.title}`}});return document.dispatchEvent(ed),{type:SELECTION_REMOVE,file:$}}var initialState$2={api:``,l10n:{}};function config(e=initialState$2,t){switch(e.hydrated||(e={...initialState$2,...e,hydrated:!0}),t.type){default:return e}}var initialState$1={product:null,list:[],zipUrl:null};function downloads(e=initialState$1,t){switch(e.hydrated||(e={...initialState$1,...e,hydrated:!0}),t.type){default:return e}}window.sessionStorage;var initialState=[];function selection(e=initialState,t){switch(t.type){case SELECTION_ADD:return[...e,{...t.file,category:t.category}];case SELECTION_REMOVE:return e.filter(e=>e.id!==t.file.id);default:return e}}init_es();var rootReducer=combineReducers({config,downloads,selection});init_es();var createStoreWithMiddleware=applyMiddleware(thunk,(0,import_lib$4.default)({predicate:(e,t)=>
346global_default.debug,collapsed:!0}))(createStore);function configureStore(e){return createStoreWithMiddleware(rootReducer,e)}var cookieChecker=null,Header=class extends import_react$1.Component{static defaultProps={selection:[],maxSize:250,product:``,zipUrl:``,cookieDomain:``,l10n:{title:`Downloads`,download:`Download`,downloading:`Downloading...`}};static propTypes={selection:import_react$1.PropTypes.array.isRequired,product:import_react$1.PropTypes.string.isRequired,zipUrl:import_react$1.PropTypes.string.isRequired,cookieDomain:import_react$1.PropTypes.string.isRequired,maxSize:import_react$1.PropTypes.number.isRequired,l10n:import_react$1.PropTypes.object.isRequired};constructor(e){super(e),this.state={downloading:!1,token:``}}handleDownloadClick=e=>{let t=new Date().getTime();this.setState({downloading:!0,token:t});let{product:$,zipUrl:ed}=this.props,td=this.getSelectionList().join(`,`),nd=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Files`,eventAction:`Download selection`,eventLabel:`${$} > ${ed}`,additionalFields:[`product`,`selection`],product:$,selection:td}});document.dispatchEvent(nd),window.location.href=`${ed}?lang=${global_default.lang}&list=${td}&token=${t}`,cookieChecker=setInterval(()=>{this.checkCookie(`download-selection-zip${t}`)},1e3)};checkCookie=e=>{import_js_cookie.default.get(e)!==void 0&&(import_js_cookie.default.remove(e,{path:`/`,domain:this.props.cookieDomain}),clearInterval(cookieChecker),this.setState({downloading:!1,token:``}))};render(){let{l10n:e,maxSize:t}=this.props,{downloading:$}=this.state,ed=this.getSizeTotal(),td=this.isSizeOverLimit(ed),nd=this.props.selection.length,rd=``;return td&ed>0?rd=` is-error`:!td&ed>0&&(rd=` is-success`),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`div`,{className:`files-support-header`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`container`,children:[(0,import_jsx_runtime.jsx)(`h2`,{className:`product-details-title u-mb-0`,children:e.title}),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`h3`,{className:`u-mb-0 u-mr-1`,children:(0,import_jsx_runtime.jsxs)(`strong`,{style:{fontWeight:600},children:[e.documents,` (`,nd,`)`]})}),`\xA0`,(0,import_jsx_runtime.jsxs)(`span`,{className:`selection-downloads u-mr-g${rd}`,children:[ed,`/`,t,` MB`]}),(0,import_jsx_runtime.jsx)(`button`,{className:`btn btn--accent${$?` is-disabled`:``}`,onClick:this.handleDownloadClick,disabled:td||$,children:$?e.downloading:e.download})]})]})}),(0,import_jsx_runtime.jsx)(`div`,{className:`files-support-header-spacer`})]})}getSizeTotal=()=>{let e=this.props.selection.reduce((e,t)=>parseFloat(e)+parseFloat(t.file_size),0);return this.sizeInMB(e)};getSelectionList=()=>this.props.selection.map(e=>e.id);isSizeOverLimit(e){return Math.ceil(e)===0||e>this.props.maxSize}sizeInMB(e){return(e/(1024*1024)).toFixed(2)}},HeaderContainer=class extends import_react$1.Component{render(){let{l10n:e,product:t,zipUrl:$,selection:ed,cookieDomain:td}=this.props;return(0,import_jsx_runtime.jsx)(Header,{l10n:e,product:t,zipUrl:$,cookieDomain:td,selection:ed})}},mapStateToProps$3=e=>({l10n:e.config.l10n,product:e.downloads.product,zipUrl:e.downloads.zipUrl,cookieDomain:e.downloads.cookieDomain,selection:e.selection}),HeaderContainer_default=(0,import_lib$3.connect)(mapStateToProps$3)(HeaderContainer),Files=class extends import_react$1.Component{static defaultProps={product:``,category:``,files:[],selection:[],onAdd:(e,t,$)=>{},onRemove:(e,t,$)=>{}};static propTypes={product:import_react$1.PropTypes.string.isRequired,category:import_react$1.PropTypes.string,files:import_react$1.PropTypes.array.isRequired,selection:import_react$1.PropTypes.array.isRequired};state={opened:!1};handleAdd=(e,t,$,ed)=>{ed.preventDefault(),ed.stopPropagation(),this.props.onAdd(e,t,$)};handleRemove=(e,t,$,ed)=>{ed.preventDefault(),ed.stopPropagation(),this.props.onRemove(e,t,$)};handleDownload=(e,t)=>{let{product:$}=this.props,ed=new CustomEvent(window.TRACKING_EVENT,{detail:{eventCategory:`Support Files`,eventAction:`Download file`,eventLabel:`${$} > ${t} >
346 ${e.title}`,additionalFields:[`product`,`file`],product:$,file:`${t} > ${e.title}`}});document.dispatchEvent(ed),window.open(e.file.url,`_blank`)};handleOpen=()=>{this.setState({opened:!0})};isSelected=e=>this.props.selection.filter(t=>e.id===t.id).length;renderShowAll(){let{l10n:e,files:t,max_display_limit:$}=this.props,ed=parseInt($);return(0,import_jsx_runtime.jsxs)(`li`,{onClick:this.handleOpen.bind(this),className:`btn show-more-btn u-mt-3`,children:[(0,import_jsx_runtime.jsxs)(`span`,{children:[e.show_more,` (`,t.length-ed,`)`]}),(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:`keyboard_arrow_down`})]})}renderFileItem(e,t){let{product:$,category:ed}=this.props,{type:td}=e,{url:nd}=e.image_icon.image,rd=nd?(0,import_jsx_runtime.jsx)(`img`,{src:nd,style:{width:`16px`},width:`16`,height:`20`,alt:`File icon`}):``,id=this.isSelected(e),ad=id?`handleRemove`:`handleAdd`,od=id?`remove`:`add`;return td===`link`?(0,import_jsx_runtime.jsx)(`a`,{href:e.url,target:`_blank`,className:`files-support-item`,children:(0,import_jsx_runtime.jsxs)(`div`,{className:`files-support-item__name`,children:[rd,`\xA0`,e.title]})},t):(0,import_jsx_runtime.jsxs)(`li`,{onClick:this.handleDownload.bind(this,e,ed),className:`files-support-item`,children:[(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsxs)(`div`,{className:`files-support-item__name`,children:[rd,(0,import_jsx_runtime.jsx)(`span`,{className:`u-display-inline-block u-ml-1`,children:e.title})]}),(0,import_jsx_runtime.jsxs)(`div`,{className:`files-support-item__info`,children:[e.file_type.toUpperCase(),` `,e.file_size_formatted]})]}),(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`span`,{className:`files-support-item__download`,children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:`download`})}),(0,import_jsx_runtime.jsx)(`a`,{href:`#`,className:`downloads-products-add downloads-products-add--icon${id?` is-selected`:``}`,onClick:this[ad].bind(this,$,ed,e),children:(0,import_jsx_runtime.jsx)(`i`,{className:`material-symbols`,children:od})})]})]},t)}render(){let{files:e,max_display_limit:t}=this.props,$=parseInt(t),ed=$===0||this.state.opened?e:e.slice(0,$),td=$!==0&&e.length>$&&this.state.opened===!1;return(0,import_jsx_runtime.jsxs)(`ul`,{children:[ed.map((e,t)=>this.renderFileItem(e,t)),td&&this.renderShowAll()]})}},mapStateToProps$2=e=>({l10n:e.config.l10n,zipUrl:e.downloads.zipUrl,product:e.downloads.product,max_display_limit:e.config.max_display_limit}),Files_default=(0,import_lib$3.connect)(mapStateToProps$2)(Files),Category=class extends import_react$1.Component{static defaultProps={product:``,items:[]};static propTypes={id:import_react$1.PropTypes.number.isRequired,title:import_react$1.PropTypes.string,product:import_react$1.PropTypes.string.isRequired,items:import_react$1.PropTypes.array.isRequired};render(){let{selection:e,selectionAdd:t,selectionRemove:$}=this.props,{product:ed,items:td,title:nd}=this.props;return(0,import_jsx_runtime.jsxs)(`div`,{children:[(0,import_jsx_runtime.jsx)(`h2`,{children:nd}),(0,import_jsx_runtime.jsx)(Files_default,{category:nd,files:td,selection:e,onAdd:(e,$,ed)=>t(e,$,ed),onRemove:(e,t,ed)=>$(e,t,ed)})]})}},mapStateToProps$1=e=>({selection:e.selection,product:e.downloads.product}),mapDispatchToProps={selectionAdd,selectionRemove},Category_default=(0,import_lib$3.connect)(mapStateToProps$1,mapDispatchToProps)(Category),CategoriesContainer=class extends import_react$1.Component{render(){let{list:e}=this.props;return(0,import_jsx_runtime.jsx)(`div`,{className:`u-pt-6 files-support-container`,children:(0,import_jsx_runtime.jsx)(`ul`,{className:`row flex-row`,children:e.map((e,t)=>(0,import_jsx_runtime.jsx)(`li`,{className:`sm-1-2 md-1-3`,children:(0,import_jsx_runtime.jsx)(Category_default,{id:+e.id,title:e.category,items:e.files})},t))})})}},mapStateToProps=e=>({l10n:e.config.l10n,list:e.downloads.list,isFetching:e.downloads.isFetching}),CategoriesContainer_default=(0,import_lib$3.connect)(mapStateToProps)(CategoriesContainer),App=class extends import_react$1.Component{componentDidMount(){let{filesSupport:e}=this.refs,t=document.querySelector(`.product-details-subnav`)?.clientHeight??0,$=window.matchMedia(`(min-width: 768px)`),ed=document.querySelector(`.header`)?.clientHeight??0,td=ed+t;window.addEventListener(`resize`,()=>{ed=document.querySelector(`.header`)?.clientHeight??0,td=ed+t}),window.addEventListener(`scroll`,()=>{if($.matches&&e.clientHeight>400){let $=e.getBoundingClientRect(),ed=e.querySelector(`.files-support-header`),nd=$.y<td&&$.y+$.height>td;ed.classList.toggle(`is-sticky`,nd),t>0&&ed.classList.toggle(`has-subnav`,nd)}})}render(){return(0,import_jsx_runtime.jsxs)(`div`,{ref:`filesSupport`,children:[(0,import_jsx_runtime.jsx)(HeaderContainer_default,{}),(0,import_jsx_runtime.jsx)(CategoriesContainer_default,{})]})}},Downloads=class extends import_react$1.Component{static defaultProps={initialData:null,l10n:{}};static propTypes={initialData:import_react$1.PropTypes.object,l10n:import_react$1.PropTypes.object};initialConfig(){let{l10n:e}=this.props;return{api:`${global_default.paths.api}support/`,l10n:e,max_display_limit:global_default.product_downloads_maximum_display_items}}initialData(){return this.props.initialData||{}}initialSelection(){return[]}render(){return(0,import_jsx_runtime.jsx)(import_lib$3.Provider,{store:configureStore({config:this.initialConfig(),downloads:this.initialData(),selection:[]}),children:(0,import_jsx_runtime.jsx)(App,{})})}},DEFAULT_PROPS$3={selected:``,data:[],onChange:function(){}},Continents=class extends import_react$1.default.Component{constructor(e){super(e)}render(){let e=this.props.data.map(function(e){return(0,import_jsx_runtime.jsx)(`option`,{value:e.continent_code,children:e.locale_title},e.id)});return(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`continent`,children:this.props.locale.continent}),(0,import_jsx_runtime.jsxs)(`select`,{value:this.props.selected,onChange:this.props.onChange,id:`continent`,className:`form-control`,name:`continent`,disabled:this.props.disabled,children:[(0,import_jsx_runtime.jsx)(`option`,{value:``,disabled:!0,children:`Select a continent`},0),e]})]})}};Continents.defaultProps=DEFAULT_PROPS$3;var DEFAULT_PROPS$2={selected:``,continent:``,data:[],hiddenCountryFieldName:`full_country`,onChange:function(){}},Countries=class extends import_react$1.default.Component{constructor(e){super(e),this.state={selectedCountryCode:null},this.filterByContinent=this.filterByContinent.bind(this),this.handleChange=this.handleChange.bind(this)}handleChange(e){if(this.props.onChange(e),this.props.hasHiddenCountryField){let t=e.currentTarget.value;this.props.data.find(e=>e.iso1_code===t),this.setState({selectedCountryCode:t})}}renderHiddenCountryField(){return this.props.hasHiddenCountryField?(0,import_jsx_runtime.jsx)(`input`,{id:this.props.hiddenCountryFieldName,name:this.props.hiddenCountryFieldName,type:`hidden`,value:this.state.selectedCountryCode}):null}render(){let e=this.props.continent?this.filterByContinent(this.props.data):this.props.data,t=this.props.required.indexOf(`country`)>-1,$=t?` *`:``,ed=e.map(function(e){return(0,import_jsx_runtime.jsx)(`option`,{value:e.iso1_code,children:e.locale_title},e.id)});return(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`countries`,children:this.props.locale.country+$}),(0,import_jsx_runtime.jsxs)(`select`,{value:this.props.selected,onChange:this.handleChange,id:`countries`,className:`form-control`,name:this.props.countryFieldName,required:t,disabled:this.props.disabled,children:[(0,import_jsx_runtime.jsx)(`option`,{value:``,disabled:!0,children:this.props.locale.select_country},0),ed]}),this.renderHiddenCountryField()]})}filterByContinent(e){return e.filter(e=>e.continent_code===this.props.continent)}};Countries.defaultProps=DEFAULT_PROPS$2;var DEFAULT_PROPS$1={selected:``,country:``,data:[],onChange:function(){}},States=class extends import_react$1.default.Component{constructor(e){super(e),this.filterByCountry=this.filterByCountry.bind(this)}render(){let e=this.filterByCountry(this.props.data);if(!e.length)return!1;let t=this.props.required.indexOf(`state`)>-1,$=t?` *`:``,ed=e.map(function(e){return(0,import_jsx_runtime.jsx)(`option`,{value:e.abbrev,children:e.locale_title},e.id)});return(0,import_jsx_runtime.jsxs)(`div`,{className:`form-group`,children:[(0,import_jsx_runtime.jsx)(`label`,{className:`form-label`,htmlFor:`states`,children:this.props.locale.state+$}),(0,import_jsx_runtime.jsxs)(`select`,{value:this.props.selected,onChange:this.props.onChange,id:`states`,className:`form-control`,name:this.props.stateFieldName,required:t,disabled:this.props.disabled,children:[(0,import_jsx_runtime.jsx)(`option`,{value:``,disabled:!0,children:this.props.locale.select_state},0),ed]})]})}filterByCountry(e){return e.filter(e=>e.country_iso===this.props.country)}};States.defaultProps=DEFAULT_PROPS$1;var DEFAULT_PROPS={apiUrl:global_default.paths.api+`regions/all?lang=`+global_default.lang,showContinent:!0,required:[],disabled:!1,continent:``,country:``,state:``,countryFieldName:`country`,hasHiddenCountryField:!1,hiddenCountryFieldName:`full_country`,stateFieldName:`state`,locale:{continent:`Continent`,country:`Country`,state:`State/Province`}}
346,PROP_TYPES={apiUrl:import_react$1.default.PropTypes.string,showContinent:import_react$1.default.PropTypes.bool,required:import_react$1.default.PropTypes.array,disabled:import_react$1.default.PropTypes.bool,continent:import_react$1.default.PropTypes.string,country:import_react$1.default.PropTypes.string,state:import_react$1.default.PropTypes.string,hasHiddenCountryField:import_react$1.default.PropTypes.bool},RegionSelector=class extends import_react$1.default.Component{constructor(e){super(e),this.state={selected:{continent:this.props.continent,country:this.props.country,state:this.props.state}}}componentWillMount(){import_jquery.default.get(this.props.apiUrl,e=>{let t=e.countries.findIndex(e=>e.iso1_code===`AS`);e.countries.splice(t,1),this.setState({continents:e.continents,countries:e.countries,states:e.states})})}render(){return(0,import_jsx_runtime.jsxs)(`div`,{className:`region-selector`,children:[this.renderContinents(),this.renderCountries(),this.renderStates()]})}renderContinents(){return this.props.showContinent?(0,import_jsx_runtime.jsx)(Continents,{...this.props,data:this.state.continents,selected:this.state.selected.continent,onChange:this.changeSelectedValue.bind(this,`continent`)}):!1}renderCountries(){return(0,import_jsx_runtime.jsx)(Countries,{...this.props,data:this.state.countries,hasHiddenCountryField:this.props.hasHiddenCountryField,hiddenCountryFieldName:this.props.hiddenCountryFieldName,selected:this.state.selected.country,continent:this.state.selected.continent,onChange:this.changeSelectedValue.bind(this,`country`)})}renderStates(){return(0,import_jsx_runtime.jsx)(States,{...this.props,data:this.state.states,selected:this.state.selected.state,country:this.state.selected.country,onChange:this.changeSelectedValue.bind(this,`state`)})}changeSelectedValue(e,t){let $=Object.assign({},this.state.selected);switch($[e]=t.target.value,e){case`continent`:$.country=``,$.state=``;break;case`country`:$.state=``;break;default:break}this.setState({selected:$})}};RegionSelector.defaultProps=DEFAULT_PROPS,RegionSelector.propTypes=PROP_TYPES;var{sentryDsn,env}=global_default;sentryDsn&&init({dsn:sentryDsn,environment:env,ignoreErrors:[/Object Not Found Matching Id/i]}),new import_bundle.default({code:global_default.google_analytics.code,customVariables:global_default.google_analytics.customVariables}),new DownloadQueue,new AgentPortal,new Anchors,new Video,new Hype,new OpenCollapse,new SelectorTotal,initAll(filters_default,`.js-filters`),initAll(validation_default,`.js-validation`),initAll(collapse_default,`.js-collapse`),initAll(show_more_default,`.js-show-more`),initAll(sticky_default,`.js-sticky`),initAll(notification_default,`.js-notification`),initAll(sticky_contained_default,`.js-sticky-contained`),initAll(login_default,`.js-login`),initAll(custom_events_default,`.js-custom-events`),initAll(gallery_default,`.js-gallery`),initAll(tabs_default,`.js-tabs`),initReactAll(SelectorToggle,`.js-selector-toggle`),initReactAll(RegionSelector,`.js-region-selector`),initReact(Configurator,`.js-configurator`),initReact(Selector,`.js-selector`),initReact(ContactsLocator,`.js-contactslocator`),initReact(Downloads$1,`.js-downloads`),initReact(Downloads,`.js-files-support`);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.